@ledgerhq/device-management-kit-devtools-rozenite 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js ADDED
@@ -0,0 +1,1413 @@
1
+ function TD(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(n,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>n[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var AD=e=>e.disabled||Array.isArray(e.accessibilityStates)&&e.accessibilityStates.indexOf("disabled")>-1,$D={adjustable:"slider",button:"button",header:"heading",image:"img",imagebutton:null,keyboardkey:null,label:null,link:"link",none:"presentation",search:"search",summary:"region",text:null},z$=e=>{var t=e.accessibilityRole,r=e.role,n=r||t;if(n){var i=$D[n];if(i!==null)return i||n}},ID={article:"article",banner:"header",blockquote:"blockquote",button:"button",code:"code",complementary:"aside",contentinfo:"footer",deletion:"del",emphasis:"em",figure:"figure",insertion:"ins",form:"form",list:"ul",listitem:"li",main:"main",navigation:"nav",paragraph:"p",region:"section",strong:"strong"},PD={},kD=function(t){t===void 0&&(t=PD);var r=t.role||t.accessibilityRole;if(r==="label")return"label";var n=z$(t);if(n){if(n==="heading"){var i=t.accessibilityLevel||t["aria-level"];return i!=null?"h"+i:"h1"}return ID[n]}},B$={isDisabled:AD,propsToAccessibilityComponent:kD,propsToAriaRole:z$};function pt(e){"@babel/helpers - typeof";return pt=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},pt(e)}function MD(e,t){if(pt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function V$(e){var t=MD(e,"string");return pt(t)=="symbol"?t:t+""}function ue(e,t,r){return(t=V$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nE(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ic(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Hd={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},DD=["ms","Moz","O","Webkit"],LD=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1);Object.keys(Hd).forEach(e=>{DD.forEach(t=>{Hd[LD(t,e)]=Hd[e]})});var FD=e=>e==="currentcolor"||e==="currentColor"||e==="inherit"||e.indexOf("var(")===0;function Mr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function h1(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var i=!1;try{i=this instanceof n}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var Xg,iE;function ND(){if(iE)return Xg;iE=1;function e(y){if(typeof y=="number")return y>>>0===y&&y>=0&&y<=4294967295?y:null;if(typeof y!="string")return null;const E=d();let x;if(x=E.hex6.exec(y))return parseInt(x[1]+"ff",16)>>>0;const T=S(y);return T??((x=E.rgb.exec(y))?(g(x[1])<<24|g(x[2])<<16|g(x[3])<<8|255)>>>0:(x=E.rgba.exec(y))?x[6]!==void 0?(g(x[6])<<24|g(x[7])<<16|g(x[8])<<8|b(x[9]))>>>0:(g(x[2])<<24|g(x[3])<<16|g(x[4])<<8|b(x[5]))>>>0:(x=E.hex3.exec(y))?parseInt(x[1]+x[1]+x[2]+x[2]+x[3]+x[3]+"ff",16)>>>0:(x=E.hex8.exec(y))?parseInt(x[1],16)>>>0:(x=E.hex4.exec(y))?parseInt(x[1]+x[1]+x[2]+x[2]+x[3]+x[3]+x[4]+x[4],16)>>>0:(x=E.hsl.exec(y))?(r(h(x[1]),v(x[2]),v(x[3]))|255)>>>0:(x=E.hsla.exec(y))?x[6]!==void 0?(r(h(x[6]),v(x[7]),v(x[8]))|b(x[9]))>>>0:(r(h(x[2]),v(x[3]),v(x[4]))|b(x[5]))>>>0:(x=E.hwb.exec(y))?(n(h(x[1]),v(x[2]),v(x[3]))|255)>>>0:null)}function t(y,E,x){return x<0&&(x+=1),x>1&&(x-=1),x<1/6?y+(E-y)*6*x:x<1/2?E:x<2/3?y+(E-y)*(2/3-x)*6:y}function r(y,E,x){const T=x<.5?x*(1+E):x+E-x*E,A=2*x-T,R=t(A,T,y+1/3),$=t(A,T,y),O=t(A,T,y-1/3);return Math.round(R*255)<<24|Math.round($*255)<<16|Math.round(O*255)<<8}function n(y,E,x){if(E+x>=1){const $=Math.round(E*255/(E+x));return $<<24|$<<16|$<<8}const T=t(0,1,y+1/3)*(1-E-x)+E,A=t(0,1,y)*(1-E-x)+E,R=t(0,1,y-1/3)*(1-E-x)+E;return Math.round(T*255)<<24|Math.round(A*255)<<16|Math.round(R*255)<<8}const i="[-+]?\\d*\\.?\\d+",o=i+"%";function s(...y){return"\\(\\s*("+y.join(")\\s*,?\\s*(")+")\\s*\\)"}function u(...y){return"\\(\\s*("+y.slice(0,y.length-1).join(")\\s*,?\\s*(")+")\\s*/\\s*("+y[y.length-1]+")\\s*\\)"}function c(...y){return"\\(\\s*("+y.join(")\\s*,\\s*(")+")\\s*\\)"}let f;function d(){return f===void 0&&(f={rgb:new RegExp("rgb"+s(i,i,i)),rgba:new RegExp("rgba("+c(i,i,i,i)+"|"+u(i,i,i,i)+")"),hsl:new RegExp("hsl"+s(i,o,o)),hsla:new RegExp("hsla("+c(i,o,o,i)+"|"+u(i,o,o,i)+")"),hwb:new RegExp("hwb"+s(i,o,o)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/}),f}function g(y){const E=parseInt(y,10);return E<0?0:E>255?255:E}function h(y){return(parseFloat(y)%360+360)%360/360}function b(y){const E=parseFloat(y);return E<0?0:E>1?255:Math.round(E*255)}function v(y){const E=parseFloat(y);return E<0?0:E>100?1:E/100}function S(y){switch(y){case"transparent":return 0;case"aliceblue":return 4042850303;case"antiquewhite":return 4209760255;case"aqua":return 16777215;case"aquamarine":return 2147472639;case"azure":return 4043309055;case"beige":return 4126530815;case"bisque":return 4293182719;case"black":return 255;case"blanchedalmond":return 4293643775;case"blue":return 65535;case"blueviolet":return 2318131967;case"brown":return 2771004159;case"burlywood":return 3736635391;case"burntsienna":return 3934150143;case"cadetblue":return 1604231423;case"chartreuse":return 2147418367;case"chocolate":return 3530104575;case"coral":return 4286533887;case"cornflowerblue":return 1687547391;case"cornsilk":return 4294499583;case"crimson":return 3692313855;case"cyan":return 16777215;case"darkblue":return 35839;case"darkcyan":return 9145343;case"darkgoldenrod":return 3095792639;case"darkgray":return 2846468607;case"darkgreen":return 6553855;case"darkgrey":return 2846468607;case"darkkhaki":return 3182914559;case"darkmagenta":return 2332068863;case"darkolivegreen":return 1433087999;case"darkorange":return 4287365375;case"darkorchid":return 2570243327;case"darkred":return 2332033279;case"darksalmon":return 3918953215;case"darkseagreen":return 2411499519;case"darkslateblue":return 1211993087;case"darkslategray":return 793726975;case"darkslategrey":return 793726975;case"darkturquoise":return 13554175;case"darkviolet":return 2483082239;case"deeppink":return 4279538687;case"deepskyblue":return 12582911;case"dimgray":return 1768516095;case"dimgrey":return 1768516095;case"dodgerblue":return 512819199;case"firebrick":return 2988581631;case"floralwhite":return 4294635775;case"forestgreen":return 579543807;case"fuchsia":return 4278255615;case"gainsboro":return 3705462015;case"ghostwhite":return 4177068031;case"gold":return 4292280575;case"goldenrod":return 3668254975;case"gray":return 2155905279;case"green":return 8388863;case"greenyellow":return 2919182335;case"grey":return 2155905279;case"honeydew":return 4043305215;case"hotpink":return 4285117695;case"indianred":return 3445382399;case"indigo":return 1258324735;case"ivory":return 4294963455;case"khaki":return 4041641215;case"lavender":return 3873897215;case"lavenderblush":return 4293981695;case"lawngreen":return 2096890111;case"lemonchiffon":return 4294626815;case"lightblue":return 2916673279;case"lightcoral":return 4034953471;case"lightcyan":return 3774873599;case"lightgoldenrodyellow":return 4210742015;case"lightgray":return 3553874943;case"lightgreen":return 2431553791;case"lightgrey":return 3553874943;case"lightpink":return 4290167295;case"lightsalmon":return 4288707327;case"lightseagreen":return 548580095;case"lightskyblue":return 2278488831;case"lightslategray":return 2005441023;case"lightslategrey":return 2005441023;case"lightsteelblue":return 2965692159;case"lightyellow":return 4294959359;case"lime":return 16711935;case"limegreen":return 852308735;case"linen":return 4210091775;case"magenta":return 4278255615;case"maroon":return 2147483903;case"mediumaquamarine":return 1724754687;case"mediumblue":return 52735;case"mediumorchid":return 3126187007;case"mediumpurple":return 2473647103;case"mediumseagreen":return 1018393087;case"mediumslateblue":return 2070474495;case"mediumspringgreen":return 16423679;case"mediumturquoise":return 1221709055;case"mediumvioletred":return 3340076543;case"midnightblue":return 421097727;case"mintcream":return 4127193855;case"mistyrose":return 4293190143;case"moccasin":return 4293178879;case"navajowhite":return 4292783615;case"navy":return 33023;case"oldlace":return 4260751103;case"olive":return 2155872511;case"olivedrab":return 1804477439;case"orange":return 4289003775;case"orangered":return 4282712319;case"orchid":return 3664828159;case"palegoldenrod":return 4008225535;case"palegreen":return 2566625535;case"paleturquoise":return 2951671551;case"palevioletred":return 3681588223;case"papayawhip":return 4293907967;case"peachpuff":return 4292524543;case"peru":return 3448061951;case"pink":return 4290825215;case"plum":return 3718307327;case"powderblue":return 2967529215;case"purple":return 2147516671;case"rebeccapurple":return 1714657791;case"red":return 4278190335;case"rosybrown":return 3163525119;case"royalblue":return 1097458175;case"saddlebrown":return 2336560127;case"salmon":return 4202722047;case"sandybrown":return 4104413439;case"seagreen":return 780883967;case"seashell":return 4294307583;case"sienna":return 2689740287;case"silver":return 3233857791;case"skyblue":return 2278484991;case"slateblue":return 1784335871;case"slategray":return 1887473919;case"slategrey":return 1887473919;case"snow":return 4294638335;case"springgreen":return 16744447;case"steelblue":return 1182971135;case"tan":return 3535047935;case"teal":return 8421631;case"thistle":return 3636451583;case"tomato":return 4284696575;case"turquoise":return 1088475391;case"violet":return 4001558271;case"wheat":return 4125012991;case"white":return 4294967295;case"whitesmoke":return 4126537215;case"yellow":return 4294902015;case"yellowgreen":return 2597139199}return null}return Xg=e,Xg}var jD=ND();const zD=Mr(jD);var BD=e=>{if(e==null)return e;var t=zD(e);if(t!=null)return t=(t<<24|t>>>8)>>>0,t},g1=function(t,r){if(r===void 0&&(r=1),t!=null){if(typeof t=="string"&&FD(t))return t;var n=BD(t);if(n!=null){var i=n>>16&255,o=n>>8&255,s=n&255,u=(n>>24&255)/255,c=(u*r).toFixed(2);return"rgba("+i+","+o+","+s+","+c+")"}}},VD={backgroundColor:!0,borderColor:!0,borderTopColor:!0,borderRightColor:!0,borderBottomColor:!0,borderLeftColor:!0,color:!0,shadowColor:!0,textDecorationColor:!0,textShadowColor:!0};function pn(e,t){var r=e;return(t==null||!Hd[t])&&typeof e=="number"?r=e+"px":t!=null&&VD[t]&&(r=g1(e)),r}var Rs=!!(typeof window<"u"&&window.document&&window.document.createElement),UD={},HD=!Rs||window.CSS!=null&&window.CSS.supports!=null&&(window.CSS.supports("text-decoration-line","none")||window.CSS.supports("-webkit-text-decoration-line","none")),WD="monospace,monospace",oE='-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif',qD={borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderBlockColor:["borderTopColor","borderBottomColor"],borderInlineColor:["borderRightColor","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderStyle:["borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderInlineStyle:["borderRightStyle","borderLeftStyle"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderInlineWidth:["borderRightWidth","borderLeftWidth"],insetBlock:["top","bottom"],insetInline:["left","right"],marginBlock:["marginTop","marginBottom"],marginInline:["marginRight","marginLeft"],paddingBlock:["paddingTop","paddingBottom"],paddingInline:["paddingRight","paddingLeft"],overflow:["overflowX","overflowY"],overscrollBehavior:["overscrollBehaviorX","overscrollBehaviorY"],borderBlockStartColor:["borderTopColor"],borderBlockStartStyle:["borderTopStyle"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndColor:["borderBottomColor"],borderBlockEndStyle:["borderBottomStyle"],borderBlockEndWidth:["borderBottomWidth"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],insetBlockEnd:["bottom"],insetBlockStart:["top"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"]},U$=(e,t)=>{if(!e)return UD;var r={},n=function(){var u=e[i];if(u==null)return"continue";if(i==="backgroundClip")u==="text"&&(r.backgroundClip=u,r.WebkitBackgroundClip=u);else if(i==="flex")u===-1?(r.flexGrow=0,r.flexShrink=1,r.flexBasis="auto"):r.flex=u;else if(i==="font")r[i]=u.replace("System",oE);else if(i==="fontFamily")if(u.indexOf("System")>-1){var c=u.split(/,\s*/);c[c.indexOf("System")]=oE,r[i]=c.join(",")}else u==="monospace"?r[i]=WD:r[i]=u;else if(i==="textDecorationLine")HD?r.textDecorationLine=u:r.textDecoration=u;else if(i==="writingDirection")r.direction=u;else{var f=pn(e[i],i),d=qD[i];t&&i==="inset"?(e.insetInline==null&&(r.left=f,r.right=f),e.insetBlock==null&&(r.top=f,r.bottom=f)):t&&i==="margin"?(e.marginInline==null&&(r.marginLeft=f,r.marginRight=f),e.marginBlock==null&&(r.marginTop=f,r.marginBottom=f)):t&&i==="padding"?(e.paddingInline==null&&(r.paddingLeft=f,r.paddingRight=f),e.paddingBlock==null&&(r.paddingTop=f,r.paddingBottom=f)):d?d.forEach((g,h)=>{e[g]==null&&(r[g]=f)}):r[i]=f}};for(var i in e)var o=n();return r};function GD(e,t){for(var r=e.length,n=t^r,i=0,o;r>=4;)o=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,o=(o&65535)*1540483477+(((o>>>16)*1540483477&65535)<<16),o^=o>>>24,o=(o&65535)*1540483477+(((o>>>16)*1540483477&65535)<<16),n=(n&65535)*1540483477+(((n>>>16)*1540483477&65535)<<16)^o,r-=4,++i;switch(r){case 3:n^=(e.charCodeAt(i+2)&255)<<16;case 2:n^=(e.charCodeAt(i+1)&255)<<8;case 1:n^=e.charCodeAt(i)&255,n=(n&65535)*1540483477+(((n>>>16)*1540483477&65535)<<16)}return n^=n>>>13,n=(n&65535)*1540483477+(((n>>>16)*1540483477&65535)<<16),n^=n>>>15,n>>>0}var XD=e=>GD(e,1).toString(36),KD=/[A-Z]/g,YD=/^ms-/,Kg={};function JD(e){return"-"+e.toLowerCase()}function QD(e){if(e in Kg)return Kg[e];var t=e.replace(KD,JD);return Kg[e]=YD.test(t)?"-"+t:t}var Jf={},Qf={},Zf={},aE;function H$(){if(aE)return Zf;aE=1,Object.defineProperty(Zf,"__esModule",{value:!0}),Zf.default=e;function e(t){return t.charAt(0).toUpperCase()+t.slice(1)}return Zf}var sE;function ZD(){if(sE)return Qf;sE=1,Object.defineProperty(Qf,"__esModule",{value:!0}),Qf.default=n;var e=H$(),t=r(e);function r(i){return i&&i.__esModule?i:{default:i}}function n(i,o,s){var u=i[o];if(u&&s.hasOwnProperty(o))for(var c=(0,t.default)(o),f=0;f<u.length;++f){var d=u[f]+c;s[d]||(s[d]=s[o])}return s}return Qf}var ed={},lE;function eL(){if(lE)return ed;lE=1,Object.defineProperty(ed,"__esModule",{value:!0}),ed.default=e;function e(t,r,n,i,o){for(var s=0,u=t.length;s<u;++s){var c=t[s](r,n,i,o);if(c)return c}}return ed}var td={},uE;function tL(){if(uE)return td;uE=1,Object.defineProperty(td,"__esModule",{value:!0}),td.default=t;function e(r,n){r.indexOf(n)===-1&&r.push(n)}function t(r,n){if(Array.isArray(n))for(var i=0,o=n.length;i<o;++i)e(r,n[i]);else e(r,n)}return td}var rd={},cE;function rL(){if(cE)return rd;cE=1,Object.defineProperty(rd,"__esModule",{value:!0}),rd.default=e;function e(t){return t instanceof Object&&!Array.isArray(t)}return rd}var fE;function nL(){if(fE)return Jf;fE=1,Object.defineProperty(Jf,"__esModule",{value:!0}),Jf.default=f;var e=ZD(),t=c(e),r=eL(),n=c(r),i=tL(),o=c(i),s=rL(),u=c(s);function c(d){return d&&d.__esModule?d:{default:d}}function f(d){var g=d.prefixMap,h=d.plugins;return function b(v){for(var S in v){var y=v[S];if((0,u.default)(y))v[S]=b(y);else if(Array.isArray(y)){for(var E=[],x=0,T=y.length;x<T;++x){var A=(0,n.default)(h,S,y[x],v,g);(0,o.default)(E,A||y[x])}E.length>0&&(v[S]=E)}else{var R=(0,n.default)(h,S,y,v,g);R&&(v[S]=R),v=(0,t.default)(g,S,v)}}return v}}return Jf}var iL=nL();const oL=Mr(iL);var nd={};function Wd(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Wd=function(r){return typeof r}:Wd=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Wd(e)}function aL(e){return cL(e)||uL(e)||lL(e)||sL()}function sL(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lL(e,t){if(e){if(typeof e=="string")return yy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yy(e,t)}}function uL(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function cL(e){if(Array.isArray(e))return yy(e)}function yy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function dE(e){return e.filter(function(t,r){return e.lastIndexOf(t)===r})}function W$(e){for(var t=0,r=arguments.length<=1?0:arguments.length-1;t<r;++t){var n=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];for(var i in n){var o=n[i],s=e[i];if(s&&o){if(Array.isArray(s)){e[i]=dE(s.concat(o));continue}if(Array.isArray(o)){e[i]=dE([s].concat(aL(o)));continue}if(Wd(o)==="object"){e[i]=W$({},s,o);continue}}e[i]=o}}return e}var fL=/-([a-z])/g,dL=/^Ms/g,Yg={};function pL(e){return e[1].toUpperCase()}function q$(e){if(Yg.hasOwnProperty(e))return Yg[e];var t=e.replace(fL,pL).replace(dL,"ms");return Yg[e]=t,t}var hL=/[A-Z]/g,gL=/^ms-/,Jg={};function vL(e){return"-"+e.toLowerCase()}function G$(e){if(Jg.hasOwnProperty(e))return Jg[e];var t=e.replace(hL,vL);return Jg[e]=gL.test(t)?"-"+t:t}const mL=Object.freeze(Object.defineProperty({__proto__:null,default:G$},Symbol.toStringTag,{value:"Module"}));function zp(e){return G$(e)}function X$(e,t){return zp(e)+":"+t}function yL(e){var t="";for(var r in e){var n=e[r];typeof n!="string"&&typeof n!="number"||(t&&(t+=";"),t+=X$(r,n))}return t}var bL=/^(Webkit|Moz|O|ms)/;function SL(e){return bL.test(e)}var wL=/-webkit-|-moz-|-ms-/;function xL(e){return typeof e=="string"&&wL.test(e)}var oc={borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pE=["animationIterationCount","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineClamp","order"],hE=["Webkit","ms","Moz","O"];function EL(e,t){return e+t.charAt(0).toUpperCase()+t.slice(1)}for(var Qg=0,CL=pE.length;Qg<CL;++Qg){var gE=pE[Qg];oc[gE]=!0;for(var Zg=0,RL=hE.length;Zg<RL;++Zg)oc[EL(hE[Zg],gE)]=!0}for(var _L in oc)oc[zp(_L)]=!0;function OL(e){return oc.hasOwnProperty(e)}var TL=/^(ms|Webkit|Moz|O)/;function K$(e){var t=e.replace(TL,"");return t.charAt(0).toLowerCase()+t.slice(1)}function AL(e){return K$(q$(e))}function $L(e,t){return t.join(";"+zp(e)+":")}var IL=/(-ms-|-webkit-|-moz-|-o-)/g;function PL(e){return typeof e=="string"?e.replace(IL,""):e}const kL=Object.freeze(Object.defineProperty({__proto__:null,assignStyle:W$,camelCaseProperty:q$,cssifyDeclaration:X$,cssifyObject:yL,hyphenateProperty:zp,isPrefixedProperty:SL,isPrefixedValue:xL,isUnitlessProperty:OL,normalizeProperty:AL,resolveArrayValue:$L,unprefixProperty:K$,unprefixValue:PL},Symbol.toStringTag,{value:"Module"})),ML=h1(kL);var vE;function DL(){if(vE)return nd;vE=1,Object.defineProperty(nd,"__esModule",{value:!0}),nd.default=n;var e=ML,t=/cross-fade\(/g,r=["-webkit-",""];function n(i,o){if(typeof o=="string"&&!(0,e.isPrefixedValue)(o)&&o.indexOf("cross-fade(")!==-1)return r.map(function(s){return o.replace(t,s+"cross-fade(")})}return nd}var LL=DL();const FL=Mr(LL);var id={},ev={},mE;function Y$(){return mE||(mE=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var t=/-webkit-|-moz-|-ms-/;function r(n){return typeof n=="string"&&t.test(n)}})(ev)),ev}var yE;function NL(){if(yE)return id;yE=1,Object.defineProperty(id,"__esModule",{value:!0}),id.default=i;var e=Y$(),t=r(e);function r(o){return o&&o.__esModule?o:{default:o}}var n=["-webkit-",""];function i(o,s){if(typeof s=="string"&&!(0,t.default)(s)&&s.indexOf("image-set(")>-1)return n.map(function(u){return s.replace(/image-set\(/g,u+"image-set(")})}return id}var jL=NL();const zL=Mr(jL);var od={},bE;function BL(){if(bE)return od;bE=1,Object.defineProperty(od,"__esModule",{value:!0}),od.default=t;var e={marginBlockStart:["WebkitMarginBefore"],marginBlockEnd:["WebkitMarginAfter"],marginInlineStart:["WebkitMarginStart","MozMarginStart"],marginInlineEnd:["WebkitMarginEnd","MozMarginEnd"],paddingBlockStart:["WebkitPaddingBefore"],paddingBlockEnd:["WebkitPaddingAfter"],paddingInlineStart:["WebkitPaddingStart","MozPaddingStart"],paddingInlineEnd:["WebkitPaddingEnd","MozPaddingEnd"],borderBlockStart:["WebkitBorderBefore"],borderBlockStartColor:["WebkitBorderBeforeColor"],borderBlockStartStyle:["WebkitBorderBeforeStyle"],borderBlockStartWidth:["WebkitBorderBeforeWidth"],borderBlockEnd:["WebkitBorderAfter"],borderBlockEndColor:["WebkitBorderAfterColor"],borderBlockEndStyle:["WebkitBorderAfterStyle"],borderBlockEndWidth:["WebkitBorderAfterWidth"],borderInlineStart:["WebkitBorderStart","MozBorderStart"],borderInlineStartColor:["WebkitBorderStartColor","MozBorderStartColor"],borderInlineStartStyle:["WebkitBorderStartStyle","MozBorderStartStyle"],borderInlineStartWidth:["WebkitBorderStartWidth","MozBorderStartWidth"],borderInlineEnd:["WebkitBorderEnd","MozBorderEnd"],borderInlineEndColor:["WebkitBorderEndColor","MozBorderEndColor"],borderInlineEndStyle:["WebkitBorderEndStyle","MozBorderEndStyle"],borderInlineEndWidth:["WebkitBorderEndWidth","MozBorderEndWidth"]};function t(r,n,i){if(Object.prototype.hasOwnProperty.call(e,r))for(var o=e[r],s=0,u=o.length;s<u;++s)i[o[s]]=n}return od}var VL=BL();const UL=Mr(VL);var ad={},SE;function HL(){if(SE)return ad;SE=1,Object.defineProperty(ad,"__esModule",{value:!0}),ad.default=e;function e(t,r){if(t==="position"&&r==="sticky")return["-webkit-sticky","sticky"]}return ad}var WL=HL();const qL=Mr(WL);var sd={},wE;function GL(){if(wE)return sd;wE=1,Object.defineProperty(sd,"__esModule",{value:!0}),sd.default=n;var e=["-webkit-","-moz-",""],t={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},r={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};function n(i,o){if(t.hasOwnProperty(i)&&r.hasOwnProperty(o))return e.map(function(s){return s+o})}return sd}var XL=GL();const KL=Mr(XL);var ld={},tv={};const YL=h1(mL);var xE;function JL(){return xE||(xE=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=YL,r=n(t);function n(o){return o&&o.__esModule?o:{default:o}}function i(o){return(0,r.default)(o)}})(tv)),tv}var EE;function QL(){if(EE)return ld;EE=1,Object.defineProperty(ld,"__esModule",{value:!0}),ld.default=d;var e=JL(),t=s(e),r=Y$(),n=s(r),i=H$(),o=s(i);function s(g){return g&&g.__esModule?g:{default:g}}var u={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},c={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};function f(g,h){if((0,n.default)(g))return g;for(var b=g.split(/,(?![^()]*(?:\([^()]*\))?\))/g),v=0,S=b.length;v<S;++v){var y=b[v],E=[y];for(var x in h){var T=(0,t.default)(x);if(y.indexOf(T)>-1&&T!=="order")for(var A=h[x],R=0,$=A.length;R<$;++R)E.unshift(y.replace(T,c[A[R]]+T))}b[v]=E.join(",")}return b.join(",")}function d(g,h,b,v){if(typeof h=="string"&&u.hasOwnProperty(g)){var S=f(h,v),y=S.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(x){return!/-moz-|-ms-/.test(x)}).join(",");if(g.indexOf("Webkit")>-1)return y;var E=S.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(x){return!/-webkit-|-ms-/.test(x)}).join(",");return g.indexOf("Moz")>-1?E:(b["Webkit"+(0,o.default)(g)]=y,b["Moz"+(0,o.default)(g)]=E,S)}}return ld}var ZL=QL();const eF=Mr(ZL);var Xt=["Webkit"],tF=["Moz"],rF=["Webkit","Moz"],sr=["Webkit","ms"],nF=["Webkit","Moz","ms"];const iF={plugins:[FL,zL,UL,qL,KL,eF],prefixMap:{appearance:nF,userSelect:rF,textEmphasisPosition:sr,textEmphasis:sr,textEmphasisStyle:sr,textEmphasisColor:sr,boxDecorationBreak:sr,clipPath:Xt,maskImage:sr,maskMode:sr,maskRepeat:sr,maskPosition:sr,maskClip:sr,maskOrigin:sr,maskSize:sr,maskComposite:sr,mask:sr,maskBorderSource:sr,maskBorderMode:sr,maskBorderSlice:sr,maskBorderWidth:sr,maskBorderOutset:sr,maskBorderRepeat:sr,maskBorder:sr,maskType:sr,textDecorationStyle:Xt,textDecorationSkip:Xt,textDecorationLine:Xt,textDecorationColor:Xt,filter:Xt,breakAfter:Xt,breakBefore:Xt,breakInside:Xt,columnCount:Xt,columnFill:Xt,columnGap:Xt,columnRule:Xt,columnRuleColor:Xt,columnRuleStyle:Xt,columnRuleWidth:Xt,columns:Xt,columnSpan:Xt,columnWidth:Xt,backdropFilter:Xt,hyphens:Xt,flowInto:Xt,flowFrom:Xt,regionFragment:Xt,textOrientation:Xt,tabSize:tF,fontKerning:Xt,textSizeAdjust:Xt}};var oF=oL(iF),aF=["animationKeyframes"],CE=new Map,sF={},lF=1,uF=3,cF={borderColor:2,borderRadius:2,borderStyle:2,borderWidth:2,display:2,flex:2,inset:2,margin:2,overflow:2,overscrollBehavior:2,padding:2,insetBlock:2.1,insetInline:2.1,marginInline:2.1,marginBlock:2.1,paddingInline:2.1,paddingBlock:2.1,borderBlockStartColor:2.2,borderBlockStartStyle:2.2,borderBlockStartWidth:2.2,borderBlockEndColor:2.2,borderBlockEndStyle:2.2,borderBlockEndWidth:2.2,borderInlineStartColor:2.2,borderInlineStartStyle:2.2,borderInlineStartWidth:2.2,borderInlineEndColor:2.2,borderInlineEndStyle:2.2,borderInlineEndWidth:2.2,borderEndStartRadius:2.2,borderEndEndRadius:2.2,borderStartStartRadius:2.2,borderStartEndRadius:2.2,insetBlockEnd:2.2,insetBlockStart:2.2,insetInlineEnd:2.2,insetInlineStart:2.2,marginBlockStart:2.2,marginBlockEnd:2.2,marginInlineStart:2.2,marginInlineEnd:2.2,paddingBlockStart:2.2,paddingBlockEnd:2.2,paddingInlineStart:2.2,paddingInlineEnd:2.2},by="borderTopLeftRadius",Sy="borderTopRightRadius",wy="borderBottomLeftRadius",xy="borderBottomRightRadius",Ey="borderLeftColor",Cy="borderLeftStyle",Ry="borderLeftWidth",_y="borderRightColor",Oy="borderRightStyle",Ty="borderRightWidth",Ay="right",$y="marginLeft",Iy="marginRight",Py="paddingLeft",ky="paddingRight",My="left",hp={[by]:Sy,[Sy]:by,[wy]:xy,[xy]:wy,[Ey]:_y,[Cy]:Oy,[Ry]:Ty,[_y]:Ey,[Oy]:Cy,[Ty]:Ry,[My]:Ay,[$y]:Iy,[Iy]:$y,[Py]:ky,[ky]:Py,[Ay]:My},Wu={borderStartStartRadius:by,borderStartEndRadius:Sy,borderEndStartRadius:wy,borderEndEndRadius:xy,borderInlineStartColor:Ey,borderInlineStartStyle:Cy,borderInlineStartWidth:Ry,borderInlineEndColor:_y,borderInlineEndStyle:Oy,borderInlineEndWidth:Ty,insetInlineEnd:Ay,insetInlineStart:My,marginInlineStart:$y,marginInlineEnd:Iy,paddingInlineStart:Py,paddingInlineEnd:ky},J$=["clear","float","textAlign"];function fF(e){var t={$$css:!0},r=[];function n(i,o,s){var u=hF(s,o),c=o+u,f=CE.get(c),d;if(f!=null)d=f[0],r.push(f[1]);else{var g=i!==o?c:u;d=v1("r",i,g);var h=cF[i]||uF,b=gF(d,o,s),v=[b,h];r.push(v),CE.set(c,[d,v])}return d}return Object.keys(e).sort().forEach(i=>{var o=e[i];if(o!=null){var s;if(J$.indexOf(i)>-1){var u=n(i,i,"left"),c=n(i,i,"right");o==="start"?s=[u,c]:o==="end"&&(s=[c,u])}var f=Wu[i];if(f!=null){var d=n(i,f,o),g=n(i,hp[f],o);s=[d,g]}if(i==="transitionProperty"){for(var h=Array.isArray(o)?o:[o],b=[],v=0;v<h.length;v++){var S=h[v];typeof S=="string"&&Wu[S]!=null&&b.push(v)}if(b.length>0){var y=[...h],E=[...h];b.forEach(x=>{var T=y[x];if(typeof T=="string"){var A=Wu[T],R=hp[A];y[x]=A,E[x]=R;var $=n(i,i,y),O=n(i,i,E);s=[$,O]}})}}s==null?s=n(i,i,o):t.$$css$localize=!0,t[i]=s}}),[t,r]}function dF(e,t){var r={$$css:!0},n=[],i=e.animationKeyframes,o=Ic(e,aF),s=v1("css",t,JSON.stringify(e)),u="."+s,c;if(i!=null){var f=Q$(i),d=f[0],g=f[1];c=d.join(","),n.push(...g)}var h=Zo(me(me({},o),{},{animationName:c}));return n.push(""+u+h),r[s]=s,[r,[[n,lF]]]}function pF(e,t){var r=e||sF,n={},i={},o=function(){var f=r[s],d=s,g=f;if(!Object.prototype.hasOwnProperty.call(r,s)||f==null)return"continue";J$.indexOf(s)>-1&&(f==="start"?g=t?"right":"left":f==="end"&&(g=t?"left":"right"));var h=Wu[s];if(h!=null&&(d=t?hp[h]:h),s==="transitionProperty"){var b=Array.isArray(f)?f:[f];b.forEach((v,S)=>{if(typeof v=="string"){var y=Wu[v];y!=null&&(b[S]=t?hp[y]:y,g=b.join(" "))}})}n[d]||(i[d]=g),d===s&&(n[d]=!0)};for(var s in r)var u=o();return U$(i,!0)}function hF(e,t){var r=pn(e,t);return typeof r!="string"?JSON.stringify(r||""):r}function gF(e,t,r){var n=[],i="."+e;switch(t){case"animationKeyframes":{var o=Q$(r),s=o[0],u=o[1],c=Zo({animationName:s.join(",")});n.push(""+i+c,...u);break}case"placeholderTextColor":{var f=Zo({color:r,opacity:1});n.push(i+"::-webkit-input-placeholder"+f,i+"::-moz-placeholder"+f,i+":-ms-input-placeholder"+f,i+"::placeholder"+f);break}case"pointerEvents":{var d=r;if(r==="auto"||r==="box-only"){if(d="auto!important",r==="box-only"){var g=Zo({pointerEvents:"none"});n.push(i+">*"+g)}}else if((r==="none"||r==="box-none")&&(d="none!important",r==="box-none")){var h=Zo({pointerEvents:"auto"});n.push(i+" * "+h)}var b=Zo({pointerEvents:d});n.push(""+i+b);break}case"scrollbarWidth":{r==="none"&&n.push(i+"::-webkit-scrollbar{display:none}");var v=Zo({scrollbarWidth:r});n.push(""+i+v);break}default:{var S=Zo({[t]:r});n.push(""+i+S);break}}return n}function Zo(e){var t=oF(U$(e)),r=Object.keys(t).map(n=>{var i=t[n],o=QD(n);return Array.isArray(i)?i.map(s=>o+":"+s).join(";"):o+":"+i}).sort().join(";");return"{"+r+";}"}function v1(e,t,r){var n=XD(t+r);return e+"-"+n}function vF(e){var t=["-webkit-",""],r=v1("r","animation",JSON.stringify(e)),n="{"+Object.keys(e).map(o=>{var s=e[o],u=Zo(s);return""+o+u}).join("")+"}",i=t.map(o=>"@"+o+"keyframes "+r+n);return[r,i]}function Q$(e){if(typeof e=="number")throw new Error("Invalid CSS keyframes type: "+typeof e);var t=[],r=[],n=Array.isArray(e)?e:[e];return n.forEach(i=>{if(typeof i=="string")t.push(i);else{var o=vF(i),s=o[0],u=o[1];t.push(s),r.push(...u)}}),[t,r]}function rv(e,t,r){if(Rs){var n=t??document,i=n.getElementById(e);if(i==null)if(i=document.createElement("style"),i.setAttribute("id",e),typeof r=="string"&&i.appendChild(document.createTextNode(r)),n instanceof ShadowRoot)n.insertBefore(i,n.firstChild);else{var o=n.head;o&&o.insertBefore(i,o.firstChild)}return i.sheet}else return null}var mF=Array.prototype.slice;function nv(e){var t={},r={};if(e!=null){var n;mF.call(e.cssRules).forEach((s,u)=>{var c=s.cssText;if(c.indexOf("stylesheet-group")>-1)n=SF(s),t[n]={start:u,rules:[c]};else{var f=_E(c);f!=null&&(r[f]=!0,t[n].rules.push(c))}})}function i(s,u,c){var f=RE(t),d=f.indexOf(u),g=d+1,h=f[g],b=h!=null&&t[h].start!=null?t[h].start:s.cssRules.length,v=xF(s,c,b);if(v){t[u].start==null&&(t[u].start=b);for(var S=g;S<f.length;S+=1){var y=f[S],E=t[y].start||0;t[y].start=E+1}}return v}var o={getTextContent(){return RE(t).map(s=>{var u=t[s].rules,c=u.shift();return u.sort(),u.unshift(c),u.join(`
3
+ `)}).join(`
4
+ `)},insert(s,u){var c=Number(u);if(t[c]==null){var f=yF(c);t[c]={start:null,rules:[f]},e!=null&&i(e,c,f)}var d=_E(s);if(d!=null&&r[d]==null&&(r[d]=!0,t[c].rules.push(s),e!=null)){var g=i(e,c,s);g||t[c].rules.pop()}}};return o}function yF(e){return'[stylesheet-group="'+e+'"]{}'}var bF=/["']/g;function SF(e){return Number(e.selectorText.split(bF)[1])}function RE(e){return Object.keys(e).map(Number).sort((t,r)=>t>r?1:-1)}var wF=/\s*([,])\s*/g;function _E(e){var t=e.split("{")[0].trim();return t!==""?t.replace(wF,"$1"):null}function xF(e,t,r){try{return e.insertRule(t,r),!0}catch{return!1}}var EF="react-native-stylesheet",iv=new WeakMap,qi=[],OE=["html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}","body{margin:0;}","button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}","input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}"];function m1(e,t){t===void 0&&(t=EF);var r;if(Rs){var n=e!=null?e.getRootNode():document;if(qi.length===0)r=nv(rv(t)),OE.forEach(u=>{r.insert(u,0)}),iv.set(n,qi.length),qi.push(r);else{var i=iv.get(n);if(i==null){var o=qi[0],s=o!=null?o.getTextContent():"";r=nv(rv(t,n,s)),iv.set(n,qi.length),qi.push(r)}else r=qi[i]}}else qi.length===0?(r=nv(rv(t)),OE.forEach(u=>{r.insert(u,0)}),qi.push(r)):r=qi[0];return{getTextContent(){return r.getTextContent()},id:t,insert(u,c){qi.forEach(f=>{f.insert(u,c)})}}}var ud={},TE;function CF(){if(TE)return ud;TE=1,Object.defineProperty(ud,"__esModule",{value:!0}),ud.localizeStyle=n;var e=new WeakMap,t="$$css$localize";function r(i,o){var s={};for(var u in i)if(u!==t){var c=i[u];Array.isArray(c)?s[u]=o?c[1]:c[0]:s[u]=c}return s}function n(i,o){if(i[t]!=null){var s=o?1:0;if(e.has(i)){var u=e.get(i),c=u[s];return c==null&&(c=r(i,o),u[s]=c,e.set(i,u)),c}var f=r(i,o),d=new Array(2);return d[s]=f,e.set(i,d),f}return i}return ud}var ov,AE;function RF(){return AE||(AE=1,ov=CF()),ov}var _F=RF(),OF={},Z$={height:0,width:0},TF=e=>{var t=e.shadowColor,r=e.shadowOffset,n=e.shadowOpacity,i=e.shadowRadius,o=r||Z$,s=o.height,u=o.width,c=pn(u),f=pn(s),d=pn(i||0),g=g1(t||"black",n);if(g!=null&&c!=null&&f!=null&&d!=null)return c+" "+f+" "+d+" "+g},AF=e=>{var t=e.textShadowColor,r=e.textShadowOffset,n=e.textShadowRadius,i=r||Z$,o=i.height,s=i.width,u=n||0,c=pn(s),f=pn(o),d=pn(u),g=pn(t,"textShadowColor");if(g&&(o!==0||s!==0||u!==0)&&c!=null&&f!=null&&d!=null)return c+" "+f+" "+d+" "+g},$F=e=>{if(typeof e=="string")return e;var t=pn(e.offsetX)||0,r=pn(e.offsetY)||0,n=pn(e.blurRadius)||0,i=pn(e.spreadDistance)||0,o=g1(e.color)||"black",s=e.inset?"inset ":"";return""+s+t+" "+r+" "+n+" "+i+" "+o},IF=e=>e.map($F).join(", "),PF=e=>{var t=Object.keys(e)[0],r=e[t];if(t==="matrix"||t==="matrix3d")return t+"("+r.join(",")+")";var n=pn(r,t);return t+"("+n+")"},kF=e=>e.map(PF).join(" "),MF=e=>e.map(t=>pn(t)).join(" "),DF={borderBottomEndRadius:"borderEndEndRadius",borderBottomStartRadius:"borderEndStartRadius",borderTopEndRadius:"borderStartEndRadius",borderTopStartRadius:"borderStartStartRadius",borderEndColor:"borderInlineEndColor",borderEndStyle:"borderInlineEndStyle",borderEndWidth:"borderInlineEndWidth",borderStartColor:"borderInlineStartColor",borderStartStyle:"borderInlineStartStyle",borderStartWidth:"borderInlineStartWidth",end:"insetInlineEnd",marginEnd:"marginInlineEnd",marginHorizontal:"marginInline",marginStart:"marginInlineStart",marginVertical:"marginBlock",paddingEnd:"paddingInlineEnd",paddingHorizontal:"paddingInline",paddingStart:"paddingInlineStart",paddingVertical:"paddingBlock",start:"insetInlineStart"},LF={elevation:!0,overlayColor:!0,resizeMode:!0,tintColor:!0},eI=function(t,r){r===void 0&&(r={});var n=t||OF,i={};if(r.shadow,n.shadowColor!=null||n.shadowOffset!=null||n.shadowOpacity!=null||n.shadowRadius!=null){var o=TF(n);o!=null&&(i.boxShadow=o)}if(r.textShadow,n.textShadowColor!=null||n.textShadowOffset!=null||n.textShadowRadius!=null){var s=AF(n);if(s!=null&&i.textShadow==null){var u=n.textShadow,c=u?u+", "+s:s;i.textShadow=c}}for(var f in n)if(!(LF[f]!=null||f==="shadowColor"||f==="shadowOffset"||f==="shadowOpacity"||f==="shadowRadius"||f==="textShadowColor"||f==="textShadowOffset"||f==="textShadowRadius")){var d=n[f],g=DF[f]||f,h=d;if(!(!Object.prototype.hasOwnProperty.call(n,f)||g!==f&&n[g]!=null))if(g==="aspectRatio"&&typeof h=="number")i[g]=h.toString();else if(g==="boxShadow"){Array.isArray(h)&&(h=IF(h));var b=i.boxShadow;i.boxShadow=b?h+", "+b:h}else g==="fontVariant"?(Array.isArray(h)&&h.length>0&&(h=h.join(" ")),i[g]=h):g==="textAlignVertical"?n.verticalAlign==null&&(i.verticalAlign=h==="center"?"middle":h):g==="transform"?(Array.isArray(h)&&(h=kF(h)),i.transform=h):g==="transformOrigin"?(Array.isArray(h)&&(h=MF(h)),i.transformOrigin=h):i[g]=h}return i},_u={},$E;function FF(){if($E)return _u;$E=1,Object.defineProperty(_u,"__esModule",{value:!0}),_u.styleq=void 0;var e=new WeakMap,t="$$css";function r(i){var o,s,u;return i!=null&&(o=i.disableCache===!0,s=i.disableMix===!0,u=i.transform),function(){for(var f=[],d="",g=null,h=o?null:e,b=new Array(arguments.length),v=0;v<arguments.length;v++)b[v]=arguments[v];for(;b.length>0;){var S=b.pop();if(!(S==null||S===!1)){if(Array.isArray(S)){for(var y=0;y<S.length;y++)b.push(S[y]);continue}var E=u!=null?u(S):S;if(E.$$css){var x="";if(h!=null&&h.has(E)){var T=h.get(E);T!=null&&(x=T[0],f.push.apply(f,T[1]),h=T[2])}else{var A=[];for(var R in E){var $=E[R];R!==t&&(typeof $=="string"||$===null?f.includes(R)||(f.push(R),h!=null&&A.push(R),typeof $=="string"&&(x+=x?" "+$:$)):console.error("styleq: ".concat(R," typeof ").concat(String($),' is not "string" or "null".')))}if(h!=null){var O=new WeakMap;h.set(E,[x,A,O]),h=O}}x&&(d=d?x+" "+d:x)}else if(s)g==null&&(g={}),g=Object.assign({},E,g);else{var I=null;for(var L in E){var F=E[L];F!==void 0&&(f.includes(L)||(F!=null&&(g==null&&(g={}),I==null&&(I={}),I[L]=F),f.push(L),h=null))}I!=null&&(g=Object.assign(I,g))}}}var q=[d,g];return q}}var n=r();return _u.styleq=n,n.factory=r,_u}var NF=FF(),jF=["writingDirection"],tI=new WeakMap,gp=m1(),rI={shadow:!0,textShadow:!0};function zF(e,t){t===void 0&&(t={});var r=t,n=r.writingDirection,i=Ic(r,jF),o=n==="rtl";return NF.styleq.factory({transform(s){var u=tI.get(s);return u!=null?_F.localizeStyle(u,o):eI(s,me(me({},rI),i))}})(e)}function nI(e){e.forEach(t=>{var r=t[0],n=t[1];gp!=null&&r.forEach(i=>{gp.insert(i,n)})})}function BF(e){var t=fF(eI(e,rI)),r=t[0],n=t[1];return nI(n),r}function VF(e,t){var r=dF(e,t),n=r[0],i=r[1];return nI(i),n}var iI={position:"absolute",left:0,right:0,top:0,bottom:0},UF=oI({x:me({},iI)}).x;function oI(e){return Object.keys(e).forEach(t=>{var r=e[t];if(r!=null&&r.$$css!==!0){var n;t.indexOf("$raw")>-1?n=VF(r,t.split("$raw")[0]):n=BF(r),tI.set(r,n)}}),e}function HF(e,t){return[e,t]}function WF(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n=t.flat(1/0),i={},o=0;o<n.length;o++){var s=n[o];s!=null&&typeof s=="object"&&Object.assign(i,s)}return i}function qF(){return{id:gp.id,textContent:gp.getTextContent()}}function aa(e,t){t===void 0&&(t={});var r=t.writingDirection==="rtl",n=zF(e,t);return Array.isArray(n)&&n[1]!=null&&(n[1]=pF(n[1],r)),n}aa.absoluteFill=UF;aa.absoluteFillObject=iI;aa.create=oI;aa.compose=HF;aa.flatten=WF;aa.getSheet=qF;aa.hairlineWidth=1;Rs&&window.__REACT_DEVTOOLS_GLOBAL_HOOK__&&(window.__REACT_DEVTOOLS_GLOBAL_HOOK__.resolveRNStyle=aa.flatten);var Pc=aa,GF=["aria-activedescendant","accessibilityActiveDescendant","aria-atomic","accessibilityAtomic","aria-autocomplete","accessibilityAutoComplete","aria-busy","accessibilityBusy","aria-checked","accessibilityChecked","aria-colcount","accessibilityColumnCount","aria-colindex","accessibilityColumnIndex","aria-colspan","accessibilityColumnSpan","aria-controls","accessibilityControls","aria-current","accessibilityCurrent","aria-describedby","accessibilityDescribedBy","aria-details","accessibilityDetails","aria-disabled","accessibilityDisabled","aria-errormessage","accessibilityErrorMessage","aria-expanded","accessibilityExpanded","aria-flowto","accessibilityFlowTo","aria-haspopup","accessibilityHasPopup","aria-hidden","accessibilityHidden","aria-invalid","accessibilityInvalid","aria-keyshortcuts","accessibilityKeyShortcuts","aria-label","accessibilityLabel","aria-labelledby","accessibilityLabelledBy","aria-level","accessibilityLevel","aria-live","accessibilityLiveRegion","aria-modal","accessibilityModal","aria-multiline","accessibilityMultiline","aria-multiselectable","accessibilityMultiSelectable","aria-orientation","accessibilityOrientation","aria-owns","accessibilityOwns","aria-placeholder","accessibilityPlaceholder","aria-posinset","accessibilityPosInSet","aria-pressed","accessibilityPressed","aria-readonly","accessibilityReadOnly","aria-required","accessibilityRequired","role","accessibilityRole","aria-roledescription","accessibilityRoleDescription","aria-rowcount","accessibilityRowCount","aria-rowindex","accessibilityRowIndex","aria-rowspan","accessibilityRowSpan","aria-selected","accessibilitySelected","aria-setsize","accessibilitySetSize","aria-sort","accessibilitySort","aria-valuemax","accessibilityValueMax","aria-valuemin","accessibilityValueMin","aria-valuenow","accessibilityValueNow","aria-valuetext","accessibilityValueText","dataSet","focusable","id","nativeID","pointerEvents","style","tabIndex","testID"],XF={},KF=Object.prototype.hasOwnProperty,YF=Array.isArray,JF=/[A-Z]/g;function QF(e){return"-"+e.toLowerCase()}function ZF(e){return e.replace(JF,QF)}function Zs(e){return YF(e)?e.join(" "):e}var eN=Pc.create({auto:{pointerEvents:"auto"},"box-none":{pointerEvents:"box-none"},"box-only":{pointerEvents:"box-only"},none:{pointerEvents:"none"}}),tN=(e,t,r)=>{t||(t=XF);var n=t,i=n["aria-activedescendant"],o=n.accessibilityActiveDescendant,s=n["aria-atomic"],u=n.accessibilityAtomic,c=n["aria-autocomplete"],f=n.accessibilityAutoComplete,d=n["aria-busy"],g=n.accessibilityBusy,h=n["aria-checked"],b=n.accessibilityChecked,v=n["aria-colcount"],S=n.accessibilityColumnCount,y=n["aria-colindex"],E=n.accessibilityColumnIndex,x=n["aria-colspan"],T=n.accessibilityColumnSpan,A=n["aria-controls"],R=n.accessibilityControls,$=n["aria-current"],O=n.accessibilityCurrent,I=n["aria-describedby"],L=n.accessibilityDescribedBy,F=n["aria-details"],q=n.accessibilityDetails,z=n["aria-disabled"],B=n.accessibilityDisabled,N=n["aria-errormessage"],j=n.accessibilityErrorMessage,H=n["aria-expanded"],X=n.accessibilityExpanded,M=n["aria-flowto"],Q=n.accessibilityFlowTo,W=n["aria-haspopup"],D=n.accessibilityHasPopup,P=n["aria-hidden"],G=n.accessibilityHidden,Z=n["aria-invalid"],te=n.accessibilityInvalid,K=n["aria-keyshortcuts"],be=n.accessibilityKeyShortcuts,ae=n["aria-label"],Se=n.accessibilityLabel,he=n["aria-labelledby"],Ee=n.accessibilityLabelledBy,we=n["aria-level"],Te=n.accessibilityLevel,Ce=n["aria-live"],_e=n.accessibilityLiveRegion,$e=n["aria-modal"],ke=n.accessibilityModal,Ge=n["aria-multiline"],Qe=n.accessibilityMultiline,je=n["aria-multiselectable"],ze=n.accessibilityMultiSelectable,Ye=n["aria-orientation"],Ue=n.accessibilityOrientation,Re=n["aria-owns"],Xe=n.accessibilityOwns,ct=n["aria-placeholder"],Pt=n.accessibilityPlaceholder,ht=n["aria-posinset"],Ft=n.accessibilityPosInSet,It=n["aria-pressed"],ne=n.accessibilityPressed,se=n["aria-readonly"],pe=n.accessibilityReadOnly,Y=n["aria-required"],V=n.accessibilityRequired;n.role,n.accessibilityRole;var ee=n["aria-roledescription"],Oe=n.accessibilityRoleDescription,le=n["aria-rowcount"],fe=n.accessibilityRowCount,ve=n["aria-rowindex"],Ie=n.accessibilityRowIndex,De=n["aria-rowspan"],Be=n.accessibilityRowSpan,Ze=n["aria-selected"],et=n.accessibilitySelected,tt=n["aria-setsize"],Bt=n.accessibilitySetSize,dt=n["aria-sort"],gt=n.accessibilitySort,wt=n["aria-valuemax"],vt=n.accessibilityValueMax,bt=n["aria-valuemin"],Ot=n.accessibilityValueMin,Vt=n["aria-valuenow"],ur=n.accessibilityValueNow,gr=n["aria-valuetext"],Sr=n.accessibilityValueText,Or=n.dataSet,Dr=n.focusable,Lr=n.id,vr=n.nativeID,yn=n.pointerEvents,qt=n.style,nr=n.tabIndex,Tr=n.testID,Ne=Ic(n,GF),oi=z||B,Gt=B$.propsToAriaRole(t),ai=i??o;ai!=null&&(Ne["aria-activedescendant"]=ai);var Ao=s!=null?i:u;Ao!=null&&(Ne["aria-atomic"]=Ao);var Ut=c??f;Ut!=null&&(Ne["aria-autocomplete"]=Ut);var si=d??g;si!=null&&(Ne["aria-busy"]=si);var Di=h??b;Di!=null&&(Ne["aria-checked"]=Di);var $o=v??S;$o!=null&&(Ne["aria-colcount"]=$o);var li=y??E;li!=null&&(Ne["aria-colindex"]=li);var Io=x??T;Io!=null&&(Ne["aria-colspan"]=Io);var Dn=A??R;Dn!=null&&(Ne["aria-controls"]=Zs(Dn));var an=$??O;an!=null&&(Ne["aria-current"]=an);var wr=I??L;wr!=null&&(Ne["aria-describedby"]=Zs(wr));var ui=F??q;ui!=null&&(Ne["aria-details"]=ui),oi===!0&&(Ne["aria-disabled"]=!0,(e==="button"||e==="form"||e==="input"||e==="select"||e==="textarea")&&(Ne.disabled=!0));var mr=N??j;mr!=null&&(Ne["aria-errormessage"]=mr);var Li=H??X;Li!=null&&(Ne["aria-expanded"]=Li);var Ur=M??Q;Ur!=null&&(Ne["aria-flowto"]=Zs(Ur));var Ln=W??D;Ln!=null&&(Ne["aria-haspopup"]=Ln);var Hr=P??G;Hr===!0&&(Ne["aria-hidden"]=Hr);var Wr=Z??te;Wr!=null&&(Ne["aria-invalid"]=Wr);var bn=K??be;bn!=null&&(Ne["aria-keyshortcuts"]=Zs(bn));var Fi=ae??Se;Fi!=null&&(Ne["aria-label"]=Fi);var Po=he??Ee;Po!=null&&(Ne["aria-labelledby"]=Zs(Po));var ko=we??Te;ko!=null&&(Ne["aria-level"]=ko);var ci=Ce??_e;ci!=null&&(Ne["aria-live"]=ci==="none"?"off":ci);var Mo=$e??ke;Mo!=null&&(Ne["aria-modal"]=Mo);var lo=Ge??Qe;lo!=null&&(Ne["aria-multiline"]=lo);var Fn=je??ze;Fn!=null&&(Ne["aria-multiselectable"]=Fn);var ua=Ye??Ue;ua!=null&&(Ne["aria-orientation"]=ua);var uo=Re??Xe;uo!=null&&(Ne["aria-owns"]=Zs(uo));var xt=ct??Pt;xt!=null&&(Ne["aria-placeholder"]=xt);var Do=ht??Ft;Do!=null&&(Ne["aria-posinset"]=Do);var Lo=It??ne;Lo!=null&&(Ne["aria-pressed"]=Lo);var co=se??pe;co!=null&&(Ne["aria-readonly"]=co,(e==="input"||e==="select"||e==="textarea")&&(Ne.readOnly=!0));var qr=Y??V;qr!=null&&(Ne["aria-required"]=qr,(e==="input"||e==="select"||e==="textarea")&&(Ne.required=V)),Gt!=null&&(Ne.role=Gt==="none"?"presentation":Gt);var Ni=ee??Oe;Ni!=null&&(Ne["aria-roledescription"]=Ni);var Fo=le??fe;Fo!=null&&(Ne["aria-rowcount"]=Fo);var No=ve??Ie;No!=null&&(Ne["aria-rowindex"]=No);var fi=De??Be;fi!=null&&(Ne["aria-rowspan"]=fi);var Jt=Ze??et;Jt!=null&&(Ne["aria-selected"]=Jt);var xr=tt??Bt;xr!=null&&(Ne["aria-setsize"]=xr);var Ar=dt??gt;Ar!=null&&(Ne["aria-sort"]=Ar);var Fr=wt??vt;Fr!=null&&(Ne["aria-valuemax"]=Fr);var sn=bt??Ot;sn!=null&&(Ne["aria-valuemin"]=sn);var Gr=Vt??ur;Gr!=null&&(Ne["aria-valuenow"]=Gr);var jo=gr??Sr;if(jo!=null&&(Ne["aria-valuetext"]=jo),Or!=null){for(var fo in Or)if(KF.call(Or,fo)){var Ve=ZF(fo),nt=Or[fo];nt!=null&&(Ne["data-"+Ve]=nt)}}nr===0||nr==="0"||nr===-1||nr==="-1"?Ne.tabIndex=nr:(Dr===!1&&(Ne.tabIndex="-1"),e==="a"||e==="button"||e==="input"||e==="select"||e==="textarea"?(Dr===!1||B===!0)&&(Ne.tabIndex="-1"):Gt==="button"||Gt==="checkbox"||Gt==="link"||Gt==="radio"||Gt==="textbox"||Gt==="switch"?Dr!==!1&&(Ne.tabIndex="0"):Dr===!0&&(Ne.tabIndex="0"));var kt=Pc([qt,yn&&eN[yn]],me({writingDirection:"ltr"},r)),Nt=kt[0],Mt=kt[1];Nt&&(Ne.className=Nt),Mt&&(Ne.style=Mt);var zo=Lr??vr;return zo!=null&&(Ne.id=zo),Tr!=null&&(Ne["data-testid"]=Tr),Ne.type==null&&e==="button"&&(Ne.type="button"),Ne},av={exports:{}},St={},IE;function rN(){if(IE)return St;IE=1;/**
5
+ * @license React
6
+ * react.production.min.js
7
+ *
8
+ * Copyright (c) Facebook, Inc. and its affiliates.
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE file in the root directory of this source tree.
12
+ */var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),g=Symbol.iterator;function h(D){return D===null||typeof D!="object"?null:(D=g&&D[g]||D["@@iterator"],typeof D=="function"?D:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,S={};function y(D,P,G){this.props=D,this.context=P,this.refs=S,this.updater=G||b}y.prototype.isReactComponent={},y.prototype.setState=function(D,P){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,P,"setState")},y.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function E(){}E.prototype=y.prototype;function x(D,P,G){this.props=D,this.context=P,this.refs=S,this.updater=G||b}var T=x.prototype=new E;T.constructor=x,v(T,y.prototype),T.isPureReactComponent=!0;var A=Array.isArray,R=Object.prototype.hasOwnProperty,$={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function I(D,P,G){var Z,te={},K=null,be=null;if(P!=null)for(Z in P.ref!==void 0&&(be=P.ref),P.key!==void 0&&(K=""+P.key),P)R.call(P,Z)&&!O.hasOwnProperty(Z)&&(te[Z]=P[Z]);var ae=arguments.length-2;if(ae===1)te.children=G;else if(1<ae){for(var Se=Array(ae),he=0;he<ae;he++)Se[he]=arguments[he+2];te.children=Se}if(D&&D.defaultProps)for(Z in ae=D.defaultProps,ae)te[Z]===void 0&&(te[Z]=ae[Z]);return{$$typeof:e,type:D,key:K,ref:be,props:te,_owner:$.current}}function L(D,P){return{$$typeof:e,type:D.type,key:P,ref:D.ref,props:D.props,_owner:D._owner}}function F(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function q(D){var P={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(G){return P[G]})}var z=/\/+/g;function B(D,P){return typeof D=="object"&&D!==null&&D.key!=null?q(""+D.key):P.toString(36)}function N(D,P,G,Z,te){var K=typeof D;(K==="undefined"||K==="boolean")&&(D=null);var be=!1;if(D===null)be=!0;else switch(K){case"string":case"number":be=!0;break;case"object":switch(D.$$typeof){case e:case t:be=!0}}if(be)return be=D,te=te(be),D=Z===""?"."+B(be,0):Z,A(te)?(G="",D!=null&&(G=D.replace(z,"$&/")+"/"),N(te,P,G,"",function(he){return he})):te!=null&&(F(te)&&(te=L(te,G+(!te.key||be&&be.key===te.key?"":(""+te.key).replace(z,"$&/")+"/")+D)),P.push(te)),1;if(be=0,Z=Z===""?".":Z+":",A(D))for(var ae=0;ae<D.length;ae++){K=D[ae];var Se=Z+B(K,ae);be+=N(K,P,G,Se,te)}else if(Se=h(D),typeof Se=="function")for(D=Se.call(D),ae=0;!(K=D.next()).done;)K=K.value,Se=Z+B(K,ae++),be+=N(K,P,G,Se,te);else if(K==="object")throw P=String(D),Error("Objects are not valid as a React child (found: "+(P==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.");return be}function j(D,P,G){if(D==null)return D;var Z=[],te=0;return N(D,Z,"","",function(K){return P.call(G,K,te++)}),Z}function H(D){if(D._status===-1){var P=D._result;P=P(),P.then(function(G){(D._status===0||D._status===-1)&&(D._status=1,D._result=G)},function(G){(D._status===0||D._status===-1)&&(D._status=2,D._result=G)}),D._status===-1&&(D._status=0,D._result=P)}if(D._status===1)return D._result.default;throw D._result}var X={current:null},M={transition:null},Q={ReactCurrentDispatcher:X,ReactCurrentBatchConfig:M,ReactCurrentOwner:$};function W(){throw Error("act(...) is not supported in production builds of React.")}return St.Children={map:j,forEach:function(D,P,G){j(D,function(){P.apply(this,arguments)},G)},count:function(D){var P=0;return j(D,function(){P++}),P},toArray:function(D){return j(D,function(P){return P})||[]},only:function(D){if(!F(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},St.Component=y,St.Fragment=r,St.Profiler=i,St.PureComponent=x,St.StrictMode=n,St.Suspense=c,St.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Q,St.act=W,St.cloneElement=function(D,P,G){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var Z=v({},D.props),te=D.key,K=D.ref,be=D._owner;if(P!=null){if(P.ref!==void 0&&(K=P.ref,be=$.current),P.key!==void 0&&(te=""+P.key),D.type&&D.type.defaultProps)var ae=D.type.defaultProps;for(Se in P)R.call(P,Se)&&!O.hasOwnProperty(Se)&&(Z[Se]=P[Se]===void 0&&ae!==void 0?ae[Se]:P[Se])}var Se=arguments.length-2;if(Se===1)Z.children=G;else if(1<Se){ae=Array(Se);for(var he=0;he<Se;he++)ae[he]=arguments[he+2];Z.children=ae}return{$$typeof:e,type:D.type,key:te,ref:K,props:Z,_owner:be}},St.createContext=function(D){return D={$$typeof:s,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},D.Provider={$$typeof:o,_context:D},D.Consumer=D},St.createElement=I,St.createFactory=function(D){var P=I.bind(null,D);return P.type=D,P},St.createRef=function(){return{current:null}},St.forwardRef=function(D){return{$$typeof:u,render:D}},St.isValidElement=F,St.lazy=function(D){return{$$typeof:d,_payload:{_status:-1,_result:D},_init:H}},St.memo=function(D,P){return{$$typeof:f,type:D,compare:P===void 0?null:P}},St.startTransition=function(D){var P=M.transition;M.transition={};try{D()}finally{M.transition=P}},St.unstable_act=W,St.useCallback=function(D,P){return X.current.useCallback(D,P)},St.useContext=function(D){return X.current.useContext(D)},St.useDebugValue=function(){},St.useDeferredValue=function(D){return X.current.useDeferredValue(D)},St.useEffect=function(D,P){return X.current.useEffect(D,P)},St.useId=function(){return X.current.useId()},St.useImperativeHandle=function(D,P,G){return X.current.useImperativeHandle(D,P,G)},St.useInsertionEffect=function(D,P){return X.current.useInsertionEffect(D,P)},St.useLayoutEffect=function(D,P){return X.current.useLayoutEffect(D,P)},St.useMemo=function(D,P){return X.current.useMemo(D,P)},St.useReducer=function(D,P,G){return X.current.useReducer(D,P,G)},St.useRef=function(D){return X.current.useRef(D)},St.useState=function(D){return X.current.useState(D)},St.useSyncExternalStore=function(D,P,G){return X.current.useSyncExternalStore(D,P,G)},St.useTransition=function(){return X.current.useTransition()},St.version="18.3.1",St}var PE;function y1(){return PE||(PE=1,av.exports=rN()),av.exports}var C=y1();const oe=Mr(C),Bp=TD({__proto__:null,default:oe},[C]);var nN=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),kE=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","far","glk","he","iw","khw","ks","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]),ME=new Map;function iN(e){var t=ME.get(e);if(t)return t;var r=!1;if(Intl.Locale)try{var n=new Intl.Locale(e).maximize().script;r=nN.has(n)}catch{var i=e.split("-")[0];r=kE.has(i)}else{var o=e.split("-")[0];r=kE.has(o)}return ME.set(e,r),r}var oN={direction:"ltr",locale:"en-US"},aI=C.createContext(oN);function sI(e){return iN(e)?"rtl":"ltr"}function aN(e){var t=e.direction,r=e.locale,n=e.children,i=t||r;return i?oe.createElement(aI.Provider,{children:n,value:{direction:r?sI(r):t,locale:r}}):n}function sN(){return C.useContext(aI)}var lN=(e,t,r)=>{var n;e&&e.constructor===String&&(n=B$.propsToAccessibilityComponent(t));var i=n||e,o=tN(i,t,r),s=oe.createElement(i,o),u=o.dir?oe.createElement(aN,{children:s,direction:o.dir,locale:o.lang}):s;return u},cd={},sv={exports:{}},Rn={},lv={exports:{}},uv={},DE;function uN(){return DE||(DE=1,(function(e){/**
13
+ * @license React
14
+ * scheduler.production.min.js
15
+ *
16
+ * Copyright (c) Facebook, Inc. and its affiliates.
17
+ *
18
+ * This source code is licensed under the MIT license found in the
19
+ * LICENSE file in the root directory of this source tree.
20
+ */function t(M,Q){var W=M.length;M.push(Q);e:for(;0<W;){var D=W-1>>>1,P=M[D];if(0<i(P,Q))M[D]=Q,M[W]=P,W=D;else break e}}function r(M){return M.length===0?null:M[0]}function n(M){if(M.length===0)return null;var Q=M[0],W=M.pop();if(W!==Q){M[0]=W;e:for(var D=0,P=M.length,G=P>>>1;D<G;){var Z=2*(D+1)-1,te=M[Z],K=Z+1,be=M[K];if(0>i(te,W))K<P&&0>i(be,te)?(M[D]=be,M[K]=W,D=K):(M[D]=te,M[Z]=W,D=Z);else if(K<P&&0>i(be,W))M[D]=be,M[K]=W,D=K;else break e}}return Q}function i(M,Q){var W=M.sortIndex-Q.sortIndex;return W!==0?W:M.id-Q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,u=s.now();e.unstable_now=function(){return s.now()-u}}var c=[],f=[],d=1,g=null,h=3,b=!1,v=!1,S=!1,y=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T(M){for(var Q=r(f);Q!==null;){if(Q.callback===null)n(f);else if(Q.startTime<=M)n(f),Q.sortIndex=Q.expirationTime,t(c,Q);else break;Q=r(f)}}function A(M){if(S=!1,T(M),!v)if(r(c)!==null)v=!0,H(R);else{var Q=r(f);Q!==null&&X(A,Q.startTime-M)}}function R(M,Q){v=!1,S&&(S=!1,E(I),I=-1),b=!0;var W=h;try{for(T(Q),g=r(c);g!==null&&(!(g.expirationTime>Q)||M&&!q());){var D=g.callback;if(typeof D=="function"){g.callback=null,h=g.priorityLevel;var P=D(g.expirationTime<=Q);Q=e.unstable_now(),typeof P=="function"?g.callback=P:g===r(c)&&n(c),T(Q)}else n(c);g=r(c)}if(g!==null)var G=!0;else{var Z=r(f);Z!==null&&X(A,Z.startTime-Q),G=!1}return G}finally{g=null,h=W,b=!1}}var $=!1,O=null,I=-1,L=5,F=-1;function q(){return!(e.unstable_now()-F<L)}function z(){if(O!==null){var M=e.unstable_now();F=M;var Q=!0;try{Q=O(!0,M)}finally{Q?B():($=!1,O=null)}}else $=!1}var B;if(typeof x=="function")B=function(){x(z)};else if(typeof MessageChannel<"u"){var N=new MessageChannel,j=N.port2;N.port1.onmessage=z,B=function(){j.postMessage(null)}}else B=function(){y(z,0)};function H(M){O=M,$||($=!0,B())}function X(M,Q){I=y(function(){M(e.unstable_now())},Q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(M){M.callback=null},e.unstable_continueExecution=function(){v||b||(v=!0,H(R))},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return r(c)},e.unstable_next=function(M){switch(h){case 1:case 2:case 3:var Q=3;break;default:Q=h}var W=h;h=Q;try{return M()}finally{h=W}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(M,Q){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var W=h;h=M;try{return Q()}finally{h=W}},e.unstable_scheduleCallback=function(M,Q,W){var D=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?D+W:D):W=D,M){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=W+P,M={id:d++,callback:Q,priorityLevel:M,startTime:W,expirationTime:P,sortIndex:-1},W>D?(M.sortIndex=W,t(f,M),r(c)===null&&M===r(f)&&(S?(E(I),I=-1):S=!0,X(A,W-D))):(M.sortIndex=P,t(c,M),v||b||(v=!0,H(R))),M},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(M){var Q=h;return function(){var W=h;h=Q;try{return M.apply(this,arguments)}finally{h=W}}}})(uv)),uv}var LE;function cN(){return LE||(LE=1,lv.exports=uN()),lv.exports}var FE;function fN(){if(FE)return Rn;FE=1;/**
21
+ * @license React
22
+ * react-dom.production.min.js
23
+ *
24
+ * Copyright (c) Facebook, Inc. and its affiliates.
25
+ *
26
+ * This source code is licensed under the MIT license found in the
27
+ * LICENSE file in the root directory of this source tree.
28
+ */var e=y1(),t=cN();function r(a){for(var l="https://reactjs.org/docs/error-decoder.html?invariant="+a,p=1;p<arguments.length;p++)l+="&args[]="+encodeURIComponent(arguments[p]);return"Minified React error #"+a+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=new Set,i={};function o(a,l){s(a,l),s(a+"Capture",l)}function s(a,l){for(i[a]=l,a=0;a<l.length;a++)n.add(l[a])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d={},g={};function h(a){return c.call(g,a)?!0:c.call(d,a)?!1:f.test(a)?g[a]=!0:(d[a]=!0,!1)}function b(a,l,p,m){if(p!==null&&p.type===0)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":return m?!1:p!==null?!p.acceptsBooleans:(a=a.toLowerCase().slice(0,5),a!=="data-"&&a!=="aria-");default:return!1}}function v(a,l,p,m){if(l===null||typeof l>"u"||b(a,l,p,m))return!0;if(m)return!1;if(p!==null)switch(p.type){case 3:return!l;case 4:return l===!1;case 5:return isNaN(l);case 6:return isNaN(l)||1>l}return!1}function S(a,l,p,m,w,_,k){this.acceptsBooleans=l===2||l===3||l===4,this.attributeName=m,this.attributeNamespace=w,this.mustUseProperty=p,this.propertyName=a,this.type=l,this.sanitizeURL=_,this.removeEmptyString=k}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){y[a]=new S(a,0,!1,a,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var l=a[0];y[l]=new S(l,1,!1,a[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(a){y[a]=new S(a,2,!1,a.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){y[a]=new S(a,2,!1,a,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){y[a]=new S(a,3,!1,a.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(a){y[a]=new S(a,3,!0,a,null,!1,!1)}),["capture","download"].forEach(function(a){y[a]=new S(a,4,!1,a,null,!1,!1)}),["cols","rows","size","span"].forEach(function(a){y[a]=new S(a,6,!1,a,null,!1,!1)}),["rowSpan","start"].forEach(function(a){y[a]=new S(a,5,!1,a.toLowerCase(),null,!1,!1)});var E=/[\-:]([a-z])/g;function x(a){return a[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var l=a.replace(E,x);y[l]=new S(l,1,!1,a,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var l=a.replace(E,x);y[l]=new S(l,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(a){var l=a.replace(E,x);y[l]=new S(l,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(a){y[a]=new S(a,1,!1,a.toLowerCase(),null,!1,!1)}),y.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(a){y[a]=new S(a,1,!1,a.toLowerCase(),null,!0,!0)});function T(a,l,p,m){var w=y.hasOwnProperty(l)?y[l]:null;(w!==null?w.type!==0:m||!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(v(l,p,w,m)&&(p=null),m||w===null?h(l)&&(p===null?a.removeAttribute(l):a.setAttribute(l,""+p)):w.mustUseProperty?a[w.propertyName]=p===null?w.type===3?!1:"":p:(l=w.attributeName,m=w.attributeNamespace,p===null?a.removeAttribute(l):(w=w.type,p=w===3||w===4&&p===!0?"":""+p,m?a.setAttributeNS(m,l,p):a.setAttribute(l,p))))}var A=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,R=Symbol.for("react.element"),$=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),q=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),X=Symbol.for("react.offscreen"),M=Symbol.iterator;function Q(a){return a===null||typeof a!="object"?null:(a=M&&a[M]||a["@@iterator"],typeof a=="function"?a:null)}var W=Object.assign,D;function P(a){if(D===void 0)try{throw Error()}catch(p){var l=p.stack.trim().match(/\n( *(at )?)/);D=l&&l[1]||""}return`
29
+ `+D+a}var G=!1;function Z(a,l){if(!a||G)return"";G=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(l)if(l=function(){throw Error()},Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(ge){var m=ge}Reflect.construct(a,[],l)}else{try{l.call()}catch(ge){m=ge}a.call(l.prototype)}else{try{throw Error()}catch(ge){m=ge}a()}}catch(ge){if(ge&&m&&typeof ge.stack=="string"){for(var w=ge.stack.split(`
30
+ `),_=m.stack.split(`
31
+ `),k=w.length-1,J=_.length-1;1<=k&&0<=J&&w[k]!==_[J];)J--;for(;1<=k&&0<=J;k--,J--)if(w[k]!==_[J]){if(k!==1||J!==1)do if(k--,J--,0>J||w[k]!==_[J]){var re=`
32
+ `+w[k].replace(" at new "," at ");return a.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",a.displayName)),re}while(1<=k&&0<=J);break}}}finally{G=!1,Error.prepareStackTrace=p}return(a=a?a.displayName||a.name:"")?P(a):""}function te(a){switch(a.tag){case 5:return P(a.type);case 16:return P("Lazy");case 13:return P("Suspense");case 19:return P("SuspenseList");case 0:case 2:case 15:return a=Z(a.type,!1),a;case 11:return a=Z(a.type.render,!1),a;case 1:return a=Z(a.type,!0),a;default:return""}}function K(a){if(a==null)return null;if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case O:return"Fragment";case $:return"Portal";case L:return"Profiler";case I:return"StrictMode";case B:return"Suspense";case N:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case q:return(a.displayName||"Context")+".Consumer";case F:return(a._context.displayName||"Context")+".Provider";case z:var l=a.render;return a=a.displayName,a||(a=l.displayName||l.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case j:return l=a.displayName||null,l!==null?l:K(a.type)||"Memo";case H:l=a._payload,a=a._init;try{return K(a(l))}catch{}}return null}function be(a){var l=a.type;switch(a.tag){case 24:return"Cache";case 9:return(l.displayName||"Context")+".Consumer";case 10:return(l._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=l.render,a=a.displayName||a.name||"",l.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return l;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return K(l);case 8:return l===I?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l}return null}function ae(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Se(a){var l=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function he(a){var l=Se(a)?"checked":"value",p=Object.getOwnPropertyDescriptor(a.constructor.prototype,l),m=""+a[l];if(!a.hasOwnProperty(l)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var w=p.get,_=p.set;return Object.defineProperty(a,l,{configurable:!0,get:function(){return w.call(this)},set:function(k){m=""+k,_.call(this,k)}}),Object.defineProperty(a,l,{enumerable:p.enumerable}),{getValue:function(){return m},setValue:function(k){m=""+k},stopTracking:function(){a._valueTracker=null,delete a[l]}}}}function Ee(a){a._valueTracker||(a._valueTracker=he(a))}function we(a){if(!a)return!1;var l=a._valueTracker;if(!l)return!0;var p=l.getValue(),m="";return a&&(m=Se(a)?a.checked?"true":"false":a.value),a=m,a!==p?(l.setValue(a),!0):!1}function Te(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}function Ce(a,l){var p=l.checked;return W({},l,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p??a._wrapperState.initialChecked})}function _e(a,l){var p=l.defaultValue==null?"":l.defaultValue,m=l.checked!=null?l.checked:l.defaultChecked;p=ae(l.value!=null?l.value:p),a._wrapperState={initialChecked:m,initialValue:p,controlled:l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null}}function $e(a,l){l=l.checked,l!=null&&T(a,"checked",l,!1)}function ke(a,l){$e(a,l);var p=ae(l.value),m=l.type;if(p!=null)m==="number"?(p===0&&a.value===""||a.value!=p)&&(a.value=""+p):a.value!==""+p&&(a.value=""+p);else if(m==="submit"||m==="reset"){a.removeAttribute("value");return}l.hasOwnProperty("value")?Qe(a,l.type,p):l.hasOwnProperty("defaultValue")&&Qe(a,l.type,ae(l.defaultValue)),l.checked==null&&l.defaultChecked!=null&&(a.defaultChecked=!!l.defaultChecked)}function Ge(a,l,p){if(l.hasOwnProperty("value")||l.hasOwnProperty("defaultValue")){var m=l.type;if(!(m!=="submit"&&m!=="reset"||l.value!==void 0&&l.value!==null))return;l=""+a._wrapperState.initialValue,p||l===a.value||(a.value=l),a.defaultValue=l}p=a.name,p!==""&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,p!==""&&(a.name=p)}function Qe(a,l,p){(l!=="number"||Te(a.ownerDocument)!==a)&&(p==null?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+p&&(a.defaultValue=""+p))}var je=Array.isArray;function ze(a,l,p,m){if(a=a.options,l){l={};for(var w=0;w<p.length;w++)l["$"+p[w]]=!0;for(p=0;p<a.length;p++)w=l.hasOwnProperty("$"+a[p].value),a[p].selected!==w&&(a[p].selected=w),w&&m&&(a[p].defaultSelected=!0)}else{for(p=""+ae(p),l=null,w=0;w<a.length;w++){if(a[w].value===p){a[w].selected=!0,m&&(a[w].defaultSelected=!0);return}l!==null||a[w].disabled||(l=a[w])}l!==null&&(l.selected=!0)}}function Ye(a,l){if(l.dangerouslySetInnerHTML!=null)throw Error(r(91));return W({},l,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})}function Ue(a,l){var p=l.value;if(p==null){if(p=l.children,l=l.defaultValue,p!=null){if(l!=null)throw Error(r(92));if(je(p)){if(1<p.length)throw Error(r(93));p=p[0]}l=p}l==null&&(l=""),p=l}a._wrapperState={initialValue:ae(p)}}function Re(a,l){var p=ae(l.value),m=ae(l.defaultValue);p!=null&&(p=""+p,p!==a.value&&(a.value=p),l.defaultValue==null&&a.defaultValue!==p&&(a.defaultValue=p)),m!=null&&(a.defaultValue=""+m)}function Xe(a){var l=a.textContent;l===a._wrapperState.initialValue&&l!==""&&l!==null&&(a.value=l)}function ct(a){switch(a){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Pt(a,l){return a==null||a==="http://www.w3.org/1999/xhtml"?ct(l):a==="http://www.w3.org/2000/svg"&&l==="foreignObject"?"http://www.w3.org/1999/xhtml":a}var ht,Ft=(function(a){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(l,p,m,w){MSApp.execUnsafeLocalFunction(function(){return a(l,p,m,w)})}:a})(function(a,l){if(a.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in a)a.innerHTML=l;else{for(ht=ht||document.createElement("div"),ht.innerHTML="<svg>"+l.valueOf().toString()+"</svg>",l=ht.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}});function It(a,l){if(l){var p=a.firstChild;if(p&&p===a.lastChild&&p.nodeType===3){p.nodeValue=l;return}}a.textContent=l}var ne={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},se=["Webkit","ms","Moz","O"];Object.keys(ne).forEach(function(a){se.forEach(function(l){l=l+a.charAt(0).toUpperCase()+a.substring(1),ne[l]=ne[a]})});function pe(a,l,p){return l==null||typeof l=="boolean"||l===""?"":p||typeof l!="number"||l===0||ne.hasOwnProperty(a)&&ne[a]?(""+l).trim():l+"px"}function Y(a,l){a=a.style;for(var p in l)if(l.hasOwnProperty(p)){var m=p.indexOf("--")===0,w=pe(p,l[p],m);p==="float"&&(p="cssFloat"),m?a.setProperty(p,w):a[p]=w}}var V=W({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ee(a,l){if(l){if(V[a]&&(l.children!=null||l.dangerouslySetInnerHTML!=null))throw Error(r(137,a));if(l.dangerouslySetInnerHTML!=null){if(l.children!=null)throw Error(r(60));if(typeof l.dangerouslySetInnerHTML!="object"||!("__html"in l.dangerouslySetInnerHTML))throw Error(r(61))}if(l.style!=null&&typeof l.style!="object")throw Error(r(62))}}function Oe(a,l){if(a.indexOf("-")===-1)return typeof l.is=="string";switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var le=null;function fe(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var ve=null,Ie=null,De=null;function Be(a){if(a=fu(a)){if(typeof ve!="function")throw Error(r(280));var l=a.stateNode;l&&(l=df(l),ve(a.stateNode,a.type,l))}}function Ze(a){Ie?De?De.push(a):De=[a]:Ie=a}function et(){if(Ie){var a=Ie,l=De;if(De=Ie=null,Be(a),l)for(a=0;a<l.length;a++)Be(l[a])}}function tt(a,l){return a(l)}function Bt(){}var dt=!1;function gt(a,l,p){if(dt)return a(l,p);dt=!0;try{return tt(a,l,p)}finally{dt=!1,(Ie!==null||De!==null)&&(Bt(),et())}}function wt(a,l){var p=a.stateNode;if(p===null)return null;var m=df(p);if(m===null)return null;p=m[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(a=a.type,m=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!m;break e;default:a=!1}if(a)return null;if(p&&typeof p!="function")throw Error(r(231,l,typeof p));return p}var vt=!1;if(u)try{var bt={};Object.defineProperty(bt,"passive",{get:function(){vt=!0}}),window.addEventListener("test",bt,bt),window.removeEventListener("test",bt,bt)}catch{vt=!1}function Ot(a,l,p,m,w,_,k,J,re){var ge=Array.prototype.slice.call(arguments,3);try{l.apply(p,ge)}catch(Pe){this.onError(Pe)}}var Vt=!1,ur=null,gr=!1,Sr=null,Or={onError:function(a){Vt=!0,ur=a}};function Dr(a,l,p,m,w,_,k,J,re){Vt=!1,ur=null,Ot.apply(Or,arguments)}function Lr(a,l,p,m,w,_,k,J,re){if(Dr.apply(this,arguments),Vt){if(Vt){var ge=ur;Vt=!1,ur=null}else throw Error(r(198));gr||(gr=!0,Sr=ge)}}function vr(a){var l=a,p=a;if(a.alternate)for(;l.return;)l=l.return;else{a=l;do l=a,(l.flags&4098)!==0&&(p=l.return),a=l.return;while(a)}return l.tag===3?p:null}function yn(a){if(a.tag===13){var l=a.memoizedState;if(l===null&&(a=a.alternate,a!==null&&(l=a.memoizedState)),l!==null)return l.dehydrated}return null}function qt(a){if(vr(a)!==a)throw Error(r(188))}function nr(a){var l=a.alternate;if(!l){if(l=vr(a),l===null)throw Error(r(188));return l!==a?null:a}for(var p=a,m=l;;){var w=p.return;if(w===null)break;var _=w.alternate;if(_===null){if(m=w.return,m!==null){p=m;continue}break}if(w.child===_.child){for(_=w.child;_;){if(_===p)return qt(w),a;if(_===m)return qt(w),l;_=_.sibling}throw Error(r(188))}if(p.return!==m.return)p=w,m=_;else{for(var k=!1,J=w.child;J;){if(J===p){k=!0,p=w,m=_;break}if(J===m){k=!0,m=w,p=_;break}J=J.sibling}if(!k){for(J=_.child;J;){if(J===p){k=!0,p=_,m=w;break}if(J===m){k=!0,m=_,p=w;break}J=J.sibling}if(!k)throw Error(r(189))}}if(p.alternate!==m)throw Error(r(190))}if(p.tag!==3)throw Error(r(188));return p.stateNode.current===p?a:l}function Tr(a){return a=nr(a),a!==null?Ne(a):null}function Ne(a){if(a.tag===5||a.tag===6)return a;for(a=a.child;a!==null;){var l=Ne(a);if(l!==null)return l;a=a.sibling}return null}var oi=t.unstable_scheduleCallback,Gt=t.unstable_cancelCallback,ai=t.unstable_shouldYield,Ao=t.unstable_requestPaint,Ut=t.unstable_now,si=t.unstable_getCurrentPriorityLevel,Di=t.unstable_ImmediatePriority,$o=t.unstable_UserBlockingPriority,li=t.unstable_NormalPriority,Io=t.unstable_LowPriority,Dn=t.unstable_IdlePriority,an=null,wr=null;function ui(a){if(wr&&typeof wr.onCommitFiberRoot=="function")try{wr.onCommitFiberRoot(an,a,void 0,(a.current.flags&128)===128)}catch{}}var mr=Math.clz32?Math.clz32:Ln,Li=Math.log,Ur=Math.LN2;function Ln(a){return a>>>=0,a===0?32:31-(Li(a)/Ur|0)|0}var Hr=64,Wr=4194304;function bn(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function Fi(a,l){var p=a.pendingLanes;if(p===0)return 0;var m=0,w=a.suspendedLanes,_=a.pingedLanes,k=p&268435455;if(k!==0){var J=k&~w;J!==0?m=bn(J):(_&=k,_!==0&&(m=bn(_)))}else k=p&~w,k!==0?m=bn(k):_!==0&&(m=bn(_));if(m===0)return 0;if(l!==0&&l!==m&&(l&w)===0&&(w=m&-m,_=l&-l,w>=_||w===16&&(_&4194240)!==0))return l;if((m&4)!==0&&(m|=p&16),l=a.entangledLanes,l!==0)for(a=a.entanglements,l&=m;0<l;)p=31-mr(l),w=1<<p,m|=a[p],l&=~w;return m}function Po(a,l){switch(a){case 1:case 2:case 4:return l+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ko(a,l){for(var p=a.suspendedLanes,m=a.pingedLanes,w=a.expirationTimes,_=a.pendingLanes;0<_;){var k=31-mr(_),J=1<<k,re=w[k];re===-1?((J&p)===0||(J&m)!==0)&&(w[k]=Po(J,l)):re<=l&&(a.expiredLanes|=J),_&=~J}}function ci(a){return a=a.pendingLanes&-1073741825,a!==0?a:a&1073741824?1073741824:0}function Mo(){var a=Hr;return Hr<<=1,(Hr&4194240)===0&&(Hr=64),a}function lo(a){for(var l=[],p=0;31>p;p++)l.push(a);return l}function Fn(a,l,p){a.pendingLanes|=l,l!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,l=31-mr(l),a[l]=p}function ua(a,l){var p=a.pendingLanes&~l;a.pendingLanes=l,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=l,a.mutableReadLanes&=l,a.entangledLanes&=l,l=a.entanglements;var m=a.eventTimes;for(a=a.expirationTimes;0<p;){var w=31-mr(p),_=1<<w;l[w]=0,m[w]=-1,a[w]=-1,p&=~_}}function uo(a,l){var p=a.entangledLanes|=l;for(a=a.entanglements;p;){var m=31-mr(p),w=1<<m;w&l|a[m]&l&&(a[m]|=l),p&=~w}}var xt=0;function Do(a){return a&=-a,1<a?4<a?(a&268435455)!==0?16:536870912:4:1}var Lo,co,qr,Ni,Fo,No=!1,fi=[],Jt=null,xr=null,Ar=null,Fr=new Map,sn=new Map,Gr=[],jo="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function fo(a,l){switch(a){case"focusin":case"focusout":Jt=null;break;case"dragenter":case"dragleave":xr=null;break;case"mouseover":case"mouseout":Ar=null;break;case"pointerover":case"pointerout":Fr.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":sn.delete(l.pointerId)}}function Ve(a,l,p,m,w,_){return a===null||a.nativeEvent!==_?(a={blockedOn:l,domEventName:p,eventSystemFlags:m,nativeEvent:_,targetContainers:[w]},l!==null&&(l=fu(l),l!==null&&co(l)),a):(a.eventSystemFlags|=m,l=a.targetContainers,w!==null&&l.indexOf(w)===-1&&l.push(w),a)}function nt(a,l,p,m,w){switch(l){case"focusin":return Jt=Ve(Jt,a,l,p,m,w),!0;case"dragenter":return xr=Ve(xr,a,l,p,m,w),!0;case"mouseover":return Ar=Ve(Ar,a,l,p,m,w),!0;case"pointerover":var _=w.pointerId;return Fr.set(_,Ve(Fr.get(_)||null,a,l,p,m,w)),!0;case"gotpointercapture":return _=w.pointerId,sn.set(_,Ve(sn.get(_)||null,a,l,p,m,w)),!0}return!1}function kt(a){var l=Ha(a.target);if(l!==null){var p=vr(l);if(p!==null){if(l=p.tag,l===13){if(l=yn(p),l!==null){a.blockedOn=l,Fo(a.priority,function(){qr(p)});return}}else if(l===3&&p.stateNode.current.memoizedState.isDehydrated){a.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}a.blockedOn=null}function Nt(a){if(a.blockedOn!==null)return!1;for(var l=a.targetContainers;0<l.length;){var p=wh(a.domEventName,a.eventSystemFlags,l[0],a.nativeEvent);if(p===null){p=a.nativeEvent;var m=new p.constructor(p.type,p);le=m,p.target.dispatchEvent(m),le=null}else return l=fu(p),l!==null&&co(l),a.blockedOn=p,!1;l.shift()}return!0}function Mt(a,l,p){Nt(a)&&p.delete(l)}function zo(){No=!1,Jt!==null&&Nt(Jt)&&(Jt=null),xr!==null&&Nt(xr)&&(xr=null),Ar!==null&&Nt(Ar)&&(Ar=null),Fr.forEach(Mt),sn.forEach(Mt)}function Bo(a,l){a.blockedOn===l&&(a.blockedOn=null,No||(No=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,zo)))}function ca(a){function l(w){return Bo(w,a)}if(0<fi.length){Bo(fi[0],a);for(var p=1;p<fi.length;p++){var m=fi[p];m.blockedOn===a&&(m.blockedOn=null)}}for(Jt!==null&&Bo(Jt,a),xr!==null&&Bo(xr,a),Ar!==null&&Bo(Ar,a),Fr.forEach(l),sn.forEach(l),p=0;p<Gr.length;p++)m=Gr[p],m.blockedOn===a&&(m.blockedOn=null);for(;0<Gr.length&&(p=Gr[0],p.blockedOn===null);)kt(p),p.blockedOn===null&&Gr.shift()}var ji=A.ReactCurrentBatchConfig,Qc=!0;function Z5(a,l,p,m){var w=xt,_=ji.transition;ji.transition=null;try{xt=1,Sh(a,l,p,m)}finally{xt=w,ji.transition=_}}function eM(a,l,p,m){var w=xt,_=ji.transition;ji.transition=null;try{xt=4,Sh(a,l,p,m)}finally{xt=w,ji.transition=_}}function Sh(a,l,p,m){if(Qc){var w=wh(a,l,p,m);if(w===null)Nh(a,l,m,Zc,p),fo(a,m);else if(nt(w,a,l,p,m))m.stopPropagation();else if(fo(a,m),l&4&&-1<jo.indexOf(a)){for(;w!==null;){var _=fu(w);if(_!==null&&Lo(_),_=wh(a,l,p,m),_===null&&Nh(a,l,m,Zc,p),_===w)break;w=_}w!==null&&m.stopPropagation()}else Nh(a,l,m,null,p)}}var Zc=null;function wh(a,l,p,m){if(Zc=null,a=fe(m),a=Ha(a),a!==null)if(l=vr(a),l===null)a=null;else if(p=l.tag,p===13){if(a=yn(l),a!==null)return a;a=null}else if(p===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;a=null}else l!==a&&(a=null);return Zc=a,null}function US(a){switch(a){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(si()){case Di:return 1;case $o:return 4;case li:case Io:return 16;case Dn:return 536870912;default:return 16}default:return 16}}var fa=null,xh=null,ef=null;function HS(){if(ef)return ef;var a,l=xh,p=l.length,m,w="value"in fa?fa.value:fa.textContent,_=w.length;for(a=0;a<p&&l[a]===w[a];a++);var k=p-a;for(m=1;m<=k&&l[p-m]===w[_-m];m++);return ef=w.slice(a,1<m?1-m:void 0)}function tf(a){var l=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&l===13&&(a=13)):a=l,a===10&&(a=13),32<=a||a===13?a:0}function rf(){return!0}function WS(){return!1}function Nn(a){function l(p,m,w,_,k){this._reactName=p,this._targetInst=w,this.type=m,this.nativeEvent=_,this.target=k,this.currentTarget=null;for(var J in a)a.hasOwnProperty(J)&&(p=a[J],this[J]=p?p(_):_[J]);return this.isDefaultPrevented=(_.defaultPrevented!=null?_.defaultPrevented:_.returnValue===!1)?rf:WS,this.isPropagationStopped=WS,this}return W(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=rf)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=rf)},persist:function(){},isPersistent:rf}),l}var Ps={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Eh=Nn(Ps),eu=W({},Ps,{view:0,detail:0}),tM=Nn(eu),Ch,Rh,tu,nf=W({},eu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Oh,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==tu&&(tu&&a.type==="mousemove"?(Ch=a.screenX-tu.screenX,Rh=a.screenY-tu.screenY):Rh=Ch=0,tu=a),Ch)},movementY:function(a){return"movementY"in a?a.movementY:Rh}}),qS=Nn(nf),rM=W({},nf,{dataTransfer:0}),nM=Nn(rM),iM=W({},eu,{relatedTarget:0}),_h=Nn(iM),oM=W({},Ps,{animationName:0,elapsedTime:0,pseudoElement:0}),aM=Nn(oM),sM=W({},Ps,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),lM=Nn(sM),uM=W({},Ps,{data:0}),GS=Nn(uM),cM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fM={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},dM={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function pM(a){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(a):(a=dM[a])?!!l[a]:!1}function Oh(){return pM}var hM=W({},eu,{key:function(a){if(a.key){var l=cM[a.key]||a.key;if(l!=="Unidentified")return l}return a.type==="keypress"?(a=tf(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?fM[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Oh,charCode:function(a){return a.type==="keypress"?tf(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?tf(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),gM=Nn(hM),vM=W({},nf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),XS=Nn(vM),mM=W({},eu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Oh}),yM=Nn(mM),bM=W({},Ps,{propertyName:0,elapsedTime:0,pseudoElement:0}),SM=Nn(bM),wM=W({},nf,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),xM=Nn(wM),EM=[9,13,27,32],Th=u&&"CompositionEvent"in window,ru=null;u&&"documentMode"in document&&(ru=document.documentMode);var CM=u&&"TextEvent"in window&&!ru,KS=u&&(!Th||ru&&8<ru&&11>=ru),YS=" ",JS=!1;function QS(a,l){switch(a){case"keyup":return EM.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ZS(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var ks=!1;function RM(a,l){switch(a){case"compositionend":return ZS(l);case"keypress":return l.which!==32?null:(JS=!0,YS);case"textInput":return a=l.data,a===YS&&JS?null:a;default:return null}}function _M(a,l){if(ks)return a==="compositionend"||!Th&&QS(a,l)?(a=HS(),ef=xh=fa=null,ks=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return KS&&l.locale!=="ko"?null:l.data;default:return null}}var OM={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ew(a){var l=a&&a.nodeName&&a.nodeName.toLowerCase();return l==="input"?!!OM[a.type]:l==="textarea"}function tw(a,l,p,m){Ze(m),l=uf(l,"onChange"),0<l.length&&(p=new Eh("onChange","change",null,p,m),a.push({event:p,listeners:l}))}var nu=null,iu=null;function TM(a){bw(a,0)}function of(a){var l=Ns(a);if(we(l))return a}function AM(a,l){if(a==="change")return l}var rw=!1;if(u){var Ah;if(u){var $h="oninput"in document;if(!$h){var nw=document.createElement("div");nw.setAttribute("oninput","return;"),$h=typeof nw.oninput=="function"}Ah=$h}else Ah=!1;rw=Ah&&(!document.documentMode||9<document.documentMode)}function iw(){nu&&(nu.detachEvent("onpropertychange",ow),iu=nu=null)}function ow(a){if(a.propertyName==="value"&&of(iu)){var l=[];tw(l,iu,a,fe(a)),gt(TM,l)}}function $M(a,l,p){a==="focusin"?(iw(),nu=l,iu=p,nu.attachEvent("onpropertychange",ow)):a==="focusout"&&iw()}function IM(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return of(iu)}function PM(a,l){if(a==="click")return of(l)}function kM(a,l){if(a==="input"||a==="change")return of(l)}function MM(a,l){return a===l&&(a!==0||1/a===1/l)||a!==a&&l!==l}var zi=typeof Object.is=="function"?Object.is:MM;function ou(a,l){if(zi(a,l))return!0;if(typeof a!="object"||a===null||typeof l!="object"||l===null)return!1;var p=Object.keys(a),m=Object.keys(l);if(p.length!==m.length)return!1;for(m=0;m<p.length;m++){var w=p[m];if(!c.call(l,w)||!zi(a[w],l[w]))return!1}return!0}function aw(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function sw(a,l){var p=aw(a);a=0;for(var m;p;){if(p.nodeType===3){if(m=a+p.textContent.length,a<=l&&m>=l)return{node:p,offset:l-a};a=m}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=aw(p)}}function lw(a,l){return a&&l?a===l?!0:a&&a.nodeType===3?!1:l&&l.nodeType===3?lw(a,l.parentNode):"contains"in a?a.contains(l):a.compareDocumentPosition?!!(a.compareDocumentPosition(l)&16):!1:!1}function uw(){for(var a=window,l=Te();l instanceof a.HTMLIFrameElement;){try{var p=typeof l.contentWindow.location.href=="string"}catch{p=!1}if(p)a=l.contentWindow;else break;l=Te(a.document)}return l}function Ih(a){var l=a&&a.nodeName&&a.nodeName.toLowerCase();return l&&(l==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||l==="textarea"||a.contentEditable==="true")}function DM(a){var l=uw(),p=a.focusedElem,m=a.selectionRange;if(l!==p&&p&&p.ownerDocument&&lw(p.ownerDocument.documentElement,p)){if(m!==null&&Ih(p)){if(l=m.start,a=m.end,a===void 0&&(a=l),"selectionStart"in p)p.selectionStart=l,p.selectionEnd=Math.min(a,p.value.length);else if(a=(l=p.ownerDocument||document)&&l.defaultView||window,a.getSelection){a=a.getSelection();var w=p.textContent.length,_=Math.min(m.start,w);m=m.end===void 0?_:Math.min(m.end,w),!a.extend&&_>m&&(w=m,m=_,_=w),w=sw(p,_);var k=sw(p,m);w&&k&&(a.rangeCount!==1||a.anchorNode!==w.node||a.anchorOffset!==w.offset||a.focusNode!==k.node||a.focusOffset!==k.offset)&&(l=l.createRange(),l.setStart(w.node,w.offset),a.removeAllRanges(),_>m?(a.addRange(l),a.extend(k.node,k.offset)):(l.setEnd(k.node,k.offset),a.addRange(l)))}}for(l=[],a=p;a=a.parentNode;)a.nodeType===1&&l.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<l.length;p++)a=l[p],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}var LM=u&&"documentMode"in document&&11>=document.documentMode,Ms=null,Ph=null,au=null,kh=!1;function cw(a,l,p){var m=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;kh||Ms==null||Ms!==Te(m)||(m=Ms,"selectionStart"in m&&Ih(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),au&&ou(au,m)||(au=m,m=uf(Ph,"onSelect"),0<m.length&&(l=new Eh("onSelect","select",null,l,p),a.push({event:l,listeners:m}),l.target=Ms)))}function af(a,l){var p={};return p[a.toLowerCase()]=l.toLowerCase(),p["Webkit"+a]="webkit"+l,p["Moz"+a]="moz"+l,p}var Ds={animationend:af("Animation","AnimationEnd"),animationiteration:af("Animation","AnimationIteration"),animationstart:af("Animation","AnimationStart"),transitionend:af("Transition","TransitionEnd")},Mh={},fw={};u&&(fw=document.createElement("div").style,"AnimationEvent"in window||(delete Ds.animationend.animation,delete Ds.animationiteration.animation,delete Ds.animationstart.animation),"TransitionEvent"in window||delete Ds.transitionend.transition);function sf(a){if(Mh[a])return Mh[a];if(!Ds[a])return a;var l=Ds[a],p;for(p in l)if(l.hasOwnProperty(p)&&p in fw)return Mh[a]=l[p];return a}var dw=sf("animationend"),pw=sf("animationiteration"),hw=sf("animationstart"),gw=sf("transitionend"),vw=new Map,mw="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function da(a,l){vw.set(a,l),o(l,[a])}for(var Dh=0;Dh<mw.length;Dh++){var Lh=mw[Dh],FM=Lh.toLowerCase(),NM=Lh[0].toUpperCase()+Lh.slice(1);da(FM,"on"+NM)}da(dw,"onAnimationEnd"),da(pw,"onAnimationIteration"),da(hw,"onAnimationStart"),da("dblclick","onDoubleClick"),da("focusin","onFocus"),da("focusout","onBlur"),da(gw,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var su="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),jM=new Set("cancel close invalid load scroll toggle".split(" ").concat(su));function yw(a,l,p){var m=a.type||"unknown-event";a.currentTarget=p,Lr(m,l,void 0,a),a.currentTarget=null}function bw(a,l){l=(l&4)!==0;for(var p=0;p<a.length;p++){var m=a[p],w=m.event;m=m.listeners;e:{var _=void 0;if(l)for(var k=m.length-1;0<=k;k--){var J=m[k],re=J.instance,ge=J.currentTarget;if(J=J.listener,re!==_&&w.isPropagationStopped())break e;yw(w,J,ge),_=re}else for(k=0;k<m.length;k++){if(J=m[k],re=J.instance,ge=J.currentTarget,J=J.listener,re!==_&&w.isPropagationStopped())break e;yw(w,J,ge),_=re}}}if(gr)throw a=Sr,gr=!1,Sr=null,a}function er(a,l){var p=l[Hh];p===void 0&&(p=l[Hh]=new Set);var m=a+"__bubble";p.has(m)||(Sw(l,a,2,!1),p.add(m))}function Fh(a,l,p){var m=0;l&&(m|=4),Sw(p,a,m,l)}var lf="_reactListening"+Math.random().toString(36).slice(2);function lu(a){if(!a[lf]){a[lf]=!0,n.forEach(function(p){p!=="selectionchange"&&(jM.has(p)||Fh(p,!1,a),Fh(p,!0,a))});var l=a.nodeType===9?a:a.ownerDocument;l===null||l[lf]||(l[lf]=!0,Fh("selectionchange",!1,l))}}function Sw(a,l,p,m){switch(US(l)){case 1:var w=Z5;break;case 4:w=eM;break;default:w=Sh}p=w.bind(null,l,p,a),w=void 0,!vt||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(w=!0),m?w!==void 0?a.addEventListener(l,p,{capture:!0,passive:w}):a.addEventListener(l,p,!0):w!==void 0?a.addEventListener(l,p,{passive:w}):a.addEventListener(l,p,!1)}function Nh(a,l,p,m,w){var _=m;if((l&1)===0&&(l&2)===0&&m!==null)e:for(;;){if(m===null)return;var k=m.tag;if(k===3||k===4){var J=m.stateNode.containerInfo;if(J===w||J.nodeType===8&&J.parentNode===w)break;if(k===4)for(k=m.return;k!==null;){var re=k.tag;if((re===3||re===4)&&(re=k.stateNode.containerInfo,re===w||re.nodeType===8&&re.parentNode===w))return;k=k.return}for(;J!==null;){if(k=Ha(J),k===null)return;if(re=k.tag,re===5||re===6){m=_=k;continue e}J=J.parentNode}}m=m.return}gt(function(){var ge=_,Pe=fe(p),Me=[];e:{var Ae=vw.get(a);if(Ae!==void 0){var He=Eh,qe=a;switch(a){case"keypress":if(tf(p)===0)break e;case"keydown":case"keyup":He=gM;break;case"focusin":qe="focus",He=_h;break;case"focusout":qe="blur",He=_h;break;case"beforeblur":case"afterblur":He=_h;break;case"click":if(p.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":He=qS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":He=nM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":He=yM;break;case dw:case pw:case hw:He=aM;break;case gw:He=SM;break;case"scroll":He=tM;break;case"wheel":He=xM;break;case"copy":case"cut":case"paste":He=lM;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":He=XS}var Ke=(l&4)!==0,cr=!Ke&&a==="scroll",ce=Ke?Ae!==null?Ae+"Capture":null:Ae;Ke=[];for(var ie=ge,de;ie!==null;){de=ie;var Le=de.stateNode;if(de.tag===5&&Le!==null&&(de=Le,ce!==null&&(Le=wt(ie,ce),Le!=null&&Ke.push(uu(ie,Le,de)))),cr)break;ie=ie.return}0<Ke.length&&(Ae=new He(Ae,qe,null,p,Pe),Me.push({event:Ae,listeners:Ke}))}}if((l&7)===0){e:{if(Ae=a==="mouseover"||a==="pointerover",He=a==="mouseout"||a==="pointerout",Ae&&p!==le&&(qe=p.relatedTarget||p.fromElement)&&(Ha(qe)||qe[Vo]))break e;if((He||Ae)&&(Ae=Pe.window===Pe?Pe:(Ae=Pe.ownerDocument)?Ae.defaultView||Ae.parentWindow:window,He?(qe=p.relatedTarget||p.toElement,He=ge,qe=qe?Ha(qe):null,qe!==null&&(cr=vr(qe),qe!==cr||qe.tag!==5&&qe.tag!==6)&&(qe=null)):(He=null,qe=ge),He!==qe)){if(Ke=qS,Le="onMouseLeave",ce="onMouseEnter",ie="mouse",(a==="pointerout"||a==="pointerover")&&(Ke=XS,Le="onPointerLeave",ce="onPointerEnter",ie="pointer"),cr=He==null?Ae:Ns(He),de=qe==null?Ae:Ns(qe),Ae=new Ke(Le,ie+"leave",He,p,Pe),Ae.target=cr,Ae.relatedTarget=de,Le=null,Ha(Pe)===ge&&(Ke=new Ke(ce,ie+"enter",qe,p,Pe),Ke.target=de,Ke.relatedTarget=cr,Le=Ke),cr=Le,He&&qe)t:{for(Ke=He,ce=qe,ie=0,de=Ke;de;de=Ls(de))ie++;for(de=0,Le=ce;Le;Le=Ls(Le))de++;for(;0<ie-de;)Ke=Ls(Ke),ie--;for(;0<de-ie;)ce=Ls(ce),de--;for(;ie--;){if(Ke===ce||ce!==null&&Ke===ce.alternate)break t;Ke=Ls(Ke),ce=Ls(ce)}Ke=null}else Ke=null;He!==null&&ww(Me,Ae,He,Ke,!1),qe!==null&&cr!==null&&ww(Me,cr,qe,Ke,!0)}}e:{if(Ae=ge?Ns(ge):window,He=Ae.nodeName&&Ae.nodeName.toLowerCase(),He==="select"||He==="input"&&Ae.type==="file")var Je=AM;else if(ew(Ae))if(rw)Je=kM;else{Je=IM;var it=$M}else(He=Ae.nodeName)&&He.toLowerCase()==="input"&&(Ae.type==="checkbox"||Ae.type==="radio")&&(Je=PM);if(Je&&(Je=Je(a,ge))){tw(Me,Je,p,Pe);break e}it&&it(a,Ae,ge),a==="focusout"&&(it=Ae._wrapperState)&&it.controlled&&Ae.type==="number"&&Qe(Ae,"number",Ae.value)}switch(it=ge?Ns(ge):window,a){case"focusin":(ew(it)||it.contentEditable==="true")&&(Ms=it,Ph=ge,au=null);break;case"focusout":au=Ph=Ms=null;break;case"mousedown":kh=!0;break;case"contextmenu":case"mouseup":case"dragend":kh=!1,cw(Me,p,Pe);break;case"selectionchange":if(LM)break;case"keydown":case"keyup":cw(Me,p,Pe)}var ot;if(Th)e:{switch(a){case"compositionstart":var ft="onCompositionStart";break e;case"compositionend":ft="onCompositionEnd";break e;case"compositionupdate":ft="onCompositionUpdate";break e}ft=void 0}else ks?QS(a,p)&&(ft="onCompositionEnd"):a==="keydown"&&p.keyCode===229&&(ft="onCompositionStart");ft&&(KS&&p.locale!=="ko"&&(ks||ft!=="onCompositionStart"?ft==="onCompositionEnd"&&ks&&(ot=HS()):(fa=Pe,xh="value"in fa?fa.value:fa.textContent,ks=!0)),it=uf(ge,ft),0<it.length&&(ft=new GS(ft,a,null,p,Pe),Me.push({event:ft,listeners:it}),ot?ft.data=ot:(ot=ZS(p),ot!==null&&(ft.data=ot)))),(ot=CM?RM(a,p):_M(a,p))&&(ge=uf(ge,"onBeforeInput"),0<ge.length&&(Pe=new GS("onBeforeInput","beforeinput",null,p,Pe),Me.push({event:Pe,listeners:ge}),Pe.data=ot))}bw(Me,l)})}function uu(a,l,p){return{instance:a,listener:l,currentTarget:p}}function uf(a,l){for(var p=l+"Capture",m=[];a!==null;){var w=a,_=w.stateNode;w.tag===5&&_!==null&&(w=_,_=wt(a,p),_!=null&&m.unshift(uu(a,_,w)),_=wt(a,l),_!=null&&m.push(uu(a,_,w))),a=a.return}return m}function Ls(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5);return a||null}function ww(a,l,p,m,w){for(var _=l._reactName,k=[];p!==null&&p!==m;){var J=p,re=J.alternate,ge=J.stateNode;if(re!==null&&re===m)break;J.tag===5&&ge!==null&&(J=ge,w?(re=wt(p,_),re!=null&&k.unshift(uu(p,re,J))):w||(re=wt(p,_),re!=null&&k.push(uu(p,re,J)))),p=p.return}k.length!==0&&a.push({event:l,listeners:k})}var zM=/\r\n?/g,BM=/\u0000|\uFFFD/g;function xw(a){return(typeof a=="string"?a:""+a).replace(zM,`
33
+ `).replace(BM,"")}function cf(a,l,p){if(l=xw(l),xw(a)!==l&&p)throw Error(r(425))}function ff(){}var jh=null,zh=null;function Bh(a,l){return a==="textarea"||a==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var Vh=typeof setTimeout=="function"?setTimeout:void 0,VM=typeof clearTimeout=="function"?clearTimeout:void 0,Ew=typeof Promise=="function"?Promise:void 0,UM=typeof queueMicrotask=="function"?queueMicrotask:typeof Ew<"u"?function(a){return Ew.resolve(null).then(a).catch(HM)}:Vh;function HM(a){setTimeout(function(){throw a})}function Uh(a,l){var p=l,m=0;do{var w=p.nextSibling;if(a.removeChild(p),w&&w.nodeType===8)if(p=w.data,p==="/$"){if(m===0){a.removeChild(w),ca(l);return}m--}else p!=="$"&&p!=="$?"&&p!=="$!"||m++;p=w}while(p);ca(l)}function pa(a){for(;a!=null;a=a.nextSibling){var l=a.nodeType;if(l===1||l===3)break;if(l===8){if(l=a.data,l==="$"||l==="$!"||l==="$?")break;if(l==="/$")return null}}return a}function Cw(a){a=a.previousSibling;for(var l=0;a;){if(a.nodeType===8){var p=a.data;if(p==="$"||p==="$!"||p==="$?"){if(l===0)return a;l--}else p==="/$"&&l++}a=a.previousSibling}return null}var Fs=Math.random().toString(36).slice(2),po="__reactFiber$"+Fs,cu="__reactProps$"+Fs,Vo="__reactContainer$"+Fs,Hh="__reactEvents$"+Fs,WM="__reactListeners$"+Fs,qM="__reactHandles$"+Fs;function Ha(a){var l=a[po];if(l)return l;for(var p=a.parentNode;p;){if(l=p[Vo]||p[po]){if(p=l.alternate,l.child!==null||p!==null&&p.child!==null)for(a=Cw(a);a!==null;){if(p=a[po])return p;a=Cw(a)}return l}a=p,p=a.parentNode}return null}function fu(a){return a=a[po]||a[Vo],!a||a.tag!==5&&a.tag!==6&&a.tag!==13&&a.tag!==3?null:a}function Ns(a){if(a.tag===5||a.tag===6)return a.stateNode;throw Error(r(33))}function df(a){return a[cu]||null}var Wh=[],js=-1;function ha(a){return{current:a}}function tr(a){0>js||(a.current=Wh[js],Wh[js]=null,js--)}function Qt(a,l){js++,Wh[js]=a.current,a.current=l}var ga={},Xr=ha(ga),Sn=ha(!1),Wa=ga;function zs(a,l){var p=a.type.contextTypes;if(!p)return ga;var m=a.stateNode;if(m&&m.__reactInternalMemoizedUnmaskedChildContext===l)return m.__reactInternalMemoizedMaskedChildContext;var w={},_;for(_ in p)w[_]=l[_];return m&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=l,a.__reactInternalMemoizedMaskedChildContext=w),w}function wn(a){return a=a.childContextTypes,a!=null}function pf(){tr(Sn),tr(Xr)}function Rw(a,l,p){if(Xr.current!==ga)throw Error(r(168));Qt(Xr,l),Qt(Sn,p)}function _w(a,l,p){var m=a.stateNode;if(l=l.childContextTypes,typeof m.getChildContext!="function")return p;m=m.getChildContext();for(var w in m)if(!(w in l))throw Error(r(108,be(a)||"Unknown",w));return W({},p,m)}function hf(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||ga,Wa=Xr.current,Qt(Xr,a),Qt(Sn,Sn.current),!0}function Ow(a,l,p){var m=a.stateNode;if(!m)throw Error(r(169));p?(a=_w(a,l,Wa),m.__reactInternalMemoizedMergedChildContext=a,tr(Sn),tr(Xr),Qt(Xr,a)):tr(Sn),Qt(Sn,p)}var Uo=null,gf=!1,qh=!1;function Tw(a){Uo===null?Uo=[a]:Uo.push(a)}function GM(a){gf=!0,Tw(a)}function va(){if(!qh&&Uo!==null){qh=!0;var a=0,l=xt;try{var p=Uo;for(xt=1;a<p.length;a++){var m=p[a];do m=m(!0);while(m!==null)}Uo=null,gf=!1}catch(w){throw Uo!==null&&(Uo=Uo.slice(a+1)),oi(Di,va),w}finally{xt=l,qh=!1}}return null}var Bs=[],Vs=0,vf=null,mf=0,di=[],pi=0,qa=null,Ho=1,Wo="";function Ga(a,l){Bs[Vs++]=mf,Bs[Vs++]=vf,vf=a,mf=l}function Aw(a,l,p){di[pi++]=Ho,di[pi++]=Wo,di[pi++]=qa,qa=a;var m=Ho;a=Wo;var w=32-mr(m)-1;m&=~(1<<w),p+=1;var _=32-mr(l)+w;if(30<_){var k=w-w%5;_=(m&(1<<k)-1).toString(32),m>>=k,w-=k,Ho=1<<32-mr(l)+w|p<<w|m,Wo=_+a}else Ho=1<<_|p<<w|m,Wo=a}function Gh(a){a.return!==null&&(Ga(a,1),Aw(a,1,0))}function Xh(a){for(;a===vf;)vf=Bs[--Vs],Bs[Vs]=null,mf=Bs[--Vs],Bs[Vs]=null;for(;a===qa;)qa=di[--pi],di[pi]=null,Wo=di[--pi],di[pi]=null,Ho=di[--pi],di[pi]=null}var jn=null,zn=null,rr=!1,Bi=null;function $w(a,l){var p=yi(5,null,null,0);p.elementType="DELETED",p.stateNode=l,p.return=a,l=a.deletions,l===null?(a.deletions=[p],a.flags|=16):l.push(p)}function Iw(a,l){switch(a.tag){case 5:var p=a.type;return l=l.nodeType!==1||p.toLowerCase()!==l.nodeName.toLowerCase()?null:l,l!==null?(a.stateNode=l,jn=a,zn=pa(l.firstChild),!0):!1;case 6:return l=a.pendingProps===""||l.nodeType!==3?null:l,l!==null?(a.stateNode=l,jn=a,zn=null,!0):!1;case 13:return l=l.nodeType!==8?null:l,l!==null?(p=qa!==null?{id:Ho,overflow:Wo}:null,a.memoizedState={dehydrated:l,treeContext:p,retryLane:1073741824},p=yi(18,null,null,0),p.stateNode=l,p.return=a,a.child=p,jn=a,zn=null,!0):!1;default:return!1}}function Kh(a){return(a.mode&1)!==0&&(a.flags&128)===0}function Yh(a){if(rr){var l=zn;if(l){var p=l;if(!Iw(a,l)){if(Kh(a))throw Error(r(418));l=pa(p.nextSibling);var m=jn;l&&Iw(a,l)?$w(m,p):(a.flags=a.flags&-4097|2,rr=!1,jn=a)}}else{if(Kh(a))throw Error(r(418));a.flags=a.flags&-4097|2,rr=!1,jn=a}}}function Pw(a){for(a=a.return;a!==null&&a.tag!==5&&a.tag!==3&&a.tag!==13;)a=a.return;jn=a}function yf(a){if(a!==jn)return!1;if(!rr)return Pw(a),rr=!0,!1;var l;if((l=a.tag!==3)&&!(l=a.tag!==5)&&(l=a.type,l=l!=="head"&&l!=="body"&&!Bh(a.type,a.memoizedProps)),l&&(l=zn)){if(Kh(a))throw kw(),Error(r(418));for(;l;)$w(a,l),l=pa(l.nextSibling)}if(Pw(a),a.tag===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));e:{for(a=a.nextSibling,l=0;a;){if(a.nodeType===8){var p=a.data;if(p==="/$"){if(l===0){zn=pa(a.nextSibling);break e}l--}else p!=="$"&&p!=="$!"&&p!=="$?"||l++}a=a.nextSibling}zn=null}}else zn=jn?pa(a.stateNode.nextSibling):null;return!0}function kw(){for(var a=zn;a;)a=pa(a.nextSibling)}function Us(){zn=jn=null,rr=!1}function Jh(a){Bi===null?Bi=[a]:Bi.push(a)}var XM=A.ReactCurrentBatchConfig;function du(a,l,p){if(a=p.ref,a!==null&&typeof a!="function"&&typeof a!="object"){if(p._owner){if(p=p._owner,p){if(p.tag!==1)throw Error(r(309));var m=p.stateNode}if(!m)throw Error(r(147,a));var w=m,_=""+a;return l!==null&&l.ref!==null&&typeof l.ref=="function"&&l.ref._stringRef===_?l.ref:(l=function(k){var J=w.refs;k===null?delete J[_]:J[_]=k},l._stringRef=_,l)}if(typeof a!="string")throw Error(r(284));if(!p._owner)throw Error(r(290,a))}return a}function bf(a,l){throw a=Object.prototype.toString.call(l),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":a))}function Mw(a){var l=a._init;return l(a._payload)}function Dw(a){function l(ce,ie){if(a){var de=ce.deletions;de===null?(ce.deletions=[ie],ce.flags|=16):de.push(ie)}}function p(ce,ie){if(!a)return null;for(;ie!==null;)l(ce,ie),ie=ie.sibling;return null}function m(ce,ie){for(ce=new Map;ie!==null;)ie.key!==null?ce.set(ie.key,ie):ce.set(ie.index,ie),ie=ie.sibling;return ce}function w(ce,ie){return ce=Ca(ce,ie),ce.index=0,ce.sibling=null,ce}function _(ce,ie,de){return ce.index=de,a?(de=ce.alternate,de!==null?(de=de.index,de<ie?(ce.flags|=2,ie):de):(ce.flags|=2,ie)):(ce.flags|=1048576,ie)}function k(ce){return a&&ce.alternate===null&&(ce.flags|=2),ce}function J(ce,ie,de,Le){return ie===null||ie.tag!==6?(ie=Vg(de,ce.mode,Le),ie.return=ce,ie):(ie=w(ie,de),ie.return=ce,ie)}function re(ce,ie,de,Le){var Je=de.type;return Je===O?Pe(ce,ie,de.props.children,Le,de.key):ie!==null&&(ie.elementType===Je||typeof Je=="object"&&Je!==null&&Je.$$typeof===H&&Mw(Je)===ie.type)?(Le=w(ie,de.props),Le.ref=du(ce,ie,de),Le.return=ce,Le):(Le=Uf(de.type,de.key,de.props,null,ce.mode,Le),Le.ref=du(ce,ie,de),Le.return=ce,Le)}function ge(ce,ie,de,Le){return ie===null||ie.tag!==4||ie.stateNode.containerInfo!==de.containerInfo||ie.stateNode.implementation!==de.implementation?(ie=Ug(de,ce.mode,Le),ie.return=ce,ie):(ie=w(ie,de.children||[]),ie.return=ce,ie)}function Pe(ce,ie,de,Le,Je){return ie===null||ie.tag!==7?(ie=ts(de,ce.mode,Le,Je),ie.return=ce,ie):(ie=w(ie,de),ie.return=ce,ie)}function Me(ce,ie,de){if(typeof ie=="string"&&ie!==""||typeof ie=="number")return ie=Vg(""+ie,ce.mode,de),ie.return=ce,ie;if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case R:return de=Uf(ie.type,ie.key,ie.props,null,ce.mode,de),de.ref=du(ce,null,ie),de.return=ce,de;case $:return ie=Ug(ie,ce.mode,de),ie.return=ce,ie;case H:var Le=ie._init;return Me(ce,Le(ie._payload),de)}if(je(ie)||Q(ie))return ie=ts(ie,ce.mode,de,null),ie.return=ce,ie;bf(ce,ie)}return null}function Ae(ce,ie,de,Le){var Je=ie!==null?ie.key:null;if(typeof de=="string"&&de!==""||typeof de=="number")return Je!==null?null:J(ce,ie,""+de,Le);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case R:return de.key===Je?re(ce,ie,de,Le):null;case $:return de.key===Je?ge(ce,ie,de,Le):null;case H:return Je=de._init,Ae(ce,ie,Je(de._payload),Le)}if(je(de)||Q(de))return Je!==null?null:Pe(ce,ie,de,Le,null);bf(ce,de)}return null}function He(ce,ie,de,Le,Je){if(typeof Le=="string"&&Le!==""||typeof Le=="number")return ce=ce.get(de)||null,J(ie,ce,""+Le,Je);if(typeof Le=="object"&&Le!==null){switch(Le.$$typeof){case R:return ce=ce.get(Le.key===null?de:Le.key)||null,re(ie,ce,Le,Je);case $:return ce=ce.get(Le.key===null?de:Le.key)||null,ge(ie,ce,Le,Je);case H:var it=Le._init;return He(ce,ie,de,it(Le._payload),Je)}if(je(Le)||Q(Le))return ce=ce.get(de)||null,Pe(ie,ce,Le,Je,null);bf(ie,Le)}return null}function qe(ce,ie,de,Le){for(var Je=null,it=null,ot=ie,ft=ie=0,Pr=null;ot!==null&&ft<de.length;ft++){ot.index>ft?(Pr=ot,ot=null):Pr=ot.sibling;var Tt=Ae(ce,ot,de[ft],Le);if(Tt===null){ot===null&&(ot=Pr);break}a&&ot&&Tt.alternate===null&&l(ce,ot),ie=_(Tt,ie,ft),it===null?Je=Tt:it.sibling=Tt,it=Tt,ot=Pr}if(ft===de.length)return p(ce,ot),rr&&Ga(ce,ft),Je;if(ot===null){for(;ft<de.length;ft++)ot=Me(ce,de[ft],Le),ot!==null&&(ie=_(ot,ie,ft),it===null?Je=ot:it.sibling=ot,it=ot);return rr&&Ga(ce,ft),Je}for(ot=m(ce,ot);ft<de.length;ft++)Pr=He(ot,ce,ft,de[ft],Le),Pr!==null&&(a&&Pr.alternate!==null&&ot.delete(Pr.key===null?ft:Pr.key),ie=_(Pr,ie,ft),it===null?Je=Pr:it.sibling=Pr,it=Pr);return a&&ot.forEach(function(Ra){return l(ce,Ra)}),rr&&Ga(ce,ft),Je}function Ke(ce,ie,de,Le){var Je=Q(de);if(typeof Je!="function")throw Error(r(150));if(de=Je.call(de),de==null)throw Error(r(151));for(var it=Je=null,ot=ie,ft=ie=0,Pr=null,Tt=de.next();ot!==null&&!Tt.done;ft++,Tt=de.next()){ot.index>ft?(Pr=ot,ot=null):Pr=ot.sibling;var Ra=Ae(ce,ot,Tt.value,Le);if(Ra===null){ot===null&&(ot=Pr);break}a&&ot&&Ra.alternate===null&&l(ce,ot),ie=_(Ra,ie,ft),it===null?Je=Ra:it.sibling=Ra,it=Ra,ot=Pr}if(Tt.done)return p(ce,ot),rr&&Ga(ce,ft),Je;if(ot===null){for(;!Tt.done;ft++,Tt=de.next())Tt=Me(ce,Tt.value,Le),Tt!==null&&(ie=_(Tt,ie,ft),it===null?Je=Tt:it.sibling=Tt,it=Tt);return rr&&Ga(ce,ft),Je}for(ot=m(ce,ot);!Tt.done;ft++,Tt=de.next())Tt=He(ot,ce,ft,Tt.value,Le),Tt!==null&&(a&&Tt.alternate!==null&&ot.delete(Tt.key===null?ft:Tt.key),ie=_(Tt,ie,ft),it===null?Je=Tt:it.sibling=Tt,it=Tt);return a&&ot.forEach(function(OD){return l(ce,OD)}),rr&&Ga(ce,ft),Je}function cr(ce,ie,de,Le){if(typeof de=="object"&&de!==null&&de.type===O&&de.key===null&&(de=de.props.children),typeof de=="object"&&de!==null){switch(de.$$typeof){case R:e:{for(var Je=de.key,it=ie;it!==null;){if(it.key===Je){if(Je=de.type,Je===O){if(it.tag===7){p(ce,it.sibling),ie=w(it,de.props.children),ie.return=ce,ce=ie;break e}}else if(it.elementType===Je||typeof Je=="object"&&Je!==null&&Je.$$typeof===H&&Mw(Je)===it.type){p(ce,it.sibling),ie=w(it,de.props),ie.ref=du(ce,it,de),ie.return=ce,ce=ie;break e}p(ce,it);break}else l(ce,it);it=it.sibling}de.type===O?(ie=ts(de.props.children,ce.mode,Le,de.key),ie.return=ce,ce=ie):(Le=Uf(de.type,de.key,de.props,null,ce.mode,Le),Le.ref=du(ce,ie,de),Le.return=ce,ce=Le)}return k(ce);case $:e:{for(it=de.key;ie!==null;){if(ie.key===it)if(ie.tag===4&&ie.stateNode.containerInfo===de.containerInfo&&ie.stateNode.implementation===de.implementation){p(ce,ie.sibling),ie=w(ie,de.children||[]),ie.return=ce,ce=ie;break e}else{p(ce,ie);break}else l(ce,ie);ie=ie.sibling}ie=Ug(de,ce.mode,Le),ie.return=ce,ce=ie}return k(ce);case H:return it=de._init,cr(ce,ie,it(de._payload),Le)}if(je(de))return qe(ce,ie,de,Le);if(Q(de))return Ke(ce,ie,de,Le);bf(ce,de)}return typeof de=="string"&&de!==""||typeof de=="number"?(de=""+de,ie!==null&&ie.tag===6?(p(ce,ie.sibling),ie=w(ie,de),ie.return=ce,ce=ie):(p(ce,ie),ie=Vg(de,ce.mode,Le),ie.return=ce,ce=ie),k(ce)):p(ce,ie)}return cr}var Hs=Dw(!0),Lw=Dw(!1),Sf=ha(null),wf=null,Ws=null,Qh=null;function Zh(){Qh=Ws=wf=null}function eg(a){var l=Sf.current;tr(Sf),a._currentValue=l}function tg(a,l,p){for(;a!==null;){var m=a.alternate;if((a.childLanes&l)!==l?(a.childLanes|=l,m!==null&&(m.childLanes|=l)):m!==null&&(m.childLanes&l)!==l&&(m.childLanes|=l),a===p)break;a=a.return}}function qs(a,l){wf=a,Qh=Ws=null,a=a.dependencies,a!==null&&a.firstContext!==null&&((a.lanes&l)!==0&&(xn=!0),a.firstContext=null)}function hi(a){var l=a._currentValue;if(Qh!==a)if(a={context:a,memoizedValue:l,next:null},Ws===null){if(wf===null)throw Error(r(308));Ws=a,wf.dependencies={lanes:0,firstContext:a}}else Ws=Ws.next=a;return l}var Xa=null;function rg(a){Xa===null?Xa=[a]:Xa.push(a)}function Fw(a,l,p,m){var w=l.interleaved;return w===null?(p.next=p,rg(l)):(p.next=w.next,w.next=p),l.interleaved=p,qo(a,m)}function qo(a,l){a.lanes|=l;var p=a.alternate;for(p!==null&&(p.lanes|=l),p=a,a=a.return;a!==null;)a.childLanes|=l,p=a.alternate,p!==null&&(p.childLanes|=l),p=a,a=a.return;return p.tag===3?p.stateNode:null}var ma=!1;function ng(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Nw(a,l){a=a.updateQueue,l.updateQueue===a&&(l.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects})}function Go(a,l){return{eventTime:a,lane:l,tag:0,payload:null,callback:null,next:null}}function ya(a,l,p){var m=a.updateQueue;if(m===null)return null;if(m=m.shared,(_t&2)!==0){var w=m.pending;return w===null?l.next=l:(l.next=w.next,w.next=l),m.pending=l,qo(a,p)}return w=m.interleaved,w===null?(l.next=l,rg(m)):(l.next=w.next,w.next=l),m.interleaved=l,qo(a,p)}function xf(a,l,p){if(l=l.updateQueue,l!==null&&(l=l.shared,(p&4194240)!==0)){var m=l.lanes;m&=a.pendingLanes,p|=m,l.lanes=p,uo(a,p)}}function jw(a,l){var p=a.updateQueue,m=a.alternate;if(m!==null&&(m=m.updateQueue,p===m)){var w=null,_=null;if(p=p.firstBaseUpdate,p!==null){do{var k={eventTime:p.eventTime,lane:p.lane,tag:p.tag,payload:p.payload,callback:p.callback,next:null};_===null?w=_=k:_=_.next=k,p=p.next}while(p!==null);_===null?w=_=l:_=_.next=l}else w=_=l;p={baseState:m.baseState,firstBaseUpdate:w,lastBaseUpdate:_,shared:m.shared,effects:m.effects},a.updateQueue=p;return}a=p.lastBaseUpdate,a===null?p.firstBaseUpdate=l:a.next=l,p.lastBaseUpdate=l}function Ef(a,l,p,m){var w=a.updateQueue;ma=!1;var _=w.firstBaseUpdate,k=w.lastBaseUpdate,J=w.shared.pending;if(J!==null){w.shared.pending=null;var re=J,ge=re.next;re.next=null,k===null?_=ge:k.next=ge,k=re;var Pe=a.alternate;Pe!==null&&(Pe=Pe.updateQueue,J=Pe.lastBaseUpdate,J!==k&&(J===null?Pe.firstBaseUpdate=ge:J.next=ge,Pe.lastBaseUpdate=re))}if(_!==null){var Me=w.baseState;k=0,Pe=ge=re=null,J=_;do{var Ae=J.lane,He=J.eventTime;if((m&Ae)===Ae){Pe!==null&&(Pe=Pe.next={eventTime:He,lane:0,tag:J.tag,payload:J.payload,callback:J.callback,next:null});e:{var qe=a,Ke=J;switch(Ae=l,He=p,Ke.tag){case 1:if(qe=Ke.payload,typeof qe=="function"){Me=qe.call(He,Me,Ae);break e}Me=qe;break e;case 3:qe.flags=qe.flags&-65537|128;case 0:if(qe=Ke.payload,Ae=typeof qe=="function"?qe.call(He,Me,Ae):qe,Ae==null)break e;Me=W({},Me,Ae);break e;case 2:ma=!0}}J.callback!==null&&J.lane!==0&&(a.flags|=64,Ae=w.effects,Ae===null?w.effects=[J]:Ae.push(J))}else He={eventTime:He,lane:Ae,tag:J.tag,payload:J.payload,callback:J.callback,next:null},Pe===null?(ge=Pe=He,re=Me):Pe=Pe.next=He,k|=Ae;if(J=J.next,J===null){if(J=w.shared.pending,J===null)break;Ae=J,J=Ae.next,Ae.next=null,w.lastBaseUpdate=Ae,w.shared.pending=null}}while(!0);if(Pe===null&&(re=Me),w.baseState=re,w.firstBaseUpdate=ge,w.lastBaseUpdate=Pe,l=w.shared.interleaved,l!==null){w=l;do k|=w.lane,w=w.next;while(w!==l)}else _===null&&(w.shared.lanes=0);Ja|=k,a.lanes=k,a.memoizedState=Me}}function zw(a,l,p){if(a=l.effects,l.effects=null,a!==null)for(l=0;l<a.length;l++){var m=a[l],w=m.callback;if(w!==null){if(m.callback=null,m=p,typeof w!="function")throw Error(r(191,w));w.call(m)}}}var pu={},ho=ha(pu),hu=ha(pu),gu=ha(pu);function Ka(a){if(a===pu)throw Error(r(174));return a}function ig(a,l){switch(Qt(gu,l),Qt(hu,a),Qt(ho,pu),a=l.nodeType,a){case 9:case 11:l=(l=l.documentElement)?l.namespaceURI:Pt(null,"");break;default:a=a===8?l.parentNode:l,l=a.namespaceURI||null,a=a.tagName,l=Pt(l,a)}tr(ho),Qt(ho,l)}function Gs(){tr(ho),tr(hu),tr(gu)}function Bw(a){Ka(gu.current);var l=Ka(ho.current),p=Pt(l,a.type);l!==p&&(Qt(hu,a),Qt(ho,p))}function og(a){hu.current===a&&(tr(ho),tr(hu))}var ir=ha(0);function Cf(a){for(var l=a;l!==null;){if(l.tag===13){var p=l.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||p.data==="$!"))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===a)break;for(;l.sibling===null;){if(l.return===null||l.return===a)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var ag=[];function sg(){for(var a=0;a<ag.length;a++)ag[a]._workInProgressVersionPrimary=null;ag.length=0}var Rf=A.ReactCurrentDispatcher,lg=A.ReactCurrentBatchConfig,Ya=0,or=null,Er=null,$r=null,_f=!1,vu=!1,mu=0,KM=0;function Kr(){throw Error(r(321))}function ug(a,l){if(l===null)return!1;for(var p=0;p<l.length&&p<a.length;p++)if(!zi(a[p],l[p]))return!1;return!0}function cg(a,l,p,m,w,_){if(Ya=_,or=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,Rf.current=a===null||a.memoizedState===null?ZM:eD,a=p(m,w),vu){_=0;do{if(vu=!1,mu=0,25<=_)throw Error(r(301));_+=1,$r=Er=null,l.updateQueue=null,Rf.current=tD,a=p(m,w)}while(vu)}if(Rf.current=Af,l=Er!==null&&Er.next!==null,Ya=0,$r=Er=or=null,_f=!1,l)throw Error(r(300));return a}function fg(){var a=mu!==0;return mu=0,a}function go(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $r===null?or.memoizedState=$r=a:$r=$r.next=a,$r}function gi(){if(Er===null){var a=or.alternate;a=a!==null?a.memoizedState:null}else a=Er.next;var l=$r===null?or.memoizedState:$r.next;if(l!==null)$r=l,Er=a;else{if(a===null)throw Error(r(310));Er=a,a={memoizedState:Er.memoizedState,baseState:Er.baseState,baseQueue:Er.baseQueue,queue:Er.queue,next:null},$r===null?or.memoizedState=$r=a:$r=$r.next=a}return $r}function yu(a,l){return typeof l=="function"?l(a):l}function dg(a){var l=gi(),p=l.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=a;var m=Er,w=m.baseQueue,_=p.pending;if(_!==null){if(w!==null){var k=w.next;w.next=_.next,_.next=k}m.baseQueue=w=_,p.pending=null}if(w!==null){_=w.next,m=m.baseState;var J=k=null,re=null,ge=_;do{var Pe=ge.lane;if((Ya&Pe)===Pe)re!==null&&(re=re.next={lane:0,action:ge.action,hasEagerState:ge.hasEagerState,eagerState:ge.eagerState,next:null}),m=ge.hasEagerState?ge.eagerState:a(m,ge.action);else{var Me={lane:Pe,action:ge.action,hasEagerState:ge.hasEagerState,eagerState:ge.eagerState,next:null};re===null?(J=re=Me,k=m):re=re.next=Me,or.lanes|=Pe,Ja|=Pe}ge=ge.next}while(ge!==null&&ge!==_);re===null?k=m:re.next=J,zi(m,l.memoizedState)||(xn=!0),l.memoizedState=m,l.baseState=k,l.baseQueue=re,p.lastRenderedState=m}if(a=p.interleaved,a!==null){w=a;do _=w.lane,or.lanes|=_,Ja|=_,w=w.next;while(w!==a)}else w===null&&(p.lanes=0);return[l.memoizedState,p.dispatch]}function pg(a){var l=gi(),p=l.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=a;var m=p.dispatch,w=p.pending,_=l.memoizedState;if(w!==null){p.pending=null;var k=w=w.next;do _=a(_,k.action),k=k.next;while(k!==w);zi(_,l.memoizedState)||(xn=!0),l.memoizedState=_,l.baseQueue===null&&(l.baseState=_),p.lastRenderedState=_}return[_,m]}function Vw(){}function Uw(a,l){var p=or,m=gi(),w=l(),_=!zi(m.memoizedState,w);if(_&&(m.memoizedState=w,xn=!0),m=m.queue,hg(qw.bind(null,p,m,a),[a]),m.getSnapshot!==l||_||$r!==null&&$r.memoizedState.tag&1){if(p.flags|=2048,bu(9,Ww.bind(null,p,m,w,l),void 0,null),Ir===null)throw Error(r(349));(Ya&30)!==0||Hw(p,l,w)}return w}function Hw(a,l,p){a.flags|=16384,a={getSnapshot:l,value:p},l=or.updateQueue,l===null?(l={lastEffect:null,stores:null},or.updateQueue=l,l.stores=[a]):(p=l.stores,p===null?l.stores=[a]:p.push(a))}function Ww(a,l,p,m){l.value=p,l.getSnapshot=m,Gw(l)&&Xw(a)}function qw(a,l,p){return p(function(){Gw(l)&&Xw(a)})}function Gw(a){var l=a.getSnapshot;a=a.value;try{var p=l();return!zi(a,p)}catch{return!0}}function Xw(a){var l=qo(a,1);l!==null&&Wi(l,a,1,-1)}function Kw(a){var l=go();return typeof a=="function"&&(a=a()),l.memoizedState=l.baseState=a,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:yu,lastRenderedState:a},l.queue=a,a=a.dispatch=QM.bind(null,or,a),[l.memoizedState,a]}function bu(a,l,p,m){return a={tag:a,create:l,destroy:p,deps:m,next:null},l=or.updateQueue,l===null?(l={lastEffect:null,stores:null},or.updateQueue=l,l.lastEffect=a.next=a):(p=l.lastEffect,p===null?l.lastEffect=a.next=a:(m=p.next,p.next=a,a.next=m,l.lastEffect=a)),a}function Yw(){return gi().memoizedState}function Of(a,l,p,m){var w=go();or.flags|=a,w.memoizedState=bu(1|l,p,void 0,m===void 0?null:m)}function Tf(a,l,p,m){var w=gi();m=m===void 0?null:m;var _=void 0;if(Er!==null){var k=Er.memoizedState;if(_=k.destroy,m!==null&&ug(m,k.deps)){w.memoizedState=bu(l,p,_,m);return}}or.flags|=a,w.memoizedState=bu(1|l,p,_,m)}function Jw(a,l){return Of(8390656,8,a,l)}function hg(a,l){return Tf(2048,8,a,l)}function Qw(a,l){return Tf(4,2,a,l)}function Zw(a,l){return Tf(4,4,a,l)}function ex(a,l){if(typeof l=="function")return a=a(),l(a),function(){l(null)};if(l!=null)return a=a(),l.current=a,function(){l.current=null}}function tx(a,l,p){return p=p!=null?p.concat([a]):null,Tf(4,4,ex.bind(null,l,a),p)}function gg(){}function rx(a,l){var p=gi();l=l===void 0?null:l;var m=p.memoizedState;return m!==null&&l!==null&&ug(l,m[1])?m[0]:(p.memoizedState=[a,l],a)}function nx(a,l){var p=gi();l=l===void 0?null:l;var m=p.memoizedState;return m!==null&&l!==null&&ug(l,m[1])?m[0]:(a=a(),p.memoizedState=[a,l],a)}function ix(a,l,p){return(Ya&21)===0?(a.baseState&&(a.baseState=!1,xn=!0),a.memoizedState=p):(zi(p,l)||(p=Mo(),or.lanes|=p,Ja|=p,a.baseState=!0),l)}function YM(a,l){var p=xt;xt=p!==0&&4>p?p:4,a(!0);var m=lg.transition;lg.transition={};try{a(!1),l()}finally{xt=p,lg.transition=m}}function ox(){return gi().memoizedState}function JM(a,l,p){var m=xa(a);if(p={lane:m,action:p,hasEagerState:!1,eagerState:null,next:null},ax(a))sx(l,p);else if(p=Fw(a,l,p,m),p!==null){var w=un();Wi(p,a,m,w),lx(p,l,m)}}function QM(a,l,p){var m=xa(a),w={lane:m,action:p,hasEagerState:!1,eagerState:null,next:null};if(ax(a))sx(l,w);else{var _=a.alternate;if(a.lanes===0&&(_===null||_.lanes===0)&&(_=l.lastRenderedReducer,_!==null))try{var k=l.lastRenderedState,J=_(k,p);if(w.hasEagerState=!0,w.eagerState=J,zi(J,k)){var re=l.interleaved;re===null?(w.next=w,rg(l)):(w.next=re.next,re.next=w),l.interleaved=w;return}}catch{}finally{}p=Fw(a,l,w,m),p!==null&&(w=un(),Wi(p,a,m,w),lx(p,l,m))}}function ax(a){var l=a.alternate;return a===or||l!==null&&l===or}function sx(a,l){vu=_f=!0;var p=a.pending;p===null?l.next=l:(l.next=p.next,p.next=l),a.pending=l}function lx(a,l,p){if((p&4194240)!==0){var m=l.lanes;m&=a.pendingLanes,p|=m,l.lanes=p,uo(a,p)}}var Af={readContext:hi,useCallback:Kr,useContext:Kr,useEffect:Kr,useImperativeHandle:Kr,useInsertionEffect:Kr,useLayoutEffect:Kr,useMemo:Kr,useReducer:Kr,useRef:Kr,useState:Kr,useDebugValue:Kr,useDeferredValue:Kr,useTransition:Kr,useMutableSource:Kr,useSyncExternalStore:Kr,useId:Kr,unstable_isNewReconciler:!1},ZM={readContext:hi,useCallback:function(a,l){return go().memoizedState=[a,l===void 0?null:l],a},useContext:hi,useEffect:Jw,useImperativeHandle:function(a,l,p){return p=p!=null?p.concat([a]):null,Of(4194308,4,ex.bind(null,l,a),p)},useLayoutEffect:function(a,l){return Of(4194308,4,a,l)},useInsertionEffect:function(a,l){return Of(4,2,a,l)},useMemo:function(a,l){var p=go();return l=l===void 0?null:l,a=a(),p.memoizedState=[a,l],a},useReducer:function(a,l,p){var m=go();return l=p!==void 0?p(l):l,m.memoizedState=m.baseState=l,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:l},m.queue=a,a=a.dispatch=JM.bind(null,or,a),[m.memoizedState,a]},useRef:function(a){var l=go();return a={current:a},l.memoizedState=a},useState:Kw,useDebugValue:gg,useDeferredValue:function(a){return go().memoizedState=a},useTransition:function(){var a=Kw(!1),l=a[0];return a=YM.bind(null,a[1]),go().memoizedState=a,[l,a]},useMutableSource:function(){},useSyncExternalStore:function(a,l,p){var m=or,w=go();if(rr){if(p===void 0)throw Error(r(407));p=p()}else{if(p=l(),Ir===null)throw Error(r(349));(Ya&30)!==0||Hw(m,l,p)}w.memoizedState=p;var _={value:p,getSnapshot:l};return w.queue=_,Jw(qw.bind(null,m,_,a),[a]),m.flags|=2048,bu(9,Ww.bind(null,m,_,p,l),void 0,null),p},useId:function(){var a=go(),l=Ir.identifierPrefix;if(rr){var p=Wo,m=Ho;p=(m&~(1<<32-mr(m)-1)).toString(32)+p,l=":"+l+"R"+p,p=mu++,0<p&&(l+="H"+p.toString(32)),l+=":"}else p=KM++,l=":"+l+"r"+p.toString(32)+":";return a.memoizedState=l},unstable_isNewReconciler:!1},eD={readContext:hi,useCallback:rx,useContext:hi,useEffect:hg,useImperativeHandle:tx,useInsertionEffect:Qw,useLayoutEffect:Zw,useMemo:nx,useReducer:dg,useRef:Yw,useState:function(){return dg(yu)},useDebugValue:gg,useDeferredValue:function(a){var l=gi();return ix(l,Er.memoizedState,a)},useTransition:function(){var a=dg(yu)[0],l=gi().memoizedState;return[a,l]},useMutableSource:Vw,useSyncExternalStore:Uw,useId:ox,unstable_isNewReconciler:!1},tD={readContext:hi,useCallback:rx,useContext:hi,useEffect:hg,useImperativeHandle:tx,useInsertionEffect:Qw,useLayoutEffect:Zw,useMemo:nx,useReducer:pg,useRef:Yw,useState:function(){return pg(yu)},useDebugValue:gg,useDeferredValue:function(a){var l=gi();return Er===null?l.memoizedState=a:ix(l,Er.memoizedState,a)},useTransition:function(){var a=pg(yu)[0],l=gi().memoizedState;return[a,l]},useMutableSource:Vw,useSyncExternalStore:Uw,useId:ox,unstable_isNewReconciler:!1};function Vi(a,l){if(a&&a.defaultProps){l=W({},l),a=a.defaultProps;for(var p in a)l[p]===void 0&&(l[p]=a[p]);return l}return l}function vg(a,l,p,m){l=a.memoizedState,p=p(m,l),p=p==null?l:W({},l,p),a.memoizedState=p,a.lanes===0&&(a.updateQueue.baseState=p)}var $f={isMounted:function(a){return(a=a._reactInternals)?vr(a)===a:!1},enqueueSetState:function(a,l,p){a=a._reactInternals;var m=un(),w=xa(a),_=Go(m,w);_.payload=l,p!=null&&(_.callback=p),l=ya(a,_,w),l!==null&&(Wi(l,a,w,m),xf(l,a,w))},enqueueReplaceState:function(a,l,p){a=a._reactInternals;var m=un(),w=xa(a),_=Go(m,w);_.tag=1,_.payload=l,p!=null&&(_.callback=p),l=ya(a,_,w),l!==null&&(Wi(l,a,w,m),xf(l,a,w))},enqueueForceUpdate:function(a,l){a=a._reactInternals;var p=un(),m=xa(a),w=Go(p,m);w.tag=2,l!=null&&(w.callback=l),l=ya(a,w,m),l!==null&&(Wi(l,a,m,p),xf(l,a,m))}};function ux(a,l,p,m,w,_,k){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(m,_,k):l.prototype&&l.prototype.isPureReactComponent?!ou(p,m)||!ou(w,_):!0}function cx(a,l,p){var m=!1,w=ga,_=l.contextType;return typeof _=="object"&&_!==null?_=hi(_):(w=wn(l)?Wa:Xr.current,m=l.contextTypes,_=(m=m!=null)?zs(a,w):ga),l=new l(p,_),a.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=$f,a.stateNode=l,l._reactInternals=a,m&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=w,a.__reactInternalMemoizedMaskedChildContext=_),l}function fx(a,l,p,m){a=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(p,m),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(p,m),l.state!==a&&$f.enqueueReplaceState(l,l.state,null)}function mg(a,l,p,m){var w=a.stateNode;w.props=p,w.state=a.memoizedState,w.refs={},ng(a);var _=l.contextType;typeof _=="object"&&_!==null?w.context=hi(_):(_=wn(l)?Wa:Xr.current,w.context=zs(a,_)),w.state=a.memoizedState,_=l.getDerivedStateFromProps,typeof _=="function"&&(vg(a,l,_,p),w.state=a.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof w.getSnapshotBeforeUpdate=="function"||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(l=w.state,typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount(),l!==w.state&&$f.enqueueReplaceState(w,w.state,null),Ef(a,p,w,m),w.state=a.memoizedState),typeof w.componentDidMount=="function"&&(a.flags|=4194308)}function Xs(a,l){try{var p="",m=l;do p+=te(m),m=m.return;while(m);var w=p}catch(_){w=`
34
+ Error generating stack: `+_.message+`
35
+ `+_.stack}return{value:a,source:l,stack:w,digest:null}}function yg(a,l,p){return{value:a,source:null,stack:p??null,digest:l??null}}function bg(a,l){try{console.error(l.value)}catch(p){setTimeout(function(){throw p})}}var rD=typeof WeakMap=="function"?WeakMap:Map;function dx(a,l,p){p=Go(-1,p),p.tag=3,p.payload={element:null};var m=l.value;return p.callback=function(){Ff||(Ff=!0,Mg=m),bg(a,l)},p}function px(a,l,p){p=Go(-1,p),p.tag=3;var m=a.type.getDerivedStateFromError;if(typeof m=="function"){var w=l.value;p.payload=function(){return m(w)},p.callback=function(){bg(a,l)}}var _=a.stateNode;return _!==null&&typeof _.componentDidCatch=="function"&&(p.callback=function(){bg(a,l),typeof m!="function"&&(Sa===null?Sa=new Set([this]):Sa.add(this));var k=l.stack;this.componentDidCatch(l.value,{componentStack:k!==null?k:""})}),p}function hx(a,l,p){var m=a.pingCache;if(m===null){m=a.pingCache=new rD;var w=new Set;m.set(l,w)}else w=m.get(l),w===void 0&&(w=new Set,m.set(l,w));w.has(p)||(w.add(p),a=vD.bind(null,a,l,p),l.then(a,a))}function gx(a){do{var l;if((l=a.tag===13)&&(l=a.memoizedState,l=l!==null?l.dehydrated!==null:!0),l)return a;a=a.return}while(a!==null);return null}function vx(a,l,p,m,w){return(a.mode&1)===0?(a===l?a.flags|=65536:(a.flags|=128,p.flags|=131072,p.flags&=-52805,p.tag===1&&(p.alternate===null?p.tag=17:(l=Go(-1,1),l.tag=2,ya(p,l,1))),p.lanes|=1),a):(a.flags|=65536,a.lanes=w,a)}var nD=A.ReactCurrentOwner,xn=!1;function ln(a,l,p,m){l.child=a===null?Lw(l,null,p,m):Hs(l,a.child,p,m)}function mx(a,l,p,m,w){p=p.render;var _=l.ref;return qs(l,w),m=cg(a,l,p,m,_,w),p=fg(),a!==null&&!xn?(l.updateQueue=a.updateQueue,l.flags&=-2053,a.lanes&=~w,Xo(a,l,w)):(rr&&p&&Gh(l),l.flags|=1,ln(a,l,m,w),l.child)}function yx(a,l,p,m,w){if(a===null){var _=p.type;return typeof _=="function"&&!Bg(_)&&_.defaultProps===void 0&&p.compare===null&&p.defaultProps===void 0?(l.tag=15,l.type=_,bx(a,l,_,m,w)):(a=Uf(p.type,null,m,l,l.mode,w),a.ref=l.ref,a.return=l,l.child=a)}if(_=a.child,(a.lanes&w)===0){var k=_.memoizedProps;if(p=p.compare,p=p!==null?p:ou,p(k,m)&&a.ref===l.ref)return Xo(a,l,w)}return l.flags|=1,a=Ca(_,m),a.ref=l.ref,a.return=l,l.child=a}function bx(a,l,p,m,w){if(a!==null){var _=a.memoizedProps;if(ou(_,m)&&a.ref===l.ref)if(xn=!1,l.pendingProps=m=_,(a.lanes&w)!==0)(a.flags&131072)!==0&&(xn=!0);else return l.lanes=a.lanes,Xo(a,l,w)}return Sg(a,l,p,m,w)}function Sx(a,l,p){var m=l.pendingProps,w=m.children,_=a!==null?a.memoizedState:null;if(m.mode==="hidden")if((l.mode&1)===0)l.memoizedState={baseLanes:0,cachePool:null,transitions:null},Qt(Ys,Bn),Bn|=p;else{if((p&1073741824)===0)return a=_!==null?_.baseLanes|p:p,l.lanes=l.childLanes=1073741824,l.memoizedState={baseLanes:a,cachePool:null,transitions:null},l.updateQueue=null,Qt(Ys,Bn),Bn|=a,null;l.memoizedState={baseLanes:0,cachePool:null,transitions:null},m=_!==null?_.baseLanes:p,Qt(Ys,Bn),Bn|=m}else _!==null?(m=_.baseLanes|p,l.memoizedState=null):m=p,Qt(Ys,Bn),Bn|=m;return ln(a,l,w,p),l.child}function wx(a,l){var p=l.ref;(a===null&&p!==null||a!==null&&a.ref!==p)&&(l.flags|=512,l.flags|=2097152)}function Sg(a,l,p,m,w){var _=wn(p)?Wa:Xr.current;return _=zs(l,_),qs(l,w),p=cg(a,l,p,m,_,w),m=fg(),a!==null&&!xn?(l.updateQueue=a.updateQueue,l.flags&=-2053,a.lanes&=~w,Xo(a,l,w)):(rr&&m&&Gh(l),l.flags|=1,ln(a,l,p,w),l.child)}function xx(a,l,p,m,w){if(wn(p)){var _=!0;hf(l)}else _=!1;if(qs(l,w),l.stateNode===null)Pf(a,l),cx(l,p,m),mg(l,p,m,w),m=!0;else if(a===null){var k=l.stateNode,J=l.memoizedProps;k.props=J;var re=k.context,ge=p.contextType;typeof ge=="object"&&ge!==null?ge=hi(ge):(ge=wn(p)?Wa:Xr.current,ge=zs(l,ge));var Pe=p.getDerivedStateFromProps,Me=typeof Pe=="function"||typeof k.getSnapshotBeforeUpdate=="function";Me||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(J!==m||re!==ge)&&fx(l,k,m,ge),ma=!1;var Ae=l.memoizedState;k.state=Ae,Ef(l,m,k,w),re=l.memoizedState,J!==m||Ae!==re||Sn.current||ma?(typeof Pe=="function"&&(vg(l,p,Pe,m),re=l.memoizedState),(J=ma||ux(l,p,J,m,Ae,re,ge))?(Me||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(l.flags|=4194308)):(typeof k.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=m,l.memoizedState=re),k.props=m,k.state=re,k.context=ge,m=J):(typeof k.componentDidMount=="function"&&(l.flags|=4194308),m=!1)}else{k=l.stateNode,Nw(a,l),J=l.memoizedProps,ge=l.type===l.elementType?J:Vi(l.type,J),k.props=ge,Me=l.pendingProps,Ae=k.context,re=p.contextType,typeof re=="object"&&re!==null?re=hi(re):(re=wn(p)?Wa:Xr.current,re=zs(l,re));var He=p.getDerivedStateFromProps;(Pe=typeof He=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(J!==Me||Ae!==re)&&fx(l,k,m,re),ma=!1,Ae=l.memoizedState,k.state=Ae,Ef(l,m,k,w);var qe=l.memoizedState;J!==Me||Ae!==qe||Sn.current||ma?(typeof He=="function"&&(vg(l,p,He,m),qe=l.memoizedState),(ge=ma||ux(l,p,ge,m,Ae,qe,re)||!1)?(Pe||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(m,qe,re),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(m,qe,re)),typeof k.componentDidUpdate=="function"&&(l.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof k.componentDidUpdate!="function"||J===a.memoizedProps&&Ae===a.memoizedState||(l.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||J===a.memoizedProps&&Ae===a.memoizedState||(l.flags|=1024),l.memoizedProps=m,l.memoizedState=qe),k.props=m,k.state=qe,k.context=re,m=ge):(typeof k.componentDidUpdate!="function"||J===a.memoizedProps&&Ae===a.memoizedState||(l.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||J===a.memoizedProps&&Ae===a.memoizedState||(l.flags|=1024),m=!1)}return wg(a,l,p,m,_,w)}function wg(a,l,p,m,w,_){wx(a,l);var k=(l.flags&128)!==0;if(!m&&!k)return w&&Ow(l,p,!1),Xo(a,l,_);m=l.stateNode,nD.current=l;var J=k&&typeof p.getDerivedStateFromError!="function"?null:m.render();return l.flags|=1,a!==null&&k?(l.child=Hs(l,a.child,null,_),l.child=Hs(l,null,J,_)):ln(a,l,J,_),l.memoizedState=m.state,w&&Ow(l,p,!0),l.child}function Ex(a){var l=a.stateNode;l.pendingContext?Rw(a,l.pendingContext,l.pendingContext!==l.context):l.context&&Rw(a,l.context,!1),ig(a,l.containerInfo)}function Cx(a,l,p,m,w){return Us(),Jh(w),l.flags|=256,ln(a,l,p,m),l.child}var xg={dehydrated:null,treeContext:null,retryLane:0};function Eg(a){return{baseLanes:a,cachePool:null,transitions:null}}function Rx(a,l,p){var m=l.pendingProps,w=ir.current,_=!1,k=(l.flags&128)!==0,J;if((J=k)||(J=a!==null&&a.memoizedState===null?!1:(w&2)!==0),J?(_=!0,l.flags&=-129):(a===null||a.memoizedState!==null)&&(w|=1),Qt(ir,w&1),a===null)return Yh(l),a=l.memoizedState,a!==null&&(a=a.dehydrated,a!==null)?((l.mode&1)===0?l.lanes=1:a.data==="$!"?l.lanes=8:l.lanes=1073741824,null):(k=m.children,a=m.fallback,_?(m=l.mode,_=l.child,k={mode:"hidden",children:k},(m&1)===0&&_!==null?(_.childLanes=0,_.pendingProps=k):_=Hf(k,m,0,null),a=ts(a,m,p,null),_.return=l,a.return=l,_.sibling=a,l.child=_,l.child.memoizedState=Eg(p),l.memoizedState=xg,a):Cg(l,k));if(w=a.memoizedState,w!==null&&(J=w.dehydrated,J!==null))return iD(a,l,k,m,J,w,p);if(_){_=m.fallback,k=l.mode,w=a.child,J=w.sibling;var re={mode:"hidden",children:m.children};return(k&1)===0&&l.child!==w?(m=l.child,m.childLanes=0,m.pendingProps=re,l.deletions=null):(m=Ca(w,re),m.subtreeFlags=w.subtreeFlags&14680064),J!==null?_=Ca(J,_):(_=ts(_,k,p,null),_.flags|=2),_.return=l,m.return=l,m.sibling=_,l.child=m,m=_,_=l.child,k=a.child.memoizedState,k=k===null?Eg(p):{baseLanes:k.baseLanes|p,cachePool:null,transitions:k.transitions},_.memoizedState=k,_.childLanes=a.childLanes&~p,l.memoizedState=xg,m}return _=a.child,a=_.sibling,m=Ca(_,{mode:"visible",children:m.children}),(l.mode&1)===0&&(m.lanes=p),m.return=l,m.sibling=null,a!==null&&(p=l.deletions,p===null?(l.deletions=[a],l.flags|=16):p.push(a)),l.child=m,l.memoizedState=null,m}function Cg(a,l){return l=Hf({mode:"visible",children:l},a.mode,0,null),l.return=a,a.child=l}function If(a,l,p,m){return m!==null&&Jh(m),Hs(l,a.child,null,p),a=Cg(l,l.pendingProps.children),a.flags|=2,l.memoizedState=null,a}function iD(a,l,p,m,w,_,k){if(p)return l.flags&256?(l.flags&=-257,m=yg(Error(r(422))),If(a,l,k,m)):l.memoizedState!==null?(l.child=a.child,l.flags|=128,null):(_=m.fallback,w=l.mode,m=Hf({mode:"visible",children:m.children},w,0,null),_=ts(_,w,k,null),_.flags|=2,m.return=l,_.return=l,m.sibling=_,l.child=m,(l.mode&1)!==0&&Hs(l,a.child,null,k),l.child.memoizedState=Eg(k),l.memoizedState=xg,_);if((l.mode&1)===0)return If(a,l,k,null);if(w.data==="$!"){if(m=w.nextSibling&&w.nextSibling.dataset,m)var J=m.dgst;return m=J,_=Error(r(419)),m=yg(_,m,void 0),If(a,l,k,m)}if(J=(k&a.childLanes)!==0,xn||J){if(m=Ir,m!==null){switch(k&-k){case 4:w=2;break;case 16:w=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:w=32;break;case 536870912:w=268435456;break;default:w=0}w=(w&(m.suspendedLanes|k))!==0?0:w,w!==0&&w!==_.retryLane&&(_.retryLane=w,qo(a,w),Wi(m,a,w,-1))}return zg(),m=yg(Error(r(421))),If(a,l,k,m)}return w.data==="$?"?(l.flags|=128,l.child=a.child,l=mD.bind(null,a),w._reactRetry=l,null):(a=_.treeContext,zn=pa(w.nextSibling),jn=l,rr=!0,Bi=null,a!==null&&(di[pi++]=Ho,di[pi++]=Wo,di[pi++]=qa,Ho=a.id,Wo=a.overflow,qa=l),l=Cg(l,m.children),l.flags|=4096,l)}function _x(a,l,p){a.lanes|=l;var m=a.alternate;m!==null&&(m.lanes|=l),tg(a.return,l,p)}function Rg(a,l,p,m,w){var _=a.memoizedState;_===null?a.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:m,tail:p,tailMode:w}:(_.isBackwards=l,_.rendering=null,_.renderingStartTime=0,_.last=m,_.tail=p,_.tailMode=w)}function Ox(a,l,p){var m=l.pendingProps,w=m.revealOrder,_=m.tail;if(ln(a,l,m.children,p),m=ir.current,(m&2)!==0)m=m&1|2,l.flags|=128;else{if(a!==null&&(a.flags&128)!==0)e:for(a=l.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&_x(a,p,l);else if(a.tag===19)_x(a,p,l);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===l)break e;for(;a.sibling===null;){if(a.return===null||a.return===l)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}m&=1}if(Qt(ir,m),(l.mode&1)===0)l.memoizedState=null;else switch(w){case"forwards":for(p=l.child,w=null;p!==null;)a=p.alternate,a!==null&&Cf(a)===null&&(w=p),p=p.sibling;p=w,p===null?(w=l.child,l.child=null):(w=p.sibling,p.sibling=null),Rg(l,!1,w,p,_);break;case"backwards":for(p=null,w=l.child,l.child=null;w!==null;){if(a=w.alternate,a!==null&&Cf(a)===null){l.child=w;break}a=w.sibling,w.sibling=p,p=w,w=a}Rg(l,!0,p,null,_);break;case"together":Rg(l,!1,null,null,void 0);break;default:l.memoizedState=null}return l.child}function Pf(a,l){(l.mode&1)===0&&a!==null&&(a.alternate=null,l.alternate=null,l.flags|=2)}function Xo(a,l,p){if(a!==null&&(l.dependencies=a.dependencies),Ja|=l.lanes,(p&l.childLanes)===0)return null;if(a!==null&&l.child!==a.child)throw Error(r(153));if(l.child!==null){for(a=l.child,p=Ca(a,a.pendingProps),l.child=p,p.return=l;a.sibling!==null;)a=a.sibling,p=p.sibling=Ca(a,a.pendingProps),p.return=l;p.sibling=null}return l.child}function oD(a,l,p){switch(l.tag){case 3:Ex(l),Us();break;case 5:Bw(l);break;case 1:wn(l.type)&&hf(l);break;case 4:ig(l,l.stateNode.containerInfo);break;case 10:var m=l.type._context,w=l.memoizedProps.value;Qt(Sf,m._currentValue),m._currentValue=w;break;case 13:if(m=l.memoizedState,m!==null)return m.dehydrated!==null?(Qt(ir,ir.current&1),l.flags|=128,null):(p&l.child.childLanes)!==0?Rx(a,l,p):(Qt(ir,ir.current&1),a=Xo(a,l,p),a!==null?a.sibling:null);Qt(ir,ir.current&1);break;case 19:if(m=(p&l.childLanes)!==0,(a.flags&128)!==0){if(m)return Ox(a,l,p);l.flags|=128}if(w=l.memoizedState,w!==null&&(w.rendering=null,w.tail=null,w.lastEffect=null),Qt(ir,ir.current),m)break;return null;case 22:case 23:return l.lanes=0,Sx(a,l,p)}return Xo(a,l,p)}var Tx,_g,Ax,$x;Tx=function(a,l){for(var p=l.child;p!==null;){if(p.tag===5||p.tag===6)a.appendChild(p.stateNode);else if(p.tag!==4&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===l)break;for(;p.sibling===null;){if(p.return===null||p.return===l)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},_g=function(){},Ax=function(a,l,p,m){var w=a.memoizedProps;if(w!==m){a=l.stateNode,Ka(ho.current);var _=null;switch(p){case"input":w=Ce(a,w),m=Ce(a,m),_=[];break;case"select":w=W({},w,{value:void 0}),m=W({},m,{value:void 0}),_=[];break;case"textarea":w=Ye(a,w),m=Ye(a,m),_=[];break;default:typeof w.onClick!="function"&&typeof m.onClick=="function"&&(a.onclick=ff)}ee(p,m);var k;p=null;for(ge in w)if(!m.hasOwnProperty(ge)&&w.hasOwnProperty(ge)&&w[ge]!=null)if(ge==="style"){var J=w[ge];for(k in J)J.hasOwnProperty(k)&&(p||(p={}),p[k]="")}else ge!=="dangerouslySetInnerHTML"&&ge!=="children"&&ge!=="suppressContentEditableWarning"&&ge!=="suppressHydrationWarning"&&ge!=="autoFocus"&&(i.hasOwnProperty(ge)?_||(_=[]):(_=_||[]).push(ge,null));for(ge in m){var re=m[ge];if(J=w?.[ge],m.hasOwnProperty(ge)&&re!==J&&(re!=null||J!=null))if(ge==="style")if(J){for(k in J)!J.hasOwnProperty(k)||re&&re.hasOwnProperty(k)||(p||(p={}),p[k]="");for(k in re)re.hasOwnProperty(k)&&J[k]!==re[k]&&(p||(p={}),p[k]=re[k])}else p||(_||(_=[]),_.push(ge,p)),p=re;else ge==="dangerouslySetInnerHTML"?(re=re?re.__html:void 0,J=J?J.__html:void 0,re!=null&&J!==re&&(_=_||[]).push(ge,re)):ge==="children"?typeof re!="string"&&typeof re!="number"||(_=_||[]).push(ge,""+re):ge!=="suppressContentEditableWarning"&&ge!=="suppressHydrationWarning"&&(i.hasOwnProperty(ge)?(re!=null&&ge==="onScroll"&&er("scroll",a),_||J===re||(_=[])):(_=_||[]).push(ge,re))}p&&(_=_||[]).push("style",p);var ge=_;(l.updateQueue=ge)&&(l.flags|=4)}},$x=function(a,l,p,m){p!==m&&(l.flags|=4)};function Su(a,l){if(!rr)switch(a.tailMode){case"hidden":l=a.tail;for(var p=null;l!==null;)l.alternate!==null&&(p=l),l=l.sibling;p===null?a.tail=null:p.sibling=null;break;case"collapsed":p=a.tail;for(var m=null;p!==null;)p.alternate!==null&&(m=p),p=p.sibling;m===null?l||a.tail===null?a.tail=null:a.tail.sibling=null:m.sibling=null}}function Yr(a){var l=a.alternate!==null&&a.alternate.child===a.child,p=0,m=0;if(l)for(var w=a.child;w!==null;)p|=w.lanes|w.childLanes,m|=w.subtreeFlags&14680064,m|=w.flags&14680064,w.return=a,w=w.sibling;else for(w=a.child;w!==null;)p|=w.lanes|w.childLanes,m|=w.subtreeFlags,m|=w.flags,w.return=a,w=w.sibling;return a.subtreeFlags|=m,a.childLanes=p,l}function aD(a,l,p){var m=l.pendingProps;switch(Xh(l),l.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yr(l),null;case 1:return wn(l.type)&&pf(),Yr(l),null;case 3:return m=l.stateNode,Gs(),tr(Sn),tr(Xr),sg(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(a===null||a.child===null)&&(yf(l)?l.flags|=4:a===null||a.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,Bi!==null&&(Fg(Bi),Bi=null))),_g(a,l),Yr(l),null;case 5:og(l);var w=Ka(gu.current);if(p=l.type,a!==null&&l.stateNode!=null)Ax(a,l,p,m,w),a.ref!==l.ref&&(l.flags|=512,l.flags|=2097152);else{if(!m){if(l.stateNode===null)throw Error(r(166));return Yr(l),null}if(a=Ka(ho.current),yf(l)){m=l.stateNode,p=l.type;var _=l.memoizedProps;switch(m[po]=l,m[cu]=_,a=(l.mode&1)!==0,p){case"dialog":er("cancel",m),er("close",m);break;case"iframe":case"object":case"embed":er("load",m);break;case"video":case"audio":for(w=0;w<su.length;w++)er(su[w],m);break;case"source":er("error",m);break;case"img":case"image":case"link":er("error",m),er("load",m);break;case"details":er("toggle",m);break;case"input":_e(m,_),er("invalid",m);break;case"select":m._wrapperState={wasMultiple:!!_.multiple},er("invalid",m);break;case"textarea":Ue(m,_),er("invalid",m)}ee(p,_),w=null;for(var k in _)if(_.hasOwnProperty(k)){var J=_[k];k==="children"?typeof J=="string"?m.textContent!==J&&(_.suppressHydrationWarning!==!0&&cf(m.textContent,J,a),w=["children",J]):typeof J=="number"&&m.textContent!==""+J&&(_.suppressHydrationWarning!==!0&&cf(m.textContent,J,a),w=["children",""+J]):i.hasOwnProperty(k)&&J!=null&&k==="onScroll"&&er("scroll",m)}switch(p){case"input":Ee(m),Ge(m,_,!0);break;case"textarea":Ee(m),Xe(m);break;case"select":case"option":break;default:typeof _.onClick=="function"&&(m.onclick=ff)}m=w,l.updateQueue=m,m!==null&&(l.flags|=4)}else{k=w.nodeType===9?w:w.ownerDocument,a==="http://www.w3.org/1999/xhtml"&&(a=ct(p)),a==="http://www.w3.org/1999/xhtml"?p==="script"?(a=k.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild)):typeof m.is=="string"?a=k.createElement(p,{is:m.is}):(a=k.createElement(p),p==="select"&&(k=a,m.multiple?k.multiple=!0:m.size&&(k.size=m.size))):a=k.createElementNS(a,p),a[po]=l,a[cu]=m,Tx(a,l,!1,!1),l.stateNode=a;e:{switch(k=Oe(p,m),p){case"dialog":er("cancel",a),er("close",a),w=m;break;case"iframe":case"object":case"embed":er("load",a),w=m;break;case"video":case"audio":for(w=0;w<su.length;w++)er(su[w],a);w=m;break;case"source":er("error",a),w=m;break;case"img":case"image":case"link":er("error",a),er("load",a),w=m;break;case"details":er("toggle",a),w=m;break;case"input":_e(a,m),w=Ce(a,m),er("invalid",a);break;case"option":w=m;break;case"select":a._wrapperState={wasMultiple:!!m.multiple},w=W({},m,{value:void 0}),er("invalid",a);break;case"textarea":Ue(a,m),w=Ye(a,m),er("invalid",a);break;default:w=m}ee(p,w),J=w;for(_ in J)if(J.hasOwnProperty(_)){var re=J[_];_==="style"?Y(a,re):_==="dangerouslySetInnerHTML"?(re=re?re.__html:void 0,re!=null&&Ft(a,re)):_==="children"?typeof re=="string"?(p!=="textarea"||re!=="")&&It(a,re):typeof re=="number"&&It(a,""+re):_!=="suppressContentEditableWarning"&&_!=="suppressHydrationWarning"&&_!=="autoFocus"&&(i.hasOwnProperty(_)?re!=null&&_==="onScroll"&&er("scroll",a):re!=null&&T(a,_,re,k))}switch(p){case"input":Ee(a),Ge(a,m,!1);break;case"textarea":Ee(a),Xe(a);break;case"option":m.value!=null&&a.setAttribute("value",""+ae(m.value));break;case"select":a.multiple=!!m.multiple,_=m.value,_!=null?ze(a,!!m.multiple,_,!1):m.defaultValue!=null&&ze(a,!!m.multiple,m.defaultValue,!0);break;default:typeof w.onClick=="function"&&(a.onclick=ff)}switch(p){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}}m&&(l.flags|=4)}l.ref!==null&&(l.flags|=512,l.flags|=2097152)}return Yr(l),null;case 6:if(a&&l.stateNode!=null)$x(a,l,a.memoizedProps,m);else{if(typeof m!="string"&&l.stateNode===null)throw Error(r(166));if(p=Ka(gu.current),Ka(ho.current),yf(l)){if(m=l.stateNode,p=l.memoizedProps,m[po]=l,(_=m.nodeValue!==p)&&(a=jn,a!==null))switch(a.tag){case 3:cf(m.nodeValue,p,(a.mode&1)!==0);break;case 5:a.memoizedProps.suppressHydrationWarning!==!0&&cf(m.nodeValue,p,(a.mode&1)!==0)}_&&(l.flags|=4)}else m=(p.nodeType===9?p:p.ownerDocument).createTextNode(m),m[po]=l,l.stateNode=m}return Yr(l),null;case 13:if(tr(ir),m=l.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(rr&&zn!==null&&(l.mode&1)!==0&&(l.flags&128)===0)kw(),Us(),l.flags|=98560,_=!1;else if(_=yf(l),m!==null&&m.dehydrated!==null){if(a===null){if(!_)throw Error(r(318));if(_=l.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error(r(317));_[po]=l}else Us(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Yr(l),_=!1}else Bi!==null&&(Fg(Bi),Bi=null),_=!0;if(!_)return l.flags&65536?l:null}return(l.flags&128)!==0?(l.lanes=p,l):(m=m!==null,m!==(a!==null&&a.memoizedState!==null)&&m&&(l.child.flags|=8192,(l.mode&1)!==0&&(a===null||(ir.current&1)!==0?Cr===0&&(Cr=3):zg())),l.updateQueue!==null&&(l.flags|=4),Yr(l),null);case 4:return Gs(),_g(a,l),a===null&&lu(l.stateNode.containerInfo),Yr(l),null;case 10:return eg(l.type._context),Yr(l),null;case 17:return wn(l.type)&&pf(),Yr(l),null;case 19:if(tr(ir),_=l.memoizedState,_===null)return Yr(l),null;if(m=(l.flags&128)!==0,k=_.rendering,k===null)if(m)Su(_,!1);else{if(Cr!==0||a!==null&&(a.flags&128)!==0)for(a=l.child;a!==null;){if(k=Cf(a),k!==null){for(l.flags|=128,Su(_,!1),m=k.updateQueue,m!==null&&(l.updateQueue=m,l.flags|=4),l.subtreeFlags=0,m=p,p=l.child;p!==null;)_=p,a=m,_.flags&=14680066,k=_.alternate,k===null?(_.childLanes=0,_.lanes=a,_.child=null,_.subtreeFlags=0,_.memoizedProps=null,_.memoizedState=null,_.updateQueue=null,_.dependencies=null,_.stateNode=null):(_.childLanes=k.childLanes,_.lanes=k.lanes,_.child=k.child,_.subtreeFlags=0,_.deletions=null,_.memoizedProps=k.memoizedProps,_.memoizedState=k.memoizedState,_.updateQueue=k.updateQueue,_.type=k.type,a=k.dependencies,_.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),p=p.sibling;return Qt(ir,ir.current&1|2),l.child}a=a.sibling}_.tail!==null&&Ut()>Js&&(l.flags|=128,m=!0,Su(_,!1),l.lanes=4194304)}else{if(!m)if(a=Cf(k),a!==null){if(l.flags|=128,m=!0,p=a.updateQueue,p!==null&&(l.updateQueue=p,l.flags|=4),Su(_,!0),_.tail===null&&_.tailMode==="hidden"&&!k.alternate&&!rr)return Yr(l),null}else 2*Ut()-_.renderingStartTime>Js&&p!==1073741824&&(l.flags|=128,m=!0,Su(_,!1),l.lanes=4194304);_.isBackwards?(k.sibling=l.child,l.child=k):(p=_.last,p!==null?p.sibling=k:l.child=k,_.last=k)}return _.tail!==null?(l=_.tail,_.rendering=l,_.tail=l.sibling,_.renderingStartTime=Ut(),l.sibling=null,p=ir.current,Qt(ir,m?p&1|2:p&1),l):(Yr(l),null);case 22:case 23:return jg(),m=l.memoizedState!==null,a!==null&&a.memoizedState!==null!==m&&(l.flags|=8192),m&&(l.mode&1)!==0?(Bn&1073741824)!==0&&(Yr(l),l.subtreeFlags&6&&(l.flags|=8192)):Yr(l),null;case 24:return null;case 25:return null}throw Error(r(156,l.tag))}function sD(a,l){switch(Xh(l),l.tag){case 1:return wn(l.type)&&pf(),a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 3:return Gs(),tr(Sn),tr(Xr),sg(),a=l.flags,(a&65536)!==0&&(a&128)===0?(l.flags=a&-65537|128,l):null;case 5:return og(l),null;case 13:if(tr(ir),a=l.memoizedState,a!==null&&a.dehydrated!==null){if(l.alternate===null)throw Error(r(340));Us()}return a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 19:return tr(ir),null;case 4:return Gs(),null;case 10:return eg(l.type._context),null;case 22:case 23:return jg(),null;case 24:return null;default:return null}}var kf=!1,Jr=!1,lD=typeof WeakSet=="function"?WeakSet:Set,We=null;function Ks(a,l){var p=a.ref;if(p!==null)if(typeof p=="function")try{p(null)}catch(m){ar(a,l,m)}else p.current=null}function Og(a,l,p){try{p()}catch(m){ar(a,l,m)}}var Ix=!1;function uD(a,l){if(jh=Qc,a=uw(),Ih(a)){if("selectionStart"in a)var p={start:a.selectionStart,end:a.selectionEnd};else e:{p=(p=a.ownerDocument)&&p.defaultView||window;var m=p.getSelection&&p.getSelection();if(m&&m.rangeCount!==0){p=m.anchorNode;var w=m.anchorOffset,_=m.focusNode;m=m.focusOffset;try{p.nodeType,_.nodeType}catch{p=null;break e}var k=0,J=-1,re=-1,ge=0,Pe=0,Me=a,Ae=null;t:for(;;){for(var He;Me!==p||w!==0&&Me.nodeType!==3||(J=k+w),Me!==_||m!==0&&Me.nodeType!==3||(re=k+m),Me.nodeType===3&&(k+=Me.nodeValue.length),(He=Me.firstChild)!==null;)Ae=Me,Me=He;for(;;){if(Me===a)break t;if(Ae===p&&++ge===w&&(J=k),Ae===_&&++Pe===m&&(re=k),(He=Me.nextSibling)!==null)break;Me=Ae,Ae=Me.parentNode}Me=He}p=J===-1||re===-1?null:{start:J,end:re}}else p=null}p=p||{start:0,end:0}}else p=null;for(zh={focusedElem:a,selectionRange:p},Qc=!1,We=l;We!==null;)if(l=We,a=l.child,(l.subtreeFlags&1028)!==0&&a!==null)a.return=l,We=a;else for(;We!==null;){l=We;try{var qe=l.alternate;if((l.flags&1024)!==0)switch(l.tag){case 0:case 11:case 15:break;case 1:if(qe!==null){var Ke=qe.memoizedProps,cr=qe.memoizedState,ce=l.stateNode,ie=ce.getSnapshotBeforeUpdate(l.elementType===l.type?Ke:Vi(l.type,Ke),cr);ce.__reactInternalSnapshotBeforeUpdate=ie}break;case 3:var de=l.stateNode.containerInfo;de.nodeType===1?de.textContent="":de.nodeType===9&&de.documentElement&&de.removeChild(de.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Le){ar(l,l.return,Le)}if(a=l.sibling,a!==null){a.return=l.return,We=a;break}We=l.return}return qe=Ix,Ix=!1,qe}function wu(a,l,p){var m=l.updateQueue;if(m=m!==null?m.lastEffect:null,m!==null){var w=m=m.next;do{if((w.tag&a)===a){var _=w.destroy;w.destroy=void 0,_!==void 0&&Og(l,p,_)}w=w.next}while(w!==m)}}function Mf(a,l){if(l=l.updateQueue,l=l!==null?l.lastEffect:null,l!==null){var p=l=l.next;do{if((p.tag&a)===a){var m=p.create;p.destroy=m()}p=p.next}while(p!==l)}}function Tg(a){var l=a.ref;if(l!==null){var p=a.stateNode;switch(a.tag){case 5:a=p;break;default:a=p}typeof l=="function"?l(a):l.current=a}}function Px(a){var l=a.alternate;l!==null&&(a.alternate=null,Px(l)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(l=a.stateNode,l!==null&&(delete l[po],delete l[cu],delete l[Hh],delete l[WM],delete l[qM])),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function kx(a){return a.tag===5||a.tag===3||a.tag===4}function Mx(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||kx(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function Ag(a,l,p){var m=a.tag;if(m===5||m===6)a=a.stateNode,l?p.nodeType===8?p.parentNode.insertBefore(a,l):p.insertBefore(a,l):(p.nodeType===8?(l=p.parentNode,l.insertBefore(a,p)):(l=p,l.appendChild(a)),p=p._reactRootContainer,p!=null||l.onclick!==null||(l.onclick=ff));else if(m!==4&&(a=a.child,a!==null))for(Ag(a,l,p),a=a.sibling;a!==null;)Ag(a,l,p),a=a.sibling}function $g(a,l,p){var m=a.tag;if(m===5||m===6)a=a.stateNode,l?p.insertBefore(a,l):p.appendChild(a);else if(m!==4&&(a=a.child,a!==null))for($g(a,l,p),a=a.sibling;a!==null;)$g(a,l,p),a=a.sibling}var Nr=null,Ui=!1;function ba(a,l,p){for(p=p.child;p!==null;)Dx(a,l,p),p=p.sibling}function Dx(a,l,p){if(wr&&typeof wr.onCommitFiberUnmount=="function")try{wr.onCommitFiberUnmount(an,p)}catch{}switch(p.tag){case 5:Jr||Ks(p,l);case 6:var m=Nr,w=Ui;Nr=null,ba(a,l,p),Nr=m,Ui=w,Nr!==null&&(Ui?(a=Nr,p=p.stateNode,a.nodeType===8?a.parentNode.removeChild(p):a.removeChild(p)):Nr.removeChild(p.stateNode));break;case 18:Nr!==null&&(Ui?(a=Nr,p=p.stateNode,a.nodeType===8?Uh(a.parentNode,p):a.nodeType===1&&Uh(a,p),ca(a)):Uh(Nr,p.stateNode));break;case 4:m=Nr,w=Ui,Nr=p.stateNode.containerInfo,Ui=!0,ba(a,l,p),Nr=m,Ui=w;break;case 0:case 11:case 14:case 15:if(!Jr&&(m=p.updateQueue,m!==null&&(m=m.lastEffect,m!==null))){w=m=m.next;do{var _=w,k=_.destroy;_=_.tag,k!==void 0&&((_&2)!==0||(_&4)!==0)&&Og(p,l,k),w=w.next}while(w!==m)}ba(a,l,p);break;case 1:if(!Jr&&(Ks(p,l),m=p.stateNode,typeof m.componentWillUnmount=="function"))try{m.props=p.memoizedProps,m.state=p.memoizedState,m.componentWillUnmount()}catch(J){ar(p,l,J)}ba(a,l,p);break;case 21:ba(a,l,p);break;case 22:p.mode&1?(Jr=(m=Jr)||p.memoizedState!==null,ba(a,l,p),Jr=m):ba(a,l,p);break;default:ba(a,l,p)}}function Lx(a){var l=a.updateQueue;if(l!==null){a.updateQueue=null;var p=a.stateNode;p===null&&(p=a.stateNode=new lD),l.forEach(function(m){var w=yD.bind(null,a,m);p.has(m)||(p.add(m),m.then(w,w))})}}function Hi(a,l){var p=l.deletions;if(p!==null)for(var m=0;m<p.length;m++){var w=p[m];try{var _=a,k=l,J=k;e:for(;J!==null;){switch(J.tag){case 5:Nr=J.stateNode,Ui=!1;break e;case 3:Nr=J.stateNode.containerInfo,Ui=!0;break e;case 4:Nr=J.stateNode.containerInfo,Ui=!0;break e}J=J.return}if(Nr===null)throw Error(r(160));Dx(_,k,w),Nr=null,Ui=!1;var re=w.alternate;re!==null&&(re.return=null),w.return=null}catch(ge){ar(w,l,ge)}}if(l.subtreeFlags&12854)for(l=l.child;l!==null;)Fx(l,a),l=l.sibling}function Fx(a,l){var p=a.alternate,m=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:if(Hi(l,a),vo(a),m&4){try{wu(3,a,a.return),Mf(3,a)}catch(Ke){ar(a,a.return,Ke)}try{wu(5,a,a.return)}catch(Ke){ar(a,a.return,Ke)}}break;case 1:Hi(l,a),vo(a),m&512&&p!==null&&Ks(p,p.return);break;case 5:if(Hi(l,a),vo(a),m&512&&p!==null&&Ks(p,p.return),a.flags&32){var w=a.stateNode;try{It(w,"")}catch(Ke){ar(a,a.return,Ke)}}if(m&4&&(w=a.stateNode,w!=null)){var _=a.memoizedProps,k=p!==null?p.memoizedProps:_,J=a.type,re=a.updateQueue;if(a.updateQueue=null,re!==null)try{J==="input"&&_.type==="radio"&&_.name!=null&&$e(w,_),Oe(J,k);var ge=Oe(J,_);for(k=0;k<re.length;k+=2){var Pe=re[k],Me=re[k+1];Pe==="style"?Y(w,Me):Pe==="dangerouslySetInnerHTML"?Ft(w,Me):Pe==="children"?It(w,Me):T(w,Pe,Me,ge)}switch(J){case"input":ke(w,_);break;case"textarea":Re(w,_);break;case"select":var Ae=w._wrapperState.wasMultiple;w._wrapperState.wasMultiple=!!_.multiple;var He=_.value;He!=null?ze(w,!!_.multiple,He,!1):Ae!==!!_.multiple&&(_.defaultValue!=null?ze(w,!!_.multiple,_.defaultValue,!0):ze(w,!!_.multiple,_.multiple?[]:"",!1))}w[cu]=_}catch(Ke){ar(a,a.return,Ke)}}break;case 6:if(Hi(l,a),vo(a),m&4){if(a.stateNode===null)throw Error(r(162));w=a.stateNode,_=a.memoizedProps;try{w.nodeValue=_}catch(Ke){ar(a,a.return,Ke)}}break;case 3:if(Hi(l,a),vo(a),m&4&&p!==null&&p.memoizedState.isDehydrated)try{ca(l.containerInfo)}catch(Ke){ar(a,a.return,Ke)}break;case 4:Hi(l,a),vo(a);break;case 13:Hi(l,a),vo(a),w=a.child,w.flags&8192&&(_=w.memoizedState!==null,w.stateNode.isHidden=_,!_||w.alternate!==null&&w.alternate.memoizedState!==null||(kg=Ut())),m&4&&Lx(a);break;case 22:if(Pe=p!==null&&p.memoizedState!==null,a.mode&1?(Jr=(ge=Jr)||Pe,Hi(l,a),Jr=ge):Hi(l,a),vo(a),m&8192){if(ge=a.memoizedState!==null,(a.stateNode.isHidden=ge)&&!Pe&&(a.mode&1)!==0)for(We=a,Pe=a.child;Pe!==null;){for(Me=We=Pe;We!==null;){switch(Ae=We,He=Ae.child,Ae.tag){case 0:case 11:case 14:case 15:wu(4,Ae,Ae.return);break;case 1:Ks(Ae,Ae.return);var qe=Ae.stateNode;if(typeof qe.componentWillUnmount=="function"){m=Ae,p=Ae.return;try{l=m,qe.props=l.memoizedProps,qe.state=l.memoizedState,qe.componentWillUnmount()}catch(Ke){ar(m,p,Ke)}}break;case 5:Ks(Ae,Ae.return);break;case 22:if(Ae.memoizedState!==null){zx(Me);continue}}He!==null?(He.return=Ae,We=He):zx(Me)}Pe=Pe.sibling}e:for(Pe=null,Me=a;;){if(Me.tag===5){if(Pe===null){Pe=Me;try{w=Me.stateNode,ge?(_=w.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none"):(J=Me.stateNode,re=Me.memoizedProps.style,k=re!=null&&re.hasOwnProperty("display")?re.display:null,J.style.display=pe("display",k))}catch(Ke){ar(a,a.return,Ke)}}}else if(Me.tag===6){if(Pe===null)try{Me.stateNode.nodeValue=ge?"":Me.memoizedProps}catch(Ke){ar(a,a.return,Ke)}}else if((Me.tag!==22&&Me.tag!==23||Me.memoizedState===null||Me===a)&&Me.child!==null){Me.child.return=Me,Me=Me.child;continue}if(Me===a)break e;for(;Me.sibling===null;){if(Me.return===null||Me.return===a)break e;Pe===Me&&(Pe=null),Me=Me.return}Pe===Me&&(Pe=null),Me.sibling.return=Me.return,Me=Me.sibling}}break;case 19:Hi(l,a),vo(a),m&4&&Lx(a);break;case 21:break;default:Hi(l,a),vo(a)}}function vo(a){var l=a.flags;if(l&2){try{e:{for(var p=a.return;p!==null;){if(kx(p)){var m=p;break e}p=p.return}throw Error(r(160))}switch(m.tag){case 5:var w=m.stateNode;m.flags&32&&(It(w,""),m.flags&=-33);var _=Mx(a);$g(a,_,w);break;case 3:case 4:var k=m.stateNode.containerInfo,J=Mx(a);Ag(a,J,k);break;default:throw Error(r(161))}}catch(re){ar(a,a.return,re)}a.flags&=-3}l&4096&&(a.flags&=-4097)}function cD(a,l,p){We=a,Nx(a)}function Nx(a,l,p){for(var m=(a.mode&1)!==0;We!==null;){var w=We,_=w.child;if(w.tag===22&&m){var k=w.memoizedState!==null||kf;if(!k){var J=w.alternate,re=J!==null&&J.memoizedState!==null||Jr;J=kf;var ge=Jr;if(kf=k,(Jr=re)&&!ge)for(We=w;We!==null;)k=We,re=k.child,k.tag===22&&k.memoizedState!==null?Bx(w):re!==null?(re.return=k,We=re):Bx(w);for(;_!==null;)We=_,Nx(_),_=_.sibling;We=w,kf=J,Jr=ge}jx(a)}else(w.subtreeFlags&8772)!==0&&_!==null?(_.return=w,We=_):jx(a)}}function jx(a){for(;We!==null;){var l=We;if((l.flags&8772)!==0){var p=l.alternate;try{if((l.flags&8772)!==0)switch(l.tag){case 0:case 11:case 15:Jr||Mf(5,l);break;case 1:var m=l.stateNode;if(l.flags&4&&!Jr)if(p===null)m.componentDidMount();else{var w=l.elementType===l.type?p.memoizedProps:Vi(l.type,p.memoizedProps);m.componentDidUpdate(w,p.memoizedState,m.__reactInternalSnapshotBeforeUpdate)}var _=l.updateQueue;_!==null&&zw(l,_,m);break;case 3:var k=l.updateQueue;if(k!==null){if(p=null,l.child!==null)switch(l.child.tag){case 5:p=l.child.stateNode;break;case 1:p=l.child.stateNode}zw(l,k,p)}break;case 5:var J=l.stateNode;if(p===null&&l.flags&4){p=J;var re=l.memoizedProps;switch(l.type){case"button":case"input":case"select":case"textarea":re.autoFocus&&p.focus();break;case"img":re.src&&(p.src=re.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(l.memoizedState===null){var ge=l.alternate;if(ge!==null){var Pe=ge.memoizedState;if(Pe!==null){var Me=Pe.dehydrated;Me!==null&&ca(Me)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Jr||l.flags&512&&Tg(l)}catch(Ae){ar(l,l.return,Ae)}}if(l===a){We=null;break}if(p=l.sibling,p!==null){p.return=l.return,We=p;break}We=l.return}}function zx(a){for(;We!==null;){var l=We;if(l===a){We=null;break}var p=l.sibling;if(p!==null){p.return=l.return,We=p;break}We=l.return}}function Bx(a){for(;We!==null;){var l=We;try{switch(l.tag){case 0:case 11:case 15:var p=l.return;try{Mf(4,l)}catch(re){ar(l,p,re)}break;case 1:var m=l.stateNode;if(typeof m.componentDidMount=="function"){var w=l.return;try{m.componentDidMount()}catch(re){ar(l,w,re)}}var _=l.return;try{Tg(l)}catch(re){ar(l,_,re)}break;case 5:var k=l.return;try{Tg(l)}catch(re){ar(l,k,re)}}}catch(re){ar(l,l.return,re)}if(l===a){We=null;break}var J=l.sibling;if(J!==null){J.return=l.return,We=J;break}We=l.return}}var fD=Math.ceil,Df=A.ReactCurrentDispatcher,Ig=A.ReactCurrentOwner,mi=A.ReactCurrentBatchConfig,_t=0,Ir=null,yr=null,jr=0,Bn=0,Ys=ha(0),Cr=0,xu=null,Ja=0,Lf=0,Pg=0,Eu=null,En=null,kg=0,Js=1/0,Ko=null,Ff=!1,Mg=null,Sa=null,Nf=!1,wa=null,jf=0,Cu=0,Dg=null,zf=-1,Bf=0;function un(){return(_t&6)!==0?Ut():zf!==-1?zf:zf=Ut()}function xa(a){return(a.mode&1)===0?1:(_t&2)!==0&&jr!==0?jr&-jr:XM.transition!==null?(Bf===0&&(Bf=Mo()),Bf):(a=xt,a!==0||(a=window.event,a=a===void 0?16:US(a.type)),a)}function Wi(a,l,p,m){if(50<Cu)throw Cu=0,Dg=null,Error(r(185));Fn(a,p,m),((_t&2)===0||a!==Ir)&&(a===Ir&&((_t&2)===0&&(Lf|=p),Cr===4&&Ea(a,jr)),Cn(a,m),p===1&&_t===0&&(l.mode&1)===0&&(Js=Ut()+500,gf&&va()))}function Cn(a,l){var p=a.callbackNode;ko(a,l);var m=Fi(a,a===Ir?jr:0);if(m===0)p!==null&&Gt(p),a.callbackNode=null,a.callbackPriority=0;else if(l=m&-m,a.callbackPriority!==l){if(p!=null&&Gt(p),l===1)a.tag===0?GM(Ux.bind(null,a)):Tw(Ux.bind(null,a)),UM(function(){(_t&6)===0&&va()}),p=null;else{switch(Do(m)){case 1:p=Di;break;case 4:p=$o;break;case 16:p=li;break;case 536870912:p=Dn;break;default:p=li}p=Jx(p,Vx.bind(null,a))}a.callbackPriority=l,a.callbackNode=p}}function Vx(a,l){if(zf=-1,Bf=0,(_t&6)!==0)throw Error(r(327));var p=a.callbackNode;if(Qs()&&a.callbackNode!==p)return null;var m=Fi(a,a===Ir?jr:0);if(m===0)return null;if((m&30)!==0||(m&a.expiredLanes)!==0||l)l=Vf(a,m);else{l=m;var w=_t;_t|=2;var _=Wx();(Ir!==a||jr!==l)&&(Ko=null,Js=Ut()+500,Za(a,l));do try{hD();break}catch(J){Hx(a,J)}while(!0);Zh(),Df.current=_,_t=w,yr!==null?l=0:(Ir=null,jr=0,l=Cr)}if(l!==0){if(l===2&&(w=ci(a),w!==0&&(m=w,l=Lg(a,w))),l===1)throw p=xu,Za(a,0),Ea(a,m),Cn(a,Ut()),p;if(l===6)Ea(a,m);else{if(w=a.current.alternate,(m&30)===0&&!dD(w)&&(l=Vf(a,m),l===2&&(_=ci(a),_!==0&&(m=_,l=Lg(a,_))),l===1))throw p=xu,Za(a,0),Ea(a,m),Cn(a,Ut()),p;switch(a.finishedWork=w,a.finishedLanes=m,l){case 0:case 1:throw Error(r(345));case 2:es(a,En,Ko);break;case 3:if(Ea(a,m),(m&130023424)===m&&(l=kg+500-Ut(),10<l)){if(Fi(a,0)!==0)break;if(w=a.suspendedLanes,(w&m)!==m){un(),a.pingedLanes|=a.suspendedLanes&w;break}a.timeoutHandle=Vh(es.bind(null,a,En,Ko),l);break}es(a,En,Ko);break;case 4:if(Ea(a,m),(m&4194240)===m)break;for(l=a.eventTimes,w=-1;0<m;){var k=31-mr(m);_=1<<k,k=l[k],k>w&&(w=k),m&=~_}if(m=w,m=Ut()-m,m=(120>m?120:480>m?480:1080>m?1080:1920>m?1920:3e3>m?3e3:4320>m?4320:1960*fD(m/1960))-m,10<m){a.timeoutHandle=Vh(es.bind(null,a,En,Ko),m);break}es(a,En,Ko);break;case 5:es(a,En,Ko);break;default:throw Error(r(329))}}}return Cn(a,Ut()),a.callbackNode===p?Vx.bind(null,a):null}function Lg(a,l){var p=Eu;return a.current.memoizedState.isDehydrated&&(Za(a,l).flags|=256),a=Vf(a,l),a!==2&&(l=En,En=p,l!==null&&Fg(l)),a}function Fg(a){En===null?En=a:En.push.apply(En,a)}function dD(a){for(var l=a;;){if(l.flags&16384){var p=l.updateQueue;if(p!==null&&(p=p.stores,p!==null))for(var m=0;m<p.length;m++){var w=p[m],_=w.getSnapshot;w=w.value;try{if(!zi(_(),w))return!1}catch{return!1}}}if(p=l.child,l.subtreeFlags&16384&&p!==null)p.return=l,l=p;else{if(l===a)break;for(;l.sibling===null;){if(l.return===null||l.return===a)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function Ea(a,l){for(l&=~Pg,l&=~Lf,a.suspendedLanes|=l,a.pingedLanes&=~l,a=a.expirationTimes;0<l;){var p=31-mr(l),m=1<<p;a[p]=-1,l&=~m}}function Ux(a){if((_t&6)!==0)throw Error(r(327));Qs();var l=Fi(a,0);if((l&1)===0)return Cn(a,Ut()),null;var p=Vf(a,l);if(a.tag!==0&&p===2){var m=ci(a);m!==0&&(l=m,p=Lg(a,m))}if(p===1)throw p=xu,Za(a,0),Ea(a,l),Cn(a,Ut()),p;if(p===6)throw Error(r(345));return a.finishedWork=a.current.alternate,a.finishedLanes=l,es(a,En,Ko),Cn(a,Ut()),null}function Ng(a,l){var p=_t;_t|=1;try{return a(l)}finally{_t=p,_t===0&&(Js=Ut()+500,gf&&va())}}function Qa(a){wa!==null&&wa.tag===0&&(_t&6)===0&&Qs();var l=_t;_t|=1;var p=mi.transition,m=xt;try{if(mi.transition=null,xt=1,a)return a()}finally{xt=m,mi.transition=p,_t=l,(_t&6)===0&&va()}}function jg(){Bn=Ys.current,tr(Ys)}function Za(a,l){a.finishedWork=null,a.finishedLanes=0;var p=a.timeoutHandle;if(p!==-1&&(a.timeoutHandle=-1,VM(p)),yr!==null)for(p=yr.return;p!==null;){var m=p;switch(Xh(m),m.tag){case 1:m=m.type.childContextTypes,m!=null&&pf();break;case 3:Gs(),tr(Sn),tr(Xr),sg();break;case 5:og(m);break;case 4:Gs();break;case 13:tr(ir);break;case 19:tr(ir);break;case 10:eg(m.type._context);break;case 22:case 23:jg()}p=p.return}if(Ir=a,yr=a=Ca(a.current,null),jr=Bn=l,Cr=0,xu=null,Pg=Lf=Ja=0,En=Eu=null,Xa!==null){for(l=0;l<Xa.length;l++)if(p=Xa[l],m=p.interleaved,m!==null){p.interleaved=null;var w=m.next,_=p.pending;if(_!==null){var k=_.next;_.next=w,m.next=k}p.pending=m}Xa=null}return a}function Hx(a,l){do{var p=yr;try{if(Zh(),Rf.current=Af,_f){for(var m=or.memoizedState;m!==null;){var w=m.queue;w!==null&&(w.pending=null),m=m.next}_f=!1}if(Ya=0,$r=Er=or=null,vu=!1,mu=0,Ig.current=null,p===null||p.return===null){Cr=1,xu=l,yr=null;break}e:{var _=a,k=p.return,J=p,re=l;if(l=jr,J.flags|=32768,re!==null&&typeof re=="object"&&typeof re.then=="function"){var ge=re,Pe=J,Me=Pe.tag;if((Pe.mode&1)===0&&(Me===0||Me===11||Me===15)){var Ae=Pe.alternate;Ae?(Pe.updateQueue=Ae.updateQueue,Pe.memoizedState=Ae.memoizedState,Pe.lanes=Ae.lanes):(Pe.updateQueue=null,Pe.memoizedState=null)}var He=gx(k);if(He!==null){He.flags&=-257,vx(He,k,J,_,l),He.mode&1&&hx(_,ge,l),l=He,re=ge;var qe=l.updateQueue;if(qe===null){var Ke=new Set;Ke.add(re),l.updateQueue=Ke}else qe.add(re);break e}else{if((l&1)===0){hx(_,ge,l),zg();break e}re=Error(r(426))}}else if(rr&&J.mode&1){var cr=gx(k);if(cr!==null){(cr.flags&65536)===0&&(cr.flags|=256),vx(cr,k,J,_,l),Jh(Xs(re,J));break e}}_=re=Xs(re,J),Cr!==4&&(Cr=2),Eu===null?Eu=[_]:Eu.push(_),_=k;do{switch(_.tag){case 3:_.flags|=65536,l&=-l,_.lanes|=l;var ce=dx(_,re,l);jw(_,ce);break e;case 1:J=re;var ie=_.type,de=_.stateNode;if((_.flags&128)===0&&(typeof ie.getDerivedStateFromError=="function"||de!==null&&typeof de.componentDidCatch=="function"&&(Sa===null||!Sa.has(de)))){_.flags|=65536,l&=-l,_.lanes|=l;var Le=px(_,J,l);jw(_,Le);break e}}_=_.return}while(_!==null)}Gx(p)}catch(Je){l=Je,yr===p&&p!==null&&(yr=p=p.return);continue}break}while(!0)}function Wx(){var a=Df.current;return Df.current=Af,a===null?Af:a}function zg(){(Cr===0||Cr===3||Cr===2)&&(Cr=4),Ir===null||(Ja&268435455)===0&&(Lf&268435455)===0||Ea(Ir,jr)}function Vf(a,l){var p=_t;_t|=2;var m=Wx();(Ir!==a||jr!==l)&&(Ko=null,Za(a,l));do try{pD();break}catch(w){Hx(a,w)}while(!0);if(Zh(),_t=p,Df.current=m,yr!==null)throw Error(r(261));return Ir=null,jr=0,Cr}function pD(){for(;yr!==null;)qx(yr)}function hD(){for(;yr!==null&&!ai();)qx(yr)}function qx(a){var l=Yx(a.alternate,a,Bn);a.memoizedProps=a.pendingProps,l===null?Gx(a):yr=l,Ig.current=null}function Gx(a){var l=a;do{var p=l.alternate;if(a=l.return,(l.flags&32768)===0){if(p=aD(p,l,Bn),p!==null){yr=p;return}}else{if(p=sD(p,l),p!==null){p.flags&=32767,yr=p;return}if(a!==null)a.flags|=32768,a.subtreeFlags=0,a.deletions=null;else{Cr=6,yr=null;return}}if(l=l.sibling,l!==null){yr=l;return}yr=l=a}while(l!==null);Cr===0&&(Cr=5)}function es(a,l,p){var m=xt,w=mi.transition;try{mi.transition=null,xt=1,gD(a,l,p,m)}finally{mi.transition=w,xt=m}return null}function gD(a,l,p,m){do Qs();while(wa!==null);if((_t&6)!==0)throw Error(r(327));p=a.finishedWork;var w=a.finishedLanes;if(p===null)return null;if(a.finishedWork=null,a.finishedLanes=0,p===a.current)throw Error(r(177));a.callbackNode=null,a.callbackPriority=0;var _=p.lanes|p.childLanes;if(ua(a,_),a===Ir&&(yr=Ir=null,jr=0),(p.subtreeFlags&2064)===0&&(p.flags&2064)===0||Nf||(Nf=!0,Jx(li,function(){return Qs(),null})),_=(p.flags&15990)!==0,(p.subtreeFlags&15990)!==0||_){_=mi.transition,mi.transition=null;var k=xt;xt=1;var J=_t;_t|=4,Ig.current=null,uD(a,p),Fx(p,a),DM(zh),Qc=!!jh,zh=jh=null,a.current=p,cD(p),Ao(),_t=J,xt=k,mi.transition=_}else a.current=p;if(Nf&&(Nf=!1,wa=a,jf=w),_=a.pendingLanes,_===0&&(Sa=null),ui(p.stateNode),Cn(a,Ut()),l!==null)for(m=a.onRecoverableError,p=0;p<l.length;p++)w=l[p],m(w.value,{componentStack:w.stack,digest:w.digest});if(Ff)throw Ff=!1,a=Mg,Mg=null,a;return(jf&1)!==0&&a.tag!==0&&Qs(),_=a.pendingLanes,(_&1)!==0?a===Dg?Cu++:(Cu=0,Dg=a):Cu=0,va(),null}function Qs(){if(wa!==null){var a=Do(jf),l=mi.transition,p=xt;try{if(mi.transition=null,xt=16>a?16:a,wa===null)var m=!1;else{if(a=wa,wa=null,jf=0,(_t&6)!==0)throw Error(r(331));var w=_t;for(_t|=4,We=a.current;We!==null;){var _=We,k=_.child;if((We.flags&16)!==0){var J=_.deletions;if(J!==null){for(var re=0;re<J.length;re++){var ge=J[re];for(We=ge;We!==null;){var Pe=We;switch(Pe.tag){case 0:case 11:case 15:wu(8,Pe,_)}var Me=Pe.child;if(Me!==null)Me.return=Pe,We=Me;else for(;We!==null;){Pe=We;var Ae=Pe.sibling,He=Pe.return;if(Px(Pe),Pe===ge){We=null;break}if(Ae!==null){Ae.return=He,We=Ae;break}We=He}}}var qe=_.alternate;if(qe!==null){var Ke=qe.child;if(Ke!==null){qe.child=null;do{var cr=Ke.sibling;Ke.sibling=null,Ke=cr}while(Ke!==null)}}We=_}}if((_.subtreeFlags&2064)!==0&&k!==null)k.return=_,We=k;else e:for(;We!==null;){if(_=We,(_.flags&2048)!==0)switch(_.tag){case 0:case 11:case 15:wu(9,_,_.return)}var ce=_.sibling;if(ce!==null){ce.return=_.return,We=ce;break e}We=_.return}}var ie=a.current;for(We=ie;We!==null;){k=We;var de=k.child;if((k.subtreeFlags&2064)!==0&&de!==null)de.return=k,We=de;else e:for(k=ie;We!==null;){if(J=We,(J.flags&2048)!==0)try{switch(J.tag){case 0:case 11:case 15:Mf(9,J)}}catch(Je){ar(J,J.return,Je)}if(J===k){We=null;break e}var Le=J.sibling;if(Le!==null){Le.return=J.return,We=Le;break e}We=J.return}}if(_t=w,va(),wr&&typeof wr.onPostCommitFiberRoot=="function")try{wr.onPostCommitFiberRoot(an,a)}catch{}m=!0}return m}finally{xt=p,mi.transition=l}}return!1}function Xx(a,l,p){l=Xs(p,l),l=dx(a,l,1),a=ya(a,l,1),l=un(),a!==null&&(Fn(a,1,l),Cn(a,l))}function ar(a,l,p){if(a.tag===3)Xx(a,a,p);else for(;l!==null;){if(l.tag===3){Xx(l,a,p);break}else if(l.tag===1){var m=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(Sa===null||!Sa.has(m))){a=Xs(p,a),a=px(l,a,1),l=ya(l,a,1),a=un(),l!==null&&(Fn(l,1,a),Cn(l,a));break}}l=l.return}}function vD(a,l,p){var m=a.pingCache;m!==null&&m.delete(l),l=un(),a.pingedLanes|=a.suspendedLanes&p,Ir===a&&(jr&p)===p&&(Cr===4||Cr===3&&(jr&130023424)===jr&&500>Ut()-kg?Za(a,0):Pg|=p),Cn(a,l)}function Kx(a,l){l===0&&((a.mode&1)===0?l=1:(l=Wr,Wr<<=1,(Wr&130023424)===0&&(Wr=4194304)));var p=un();a=qo(a,l),a!==null&&(Fn(a,l,p),Cn(a,p))}function mD(a){var l=a.memoizedState,p=0;l!==null&&(p=l.retryLane),Kx(a,p)}function yD(a,l){var p=0;switch(a.tag){case 13:var m=a.stateNode,w=a.memoizedState;w!==null&&(p=w.retryLane);break;case 19:m=a.stateNode;break;default:throw Error(r(314))}m!==null&&m.delete(l),Kx(a,p)}var Yx;Yx=function(a,l,p){if(a!==null)if(a.memoizedProps!==l.pendingProps||Sn.current)xn=!0;else{if((a.lanes&p)===0&&(l.flags&128)===0)return xn=!1,oD(a,l,p);xn=(a.flags&131072)!==0}else xn=!1,rr&&(l.flags&1048576)!==0&&Aw(l,mf,l.index);switch(l.lanes=0,l.tag){case 2:var m=l.type;Pf(a,l),a=l.pendingProps;var w=zs(l,Xr.current);qs(l,p),w=cg(null,l,m,a,w,p);var _=fg();return l.flags|=1,typeof w=="object"&&w!==null&&typeof w.render=="function"&&w.$$typeof===void 0?(l.tag=1,l.memoizedState=null,l.updateQueue=null,wn(m)?(_=!0,hf(l)):_=!1,l.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,ng(l),w.updater=$f,l.stateNode=w,w._reactInternals=l,mg(l,m,a,p),l=wg(null,l,m,!0,_,p)):(l.tag=0,rr&&_&&Gh(l),ln(null,l,w,p),l=l.child),l;case 16:m=l.elementType;e:{switch(Pf(a,l),a=l.pendingProps,w=m._init,m=w(m._payload),l.type=m,w=l.tag=SD(m),a=Vi(m,a),w){case 0:l=Sg(null,l,m,a,p);break e;case 1:l=xx(null,l,m,a,p);break e;case 11:l=mx(null,l,m,a,p);break e;case 14:l=yx(null,l,m,Vi(m.type,a),p);break e}throw Error(r(306,m,""))}return l;case 0:return m=l.type,w=l.pendingProps,w=l.elementType===m?w:Vi(m,w),Sg(a,l,m,w,p);case 1:return m=l.type,w=l.pendingProps,w=l.elementType===m?w:Vi(m,w),xx(a,l,m,w,p);case 3:e:{if(Ex(l),a===null)throw Error(r(387));m=l.pendingProps,_=l.memoizedState,w=_.element,Nw(a,l),Ef(l,m,null,p);var k=l.memoizedState;if(m=k.element,_.isDehydrated)if(_={element:m,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},l.updateQueue.baseState=_,l.memoizedState=_,l.flags&256){w=Xs(Error(r(423)),l),l=Cx(a,l,m,p,w);break e}else if(m!==w){w=Xs(Error(r(424)),l),l=Cx(a,l,m,p,w);break e}else for(zn=pa(l.stateNode.containerInfo.firstChild),jn=l,rr=!0,Bi=null,p=Lw(l,null,m,p),l.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(Us(),m===w){l=Xo(a,l,p);break e}ln(a,l,m,p)}l=l.child}return l;case 5:return Bw(l),a===null&&Yh(l),m=l.type,w=l.pendingProps,_=a!==null?a.memoizedProps:null,k=w.children,Bh(m,w)?k=null:_!==null&&Bh(m,_)&&(l.flags|=32),wx(a,l),ln(a,l,k,p),l.child;case 6:return a===null&&Yh(l),null;case 13:return Rx(a,l,p);case 4:return ig(l,l.stateNode.containerInfo),m=l.pendingProps,a===null?l.child=Hs(l,null,m,p):ln(a,l,m,p),l.child;case 11:return m=l.type,w=l.pendingProps,w=l.elementType===m?w:Vi(m,w),mx(a,l,m,w,p);case 7:return ln(a,l,l.pendingProps,p),l.child;case 8:return ln(a,l,l.pendingProps.children,p),l.child;case 12:return ln(a,l,l.pendingProps.children,p),l.child;case 10:e:{if(m=l.type._context,w=l.pendingProps,_=l.memoizedProps,k=w.value,Qt(Sf,m._currentValue),m._currentValue=k,_!==null)if(zi(_.value,k)){if(_.children===w.children&&!Sn.current){l=Xo(a,l,p);break e}}else for(_=l.child,_!==null&&(_.return=l);_!==null;){var J=_.dependencies;if(J!==null){k=_.child;for(var re=J.firstContext;re!==null;){if(re.context===m){if(_.tag===1){re=Go(-1,p&-p),re.tag=2;var ge=_.updateQueue;if(ge!==null){ge=ge.shared;var Pe=ge.pending;Pe===null?re.next=re:(re.next=Pe.next,Pe.next=re),ge.pending=re}}_.lanes|=p,re=_.alternate,re!==null&&(re.lanes|=p),tg(_.return,p,l),J.lanes|=p;break}re=re.next}}else if(_.tag===10)k=_.type===l.type?null:_.child;else if(_.tag===18){if(k=_.return,k===null)throw Error(r(341));k.lanes|=p,J=k.alternate,J!==null&&(J.lanes|=p),tg(k,p,l),k=_.sibling}else k=_.child;if(k!==null)k.return=_;else for(k=_;k!==null;){if(k===l){k=null;break}if(_=k.sibling,_!==null){_.return=k.return,k=_;break}k=k.return}_=k}ln(a,l,w.children,p),l=l.child}return l;case 9:return w=l.type,m=l.pendingProps.children,qs(l,p),w=hi(w),m=m(w),l.flags|=1,ln(a,l,m,p),l.child;case 14:return m=l.type,w=Vi(m,l.pendingProps),w=Vi(m.type,w),yx(a,l,m,w,p);case 15:return bx(a,l,l.type,l.pendingProps,p);case 17:return m=l.type,w=l.pendingProps,w=l.elementType===m?w:Vi(m,w),Pf(a,l),l.tag=1,wn(m)?(a=!0,hf(l)):a=!1,qs(l,p),cx(l,m,w),mg(l,m,w,p),wg(null,l,m,!0,a,p);case 19:return Ox(a,l,p);case 22:return Sx(a,l,p)}throw Error(r(156,l.tag))};function Jx(a,l){return oi(a,l)}function bD(a,l,p,m){this.tag=a,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yi(a,l,p,m){return new bD(a,l,p,m)}function Bg(a){return a=a.prototype,!(!a||!a.isReactComponent)}function SD(a){if(typeof a=="function")return Bg(a)?1:0;if(a!=null){if(a=a.$$typeof,a===z)return 11;if(a===j)return 14}return 2}function Ca(a,l){var p=a.alternate;return p===null?(p=yi(a.tag,l,a.key,a.mode),p.elementType=a.elementType,p.type=a.type,p.stateNode=a.stateNode,p.alternate=a,a.alternate=p):(p.pendingProps=l,p.type=a.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=a.flags&14680064,p.childLanes=a.childLanes,p.lanes=a.lanes,p.child=a.child,p.memoizedProps=a.memoizedProps,p.memoizedState=a.memoizedState,p.updateQueue=a.updateQueue,l=a.dependencies,p.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},p.sibling=a.sibling,p.index=a.index,p.ref=a.ref,p}function Uf(a,l,p,m,w,_){var k=2;if(m=a,typeof a=="function")Bg(a)&&(k=1);else if(typeof a=="string")k=5;else e:switch(a){case O:return ts(p.children,w,_,l);case I:k=8,w|=8;break;case L:return a=yi(12,p,l,w|2),a.elementType=L,a.lanes=_,a;case B:return a=yi(13,p,l,w),a.elementType=B,a.lanes=_,a;case N:return a=yi(19,p,l,w),a.elementType=N,a.lanes=_,a;case X:return Hf(p,w,_,l);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case F:k=10;break e;case q:k=9;break e;case z:k=11;break e;case j:k=14;break e;case H:k=16,m=null;break e}throw Error(r(130,a==null?a:typeof a,""))}return l=yi(k,p,l,w),l.elementType=a,l.type=m,l.lanes=_,l}function ts(a,l,p,m){return a=yi(7,a,m,l),a.lanes=p,a}function Hf(a,l,p,m){return a=yi(22,a,m,l),a.elementType=X,a.lanes=p,a.stateNode={isHidden:!1},a}function Vg(a,l,p){return a=yi(6,a,null,l),a.lanes=p,a}function Ug(a,l,p){return l=yi(4,a.children!==null?a.children:[],a.key,l),l.lanes=p,l.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},l}function wD(a,l,p,m,w){this.tag=l,this.containerInfo=a,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=lo(0),this.expirationTimes=lo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lo(0),this.identifierPrefix=m,this.onRecoverableError=w,this.mutableSourceEagerHydrationData=null}function Hg(a,l,p,m,w,_,k,J,re){return a=new wD(a,l,p,J,re),l===1?(l=1,_===!0&&(l|=8)):l=0,_=yi(3,null,null,l),a.current=_,_.stateNode=a,_.memoizedState={element:m,isDehydrated:p,cache:null,transitions:null,pendingSuspenseBoundaries:null},ng(_),a}function xD(a,l,p){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$,key:m==null?null:""+m,children:a,containerInfo:l,implementation:p}}function Qx(a){if(!a)return ga;a=a._reactInternals;e:{if(vr(a)!==a||a.tag!==1)throw Error(r(170));var l=a;do{switch(l.tag){case 3:l=l.stateNode.context;break e;case 1:if(wn(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break e}}l=l.return}while(l!==null);throw Error(r(171))}if(a.tag===1){var p=a.type;if(wn(p))return _w(a,p,l)}return l}function Zx(a,l,p,m,w,_,k,J,re){return a=Hg(p,m,!0,a,w,_,k,J,re),a.context=Qx(null),p=a.current,m=un(),w=xa(p),_=Go(m,w),_.callback=l??null,ya(p,_,w),a.current.lanes=w,Fn(a,w,m),Cn(a,m),a}function Wf(a,l,p,m){var w=l.current,_=un(),k=xa(w);return p=Qx(p),l.context===null?l.context=p:l.pendingContext=p,l=Go(_,k),l.payload={element:a},m=m===void 0?null:m,m!==null&&(l.callback=m),a=ya(w,l,k),a!==null&&(Wi(a,w,k,_),xf(a,w,k)),k}function qf(a){if(a=a.current,!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function eE(a,l){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var p=a.retryLane;a.retryLane=p!==0&&p<l?p:l}}function Wg(a,l){eE(a,l),(a=a.alternate)&&eE(a,l)}function ED(){return null}var tE=typeof reportError=="function"?reportError:function(a){console.error(a)};function qg(a){this._internalRoot=a}Gf.prototype.render=qg.prototype.render=function(a){var l=this._internalRoot;if(l===null)throw Error(r(409));Wf(a,l,null,null)},Gf.prototype.unmount=qg.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var l=a.containerInfo;Qa(function(){Wf(null,a,null,null)}),l[Vo]=null}};function Gf(a){this._internalRoot=a}Gf.prototype.unstable_scheduleHydration=function(a){if(a){var l=Ni();a={blockedOn:null,target:a,priority:l};for(var p=0;p<Gr.length&&l!==0&&l<Gr[p].priority;p++);Gr.splice(p,0,a),p===0&&kt(a)}};function Gg(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function Xf(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11&&(a.nodeType!==8||a.nodeValue!==" react-mount-point-unstable "))}function rE(){}function CD(a,l,p,m,w){if(w){if(typeof m=="function"){var _=m;m=function(){var ge=qf(k);_.call(ge)}}var k=Zx(l,m,a,0,null,!1,!1,"",rE);return a._reactRootContainer=k,a[Vo]=k.current,lu(a.nodeType===8?a.parentNode:a),Qa(),k}for(;w=a.lastChild;)a.removeChild(w);if(typeof m=="function"){var J=m;m=function(){var ge=qf(re);J.call(ge)}}var re=Hg(a,0,!1,null,null,!1,!1,"",rE);return a._reactRootContainer=re,a[Vo]=re.current,lu(a.nodeType===8?a.parentNode:a),Qa(function(){Wf(l,re,p,m)}),re}function Kf(a,l,p,m,w){var _=p._reactRootContainer;if(_){var k=_;if(typeof w=="function"){var J=w;w=function(){var re=qf(k);J.call(re)}}Wf(l,k,a,w)}else k=CD(p,l,a,w,m);return qf(k)}Lo=function(a){switch(a.tag){case 3:var l=a.stateNode;if(l.current.memoizedState.isDehydrated){var p=bn(l.pendingLanes);p!==0&&(uo(l,p|1),Cn(l,Ut()),(_t&6)===0&&(Js=Ut()+500,va()))}break;case 13:Qa(function(){var m=qo(a,1);if(m!==null){var w=un();Wi(m,a,1,w)}}),Wg(a,1)}},co=function(a){if(a.tag===13){var l=qo(a,134217728);if(l!==null){var p=un();Wi(l,a,134217728,p)}Wg(a,134217728)}},qr=function(a){if(a.tag===13){var l=xa(a),p=qo(a,l);if(p!==null){var m=un();Wi(p,a,l,m)}Wg(a,l)}},Ni=function(){return xt},Fo=function(a,l){var p=xt;try{return xt=a,l()}finally{xt=p}},ve=function(a,l,p){switch(l){case"input":if(ke(a,p),l=p.name,p.type==="radio"&&l!=null){for(p=a;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll("input[name="+JSON.stringify(""+l)+'][type="radio"]'),l=0;l<p.length;l++){var m=p[l];if(m!==a&&m.form===a.form){var w=df(m);if(!w)throw Error(r(90));we(m),ke(m,w)}}}break;case"textarea":Re(a,p);break;case"select":l=p.value,l!=null&&ze(a,!!p.multiple,l,!1)}},tt=Ng,Bt=Qa;var RD={usingClientEntryPoint:!1,Events:[fu,Ns,df,Ze,et,Ng]},Ru={findFiberByHostInstance:Ha,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},_D={bundleType:Ru.bundleType,version:Ru.version,rendererPackageName:Ru.rendererPackageName,rendererConfig:Ru.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:A.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){return a=Tr(a),a===null?null:a.stateNode},findFiberByHostInstance:Ru.findFiberByHostInstance||ED,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Yf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yf.isDisabled&&Yf.supportsFiber)try{an=Yf.inject(_D),wr=Yf}catch{}}return Rn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=RD,Rn.createPortal=function(a,l){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Gg(l))throw Error(r(200));return xD(a,l,null,p)},Rn.createRoot=function(a,l){if(!Gg(a))throw Error(r(299));var p=!1,m="",w=tE;return l!=null&&(l.unstable_strictMode===!0&&(p=!0),l.identifierPrefix!==void 0&&(m=l.identifierPrefix),l.onRecoverableError!==void 0&&(w=l.onRecoverableError)),l=Hg(a,1,!1,null,null,p,!1,m,w),a[Vo]=l.current,lu(a.nodeType===8?a.parentNode:a),new qg(l)},Rn.findDOMNode=function(a){if(a==null)return null;if(a.nodeType===1)return a;var l=a._reactInternals;if(l===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=Tr(l),a=a===null?null:a.stateNode,a},Rn.flushSync=function(a){return Qa(a)},Rn.hydrate=function(a,l,p){if(!Xf(l))throw Error(r(200));return Kf(null,a,l,!0,p)},Rn.hydrateRoot=function(a,l,p){if(!Gg(a))throw Error(r(405));var m=p!=null&&p.hydratedSources||null,w=!1,_="",k=tE;if(p!=null&&(p.unstable_strictMode===!0&&(w=!0),p.identifierPrefix!==void 0&&(_=p.identifierPrefix),p.onRecoverableError!==void 0&&(k=p.onRecoverableError)),l=Zx(l,null,a,1,p??null,w,!1,_,k),a[Vo]=l.current,lu(a),m)for(a=0;a<m.length;a++)p=m[a],w=p._getVersion,w=w(p._source),l.mutableSourceEagerHydrationData==null?l.mutableSourceEagerHydrationData=[p,w]:l.mutableSourceEagerHydrationData.push(p,w);return new Gf(l)},Rn.render=function(a,l,p){if(!Xf(l))throw Error(r(200));return Kf(null,a,l,!1,p)},Rn.unmountComponentAtNode=function(a){if(!Xf(a))throw Error(r(40));return a._reactRootContainer?(Qa(function(){Kf(null,null,a,!1,function(){a._reactRootContainer=null,a[Vo]=null})}),!0):!1},Rn.unstable_batchedUpdates=Ng,Rn.unstable_renderSubtreeIntoContainer=function(a,l,p,m){if(!Xf(p))throw Error(r(200));if(a==null||a._reactInternals===void 0)throw Error(r(38));return Kf(a,l,p,!1,m)},Rn.version="18.3.1-next-f1338f8080-20240426",Rn}var NE;function lI(){if(NE)return sv.exports;NE=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),sv.exports=fN(),sv.exports}var jE;function dN(){if(jE)return cd;jE=1;var e=lI();return cd.createRoot=e.createRoot,cd.hydrateRoot=e.hydrateRoot,cd}var uI=dN();function pN(e,t){return m1(t),uI.hydrateRoot(t,e)}function hN(e,t){m1(t);var r=uI.createRoot(t);return r.render(e),r}function gN(e){return e.unmount(),!0}var Dy=e=>{if(e!=null){var t=e.nodeType===1;if(t&&typeof e.getBoundingClientRect=="function")return e.getBoundingClientRect()}},qu={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},vN=["ms","Moz","O","Webkit"],mN=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1);Object.keys(qu).forEach(e=>{vN.forEach(t=>{qu[mN(t,e)]=qu[e]})});function yN(e,t,r){var n=t==null||typeof t=="boolean"||t==="";return n?"":!r&&typeof t=="number"&&t!==0&&!(qu.hasOwnProperty(e)&&qu[e])?t+"px":(""+t).trim()}function bN(e,t){var r=e.style;for(var n in t)if(t.hasOwnProperty(n)){var i=n.indexOf("--")===0,o=yN(n,t[n],i);n==="float"&&(n="cssFloat"),i?r.setProperty(n,o):r[n]=o}}var zE=e=>{var t=e.offsetHeight,r=e.offsetWidth,n=e.offsetLeft,i=e.offsetTop;for(e=e.offsetParent;e&&e.nodeType===1;)n+=e.offsetLeft+e.clientLeft-e.scrollLeft,i+=e.offsetTop+e.clientTop-e.scrollTop,e=e.offsetParent;return i-=window.scrollY,n-=window.scrollX,{width:r,height:t,top:i,left:n}},BE=(e,t,r)=>{var n=t||e&&e.parentNode;e&&n&&setTimeout(()=>{if(e.isConnected&&n.isConnected){var i=zE(n),o=zE(e),s=o.height,u=o.left,c=o.top,f=o.width,d=u-i.left,g=c-i.top;r(d,g,f,s,u,c)}},0)},SN={A:!0,BODY:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0},qd={blur(e){try{e.blur()}catch{}},focus(e){try{var t=e.nodeName;e.getAttribute("tabIndex")==null&&e.isContentEditable!==!0&&SN[t]==null&&e.setAttribute("tabIndex","-1"),e.focus()}catch{}},measure(e,t){BE(e,null,t)},measureInWindow(e,t){e&&setTimeout(()=>{var r=Dy(e),n=r.height,i=r.left,o=r.top,s=r.width;t(i,o,s,n)},0)},measureLayout(e,t,r,n){BE(e,t,n)},updateView(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=t[r];switch(r){case"style":{bN(e,n);break}case"class":case"className":{e.setAttribute("class",n);break}case"text":case"value":e.value=n;break;default:e.setAttribute(r,n)}}},configureNextLayoutAnimation(e,t){t()},setLayoutAnimationEnabledExperimental(){}};function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hr.apply(null,arguments)}var wN={children:!0,dataSet:!0,dir:!0,id:!0,ref:!0,suppressHydrationWarning:!0,tabIndex:!0,testID:!0,focusable:!0,nativeID:!0},xN={"aria-activedescendant":!0,"aria-atomic":!0,"aria-autocomplete":!0,"aria-busy":!0,"aria-checked":!0,"aria-colcount":!0,"aria-colindex":!0,"aria-colspan":!0,"aria-controls":!0,"aria-current":!0,"aria-describedby":!0,"aria-details":!0,"aria-disabled":!0,"aria-errormessage":!0,"aria-expanded":!0,"aria-flowto":!0,"aria-haspopup":!0,"aria-hidden":!0,"aria-invalid":!0,"aria-keyshortcuts":!0,"aria-label":!0,"aria-labelledby":!0,"aria-level":!0,"aria-live":!0,"aria-modal":!0,"aria-multiline":!0,"aria-multiselectable":!0,"aria-orientation":!0,"aria-owns":!0,"aria-placeholder":!0,"aria-posinset":!0,"aria-pressed":!0,"aria-readonly":!0,"aria-required":!0,role:!0,"aria-roledescription":!0,"aria-rowcount":!0,"aria-rowindex":!0,"aria-rowspan":!0,"aria-selected":!0,"aria-setsize":!0,"aria-sort":!0,"aria-valuemax":!0,"aria-valuemin":!0,"aria-valuenow":!0,"aria-valuetext":!0,accessibilityActiveDescendant:!0,accessibilityAtomic:!0,accessibilityAutoComplete:!0,accessibilityBusy:!0,accessibilityChecked:!0,accessibilityColumnCount:!0,accessibilityColumnIndex:!0,accessibilityColumnSpan:!0,accessibilityControls:!0,accessibilityCurrent:!0,accessibilityDescribedBy:!0,accessibilityDetails:!0,accessibilityDisabled:!0,accessibilityErrorMessage:!0,accessibilityExpanded:!0,accessibilityFlowTo:!0,accessibilityHasPopup:!0,accessibilityHidden:!0,accessibilityInvalid:!0,accessibilityKeyShortcuts:!0,accessibilityLabel:!0,accessibilityLabelledBy:!0,accessibilityLevel:!0,accessibilityLiveRegion:!0,accessibilityModal:!0,accessibilityMultiline:!0,accessibilityMultiSelectable:!0,accessibilityOrientation:!0,accessibilityOwns:!0,accessibilityPlaceholder:!0,accessibilityPosInSet:!0,accessibilityPressed:!0,accessibilityReadOnly:!0,accessibilityRequired:!0,accessibilityRole:!0,accessibilityRoleDescription:!0,accessibilityRowCount:!0,accessibilityRowIndex:!0,accessibilityRowSpan:!0,accessibilitySelected:!0,accessibilitySetSize:!0,accessibilitySort:!0,accessibilityValueMax:!0,accessibilityValueMin:!0,accessibilityValueNow:!0,accessibilityValueText:!0},EN={onClick:!0,onAuxClick:!0,onContextMenu:!0,onGotPointerCapture:!0,onLostPointerCapture:!0,onPointerCancel:!0,onPointerDown:!0,onPointerEnter:!0,onPointerMove:!0,onPointerLeave:!0,onPointerOut:!0,onPointerOver:!0,onPointerUp:!0},CN={onBlur:!0,onFocus:!0},RN={onKeyDown:!0,onKeyDownCapture:!0,onKeyUp:!0,onKeyUpCapture:!0},_N={onMouseDown:!0,onMouseEnter:!0,onMouseLeave:!0,onMouseMove:!0,onMouseOver:!0,onMouseOut:!0,onMouseUp:!0},ON={onTouchCancel:!0,onTouchCancelCapture:!0,onTouchEnd:!0,onTouchEndCapture:!0,onTouchMove:!0,onTouchMoveCapture:!0,onTouchStart:!0,onTouchStartCapture:!0},TN={style:!0};function AN(e,t){var r={};for(var n in e)e.hasOwnProperty(n)&&t[n]===!0&&(r[n]=e[n]);return r}var VE=Rs?C.useLayoutEffect:C.useEffect,Ly="__reactLayoutHandler",cv=null;function $N(){return Rs&&typeof window.ResizeObserver<"u"&&cv==null&&(cv=new window.ResizeObserver(function(e){e.forEach(t=>{var r=t.target,n=r[Ly];typeof n=="function"&&qd.measure(r,(i,o,s,u,c,f)=>{var d={nativeEvent:{layout:{x:i,y:o,width:s,height:u,left:c,top:f}},timeStamp:Date.now()};Object.defineProperty(d.nativeEvent,"target",{enumerable:!0,get:()=>t.target}),n(d)})})})),cv}function IN(e,t){var r=$N();VE(()=>{var n=e.current;n!=null&&(n[Ly]=t)},[e,t]),VE(()=>{var n=e.current;return n!=null&&r!=null&&(typeof n[Ly]=="function"?r.observe(n):r.unobserve(n)),()=>{n!=null&&r!=null&&r.unobserve(n)}},[e,r])}function PN(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(i){t.forEach(o=>{if(o!=null){if(typeof o=="function"){o(i);return}if(typeof o=="object"){o.current=i;return}console.error("mergeRefs cannot handle Refs of type boolean, number or string, received ref "+String(o))}})}}function kN(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return C.useMemo(()=>PN(...t),[...t])}var UE=typeof Symbol=="function"&&typeof Symbol()=="symbol"?Symbol():Object.freeze({});function MN(e){var t=C.useRef(UE);return t.current===UE&&(t.current=e()),t.current}function DN(e){e.pointerEvents,e.style;var t=MN(()=>r=>{r!=null&&(r.measure=n=>qd.measure(r,n),r.measureLayout=(n,i,o)=>qd.measureLayout(r,n,o,i),r.measureInWindow=n=>qd.measureInWindow(r,n))});return t}var HE=()=>{},LN={},FN=[];function WE(e){return e>20?e%20:e}function cI(e,t){var r,n=!1,i,o,s=e.changedTouches,u=e.type,c=e.metaKey===!0,f=e.shiftKey===!0,d=s&&s[0].force||0,g=WE(s&&s[0].identifier||0),h=s&&s[0].clientX||e.clientX,b=s&&s[0].clientY||e.clientY,v=s&&s[0].pageX||e.pageX,S=s&&s[0].pageY||e.pageY,y=typeof e.preventDefault=="function"?e.preventDefault.bind(e):HE,E=e.timeStamp;function x(O){return Array.prototype.slice.call(O).map(I=>({force:I.force,identifier:WE(I.identifier),get locationX(){return R(I.clientX)},get locationY(){return $(I.clientY)},pageX:I.pageX,pageY:I.pageY,target:I.target,timestamp:E}))}if(s!=null)i=x(s),o=x(e.touches);else{var T=[{force:d,identifier:g,get locationX(){return R(h)},get locationY(){return $(b)},pageX:v,pageY:S,target:e.target,timestamp:E}];i=T,o=u==="mouseup"||u==="dragstart"?FN:T}var A={bubbles:!0,cancelable:!0,currentTarget:null,defaultPrevented:e.defaultPrevented,dispatchConfig:LN,eventPhase:e.eventPhase,isDefaultPrevented(){return e.defaultPrevented},isPropagationStopped(){return n},isTrusted:e.isTrusted,nativeEvent:{altKey:!1,ctrlKey:!1,metaKey:c,shiftKey:f,changedTouches:i,force:d,identifier:g,get locationX(){return R(h)},get locationY(){return $(b)},pageX:v,pageY:S,target:e.target,timestamp:E,touches:o,type:u},persist:HE,preventDefault:y,stopPropagation(){n=!0},target:e.target,timeStamp:E,touchHistory:t.touchHistory};function R(O){if(r=r||Dy(A.currentTarget),r)return O-r.left}function $(O){if(r=r||Dy(A.currentTarget),r)return O-r.top}return A}var NN="mousedown",jN="mousemove",zN="mouseup",BN="dragstart",VN="touchstart",UN="touchmove",HN="touchend",WN="touchcancel",qN="scroll",GN="select",XN="selectionchange";function fI(e){return e===VN||e===NN}function dI(e){return e===UN||e===jN}function pI(e){return e===HN||e===zN||hI(e)}function hI(e){return e===WN||e===BN}function KN(e){return e===qN}function YN(e){return e===GN||e===XN}function JN(){var e=window.getSelection(),t=e.toString(),r=e.anchorNode,n=e.focusNode,i=r&&r.nodeType===window.Node.TEXT_NODE||n&&n.nodeType===window.Node.TEXT_NODE;return t.length>=1&&t!==`
36
+ `&&i}var gI="__reactResponderId";function QN(e){if(e.type==="selectionchange"){var t=window.getSelection().anchorNode;return qE(t)}else{var r=e.composedPath!=null?e.composedPath():qE(e.target);return r}}function qE(e){for(var t=[];e!=null&&e!==document.body;)t.push(e),e=e.parentNode;return t}function ZN(e){return e!=null?e[gI]:null}function e6(e,t){e!=null&&(e[gI]=t)}function t6(e){for(var t=[],r=[],n=QN(e),i=0;i<n.length;i++){var o=n[i],s=ZN(o);s!=null&&(t.push(s),r.push(o))}return{idPath:t,nodePath:r}}function r6(e,t){var r=e.length,n=t.length;if(r===0||n===0||e[r-1]!==t[n-1])return null;var i=e[0],o=0,s=t[0],u=0;r-n>0&&(o=r-n,i=e[o],r=n),n-r>0&&(u=n-r,s=t[u],n=r);for(var c=r;c--;){if(i===s)return i;i=e[o++],s=t[u++]}return null}function n6(e,t){if(!t||t.length===0)return!1;for(var r=0;r<t.length;r++){var n=t[r].target;if(n!=null&&e.contains(n))return!0}return!1}function i6(e){return e.type==="selectionchange"?JN():e.type==="select"}function o6(e){var t=e.altKey,r=e.button,n=e.buttons,i=e.ctrlKey,o=e.type,s=o==="touchstart"||o==="touchmove",u=o==="mousedown"&&(r===0||n===1),c=o==="mousemove"&&n===1,f=t===!1&&i===!1;return!!(s||u&&f||c&&f)}var GE=20;function Ci(e){return e.timeStamp||e.timestamp}function a6(e){return{touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:Ci(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:Ci(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:Ci(e)}}function s6(e,t){e.touchActive=!0,e.startPageX=t.pageX,e.startPageY=t.pageY,e.startTimeStamp=Ci(t),e.currentPageX=t.pageX,e.currentPageY=t.pageY,e.currentTimeStamp=Ci(t),e.previousPageX=t.pageX,e.previousPageY=t.pageY,e.previousTimeStamp=Ci(t)}function b1(e){var t=e.identifier;return t==null&&console.error("Touch object is missing identifier."),t}function l6(e,t){var r=b1(e),n=t.touchBank[r];n?s6(n,e):t.touchBank[r]=a6(e),t.mostRecentTimeStamp=Ci(e)}function u6(e,t){var r=t.touchBank[b1(e)];r?(r.touchActive=!0,r.previousPageX=r.currentPageX,r.previousPageY=r.currentPageY,r.previousTimeStamp=r.currentTimeStamp,r.currentPageX=e.pageX,r.currentPageY=e.pageY,r.currentTimeStamp=Ci(e),t.mostRecentTimeStamp=Ci(e)):console.warn(`Cannot record touch move without a touch start.
37
+ `,"Touch Move: "+vI(e)+`
38
+ `,"Touch Bank: "+mI(t))}function c6(e,t){var r=t.touchBank[b1(e)];r?(r.touchActive=!1,r.previousPageX=r.currentPageX,r.previousPageY=r.currentPageY,r.previousTimeStamp=r.currentTimeStamp,r.currentPageX=e.pageX,r.currentPageY=e.pageY,r.currentTimeStamp=Ci(e),t.mostRecentTimeStamp=Ci(e)):console.warn(`Cannot record touch end without a touch start.
39
+ `,"Touch End: "+vI(e)+`
40
+ `,"Touch Bank: "+mI(t))}function vI(e){return JSON.stringify({identifier:e.identifier,pageX:e.pageX,pageY:e.pageY,timestamp:Ci(e)})}function mI(e){var t=e.touchBank,r=JSON.stringify(t.slice(0,GE));return t.length>GE&&(r+=" (original size: "+t.length+")"),r}class f6{constructor(){this._touchHistory={touchBank:[],numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0}}recordTouchTrack(t,r){var n=this._touchHistory;if(dI(t))r.changedTouches.forEach(u=>u6(u,n));else if(fI(t))r.changedTouches.forEach(u=>l6(u,n)),n.numberActiveTouches=r.touches.length,n.numberActiveTouches===1&&(n.indexOfSingleActiveTouch=r.touches[0].identifier);else if(pI(t)&&(r.changedTouches.forEach(u=>c6(u,n)),n.numberActiveTouches=r.touches.length,n.numberActiveTouches===1))for(var i=n.touchBank,o=0;o<i.length;o++){var s=i[o];if(s!=null&&s.touchActive){n.indexOfSingleActiveTouch=o;break}}}get touchHistory(){return this._touchHistory}}var d6={},XE=["onStartShouldSetResponderCapture","onStartShouldSetResponder",{bubbles:!0}],KE=["onMoveShouldSetResponderCapture","onMoveShouldSetResponder",{bubbles:!0}],p6=["onScrollShouldSetResponderCapture","onScrollShouldSetResponder",{bubbles:!1}],h6={touchstart:XE,mousedown:XE,touchmove:KE,mousemove:KE,scroll:p6},Fy={id:null,idPath:null,node:null},vp=new Map,Oa=!1,mo=0,Eo={id:null,node:null,idPath:null},Ny=new f6;function ac(e){Eo=e}function sc(e){var t=vp.get(e);return t??d6}function fv(e){var t=e.type,r=e.target;if(t==="touchstart"&&(Oa=!0),(t==="touchmove"||mo>1)&&(Oa=!1),!(t==="mousedown"&&Oa||t==="mousemove"&&Oa||t==="mousemove"&&mo<1)){if(Oa&&t==="mouseup"){mo===0&&(Oa=!1);return}var n=fI(t)&&o6(e),i=dI(t),o=pI(t),s=KN(t),u=YN(t),c=cI(e,Ny);(n||i||o)&&(e.touches?mo=e.touches.length:n?mo=1:o&&(mo=0),Ny.recordTouchTrack(t,c.nativeEvent));var f=t6(e),d=!1,g;if(n||i||s&&mo>0){var h=Eo.idPath,b=f.idPath;if(h!=null&&b!=null){var v=r6(h,b);if(v!=null){var S=b.indexOf(v),y=S+(v===Eo.id?1:0);f={idPath:b.slice(y),nodePath:f.nodePath.slice(y)}}else f=null}f!=null&&(g=g6(f,e,c),g!=null&&(v6(c,g),d=!0))}if(Eo.id!=null&&Eo.node!=null){var E=Eo,x=E.id,T=E.node,A=sc(x),R=A.onResponderStart,$=A.onResponderMove,O=A.onResponderEnd,I=A.onResponderRelease,L=A.onResponderTerminate,F=A.onResponderTerminationRequest;if(c.bubbles=!1,c.cancelable=!1,c.currentTarget=T,n)R!=null&&(c.dispatchConfig.registrationName="onResponderStart",R(c));else if(i)$!=null&&(c.dispatchConfig.registrationName="onResponderMove",$(c));else{var q=hI(t)||t==="contextmenu"||t==="blur"&&r===window||t==="blur"&&r.contains(T)&&e.relatedTarget!==T||s&&mo===0||s&&r.contains(T)&&r!==T||u&&i6(e),z=o&&!q&&!n6(T,e.touches);if(o&&O!=null&&(c.dispatchConfig.registrationName="onResponderEnd",O(c)),z&&(I!=null&&(c.dispatchConfig.registrationName="onResponderRelease",I(c)),ac(Fy)),q){var B=!0;(t==="contextmenu"||t==="scroll"||t==="selectionchange")&&(d?B=!1:F!=null&&(c.dispatchConfig.registrationName="onResponderTerminationRequest",F(c)===!1&&(B=!1))),B&&(L!=null&&(c.dispatchConfig.registrationName="onResponderTerminate",L(c)),ac(Fy),Oa=!1,mo=0)}}}}}function g6(e,t,r){var n=h6[t.type];if(n!=null){for(var i=e.idPath,o=e.nodePath,s=n[0],u=n[1],c=n[2].bubbles,f=function($,O,I){var L=sc($),F=L[I];if(F!=null&&(r.currentTarget=O,F(r)===!0)){var q=i.slice(i.indexOf($));return{id:$,node:O,idPath:q}}},d=i.length-1;d>=0;d--){var g=i[d],h=o[d],b=f(g,h,s);if(b!=null)return b;if(r.isPropagationStopped()===!0)return}if(c)for(var v=0;v<i.length;v++){var S=i[v],y=o[v],E=f(S,y,u);if(E!=null)return E;if(r.isPropagationStopped()===!0)return}else{var x=i[0],T=o[0],A=t.target;if(A===T)return f(x,T,u)}}}function v6(e,t){var r=Eo,n=r.id,i=r.node,o=t.id,s=t.node,u=sc(o),c=u.onResponderGrant,f=u.onResponderReject;if(e.bubbles=!1,e.cancelable=!1,e.currentTarget=s,n==null)c!=null&&(e.currentTarget=s,e.dispatchConfig.registrationName="onResponderGrant",c(e)),ac(t);else{var d=sc(n),g=d.onResponderTerminate,h=d.onResponderTerminationRequest,b=!0;h!=null&&(e.currentTarget=i,e.dispatchConfig.registrationName="onResponderTerminationRequest",h(e)===!1&&(b=!1)),b?(g!=null&&(e.currentTarget=i,e.dispatchConfig.registrationName="onResponderTerminate",g(e)),c!=null&&(e.currentTarget=s,e.dispatchConfig.registrationName="onResponderGrant",c(e)),ac(t)):f!=null&&(e.currentTarget=s,e.dispatchConfig.registrationName="onResponderReject",f(e))}}var m6=["blur","scroll"],y6=["mousedown","mousemove","mouseup","dragstart","touchstart","touchmove","touchend","touchcancel","contextmenu","select","selectionchange"];function b6(){Rs&&window.__reactResponderSystemActive==null&&(window.addEventListener("blur",fv),y6.forEach(e=>{document.addEventListener(e,fv)}),m6.forEach(e=>{document.addEventListener(e,fv,!0)}),window.__reactResponderSystemActive=!0)}function S6(e,t,r){e6(t,e),vp.set(e,r)}function YE(e){Eo.id===e&&w6(),vp.has(e)&&vp.delete(e)}function w6(){var e=Eo,t=e.id,r=e.node;if(t!=null&&r!=null){var n=sc(t),i=n.onResponderTerminate;if(i!=null){var o=cI({},Ny);o.currentTarget=r,i(o)}ac(Fy)}Oa=!1,mo=0}function x6(){return Eo.node}var E6={},C6=0;function R6(e){var t=C.useRef(null);return t.current==null&&(t.current=e()),t.current}function _6(e,t){t===void 0&&(t=E6);var r=R6(()=>C6++),n=C.useRef(!1);C.useEffect(()=>(b6(),()=>{YE(r)}),[r]),C.useEffect(()=>{var i=t,o=i.onMoveShouldSetResponder,s=i.onMoveShouldSetResponderCapture,u=i.onScrollShouldSetResponder,c=i.onScrollShouldSetResponderCapture,f=i.onSelectionChangeShouldSetResponder,d=i.onSelectionChangeShouldSetResponderCapture,g=i.onStartShouldSetResponder,h=i.onStartShouldSetResponderCapture,b=o!=null||s!=null||u!=null||c!=null||f!=null||d!=null||g!=null||h!=null,v=e.current;b?(S6(r,v,t),n.current=!0):n.current&&(YE(r),n.current=!1)},[t,e,r]),C.useDebugValue({isResponder:e.current===x6()}),C.useDebugValue(t)}var O6=C.createContext(!1),T6=["hrefAttrs","onLayout","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture"],A6=Object.assign({},wN,xN,EN,CN,RN,_N,ON,TN,{href:!0,lang:!0,onScroll:!0,onWheel:!0,pointerEvents:!0}),$6=e=>AN(e,A6),jy=C.forwardRef((e,t)=>{var r=e.hrefAttrs,n=e.onLayout,i=e.onMoveShouldSetResponder,o=e.onMoveShouldSetResponderCapture,s=e.onResponderEnd,u=e.onResponderGrant,c=e.onResponderMove,f=e.onResponderReject,d=e.onResponderRelease,g=e.onResponderStart,h=e.onResponderTerminate,b=e.onResponderTerminationRequest,v=e.onScrollShouldSetResponder,S=e.onScrollShouldSetResponderCapture,y=e.onSelectionChangeShouldSetResponder,E=e.onSelectionChangeShouldSetResponderCapture,x=e.onStartShouldSetResponder,T=e.onStartShouldSetResponderCapture,A=Ic(e,T6),R=C.useContext(O6),$=C.useRef(null),O=sN(),I=O.direction;IN($,n),_6($,{onMoveShouldSetResponder:i,onMoveShouldSetResponderCapture:o,onResponderEnd:s,onResponderGrant:u,onResponderMove:c,onResponderReject:f,onResponderRelease:d,onResponderStart:g,onResponderTerminate:h,onResponderTerminationRequest:b,onScrollShouldSetResponder:v,onScrollShouldSetResponderCapture:S,onSelectionChangeShouldSetResponder:y,onSelectionChangeShouldSetResponderCapture:E,onStartShouldSetResponder:x,onStartShouldSetResponderCapture:T});var L="div",F=e.lang!=null?sI(e.lang):null,q=e.dir||F,z=q||I,B=$6(A);if(B.dir=q,B.style=[JE.view$raw,R&&JE.inline,e.style],e.href!=null&&(L="a",r!=null)){var N=r.download,j=r.rel,H=r.target;N!=null&&(B.download=N),j!=null&&(B.rel=j),typeof H=="string"&&(B.target=H.charAt(0)!=="_"?"_"+H:H)}var X=DN(B),M=kN($,X,t);return B.ref=M,lN(L,B,{writingDirection:z})});jy.displayName="View";var JE=Pc.create({view$raw:{alignContent:"flex-start",alignItems:"stretch",backgroundColor:"transparent",border:"0 solid black",boxSizing:"border-box",display:"flex",flexBasis:"auto",flexDirection:"column",flexShrink:0,listStyle:"none",margin:0,minHeight:0,minWidth:0,padding:0,position:"relative",textDecoration:"none",zIndex:0},inline:{display:"inline-flex"}}),dv,QE;function I6(){if(QE)return dv;QE=1;function e(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];if(!t){var s;if(r===void 0)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=0;s=new Error(r.replace(/%s/g,function(){return String(i[u++])})),s.name="Invariant Violation"}throw s.framesToPop=1,s}}return dv=e,dv}var P6=I6();const Gd=Mr(P6);function zy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function S1(e,t){if(e){if(typeof e=="string")return zy(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zy(e,t):void 0}}var k6=C.createContext(null),w1=C.forwardRef((e,t)=>{var r=e.children,n=e.WrapperComponent,i=C.createElement(jy,{children:r,key:1,style:ZE.appContainer});return n&&(i=C.createElement(n,null,i)),C.createElement(k6.Provider,{value:e.rootTag},C.createElement(jy,{ref:t,style:ZE.appContainer},i))});w1.displayName="AppContainer";var ZE=Pc.create({appContainer:{flex:1,pointerEvents:"box-none"}});function M6(e,t,r,n){var i=n.hydrate,o=n.initialProps,s=n.rootTag,u=i?pN:hN;return Gd(s,"Expect to have a valid rootTag, instead got ",s),u(oe.createElement(w1,{WrapperComponent:t,ref:r,rootTag:s},oe.createElement(e,o)),s)}function D6(e,t,r){var n=oe.createElement(w1,{WrapperComponent:r,rootTag:{}},oe.createElement(e,t)),i=o=>{var s=Pc.getSheet();return oe.createElement("style",hr({},o,{dangerouslySetInnerHTML:{__html:s.textContent},id:s.id}))};return{element:n,getStyleElement:i}}var eC={},Yo={},pv=e=>e(),Ou;class lc{static getAppKeys(){return Object.keys(Yo)}static getApplication(t,r){return Gd(Yo[t]&&Yo[t].getApplication,"Application "+t+" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent."),Yo[t].getApplication(r)}static registerComponent(t,r){return Yo[t]={getApplication:n=>D6(pv(r),n?n.initialProps:eC,Ou&&Ou(n)),run:n=>M6(pv(r),Ou&&Ou(n),n.callback,{hydrate:n.hydrate||!1,initialProps:n.initialProps||eC,mode:n.mode||"concurrent",rootTag:n.rootTag})},t}static registerConfig(t){t.forEach(r=>{var n=r.appKey,i=r.component,o=r.run;o?lc.registerRunnable(n,o):(Gd(i,"No component provider passed in"),lc.registerComponent(n,i))})}static registerRunnable(t,r){return Yo[t]={run:r},t}static runApplication(t,r){return Gd(Yo[t]&&Yo[t].run,'Application "'+t+'" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent.'),Yo[t].run(r)}static setComponentProviderInstrumentationHook(t){pv=t}static setWrapperComponentProvider(t){Ou=t}static unmountApplicationComponentAtRootTag(t){gN(t)}}var Vp=lI();const tC=Mr(Vp);var hv={exports:{}},Tu={};/**
41
+ * @license React
42
+ * react-jsx-runtime.production.min.js
43
+ *
44
+ * Copyright (c) Facebook, Inc. and its affiliates.
45
+ *
46
+ * This source code is licensed under the MIT license found in the
47
+ * LICENSE file in the root directory of this source tree.
48
+ */var rC;function L6(){if(rC)return Tu;rC=1;var e=y1(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(u,c,f){var d,g={},h=null,b=null;f!==void 0&&(h=""+f),c.key!==void 0&&(h=""+c.key),c.ref!==void 0&&(b=c.ref);for(d in c)n.call(c,d)&&!o.hasOwnProperty(d)&&(g[d]=c[d]);if(u&&u.defaultProps)for(d in c=u.defaultProps,c)g[d]===void 0&&(g[d]=c[d]);return{$$typeof:t,type:u,key:h,ref:b,props:g,_owner:i.current}}return Tu.Fragment=r,Tu.jsx=s,Tu.jsxs=s,Tu}var nC;function F6(){return nC||(nC=1,hv.exports=L6()),hv.exports}var U=F6(),gv={exports:{}},Dt={};/**
49
+ * @license React
50
+ * react-is.production.min.js
51
+ *
52
+ * Copyright (c) Facebook, Inc. and its affiliates.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE file in the root directory of this source tree.
56
+ */var iC;function N6(){if(iC)return Dt;iC=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),v;v=Symbol.for("react.module.reference");function S(y){if(typeof y=="object"&&y!==null){var E=y.$$typeof;switch(E){case e:switch(y=y.type,y){case r:case i:case n:case f:case d:return y;default:switch(y=y&&y.$$typeof,y){case u:case s:case c:case h:case g:case o:return y;default:return E}}case t:return E}}}return Dt.ContextConsumer=s,Dt.ContextProvider=o,Dt.Element=e,Dt.ForwardRef=c,Dt.Fragment=r,Dt.Lazy=h,Dt.Memo=g,Dt.Portal=t,Dt.Profiler=i,Dt.StrictMode=n,Dt.Suspense=f,Dt.SuspenseList=d,Dt.isAsyncMode=function(){return!1},Dt.isConcurrentMode=function(){return!1},Dt.isContextConsumer=function(y){return S(y)===s},Dt.isContextProvider=function(y){return S(y)===o},Dt.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},Dt.isForwardRef=function(y){return S(y)===c},Dt.isFragment=function(y){return S(y)===r},Dt.isLazy=function(y){return S(y)===h},Dt.isMemo=function(y){return S(y)===g},Dt.isPortal=function(y){return S(y)===t},Dt.isProfiler=function(y){return S(y)===i},Dt.isStrictMode=function(y){return S(y)===n},Dt.isSuspense=function(y){return S(y)===f},Dt.isSuspenseList=function(y){return S(y)===d},Dt.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===i||y===n||y===f||y===d||y===b||typeof y=="object"&&y!==null&&(y.$$typeof===h||y.$$typeof===g||y.$$typeof===o||y.$$typeof===s||y.$$typeof===c||y.$$typeof===v||y.getModuleId!==void 0)},Dt.typeOf=S,Dt}var oC;function j6(){return oC||(oC=1,gv.exports=N6()),gv.exports}var Gu=j6();function z6(e){function t(P,G,Z,te,K){for(var be=0,ae=0,Se=0,he=0,Ee,we,Te=0,Ce=0,_e,$e=_e=Ee=0,ke=0,Ge=0,Qe=0,je=0,ze=Z.length,Ye=ze-1,Ue,Re="",Xe="",ct="",Pt="",ht;ke<ze;){if(we=Z.charCodeAt(ke),ke===Ye&&ae+he+Se+be!==0&&(ae!==0&&(we=ae===47?10:47),he=Se=be=0,ze++,Ye++),ae+he+Se+be===0){if(ke===Ye&&(0<Ge&&(Re=Re.replace(h,"")),0<Re.trim().length)){switch(we){case 32:case 9:case 59:case 13:case 10:break;default:Re+=Z.charAt(ke)}we=59}switch(we){case 123:for(Re=Re.trim(),Ee=Re.charCodeAt(0),_e=1,je=++ke;ke<ze;){switch(we=Z.charCodeAt(ke)){case 123:_e++;break;case 125:_e--;break;case 47:switch(we=Z.charCodeAt(ke+1)){case 42:case 47:e:{for($e=ke+1;$e<Ye;++$e)switch(Z.charCodeAt($e)){case 47:if(we===42&&Z.charCodeAt($e-1)===42&&ke+2!==$e){ke=$e+1;break e}break;case 10:if(we===47){ke=$e+1;break e}}ke=$e}}break;case 91:we++;case 40:we++;case 34:case 39:for(;ke++<Ye&&Z.charCodeAt(ke)!==we;);}if(_e===0)break;ke++}switch(_e=Z.substring(je,ke),Ee===0&&(Ee=(Re=Re.replace(g,"").trim()).charCodeAt(0)),Ee){case 64:switch(0<Ge&&(Re=Re.replace(h,"")),we=Re.charCodeAt(1),we){case 100:case 109:case 115:case 45:Ge=G;break;default:Ge=H}if(_e=t(G,Ge,_e,we,K+1),je=_e.length,0<M&&(Ge=r(H,Re,Qe),ht=u(3,_e,Ge,G,B,z,je,we,K,te),Re=Ge.join(""),ht!==void 0&&(je=(_e=ht.trim()).length)===0&&(we=0,_e="")),0<je)switch(we){case 115:Re=Re.replace($,s);case 100:case 109:case 45:_e=Re+"{"+_e+"}";break;case 107:Re=Re.replace(x,"$1 $2"),_e=Re+"{"+_e+"}",_e=j===1||j===2&&o("@"+_e,3)?"@-webkit-"+_e+"@"+_e:"@"+_e;break;default:_e=Re+_e,te===112&&(_e=(Xe+=_e,""))}else _e="";break;default:_e=t(G,r(G,Re,Qe),_e,te,K+1)}ct+=_e,_e=Qe=Ge=$e=Ee=0,Re="",we=Z.charCodeAt(++ke);break;case 125:case 59:if(Re=(0<Ge?Re.replace(h,""):Re).trim(),1<(je=Re.length))switch($e===0&&(Ee=Re.charCodeAt(0),Ee===45||96<Ee&&123>Ee)&&(je=(Re=Re.replace(" ",":")).length),0<M&&(ht=u(1,Re,G,P,B,z,Xe.length,te,K,te))!==void 0&&(je=(Re=ht.trim()).length)===0&&(Re="\0\0"),Ee=Re.charCodeAt(0),we=Re.charCodeAt(1),Ee){case 0:break;case 64:if(we===105||we===99){Pt+=Re+Z.charAt(ke);break}default:Re.charCodeAt(je-1)!==58&&(Xe+=i(Re,Ee,we,Re.charCodeAt(2)))}Qe=Ge=$e=Ee=0,Re="",we=Z.charCodeAt(++ke)}}switch(we){case 13:case 10:ae===47?ae=0:1+Ee===0&&te!==107&&0<Re.length&&(Ge=1,Re+="\0"),0<M*W&&u(0,Re,G,P,B,z,Xe.length,te,K,te),z=1,B++;break;case 59:case 125:if(ae+he+Se+be===0){z++;break}default:switch(z++,Ue=Z.charAt(ke),we){case 9:case 32:if(he+be+ae===0)switch(Te){case 44:case 58:case 9:case 32:Ue="";break;default:we!==32&&(Ue=" ")}break;case 0:Ue="\\0";break;case 12:Ue="\\f";break;case 11:Ue="\\v";break;case 38:he+ae+be===0&&(Ge=Qe=1,Ue="\f"+Ue);break;case 108:if(he+ae+be+N===0&&0<$e)switch(ke-$e){case 2:Te===112&&Z.charCodeAt(ke-3)===58&&(N=Te);case 8:Ce===111&&(N=Ce)}break;case 58:he+ae+be===0&&($e=ke);break;case 44:ae+Se+he+be===0&&(Ge=1,Ue+="\r");break;case 34:case 39:ae===0&&(he=he===we?0:he===0?we:he);break;case 91:he+ae+Se===0&&be++;break;case 93:he+ae+Se===0&&be--;break;case 41:he+ae+be===0&&Se--;break;case 40:if(he+ae+be===0){if(Ee===0)switch(2*Te+3*Ce){case 533:break;default:Ee=1}Se++}break;case 64:ae+Se+he+be+$e+_e===0&&(_e=1);break;case 42:case 47:if(!(0<he+be+Se))switch(ae){case 0:switch(2*we+3*Z.charCodeAt(ke+1)){case 235:ae=47;break;case 220:je=ke,ae=42}break;case 42:we===47&&Te===42&&je+2!==ke&&(Z.charCodeAt(je+2)===33&&(Xe+=Z.substring(je,ke+1)),Ue="",ae=0)}}ae===0&&(Re+=Ue)}Ce=Te,Te=we,ke++}if(je=Xe.length,0<je){if(Ge=G,0<M&&(ht=u(2,Xe,Ge,P,B,z,je,te,K,te),ht!==void 0&&(Xe=ht).length===0))return Pt+Xe+ct;if(Xe=Ge.join(",")+"{"+Xe+"}",j*N!==0){switch(j!==2||o(Xe,2)||(N=0),N){case 111:Xe=Xe.replace(A,":-moz-$1")+Xe;break;case 112:Xe=Xe.replace(T,"::-webkit-input-$1")+Xe.replace(T,"::-moz-$1")+Xe.replace(T,":-ms-input-$1")+Xe}N=0}}return Pt+Xe+ct}function r(P,G,Z){var te=G.trim().split(y);G=te;var K=te.length,be=P.length;switch(be){case 0:case 1:var ae=0;for(P=be===0?"":P[0]+" ";ae<K;++ae)G[ae]=n(P,G[ae],Z).trim();break;default:var Se=ae=0;for(G=[];ae<K;++ae)for(var he=0;he<be;++he)G[Se++]=n(P[he]+" ",te[ae],Z).trim()}return G}function n(P,G,Z){var te=G.charCodeAt(0);switch(33>te&&(te=(G=G.trim()).charCodeAt(0)),te){case 38:return G.replace(E,"$1"+P.trim());case 58:return P.trim()+G.replace(E,"$1"+P.trim());default:if(0<1*Z&&0<G.indexOf("\f"))return G.replace(E,(P.charCodeAt(0)===58?"":"$1")+P.trim())}return P+G}function i(P,G,Z,te){var K=P+";",be=2*G+3*Z+4*te;if(be===944){P=K.indexOf(":",9)+1;var ae=K.substring(P,K.length-1).trim();return ae=K.substring(0,P).trim()+ae+";",j===1||j===2&&o(ae,1)?"-webkit-"+ae+ae:ae}if(j===0||j===2&&!o(K,1))return K;switch(be){case 1015:return K.charCodeAt(10)===97?"-webkit-"+K+K:K;case 951:return K.charCodeAt(3)===116?"-webkit-"+K+K:K;case 963:return K.charCodeAt(5)===110?"-webkit-"+K+K:K;case 1009:if(K.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+K+K;case 978:return"-webkit-"+K+"-moz-"+K+K;case 1019:case 983:return"-webkit-"+K+"-moz-"+K+"-ms-"+K+K;case 883:if(K.charCodeAt(8)===45)return"-webkit-"+K+K;if(0<K.indexOf("image-set(",11))return K.replace(q,"$1-webkit-$2")+K;break;case 932:if(K.charCodeAt(4)===45)switch(K.charCodeAt(5)){case 103:return"-webkit-box-"+K.replace("-grow","")+"-webkit-"+K+"-ms-"+K.replace("grow","positive")+K;case 115:return"-webkit-"+K+"-ms-"+K.replace("shrink","negative")+K;case 98:return"-webkit-"+K+"-ms-"+K.replace("basis","preferred-size")+K}return"-webkit-"+K+"-ms-"+K+K;case 964:return"-webkit-"+K+"-ms-flex-"+K+K;case 1023:if(K.charCodeAt(8)!==99)break;return ae=K.substring(K.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+ae+"-webkit-"+K+"-ms-flex-pack"+ae+K;case 1005:return v.test(K)?K.replace(b,":-webkit-")+K.replace(b,":-moz-")+K:K;case 1e3:switch(ae=K.substring(13).trim(),G=ae.indexOf("-")+1,ae.charCodeAt(0)+ae.charCodeAt(G)){case 226:ae=K.replace(R,"tb");break;case 232:ae=K.replace(R,"tb-rl");break;case 220:ae=K.replace(R,"lr");break;default:return K}return"-webkit-"+K+"-ms-"+ae+K;case 1017:if(K.indexOf("sticky",9)===-1)break;case 975:switch(G=(K=P).length-10,ae=(K.charCodeAt(G)===33?K.substring(0,G):K).substring(P.indexOf(":",7)+1).trim(),be=ae.charCodeAt(0)+(ae.charCodeAt(7)|0)){case 203:if(111>ae.charCodeAt(8))break;case 115:K=K.replace(ae,"-webkit-"+ae)+";"+K;break;case 207:case 102:K=K.replace(ae,"-webkit-"+(102<be?"inline-":"")+"box")+";"+K.replace(ae,"-webkit-"+ae)+";"+K.replace(ae,"-ms-"+ae+"box")+";"+K}return K+";";case 938:if(K.charCodeAt(5)===45)switch(K.charCodeAt(6)){case 105:return ae=K.replace("-items",""),"-webkit-"+K+"-webkit-box-"+ae+"-ms-flex-"+ae+K;case 115:return"-webkit-"+K+"-ms-flex-item-"+K.replace(I,"")+K;default:return"-webkit-"+K+"-ms-flex-line-pack"+K.replace("align-content","").replace(I,"")+K}break;case 973:case 989:if(K.charCodeAt(3)!==45||K.charCodeAt(4)===122)break;case 931:case 953:if(F.test(P)===!0)return(ae=P.substring(P.indexOf(":")+1)).charCodeAt(0)===115?i(P.replace("stretch","fill-available"),G,Z,te).replace(":fill-available",":stretch"):K.replace(ae,"-webkit-"+ae)+K.replace(ae,"-moz-"+ae.replace("fill-",""))+K;break;case 962:if(K="-webkit-"+K+(K.charCodeAt(5)===102?"-ms-"+K:"")+K,Z+te===211&&K.charCodeAt(13)===105&&0<K.indexOf("transform",10))return K.substring(0,K.indexOf(";",27)+1).replace(S,"$1-webkit-$2")+K}return K}function o(P,G){var Z=P.indexOf(G===1?":":"{"),te=P.substring(0,G!==3?Z:10);return Z=P.substring(Z+1,P.length-1),Q(G!==2?te:te.replace(L,"$1"),Z,G)}function s(P,G){var Z=i(G,G.charCodeAt(0),G.charCodeAt(1),G.charCodeAt(2));return Z!==G+";"?Z.replace(O," or ($1)").substring(4):"("+G+")"}function u(P,G,Z,te,K,be,ae,Se,he,Ee){for(var we=0,Te=G,Ce;we<M;++we)switch(Ce=X[we].call(d,P,Te,Z,te,K,be,ae,Se,he,Ee)){case void 0:case!1:case!0:case null:break;default:Te=Ce}if(Te!==G)return Te}function c(P){switch(P){case void 0:case null:M=X.length=0;break;default:if(typeof P=="function")X[M++]=P;else if(typeof P=="object")for(var G=0,Z=P.length;G<Z;++G)c(P[G]);else W=!!P|0}return c}function f(P){return P=P.prefix,P!==void 0&&(Q=null,P?typeof P!="function"?j=1:(j=2,Q=P):j=0),f}function d(P,G){var Z=P;if(33>Z.charCodeAt(0)&&(Z=Z.trim()),D=Z,Z=[D],0<M){var te=u(-1,G,Z,Z,B,z,0,0,0,0);te!==void 0&&typeof te=="string"&&(G=te)}var K=t(H,Z,G,0,0);return 0<M&&(te=u(-2,K,Z,Z,B,z,K.length,0,0,0),te!==void 0&&(K=te)),D="",N=0,z=B=1,K}var g=/^\0+/g,h=/[\0\r\f]/g,b=/: */g,v=/zoo|gra/,S=/([,: ])(transform)/g,y=/,\r+?/g,E=/([\t\r\n ])*\f?&/g,x=/@(k\w+)\s*(\S*)\s*/,T=/::(place)/g,A=/:(read-only)/g,R=/[svh]\w+-[tblr]{2}/,$=/\(\s*(.*)\s*\)/g,O=/([\s\S]*?);/g,I=/-self|flex-/g,L=/[^]*?(:[rp][el]a[\w-]+)[^]*/,F=/stretch|:\s*\w+\-(?:conte|avail)/,q=/([^-])(image-set\()/,z=1,B=1,N=0,j=1,H=[],X=[],M=0,Q=null,W=0,D="";return d.use=c,d.set=f,e!==void 0&&f(e),d}var yI={animationIterationCount: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,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};function B6(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var V6=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,aC=B6(function(e){return V6.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),vv={exports:{}},Lt={};/** @license React v16.13.1
57
+ * react-is.production.min.js
58
+ *
59
+ * Copyright (c) Facebook, Inc. and its affiliates.
60
+ *
61
+ * This source code is licensed under the MIT license found in the
62
+ * LICENSE file in the root directory of this source tree.
63
+ */var sC;function U6(){if(sC)return Lt;sC=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function T(R){if(typeof R=="object"&&R!==null){var $=R.$$typeof;switch($){case t:switch(R=R.type,R){case c:case f:case n:case o:case i:case g:return R;default:switch(R=R&&R.$$typeof,R){case u:case d:case v:case b:case s:return R;default:return $}}case r:return $}}}function A(R){return T(R)===f}return Lt.AsyncMode=c,Lt.ConcurrentMode=f,Lt.ContextConsumer=u,Lt.ContextProvider=s,Lt.Element=t,Lt.ForwardRef=d,Lt.Fragment=n,Lt.Lazy=v,Lt.Memo=b,Lt.Portal=r,Lt.Profiler=o,Lt.StrictMode=i,Lt.Suspense=g,Lt.isAsyncMode=function(R){return A(R)||T(R)===c},Lt.isConcurrentMode=A,Lt.isContextConsumer=function(R){return T(R)===u},Lt.isContextProvider=function(R){return T(R)===s},Lt.isElement=function(R){return typeof R=="object"&&R!==null&&R.$$typeof===t},Lt.isForwardRef=function(R){return T(R)===d},Lt.isFragment=function(R){return T(R)===n},Lt.isLazy=function(R){return T(R)===v},Lt.isMemo=function(R){return T(R)===b},Lt.isPortal=function(R){return T(R)===r},Lt.isProfiler=function(R){return T(R)===o},Lt.isStrictMode=function(R){return T(R)===i},Lt.isSuspense=function(R){return T(R)===g},Lt.isValidElementType=function(R){return typeof R=="string"||typeof R=="function"||R===n||R===f||R===o||R===i||R===g||R===h||typeof R=="object"&&R!==null&&(R.$$typeof===v||R.$$typeof===b||R.$$typeof===s||R.$$typeof===u||R.$$typeof===d||R.$$typeof===y||R.$$typeof===E||R.$$typeof===x||R.$$typeof===S)},Lt.typeOf=T,Lt}var lC;function H6(){return lC||(lC=1,vv.exports=U6()),vv.exports}var mv,uC;function W6(){if(uC)return mv;uC=1;var e=H6(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=n,o[e.Memo]=i;function s(v){return e.isMemo(v)?i:o[v.$$typeof]||t}var u=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,h=Object.prototype;function b(v,S,y){if(typeof S!="string"){if(h){var E=g(S);E&&E!==h&&b(v,E,y)}var x=c(S);f&&(x=x.concat(f(S)));for(var T=s(v),A=s(S),R=0;R<x.length;++R){var $=x[R];if(!r[$]&&!(y&&y[$])&&!(A&&A[$])&&!(T&&T[$])){var O=d(S,$);try{u(v,$,O)}catch{}}}}return v}return mv=b,mv}var q6=W6();const G6=Mr(q6);var Ei={};function Ji(){return(Ji=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var cC=function(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r},By=function(e){return e!==null&&typeof e=="object"&&(e.toString?e.toString():Object.prototype.toString.call(e))==="[object Object]"&&!Gu.typeOf(e)},mp=Object.freeze([]),Da=Object.freeze({});function _l(e){return typeof e=="function"}function fC(e){return e.displayName||e.name||"Component"}function x1(e){return e&&typeof e.styledComponentId=="string"}var Ol=typeof process<"u"&&Ei!==void 0&&(Ei.REACT_APP_SC_ATTR||Ei.SC_ATTR)||"data-styled",E1=typeof window<"u"&&"HTMLElement"in window,X6=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&Ei!==void 0&&(Ei.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&Ei.REACT_APP_SC_DISABLE_SPEEDY!==""?Ei.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&Ei.REACT_APP_SC_DISABLE_SPEEDY:Ei.SC_DISABLE_SPEEDY!==void 0&&Ei.SC_DISABLE_SPEEDY!==""&&Ei.SC_DISABLE_SPEEDY!=="false"&&Ei.SC_DISABLE_SPEEDY)),K6={};function bs(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var Y6=(function(){function e(r){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=r}var t=e.prototype;return t.indexOfGroup=function(r){for(var n=0,i=0;i<r;i++)n+=this.groupSizes[i];return n},t.insertRules=function(r,n){if(r>=this.groupSizes.length){for(var i=this.groupSizes,o=i.length,s=o;r>=s;)(s<<=1)<0&&bs(16,""+r);this.groupSizes=new Uint32Array(s),this.groupSizes.set(i),this.length=s;for(var u=o;u<s;u++)this.groupSizes[u]=0}for(var c=this.indexOfGroup(r+1),f=0,d=n.length;f<d;f++)this.tag.insertRule(c,n[f])&&(this.groupSizes[r]++,c++)},t.clearGroup=function(r){if(r<this.length){var n=this.groupSizes[r],i=this.indexOfGroup(r),o=i+n;this.groupSizes[r]=0;for(var s=i;s<o;s++)this.tag.deleteRule(i)}},t.getGroup=function(r){var n="";if(r>=this.length||this.groupSizes[r]===0)return n;for(var i=this.groupSizes[r],o=this.indexOfGroup(r),s=o+i,u=o;u<s;u++)n+=this.tag.getRule(u)+`/*!sc*/
64
+ `;return n},e})(),Xd=new Map,yp=new Map,Xu=1,fd=function(e){if(Xd.has(e))return Xd.get(e);for(;yp.has(Xu);)Xu++;var t=Xu++;return Xd.set(e,t),yp.set(t,e),t},J6=function(e){return yp.get(e)},Q6=function(e,t){t>=Xu&&(Xu=t+1),Xd.set(e,t),yp.set(t,e)},Z6="style["+Ol+'][data-styled-version="5.3.11"]',e3=new RegExp("^"+Ol+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),t3=function(e,t,r){for(var n,i=r.split(","),o=0,s=i.length;o<s;o++)(n=i[o])&&e.registerName(t,n)},r3=function(e,t){for(var r=(t.textContent||"").split(`/*!sc*/
65
+ `),n=[],i=0,o=r.length;i<o;i++){var s=r[i].trim();if(s){var u=s.match(e3);if(u){var c=0|parseInt(u[1],10),f=u[2];c!==0&&(Q6(f,c),t3(e,f,u[3]),e.getTag().insertRules(c,n)),n.length=0}else n.push(s)}}},n3=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null},bI=function(e){var t=document.head,r=e||t,n=document.createElement("style"),i=(function(u){for(var c=u.childNodes,f=c.length;f>=0;f--){var d=c[f];if(d&&d.nodeType===1&&d.hasAttribute(Ol))return d}})(r),o=i!==void 0?i.nextSibling:null;n.setAttribute(Ol,"active"),n.setAttribute("data-styled-version","5.3.11");var s=n3();return s&&n.setAttribute("nonce",s),r.insertBefore(n,o),n},i3=(function(){function e(r){var n=this.element=bI(r);n.appendChild(document.createTextNode("")),this.sheet=(function(i){if(i.sheet)return i.sheet;for(var o=document.styleSheets,s=0,u=o.length;s<u;s++){var c=o[s];if(c.ownerNode===i)return c}bs(17)})(n),this.length=0}var t=e.prototype;return t.insertRule=function(r,n){try{return this.sheet.insertRule(n,r),this.length++,!0}catch{return!1}},t.deleteRule=function(r){this.sheet.deleteRule(r),this.length--},t.getRule=function(r){var n=this.sheet.cssRules[r];return n!==void 0&&typeof n.cssText=="string"?n.cssText:""},e})(),o3=(function(){function e(r){var n=this.element=bI(r);this.nodes=n.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(r,n){if(r<=this.length&&r>=0){var i=document.createTextNode(n),o=this.nodes[r];return this.element.insertBefore(i,o||null),this.length++,!0}return!1},t.deleteRule=function(r){this.element.removeChild(this.nodes[r]),this.length--},t.getRule=function(r){return r<this.length?this.nodes[r].textContent:""},e})(),a3=(function(){function e(r){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(r,n){return r<=this.length&&(this.rules.splice(r,0,n),this.length++,!0)},t.deleteRule=function(r){this.rules.splice(r,1),this.length--},t.getRule=function(r){return r<this.length?this.rules[r]:""},e})(),dC=E1,s3={isServer:!E1,useCSSOMInjection:!X6},bp=(function(){function e(r,n,i){r===void 0&&(r=Da),n===void 0&&(n={}),this.options=Ji({},s3,{},r),this.gs=n,this.names=new Map(i),this.server=!!r.isServer,!this.server&&E1&&dC&&(dC=!1,(function(o){for(var s=document.querySelectorAll(Z6),u=0,c=s.length;u<c;u++){var f=s[u];f&&f.getAttribute(Ol)!=="active"&&(r3(o,f),f.parentNode&&f.parentNode.removeChild(f))}})(this))}e.registerId=function(r){return fd(r)};var t=e.prototype;return t.reconstructWithOptions=function(r,n){return n===void 0&&(n=!0),new e(Ji({},this.options,{},r),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(r){return this.gs[r]=(this.gs[r]||0)+1},t.getTag=function(){return this.tag||(this.tag=(i=(n=this.options).isServer,o=n.useCSSOMInjection,s=n.target,r=i?new a3(s):o?new i3(s):new o3(s),new Y6(r)));var r,n,i,o,s},t.hasNameForId=function(r,n){return this.names.has(r)&&this.names.get(r).has(n)},t.registerName=function(r,n){if(fd(r),this.names.has(r))this.names.get(r).add(n);else{var i=new Set;i.add(n),this.names.set(r,i)}},t.insertRules=function(r,n,i){this.registerName(r,n),this.getTag().insertRules(fd(r),i)},t.clearNames=function(r){this.names.has(r)&&this.names.get(r).clear()},t.clearRules=function(r){this.getTag().clearGroup(fd(r)),this.clearNames(r)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return(function(r){for(var n=r.getTag(),i=n.length,o="",s=0;s<i;s++){var u=J6(s);if(u!==void 0){var c=r.names.get(u),f=n.getGroup(s);if(c&&f&&c.size){var d=Ol+".g"+s+'[id="'+u+'"]',g="";c!==void 0&&c.forEach((function(h){h.length>0&&(g+=h+",")})),o+=""+f+d+'{content:"'+g+`"}/*!sc*/
66
+ `}}}return o})(this)},e})(),l3=/(a)(d)/gi,pC=function(e){return String.fromCharCode(e+(e>25?39:97))};function Vy(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=pC(t%52)+r;return(pC(t%52)+r).replace(l3,"$1-$2")}var ml=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},SI=function(e){return ml(5381,e)};function wI(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(_l(r)&&!x1(r))return!1}return!0}var u3=SI("5.3.11"),c3=(function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=(n===void 0||n.isStatic)&&wI(t),this.componentId=r,this.baseHash=ml(u3,r),this.baseStyle=n,bp.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var i=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(t,r,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(i,this.staticRulesId))o.push(this.staticRulesId);else{var s=Ss(this.rules,t,r,n).join(""),u=Vy(ml(this.baseHash,s)>>>0);if(!r.hasNameForId(i,u)){var c=n(s,"."+u,void 0,i);r.insertRules(i,u,c)}o.push(u),this.staticRulesId=u}else{for(var f=this.rules.length,d=ml(this.baseHash,n.hash),g="",h=0;h<f;h++){var b=this.rules[h];if(typeof b=="string")g+=b;else if(b){var v=Ss(b,t,r,n),S=Array.isArray(v)?v.join(""):v;d=ml(d,S+h),g+=S}}if(g){var y=Vy(d>>>0);if(!r.hasNameForId(i,y)){var E=n(g,"."+y,void 0,i);r.insertRules(i,y,E)}o.push(y)}}return o.join(" ")},e})(),f3=/^\s*\/\/.*$/gm,d3=[":","[",".","#"];function p3(e){var t,r,n,i,o=Da,s=o.options,u=s===void 0?Da:s,c=o.plugins,f=c===void 0?mp:c,d=new z6(u),g=[],h=(function(S){function y(E){if(E)try{S(E+"}")}catch{}}return function(E,x,T,A,R,$,O,I,L,F){switch(E){case 1:if(L===0&&x.charCodeAt(0)===64)return S(x+";"),"";break;case 2:if(I===0)return x+"/*|*/";break;case 3:switch(I){case 102:case 112:return S(T[0]+x),"";default:return x+(F===0?"/*|*/":"")}case-2:x.split("/*|*/}").forEach(y)}}})((function(S){g.push(S)})),b=function(S,y,E){return y===0&&d3.indexOf(E[r.length])!==-1||E.match(i)?S:"."+t};function v(S,y,E,x){x===void 0&&(x="&");var T=S.replace(f3,""),A=y&&E?E+" "+y+" { "+T+" }":T;return t=x,r=y,n=new RegExp("\\"+r+"\\b","g"),i=new RegExp("(\\"+r+"\\b){2,}"),d(E||!y?"":y,A)}return d.use([].concat(f,[function(S,y,E){S===2&&E.length&&E[0].lastIndexOf(r)>0&&(E[0]=E[0].replace(n,b))},h,function(S){if(S===-2){var y=g;return g=[],y}}])),v.hash=f.length?f.reduce((function(S,y){return y.name||bs(15),ml(S,y.name)}),5381).toString():"",v}var xI=oe.createContext();xI.Consumer;var EI=oe.createContext(),h3=(EI.Consumer,new bp),Uy=p3();function CI(){return C.useContext(xI)||h3}function RI(){return C.useContext(EI)||Uy}var _I=(function(){function e(t,r){var n=this;this.inject=function(i,o){o===void 0&&(o=Uy);var s=n.name+o.hash;i.hasNameForId(n.id,s)||i.insertRules(n.id,s,o(n.rules,s,"@keyframes"))},this.toString=function(){return bs(12,String(n.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=r}return e.prototype.getName=function(t){return t===void 0&&(t=Uy),this.name+t.hash},e})(),g3=/([A-Z])/,v3=/([A-Z])/g,m3=/^ms-/,y3=function(e){return"-"+e.toLowerCase()};function hC(e){return g3.test(e)?e.replace(v3,y3).replace(m3,"-ms-"):e}var gC=function(e){return e==null||e===!1||e===""};function Ss(e,t,r,n){if(Array.isArray(e)){for(var i,o=[],s=0,u=e.length;s<u;s+=1)(i=Ss(e[s],t,r,n))!==""&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}if(gC(e))return"";if(x1(e))return"."+e.styledComponentId;if(_l(e)){if(typeof(f=e)!="function"||f.prototype&&f.prototype.isReactComponent||!t)return e;var c=e(t);return Ss(c,t,r,n)}var f;return e instanceof _I?r?(e.inject(r,n),e.getName(n)):e:By(e)?(function d(g,h){var b,v,S=[];for(var y in g)g.hasOwnProperty(y)&&!gC(g[y])&&(Array.isArray(g[y])&&g[y].isCss||_l(g[y])?S.push(hC(y)+":",g[y],";"):By(g[y])?S.push.apply(S,d(g[y],y)):S.push(hC(y)+": "+(b=y,(v=g[y])==null||typeof v=="boolean"||v===""?"":typeof v!="number"||v===0||b in yI||b.startsWith("--")?String(v).trim():v+"px")+";"));return h?[h+" {"].concat(S,["}"]):S})(e):e.toString()}var vC=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function hn(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return _l(e)||By(e)?vC(Ss(cC(mp,[e].concat(r)))):r.length===0&&e.length===1&&typeof e[0]=="string"?e:vC(Ss(cC(e,r)))}var OI=function(e,t,r){return r===void 0&&(r=Da),e.theme!==r.theme&&e.theme||t||r.theme},b3=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,S3=/(^-|-$)/g;function yv(e){return e.replace(b3,"-").replace(S3,"")}var C1=function(e){return Vy(SI(e)>>>0)};function dd(e){return typeof e=="string"&&!0}var Hy=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},w3=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function x3(e,t,r){var n=e[r];Hy(t)&&Hy(n)?TI(n,t):e[r]=t}function TI(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var i=0,o=r;i<o.length;i++){var s=o[i];if(Hy(s))for(var u in s)w3(u)&&x3(e,s[u],u)}return e}var uc=oe.createContext();uc.Consumer;function E3(e){var t=C.useContext(uc),r=C.useMemo((function(){return(function(n,i){if(!n)return bs(14);if(_l(n)){var o=n(i);return o}return Array.isArray(n)||typeof n!="object"?bs(8):i?Ji({},i,{},n):n})(e.theme,t)}),[e.theme,t]);return e.children?oe.createElement(uc.Provider,{value:r},e.children):null}var bv={};function AI(e,t,r){var n=x1(e),i=!dd(e),o=t.attrs,s=o===void 0?mp:o,u=t.componentId,c=u===void 0?(function(x,T){var A=typeof x!="string"?"sc":yv(x);bv[A]=(bv[A]||0)+1;var R=A+"-"+C1("5.3.11"+A+bv[A]);return T?T+"-"+R:R})(t.displayName,t.parentComponentId):u,f=t.displayName,d=f===void 0?(function(x){return dd(x)?"styled."+x:"Styled("+fC(x)+")"})(e):f,g=t.displayName&&t.componentId?yv(t.displayName)+"-"+t.componentId:t.componentId||c,h=n&&e.attrs?Array.prototype.concat(e.attrs,s).filter(Boolean):s,b=t.shouldForwardProp;n&&e.shouldForwardProp&&(b=t.shouldForwardProp?function(x,T,A){return e.shouldForwardProp(x,T,A)&&t.shouldForwardProp(x,T,A)}:e.shouldForwardProp);var v,S=new c3(r,g,n?e.componentStyle:void 0),y=S.isStatic&&s.length===0,E=function(x,T){return(function(A,R,$,O){var I=A.attrs,L=A.componentStyle,F=A.defaultProps,q=A.foldedComponentIds,z=A.shouldForwardProp,B=A.styledComponentId,N=A.target,j=(function(te,K,be){te===void 0&&(te=Da);var ae=Ji({},K,{theme:te}),Se={};return be.forEach((function(he){var Ee,we,Te,Ce=he;for(Ee in _l(Ce)&&(Ce=Ce(ae)),Ce)ae[Ee]=Se[Ee]=Ee==="className"?(we=Se[Ee],Te=Ce[Ee],we&&Te?we+" "+Te:we||Te):Ce[Ee]})),[ae,Se]})(OI(R,C.useContext(uc),F)||Da,R,I),H=j[0],X=j[1],M=(function(te,K,be,ae){var Se=CI(),he=RI(),Ee=K?te.generateAndInjectStyles(Da,Se,he):te.generateAndInjectStyles(be,Se,he);return Ee})(L,O,H),Q=$,W=X.$as||R.$as||X.as||R.as||N,D=dd(W),P=X!==R?Ji({},R,{},X):R,G={};for(var Z in P)Z[0]!=="$"&&Z!=="as"&&(Z==="forwardedAs"?G.as=P[Z]:(z?z(Z,aC,W):!D||aC(Z))&&(G[Z]=P[Z]));return R.style&&X.style!==R.style&&(G.style=Ji({},R.style,{},X.style)),G.className=Array.prototype.concat(q,B,M!==B?M:null,R.className,X.className).filter(Boolean).join(" "),G.ref=Q,C.createElement(W,G)})(v,x,T,y)};return E.displayName=d,(v=oe.forwardRef(E)).attrs=h,v.componentStyle=S,v.displayName=d,v.shouldForwardProp=b,v.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):mp,v.styledComponentId=g,v.target=n?e.target:e,v.withComponent=function(x){var T=t.componentId,A=(function($,O){if($==null)return{};var I,L,F={},q=Object.keys($);for(L=0;L<q.length;L++)I=q[L],O.indexOf(I)>=0||(F[I]=$[I]);return F})(t,["componentId"]),R=T&&T+"-"+(dd(x)?x:yv(fC(x)));return AI(x,Ji({},A,{attrs:h,componentId:R}),r)},Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(x){this._foldedDefaultProps=n?TI({},e.defaultProps,x):x}}),Object.defineProperty(v,"toString",{value:function(){return"."+v.styledComponentId}}),i&&G6(v,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}var xe=function(e){return(function t(r,n,i){if(i===void 0&&(i=Da),!Gu.isValidElementType(n))return bs(1,String(n));var o=function(){return r(n,i,hn.apply(void 0,arguments))};return o.withConfig=function(s){return t(r,n,Ji({},i,{},s))},o.attrs=function(s){return t(r,n,Ji({},i,{attrs:Array.prototype.concat(i.attrs,s).filter(Boolean)}))},o})(AI,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){xe[e]=xe(e)}));var C3=(function(){function e(r,n){this.rules=r,this.componentId=n,this.isStatic=wI(r),bp.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(r,n,i,o){var s=o(Ss(this.rules,n,i,o).join(""),""),u=this.componentId+r;i.insertRules(u,u,s)},t.removeStyles=function(r,n){n.clearRules(this.componentId+r)},t.renderStyles=function(r,n,i,o){r>2&&bp.registerId(this.componentId+r),this.removeStyles(r,i),this.createStyles(r,n,i,o)},e})();function R3(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=hn.apply(void 0,[e].concat(r)),o="sc-global-"+C1(JSON.stringify(i)),s=new C3(i,o);function u(f){var d=CI(),g=RI(),h=C.useContext(uc),b=C.useRef(d.allocateGSInstance(o)).current;return d.server&&c(b,f,d,h,g),C.useLayoutEffect((function(){if(!d.server)return c(b,f,d,h,g),function(){return s.removeStyles(b,d)}}),[b,f,d,h,g]),null}function c(f,d,g,h,b){if(s.isStatic)s.renderStyles(f,K6,g,b);else{var v=Ji({},d,{theme:OI(d,h,u.defaultProps)});s.renderStyles(f,v,g,b)}}return oe.memo(u)}function Up(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=hn.apply(void 0,[e].concat(r)).join(""),o=C1(i);return new _I(o,i)}const _3={type:"dark",primary:{c10:"#2D2A3D",c20:"#343248",c30:"#3D3860",c40:"#3F3875",c50:"#4F4692",c60:"#6358B7",c70:"#8B80DB",c70a025:"rgba(139, 128, 219, 0.25)",c80:"#BBB0FF",c80a70:"rgba(187, 176, 255, 0.7)",c90:"#D4CCFF",c100:"#E6E0FF"},neutral:{c00:"#000000",c20:"#191919",c30:"#272727",c40:"#3C3C3C",c50:"#565656",c60:"#717070",c70:"#949494",c80:"#C3C3C3",c90:"#E1E1E1",c100:"#FFFFFF"},success:{c10:"#172913",c20:"#24421E",c30:"#325B2A",c40:"#407435",c50:"#5F9954",c60:"#6EB260",c70:"#7AC26C",c80:"#9DDA90",c90:"#C3EDBA",c100:"#ECFAE9"},warning:{c10:"#3E2909",c20:"#63420F",c30:"#885A14",c40:"#AE731A",c50:"#DD9323",c60:"#F8A325",c70:"#FFBD42",c80:"#FFD373",c90:"#FFE7AC",c100:"#FFF8E6"},error:{c10:"#371313",c20:"#581E1F",c30:"#7A292A",c40:"#9B3536",c50:"#C9595A",c50a025:"rgba(201, 89, 90, 0.25)",c50a07:"rgba(201, 89, 90, 0.7)",c60:"#E86164",c70a02:"rgba(245, 115, 117, 0.2)",c70:"#F57375",c80:"#FF888A",c90:"#FFB3B4",c100:"#FFEDED"},opacityDefault:{c05:"rgba(255, 255, 255, 0.05)",c10:"rgba(255, 255, 255, 0.1)",c20:"rgba(255, 255, 255, 0.2)",c30:"rgba(255, 255, 255, 0.3)",c40:"rgba(255, 255, 255, 0.4)",c50:"rgba(255, 255, 255, 0.5)",c60:"rgba(255, 255, 255, 0.6)",c70:"rgba(255, 255, 255, 0.7)",c80:"rgba(255, 255, 255, 0.8)",c90:"rgba(255, 255, 255, 0.9)"},opacityReverse:{c05:"rgba(0, 0, 0, 0.05)",c10:"rgba(0, 0, 0, 0.1)",c20:"rgba(0, 0, 0, 0.2)",c30:"rgba(0, 0, 0, 0.3)",c40:"rgba(0, 0, 0, 0.4)",c50:"rgba(0, 0, 0, 0.5)",c60:"rgba(0, 0, 0, 0.6)",c70:"rgba(0, 0, 0, 0.7)",c80:"rgba(0, 0, 0, 0.8)",c90:"rgba(0, 0, 0, 0.9)"},opacityPurple:{c05:"rgba(187, 176, 255, 0.05)",c10:"rgba(187, 176, 255, 0.1)",c20:"rgba(187, 176, 255, 0.2)",c30:"rgba(187, 176, 255, 0.3)",c40:"rgba(187, 176, 255, 0.4)",c50:"rgba(187, 176, 255, 0.5)",c60:"rgba(187, 176, 255, 0.6)",c70:"rgba(187, 176, 255, 0.7)",c80:"rgba(187, 176, 255, 0.8)",c90:"rgba(187, 176, 255, 0.9)"},constant:{overlay:"rgba(0, 0, 0, 0.7)",white:"#FFFFFF",purple:"#BBB0FF",black:"#000000"},background:{default:"#131214",main:"#131214",drawer:"#1D1C1F",card:"#1C1D1F"},effects:{dropShadow:"rgba(0, 0, 0, 0.48)",focus:"#6257B7"}},O3={type:"light",primary:{c10:"#F5F2FF",c20:"#F2EFFF",c30:"#E8E4FF",c40:"#D7CFFF",c50:"#CCC3FF",c60:"#BBB0FF",c70:"#AA9FF2",c70a025:"rgba(170, 159, 242, 0.25)",c80:"#7469C9",c80a70:"rgba(116, 105, 201, 0.7)",c90:"#5A4EAE",c100:"#403785"},neutral:{c00:"#FFFFFF",c20:"#FBFBFB",c30:"#F4F4F4",c40:"#E8E8E8",c50:"#D5D5D5",c60:"#C1C1C1",c70:"#767676",c80:"#6A6A6A",c90:"#4D4D4D",c100:"#000000"},success:{c10:"#ECFAE9",c20:"#C3EDBA",c30:"#9DDA90",c40:"#7AC26C",c50:"#5BA54C",c60:"#4D8C41",c70:"#407435",c80:"#325B2A",c90:"#24421E",c100:"#172913"},warning:{c10:"#FFF8E6",c20:"#FFE7AC",c30:"#FFD373",c40:"#FFBD42",c50:"#EFA22F",c60:"#D38B20",c70:"#AE731A",c80:"#885A14",c90:"#63420F",c100:"#3E2909"},error:{c10:"#FFEDED",c20:"#FFB3B4",c30:"#FF888A",c40:"#F36567",c50:"#DD4B4D",c50a025:"rgba(221, 75, 77, 0.25)",c50a07:"rgba(221, 75, 77, 0.7)",c60:"#BC4042",c70a02:"rgba(155, 53, 54, 0.2)",c70:"#9B3536",c80:"#7A292A",c90:"#581E1F",c100:"#371313"},opacityDefault:{c05:"rgba(0, 0, 0, 0.05)",c10:"rgba(0, 0, 0, 0.1)",c20:"rgba(0, 0, 0, 0.2)",c30:"rgba(0, 0, 0, 0.3)",c40:"rgba(0, 0, 0, 0.4)",c50:"rgba(0, 0, 0, 0.5)",c60:"rgba(0, 0, 0, 0.6)",c70:"rgba(0, 0, 0, 0.7)",c80:"rgba(0, 0, 0, 0.8)",c90:"rgba(0, 0, 0, 0.9)"},opacityReverse:{c05:"rgba(255, 255, 255, 0.05)",c10:"rgba(255, 255, 255, 0.1)",c20:"rgba(255, 255, 255, 0.2)",c30:"rgba(255, 255, 255, 0.3)",c40:"rgba(255, 255, 255, 0.4)",c50:"rgba(255, 255, 255, 0.5)",c60:"rgba(255, 255, 255, 0.6)",c70:"rgba(255, 255, 255, 0.7)",c80:"rgba(255, 255, 255, 0.8)",c90:"rgba(255, 255, 255, 0.9)"},opacityPurple:{c05:"rgba(116, 105, 201, 0.05)",c10:"rgba(116, 105, 201, 0.1)",c20:"rgba(116, 105, 201, 0.2)",c30:"rgba(116, 105, 201, 0.3)",c40:"rgba(116, 105, 201, 0.4)",c50:"rgba(116, 105, 201, 0.5)",c60:"rgba(116, 105, 201, 0.6)",c70:"rgba(116, 105, 201, 0.7)",c80:"rgba(116, 105, 201, 0.8)",c90:"rgba(116, 105, 201, 0.9)"},constant:{overlay:"rgba(0, 0, 0, 0.7)",white:"#FFFFFF",purple:"#BBB0FF",black:"#000000"},background:{default:"#F9F9F9",main:"#FFFFFF",drawer:"#FFFFFF",card:"#FFFFFF"},effects:{dropShadow:"rgba(0, 0, 0, 0.16)",focus:"#BBB0FF"}},Wy={dark:_3,light:O3},T3={sm:"640px",md:"768px",lg:"1024px",xl:"1280px",xxl:"1536px"},A3=[0,2,4,8,10,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76],At=[8,10,11,12,13,14,16,20,24,28,32,36];[At.micro,At.tiny,At.extraSmall,At.small,At.paragraph,At.body,At.large,At.h5,At.h4,At.h3,At.h2,At.h1]=At;At.largeLineHeight=At.large;At.bodyLineHeight=At.body;At.paragraphLineHeight=At.paragraph;At.subtitle=At.extraSmall;At.h1Inter=At.h1;At.h2Inter=At.h2;At.h3Inter=At.h3;At.h4Inter=At.h4;At.h5Inter=At.h5;const $3={extraLight:"100",light:"300",regular:"400",medium:"500",semiBold:"600",bold:"700",extraBold:"800"},I3=[0,4,8,12,16,20],P3=["0 4px 8px 0 rgba(0, 0, 0, 0.03)"],k3=[-1,0,1,9,10,90,100,900,1e3],qy={Inter:{ExtraLight:{weight:100,style:"normal"},Light:{weight:300,style:"normal"},Regular:{weight:400,style:"normal"},Medium:{weight:500,style:"normal"},SemiBold:{weight:600,style:"normal"},Bold:{weight:700,style:"normal"},ExtraBold:{weight:800,style:"normal"}},Alpha:{Medium:{weight:500,style:"normal"}}},Kd="0.33s",ju={outQuadratic:"cubic-bezier(0.25, 0.46, 0.45, 0.94)"},M3=(e=["all"],t=Kd,r=ju.outQuadratic)=>hn`
67
+ transition-property: ${e.join(",")};
68
+ transition-duration: ${t};
69
+ transition-timing-function: ${r};
70
+ `,D3=Up`
71
+ 0% {
72
+ opacity: 0;
73
+ }
74
+ 100% {
75
+ opacity: 1;
76
+ }
77
+ `,L3=Up`
78
+ 0% {
79
+ opacity: 1;
80
+ }
81
+ 100% {
82
+ opacity: 0;
83
+ }
84
+ `,F3=Up`
85
+ 0% {
86
+ opacity: 0;
87
+ transform: scaleX(0);
88
+ }
89
+ 100% {
90
+ opacity: 1;
91
+ transform: scaleX(1);
92
+ }
93
+ `,N3=Up`
94
+ 0% {
95
+ opacity: 0;
96
+ transform: translateY(66%);
97
+ }
98
+ 100% {
99
+ opacity: 1;
100
+ transform: translateY(0%);
101
+ }
102
+ `,j3={fadeIn:()=>hn`
103
+ ${D3} ${Kd} ${ju.outQuadratic} forwards
104
+ `,fadeOut:()=>hn`
105
+ ${L3} ${Kd} ${ju.outQuadratic} forwards
106
+ `,fadeInGrowX:()=>hn`
107
+ ${F3} 0.6s ${ju.outQuadratic} forwards
108
+ `,fadeInUp:()=>hn`
109
+ ${N3} ${Kd} ${ju.outQuadratic} forwards
110
+ `},z3={x:hn`
111
+ overflow-y: hidden;
112
+ overflow-x: scroll;
113
+ will-change: transform;
114
+ &:hover {
115
+ --track-color: ${e=>e.theme.colors.neutral.c30};
116
+ }
117
+ `,y:hn`
118
+ overflow-x: hidden;
119
+ overflow-y: scroll;
120
+ will-change: transform;
121
+ &:hover {
122
+ --track-color: ${e=>e.theme.colors.neutral.c30};
123
+ }
124
+ `,yAuto:hn`
125
+ overflow-x: hidden;
126
+ overflow-y: auto;
127
+ will-change: transform;
128
+ &:hover {
129
+ --track-color: ${e=>e.theme.colors.neutral.c30};
130
+ }
131
+ `,xy:hn`
132
+ overflow: scroll;
133
+ will-change: transform;
134
+ &:hover {
135
+ --track-color: ${e=>e.theme.colors.neutral.c30};
136
+ }
137
+ `,trackSize:12},mC={theme:"light",sizes:{drawer:{side:{big:{width:580},small:{width:420}},popin:{min:{height:158,width:462},max:{height:522,width:622}}},topBarHeight:58,sideBarWidth:230},radii:I3,fontFamilies:qy,fontSizes:At,fontWeights:$3,space:A3,shadows:P3,colors:Wy.light,animations:j3,overflow:z3,transition:M3,zIndexes:k3,breakpoints:T3};var Sv={exports:{}},wv,yC;function $I(){return yC||(yC=1,wv={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]}),wv}var xv={exports:{}},Ev,bC;function B3(){return bC||(bC=1,Ev=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")}),Ev}var SC;function V3(){if(SC)return xv.exports;SC=1;var e=B3(),t=Array.prototype.concat,r=Array.prototype.slice,n=xv.exports=function(o){for(var s=[],u=0,c=o.length;u<c;u++){var f=o[u];e(f)?s=t.call(s,r.call(f)):s.push(f)}return s};return n.wrap=function(i){return function(){return i(n(arguments))}},xv.exports}var wC;function U3(){if(wC)return Sv.exports;wC=1;var e=$I(),t=V3(),r=Object.hasOwnProperty,n=Object.create(null);for(var i in e)r.call(e,i)&&(n[e[i]]=i);var o=Sv.exports={to:{},get:{}};o.get=function(c){var f=c.substring(0,3).toLowerCase(),d,g;switch(f){case"hsl":d=o.get.hsl(c),g="hsl";break;case"hwb":d=o.get.hwb(c),g="hwb";break;default:d=o.get.rgb(c),g="rgb";break}return d?{model:g,value:d}:null},o.get.rgb=function(c){if(!c)return null;var f=/^#([a-f0-9]{3,4})$/i,d=/^#([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*)?\)$/,h=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,b=/^(\w+)$/,v=[0,0,0,1],S,y,E;if(S=c.match(d)){for(E=S[2],S=S[1],y=0;y<3;y++){var x=y*2;v[y]=parseInt(S.slice(x,x+2),16)}E&&(v[3]=parseInt(E,16)/255)}else if(S=c.match(f)){for(S=S[1],E=S[3],y=0;y<3;y++)v[y]=parseInt(S[y]+S[y],16);E&&(v[3]=parseInt(E+E,16)/255)}else if(S=c.match(g)){for(y=0;y<3;y++)v[y]=parseInt(S[y+1],0);S[4]&&(S[5]?v[3]=parseFloat(S[4])*.01:v[3]=parseFloat(S[4]))}else if(S=c.match(h)){for(y=0;y<3;y++)v[y]=Math.round(parseFloat(S[y+1])*2.55);S[4]&&(S[5]?v[3]=parseFloat(S[4])*.01:v[3]=parseFloat(S[4]))}else return(S=c.match(b))?S[1]==="transparent"?[0,0,0,0]:r.call(e,S[1])?(v=e[S[1]],v[3]=1,v):null:null;for(y=0;y<3;y++)v[y]=s(v[y],0,255);return v[3]=s(v[3],0,1),v},o.get.hsl=function(c){if(!c)return null;var f=/^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*)?\)$/,d=c.match(f);if(d){var g=parseFloat(d[4]),h=(parseFloat(d[1])%360+360)%360,b=s(parseFloat(d[2]),0,100),v=s(parseFloat(d[3]),0,100),S=s(isNaN(g)?1:g,0,1);return[h,b,v,S]}return null},o.get.hwb=function(c){if(!c)return null;var f=/^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*)?\)$/,d=c.match(f);if(d){var g=parseFloat(d[4]),h=(parseFloat(d[1])%360+360)%360,b=s(parseFloat(d[2]),0,100),v=s(parseFloat(d[3]),0,100),S=s(isNaN(g)?1:g,0,1);return[h,b,v,S]}return null},o.to.hex=function(){var c=t(arguments);return"#"+u(c[0])+u(c[1])+u(c[2])+(c[3]<1?u(Math.round(c[3]*255)):"")},o.to.rgb=function(){var c=t(arguments);return c.length<4||c[3]===1?"rgb("+Math.round(c[0])+", "+Math.round(c[1])+", "+Math.round(c[2])+")":"rgba("+Math.round(c[0])+", "+Math.round(c[1])+", "+Math.round(c[2])+", "+c[3]+")"},o.to.rgb.percent=function(){var c=t(arguments),f=Math.round(c[0]/255*100),d=Math.round(c[1]/255*100),g=Math.round(c[2]/255*100);return c.length<4||c[3]===1?"rgb("+f+"%, "+d+"%, "+g+"%)":"rgba("+f+"%, "+d+"%, "+g+"%, "+c[3]+")"},o.to.hsl=function(){var c=t(arguments);return c.length<4||c[3]===1?"hsl("+c[0]+", "+c[1]+"%, "+c[2]+"%)":"hsla("+c[0]+", "+c[1]+"%, "+c[2]+"%, "+c[3]+")"},o.to.hwb=function(){var c=t(arguments),f="";return c.length>=4&&c[3]!==1&&(f=", "+c[3]),"hwb("+c[0]+", "+c[1]+"%, "+c[2]+"%"+f+")"},o.to.keyword=function(c){return n[c.slice(0,3)]};function s(c,f,d){return Math.min(Math.max(f,c),d)}function u(c){var f=Math.round(c).toString(16).toUpperCase();return f.length<2?"0"+f:f}return Sv.exports}var Cv,xC;function II(){if(xC)return Cv;xC=1;const e=$I(),t={};for(const i of Object.keys(e))t[e[i]]=i;const r={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"]}};Cv=r;for(const i of Object.keys(r)){if(!("channels"in r[i]))throw new Error("missing channels property: "+i);if(!("labels"in r[i]))throw new Error("missing channel labels property: "+i);if(r[i].labels.length!==r[i].channels)throw new Error("channel and label counts mismatch: "+i);const{channels:o,labels:s}=r[i];delete r[i].channels,delete r[i].labels,Object.defineProperty(r[i],"channels",{value:o}),Object.defineProperty(r[i],"labels",{value:s})}r.rgb.hsl=function(i){const o=i[0]/255,s=i[1]/255,u=i[2]/255,c=Math.min(o,s,u),f=Math.max(o,s,u),d=f-c;let g,h;f===c?g=0:o===f?g=(s-u)/d:s===f?g=2+(u-o)/d:u===f&&(g=4+(o-s)/d),g=Math.min(g*60,360),g<0&&(g+=360);const b=(c+f)/2;return f===c?h=0:b<=.5?h=d/(f+c):h=d/(2-f-c),[g,h*100,b*100]},r.rgb.hsv=function(i){let o,s,u,c,f;const d=i[0]/255,g=i[1]/255,h=i[2]/255,b=Math.max(d,g,h),v=b-Math.min(d,g,h),S=function(y){return(b-y)/6/v+1/2};return v===0?(c=0,f=0):(f=v/b,o=S(d),s=S(g),u=S(h),d===b?c=u-s:g===b?c=1/3+o-u:h===b&&(c=2/3+s-o),c<0?c+=1:c>1&&(c-=1)),[c*360,f*100,b*100]},r.rgb.hwb=function(i){const o=i[0],s=i[1];let u=i[2];const c=r.rgb.hsl(i)[0],f=1/255*Math.min(o,Math.min(s,u));return u=1-1/255*Math.max(o,Math.max(s,u)),[c,f*100,u*100]},r.rgb.cmyk=function(i){const o=i[0]/255,s=i[1]/255,u=i[2]/255,c=Math.min(1-o,1-s,1-u),f=(1-o-c)/(1-c)||0,d=(1-s-c)/(1-c)||0,g=(1-u-c)/(1-c)||0;return[f*100,d*100,g*100,c*100]};function n(i,o){return(i[0]-o[0])**2+(i[1]-o[1])**2+(i[2]-o[2])**2}return r.rgb.keyword=function(i){const o=t[i];if(o)return o;let s=1/0,u;for(const c of Object.keys(e)){const f=e[c],d=n(i,f);d<s&&(s=d,u=c)}return u},r.keyword.rgb=function(i){return e[i]},r.rgb.xyz=function(i){let o=i[0]/255,s=i[1]/255,u=i[2]/255;o=o>.04045?((o+.055)/1.055)**2.4:o/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,u=u>.04045?((u+.055)/1.055)**2.4:u/12.92;const c=o*.4124+s*.3576+u*.1805,f=o*.2126+s*.7152+u*.0722,d=o*.0193+s*.1192+u*.9505;return[c*100,f*100,d*100]},r.rgb.lab=function(i){const o=r.rgb.xyz(i);let s=o[0],u=o[1],c=o[2];s/=95.047,u/=100,c/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,u=u>.008856?u**(1/3):7.787*u+16/116,c=c>.008856?c**(1/3):7.787*c+16/116;const f=116*u-16,d=500*(s-u),g=200*(u-c);return[f,d,g]},r.hsl.rgb=function(i){const o=i[0]/360,s=i[1]/100,u=i[2]/100;let c,f,d;if(s===0)return d=u*255,[d,d,d];u<.5?c=u*(1+s):c=u+s-u*s;const g=2*u-c,h=[0,0,0];for(let b=0;b<3;b++)f=o+1/3*-(b-1),f<0&&f++,f>1&&f--,6*f<1?d=g+(c-g)*6*f:2*f<1?d=c:3*f<2?d=g+(c-g)*(2/3-f)*6:d=g,h[b]=d*255;return h},r.hsl.hsv=function(i){const o=i[0];let s=i[1]/100,u=i[2]/100,c=s;const f=Math.max(u,.01);u*=2,s*=u<=1?u:2-u,c*=f<=1?f:2-f;const d=(u+s)/2,g=u===0?2*c/(f+c):2*s/(u+s);return[o,g*100,d*100]},r.hsv.rgb=function(i){const o=i[0]/60,s=i[1]/100;let u=i[2]/100;const c=Math.floor(o)%6,f=o-Math.floor(o),d=255*u*(1-s),g=255*u*(1-s*f),h=255*u*(1-s*(1-f));switch(u*=255,c){case 0:return[u,h,d];case 1:return[g,u,d];case 2:return[d,u,h];case 3:return[d,g,u];case 4:return[h,d,u];case 5:return[u,d,g]}},r.hsv.hsl=function(i){const o=i[0],s=i[1]/100,u=i[2]/100,c=Math.max(u,.01);let f,d;d=(2-s)*u;const g=(2-s)*c;return f=s*c,f/=g<=1?g:2-g,f=f||0,d/=2,[o,f*100,d*100]},r.hwb.rgb=function(i){const o=i[0]/360;let s=i[1]/100,u=i[2]/100;const c=s+u;let f;c>1&&(s/=c,u/=c);const d=Math.floor(6*o),g=1-u;f=6*o-d,(d&1)!==0&&(f=1-f);const h=s+f*(g-s);let b,v,S;switch(d){default:case 6:case 0:b=g,v=h,S=s;break;case 1:b=h,v=g,S=s;break;case 2:b=s,v=g,S=h;break;case 3:b=s,v=h,S=g;break;case 4:b=h,v=s,S=g;break;case 5:b=g,v=s,S=h;break}return[b*255,v*255,S*255]},r.cmyk.rgb=function(i){const o=i[0]/100,s=i[1]/100,u=i[2]/100,c=i[3]/100,f=1-Math.min(1,o*(1-c)+c),d=1-Math.min(1,s*(1-c)+c),g=1-Math.min(1,u*(1-c)+c);return[f*255,d*255,g*255]},r.xyz.rgb=function(i){const o=i[0]/100,s=i[1]/100,u=i[2]/100;let c,f,d;return c=o*3.2406+s*-1.5372+u*-.4986,f=o*-.9689+s*1.8758+u*.0415,d=o*.0557+s*-.204+u*1.057,c=c>.0031308?1.055*c**(1/2.4)-.055:c*12.92,f=f>.0031308?1.055*f**(1/2.4)-.055:f*12.92,d=d>.0031308?1.055*d**(1/2.4)-.055:d*12.92,c=Math.min(Math.max(0,c),1),f=Math.min(Math.max(0,f),1),d=Math.min(Math.max(0,d),1),[c*255,f*255,d*255]},r.xyz.lab=function(i){let o=i[0],s=i[1],u=i[2];o/=95.047,s/=100,u/=108.883,o=o>.008856?o**(1/3):7.787*o+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,u=u>.008856?u**(1/3):7.787*u+16/116;const c=116*s-16,f=500*(o-s),d=200*(s-u);return[c,f,d]},r.lab.xyz=function(i){const o=i[0],s=i[1],u=i[2];let c,f,d;f=(o+16)/116,c=s/500+f,d=f-u/200;const g=f**3,h=c**3,b=d**3;return f=g>.008856?g:(f-16/116)/7.787,c=h>.008856?h:(c-16/116)/7.787,d=b>.008856?b:(d-16/116)/7.787,c*=95.047,f*=100,d*=108.883,[c,f,d]},r.lab.lch=function(i){const o=i[0],s=i[1],u=i[2];let c;c=Math.atan2(u,s)*360/2/Math.PI,c<0&&(c+=360);const d=Math.sqrt(s*s+u*u);return[o,d,c]},r.lch.lab=function(i){const o=i[0],s=i[1],c=i[2]/360*2*Math.PI,f=s*Math.cos(c),d=s*Math.sin(c);return[o,f,d]},r.rgb.ansi16=function(i,o=null){const[s,u,c]=i;let f=o===null?r.rgb.hsv(i)[2]:o;if(f=Math.round(f/50),f===0)return 30;let d=30+(Math.round(c/255)<<2|Math.round(u/255)<<1|Math.round(s/255));return f===2&&(d+=60),d},r.hsv.ansi16=function(i){return r.rgb.ansi16(r.hsv.rgb(i),i[2])},r.rgb.ansi256=function(i){const o=i[0],s=i[1],u=i[2];return o===s&&s===u?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(s/255*5)+Math.round(u/255*5)},r.ansi16.rgb=function(i){let o=i%10;if(o===0||o===7)return i>50&&(o+=3.5),o=o/10.5*255,[o,o,o];const s=(~~(i>50)+1)*.5,u=(o&1)*s*255,c=(o>>1&1)*s*255,f=(o>>2&1)*s*255;return[u,c,f]},r.ansi256.rgb=function(i){if(i>=232){const f=(i-232)*10+8;return[f,f,f]}i-=16;let o;const s=Math.floor(i/36)/5*255,u=Math.floor((o=i%36)/6)/5*255,c=o%6/5*255;return[s,u,c]},r.rgb.hex=function(i){const s=(((Math.round(i[0])&255)<<16)+((Math.round(i[1])&255)<<8)+(Math.round(i[2])&255)).toString(16).toUpperCase();return"000000".substring(s.length)+s},r.hex.rgb=function(i){const o=i.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!o)return[0,0,0];let s=o[0];o[0].length===3&&(s=s.split("").map(g=>g+g).join(""));const u=parseInt(s,16),c=u>>16&255,f=u>>8&255,d=u&255;return[c,f,d]},r.rgb.hcg=function(i){const o=i[0]/255,s=i[1]/255,u=i[2]/255,c=Math.max(Math.max(o,s),u),f=Math.min(Math.min(o,s),u),d=c-f;let g,h;return d<1?g=f/(1-d):g=0,d<=0?h=0:c===o?h=(s-u)/d%6:c===s?h=2+(u-o)/d:h=4+(o-s)/d,h/=6,h%=1,[h*360,d*100,g*100]},r.hsl.hcg=function(i){const o=i[1]/100,s=i[2]/100,u=s<.5?2*o*s:2*o*(1-s);let c=0;return u<1&&(c=(s-.5*u)/(1-u)),[i[0],u*100,c*100]},r.hsv.hcg=function(i){const o=i[1]/100,s=i[2]/100,u=o*s;let c=0;return u<1&&(c=(s-u)/(1-u)),[i[0],u*100,c*100]},r.hcg.rgb=function(i){const o=i[0]/360,s=i[1]/100,u=i[2]/100;if(s===0)return[u*255,u*255,u*255];const c=[0,0,0],f=o%1*6,d=f%1,g=1-d;let h=0;switch(Math.floor(f)){case 0:c[0]=1,c[1]=d,c[2]=0;break;case 1:c[0]=g,c[1]=1,c[2]=0;break;case 2:c[0]=0,c[1]=1,c[2]=d;break;case 3:c[0]=0,c[1]=g,c[2]=1;break;case 4:c[0]=d,c[1]=0,c[2]=1;break;default:c[0]=1,c[1]=0,c[2]=g}return h=(1-s)*u,[(s*c[0]+h)*255,(s*c[1]+h)*255,(s*c[2]+h)*255]},r.hcg.hsv=function(i){const o=i[1]/100,s=i[2]/100,u=o+s*(1-o);let c=0;return u>0&&(c=o/u),[i[0],c*100,u*100]},r.hcg.hsl=function(i){const o=i[1]/100,u=i[2]/100*(1-o)+.5*o;let c=0;return u>0&&u<.5?c=o/(2*u):u>=.5&&u<1&&(c=o/(2*(1-u))),[i[0],c*100,u*100]},r.hcg.hwb=function(i){const o=i[1]/100,s=i[2]/100,u=o+s*(1-o);return[i[0],(u-o)*100,(1-u)*100]},r.hwb.hcg=function(i){const o=i[1]/100,u=1-i[2]/100,c=u-o;let f=0;return c<1&&(f=(u-c)/(1-c)),[i[0],c*100,f*100]},r.apple.rgb=function(i){return[i[0]/65535*255,i[1]/65535*255,i[2]/65535*255]},r.rgb.apple=function(i){return[i[0]/255*65535,i[1]/255*65535,i[2]/255*65535]},r.gray.rgb=function(i){return[i[0]/100*255,i[0]/100*255,i[0]/100*255]},r.gray.hsl=function(i){return[0,0,i[0]]},r.gray.hsv=r.gray.hsl,r.gray.hwb=function(i){return[0,100,i[0]]},r.gray.cmyk=function(i){return[0,0,0,i[0]]},r.gray.lab=function(i){return[i[0],0,0]},r.gray.hex=function(i){const o=Math.round(i[0]/100*255)&255,u=((o<<16)+(o<<8)+o).toString(16).toUpperCase();return"000000".substring(u.length)+u},r.rgb.gray=function(i){return[(i[0]+i[1]+i[2])/3/255*100]},Cv}var Rv,EC;function H3(){if(EC)return Rv;EC=1;const e=II();function t(){const o={},s=Object.keys(e);for(let u=s.length,c=0;c<u;c++)o[s[c]]={distance:-1,parent:null};return o}function r(o){const s=t(),u=[o];for(s[o].distance=0;u.length;){const c=u.pop(),f=Object.keys(e[c]);for(let d=f.length,g=0;g<d;g++){const h=f[g],b=s[h];b.distance===-1&&(b.distance=s[c].distance+1,b.parent=c,u.unshift(h))}}return s}function n(o,s){return function(u){return s(o(u))}}function i(o,s){const u=[s[o].parent,o];let c=e[s[o].parent][o],f=s[o].parent;for(;s[f].parent;)u.unshift(s[f].parent),c=n(e[s[f].parent][f],c),f=s[f].parent;return c.conversion=u,c}return Rv=function(o){const s=r(o),u={},c=Object.keys(s);for(let f=c.length,d=0;d<f;d++){const g=c[d];s[g].parent!==null&&(u[g]=i(g,s))}return u},Rv}var _v,CC;function W3(){if(CC)return _v;CC=1;const e=II(),t=H3(),r={},n=Object.keys(e);function i(s){const u=function(...c){const f=c[0];return f==null?f:(f.length>1&&(c=f),s(c))};return"conversion"in s&&(u.conversion=s.conversion),u}function o(s){const u=function(...c){const f=c[0];if(f==null)return f;f.length>1&&(c=f);const d=s(c);if(typeof d=="object")for(let g=d.length,h=0;h<g;h++)d[h]=Math.round(d[h]);return d};return"conversion"in s&&(u.conversion=s.conversion),u}return n.forEach(s=>{r[s]={},Object.defineProperty(r[s],"channels",{value:e[s].channels}),Object.defineProperty(r[s],"labels",{value:e[s].labels});const u=t(s);Object.keys(u).forEach(f=>{const d=u[f];r[s][f]=o(d),r[s][f].raw=i(d)})}),_v=r,_v}var Ov,RC;function q3(){if(RC)return Ov;RC=1;const e=U3(),t=W3(),r=["keyword","gray","hex"],n={};for(const h of Object.keys(t))n[[...t[h].labels].sort().join("")]=h;const i={};function o(h,b){if(!(this instanceof o))return new o(h,b);if(b&&b in r&&(b=null),b&&!(b in t))throw new Error("Unknown model: "+b);let v,S;if(h==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(h instanceof o)this.model=h.model,this.color=[...h.color],this.valpha=h.valpha;else if(typeof h=="string"){const y=e.get(h);if(y===null)throw new Error("Unable to parse color from string: "+h);this.model=y.model,S=t[this.model].channels,this.color=y.value.slice(0,S),this.valpha=typeof y.value[S]=="number"?y.value[S]:1}else if(h.length>0){this.model=b||"rgb",S=t[this.model].channels;const y=Array.prototype.slice.call(h,0,S);this.color=g(y,S),this.valpha=typeof h[S]=="number"?h[S]:1}else if(typeof h=="number")this.model="rgb",this.color=[h>>16&255,h>>8&255,h&255],this.valpha=1;else{this.valpha=1;const y=Object.keys(h);"alpha"in h&&(y.splice(y.indexOf("alpha"),1),this.valpha=typeof h.alpha=="number"?h.alpha:0);const E=y.sort().join("");if(!(E in n))throw new Error("Unable to parse color from object: "+JSON.stringify(h));this.model=n[E];const{labels:x}=t[this.model],T=[];for(v=0;v<x.length;v++)T.push(h[x[v]]);this.color=g(T)}if(i[this.model])for(S=t[this.model].channels,v=0;v<S;v++){const y=i[this.model][v];y&&(this.color[v]=y(this.color[v]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}o.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(h){let b=this.model in e.to?this:this.rgb();b=b.round(typeof h=="number"?h:1);const v=b.valpha===1?b.color:[...b.color,this.valpha];return e.to[b.model](v)},percentString(h){const b=this.rgb().round(typeof h=="number"?h:1),v=b.valpha===1?b.color:[...b.color,this.valpha];return e.to.rgb.percent(v)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const h={},{channels:b}=t[this.model],{labels:v}=t[this.model];for(let S=0;S<b;S++)h[v[S]]=this.color[S];return this.valpha!==1&&(h.alpha=this.valpha),h},unitArray(){const h=this.rgb().color;return h[0]/=255,h[1]/=255,h[2]/=255,this.valpha!==1&&h.push(this.valpha),h},unitObject(){const h=this.rgb().object();return h.r/=255,h.g/=255,h.b/=255,this.valpha!==1&&(h.alpha=this.valpha),h},round(h){return h=Math.max(h||0,0),new o([...this.color.map(u(h)),this.valpha],this.model)},alpha(h){return h!==void 0?new o([...this.color,Math.max(0,Math.min(1,h))],this.model):this.valpha},red:c("rgb",0,f(255)),green:c("rgb",1,f(255)),blue:c("rgb",2,f(255)),hue:c(["hsl","hsv","hsl","hwb","hcg"],0,h=>(h%360+360)%360),saturationl:c("hsl",1,f(100)),lightness:c("hsl",2,f(100)),saturationv:c("hsv",1,f(100)),value:c("hsv",2,f(100)),chroma:c("hcg",1,f(100)),gray:c("hcg",2,f(100)),white:c("hwb",1,f(100)),wblack:c("hwb",2,f(100)),cyan:c("cmyk",0,f(100)),magenta:c("cmyk",1,f(100)),yellow:c("cmyk",2,f(100)),black:c("cmyk",3,f(100)),x:c("xyz",0,f(95.047)),y:c("xyz",1,f(100)),z:c("xyz",2,f(108.833)),l:c("lab",0,f(100)),a:c("lab",1),b:c("lab",2),keyword(h){return h!==void 0?new o(h):t[this.model].keyword(this.color)},hex(h){return h!==void 0?new o(h):e.to.hex(this.rgb().round().color)},hexa(h){if(h!==void 0)return new o(h);const b=this.rgb().round().color;let v=Math.round(this.valpha*255).toString(16).toUpperCase();return v.length===1&&(v="0"+v),e.to.hex(b)+v},rgbNumber(){const h=this.rgb().color;return(h[0]&255)<<16|(h[1]&255)<<8|h[2]&255},luminosity(){const h=this.rgb().color,b=[];for(const[v,S]of h.entries()){const y=S/255;b[v]=y<=.04045?y/12.92:((y+.055)/1.055)**2.4}return .2126*b[0]+.7152*b[1]+.0722*b[2]},contrast(h){const b=this.luminosity(),v=h.luminosity();return b>v?(b+.05)/(v+.05):(v+.05)/(b+.05)},level(h){const b=this.contrast(h);return b>=7?"AAA":b>=4.5?"AA":""},isDark(){const h=this.rgb().color;return(h[0]*2126+h[1]*7152+h[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const h=this.rgb();for(let b=0;b<3;b++)h.color[b]=255-h.color[b];return h},lighten(h){const b=this.hsl();return b.color[2]+=b.color[2]*h,b},darken(h){const b=this.hsl();return b.color[2]-=b.color[2]*h,b},saturate(h){const b=this.hsl();return b.color[1]+=b.color[1]*h,b},desaturate(h){const b=this.hsl();return b.color[1]-=b.color[1]*h,b},whiten(h){const b=this.hwb();return b.color[1]+=b.color[1]*h,b},blacken(h){const b=this.hwb();return b.color[2]+=b.color[2]*h,b},grayscale(){const h=this.rgb().color,b=h[0]*.3+h[1]*.59+h[2]*.11;return o.rgb(b,b,b)},fade(h){return this.alpha(this.valpha-this.valpha*h)},opaquer(h){return this.alpha(this.valpha+this.valpha*h)},rotate(h){const b=this.hsl();let v=b.color[0];return v=(v+h)%360,v=v<0?360+v:v,b.color[0]=v,b},mix(h,b){if(!h||!h.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof h);const v=h.rgb(),S=this.rgb(),y=b===void 0?.5:b,E=2*y-1,x=v.alpha()-S.alpha(),T=((E*x===-1?E:(E+x)/(1+E*x))+1)/2,A=1-T;return o.rgb(T*v.red()+A*S.red(),T*v.green()+A*S.green(),T*v.blue()+A*S.blue(),v.alpha()*y+S.alpha()*(1-y))}};for(const h of Object.keys(t)){if(r.includes(h))continue;const{channels:b}=t[h];o.prototype[h]=function(...v){return this.model===h?new o(this):v.length>0?new o(v,h):new o([...d(t[this.model][h].raw(this.color)),this.valpha],h)},o[h]=function(...v){let S=v[0];return typeof S=="number"&&(S=g(v,b)),new o(S,h)}}function s(h,b){return Number(h.toFixed(b))}function u(h){return function(b){return s(b,h)}}function c(h,b,v){h=Array.isArray(h)?h:[h];for(const S of h)(i[S]||(i[S]=[]))[b]=v;return h=h[0],function(S){let y;return S!==void 0?(v&&(S=v(S)),y=this[h](),y.color[b]=S,y):(y=this[h]().color[b],v&&(y=v(y)),y)}}function f(h){return function(b){return Math.max(0,Math.min(h,b))}}function d(h){return Array.isArray(h)?h:[h]}function g(h,b){for(let v=0;v<b;v++)typeof h[v]!="number"&&(h[v]=0);return h}return Ov=o,Ov}var G3=q3();const X3=Mr(G3),K3=(e,t)=>X3(e).alpha(t).rgb().toString(),Y3=e=>{const[t,r="Regular"]=e.split("|"),{style:n,weight:i}=qy[t][r],o=qy[t].fallback??"Arial";return{fontFamily:`${t}, ${o}`,fontWeight:i,fontStyle:n}},J3=hn`
138
+ .tippy-box[data-animation="fade"][data-state="hidden"] {
139
+ opacity: 0;
140
+ }
141
+
142
+ [data-tippy-root] {
143
+ max-width: calc(100vw - 10px);
144
+ }
145
+
146
+ .tippy-box {
147
+ position: relative;
148
+ background-color: ${e=>e.theme.colors.neutral.c100};
149
+ color: ${e=>e.theme.colors.neutral.c00};
150
+ border-radius: 4px;
151
+ font-size: 14px;
152
+ line-height: 1.4;
153
+ outline: 0;
154
+ transition-property: transform, visibility, opacity;
155
+ }
156
+
157
+ .tippy-arrow {
158
+ width: 16px;
159
+ height: 16px;
160
+ color: ${e=>e.theme.colors.neutral.c100};
161
+ }
162
+
163
+ .tippy-arrow:before {
164
+ content: "";
165
+ position: absolute;
166
+ border-color: transparent;
167
+ border-style: solid;
168
+ }
169
+
170
+ .tippy-box[data-placement^="top"] > .tippy-arrow {
171
+ bottom: 0;
172
+ }
173
+
174
+ .tippy-box[data-placement^="top"] > .tippy-arrow:before {
175
+ bottom: -4px;
176
+ left: 0;
177
+ border-width: 10px 10px 0;
178
+ border-top-color: initial;
179
+ transform-origin: center top;
180
+ }
181
+
182
+ .tippy-box[data-placement^="bottom"] > .tippy-arrow {
183
+ top: 0;
184
+ }
185
+
186
+ .tippy-box[data-placement^="bottom"] > .tippy-arrow:before {
187
+ top: -4px;
188
+ left: 0;
189
+ border-width: 0 10px 10px;
190
+ border-bottom-color: initial;
191
+ transform-origin: center bottom;
192
+ }
193
+
194
+ .tippy-box[data-placement^="left"] > .tippy-arrow {
195
+ right: 0;
196
+ }
197
+
198
+ .tippy-box[data-placement^="left"] > .tippy-arrow:before {
199
+ border-width: 10px 0 10px 10px;
200
+ border-left-color: initial;
201
+ right: -4px;
202
+ transform-origin: center left;
203
+ }
204
+
205
+ .tippy-box[data-placement^="right"] > .tippy-arrow {
206
+ left: 0;
207
+ }
208
+
209
+ .tippy-box[data-placement^="right"] > .tippy-arrow:before {
210
+ left: -4px;
211
+ border-width: 10px 10px 10px 0;
212
+ border-right-color: initial;
213
+ transform-origin: center right;
214
+ }
215
+
216
+ .tippy-box[data-inertia][data-state="visible"] {
217
+ transition-timing-function: cubic-bezier(0.54, 1.5, 0.38, 1.11);
218
+ }
219
+
220
+ .tippy-content {
221
+ position: relative;
222
+ padding: 8px 10px;
223
+ z-index: 1;
224
+ }
225
+ `,rs=e=>t=>{const r=t.fontsPath??"assets/fonts",n=t.fontMappings&&t.fontMappings(e)||`${e}.woff2`;return`url("${r}/${n}") format("woff2")`},Q3=hn`
226
+ @font-face {
227
+ font-family: "Inter";
228
+ src: ${rs("Inter-ExtraLight-BETA")};
229
+ font-weight: 100;
230
+ font-style: normal;
231
+ }
232
+
233
+ @font-face {
234
+ font-family: "Inter";
235
+ src: ${rs("Inter-Light-BETA")};
236
+ font-weight: 300;
237
+ font-style: normal;
238
+ }
239
+
240
+ @font-face {
241
+ font-family: "Inter";
242
+ src: ${rs("Inter-Regular")};
243
+ font-weight: 400;
244
+ font-style: normal;
245
+ }
246
+
247
+ @font-face {
248
+ font-family: "Inter";
249
+ src: ${rs("Inter-Medium")};
250
+ font-weight: 500;
251
+ font-style: normal;
252
+ }
253
+
254
+ @font-face {
255
+ font-family: "Inter";
256
+ src: ${rs("Inter-SemiBold")};
257
+ font-weight: 600;
258
+ font-style: normal;
259
+ }
260
+
261
+ @font-face {
262
+ font-family: "Inter";
263
+ src: ${rs("Inter-ExtraBold")};
264
+ font-weight: 900;
265
+ font-style: normal;
266
+ }
267
+
268
+ @font-face {
269
+ font-family: "Alpha";
270
+ src: ${rs("HMAlphaMono-Medium")};
271
+ font-weight: 500;
272
+ font-style: normal;
273
+ }
274
+ `,Z3={h1:{fontFamily:"Alpha, Inter, Sans",fontWeight:500,"text-transform":"uppercase"},h1Inter:{fontFamily:"Inter, Sans",fontWeight:500,"text-transform":"uppercase"},h2:{fontFamily:"Alpha, Inter, Sans",fontWeight:500,"text-transform":"uppercase"},h2Inter:{fontFamily:"Inter, Sans",fontWeight:500,"text-transform":"uppercase"},h3:{fontFamily:"Alpha, Inter, Sans",fontWeight:500,"text-transform":"uppercase"},h3Inter:{fontFamily:"Inter, Sans",fontWeight:500},h4:{fontFamily:"Alpha, Inter, Sans",fontWeight:500,"text-transform":"uppercase"},h4Inter:{fontFamily:"Inter, Sans",fontWeight:600},h5:{fontFamily:"Alpha, Inter, Sans",fontWeight:500,"text-transform":"uppercase"},h5Inter:{fontFamily:"Inter, Sans",fontWeight:500},large:{fontFamily:"Inter, Sans"},largeLineHeight:{fontFamily:"Inter, Sans",lineHeight:1.7},body:{fontFamily:"Inter, Sans"},bodyLineHeight:{fontFamily:"Inter, Sans",lineHeight:1.7},paragraph:{fontFamily:"Inter, Sans"},paragraphLineHeight:{fontFamily:"Inter, Sans",lineHeight:1.7},small:{fontFamily:"Inter, Sans"},extraSmall:{fontFamily:"Inter, Sans"},tiny:{fontFamily:"Inter, Sans"},micro:{fontFamily:"Inter, Sans"},subtitle:{fontFamily:"Inter, Sans",fontWeight:600,"text-transform":"uppercase"}},e4=R3`
275
+ html {
276
+ box-sizing: border-box;
277
+ }
278
+
279
+ body {
280
+ font-family: Inter, sans-serif;
281
+ font-size: 100%;
282
+ }
283
+
284
+ * {
285
+ margin: 0;
286
+ padding: 0;
287
+ font: inherit;
288
+ color: inherit;
289
+ user-select: inherit;
290
+ cursor: inherit;
291
+ }
292
+
293
+ ::selection {
294
+ background: ${e=>K3(e.theme.colors.primary.c100,.1)};
295
+ }
296
+
297
+ --track-color: rgba(0,0,0,0);
298
+
299
+ ${e=>typeof e.fontsPath=="string"?Q3:""}
300
+
301
+ ${J3}
302
+
303
+ ::-webkit-scrollbar {
304
+ width: 12px;
305
+ height: 12px;
306
+ background-color: rgba(0,0,0,0);
307
+ }
308
+ ::-webkit-scrollbar-button {
309
+ opacity: 0;
310
+ height: 0;
311
+ width: 0;
312
+ }
313
+ ::-webkit-scrollbar-track {
314
+ background-color: rgba(0,0,0,0);
315
+ }
316
+ ::-webkit-scrollbar-thumb {
317
+ box-shadow: inset 0 0 0 12px var(--track-color);
318
+ border: 2px solid rgba(0,0,0,0);
319
+ border-radius: 12px;
320
+ }
321
+ ::-webkit-scrollbar-corner {
322
+ opacity: 0;
323
+ }
324
+ `,t4=({children:e,fontsPath:t,fontMappings:r,selectedPalette:n="light"})=>{const i=C.useMemo(()=>({...mC,colors:{...mC.colors,...Wy[n],palette:Wy[n]},theme:n}),[n]);return oe.createElement(E3,{theme:i},oe.createElement(e4,{fontsPath:t,fontMappings:r}),e)},r4=xe.div`
325
+ display: flex;
326
+ flex-direction: row;
327
+ align-items: center;
328
+ justify-content: flex-end;
329
+ padding: 6px 12px;
330
+ background: #f0f0f0;
331
+ border-top: 1px solid #ddd;
332
+ flex-shrink: 0;
333
+ `,n4=xe.button`
334
+ padding: 4px 10px;
335
+ border: 1px solid ${({$isOpen:e})=>e?"#ff9800":"#bbb"};
336
+ border-radius: 4px;
337
+ background: ${({$isOpen:e})=>e?"#fff3e0":"#fafafa"};
338
+ color: ${({$isOpen:e})=>e?"#e65100":"#666"};
339
+ font-size: 12px;
340
+ cursor: pointer;
341
+ transition: all 0.15s ease;
342
+
343
+ &:hover {
344
+ background: ${({$isOpen:e})=>e?"#ffe0b2":"#f0f0f0"};
345
+ border-color: ${({$isOpen:e})=>e?"#ff9800":"#999"};
346
+ }
347
+ `,i4=({isDebugOpen:e,onToggleDebug:t})=>U.jsx(r4,{children:U.jsx(n4,{$isOpen:e,onClick:t,children:e?"Close Debug Panel":"Debug DevTools"})});var pl=(e=>(e.logs="logs",e.inspector="inspector",e.splitHorizontal="splitHorizontal",e.splitVertical="splitVertical",e))(pl||{});const o4=xe.div`
348
+ display: flex;
349
+ flex-direction: row;
350
+ align-items: center;
351
+ gap: 8px;
352
+ padding: 8px 12px;
353
+ background: #f8f8f8;
354
+ border-bottom: 1px solid #e0e0e0;
355
+ flex-shrink: 0;
356
+ `,_C=xe.div`
357
+ display: flex;
358
+ flex-direction: row;
359
+ align-items: center;
360
+ gap: 4px;
361
+ `,a4=xe.div`
362
+ width: 1px;
363
+ height: 24px;
364
+ background: #ddd;
365
+ margin: 0 8px;
366
+ `,OC=xe.button`
367
+ padding: 6px 12px;
368
+ border: 1px solid ${({$isActive:e})=>e?"#2196F3":"#ddd"};
369
+ border-radius: 4px;
370
+ background: ${({$isActive:e})=>e?"#e3f2fd":"white"};
371
+ color: ${({$isActive:e})=>e?"#1976d2":"#333"};
372
+ font-weight: ${({$isActive:e})=>e?"600":"normal"};
373
+ font-size: 13px;
374
+ cursor: pointer;
375
+ opacity: ${({$isConnected:e})=>e===!1?.5:1};
376
+ transition: all 0.15s ease;
377
+
378
+ &:hover {
379
+ background: ${({$isActive:e})=>e?"#e3f2fd":"#f5f5f5"};
380
+ border-color: ${({$isActive:e})=>e?"#2196F3":"#bbb"};
381
+ }
382
+ `,TC=xe.button`
383
+ padding: 6px 8px;
384
+ border: 1px solid ${({$isActive:e})=>e?"#2196F3":"#ddd"};
385
+ border-radius: 4px;
386
+ background: ${({$isActive:e})=>e?"#e3f2fd":"white"};
387
+ color: ${({$isActive:e})=>e?"#1976d2":"#666"};
388
+ cursor: pointer;
389
+ display: flex;
390
+ align-items: center;
391
+ justify-content: center;
392
+ transition: all 0.15s ease;
393
+
394
+ &:hover {
395
+ background: ${({$isActive:e})=>e?"#e3f2fd":"#f5f5f5"};
396
+ border-color: ${({$isActive:e})=>e?"#2196F3":"#bbb"};
397
+ }
398
+ `,AC=xe.span`
399
+ display: inline-block;
400
+ width: 8px;
401
+ height: 8px;
402
+ border-radius: 50%;
403
+ background: ${({$connected:e})=>e?"#4CAF50":"#ff9800"};
404
+ margin-right: 6px;
405
+ `,s4=xe.span`
406
+ font-size: 12px;
407
+ color: #666;
408
+ margin-right: 4px;
409
+ `,l4=()=>U.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[U.jsx("rect",{x:"2",y:"2",width:"12",height:"5",rx:"1",opacity:"0.6"}),U.jsx("rect",{x:"2",y:"9",width:"12",height:"5",rx:"1"})]}),u4=()=>U.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[U.jsx("rect",{x:"2",y:"2",width:"5",height:"12",rx:"1",opacity:"0.6"}),U.jsx("rect",{x:"9",y:"2",width:"5",height:"12",rx:"1"})]}),c4=({currentScreen:e,onScreenChange:t,isLoggerConnected:r,isInspectorConnected:n})=>U.jsxs(o4,{children:[U.jsxs(_C,{children:[U.jsxs(OC,{$isActive:e==="logs",$isConnected:r,onClick:()=>t("logs"),children:[U.jsx(AC,{$connected:r}),"Logger"]}),U.jsxs(OC,{$isActive:e==="inspector",$isConnected:n,onClick:()=>t("inspector"),children:[U.jsx(AC,{$connected:n}),"Inspector"]})]}),U.jsx(a4,{}),U.jsxs(_C,{children:[U.jsx(s4,{children:"Split:"}),U.jsx(TC,{$isActive:e==="splitHorizontal",onClick:()=>t("splitHorizontal"),title:"Split Horizontal (top/bottom)",children:U.jsx(l4,{})}),U.jsx(TC,{$isActive:e==="splitVertical",onClick:()=>t("splitVertical"),title:"Split Vertical (left/right)",children:U.jsx(u4,{})})]})]}),f4=({sentMessages:e,receivedMessages:t,sendMessage:r})=>{const[n,i]=C.useState(""),[o,s]=C.useState(""),u=C.useMemo(()=>[...new Set(e.map(g=>g.type))],[e]),c=C.useMemo(()=>[...new Set(t.map(g=>g.type))],[t]),f=C.useMemo(()=>n?e.filter(g=>g.type===n):e,[e,n]),d=C.useMemo(()=>o?t.filter(g=>g.type===o):t,[t,o]);return U.jsxs("div",{style:{display:"flex",height:"100vh"},children:[U.jsxs("div",{style:{flex:1,borderRight:"1px solid #ddd",padding:"16px",boxSizing:"border-box",display:"flex",flexDirection:"column"},children:[U.jsx("h2",{children:"sent messages"}),U.jsx(d4,{onSend:r}),U.jsx($C,{types:u,value:n,onChange:i,style:{marginTop:16}}),U.jsx("div",{style:{marginTop:16,flex:1,overflowY:"auto"},children:U.jsx("ul",{style:{margin:0,padding:0,listStyle:"none"},children:f.map((g,h)=>U.jsxs("li",{style:{marginBottom:4},children:[U.jsxs("strong",{children:[g.type,":"]})," ",g.payload]},h))})})]}),U.jsxs("div",{style:{flex:1,padding:"16px",boxSizing:"border-box",display:"flex",flexDirection:"column"},children:[U.jsx("h2",{children:"received messages"}),U.jsx($C,{types:c,value:o,onChange:s}),U.jsx("div",{style:{marginTop:16,flex:1,overflowY:"auto"},children:U.jsx("ul",{style:{margin:0,padding:0,listStyle:"none"},children:d.map((g,h)=>U.jsxs("li",{style:{marginBottom:4},children:[U.jsxs("strong",{children:[g.type,":"]})," ",g.payload]},h))})})]})]})},$C=({types:e,value:t,onChange:r,style:n})=>U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,...n},children:[U.jsx("label",{children:"Filter by type:"}),U.jsxs("select",{value:t,onChange:i=>r(i.target.value),children:[U.jsxs("option",{value:"",children:["All (",e.length," types)"]}),e.map(i=>U.jsx("option",{value:i,children:i},i))]}),t&&U.jsx("button",{onClick:()=>r(""),style:{padding:"2px 8px"},children:"Clear"})]}),d4=({onSend:e})=>{const[t,r]=C.useState(""),[n,i]=C.useState("");return U.jsxs("div",{style:{display:"flex",gap:"8px",alignItems:"center"},children:[U.jsx("input",{type:"text",value:t,placeholder:"type",onChange:o=>r(o.target.value),style:{flex:1}}),U.jsx("input",{type:"text",value:n,placeholder:"payload",onChange:o=>i(o.target.value),style:{flex:2}}),U.jsx("button",{onClick:()=>{t&&n&&(e(t,n),r(""),i(""))},children:"sendMessage"})]})},p4=xe.div`
410
+ position: fixed;
411
+ top: 0;
412
+ left: 0;
413
+ right: 0;
414
+ bottom: 0;
415
+ background: rgba(0, 0, 0, 0.3);
416
+ opacity: ${({$isOpen:e})=>e?1:0};
417
+ visibility: ${({$isOpen:e})=>e?"visible":"hidden"};
418
+ transition:
419
+ opacity 0.2s ease,
420
+ visibility 0.2s ease;
421
+ z-index: 100;
422
+ `,h4=xe.div`
423
+ position: fixed;
424
+ bottom: 0;
425
+ left: 0;
426
+ right: 0;
427
+ height: 50%;
428
+ background: white;
429
+ border-top: 2px solid #ddd;
430
+ transform: translateY(${({$isOpen:e})=>e?"0":"100%"});
431
+ transition: transform 0.25s ease;
432
+ z-index: 101;
433
+ display: flex;
434
+ flex-direction: column;
435
+ `,g4=xe.div`
436
+ display: flex;
437
+ flex-direction: row;
438
+ align-items: center;
439
+ justify-content: space-between;
440
+ padding: 8px 16px;
441
+ background: #f5f5f5;
442
+ border-bottom: 1px solid #ddd;
443
+ flex-shrink: 0;
444
+ `,v4=xe.h4`
445
+ margin: 0;
446
+ font-size: 14px;
447
+ font-weight: 600;
448
+ color: #333;
449
+ `,m4=xe.button`
450
+ padding: 4px 8px;
451
+ border: none;
452
+ border-radius: 4px;
453
+ background: transparent;
454
+ color: #666;
455
+ font-size: 18px;
456
+ cursor: pointer;
457
+ transition: background 0.15s ease;
458
+
459
+ &:hover {
460
+ background: #e0e0e0;
461
+ }
462
+ `,y4=xe.div`
463
+ flex: 1;
464
+ overflow: hidden;
465
+ `,b4=({isOpen:e,onClose:t,sentMessages:r,receivedMessages:n,sendMessage:i})=>U.jsxs(U.Fragment,{children:[U.jsx(p4,{$isOpen:e,onClick:t}),U.jsxs(h4,{$isOpen:e,children:[U.jsxs(g4,{children:[U.jsx(v4,{children:"Debug DevTools"}),U.jsx(m4,{onClick:t,children:"×"})]}),U.jsx(y4,{children:U.jsx(f4,{sentMessages:r,receivedMessages:n,sendMessage:i})})]})]});function Kt(e,t="Assertion error"){if(!e)throw Error(t)}function Tl({group:e}){const{orientation:t,panels:r}=e;return r.reduce((n,i)=>(n+=t==="horizontal"?i.element.offsetWidth:i.element.offsetHeight,n),0)}function Gy(e,t){return t.sort(e==="horizontal"?S4:w4)}function S4(e,t){const r=e.element.offsetLeft-t.element.offsetLeft;return r!==0?r:e.element.offsetWidth-t.element.offsetWidth}function w4(e,t){const r=e.element.offsetTop-t.element.offsetTop;return r!==0?r:e.element.offsetHeight-t.element.offsetHeight}function PI(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function kI(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function x4({orientation:e,rects:t,targetRect:r}){const n={x:r.x+r.width/2,y:r.y+r.height/2};let i,o=Number.MAX_VALUE;for(const s of t){const{x:u,y:c}=kI(n,s),f=e==="horizontal"?u:c;f<o&&(o=f,i=s)}return Kt(i,"No rect found"),i}function MI(e){const{element:t,orientation:r,panels:n,separators:i}=e,o=Gy(r,Array.from(t.children).filter(PI).map(d=>({element:d}))).map(({element:d})=>d),s=[];let u=!1,c,f=[];for(const d of o)if(d.hasAttribute("data-panel")){const g=n.find(h=>h.element===d);if(g){if(c){const h=c.element.getBoundingClientRect(),b=d.getBoundingClientRect();let v;if(u){const S=r==="horizontal"?new DOMRect(h.right,h.top,0,h.height):new DOMRect(h.left,h.bottom,h.width,0),y=r==="horizontal"?new DOMRect(b.left,b.top,0,b.height):new DOMRect(b.left,b.top,b.width,0);switch(f.length){case 0:{v=[S,y];break}case 1:{const E=f[0],x=x4({orientation:r,rects:[h,b],targetRect:E.element.getBoundingClientRect()});v=[E,x===h?y:S];break}default:{v=f;break}}}else f.length?v=f:v=[r==="horizontal"?new DOMRect(h.right,b.top,b.left-h.right,b.height):new DOMRect(b.left,h.bottom,b.width,b.top-h.bottom)];for(const S of v)s.push({group:e,groupSize:Tl({group:e}),panels:[c,g],separator:"width"in S?void 0:S,rect:"width"in S?S:S.element.getBoundingClientRect()})}u=!1,c=g,f=[]}}else if(d.hasAttribute("data-separator")){const g=i.find(h=>h.element===d);g?f.push(g):(c=void 0,f=[])}else u=!0;return s}function E4(e,t){const r=getComputedStyle(e),n=parseFloat(r.fontSize);return t*n}function C4(e,t){const r=getComputedStyle(e.ownerDocument.body),n=parseFloat(r.fontSize);return t*n}function R4(e){return e/100*window.innerHeight}function _4(e){return e/100*window.innerWidth}function O4(e){switch(typeof e){case"number":return[e,"px"];case"string":{const t=parseFloat(e);return e.endsWith("%")?[t,"%"]:e.endsWith("px")?[t,"px"]:e.endsWith("rem")?[t,"rem"]:e.endsWith("em")?[t,"em"]:e.endsWith("vh")?[t,"vh"]:e.endsWith("vw")?[t,"vw"]:[t,"%"]}}}function pd({groupSize:e,panelElement:t,styleProp:r}){let n;const[i,o]=O4(r);switch(o){case"%":{n=i/100*e;break}case"px":{n=i;break}case"rem":{n=C4(t,i);break}case"em":{n=E4(t,i);break}case"vh":{n=R4(i);break}case"vw":{n=_4(i);break}}return n}function Qi(e){return parseFloat(e.toFixed(3))}function IC(e){const{panels:t}=e,r=Tl({group:e});return r===0?t.map(n=>({collapsedSize:0,collapsible:n.panelConstraints.collapsible===!0,defaultSize:void 0,minSize:0,maxSize:100,panelId:n.id})):t.map(n=>{const{element:i,panelConstraints:o}=n;let s=0;if(o.collapsedSize!==void 0){const d=pd({groupSize:r,panelElement:i,styleProp:o.collapsedSize});s=Qi(d/r*100)}let u;if(o.defaultSize!==void 0){const d=pd({groupSize:r,panelElement:i,styleProp:o.defaultSize});u=Qi(d/r*100)}let c=0;if(o.minSize!==void 0){const d=pd({groupSize:r,panelElement:i,styleProp:o.minSize});c=Qi(d/r*100)}let f=100;if(o.maxSize!==void 0){const d=pd({groupSize:r,panelElement:i,styleProp:o.maxSize});f=Qi(d/r*100)}return{collapsedSize:s,collapsible:o.collapsible===!0,defaultSize:u,minSize:c,maxSize:f,panelId:n.id}})}class T4{#e={};addListener(t,r){const n=this.#e[t];return n===void 0?this.#e[t]=[r]:n.includes(r)||n.push(r),()=>{this.removeListener(t,r)}}emit(t,r){const n=this.#e[t];if(n!==void 0)if(n.length===1)n[0].call(null,r);else{let i=!1,o=null;const s=Array.from(n);for(let u=0;u<s.length;u++){const c=s[u];try{c.call(null,r)}catch(f){o===null&&(i=!0,o=f)}}if(i)throw o}}removeAllListeners(){this.#e={}}removeListener(t,r){const n=this.#e[t];if(n!==void 0){const i=n.indexOf(r);i>=0&&n.splice(i,1)}}}function fn(e,t,r=0){return Math.abs(Qi(e)-Qi(t))<=r}let xi={cursorFlags:0,interactionState:{state:"inactive"},mountedGroups:new Map};const hs=new T4;function Ri(){return xi}function On(e){const t=typeof e=="function"?e(xi):e;if(xi===t)return xi;const r=xi;return xi={...xi,...t},t.cursorFlags!==void 0&&hs.emit("cursorFlagsChange",xi.cursorFlags),t.interactionState!==void 0&&hs.emit("interactionStateChange",xi.interactionState),t.mountedGroups!==void 0&&(xi.mountedGroups.forEach((n,i)=>{n.derivedPanelConstraints.forEach(o=>{if(o.collapsible){const{layout:s}=r.mountedGroups.get(i)??{};if(s){const u=fn(o.collapsedSize,n.layout[o.panelId]),c=fn(o.collapsedSize,s[o.panelId]);u&&!c&&(i.inMemoryLastExpandedPanelSizes[o.panelId]=s[o.panelId])}}})}),hs.emit("mountedGroupsChange",xi.mountedGroups)),xi}function A4(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!=t[r])return!1;return!0}function cc(e,t){return fn(e,t)?0:e>t?1:-1}function yl({panelConstraints:e,size:t}){const{collapsedSize:r=0,collapsible:n,maxSize:i=100,minSize:o=0}=e;if(cc(t,o)<0)if(n){const s=(r+o)/2;cc(t,s)<0?t=r:t=o}else t=o;return t=Math.min(i,t),t=Qi(t),t}function fc({delta:e,initialLayout:t,panelConstraints:r,pivotIndices:n,prevLayout:i,trigger:o}){if(fn(e,0))return t;const s=Object.values(t),u=Object.values(i),c=[...s],[f,d]=n;Kt(f!=null,"Invalid first pivot index"),Kt(d!=null,"Invalid second pivot index");let g=0;if(o==="keyboard"){{const v=e<0?d:f,S=r[v];Kt(S,`Panel constraints not found for index ${v}`);const{collapsedSize:y=0,collapsible:E,minSize:x=0}=S;if(E){const T=s[v];if(Kt(T!=null,`Previous layout not found for panel index ${v}`),fn(T,y)){const A=x-T;cc(A,Math.abs(e))>0&&(e=e<0?0-A:A)}}}{const v=e<0?f:d,S=r[v];Kt(S,`No panel constraints found for index ${v}`);const{collapsedSize:y=0,collapsible:E,minSize:x=0}=S;if(E){const T=s[v];if(Kt(T!=null,`Previous layout not found for panel index ${v}`),fn(T,x)){const A=T-y;cc(A,Math.abs(e))>0&&(e=e<0?0-A:A)}}}}{const v=e<0?1:-1;let S=e<0?d:f,y=0;for(;;){const x=s[S];Kt(x!=null,`Previous layout not found for panel index ${S}`);const T=yl({panelConstraints:r[S],size:100})-x;if(y+=T,S+=v,S<0||S>=r.length)break}const E=Math.min(Math.abs(e),Math.abs(y));e=e<0?0-E:E}{let v=e<0?f:d;for(;v>=0&&v<r.length;){const S=Math.abs(e)-Math.abs(g),y=s[v];Kt(y!=null,`Previous layout not found for panel index ${v}`);const E=y-S,x=yl({panelConstraints:r[v],size:E});if(!fn(y,x)&&(g+=y-x,c[v]=x,g.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?v--:v++}}if(A4(u,c))return i;{const v=e<0?d:f,S=s[v];Kt(S!=null,`Previous layout not found for panel index ${v}`);const y=S+g,E=yl({panelConstraints:r[v],size:y});if(c[v]=E,!fn(E,y)){let x=y-E,T=e<0?d:f;for(;T>=0&&T<r.length;){const A=c[T];Kt(A!=null,`Previous layout not found for panel index ${T}`);const R=A+x,$=yl({panelConstraints:r[T],size:R});if(fn(A,$)||(x-=$-A,c[T]=$),fn(x,0))break;e>0?T--:T++}}}const h=Object.values(c).reduce((v,S)=>S+v,0);if(!fn(h,100,.1))return i;const b=Object.keys(i);return c.reduce((v,S,y)=>(v[b[y]]=S,v),{})}function Yd(e){const{mountedGroups:t}=Ri();for(const[r]of t)if(r.separators.some(n=>n.element===e))return r;throw Error("Could not find parent Group for separator element")}function ws(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(t[r]===void 0||cc(e[r],t[r])!==0)return!1;return!0}function xs({layout:e,panelConstraints:t}){const r=[...Object.values(e)],n=r.reduce((s,u)=>s+u,0);if(r.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${r.map(s=>`${s}%`).join(", ")}`);if(!fn(n,100)&&r.length>0)for(let s=0;s<t.length;s++){const u=r[s];Kt(u!=null,`No layout data found for index ${s}`);const c=100/n*u;r[s]=c}let i=0;for(let s=0;s<t.length;s++){const u=r[s];Kt(u!=null,`No layout data found for index ${s}`);const c=yl({panelConstraints:t[s],size:u});u!=c&&(i+=u-c,r[s]=c)}if(!fn(i,0))for(let s=0;s<t.length;s++){const u=r[s];Kt(u!=null,`No layout data found for index ${s}`);const c=u+i,f=yl({panelConstraints:t[s],size:c});if(u!==f&&(i-=f-u,r[s]=f,fn(i,0)))break}const o=Object.keys(e);return r.reduce((s,u,c)=>(s[o[c]]=u,s),{})}function DI({groupId:e}){const t=()=>{const{mountedGroups:r}=Ri();for(const[n,i]of r)if(n.id===e)return{group:n,...i};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){const{defaultLayoutDeferred:r,layout:n}=t();return r?{}:n},setLayout(r){const{defaultLayoutDeferred:n,derivedPanelConstraints:i,group:o,layout:s,separatorToPanels:u}=t(),c=xs({layout:r,panelConstraints:i});return n?s:(ws(s,c)||On(f=>({mountedGroups:new Map(f.mountedGroups).set(o,{defaultLayoutDeferred:n,derivedPanelConstraints:i,layout:c,separatorToPanels:u})})),c)}}}function LI(e){const{mountedGroups:t}=Ri(),r=t.get(e);return Kt(r,`Mounted Group ${e.id} not found`),r}function ns(e,t){const r=Yd(e),n=LI(r),i=r.separators.find(d=>d.element===e);Kt(i,"Matching separator not found");const o=n.separatorToPanels.get(i);Kt(o,"Matching panels not found");const s=o.map(d=>r.panels.indexOf(d)),u=DI({groupId:r.id}).getLayout(),c=fc({delta:t,initialLayout:u,panelConstraints:n.derivedPanelConstraints,pivotIndices:s,prevLayout:u,trigger:"keyboard"}),f=xs({layout:c,panelConstraints:n.derivedPanelConstraints});ws(u,f)||On(d=>({mountedGroups:new Map(d.mountedGroups).set(r,{defaultLayoutDeferred:n.defaultLayoutDeferred,derivedPanelConstraints:n.derivedPanelConstraints,layout:f,separatorToPanels:n.separatorToPanels})}))}function PC(e){if(e.defaultPrevented)return;const t=e.currentTarget,r=Yd(t);if(!r.disabled)switch(e.key){case"ArrowDown":{e.preventDefault(),r.orientation==="vertical"&&ns(t,5);break}case"ArrowLeft":{e.preventDefault(),r.orientation==="horizontal"&&ns(t,-5);break}case"ArrowRight":{e.preventDefault(),r.orientation==="horizontal"&&ns(t,5);break}case"ArrowUp":{e.preventDefault(),r.orientation==="vertical"&&ns(t,-5);break}case"End":{e.preventDefault(),ns(t,100);break}case"Enter":{e.preventDefault();const n=Yd(t),{derivedPanelConstraints:i,layout:o,separatorToPanels:s}=LI(n),u=n.separators.find(g=>g.element===t);Kt(u,"Matching separator not found");const c=s.get(u);Kt(c,"Matching panels not found");const f=c[0],d=i.find(g=>g.panelId===f.id);if(Kt(d,"Panel metadata not found"),d.collapsible){const g=o[f.id],h=d.collapsedSize===g?n.inMemoryLastExpandedPanelSizes[f.id]??d.minSize:d.collapsedSize;ns(t,h-g)}break}case"F6":{e.preventDefault();const n=Yd(t).separators.map(s=>s.element),i=Array.from(n).findIndex(s=>s===e.currentTarget);Kt(i!==null,"Index not found");const o=e.shiftKey?i>0?i-1:n.length-1:i+1<n.length?i+1:0;n[o].focus();break}case"Home":{e.preventDefault(),ns(t,-100);break}}}const $4=e=>e,Tv=()=>{},FI=1,NI=2,jI=4,zI=8,kC={coarse:10,precise:5};function I4(e,t,r){let n,i={x:1/0,y:1/0};for(const o of t){const s=kI(r,o.rect);switch(e){case"horizontal":{s.x<=i.x&&(n=o,i=s);break}case"vertical":{s.y<=i.y&&(n=o,i=s);break}}}return n?{distance:i,hitRegion:n}:void 0}let hd;function P4(){return hd===void 0&&(typeof matchMedia=="function"?hd=!!matchMedia("(pointer:coarse)").matches:hd=!1),hd}function k4(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function M4(e,t){if(e===t)throw new Error("Cannot compare node with itself");const r={a:LC(e),b:LC(t)};let n;for(;r.a.at(-1)===r.b.at(-1);)e=r.a.pop(),t=r.b.pop(),n=e;Kt(n,"Stacking order can only be calculated for elements with a common ancestor");const i={a:DC(MC(r.a)),b:DC(MC(r.b))};if(i.a===i.b){const o=n.childNodes,s={a:r.a.at(-1),b:r.b.at(-1)};let u=o.length;for(;u--;){const c=o[u];if(c===s.a)return 1;if(c===s.b)return-1}}return Math.sign(i.a-i.b)}const D4=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function L4(e){const t=getComputedStyle(BI(e)??e).display;return t==="flex"||t==="inline-flex"}function F4(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||L4(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||D4.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function MC(e){let t=e.length;for(;t--;){const r=e[t];if(Kt(r,"Missing node"),F4(r))return r}return null}function DC(e){return e&&Number(getComputedStyle(e).zIndex)||0}function LC(e){const t=[];for(;e;)t.push(e),e=BI(e);return t}function BI(e){const{parentNode:t}=e;return k4(t)?t.host:t}function N4(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function j4({groupElement:e,hitRegion:t,pointerEventTarget:r}){if(!PI(r)||r.contains(e)||e.contains(r))return!0;if(M4(r,e)>0){let n=r;for(;n;){if(n.contains(e))return!0;if(N4(n.getBoundingClientRect(),t))return!1;n=n.parentElement}}return!0}function VI(e,t){const r=[];return t.forEach((n,i)=>{if(i.disabled)return;const o=P4()?kC.coarse:kC.precise,s=MI(i),u=I4(i.orientation,s,{x:e.clientX,y:e.clientY});u&&u.distance.x<=o&&u.distance.y<=o&&j4({groupElement:i.element,hitRegion:u.hitRegion.rect,pointerEventTarget:e.target})&&r.push(u.hitRegion)}),r}function FC(e){if(e.defaultPrevented||e.pointerType==="mouse"&&e.button>0)return;const{mountedGroups:t}=Ri(),r=VI(e,t),n=new Set,i=new Set,o=new Set,s=new Map;let u=!1;r.forEach(c=>{n.add(c.group),c.panels.forEach(d=>{i.add(d)}),c.separator&&(o.add(c.separator),u||(u=!0,c.separator.element.focus()));const f=t.get(c.group);f&&s.set(c.group,f.layout)}),On({interactionState:{hitRegions:r,initialLayoutMap:s,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:"active"}}),r.length&&e.preventDefault()}function z4({cursorFlags:e,groups:t,state:r}){let n=0,i=0;switch(r){case"active":case"hover":t.forEach(o=>{if(!o.disableCursor)switch(o.orientation){case"horizontal":{n++;break}case"vertical":{i++;break}}})}if(n===0&&i===0)return null;switch(r){case"active":{const o=(e&FI)!==0,s=(e&NI)!==0,u=(e&jI)!==0,c=(e&zI)!==0;if(e){if(o)return u?"se-resize":c?"ne-resize":"e-resize";if(s)return u?"sw-resize":c?"nw-resize":"w-resize";if(u)return"s-resize";if(c)return"n-resize"}break}}return n>0&&i>0?"move":n>0?"ew-resize":"ns-resize"}const NC=new WeakMap;function R1(e){if(e.defaultView===null||e.defaultView===void 0)return;let{prevStyle:t,styleSheet:r}=NC.get(e)??{};r===void 0&&(r=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets=[r]);const{cursorFlags:n,interactionState:i}=Ri();switch(i.state){case"active":case"hover":{const o=z4({cursorFlags:n,groups:i.hitRegions.map(u=>u.group),state:i.state}),s=`*{cursor: ${o} !important; ${i.state==="active"?"touch-action: none;":""} }`;if(t===s)return;t=s,o?r.cssRules.length===0?r.insertRule(s):r.replaceSync(s):r.cssRules.length===1&&r.deleteRule(0);break}case"inactive":{t=void 0,r.cssRules.length===1&&r.deleteRule(0);break}}NC.set(e,{prevStyle:t,styleSheet:r})}function UI({document:e,event:t,hitRegions:r,initialLayoutMap:n,mountedGroups:i,pointerDownAtPoint:o}){let s=0;const u=new Map(i);r.forEach(c=>{const{group:f,groupSize:d}=c,{disableCursor:g,orientation:h,panels:b}=f;let v=0;o?h==="horizontal"?v=(t.clientX-o.x)/d*100:v=(t.clientY-o.y)/d*100:h==="horizontal"?v=t.clientX<0?-100:100:v=t.clientY<0?-100:100;const S=n.get(f),{defaultLayoutDeferred:y,derivedPanelConstraints:E,layout:x,separatorToPanels:T}=i.get(f)??{defaultLayoutDeferred:!1};if(E&&S&&x&&T){const A=fc({delta:v,initialLayout:S,panelConstraints:E,pivotIndices:c.panels.map(R=>b.indexOf(R)),prevLayout:x,trigger:"mouse-or-touch"});if(ws(A,x)){if(v!==0&&!g)switch(h){case"horizontal":{s|=v<0?FI:NI;break}case"vertical":{s|=v<0?jI:zI;break}}}else{u.set(c.group,{defaultLayoutDeferred:y,derivedPanelConstraints:E,layout:A,separatorToPanels:T});const R=c.group.panels.map(({id:$})=>$).join(",");c.group.inMemoryLayouts[R]=A}}}),On({cursorFlags:s,mountedGroups:u}),R1(e)}function jC(e){const{interactionState:t,mountedGroups:r}=Ri();switch(t.state){case"active":UI({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:r})}}function zC(e){if(e.defaultPrevented)return;const{interactionState:t,mountedGroups:r}=Ri();switch(t.state){case"active":{if(e.buttons===0){On(n=>n.interactionState.state==="inactive"?n:{cursorFlags:0,interactionState:{state:"inactive"}}),On(n=>({mountedGroups:new Map(n.mountedGroups)}));return}UI({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:r,pointerDownAtPoint:t.pointerDownAtPoint});break}default:{const n=VI(e,r);n.length===0?t.state!=="inactive"&&On({interactionState:{state:"inactive"}}):On({interactionState:{hitRegions:n,state:"hover"}}),R1(e.currentTarget);break}}}function BC(e){if(e.defaultPrevented||e.pointerType==="mouse"&&e.button>0)return;const{interactionState:t}=Ri();switch(t.state){case"active":On({cursorFlags:0,interactionState:{state:"inactive"}}),t.hitRegions.length>0&&(R1(e.currentTarget),On(r=>({mountedGroups:new Map(r.mountedGroups)})),e.preventDefault())}}function VC(e){let t=0,r=0;const n={};for(const o of e)if(o.defaultSize!==void 0){t++;const s=Qi(o.defaultSize);r+=s,n[o.panelId]=s}else n[o.panelId]=void 0;const i=e.length-t;if(i!==0){const o=Qi((100-r)/i);for(const s of e)s.defaultSize===void 0&&(n[s.panelId]=o)}return n}function B4(e,t,r){if(!r[0])return;const n=e.panels.find(c=>c.element===t);if(!n||!n.onResize)return;const i=Tl({group:e}),o=e.orientation==="horizontal"?n.element.offsetWidth:n.element.offsetHeight,s=n.mutableValues.prevSize,u={asPercentage:Qi(o/i*100),inPixels:o};n.mutableValues.prevSize=u,n.onResize(u,n.id,s)}function V4(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function U4(e,t){const r=e.map(i=>i.id),n=Object.keys(t);if(r.length!==n.length)return!1;for(const i of r)if(!n.includes(i))return!1;return!0}const el=new Map;function H4(e){let t=!0;Kt(e.element.ownerDocument.defaultView,"Cannot register an unmounted Group");const r=e.element.ownerDocument.defaultView.ResizeObserver,n=new Set,i=new Set,o=new r(v=>{for(const S of v){const{borderBoxSize:y,target:E}=S;if(E===e.element){if(t){if(Tl({group:e})===0)return;On(x=>{const T=x.mountedGroups.get(e);if(T){const A=IC(e),R=T.defaultLayoutDeferred?VC(A):T.layout,$=xs({layout:R,panelConstraints:A});return!T.defaultLayoutDeferred&&ws(R,$)&&V4(T.derivedPanelConstraints,A)?x:{mountedGroups:new Map(x.mountedGroups).set(e,{defaultLayoutDeferred:!1,derivedPanelConstraints:A,layout:$,separatorToPanels:T.separatorToPanels})}}return x})}}else B4(e,E,y)}});o.observe(e.element),e.panels.forEach(v=>{Kt(!n.has(v.id),`Panel ids must be unique; id "${v.id}" was used more than once`),n.add(v.id),v.onResize&&o.observe(v.element)});const s=Tl({group:e}),u=IC(e),c=e.panels.map(({id:v})=>v).join(",");let f=e.defaultLayout;f&&(U4(e.panels,f)||(f=void 0));const d=e.inMemoryLayouts[c]??f??VC(u),g=xs({layout:d,panelConstraints:u}),h=MI(e),b=e.element.ownerDocument;return On(v=>{const S=new Map;return el.set(b,(el.get(b)??0)+1),h.forEach(y=>{y.separator&&S.set(y.separator,y.panels)}),{mountedGroups:new Map(v.mountedGroups).set(e,{defaultLayoutDeferred:s===0,derivedPanelConstraints:u,layout:g,separatorToPanels:S})}}),e.separators.forEach(v=>{Kt(!i.has(v.id),`Separator ids must be unique; id "${v.id}" was used more than once`),i.add(v.id),v.element.addEventListener("keydown",PC)}),el.get(b)===1&&(b.addEventListener("pointerdown",FC,!0),b.addEventListener("pointerleave",jC),b.addEventListener("pointermove",zC),b.addEventListener("pointerup",BC,!0)),function(){t=!1,el.set(b,Math.max(0,(el.get(b)??0)-1)),On(v=>{const S=new Map(v.mountedGroups);return S.delete(e),{mountedGroups:S}}),e.separators.forEach(v=>{v.element.removeEventListener("keydown",PC)}),el.get(b)||(b.removeEventListener("pointerdown",FC,!0),b.removeEventListener("pointerleave",jC),b.removeEventListener("pointermove",zC),b.removeEventListener("pointerup",BC,!0)),o.disconnect()}}function HI(){const[e,t]=C.useState({}),r=C.useCallback(()=>t({}),[]);return[e,r]}function _1(e){const t=C.useId();return`${e??t}`}const _s=typeof window<"u"?C.useLayoutEffect:C.useEffect;function Ku(e){const t=C.useRef(e);return _s(()=>{t.current=e},[e]),C.useCallback((...r)=>t.current?.(...r),[t])}function O1(...e){return Ku(t=>{e.forEach(r=>{if(r)switch(typeof r){case"function":{r(t);break}case"object":{r.current=t;break}}})})}function W4(e){const t=C.useRef({...e});return _s(()=>{for(const r in e)t.current[r]=e[r]},[e]),t.current}const WI=C.createContext(null);function q4(e,t){const r=C.useRef({getLayout:()=>({}),setLayout:$4});C.useImperativeHandle(t,()=>r.current,[]),_s(()=>{Object.assign(r.current,DI({groupId:e}))})}function qI({children:e,className:t,defaultLayout:r,disableCursor:n,disabled:i,elementRef:o,groupRef:s,id:u,onLayoutChange:c,onLayoutChanged:f,orientation:d="horizontal",style:g,...h}){const b=C.useRef({onLayoutChange:{},onLayoutChanged:{}}),v=Ku(F=>{ws(b.current.onLayoutChange,F)||(b.current.onLayoutChange=F,c?.(F))}),S=Ku(F=>{ws(b.current.onLayoutChanged,F)||(b.current.onLayoutChanged=F,f?.(F))}),y=_1(u),E=C.useRef(null),[x,T]=HI(),A=C.useRef({lastExpandedPanelSizes:{},layouts:{},panels:[],separators:[]}),R=O1(E,o);q4(y,s);const $=Ku((F,q)=>{const{interactionState:z,mountedGroups:B}=Ri();for(const N of B.keys())if(N.id===F){const j=B.get(N);if(j){let H=!1;switch(z.state){case"active":{H=z.hitRegions.some(X=>X.group===N);break}}return{flexGrow:j.layout[q]??1,pointerEvents:H?"none":void 0}}}return{flexGrow:r?.[q]??1}}),O=C.useMemo(()=>({getPanelStyles:$,id:y,orientation:d,registerPanel:F=>{const q=A.current;return q.panels=Gy(d,[...q.panels,F]),T(),()=>{q.panels=q.panels.filter(z=>z!==F),T()}},registerSeparator:F=>{const q=A.current;return q.separators=Gy(d,[...q.separators,F]),T(),()=>{q.separators=q.separators.filter(z=>z!==F),T()}}}),[$,y,T,d]),I=W4({defaultLayout:r,disableCursor:n}),L=C.useRef(null);return _s(()=>{const F=E.current;if(F===null)return;const q=A.current,z={defaultLayout:I.defaultLayout,disableCursor:!!I.disableCursor,disabled:!!i,element:F,id:y,inMemoryLastExpandedPanelSizes:A.current.lastExpandedPanelSizes,inMemoryLayouts:A.current.layouts,orientation:d,panels:q.panels,separators:q.separators};L.current=z;const B=H4(z),N=Ri().mountedGroups.get(z);if(N){const{defaultLayoutDeferred:X,derivedPanelConstraints:M,layout:Q}=N;!X&&M.length>0&&(v(Q),S(Q),q.panels.forEach(W=>{W.scheduleUpdate()}))}const j=hs.addListener("interactionStateChange",()=>{q.panels.forEach(X=>{X.scheduleUpdate()})}),H=hs.addListener("mountedGroupsChange",X=>{const M=X.get(z);if(M){const{defaultLayoutDeferred:Q,derivedPanelConstraints:W,layout:D}=M;if(Q||W.length===0)return;const{interactionState:P}=Ri(),G=P.state!=="active";v(D),G&&S(D),q.panels.forEach(Z=>{Z.scheduleUpdate()})}});return()=>{L.current=null,B(),j(),H()}},[i,y,S,v,d,x,I]),C.useEffect(()=>{const F=L.current;F&&(F.defaultLayout=r,F.disableCursor=!!n)}),U.jsx(WI.Provider,{value:O,children:U.jsx("div",{...h,"aria-orientation":d,className:t,"data-group":!0,"data-testid":y,id:y,ref:R,style:{height:"100%",width:"100%",overflow:"hidden",...g,display:"flex",flexDirection:d==="horizontal"?"row":"column",flexWrap:"nowrap"},children:e})})}qI.displayName="Group";function T1(){const e=C.useContext(WI);return Kt(e,"Group Context not found; did you render a Panel or Separator outside of a Group?"),e}function G4({groupId:e,panelId:t}){const r=()=>{const{mountedGroups:u}=Ri();for(const[c,{defaultLayoutDeferred:f,derivedPanelConstraints:d,layout:g,separatorToPanels:h}]of u)if(c.id===e)return{defaultLayoutDeferred:f,derivedPanelConstraints:d,group:c,layout:g,separatorToPanels:h};throw Error(`Group ${e} not found`)},n=()=>{const u=r().derivedPanelConstraints.find(c=>c.panelId===t);if(u!==void 0)return u;throw Error(`Panel constraints not found for Panel ${t}`)},i=()=>{const u=r().group.panels.find(c=>c.id===t);if(u!==void 0)return u;throw Error(`Layout not found for Panel ${t}`)},o=()=>{const u=r().layout[t];if(u!==void 0)return u;throw Error(`Layout not found for Panel ${t}`)},s=u=>{const c=o();if(u===c)return;const{defaultLayoutDeferred:f,derivedPanelConstraints:d,group:g,layout:h,separatorToPanels:b}=r(),v=g.panels.findIndex(x=>x.id===t),S=v===g.panels.length-1,y=fc({delta:S?c-u:u-c,initialLayout:h,panelConstraints:d,pivotIndices:S?[v-1,v]:[v,v+1],prevLayout:h,trigger:"imperative-api"}),E=xs({layout:y,panelConstraints:d});ws(h,E)||On(x=>({mountedGroups:new Map(x.mountedGroups).set(g,{defaultLayoutDeferred:f,derivedPanelConstraints:d,layout:E,separatorToPanels:b})}))};return{collapse:()=>{const{collapsible:u,collapsedSize:c}=n(),{mutableValues:f}=i(),d=o();u&&d!==c&&(f.expandToSize=d,s(c))},expand:()=>{const{collapsible:u,collapsedSize:c,minSize:f}=n(),{mutableValues:d}=i(),g=o();if(u&&g===c){let h=d.expandToSize??f;h===0&&(h=1),s(h)}},getSize:()=>{const{group:u}=r(),c=o(),{element:f}=i(),d=u.orientation==="horizontal"?f.offsetWidth:f.offsetHeight;return{asPercentage:c,inPixels:d}},isCollapsed:()=>{const{collapsible:u,collapsedSize:c}=n(),f=o();return u&&fn(c,f)},resize:u=>{if(o()!==u){let c;switch(typeof u){case"number":{const{group:f}=r(),d=Tl({group:f});c=Qi(u/d*100);break}case"string":{c=parseFloat(u);break}}s(c)}}}}function X4(e,t){const{id:r}=T1(),n=C.useRef({collapse:Tv,expand:Tv,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:Tv});C.useImperativeHandle(t,()=>n.current,[]),_s(()=>{Object.assign(n.current,G4({groupId:r,panelId:e}))})}function Xy({children:e,className:t,collapsedSize:r="0%",collapsible:n=!1,defaultSize:i,elementRef:o,id:s,maxSize:u="100%",minSize:c="0%",onResize:f,panelRef:d,style:g,...h}){const b=!!s,v=_1(s),S=C.useRef(null),y=O1(S,o),[,E]=HI(),{getPanelStyles:x,id:T,registerPanel:A}=T1(),R=f!==null,$=Ku((I,L,F)=>{f?.(I,s,F)});_s(()=>{const I=S.current;if(I!==null)return A({element:I,id:v,idIsStable:b,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:R?$:void 0,panelConstraints:{collapsedSize:r,collapsible:n,defaultSize:i,maxSize:u,minSize:c},scheduleUpdate:E})},[r,n,i,E,R,v,b,u,c,$,A]),X4(v,d);const O=x(T,v);return U.jsx("div",{...h,"data-panel":!0,"data-testid":v,id:v,ref:y,style:{...K4,flexBasis:0,flexShrink:1,overflow:"hidden",...O},children:U.jsx("div",{className:t,style:{width:"100%",height:"100%",...g},children:e})})}Xy.displayName="Panel";const K4={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function Y4({layout:e,panelConstraints:t,panelId:r,panelIndex:n}){let i,o;const s=e[r],u=t.find(c=>c.panelId===r);if(u){const c=u.maxSize,f=o=u.collapsible?u.collapsedSize:u.minSize,d=[n,n+1];o=xs({layout:fc({delta:f-s,initialLayout:e,panelConstraints:t,pivotIndices:d,prevLayout:e,trigger:"keyboard"}),panelConstraints:t})[r],i=xs({layout:fc({delta:c-s,initialLayout:e,panelConstraints:t,pivotIndices:d,prevLayout:e,trigger:"keyboard"}),panelConstraints:t})[r]}return{valueControls:r,valueMax:i,valueMin:o,valueNow:s}}function GI({children:e,className:t,elementRef:r,id:n,style:i,...o}){const s=_1(n),[u,c]=C.useState({}),[f,d]=C.useState("inactive"),g=C.useRef(null),h=O1(g,r),{id:b,orientation:v,registerSeparator:S}=T1(),y=v==="horizontal"?"vertical":"horizontal";return _s(()=>{const E=g.current;if(E!==null){const x={element:E,id:s},T=S(x),A=hs.addListener("interactionStateChange",$=>{d($.state!=="inactive"&&$.hitRegions.some(O=>O.separator===x)?$.state:"inactive")}),R=hs.addListener("mountedGroupsChange",$=>{$.forEach(({derivedPanelConstraints:O,layout:I,separatorToPanels:L},F)=>{if(F.id===b){const q=L.get(x);if(q){const z=q[0],B=F.panels.indexOf(z);c(Y4({layout:I,panelConstraints:O,panelId:z.id,panelIndex:B}))}}})});return()=>{A(),R(),T()}}},[b,s,S]),U.jsx("div",{...o,"aria-controls":u.valueControls,"aria-orientation":y,"aria-valuemax":u.valueMax,"aria-valuemin":u.valueMin,"aria-valuenow":u.valueNow,children:e,className:t,"data-separator":f,"data-testid":s,id:s,ref:h,role:"separator",style:{flexBasis:"auto",...i,flexGrow:0,flexShrink:0},tabIndex:0})}GI.displayName="Separator";const J4=xe(GI)`
466
+ background: #e0e0e0;
467
+ transition: background 0.15s ease;
468
+
469
+ &:hover {
470
+ background: #bbb;
471
+ }
472
+
473
+ &[data-resize-handle-active] {
474
+ background: #999;
475
+ }
476
+
477
+ /* Horizontal split: thin horizontal bar between top/bottom panels */
478
+ ${({$direction:e})=>e==="horizontal"&&`
479
+ height: 4px;
480
+ cursor: row-resize;
481
+ `}
482
+
483
+ /* Vertical split: thin vertical bar between left/right panels */
484
+ ${({$direction:e})=>e==="vertical"&&`
485
+ width: 4px;
486
+ cursor: col-resize;
487
+ `}
488
+ `,UC=xe.div`
489
+ display: flex;
490
+ flex-direction: column;
491
+ height: 100%;
492
+ overflow: hidden;
493
+ `,Q4=xe.div`
494
+ display: flex;
495
+ flex: 1;
496
+ width: 100%;
497
+ height: 100%;
498
+ min-height: 0;
499
+ min-width: 0;
500
+ `,HC=({direction:e,first:t,second:r,defaultFirstSize:n="50%",minFirstSize:i="20%",minSecondSize:o="20%"})=>U.jsx(Q4,{children:U.jsxs(qI,{orientation:e==="horizontal"?"vertical":"horizontal",style:{flex:1},children:[U.jsx(Xy,{defaultSize:n,minSize:i,children:U.jsx(UC,{children:t})}),U.jsx(J4,{$direction:e}),U.jsx(Xy,{minSize:o,children:U.jsx(UC,{children:r})})]})}),Au={CONNECTED_DEVICES_UPDATE:"connectedDevicesUpdate",DEVICE_SESSION_STATE_UPDATE:"deviceSessionStateUpdate",PROVIDER_VALUE:"providerValue",APDU_RESPONSE:"apduResponse",DISCOVERED_DEVICES_UPDATE:"discoveredDevicesUpdate"},ta={DISCONNECT:"disconnect",SEND_APDU:"sendApdu",GET_PROVIDER:"getProvider",SET_PROVIDER:"setProvider",START_LISTENING_DEVICES:"startListeningDevices",STOP_LISTENING_DEVICES:"stopListeningDevices",START_DISCOVERING:"startDiscovering",STOP_DISCOVERING:"stopDiscovering",CONNECT_DEVICE:"connectDevice"},WC={LOGGER:"logger",DMK_INSPECTOR:"dmk-inspector"},Z4="moduleConnected";/*! *****************************************************************************
501
+ Copyright (C) Microsoft. All rights reserved.
502
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
503
+ this file except in compliance with the License. You may obtain a copy of the
504
+ License at http://www.apache.org/licenses/LICENSE-2.0
505
+
506
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
507
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
508
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
509
+ MERCHANTABLITY OR NON-INFRINGEMENT.
510
+
511
+ See the Apache Version 2.0 License for specific language governing permissions
512
+ and limitations under the License.
513
+ ***************************************************************************** */var qC;(function(e){(function(t){var r=typeof globalThis=="object"?globalThis:typeof self=="object"||typeof self=="object"?self:typeof this=="object"?this:u(),n=i(e);typeof r.Reflect<"u"&&(n=i(r.Reflect,n)),t(n,r),typeof r.Reflect>"u"&&(r.Reflect=e);function i(c,f){return function(d,g){Object.defineProperty(c,d,{configurable:!0,writable:!0,value:g}),f&&f(d,g)}}function o(){try{return Function("return this;")()}catch{}}function s(){try{return(0,eval)("(function() { return this; })()")}catch{}}function u(){return o()||s()}})(function(t,r){var n=Object.prototype.hasOwnProperty,i=typeof Symbol=="function",o=i&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=i&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",u=typeof Object.create=="function",c={__proto__:[]}instanceof Array,f=!u&&!c,d={create:u?function(){return It(Object.create(null))}:c?function(){return It({__proto__:null})}:function(){return It({})},has:f?function(ne,se){return n.call(ne,se)}:function(ne,se){return se in ne},get:f?function(ne,se){return n.call(ne,se)?ne[se]:void 0}:function(ne,se){return ne[se]}},g=Object.getPrototypeOf(Function),h=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Pt(),b=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:ht(),v=typeof WeakMap=="function"?WeakMap:Ft(),S=i?Symbol.for("@reflect-metadata:registry"):void 0,y=Ue(),E=Re(y);function x(ne,se,pe,Y){if(P(pe)){if(!Ee(ne))throw new TypeError;if(!Te(se))throw new TypeError;return z(ne,se)}else{if(!Ee(ne))throw new TypeError;if(!te(se))throw new TypeError;if(!te(Y)&&!P(Y)&&!G(Y))throw new TypeError;return G(Y)&&(Y=void 0),pe=he(pe),B(ne,se,pe,Y)}}t("decorate",x);function T(ne,se){function pe(Y,V){if(!te(Y))throw new TypeError;if(!P(V)&&!Ce(V))throw new TypeError;M(ne,se,Y,V)}return pe}t("metadata",T);function A(ne,se,pe,Y){if(!te(pe))throw new TypeError;return P(Y)||(Y=he(Y)),M(ne,se,pe,Y)}t("defineMetadata",A);function R(ne,se,pe){if(!te(se))throw new TypeError;return P(pe)||(pe=he(pe)),N(ne,se,pe)}t("hasMetadata",R);function $(ne,se,pe){if(!te(se))throw new TypeError;return P(pe)||(pe=he(pe)),j(ne,se,pe)}t("hasOwnMetadata",$);function O(ne,se,pe){if(!te(se))throw new TypeError;return P(pe)||(pe=he(pe)),H(ne,se,pe)}t("getMetadata",O);function I(ne,se,pe){if(!te(se))throw new TypeError;return P(pe)||(pe=he(pe)),X(ne,se,pe)}t("getOwnMetadata",I);function L(ne,se){if(!te(ne))throw new TypeError;return P(se)||(se=he(se)),Q(ne,se)}t("getMetadataKeys",L);function F(ne,se){if(!te(ne))throw new TypeError;return P(se)||(se=he(se)),W(ne,se)}t("getOwnMetadataKeys",F);function q(ne,se,pe){if(!te(se))throw new TypeError;if(P(pe)||(pe=he(pe)),!te(se))throw new TypeError;P(pe)||(pe=he(pe));var Y=ct(se,pe,!1);return P(Y)?!1:Y.OrdinaryDeleteMetadata(ne,se,pe)}t("deleteMetadata",q);function z(ne,se){for(var pe=ne.length-1;pe>=0;--pe){var Y=ne[pe],V=Y(se);if(!P(V)&&!G(V)){if(!Te(V))throw new TypeError;se=V}}return se}function B(ne,se,pe,Y){for(var V=ne.length-1;V>=0;--V){var ee=ne[V],Oe=ee(se,pe,Y);if(!P(Oe)&&!G(Oe)){if(!te(Oe))throw new TypeError;Y=Oe}}return Y}function N(ne,se,pe){var Y=j(ne,se,pe);if(Y)return!0;var V=ze(se);return G(V)?!1:N(ne,V,pe)}function j(ne,se,pe){var Y=ct(se,pe,!1);return P(Y)?!1:ae(Y.OrdinaryHasOwnMetadata(ne,se,pe))}function H(ne,se,pe){var Y=j(ne,se,pe);if(Y)return X(ne,se,pe);var V=ze(se);if(!G(V))return H(ne,V,pe)}function X(ne,se,pe){var Y=ct(se,pe,!1);if(!P(Y))return Y.OrdinaryGetOwnMetadata(ne,se,pe)}function M(ne,se,pe,Y){var V=ct(pe,Y,!0);V.OrdinaryDefineOwnMetadata(ne,se,pe,Y)}function Q(ne,se){var pe=W(ne,se),Y=ze(ne);if(Y===null)return pe;var V=Q(Y,se);if(V.length<=0)return pe;if(pe.length<=0)return V;for(var ee=new b,Oe=[],le=0,fe=pe;le<fe.length;le++){var ve=fe[le],Ie=ee.has(ve);Ie||(ee.add(ve),Oe.push(ve))}for(var De=0,Be=V;De<Be.length;De++){var ve=Be[De],Ie=ee.has(ve);Ie||(ee.add(ve),Oe.push(ve))}return Oe}function W(ne,se){var pe=ct(ne,se,!1);return pe?pe.OrdinaryOwnMetadataKeys(ne,se):[]}function D(ne){if(ne===null)return 1;switch(typeof ne){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return ne===null?1:6;default:return 6}}function P(ne){return ne===void 0}function G(ne){return ne===null}function Z(ne){return typeof ne=="symbol"}function te(ne){return typeof ne=="object"?ne!==null:typeof ne=="function"}function K(ne,se){switch(D(ne)){case 0:return ne;case 1:return ne;case 2:return ne;case 3:return ne;case 4:return ne;case 5:return ne}var pe="string",Y=$e(ne,o);if(Y!==void 0){var V=Y.call(ne,pe);if(te(V))throw new TypeError;return V}return be(ne)}function be(ne,se){var pe,Y,V;{var ee=ne.toString;if(we(ee)){var Y=ee.call(ne);if(!te(Y))return Y}var pe=ne.valueOf;if(we(pe)){var Y=pe.call(ne);if(!te(Y))return Y}}throw new TypeError}function ae(ne){return!!ne}function Se(ne){return""+ne}function he(ne){var se=K(ne);return Z(se)?se:Se(se)}function Ee(ne){return Array.isArray?Array.isArray(ne):ne instanceof Object?ne instanceof Array:Object.prototype.toString.call(ne)==="[object Array]"}function we(ne){return typeof ne=="function"}function Te(ne){return typeof ne=="function"}function Ce(ne){switch(D(ne)){case 3:return!0;case 4:return!0;default:return!1}}function _e(ne,se){return ne===se||ne!==ne&&se!==se}function $e(ne,se){var pe=ne[se];if(pe!=null){if(!we(pe))throw new TypeError;return pe}}function ke(ne){var se=$e(ne,s);if(!we(se))throw new TypeError;var pe=se.call(ne);if(!te(pe))throw new TypeError;return pe}function Ge(ne){return ne.value}function Qe(ne){var se=ne.next();return se.done?!1:se}function je(ne){var se=ne.return;se&&se.call(ne)}function ze(ne){var se=Object.getPrototypeOf(ne);if(typeof ne!="function"||ne===g||se!==g)return se;var pe=ne.prototype,Y=pe&&Object.getPrototypeOf(pe);if(Y==null||Y===Object.prototype)return se;var V=Y.constructor;return typeof V!="function"||V===ne?se:V}function Ye(){var ne;!P(S)&&typeof r.Reflect<"u"&&!(S in r.Reflect)&&typeof r.Reflect.defineMetadata=="function"&&(ne=Xe(r.Reflect));var se,pe,Y,V=new v,ee={registerProvider:Oe,getProvider:fe,setProvider:Ie};return ee;function Oe(De){if(!Object.isExtensible(ee))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case ne===De:break;case P(se):se=De;break;case se===De:break;case P(pe):pe=De;break;case pe===De:break;default:Y===void 0&&(Y=new b),Y.add(De);break}}function le(De,Be){if(!P(se)){if(se.isProviderFor(De,Be))return se;if(!P(pe)){if(pe.isProviderFor(De,Be))return se;if(!P(Y))for(var Ze=ke(Y);;){var et=Qe(Ze);if(!et)return;var tt=Ge(et);if(tt.isProviderFor(De,Be))return je(Ze),tt}}}if(!P(ne)&&ne.isProviderFor(De,Be))return ne}function fe(De,Be){var Ze=V.get(De),et;return P(Ze)||(et=Ze.get(Be)),P(et)&&(et=le(De,Be),P(et)||(P(Ze)&&(Ze=new h,V.set(De,Ze)),Ze.set(Be,et))),et}function ve(De){if(P(De))throw new TypeError;return se===De||pe===De||!P(Y)&&Y.has(De)}function Ie(De,Be,Ze){if(!ve(Ze))throw new Error("Metadata provider not registered.");var et=fe(De,Be);if(et!==Ze){if(!P(et))return!1;var tt=V.get(De);P(tt)&&(tt=new h,V.set(De,tt)),tt.set(Be,Ze)}return!0}}function Ue(){var ne;return!P(S)&&te(r.Reflect)&&Object.isExtensible(r.Reflect)&&(ne=r.Reflect[S]),P(ne)&&(ne=Ye()),!P(S)&&te(r.Reflect)&&Object.isExtensible(r.Reflect)&&Object.defineProperty(r.Reflect,S,{enumerable:!1,configurable:!1,writable:!1,value:ne}),ne}function Re(ne){var se=new v,pe={isProviderFor:function(ve,Ie){var De=se.get(ve);return P(De)?!1:De.has(Ie)},OrdinaryDefineOwnMetadata:Oe,OrdinaryHasOwnMetadata:V,OrdinaryGetOwnMetadata:ee,OrdinaryOwnMetadataKeys:le,OrdinaryDeleteMetadata:fe};return y.registerProvider(pe),pe;function Y(ve,Ie,De){var Be=se.get(ve),Ze=!1;if(P(Be)){if(!De)return;Be=new h,se.set(ve,Be),Ze=!0}var et=Be.get(Ie);if(P(et)){if(!De)return;if(et=new h,Be.set(Ie,et),!ne.setProvider(ve,Ie,pe))throw Be.delete(Ie),Ze&&se.delete(ve),new Error("Wrong provider for target.")}return et}function V(ve,Ie,De){var Be=Y(Ie,De,!1);return P(Be)?!1:ae(Be.has(ve))}function ee(ve,Ie,De){var Be=Y(Ie,De,!1);if(!P(Be))return Be.get(ve)}function Oe(ve,Ie,De,Be){var Ze=Y(De,Be,!0);Ze.set(ve,Ie)}function le(ve,Ie){var De=[],Be=Y(ve,Ie,!1);if(P(Be))return De;for(var Ze=Be.keys(),et=ke(Ze),tt=0;;){var Bt=Qe(et);if(!Bt)return De.length=tt,De;var dt=Ge(Bt);try{De[tt]=dt}catch(gt){try{je(et)}finally{throw gt}}tt++}}function fe(ve,Ie,De){var Be=Y(Ie,De,!1);if(P(Be)||!Be.delete(ve))return!1;if(Be.size===0){var Ze=se.get(Ie);P(Ze)||(Ze.delete(De),Ze.size===0&&se.delete(Ze))}return!0}}function Xe(ne){var se=ne.defineMetadata,pe=ne.hasOwnMetadata,Y=ne.getOwnMetadata,V=ne.getOwnMetadataKeys,ee=ne.deleteMetadata,Oe=new v,le={isProviderFor:function(fe,ve){var Ie=Oe.get(fe);return!P(Ie)&&Ie.has(ve)?!0:V(fe,ve).length?(P(Ie)&&(Ie=new b,Oe.set(fe,Ie)),Ie.add(ve),!0):!1},OrdinaryDefineOwnMetadata:se,OrdinaryHasOwnMetadata:pe,OrdinaryGetOwnMetadata:Y,OrdinaryOwnMetadataKeys:V,OrdinaryDeleteMetadata:ee};return le}function ct(ne,se,pe){var Y=y.getProvider(ne,se);if(!P(Y))return Y;if(pe){if(y.setProvider(ne,se,E))return E;throw new Error("Illegal state.")}}function Pt(){var ne={},se=[],pe=(function(){function le(fe,ve,Ie){this._index=0,this._keys=fe,this._values=ve,this._selector=Ie}return le.prototype["@@iterator"]=function(){return this},le.prototype[s]=function(){return this},le.prototype.next=function(){var fe=this._index;if(fe>=0&&fe<this._keys.length){var ve=this._selector(this._keys[fe],this._values[fe]);return fe+1>=this._keys.length?(this._index=-1,this._keys=se,this._values=se):this._index++,{value:ve,done:!1}}return{value:void 0,done:!0}},le.prototype.throw=function(fe){throw this._index>=0&&(this._index=-1,this._keys=se,this._values=se),fe},le.prototype.return=function(fe){return this._index>=0&&(this._index=-1,this._keys=se,this._values=se),{value:fe,done:!0}},le})(),Y=(function(){function le(){this._keys=[],this._values=[],this._cacheKey=ne,this._cacheIndex=-2}return Object.defineProperty(le.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),le.prototype.has=function(fe){return this._find(fe,!1)>=0},le.prototype.get=function(fe){var ve=this._find(fe,!1);return ve>=0?this._values[ve]:void 0},le.prototype.set=function(fe,ve){var Ie=this._find(fe,!0);return this._values[Ie]=ve,this},le.prototype.delete=function(fe){var ve=this._find(fe,!1);if(ve>=0){for(var Ie=this._keys.length,De=ve+1;De<Ie;De++)this._keys[De-1]=this._keys[De],this._values[De-1]=this._values[De];return this._keys.length--,this._values.length--,_e(fe,this._cacheKey)&&(this._cacheKey=ne,this._cacheIndex=-2),!0}return!1},le.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=ne,this._cacheIndex=-2},le.prototype.keys=function(){return new pe(this._keys,this._values,V)},le.prototype.values=function(){return new pe(this._keys,this._values,ee)},le.prototype.entries=function(){return new pe(this._keys,this._values,Oe)},le.prototype["@@iterator"]=function(){return this.entries()},le.prototype[s]=function(){return this.entries()},le.prototype._find=function(fe,ve){if(!_e(this._cacheKey,fe)){this._cacheIndex=-1;for(var Ie=0;Ie<this._keys.length;Ie++)if(_e(this._keys[Ie],fe)){this._cacheIndex=Ie;break}}return this._cacheIndex<0&&ve&&(this._cacheIndex=this._keys.length,this._keys.push(fe),this._values.push(void 0)),this._cacheIndex},le})();return Y;function V(le,fe){return le}function ee(le,fe){return fe}function Oe(le,fe){return[le,fe]}}function ht(){var ne=(function(){function se(){this._map=new h}return Object.defineProperty(se.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),se.prototype.has=function(pe){return this._map.has(pe)},se.prototype.add=function(pe){return this._map.set(pe,pe),this},se.prototype.delete=function(pe){return this._map.delete(pe)},se.prototype.clear=function(){this._map.clear()},se.prototype.keys=function(){return this._map.keys()},se.prototype.values=function(){return this._map.keys()},se.prototype.entries=function(){return this._map.entries()},se.prototype["@@iterator"]=function(){return this.keys()},se.prototype[s]=function(){return this.keys()},se})();return ne}function Ft(){var ne=16,se=d.create(),pe=Y();return(function(){function fe(){this._key=Y()}return fe.prototype.has=function(ve){var Ie=V(ve,!1);return Ie!==void 0?d.has(Ie,this._key):!1},fe.prototype.get=function(ve){var Ie=V(ve,!1);return Ie!==void 0?d.get(Ie,this._key):void 0},fe.prototype.set=function(ve,Ie){var De=V(ve,!0);return De[this._key]=Ie,this},fe.prototype.delete=function(ve){var Ie=V(ve,!1);return Ie!==void 0?delete Ie[this._key]:!1},fe.prototype.clear=function(){this._key=Y()},fe})();function Y(){var fe;do fe="@@WeakMap@@"+le();while(d.has(se,fe));return se[fe]=!0,fe}function V(fe,ve){if(!n.call(fe,pe)){if(!ve)return;Object.defineProperty(fe,pe,{value:d.create()})}return fe[pe]}function ee(fe,ve){for(var Ie=0;Ie<ve;++Ie)fe[Ie]=Math.random()*255|0;return fe}function Oe(fe){if(typeof Uint8Array=="function"){var ve=new Uint8Array(fe);return typeof crypto<"u"?crypto.getRandomValues(ve):typeof msCrypto<"u"?msCrypto.getRandomValues(ve):ee(ve,fe),ve}return ee(new Array(fe),fe)}function le(){var fe=Oe(ne);fe[6]=fe[6]&79|64,fe[8]=fe[8]&191|128;for(var ve="",Ie=0;Ie<ne;++Ie){var De=fe[Ie];(Ie===4||Ie===6||Ie===8)&&(ve+="-"),De<16&&(ve+="0"),ve+=De.toString(16).toLowerCase()}return ve}}function It(ne){return ne.__=void 0,delete ne.__,ne}})})(qC||(qC={}));let ej=class{cla;ins;p1;p2;data;constructor(t,r,n,i,o){this.cla=t,this.ins=r,this.p1=n,this.p2=i,this.data=o??new Uint8Array}getRawApdu(){const t=Uint8Array.from([this.cla,this.ins,this.p1,this.p2,this.data.length]),r=new Uint8Array(t.length+this.data.length);return r.set(t,0),this.data.length>0&&r.set(this.data,t.length),r}};function GC(e){if(e.startsWith("0x")&&(e=e.slice(2)),e.length===0)return new Uint8Array;if(e.length%2!==0&&(e="0"+e),/^[0-9a-fA-F]*$/.test(e)===!1)return null;const t=e.match(/.{1,2}/g)?.map(r=>parseInt(r,16));return!t||t.some(isNaN)?null:new Uint8Array(t)}function dc(e,t=!0){return`${t?"0x":""}${Array.from(e,r=>r.toString(16).padStart(2,"0")).join("")}`}let Av=class{_tag="ValueOverflow";originalError;message;constructor(t,r=XI){this.message=`Value overflow for ${t}, max is ${r}`}},gd=class{_tag="DataOverflow";message;originalError;constructor(t,r=0){this.message=r===0?`this.data is already full (value: ${t})`:`this.data will overflow with "${t}", remaining bytes: ${r}`}},XC=class{_tag="HexaString";message;originalError;constructor(t){this.message=`Invalid encoded hexa string or length is null: ${t}`}};const tj=4294967295;let rj=class{constructor(t=tj){this.maxPayloadSize=t}data=new Uint8Array;errors=[];build=()=>this.data;tryBuild=()=>this.hasErrors()?void 0:this.data;add8BitUIntToData=t=>this.addNumberToData(t,8n,!1,!1);add16BitUIntToData=(t,r=!0)=>this.addNumberToData(t,16n,!1,r);add32BitUIntToData=(t,r=!0)=>this.addNumberToData(t,32n,!1,r);add64BitUIntToData=(t,r=!0)=>this.addNumberToData(t,64n,!1,r);add128BitUIntToData=(t,r=!0)=>this.addNumberToData(t,128n,!1,r);add256BitUIntToData=(t,r=!0)=>this.addNumberToData(t,256n,!1,r);add16BitIntToData=(t,r=!0)=>this.addNumberToData(t,16n,!0,r);add32BitIntToData=(t,r=!0)=>this.addNumberToData(t,32n,!0,r);add64BitIntToData=(t,r=!0)=>this.addNumberToData(t,64n,!0,r);add128BitIntToData=(t,r=!0)=>this.addNumberToData(t,128n,!0,r);add256BitIntToData=(t,r=!0)=>this.addNumberToData(t,256n,!0,r);addBufferToData=t=>this.hasEnoughLengthRemaining(t)?(this.data=Uint8Array.from([...this.data,...t]),this):(this.errors.push(new gd(t.toString())),this);addHexaStringToData=t=>{const r=GC(t);return r===null||r.length===0?(this.errors.push(new XC(t)),this):(this.addBufferToData(r),this)};addAsciiStringToData=t=>{const r=new TextEncoder().encode(t);return this.addBufferToData(r),this};encodeInLVFromHexa=t=>{const r=GC(t);return r===null||r.length===0?(this.errors.push(new XC(t)),this):this.hasEnoughLengthRemaining(r,!0)?(this.add8BitUIntToData(r.length),this.addBufferToData(r),this):(this.errors.push(new gd(t)),this)};encodeInLVFromBuffer=t=>this.hasEnoughLengthRemaining(t,!0)?(this.add8BitUIntToData(t.length),this.addBufferToData(t),this):(this.errors.push(new gd(t.toString())),this);encodeInLVFromAscii=t=>this.hasEnoughLengthRemaining(t,!0)?(this.add8BitUIntToData(t.length),this.addAsciiStringToData(t),this):(this.errors.push(new gd(t)),this);encodeInTLVFromAscii=(t,r)=>(this.add8BitUIntToData(t),this.encodeInLVFromAscii(r));encodeInTLVFromHexa=(t,r)=>(this.add8BitUIntToData(t),this.encodeInLVFromHexa(r));encodeInTLVFromBuffer=(t,r)=>(this.add8BitUIntToData(t),this.encodeInLVFromBuffer(r));encodeInTLVFromUInt8=(t,r)=>(this.add8BitUIntToData(t),this.add8BitUIntToData(1),this.add8BitUIntToData(r));encodeInTLVFromUInt16=(t,r,n=!0)=>(this.add8BitUIntToData(t),this.add8BitUIntToData(2),this.add16BitUIntToData(r,n));encodeInTLVFromUInt32=(t,r,n=!0)=>(this.add8BitUIntToData(t),this.add8BitUIntToData(4),this.add32BitUIntToData(r,n));encodeInTLVFromUInt64=(t,r,n=!0)=>(this.add8BitUIntToData(t),this.add8BitUIntToData(8),this.add64BitUIntToData(r,n));getAvailablePayloadLength=()=>this.maxPayloadSize-this.data.length;getErrors=()=>this.errors;hasErrors=()=>this.errors.length!==0;hasEnoughLengthRemaining=(t,r=!1)=>this.data.length+t.length+(r?1:0)<=this.maxPayloadSize;addNumberToData(t,r,n,i){let o=this.checkBoundsAndConvert(t,r,n);if(o===void 0)return this;const s=Number(r)/8,u=new Uint8Array(s);if(i)for(let c=s-1;c>=0;c--)u[c]=Number(o&0xffn),o>>=8n;else for(let c=0;c<s;c++)u[c]=Number(o&0xffn),o>>=8n;return this.addBufferToData(u)}checkBoundsAndConvert(t,r,n){if(typeof t=="number"){if(!Number.isInteger(t)||t>Number.MAX_SAFE_INTEGER){this.errors.push(new Av(t.toString()));return}t=BigInt(t)}if(n){const i=1n<<r-1n;if(t>=i||t<-i){this.errors.push(new Av(t.toString(),i-1n));return}if(t<0n){const o=(1n<<r)-1n;t=-t,t=(~t&o)+1n}}else{const i=1n<<r;if(t<0||t>=i){this.errors.push(new Av(t.toString(),i-1n));return}}return t}};const XI=255;let KI=class{_ins;_cla;_p1;p2;data=new rj(XI);constructor({ins:t,cla:r,p1:n,p2:i}){this._cla=r&255,this._ins=t&255,this._p1=n&255,this.p2=i&255}build=()=>new ej(this._cla,this._ins,this._p1,this.p2,this.data.build());add8BitUIntToData=t=>(this.data.add8BitUIntToData(t),this);add16BitUIntToData=t=>(this.data.add16BitUIntToData(t),this);add32BitUIntToData=t=>(this.data.add32BitUIntToData(t),this);add64BitUIntToData=(t,r=!0)=>(this.data.add64BitUIntToData(t,r),this);addBufferToData=t=>(this.data.addBufferToData(t),this);addHexaStringToData=t=>(this.data.addHexaStringToData(t),this);addAsciiStringToData=t=>(this.data.addAsciiStringToData(t),this);encodeInLVFromHexa=t=>(this.data.encodeInLVFromHexa(t),this);encodeInLVFromBuffer=t=>(this.data.encodeInLVFromBuffer(t),this);encodeInLVFromAscii=t=>(this.data.encodeInLVFromAscii(t),this);getAvailablePayloadLength=()=>this.data.getAvailablePayloadLength();getErrors=()=>this.data.getErrors()},nj=class{constructor(t){this.buffer=t}index=0;testMinimalLength(t){return t<=this.buffer.length-this.index}extract8BitUInt(){if(!this.outOfRange(1))return this.buffer[this.index++]}extract16BitUInt(t=!0){const r=this.extractNumber(16n,!1,t);return r===void 0?void 0:Number(r)}extract16BitInt(t=!0){const r=this.extractNumber(16n,!0,t);return r===void 0?void 0:Number(r)}extract32BitUInt(t=!0){const r=this.extractNumber(32n,!1,t);return r===void 0?void 0:Number(r)}extract32BitInt(t=!0){const r=this.extractNumber(32n,!0,t);return r===void 0?void 0:Number(r)}extract64BitUInt(t=!0){return this.extractNumber(64n,!1,t)}extract64BitInt(t=!0){return this.extractNumber(64n,!0,t)}extract128BitUInt(t=!0){return this.extractNumber(128n,!1,t)}extract128BitInt(t=!0){return this.extractNumber(128n,!0,t)}extract256BitUInt(t=!0){return this.extractNumber(256n,!1,t)}extract256BitInt(t=!0){return this.extractNumber(256n,!0,t)}extractFieldByLength(t){if(this.outOfRange(t))return;if(t===0)return new Uint8Array;const r=this.buffer.slice(this.index,this.index+t);return this.index+=t,r}extractFieldLVEncoded(){const t=this.extract8BitUInt();if(t===void 0)return;if(t===0)return new Uint8Array;const r=this.extractFieldByLength(t);return r===void 0&&this.index--,r}extractFieldTLVEncoded(){if(this.outOfRange(2))return;const t=this.index,r=this.extract8BitUInt(),n=this.extractFieldLVEncoded();if(r===void 0||n===void 0){this.index--;return}const i=this.index;return{tag:r,value:n,tlv:this.buffer.slice(t,i)}}encodeToHexaString(t,r=!1){if(t===void 0||t.length===0)return"";const n=dc(t);return r?n:n.slice(2)}encodeToString(t){let r="",n=0;if(!t)return r;for(;n<=t.length;){const i=t[n];i&&(r+=String.fromCharCode(i)),n++}return r}getCurrentIndex(){return this.index}resetIndex(){this.index=0}getUnparsedRemainingLength(){return this.buffer.length-this.index}outOfRange(t){return this.index+t>this.buffer.length}extractNumber(t,r,n){const i=Number(t)/8;if(this.outOfRange(i))return;let o=0n;if(n)for(let s=0;s<i;s++)o=o<<8n|BigInt(this.buffer[s+this.index]);else for(let s=i-1;s>=0;s--)o=o<<8n|BigInt(this.buffer[s+this.index]);if(r){const s=1n<<t-1n;o&s&&(o-=s<<1n)}return this.index+=i,o}},A1=class{parser;constructor(t){this.parser=new nj(t.data)}testMinimalLength=t=>this.parser.testMinimalLength(t);extract8BitUInt=()=>this.parser.extract8BitUInt();extract16BitUInt=()=>this.parser.extract16BitUInt();extract32BitUInt=()=>this.parser.extract32BitUInt();extractFieldByLength=t=>this.parser.extractFieldByLength(t);extractFieldLVEncoded=()=>this.parser.extractFieldLVEncoded();extractFieldTLVEncoded=()=>this.parser.extractFieldTLVEncoded();encodeToHexaString(t,r=!1){return r?this.parser.encodeToHexaString(t,!0):this.parser.encodeToHexaString(t,!1)}encodeToString=t=>this.parser.encodeToString(t);getUnparsedRemainingLength=()=>this.parser.getUnparsedRemainingLength()},ij=class{_tag="InvalidStatusWordError";originalError;constructor(t){this.originalError=new Error(t??"Invalid status word.")}},oj=class{_tag="InvalidResponseFormatError";originalError;constructor(t){this.originalError=new Error(t??"Invalid response format.")}};var aj=(e=>(e.Error="ERROR",e.Success="SUCCESS",e))(aj||{});function us({data:e,error:t}){return t?{status:"ERROR",error:t}:{status:"SUCCESS",data:e}}function sj(e){return e.status==="SUCCESS"}let $1=class hl{static isValidStatusCode(t){return t.length===2}static isSuccessResponse({statusCode:t}){return hl.isValidStatusCode(t)?t[0]===144&&t[1]===0:!1}static isLockedDeviceResponse({statusCode:t}){return hl.isValidStatusCode(t)?t[0]===85&&t[1]===21||t[0]===105&&t[1]===130||t[0]===83&&t[1]===3:!1}static isRefusedByUser({statusCode:t}){return hl.isValidStatusCode(t)?t[0]===85&&t[1]===1||t[0]===105&&t[1]===133:!1}static isAppAlreadyInstalled({statusCode:t}){return hl.isValidStatusCode(t)?t[0]===106&&t[1]===128||t[0]===106&&t[1]===129||t[0]===106&&t[1]===142||t[0]===106&&t[1]===143:!1}static isOutOfMemory({statusCode:t}){return hl.isValidStatusCode(t)?t[0]===106&&t[1]===132||t[0]===106&&t[1]===133||t[0]===81&&t[1]===2||t[0]===81&&t[1]===3:!1}static isApduThatTriggersDisconnection(t){const r=new Map;return r.set("openApp",new Uint8Array([224,216,0,0])),r.set("closeApp",new Uint8Array([176,167,0,0])),Array.from(r.values()).some(n=>{for(let i=0;i<4;i++)if(n[i]!==t[i])return!1;return!0})}},lj=class{_tag;originalError;errorCode;message;constructor({tag:t,errorCode:r,originalError:n,message:i}){this._tag=t,this.originalError=n,this.errorCode=r,this.message=i??"An error occured during device exchange."}},uj=class{_tag="UnknownDeviceExchangeError";originalError;message;constructor(t){this.originalError=t,this.message="Unexpected device exchange error happened."}};const cj=(e,t)=>Object.keys(t).includes(e);let fj=class extends lj{constructor(t){super({tag:"GlobalCommandError",...t})}};const KC={5515:{message:"Device is locked.",tag:"DeviceLockedError"},5501:{message:"Action refused on device.",tag:"ActionRefusedError"},5502:{message:"Pin is not set",tag:"PinNotSetError"},5223:{message:"Device internal error",tag:"DeviceInternalError"},"6e00":{message:"CLA not supported",tag:"DeviceInternalError"},"6d00":{message:"INS not supported",tag:"DeviceInternalError"}};let YI=class{static handle(t){const r=new A1(t).encodeToHexaString(t.statusCode);return cj(r,KC)?new fj({...KC[r],errorCode:r}):new uj({message:"UnknownError",errorCode:r})}},YC=class{name="getAppAndVersion";args=void 0;getApdu(){const t={cla:176,ins:1,p1:0,p2:0};return new KI(t).build()}parseResponse(t){if(!$1.isSuccessResponse(t))return us({error:YI.handle(t)});const r=new A1(t);if(r.extract8BitUInt()!==1)return us({error:new oj("getAppAndVersion: format not supported")});const n=r.encodeToString(r.extractFieldLVEncoded()),i=r.encodeToString(r.extractFieldLVEncoded());if(r.getUnparsedRemainingLength()===0)return us({data:{name:n,version:i}});const o=r.extractFieldLVEncoded();return us({data:{name:n,version:i,flags:o}})}};var dj=(e=>(e[e.BATTERY_PERCENTAGE=0]="BATTERY_PERCENTAGE",e[e.BATTERY_VOLTAGE=1]="BATTERY_VOLTAGE",e[e.BATTERY_TEMPERATURE=2]="BATTERY_TEMPERATURE",e[e.BATTERY_CURRENT=3]="BATTERY_CURRENT",e[e.BATTERY_FLAGS=4]="BATTERY_FLAGS",e))(dj||{}),pj=(e=>(e[e.NONE=0]="NONE",e[e.USB=1]="USB",e[e.QI=2]="QI",e))(pj||{}),vd={exports:{}},$v,JC;function Hp(){if(JC)return $v;JC=1;const e="2.0.0",t=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,n=16,i=t-6;return $v={MAX_LENGTH:t,MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},$v}var Iv,QC;function Wp(){if(QC)return Iv;QC=1;var e={};return Iv=typeof process=="object"&&e&&e.NODE_DEBUG&&/\bsemver\b/i.test(e.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{},Iv}var ZC;function kc(){return ZC||(ZC=1,(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:i}=Hp(),o=Wp();t=e.exports={};const s=t.re=[],u=t.safeRe=[],c=t.src=[],f=t.safeSrc=[],d=t.t={};let g=0;const h="[a-zA-Z0-9-]",b=[["\\s",1],["\\d",i],[h,n]],v=y=>{for(const[E,x]of b)y=y.split(`${E}*`).join(`${E}{0,${x}}`).split(`${E}+`).join(`${E}{1,${x}}`);return y},S=(y,E,x)=>{const T=v(E),A=g++;o(y,A,E),d[y]=A,c[A]=E,f[A]=T,s[A]=new RegExp(E,x?"g":void 0),u[A]=new RegExp(T,x?"g":void 0)};S("NUMERICIDENTIFIER","0|[1-9]\\d*"),S("NUMERICIDENTIFIERLOOSE","\\d+"),S("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),S("MAINVERSION",`(${c[d.NUMERICIDENTIFIER]})\\.(${c[d.NUMERICIDENTIFIER]})\\.(${c[d.NUMERICIDENTIFIER]})`),S("MAINVERSIONLOOSE",`(${c[d.NUMERICIDENTIFIERLOOSE]})\\.(${c[d.NUMERICIDENTIFIERLOOSE]})\\.(${c[d.NUMERICIDENTIFIERLOOSE]})`),S("PRERELEASEIDENTIFIER",`(?:${c[d.NONNUMERICIDENTIFIER]}|${c[d.NUMERICIDENTIFIER]})`),S("PRERELEASEIDENTIFIERLOOSE",`(?:${c[d.NONNUMERICIDENTIFIER]}|${c[d.NUMERICIDENTIFIERLOOSE]})`),S("PRERELEASE",`(?:-(${c[d.PRERELEASEIDENTIFIER]}(?:\\.${c[d.PRERELEASEIDENTIFIER]})*))`),S("PRERELEASELOOSE",`(?:-?(${c[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[d.PRERELEASEIDENTIFIERLOOSE]})*))`),S("BUILDIDENTIFIER",`${h}+`),S("BUILD",`(?:\\+(${c[d.BUILDIDENTIFIER]}(?:\\.${c[d.BUILDIDENTIFIER]})*))`),S("FULLPLAIN",`v?${c[d.MAINVERSION]}${c[d.PRERELEASE]}?${c[d.BUILD]}?`),S("FULL",`^${c[d.FULLPLAIN]}$`),S("LOOSEPLAIN",`[v=\\s]*${c[d.MAINVERSIONLOOSE]}${c[d.PRERELEASELOOSE]}?${c[d.BUILD]}?`),S("LOOSE",`^${c[d.LOOSEPLAIN]}$`),S("GTLT","((?:<|>)?=?)"),S("XRANGEIDENTIFIERLOOSE",`${c[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),S("XRANGEIDENTIFIER",`${c[d.NUMERICIDENTIFIER]}|x|X|\\*`),S("XRANGEPLAIN",`[v=\\s]*(${c[d.XRANGEIDENTIFIER]})(?:\\.(${c[d.XRANGEIDENTIFIER]})(?:\\.(${c[d.XRANGEIDENTIFIER]})(?:${c[d.PRERELEASE]})?${c[d.BUILD]}?)?)?`),S("XRANGEPLAINLOOSE",`[v=\\s]*(${c[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[d.XRANGEIDENTIFIERLOOSE]})(?:${c[d.PRERELEASELOOSE]})?${c[d.BUILD]}?)?)?`),S("XRANGE",`^${c[d.GTLT]}\\s*${c[d.XRANGEPLAIN]}$`),S("XRANGELOOSE",`^${c[d.GTLT]}\\s*${c[d.XRANGEPLAINLOOSE]}$`),S("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),S("COERCE",`${c[d.COERCEPLAIN]}(?:$|[^\\d])`),S("COERCEFULL",c[d.COERCEPLAIN]+`(?:${c[d.PRERELEASE]})?(?:${c[d.BUILD]})?(?:$|[^\\d])`),S("COERCERTL",c[d.COERCE],!0),S("COERCERTLFULL",c[d.COERCEFULL],!0),S("LONETILDE","(?:~>?)"),S("TILDETRIM",`(\\s*)${c[d.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",S("TILDE",`^${c[d.LONETILDE]}${c[d.XRANGEPLAIN]}$`),S("TILDELOOSE",`^${c[d.LONETILDE]}${c[d.XRANGEPLAINLOOSE]}$`),S("LONECARET","(?:\\^)"),S("CARETTRIM",`(\\s*)${c[d.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",S("CARET",`^${c[d.LONECARET]}${c[d.XRANGEPLAIN]}$`),S("CARETLOOSE",`^${c[d.LONECARET]}${c[d.XRANGEPLAINLOOSE]}$`),S("COMPARATORLOOSE",`^${c[d.GTLT]}\\s*(${c[d.LOOSEPLAIN]})$|^$`),S("COMPARATOR",`^${c[d.GTLT]}\\s*(${c[d.FULLPLAIN]})$|^$`),S("COMPARATORTRIM",`(\\s*)${c[d.GTLT]}\\s*(${c[d.LOOSEPLAIN]}|${c[d.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",S("HYPHENRANGE",`^\\s*(${c[d.XRANGEPLAIN]})\\s+-\\s+(${c[d.XRANGEPLAIN]})\\s*$`),S("HYPHENRANGELOOSE",`^\\s*(${c[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[d.XRANGEPLAINLOOSE]})\\s*$`),S("STAR","(<|>)?=?\\s*\\*"),S("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),S("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(vd,vd.exports)),vd.exports}var Pv,eR;function I1(){if(eR)return Pv;eR=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return Pv=n=>n?typeof n!="object"?e:n:t,Pv}var kv,tR;function JI(){if(tR)return kv;tR=1;const e=/^[0-9]+$/,t=(n,i)=>{const o=e.test(n),s=e.test(i);return o&&s&&(n=+n,i=+i),n===i?0:o&&!s?-1:s&&!o?1:n<i?-1:1};return kv={compareIdentifiers:t,rcompareIdentifiers:(n,i)=>t(i,n)},kv}var Mv,rR;function vn(){if(rR)return Mv;rR=1;const e=Wp(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:r}=Hp(),{safeRe:n,t:i}=kc(),o=I1(),{compareIdentifiers:s}=JI();class u{constructor(f,d){if(d=o(d),f instanceof u){if(f.loose===!!d.loose&&f.includePrerelease===!!d.includePrerelease)return f;f=f.version}else if(typeof f!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof f}".`);if(f.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",f,d),this.options=d,this.loose=!!d.loose,this.includePrerelease=!!d.includePrerelease;const g=f.trim().match(d.loose?n[i.LOOSE]:n[i.FULL]);if(!g)throw new TypeError(`Invalid Version: ${f}`);if(this.raw=f,this.major=+g[1],this.minor=+g[2],this.patch=+g[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");g[4]?this.prerelease=g[4].split(".").map(h=>{if(/^[0-9]+$/.test(h)){const b=+h;if(b>=0&&b<r)return b}return h}):this.prerelease=[],this.build=g[5]?g[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(f){if(e("SemVer.compare",this.version,this.options,f),!(f instanceof u)){if(typeof f=="string"&&f===this.version)return 0;f=new u(f,this.options)}return f.version===this.version?0:this.compareMain(f)||this.comparePre(f)}compareMain(f){return f instanceof u||(f=new u(f,this.options)),s(this.major,f.major)||s(this.minor,f.minor)||s(this.patch,f.patch)}comparePre(f){if(f instanceof u||(f=new u(f,this.options)),this.prerelease.length&&!f.prerelease.length)return-1;if(!this.prerelease.length&&f.prerelease.length)return 1;if(!this.prerelease.length&&!f.prerelease.length)return 0;let d=0;do{const g=this.prerelease[d],h=f.prerelease[d];if(e("prerelease compare",d,g,h),g===void 0&&h===void 0)return 0;if(h===void 0)return 1;if(g===void 0)return-1;if(g===h)continue;return s(g,h)}while(++d)}compareBuild(f){f instanceof u||(f=new u(f,this.options));let d=0;do{const g=this.build[d],h=f.build[d];if(e("build compare",d,g,h),g===void 0&&h===void 0)return 0;if(h===void 0)return 1;if(g===void 0)return-1;if(g===h)continue;return s(g,h)}while(++d)}inc(f,d,g){if(f.startsWith("pre")){if(!d&&g===!1)throw new Error("invalid increment argument: identifier is empty");if(d){const h=`-${d}`.match(this.options.loose?n[i.PRERELEASELOOSE]:n[i.PRERELEASE]);if(!h||h[1]!==d)throw new Error(`invalid identifier: ${d}`)}}switch(f){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",d,g);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",d,g);break;case"prepatch":this.prerelease.length=0,this.inc("patch",d,g),this.inc("pre",d,g);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",d,g),this.inc("pre",d,g);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const h=Number(g)?1:0;if(this.prerelease.length===0)this.prerelease=[h];else{let b=this.prerelease.length;for(;--b>=0;)typeof this.prerelease[b]=="number"&&(this.prerelease[b]++,b=-2);if(b===-1){if(d===this.prerelease.join(".")&&g===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(h)}}if(d){let b=[d,h];g===!1&&(b=[d]),s(this.prerelease[0],d)===0?isNaN(this.prerelease[1])&&(this.prerelease=b):this.prerelease=b}break}default:throw new Error(`invalid increment argument: ${f}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return Mv=u,Mv}var Dv,nR;function ql(){if(nR)return Dv;nR=1;const e=vn();return Dv=(r,n,i=!1)=>{if(r instanceof e)return r;try{return new e(r,n)}catch(o){if(!i)return null;throw o}},Dv}var Lv,iR;function hj(){if(iR)return Lv;iR=1;const e=ql();return Lv=(r,n)=>{const i=e(r,n);return i?i.version:null},Lv}var Fv,oR;function gj(){if(oR)return Fv;oR=1;const e=ql();return Fv=(r,n)=>{const i=e(r.trim().replace(/^[=v]+/,""),n);return i?i.version:null},Fv}var Nv,aR;function vj(){if(aR)return Nv;aR=1;const e=vn();return Nv=(r,n,i,o,s)=>{typeof i=="string"&&(s=o,o=i,i=void 0);try{return new e(r instanceof e?r.version:r,i).inc(n,o,s).version}catch{return null}},Nv}var jv,sR;function mj(){if(sR)return jv;sR=1;const e=ql();return jv=(r,n)=>{const i=e(r,null,!0),o=e(n,null,!0),s=i.compare(o);if(s===0)return null;const u=s>0,c=u?i:o,f=u?o:i,d=!!c.prerelease.length;if(!!f.prerelease.length&&!d){if(!f.patch&&!f.minor)return"major";if(f.compareMain(c)===0)return f.minor&&!f.patch?"minor":"patch"}const h=d?"pre":"";return i.major!==o.major?h+"major":i.minor!==o.minor?h+"minor":i.patch!==o.patch?h+"patch":"prerelease"},jv}var zv,lR;function yj(){if(lR)return zv;lR=1;const e=vn();return zv=(r,n)=>new e(r,n).major,zv}var Bv,uR;function bj(){if(uR)return Bv;uR=1;const e=vn();return Bv=(r,n)=>new e(r,n).minor,Bv}var Vv,cR;function Sj(){if(cR)return Vv;cR=1;const e=vn();return Vv=(r,n)=>new e(r,n).patch,Vv}var Uv,fR;function wj(){if(fR)return Uv;fR=1;const e=ql();return Uv=(r,n)=>{const i=e(r,n);return i&&i.prerelease.length?i.prerelease:null},Uv}var Hv,dR;function oo(){if(dR)return Hv;dR=1;const e=vn();return Hv=(r,n,i)=>new e(r,i).compare(new e(n,i)),Hv}var Wv,pR;function xj(){if(pR)return Wv;pR=1;const e=oo();return Wv=(r,n,i)=>e(n,r,i),Wv}var qv,hR;function Ej(){if(hR)return qv;hR=1;const e=oo();return qv=(r,n)=>e(r,n,!0),qv}var Gv,gR;function P1(){if(gR)return Gv;gR=1;const e=vn();return Gv=(r,n,i)=>{const o=new e(r,i),s=new e(n,i);return o.compare(s)||o.compareBuild(s)},Gv}var Xv,vR;function Cj(){if(vR)return Xv;vR=1;const e=P1();return Xv=(r,n)=>r.sort((i,o)=>e(i,o,n)),Xv}var Kv,mR;function Rj(){if(mR)return Kv;mR=1;const e=P1();return Kv=(r,n)=>r.sort((i,o)=>e(o,i,n)),Kv}var Yv,yR;function qp(){if(yR)return Yv;yR=1;const e=oo();return Yv=(r,n,i)=>e(r,n,i)>0,Yv}var Jv,bR;function k1(){if(bR)return Jv;bR=1;const e=oo();return Jv=(r,n,i)=>e(r,n,i)<0,Jv}var Qv,SR;function QI(){if(SR)return Qv;SR=1;const e=oo();return Qv=(r,n,i)=>e(r,n,i)===0,Qv}var Zv,wR;function ZI(){if(wR)return Zv;wR=1;const e=oo();return Zv=(r,n,i)=>e(r,n,i)!==0,Zv}var em,xR;function M1(){if(xR)return em;xR=1;const e=oo();return em=(r,n,i)=>e(r,n,i)>=0,em}var tm,ER;function D1(){if(ER)return tm;ER=1;const e=oo();return tm=(r,n,i)=>e(r,n,i)<=0,tm}var rm,CR;function e2(){if(CR)return rm;CR=1;const e=QI(),t=ZI(),r=qp(),n=M1(),i=k1(),o=D1();return rm=(u,c,f,d)=>{switch(c){case"===":return typeof u=="object"&&(u=u.version),typeof f=="object"&&(f=f.version),u===f;case"!==":return typeof u=="object"&&(u=u.version),typeof f=="object"&&(f=f.version),u!==f;case"":case"=":case"==":return e(u,f,d);case"!=":return t(u,f,d);case">":return r(u,f,d);case">=":return n(u,f,d);case"<":return i(u,f,d);case"<=":return o(u,f,d);default:throw new TypeError(`Invalid operator: ${c}`)}},rm}var nm,RR;function _j(){if(RR)return nm;RR=1;const e=vn(),t=ql(),{safeRe:r,t:n}=kc();return nm=(o,s)=>{if(o instanceof e)return o;if(typeof o=="number"&&(o=String(o)),typeof o!="string")return null;s=s||{};let u=null;if(!s.rtl)u=o.match(s.includePrerelease?r[n.COERCEFULL]:r[n.COERCE]);else{const b=s.includePrerelease?r[n.COERCERTLFULL]:r[n.COERCERTL];let v;for(;(v=b.exec(o))&&(!u||u.index+u[0].length!==o.length);)(!u||v.index+v[0].length!==u.index+u[0].length)&&(u=v),b.lastIndex=v.index+v[1].length+v[2].length;b.lastIndex=-1}if(u===null)return null;const c=u[2],f=u[3]||"0",d=u[4]||"0",g=s.includePrerelease&&u[5]?`-${u[5]}`:"",h=s.includePrerelease&&u[6]?`+${u[6]}`:"";return t(`${c}.${f}.${d}${g}${h}`,s)},nm}var im,_R;function Oj(){if(_R)return im;_R=1;class e{constructor(){this.max=1e3,this.map=new Map}get(r){const n=this.map.get(r);if(n!==void 0)return this.map.delete(r),this.map.set(r,n),n}delete(r){return this.map.delete(r)}set(r,n){if(!this.delete(r)&&n!==void 0){if(this.map.size>=this.max){const o=this.map.keys().next().value;this.delete(o)}this.map.set(r,n)}return this}}return im=e,im}var om,OR;function ao(){if(OR)return om;OR=1;const e=/\s+/g;class t{constructor(j,H){if(H=i(H),j instanceof t)return j.loose===!!H.loose&&j.includePrerelease===!!H.includePrerelease?j:new t(j.raw,H);if(j instanceof o)return this.raw=j.value,this.set=[[j]],this.formatted=void 0,this;if(this.options=H,this.loose=!!H.loose,this.includePrerelease=!!H.includePrerelease,this.raw=j.trim().replace(e," "),this.set=this.raw.split("||").map(X=>this.parseRange(X.trim())).filter(X=>X.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const X=this.set[0];if(this.set=this.set.filter(M=>!S(M[0])),this.set.length===0)this.set=[X];else if(this.set.length>1){for(const M of this.set)if(M.length===1&&y(M[0])){this.set=[M];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let j=0;j<this.set.length;j++){j>0&&(this.formatted+="||");const H=this.set[j];for(let X=0;X<H.length;X++)X>0&&(this.formatted+=" "),this.formatted+=H[X].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(j){const X=((this.options.includePrerelease&&b)|(this.options.loose&&v))+":"+j,M=n.get(X);if(M)return M;const Q=this.options.loose,W=Q?c[f.HYPHENRANGELOOSE]:c[f.HYPHENRANGE];j=j.replace(W,z(this.options.includePrerelease)),s("hyphen replace",j),j=j.replace(c[f.COMPARATORTRIM],d),s("comparator trim",j),j=j.replace(c[f.TILDETRIM],g),s("tilde trim",j),j=j.replace(c[f.CARETTRIM],h),s("caret trim",j);let D=j.split(" ").map(te=>x(te,this.options)).join(" ").split(/\s+/).map(te=>q(te,this.options));Q&&(D=D.filter(te=>(s("loose invalid filter",te,this.options),!!te.match(c[f.COMPARATORLOOSE])))),s("range list",D);const P=new Map,G=D.map(te=>new o(te,this.options));for(const te of G){if(S(te))return[te];P.set(te.value,te)}P.size>1&&P.has("")&&P.delete("");const Z=[...P.values()];return n.set(X,Z),Z}intersects(j,H){if(!(j instanceof t))throw new TypeError("a Range is required");return this.set.some(X=>E(X,H)&&j.set.some(M=>E(M,H)&&X.every(Q=>M.every(W=>Q.intersects(W,H)))))}test(j){if(!j)return!1;if(typeof j=="string")try{j=new u(j,this.options)}catch{return!1}for(let H=0;H<this.set.length;H++)if(B(this.set[H],j,this.options))return!0;return!1}}om=t;const r=Oj(),n=new r,i=I1(),o=Gp(),s=Wp(),u=vn(),{safeRe:c,t:f,comparatorTrimReplace:d,tildeTrimReplace:g,caretTrimReplace:h}=kc(),{FLAG_INCLUDE_PRERELEASE:b,FLAG_LOOSE:v}=Hp(),S=N=>N.value==="<0.0.0-0",y=N=>N.value==="",E=(N,j)=>{let H=!0;const X=N.slice();let M=X.pop();for(;H&&X.length;)H=X.every(Q=>M.intersects(Q,j)),M=X.pop();return H},x=(N,j)=>(s("comp",N,j),N=$(N,j),s("caret",N),N=A(N,j),s("tildes",N),N=I(N,j),s("xrange",N),N=F(N,j),s("stars",N),N),T=N=>!N||N.toLowerCase()==="x"||N==="*",A=(N,j)=>N.trim().split(/\s+/).map(H=>R(H,j)).join(" "),R=(N,j)=>{const H=j.loose?c[f.TILDELOOSE]:c[f.TILDE];return N.replace(H,(X,M,Q,W,D)=>{s("tilde",N,X,M,Q,W,D);let P;return T(M)?P="":T(Q)?P=`>=${M}.0.0 <${+M+1}.0.0-0`:T(W)?P=`>=${M}.${Q}.0 <${M}.${+Q+1}.0-0`:D?(s("replaceTilde pr",D),P=`>=${M}.${Q}.${W}-${D} <${M}.${+Q+1}.0-0`):P=`>=${M}.${Q}.${W} <${M}.${+Q+1}.0-0`,s("tilde return",P),P})},$=(N,j)=>N.trim().split(/\s+/).map(H=>O(H,j)).join(" "),O=(N,j)=>{s("caret",N,j);const H=j.loose?c[f.CARETLOOSE]:c[f.CARET],X=j.includePrerelease?"-0":"";return N.replace(H,(M,Q,W,D,P)=>{s("caret",N,M,Q,W,D,P);let G;return T(Q)?G="":T(W)?G=`>=${Q}.0.0${X} <${+Q+1}.0.0-0`:T(D)?Q==="0"?G=`>=${Q}.${W}.0${X} <${Q}.${+W+1}.0-0`:G=`>=${Q}.${W}.0${X} <${+Q+1}.0.0-0`:P?(s("replaceCaret pr",P),Q==="0"?W==="0"?G=`>=${Q}.${W}.${D}-${P} <${Q}.${W}.${+D+1}-0`:G=`>=${Q}.${W}.${D}-${P} <${Q}.${+W+1}.0-0`:G=`>=${Q}.${W}.${D}-${P} <${+Q+1}.0.0-0`):(s("no pr"),Q==="0"?W==="0"?G=`>=${Q}.${W}.${D}${X} <${Q}.${W}.${+D+1}-0`:G=`>=${Q}.${W}.${D}${X} <${Q}.${+W+1}.0-0`:G=`>=${Q}.${W}.${D} <${+Q+1}.0.0-0`),s("caret return",G),G})},I=(N,j)=>(s("replaceXRanges",N,j),N.split(/\s+/).map(H=>L(H,j)).join(" ")),L=(N,j)=>{N=N.trim();const H=j.loose?c[f.XRANGELOOSE]:c[f.XRANGE];return N.replace(H,(X,M,Q,W,D,P)=>{s("xRange",N,X,M,Q,W,D,P);const G=T(Q),Z=G||T(W),te=Z||T(D),K=te;return M==="="&&K&&(M=""),P=j.includePrerelease?"-0":"",G?M===">"||M==="<"?X="<0.0.0-0":X="*":M&&K?(Z&&(W=0),D=0,M===">"?(M=">=",Z?(Q=+Q+1,W=0,D=0):(W=+W+1,D=0)):M==="<="&&(M="<",Z?Q=+Q+1:W=+W+1),M==="<"&&(P="-0"),X=`${M+Q}.${W}.${D}${P}`):Z?X=`>=${Q}.0.0${P} <${+Q+1}.0.0-0`:te&&(X=`>=${Q}.${W}.0${P} <${Q}.${+W+1}.0-0`),s("xRange return",X),X})},F=(N,j)=>(s("replaceStars",N,j),N.trim().replace(c[f.STAR],"")),q=(N,j)=>(s("replaceGTE0",N,j),N.trim().replace(c[j.includePrerelease?f.GTE0PRE:f.GTE0],"")),z=N=>(j,H,X,M,Q,W,D,P,G,Z,te,K)=>(T(X)?H="":T(M)?H=`>=${X}.0.0${N?"-0":""}`:T(Q)?H=`>=${X}.${M}.0${N?"-0":""}`:W?H=`>=${H}`:H=`>=${H}${N?"-0":""}`,T(G)?P="":T(Z)?P=`<${+G+1}.0.0-0`:T(te)?P=`<${G}.${+Z+1}.0-0`:K?P=`<=${G}.${Z}.${te}-${K}`:N?P=`<${G}.${Z}.${+te+1}-0`:P=`<=${P}`,`${H} ${P}`.trim()),B=(N,j,H)=>{for(let X=0;X<N.length;X++)if(!N[X].test(j))return!1;if(j.prerelease.length&&!H.includePrerelease){for(let X=0;X<N.length;X++)if(s(N[X].semver),N[X].semver!==o.ANY&&N[X].semver.prerelease.length>0){const M=N[X].semver;if(M.major===j.major&&M.minor===j.minor&&M.patch===j.patch)return!0}return!1}return!0};return om}var am,TR;function Gp(){if(TR)return am;TR=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(d,g){if(g=r(g),d instanceof t){if(d.loose===!!g.loose)return d;d=d.value}d=d.trim().split(/\s+/).join(" "),s("comparator",d,g),this.options=g,this.loose=!!g.loose,this.parse(d),this.semver===e?this.value="":this.value=this.operator+this.semver.version,s("comp",this)}parse(d){const g=this.options.loose?n[i.COMPARATORLOOSE]:n[i.COMPARATOR],h=d.match(g);if(!h)throw new TypeError(`Invalid comparator: ${d}`);this.operator=h[1]!==void 0?h[1]:"",this.operator==="="&&(this.operator=""),h[2]?this.semver=new u(h[2],this.options.loose):this.semver=e}toString(){return this.value}test(d){if(s("Comparator.test",d,this.options.loose),this.semver===e||d===e)return!0;if(typeof d=="string")try{d=new u(d,this.options)}catch{return!1}return o(d,this.operator,this.semver,this.options)}intersects(d,g){if(!(d instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new c(d.value,g).test(this.value):d.operator===""?d.value===""?!0:new c(this.value,g).test(d.semver):(g=r(g),g.includePrerelease&&(this.value==="<0.0.0-0"||d.value==="<0.0.0-0")||!g.includePrerelease&&(this.value.startsWith("<0.0.0")||d.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&d.operator.startsWith(">")||this.operator.startsWith("<")&&d.operator.startsWith("<")||this.semver.version===d.semver.version&&this.operator.includes("=")&&d.operator.includes("=")||o(this.semver,"<",d.semver,g)&&this.operator.startsWith(">")&&d.operator.startsWith("<")||o(this.semver,">",d.semver,g)&&this.operator.startsWith("<")&&d.operator.startsWith(">")))}}am=t;const r=I1(),{safeRe:n,t:i}=kc(),o=e2(),s=Wp(),u=vn(),c=ao();return am}var sm,AR;function Xp(){if(AR)return sm;AR=1;const e=ao();return sm=(r,n,i)=>{try{n=new e(n,i)}catch{return!1}return n.test(r)},sm}var lm,$R;function Tj(){if($R)return lm;$R=1;const e=ao();return lm=(r,n)=>new e(r,n).set.map(i=>i.map(o=>o.value).join(" ").trim().split(" ")),lm}var um,IR;function Aj(){if(IR)return um;IR=1;const e=vn(),t=ao();return um=(n,i,o)=>{let s=null,u=null,c=null;try{c=new t(i,o)}catch{return null}return n.forEach(f=>{c.test(f)&&(!s||u.compare(f)===-1)&&(s=f,u=new e(s,o))}),s},um}var cm,PR;function $j(){if(PR)return cm;PR=1;const e=vn(),t=ao();return cm=(n,i,o)=>{let s=null,u=null,c=null;try{c=new t(i,o)}catch{return null}return n.forEach(f=>{c.test(f)&&(!s||u.compare(f)===1)&&(s=f,u=new e(s,o))}),s},cm}var fm,kR;function Ij(){if(kR)return fm;kR=1;const e=vn(),t=ao(),r=qp();return fm=(i,o)=>{i=new t(i,o);let s=new e("0.0.0");if(i.test(s)||(s=new e("0.0.0-0"),i.test(s)))return s;s=null;for(let u=0;u<i.set.length;++u){const c=i.set[u];let f=null;c.forEach(d=>{const g=new e(d.semver.version);switch(d.operator){case">":g.prerelease.length===0?g.patch++:g.prerelease.push(0),g.raw=g.format();case"":case">=":(!f||r(g,f))&&(f=g);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${d.operator}`)}}),f&&(!s||r(s,f))&&(s=f)}return s&&i.test(s)?s:null},fm}var dm,MR;function Pj(){if(MR)return dm;MR=1;const e=ao();return dm=(r,n)=>{try{return new e(r,n).range||"*"}catch{return null}},dm}var pm,DR;function L1(){if(DR)return pm;DR=1;const e=vn(),t=Gp(),{ANY:r}=t,n=ao(),i=Xp(),o=qp(),s=k1(),u=D1(),c=M1();return pm=(d,g,h,b)=>{d=new e(d,b),g=new n(g,b);let v,S,y,E,x;switch(h){case">":v=o,S=u,y=s,E=">",x=">=";break;case"<":v=s,S=c,y=o,E="<",x="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i(d,g,b))return!1;for(let T=0;T<g.set.length;++T){const A=g.set[T];let R=null,$=null;if(A.forEach(O=>{O.semver===r&&(O=new t(">=0.0.0")),R=R||O,$=$||O,v(O.semver,R.semver,b)?R=O:y(O.semver,$.semver,b)&&($=O)}),R.operator===E||R.operator===x||(!$.operator||$.operator===E)&&S(d,$.semver))return!1;if($.operator===x&&y(d,$.semver))return!1}return!0},pm}var hm,LR;function kj(){if(LR)return hm;LR=1;const e=L1();return hm=(r,n,i)=>e(r,n,">",i),hm}var gm,FR;function Mj(){if(FR)return gm;FR=1;const e=L1();return gm=(r,n,i)=>e(r,n,"<",i),gm}var vm,NR;function Dj(){if(NR)return vm;NR=1;const e=ao();return vm=(r,n,i)=>(r=new e(r,i),n=new e(n,i),r.intersects(n,i)),vm}var mm,jR;function Lj(){if(jR)return mm;jR=1;const e=Xp(),t=oo();return mm=(r,n,i)=>{const o=[];let s=null,u=null;const c=r.sort((h,b)=>t(h,b,i));for(const h of c)e(h,n,i)?(u=h,s||(s=h)):(u&&o.push([s,u]),u=null,s=null);s&&o.push([s,null]);const f=[];for(const[h,b]of o)h===b?f.push(h):!b&&h===c[0]?f.push("*"):b?h===c[0]?f.push(`<=${b}`):f.push(`${h} - ${b}`):f.push(`>=${h}`);const d=f.join(" || "),g=typeof n.raw=="string"?n.raw:String(n);return d.length<g.length?d:n},mm}var ym,zR;function Fj(){if(zR)return ym;zR=1;const e=ao(),t=Gp(),{ANY:r}=t,n=Xp(),i=oo(),o=(g,h,b={})=>{if(g===h)return!0;g=new e(g,b),h=new e(h,b);let v=!1;e:for(const S of g.set){for(const y of h.set){const E=c(S,y,b);if(v=v||E!==null,E)continue e}if(v)return!1}return!0},s=[new t(">=0.0.0-0")],u=[new t(">=0.0.0")],c=(g,h,b)=>{if(g===h)return!0;if(g.length===1&&g[0].semver===r){if(h.length===1&&h[0].semver===r)return!0;b.includePrerelease?g=s:g=u}if(h.length===1&&h[0].semver===r){if(b.includePrerelease)return!0;h=u}const v=new Set;let S,y;for(const I of g)I.operator===">"||I.operator===">="?S=f(S,I,b):I.operator==="<"||I.operator==="<="?y=d(y,I,b):v.add(I.semver);if(v.size>1)return null;let E;if(S&&y){if(E=i(S.semver,y.semver,b),E>0)return null;if(E===0&&(S.operator!==">="||y.operator!=="<="))return null}for(const I of v){if(S&&!n(I,String(S),b)||y&&!n(I,String(y),b))return null;for(const L of h)if(!n(I,String(L),b))return!1;return!0}let x,T,A,R,$=y&&!b.includePrerelease&&y.semver.prerelease.length?y.semver:!1,O=S&&!b.includePrerelease&&S.semver.prerelease.length?S.semver:!1;$&&$.prerelease.length===1&&y.operator==="<"&&$.prerelease[0]===0&&($=!1);for(const I of h){if(R=R||I.operator===">"||I.operator===">=",A=A||I.operator==="<"||I.operator==="<=",S){if(O&&I.semver.prerelease&&I.semver.prerelease.length&&I.semver.major===O.major&&I.semver.minor===O.minor&&I.semver.patch===O.patch&&(O=!1),I.operator===">"||I.operator===">="){if(x=f(S,I,b),x===I&&x!==S)return!1}else if(S.operator===">="&&!n(S.semver,String(I),b))return!1}if(y){if($&&I.semver.prerelease&&I.semver.prerelease.length&&I.semver.major===$.major&&I.semver.minor===$.minor&&I.semver.patch===$.patch&&($=!1),I.operator==="<"||I.operator==="<="){if(T=d(y,I,b),T===I&&T!==y)return!1}else if(y.operator==="<="&&!n(y.semver,String(I),b))return!1}if(!I.operator&&(y||S)&&E!==0)return!1}return!(S&&A&&!y&&E!==0||y&&R&&!S&&E!==0||O||$)},f=(g,h,b)=>{if(!g)return h;const v=i(g.semver,h.semver,b);return v>0?g:v<0||h.operator===">"&&g.operator===">="?h:g},d=(g,h,b)=>{if(!g)return h;const v=i(g.semver,h.semver,b);return v<0?g:v>0||h.operator==="<"&&g.operator==="<="?h:g};return ym=o,ym}var bm,BR;function Nj(){if(BR)return bm;BR=1;const e=kc(),t=Hp(),r=vn(),n=JI(),i=ql(),o=hj(),s=gj(),u=vj(),c=mj(),f=yj(),d=bj(),g=Sj(),h=wj(),b=oo(),v=xj(),S=Ej(),y=P1(),E=Cj(),x=Rj(),T=qp(),A=k1(),R=QI(),$=ZI(),O=M1(),I=D1(),L=e2(),F=_j(),q=Gp(),z=ao(),B=Xp(),N=Tj(),j=Aj(),H=$j(),X=Ij(),M=Pj(),Q=L1(),W=kj(),D=Mj(),P=Dj(),G=Lj(),Z=Fj();return bm={parse:i,valid:o,clean:s,inc:u,diff:c,major:f,minor:d,patch:g,prerelease:h,compare:b,rcompare:v,compareLoose:S,compareBuild:y,sort:E,rsort:x,gt:T,lt:A,eq:R,neq:$,gte:O,lte:I,cmp:L,coerce:F,Comparator:q,Range:z,satisfies:B,toComparators:N,maxSatisfying:j,minSatisfying:H,minVersion:X,validRange:M,outside:Q,gtr:W,ltr:D,intersects:P,simplifyRange:G,subset:Z,SemVer:r,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:n.compareIdentifiers,rcompareIdentifiers:n.rcompareIdentifiers},bm}var Wn=Nj();const VR=Mr(Wn);var Zt=(e=>(e.NANO_S="nanoS",e.NANO_SP="nanoSP",e.NANO_X="nanoX",e.STAX="stax",e.FLEX="flex",e.APEX="apexp",e))(Zt||{});let t2=class{id;model;name;constructor({id:t,model:r,name:n}){this.id=t,this.model=r,this.name=n}},jj=class{constructor(t){if(this.seFlags=t,this.seFlags.length!==4)throw new Error("Invalid secure element flags length")}generalDeviceState(){const t=this.seFlags[0]??0;return{isPinValidated:this._checkNthBitInByte(t,1),hasMcuSerialNumber:this._checkNthBitInByte(t,2),hasValidCertificate:this._checkNthBitInByte(t,3),isCustomAuthorityConnectionAllowed:this._checkNthBitInByte(t,4),isSecureConnectionAllowed:this._checkNthBitInByte(t,5),isOnboarded:this._checkNthBitInByte(t,6),isMcuCodeSigned:this._checkNthBitInByte(t,7),isInRecoveryMode:this._checkNthBitInByte(t,8)}}endorsementInformation(){throw new Error("Not implemented")}wordsInformation(){throw new Error("Not implemented")}onboardingStatus(){throw new Error("Not implemented")}_checkNthBitInByte(t,r){return(t>>8-r&1)===1}},zj=class{name="getOsVersion";args=void 0;getApdu(){const t={cla:224,ins:1,p1:0,p2:0};return new KI(t).build()}parseResponse(t,r){if(!$1.isSuccessResponse(t))return us({error:YI.handle(t)});const n=new A1(t),i=n.extract32BitUInt();if(i===void 0)return us({error:new ij("Missing target ID in OS version")});let o=n.encodeToString(n.extractFieldLVEncoded()),s=n.extractFieldLVEncoded()??new Uint8Array(0);const u={...new jj(s).generalDeviceState()};o||(o="0.0.0",s=new Uint8Array);const c=(i&4026531840)!==805306368,f=o.includes("-osu");let d="",g="",h="",b="",v,S,y,E;if(c){h=o,v=i;const x=n.extractFieldLVEncoded();x&&(x.length>=5?(d=n.encodeToString(x),S=parseInt(n.encodeToHexaString(n.extractFieldLVEncoded()),16)):S=parseInt(n.encodeToHexaString(x),16))}else{if(d=o,S=i,g=n.encodeToString(n.extractFieldLVEncoded()),this.isBootloaderVersionSupported(d,r)&&(h=n.encodeToString(n.extractFieldLVEncoded())),this.isHardwareVersionSupported(d,r)?b=n.encodeToHexaString(n.extractFieldLVEncoded()):b="00",this.isLocalizationSupported(d,r)){const x=n.extractFieldLVEncoded();x!==void 0&&(y=parseInt(n.encodeToHexaString(x),16))}if(this.isRecoverSupported(d,r)){const x=n.extractFieldLVEncoded();x!==void 0&&(E=parseInt(n.encodeToHexaString(x),16))}}return us({data:{isBootloader:c,isOsu:f,targetId:i,seTargetId:S,mcuTargetId:v,seVersion:d,seFlags:s,mcuSephVersion:g,mcuBootloaderVersion:h,hwVersion:b,langId:y,recoverState:E,secureElementFlags:u}})}isBootloaderVersionSupported(t,r){const n=Wn.coerce(t)??"";switch(r){case Zt.NANO_S:case Zt.NANO_X:return Wn.gte(n,"2.0.0");default:return!0}}isHardwareVersionSupported(t,r){const n=Wn.coerce(t)??"";switch(r){case Zt.NANO_X:return Wn.gte(n,"2.0.0");default:return!1}}isLocalizationSupported(t,r){const n=Wn.coerce(t)??"";switch(r){case Zt.NANO_S:return!1;case Zt.NANO_SP:return Wn.gte(n,"1.1.0");case Zt.NANO_X:return Wn.gte(n,"2.1.0");default:return!0}}isRecoverSupported(t,r){const n=Wn.coerce(t)??"";switch(r){case Zt.NANO_S:return!1;case Zt.NANO_SP:return Wn.gte(n,"1.1.2");case Zt.NANO_X:return Wn.gte(n,"2.2.3");case Zt.STAX:return Wn.gte(n,"1.4.0");case Zt.FLEX:return Wn.gte(n,"1.0.1");default:return!0}}};var bo=(e=>(e.LOCKED="LOCKED",e.BUSY="BUSY",e.CONNECTED="CONNECTED",e.NOT_CONNECTED="NOT CONNECTED",e))(bo||{}),Bj=(e=>(e.NotStarted="not-started",e.Pending="pending",e.Stopped="stopped",e.Completed="completed",e.Error="error",e))(Bj||{}),Vj=(e=>(e.None="none",e.UnlockDevice="unlock-device",e.AllowSecureConnection="allow-secure-connection",e.ConfirmOpenApp="confirm-open-app",e.SignTransaction="sign-transaction",e.SignTypedData="sign-typed-data",e.AllowListApps="allow-list-apps",e.VerifyAddress="verify-address",e.SignPersonalMessage="sign-personal-message",e.SignDelegationAuthorization="sign-delegation-authorization",e.Web3ChecksOptIn="web3-checks-opt-in",e.VerifySafeAddress="verify-safe-address",e.RegisterWallet="register-wallet",e.ConfirmLoadImage="confirm-load-image",e.ConfirmCommitImage="confirm-commit-image",e.ConfirmRemoveImage="confirm-remove-image",e))(Vj||{});const Tn={of(e){return dn(e)},empty(){return Yt},zero(){return Yt},fromNullable(e){return e==null?Yt:dn(e)},fromFalsy(e){return e?dn(e):Yt},fromPredicate(e,t){switch(arguments.length){case 1:return r=>Tn.fromPredicate(e,r);default:return e(t)?dn(t):Yt}},mapMaybe(e,t){switch(arguments.length){case 1:return r=>Tn.mapMaybe(e,r);default:return Tn.catMaybes(t.map(e))}},catMaybes(e){let t=[];for(const r of e)r.isJust()&&t.push(r.extract());return t},encase(e){try{return dn(e())}catch{return Yt}},isMaybe(e){return e instanceof F1||e instanceof N1},sequence(e){let t=[];for(const r of e)if(r.isJust())t.push(r.extract());else return Yt;return dn(t)},"fantasy-land/of"(e){return this.of(e)},"fantasy-land/empty"(){return this.empty()},"fantasy-land/zero"(){return this.zero()}};class F1{constructor(t){this.__value=t,this["fantasy-land/equals"]=this.equals,this["fantasy-land/map"]=this.map,this["fantasy-land/ap"]=this.ap,this["fantasy-land/alt"]=this.alt,this["fantasy-land/chain"]=this.chain,this["fantasy-land/reduce"]=this.reduce,this["fantasy-land/extend"]=this.extend,this["fantasy-land/filter"]=this.filter}isJust(){return!0}isNothing(){return!1}inspect(){return`Just(${this.__value})`}toString(){return this.inspect()}toJSON(){const t=this.__value;return t instanceof Date?t.toJSON():t}equals(t){return this.extract()===t.extract()}map(t){return dn(t(this.__value))}ap(t){return t.isJust()?this.map(t.extract()):Yt}alt(t){return this}altLazy(t){return this}chain(t){return t(this.__value)}chainNullable(t){return Tn.fromNullable(t(this.__value))}join(){return this.__value}reduce(t,r){return t(r,this.__value)}extend(t){return dn(t(this))}unsafeCoerce(){return this.__value}caseOf(t){return"_"in t?t._():t.Just(this.__value)}orDefault(t){return this.__value}orDefaultLazy(t){return this.__value}toList(){return[this.__value]}mapOrDefault(t,r){return t(this.__value)}extract(){return this.__value}extractNullable(){return this.__value}toEither(t){return rn(this.__value)}ifJust(t){return t(this.__value),this}ifNothing(t){return this}filter(t){return t(this.__value)?dn(this.__value):Yt}}F1.prototype.constructor=Tn;class N1{constructor(){this["fantasy-land/equals"]=this.equals,this["fantasy-land/map"]=this.map,this["fantasy-land/ap"]=this.ap,this["fantasy-land/alt"]=this.alt,this["fantasy-land/chain"]=this.chain,this["fantasy-land/reduce"]=this.reduce,this["fantasy-land/extend"]=this.extend,this["fantasy-land/filter"]=this.filter}isJust(){return!1}isNothing(){return!0}inspect(){return"Nothing"}toString(){return this.inspect()}toJSON(){return this.__value}equals(t){return this.extract()===t.extract()}map(t){return Yt}ap(t){return Yt}alt(t){return t}altLazy(t){return t()}chain(t){return Yt}chainNullable(t){return Yt}join(){return Yt}reduce(t,r){return r}extend(t){return Yt}unsafeCoerce(){throw new Error("Maybe#unsafeCoerce was ran on a Nothing")}caseOf(t){return"_"in t?t._():t.Nothing()}orDefault(t){return t}orDefaultLazy(t){return t()}toList(){return[]}mapOrDefault(t,r){return r}extract(){}extractNullable(){return null}toEither(t){return tn(t)}ifJust(t){return this}ifNothing(t){return t(),this}filter(t){return Yt}}N1.prototype.constructor=Tn;const dn=e=>new F1(e),Yt=new N1,Jn={of(e){return rn(e)},lefts(e){let t=[];for(const r of e)r.isLeft()&&t.push(r.extract());return t},rights(e){let t=[];for(const r of e)r.isRight()&&t.push(r.extract());return t},encase(e){try{return rn(e())}catch(t){return tn(t)}},sequence(e){let t=[];for(const r of e){if(r.isLeft())return r;t.push(r.extract())}return rn(t)},isEither(e){return e instanceof z1||e instanceof j1},"fantasy-land/of"(e){return Jn.of(e)}};class j1{constructor(t){this.__value=t,this._="R",this["fantasy-land/bimap"]=this.bimap,this["fantasy-land/map"]=this.map,this["fantasy-land/ap"]=this.ap,this["fantasy-land/equals"]=this.equals,this["fantasy-land/chain"]=this.chain,this["fantasy-land/alt"]=this.alt,this["fantasy-land/reduce"]=this.reduce,this["fantasy-land/extend"]=this.extend}isLeft(){return!1}isRight(){return!0}toJSON(){return this.__value}inspect(){return`Right(${this.__value})`}toString(){return this.inspect()}bimap(t,r){return rn(r(this.__value))}map(t){return rn(t(this.__value))}mapLeft(t){return this}ap(t){return t.isRight()?this.map(t.extract()):t}equals(t){return t.isRight()?this.__value===t.extract():!1}chain(t){return t(this.__value)}chainLeft(t){return this}join(){return this.__value}alt(t){return this}altLazy(t){return this}reduce(t,r){return t(r,this.__value)}extend(t){return rn(t(this))}unsafeCoerce(){return this.__value}caseOf(t){return"_"in t?t._():t.Right(this.__value)}leftOrDefault(t){return t}orDefault(t){return this.__value}orDefaultLazy(t){return this.__value}leftOrDefaultLazy(t){return t()}ifLeft(t){return this}ifRight(t){return t(this.__value),this}toMaybe(){return dn(this.__value)}leftToMaybe(){return Yt}extract(){return this.__value}swap(){return tn(this.__value)}}j1.prototype.constructor=Jn;class z1{constructor(t){this.__value=t,this._="L",this["fantasy-land/bimap"]=this.bimap,this["fantasy-land/map"]=this.map,this["fantasy-land/ap"]=this.ap,this["fantasy-land/equals"]=this.equals,this["fantasy-land/chain"]=this.chain,this["fantasy-land/alt"]=this.alt,this["fantasy-land/reduce"]=this.reduce,this["fantasy-land/extend"]=this.extend}isLeft(){return!0}isRight(){return!1}toJSON(){return this.__value}inspect(){return`Left(${JSON.stringify(this.__value)})`}toString(){return this.inspect()}bimap(t,r){return tn(t(this.__value))}map(t){return this}mapLeft(t){return tn(t(this.__value))}ap(t){return t.isLeft()?t:this}equals(t){return t.isLeft()?t.extract()===this.__value:!1}chain(t){return this}chainLeft(t){return t(this.__value)}join(){return this}alt(t){return t}altLazy(t){return t()}reduce(t,r){return r}extend(t){return this}unsafeCoerce(){throw this.__value instanceof Error?this.__value:new Error("Either#unsafeCoerce was ran on a Left")}caseOf(t){return"_"in t?t._():t.Left(this.__value)}leftOrDefault(t){return this.__value}orDefault(t){return t}orDefaultLazy(t){return t()}leftOrDefaultLazy(t){return this.__value}ifLeft(t){return t(this.__value),this}ifRight(t){return this}toMaybe(){return Yt}leftToMaybe(){return dn(this.__value)}extract(){return this.__value}swap(){return rn(this.__value)}}z1.prototype.constructor=Jn;const tn=e=>new z1(e),rn=e=>new j1(e);var r2;const n2={liftEither(e){if(e.isRight())return Promise.resolve(e.extract());throw e.extract()},fromPromise(e){return e.then(n2.liftEither)},throwE(e){throw e}};class i2{constructor(t){this.runPromise=t,this[r2]="EitherAsync",this["fantasy-land/chain"]=this.chain,this["fantasy-land/alt"]=this.alt,this.then=(r,n)=>this.run().then(r,n)}leftOrDefault(t){return this.run().then(r=>r.leftOrDefault(t))}orDefault(t){return this.run().then(r=>r.orDefault(t))}join(){return mt(async t=>{const r=await this;if(r.isRight()){const n=await r.extract();return t.liftEither(n)}return t.liftEither(r)})}ap(t){return mt(async r=>{const n=await t;if(n.isRight()){const i=await this.run();return i.isRight()?n.extract()(i.extract()):r.liftEither(i)}return r.liftEither(n)})}alt(t){return mt(async r=>{const n=await this.run();if(n.isRight())return n.extract();{const i=await t;return r.liftEither(i)}})}extend(t){return mt(async r=>{const n=await this.run();if(n.isRight()){const i=mt.liftEither(n);return r.liftEither(rn(t(i)))}return r.liftEither(n)})}async run(){try{return rn(await this.runPromise(n2))}catch(t){return tn(t)}}bimap(t,r){return mt(async n=>{const i=await this.run();try{return await n.liftEither(i.bimap(t,r))}catch(o){throw await o}})}map(t){return mt(r=>this.runPromise(r).then(t))}mapLeft(t){return mt(async r=>{try{return await this.runPromise(r)}catch(n){throw await t(n)}})}chain(t){return mt(async r=>{const n=await this.runPromise(r);return r.fromPromise(t(n))})}chainLeft(t){return mt(async r=>{try{return await this.runPromise(r)}catch(n){return r.fromPromise(t(n))}})}toMaybeAsync(){return cn(async({liftMaybe:t})=>{const r=await this.run();return t(r.toMaybe())})}swap(){return mt(async t=>{const r=await this.run();return r.isRight()&&t.throwE(r.extract()),t.liftEither(rn(r.extract()))})}ifLeft(t){return mt(async r=>{const n=await this.run();return n.ifLeft(t),r.liftEither(n)})}ifRight(t){return mt(async r=>{const n=await this.run();return n.ifRight(t),r.liftEither(n)})}void(){return this.map(t=>{})}caseOf(t){return this.run().then(r=>r.caseOf(t))}finally(t){return mt(({fromPromise:r})=>r(this.run().finally(t)))}}r2=Symbol.toStringTag;const mt=Object.assign(e=>new i2(e),{fromPromise:e=>mt(({fromPromise:t})=>t(e())),liftEither:e=>mt(({liftEither:t})=>t(e)),lefts:e=>Promise.all(e.map(t=>t.run())).then(Jn.lefts),rights:e=>Promise.all(e.map(t=>t.run())).then(Jn.rights),sequence:e=>mt(async t=>{let r=[];for await(const n of e){if(n.isLeft())return t.liftEither(n);r.push(n.extract())}return t.liftEither(rn(r))}),all:e=>mt.fromPromise(async()=>Promise.all(e).then(Jn.sequence))});i2.prototype.constructor=mt;var o2;const a2={liftMaybe(e){if(e.isJust())return Promise.resolve(e.extract());throw Yt},fromPromise(e){return e.then(a2.liftMaybe)}};class s2{constructor(t){this.runPromise=t,this[o2]="MaybeAsync",this["fantasy-land/chain"]=this.chain,this["fantasy-land/filter"]=this.filter,this["fantasy-land/alt"]=this.alt}orDefault(t){return this.run().then(r=>r.orDefault(t))}join(){return cn(async t=>{const r=await this.run();if(r.isJust()){const n=await r.extract();return t.liftMaybe(n)}return t.liftMaybe(Yt)})}ap(t){return cn(async r=>{const n=await t;if(n.isJust()){const i=await this.run();return i.isJust()?n.extract()(i.extract()):r.liftMaybe(Yt)}return r.liftMaybe(Yt)})}alt(t){return cn(async r=>{const n=await this.run();if(n.isJust())return n.extract();{const i=await t;return r.liftMaybe(i)}})}extend(t){return cn(async r=>{const n=await this.run();if(n.isJust()){const i=cn.liftMaybe(n);return r.liftMaybe(dn(t(i)))}return r.liftMaybe(Yt)})}filter(t){return cn(async r=>{const n=await this.run();return r.liftMaybe(n.filter(t))})}async run(){try{return dn(await this.runPromise(a2))}catch{return Yt}}map(t){return cn(r=>this.runPromise(r).then(t))}chain(t){return cn(async r=>{const n=await this.runPromise(r);return r.fromPromise(t(n))})}toEitherAsync(t){return mt(async({liftEither:r})=>{const n=await this.run();return r(n.toEither(t))})}ifJust(t){return cn(async r=>{const n=await this.run();return n.ifJust(t),r.liftMaybe(n)})}ifNothing(t){return cn(async r=>{const n=await this.run();return n.ifNothing(t),r.liftMaybe(n)})}void(){return this.map(t=>{})}caseOf(t){return this.run().then(r=>r.caseOf(t))}finally(t){return cn(({fromPromise:r})=>r(this.run().finally(t)))}then(t,r){return this.run().then(t,r)}}o2=Symbol.toStringTag;const cn=Object.assign(e=>new s2(e),{catMaybes:e=>Promise.all(e).then(Tn.catMaybes),fromPromise:e=>cn(({fromPromise:t})=>t(e())),liftMaybe:e=>cn(({liftMaybe:t})=>t(e))});s2.prototype.constructor=cn;var Ky=function(e,t){return Ky=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Ky(e,t)};function To(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ky(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function Uj(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function u(d){try{f(n.next(d))}catch(g){s(g)}}function c(d){try{f(n.throw(d))}catch(g){s(g)}}function f(d){d.done?o(d.value):i(d.value).then(u,c)}f((n=n.apply(e,t||[])).next())})}function l2(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=u(0),s.throw=u(1),s.return=u(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(f){return function(d){return c([f,d])}}function c(f){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,f[0]&&(r=0)),r;)try{if(n=1,i&&(o=f[0]&2?i.return:f[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,f[1])).done)return o;switch(i=0,o&&(f=[f[0]&2,o.value]),f[0]){case 0:case 1:o=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,i=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!o||f[1]>o[0]&&f[1]<o[3])){r.label=f[1];break}if(f[0]===6&&r.label<o[1]){r.label=o[1],o=f;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(f);break}o[2]&&r.ops.pop(),r.trys.pop();continue}f=t.call(e,r)}catch(d){f=[6,d],i=0}finally{n=o=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function Al(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function $l(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(u){s={error:u}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}function Il(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function Cl(e){return this instanceof Cl?(this.v=e,this):new Cl(e)}function Hj(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(b){return function(v){return Promise.resolve(v).then(b,g)}}function u(b,v){n[b]&&(i[b]=function(S){return new Promise(function(y,E){o.push([b,S,y,E])>1||c(b,S)})},v&&(i[b]=v(i[b])))}function c(b,v){try{f(n[b](v))}catch(S){h(o[0][3],S)}}function f(b){b.value instanceof Cl?Promise.resolve(b.value.v).then(d,g):h(o[0][2],b)}function d(b){c("next",b)}function g(b){c("throw",b)}function h(b,v){b(v),o.shift(),o.length&&c(o[0][0],o[0][1])}}function Wj(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof Al=="function"?Al(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=e[o]&&function(s){return new Promise(function(u,c){s=e[o](s),i(u,c,s.done,s.value)})}}function i(o,s,u,c){Promise.resolve(c).then(function(f){o({value:f,done:u})},s)}}function pr(e){return typeof e=="function"}function Kp(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Sm=Kp(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
514
+ `+r.map(function(n,i){return i+1+") "+n.toString()}).join(`
515
+ `):"",this.name="UnsubscriptionError",this.errors=r}});function Sp(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Mc=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var u=Al(s),c=u.next();!c.done;c=u.next()){var f=c.value;f.remove(this)}}catch(S){t={error:S}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}else s.remove(this);var d=this.initialTeardown;if(pr(d))try{d()}catch(S){o=S instanceof Sm?S.errors:[S]}var g=this._finalizers;if(g){this._finalizers=null;try{for(var h=Al(g),b=h.next();!b.done;b=h.next()){var v=b.value;try{UR(v)}catch(S){o=o??[],S instanceof Sm?o=Il(Il([],$l(o)),$l(S.errors)):o.push(S)}}}catch(S){n={error:S}}finally{try{b&&!b.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}}if(o)throw new Sm(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)UR(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Sp(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Sp(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),u2=Mc.EMPTY;function c2(e){return e instanceof Mc||e&&"closed"in e&&pr(e.remove)&&pr(e.add)&&pr(e.unsubscribe)}function UR(e){pr(e)?e():e.unsubscribe()}var qj={Promise:void 0},Gj={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Il([e,t],$l(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function f2(e){Gj.setTimeout(function(){throw e})}function Yy(){}function Jd(e){e()}var B1=(function(e){To(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,c2(r)&&r.add(n)):n.destination=Yj,n}return t.create=function(r,n,i){return new Jy(r,n,i)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(Mc),Xj=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){md(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){md(n)}else md(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){md(r)}},e})(),Jy=(function(e){To(t,e);function t(r,n,i){var o=e.call(this)||this,s;return pr(r)||!r?s={next:r??void 0,error:n??void 0,complete:i??void 0}:s=r,o.destination=new Xj(s),o}return t})(B1);function md(e){f2(e)}function Kj(e){throw e}var Yj={closed:!0,next:Yy,error:Kj,complete:Yy},V1=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function Dc(e){return e}function Jj(e){return e.length===0?Dc:e.length===1?e[0]:function(r){return e.reduce(function(n,i){return i(n)},r)}}var Zn=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var i=this,o=Zj(t)?t:new Jy(t,r,n);return Jd(function(){var s=i,u=s.operator,c=s.source;o.add(u?u.call(o,c):c?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=HR(r),new r(function(i,o){var s=new Jy({next:function(u){try{t(u)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});n.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[V1]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Jj(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=HR(t),new t(function(n,i){var o;r.subscribe(function(s){return o=s},function(s){return i(s)},function(){return n(o)})})},e.create=function(t){return new e(t)},e})();function HR(e){var t;return(t=e??qj.Promise)!==null&&t!==void 0?t:Promise}function Qj(e){return e&&pr(e.next)&&pr(e.error)&&pr(e.complete)}function Zj(e){return e&&e instanceof B1||Qj(e)&&c2(e)}function ez(e){return pr(e?.lift)}function Pi(e){return function(t){if(ez(t))return t.lift(function(r){try{return e(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function io(e,t,r,n,i){return new tz(e,t,r,n,i)}var tz=(function(e){To(t,e);function t(r,n,i,o,s,u){var c=e.call(this,r)||this;return c.onFinalize=s,c.shouldUnsubscribe=u,c._next=n?function(f){try{n(f)}catch(d){r.error(d)}}:e.prototype._next,c._error=o?function(f){try{o(f)}catch(d){r.error(d)}finally{this.unsubscribe()}}:e.prototype._error,c._complete=i?function(){try{i()}catch(f){r.error(f)}finally{this.unsubscribe()}}:e.prototype._complete,c}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t})(B1),rz=Kp(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Gl=(function(e){To(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new WR(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new rz},t.prototype.next=function(r){var n=this;Jd(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=Al(n.currentObservers),u=s.next();!u.done;u=s.next()){var c=u.value;c.next(r)}}catch(f){i={error:f}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;Jd(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;Jd(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,i=this,o=i.hasError,s=i.isStopped,u=i.observers;return o||s?u2:(this.currentObservers=null,u.push(r),new Mc(function(){n.currentObservers=null,Sp(u,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,o=n.thrownError,s=n.isStopped;i?r.error(o):s&&r.complete()},t.prototype.asObservable=function(){var r=new Zn;return r.source=this,r},t.create=function(r,n){return new WR(r,n)},t})(Zn),WR=(function(e){To(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:u2},t})(Gl),nz=(function(e){To(t,e);function t(r){var n=e.call(this)||this;return n._value=r,n}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(r){var n=e.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},t.prototype.getValue=function(){var r=this,n=r.hasError,i=r.thrownError,o=r._value;if(n)throw i;return this._throwIfClosed(),o},t.prototype.next=function(r){e.prototype.next.call(this,this._value=r)},t})(Gl),U1={now:function(){return(U1.delegate||Date).now()},delegate:void 0},d2=(function(e){To(t,e);function t(r,n,i){r===void 0&&(r=1/0),n===void 0&&(n=1/0),i===void 0&&(i=U1);var o=e.call(this)||this;return o._bufferSize=r,o._windowTime=n,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=n===1/0,o._bufferSize=Math.max(1,r),o._windowTime=Math.max(1,n),o}return t.prototype.next=function(r){var n=this,i=n.isStopped,o=n._buffer,s=n._infiniteTimeWindow,u=n._timestampProvider,c=n._windowTime;i||(o.push(r),!s&&o.push(u.now()+c)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),i=this,o=i._infiniteTimeWindow,s=i._buffer,u=s.slice(),c=0;c<u.length&&!r.closed;c+=o?1:2)r.next(u[c]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,i=r._timestampProvider,o=r._buffer,s=r._infiniteTimeWindow,u=(s?1:2)*n;if(n<1/0&&u<o.length&&o.splice(0,o.length-u),!s){for(var c=i.now(),f=0,d=1;d<o.length&&o[d]<=c;d+=2)f=d;f&&o.splice(0,f+1)}},t})(Gl),iz=(function(e){To(t,e);function t(r,n){return e.call(this)||this}return t.prototype.schedule=function(r,n){return this},t})(Mc),qR={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setInterval.apply(void 0,Il([e,t],$l(r)))},clearInterval:function(e){return clearInterval(e)},delegate:void 0},oz=(function(e){To(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.scheduler=r,i.work=n,i.pending=!1,i}return t.prototype.schedule=function(r,n){var i;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var o=this.id,s=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(s,o,n)),this.pending=!0,this.delay=n,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(s,this.id,n),this},t.prototype.requestAsyncId=function(r,n,i){return i===void 0&&(i=0),qR.setInterval(r.flush.bind(r,this),i)},t.prototype.recycleAsyncId=function(r,n,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return n;n!=null&&qR.clearInterval(n)},t.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(r,n);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,n){var i=!1,o;try{this.work(r)}catch(s){i=!0,o=s||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,i=r.scheduler,o=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Sp(o,this),n!=null&&(this.id=this.recycleAsyncId(i,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t})(iz),GR=(function(){function e(t,r){r===void 0&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(t,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(n,r)},e.now=U1.now,e})(),az=(function(e){To(t,e);function t(r,n){n===void 0&&(n=GR.now);var i=e.call(this,r,n)||this;return i.actions=[],i._active=!1,i}return t.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var i;this._active=!0;do if(i=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,i){for(;r=n.shift();)r.unsubscribe();throw i}},t})(GR),p2=new az(oz),sz=p2,lz=new Zn(function(e){return e.complete()});function h2(e){return e&&pr(e.schedule)}function H1(e){return e[e.length-1]}function uz(e){return pr(H1(e))?e.pop():void 0}function Yp(e){return h2(H1(e))?e.pop():void 0}function cz(e,t){return typeof H1(e)=="number"?e.pop():t}var g2=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"});function v2(e){return pr(e?.then)}function m2(e){return pr(e[V1])}function y2(e){return Symbol.asyncIterator&&pr(e?.[Symbol.asyncIterator])}function b2(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function fz(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var S2=fz();function w2(e){return pr(e?.[S2])}function x2(e){return Hj(this,arguments,function(){var r,n,i,o;return l2(this,function(s){switch(s.label){case 0:r=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,Cl(r.read())];case 3:return n=s.sent(),i=n.value,o=n.done,o?[4,Cl(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,Cl(i)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function E2(e){return pr(e?.getReader)}function Va(e){if(e instanceof Zn)return e;if(e!=null){if(m2(e))return dz(e);if(g2(e))return pz(e);if(v2(e))return hz(e);if(y2(e))return C2(e);if(w2(e))return gz(e);if(E2(e))return vz(e)}throw b2(e)}function dz(e){return new Zn(function(t){var r=e[V1]();if(pr(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function pz(e){return new Zn(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function hz(e){return new Zn(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,f2)})}function gz(e){return new Zn(function(t){var r,n;try{for(var i=Al(e),o=i.next();!o.done;o=i.next()){var s=o.value;if(t.next(s),t.closed)return}}catch(u){r={error:u}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}t.complete()})}function C2(e){return new Zn(function(t){mz(e,t).catch(function(r){return t.error(r)})})}function vz(e){return C2(x2(e))}function mz(e,t){var r,n,i,o;return Uj(this,void 0,void 0,function(){var s,u;return l2(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=Wj(e),c.label=1;case 1:return[4,r.next()];case 2:if(n=c.sent(),!!n.done)return[3,4];if(s=n.value,t.next(s),t.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return u=c.sent(),i={error:u},[3,11];case 6:return c.trys.push([6,,9,10]),n&&!n.done&&(o=r.return)?[4,o.call(r)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function La(e,t,r,n,i){n===void 0&&(n=0),i===void 0&&(i=!1);var o=t.schedule(function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(o),!i)return o}function R2(e,t){return t===void 0&&(t=0),Pi(function(r,n){r.subscribe(io(n,function(i){return La(n,e,function(){return n.next(i)},t)},function(){return La(n,e,function(){return n.complete()},t)},function(i){return La(n,e,function(){return n.error(i)},t)}))})}function _2(e,t){return t===void 0&&(t=0),Pi(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function yz(e,t){return Va(e).pipe(_2(t),R2(t))}function bz(e,t){return Va(e).pipe(_2(t),R2(t))}function Sz(e,t){return new Zn(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}function wz(e,t){return new Zn(function(r){var n;return La(r,t,function(){n=e[S2](),La(r,t,function(){var i,o,s;try{i=n.next(),o=i.value,s=i.done}catch(u){r.error(u);return}s?r.complete():r.next(o)},0,!0)}),function(){return pr(n?.return)&&n.return()}})}function O2(e,t){if(!e)throw new Error("Iterable cannot be null");return new Zn(function(r){La(r,t,function(){var n=e[Symbol.asyncIterator]();La(r,t,function(){n.next().then(function(i){i.done?r.complete():r.next(i.value)})},0,!0)})})}function xz(e,t){return O2(x2(e),t)}function Ez(e,t){if(e!=null){if(m2(e))return yz(e,t);if(g2(e))return Sz(e,t);if(v2(e))return bz(e,t);if(y2(e))return O2(e,t);if(w2(e))return wz(e,t);if(E2(e))return xz(e,t)}throw b2(e)}function Pl(e,t){return t?Ez(e,t):Va(e)}function T2(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Yp(e);return Pl(e,r)}var Cz=Kp(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function XR(e,t){return new Promise(function(r,n){var i=!1,o;e.subscribe({next:function(s){o=s,i=!0},error:n,complete:function(){i?r(o):n(new Cz)}})})}function A2(e){return e instanceof Date&&!isNaN(e)}var Rz=Kp(function(e){return function(r){r===void 0&&(r=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=r}});function KR(e,t){var r=A2(e)?{first:e}:typeof e=="number"?{each:e}:e,n=r.first,i=r.each,o=r.with,s=o===void 0?_z:o,u=r.scheduler,c=u===void 0?p2:u,f=r.meta,d=f===void 0?null:f;if(n==null&&i==null)throw new TypeError("No timeout provided.");return Pi(function(g,h){var b,v,S=null,y=0,E=function(x){v=La(h,c,function(){try{b.unsubscribe(),Va(s({meta:d,lastValue:S,seen:y})).subscribe(h)}catch(T){h.error(T)}},x)};b=g.subscribe(io(h,function(x){v?.unsubscribe(),y++,h.next(S=x),i>0&&E(i)},void 0,void 0,function(){v?.closed||v?.unsubscribe(),S=null})),!y&&E(n!=null?typeof n=="number"?n:+n-c.now():i)})}function _z(e){throw new Rz(e)}function Fa(e,t){return Pi(function(r,n){var i=0;r.subscribe(io(n,function(o){n.next(e.call(t,o,i++))}))})}function Oz(e,t,r,n,i,o,s,u){var c=[],f=0,d=0,g=!1,h=function(){g&&!c.length&&!f&&t.complete()},b=function(S){return f<n?v(S):c.push(S)},v=function(S){f++;var y=!1;Va(r(S,d++)).subscribe(io(t,function(E){t.next(E)},function(){y=!0},void 0,function(){if(y)try{f--;for(var E=function(){var x=c.shift();s||v(x)};c.length&&f<n;)E();h()}catch(x){t.error(x)}}))};return e.subscribe(io(t,b,function(){g=!0,h()})),function(){}}function W1(e,t,r){return r===void 0&&(r=1/0),pr(t)?W1(function(n,i){return Fa(function(o,s){return t(n,o,i,s)})(Va(e(n,i)))},r):(typeof t=="number"&&(r=t),Pi(function(n,i){return Oz(n,i,e,r)}))}function $2(e){return e===void 0&&(e=1/0),W1(Dc,e)}function Tz(){return $2(1)}function YR(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Tz()(Pl(e,Yp(e)))}function Az(e,t,r){r===void 0&&(r=sz);var n=-1;return t!=null&&(h2(t)?r=t:n=t),new Zn(function(i){var o=A2(e)?+e-r.now():e;o<0&&(o=0);var s=0;return r.schedule(function(){i.closed||(i.next(s++),0<=n?this.schedule(void 0,n):i.complete())},o)})}function $z(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Yp(e),n=cz(e,1/0),i=e;return i.length?i.length===1?Va(i[0]):$2(n)(Pl(i,r)):lz}function JR(e,t){return Pi(function(r,n){var i=0;r.subscribe(io(n,function(o){return e.call(t,o,i++)&&n.next(o)}))})}function Iz(e,t,r,n,i){return function(o,s){var u=r,c=t,f=0;o.subscribe(io(s,function(d){var g=f++;c=u?e(c,d,g):(u=!0,d),s.next(c)},i))}}function Pz(e,t){return t===void 0&&(t=Dc),e=e??kz,Pi(function(r,n){var i,o=!0;r.subscribe(io(n,function(s){var u=t(s);(o||!e(i,u))&&(o=!1,i=u,n.next(s))}))})}function kz(e,t){return e===t}function Mz(e){return Pi(function(t,r){try{t.subscribe(r)}finally{r.add(e)}})}function Dz(e,t){return Pi(Iz(e,t,arguments.length>=2,!0))}function Lz(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Yp(e);return Pi(function(n,i){(r?YR(e,n,r):YR(e,n)).subscribe(i)})}function QR(e,t,r){var n=pr(e)||t||r?{next:e,error:t,complete:r}:e;return n?Pi(function(i,o){var s;(s=n.subscribe)===null||s===void 0||s.call(n);var u=!0;i.subscribe(io(o,function(c){var f;(f=n.next)===null||f===void 0||f.call(n,c),o.next(c)},function(){var c;u=!1,(c=n.complete)===null||c===void 0||c.call(n),o.complete()},function(c){var f;u=!1,(f=n.error)===null||f===void 0||f.call(n,c),o.error(c)},function(){var c,f;u&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(f=n.finalize)===null||f===void 0||f.call(n)}))}):Dc}function Fz(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=uz(e);return Pi(function(n,i){for(var o=e.length,s=new Array(o),u=e.map(function(){return!1}),c=!1,f=function(g){Va(e[g]).subscribe(io(i,function(h){s[g]=h,!c&&!u[g]&&(u[g]=!0,(c=u.every(Dc))&&(u=null))},Yy))},d=0;d<o;d++)f(d);n.subscribe(io(i,function(g){if(c){var h=Il([g],$l(s));i.next(r?r.apply(void 0,Il([],$l(h))):h)}}))})}var pc=(e=>(e[e.Connected=0]="Connected",e[e.ReadyWithoutSecureChannel=1]="ReadyWithoutSecureChannel",e[e.ReadyWithSecureChannel=2]="ReadyWithSecureChannel",e))(pc||{});let Lc=class{_tag="GeneralDmkError";originalError;constructor(t){t instanceof Error?this.originalError=t:t!==void 0&&(this.originalError=new Error(String(t)))}},q1=class extends Lc{constructor(t){super(t),this.err=t}_tag="TransportNotSupportedError"},Nz=class extends Lc{constructor(t){super(t),this.err=t}_tag="SendApduTimeoutError"},jz=class extends Lc{constructor(t){super(t),this.err=t}_tag="SendCommandTimeoutError"},zz=class extends Lc{constructor(t){super(t),this.err=t}_tag="TransportAlreadyExistsError"},Bz=class extends Lc{constructor(t){super(t),this.err=t}_tag="NoTransportProvidedError"};var gl=null;typeof WebSocket<"u"?gl=WebSocket:typeof MozWebSocket<"u"?gl=MozWebSocket:typeof self<"u"?gl=self.WebSocket||self.MozWebSocket:typeof window<"u"?gl=window.WebSocket||window.MozWebSocket:typeof self<"u"&&(gl=self.WebSocket||self.MozWebSocket);const Vz=gl;var Uz=(e=>(e.GenuineCheck="GenuineCheck",e.ListInstalledApps="ListInstalledApps",e.UpdateMcu="UpdateMcu",e.UpdateFirmware="UpdateFirmware",e.InstallApp="InstallApp",e.UninstallApp="UninstallApp",e))(Uz||{}),Hz=(e=>(e.EXCHANGE="exchange",e.BULK="bulk",e.ERROR="error",e.WARNING="warning",e.SUCCESS="success",e))(Hz||{}),Wz=(e=>(e.SUCCESS="success",e.ERROR="error",e))(Wz||{}),qz=(e=>(e.Opened="opened",e.Closed="closed",e.PermissionRequested="permission-requested",e.PermissionGranted="permission-granted",e.PreExchange="pre-exchange",e.Exchange="exchange",e.DeviceId="device-id",e.Progress="progress",e.Warning="warning",e.Error="error",e.Result="result",e))(qz||{}),Gz=(e=>(e[e.AppAlreadyInstalled=0]="AppAlreadyInstalled",e[e.DeviceLocked=1]="DeviceLocked",e[e.OutOfMemory=2]="OutOfMemory",e[e.RefusedByUser=3]="RefusedByUser",e[e.Unknown=4]="Unknown",e))(Gz||{});let Xz=class{constructor(t){this.error=t,this.originalError=t}_tag="WebSocketConnectionError";originalError};function G1(e,t){return Reflect.getOwnMetadata(t,e)}function Kz(e,t,r){Reflect.defineMetadata(t,r,e)}function Yu(e,t,r,n){const i=n(G1(e,t)??r());Reflect.defineMetadata(t,i,e)}var ZR,e_,t_;(function(e){e.moduleId="moduleId",e.serviceId="serviceId"})(ZR||(ZR={}));(function(e){e.id="id",e.moduleId="moduleId",e.serviceId="serviceId"})(e_||(e_={}));(function(e){e.moduleId="moduleId",e.serviceId="serviceId"})(t_||(t_={}));const Qd="@inversifyjs/core/classMetadataReflectKey";function Zd(){return{constructorArguments:[],lifecycle:{postConstructMethodName:void 0,preDestroyMethodName:void 0},properties:new Map,scope:void 0}}const Yz="@inversifyjs/core/pendingClassMetadataCountReflectKey",wm=Symbol.for("@inversifyjs/core/InversifyCoreError");let Na=class I2 extends Error{[wm];kind;constructor(t,r,n){super(r,n),this[wm]=!0,this.kind=t}static is(t){return typeof t=="object"&&t!==null&&t[wm]===!0}static isErrorOfKind(t,r){return I2.is(t)&&t.kind===r}};var Ro,wp,hc;function Jz(){return 0}function Qz(e){return t=>{t!==void 0&&t.kind===wp.unknown&&Yu(e,Yz,Jz,(r=>r-1))}}function Zz(e,t){return(...r)=>n=>{if(n===void 0)return e(...r);if(n.kind===hc.unmanaged)throw new Na(Ro.injectionDecoratorConflict,"Unexpected injection found. Multiple @inject, @multiInject or @unmanaged decorators found");return t(n,...r)}}function e8(e){if(e.kind!==wp.unknown&&e.isFromTypescriptParamType!==!0)throw new Na(Ro.injectionDecoratorConflict,"Unexpected injection found. Multiple @inject, @multiInject or @unmanaged decorators found")}(function(e){e[e.injectionDecoratorConflict=0]="injectionDecoratorConflict",e[e.missingInjectionDecorator=1]="missingInjectionDecorator",e[e.planning=2]="planning",e[e.resolution=3]="resolution",e[e.unknown=4]="unknown"})(Ro||(Ro={})),(function(e){e[e.unknown=32]="unknown"})(wp||(wp={})),(function(e){e[e.multipleInjection=0]="multipleInjection",e[e.singleInjection=1]="singleInjection",e[e.unmanaged=2]="unmanaged"})(hc||(hc={}));const t8=Zz((function(e,t){return{kind:e,name:void 0,optional:!1,tags:new Map,value:t}}),(function(e,t,r){return e8(e),{...e,kind:t,value:r}}));function r_(e,t){return r=>{const n=r.properties.get(t);return r.properties.set(t,e(n)),r}}var Aa;function r8(e,t,r,n){if(Na.isErrorOfKind(n,Ro.injectionDecoratorConflict)){const i=(function(o,s,u){if(u===void 0){if(s===void 0)throw new Na(Ro.unknown,"Unexpected undefined property and index values");return{kind:Aa.property,property:s,targetClass:o.constructor}}return typeof u=="number"?{index:u,kind:Aa.parameter,targetClass:o}:{kind:Aa.method,method:s,targetClass:o}})(e,t,r);throw new Na(Ro.injectionDecoratorConflict,`Unexpected injection error.
516
+
517
+ Cause:
518
+
519
+ ${n.message}
520
+
521
+ Details
522
+
523
+ ${(function(o){switch(o.kind){case Aa.method:return`[class: "${o.targetClass.name}", method: "${o.method.toString()}"]`;case Aa.parameter:return`[class: "${o.targetClass.name}", index: "${o.index.toString()}"]`;case Aa.property:return`[class: "${o.targetClass.name}", property: "${o.property.toString()}"]`}})(i)}`,{cause:n})}throw n}function n8(e,t){return(r,n,i)=>{try{i===void 0?(function(o,s){const u=xm(o,s);return(c,f)=>{Yu(c.constructor,Qd,Zd,r_(u(c),f))}})(e,t)(r,n):typeof i=="number"?(function(o,s){const u=xm(o,s);return(c,f,d)=>{if(!(function(g,h){return typeof g=="function"&&h===void 0})(c,f))throw new Na(Ro.injectionDecoratorConflict,`Found an @inject decorator in a non constructor parameter.
524
+ Found @inject decorator at method "${f?.toString()??""}" at class "${c.constructor.name}"`);Yu(c,Qd,Zd,(function(g,h){return b=>{const v=b.constructorArguments[h];return b.constructorArguments[h]=g(v),b}})(u(c),d))}})(e,t)(r,n,i):(function(o,s){const u=xm(o,s);return(c,f,d)=>{if(!(function(g){return g.set!==void 0})(d))throw new Na(Ro.injectionDecoratorConflict,`Found an @inject decorator in a non setter property method.
525
+ Found @inject decorator at method "${f.toString()}" at class "${c.constructor.name}"`);Yu(c.constructor,Qd,Zd,r_(u(c),f))}})(e,t)(r,n,i)}catch(o){r8(r,n,i,o)}}}function xm(e,t){return r=>{const n=t(r);return i=>(n(i),e(i))}}function rt(e){return n8(t8(hc.singleInjection,e),Qz)}(function(e){e[e.method=0]="method",e[e.parameter=1]="parameter",e[e.property=2]="property"})(Aa||(Aa={}));const n_="@inversifyjs/core/classIsInjectableFlagReflectKey",i8=[Array,BigInt,Boolean,Function,Number,Object,String];function o8(e){const t=G1(e,"design:paramtypes");t!==void 0&&Yu(e,Qd,Zd,(function(r){return n=>(r.forEach(((i,o)=>{var s;n.constructorArguments[o]!==void 0||(s=i,i8.includes(s))||(n.constructorArguments[o]=(function(u){return{isFromTypescriptParamType:!0,kind:hc.singleInjection,name:void 0,optional:!1,tags:new Map,value:u}})(i))})),n)})(t))}function Rt(e){return t=>{(function(r){if(G1(r,n_)!==void 0)throw new Na(Ro.injectionDecoratorConflict,`Cannot apply @injectable decorator multiple times at class "${r.name}"`);Kz(r,n_,!0)})(t),o8(t)}}var i_;(function(e){e[e.multipleInjection=0]="multipleInjection",e[e.singleInjection=1]="singleInjection"})(i_||(i_={}));var o_;(function(e){e[e.singleMandatory=0]="singleMandatory",e[e.singleOptional=1]="singleOptional",e[e.multipleMandatory=2]="multipleMandatory",e[e.multipleOptional=3]="multipleOptional",e[e.length=4]="length"})(o_||(o_={}));let a8=class{constructor(t,r,n,i,o){this.deviceModel=t,this.serviceUuid=r,this.writeUuid=n,this.writeCmdUuid=i,this.notifyUuid=o}},tl=class{id;productName;usbProductId;bootloaderUsbProductId;usbOnly;memorySize;getBlockSize;masks;bluetoothSpec;constructor(t){this.id=t.id,this.productName=t.productName,this.usbProductId=t.usbProductId,this.bootloaderUsbProductId=t.bootloaderUsbProductId,this.usbOnly=t.usbOnly,this.memorySize=t.memorySize,this.getBlockSize=t.getBlockSize,this.masks=t.masks,this.bluetoothSpec=t.bluetoothSpec}};var s8=Object.defineProperty,l8=(e,t,r)=>t in e?s8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,u8=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},c8=(e,t,r)=>l8(e,t+"",r);let cs=class{getAllDeviceModels(){return Object.values(cs.deviceModelByIds)}getDeviceModel(t){return cs.deviceModelByIds[t.id]}filterDeviceModels(t){return this.getAllDeviceModels().filter(r=>Object.entries(t).every(([n,i])=>r[n]===i))}getBluetoothServicesInfos(){return Object.values(cs.deviceModelByIds).reduce((t,r)=>{const{bluetoothSpec:n}=r;return n?{...t,...n.reduce((i,o)=>({...i,[o.serviceUuid]:new a8(r,o.serviceUuid,o.writeUuid,o.writeCmdUuid,o.notifyUuid)}),{})}:t},{})}getBluetoothServices(){return Object.values(cs.deviceModelByIds).map(t=>(t.bluetoothSpec||[]).map(r=>r.serviceUuid)).flat().filter(t=>!!t)}};c8(cs,"deviceModelByIds",{[Zt.NANO_S]:new tl({id:Zt.NANO_S,productName:"Ledger Nano S",usbProductId:16,bootloaderUsbProductId:1,usbOnly:!0,memorySize:320*1024,getBlockSize:e=>VR.lt(VR.coerce(e.firmwareVersion)??"","2.0.0")?4*1024:2*1024,masks:[823132160]}),[Zt.NANO_SP]:new tl({id:Zt.NANO_SP,productName:"Ledger Nano S Plus",usbProductId:80,bootloaderUsbProductId:5,usbOnly:!0,memorySize:1533*1024,getBlockSize:()=>32,masks:[856686592]}),[Zt.NANO_X]:new tl({id:Zt.NANO_X,productName:"Ledger Nano X",usbProductId:64,bootloaderUsbProductId:4,usbOnly:!1,memorySize:2*1024*1024,getBlockSize:()=>4*1024,masks:[855638016],bluetoothSpec:[{serviceUuid:"13d63400-2c97-0004-0000-4c6564676572",notifyUuid:"13d63400-2c97-0004-0001-4c6564676572",writeUuid:"13d63400-2c97-0004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-0004-0003-4c6564676572"}]}),[Zt.STAX]:new tl({id:Zt.STAX,productName:"Ledger Stax",usbProductId:96,bootloaderUsbProductId:6,usbOnly:!1,memorySize:1533*1024,getBlockSize:()=>32,masks:[857735168],bluetoothSpec:[{serviceUuid:"13d63400-2c97-6004-0000-4c6564676572",notifyUuid:"13d63400-2c97-6004-0001-4c6564676572",writeUuid:"13d63400-2c97-6004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-6004-0003-4c6564676572"}]}),[Zt.FLEX]:new tl({id:Zt.FLEX,productName:"Ledger Flex",usbProductId:112,bootloaderUsbProductId:7,usbOnly:!1,memorySize:1533*1024,getBlockSize:()=>32,masks:[858783744],bluetoothSpec:[{serviceUuid:"13d63400-2c97-3004-0000-4c6564676572",notifyUuid:"13d63400-2c97-3004-0001-4c6564676572",writeUuid:"13d63400-2c97-3004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-3004-0003-4c6564676572"}]}),[Zt.APEX]:new tl({id:Zt.APEX,productName:"Ledger Nano Gen5",usbProductId:128,bootloaderUsbProductId:8,usbOnly:!1,memorySize:1533*1024,getBlockSize:()=>32,masks:[859832320],bluetoothSpec:[{serviceUuid:"13d63400-2c97-8004-0000-4c6564676572",notifyUuid:"13d63400-2c97-8004-0001-4c6564676572",writeUuid:"13d63400-2c97-8004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-8004-0003-4c6564676572"},{serviceUuid:"13d63400-2c97-9004-0000-4c6564676572",notifyUuid:"13d63400-2c97-9004-0001-4c6564676572",writeUuid:"13d63400-2c97-9004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-9004-0003-4c6564676572"}]})}),cs=u8([Rt()],cs);let f8=class{statusCode;data;constructor({statusCode:t,data:r}){this.statusCode=t,this.data=r}};const d8=5,as=1,Qy=2,bl=2,Zy=2,zr=[];for(let e=0;e<256;++e)zr.push((e+256).toString(16).slice(1));function p8(e,t=0){return(zr[e[t+0]]+zr[e[t+1]]+zr[e[t+2]]+zr[e[t+3]]+"-"+zr[e[t+4]]+zr[e[t+5]]+"-"+zr[e[t+6]]+zr[e[t+7]]+"-"+zr[e[t+8]]+zr[e[t+9]]+"-"+zr[e[t+10]]+zr[e[t+11]]+zr[e[t+12]]+zr[e[t+13]]+zr[e[t+14]]+zr[e[t+15]]).toLowerCase()}let Em;const h8=new Uint8Array(16);function g8(){if(!Em){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Em=crypto.getRandomValues.bind(crypto)}return Em(h8)}const v8=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),a_={randomUUID:v8};function Jp(e,t,r){if(a_.randomUUID&&!e)return a_.randomUUID();e=e||{};const n=e.random||(e.rng||g8)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,p8(n)}const gs={getLastBytesFrom(e,t){return e.slice(-t)},getFirstBytesFrom(e,t){return e.slice(0,t)},bytesToNumber(e){return e.reduce((t,r,n)=>t+r*Math.pow(256,e.length-1-n),0)},numberToByteArray(e,t){return new Uint8Array(t).map((r,n)=>e>>8*(t-1-n)&255)}},s_=2,Cm=800;let l_=class{_tag="FramerOverflowError";originalError;constructor(){this.originalError=new Error("Frame header length is greater than frame size")}},m8=class{_tag="FramerApduError";originalError;constructor(){this.originalError=new Error("Frame offset is greater than apdu length")}},u_=class{_tag="ReceiverApduError";originalError;constructor(t){this.originalError=new Error(t??"Unable to parse apdu")}},c_=class{_tag="DeviceSessionNotFound";originalError;constructor(t){this.originalError=t??new Error("Device session not found")}},P2=class{_header;_data;constructor({header:t,data:r}){this._header=t,this._data=r}toString(){return JSON.stringify({header:this._header.toString(),data:dc(this._data)},null,2)}getRawData(){const t=this._header.getRawData(),r=new Uint8Array(t.length+this._data.length);return r.set(t,0),r.set(this._data,t.length),r}getHeader(){return this._header}getData(){return this._data}},k2=class{_uuid;_channel;_headTag;_index;_length;_dataLength;constructor({uuid:t,dataSize:r,index:n,headTag:i,length:o,channel:s}){this._uuid=t,this._dataLength=r,this._index=n,this._headTag=i,this._length=o,this._channel=s}getDataLength(){return this._dataLength.map(t=>gs.bytesToNumber(t))}setDataSize(t){return this._dataLength=t,this}getLength(){return this._length}toString(){return JSON.stringify({uuid:this._uuid.toString(),dataSize:this._dataLength.extract()?.toString(),index:this._index.toString(),headTag:this._headTag.toString(),length:this._length.toString(),channel:this._channel.extract()?.toString()})}getRawData(){return new Uint8Array([...this._channel.caseOf({Just:t=>[...t],Nothing:()=>[]}),...this._headTag,...this._index,...this._dataLength.caseOf({Just:t=>[...t],Nothing:()=>[]})])}};const _r={LoggerPublisherServiceFactory:Symbol.for("LoggerPublisherServiceFactory")};var y8=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},b8=(e,t)=>(r,n)=>t(r,n,e);let f_=class{_channel;_logger;_pendingFrames;constructor({channel:t=Tn.zero()},r){this._channel=t,this._logger=r("ApduReceiverService"),this._pendingFrames=[]}handleFrame(t){return this.getFrameFromBytes(t).map(r=>{if(this._pendingFrames.push(r),!this._pendingFrames[0])return Yt;const n=this._pendingFrames[0].getHeader().getDataLength();return this.getCompleteFrame(n)})}getCompleteFrame(t){return t.chain(r=>{if(!this.isComplete(r))return this._logger.debug("frame is not complete, waiting for more"),Yt;const n=gs.getFirstBytesFrom(this.concatFrames(this._pendingFrames),r),i=gs.getFirstBytesFrom(n,n.length-s_),o=gs.getLastBytesFrom(n,s_);return this._pendingFrames=[],dn(new f8({data:i,statusCode:o}))})}getFrameFromBytes(t){const r=this._channel.caseOf({Just:()=>Qy,Nothing:()=>0}),n=t.slice(r,r+as),i=t.slice(r+as,r+as+bl),o=i.reduce((h,b)=>h+b,0)===0;if(!o&&this._pendingFrames.length===0)return tn(new u_);const s=r+as+bl,u=o?Zy:0;if(t.length<r+as+bl+u)return tn(new u_("Unable to parse header from apdu"));const c=o?dn(t.slice(s,s+u)):Yt,f=s+u,d=t.slice(f),g=new P2({header:new k2({uuid:Jp(),channel:this._channel,dataSize:c,headTag:n,index:i,length:r+as+bl+u}),data:d});return rn(g)}isComplete(t){return this._pendingFrames.reduce((r,n)=>r+n.getData().length,0)>=t}concatFrames(t){return t.reduce((r,n)=>Uint8Array.from([...r,...n.getData()]),new Uint8Array(0))}};f_=y8([Rt(),b8(1,rt(_r.LoggerPublisherServiceFactory))],f_);var S8=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},w8=(e,t)=>(r,n)=>t(r,n,e);let d_=class{_frameSize;_channel;_padding;_logger;constructor({frameSize:t,channel:r=Tn.zero(),padding:n=!1},i){this._frameSize=t,this._channel=r,this._padding=n,this._logger=i("DefaultApduSenderService")}getFrames(t){const r=[];let n=0,i=this.getFrameAtIndex(t,n);for(;i.isRight();)r.push(i.extract()),n+=1,i=this.getFrameAtIndex(t,n).mapLeft(o=>(o instanceof l_||this._logger.error("Error while parsing frame",{data:{error:o}}),o));return r}getFrameAtIndex(t,r){const n=this.getFrameHeaderFrom(r,t.length),i=r===0?0:r*this._frameSize-this.getHeaderSizeSumFrom(r);if(i>=t.length)return tn(new l_);if(n.getLength()>this._frameSize)return tn(new m8);const o=this._frameSize-n.getLength(),s=t.slice(i,i+this._frameSize-n.getLength()),u=this._padding?new Uint8Array(o).fill(0):new Uint8Array(s.length<o?s.length:o);u.set(s,0);const c=new P2({header:n,data:u});return rn(c)}getFrameHeaderFrom(t,r){const n=new k2({uuid:Jp(),channel:this._channel.map(i=>gs.getLastBytesFrom(i,Qy)),headTag:new Uint8Array([d8]),index:gs.numberToByteArray(t,bl),length:this.getFrameHeaderSizeFromIndex(t),dataSize:Tn.zero()});return t===0&&n.setDataSize(Tn.of(gs.numberToByteArray(r,Zy))),n}getHeaderSizeSumFrom(t){let r=this.getFrameHeaderSizeFromIndex(0),n=1;for(;n<t;)r+=this.getFrameHeaderSizeFromIndex(n),n+=1;return r}getFrameHeaderSizeFromIndex(t){return this._channel.caseOf({Just:()=>Qy,Nothing:()=>0})+bl+as+(t===0?Zy:0)}};d_=S8([Rt(),w8(1,rt(_r.LoggerPublisherServiceFactory))],d_);const eb={LocalConfigDataSource:Symbol.for("LocalConfigDataSource"),RemoteConfigDataSource:Symbol.for("RemoteConfigDataSource"),ConfigService:Symbol.for("ConfigService")},gn={ApduSenderServiceFactory:Symbol.for("ApduSenderServiceFactory"),ApduReceiverServiceFactory:Symbol.for("ApduReceiverServiceFactory"),DeviceSessionService:Symbol.for("DeviceSessionService")},p_={ConnectUseCase:Symbol.for("ConnectUseCase"),DisconnectUseCase:Symbol.for("DisconnectUseCase")},Qp={ManagerApiService:Symbol.for("ManagerApiService"),ManagerApiDataSource:Symbol.for("ManagerApiDataSource"),DmkConfig:Symbol.for("ManagerApiDmkConfig")},ja={DmkConfig:Symbol.for("TransportDmkConfig"),TransportService:Symbol.for("TransportService"),TransportsInput:Symbol.for("TransportsInput")};var x8=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},h_=(e,t)=>(r,n)=>t(r,n,e);let g_=class{_sessionService;_logger;constructor(t,r){this._sessionService=t,this._logger=r("SendCommandUseCase")}async execute({sessionId:t,command:r,abortTimeout:n}){return this._sessionService.getDeviceSessionById(t).caseOf({Right:async i=>await i.sendCommand(r,n),Left:i=>{throw this._logger.error("Error getting session",{data:{error:i}}),i}})}};g_=x8([Rt(),h_(0,rt(gn.DeviceSessionService)),h_(1,rt(_r.LoggerPublisherServiceFactory))],g_);var E8=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i};let v_=class{execute=vi.fn(()=>"stub")};v_=E8([Rt()],v_);var C8=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},m_=(e,t)=>(r,n)=>t(r,n,e);let y_=class{_sessionService;_logger;constructor(t,r){this._sessionService=t,this._logger=r("ExecuteDeviceActionUseCase")}execute({sessionId:t,deviceAction:r}){return this._sessionService.getDeviceSessionById(t).caseOf({Right:n=>n.executeDeviceAction(r),Left:n=>{throw this._logger.error("Error getting session",{data:{error:n}}),n}})}};y_=C8([Rt(),m_(0,rt(gn.DeviceSessionService)),m_(1,rt(_r.LoggerPublisherServiceFactory))],y_);function R8(e){return typeof e=="object"&&e!==null&&"version"in e&&"name"in e&&typeof e.version=="string"&&typeof e.name=="string"}let b_=class{constructor(t){this.err=t,this.originalError=t}_tag="ApiCallError";originalError},_8=class{constructor(t){this.err=t,this.originalError=t}_tag="ParseResponseError";originalError},M2=class{constructor(t){this.err=t,this.originalError=t}_tag="JSONParseError";originalError},O8=class{constructor(t){this.err=t,this.originalError=t}_tag="ReadFileError";originalError};const T8="@ledgerhq/device-management-kit",A8="1.2.0",S_={name:T8,version:A8};var $8=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i};const I8={name:S_.name,version:S_.version},P8=()=>JSON.stringify(I8);let w_=class{getConfig(){return Jn.encase(()=>P8()).mapLeft(t=>new O8(t)).chain(t=>Jn.encase(()=>{const r=JSON.parse(t);if(R8(r))return r;throw new Error("Invalid config file")}).mapLeft(r=>new M2(r)))}};w_=$8([Rt()],w_);var k8=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i};let x_=class{getConfig(){return Jn.of({name:"DeviceSDK",version:"0.0.0-stub.1"})}};x_=k8([Rt()],x_);var M8=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i};let E_=class{async getConfig(){const t=await this._callApi();if(t.isLeft())return tn(new b_(t.extract()));if(!t.extract().ok)return tn(new b_(new Error("response not ok")));const r=await t.extract().json();return r.isLeft()?tn(new M2):r.chain(n=>this._parseResponse(n)).map(n=>n)}_parseResponse(t){const{name:r,version:n}=t;return!r||!n?tn(new _8):Jn.of({name:r,version:n})}_callApi(){return new Promise(t=>{t(Jn.of({ok:!0,json:async()=>new Promise(r=>{r(Jn.of({name:"DeviceSDK",version:"0.0.0-fake.1",yolo:"yolo"}))})}))})}};E_=M8([Rt()],E_);var D8=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i};let C_=class{async getConfig(){return new Promise(t=>t(Jn.of({name:"DeviceSDK",version:"0.0.0-fake.2"})))}};C_=D8([Rt()],C_);var L8=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},Rm=(e,t)=>(r,n)=>t(r,n,e);let R_=class{_local;_remote;_logger;constructor(t,r,n){this._local=t,this._remote=r,this._logger=n("config")}async getDmkConfig(){const t=this._local.getConfig().ifLeft(r=>{this._logger.error("Local config not available",{data:{error:r}})});if(t.isRight()){const r=t.extract();return this._logger.info("Local config available",{data:{config:r}}),r}return this._remote.getConfig().then(r=>r.mapLeft(n=>(this._logger.error("Local config available",{data:{error:n}}),{name:"DeadDmk",version:"0.0.0-dead.1"})).extract())}};R_=L8([Rt(),Rm(0,rt(eb.LocalConfigDataSource)),Rm(1,rt(eb.RemoteConfigDataSource)),Rm(2,rt(_r.LoggerPublisherServiceFactory))],R_);var F8=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},N8=(e,t)=>(r,n)=>t(r,n,e);let __=class{_configService;constructor(t){this._configService=t}async getDmkVersion(){return(await this._configService.getDmkConfig()).version}};__=F8([Rt(),N8(0,rt(eb.ConfigService))],__);const j8={DeviceModelDataSource:Symbol.for("DeviceModelDataSource")};var z8=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},O_=(e,t)=>(r,n)=>t(r,n,e);let T_=class{constructor(t,r){this._sessionService=t,this._logger=r("DisableDeviceSessionRefresherUseCase")}_logger;execute({sessionId:t,blockerId:r}){return this._sessionService.getDeviceSessionById(t).caseOf({Left:n=>{throw this._logger.error("Error getting device session",{data:{error:n}}),n},Right:n=>n.disableRefresher(r)})}};T_=z8([Rt(),O_(0,rt(gn.DeviceSessionService)),O_(1,rt(_r.LoggerPublisherServiceFactory))],T_);var B8=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},V8=(e,t)=>(r,n)=>t(r,n,e);let A_=class{_sessions;_sessionsSubject;_logger;constructor(t){this._sessions=[],this._sessionsSubject=new d2,this._logger=t("DeviceSessionService")}get sessionsObs(){return this._sessionsSubject.asObservable()}addDeviceSession(t){return this._sessions.find(r=>r.id===t.id)?(this._logger.warn("DeviceSession already exists",{data:{deviceSession:t}}),this):(this._sessions.push(t),this._sessionsSubject.next(t),this._logger.info("DeviceSession added",{data:{sessionId:t.id}}),this)}removeDeviceSession(t){const r=this._sessions.find(n=>n.id===t);return r?(r.close(),this._sessions=this._sessions.filter(n=>n.id!==t),this._logger.info("DeviceSession removed",{data:{sessionId:t}}),this):(this._logger.warn("DeviceSession not found",{data:{sessionId:t}}),this)}getDeviceSessionById(t){return Tn.fromNullable(this._sessions.find(r=>r.id===t)).toEither(new c_)}getDeviceSessionsByDeviceId(t){return Tn.fromPredicate(({length:r})=>r>0,this._sessions.filter(r=>r.connectedDevice.id===t)).toEither(new c_)}getDeviceSessions(){return this._sessions}};A_=B8([Rt(),V8(0,rt(_r.LoggerPublisherServiceFactory))],A_);var U8=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},$_=(e,t)=>(r,n)=>t(r,n,e);let I_=class{_sessionService;_transportService;constructor(t,r){this._sessionService=t,this._transportService=r}execute(){const t=this._sessionService.getDeviceSessions();for(const r of t)this._transportService.closeConnection(r.connectedDevice),this._sessionService.removeDeviceSession(r.id)}};I_=U8([Rt(),$_(0,rt(gn.DeviceSessionService)),$_(1,rt(ja.TransportService))],I_);var H8=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},P_=(e,t)=>(r,n)=>t(r,n,e);let k_=class{_sessionService;_logger;constructor(t,r){this._sessionService=t,this._logger=r("GetDeviceSessionStateUseCase")}execute({sessionId:t}){return this._sessionService.getDeviceSessionById(t).caseOf({Left:r=>{throw this._logger.error("Error getting session device",{data:{error:r}}),r},Right:r=>r.state})}};k_=H8([Rt(),P_(0,rt(gn.DeviceSessionService)),P_(1,rt(_r.LoggerPublisherServiceFactory))],k_);var W8=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},M_=(e,t)=>(r,n)=>t(r,n,e);let D_=class{_sessionService;_logger;constructor(t,r){this._sessionService=t,this._logger=r("UnsafeBypassIntentQueueUseCase")}execute({sessionId:t,bypass:r}){this._sessionService.getDeviceSessionById(t).caseOf({Left:n=>{throw this._logger.error("Error getting session",{data:{error:n}}),n},Right:n=>{this._logger.warn(`UNSAFE: ${r?"Enabling":"Disabling"} intent queue bypass for session ${t}`),n._unsafeBypassIntentQueue(r)}})}};D_=W8([Rt(),M_(0,rt(gn.DeviceSessionService)),M_(1,rt(_r.LoggerPublisherServiceFactory))],D_);function q8(e){return`[will send APDU] ~...> ${dc(e,!1)}`}function G8(e){return`[exchange] <= ${dc(e.data,!1)}${dc(e.statusCode,!1)}`}const tb=1e3,_m=1e3,X8={isRefresherDisabled:!1,pollingInterval:1e3};var dr=(e=>(e.NEW_STATE="NEW_STATE",e.REFRESH_NEEDED="REFRESH_NEEDED",e.COMMAND_SUCCEEDED="COMMAND_SUCCEEDED",e.DEVICE_STATE_UPDATE_BUSY="DEVICE_STATE_UPDATE_BUSY",e.DEVICE_STATE_UPDATE_LOCKED="DEVICE_STATE_UPDATE_LOCKED",e.DEVICE_STATE_UPDATE_CONNECTED="DEVICE_STATE_UPDATE_CONNECTED",e.DEVICE_STATE_UPDATE_UNKNOWN="DEVICE_STATE_UPDATE_UNKNOWN",e))(dr||{});let K8=class{_eventEmitter=new Gl;listen(){return this._eventEmitter.asObservable()}dispatch(t){this._eventEmitter.next(t)}},Y8=class{constructor(t,r){this.loggerModuleFactory=t,this.sessionEventDispatcher=r,this._logger=this.loggerModuleFactory("IntentQueueService")}_logger;_queue=[];_isProcessing=!1;_currentSubscription=null;enqueue(t){this._logger.debug("Enqueueing intent",{data:{type:t.type}});const r=new Gl,n={intent:t,subject:r,isCancelled:!1};this._queue.push(n);const i=()=>{this._logger.debug("Cancelling intent",{data:{type:t.type}}),n.isCancelled=!0,this._queue[0]===n&&this._currentSubscription?(this._currentSubscription.unsubscribe(),this._currentSubscription=null,r.complete(),this._queue.shift(),this._isProcessing=!1,this._processQueue()):(!this._isProcessing||this._queue[0]!==n)&&r.complete()};return this._isProcessing||this._processQueue(),{observable:r.asObservable().pipe(Mz(()=>{this._logger.debug("Intent observable finalized",{data:{type:t.type}})})),cancel:i}}_processQueue(){if(this._isProcessing)return;if(this._queue.length===0){this.sessionEventDispatcher.dispatch({eventName:dr.NEW_STATE});return}this.sessionEventDispatcher.dispatch({eventName:dr.DEVICE_STATE_UPDATE_BUSY}),this._isProcessing=!0;const t=this._queue[0];if(t.isCancelled){this._logger.debug("Skipping cancelled intent",{data:{type:t.intent.type}}),t.subject.complete(),this._queue.shift(),this._isProcessing=!1,this._processQueue();return}this._logger.debug("Processing intent",{data:{type:t.intent.type}}),this._currentSubscription=t.intent.execute().subscribe({next:r=>{t.isCancelled||t.subject.next(r)},error:r=>{t.isCancelled||t.subject.error(r),this._onIntentComplete()},complete:()=>{t.isCancelled||t.subject.complete(),this._onIntentComplete()}})}_onIntentComplete(){this._logger.debug("Intent completed"),this._currentSubscription=null,this._queue.shift(),this._isProcessing=!1,this._processQueue()}},J8=class{constructor(t,r){this._refresher=r,this._logger=t("refresher-service")}_refresherBlockers=new Set;_logger;disableRefresher(t){const r=`${t}-${Jp()}`;this.addRefresherBlocker(r),this._logger.debug("Refresher disabled",{data:{blockerId:r,blockers:Array.from(this._refresherBlockers)}});let n=!1;return()=>{n||(n=!0,this.removeRefresherBlocker(r),this._logger.debug("Refresher re-enabled",{data:{blockerId:r,blockers:Array.from(this._refresherBlockers)}}))}}addRefresherBlocker(t){const r=this._refresherBlockers.size;this._refresherBlockers.add(t),r===0&&this._refresher.stop()}removeRefresherBlocker(t){const r=this._refresherBlockers.size;this._refresherBlockers.delete(t),r>0&&this._refresherBlockers.size===0&&this._refresher.start()}},Q8=class{constructor(t,r,n,i){this.connectedDevice=r,this._sessionEventDispatcher=n,this._sendCommandFunction=i,this._logger=t("device-pinger"),this._subscription=this._sessionEventDispatcher.listen().subscribe(async o=>await this.mapEventAction(o))}_sendCommandFunction;_subscription;_logger;async ping(){try{return await this.mapDevicePingAction(this.connectedDevice.deviceModel.id)}catch(t){return this._logger.error("Error while pinging device",{data:{error:t}}),null}}mapEventAction=async t=>{switch(t.eventName){case dr.REFRESH_NEEDED:return await this.ping();default:return null}};async mapDevicePingAction(t){switch(t){case Zt.NANO_S:{const r=async()=>{const o=await this._sendCommandFunction(new YC,Cm);return this._sendCommandFunction(new zj,Cm),o},n=new Promise(o=>{setTimeout(()=>o(null),tb*2+100)}),i=await Promise.race([r(),n]);return i?this._sessionEventDispatcher.dispatch({eventName:dr.COMMAND_SUCCEEDED,eventData:i}):this._sessionEventDispatcher.dispatch({eventName:dr.DEVICE_STATE_UPDATE_LOCKED}),i}default:{const r=await this._sendCommandFunction(new YC,Cm);return this._sessionEventDispatcher.dispatch({eventName:dr.COMMAND_SUCCEEDED,eventData:r}),r}}}unsubscribe(){this._subscription.unsubscribe()}},Z8=class{constructor(t,r,n,i){this._sessionEventDispatcher=n,this._refresherOptions=r,this._logger=t("device-session-refresher"),this._connectedDeviceID=i.deviceModel.id}_refresherSubscription;_refresherOptions;_logger;_connectedDeviceID;startRefresher(){if(this._refresherOptions.isRefresherDisabled||this._refresherSubscription)return;const t=this.getValidPollingInterval(this._refresherOptions,this._logger)*2,r=this._sessionEventDispatcher.listen().pipe(JR(n=>n.eventName===dr.DEVICE_STATE_UPDATE_BUSY||n.eventName===dr.NEW_STATE),Fa(n=>n.eventName===dr.DEVICE_STATE_UPDATE_BUSY),Lz(!1),Pz());this._refresherSubscription=Az(0,t).pipe(Fz(r),QR(([n,i])=>{i&&this._logger.debug("Refresh skipped: device is busy")}),JR(([n,i])=>!i),QR(()=>this._sessionEventDispatcher.dispatch({eventName:dr.REFRESH_NEEDED}))).subscribe(),this._logger.info("Refresher started.")}stopRefresher(){this._refresherSubscription&&(this._refresherSubscription.unsubscribe(),this._refresherSubscription=void 0,this._logger.info("Refresher stopped."))}restartRefresher(){this.stopRefresher(),this.startRefresher(),this._logger.info("Refresher restarted.")}getValidPollingInterval=(t,r)=>{const{pollingInterval:n}=t;switch(this._connectedDeviceID){case Zt.NANO_S:{const i=tb*2;return n!==void 0&&n<i?(r.warn(`Polling interval of ${n} is too low, setting to minimum as ${i}`),i):n??i}default:return n!==void 0&&n<_m?(r.warn(`Polling interval of ${n} is too low, setting to minimum as ${_m}`),_m):n??tb}}},eB=class{constructor(t,r,n,i,o){this._sessionEventDispatcher=r,this._connectedDevice=n,this._deviceState=i,this.setDeviceSessionState=o,this._subscription=this._sessionEventDispatcher.listen().subscribe(s=>this.mapEventAction(s)),this._logger=t("device-session-state-handler")}_subscription;_logger;_pendingDeviceStatus=bo.BUSY;_updateDeviceState(t){const r=this._parseDeviceStatus(t);if(r){const{sessionStateType:n,deviceStatus:i,currentApp:o}=r,s=this._deviceState.getValue();s.sessionStateType===pc.Connected?this.setDeviceSessionState({sessionStateType:n,deviceStatus:i,deviceModelId:this._connectedDevice.deviceModel.id,currentApp:o,installedApps:[],isSecureConnectionAllowed:!1}):this.setDeviceSessionState({...s,sessionStateType:n,deviceStatus:i,deviceModelId:this._connectedDevice.deviceModel.id,currentApp:o})}}mapEventAction=t=>{const{eventName:r}=t;switch(r){case dr.COMMAND_SUCCEEDED:return this._updateDeviceState(t.eventData);case dr.DEVICE_STATE_UPDATE_BUSY:return this.setDeviceSessionState({...this._deviceState.getValue(),deviceStatus:bo.BUSY});case dr.DEVICE_STATE_UPDATE_LOCKED:this._pendingDeviceStatus=bo.LOCKED;return;case dr.DEVICE_STATE_UPDATE_CONNECTED:this._pendingDeviceStatus=bo.CONNECTED;return;case dr.NEW_STATE:{const n=this._pendingDeviceStatus;return this._pendingDeviceStatus=bo.BUSY,this.setDeviceSessionState({...this._deviceState.getValue(),deviceStatus:n})}case dr.DEVICE_STATE_UPDATE_UNKNOWN:return this.setDeviceSessionState({...this._deviceState.getValue(),deviceStatus:bo.BUSY});case dr.REFRESH_NEEDED:return;default:{const n=r;throw new Error(`Unhandled context type ${n}`)}}};_parseDeviceStatus(t){return sj(t)?{sessionStateType:pc.ReadyWithoutSecureChannel,deviceStatus:bo.CONNECTED,currentApp:{name:t.data.name,version:t.data.version}}:(this._logger.debug("Error while parsing APDU response",{data:{parsedResponse:t}}),null)}unsubscribe(){this._subscription.unsubscribe()}},tB=class{_id;_connectedDevice;_deviceState;_managerApiService;_secureChannelService;_logger;_loggerModuleFactory;_refresherOptions;_pinger;_deviceSessionRefresher;_refresherService;_intentQueueService;_sessionEventDispatcher=new K8;_bypassIntentQueue=!1;constructor({connectedDevice:t,id:r=Jp()},n,i,o,s,u=c=>new Y8(n,c)){this._id=r,this._connectedDevice=t,this._loggerModuleFactory=n,this._logger=n("device-session"),this._managerApiService=i,this._intentQueueService=u(this._sessionEventDispatcher),this._secureChannelService=o,this._refresherOptions={...X8,...s},this._deviceState=new nz({sessionStateType:pc.Connected,deviceStatus:bo.CONNECTED,deviceModelId:this._connectedDevice.deviceModel.id}),this._pinger=new Q8(n,t,this._sessionEventDispatcher,(c,f)=>this.sendCommand(c,f)),this._deviceSessionRefresher=new Z8(n,this._refresherOptions,this._sessionEventDispatcher,this._connectedDevice),new eB(n,this._sessionEventDispatcher,this._connectedDevice,this._deviceState,c=>this.setDeviceSessionState(c)),this._refresherService=new J8(n,{start:()=>this._deviceSessionRefresher.restartRefresher(),stop:()=>this._deviceSessionRefresher.stopRefresher()})}async initialiseSession(){try{this._refresherOptions.isRefresherDisabled?await this._pinger.ping():this._deviceSessionRefresher.startRefresher()}catch(t){throw this._logger.error("Error while initialising session",{data:{error:t}}),t}}get id(){return this._id}get connectedDevice(){return this._connectedDevice}get state(){return this._deviceState.asObservable()}getDeviceSessionState(){return this._deviceState.getValue()}setDeviceSessionState(t){this._deviceState.next(t)}sendApdu(t,r={isPolling:!1,triggersDisconnection:!1,abortTimeout:void 0}){return this._bypassIntentQueue?this._unsafeInternalSendApdu(t,r):this._internalSendApdu(t,r)}_internalSendApdu(t,r){const n=r.abortTimeout,i=Date.now(),{observable:o,cancel:s}=this._intentQueueService.enqueue({type:"send-apdu",execute:()=>Pl((async()=>{const c=Date.now()-i;return await this._unsafeInternalSendApdu(t,{isPolling:r.isPolling,triggersDisconnection:r.triggersDisconnection,abortTimeout:n?n-c:void 0})})())}),u=n?o.pipe(KR({each:n,with:()=>{throw s(),new Nz}})):o;return XR(u)}async _unsafeInternalSendApdu(t,r={isPolling:!1,triggersDisconnection:!1,abortTimeout:void 0}){return this._logger.debug(q8(t)),(await this._connectedDevice.sendApdu(t,r.triggersDisconnection,r.abortTimeout)).ifRight(n=>{this._logger.debug(G8(n)),$1.isLockedDeviceResponse(n)?this._sessionEventDispatcher.dispatch({eventName:dr.DEVICE_STATE_UPDATE_LOCKED}):this._sessionEventDispatcher.dispatch({eventName:dr.DEVICE_STATE_UPDATE_CONNECTED})}).ifLeft(()=>{this._sessionEventDispatcher.dispatch({eventName:dr.DEVICE_STATE_UPDATE_UNKNOWN})})}sendCommand(t,r){return this._logger.debug(`[sendCommand] ${t.name}`),this._bypassIntentQueue?this._unsafeInternalSendCommand(t,r):this._internalSendCommand(t,r)}_internalSendCommand(t,r){const n=Date.now(),{observable:i,cancel:o}=this._intentQueueService.enqueue({type:"send-command",execute:()=>Pl((async()=>{const u=Date.now()-n;return await this._unsafeInternalSendCommand(t,r?r-u:void 0)})())}),s=r?i.pipe(KR({each:r,with:()=>{throw o(),new jz}})):i;return XR(s)}async _unsafeInternalSendCommand(t,r){const n=t.getApdu();return(await this._unsafeInternalSendApdu(n.getRawApdu(),{isPolling:!1,triggersDisconnection:t.triggersDisconnection??!1,abortTimeout:r})).caseOf({Left:i=>{throw this._logger.error("[sendCommand] error",{data:{err:i}}),i},Right:i=>{const o=t.parseResponse(i,this._connectedDevice.deviceModel.id);return this._logger.debug("[sendCommand] result",{data:{result:o}}),o}})}executeDeviceAction(t){return this._bypassIntentQueue?this._unsafeInternalExecuteDeviceAction(t):this._internalExecuteDeviceAction(t)}_internalExecuteDeviceAction(t){let r;const{observable:n,cancel:i}=this._intentQueueService.enqueue({type:"device-action",execute:()=>{const{observable:o,cancel:s}=this._unsafeInternalExecuteDeviceAction(t);return r=s,o}});return{observable:n,cancel:()=>{r?.(),i()}}}_unsafeInternalExecuteDeviceAction(t){const{observable:r,cancel:n}=t._execute({sendApdu:async i=>this._unsafeInternalSendApdu(i),sendCommand:async i=>this._unsafeInternalSendCommand(i),getDeviceModel:()=>this._connectedDevice.deviceModel,getDeviceSessionState:()=>this._deviceState.getValue(),getDeviceSessionStateObservable:()=>this.state,setDeviceSessionState:i=>(this.setDeviceSessionState(i),this._deviceState.getValue()),getManagerApiService:()=>this._managerApiService,getSecureChannelService:()=>this._secureChannelService,loggerFactory:this._loggerModuleFactory});return{observable:r,cancel:n}}close(){this._updateDeviceStatus(bo.NOT_CONNECTED),this._deviceState.complete(),this._deviceSessionRefresher.stopRefresher(),this._pinger.unsubscribe()}disableRefresher(t){return this._refresherService.disableRefresher(t)}_unsafeBypassIntentQueue(t){this._bypassIntentQueue=t}_updateDeviceStatus(t){const r=this._deviceState.getValue();this._deviceState.next({...r,deviceStatus:t})}};const X1={SecureChannelService:Symbol.for("SecureChannelService"),SecureChannelDataSource:Symbol.for("SecureChannelDataSource"),DmkConfig:Symbol.for("SecureChannelDmkConfig")};var rB=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},$u=(e,t)=>(r,n)=>t(r,n,e);let L_=class{_transportService;_sessionService;_loggerFactory;_managerApi;_secureChannel;_logger;constructor(t,r,n,i,o){this._sessionService=r,this._transportService=t,this._loggerFactory=n,this._logger=n("ConnectUseCase"),this._managerApi=i,this._secureChannel=o}handleDeviceDisconnect(t){this._sessionService.getDeviceSessionsByDeviceId(t).ifRight(r=>{r.forEach(n=>{this._sessionService.removeDeviceSession(n.id),this._logger.info("Session removed",{data:{deviceId:t,sessionId:n.id}})})})}async execute({device:t,sessionRefresherOptions:r}){const n=this._transportService.getTransport(t.transport),i="sessionId"in t?t.sessionId:void 0;return mt.liftEither(n.toEither(new q1(new Error("Unknown transport")))).chain(async o=>o.connect({deviceId:t.id,onDisconnect:s=>this.handleDeviceDisconnect(s)})).ifLeft(o=>{this._logger.error("Error connecting to device")}).map(async o=>{const s=new tB({connectedDevice:o,id:i},this._loggerFactory,this._managerApi,this._secureChannel,r);return this._sessionService.addDeviceSession(s),await s.initialiseSession(),s.id}).caseOf({Left:o=>{throw o},Right:o=>o})}};L_=rB([Rt(),$u(0,rt(ja.TransportService)),$u(1,rt(gn.DeviceSessionService)),$u(2,rt(_r.LoggerPublisherServiceFactory)),$u(3,rt(Qp.ManagerApiService)),$u(4,rt(X1.SecureChannelService))],L_);var nB=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},Om=(e,t)=>(r,n)=>t(r,n,e);let F_=class{_transportService;_sessionService;_logger;constructor(t,r,n){this._sessionService=r,this._transportService=t,this._logger=n("DisconnectUseCase")}async execute({sessionId:t}){return this._logger.debug("Disconnecting from device",{data:{test:this._sessionService.getDeviceSessions().map(r=>r.id)}}),mt(async({liftEither:r})=>{const n=await r(this._sessionService.getDeviceSessionById(t).ifLeft(s=>{this._logger.error("Device session not found",{data:{sessionId:t,error:s}})})),i=n.connectedDevice.transport,o=await r(this._transportService.getTransport(i).toEither(new q1(new Error("Unknown transport"))));n.close(),this._sessionService.removeDeviceSession(t),await o.disconnect({connectedDevice:n.connectedDevice})}).caseOf({Left:r=>{throw this._logger.error("Error disconnecting from device",{data:{error:r}}),r},Right:()=>{}})}};F_=nB([Rt(),Om(0,rt(ja.TransportService)),Om(1,rt(gn.DeviceSessionService)),Om(2,rt(_r.LoggerPublisherServiceFactory))],F_);let K1=class{id;sessionId;modelId;name;type;transport;constructor({transportConnectedDevice:{id:t,deviceModel:{id:r,productName:n},type:i,transport:o,name:s},sessionId:u}){this.id=t,this.sessionId=u,this.modelId=r,this.name=s??n,this.type=i,this.transport=o}};var iB=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},N_=(e,t)=>(r,n)=>t(r,n,e);let j_=class{_sessionService;_logger;constructor(t,r){this._sessionService=t,this._logger=r("GetConnectedDeviceUseCase")}execute({sessionId:t}){return this._sessionService.getDeviceSessionById(t).caseOf({Right:r=>new K1({sessionId:r.id,transportConnectedDevice:r.connectedDevice}),Left:r=>{throw this._logger.error("Error getting session",{data:{error:r}}),r}})}};j_=iB([Rt(),N_(0,rt(gn.DeviceSessionService)),N_(1,rt(_r.LoggerPublisherServiceFactory))],j_);var oB=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},z_=(e,t)=>(r,n)=>t(r,n,e);let B_=class{_sessionService;_logger;constructor(t,r){this._sessionService=t,this._logger=r("ListConnectedDeviceUseCase")}execute(){return this._logger.info("Listing connected devices"),this._sessionService.getDeviceSessions().map(t=>new K1({transportConnectedDevice:t.connectedDevice,sessionId:t.id}))}};B_=oB([Rt(),z_(0,rt(gn.DeviceSessionService)),z_(1,rt(_r.LoggerPublisherServiceFactory))],B_);var aB=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},V_=(e,t)=>(r,n)=>t(r,n,e);let U_=class{_transports;_transportService;_logger;constructor(t,r){this._transports=t.getAllTransports(),this._transportService=t,this._logger=r("ListenToAvailableDevicesUseCase")}mapTransportDiscoveredDeviceToDiscoveredDevice(t){const r=new t2({id:t.id,model:t.deviceModel.id,name:t.deviceModel.productName});return{id:t.id,deviceModel:r,transport:t.transport,name:t.name||r.name,rssi:t.rssi}}execute({transport:t}={}){if(this._logger.info("Listening to available devices"),this._transports.length===0)return this._logger.warn("No transports available"),Pl([[]]);if(!t){this._logger.info("Discovering all available transports");const r=this._transports.map((n,i)=>n.listenToAvailableDevices().pipe(Fa(o=>({index:i,arr:o}))));return $z(...r).pipe(Dz((n,{index:i,arr:o})=>(n[i]=o,n),{}),Fa(n=>Object.values(n).flat().map(this.mapTransportDiscoveredDeviceToDiscoveredDevice)))}return this._logger.info(`Discovering devices on transport ${t}`),this._transportService.getTransport(t).caseOf({Nothing:()=>(this._logger.error(`Transport ${t} not found`),T2([])),Just:r=>r.listenToAvailableDevices().pipe(Fa(n=>n.map(this.mapTransportDiscoveredDeviceToDiscoveredDevice)))})}};U_=aB([Rt(),V_(0,rt(ja.TransportService)),V_(1,rt(_r.LoggerPublisherServiceFactory))],U_);var sB=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},H_=(e,t)=>(r,n)=>t(r,n,e);let W_=class{constructor(t,r){this._sessionService=t,this._logger=r("ListenToConnectedDeviceUseCase")}_logger;execute(){return this._logger.info("Observe connected devices"),this._sessionService.sessionsObs.pipe(Fa(t=>new K1({transportConnectedDevice:t.connectedDevice,sessionId:t.id})))}};W_=sB([Rt(),H_(0,rt(gn.DeviceSessionService)),H_(1,rt(_r.LoggerPublisherServiceFactory))],W_);var lB=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},Tm=(e,t)=>(r,n)=>t(r,n,e);let q_=class{constructor(t,r,n){this.connectUseCase=t,this.disconnectUseCase=r,this._logger=n("ReconnectUseCase")}_logger;async execute({device:t,sessionRefresherOptions:r}){return this._logger.debug("Reconnecting device session",{data:{deviceId:t.id,transport:t.transport}}),await this.disconnectUseCase.execute({sessionId:t.sessionId}),this.connectUseCase.execute({device:t,sessionRefresherOptions:r})}};q_=lB([Rt(),Tm(0,rt(p_.ConnectUseCase)),Tm(1,rt(p_.DisconnectUseCase)),Tm(2,rt(_r.LoggerPublisherServiceFactory))],q_);var uB=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},cB=(e,t)=>(r,n)=>t(r,n,e);let G_=class{constructor(t){this._transportService=t}mapDiscoveredDevice(t){const r=new t2({id:t.id,model:t.deviceModel.id,name:t.deviceModel.productName});return{id:t.id,deviceModel:r,transport:t.transport,name:t.name||r.name,rssi:t.rssi}}execute({transport:t}={}){if(!t){const r=this._transportService.getAllTransports();return T2(...r).pipe(W1(n=>n.startDiscovering().pipe(Fa(i=>this.mapDiscoveredDevice(i)))))}return this._transportService.getTransport(t).caseOf({Just:r=>r.startDiscovering().pipe(Fa(n=>this.mapDiscoveredDevice(n))),Nothing:()=>{throw new q1(new Error("Unknown transport"))}})}};G_=uB([Rt(),cB(0,rt(ja.TransportService))],G_);var fB=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},X_=(e,t)=>(r,n)=>t(r,n,e);let K_=class{constructor(t,r){this.transportService=t,this._logger=r("StopDiscoveringUseCase")}_logger;async execute(){this._logger.debug("Stopping discovering devices");for(const t of this.transportService.getAllTransports())await t.stopDiscovering()}};K_=fB([Rt(),X_(0,rt(ja.TransportService)),X_(1,rt(_r.LoggerPublisherServiceFactory))],K_);var zu=(e=>(e[e.Fatal=0]="Fatal",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Debug=4]="Debug",e))(zu||{});let dB=class{format(t){return Array.isArray(t)?t.map(r=>`[${r}]`).join(" "):`[${t}]`}};function rb(e,t){if(typeof e=="bigint")return e.toString();if(Array.isArray(e))return t.has(e)?"[Circular]":(t.add(e),e.map(r=>rb(r,t)));if(e!==null&&typeof e=="object"){if(t.has(e))return"[Circular]";t.add(e);const r={};for(const[n,i]of Object.entries(e))r[n]=rb(i,t);return r}return e}function pB(e){const t=new WeakSet;t.add(e);const r={};for(const[n,i]of Object.entries(e))r[n]=rb(i,t);return r}var hB=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i};let Y_=class{subscribers;tag;tagFormatter;constructor(t,r,n=new dB){this.subscribers=t,this.tag=r,this.tagFormatter=n}_log(t,r,n){const i=n?.data?pB(n.data):void 0,o=n?.tag??this.tag,s=this.tagFormatter.format(o);this.subscribers.forEach(u=>{const c={timestamp:n?.timestamp??Date.now(),tag:s,data:i};u.log(t,r,c)})}info(t,r){this._log(zu.Info,t,r)}warn(t,r){this._log(zu.Warning,t,r)}debug(t,r){this._log(zu.Debug,t,r)}error(t,r){this._log(zu.Error,t,r)}};Y_=hB([Rt()],Y_);function D2(e,t){return function(){return e.apply(t,arguments)}}const{toString:gB}=Object.prototype,{getPrototypeOf:Y1}=Object,{iterator:Zp,toStringTag:L2}=Symbol,eh=(e=>t=>{const r=gB.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),so=e=>(e=e.toLowerCase(),t=>eh(t)===e),th=e=>t=>typeof t===e,{isArray:Xl}=Array,kl=th("undefined");function Fc(e){return e!==null&&!kl(e)&&e.constructor!==null&&!kl(e.constructor)&&An(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const F2=so("ArrayBuffer");function vB(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&F2(e.buffer),t}const mB=th("string"),An=th("function"),N2=th("number"),Nc=e=>e!==null&&typeof e=="object",yB=e=>e===!0||e===!1,ep=e=>{if(eh(e)!=="object")return!1;const t=Y1(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(L2 in e)&&!(Zp in e)},bB=e=>{if(!Nc(e)||Fc(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},SB=so("Date"),wB=so("File"),xB=so("Blob"),EB=so("FileList"),CB=e=>Nc(e)&&An(e.pipe),RB=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||An(e.append)&&((t=eh(e))==="formdata"||t==="object"&&An(e.toString)&&e.toString()==="[object FormData]"))},_B=so("URLSearchParams"),[OB,TB,AB,$B]=["ReadableStream","Request","Response","Headers"].map(so),IB=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function jc(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Xl(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{if(Fc(e))return;const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let u;for(n=0;n<s;n++)u=o[n],t.call(null,e[u],u,e)}}function j2(e,t){if(Fc(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const fs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:self,z2=e=>!kl(e)&&e!==fs;function nb(){const{caseless:e,skipUndefined:t}=z2(this)&&this||{},r={},n=(i,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const s=e&&j2(r,o)||o;ep(r[s])&&ep(i)?r[s]=nb(r[s],i):ep(i)?r[s]=nb({},i):Xl(i)?r[s]=i.slice():(!t||!kl(i))&&(r[s]=i)};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&jc(arguments[i],n);return r}const PB=(e,t,r,{allOwnKeys:n}={})=>(jc(t,(i,o)=>{r&&An(i)?Object.defineProperty(e,o,{value:D2(i,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),kB=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),MB=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},DB=(e,t,r,n)=>{let i,o,s;const u={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!n||n(s,e,t))&&!u[s]&&(t[s]=e[s],u[s]=!0);e=r!==!1&&Y1(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},LB=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},FB=e=>{if(!e)return null;if(Xl(e))return e;let t=e.length;if(!N2(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},NB=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Y1(Uint8Array)),jB=(e,t)=>{const n=(e&&e[Zp]).call(e);let i;for(;(i=n.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},zB=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},BB=so("HTMLFormElement"),VB=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),J_=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),UB=so("RegExp"),B2=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};jc(r,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(n[o]=s||i)}),Object.defineProperties(e,n)},HB=e=>{B2(e,(t,r)=>{if(An(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(An(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},WB=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return Xl(e)?n(e):n(String(e).split(t)),r},qB=()=>{},GB=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function XB(e){return!!(e&&An(e.append)&&e[L2]==="FormData"&&e[Zp])}const KB=e=>{const t=new Array(10),r=(n,i)=>{if(Nc(n)){if(t.indexOf(n)>=0)return;if(Fc(n))return n;if(!("toJSON"in n)){t[i]=n;const o=Xl(n)?[]:{};return jc(n,(s,u)=>{const c=r(s,i+1);!kl(c)&&(o[u]=c)}),t[i]=void 0,o}}return n};return r(e,0)},YB=so("AsyncFunction"),JB=e=>e&&(Nc(e)||An(e))&&An(e.then)&&An(e.catch),V2=((e,t)=>e?setImmediate:t?((r,n)=>(fs.addEventListener("message",({source:i,data:o})=>{i===fs&&o===r&&n.length&&n.shift()()},!1),i=>{n.push(i),fs.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",An(fs.postMessage)),QB=typeof queueMicrotask<"u"?queueMicrotask.bind(fs):typeof process<"u"&&process.nextTick||V2,ZB=e=>e!=null&&An(e[Zp]),ye={isArray:Xl,isArrayBuffer:F2,isBuffer:Fc,isFormData:RB,isArrayBufferView:vB,isString:mB,isNumber:N2,isBoolean:yB,isObject:Nc,isPlainObject:ep,isEmptyObject:bB,isReadableStream:OB,isRequest:TB,isResponse:AB,isHeaders:$B,isUndefined:kl,isDate:SB,isFile:wB,isBlob:xB,isRegExp:UB,isFunction:An,isStream:CB,isURLSearchParams:_B,isTypedArray:NB,isFileList:EB,forEach:jc,merge:nb,extend:PB,trim:IB,stripBOM:kB,inherits:MB,toFlatObject:DB,kindOf:eh,kindOfTest:so,endsWith:LB,toArray:FB,forEachEntry:jB,matchAll:zB,isHTMLForm:BB,hasOwnProperty:J_,hasOwnProp:J_,reduceDescriptors:B2,freezeMethods:HB,toObjectSet:WB,toCamelCase:VB,noop:qB,toFiniteNumber:GB,findKey:j2,global:fs,isContextDefined:z2,isSpecCompliantForm:XB,toJSONObject:KB,isAsyncFn:YB,isThenable:JB,setImmediate:V2,asap:QB,isIterable:ZB};let ut=class U2 extends Error{static from(t,r,n,i,o,s){const u=new U2(t.message,r||t.code,n,i,o);return u.cause=t,u.name=t.name,s&&Object.assign(u,s),u}constructor(t,r,n,i,o){super(t),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ye.toJSONObject(this.config),code:this.code,status:this.status}}};ut.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";ut.ERR_BAD_OPTION="ERR_BAD_OPTION";ut.ECONNABORTED="ECONNABORTED";ut.ETIMEDOUT="ETIMEDOUT";ut.ERR_NETWORK="ERR_NETWORK";ut.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";ut.ERR_DEPRECATED="ERR_DEPRECATED";ut.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";ut.ERR_BAD_REQUEST="ERR_BAD_REQUEST";ut.ERR_CANCELED="ERR_CANCELED";ut.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";ut.ERR_INVALID_URL="ERR_INVALID_URL";const eV=null;function ib(e){return ye.isPlainObject(e)||ye.isArray(e)}function H2(e){return ye.endsWith(e,"[]")?e.slice(0,-2):e}function Q_(e,t,r){return e?e.concat(t).map(function(i,o){return i=H2(i),!r&&o?"["+i+"]":i}).join(r?".":""):t}function tV(e){return ye.isArray(e)&&!e.some(ib)}const rV=ye.toFlatObject(ye,{},null,function(t){return/^is[A-Z]/.test(t)});function rh(e,t,r){if(!ye.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=ye.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,y){return!ye.isUndefined(y[S])});const n=r.metaTokens,i=r.visitor||d,o=r.dots,s=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&ye.isSpecCompliantForm(t);if(!ye.isFunction(i))throw new TypeError("visitor must be a function");function f(v){if(v===null)return"";if(ye.isDate(v))return v.toISOString();if(ye.isBoolean(v))return v.toString();if(!c&&ye.isBlob(v))throw new ut("Blob is not supported. Use a Buffer instead.");return ye.isArrayBuffer(v)||ye.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function d(v,S,y){let E=v;if(v&&!y&&typeof v=="object"){if(ye.endsWith(S,"{}"))S=n?S:S.slice(0,-2),v=JSON.stringify(v);else if(ye.isArray(v)&&tV(v)||(ye.isFileList(v)||ye.endsWith(S,"[]"))&&(E=ye.toArray(v)))return S=H2(S),E.forEach(function(T,A){!(ye.isUndefined(T)||T===null)&&t.append(s===!0?Q_([S],A,o):s===null?S:S+"[]",f(T))}),!1}return ib(v)?!0:(t.append(Q_(y,S,o),f(v)),!1)}const g=[],h=Object.assign(rV,{defaultVisitor:d,convertValue:f,isVisitable:ib});function b(v,S){if(!ye.isUndefined(v)){if(g.indexOf(v)!==-1)throw Error("Circular reference detected in "+S.join("."));g.push(v),ye.forEach(v,function(E,x){(!(ye.isUndefined(E)||E===null)&&i.call(t,E,ye.isString(x)?x.trim():x,S,h))===!0&&b(E,S?S.concat(x):[x])}),g.pop()}}if(!ye.isObject(e))throw new TypeError("data must be an object");return b(e),t}function Z_(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function J1(e,t){this._pairs=[],e&&rh(e,this,t)}const W2=J1.prototype;W2.append=function(t,r){this._pairs.push([t,r])};W2.toString=function(t){const r=t?function(n){return t.call(this,n,Z_)}:Z_;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function nV(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function q2(e,t,r){if(!t)return e;const n=r&&r.encode||nV,i=ye.isFunction(r)?{serialize:r}:r,o=i&&i.serialize;let s;if(o?s=o(t,i):s=ye.isURLSearchParams(t)?t.toString():new J1(t,i).toString(n),s){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class eO{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ye.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Q1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},iV=typeof URLSearchParams<"u"?URLSearchParams:J1,oV=typeof FormData<"u"?FormData:null,aV=typeof Blob<"u"?Blob:null,sV={isBrowser:!0,classes:{URLSearchParams:iV,FormData:oV,Blob:aV},protocols:["http","https","file","blob","url","data"]},Z1=typeof window<"u"&&typeof document<"u",ob=typeof navigator=="object"&&navigator||void 0,lV=Z1&&(!ob||["ReactNative","NativeScript","NS"].indexOf(ob.product)<0),uV=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",cV=Z1&&window.location.href||"http://localhost",fV=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Z1,hasStandardBrowserEnv:lV,hasStandardBrowserWebWorkerEnv:uV,navigator:ob,origin:cV},Symbol.toStringTag,{value:"Module"})),en={...fV,...sV};function dV(e,t){return rh(e,new en.classes.URLSearchParams,{visitor:function(r,n,i,o){return en.isNode&&ye.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function pV(e){return ye.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function hV(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n<i;n++)o=r[n],t[o]=e[o];return t}function G2(e){function t(r,n,i,o){let s=r[o++];if(s==="__proto__")return!0;const u=Number.isFinite(+s),c=o>=r.length;return s=!s&&ye.isArray(i)?i.length:s,c?(ye.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!u):((!i[s]||!ye.isObject(i[s]))&&(i[s]=[]),t(r,n,i[s],o)&&ye.isArray(i[s])&&(i[s]=hV(i[s])),!u)}if(ye.isFormData(e)&&ye.isFunction(e.entries)){const r={};return ye.forEachEntry(e,(n,i)=>{t(pV(n),i,r,0)}),r}return null}function gV(e,t,r){if(ye.isString(e))try{return(t||JSON.parse)(e),ye.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const zc={transitional:Q1,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,o=ye.isObject(t);if(o&&ye.isHTMLForm(t)&&(t=new FormData(t)),ye.isFormData(t))return i?JSON.stringify(G2(t)):t;if(ye.isArrayBuffer(t)||ye.isBuffer(t)||ye.isStream(t)||ye.isFile(t)||ye.isBlob(t)||ye.isReadableStream(t))return t;if(ye.isArrayBufferView(t))return t.buffer;if(ye.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return dV(t,this.formSerializer).toString();if((u=ye.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return rh(u?{"files[]":t}:t,c&&new c,this.formSerializer)}}return o||i?(r.setContentType("application/json",!1),gV(t)):t}],transformResponse:[function(t){const r=this.transitional||zc.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(ye.isResponse(t)||ye.isReadableStream(t))return t;if(t&&ye.isString(t)&&(n&&!this.responseType||i)){const s=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(u){if(s)throw u.name==="SyntaxError"?ut.from(u,ut.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:en.classes.FormData,Blob:en.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ye.forEach(["delete","get","head","post","put","patch"],e=>{zc.headers[e]={}});const vV=ye.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),mV=e=>{const t={};let r,n,i;return e&&e.split(`
526
+ `).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||t[r]&&vV[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},tO=Symbol("internals");function Iu(e){return e&&String(e).trim().toLowerCase()}function tp(e){return e===!1||e==null?e:ye.isArray(e)?e.map(tp):String(e)}function yV(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const bV=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Am(e,t,r,n,i){if(ye.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!ye.isString(t)){if(ye.isString(n))return t.indexOf(n)!==-1;if(ye.isRegExp(n))return n.test(t)}}function SV(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function wV(e,t){const r=ye.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,o,s){return this[n].call(this,t,i,o,s)},configurable:!0})})}let $n=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function o(u,c,f){const d=Iu(c);if(!d)throw new Error("header name must be a non-empty string");const g=ye.findKey(i,d);(!g||i[g]===void 0||f===!0||f===void 0&&i[g]!==!1)&&(i[g||c]=tp(u))}const s=(u,c)=>ye.forEach(u,(f,d)=>o(f,d,c));if(ye.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(ye.isString(t)&&(t=t.trim())&&!bV(t))s(mV(t),r);else if(ye.isObject(t)&&ye.isIterable(t)){let u={},c,f;for(const d of t){if(!ye.isArray(d))throw TypeError("Object iterator must return a key-value pair");u[f=d[0]]=(c=u[f])?ye.isArray(c)?[...c,d[1]]:[c,d[1]]:d[1]}s(u,r)}else t!=null&&o(r,t,n);return this}get(t,r){if(t=Iu(t),t){const n=ye.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return yV(i);if(ye.isFunction(r))return r.call(this,i,n);if(ye.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Iu(t),t){const n=ye.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Am(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function o(s){if(s=Iu(s),s){const u=ye.findKey(n,s);u&&(!r||Am(n,n[u],u,r))&&(delete n[u],i=!0)}}return ye.isArray(t)?t.forEach(o):o(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const o=r[n];(!t||Am(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const r=this,n={};return ye.forEach(this,(i,o)=>{const s=ye.findKey(n,o);if(s){r[s]=tp(i),delete r[o];return}const u=t?SV(o):String(o).trim();u!==o&&delete r[o],r[u]=tp(i),n[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return ye.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&ye.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
527
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const n=(this[tO]=this[tO]={accessors:{}}).accessors,i=this.prototype;function o(s){const u=Iu(s);n[u]||(wV(i,s),n[u]=!0)}return ye.isArray(t)?t.forEach(o):o(t),this}};$n.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ye.reduceDescriptors($n.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});ye.freezeMethods($n);function $m(e,t){const r=this||zc,n=t||r,i=$n.from(n.headers);let o=n.data;return ye.forEach(e,function(u){o=u.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function X2(e){return!!(e&&e.__CANCEL__)}let Bc=class extends ut{constructor(t,r,n){super(t??"canceled",ut.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function K2(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new ut("Request failed with status code "+r.status,[ut.ERR_BAD_REQUEST,ut.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function xV(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function EV(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(c){const f=Date.now(),d=n[o];s||(s=f),r[i]=c,n[i]=f;let g=o,h=0;for(;g!==i;)h+=r[g++],g=g%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),f-s<t)return;const b=d&&f-d;return b?Math.round(h*1e3/b):void 0}}function CV(e,t){let r=0,n=1e3/t,i,o;const s=(f,d=Date.now())=>{r=d,i=null,o&&(clearTimeout(o),o=null),e(...f)};return[(...f)=>{const d=Date.now(),g=d-r;g>=n?s(f,d):(i=f,o||(o=setTimeout(()=>{o=null,s(i)},n-g)))},()=>i&&s(i)]}const xp=(e,t,r=3)=>{let n=0;const i=EV(50,250);return CV(o=>{const s=o.loaded,u=o.lengthComputable?o.total:void 0,c=s-n,f=i(c),d=s<=u;n=s;const g={loaded:s,total:u,progress:u?s/u:void 0,bytes:c,rate:f||void 0,estimated:f&&u&&d?(u-s)/f:void 0,event:o,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(g)},r)},rO=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},nO=e=>(...t)=>ye.asap(()=>e(...t)),RV=en.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,en.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(en.origin),en.navigator&&/(msie|trident)/i.test(en.navigator.userAgent)):()=>!0,_V=en.hasStandardBrowserEnv?{write(e,t,r,n,i,o,s){if(typeof document>"u")return;const u=[`${e}=${encodeURIComponent(t)}`];ye.isNumber(r)&&u.push(`expires=${new Date(r).toUTCString()}`),ye.isString(n)&&u.push(`path=${n}`),ye.isString(i)&&u.push(`domain=${i}`),o===!0&&u.push("secure"),ye.isString(s)&&u.push(`SameSite=${s}`),document.cookie=u.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function OV(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function TV(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Y2(e,t,r){let n=!OV(t);return e&&(n||r==!1)?TV(e,t):t}const iO=e=>e instanceof $n?{...e}:e;function Es(e,t){t=t||{};const r={};function n(f,d,g,h){return ye.isPlainObject(f)&&ye.isPlainObject(d)?ye.merge.call({caseless:h},f,d):ye.isPlainObject(d)?ye.merge({},d):ye.isArray(d)?d.slice():d}function i(f,d,g,h){if(ye.isUndefined(d)){if(!ye.isUndefined(f))return n(void 0,f,g,h)}else return n(f,d,g,h)}function o(f,d){if(!ye.isUndefined(d))return n(void 0,d)}function s(f,d){if(ye.isUndefined(d)){if(!ye.isUndefined(f))return n(void 0,f)}else return n(void 0,d)}function u(f,d,g){if(g in t)return n(f,d);if(g in e)return n(void 0,f)}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u,headers:(f,d,g)=>i(iO(f),iO(d),g,!0)};return ye.forEach(Object.keys({...e,...t}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const g=ye.hasOwnProp(c,d)?c[d]:i,h=g(e[d],t[d],d);ye.isUndefined(h)&&g!==u||(r[d]=h)}),r}const J2=e=>{const t=Es({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:u}=t;if(t.headers=s=$n.from(s),t.url=q2(Y2(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&s.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),ye.isFormData(r)){if(en.hasStandardBrowserEnv||en.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(ye.isFunction(r.getHeaders)){const c=r.getHeaders(),f=["content-type","content-length"];Object.entries(c).forEach(([d,g])=>{f.includes(d.toLowerCase())&&s.set(d,g)})}}if(en.hasStandardBrowserEnv&&(n&&ye.isFunction(n)&&(n=n(t)),n||n!==!1&&RV(t.url))){const c=i&&o&&_V.read(o);c&&s.set(i,c)}return t},AV=typeof XMLHttpRequest<"u",$V=AV&&function(e){return new Promise(function(r,n){const i=J2(e);let o=i.data;const s=$n.from(i.headers).normalize();let{responseType:u,onUploadProgress:c,onDownloadProgress:f}=i,d,g,h,b,v;function S(){b&&b(),v&&v(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let y=new XMLHttpRequest;y.open(i.method.toUpperCase(),i.url,!0),y.timeout=i.timeout;function E(){if(!y)return;const T=$n.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),R={data:!u||u==="text"||u==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:T,config:e,request:y};K2(function(O){r(O),S()},function(O){n(O),S()},R),y=null}"onloadend"in y?y.onloadend=E:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(E)},y.onabort=function(){y&&(n(new ut("Request aborted",ut.ECONNABORTED,e,y)),y=null)},y.onerror=function(A){const R=A&&A.message?A.message:"Network Error",$=new ut(R,ut.ERR_NETWORK,e,y);$.event=A||null,n($),y=null},y.ontimeout=function(){let A=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const R=i.transitional||Q1;i.timeoutErrorMessage&&(A=i.timeoutErrorMessage),n(new ut(A,R.clarifyTimeoutError?ut.ETIMEDOUT:ut.ECONNABORTED,e,y)),y=null},o===void 0&&s.setContentType(null),"setRequestHeader"in y&&ye.forEach(s.toJSON(),function(A,R){y.setRequestHeader(R,A)}),ye.isUndefined(i.withCredentials)||(y.withCredentials=!!i.withCredentials),u&&u!=="json"&&(y.responseType=i.responseType),f&&([h,v]=xp(f,!0),y.addEventListener("progress",h)),c&&y.upload&&([g,b]=xp(c),y.upload.addEventListener("progress",g),y.upload.addEventListener("loadend",b)),(i.cancelToken||i.signal)&&(d=T=>{y&&(n(!T||T.type?new Bc(null,e,y):T),y.abort(),y=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const x=xV(i.url);if(x&&en.protocols.indexOf(x)===-1){n(new ut("Unsupported protocol "+x+":",ut.ERR_BAD_REQUEST,e));return}y.send(o||null)})},IV=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const o=function(f){if(!i){i=!0,u();const d=f instanceof Error?f:this.reason;n.abort(d instanceof ut?d:new Bc(d instanceof Error?d.message:d))}};let s=t&&setTimeout(()=>{s=null,o(new ut(`timeout of ${t}ms exceeded`,ut.ETIMEDOUT))},t);const u=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(o):f.removeEventListener("abort",o)}),e=null)};e.forEach(f=>f.addEventListener("abort",o));const{signal:c}=n;return c.unsubscribe=()=>ye.asap(u),c}},PV=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,i;for(;n<r;)i=n+t,yield e.slice(n,i),n=i},kV=async function*(e,t){for await(const r of MV(e))yield*PV(r,t)},MV=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},oO=(e,t,r,n)=>{const i=kV(e,t);let o=0,s,u=c=>{s||(s=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:f,value:d}=await i.next();if(f){u(),c.close();return}let g=d.byteLength;if(r){let h=o+=g;r(h)}c.enqueue(new Uint8Array(d))}catch(f){throw u(f),f}},cancel(c){return u(c),i.return()}},{highWaterMark:2})},aO=64*1024,{isFunction:yd}=ye,DV=(({Request:e,Response:t})=>({Request:e,Response:t}))(ye.global),{ReadableStream:sO,TextEncoder:lO}=ye.global,uO=(e,...t)=>{try{return!!e(...t)}catch{return!1}},LV=e=>{e=ye.merge.call({skipUndefined:!0},DV,e);const{fetch:t,Request:r,Response:n}=e,i=t?yd(t):typeof fetch=="function",o=yd(r),s=yd(n);if(!i)return!1;const u=i&&yd(sO),c=i&&(typeof lO=="function"?(v=>S=>v.encode(S))(new lO):async v=>new Uint8Array(await new r(v).arrayBuffer())),f=o&&u&&uO(()=>{let v=!1;const S=new r(en.origin,{body:new sO,method:"POST",get duplex(){return v=!0,"half"}}).headers.has("Content-Type");return v&&!S}),d=s&&u&&uO(()=>ye.isReadableStream(new n("").body)),g={stream:d&&(v=>v.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!g[v]&&(g[v]=(S,y)=>{let E=S&&S[v];if(E)return E.call(S);throw new ut(`Response type '${v}' is not supported`,ut.ERR_NOT_SUPPORT,y)})});const h=async v=>{if(v==null)return 0;if(ye.isBlob(v))return v.size;if(ye.isSpecCompliantForm(v))return(await new r(en.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if(ye.isArrayBufferView(v)||ye.isArrayBuffer(v))return v.byteLength;if(ye.isURLSearchParams(v)&&(v=v+""),ye.isString(v))return(await c(v)).byteLength},b=async(v,S)=>{const y=ye.toFiniteNumber(v.getContentLength());return y??h(S)};return async v=>{let{url:S,method:y,data:E,signal:x,cancelToken:T,timeout:A,onDownloadProgress:R,onUploadProgress:$,responseType:O,headers:I,withCredentials:L="same-origin",fetchOptions:F}=J2(v),q=t||fetch;O=O?(O+"").toLowerCase():"text";let z=IV([x,T&&T.toAbortSignal()],A),B=null;const N=z&&z.unsubscribe&&(()=>{z.unsubscribe()});let j;try{if($&&f&&y!=="get"&&y!=="head"&&(j=await b(I,E))!==0){let D=new r(S,{method:"POST",body:E,duplex:"half"}),P;if(ye.isFormData(E)&&(P=D.headers.get("content-type"))&&I.setContentType(P),D.body){const[G,Z]=rO(j,xp(nO($)));E=oO(D.body,aO,G,Z)}}ye.isString(L)||(L=L?"include":"omit");const H=o&&"credentials"in r.prototype,X={...F,signal:z,method:y.toUpperCase(),headers:I.normalize().toJSON(),body:E,duplex:"half",credentials:H?L:void 0};B=o&&new r(S,X);let M=await(o?q(B,F):q(S,X));const Q=d&&(O==="stream"||O==="response");if(d&&(R||Q&&N)){const D={};["status","statusText","headers"].forEach(te=>{D[te]=M[te]});const P=ye.toFiniteNumber(M.headers.get("content-length")),[G,Z]=R&&rO(P,xp(nO(R),!0))||[];M=new n(oO(M.body,aO,G,()=>{Z&&Z(),N&&N()}),D)}O=O||"text";let W=await g[ye.findKey(g,O)||"text"](M,v);return!Q&&N&&N(),await new Promise((D,P)=>{K2(D,P,{data:W,headers:$n.from(M.headers),status:M.status,statusText:M.statusText,config:v,request:B})})}catch(H){throw N&&N(),H&&H.name==="TypeError"&&/Load failed|fetch/i.test(H.message)?Object.assign(new ut("Network Error",ut.ERR_NETWORK,v,B,H&&H.response),{cause:H.cause||H}):ut.from(H,H&&H.code,v,B,H&&H.response)}}},FV=new Map,Q2=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:i}=t,o=[n,i,r];let s=o.length,u=s,c,f,d=FV;for(;u--;)c=o[u],f=d.get(c),f===void 0&&d.set(c,f=u?new Map:LV(t)),d=f;return f};Q2();const eS={http:eV,xhr:$V,fetch:{get:Q2}};ye.forEach(eS,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const cO=e=>`- ${e}`,NV=e=>ye.isFunction(e)||e===null||e===!1;function jV(e,t){e=ye.isArray(e)?e:[e];const{length:r}=e;let n,i;const o={};for(let s=0;s<r;s++){n=e[s];let u;if(i=n,!NV(n)&&(i=eS[(u=String(n)).toLowerCase()],i===void 0))throw new ut(`Unknown adapter '${u}'`);if(i&&(ye.isFunction(i)||(i=i.get(t))))break;o[u||"#"+s]=i}if(!i){const s=Object.entries(o).map(([c,f])=>`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let u=r?s.length>1?`since :
528
+ `+s.map(cO).join(`
529
+ `):" "+cO(s[0]):"as no adapter specified";throw new ut("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return i}const Z2={getAdapter:jV,adapters:eS};function Im(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Bc(null,e)}function fO(e){return Im(e),e.headers=$n.from(e.headers),e.data=$m.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Z2.getAdapter(e.adapter||zc.adapter,e)(e).then(function(n){return Im(e),n.data=$m.call(e,e.transformResponse,n),n.headers=$n.from(n.headers),n},function(n){return X2(n)||(Im(e),n&&n.response&&(n.response.data=$m.call(e,e.transformResponse,n.response),n.response.headers=$n.from(n.response.headers))),Promise.reject(n)})}const eP="1.13.5",nh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{nh[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const dO={};nh.transitional=function(t,r,n){function i(o,s){return"[Axios v"+eP+"] Transitional option '"+o+"'"+s+(n?". "+n:"")}return(o,s,u)=>{if(t===!1)throw new ut(i(s," has been removed"+(r?" in "+r:"")),ut.ERR_DEPRECATED);return r&&!dO[s]&&(dO[s]=!0,console.warn(i(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,s,u):!0}};nh.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function zV(e,t,r){if(typeof e!="object")throw new ut("options must be an object",ut.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],s=t[o];if(s){const u=e[o],c=u===void 0||s(u,o,e);if(c!==!0)throw new ut("option "+o+" must be "+c,ut.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ut("Unknown option "+o,ut.ERR_BAD_OPTION)}}const rp={assertOptions:zV,validators:nh},bi=rp.validators;let vs=class{constructor(t){this.defaults=t||{},this.interceptors={request:new eO,response:new eO}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=`
530
+ `+o):n.stack=o}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Es(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&rp.assertOptions(n,{silentJSONParsing:bi.transitional(bi.boolean),forcedJSONParsing:bi.transitional(bi.boolean),clarifyTimeoutError:bi.transitional(bi.boolean),legacyInterceptorReqResOrdering:bi.transitional(bi.boolean)},!1),i!=null&&(ye.isFunction(i)?r.paramsSerializer={serialize:i}:rp.assertOptions(i,{encode:bi.function,serialize:bi.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),rp.assertOptions(r,{baseUrl:bi.spelling("baseURL"),withXsrfToken:bi.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=o&&ye.merge(o.common,o[r.method]);o&&ye.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),r.headers=$n.concat(s,o);const u=[];let c=!0;this.interceptors.request.forEach(function(S){if(typeof S.runWhen=="function"&&S.runWhen(r)===!1)return;c=c&&S.synchronous;const y=r.transitional||Q1;y&&y.legacyInterceptorReqResOrdering?u.unshift(S.fulfilled,S.rejected):u.push(S.fulfilled,S.rejected)});const f=[];this.interceptors.response.forEach(function(S){f.push(S.fulfilled,S.rejected)});let d,g=0,h;if(!c){const v=[fO.bind(this),void 0];for(v.unshift(...u),v.push(...f),h=v.length,d=Promise.resolve(r);g<h;)d=d.then(v[g++],v[g++]);return d}h=u.length;let b=r;for(;g<h;){const v=u[g++],S=u[g++];try{b=v(b)}catch(y){S.call(this,y);break}}try{d=fO.call(this,b)}catch(v){return Promise.reject(v)}for(g=0,h=f.length;g<h;)d=d.then(f[g++],f[g++]);return d}getUri(t){t=Es(this.defaults,t);const r=Y2(t.baseURL,t.url,t.allowAbsoluteUrls);return q2(r,t.params,t.paramsSerializer)}};ye.forEach(["delete","get","head","options"],function(t){vs.prototype[t]=function(r,n){return this.request(Es(n||{},{method:t,url:r,data:(n||{}).data}))}});ye.forEach(["post","put","patch"],function(t){function r(n){return function(o,s,u){return this.request(Es(u||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}vs.prototype[t]=r(),vs.prototype[t+"Form"]=r(!0)});let BV=class tP{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});const n=this;this.promise.then(i=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](i);n._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(u=>{n.subscribe(u),o=u}).then(i);return s.cancel=function(){n.unsubscribe(o)},s},t(function(o,s,u){n.reason||(n.reason=new Bc(o,s,u),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new tP(function(i){t=i}),cancel:t}}};function VV(e){return function(r){return e.apply(null,r)}}function UV(e){return ye.isObject(e)&&e.isAxiosError===!0}const ab={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ab).forEach(([e,t])=>{ab[t]=e});function rP(e){const t=new vs(e),r=D2(vs.prototype.request,t);return ye.extend(r,vs.prototype,t,{allOwnKeys:!0}),ye.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return rP(Es(e,i))},r}const jt=rP(zc);jt.Axios=vs;jt.CanceledError=Bc;jt.CancelToken=BV;jt.isCancel=X2;jt.VERSION=eP;jt.toFormData=rh;jt.AxiosError=ut;jt.Cancel=jt.CanceledError;jt.all=function(t){return Promise.all(t)};jt.spread=VV;jt.isAxiosError=UV;jt.mergeConfig=Es;jt.AxiosHeaders=$n;jt.formToJSON=e=>G2(ye.isHTMLForm(e)?new FormData(e):e);jt.getAdapter=Z2.getAdapter;jt.HttpStatusCode=ab;jt.default=jt;const{Axios:nie,AxiosError:iie,CanceledError:oie,isCancel:aie,CancelToken:sie,VERSION:lie,all:uie,Cancel:cie,isAxiosError:fie,spread:die,toFormData:pie,AxiosHeaders:hie,HttpStatusCode:gie,formToJSON:vie,getAdapter:mie,mergeConfig:yie}=jt;var Bu=(e=>(e.currency="currency",e.plugin="plugin",e.tool="tool",e.swap="swap",e))(Bu||{});const HV=1,WV="0";let Xi=class{constructor(t){this.error=t,this.originalError=t}_tag="FetchError";originalError};var Vu=(e=>(e.currency="currency",e.plugin="plugin",e.tool="tool",e.swap="swap",e))(Vu||{}),qV=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},GV=(e,t)=>(r,n)=>t(r,n,e);let pO=class{_managerApiBaseUrl;_provider=HV;_firmwareDistributionSalt=WV;constructor({managerApiUrl:t,provider:r,firmwareDistributionSalt:n}){this._managerApiBaseUrl=t,this._provider=r,this._firmwareDistributionSalt=n}setProvider(t){this._provider===t||t<1||(this._provider=t)}getProvider(){return this._provider}getAppList(t){const{targetId:r,firmwareVersionName:n}=t;return mt(()=>jt.get(`${this._managerApiBaseUrl}/v2/apps/by-target`,{params:{target_id:r,provider:this._provider,firmware_version_name:n}})).map(i=>i.data).chain(i=>this.mapApplicationDtoToApplication(i)).mapLeft(i=>new Xi(i))}getMcuList(){return mt(()=>jt.get(`${this._managerApiBaseUrl}/mcu_versions`,{})).map(t=>t.data).chain(t=>this.mapMcuDtoToMcu(t)).mapLeft(t=>new Xi(t))}getDeviceVersion(t){const{targetId:r}=t;return mt(()=>jt.get(`${this._managerApiBaseUrl}/get_device_version`,{params:{target_id:r,provider:this._provider}})).map(n=>n.data).chain(n=>this.mapDeviceVersionDto(n)).mapLeft(n=>new Xi(n))}getFirmwareVersion(t){const{deviceId:r,version:n}=t;return mt(()=>jt.get(`${this._managerApiBaseUrl}/get_firmware_version`,{params:{device_version:r,version_name:n,provider:this._provider}})).map(i=>i.data).chain(i=>this.mapFinalFirmwareDto(i)).mapLeft(i=>new Xi(i))}getFirmwareVersionById(t){return mt(()=>jt.get(`${this._managerApiBaseUrl}/firmware_final_versions/${t}`,{})).map(r=>r.data).chain(r=>this.mapFinalFirmwareDto(r)).mapLeft(r=>new Xi(r))}getOsuFirmwareVersion(t){const{deviceId:r,version:n}=t;return mt(()=>jt.get(`${this._managerApiBaseUrl}/get_osu_version`,{params:{device_version:r,version_name:n,provider:this._provider}})).map(i=>i.data).chain(i=>this.mapOsuFirmwareDto(i)).mapLeft(i=>new Xi(i))}getLatestFirmwareVersion(t){const r="34.27.0",{currentFinalFirmwareId:n,deviceId:i}=t;return mt(()=>jt.get(`${this._managerApiBaseUrl}/get_latest_firmware`,{params:{current_se_firmware_final_version:n,device_version:i,provider:this._provider,salt:this._firmwareDistributionSalt,livecommonversion:r}})).map(o=>o.data).chain(o=>this.mapLatestFirmwareDto(o)).mapLeft(o=>new Xi(o))}getAppsByHash(t){const{hashes:r}=t;return mt(()=>jt.post(`${this._managerApiBaseUrl}/v2/apps/hash`,r)).map(n=>n.data).chain(n=>this.mapNullableApplicationDtoToApplication(n)).mapLeft(n=>new Xi(n))}getLanguagePackages(t){const{deviceId:r,currentFinalFirmwareId:n}=t;return mt(()=>jt.get(`${this._managerApiBaseUrl}/language-packages`,{params:{device_version:r,current_se_firmware_final_version:n}})).map(i=>i.data).chain(i=>this.mapLanguagesDtoToLanguages(i)).mapLeft(i=>new Xi(i))}mapAppTypeDtoToAppType(t){if(t===null)return null;switch(t){case Vu.currency:return Bu.currency;case Vu.plugin:return Bu.plugin;case Vu.tool:return Bu.tool;case Vu.swap:return Bu.swap}}mapApplicationDtoToApplication(t){return mt(()=>Promise.resolve(t.map(r=>this.mapApplicationDto(r))))}mapNullableApplicationDtoToApplication(t){return mt(()=>Promise.resolve(t.map(r=>r===null?null:this.mapApplicationDto(r))))}mapApplicationDto(t){if(typeof t!="object"||typeof t.versionId!="number"||typeof t.versionName!="string"||t.versionDisplayName!==null&&typeof t.versionDisplayName!="string"||typeof t.version!="string"||t.currencyId!==null&&typeof t.currencyId!="string"||t.description!==null&&typeof t.description!="string"||t.applicationType!==null&&typeof t.applicationType!="string"||typeof t.dateModified!="string"||t.icon!==null&&typeof t.icon!="string"||t.authorName!==null&&typeof t.authorName!="string"||t.supportURL!==null&&typeof t.supportURL!="string"||t.contactURL!==null&&typeof t.contactURL!="string"||t.sourceURL!==null&&typeof t.sourceURL!="string"||t.compatibleWallets!==null&&typeof t.compatibleWallets!="string"||typeof t.hash!="string"||typeof t.perso!="string"||typeof t.firmware!="string"||typeof t.firmwareKey!="string"||typeof t.delete!="string"||typeof t.deleteKey!="string"||t.bytes!==null&&typeof t.bytes!="number"||t.warning!==null&&typeof t.warning!="string"||typeof t.isDevTools!="boolean"||t.category!==null&&typeof t.category!="number"||t.parent!==null&&typeof t.parent!="number"||t.parentName!==null&&typeof t.parentName!="string")throw new Error(`Incomplete application: ${JSON.stringify(t)}`);const{applicationType:r,hash:n,perso:i,firmware:o,firmwareKey:s,delete:u,deleteKey:c,...f}=t;return{...f,hash:n,perso:i,firmware:o,firmwareKey:s,delete:u,deleteKey:c,applicationType:this.mapAppTypeDtoToAppType(r)}}mapMcuDtoToMcu(t){return mt(()=>Promise.resolve(t.map(r=>{if(typeof r!="object"||typeof r.id!="number"||typeof r.name!="string")throw new Error(`Incomplete MCU version: ${JSON.stringify(r)}`);return{id:r.id,name:r.name}})))}mapDeviceVersionDto(t){return mt(()=>{if(typeof t!="object"||typeof t.id!="number")throw new Error(`Incomplete device version: ${JSON.stringify(t)}`);const r={id:t.id};return Promise.resolve(r)})}mapFinalFirmwareDto(t){return mt(()=>{if(typeof t!="object"||typeof t.id!="number"||typeof t.version!="string"||typeof t.perso!="string"||t.firmware!==null&&typeof t.firmware!="string"||t.firmware_key!==null&&typeof t.firmware_key!="string"||t.hash!==null&&typeof t.hash!="string"||t.bytes!==null&&typeof t.bytes!="number"||!Array.isArray(t.mcu_versions))throw new Error(`Incomplete final firmware: ${JSON.stringify(t)}`);const r={id:t.id,version:t.version,perso:t.perso,firmware:t.firmware,firmwareKey:t.firmware_key,hash:t.hash,bytes:t.bytes,mcuVersions:t.mcu_versions};return Promise.resolve(r)})}mapLatestFirmwareDto(t){return mt(()=>{if(t.result!=="success"||!t.se_firmware_osu_version)throw new Error(`Latest firmware could not be retrieved: ${t.result}`);const r=t.se_firmware_osu_version;return Promise.resolve(r)}).chain(r=>this.mapOsuFirmwareDto(r))}mapOsuFirmwareDto(t){return mt(()=>{if(typeof t!="object"||typeof t.id!="number"||typeof t.perso!="string"||typeof t.firmware!="string"||typeof t.firmware_key!="string"||t.hash!==null&&typeof t.hash!="string"||typeof t.next_se_firmware_final_version!="number")throw new Error(`Incomplete latest firmware: ${JSON.stringify(t)}`);const r={id:t.id,perso:t.perso,firmware:t.firmware,firmwareKey:t.firmware_key,hash:t.hash,nextFinalFirmware:t.next_se_firmware_final_version};return Promise.resolve(r)})}mapLanguagesDtoToLanguages(t){return mt(()=>Promise.resolve(t.map(r=>this.mapLanguageDto(r))))}mapLanguageDto(t){if(typeof t!="object"||typeof t.language!="string"||typeof t.languagePackageVersionId!="number"||typeof t.version!="string"||typeof t.language_package_id!="number"||typeof t.apdu_install_url!="string"||typeof t.apdu_uninstall_url!="string"||typeof t.bytes!="number"||typeof t.date_creation!="string"||typeof t.date_last_modified!="string")throw new Error(`Incomplete language version: ${JSON.stringify(t)}`);return{language:t.language,languagePackageVersionId:t.languagePackageVersionId,version:t.version,languagePackageId:t.language_package_id,apduInstallUrl:t.apdu_install_url,apduUninstallUrl:t.apdu_uninstall_url,bytes:t.bytes,dateCreation:t.date_creation,dateLastModified:t.date_last_modified}}};pO=qV([Rt(),GV(0,rt(Qp.DmkConfig))],pO);var XV=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},KV=(e,t)=>(r,n)=>t(r,n,e);let hO=class{constructor(t){this.dataSource=t}getAppList(t){const r={targetId:t.targetId.toString(),firmwareVersionName:t.seVersion};return this.dataSource.getAppList(r)}getDeviceVersion(t){const r={targetId:t.targetId.toString()};return this.dataSource.getDeviceVersion(r)}getFirmwareVersion(t,r){const n={version:t.seVersion,deviceId:r.id};return this.dataSource.getFirmwareVersion(n)}getOsuFirmwareVersion(t,r){const n={version:t.seVersion,deviceId:r.id};return this.dataSource.getOsuFirmwareVersion(n)}getLatestFirmwareVersion(t,r){const n={currentFinalFirmwareId:t.id,deviceId:r.id};return this.dataSource.getLatestFirmwareVersion(n)}getNextFirmwareVersion(t){return this.dataSource.getFirmwareVersionById(t.nextFinalFirmware)}getLanguagePackages(t,r){const n={deviceId:t.id,currentFinalFirmwareId:r.id};return this.dataSource.getLanguagePackages(n)}getMcuList(){return this.dataSource.getMcuList()}getAppsByHash(t){const r={hashes:t};return mt(async({fromPromise:n,throwE:i})=>{if(r.hashes.length===0)return[];try{return await n(this.dataSource.getAppsByHash(r))}catch(o){return o instanceof Xi?i(o):i(new Xi(o))}})}};hO=XV([Rt(),KV(0,rt(Qp.ManagerApiDataSource))],hO);var YV=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},gO=(e,t)=>(r,n)=>t(r,n,e);let vO=class{constructor(t,r){this.sessionService=t,this.managerApiDataSource=r}execute(t){for(const r of this.sessionService.getDeviceSessions()){const n=r.getDeviceSessionState();n.sessionStateType!==pc.Connected&&r.setDeviceSessionState({...n,firmwareUpdateContext:void 0,installedApps:[],appsUpdates:void 0,catalog:void 0})}this.managerApiDataSource.setProvider(t)}};vO=YV([Rt(),gO(0,rt(gn.DeviceSessionService)),gO(1,rt(Qp.ManagerApiDataSource))],vO);var is={},Uu={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */var JV=Uu.exports,mO;function QV(){return mO||(mO=1,(function(e,t){(function(r){var n=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,o=typeof self=="object"&&self;(o.global===o||o.window===o||o.self===o)&&(r=o);var s,u=2147483647,c=36,f=1,d=26,g=38,h=700,b=72,v=128,S="-",y=/^xn--/,E=/[^\x20-\x7E]/,x=/[\x2E\u3002\uFF0E\uFF61]/g,T={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},A=c-f,R=Math.floor,$=String.fromCharCode,O;function I(W){throw new RangeError(T[W])}function L(W,D){for(var P=W.length,G=[];P--;)G[P]=D(W[P]);return G}function F(W,D){var P=W.split("@"),G="";P.length>1&&(G=P[0]+"@",W=P[1]),W=W.replace(x,".");var Z=W.split("."),te=L(Z,D).join(".");return G+te}function q(W){for(var D=[],P=0,G=W.length,Z,te;P<G;)Z=W.charCodeAt(P++),Z>=55296&&Z<=56319&&P<G?(te=W.charCodeAt(P++),(te&64512)==56320?D.push(((Z&1023)<<10)+(te&1023)+65536):(D.push(Z),P--)):D.push(Z);return D}function z(W){return L(W,function(D){var P="";return D>65535&&(D-=65536,P+=$(D>>>10&1023|55296),D=56320|D&1023),P+=$(D),P}).join("")}function B(W){return W-48<10?W-22:W-65<26?W-65:W-97<26?W-97:c}function N(W,D){return W+22+75*(W<26)-((D!=0)<<5)}function j(W,D,P){var G=0;for(W=P?R(W/h):W>>1,W+=R(W/D);W>A*d>>1;G+=c)W=R(W/A);return R(G+(A+1)*W/(W+g))}function H(W){var D=[],P=W.length,G,Z=0,te=v,K=b,be,ae,Se,he,Ee,we,Te,Ce,_e;for(be=W.lastIndexOf(S),be<0&&(be=0),ae=0;ae<be;++ae)W.charCodeAt(ae)>=128&&I("not-basic"),D.push(W.charCodeAt(ae));for(Se=be>0?be+1:0;Se<P;){for(he=Z,Ee=1,we=c;Se>=P&&I("invalid-input"),Te=B(W.charCodeAt(Se++)),(Te>=c||Te>R((u-Z)/Ee))&&I("overflow"),Z+=Te*Ee,Ce=we<=K?f:we>=K+d?d:we-K,!(Te<Ce);we+=c)_e=c-Ce,Ee>R(u/_e)&&I("overflow"),Ee*=_e;G=D.length+1,K=j(Z-he,G,he==0),R(Z/G)>u-te&&I("overflow"),te+=R(Z/G),Z%=G,D.splice(Z++,0,te)}return z(D)}function X(W){var D,P,G,Z,te,K,be,ae,Se,he,Ee,we=[],Te,Ce,_e,$e;for(W=q(W),Te=W.length,D=v,P=0,te=b,K=0;K<Te;++K)Ee=W[K],Ee<128&&we.push($(Ee));for(G=Z=we.length,Z&&we.push(S);G<Te;){for(be=u,K=0;K<Te;++K)Ee=W[K],Ee>=D&&Ee<be&&(be=Ee);for(Ce=G+1,be-D>R((u-P)/Ce)&&I("overflow"),P+=(be-D)*Ce,D=be,K=0;K<Te;++K)if(Ee=W[K],Ee<D&&++P>u&&I("overflow"),Ee==D){for(ae=P,Se=c;he=Se<=te?f:Se>=te+d?d:Se-te,!(ae<he);Se+=c)$e=ae-he,_e=c-he,we.push($(N(he+$e%_e,0))),ae=R($e/_e);we.push($(N(ae,0))),te=j(P,Ce,G==Z),P=0,++G}++P,++D}return we.join("")}function M(W){return F(W,function(D){return y.test(D)?H(D.slice(4).toLowerCase()):D})}function Q(W){return F(W,function(D){return E.test(D)?"xn--"+X(D):D})}if(s={version:"1.4.1",ucs2:{decode:q,encode:z},decode:H,encode:X,toASCII:Q,toUnicode:M},n&&i)if(e.exports==n)i.exports=s;else for(O in s)s.hasOwnProperty(O)&&(n[O]=s[O]);else r.punycode=s})(JV)})(Uu,Uu.exports)),Uu.exports}var Pm,yO;function Kl(){return yO||(yO=1,Pm=TypeError),Pm}const ZV={},e9=Object.freeze(Object.defineProperty({__proto__:null,default:ZV},Symbol.toStringTag,{value:"Module"})),t9=h1(e9);var km,bO;function ih(){if(bO)return km;bO=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,n=e&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,o=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,s=i&&o&&typeof o.get=="function"?o.get:null,u=i&&Set.prototype.forEach,c=typeof WeakMap=="function"&&WeakMap.prototype,f=c?WeakMap.prototype.has:null,d=typeof WeakSet=="function"&&WeakSet.prototype,g=d?WeakSet.prototype.has:null,h=typeof WeakRef=="function"&&WeakRef.prototype,b=h?WeakRef.prototype.deref:null,v=Boolean.prototype.valueOf,S=Object.prototype.toString,y=Function.prototype.toString,E=String.prototype.match,x=String.prototype.slice,T=String.prototype.replace,A=String.prototype.toUpperCase,R=String.prototype.toLowerCase,$=RegExp.prototype.test,O=Array.prototype.concat,I=Array.prototype.join,L=Array.prototype.slice,F=Math.floor,q=typeof BigInt=="function"?BigInt.prototype.valueOf:null,z=Object.getOwnPropertySymbols,B=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,N=typeof Symbol=="function"&&typeof Symbol.iterator=="object",j=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===N||!0)?Symbol.toStringTag:null,H=Object.prototype.propertyIsEnumerable,X=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(V){return V.__proto__}:null);function M(V,ee){if(V===1/0||V===-1/0||V!==V||V&&V>-1e3&&V<1e3||$.call(/e/,ee))return ee;var Oe=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof V=="number"){var le=V<0?-F(-V):F(V);if(le!==V){var fe=String(le),ve=x.call(ee,fe.length+1);return T.call(fe,Oe,"$&_")+"."+T.call(T.call(ve,/([0-9]{3})/g,"$&_"),/_$/,"")}}return T.call(ee,Oe,"$&_")}var Q=t9,W=Q.custom,D=Te(W)?W:null,P={__proto__:null,double:'"',single:"'"},G={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};km=function V(ee,Oe,le,fe){var ve=Oe||{};if($e(ve,"quoteStyle")&&!$e(P,ve.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if($e(ve,"maxStringLength")&&(typeof ve.maxStringLength=="number"?ve.maxStringLength<0&&ve.maxStringLength!==1/0:ve.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Ie=$e(ve,"customInspect")?ve.customInspect:!0;if(typeof Ie!="boolean"&&Ie!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if($e(ve,"indent")&&ve.indent!==null&&ve.indent!==" "&&!(parseInt(ve.indent,10)===ve.indent&&ve.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if($e(ve,"numericSeparator")&&typeof ve.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var De=ve.numericSeparator;if(typeof ee>"u")return"undefined";if(ee===null)return"null";if(typeof ee=="boolean")return ee?"true":"false";if(typeof ee=="string")return ct(ee,ve);if(typeof ee=="number"){if(ee===0)return 1/0/ee>0?"0":"-0";var Be=String(ee);return De?M(ee,Be):Be}if(typeof ee=="bigint"){var Ze=String(ee)+"n";return De?M(ee,Ze):Ze}var et=typeof ve.depth>"u"?5:ve.depth;if(typeof le>"u"&&(le=0),le>=et&&et>0&&typeof ee=="object")return K(ee)?"[Array]":"[Object]";var tt=se(ve,le);if(typeof fe>"u")fe=[];else if(Qe(fe,ee)>=0)return"[Circular]";function Bt(nr,Tr,Ne){if(Tr&&(fe=L.call(fe),fe.push(Tr)),Ne){var oi={depth:ve.depth};return $e(ve,"quoteStyle")&&(oi.quoteStyle=ve.quoteStyle),V(nr,oi,le+1,fe)}return V(nr,ve,le+1,fe)}if(typeof ee=="function"&&!ae(ee)){var dt=Ge(ee),gt=Y(ee,Bt);return"[Function"+(dt?": "+dt:" (anonymous)")+"]"+(gt.length>0?" { "+I.call(gt,", ")+" }":"")}if(Te(ee)){var wt=N?T.call(String(ee),/^(Symbol\(.*\))_[^)]*$/,"$1"):B.call(ee);return typeof ee=="object"&&!N?ht(wt):wt}if(Xe(ee)){for(var vt="<"+R.call(String(ee.nodeName)),bt=ee.attributes||[],Ot=0;Ot<bt.length;Ot++)vt+=" "+bt[Ot].name+"="+Z(te(bt[Ot].value),"double",ve);return vt+=">",ee.childNodes&&ee.childNodes.length&&(vt+="..."),vt+="</"+R.call(String(ee.nodeName))+">",vt}if(K(ee)){if(ee.length===0)return"[]";var Vt=Y(ee,Bt);return tt&&!ne(Vt)?"["+pe(Vt,tt)+"]":"[ "+I.call(Vt,", ")+" ]"}if(Se(ee)){var ur=Y(ee,Bt);return!("cause"in Error.prototype)&&"cause"in ee&&!H.call(ee,"cause")?"{ ["+String(ee)+"] "+I.call(O.call("[cause]: "+Bt(ee.cause),ur),", ")+" }":ur.length===0?"["+String(ee)+"]":"{ ["+String(ee)+"] "+I.call(ur,", ")+" }"}if(typeof ee=="object"&&Ie){if(D&&typeof ee[D]=="function"&&Q)return Q(ee,{depth:et-le});if(Ie!=="symbol"&&typeof ee.inspect=="function")return ee.inspect()}if(je(ee)){var gr=[];return n&&n.call(ee,function(nr,Tr){gr.push(Bt(Tr,ee,!0)+" => "+Bt(nr,ee))}),It("Map",r.call(ee),gr,tt)}if(Ue(ee)){var Sr=[];return u&&u.call(ee,function(nr){Sr.push(Bt(nr,ee))}),It("Set",s.call(ee),Sr,tt)}if(ze(ee))return Ft("WeakMap");if(Re(ee))return Ft("WeakSet");if(Ye(ee))return Ft("WeakRef");if(Ee(ee))return ht(Bt(Number(ee)));if(Ce(ee))return ht(Bt(q.call(ee)));if(we(ee))return ht(v.call(ee));if(he(ee))return ht(Bt(String(ee)));if(typeof window<"u"&&ee===window)return"{ [object Window] }";if(typeof globalThis<"u"&&ee===globalThis||typeof self<"u"&&ee===self)return"{ [object globalThis] }";if(!be(ee)&&!ae(ee)){var Or=Y(ee,Bt),Dr=X?X(ee)===Object.prototype:ee instanceof Object||ee.constructor===Object,Lr=ee instanceof Object?"":"null prototype",vr=!Dr&&j&&Object(ee)===ee&&j in ee?x.call(ke(ee),8,-1):Lr?"Object":"",yn=Dr||typeof ee.constructor!="function"?"":ee.constructor.name?ee.constructor.name+" ":"",qt=yn+(vr||Lr?"["+I.call(O.call([],vr||[],Lr||[]),": ")+"] ":"");return Or.length===0?qt+"{}":tt?qt+"{"+pe(Or,tt)+"}":qt+"{ "+I.call(Or,", ")+" }"}return String(ee)};function Z(V,ee,Oe){var le=Oe.quoteStyle||ee,fe=P[le];return fe+V+fe}function te(V){return T.call(String(V),/"/g,"&quot;")}function K(V){return ke(V)==="[object Array]"&&(!j||!(typeof V=="object"&&j in V))}function be(V){return ke(V)==="[object Date]"&&(!j||!(typeof V=="object"&&j in V))}function ae(V){return ke(V)==="[object RegExp]"&&(!j||!(typeof V=="object"&&j in V))}function Se(V){return ke(V)==="[object Error]"&&(!j||!(typeof V=="object"&&j in V))}function he(V){return ke(V)==="[object String]"&&(!j||!(typeof V=="object"&&j in V))}function Ee(V){return ke(V)==="[object Number]"&&(!j||!(typeof V=="object"&&j in V))}function we(V){return ke(V)==="[object Boolean]"&&(!j||!(typeof V=="object"&&j in V))}function Te(V){if(N)return V&&typeof V=="object"&&V instanceof Symbol;if(typeof V=="symbol")return!0;if(!V||typeof V!="object"||!B)return!1;try{return B.call(V),!0}catch{}return!1}function Ce(V){if(!V||typeof V!="object"||!q)return!1;try{return q.call(V),!0}catch{}return!1}var _e=Object.prototype.hasOwnProperty||function(V){return V in this};function $e(V,ee){return _e.call(V,ee)}function ke(V){return S.call(V)}function Ge(V){if(V.name)return V.name;var ee=E.call(y.call(V),/^function\s*([\w$]+)/);return ee?ee[1]:null}function Qe(V,ee){if(V.indexOf)return V.indexOf(ee);for(var Oe=0,le=V.length;Oe<le;Oe++)if(V[Oe]===ee)return Oe;return-1}function je(V){if(!r||!V||typeof V!="object")return!1;try{r.call(V);try{s.call(V)}catch{return!0}return V instanceof Map}catch{}return!1}function ze(V){if(!f||!V||typeof V!="object")return!1;try{f.call(V,f);try{g.call(V,g)}catch{return!0}return V instanceof WeakMap}catch{}return!1}function Ye(V){if(!b||!V||typeof V!="object")return!1;try{return b.call(V),!0}catch{}return!1}function Ue(V){if(!s||!V||typeof V!="object")return!1;try{s.call(V);try{r.call(V)}catch{return!0}return V instanceof Set}catch{}return!1}function Re(V){if(!g||!V||typeof V!="object")return!1;try{g.call(V,g);try{f.call(V,f)}catch{return!0}return V instanceof WeakSet}catch{}return!1}function Xe(V){return!V||typeof V!="object"?!1:typeof HTMLElement<"u"&&V instanceof HTMLElement?!0:typeof V.nodeName=="string"&&typeof V.getAttribute=="function"}function ct(V,ee){if(V.length>ee.maxStringLength){var Oe=V.length-ee.maxStringLength,le="... "+Oe+" more character"+(Oe>1?"s":"");return ct(x.call(V,0,ee.maxStringLength),ee)+le}var fe=G[ee.quoteStyle||"single"];fe.lastIndex=0;var ve=T.call(T.call(V,fe,"\\$1"),/[\x00-\x1f]/g,Pt);return Z(ve,"single",ee)}function Pt(V){var ee=V.charCodeAt(0),Oe={8:"b",9:"t",10:"n",12:"f",13:"r"}[ee];return Oe?"\\"+Oe:"\\x"+(ee<16?"0":"")+A.call(ee.toString(16))}function ht(V){return"Object("+V+")"}function Ft(V){return V+" { ? }"}function It(V,ee,Oe,le){var fe=le?pe(Oe,le):I.call(Oe,", ");return V+" ("+ee+") {"+fe+"}"}function ne(V){for(var ee=0;ee<V.length;ee++)if(Qe(V[ee],`
531
+ `)>=0)return!1;return!0}function se(V,ee){var Oe;if(V.indent===" ")Oe=" ";else if(typeof V.indent=="number"&&V.indent>0)Oe=I.call(Array(V.indent+1)," ");else return null;return{base:Oe,prev:I.call(Array(ee+1),Oe)}}function pe(V,ee){if(V.length===0)return"";var Oe=`
532
+ `+ee.prev+ee.base;return Oe+I.call(V,","+Oe)+`
533
+ `+ee.prev}function Y(V,ee){var Oe=K(V),le=[];if(Oe){le.length=V.length;for(var fe=0;fe<V.length;fe++)le[fe]=$e(V,fe)?ee(V[fe],V):""}var ve=typeof z=="function"?z(V):[],Ie;if(N){Ie={};for(var De=0;De<ve.length;De++)Ie["$"+ve[De]]=ve[De]}for(var Be in V)$e(V,Be)&&(Oe&&String(Number(Be))===Be&&Be<V.length||N&&Ie["$"+Be]instanceof Symbol||($.call(/[^\w$]/,Be)?le.push(ee(Be,V)+": "+ee(V[Be],V)):le.push(Be+": "+ee(V[Be],V))));if(typeof z=="function")for(var Ze=0;Ze<ve.length;Ze++)H.call(V,ve[Ze])&&le.push("["+ee(ve[Ze])+"]: "+ee(V[ve[Ze]],V));return le}return km}var Mm,SO;function r9(){if(SO)return Mm;SO=1;var e=ih(),t=Kl(),r=function(u,c,f){for(var d=u,g;(g=d.next)!=null;d=g)if(g.key===c)return d.next=g.next,f||(g.next=u.next,u.next=g),g},n=function(u,c){if(u){var f=r(u,c);return f&&f.value}},i=function(u,c,f){var d=r(u,c);d?d.value=f:u.next={key:c,next:u.next,value:f}},o=function(u,c){return u?!!r(u,c):!1},s=function(u,c){if(u)return r(u,c,!0)};return Mm=function(){var c,f={assert:function(d){if(!f.has(d))throw new t("Side channel does not contain "+e(d))},delete:function(d){var g=c&&c.next,h=s(c,d);return h&&g&&g===h&&(c=void 0),!!h},get:function(d){return n(c,d)},has:function(d){return o(c,d)},set:function(d,g){c||(c={next:void 0}),i(c,d,g)}};return f},Mm}var Dm,wO;function nP(){return wO||(wO=1,Dm=Object),Dm}var Lm,xO;function n9(){return xO||(xO=1,Lm=Error),Lm}var Fm,EO;function i9(){return EO||(EO=1,Fm=EvalError),Fm}var Nm,CO;function o9(){return CO||(CO=1,Nm=RangeError),Nm}var jm,RO;function a9(){return RO||(RO=1,jm=ReferenceError),jm}var zm,_O;function s9(){return _O||(_O=1,zm=SyntaxError),zm}var Bm,OO;function l9(){return OO||(OO=1,Bm=URIError),Bm}var Vm,TO;function u9(){return TO||(TO=1,Vm=Math.abs),Vm}var Um,AO;function c9(){return AO||(AO=1,Um=Math.floor),Um}var Hm,$O;function f9(){return $O||($O=1,Hm=Math.max),Hm}var Wm,IO;function d9(){return IO||(IO=1,Wm=Math.min),Wm}var qm,PO;function p9(){return PO||(PO=1,qm=Math.pow),qm}var Gm,kO;function h9(){return kO||(kO=1,Gm=Math.round),Gm}var Xm,MO;function g9(){return MO||(MO=1,Xm=Number.isNaN||function(t){return t!==t}),Xm}var Km,DO;function v9(){if(DO)return Km;DO=1;var e=g9();return Km=function(r){return e(r)||r===0?r:r<0?-1:1},Km}var Ym,LO;function m9(){return LO||(LO=1,Ym=Object.getOwnPropertyDescriptor),Ym}var Jm,FO;function iP(){if(FO)return Jm;FO=1;var e=m9();if(e)try{e([],"length")}catch{e=null}return Jm=e,Jm}var Qm,NO;function y9(){if(NO)return Qm;NO=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Qm=e,Qm}var Zm,jO;function b9(){return jO||(jO=1,Zm=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var o in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var s=Object.getOwnPropertySymbols(t);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,r);if(u.value!==i||u.enumerable!==!0)return!1}return!0}),Zm}var e0,zO;function S9(){if(zO)return e0;zO=1;var e=typeof Symbol<"u"&&Symbol,t=b9();return e0=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},e0}var t0,BO;function oP(){return BO||(BO=1,t0=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),t0}var r0,VO;function aP(){if(VO)return r0;VO=1;var e=nP();return r0=e.getPrototypeOf||null,r0}var n0,UO;function w9(){if(UO)return n0;UO=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",i=function(c,f){for(var d=[],g=0;g<c.length;g+=1)d[g]=c[g];for(var h=0;h<f.length;h+=1)d[h+c.length]=f[h];return d},o=function(c,f){for(var d=[],g=f,h=0;g<c.length;g+=1,h+=1)d[h]=c[g];return d},s=function(u,c){for(var f="",d=0;d<u.length;d+=1)f+=u[d],d+1<u.length&&(f+=c);return f};return n0=function(c){var f=this;if(typeof f!="function"||t.apply(f)!==n)throw new TypeError(e+f);for(var d=o(arguments,1),g,h=function(){if(this instanceof g){var E=f.apply(this,i(d,arguments));return Object(E)===E?E:this}return f.apply(c,i(d,arguments))},b=r(0,f.length-d.length),v=[],S=0;S<b;S++)v[S]="$"+S;if(g=Function("binder","return function ("+s(v,",")+"){ return binder.apply(this,arguments); }")(h),f.prototype){var y=function(){};y.prototype=f.prototype,g.prototype=new y,y.prototype=null}return g},n0}var i0,HO;function oh(){if(HO)return i0;HO=1;var e=w9();return i0=Function.prototype.bind||e,i0}var o0,WO;function tS(){return WO||(WO=1,o0=Function.prototype.call),o0}var a0,qO;function sP(){return qO||(qO=1,a0=Function.prototype.apply),a0}var s0,GO;function x9(){return GO||(GO=1,s0=typeof Reflect<"u"&&Reflect&&Reflect.apply),s0}var l0,XO;function E9(){if(XO)return l0;XO=1;var e=oh(),t=sP(),r=tS(),n=x9();return l0=n||e.call(r,t),l0}var u0,KO;function lP(){if(KO)return u0;KO=1;var e=oh(),t=Kl(),r=tS(),n=E9();return u0=function(o){if(o.length<1||typeof o[0]!="function")throw new t("a function is required");return n(e,r,o)},u0}var c0,YO;function C9(){if(YO)return c0;YO=1;var e=lP(),t=iP(),r;try{r=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var n=!!r&&t&&t(Object.prototype,"__proto__"),i=Object,o=i.getPrototypeOf;return c0=n&&typeof n.get=="function"?e([n.get]):typeof o=="function"?function(u){return o(u==null?u:i(u))}:!1,c0}var f0,JO;function R9(){if(JO)return f0;JO=1;var e=oP(),t=aP(),r=C9();return f0=e?function(i){return e(i)}:t?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return t(i)}:r?function(i){return r(i)}:null,f0}var d0,QO;function _9(){if(QO)return d0;QO=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=oh();return d0=r.call(e,t),d0}var p0,ZO;function rS(){if(ZO)return p0;ZO=1;var e,t=nP(),r=n9(),n=i9(),i=o9(),o=a9(),s=s9(),u=Kl(),c=l9(),f=u9(),d=c9(),g=f9(),h=d9(),b=p9(),v=h9(),S=v9(),y=Function,E=function(Se){try{return y('"use strict"; return ('+Se+").constructor;")()}catch{}},x=iP(),T=y9(),A=function(){throw new u},R=x?(function(){try{return arguments.callee,A}catch{try{return x(arguments,"callee").get}catch{return A}}})():A,$=S9()(),O=R9(),I=aP(),L=oP(),F=sP(),q=tS(),z={},B=typeof Uint8Array>"u"||!O?e:O(Uint8Array),N={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":$&&O?O([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":z,"%AsyncGenerator%":z,"%AsyncGeneratorFunction%":z,"%AsyncIteratorPrototype%":z,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":y,"%GeneratorFunction%":z,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":$&&O?O(O([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!$||!O?e:O(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":i,"%ReferenceError%":o,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!$||!O?e:O(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":$&&O?O(""[Symbol.iterator]()):e,"%Symbol%":$?Symbol:e,"%SyntaxError%":s,"%ThrowTypeError%":R,"%TypedArray%":B,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":q,"%Function.prototype.apply%":F,"%Object.defineProperty%":T,"%Object.getPrototypeOf%":I,"%Math.abs%":f,"%Math.floor%":d,"%Math.max%":g,"%Math.min%":h,"%Math.pow%":b,"%Math.round%":v,"%Math.sign%":S,"%Reflect.getPrototypeOf%":L};if(O)try{null.error}catch(Se){var j=O(O(Se));N["%Error.prototype%"]=j}var H=function Se(he){var Ee;if(he==="%AsyncFunction%")Ee=E("async function () {}");else if(he==="%GeneratorFunction%")Ee=E("function* () {}");else if(he==="%AsyncGeneratorFunction%")Ee=E("async function* () {}");else if(he==="%AsyncGenerator%"){var we=Se("%AsyncGeneratorFunction%");we&&(Ee=we.prototype)}else if(he==="%AsyncIteratorPrototype%"){var Te=Se("%AsyncGenerator%");Te&&O&&(Ee=O(Te.prototype))}return N[he]=Ee,Ee},X={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},M=oh(),Q=_9(),W=M.call(q,Array.prototype.concat),D=M.call(F,Array.prototype.splice),P=M.call(q,String.prototype.replace),G=M.call(q,String.prototype.slice),Z=M.call(q,RegExp.prototype.exec),te=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,K=/\\(\\)?/g,be=function(he){var Ee=G(he,0,1),we=G(he,-1);if(Ee==="%"&&we!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(we==="%"&&Ee!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var Te=[];return P(he,te,function(Ce,_e,$e,ke){Te[Te.length]=$e?P(ke,K,"$1"):_e||Ce}),Te},ae=function(he,Ee){var we=he,Te;if(Q(X,we)&&(Te=X[we],we="%"+Te[0]+"%"),Q(N,we)){var Ce=N[we];if(Ce===z&&(Ce=H(we)),typeof Ce>"u"&&!Ee)throw new u("intrinsic "+he+" exists, but is not available. Please file an issue!");return{alias:Te,name:we,value:Ce}}throw new s("intrinsic "+he+" does not exist!")};return p0=function(he,Ee){if(typeof he!="string"||he.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Ee!="boolean")throw new u('"allowMissing" argument must be a boolean');if(Z(/^%?[^%]*%?$/,he)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var we=be(he),Te=we.length>0?we[0]:"",Ce=ae("%"+Te+"%",Ee),_e=Ce.name,$e=Ce.value,ke=!1,Ge=Ce.alias;Ge&&(Te=Ge[0],D(we,W([0,1],Ge)));for(var Qe=1,je=!0;Qe<we.length;Qe+=1){var ze=we[Qe],Ye=G(ze,0,1),Ue=G(ze,-1);if((Ye==='"'||Ye==="'"||Ye==="`"||Ue==='"'||Ue==="'"||Ue==="`")&&Ye!==Ue)throw new s("property names with quotes must have matching quotes");if((ze==="constructor"||!je)&&(ke=!0),Te+="."+ze,_e="%"+Te+"%",Q(N,_e))$e=N[_e];else if($e!=null){if(!(ze in $e)){if(!Ee)throw new u("base intrinsic for "+he+" exists, but the property is not available.");return}if(x&&Qe+1>=we.length){var Re=x($e,ze);je=!!Re,je&&"get"in Re&&!("originalValue"in Re.get)?$e=Re.get:$e=$e[ze]}else je=Q($e,ze),$e=$e[ze];je&&!ke&&(N[_e]=$e)}}return $e},p0}var h0,eT;function uP(){if(eT)return h0;eT=1;var e=rS(),t=lP(),r=t([e("%String.prototype.indexOf%")]);return h0=function(i,o){var s=e(i,!!o);return typeof s=="function"&&r(i,".prototype.")>-1?t([s]):s},h0}var g0,tT;function cP(){if(tT)return g0;tT=1;var e=rS(),t=uP(),r=ih(),n=Kl(),i=e("%Map%",!0),o=t("Map.prototype.get",!0),s=t("Map.prototype.set",!0),u=t("Map.prototype.has",!0),c=t("Map.prototype.delete",!0),f=t("Map.prototype.size",!0);return g0=!!i&&function(){var g,h={assert:function(b){if(!h.has(b))throw new n("Side channel does not contain "+r(b))},delete:function(b){if(g){var v=c(g,b);return f(g)===0&&(g=void 0),v}return!1},get:function(b){if(g)return o(g,b)},has:function(b){return g?u(g,b):!1},set:function(b,v){g||(g=new i),s(g,b,v)}};return h},g0}var v0,rT;function O9(){if(rT)return v0;rT=1;var e=rS(),t=uP(),r=ih(),n=cP(),i=Kl(),o=e("%WeakMap%",!0),s=t("WeakMap.prototype.get",!0),u=t("WeakMap.prototype.set",!0),c=t("WeakMap.prototype.has",!0),f=t("WeakMap.prototype.delete",!0);return v0=o?(function(){var g,h,b={assert:function(v){if(!b.has(v))throw new i("Side channel does not contain "+r(v))},delete:function(v){if(o&&v&&(typeof v=="object"||typeof v=="function")){if(g)return f(g,v)}else if(n&&h)return h.delete(v);return!1},get:function(v){return o&&v&&(typeof v=="object"||typeof v=="function")&&g?s(g,v):h&&h.get(v)},has:function(v){return o&&v&&(typeof v=="object"||typeof v=="function")&&g?c(g,v):!!h&&h.has(v)},set:function(v,S){o&&v&&(typeof v=="object"||typeof v=="function")?(g||(g=new o),u(g,v,S)):n&&(h||(h=n()),h.set(v,S))}};return b}):n,v0}var m0,nT;function fP(){if(nT)return m0;nT=1;var e=Kl(),t=ih(),r=r9(),n=cP(),i=O9(),o=i||n||r;return m0=function(){var u,c={assert:function(f){if(!c.has(f))throw new e("Side channel does not contain "+t(f))},delete:function(f){return!!u&&u.delete(f)},get:function(f){return u&&u.get(f)},has:function(f){return!!u&&u.has(f)},set:function(f,d){u||(u=o()),u.set(f,d)}};return c},m0}var y0,iT;function nS(){if(iT)return y0;iT=1;var e=String.prototype.replace,t=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};return y0={default:r.RFC3986,formatters:{RFC1738:function(n){return e.call(n,t,"+")},RFC3986:function(n){return String(n)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986},y0}var b0,oT;function dP(){if(oT)return b0;oT=1;var e=nS(),t=fP(),r=Object.prototype.hasOwnProperty,n=Array.isArray,i=t(),o=function(O,I){return i.set(O,I),O},s=function(O){return i.has(O)},u=function(O){return i.get(O)},c=function(O,I){i.set(O,I)},f=(function(){for(var $=[],O=0;O<256;++O)$.push("%"+((O<16?"0":"")+O.toString(16)).toUpperCase());return $})(),d=function(O){for(;O.length>1;){var I=O.pop(),L=I.obj[I.prop];if(n(L)){for(var F=[],q=0;q<L.length;++q)typeof L[q]<"u"&&F.push(L[q]);I.obj[I.prop]=F}}},g=function(O,I){for(var L=I&&I.plainObjects?{__proto__:null}:{},F=0;F<O.length;++F)typeof O[F]<"u"&&(L[F]=O[F]);return L},h=function $(O,I,L){if(!I)return O;if(typeof I!="object"&&typeof I!="function"){if(n(O))O.push(I);else if(O&&typeof O=="object")if(s(O)){var F=u(O)+1;O[F]=I,c(O,F)}else(L&&(L.plainObjects||L.allowPrototypes)||!r.call(Object.prototype,I))&&(O[I]=!0);else return[O,I];return O}if(!O||typeof O!="object"){if(s(I)){for(var q=Object.keys(I),z=L&&L.plainObjects?{__proto__:null,0:O}:{0:O},B=0;B<q.length;B++){var N=parseInt(q[B],10);z[N+1]=I[q[B]]}return o(z,u(I)+1)}return[O].concat(I)}var j=O;return n(O)&&!n(I)&&(j=g(O,L)),n(O)&&n(I)?(I.forEach(function(H,X){if(r.call(O,X)){var M=O[X];M&&typeof M=="object"&&H&&typeof H=="object"?O[X]=$(M,H,L):O.push(H)}else O[X]=H}),O):Object.keys(I).reduce(function(H,X){var M=I[X];return r.call(H,X)?H[X]=$(H[X],M,L):H[X]=M,H},j)},b=function(O,I){return Object.keys(I).reduce(function(L,F){return L[F]=I[F],L},O)},v=function($,O,I){var L=$.replace(/\+/g," ");if(I==="iso-8859-1")return L.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(L)}catch{return L}},S=1024,y=function(O,I,L,F,q){if(O.length===0)return O;var z=O;if(typeof O=="symbol"?z=Symbol.prototype.toString.call(O):typeof O!="string"&&(z=String(O)),L==="iso-8859-1")return escape(z).replace(/%u[0-9a-f]{4}/gi,function(Q){return"%26%23"+parseInt(Q.slice(2),16)+"%3B"});for(var B="",N=0;N<z.length;N+=S){for(var j=z.length>=S?z.slice(N,N+S):z,H=[],X=0;X<j.length;++X){var M=j.charCodeAt(X);if(M===45||M===46||M===95||M===126||M>=48&&M<=57||M>=65&&M<=90||M>=97&&M<=122||q===e.RFC1738&&(M===40||M===41)){H[H.length]=j.charAt(X);continue}if(M<128){H[H.length]=f[M];continue}if(M<2048){H[H.length]=f[192|M>>6]+f[128|M&63];continue}if(M<55296||M>=57344){H[H.length]=f[224|M>>12]+f[128|M>>6&63]+f[128|M&63];continue}X+=1,M=65536+((M&1023)<<10|j.charCodeAt(X)&1023),H[H.length]=f[240|M>>18]+f[128|M>>12&63]+f[128|M>>6&63]+f[128|M&63]}B+=H.join("")}return B},E=function(O){for(var I=[{obj:{o:O},prop:"o"}],L=[],F=0;F<I.length;++F)for(var q=I[F],z=q.obj[q.prop],B=Object.keys(z),N=0;N<B.length;++N){var j=B[N],H=z[j];typeof H=="object"&&H!==null&&L.indexOf(H)===-1&&(I.push({obj:z,prop:j}),L.push(H))}return d(I),O},x=function(O){return Object.prototype.toString.call(O)==="[object RegExp]"},T=function(O){return!O||typeof O!="object"?!1:!!(O.constructor&&O.constructor.isBuffer&&O.constructor.isBuffer(O))},A=function(O,I,L,F){if(s(O)){var q=u(O)+1;return O[q]=I,c(O,q),O}var z=[].concat(O,I);return z.length>L?o(g(z,{plainObjects:F}),z.length-1):z},R=function(O,I){if(n(O)){for(var L=[],F=0;F<O.length;F+=1)L.push(I(O[F]));return L}return I(O)};return b0={arrayToObject:g,assign:b,combine:A,compact:E,decode:v,encode:y,isBuffer:T,isOverflow:s,isRegExp:x,maybeMap:R,merge:h},b0}var S0,aT;function T9(){if(aT)return S0;aT=1;var e=fP(),t=dP(),r=nS(),n=Object.prototype.hasOwnProperty,i={brackets:function(y){return y+"[]"},comma:"comma",indices:function(y,E){return y+"["+E+"]"},repeat:function(y){return y}},o=Array.isArray,s=Array.prototype.push,u=function(S,y){s.apply(S,o(y)?y:[y])},c=Date.prototype.toISOString,f=r.default,d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:t.encode,encodeValuesOnly:!1,filter:void 0,format:f,formatter:r.formatters[f],indices:!1,serializeDate:function(y){return c.call(y)},skipNulls:!1,strictNullHandling:!1},g=function(y){return typeof y=="string"||typeof y=="number"||typeof y=="boolean"||typeof y=="symbol"||typeof y=="bigint"},h={},b=function S(y,E,x,T,A,R,$,O,I,L,F,q,z,B,N,j,H,X){for(var M=y,Q=X,W=0,D=!1;(Q=Q.get(h))!==void 0&&!D;){var P=Q.get(y);if(W+=1,typeof P<"u"){if(P===W)throw new RangeError("Cyclic object value");D=!0}typeof Q.get(h)>"u"&&(W=0)}if(typeof L=="function"?M=L(E,M):M instanceof Date?M=z(M):x==="comma"&&o(M)&&(M=t.maybeMap(M,function(_e){return _e instanceof Date?z(_e):_e})),M===null){if(R)return I&&!j?I(E,d.encoder,H,"key",B):E;M=""}if(g(M)||t.isBuffer(M)){if(I){var G=j?E:I(E,d.encoder,H,"key",B);return[N(G)+"="+N(I(M,d.encoder,H,"value",B))]}return[N(E)+"="+N(String(M))]}var Z=[];if(typeof M>"u")return Z;var te;if(x==="comma"&&o(M))j&&I&&(M=t.maybeMap(M,I)),te=[{value:M.length>0?M.join(",")||null:void 0}];else if(o(L))te=L;else{var K=Object.keys(M);te=F?K.sort(F):K}var be=O?String(E).replace(/\./g,"%2E"):String(E),ae=T&&o(M)&&M.length===1?be+"[]":be;if(A&&o(M)&&M.length===0)return ae+"[]";for(var Se=0;Se<te.length;++Se){var he=te[Se],Ee=typeof he=="object"&&he&&typeof he.value<"u"?he.value:M[he];if(!($&&Ee===null)){var we=q&&O?String(he).replace(/\./g,"%2E"):String(he),Te=o(M)?typeof x=="function"?x(ae,we):ae:ae+(q?"."+we:"["+we+"]");X.set(y,W);var Ce=e();Ce.set(h,X),u(Z,S(Ee,Te,x,T,A,R,$,O,x==="comma"&&j&&o(M)?null:I,L,F,q,z,B,N,j,H,Ce))}}return Z},v=function(y){if(!y)return d;if(typeof y.allowEmptyArrays<"u"&&typeof y.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof y.encodeDotInKeys<"u"&&typeof y.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(y.encoder!==null&&typeof y.encoder<"u"&&typeof y.encoder!="function")throw new TypeError("Encoder has to be a function.");var E=y.charset||d.charset;if(typeof y.charset<"u"&&y.charset!=="utf-8"&&y.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var x=r.default;if(typeof y.format<"u"){if(!n.call(r.formatters,y.format))throw new TypeError("Unknown format option provided.");x=y.format}var T=r.formatters[x],A=d.filter;(typeof y.filter=="function"||o(y.filter))&&(A=y.filter);var R;if(y.arrayFormat in i?R=y.arrayFormat:"indices"in y?R=y.indices?"indices":"repeat":R=d.arrayFormat,"commaRoundTrip"in y&&typeof y.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var $=typeof y.allowDots>"u"?y.encodeDotInKeys===!0?!0:d.allowDots:!!y.allowDots;return{addQueryPrefix:typeof y.addQueryPrefix=="boolean"?y.addQueryPrefix:d.addQueryPrefix,allowDots:$,allowEmptyArrays:typeof y.allowEmptyArrays=="boolean"?!!y.allowEmptyArrays:d.allowEmptyArrays,arrayFormat:R,charset:E,charsetSentinel:typeof y.charsetSentinel=="boolean"?y.charsetSentinel:d.charsetSentinel,commaRoundTrip:!!y.commaRoundTrip,delimiter:typeof y.delimiter>"u"?d.delimiter:y.delimiter,encode:typeof y.encode=="boolean"?y.encode:d.encode,encodeDotInKeys:typeof y.encodeDotInKeys=="boolean"?y.encodeDotInKeys:d.encodeDotInKeys,encoder:typeof y.encoder=="function"?y.encoder:d.encoder,encodeValuesOnly:typeof y.encodeValuesOnly=="boolean"?y.encodeValuesOnly:d.encodeValuesOnly,filter:A,format:x,formatter:T,serializeDate:typeof y.serializeDate=="function"?y.serializeDate:d.serializeDate,skipNulls:typeof y.skipNulls=="boolean"?y.skipNulls:d.skipNulls,sort:typeof y.sort=="function"?y.sort:null,strictNullHandling:typeof y.strictNullHandling=="boolean"?y.strictNullHandling:d.strictNullHandling}};return S0=function(S,y){var E=S,x=v(y),T,A;typeof x.filter=="function"?(A=x.filter,E=A("",E)):o(x.filter)&&(A=x.filter,T=A);var R=[];if(typeof E!="object"||E===null)return"";var $=i[x.arrayFormat],O=$==="comma"&&x.commaRoundTrip;T||(T=Object.keys(E)),x.sort&&T.sort(x.sort);for(var I=e(),L=0;L<T.length;++L){var F=T[L],q=E[F];x.skipNulls&&q===null||u(R,b(q,F,$,O,x.allowEmptyArrays,x.strictNullHandling,x.skipNulls,x.encodeDotInKeys,x.encode?x.encoder:null,x.filter,x.sort,x.allowDots,x.serializeDate,x.format,x.formatter,x.encodeValuesOnly,x.charset,I))}var z=R.join(x.delimiter),B=x.addQueryPrefix===!0?"?":"";return x.charsetSentinel&&(x.charset==="iso-8859-1"?B+="utf8=%26%2310003%3B&":B+="utf8=%E2%9C%93&"),z.length>0?B+z:""},S0}var w0,sT;function A9(){if(sT)return w0;sT=1;var e=dP(),t=Object.prototype.hasOwnProperty,r=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},i=function(b){return b.replace(/&#(\d+);/g,function(v,S){return String.fromCharCode(parseInt(S,10))})},o=function(b,v,S){if(b&&typeof b=="string"&&v.comma&&b.indexOf(",")>-1)return b.split(",");if(v.throwOnLimitExceeded&&S>=v.arrayLimit)throw new RangeError("Array limit exceeded. Only "+v.arrayLimit+" element"+(v.arrayLimit===1?"":"s")+" allowed in an array.");return b},s="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",c=function(v,S){var y={__proto__:null},E=S.ignoreQueryPrefix?v.replace(/^\?/,""):v;E=E.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var x=S.parameterLimit===1/0?void 0:S.parameterLimit,T=E.split(S.delimiter,S.throwOnLimitExceeded?x+1:x);if(S.throwOnLimitExceeded&&T.length>x)throw new RangeError("Parameter limit exceeded. Only "+x+" parameter"+(x===1?"":"s")+" allowed.");var A=-1,R,$=S.charset;if(S.charsetSentinel)for(R=0;R<T.length;++R)T[R].indexOf("utf8=")===0&&(T[R]===u?$="utf-8":T[R]===s&&($="iso-8859-1"),A=R,R=T.length);for(R=0;R<T.length;++R)if(R!==A){var O=T[R],I=O.indexOf("]="),L=I===-1?O.indexOf("="):I+1,F,q;if(L===-1?(F=S.decoder(O,n.decoder,$,"key"),q=S.strictNullHandling?null:""):(F=S.decoder(O.slice(0,L),n.decoder,$,"key"),F!==null&&(q=e.maybeMap(o(O.slice(L+1),S,r(y[F])?y[F].length:0),function(B){return S.decoder(B,n.decoder,$,"value")}))),q&&S.interpretNumericEntities&&$==="iso-8859-1"&&(q=i(String(q))),O.indexOf("[]=")>-1&&(q=r(q)?[q]:q),F!==null){var z=t.call(y,F);z&&S.duplicates==="combine"?y[F]=e.combine(y[F],q,S.arrayLimit,S.plainObjects):(!z||S.duplicates==="last")&&(y[F]=q)}}return y},f=function(b,v,S,y){var E=0;if(b.length>0&&b[b.length-1]==="[]"){var x=b.slice(0,-1).join("");E=Array.isArray(v)&&v[x]?v[x].length:0}for(var T=y?v:o(v,S,E),A=b.length-1;A>=0;--A){var R,$=b[A];if($==="[]"&&S.parseArrays)e.isOverflow(T)?R=T:R=S.allowEmptyArrays&&(T===""||S.strictNullHandling&&T===null)?[]:e.combine([],T,S.arrayLimit,S.plainObjects);else{R=S.plainObjects?{__proto__:null}:{};var O=$.charAt(0)==="["&&$.charAt($.length-1)==="]"?$.slice(1,-1):$,I=S.decodeDotInKeys?O.replace(/%2E/g,"."):O,L=parseInt(I,10);!S.parseArrays&&I===""?R={0:T}:!isNaN(L)&&$!==I&&String(L)===I&&L>=0&&S.parseArrays&&L<=S.arrayLimit?(R=[],R[L]=T):I!=="__proto__"&&(R[I]=T)}T=R}return T},d=function(v,S){var y=S.allowDots?v.replace(/\.([^.[]+)/g,"[$1]"):v;if(S.depth<=0)return!S.plainObjects&&t.call(Object.prototype,y)&&!S.allowPrototypes?void 0:[y];var E=/(\[[^[\]]*])/,x=/(\[[^[\]]*])/g,T=E.exec(y),A=T?y.slice(0,T.index):y,R=[];if(A){if(!S.plainObjects&&t.call(Object.prototype,A)&&!S.allowPrototypes)return;R.push(A)}for(var $=0;(T=x.exec(y))!==null&&$<S.depth;){$+=1;var O=T[1].slice(1,-1);if(!S.plainObjects&&t.call(Object.prototype,O)&&!S.allowPrototypes)return;R.push(T[1])}if(T){if(S.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+S.depth+" and strictDepth is true");R.push("["+y.slice(T.index)+"]")}return R},g=function(v,S,y,E){if(v){var x=d(v,y);if(x)return f(x,S,y,E)}},h=function(v){if(!v)return n;if(typeof v.allowEmptyArrays<"u"&&typeof v.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof v.decodeDotInKeys<"u"&&typeof v.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(v.decoder!==null&&typeof v.decoder<"u"&&typeof v.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof v.charset<"u"&&v.charset!=="utf-8"&&v.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof v.throwOnLimitExceeded<"u"&&typeof v.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var S=typeof v.charset>"u"?n.charset:v.charset,y=typeof v.duplicates>"u"?n.duplicates:v.duplicates;if(y!=="combine"&&y!=="first"&&y!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var E=typeof v.allowDots>"u"?v.decodeDotInKeys===!0?!0:n.allowDots:!!v.allowDots;return{allowDots:E,allowEmptyArrays:typeof v.allowEmptyArrays=="boolean"?!!v.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof v.allowPrototypes=="boolean"?v.allowPrototypes:n.allowPrototypes,allowSparse:typeof v.allowSparse=="boolean"?v.allowSparse:n.allowSparse,arrayLimit:typeof v.arrayLimit=="number"?v.arrayLimit:n.arrayLimit,charset:S,charsetSentinel:typeof v.charsetSentinel=="boolean"?v.charsetSentinel:n.charsetSentinel,comma:typeof v.comma=="boolean"?v.comma:n.comma,decodeDotInKeys:typeof v.decodeDotInKeys=="boolean"?v.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof v.decoder=="function"?v.decoder:n.decoder,delimiter:typeof v.delimiter=="string"||e.isRegExp(v.delimiter)?v.delimiter:n.delimiter,depth:typeof v.depth=="number"||v.depth===!1?+v.depth:n.depth,duplicates:y,ignoreQueryPrefix:v.ignoreQueryPrefix===!0,interpretNumericEntities:typeof v.interpretNumericEntities=="boolean"?v.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof v.parameterLimit=="number"?v.parameterLimit:n.parameterLimit,parseArrays:v.parseArrays!==!1,plainObjects:typeof v.plainObjects=="boolean"?v.plainObjects:n.plainObjects,strictDepth:typeof v.strictDepth=="boolean"?!!v.strictDepth:n.strictDepth,strictNullHandling:typeof v.strictNullHandling=="boolean"?v.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:typeof v.throwOnLimitExceeded=="boolean"?v.throwOnLimitExceeded:!1}};return w0=function(b,v){var S=h(v);if(b===""||b===null||typeof b>"u")return S.plainObjects?{__proto__:null}:{};for(var y=typeof b=="string"?c(b,S):b,E=S.plainObjects?{__proto__:null}:{},x=Object.keys(y),T=0;T<x.length;++T){var A=x[T],R=g(A,y[A],S,typeof b=="string");E=e.merge(E,R,S)}return S.allowSparse===!0?E:e.compact(E)},w0}var x0,lT;function $9(){if(lT)return x0;lT=1;var e=T9(),t=A9(),r=nS();return x0={formats:r,parse:t,stringify:e},x0}var uT;function I9(){if(uT)return is;uT=1;var e=QV();function t(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var r=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,o=["<",">",'"',"`"," ","\r",`
534
+ `," "],s=["{","}","|","\\","^","`"].concat(o),u=["'"].concat(s),c=["%","/","?",";","#"].concat(u),f=["/","?","#"],d=255,g=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},S={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=$9();function E(R,$,O){if(R&&typeof R=="object"&&R instanceof t)return R;var I=new t;return I.parse(R,$,O),I}t.prototype.parse=function(R,$,O){if(typeof R!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof R);var I=R.indexOf("?"),L=I!==-1&&I<R.indexOf("#")?"?":"#",F=R.split(L),q=/\\/g;F[0]=F[0].replace(q,"/"),R=F.join(L);var z=R;if(z=z.trim(),!O&&R.split("#").length===1){var B=i.exec(z);if(B)return this.path=z,this.href=z,this.pathname=B[1],B[2]?(this.search=B[2],$?this.query=y.parse(this.search.substr(1)):this.query=this.search.substr(1)):$&&(this.search="",this.query={}),this}var N=r.exec(z);if(N){N=N[0];var j=N.toLowerCase();this.protocol=j,z=z.substr(N.length)}if(O||N||z.match(/^\/\/[^@/]+@[^@/]+/)){var H=z.substr(0,2)==="//";H&&!(N&&v[N])&&(z=z.substr(2),this.slashes=!0)}if(!v[N]&&(H||N&&!S[N])){for(var X=-1,M=0;M<f.length;M++){var Q=z.indexOf(f[M]);Q!==-1&&(X===-1||Q<X)&&(X=Q)}var W,D;X===-1?D=z.lastIndexOf("@"):D=z.lastIndexOf("@",X),D!==-1&&(W=z.slice(0,D),z=z.slice(D+1),this.auth=decodeURIComponent(W)),X=-1;for(var M=0;M<c.length;M++){var Q=z.indexOf(c[M]);Q!==-1&&(X===-1||Q<X)&&(X=Q)}X===-1&&(X=z.length),this.host=z.slice(0,X),z=z.slice(X),this.parseHost(),this.hostname=this.hostname||"";var P=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!P)for(var G=this.hostname.split(/\./),M=0,Z=G.length;M<Z;M++){var te=G[M];if(te&&!te.match(g)){for(var K="",be=0,ae=te.length;be<ae;be++)te.charCodeAt(be)>127?K+="x":K+=te[be];if(!K.match(g)){var Se=G.slice(0,M),he=G.slice(M+1),Ee=te.match(h);Ee&&(Se.push(Ee[1]),he.unshift(Ee[2])),he.length&&(z="/"+he.join(".")+z),this.hostname=Se.join(".");break}}}this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=e.toASCII(this.hostname));var we=this.port?":"+this.port:"",Te=this.hostname||"";this.host=Te+we,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),z[0]!=="/"&&(z="/"+z))}if(!b[j])for(var M=0,Z=u.length;M<Z;M++){var Ce=u[M];if(z.indexOf(Ce)!==-1){var _e=encodeURIComponent(Ce);_e===Ce&&(_e=escape(Ce)),z=z.split(Ce).join(_e)}}var $e=z.indexOf("#");$e!==-1&&(this.hash=z.substr($e),z=z.slice(0,$e));var ke=z.indexOf("?");if(ke!==-1?(this.search=z.substr(ke),this.query=z.substr(ke+1),$&&(this.query=y.parse(this.query)),z=z.slice(0,ke)):$&&(this.search="",this.query={}),z&&(this.pathname=z),S[j]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var we=this.pathname||"",Ge=this.search||"";this.path=we+Ge}return this.href=this.format(),this};function x(R){return typeof R=="string"&&(R=E(R)),R instanceof t?R.format():t.prototype.format.call(R)}t.prototype.format=function(){var R=this.auth||"";R&&(R=encodeURIComponent(R),R=R.replace(/%3A/i,":"),R+="@");var $=this.protocol||"",O=this.pathname||"",I=this.hash||"",L=!1,F="";this.host?L=R+this.host:this.hostname&&(L=R+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(L+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(F=y.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var q=this.search||F&&"?"+F||"";return $&&$.substr(-1)!==":"&&($+=":"),this.slashes||(!$||S[$])&&L!==!1?(L="//"+(L||""),O&&O.charAt(0)!=="/"&&(O="/"+O)):L||(L=""),I&&I.charAt(0)!=="#"&&(I="#"+I),q&&q.charAt(0)!=="?"&&(q="?"+q),O=O.replace(/[?#]/g,function(z){return encodeURIComponent(z)}),q=q.replace("#","%23"),$+L+O+q+I};function T(R,$){return E(R,!1,!0).resolve($)}t.prototype.resolve=function(R){return this.resolveObject(E(R,!1,!0)).format()};function A(R,$){return R?E(R,!1,!0).resolveObject($):$}return t.prototype.resolveObject=function(R){if(typeof R=="string"){var $=new t;$.parse(R,!1,!0),R=$}for(var O=new t,I=Object.keys(this),L=0;L<I.length;L++){var F=I[L];O[F]=this[F]}if(O.hash=R.hash,R.href==="")return O.href=O.format(),O;if(R.slashes&&!R.protocol){for(var q=Object.keys(R),z=0;z<q.length;z++){var B=q[z];B!=="protocol"&&(O[B]=R[B])}return S[O.protocol]&&O.hostname&&!O.pathname&&(O.pathname="/",O.path=O.pathname),O.href=O.format(),O}if(R.protocol&&R.protocol!==O.protocol){if(!S[R.protocol]){for(var N=Object.keys(R),j=0;j<N.length;j++){var H=N[j];O[H]=R[H]}return O.href=O.format(),O}if(O.protocol=R.protocol,!R.host&&!v[R.protocol]){for(var Z=(R.pathname||"").split("/");Z.length&&!(R.host=Z.shift()););R.host||(R.host=""),R.hostname||(R.hostname=""),Z[0]!==""&&Z.unshift(""),Z.length<2&&Z.unshift(""),O.pathname=Z.join("/")}else O.pathname=R.pathname;if(O.search=R.search,O.query=R.query,O.host=R.host||"",O.auth=R.auth,O.hostname=R.hostname||R.host,O.port=R.port,O.pathname||O.search){var X=O.pathname||"",M=O.search||"";O.path=X+M}return O.slashes=O.slashes||R.slashes,O.href=O.format(),O}var Q=O.pathname&&O.pathname.charAt(0)==="/",W=R.host||R.pathname&&R.pathname.charAt(0)==="/",D=W||Q||O.host&&R.pathname,P=D,G=O.pathname&&O.pathname.split("/")||[],Z=R.pathname&&R.pathname.split("/")||[],te=O.protocol&&!S[O.protocol];if(te&&(O.hostname="",O.port=null,O.host&&(G[0]===""?G[0]=O.host:G.unshift(O.host)),O.host="",R.protocol&&(R.hostname=null,R.port=null,R.host&&(Z[0]===""?Z[0]=R.host:Z.unshift(R.host)),R.host=null),D=D&&(Z[0]===""||G[0]==="")),W)O.host=R.host||R.host===""?R.host:O.host,O.hostname=R.hostname||R.hostname===""?R.hostname:O.hostname,O.search=R.search,O.query=R.query,G=Z;else if(Z.length)G||(G=[]),G.pop(),G=G.concat(Z),O.search=R.search,O.query=R.query;else if(R.search!=null){if(te){O.host=G.shift(),O.hostname=O.host;var K=O.host&&O.host.indexOf("@")>0?O.host.split("@"):!1;K&&(O.auth=K.shift(),O.hostname=K.shift(),O.host=O.hostname)}return O.search=R.search,O.query=R.query,(O.pathname!==null||O.search!==null)&&(O.path=(O.pathname?O.pathname:"")+(O.search?O.search:"")),O.href=O.format(),O}if(!G.length)return O.pathname=null,O.search?O.path="/"+O.search:O.path=null,O.href=O.format(),O;for(var be=G.slice(-1)[0],ae=(O.host||R.host||G.length>1)&&(be==="."||be==="..")||be==="",Se=0,he=G.length;he>=0;he--)be=G[he],be==="."?G.splice(he,1):be===".."?(G.splice(he,1),Se++):Se&&(G.splice(he,1),Se--);if(!D&&!P)for(;Se--;Se)G.unshift("..");D&&G[0]!==""&&(!G[0]||G[0].charAt(0)!=="/")&&G.unshift(""),ae&&G.join("/").substr(-1)!=="/"&&G.push("");var Ee=G[0]===""||G[0]&&G[0].charAt(0)==="/";if(te){O.hostname=Ee?"":G.length?G.shift():"",O.host=O.hostname;var K=O.host&&O.host.indexOf("@")>0?O.host.split("@"):!1;K&&(O.auth=K.shift(),O.hostname=K.shift(),O.host=O.hostname)}return D=D||O.host&&G.length,D&&!Ee&&G.unshift(""),G.length>0?O.pathname=G.join("/"):(O.pathname=null,O.path=null),(O.pathname!==null||O.search!==null)&&(O.path=(O.pathname?O.pathname:"")+(O.search?O.search:"")),O.auth=R.auth||O.auth,O.slashes=O.slashes||R.slashes,O.href=O.format(),O},t.prototype.parseHost=function(){var R=this.host,$=n.exec(R);$&&($=$[0],$!==":"&&(this.port=$.substr(1)),R=R.substr(0,R.length-$.length)),R&&(this.hostname=R)},is.parse=E,is.resolve=T,is.resolveObject=A,is.format=x,is.Url=t,is}var P9=I9();const rl=Mr(P9);var k9=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},M9=(e,t)=>(r,n)=>t(r,n,e);let cT=class{webSocketBaseUrl;constructor({webSocketUrl:t}){this.webSocketBaseUrl=t}genuineCheck(t){const r=rl.format({pathname:`${this.webSocketBaseUrl}/genuine`,query:t});return this._connectWebSocket(r)}installApp(t){const r=rl.format({pathname:`${this.webSocketBaseUrl}/install`,query:t});return this._connectWebSocket(r)}listInstalledApps(t){const r=rl.format({pathname:`${this.webSocketBaseUrl}/apps/list`,query:t});return this._connectWebSocket(r)}uninstallApp(t){const r=rl.format({pathname:`${this.webSocketBaseUrl}/install`,query:t});return this._connectWebSocket(r)}updateFirmware(t){const r=rl.format({pathname:`${this.webSocketBaseUrl}/install`,query:t});return this._connectWebSocket(r)}updateMcu(t){const r=rl.format({pathname:`${this.webSocketBaseUrl}/mcu`,query:t});return this._connectWebSocket(r)}_connectWebSocket(t){try{return rn(new Vz(t))}catch(r){return tn(new Xz(r))}}};cT=k9([Rt(),M9(0,rt(X1.DmkConfig))],cT);var D9=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},L9=(e,t)=>(r,n)=>t(r,n,e);let fT=class{constructor(t){this.dataSource=t}genuineCheck(t,r){const n={targetId:t.targetId.toString(),perso:r.perso};return this.dataSource.genuineCheck(n)}installApp(t,r){const{perso:n,firmware:i,firmwareKey:o,hash:s}=r,u={targetId:t.targetId.toString(),perso:n,firmware:i,firmwareKey:o,hash:s};return this.dataSource.installApp(u)}listInstalledApps(t,r){const n={targetId:t.targetId.toString(),perso:r.perso};return this.dataSource.listInstalledApps(n)}uninstallApp(t,r){const{perso:n,delete:i,deleteKey:o,hash:s}=r,u={targetId:t.targetId.toString(),perso:n,firmware:i,firmwareKey:o,hash:s};return this.dataSource.uninstallApp(u)}updateFirmware(t,r){const n={targetId:t.targetId.toString(),perso:r.perso,firmware:r.firmware,firmwareKey:r.firmwareKey};return this.dataSource.updateFirmware(n)}updateMcu(t,r){const n={targetId:t.targetId.toString(),version:r.version};return this.dataSource.updateMcu(n)}};fT=D9([Rt(),L9(0,rt(X1.SecureChannelDataSource))],fT);var F9=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},dT=(e,t)=>(r,n)=>t(r,n,e);let pT=class{_sessionService;_logger;constructor(t,r){this._sessionService=t,this._logger=r("SendApduUseCase")}async execute({sessionId:t,apdu:r,abortTimeout:n,triggersDisconnection:i}){return this._sessionService.getDeviceSessionById(t).caseOf({Right:async o=>(await o.sendApdu(r,{abortTimeout:n,triggersDisconnection:i})).caseOf({Right:s=>s,Left:s=>{throw this._logger.error("Error sending APDU",{data:{sessionId:t,apdu:r,error:s}}),s}}),Left:o=>{throw this._logger.error("Error getting deviceSession",{data:{error:o}}),o}})}};pT=F9([Rt(),dT(0,rt(gn.DeviceSessionService)),dT(1,rt(_r.LoggerPublisherServiceFactory))],pT);var N9=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},nl=(e,t)=>(r,n)=>t(r,n,e);let hT=class{constructor(t,r,n,i,o,s){if(this._config=r,this._loggerModuleFactory=n,this._deviceModelDataSource=i,this._apduSenderServiceFactory=o,this._apduReceiverServiceFactory=s,this._logger=n("TransportService"),t.length===0)throw this._logger.warn("No transports provided, please check your configuration"),new Bz("No transports provided, please check your configuration");for(const u of t){const c=this.addTransport(u);if(c.isLeft())throw c.extract()}}_transports=new Map;_logger;addTransport(t){const r=t({deviceModelDataSource:this._deviceModelDataSource,loggerServiceFactory:this._loggerModuleFactory,config:this._config,apduSenderServiceFactory:this._apduSenderServiceFactory,apduReceiverServiceFactory:this._apduReceiverServiceFactory});return this.addTransportInternal(r)}addTransportInternal(t){return this.getTransport(t.getIdentifier()).isJust()?(this._logger.warn(`Transport ${t.getIdentifier()} already exists, please check your configuration`),tn(new zz(`Transport ${t.getIdentifier()} already exists, please check your configuration`))):(this._transports.set(t.getIdentifier(),t),rn(void 0))}getTransport(t){return Tn.fromNullable(this._transports.get(t))}getAllTransports(){return Array.from(this._transports.values())}closeConnection(t){this.getTransport(t.transport).map(r=>r.disconnect({connectedDevice:t}))}};hT=N9([Rt(),nl(0,rt(ja.TransportsInput)),nl(1,rt(ja.DmkConfig)),nl(2,rt(_r.LoggerPublisherServiceFactory)),nl(3,rt(j8.DeviceModelDataSource)),nl(4,rt(gn.ApduSenderServiceFactory)),nl(5,rt(gn.ApduReceiverServiceFactory))],hT);const j9={ADD_LOG:"addLog"};function z9(e){return{startListeningCommand:()=>e.sendMessage(ta.START_LISTENING_DEVICES,"{}"),stopListeningCommand:()=>e.sendMessage(ta.STOP_LISTENING_DEVICES,"{}"),startDiscoveringCommand:()=>e.sendMessage(ta.START_DISCOVERING,"{}"),stopDiscoveringCommand:()=>e.sendMessage(ta.STOP_DISCOVERING,"{}"),connectDeviceCommand:(t,r)=>e.sendMessage(ta.CONNECT_DEVICE,JSON.stringify({deviceId:t,sessionRefresherOptions:r}))}}function B9(e){return{getProviderCommand:()=>e.sendMessage(ta.GET_PROVIDER,"{}"),setProviderCommand:t=>e.sendMessage(ta.SET_PROVIDER,JSON.stringify({provider:t}))}}let V9=0;function U9(e){return{sendApduCommand:(t,r)=>{const n=`apdu-${++V9}`,i=r.match(/.{1,2}/g)?.map(o=>parseInt(o,16))||[];return e.sendMessage(ta.SEND_APDU,JSON.stringify({sessionId:t,apdu:i,requestId:n})),n}}}function H9(e){if(e.type!==j9.ADD_LOG)return null;const{timestamp:t,tag:r,verbosity:n,message:i,payloadJSON:o}=JSON.parse(e.payload);return{timestamp:t,tag:r,verbosity:n,message:i,payloadJSON:o,payload:JSON.parse(o)}}function W9(e,t){try{const{module:r}=JSON.parse(e);t(n=>new Set([...n,r]))}catch(r){console.error("Failed to parse moduleConnected payload",r)}}function q9(e,t,r){const n=H9({type:e,payload:t});return n!==null?(r(i=>[...i,n]),!0):!1}function G9(e,t){try{const r=JSON.parse(e);t(r)}catch(r){console.error("Failed to parse connectedDevicesUpdate payload",r)}}function X9(e,t){try{const{sessionId:r,state:n}=JSON.parse(e);t(i=>new Map(i).set(r,n))}catch(r){console.error("Failed to parse deviceSessionStateUpdate payload",r)}}function K9(e,t){try{const r=JSON.parse(e);t(r)}catch(r){console.error("Failed to parse discoveredDevicesUpdate payload",r)}}function Y9(e,t){try{const{provider:r}=JSON.parse(e);t(r)}catch(r){console.error("Failed to parse providerValue payload",r)}}function J9(e,t){try{const r=JSON.parse(e);t(n=>new Map(n).set(r.requestId,r))}catch(r){console.error("Failed to parse apduResponse payload",r)}}function Q9(e){const[t,r]=C.useState([]),[n,i]=C.useState([]),[o,s]=C.useState([]),[u,c]=C.useState(new Set),[f,d]=C.useState([]),[g,h]=C.useState(new Map),[b,v]=C.useState([]),[S,y]=C.useState(!1),[E,x]=C.useState(!1),[T,A]=C.useState(null),[R,$]=C.useState(new Map),O=C.useMemo(()=>({...e,sendMessage:(M,Q)=>{e.sendMessage(M,Q),i(W=>[...W,{type:M,payload:Q}])}}),[e]);C.useEffect(()=>{const{unsubscribe:M}=e.listenToMessages((Q,W)=>{switch(r(D=>[...D,{type:Q,payload:W}]),Q){case Z4:W9(W,c);break;case Au.CONNECTED_DEVICES_UPDATE:G9(W,d);break;case Au.DEVICE_SESSION_STATE_UPDATE:X9(W,h);break;case Au.DISCOVERED_DEVICES_UPDATE:K9(W,v);break;case Au.PROVIDER_VALUE:Y9(W,A);break;case Au.APDU_RESPONSE:J9(W,$);break;default:q9(Q,W,s);break}});return M},[e]);const I=C.useMemo(()=>z9(O),[O]),L=C.useMemo(()=>B9(O),[O]),F=C.useMemo(()=>U9(O),[O]),q=C.useCallback(()=>{y(!0),v([]),I.startListeningCommand()},[I]),z=C.useCallback(()=>{y(!1),v([]),I.stopListeningCommand()},[I]),B=C.useCallback(()=>{x(!0),v([]),I.startDiscoveringCommand()},[I]),N=C.useCallback(()=>{x(!1),v([]),I.stopDiscoveringCommand()},[I]),j=C.useCallback(()=>{s([])},[]),H=u.has(WC.LOGGER),X=u.has(WC.DMK_INSPECTOR);return{receivedMessages:t,sentMessages:n,logs:o,connectedModules:u,connectedDevices:f,sessionStates:g,discoveredDevices:b,isListening:S,isActivelyDiscovering:E,isLoggerConnected:H,isInspectorConnected:X,providerValue:T,apduResponses:R,sendMessage:O.sendMessage,clearLogs:j,startListening:q,stopListening:z,startDiscovering:B,stopDiscovering:N,connectDevice:I.connectDeviceCommand,getProvider:L.getProviderCommand,setProvider:L.setProviderCommand,sendApdu:F.sendApduCommand}}const Z9=xe.div`
535
+ display: flex;
536
+ flex-direction: column;
537
+ align-items: center;
538
+ justify-content: center;
539
+ flex: 1;
540
+ padding: 24px;
541
+ opacity: 0.6;
542
+ `,eU=xe.h3`
543
+ margin: 0 0 16px 0;
544
+ font-size: 24px;
545
+ `,tU=xe.p`
546
+ text-align: center;
547
+ max-width: 500px;
548
+ margin: 0;
549
+ `,rU=xe.pre`
550
+ background: #f5f5f5;
551
+ padding: 16px;
552
+ border-radius: 8px;
553
+ margin-top: 16px;
554
+ font-size: 12px;
555
+ overflow: auto;
556
+ `,pP=({title:e,description:t,codeExample:r})=>U.jsxs(Z9,{children:[U.jsx(eU,{children:e}),U.jsx(tU,{children:t}),U.jsx(rU,{children:r})]}),nU=hn`
557
+ color: white;
558
+ border: none;
559
+ border-radius: 4px;
560
+ padding: 4px 12px;
561
+ cursor: pointer;
562
+ font-size: 14px;
563
+
564
+ &:disabled {
565
+ cursor: not-allowed;
566
+ opacity: 0.6;
567
+ }
568
+ `,Ep=xe.button`
569
+ ${nU}
570
+ background: ${({$variant:e})=>{switch(e){case"danger":return"#ff4444";case"success":return"#4CAF50";case"warning":return"#ff9800";case"primary":default:return"#2196F3"}}};
571
+ padding: ${({$size:e})=>e==="medium"?"8px 16px":"4px 12px"};
572
+
573
+ &:disabled {
574
+ background: #ccc;
575
+ }
576
+ `,hP=xe.div`
577
+ display: flex;
578
+ flex-direction: column;
579
+ padding: 16px;
580
+ border-radius: 8px;
581
+ border: 1px solid
582
+ ${({$variant:e})=>{switch(e){case"discovered":return"#cce5ff";case"disconnected":return"#ddd";default:return"#ddd"}}};
583
+ background: ${({$variant:e})=>{switch(e){case"discovered":return"#f0f7ff";case"disconnected":return"#f0f0f0";default:return"#fafafa"}}};
584
+ opacity: ${({$variant:e})=>e==="disconnected"?.6:1};
585
+ `,iU=xe.div`
586
+ display: flex;
587
+ justify-content: space-between;
588
+ align-items: center;
589
+ margin-bottom: 8px;
590
+ `,oU=xe.div`
591
+ display: flex;
592
+ align-items: center;
593
+ gap: 8px;
594
+ `,gP=xe.h5`
595
+ margin: 0;
596
+ font-size: 16px;
597
+ font-weight: 600;
598
+ `,aU=xe.div`
599
+ display: flex;
600
+ flex-direction: column;
601
+ gap: 4px;
602
+ `,sU=xe.div`
603
+ display: flex;
604
+ flex-direction: column;
605
+ margin-top: 12px;
606
+ padding-top: 12px;
607
+ border-top: 1px solid #eee;
608
+ `,Gn=xe.p`
609
+ font-size: 12px;
610
+ color: #666;
611
+ margin: 0;
612
+ `;xe.span`
613
+ font-size: 12px;
614
+ color: #999;
615
+ `;const lU=xe.p`
616
+ font-size: 12px;
617
+ color: #999;
618
+ font-style: italic;
619
+ margin: 12px 0 0 0;
620
+ `,uU=xe.p`
621
+ font-size: 12px;
622
+ color: #666;
623
+ font-weight: 600;
624
+ margin: 0 0 4px 0;
625
+ `,cU=xe.div`
626
+ display: flex;
627
+ flex-direction: column;
628
+ margin-bottom: 16px;
629
+ padding-bottom: 16px;
630
+ border-bottom: 1px solid #eee;
631
+ `,vP=xe.h4`
632
+ margin: 0 0 12px 0;
633
+ font-size: 18px;
634
+ font-weight: 600;
635
+ `,fU=xe.h5`
636
+ margin: 0 0 12px 0;
637
+ font-size: 16px;
638
+ font-weight: 500;
639
+ color: #666;
640
+ `,dU=xe.div`
641
+ display: flex;
642
+ gap: 12px;
643
+ margin-bottom: 12px;
644
+ `,sb=xe.div`
645
+ display: flex;
646
+ flex-direction: column;
647
+ gap: 12px;
648
+ `,pU=xe.div`
649
+ display: flex;
650
+ flex-direction: column;
651
+ flex: 1;
652
+ padding: 16px;
653
+ overflow: auto;
654
+ `,hU=xe.div`
655
+ display: flex;
656
+ flex-direction: column;
657
+ align-items: center;
658
+ justify-content: center;
659
+ flex: 1;
660
+ padding: 24px;
661
+ opacity: 0.6;
662
+ `,bd={success:{bg:"#e8f5e9",border:"#c8e6c9",text:"#2e7d32",dot:"#4CAF50"},warning:{bg:"#fff3e0",border:"#ffe0b2",text:"#e65100",dot:"#ff9800"},error:{bg:"#ffebee",border:"#ffcdd2",text:"#c62828",dot:"#ff4444"},info:{bg:"#e3f2fd",border:"#bbdefb",text:"#1565c0",dot:"#2196F3"},neutral:{bg:"#f5f5f5",border:"#e0e0e0",text:"#616161",dot:"#9e9e9e"}},gT=xe.span`
663
+ display: inline-flex;
664
+ align-items: center;
665
+ gap: 6px;
666
+ padding: 2px 10px;
667
+ border-radius: 12px;
668
+ font-size: 11px;
669
+ font-weight: 600;
670
+ text-transform: uppercase;
671
+ letter-spacing: 0.3px;
672
+ line-height: 18px;
673
+ white-space: nowrap;
674
+ background: ${({$variant:e})=>bd[e].bg};
675
+ border: 1px solid ${({$variant:e})=>bd[e].border};
676
+ color: ${({$variant:e})=>bd[e].text};
677
+
678
+ &::before {
679
+ content: "";
680
+ display: inline-block;
681
+ width: 6px;
682
+ height: 6px;
683
+ border-radius: 50%;
684
+ background: ${({$variant:e})=>bd[e].dot};
685
+ }
686
+ `,gU=xe.div`
687
+ display: flex;
688
+ flex-wrap: wrap;
689
+ gap: 6px;
690
+ align-items: center;
691
+ `,vU=xe.div`
692
+ display: flex;
693
+ align-items: center;
694
+ gap: 8px;
695
+ cursor: pointer;
696
+ user-select: none;
697
+ `,mU=xe.span`
698
+ font-size: 10px;
699
+ color: #666;
700
+ transition: transform 0.15s ease;
701
+ transform: rotate(${({$expanded:e})=>e?"90deg":"0deg"});
702
+ display: inline-flex;
703
+ align-items: center;
704
+ justify-content: center;
705
+ width: 16px;
706
+ height: 16px;
707
+ `,yU=xe.div`
708
+ display: ${({$expanded:e})=>e?"flex":"none"};
709
+ flex-direction: column;
710
+ gap: 8px;
711
+ `;xe.div`
712
+ display: flex;
713
+ flex-direction: column;
714
+ align-items: center;
715
+ justify-content: center;
716
+ flex: 1;
717
+ padding: 24px;
718
+ opacity: 0.6;
719
+ `;xe.h3`
720
+ margin: 0 0 16px 0;
721
+ font-size: 24px;
722
+ `;xe.p`
723
+ text-align: center;
724
+ max-width: 500px;
725
+ margin: 0;
726
+ `;xe.pre`
727
+ background: #f5f5f5;
728
+ padding: 16px;
729
+ border-radius: 8px;
730
+ margin-top: 16px;
731
+ font-size: 12px;
732
+ overflow: auto;
733
+ `;const bU=xe.div`
734
+ display: flex;
735
+ gap: 16px;
736
+ `,SU=xe.div`
737
+ display: flex;
738
+ flex-direction: column;
739
+ flex: 1;
740
+ min-width: 0;
741
+ `,wU=xe.div`
742
+ display: flex;
743
+ flex-direction: column;
744
+ align-items: flex-end;
745
+ gap: 6px;
746
+ flex-shrink: 0;
747
+ `,xU=xe.div`
748
+ display: flex;
749
+ flex-direction: column;
750
+ gap: 2px;
751
+ margin-top: 4px;
752
+ `,EU=xe.span`
753
+ font-size: 11px;
754
+ font-weight: 600;
755
+ color: #888;
756
+ `,CU=xe.label`
757
+ display: flex;
758
+ align-items: center;
759
+ gap: 6px;
760
+ font-size: 11px;
761
+ color: #555;
762
+ cursor: pointer;
763
+ white-space: nowrap;
764
+ `,RU=xe.div`
765
+ display: flex;
766
+ align-items: center;
767
+ gap: 6px;
768
+ font-size: 11px;
769
+ color: #555;
770
+ white-space: nowrap;
771
+ `,_U=xe.input`
772
+ width: 60px;
773
+ padding: 2px 6px;
774
+ border: 1px solid #ddd;
775
+ border-radius: 3px;
776
+ font-size: 11px;
777
+ font-family: monospace;
778
+
779
+ &:focus {
780
+ outline: none;
781
+ border-color: #2196f3;
782
+ }
783
+
784
+ &:disabled {
785
+ opacity: 0.4;
786
+ cursor: not-allowed;
787
+ }
788
+ `,OU=({device:e,onConnect:t})=>{const[r,n]=C.useState(!1),[i,o]=C.useState(!1),[s,u]=C.useState(""),c=C.useCallback(()=>{const f=s?parseInt(s,10):void 0;t({isRefresherDisabled:i,pollingInterval:f&&!isNaN(f)?f:void 0})},[t,i,s]);return U.jsx(hP,{$variant:"discovered",children:U.jsxs(bU,{children:[U.jsxs(SU,{children:[U.jsx(gP,{children:e.name||"Unknown Device"}),U.jsxs(xU,{children:[U.jsxs(Gn,{children:["ID: ",e.id]}),U.jsxs(Gn,{children:["Model: ",e.deviceModel.name]}),U.jsxs(Gn,{children:["Transport: ",e.transport]}),e.rssi!==void 0&&e.rssi!==null&&U.jsxs(Gn,{children:["Signal: ",e.rssi," dBm"]})]})]}),U.jsxs(wU,{children:[U.jsx(Ep,{$variant:"success",onClick:c,children:"Connect"}),U.jsxs(vU,{onClick:()=>n(!r),children:[U.jsx(mU,{$expanded:r,children:"▶"}),U.jsx(EU,{children:"Options"})]}),U.jsxs(yU,{$expanded:r,children:[U.jsxs(CU,{children:[U.jsx("input",{type:"checkbox",checked:i,onChange:f=>o(f.target.checked)}),"Disable refresher"]}),U.jsxs(RU,{children:[U.jsx("span",{children:"Polling (ms):"}),U.jsx(_U,{type:"number",min:"1000",placeholder:"1000",value:s,onChange:f=>u(f.target.value),disabled:i})]})]})]})]})})},TU=({discoveredDevices:e,isListening:t,isActivelyDiscovering:r,startListening:n,stopListening:i,startDiscovering:o,stopDiscovering:s,connectDevice:u})=>{const c=t||r;return U.jsxs(cU,{children:[U.jsx(vP,{children:"Device Discovery"}),U.jsxs(dU,{children:[U.jsx(Ep,{$variant:t?"warning":"primary",$size:"medium",onClick:t?i:n,disabled:r,children:t?"Stop Listening":"Listen for Devices"}),U.jsx(Ep,{$variant:r?"warning":"success",$size:"medium",onClick:r?s:o,disabled:t,children:r?"Stop Discovery":"Start Discovery"})]}),t&&e.length===0&&U.jsx(Gn,{children:"Listening for available devices..."}),r&&e.length===0&&U.jsx(Gn,{children:"Discovering devices..."}),e.length>0&&U.jsx(sb,{children:e.map(f=>U.jsx(OU,{device:f,onConnect:d=>u(f.id,d)},f.id))}),!c&&e.length===0&&U.jsx(Gn,{children:'Use "Listen for Devices" to see already-paired devices, or "Start Discovery" to scan for new devices.'}),U.jsx(lU,{children:"Note: this may not work in web apps due to browser security restrictions. WebHID and WebBLE require a user gesture (click) in the app context to trigger device discovery."})]})},AU=xe.div`
789
+ display: flex;
790
+ flex-direction: row;
791
+ align-items: center;
792
+ gap: 8px;
793
+ padding: 12px 16px;
794
+ background: #f5f5f5;
795
+ border-radius: 8px;
796
+ margin-bottom: 16px;
797
+ `,$U=xe.label`
798
+ font-size: 14px;
799
+ font-weight: 500;
800
+ color: #333;
801
+ `,IU=xe.input`
802
+ width: 80px;
803
+ padding: 6px 8px;
804
+ border: 1px solid #ddd;
805
+ border-radius: 4px;
806
+ font-size: 14px;
807
+ font-family: monospace;
808
+
809
+ &:focus {
810
+ outline: none;
811
+ border-color: #2196f3;
812
+ }
813
+ `,PU=xe.button`
814
+ padding: 4px 8px;
815
+ border: 1px solid #ddd;
816
+ border-radius: 4px;
817
+ background: white;
818
+ font-size: 14px;
819
+ cursor: pointer;
820
+ transition: all 0.15s ease;
821
+
822
+ &:hover {
823
+ background: #f0f0f0;
824
+ border-color: #bbb;
825
+ }
826
+ `,kU=({currentValue:e,onGet:t,onSet:r})=>{const[n,i]=C.useState(""),[o,s]=C.useState(!1);return C.useEffect(()=>{t()},[t]),C.useEffect(()=>{e!==null&&!o&&i(String(e))},[e,o]),U.jsxs(AU,{children:[U.jsx($U,{htmlFor:"provider-input",children:"My Ledger API provider:"}),U.jsx(IU,{id:"provider-input",type:"number",min:"0",value:n,onChange:u=>{const c=u.target.value;i(c),s(!0);const f=parseInt(c,10);!isNaN(f)&&f>=0&&String(f)===c&&r(f)},onBlur:()=>s(!1)}),U.jsx(PU,{onClick:()=>{s(!1),t(),e!==null&&i(String(e))},title:"Refresh",children:"🔄"})]})},MU=xe.div`
827
+ display: flex;
828
+ flex-direction: column;
829
+ gap: 8px;
830
+ margin-top: 12px;
831
+ padding-top: 12px;
832
+ border-top: 1px solid #eee;
833
+ `,DU=xe.div`
834
+ display: flex;
835
+ align-items: center;
836
+ gap: 8px;
837
+ cursor: pointer;
838
+ user-select: none;
839
+ `,LU=xe.span`
840
+ font-size: 12px;
841
+ color: #666;
842
+ transition: transform 0.15s ease;
843
+ transform: rotate(${({$expanded:e})=>e?"90deg":"0deg"});
844
+ `,FU=xe.span`
845
+ font-size: 12px;
846
+ font-weight: 600;
847
+ color: #666;
848
+ `,NU=xe.div`
849
+ display: ${({$expanded:e})=>e?"flex":"none"};
850
+ flex-direction: column;
851
+ gap: 8px;
852
+ `,jU=xe.div`
853
+ display: flex;
854
+ gap: 8px;
855
+ align-items: center;
856
+ `,zU=xe.input`
857
+ flex: 1;
858
+ padding: 6px 8px;
859
+ border: 1px solid #ddd;
860
+ border-radius: 4px;
861
+ font-size: 12px;
862
+ font-family: monospace;
863
+
864
+ &:focus {
865
+ outline: none;
866
+ border-color: #2196f3;
867
+ }
868
+
869
+ &::placeholder {
870
+ color: #999;
871
+ }
872
+ `,BU=xe.button`
873
+ padding: 6px 12px;
874
+ border: none;
875
+ border-radius: 4px;
876
+ background: #2196f3;
877
+ color: white;
878
+ font-size: 12px;
879
+ cursor: pointer;
880
+ transition: all 0.15s ease;
881
+
882
+ &:hover:not(:disabled) {
883
+ background: #1976d2;
884
+ }
885
+
886
+ &:disabled {
887
+ opacity: 0.5;
888
+ cursor: not-allowed;
889
+ }
890
+ `,VU=xe.div`
891
+ padding: 8px;
892
+ border-radius: 4px;
893
+ background: ${({$success:e})=>e?"#e8f5e9":"#ffebee"};
894
+ border: 1px solid ${({$success:e})=>e?"#c8e6c9":"#ffcdd2"};
895
+ font-size: 12px;
896
+ font-family: monospace;
897
+ `,E0=xe.span`
898
+ font-weight: 600;
899
+ color: #333;
900
+ `,C0=xe.span`
901
+ color: #555;
902
+ word-break: break-all;
903
+ `,UU=({sessionId:e,onSend:t,responses:r})=>{const[n,i]=C.useState(!1),[o,s]=C.useState(""),[u,c]=C.useState(null),f=()=>{if(!o.trim())return;const h=o.replace(/\s/g,"").toUpperCase();if(!/^[0-9A-F]*$/.test(h)||h.length%2!==0){alert("Invalid hex string. Please enter a valid APDU in hex format (e.g., E0C4000000)");return}const b=t(e,h);c(b)},d=u?r.get(u):null,g=h=>!h||!Array.isArray(h)?"":h.map(b=>b.toString(16).padStart(2,"0").toUpperCase()).join(" ");return U.jsxs(MU,{children:[U.jsxs(DU,{onClick:()=>i(!n),children:[U.jsx(LU,{$expanded:n,children:"▶"}),U.jsx(FU,{children:"Send APDU"})]}),U.jsxs(NU,{$expanded:n,children:[U.jsxs(jU,{children:[U.jsx(zU,{type:"text",placeholder:"APDU hex (e.g., E0C4000000)",value:o,onChange:h=>s(h.target.value),onKeyDown:h=>h.key==="Enter"&&f()}),U.jsx(BU,{onClick:f,disabled:!o.trim(),children:"Send"})]}),d&&U.jsx(VU,{$success:d.success,children:d.success?U.jsxs(U.Fragment,{children:[d.data&&d.data.length>0&&U.jsxs(U.Fragment,{children:[U.jsx(E0,{children:"Data: "}),U.jsx(C0,{children:g(d.data)}),U.jsx("br",{})]}),U.jsx(E0,{children:"Status: "}),U.jsx(C0,{children:g(d.statusCode)})]}):U.jsxs(U.Fragment,{children:[U.jsx(E0,{children:"Error: "}),U.jsx(C0,{children:d.error})]})})]})]})},HU=e=>e?e.deviceStatus!=="NOT CONNECTED":!0;function WU(e){switch(e){case"CONNECTED":return"success";case"LOCKED":return"warning";case"BUSY":return"info";case"NOT CONNECTED":return"error";default:return"neutral"}}function qU(e){switch(String(e)){case"ReadyWithSecureChannel":return"success";case"ReadyWithoutSecureChannel":return"info";case"Connected":return"neutral";default:return"neutral"}}function GU(e){return String(e).replace(/([a-z])([A-Z])/g,"$1 $2")}const vT=({device:e,state:t,onDisconnect:r,onSendApdu:n,apduResponses:i})=>{const o=HU(t);return U.jsxs(hP,{$variant:o?"default":"disconnected",children:[U.jsxs(iU,{children:[U.jsxs(oU,{children:[U.jsx(gP,{children:e.name||"Unknown Device"}),t&&U.jsx(gT,{$variant:WU(t.deviceStatus),children:t.deviceStatus})]}),o&&U.jsx(Ep,{$variant:"danger",onClick:r,children:"Disconnect"})]}),U.jsxs(aU,{children:[U.jsxs(Gn,{children:["Session ID: ",e.sessionId]}),U.jsxs(Gn,{children:["Model: ",e.modelId]}),U.jsxs(Gn,{children:["Transport: ",e.transport]}),U.jsxs(Gn,{children:["Type: ",e.type]})]}),t&&U.jsxs(sU,{children:[U.jsx(uU,{children:"Session State"}),U.jsx(gU,{children:U.jsx(gT,{$variant:qU(t.sessionStateType),children:GU(t.sessionStateType)})}),"currentApp"in t&&t.currentApp&&U.jsxs(Gn,{children:["Current App: ",t.currentApp.name," v",t.currentApp.version]}),"firmwareVersion"in t&&t.firmwareVersion&&U.jsxs(Gn,{children:["Firmware: ",t.firmwareVersion.os]})]}),o&&U.jsx(UU,{sessionId:e.sessionId,onSend:n,responses:i})]})},XU=(e,t)=>{const r=t.get(e.sessionId);return r?r.deviceStatus!=="NOT CONNECTED":!0},KU=({devices:e,sessionStates:t,onDisconnect:r,onSendApdu:n,apduResponses:i,isAnyDiscoveryActive:o})=>{const{activeDevices:s,disconnectedDevices:u}=C.useMemo(()=>{const c=[],f=[];for(const d of e)XU(d,t)?c.push(d):f.push(d);return{activeDevices:c,disconnectedDevices:f}},[e,t]);return e.length===0&&!o?U.jsx(hU,{children:U.jsx("p",{children:"No devices connected yet."})}):U.jsxs(U.Fragment,{children:[s.length>0&&U.jsxs(U.Fragment,{children:[U.jsxs(vP,{children:["Active Sessions (",s.length,")"]}),U.jsx(sb,{style:{marginBottom:16},children:s.map(c=>U.jsx(vT,{device:c,state:t.get(c.sessionId),onDisconnect:()=>r(c.sessionId),onSendApdu:n,apduResponses:i},c.sessionId))})]}),u.length>0&&U.jsxs(U.Fragment,{children:[U.jsxs(fU,{children:["Inactive Sessions (",u.length,")"]}),U.jsx(sb,{children:u.map(c=>U.jsx(vT,{device:c,state:t.get(c.sessionId),onDisconnect:()=>r(c.sessionId),onSendApdu:n,apduResponses:i},c.sessionId))})]})]})},YU=`import { DevToolsDmkInspector } from "@ledgerhq/device-management-kit-devtools-core";
904
+
905
+ const dmk = new DeviceManagementKitBuilder()
906
+ .addLogger(logger)
907
+ .build();
908
+
909
+ // Enable inspector after DMK is built
910
+ new DevToolsDmkInspector(connector, dmk);`,JU=({devices:e,sessionStates:t,discoveredDevices:r,isListening:n,isActivelyDiscovering:i,sendMessage:o,isConnected:s,startListening:u,stopListening:c,startDiscovering:f,stopDiscovering:d,connectDevice:g,providerValue:h,getProvider:b,setProvider:v,sendApdu:S,apduResponses:y})=>s?U.jsxs(pU,{children:[U.jsx(kU,{currentValue:h,onGet:b,onSet:v}),U.jsx(TU,{discoveredDevices:r,isListening:n,isActivelyDiscovering:i,startListening:u,stopListening:c,startDiscovering:f,stopDiscovering:d,connectDevice:g}),U.jsx(KU,{devices:e,sessionStates:t,onDisconnect:E=>{o(ta.DISCONNECT,JSON.stringify({sessionId:E}))},onSendApdu:S,apduResponses:y,isAnyDiscoveryActive:n||i})]}):U.jsx(pP,{title:"Inspector not connected",description:U.jsxs(U.Fragment,{children:["To enable the Inspector, add ",U.jsx("code",{children:"DevToolsDmkInspector"})," to your app after building the DMK:"]}),codeExample:YU});/*
911
+ object-assign
912
+ (c) Sindre Sorhus
913
+ @license MIT
914
+ */var R0,mT;function QU(){if(mT)return R0;mT=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var s={},u=0;u<10;u++)s["_"+String.fromCharCode(u)]=u;var c=Object.getOwnPropertyNames(s).map(function(d){return s[d]});if(c.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(d){f[d]=d}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return R0=i()?Object.assign:function(o,s){for(var u,c=n(o),f,d=1;d<arguments.length;d++){u=Object(arguments[d]);for(var g in u)t.call(u,g)&&(c[g]=u[g]);if(e){f=e(u);for(var h=0;h<f.length;h++)r.call(u,f[h])&&(c[f[h]]=u[f[h]])}}return c},R0}var ZU=QU();const eo=Mr(ZU);var yT=function(t,r){var n=eo({},t,r);for(var i in t){var o;!t[i]||typeof r[i]!="object"||eo(n,(o={},o[i]=eo(t[i],r[i]),o))}return n},e7=function(t){var r={};return Object.keys(t).sort(function(n,i){return n.localeCompare(i,void 0,{numeric:!0,sensitivity:"base"})}).forEach(function(n){r[n]=t[n]}),r},t7={breakpoints:[40,52,64].map(function(e){return e+"em"})},mP=function(t){return"@media screen and (min-width: "+t+")"},r7=function(t,r){return za(r,t,t)},za=function(t,r,n,i,o){for(r=r&&r.split?r.split("."):[r],i=0;i<r.length;i++)t=t?t[r[i]]:o;return t===o?n:t},iS=function e(t){var r={},n=function(s){var u={},c=!1,f=s.theme&&s.theme.disableStyledSystemCache;for(var d in s)if(t[d]){var g=t[d],h=s[d],b=za(s.theme,g.scale,g.defaults);if(typeof h=="object"){if(r.breakpoints=!f&&r.breakpoints||za(s.theme,"breakpoints",t7.breakpoints),Array.isArray(h)){r.media=!f&&r.media||[null].concat(r.breakpoints.map(mP)),u=yT(u,n7(r.media,g,b,h,s));continue}h!==null&&(u=yT(u,i7(r.breakpoints,g,b,h,s)),c=!0);continue}eo(u,g(h,b,s))}return c&&(u=e7(u)),u};n.config=t,n.propNames=Object.keys(t),n.cache=r;var i=Object.keys(t).filter(function(o){return o!=="config"});return i.length>1&&i.forEach(function(o){var s;n[o]=e((s={},s[o]=t[o],s))}),n},n7=function(t,r,n,i,o){var s={};return i.slice(0,t.length).forEach(function(u,c){var f=t[c],d=r(u,n,o);if(!f)eo(s,d);else{var g;eo(s,(g={},g[f]=eo({},s[f],d),g))}}),s},i7=function(t,r,n,i,o){var s={};for(var u in i){var c=t[u],f=i[u],d=r(f,n,o);if(!c)eo(s,d);else{var g,h=mP(c);eo(s,(g={},g[h]=eo({},s[h],d),g))}}return s},bT=function(t){var r=t.properties,n=t.property,i=t.scale,o=t.transform,s=o===void 0?r7:o,u=t.defaultScale;r=r||[n];var c=function(d,g,h){var b={},v=s(d,g,h);if(v!==null)return r.forEach(function(S){b[S]=v}),b};return c.scale=i,c.defaults=u,c},mn=function(t){t===void 0&&(t={});var r={};Object.keys(t).forEach(function(i){var o=t[i];if(o===!0){r[i]=bT({property:i,scale:i});return}if(typeof o=="function"){r[i]=o;return}r[i]=bT(o)});var n=iS(r);return n},oS=function(){for(var t={},r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];n.forEach(function(s){!s||!s.config||eo(t,s.config)});var o=iS(t);return o},o7=function(t){return typeof t=="number"&&!isNaN(t)},a7=function(t,r){return za(r,t,!o7(t)||t>1?t:t*100+"%")},s7={width:{property:"width",scale:"sizes",transform:a7},height:{property:"height",scale:"sizes"},minWidth:{property:"minWidth",scale:"sizes"},minHeight:{property:"minHeight",scale:"sizes"},maxWidth:{property:"maxWidth",scale:"sizes"},maxHeight:{property:"maxHeight",scale:"sizes"},size:{properties:["width","height"],scale:"sizes"},overflow:!0,overflowX:!0,overflowY:!0,display:!0,verticalAlign:!0},ii=mn(s7),lb={color:{property:"color",scale:"colors"},backgroundColor:{property:"backgroundColor",scale:"colors"},opacity:!0};lb.bg=lb.backgroundColor;var yP=mn(lb),l7={fontSizes:[12,14,16,20,24,32,48,64,72]},u7={fontFamily:{property:"fontFamily",scale:"fonts"},fontSize:{property:"fontSize",scale:"fontSizes",defaultScale:l7.fontSizes},fontWeight:{property:"fontWeight",scale:"fontWeights"},lineHeight:{property:"lineHeight",scale:"lineHeights"},letterSpacing:{property:"letterSpacing",scale:"letterSpacings"},textAlign:!0,fontStyle:!0},Os=mn(u7),c7={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:!0,flex:!0,flexGrow:!0,flexShrink:!0,flexBasis:!0,justifySelf:!0,alignSelf:!0,order:!0},Mn=mn(c7),_0={space:[0,4,8,16,32,64,128,256,512]},f7={gridGap:{property:"gridGap",scale:"space",defaultScale:_0.space},gridColumnGap:{property:"gridColumnGap",scale:"space",defaultScale:_0.space},gridRowGap:{property:"gridRowGap",scale:"space",defaultScale:_0.space},gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridAutoRows:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},ki=mn(f7),Vr={border:{property:"border",scale:"borders"},borderWidth:{property:"borderWidth",scale:"borderWidths"},borderStyle:{property:"borderStyle",scale:"borderStyles"},borderColor:{property:"borderColor",scale:"colors"},borderRadius:{property:"borderRadius",scale:"radii"},borderTop:{property:"borderTop",scale:"borders"},borderTopLeftRadius:{property:"borderTopLeftRadius",scale:"radii"},borderTopRightRadius:{property:"borderTopRightRadius",scale:"radii"},borderRight:{property:"borderRight",scale:"borders"},borderBottom:{property:"borderBottom",scale:"borders"},borderBottomLeftRadius:{property:"borderBottomLeftRadius",scale:"radii"},borderBottomRightRadius:{property:"borderBottomRightRadius",scale:"radii"},borderLeft:{property:"borderLeft",scale:"borders"},borderX:{properties:["borderLeft","borderRight"],scale:"borders"},borderY:{properties:["borderTop","borderBottom"],scale:"borders"}};Vr.borderTopWidth={property:"borderTopWidth",scale:"borderWidths"};Vr.borderTopColor={property:"borderTopColor",scale:"colors"};Vr.borderTopStyle={property:"borderTopStyle",scale:"borderStyles"};Vr.borderTopLeftRadius={property:"borderTopLeftRadius",scale:"radii"};Vr.borderTopRightRadius={property:"borderTopRightRadius",scale:"radii"};Vr.borderBottomWidth={property:"borderBottomWidth",scale:"borderWidths"};Vr.borderBottomColor={property:"borderBottomColor",scale:"colors"};Vr.borderBottomStyle={property:"borderBottomStyle",scale:"borderStyles"};Vr.borderBottomLeftRadius={property:"borderBottomLeftRadius",scale:"radii"};Vr.borderBottomRightRadius={property:"borderBottomRightRadius",scale:"radii"};Vr.borderLeftWidth={property:"borderLeftWidth",scale:"borderWidths"};Vr.borderLeftColor={property:"borderLeftColor",scale:"colors"};Vr.borderLeftStyle={property:"borderLeftStyle",scale:"borderStyles"};Vr.borderRightWidth={property:"borderRightWidth",scale:"borderWidths"};Vr.borderRightColor={property:"borderRightColor",scale:"colors"};Vr.borderRightStyle={property:"borderRightStyle",scale:"borderStyles"};var sa=mn(Vr),na={background:!0,backgroundImage:!0,backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0};na.bgImage=na.backgroundImage;na.bgSize=na.backgroundSize;na.bgPosition=na.backgroundPosition;na.bgRepeat=na.backgroundRepeat;var ah=mn(na),Sd={space:[0,4,8,16,32,64,128,256,512]},d7={position:!0,zIndex:{property:"zIndex",scale:"zIndices"},top:{property:"top",scale:"space",defaultScale:Sd.space},right:{property:"right",scale:"space",defaultScale:Sd.space},bottom:{property:"bottom",scale:"space",defaultScale:Sd.space},left:{property:"left",scale:"space",defaultScale:Sd.space}},Yl=mn(d7),_n={space:[0,4,8,16,32,64,128,256,512]},ST=function(t){return typeof t=="number"&&!isNaN(t)},os=function(t,r){if(!ST(t))return za(r,t,t);var n=t<0,i=Math.abs(t),o=za(r,i,i);return ST(o)?o*(n?-1:1):n?"-"+o:o},$t={};$t.margin={margin:{property:"margin",scale:"space",transform:os,defaultScale:_n.space},marginTop:{property:"marginTop",scale:"space",transform:os,defaultScale:_n.space},marginRight:{property:"marginRight",scale:"space",transform:os,defaultScale:_n.space},marginBottom:{property:"marginBottom",scale:"space",transform:os,defaultScale:_n.space},marginLeft:{property:"marginLeft",scale:"space",transform:os,defaultScale:_n.space},marginX:{properties:["marginLeft","marginRight"],scale:"space",transform:os,defaultScale:_n.space},marginY:{properties:["marginTop","marginBottom"],scale:"space",transform:os,defaultScale:_n.space}};$t.margin.m=$t.margin.margin;$t.margin.mt=$t.margin.marginTop;$t.margin.mr=$t.margin.marginRight;$t.margin.mb=$t.margin.marginBottom;$t.margin.ml=$t.margin.marginLeft;$t.margin.mx=$t.margin.marginX;$t.margin.my=$t.margin.marginY;$t.padding={padding:{property:"padding",scale:"space",defaultScale:_n.space},paddingTop:{property:"paddingTop",scale:"space",defaultScale:_n.space},paddingRight:{property:"paddingRight",scale:"space",defaultScale:_n.space},paddingBottom:{property:"paddingBottom",scale:"space",defaultScale:_n.space},paddingLeft:{property:"paddingLeft",scale:"space",defaultScale:_n.space},paddingX:{properties:["paddingLeft","paddingRight"],scale:"space",defaultScale:_n.space},paddingY:{properties:["paddingTop","paddingBottom"],scale:"space",defaultScale:_n.space}};$t.padding.p=$t.padding.padding;$t.padding.pt=$t.padding.paddingTop;$t.padding.pr=$t.padding.paddingRight;$t.padding.pb=$t.padding.paddingBottom;$t.padding.pl=$t.padding.paddingLeft;$t.padding.px=$t.padding.paddingX;$t.padding.py=$t.padding.paddingY;var p7=mn($t.margin),h7=mn($t.padding),g7=oS(p7,h7);mn({boxShadow:{property:"boxShadow",scale:"shadows"},textShadow:{property:"textShadow",scale:"shadows"}});function gc(){return gc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gc.apply(this,arguments)}var So=function(t,r,n,i,o){for(r=r&&r.split?r.split("."):[r],i=0;i<r.length;i++)t=t?t[r[i]]:o;return t===o?n:t},v7=[40,52,64].map(function(e){return e+"em"}),m7={space:[0,4,8,16,32,64,128,256,512],fontSizes:[12,14,16,20,24,32,48,64,72]},y7={bg:"backgroundColor",m:"margin",mt:"marginTop",mr:"marginRight",mb:"marginBottom",ml:"marginLeft",mx:"marginX",my:"marginY",p:"padding",pt:"paddingTop",pr:"paddingRight",pb:"paddingBottom",pl:"paddingLeft",px:"paddingX",py:"paddingY"},wT={marginX:["marginLeft","marginRight"],marginY:["marginTop","marginBottom"],paddingX:["paddingLeft","paddingRight"],paddingY:["paddingTop","paddingBottom"],size:["width","height"]},b7={color:"colors",backgroundColor:"colors",borderColor:"colors",margin:"space",marginTop:"space",marginRight:"space",marginBottom:"space",marginLeft:"space",marginX:"space",marginY:"space",padding:"space",paddingTop:"space",paddingRight:"space",paddingBottom:"space",paddingLeft:"space",paddingX:"space",paddingY:"space",top:"space",right:"space",bottom:"space",left:"space",gridGap:"space",gridColumnGap:"space",gridRowGap:"space",gap:"space",columnGap:"space",rowGap:"space",fontFamily:"fonts",fontSize:"fontSizes",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",border:"borders",borderTop:"borders",borderRight:"borders",borderBottom:"borders",borderLeft:"borders",borderWidth:"borderWidths",borderStyle:"borderStyles",borderRadius:"radii",borderTopRightRadius:"radii",borderTopLeftRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",borderTopWidth:"borderWidths",borderTopColor:"colors",borderTopStyle:"borderStyles",borderBottomWidth:"borderWidths",borderBottomColor:"colors",borderBottomStyle:"borderStyles",borderLeftWidth:"borderWidths",borderLeftColor:"colors",borderLeftStyle:"borderStyles",borderRightWidth:"borderWidths",borderRightColor:"colors",borderRightStyle:"borderStyles",outlineColor:"colors",boxShadow:"shadows",textShadow:"shadows",zIndex:"zIndices",width:"sizes",minWidth:"sizes",maxWidth:"sizes",height:"sizes",minHeight:"sizes",maxHeight:"sizes",flexBasis:"sizes",size:"sizes",fill:"colors",stroke:"colors"},S7=function(t,r){if(typeof r!="number"||r>=0)return So(t,r,r);var n=Math.abs(r),i=So(t,n,n);return typeof i=="string"?"-"+i:i*-1},w7=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","top","bottom","left","right"].reduce(function(e,t){var r;return gc({},e,(r={},r[t]=S7,r))},{}),x7=function(t){return function(r){var n={},i=So(r,"breakpoints",v7),o=[null].concat(i.map(function(d){return"@media screen and (min-width: "+d+")"}));for(var s in t){var u=typeof t[s]=="function"?t[s](r):t[s];if(u!=null){if(!Array.isArray(u)){n[s]=u;continue}for(var c=0;c<u.slice(0,o.length).length;c++){var f=o[c];if(!f){n[s]=u[c];continue}n[f]=n[f]||{},u[c]!=null&&(n[f][s]=u[c])}}}return n}},E7=function e(t){return function(r){r===void 0&&(r={});var n=gc({},m7,{},r.theme||r),i={},o=typeof t=="function"?t(n):t,s=x7(o)(n);for(var u in s){var c=s[u],f=typeof c=="function"?c(n):c;if(u==="variant"){var d=e(So(n,f))(n);i=gc({},i,{},d);continue}if(f&&typeof f=="object"){i[u]=e(f)(n);continue}var g=So(y7,u,u),h=So(b7,g),b=So(n,h,So(n,g,{})),v=So(w7,g,So),S=v(b,f,f);if(wT[g])for(var y=wT[g],E=0;E<y.length;E++)i[y[E]]=S;else i[g]=S}return i}},aS=function(t){var r,n=t.scale,i=t.prop,o=i===void 0?"variant":i,s=t.variants,u=s===void 0?{}:s,c=t.key,f;Object.keys(u).length?f=function(b,v,S){return E7(za(v,b,null))(S.theme)}:f=function(b,v){return za(v,b,null)},f.scale=n||c,f.defaults=u;var d=(r={},r[o]=f,r),g=iS(d);return g};aS({key:"buttons"});aS({key:"textStyles",prop:"textStyle"});aS({key:"colorStyles",prop:"colors"});ii.width;ii.height;ii.minWidth;ii.minHeight;ii.maxWidth;ii.maxHeight;ii.size;ii.verticalAlign;ii.display;var C7=ii.overflow;ii.overflowX;ii.overflowY;yP.opacity;var R7=Os.fontSize;Os.fontFamily;var _7=Os.fontWeight,O7=Os.lineHeight,T7=Os.textAlign;Os.fontStyle;var A7=Os.letterSpacing;Mn.alignItems;Mn.alignContent;Mn.justifyItems;Mn.justifyContent;Mn.flexWrap;Mn.flexDirection;Mn.flex;Mn.flexGrow;Mn.flexShrink;Mn.flexBasis;Mn.justifySelf;Mn.alignSelf;Mn.order;ki.gridGap;ki.gridColumnGap;ki.gridRowGap;ki.gridColumn;ki.gridRow;ki.gridAutoFlow;ki.gridAutoColumns;ki.gridAutoRows;ki.gridTemplateColumns;ki.gridTemplateRows;ki.gridTemplateAreas;ki.gridArea;sa.borderWidth;sa.borderStyle;sa.borderColor;sa.borderTop;sa.borderRight;sa.borderBottom;sa.borderLeft;sa.borderRadius;ah.backgroundImage;ah.backgroundSize;ah.backgroundPosition;ah.backgroundRepeat;Yl.zIndex;Yl.top;Yl.right;Yl.bottom;Yl.left;const $7=mn({rowGap:{property:"rowGap",scale:"space"},columnGap:{property:"columnGap",scale:"space"}}),xT=oS(Mn,g7,Yl,yP,ii,C7,$7,sa),bP=new Proxy(xe,{apply(e,t,r){return xe(e.apply(t,r)(xT))},get(e,t){return typeof e[t]=="function"?xe(e[t].apply(xe,[xT])):e[t]}}),ia=bP.div.attrs({display:"flex"})``,I7=e=>{const t=e.ff;return t==null?null:Y3(t)},P7=mn({uppercase:{property:"textTransform",transform:e=>e?"uppercase":"none"}}),SP=bP.span.attrs(({variant:e="body",fontSize:t,color:r})=>({fontSize:t||e,color:r||"neutral.c100"}))`
915
+ font-weight: 500;
916
+ white-space: ${e=>e.whiteSpace??"normal"};
917
+ ${e=>Z3[e.variant||"body"]}
918
+ ${oS(P7,O7,I7,R7,T7,_7,A7,mn({textOverflow:!0}))}
919
+ ${e=>e.textTransform?`text-transform: ${e.textTransform};`:""}
920
+ `,O0=xe(ia).attrs(e=>({my:e.my||0,height:1,backgroundColor:e.color||"neutral.c40"}))`
921
+ &[data-variant="light"] {
922
+ background: ${e=>e.theme.colors.neutral.c30};
923
+ }
924
+ `,k7=e=>e.text?oe.createElement(ia,{...e,flexDirection:"row",alignItems:"center"},oe.createElement(O0,{my:6,flex:1}),oe.createElement(SP,{variant:"bodyLineHeight",color:"neutral.c60",mx:6},e.text),oe.createElement(O0,{my:6,flex:1})):oe.createElement(O0,{...e}),Ts=xe.svg.withConfig({shouldForwardProp:e=>!0})`
925
+ ${mn({color:{property:"color",scale:"colors"}})}
926
+ `,ET={XS:{size:16,stroke:1.3},S:{size:20,stroke:1.5},M:{size:24,stroke:1.8},L:{size:40,stroke:2.2},XL:{size:48,stroke:2.5},XXL:{size:70,stroke:2.8}};function np({size:e="M",color:t="currentColor",style:r}){const n=ET[e]?.stroke,i=ET[e]?.size;return C.createElement(Ts,{width:i,height:i,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:t,style:r},C.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M21 7.5L12 16.5L3 7.5",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}))}const CT={XS:{size:16,stroke:1.3},S:{size:20,stroke:1.5},M:{size:24,stroke:1.8},L:{size:40,stroke:2.2},XL:{size:48,stroke:2.5},XXL:{size:70,stroke:2.8}};function T0({size:e="M",color:t="currentColor",style:r}){const n=CT[e]?.stroke,i=CT[e]?.size;return C.createElement(Ts,{width:i,height:i,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:t,style:r},C.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M21 16.5L11.989 7.5L3 16.5",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}))}const RT={XS:{size:16,stroke:1.3},S:{size:20,stroke:1.5},M:{size:24,stroke:1.8},L:{size:40,stroke:2.2},XL:{size:48,stroke:2.5},XXL:{size:70,stroke:2.8}};function M7({size:e="M",color:t="currentColor",style:r}){const n=RT[e]?.stroke,i=RT[e]?.size;return C.createElement(Ts,{width:i,height:i,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:t,style:r},C.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M8 10L12 14L16 10",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}))}const _T={XS:{size:16,stroke:1.3},S:{size:20,stroke:1.5},M:{size:24,stroke:1.8},L:{size:40,stroke:2.2},XL:{size:48,stroke:2.5},XXL:{size:70,stroke:2.8}};function ub({size:e="M",color:t="currentColor",style:r}){const n=_T[e]?.stroke,i=_T[e]?.size;return C.createElement(Ts,{width:i,height:i,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:t,style:r},C.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M5 5L19 19M19 5L5 19",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}))}const OT={XS:{size:16,stroke:1.3},S:{size:20,stroke:1.5},M:{size:24,stroke:1.8},L:{size:40,stroke:2.2},XL:{size:48,stroke:2.5},XXL:{size:70,stroke:2.8}};function D7({size:e="M",color:t="currentColor",style:r}){const n=OT[e]?.stroke,i=OT[e]?.size;return C.createElement(Ts,{width:i,height:i,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:t,style:r},C.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M18.364 5.636L5.634 18.356L18.354 5.626L18.364 5.636Z",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}),C.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M12 3C7.02 3 3 7.029 3 12C3 16.971 7.029 21 12 21C16.971 21 21 16.971 21 12C21 7.02 16.971 3 12 3Z",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}))}const TT={XS:{size:16,stroke:1.3},S:{size:20,stroke:1.5},M:{size:24,stroke:1.8},L:{size:40,stroke:2.2},XL:{size:48,stroke:2.5},XXL:{size:70,stroke:2.8}};function L7({size:e="M",color:t="currentColor",style:r}){const n=TT[e]?.stroke,i=TT[e]?.size;return C.createElement(Ts,{width:i,height:i,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:t,style:r},C.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M15.556 11.111L12 14.667M12 14.667L8.444 11.111M12 14.667V4M20 16.444C20 17.3871 19.6254 18.2916 18.9585 18.9585C18.2916 19.6254 17.3871 20 16.444 20H7.556C6.61289 20 5.70841 19.6254 5.04153 18.9585C4.37465 18.2916 4 17.3871 4 16.444",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}))}const AT={XS:{size:16,stroke:1.3},S:{size:20,stroke:1.5},M:{size:24,stroke:1.8},L:{size:40,stroke:2.2},XL:{size:48,stroke:2.5},XXL:{size:70,stroke:2.8}};function F7({size:e="M",color:t="currentColor",style:r}){const n=AT[e]?.stroke,i=AT[e]?.size;return C.createElement(Ts,{width:i,height:i,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:t,style:r},C.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M12.8001 3C13.006 3.00003 13.2069 3.06363 13.3753 3.18212C13.5438 3.3006 13.6715 3.4682 13.7411 3.662L14.2491 5.077C14.3297 5.29951 14.4863 5.48647 14.6911 5.605L16.1981 6.475C16.4027 6.59307 16.6426 6.63488 16.8751 6.593L18.3551 6.326C18.5579 6.28912 18.7672 6.31583 18.9543 6.40247C19.1413 6.48911 19.2971 6.63145 19.4001 6.81L20.2001 8.19C20.3034 8.36808 20.3493 8.57371 20.3314 8.77882C20.3135 8.98393 20.2327 9.17851 20.1001 9.336L19.1291 10.484C18.9762 10.6645 18.8922 10.8934 18.8921 11.13V12.87C18.8922 13.1066 18.9762 13.3355 19.1291 13.516L20.1001 14.664C20.2327 14.8215 20.3135 15.0161 20.3314 15.2212C20.3493 15.4263 20.3034 15.6319 20.2001 15.81L19.4001 17.19C19.2971 17.3684 19.1416 17.5106 18.9547 17.5972C18.7678 17.6838 18.5588 17.7107 18.3561 17.674L16.8761 17.407C16.6436 17.3651 16.4037 17.4069 16.1991 17.525L14.6921 18.395C14.4873 18.5135 14.3307 18.7005 14.2501 18.923L13.7421 20.338C13.6724 20.532 13.5446 20.6997 13.3759 20.8182C13.2073 20.9367 13.0062 21.0002 12.8001 21H11.2001C10.9942 21 10.7933 20.9364 10.6249 20.8179C10.4564 20.6994 10.3287 20.5318 10.2591 20.338L9.75111 18.923C9.6705 18.7008 9.51442 18.5139 9.31011 18.395L7.80211 17.525C7.59747 17.4069 7.35763 17.3651 7.12511 17.407L5.64511 17.674C5.44228 17.7109 5.23301 17.6842 5.04594 17.5975C4.85887 17.5109 4.70316 17.3686 4.60011 17.19L3.80011 15.81C3.69678 15.6319 3.65093 15.4263 3.66883 15.2212C3.68672 15.0161 3.76749 14.8215 3.90011 14.664L4.87111 13.516C5.02404 13.3355 5.10801 13.1066 5.10811 12.87V11.13C5.10801 10.8934 5.02404 10.6645 4.87111 10.484L3.91011 9.336C3.77749 9.17851 3.69672 8.98393 3.67883 8.77882C3.66093 8.57371 3.70678 8.36808 3.81011 8.19L4.61011 6.81C4.7131 6.63163 4.86865 6.48942 5.05551 6.40279C5.24238 6.31616 5.45143 6.28934 5.65411 6.326L7.13411 6.593C7.36663 6.63488 7.60647 6.59307 7.81111 6.475L9.31911 5.605C9.52342 5.48609 9.6795 5.29923 9.76011 5.077L10.2681 3.662C10.3372 3.46963 10.4635 3.30305 10.6302 3.18469C10.7968 3.06633 10.9957 3.00187 11.2001 3H12.8001Z",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}),C.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M12.0001 14.75C13.5189 14.75 14.7501 13.5188 14.7501 12C14.7501 10.4812 13.5189 9.25 12.0001 9.25C10.4813 9.25 9.25011 10.4812 9.25011 12C9.25011 13.5188 10.4813 14.75 12.0001 14.75Z",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}))}function vc(e,t){return vc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},vc(e,t)}function yt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wP(e){if(Array.isArray(e))return e}function N7(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,s,u=[],c=!0,f=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(d){f=!0,i=d}finally{try{if(!c&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(f)throw i}}return u}}function xP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
927
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fe(e,t){return wP(e)||N7(e,t)||S1(e,t)||xP()}function ei(e,t){if(e==null)return{};var r,n,i=Ic(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function nn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $T(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,V$(n.key),n)}}function on(e,t,r){return t&&$T(e.prototype,t),r&&$T(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function As(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vc(e,t)}function mc(e){return mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},mc(e)}function sS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sS=function(){return!!e})()}function j7(e,t){if(t&&(pt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yt(e)}function $s(e){var t=sS();return function(){var r,n=mc(e);if(t){var i=mc(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return j7(this,r)}}function z7(e){if(Array.isArray(e))return zy(e)}function EP(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function B7(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
928
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function at(e){return z7(e)||EP(e)||S1(e)||B7()}var A0={exports:{}},Ht={};/** @license React v17.0.2
929
+ * react-is.production.min.js
930
+ *
931
+ * Copyright (c) Facebook, Inc. and its affiliates.
932
+ *
933
+ * This source code is licensed under the MIT license found in the
934
+ * LICENSE file in the root directory of this source tree.
935
+ */var IT;function V7(){if(IT)return Ht;IT=1;var e=60103,t=60106,r=60107,n=60108,i=60114,o=60109,s=60110,u=60112,c=60113,f=60120,d=60115,g=60116,h=60121,b=60122,v=60117,S=60129,y=60131;if(typeof Symbol=="function"&&Symbol.for){var E=Symbol.for;e=E("react.element"),t=E("react.portal"),r=E("react.fragment"),n=E("react.strict_mode"),i=E("react.profiler"),o=E("react.provider"),s=E("react.context"),u=E("react.forward_ref"),c=E("react.suspense"),f=E("react.suspense_list"),d=E("react.memo"),g=E("react.lazy"),h=E("react.block"),b=E("react.server.block"),v=E("react.fundamental"),S=E("react.debug_trace_mode"),y=E("react.legacy_hidden")}function x(B){if(typeof B=="object"&&B!==null){var N=B.$$typeof;switch(N){case e:switch(B=B.type,B){case r:case i:case n:case c:case f:return B;default:switch(B=B&&B.$$typeof,B){case s:case u:case g:case d:case o:return B;default:return N}}case t:return N}}}var T=o,A=e,R=u,$=r,O=g,I=d,L=t,F=i,q=n,z=c;return Ht.ContextConsumer=s,Ht.ContextProvider=T,Ht.Element=A,Ht.ForwardRef=R,Ht.Fragment=$,Ht.Lazy=O,Ht.Memo=I,Ht.Portal=L,Ht.Profiler=F,Ht.StrictMode=q,Ht.Suspense=z,Ht.isAsyncMode=function(){return!1},Ht.isConcurrentMode=function(){return!1},Ht.isContextConsumer=function(B){return x(B)===s},Ht.isContextProvider=function(B){return x(B)===o},Ht.isElement=function(B){return typeof B=="object"&&B!==null&&B.$$typeof===e},Ht.isForwardRef=function(B){return x(B)===u},Ht.isFragment=function(B){return x(B)===r},Ht.isLazy=function(B){return x(B)===g},Ht.isMemo=function(B){return x(B)===d},Ht.isPortal=function(B){return x(B)===t},Ht.isProfiler=function(B){return x(B)===i},Ht.isStrictMode=function(B){return x(B)===n},Ht.isSuspense=function(B){return x(B)===c},Ht.isValidElementType=function(B){return typeof B=="string"||typeof B=="function"||B===r||B===i||B===S||B===n||B===c||B===f||B===y||typeof B=="object"&&B!==null&&(B.$$typeof===g||B.$$typeof===d||B.$$typeof===o||B.$$typeof===s||B.$$typeof===u||B.$$typeof===v||B.$$typeof===h||B[0]===b)},Ht.typeOf=x,Ht}var PT;function U7(){return PT||(PT=1,A0.exports=V7()),A0.exports}var H7=U7(),In="top",Oi="bottom",Ti="right",Pn="left",lS="auto",Vc=[In,Oi,Ti,Pn],Ml="start",yc="end",W7="clippingParents",CP="viewport",Pu="popper",q7="reference",kT=Vc.reduce(function(e,t){return e.concat([t+"-"+Ml,t+"-"+yc])},[]),RP=[].concat(Vc,[lS]).reduce(function(e,t){return e.concat([t,t+"-"+Ml,t+"-"+yc])},[]),G7="beforeRead",X7="read",K7="afterRead",Y7="beforeMain",J7="main",Q7="afterMain",Z7="beforeWrite",eH="write",tH="afterWrite",rH=[G7,X7,K7,Y7,J7,Q7,Z7,eH,tH];function Oo(e){return e?(e.nodeName||"").toLowerCase():null}function ti(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Cs(e){var t=ti(e).Element;return e instanceof t||e instanceof Element}function _i(e){var t=ti(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function uS(e){if(typeof ShadowRoot>"u")return!1;var t=ti(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function nH(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},o=t.elements[r];!_i(o)||!Oo(o)||(Object.assign(o.style,n),Object.keys(i).forEach(function(s){var u=i[s];u===!1?o.removeAttribute(s):o.setAttribute(s,u===!0?"":u)}))})}function iH(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],o=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),u=s.reduce(function(c,f){return c[f]="",c},{});!_i(i)||!Oo(i)||(Object.assign(i.style,u),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const _P={name:"applyStyles",enabled:!0,phase:"write",fn:nH,effect:iH,requires:["computeStyles"]};function _o(e){return e.split("-")[0]}var ms=Math.max,Cp=Math.min,Dl=Math.round;function cb(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function OP(){return!/^((?!chrome|android).)*safari/i.test(cb())}function Ll(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&_i(e)&&(i=e.offsetWidth>0&&Dl(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Dl(n.height)/e.offsetHeight||1);var s=Cs(e)?ti(e):window,u=s.visualViewport,c=!OP()&&r,f=(n.left+(c&&u?u.offsetLeft:0))/i,d=(n.top+(c&&u?u.offsetTop:0))/o,g=n.width/i,h=n.height/o;return{width:g,height:h,top:d,right:f+g,bottom:d+h,left:f,x:f,y:d}}function cS(e){var t=Ll(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function TP(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&uS(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function oa(e){return ti(e).getComputedStyle(e)}function oH(e){return["table","td","th"].indexOf(Oo(e))>=0}function Ua(e){return((Cs(e)?e.ownerDocument:e.document)||window.document).documentElement}function sh(e){return Oo(e)==="html"?e:e.assignedSlot||e.parentNode||(uS(e)?e.host:null)||Ua(e)}function MT(e){return!_i(e)||oa(e).position==="fixed"?null:e.offsetParent}function aH(e){var t=/firefox/i.test(cb()),r=/Trident/i.test(cb());if(r&&_i(e)){var n=oa(e);if(n.position==="fixed")return null}var i=sh(e);for(uS(i)&&(i=i.host);_i(i)&&["html","body"].indexOf(Oo(i))<0;){var o=oa(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Uc(e){for(var t=ti(e),r=MT(e);r&&oH(r)&&oa(r).position==="static";)r=MT(r);return r&&(Oo(r)==="html"||Oo(r)==="body"&&oa(r).position==="static")?t:r||aH(e)||t}function fS(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ju(e,t,r){return ms(e,Cp(t,r))}function sH(e,t,r){var n=Ju(e,t,r);return n>r?r:n}function AP(){return{top:0,right:0,bottom:0,left:0}}function $P(e){return Object.assign({},AP(),e)}function IP(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var lH=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,$P(typeof t!="number"?t:IP(t,Vc))};function uH(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,u=_o(r.placement),c=fS(u),f=[Pn,Ti].indexOf(u)>=0,d=f?"height":"width";if(!(!o||!s)){var g=lH(i.padding,r),h=cS(o),b=c==="y"?In:Pn,v=c==="y"?Oi:Ti,S=r.rects.reference[d]+r.rects.reference[c]-s[c]-r.rects.popper[d],y=s[c]-r.rects.reference[c],E=Uc(o),x=E?c==="y"?E.clientHeight||0:E.clientWidth||0:0,T=S/2-y/2,A=g[b],R=x-h[d]-g[v],$=x/2-h[d]/2+T,O=Ju(A,$,R),I=c;r.modifiersData[n]=(t={},t[I]=O,t.centerOffset=O-$,t)}}function cH(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||TP(t.elements.popper,i)&&(t.elements.arrow=i))}const fH={name:"arrow",enabled:!0,phase:"main",fn:uH,effect:cH,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fl(e){return e.split("-")[1]}var dH={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pH(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:Dl(r*i)/i||0,y:Dl(n*i)/i||0}}function DT(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,u=e.position,c=e.gpuAcceleration,f=e.adaptive,d=e.roundOffsets,g=e.isFixed,h=s.x,b=h===void 0?0:h,v=s.y,S=v===void 0?0:v,y=typeof d=="function"?d({x:b,y:S}):{x:b,y:S};b=y.x,S=y.y;var E=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),T=Pn,A=In,R=window;if(f){var $=Uc(r),O="clientHeight",I="clientWidth";if($===ti(r)&&($=Ua(r),oa($).position!=="static"&&u==="absolute"&&(O="scrollHeight",I="scrollWidth")),$=$,i===In||(i===Pn||i===Ti)&&o===yc){A=Oi;var L=g&&$===R&&R.visualViewport?R.visualViewport.height:$[O];S-=L-n.height,S*=c?1:-1}if(i===Pn||(i===In||i===Oi)&&o===yc){T=Ti;var F=g&&$===R&&R.visualViewport?R.visualViewport.width:$[I];b-=F-n.width,b*=c?1:-1}}var q=Object.assign({position:u},f&&dH),z=d===!0?pH({x:b,y:S},ti(r)):{x:b,y:S};if(b=z.x,S=z.y,c){var B;return Object.assign({},q,(B={},B[A]=x?"0":"",B[T]=E?"0":"",B.transform=(R.devicePixelRatio||1)<=1?"translate("+b+"px, "+S+"px)":"translate3d("+b+"px, "+S+"px, 0)",B))}return Object.assign({},q,(t={},t[A]=x?S+"px":"",t[T]=E?b+"px":"",t.transform="",t))}function hH(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,o=r.adaptive,s=o===void 0?!0:o,u=r.roundOffsets,c=u===void 0?!0:u,f={placement:_o(t.placement),variation:Fl(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,DT(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,DT(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const gH={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:hH,data:{}};var wd={passive:!0};function vH(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=i===void 0?!0:i,s=n.resize,u=s===void 0?!0:s,c=ti(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&f.forEach(function(d){d.addEventListener("scroll",r.update,wd)}),u&&c.addEventListener("resize",r.update,wd),function(){o&&f.forEach(function(d){d.removeEventListener("scroll",r.update,wd)}),u&&c.removeEventListener("resize",r.update,wd)}}const mH={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:vH,data:{}};var yH={left:"right",right:"left",bottom:"top",top:"bottom"};function ip(e){return e.replace(/left|right|bottom|top/g,function(t){return yH[t]})}var bH={start:"end",end:"start"};function LT(e){return e.replace(/start|end/g,function(t){return bH[t]})}function dS(e){var t=ti(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function pS(e){return Ll(Ua(e)).left+dS(e).scrollLeft}function SH(e,t){var r=ti(e),n=Ua(e),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,u=0,c=0;if(i){o=i.width,s=i.height;var f=OP();(f||!f&&t==="fixed")&&(u=i.offsetLeft,c=i.offsetTop)}return{width:o,height:s,x:u+pS(e),y:c}}function wH(e){var t,r=Ua(e),n=dS(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=ms(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=ms(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-n.scrollLeft+pS(e),c=-n.scrollTop;return oa(i||r).direction==="rtl"&&(u+=ms(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:u,y:c}}function hS(e){var t=oa(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function PP(e){return["html","body","#document"].indexOf(Oo(e))>=0?e.ownerDocument.body:_i(e)&&hS(e)?e:PP(sh(e))}function Qu(e,t){var r;t===void 0&&(t=[]);var n=PP(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=ti(n),s=i?[o].concat(o.visualViewport||[],hS(n)?n:[]):n,u=t.concat(s);return i?u:u.concat(Qu(sh(s)))}function fb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function xH(e,t){var r=Ll(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function FT(e,t,r){return t===CP?fb(SH(e,r)):Cs(t)?xH(t,r):fb(wH(Ua(e)))}function EH(e){var t=Qu(sh(e)),r=["absolute","fixed"].indexOf(oa(e).position)>=0,n=r&&_i(e)?Uc(e):e;return Cs(n)?t.filter(function(i){return Cs(i)&&TP(i,n)&&Oo(i)!=="body"}):[]}function CH(e,t,r,n){var i=t==="clippingParents"?EH(e):[].concat(t),o=[].concat(i,[r]),s=o[0],u=o.reduce(function(c,f){var d=FT(e,f,n);return c.top=ms(d.top,c.top),c.right=Cp(d.right,c.right),c.bottom=Cp(d.bottom,c.bottom),c.left=ms(d.left,c.left),c},FT(e,s,n));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function kP(e){var t=e.reference,r=e.element,n=e.placement,i=n?_o(n):null,o=n?Fl(n):null,s=t.x+t.width/2-r.width/2,u=t.y+t.height/2-r.height/2,c;switch(i){case In:c={x:s,y:t.y-r.height};break;case Oi:c={x:s,y:t.y+t.height};break;case Ti:c={x:t.x+t.width,y:u};break;case Pn:c={x:t.x-r.width,y:u};break;default:c={x:t.x,y:t.y}}var f=i?fS(i):null;if(f!=null){var d=f==="y"?"height":"width";switch(o){case Ml:c[f]=c[f]-(t[d]/2-r[d]/2);break;case yc:c[f]=c[f]+(t[d]/2-r[d]/2);break}}return c}function bc(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,o=r.strategy,s=o===void 0?e.strategy:o,u=r.boundary,c=u===void 0?W7:u,f=r.rootBoundary,d=f===void 0?CP:f,g=r.elementContext,h=g===void 0?Pu:g,b=r.altBoundary,v=b===void 0?!1:b,S=r.padding,y=S===void 0?0:S,E=$P(typeof y!="number"?y:IP(y,Vc)),x=h===Pu?q7:Pu,T=e.rects.popper,A=e.elements[v?x:h],R=CH(Cs(A)?A:A.contextElement||Ua(e.elements.popper),c,d,s),$=Ll(e.elements.reference),O=kP({reference:$,element:T,placement:i}),I=fb(Object.assign({},T,O)),L=h===Pu?I:$,F={top:R.top-L.top+E.top,bottom:L.bottom-R.bottom+E.bottom,left:R.left-L.left+E.left,right:L.right-R.right+E.right},q=e.modifiersData.offset;if(h===Pu&&q){var z=q[i];Object.keys(F).forEach(function(B){var N=[Ti,Oi].indexOf(B)>=0?1:-1,j=[In,Oi].indexOf(B)>=0?"y":"x";F[B]+=z[j]*N})}return F}function RH(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,s=r.padding,u=r.flipVariations,c=r.allowedAutoPlacements,f=c===void 0?RP:c,d=Fl(n),g=d?u?kT:kT.filter(function(v){return Fl(v)===d}):Vc,h=g.filter(function(v){return f.indexOf(v)>=0});h.length===0&&(h=g);var b=h.reduce(function(v,S){return v[S]=bc(e,{placement:S,boundary:i,rootBoundary:o,padding:s})[_o(S)],v},{});return Object.keys(b).sort(function(v,S){return b[v]-b[S]})}function _H(e){if(_o(e)===lS)return[];var t=ip(e);return[LT(e),t,LT(t)]}function OH(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=i===void 0?!0:i,s=r.altAxis,u=s===void 0?!0:s,c=r.fallbackPlacements,f=r.padding,d=r.boundary,g=r.rootBoundary,h=r.altBoundary,b=r.flipVariations,v=b===void 0?!0:b,S=r.allowedAutoPlacements,y=t.options.placement,E=_o(y),x=E===y,T=c||(x||!v?[ip(y)]:_H(y)),A=[y].concat(T).reduce(function(Z,te){return Z.concat(_o(te)===lS?RH(t,{placement:te,boundary:d,rootBoundary:g,padding:f,flipVariations:v,allowedAutoPlacements:S}):te)},[]),R=t.rects.reference,$=t.rects.popper,O=new Map,I=!0,L=A[0],F=0;F<A.length;F++){var q=A[F],z=_o(q),B=Fl(q)===Ml,N=[In,Oi].indexOf(z)>=0,j=N?"width":"height",H=bc(t,{placement:q,boundary:d,rootBoundary:g,altBoundary:h,padding:f}),X=N?B?Ti:Pn:B?Oi:In;R[j]>$[j]&&(X=ip(X));var M=ip(X),Q=[];if(o&&Q.push(H[z]<=0),u&&Q.push(H[X]<=0,H[M]<=0),Q.every(function(Z){return Z})){L=q,I=!1;break}O.set(q,Q)}if(I)for(var W=v?3:1,D=function(te){var K=A.find(function(be){var ae=O.get(be);if(ae)return ae.slice(0,te).every(function(Se){return Se})});if(K)return L=K,"break"},P=W;P>0;P--){var G=D(P);if(G==="break")break}t.placement!==L&&(t.modifiersData[n]._skip=!0,t.placement=L,t.reset=!0)}}const TH={name:"flip",enabled:!0,phase:"main",fn:OH,requiresIfExists:["offset"],data:{_skip:!1}};function NT(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function jT(e){return[In,Ti,Oi,Pn].some(function(t){return e[t]>=0})}function AH(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=bc(t,{elementContext:"reference"}),u=bc(t,{altBoundary:!0}),c=NT(s,n),f=NT(u,i,o),d=jT(c),g=jT(f);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:d,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":g})}const $H={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:AH};function IH(e,t,r){var n=_o(e),i=[Pn,In].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=o[0],u=o[1];return s=s||0,u=(u||0)*i,[Pn,Ti].indexOf(n)>=0?{x:u,y:s}:{x:s,y:u}}function PH(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=i===void 0?[0,0]:i,s=RP.reduce(function(d,g){return d[g]=IH(g,t.rects,o),d},{}),u=s[t.placement],c=u.x,f=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[n]=s}const kH={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:PH};function MH(e){var t=e.state,r=e.name;t.modifiersData[r]=kP({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const DH={name:"popperOffsets",enabled:!0,phase:"read",fn:MH,data:{}};function LH(e){return e==="x"?"y":"x"}function FH(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=i===void 0?!0:i,s=r.altAxis,u=s===void 0?!1:s,c=r.boundary,f=r.rootBoundary,d=r.altBoundary,g=r.padding,h=r.tether,b=h===void 0?!0:h,v=r.tetherOffset,S=v===void 0?0:v,y=bc(t,{boundary:c,rootBoundary:f,padding:g,altBoundary:d}),E=_o(t.placement),x=Fl(t.placement),T=!x,A=fS(E),R=LH(A),$=t.modifiersData.popperOffsets,O=t.rects.reference,I=t.rects.popper,L=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,F=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),q=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if($){if(o){var B,N=A==="y"?In:Pn,j=A==="y"?Oi:Ti,H=A==="y"?"height":"width",X=$[A],M=X+y[N],Q=X-y[j],W=b?-I[H]/2:0,D=x===Ml?O[H]:I[H],P=x===Ml?-I[H]:-O[H],G=t.elements.arrow,Z=b&&G?cS(G):{width:0,height:0},te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:AP(),K=te[N],be=te[j],ae=Ju(0,O[H],Z[H]),Se=T?O[H]/2-W-ae-K-F.mainAxis:D-ae-K-F.mainAxis,he=T?-O[H]/2+W+ae+be+F.mainAxis:P+ae+be+F.mainAxis,Ee=t.elements.arrow&&Uc(t.elements.arrow),we=Ee?A==="y"?Ee.clientTop||0:Ee.clientLeft||0:0,Te=(B=q?.[A])!=null?B:0,Ce=X+Se-Te-we,_e=X+he-Te,$e=Ju(b?Cp(M,Ce):M,X,b?ms(Q,_e):Q);$[A]=$e,z[A]=$e-X}if(u){var ke,Ge=A==="x"?In:Pn,Qe=A==="x"?Oi:Ti,je=$[R],ze=R==="y"?"height":"width",Ye=je+y[Ge],Ue=je-y[Qe],Re=[In,Pn].indexOf(E)!==-1,Xe=(ke=q?.[R])!=null?ke:0,ct=Re?Ye:je-O[ze]-I[ze]-Xe+F.altAxis,Pt=Re?je+O[ze]+I[ze]-Xe-F.altAxis:Ue,ht=b&&Re?sH(ct,je,Pt):Ju(b?ct:Ye,je,b?Pt:Ue);$[R]=ht,z[R]=ht-je}t.modifiersData[n]=z}}const NH={name:"preventOverflow",enabled:!0,phase:"main",fn:FH,requiresIfExists:["offset"]};function jH(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function zH(e){return e===ti(e)||!_i(e)?dS(e):jH(e)}function BH(e){var t=e.getBoundingClientRect(),r=Dl(t.width)/e.offsetWidth||1,n=Dl(t.height)/e.offsetHeight||1;return r!==1||n!==1}function VH(e,t,r){r===void 0&&(r=!1);var n=_i(t),i=_i(t)&&BH(t),o=Ua(t),s=Ll(e,i,r),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((Oo(t)!=="body"||hS(o))&&(u=zH(t)),_i(t)?(c=Ll(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=pS(o))),{x:s.left+u.scrollLeft-c.x,y:s.top+u.scrollTop-c.y,width:s.width,height:s.height}}function UH(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function i(o){r.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(u){if(!r.has(u)){var c=t.get(u);c&&i(c)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||i(o)}),n}function HH(e){var t=UH(e);return rH.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function WH(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function qH(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var zT={placement:"bottom",modifiers:[],strategy:"absolute"};function BT(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function GH(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,o=i===void 0?zT:i;return function(u,c,f){f===void 0&&(f=o);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},zT,o),modifiersData:{},elements:{reference:u,popper:c},attributes:{},styles:{}},g=[],h=!1,b={state:d,setOptions:function(E){var x=typeof E=="function"?E(d.options):E;S(),d.options=Object.assign({},o,d.options,x),d.scrollParents={reference:Cs(u)?Qu(u):u.contextElement?Qu(u.contextElement):[],popper:Qu(c)};var T=HH(qH([].concat(n,d.options.modifiers)));return d.orderedModifiers=T.filter(function(A){return A.enabled}),v(),b.update()},forceUpdate:function(){if(!h){var E=d.elements,x=E.reference,T=E.popper;if(BT(x,T)){d.rects={reference:VH(x,Uc(T),d.options.strategy==="fixed"),popper:cS(T)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(F){return d.modifiersData[F.name]=Object.assign({},F.data)});for(var A=0;A<d.orderedModifiers.length;A++){if(d.reset===!0){d.reset=!1,A=-1;continue}var R=d.orderedModifiers[A],$=R.fn,O=R.options,I=O===void 0?{}:O,L=R.name;typeof $=="function"&&(d=$({state:d,options:I,name:L,instance:b})||d)}}}},update:WH(function(){return new Promise(function(y){b.forceUpdate(),y(d)})}),destroy:function(){S(),h=!0}};if(!BT(u,c))return b;b.setOptions(f).then(function(y){!h&&f.onFirstUpdate&&f.onFirstUpdate(y)});function v(){d.orderedModifiers.forEach(function(y){var E=y.name,x=y.options,T=x===void 0?{}:x,A=y.effect;if(typeof A=="function"){var R=A({state:d,name:E,instance:b,options:T}),$=function(){};g.push(R||$)}})}function S(){g.forEach(function(y){return y()}),g=[]}return b}}var XH=[mH,DH,gH,_P,kH,TH,NH,fH,$H],KH=GH({defaultModifiers:XH}),YH="tippy-box",MP="tippy-content",JH="tippy-backdrop",DP="tippy-arrow",LP="tippy-svg-arrow",ss={passive:!0,capture:!0},FP=function(){return document.body};function $0(e,t,r){if(Array.isArray(e)){var n=e[t];return n??(Array.isArray(r)?r[t]:r)}return e}function gS(e,t){var r={}.toString.call(e);return r.indexOf("[object")===0&&r.indexOf(t+"]")>-1}function NP(e,t){return typeof e=="function"?e.apply(void 0,t):e}function VT(e,t){if(t===0)return e;var r;return function(n){clearTimeout(r),r=setTimeout(function(){e(n)},t)}}function QH(e){return e.split(/\s+/).filter(Boolean)}function vl(e){return[].concat(e)}function UT(e,t){e.indexOf(t)===-1&&e.push(t)}function ZH(e){return e.filter(function(t,r){return e.indexOf(t)===r})}function eW(e){return e.split("-")[0]}function Rp(e){return[].slice.call(e)}function HT(e){return Object.keys(e).reduce(function(t,r){return e[r]!==void 0&&(t[r]=e[r]),t},{})}function Zu(){return document.createElement("div")}function lh(e){return["Element","Fragment"].some(function(t){return gS(e,t)})}function tW(e){return gS(e,"NodeList")}function rW(e){return gS(e,"MouseEvent")}function nW(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function iW(e){return lh(e)?[e]:tW(e)?Rp(e):Array.isArray(e)?e:Rp(document.querySelectorAll(e))}function I0(e,t){e.forEach(function(r){r&&(r.style.transitionDuration=t+"ms")})}function WT(e,t){e.forEach(function(r){r&&r.setAttribute("data-state",t)})}function oW(e){var t,r=vl(e),n=r[0];return n!=null&&(t=n.ownerDocument)!=null&&t.body?n.ownerDocument:document}function aW(e,t){var r=t.clientX,n=t.clientY;return e.every(function(i){var o=i.popperRect,s=i.popperState,u=i.props,c=u.interactiveBorder,f=eW(s.placement),d=s.modifiersData.offset;if(!d)return!0;var g=f==="bottom"?d.top.y:0,h=f==="top"?d.bottom.y:0,b=f==="right"?d.left.x:0,v=f==="left"?d.right.x:0,S=o.top-n+g>c,y=n-o.bottom-h>c,E=o.left-r+b>c,x=r-o.right-v>c;return S||y||E||x})}function P0(e,t,r){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[n](i,r)})}function qT(e,t){for(var r=t;r;){var n;if(e.contains(r))return!0;r=r.getRootNode==null||(n=r.getRootNode())==null?void 0:n.host}return!1}var xo={isTouch:!1},GT=0;function sW(){xo.isTouch||(xo.isTouch=!0,window.performance&&document.addEventListener("mousemove",jP))}function jP(){var e=performance.now();e-GT<20&&(xo.isTouch=!1,document.removeEventListener("mousemove",jP)),GT=e}function lW(){var e=document.activeElement;if(nW(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function uW(){document.addEventListener("touchstart",sW,ss),window.addEventListener("blur",lW)}var cW=typeof window<"u"&&typeof document<"u",fW=cW?!!window.msCrypto:!1,dW={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},pW={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Zi=Object.assign({appendTo:FP,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},dW,pW),hW=Object.keys(Zi),gW=function(t){var r=Object.keys(t);r.forEach(function(n){Zi[n]=t[n]})};function zP(e){var t=e.plugins||[],r=t.reduce(function(n,i){var o=i.name,s=i.defaultValue;if(o){var u;n[o]=e[o]!==void 0?e[o]:(u=Zi[o])!=null?u:s}return n},{});return Object.assign({},e,r)}function vW(e,t){var r=t?Object.keys(zP(Object.assign({},Zi,{plugins:t}))):hW,n=r.reduce(function(i,o){var s=(e.getAttribute("data-tippy-"+o)||"").trim();if(!s)return i;if(o==="content")i[o]=s;else try{i[o]=JSON.parse(s)}catch{i[o]=s}return i},{});return n}function XT(e,t){var r=Object.assign({},t,{content:NP(t.content,[e])},t.ignoreAttributes?{}:vW(e,t.plugins));return r.aria=Object.assign({},Zi.aria,r.aria),r.aria={expanded:r.aria.expanded==="auto"?t.interactive:r.aria.expanded,content:r.aria.content==="auto"?t.interactive?null:"describedby":r.aria.content},r}var mW=function(){return"innerHTML"};function db(e,t){e[mW()]=t}function KT(e){var t=Zu();return e===!0?t.className=DP:(t.className=LP,lh(e)?t.appendChild(e):db(t,e)),t}function YT(e,t){lh(t.content)?(db(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?db(e,t.content):e.textContent=t.content)}function pb(e){var t=e.firstElementChild,r=Rp(t.children);return{box:t,content:r.find(function(n){return n.classList.contains(MP)}),arrow:r.find(function(n){return n.classList.contains(DP)||n.classList.contains(LP)}),backdrop:r.find(function(n){return n.classList.contains(JH)})}}function BP(e){var t=Zu(),r=Zu();r.className=YH,r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=Zu();n.className=MP,n.setAttribute("data-state","hidden"),YT(n,e.props),t.appendChild(r),r.appendChild(n),i(e.props,e.props);function i(o,s){var u=pb(t),c=u.box,f=u.content,d=u.arrow;s.theme?c.setAttribute("data-theme",s.theme):c.removeAttribute("data-theme"),typeof s.animation=="string"?c.setAttribute("data-animation",s.animation):c.removeAttribute("data-animation"),s.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?c.setAttribute("role",s.role):c.removeAttribute("role"),(o.content!==s.content||o.allowHTML!==s.allowHTML)&&YT(f,e.props),s.arrow?d?o.arrow!==s.arrow&&(c.removeChild(d),c.appendChild(KT(s.arrow))):c.appendChild(KT(s.arrow)):d&&c.removeChild(d)}return{popper:t,onUpdate:i}}BP.$$tippy=!0;var yW=1,xd=[],k0=[];function bW(e,t){var r=XT(e,Object.assign({},Zi,zP(HT(t)))),n,i,o,s=!1,u=!1,c=!1,f=!1,d,g,h,b=[],v=VT(Ce,r.interactiveDebounce),S,y=yW++,E=null,x=ZH(r.plugins),T={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},A={id:y,reference:e,popper:Zu(),popperInstance:E,props:r,state:T,plugins:x,clearDelayTimeouts:ct,setProps:Pt,setContent:ht,show:Ft,hide:It,hideWithInteractivity:ne,enable:Re,disable:Xe,unmount:se,destroy:pe};if(!r.render)return A;var R=r.render(A),$=R.popper,O=R.onUpdate;$.setAttribute("data-tippy-root",""),$.id="tippy-"+A.id,A.popper=$,e._tippy=A,$._tippy=A;var I=x.map(function(Y){return Y.fn(A)}),L=e.hasAttribute("aria-expanded");return Ee(),W(),X(),M("onCreate",[A]),r.showOnCreate&&Ye(),$.addEventListener("mouseenter",function(){A.props.interactive&&A.state.isVisible&&A.clearDelayTimeouts()}),$.addEventListener("mouseleave",function(){A.props.interactive&&A.props.trigger.indexOf("mouseenter")>=0&&N().addEventListener("mousemove",v)}),A;function F(){var Y=A.props.touch;return Array.isArray(Y)?Y:[Y,0]}function q(){return F()[0]==="hold"}function z(){var Y;return!!((Y=A.props.render)!=null&&Y.$$tippy)}function B(){return S||e}function N(){var Y=B().parentNode;return Y?oW(Y):document}function j(){return pb($)}function H(Y){return A.state.isMounted&&!A.state.isVisible||xo.isTouch||d&&d.type==="focus"?0:$0(A.props.delay,Y?0:1,Zi.delay)}function X(Y){Y===void 0&&(Y=!1),$.style.pointerEvents=A.props.interactive&&!Y?"":"none",$.style.zIndex=""+A.props.zIndex}function M(Y,V,ee){if(ee===void 0&&(ee=!0),I.forEach(function(le){le[Y]&&le[Y].apply(le,V)}),ee){var Oe;(Oe=A.props)[Y].apply(Oe,V)}}function Q(){var Y=A.props.aria;if(Y.content){var V="aria-"+Y.content,ee=$.id,Oe=vl(A.props.triggerTarget||e);Oe.forEach(function(le){var fe=le.getAttribute(V);if(A.state.isVisible)le.setAttribute(V,fe?fe+" "+ee:ee);else{var ve=fe&&fe.replace(ee,"").trim();ve?le.setAttribute(V,ve):le.removeAttribute(V)}})}}function W(){if(!(L||!A.props.aria.expanded)){var Y=vl(A.props.triggerTarget||e);Y.forEach(function(V){A.props.interactive?V.setAttribute("aria-expanded",A.state.isVisible&&V===B()?"true":"false"):V.removeAttribute("aria-expanded")})}}function D(){N().removeEventListener("mousemove",v),xd=xd.filter(function(Y){return Y!==v})}function P(Y){if(!(xo.isTouch&&(c||Y.type==="mousedown"))){var V=Y.composedPath&&Y.composedPath()[0]||Y.target;if(!(A.props.interactive&&qT($,V))){if(vl(A.props.triggerTarget||e).some(function(ee){return qT(ee,V)})){if(xo.isTouch||A.state.isVisible&&A.props.trigger.indexOf("click")>=0)return}else M("onClickOutside",[A,Y]);A.props.hideOnClick===!0&&(A.clearDelayTimeouts(),A.hide(),u=!0,setTimeout(function(){u=!1}),A.state.isMounted||K())}}}function G(){c=!0}function Z(){c=!1}function te(){var Y=N();Y.addEventListener("mousedown",P,!0),Y.addEventListener("touchend",P,ss),Y.addEventListener("touchstart",Z,ss),Y.addEventListener("touchmove",G,ss)}function K(){var Y=N();Y.removeEventListener("mousedown",P,!0),Y.removeEventListener("touchend",P,ss),Y.removeEventListener("touchstart",Z,ss),Y.removeEventListener("touchmove",G,ss)}function be(Y,V){Se(Y,function(){!A.state.isVisible&&$.parentNode&&$.parentNode.contains($)&&V()})}function ae(Y,V){Se(Y,V)}function Se(Y,V){var ee=j().box;function Oe(le){le.target===ee&&(P0(ee,"remove",Oe),V())}if(Y===0)return V();P0(ee,"remove",g),P0(ee,"add",Oe),g=Oe}function he(Y,V,ee){ee===void 0&&(ee=!1);var Oe=vl(A.props.triggerTarget||e);Oe.forEach(function(le){le.addEventListener(Y,V,ee),b.push({node:le,eventType:Y,handler:V,options:ee})})}function Ee(){q()&&(he("touchstart",Te,{passive:!0}),he("touchend",_e,{passive:!0})),QH(A.props.trigger).forEach(function(Y){if(Y!=="manual")switch(he(Y,Te),Y){case"mouseenter":he("mouseleave",_e);break;case"focus":he(fW?"focusout":"blur",$e);break;case"focusin":he("focusout",$e);break}})}function we(){b.forEach(function(Y){var V=Y.node,ee=Y.eventType,Oe=Y.handler,le=Y.options;V.removeEventListener(ee,Oe,le)}),b=[]}function Te(Y){var V,ee=!1;if(!(!A.state.isEnabled||ke(Y)||u)){var Oe=((V=d)==null?void 0:V.type)==="focus";d=Y,S=Y.currentTarget,W(),!A.state.isVisible&&rW(Y)&&xd.forEach(function(le){return le(Y)}),Y.type==="click"&&(A.props.trigger.indexOf("mouseenter")<0||s)&&A.props.hideOnClick!==!1&&A.state.isVisible?ee=!0:Ye(Y),Y.type==="click"&&(s=!ee),ee&&!Oe&&Ue(Y)}}function Ce(Y){var V=Y.target,ee=B().contains(V)||$.contains(V);if(!(Y.type==="mousemove"&&ee)){var Oe=ze().concat($).map(function(le){var fe,ve=le._tippy,Ie=(fe=ve.popperInstance)==null?void 0:fe.state;return Ie?{popperRect:le.getBoundingClientRect(),popperState:Ie,props:r}:null}).filter(Boolean);aW(Oe,Y)&&(D(),Ue(Y))}}function _e(Y){var V=ke(Y)||A.props.trigger.indexOf("click")>=0&&s;if(!V){if(A.props.interactive){A.hideWithInteractivity(Y);return}Ue(Y)}}function $e(Y){A.props.trigger.indexOf("focusin")<0&&Y.target!==B()||A.props.interactive&&Y.relatedTarget&&$.contains(Y.relatedTarget)||Ue(Y)}function ke(Y){return xo.isTouch?q()!==Y.type.indexOf("touch")>=0:!1}function Ge(){Qe();var Y=A.props,V=Y.popperOptions,ee=Y.placement,Oe=Y.offset,le=Y.getReferenceClientRect,fe=Y.moveTransition,ve=z()?pb($).arrow:null,Ie=le?{getBoundingClientRect:le,contextElement:le.contextElement||B()}:e,De={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(et){var tt=et.state;if(z()){var Bt=j(),dt=Bt.box;["placement","reference-hidden","escaped"].forEach(function(gt){gt==="placement"?dt.setAttribute("data-placement",tt.placement):tt.attributes.popper["data-popper-"+gt]?dt.setAttribute("data-"+gt,""):dt.removeAttribute("data-"+gt)}),tt.attributes.popper={}}}},Be=[{name:"offset",options:{offset:Oe}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!fe}},De];z()&&ve&&Be.push({name:"arrow",options:{element:ve,padding:3}}),Be.push.apply(Be,V?.modifiers||[]),A.popperInstance=KH(Ie,$,Object.assign({},V,{placement:ee,onFirstUpdate:h,modifiers:Be}))}function Qe(){A.popperInstance&&(A.popperInstance.destroy(),A.popperInstance=null)}function je(){var Y=A.props.appendTo,V,ee=B();A.props.interactive&&Y===FP||Y==="parent"?V=ee.parentNode:V=NP(Y,[ee]),V.contains($)||V.appendChild($),A.state.isMounted=!0,Ge()}function ze(){return Rp($.querySelectorAll("[data-tippy-root]"))}function Ye(Y){A.clearDelayTimeouts(),Y&&M("onTrigger",[A,Y]),te();var V=H(!0),ee=F(),Oe=ee[0],le=ee[1];xo.isTouch&&Oe==="hold"&&le&&(V=le),V?n=setTimeout(function(){A.show()},V):A.show()}function Ue(Y){if(A.clearDelayTimeouts(),M("onUntrigger",[A,Y]),!A.state.isVisible){K();return}if(!(A.props.trigger.indexOf("mouseenter")>=0&&A.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(Y.type)>=0&&s)){var V=H(!1);V?i=setTimeout(function(){A.state.isVisible&&A.hide()},V):o=requestAnimationFrame(function(){A.hide()})}}function Re(){A.state.isEnabled=!0}function Xe(){A.hide(),A.state.isEnabled=!1}function ct(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(o)}function Pt(Y){if(!A.state.isDestroyed){M("onBeforeUpdate",[A,Y]),we();var V=A.props,ee=XT(e,Object.assign({},V,HT(Y),{ignoreAttributes:!0}));A.props=ee,Ee(),V.interactiveDebounce!==ee.interactiveDebounce&&(D(),v=VT(Ce,ee.interactiveDebounce)),V.triggerTarget&&!ee.triggerTarget?vl(V.triggerTarget).forEach(function(Oe){Oe.removeAttribute("aria-expanded")}):ee.triggerTarget&&e.removeAttribute("aria-expanded"),W(),X(),O&&O(V,ee),A.popperInstance&&(Ge(),ze().forEach(function(Oe){requestAnimationFrame(Oe._tippy.popperInstance.forceUpdate)})),M("onAfterUpdate",[A,Y])}}function ht(Y){A.setProps({content:Y})}function Ft(){var Y=A.state.isVisible,V=A.state.isDestroyed,ee=!A.state.isEnabled,Oe=xo.isTouch&&!A.props.touch,le=$0(A.props.duration,0,Zi.duration);if(!(Y||V||ee||Oe)&&!B().hasAttribute("disabled")&&(M("onShow",[A],!1),A.props.onShow(A)!==!1)){if(A.state.isVisible=!0,z()&&($.style.visibility="visible"),X(),te(),A.state.isMounted||($.style.transition="none"),z()){var fe=j(),ve=fe.box,Ie=fe.content;I0([ve,Ie],0)}h=function(){var Be;if(!(!A.state.isVisible||f)){if(f=!0,$.offsetHeight,$.style.transition=A.props.moveTransition,z()&&A.props.animation){var Ze=j(),et=Ze.box,tt=Ze.content;I0([et,tt],le),WT([et,tt],"visible")}Q(),W(),UT(k0,A),(Be=A.popperInstance)==null||Be.forceUpdate(),M("onMount",[A]),A.props.animation&&z()&&ae(le,function(){A.state.isShown=!0,M("onShown",[A])})}},je()}}function It(){var Y=!A.state.isVisible,V=A.state.isDestroyed,ee=!A.state.isEnabled,Oe=$0(A.props.duration,1,Zi.duration);if(!(Y||V||ee)&&(M("onHide",[A],!1),A.props.onHide(A)!==!1)){if(A.state.isVisible=!1,A.state.isShown=!1,f=!1,s=!1,z()&&($.style.visibility="hidden"),D(),K(),X(!0),z()){var le=j(),fe=le.box,ve=le.content;A.props.animation&&(I0([fe,ve],Oe),WT([fe,ve],"hidden"))}Q(),W(),A.props.animation?z()&&be(Oe,A.unmount):A.unmount()}}function ne(Y){N().addEventListener("mousemove",v),UT(xd,v),v(Y)}function se(){A.state.isVisible&&A.hide(),A.state.isMounted&&(Qe(),ze().forEach(function(Y){Y._tippy.unmount()}),$.parentNode&&$.parentNode.removeChild($),k0=k0.filter(function(Y){return Y!==A}),A.state.isMounted=!1,M("onHidden",[A]))}function pe(){A.state.isDestroyed||(A.clearDelayTimeouts(),A.unmount(),we(),delete e._tippy,A.state.isDestroyed=!0,M("onDestroy",[A]))}}function Hc(e,t){t===void 0&&(t={});var r=Zi.plugins.concat(t.plugins||[]);uW();var n=Object.assign({},t,{plugins:r}),i=iW(e),o=i.reduce(function(s,u){var c=u&&bW(u,n);return c&&s.push(c),s},[]);return lh(e)?o[0]:o}Hc.defaultProps=Zi;Hc.setDefaultProps=gW;Hc.currentInput=xo;Object.assign({},_P,{effect:function(t){var r=t.state,n={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(r.elements.popper.style,n.popper),r.styles=n,r.elements.arrow&&Object.assign(r.elements.arrow.style,n.arrow)}});Hc.setDefaultProps({render:BP});function VP(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var UP=typeof window<"u"&&typeof document<"u";function hb(e,t){e&&(typeof e=="function"&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function JT(){return UP&&document.createElement("div")}function SW(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}function HP(e,t){if(e===t)return!0;if(typeof e=="object"&&e!=null&&typeof t=="object"&&t!=null){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e)if(t.hasOwnProperty(r)){if(!HP(e[r],t[r]))return!1}else return!1;return!0}else return!1}function wW(e){var t=[];return e.forEach(function(r){t.find(function(n){return HP(r,n)})||t.push(r)}),t}function xW(e,t){var r,n;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:wW([].concat(((r=e.popperOptions)==null?void 0:r.modifiers)||[],((n=t.popperOptions)==null?void 0:n.modifiers)||[]))})})}var M0=UP?C.useLayoutEffect:C.useEffect;function EW(e){var t=C.useRef();return t.current||(t.current=typeof e=="function"?e():e),t.current}function QT(e,t,r){r.split(/\s+/).forEach(function(n){n&&e.classList[t](n)})}var CW={name:"className",defaultValue:"",fn:function(t){var r=t.popper.firstElementChild,n=function(){var u;return!!((u=t.props.render)!=null&&u.$$tippy)};function i(){t.props.className&&!n()||QT(r,"add",t.props.className)}function o(){n()&&QT(r,"remove",t.props.className)}return{onCreate:i,onBeforeUpdate:o,onAfterUpdate:i}}};function RW(e){function t(r){var n=r.children,i=r.content,o=r.visible,s=r.singleton,u=r.render,c=r.reference,f=r.disabled,d=f===void 0?!1:f,g=r.ignoreAttributes,h=g===void 0?!0:g;r.__source,r.__self;var b=VP(r,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"]),v=o!==void 0,S=s!==void 0,y=C.useState(!1),E=y[0],x=y[1],T=C.useState({}),A=T[0],R=T[1],$=C.useState(),O=$[0],I=$[1],L=EW(function(){return{container:JT(),renders:1}}),F=Object.assign({ignoreAttributes:h},b,{content:L.container});v&&(F.trigger="manual",F.hideOnClick=!1),S&&(d=!0);var q=F,z=F.plugins||[];u&&(q=Object.assign({},F,{plugins:S&&s.data!=null?[].concat(z,[{fn:function(){return{onTrigger:function(H,X){var M=s.data.children.find(function(Q){var W=Q.instance;return W.reference===X.currentTarget});H.state.$$activeSingletonInstance=M.instance,I(M.content)}}}}]):z,render:function(){return{popper:L.container}}}));var B=[c].concat(n?[n.type]:[]);return M0(function(){var N=c;c&&c.hasOwnProperty("current")&&(N=c.current);var j=e(N||L.ref||JT(),Object.assign({},q,{plugins:[CW].concat(F.plugins||[])}));return L.instance=j,d&&j.disable(),o&&j.show(),S&&s.hook({instance:j,content:i,props:q,setSingletonContent:I}),x(!0),function(){j.destroy(),s?.cleanup(j)}},B),M0(function(){var N;if(L.renders===1){L.renders++;return}var j=L.instance;j.setProps(xW(j.props,q)),(N=j.popperInstance)==null||N.forceUpdate(),d?j.disable():j.enable(),v&&(o?j.show():j.hide()),S&&s.hook({instance:j,content:i,props:q,setSingletonContent:I})}),M0(function(){var N;if(u){var j=L.instance;j.setProps({popperOptions:Object.assign({},j.props.popperOptions,{modifiers:[].concat((((N=j.props.popperOptions)==null?void 0:N.modifiers)||[]).filter(function(H){var X=H.name;return X!=="$$tippyReact"}),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(X){var M,Q=X.state,W=(M=Q.modifiersData)==null?void 0:M.hide;(A.placement!==Q.placement||A.referenceHidden!==W?.isReferenceHidden||A.escaped!==W?.hasPopperEscaped)&&R({placement:Q.placement,referenceHidden:W?.isReferenceHidden,escaped:W?.hasPopperEscaped}),Q.attributes.popper={}}}])})})}},[A.placement,A.referenceHidden,A.escaped].concat(B)),oe.createElement(oe.Fragment,null,n?C.cloneElement(n,{ref:function(j){L.ref=j,hb(n.ref,j)}}):null,E&&Vp.createPortal(u?u(SW(A),O,L.instance):i,L.container))}return t}var _W=(function(e,t){return C.forwardRef(function(n,i){var o=n.children,s=VP(n,["children"]);return oe.createElement(e,Object.assign({},t,s),o?C.cloneElement(o,{ref:function(c){hb(i,c),hb(o.ref,c)}}):null)})}),OW=_W(RW(Hc));const TW=C.forwardRef((e,t)=>{const r=oe.Children.count(e.children);try{const n=oe.Children.only(e.children),i=oe.isValidElement(n),o=H7.isForwardRef(n),s=i&&typeof n.type=="string";return o||s?oe.cloneElement(n,{ref:t}):oe.createElement("span",{ref:t},e.children)}catch{return r<1?null:oe.createElement("span",{ref:t},e.children)}});function AW(e){const{content:t,placement:r="auto",children:n,...i}=e;return oe.createElement(OW,{...i,placement:r,content:oe.createElement(SP,{fontWeight:"medium",variant:"paragraph",color:"neutral.c00"},t)},oe.createElement(TW,{children:n}))}const WP=xe.div`
936
+ position: relative;
937
+ flex: 1;
938
+ min-width: 150px;
939
+ `,qP=xe.div`
940
+ display: flex;
941
+ align-items: center;
942
+ height: 28px;
943
+ border: 1px solid ${({$focused:e})=>e?"#999":"#ccc"};
944
+ border-radius: 4px;
945
+ background-color: #fff;
946
+ overflow: hidden;
947
+ `,GP=xe.input`
948
+ flex: 1;
949
+ padding: 6px 10px;
950
+ border: none;
951
+ font-size: 12px;
952
+ font-family: monospace;
953
+ background-color: transparent;
954
+ color: #333;
955
+ min-width: 0;
956
+
957
+ &:focus {
958
+ outline: none;
959
+ }
960
+
961
+ &::placeholder {
962
+ color: #999;
963
+ }
964
+ `,XP="devtools-logger-recent-filters",$W=10,IW=15e3;function PW(){try{const e=localStorage.getItem(XP);if(e){const t=JSON.parse(e);if(Array.isArray(t))return t.filter(r=>typeof r=="string")}}catch{}return[]}function ZT(e){try{localStorage.setItem(XP,JSON.stringify(e))}catch{}}const kW=e=>{const[t,r]=C.useState(()=>PW()),n=C.useRef(""),i=C.useCallback(s=>{s.trim()&&r(u=>{const c=u.filter(d=>d!==s),f=[s,...c].slice(0,$W);return ZT(f),f})},[]),o=C.useCallback(s=>{r(u=>{const c=u.filter(f=>f!==s);return ZT(c),c})},[]);return C.useEffect(()=>{const s=e.trim();if(!s||s===n.current)return;const u=setTimeout(()=>{i(s),n.current=s},IW);return()=>{clearTimeout(u)}},[e,i]),{recentFilters:t,addFilter:i,removeFilter:o}},MW=xe.div`
965
+ position: absolute;
966
+ top: 100%;
967
+ left: 0;
968
+ right: 0;
969
+ margin-top: 4px;
970
+ background-color: #fff;
971
+ border: 1px solid #ccc;
972
+ border-radius: 4px;
973
+ max-height: 300px;
974
+ overflow-y: auto;
975
+ z-index: 1000;
976
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
977
+ `,DW=xe.div`
978
+ padding: 6px 10px;
979
+ font-size: 10px;
980
+ color: #666;
981
+ text-transform: uppercase;
982
+ border-bottom: 1px solid #eee;
983
+ `,LW=xe.div`
984
+ display: flex;
985
+ align-items: center;
986
+ justify-content: space-between;
987
+ padding: 8px 10px;
988
+ font-size: 12px;
989
+ font-family: monospace;
990
+ color: #333;
991
+ cursor: pointer;
992
+ background-color: ${({$highlighted:e})=>e?"#e8f0fe":"transparent"};
993
+
994
+ &:hover {
995
+ background-color: ${({$highlighted:e})=>e?"#e8f0fe":"#f5f5f5"};
996
+ }
997
+ `,FW=xe.span`
998
+ flex: 1;
999
+ overflow: hidden;
1000
+ text-overflow: ellipsis;
1001
+ white-space: nowrap;
1002
+ `,NW=xe.button`
1003
+ background: none;
1004
+ border: none;
1005
+ padding: 2px;
1006
+ margin-left: 8px;
1007
+ cursor: pointer;
1008
+ opacity: 0.5;
1009
+ color: #666;
1010
+ display: flex;
1011
+ align-items: center;
1012
+
1013
+ &:hover {
1014
+ opacity: 1;
1015
+ }
1016
+ `,jW=xe.div`
1017
+ padding: 12px 10px;
1018
+ font-size: 12px;
1019
+ color: #999;
1020
+ text-align: center;
1021
+ `,zW=xe.button`
1022
+ background: none;
1023
+ border: none;
1024
+ padding: 4px 8px;
1025
+ cursor: pointer;
1026
+ display: flex;
1027
+ align-items: center;
1028
+ color: ${({$active:e})=>e?"#333":"#999"};
1029
+
1030
+ &:hover {
1031
+ color: #333;
1032
+ }
1033
+ `,BW=xe.button`
1034
+ background: none;
1035
+ border: none;
1036
+ padding: 4px;
1037
+ cursor: pointer;
1038
+ opacity: 0.5;
1039
+ color: #666;
1040
+ display: flex;
1041
+ align-items: center;
1042
+ justify-content: center;
1043
+
1044
+ &:hover {
1045
+ opacity: 1;
1046
+ }
1047
+ `,VW=({value:e,onChange:t})=>{const[r,n]=C.useState(!1),[i,o]=C.useState(!1),[s,u]=C.useState(-1),{recentFilters:c,removeFilter:f}=kW(e),d=C.useRef(null),g=C.useRef(null);C.useEffect(()=>{const T=A=>{d.current&&!d.current.contains(A.target)&&n(!1)};return document.addEventListener("mousedown",T),()=>{document.removeEventListener("mousedown",T)}},[]);const h=C.useCallback(()=>{o(!0)},[]),b=C.useCallback(()=>{n(T=>(T||u(-1),!T))},[]),v=C.useCallback(()=>{o(!1)},[]),S=C.useCallback(T=>{t(T),n(!1),u(-1),g.current?.focus()},[t]),y=C.useCallback(T=>{T.key==="Escape"?r?(n(!1),u(-1)):g.current?.blur():T.key==="ArrowDown"?(T.preventDefault(),r&&c.length>0&&u(A=>A<c.length-1?A+1:A)):T.key==="ArrowUp"?(T.preventDefault(),r&&u(A=>A>-1?A-1:-1)):T.key==="Enter"&&r&&s>=0&&c[s]&&(T.preventDefault(),S(c[s]))},[r,c,s,S]),E=C.useCallback((T,A)=>{T.stopPropagation(),f(A)},[f]),x=C.useCallback(()=>{t(""),g.current?.focus()},[t]);return U.jsxs(WP,{ref:d,children:[U.jsxs(qP,{$focused:i,children:[U.jsx(GP,{ref:g,type:"text",placeholder:"Filter (e.g. error, -debug, /regex/)",value:e,onChange:T=>t(T.target.value),onFocus:h,onBlur:v,onKeyDown:y}),e&&U.jsx(BW,{onClick:x,title:"Clear filter",children:U.jsx(ub,{size:"XS"})}),U.jsx(zW,{type:"button",onClick:b,$active:r,title:"Recent filters",children:U.jsx(np,{size:"XS"})})]}),r&&U.jsxs(MW,{children:[U.jsx(DW,{children:"Recent filters"}),c.length===0?U.jsx(jW,{children:"No recent filters"}):c.map((T,A)=>U.jsxs(LW,{$highlighted:A===s,onClick:()=>S(T),children:[U.jsx(FW,{children:T}),U.jsx(NW,{onClick:R=>E(R,T),title:"Remove from recent",children:U.jsx(ub,{size:"XS"})})]},T))]})]})};var D0={exports:{}};/*!
1048
+ Copyright (c) 2018 Jed Watson.
1049
+ Licensed under the MIT License (MIT), see
1050
+ http://jedwatson.github.io/classnames
1051
+ */var eA;function UW(){return eA||(eA=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var o="",s=0;s<arguments.length;s++){var u=arguments[s];u&&(o=i(o,n(u)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var u in o)t.call(o,u)&&o[u]&&(s=i(s,u));return s}function i(o,s){return s?o?o+" "+s:o+s:o}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(D0)),D0.exports}var HW=UW();const Ct=Mr(HW);var WW=Symbol.for("react.element"),qW=Symbol.for("react.transitional.element"),GW=Symbol.for("react.fragment");function KP(e){return e&&pt(e)==="object"&&(e.$$typeof===WW||e.$$typeof===qW)&&e.type===GW}function Nl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return oe.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(Nl(n)):KP(n)&&n.props?r=r.concat(Nl(n.props.children,t)):r.push(n))}),r}var gb={},XW=function(t){};function KW(e,t){}function YW(e,t){}function JW(){gb={}}function YP(e,t,r){!t&&!gb[r]&&(e(!1,r),gb[r]=!0)}function Qn(e,t){YP(KW,e,t)}function QW(e,t){YP(YW,e,t)}Qn.preMessage=XW;Qn.resetWarned=JW;Qn.noteOnce=QW;function Sc(e){return e instanceof HTMLElement||e instanceof SVGElement}function ZW(e){return e&&pt(e)==="object"&&Sc(e.nativeElement)?e.nativeElement:Sc(e)?e:null}function op(e){var t=ZW(e);if(t)return t;if(e instanceof oe.Component){var r;return(r=tC.findDOMNode)===null||r===void 0?void 0:r.call(tC,e)}return null}function vS(e,t,r){var n=C.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var eq=Number(C.version.split(".")[0]),mS=function(t,r){typeof t=="function"?t(r):pt(t)==="object"&&t&&"current"in t&&(t.current=r)},uh=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.filter(Boolean);return i.length<=1?i[0]:function(o){r.forEach(function(s){mS(s,o)})}},yS=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return vS(function(){return uh.apply(void 0,r)},r,function(i,o){return i.length!==o.length||i.every(function(s,u){return s!==o[u]})})},ch=function(t){var r,n;if(!t)return!1;if(JP(t)&&eq>=19)return!0;var i=Gu.isMemo(t)?t.type.type:t.type;return!(typeof i=="function"&&!((r=i.prototype)!==null&&r!==void 0&&r.render)&&i.$$typeof!==Gu.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==Gu.ForwardRef)};function JP(e){return C.isValidElement(e)&&!KP(e)}var bS=function(t){if(t&&JP(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null},vb=C.createContext(null);function tq(e){var t=e.children,r=e.onBatchResize,n=C.useRef(0),i=C.useRef([]),o=C.useContext(vb),s=C.useCallback(function(u,c,f){n.current+=1;var d=n.current;i.current.push({size:u,element:c,data:f}),Promise.resolve().then(function(){d===n.current&&(r?.(i.current),i.current=[])}),o?.(u,c,f)},[r,o]);return C.createElement(vb.Provider,{value:s},t)}var QP=(function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(i,o){return i[0]===r?(n=o,!0):!1}),n}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(r,n){var i=e(this.__entries__,r);~i?this.__entries__[i][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,i=e(n,r);~i&&n.splice(i,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var i=0,o=this.__entries__;i<o.length;i++){var s=o[i];r.call(n,s[1],s[0])}},t})()})(),mb=typeof window<"u"&&typeof document<"u"&&window.document===document,_p=(function(){return typeof self<"u"&&self.Math===Math||typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),rq=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(_p):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),nq=2;function iq(e,t){var r=!1,n=!1,i=0;function o(){r&&(r=!1,e()),n&&u()}function s(){rq(o)}function u(){var c=Date.now();if(r){if(c-i<nq)return;n=!0}else r=!0,n=!1,setTimeout(s,t);i=c}return u}var oq=20,aq=["top","right","bottom","left","width","height","size","weight"],sq=typeof MutationObserver<"u",lq=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=iq(this.refresh.bind(this),oq)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!mb||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),sq?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!mb||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,i=aq.some(function(o){return!!~n.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),ZP=(function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e}),jl=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||_p}),ek=fh(0,0,0,0);function Op(e){return parseFloat(e)||0}function tA(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,i){var o=e["border-"+i+"-width"];return n+Op(o)},0)}function uq(e){for(var t=["top","right","bottom","left"],r={},n=0,i=t;n<i.length;n++){var o=i[n],s=e["padding-"+o];r[o]=Op(s)}return r}function cq(e){var t=e.getBBox();return fh(0,0,t.width,t.height)}function fq(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return ek;var n=jl(e).getComputedStyle(e),i=uq(n),o=i.left+i.right,s=i.top+i.bottom,u=Op(n.width),c=Op(n.height);if(n.boxSizing==="border-box"&&(Math.round(u+o)!==t&&(u-=tA(n,"left","right")+o),Math.round(c+s)!==r&&(c-=tA(n,"top","bottom")+s)),!pq(e)){var f=Math.round(u+o)-t,d=Math.round(c+s)-r;Math.abs(f)!==1&&(u-=f),Math.abs(d)!==1&&(c-=d)}return fh(i.left,i.top,u,c)}var dq=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof jl(e).SVGGraphicsElement}:function(e){return e instanceof jl(e).SVGElement&&typeof e.getBBox=="function"}})();function pq(e){return e===jl(e).document.documentElement}function hq(e){return mb?dq(e)?cq(e):fq(e):ek}function gq(e){var t=e.x,r=e.y,n=e.width,i=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(o.prototype);return ZP(s,{x:t,y:r,width:n,height:i,top:r,right:t+n,bottom:i+r,left:t}),s}function fh(e,t,r,n){return{x:e,y:t,width:r,height:n}}var vq=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=fh(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=hq(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e})(),mq=(function(){function e(t,r){var n=gq(r);ZP(this,{target:t,contentRect:n})}return e})(),yq=(function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new QP,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof jl(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new vq(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof jl(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new mq(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),tk=typeof WeakMap<"u"?new WeakMap:new QP,rk=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=lq.getInstance(),n=new yq(t,r,this);tk.set(this,n)}return e})();["observe","unobserve","disconnect"].forEach(function(e){rk.prototype[e]=function(){var t;return(t=tk.get(this))[e].apply(t,arguments)}});var bq=(function(){return typeof _p.ResizeObserver<"u"?_p.ResizeObserver:rk})(),$a=new Map;function Sq(e){e.forEach(function(t){var r,n=t.target;(r=$a.get(n))===null||r===void 0||r.forEach(function(i){return i(n)})})}var nk=new bq(Sq);function wq(e,t){$a.has(e)||($a.set(e,new Set),nk.observe(e)),$a.get(e).add(t)}function xq(e,t){$a.has(e)&&($a.get(e).delete(t),$a.get(e).size||(nk.unobserve(e),$a.delete(e)))}var Eq=(function(e){As(r,e);var t=$s(r);function r(){return nn(this,r),t.apply(this,arguments)}return on(r,[{key:"render",value:function(){return this.props.children}}]),r})(C.Component);function Cq(e,t){var r=e.children,n=e.disabled,i=C.useRef(null),o=C.useRef(null),s=C.useContext(vb),u=typeof r=="function",c=u?r(i):r,f=C.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!u&&C.isValidElement(c)&&ch(c),g=d?bS(c):null,h=yS(g,i),b=function(){var E;return op(i.current)||(i.current&&pt(i.current)==="object"?op((E=i.current)===null||E===void 0?void 0:E.nativeElement):null)||op(o.current)};C.useImperativeHandle(t,function(){return b()});var v=C.useRef(e);v.current=e;var S=C.useCallback(function(y){var E=v.current,x=E.onResize,T=E.data,A=y.getBoundingClientRect(),R=A.width,$=A.height,O=y.offsetWidth,I=y.offsetHeight,L=Math.floor(R),F=Math.floor($);if(f.current.width!==L||f.current.height!==F||f.current.offsetWidth!==O||f.current.offsetHeight!==I){var q={width:L,height:F,offsetWidth:O,offsetHeight:I};f.current=q;var z=O===Math.round(R)?R:O,B=I===Math.round($)?$:I,N=me(me({},q),{},{offsetWidth:z,offsetHeight:B});s?.(N,y,T),x&&Promise.resolve().then(function(){x(N,y)})}},[]);return C.useEffect(function(){var y=b();return y&&!n&&wq(y,S),function(){return xq(y,S)}},[i.current,n]),C.createElement(Eq,{ref:o},d?C.cloneElement(c,{ref:h}):c)}var Rq=C.forwardRef(Cq),_q="rc-observer-key";function Oq(e,t){var r=e.children,n=typeof r=="function"?[r]:Nl(r);return n.map(function(i,o){var s=i?.key||"".concat(_q,"-").concat(o);return C.createElement(Rq,hr({},e,{key:s,ref:o===0?t:void 0}),i)})}var Wc=C.forwardRef(Oq);Wc.Collection=tq;function ik(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}var ok=function(t){return+setTimeout(t,16)},ak=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(ok=function(t){return window.requestAnimationFrame(t)},ak=function(t){return window.cancelAnimationFrame(t)});var rA=0,SS=new Map;function sk(e){SS.delete(e)}var wc=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;rA+=1;var n=rA;function i(o){if(o===0)sk(n),t();else{var s=ok(function(){i(o-1)});SS.set(n,s)}}return i(r),n};wc.cancel=function(e){var t=SS.get(e);return sk(e),ak(t)};function xc(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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)}function kn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Tq(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var nA="data-rc-order",iA="data-rc-priority",Aq="rc-util-key",yb=new Map;function lk(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Aq}function dh(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function $q(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function wS(e){return Array.from((yb.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function uk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!kn())return null;var r=t.csp,n=t.prepend,i=t.priority,o=i===void 0?0:i,s=$q(n),u=s==="prependQueue",c=document.createElement("style");c.setAttribute(nA,s),u&&o&&c.setAttribute(iA,"".concat(o)),r!=null&&r.nonce&&(c.nonce=r?.nonce),c.innerHTML=e;var f=dh(t),d=f.firstChild;if(n){if(u){var g=(t.styles||wS(f)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(nA)))return!1;var b=Number(h.getAttribute(iA)||0);return o>=b});if(g.length)return f.insertBefore(c,g[g.length-1].nextSibling),c}f.insertBefore(c,d)}else f.appendChild(c);return c}function ck(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=dh(t);return(t.styles||wS(r)).find(function(n){return n.getAttribute(lk(t))===e})}function Ec(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=ck(e,t);if(r){var n=dh(t);n.removeChild(r)}}function Iq(e,t){var r=yb.get(e);if(!r||!Tq(document,r)){var n=uk("",t),i=n.parentNode;yb.set(e,i),e.removeChild(n)}}function ra(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=dh(r),i=wS(n),o=me(me({},r),{},{styles:i});Iq(n,o);var s=ck(t,o);if(s){var u,c;if((u=o.csp)!==null&&u!==void 0&&u.nonce&&s.nonce!==((c=o.csp)===null||c===void 0?void 0:c.nonce)){var f;s.nonce=(f=o.csp)===null||f===void 0?void 0:f.nonce}return s.innerHTML!==e&&(s.innerHTML=e),s}var d=uk(e,o);return d.setAttribute(lk(o),t),d}function bb(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function i(o,s){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=n.has(o);if(Qn(!c,"Warning: There may be circular references"),c)return!1;if(o===s)return!0;if(r&&u>1)return!1;n.add(o);var f=u+1;if(Array.isArray(o)){if(!Array.isArray(s)||o.length!==s.length)return!1;for(var d=0;d<o.length;d++)if(!i(o[d],s[d],f))return!1;return!0}if(o&&s&&pt(o)==="object"&&pt(s)==="object"){var g=Object.keys(o);return g.length!==Object.keys(s).length?!1:g.every(function(h){return i(o[h],s[h],f)})}return!1}return i(e,t)}var Pq="%";function Sb(e){return e.join(Pq)}var kq=(function(){function e(t){nn(this,e),ue(this,"instanceId",void 0),ue(this,"cache",new Map),ue(this,"extracted",new Set),this.instanceId=t}return on(e,[{key:"get",value:function(r){return this.opGet(Sb(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(Sb(r),n)}},{key:"opUpdate",value:function(r,n){var i=this.cache.get(r),o=n(i);o===null?this.cache.delete(r):this.cache.set(r,o)}}]),e})(),zl="data-token-hash",to="data-css-hash",Ia="__cssinjs_instance__";function Mq(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(to,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(i){i[Ia]=i[Ia]||e,i[Ia]===e&&document.head.insertBefore(i,r)});var n={};Array.from(document.querySelectorAll("style[".concat(to,"]"))).forEach(function(i){var o=i.getAttribute(to);if(n[o]){if(i[Ia]===e){var s;(s=i.parentNode)===null||s===void 0||s.removeChild(i)}}else n[o]=!0})}return new kq(e)}var ph=C.createContext({hashPriority:"low",cache:Mq(),defaultCache:!0});function Dq(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var xS=(function(){function e(){nn(this,e),ue(this,"cache",void 0),ue(this,"keys",void 0),ue(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return on(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s={map:this.cache};return r.forEach(function(u){if(!s)s=void 0;else{var c;s=(c=s)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(u)}}),(n=s)!==null&&n!==void 0&&n.value&&o&&(s.value[1]=this.cacheCallTimes++),(i=s)===null||i===void 0?void 0:i.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var i=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(f,d){var g=Fe(f,2),h=g[1];return i.internalGet(d)[1]<h?[d,i.internalGet(d)[1]]:f},[this.keys[0],this.cacheCallTimes]),s=Fe(o,1),u=s[0];this.delete(u)}this.keys.push(r)}var c=this.cache;r.forEach(function(f,d){if(d===r.length-1)c.set(f,{value:[n,i.cacheCallTimes++]});else{var g=c.get(f);g?g.map||(g.map=new Map):c.set(f,{map:new Map}),c=c.get(f).map}})}},{key:"deleteByPath",value:function(r,n){var i=r.get(n[0]);if(n.length===1){var o;return i.map?r.set(n[0],{map:i.map}):r.delete(n[0]),(o=i.value)===null||o===void 0?void 0:o[0]}var s=this.deleteByPath(i.map,n.slice(1));return(!i.map||i.map.size===0)&&!i.value&&r.delete(n[0]),s}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!Dq(n,r)}),this.deleteByPath(this.cache,r)}}]),e})();ue(xS,"MAX_CACHE_SIZE",20);ue(xS,"MAX_CACHE_OFFSET",5);var oA=0,fk=(function(){function e(t){nn(this,e),ue(this,"derivatives",void 0),ue(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=oA,t.length===0&&(t.length>0,void 0),oA+=1}return on(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,i){return i(r,n)},void 0)}}]),e})(),L0=new xS;function wb(e){var t=Array.isArray(e)?e:[e];return L0.has(t)||L0.set(t,new fk(t)),L0.get(t)}var Lq=new WeakMap,F0={};function Fq(e,t){for(var r=Lq,n=0;n<t.length;n+=1){var i=t[n];r.has(i)||r.set(i,new WeakMap),r=r.get(i)}return r.has(F0)||r.set(F0,e()),r.get(F0)}var aA=new WeakMap;function ec(e){var t=aA.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof fk?t+=n.id:n&&pt(n)==="object"?t+=ec(n):t+=n}),t=xc(t),aA.set(e,t)),t}function sA(e,t){return xc("".concat(t,"_").concat(ec(e)))}var xb=kn();function zt(e){return typeof e=="number"?"".concat(e,"px"):e}function Tp(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var o=me(me({},n),{},ue(ue({},zl,t),to,r)),s=Object.keys(o).map(function(u){var c=o[u];return c?"".concat(u,'="').concat(c,'"'):null}).filter(function(u){return u}).join(" ");return"<style ".concat(s,">").concat(e,"</style>")}var ap=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Nq=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(i){var o=Fe(i,2),s=o[0],u=o[1];return"".concat(s,":").concat(u,";")}).join(""),"}"):""},dk=function(t,r,n){var i={},o={};return Object.entries(t).forEach(function(s){var u,c,f=Fe(s,2),d=f[0],g=f[1];if(n!=null&&(u=n.preserve)!==null&&u!==void 0&&u[d])o[d]=g;else if((typeof g=="string"||typeof g=="number")&&!(n!=null&&(c=n.ignore)!==null&&c!==void 0&&c[d])){var h,b=ap(d,n?.prefix);i[b]=typeof g=="number"&&!(n!=null&&(h=n.unitless)!==null&&h!==void 0&&h[d])?"".concat(g,"px"):String(g),o[d]="var(".concat(b,")")}}),[o,Nq(i,r,{scope:n?.scope})]},lA=kn()?C.useLayoutEffect:C.useEffect,lr=function(t,r){var n=C.useRef(!0);lA(function(){return t(n.current)},r),lA(function(){return n.current=!1,function(){n.current=!0}},[])},uA=function(t,r){lr(function(n){if(!n)return t()},r)},jq=me({},Bp),cA=jq.useInsertionEffect,zq=function(t,r,n){C.useMemo(t,n),lr(function(){return r(!0)},n)},Bq=cA?function(e,t,r){return cA(function(){return e(),t()},r)}:zq,Vq=me({},Bp),Uq=Vq.useInsertionEffect,Hq=function(t){var r=[],n=!1;function i(o){n||r.push(o)}return C.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(o){return o()})}},t),i},Wq=function(){return function(t){t()}},qq=typeof Uq<"u"?Hq:Wq;function ES(e,t,r,n,i){var o=C.useContext(ph),s=o.cache,u=[e].concat(at(t)),c=Sb(u),f=qq([c]),d=function(v){s.opUpdate(c,function(S){var y=S||[void 0,void 0],E=Fe(y,2),x=E[0],T=x===void 0?0:x,A=E[1],R=A,$=R||r(),O=[T,$];return v?v(O):O})};C.useMemo(function(){d()},[c]);var g=s.opGet(c),h=g[1];return Bq(function(){i?.(h)},function(b){return d(function(v){var S=Fe(v,2),y=S[0],E=S[1];return b&&y===0&&i?.(h),[y+1,E]}),function(){s.opUpdate(c,function(v){var S=v||[],y=Fe(S,2),E=y[0],x=E===void 0?0:E,T=y[1],A=x-1;return A===0?(f(function(){(b||!s.opGet(c))&&n?.(T,!1)}),null):[x-1,T]})}},[c]),h}var Gq={},Xq="css",ls=new Map;function Kq(e){ls.set(e,(ls.get(e)||0)+1)}function Yq(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(zl,'="').concat(e,'"]'));r.forEach(function(n){if(n[Ia]===t){var i;(i=n.parentNode)===null||i===void 0||i.removeChild(n)}})}}var Jq=0;function Qq(e,t){ls.set(e,(ls.get(e)||0)-1);var r=new Set;ls.forEach(function(n,i){n<=0&&r.add(i)}),ls.size-r.size>Jq&&r.forEach(function(n){Yq(n,t),ls.delete(n)})}var Zq=function(t,r,n,i){var o=n.getDerivativeToken(t),s=me(me({},o),r);return i&&(s=i(s)),s},pk="token";function eG(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=C.useContext(ph),i=n.cache.instanceId,o=n.container,s=r.salt,u=s===void 0?"":s,c=r.override,f=c===void 0?Gq:c,d=r.formatToken,g=r.getComputedToken,h=r.cssVar,b=Fq(function(){return Object.assign.apply(Object,[{}].concat(at(t)))},t),v=ec(b),S=ec(f),y=h?ec(h):"",E=ES(pk,[u,e.id,v,S,y],function(){var x,T=g?g(b,f,e):Zq(b,f,e,d),A=me({},T),R="";if(h){var $=dk(T,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),O=Fe($,2);T=O[0],R=O[1]}var I=sA(T,u);T._tokenKey=I,A._tokenKey=sA(A,u);var L=(x=h?.key)!==null&&x!==void 0?x:I;T._themeKey=L,Kq(L);var F="".concat(Xq,"-").concat(xc(I));return T._hashId=F,[T,F,A,R,h?.key||""]},function(x){Qq(x[0]._themeKey,i)},function(x){var T=Fe(x,4),A=T[0],R=T[3];if(h&&R){var $=ra(R,xc("css-variables-".concat(A._themeKey)),{mark:to,prepend:"queue",attachTo:o,priority:-999});$[Ia]=i,$.setAttribute(zl,A._themeKey)}});return E}var tG=function(t,r,n){var i=Fe(t,5),o=i[2],s=i[3],u=i[4],c=n||{},f=c.plain;if(!s)return null;var d=o._tokenKey,g=-999,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(g)},b=Tp(s,u,d,h,f);return[g,d,b]},hk="comm",gk="rule",vk="decl",rG="@import",nG="@keyframes",iG="@layer",mk=Math.abs,CS=String.fromCharCode;function yk(e){return e.trim()}function sp(e,t,r){return e.replace(t,r)}function oG(e,t,r){return e.indexOf(t,r)}function Cc(e,t){return e.charCodeAt(t)|0}function Bl(e,t,r){return e.slice(t,r)}function wo(e){return e.length}function aG(e){return e.length}function Ed(e,t){return t.push(e),e}var hh=1,Vl=1,bk=0,Ai=0,br=0,Jl="";function RS(e,t,r,n,i,o,s,u){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:hh,column:Vl,length:s,return:"",siblings:u}}function sG(){return br}function lG(){return br=Ai>0?Cc(Jl,--Ai):0,Vl--,br===10&&(Vl=1,hh--),br}function ro(){return br=Ai<bk?Cc(Jl,Ai++):0,Vl++,br===10&&(Vl=1,hh++),br}function Pa(){return Cc(Jl,Ai)}function lp(){return Ai}function gh(e,t){return Bl(Jl,e,t)}function Rc(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 uG(e){return hh=Vl=1,bk=wo(Jl=e),Ai=0,[]}function cG(e){return Jl="",e}function N0(e){return yk(gh(Ai-1,Eb(e===91?e+2:e===40?e+1:e)))}function fG(e){for(;(br=Pa())&&br<33;)ro();return Rc(e)>2||Rc(br)>3?"":" "}function dG(e,t){for(;--t&&ro()&&!(br<48||br>102||br>57&&br<65||br>70&&br<97););return gh(e,lp()+(t<6&&Pa()==32&&ro()==32))}function Eb(e){for(;ro();)switch(br){case e:return Ai;case 34:case 39:e!==34&&e!==39&&Eb(br);break;case 40:e===41&&Eb(e);break;case 92:ro();break}return Ai}function pG(e,t){for(;ro()&&e+br!==57;)if(e+br===84&&Pa()===47)break;return"/*"+gh(t,Ai-1)+"*"+CS(e===47?e:ro())}function hG(e){for(;!Rc(Pa());)ro();return gh(e,Ai)}function gG(e){return cG(up("",null,null,null,[""],e=uG(e),0,[0],e))}function up(e,t,r,n,i,o,s,u,c){for(var f=0,d=0,g=s,h=0,b=0,v=0,S=1,y=1,E=1,x=0,T="",A=i,R=o,$=n,O=T;y;)switch(v=x,x=ro()){case 40:if(v!=108&&Cc(O,g-1)==58){oG(O+=sp(N0(x),"&","&\f"),"&\f",mk(f?u[f-1]:0))!=-1&&(E=-1);break}case 34:case 39:case 91:O+=N0(x);break;case 9:case 10:case 13:case 32:O+=fG(v);break;case 92:O+=dG(lp()-1,7);continue;case 47:switch(Pa()){case 42:case 47:Ed(vG(pG(ro(),lp()),t,r,c),c),(Rc(v||1)==5||Rc(Pa()||1)==5)&&wo(O)&&Bl(O,-1,void 0)!==" "&&(O+=" ");break;default:O+="/"}break;case 123*S:u[f++]=wo(O)*E;case 125*S:case 59:case 0:switch(x){case 0:case 125:y=0;case 59+d:E==-1&&(O=sp(O,/\f/g,"")),b>0&&(wo(O)-g||S===0&&v===47)&&Ed(b>32?dA(O+";",n,r,g-1,c):dA(sp(O," ","")+";",n,r,g-2,c),c);break;case 59:O+=";";default:if(Ed($=fA(O,t,r,f,d,i,u,T,A=[],R=[],g,o),o),x===123)if(d===0)up(O,t,$,$,A,o,g,u,R);else switch(h===99&&Cc(O,3)===110?100:h){case 100:case 108:case 109:case 115:up(e,$,$,n&&Ed(fA(e,$,$,0,0,i,u,T,i,A=[],g,R),R),i,R,g,u,n?A:R);break;default:up(O,$,$,$,[""],R,0,u,R)}}f=d=b=0,S=E=1,T=O="",g=s;break;case 58:g=1+wo(O),b=v;default:if(S<1){if(x==123)--S;else if(x==125&&S++==0&&lG()==125)continue}switch(O+=CS(x),x*S){case 38:E=d>0?1:(O+="\f",-1);break;case 44:u[f++]=(wo(O)-1)*E,E=1;break;case 64:Pa()===45&&(O+=N0(ro())),h=Pa(),d=g=wo(T=O+=hG(lp())),x++;break;case 45:v===45&&wo(O)==2&&(S=0)}}return o}function fA(e,t,r,n,i,o,s,u,c,f,d,g){for(var h=i-1,b=i===0?o:[""],v=aG(b),S=0,y=0,E=0;S<n;++S)for(var x=0,T=Bl(e,h+1,h=mk(y=s[S])),A=e;x<v;++x)(A=yk(y>0?b[x]+" "+T:sp(T,/&\f/g,b[x])))&&(c[E++]=A);return RS(e,t,r,i===0?gk:u,c,f,d,g)}function vG(e,t,r,n){return RS(e,t,r,hk,CS(sG()),Bl(e,2,-2),0,n)}function dA(e,t,r,n,i){return RS(e,t,r,vk,Bl(e,0,n),Bl(e,n+1,-1),n,i)}function Cb(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function mG(e,t,r,n){switch(e.type){case iG:if(e.children.length)break;case rG:case vk:return e.return=e.return||e.value;case hk:return"";case nG:return e.return=e.value+"{"+Cb(e.children,n)+"}";case gk:if(!wo(e.value=e.props.join(",")))return""}return wo(r=Cb(e.children,n))?e.return=e.value+"{"+r+"}":""}var pA="data-ant-cssinjs-cache-path",Sk="_FILE_STYLE__",ys,wk=!0;function yG(){if(!ys&&(ys={},kn())){var e=document.createElement("div");e.className=pA,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(i){var o=i.split(":"),s=Fe(o,2),u=s[0],c=s[1];ys[u]=c});var r=document.querySelector("style[".concat(pA,"]"));if(r){var n;wk=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function bG(e){return yG(),!!ys[e]}function SG(e){var t=ys[e],r=null;if(t&&kn())if(wk)r=Sk;else{var n=document.querySelector("style[".concat(to,'="').concat(ys[e],'"]'));n?r=n.innerHTML:delete ys[e]}return[r,t]}var wG="_skip_check_",xk="_multi_value_";function cp(e){var t=Cb(gG(e),mG);return t.replace(/\{%%%\:[^;];}/g,";")}function xG(e){return pt(e)==="object"&&e&&(wG in e||xk in e)}function hA(e,t,r){if(!t)return e;var n=".".concat(t),i=r==="low"?":where(".concat(n,")"):n,o=e.split(",").map(function(s){var u,c=s.trim().split(/\s+/),f=c[0]||"",d=((u=f.match(/^\w+/))===null||u===void 0?void 0:u[0])||"";return f="".concat(d).concat(i).concat(f.slice(d.length)),[f].concat(at(c.slice(1))).join(" ")});return o.join(",")}var EG=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=n.root,o=n.injectHash,s=n.parentSelectors,u=r.hashId,c=r.layer;r.path;var f=r.hashPriority,d=r.transformers,g=d===void 0?[]:d;r.linters;var h="",b={};function v(E){var x=E.getName(u);if(!b[x]){var T=e(E.style,r,{root:!1,parentSelectors:s}),A=Fe(T,1),R=A[0];b[x]="@keyframes ".concat(E.getName(u)).concat(R)}}function S(E){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return E.forEach(function(T){Array.isArray(T)?S(T,x):T&&x.push(T)}),x}var y=S(Array.isArray(t)?t:[t]);return y.forEach(function(E){var x=typeof E=="string"&&!i?{}:E;if(typeof x=="string")h+="".concat(x,`
1052
+ `);else if(x._keyframe)v(x);else{var T=g.reduce(function(A,R){var $;return(R==null||($=R.visit)===null||$===void 0?void 0:$.call(R,A))||A},x);Object.keys(T).forEach(function(A){var R=T[A];if(pt(R)==="object"&&R&&(A!=="animationName"||!R._keyframe)&&!xG(R)){var $=!1,O=A.trim(),I=!1;(i||o)&&u?O.startsWith("@")?$=!0:O==="&"?O=hA("",u,f):O=hA(A,u,f):i&&!u&&(O==="&"||O==="")&&(O="",I=!0);var L=e(R,r,{root:I,injectHash:$,parentSelectors:[].concat(at(s),[O])}),F=Fe(L,2),q=F[0],z=F[1];b=me(me({},b),z),h+="".concat(O).concat(q)}else{let j=function(H,X){var M=H.replace(/[A-Z]/g,function(W){return"-".concat(W.toLowerCase())}),Q=X;!yI[H]&&typeof Q=="number"&&Q!==0&&(Q="".concat(Q,"px")),H==="animationName"&&X!==null&&X!==void 0&&X._keyframe&&(v(X),Q=X.getName(u)),h+="".concat(M,":").concat(Q,";")};var B,N=(B=R?.value)!==null&&B!==void 0?B:R;pt(R)==="object"&&R!==null&&R!==void 0&&R[xk]&&Array.isArray(N)?N.forEach(function(H){j(A,H)}):j(A,N)}})}}),i?c&&(h&&(h="@layer ".concat(c.name," {").concat(h,"}")),c.dependencies&&(b["@layer ".concat(c.name)]=c.dependencies.map(function(E){return"@layer ".concat(E,", ").concat(c.name,";")}).join(`
1053
+ `))):h="{".concat(h,"}"),[h,b]};function Ek(e,t){return xc("".concat(e.join("%")).concat(t))}function CG(){return null}var Ck="style";function Rb(e,t){var r=e.token,n=e.path,i=e.hashId,o=e.layer,s=e.nonce,u=e.clientOnly,c=e.order,f=c===void 0?0:c,d=C.useContext(ph),g=d.autoClear;d.mock;var h=d.defaultCache,b=d.hashPriority,v=d.container,S=d.ssrInline,y=d.transformers,E=d.linters,x=d.cache,T=d.layer,A=r._tokenKey,R=[A];T&&R.push("layer"),R.push.apply(R,at(n));var $=xb,O=ES(Ck,R,function(){var z=R.join("|");if(bG(z)){var B=SG(z),N=Fe(B,2),j=N[0],H=N[1];if(j)return[j,A,H,{},u,f]}var X=t(),M=EG(X,{hashId:i,hashPriority:b,layer:T?o:void 0,path:n.join("-"),transformers:y,linters:E}),Q=Fe(M,2),W=Q[0],D=Q[1],P=cp(W),G=Ek(R,P);return[P,A,G,D,u,f]},function(z,B){var N=Fe(z,3),j=N[2];(B||g)&&xb&&Ec(j,{mark:to,attachTo:v})},function(z){var B=Fe(z,4),N=B[0];B[1];var j=B[2],H=B[3];if($&&N!==Sk){var X={mark:to,prepend:T?!1:"queue",attachTo:v,priority:f},M=typeof s=="function"?s():s;M&&(X.csp={nonce:M});var Q=[],W=[];Object.keys(H).forEach(function(P){P.startsWith("@layer")?Q.push(P):W.push(P)}),Q.forEach(function(P){ra(cp(H[P]),"_layer-".concat(P),me(me({},X),{},{prepend:!0}))});var D=ra(N,j,X);D[Ia]=x.instanceId,D.setAttribute(zl,A),W.forEach(function(P){ra(cp(H[P]),"_effect-".concat(P),X)})}}),I=Fe(O,3),L=I[0],F=I[1],q=I[2];return function(z){var B;return!S||$||!h?B=C.createElement(CG,null):B=C.createElement("style",hr({},ue(ue({},zl,F),to,q),{dangerouslySetInnerHTML:{__html:L}})),C.createElement(C.Fragment,null,B,z)}}var RG=function(t,r,n){var i=Fe(t,6),o=i[0],s=i[1],u=i[2],c=i[3],f=i[4],d=i[5],g=n||{},h=g.plain;if(f)return null;var b=o,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return b=Tp(o,s,u,v,h),c&&Object.keys(c).forEach(function(S){if(!r[S]){r[S]=!0;var y=cp(c[S]),E=Tp(y,s,"_effect-".concat(S),v,h);S.startsWith("@layer")?b=E+b:b+=E}}),[d,u,b]},Rk="cssVar",_G=function(t,r){var n=t.key,i=t.prefix,o=t.unitless,s=t.ignore,u=t.token,c=t.scope,f=c===void 0?"":c,d=C.useContext(ph),g=d.cache.instanceId,h=d.container,b=u._tokenKey,v=[].concat(at(t.path),[n,f,b]),S=ES(Rk,v,function(){var y=r(),E=dk(y,n,{prefix:i,unitless:o,ignore:s,scope:f}),x=Fe(E,2),T=x[0],A=x[1],R=Ek(v,A);return[T,A,R,n]},function(y){var E=Fe(y,3),x=E[2];xb&&Ec(x,{mark:to,attachTo:h})},function(y){var E=Fe(y,3),x=E[1],T=E[2];if(x){var A=ra(x,T,{mark:to,prepend:"queue",attachTo:h,priority:-999});A[Ia]=g,A.setAttribute(zl,n)}});return S},OG=function(t,r,n){var i=Fe(t,4),o=i[1],s=i[2],u=i[3],c=n||{},f=c.plain;if(!o)return null;var d=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},h=Tp(o,u,s,g,f);return[d,s,h]};ue(ue(ue({},Ck,RG),pk,tG),Rk,OG);var Mi=(function(){function e(t,r){nn(this,e),ue(this,"name",void 0),ue(this,"style",void 0),ue(this,"_keyframe",!0),this.name=t,this.style=r}return on(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e})();function il(e){return e.notSplit=!0,e}il(["borderTop","borderBottom"]),il(["borderTop"]),il(["borderBottom"]),il(["borderLeft","borderRight"]),il(["borderLeft"]),il(["borderRight"]);var _S=C.createContext({});function TG(e){return wP(e)||EP(e)||S1(e)||xP()}function Co(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function _k(e,t,r,n){if(!t.length)return r;var i=TG(t),o=i[0],s=i.slice(1),u;return!e&&typeof o=="number"?u=[]:Array.isArray(e)?u=at(e):u=me({},e),n&&r===void 0&&s.length===1?delete u[o][s[0]]:u[o]=_k(u[o],s,r,n),u}function Ki(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!Co(e,t.slice(0,-1))?e:_k(e,t,r,n)}function AG(e){return pt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function gA(e){return Array.isArray(e)?[]:{}}var $G=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Sl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=gA(t[0]);return t.forEach(function(i){function o(s,u){var c=new Set(u),f=Co(i,s),d=Array.isArray(f);if(d||AG(f)){if(!c.has(f)){c.add(f);var g=Co(n,s);d?n=Ki(n,s,[]):(!g||pt(g)!=="object")&&(n=Ki(n,s,gA(f))),$G(f).forEach(function(h){o([].concat(at(s),[h]),c)})}}else n=Ki(n,s,f)}o([])}),n}function IG(){}const PG=C.createContext({}),Ok=()=>{const e=()=>{};return e.deprecated=IG,e},kG=C.createContext(void 0);var MG={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"},DG={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},LG=me(me({},DG),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",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 Tk={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},vA={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"]},LG),timePickerLocale:Object.assign({},Tk)},Vn="${label} is not a valid ${type}",Ul={locale:"en",Pagination:MG,DatePicker:vA,TimePicker:Tk,Calendar:vA,global:{placeholder:"Please select"},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:Vn,method:Vn,array:Vn,object:Vn,number:Vn,date:Vn,boolean:Vn,integer:Vn,float:Vn,regexp:Vn,email:Vn,url:Vn,hex:Vn},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"}};Object.assign({},Ul.Modal);let fp=[];const mA=()=>fp.reduce((e,t)=>Object.assign(Object.assign({},e),t),Ul.Modal);function FG(e){if(e){const t=Object.assign({},e);return fp.push(t),mA(),()=>{fp=fp.filter(r=>r!==t),mA()}}Object.assign({},Ul.Modal)}const OS=C.createContext(void 0),NG=(e,t)=>{const r=C.useContext(OS),n=C.useMemo(()=>{var o;const s=Ul[e],u=(o=r?.[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof s=="function"?s():s),u||{})},[e,t,r]),i=C.useMemo(()=>{const o=r?.locale;return r?.exist&&!o?Ul.locale:o},[r]);return[n,i]},jG="internalMark",zG=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;C.useEffect(()=>FG(t?.Modal),[t]);const i=C.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return C.createElement(OS.Provider,{value:i},r)},kr=Math.round;function j0(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)n[i]=t(n[i]||0,r[i]||"",i);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const yA=(e,t,r)=>r===0?e:e/100;function ku(e,t){const r=t||255;return e>r?r:e<0?0:e}class wl{constructor(t){ue(this,"isValid",!0),ue(this,"r",0),ue(this,"g",0),ue(this,"b",0),ue(this,"a",1),ue(this,"_h",void 0),ue(this,"_s",void 0),ue(this,"_l",void 0),ue(this,"_v",void 0),ue(this,"_max",void 0),ue(this,"_min",void 0),ue(this,"_brightness",void 0);function r(i){return i[0]in t&&i[1]in t&&i[2]in t}if(t)if(typeof t=="string"){let o=function(s){return i.startsWith(s)};var n=o;const i=t.trim();/^#?[A-F\d]{3,8}$/i.test(i)?this.fromHexString(i):o("rgb")?this.fromRgbString(i):o("hsl")?this.fromHslString(i):(o("hsv")||o("hsb"))&&this.fromHsvString(i)}else if(t instanceof wl)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(r("rgb"))this.r=ku(t.r),this.g=ku(t.g),this.b=ku(t.b),this.a=typeof t.a=="number"?ku(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("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 r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(o){const s=o/255;return s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)}const r=t(this.r),n=t(this.g),i=t(this.b);return .2126*r+.7152*n+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=kr(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 r=this.getHue(),n=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:r,s:n,l:i,a:this.a})}lighten(t=10){const r=this.getHue(),n=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:r,s:n,l:i,a:this.a})}mix(t,r=50){const n=this._c(t),i=r/100,o=u=>(n[u]-this[u])*i+this[u],s={r:kr(o("r")),g:kr(o("g")),b:kr(o("b")),a:kr(o("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 r=this._c(t),n=this.a+r.a*(1-this.a),i=o=>kr((this[o]*this.a+r[o]*r.a*(1-this.a))/n);return this._c({r:i("r"),g:i("g"),b:i("b"),a:n})}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 r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=kr(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=kr(this.getSaturation()*100),n=kr(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}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,r,n){const i=this.clone();return i[t]=ku(r,n),i}_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 r=t.replace("#","");function n(i,o){return parseInt(r[i]+r[o||i],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:i}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof i=="number"?i:1,r<=0){const h=kr(n*255);this.r=h,this.g=h,this.b=h}let o=0,s=0,u=0;const c=t/60,f=(1-Math.abs(2*n-1))*r,d=f*(1-Math.abs(c%2-1));c>=0&&c<1?(o=f,s=d):c>=1&&c<2?(o=d,s=f):c>=2&&c<3?(s=f,u=d):c>=3&&c<4?(s=d,u=f):c>=4&&c<5?(o=d,u=f):c>=5&&c<6&&(o=f,u=d);const g=n-f/2;this.r=kr((o+g)*255),this.g=kr((s+g)*255),this.b=kr((u+g)*255)}fromHsv({h:t,s:r,v:n,a:i}){this._h=t%360,this._s=r,this._v=n,this.a=typeof i=="number"?i:1;const o=kr(n*255);if(this.r=o,this.g=o,this.b=o,r<=0)return;const s=t/60,u=Math.floor(s),c=s-u,f=kr(n*(1-r)*255),d=kr(n*(1-r*c)*255),g=kr(n*(1-r*(1-c))*255);switch(u){case 0:this.g=g,this.b=f;break;case 1:this.r=d,this.b=f;break;case 2:this.r=f,this.b=g;break;case 3:this.r=f,this.g=d;break;case 4:this.r=g,this.g=f;break;case 5:default:this.g=f,this.b=d;break}}fromHsvString(t){const r=j0(t,yA);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=j0(t,yA);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=j0(t,(n,i)=>i.includes("%")?kr(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var Cd=2,bA=.16,BG=.05,VG=.05,UG=.15,Ak=5,$k=4,HG=[{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 SA(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Cd*t:Math.round(e.h)+Cd*t:n=r?Math.round(e.h)+Cd*t:Math.round(e.h)-Cd*t,n<0?n+=360:n>=360&&(n-=360),n}function wA(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-bA*t:t===$k?n=e.s+bA:n=e.s+BG*t,n>1&&(n=1),r&&t===Ak&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function xA(e,t,r){var n;return r?n=e.v+VG*t:n=e.v-UG*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function _c(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new wl(e),i=n.toHsv(),o=Ak;o>0;o-=1){var s=new wl({h:SA(i,o,!0),s:wA(i,o,!0),v:xA(i,o,!0)});r.push(s)}r.push(n);for(var u=1;u<=$k;u+=1){var c=new wl({h:SA(i,u),s:wA(i,u),v:xA(i,u)});r.push(c)}return t.theme==="dark"?HG.map(function(f){var d=f.index,g=f.amount;return new wl(t.backgroundColor||"#141414").mix(r[d],g).toHexString()}):r.map(function(f){return f.toHexString()})}var z0={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"},_b=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];_b.primary=_b[5];var Ob=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Ob.primary=Ob[5];var Tb=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Tb.primary=Tb[5];var Ap=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Ap.primary=Ap[5];var Ab=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Ab.primary=Ab[5];var $b=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];$b.primary=$b[5];var Ib=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Ib.primary=Ib[5];var Pb=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Pb.primary=Pb[5];var $p=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];$p.primary=$p[5];var kb=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];kb.primary=kb[5];var Mb=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Mb.primary=Mb[5];var Db=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Db.primary=Db[5];var Lb=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Lb.primary=Lb[5];var B0={red:_b,volcano:Ob,orange:Tb,gold:Ap,yellow:Ab,lime:$b,green:Ib,cyan:Pb,blue:$p,geekblue:kb,purple:Mb,magenta:Db,grey:Lb};const Ik={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"},Oc=Object.assign(Object.assign({},Ik),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
1054
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
1055
+ '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});function Br(e,t){WG(e)&&(e="100%");var r=qG(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Rd(e){return Math.min(1,Math.max(0,e))}function WG(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function qG(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Pk(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function _d(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ds(e){return e.length===1?"0"+e:String(e)}function GG(e,t,r){return{r:Br(e,255)*255,g:Br(t,255)*255,b:Br(r,255)*255}}function EA(e,t,r){e=Br(e,255),t=Br(t,255),r=Br(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o=0,s=0,u=(n+i)/2;if(n===i)s=0,o=0;else{var c=n-i;switch(s=u>.5?c/(2-n-i):c/(n+i),n){case e:o=(t-r)/c+(t<r?6:0);break;case t:o=(r-e)/c+2;break;case r:o=(e-t)/c+4;break}o/=6}return{h:o,s,l:u}}function V0(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function XG(e,t,r){var n,i,o;if(e=Br(e,360),t=Br(t,100),r=Br(r,100),t===0)i=r,o=r,n=r;else{var s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;n=V0(u,s,e+1/3),i=V0(u,s,e),o=V0(u,s,e-1/3)}return{r:n*255,g:i*255,b:o*255}}function CA(e,t,r){e=Br(e,255),t=Br(t,255),r=Br(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o=0,s=n,u=n-i,c=n===0?0:u/n;if(n===i)o=0;else{switch(n){case e:o=(t-r)/u+(t<r?6:0);break;case t:o=(r-e)/u+2;break;case r:o=(e-t)/u+4;break}o/=6}return{h:o,s:c,v:s}}function KG(e,t,r){e=Br(e,360)*6,t=Br(t,100),r=Br(r,100);var n=Math.floor(e),i=e-n,o=r*(1-t),s=r*(1-i*t),u=r*(1-(1-i)*t),c=n%6,f=[r,s,o,o,u,r][c],d=[u,r,r,s,o,o][c],g=[o,o,u,r,r,s][c];return{r:f*255,g:d*255,b:g*255}}function RA(e,t,r,n){var i=[ds(Math.round(e).toString(16)),ds(Math.round(t).toString(16)),ds(Math.round(r).toString(16))];return n&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function YG(e,t,r,n,i){var o=[ds(Math.round(e).toString(16)),ds(Math.round(t).toString(16)),ds(Math.round(r).toString(16)),ds(JG(n))];return i&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function JG(e){return Math.round(parseFloat(e)*255).toString(16)}function _A(e){return qn(e)/255}function qn(e){return parseInt(e,16)}function QG(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Fb={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function ZG(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,o=null,s=!1,u=!1;return typeof e=="string"&&(e=rX(e)),typeof e=="object"&&(Jo(e.r)&&Jo(e.g)&&Jo(e.b)?(t=GG(e.r,e.g,e.b),s=!0,u=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Jo(e.h)&&Jo(e.s)&&Jo(e.v)?(n=_d(e.s),i=_d(e.v),t=KG(e.h,n,i),s=!0,u="hsv"):Jo(e.h)&&Jo(e.s)&&Jo(e.l)&&(n=_d(e.s),o=_d(e.l),t=XG(e.h,n,o),s=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=Pk(r),{ok:s,format:e.format||u,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var eX="[-\\+]?\\d+%?",tX="[-\\+]?\\d*\\.\\d+%?",ka="(?:".concat(tX,")|(?:").concat(eX,")"),U0="[\\s|\\(]+(".concat(ka,")[,|\\s]+(").concat(ka,")[,|\\s]+(").concat(ka,")\\s*\\)?"),H0="[\\s|\\(]+(".concat(ka,")[,|\\s]+(").concat(ka,")[,|\\s]+(").concat(ka,")[,|\\s]+(").concat(ka,")\\s*\\)?"),Gi={CSS_UNIT:new RegExp(ka),rgb:new RegExp("rgb"+U0),rgba:new RegExp("rgba"+H0),hsl:new RegExp("hsl"+U0),hsla:new RegExp("hsla"+H0),hsv:new RegExp("hsv"+U0),hsva:new RegExp("hsva"+H0),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function rX(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Fb[e])e=Fb[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=Gi.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=Gi.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Gi.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=Gi.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Gi.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=Gi.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Gi.hex8.exec(e),r?{r:qn(r[1]),g:qn(r[2]),b:qn(r[3]),a:_A(r[4]),format:t?"name":"hex8"}:(r=Gi.hex6.exec(e),r?{r:qn(r[1]),g:qn(r[2]),b:qn(r[3]),format:t?"name":"hex"}:(r=Gi.hex4.exec(e),r?{r:qn(r[1]+r[1]),g:qn(r[2]+r[2]),b:qn(r[3]+r[3]),a:_A(r[4]+r[4]),format:t?"name":"hex8"}:(r=Gi.hex3.exec(e),r?{r:qn(r[1]+r[1]),g:qn(r[2]+r[2]),b:qn(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Jo(e){return!!Gi.CSS_UNIT.exec(String(e))}var Kn=(function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=QG(t)),this.originalInput=t;var i=ZG(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:i.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,i,o=t.r/255,s=t.g/255,u=t.b/255;return o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),u<=.03928?i=u/12.92:i=Math.pow((u+.055)/1.055,2.4),.2126*r+.7152*n+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Pk(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=CA(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=CA(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(i,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=EA(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=EA(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(i,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),RA(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),YG(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(Br(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(Br(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+RA(this.r,this.g,this.b,!1),r=0,n=Object.entries(Fb);r<n.length;r++){var i=n[r],o=i[0],s=i[1];if(t===s)return o}return!1},e.prototype.toString=function(t){var r=!!t;t=t??this.format;var n=!1,i=this.a<1&&this.a>=0,o=!r&&i&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=Rd(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=Rd(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=Rd(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=Rd(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),i=new e(t).toRgb(),o=r/100,s={r:(i.r-n.r)*o+n.r,g:(i.g-n.g)*o+n.g,b:(i.b-n.b)*o+n.b,a:(i.a-n.a)*o+n.a};return new e(s)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),i=360/r,o=[this];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,o.push(new e(n));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,i=r.s,o=r.v,s=[],u=1/t;t--;)s.push(new e({h:n,s:i,v:o})),o=(o+u)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),i=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/i,g:(r.g*r.a+n.g*n.a*(1-r.a))/i,b:(r.b*r.a+n.b*n.a*(1-r.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,i=[this],o=360/t,s=1;s<t;s++)i.push(new e({h:(n+s*o)%360,s:r.s,l:r.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e})();function nX(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:n}=t;const{colorSuccess:i,colorWarning:o,colorError:s,colorInfo:u,colorPrimary:c,colorBgBase:f,colorTextBase:d}=e,g=r(c),h=r(i),b=r(o),v=r(s),S=r(u),y=n(f,d),E=e.colorLink||e.colorInfo,x=r(E);return Object.assign(Object.assign({},y),{colorPrimaryBg:g[1],colorPrimaryBgHover:g[2],colorPrimaryBorder:g[3],colorPrimaryBorderHover:g[4],colorPrimaryHover:g[5],colorPrimary:g[6],colorPrimaryActive:g[7],colorPrimaryTextHover:g[8],colorPrimaryText:g[9],colorPrimaryTextActive:g[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBgActive:v[3],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:b[1],colorWarningBgHover:b[2],colorWarningBorder:b[3],colorWarningBorderHover:b[4],colorWarningHover:b[4],colorWarning:b[6],colorWarningActive:b[7],colorWarningTextHover:b[8],colorWarningText:b[9],colorWarningTextActive:b[10],colorInfoBg:S[1],colorInfoBgHover:S[2],colorInfoBorder:S[3],colorInfoBorderHover:S[4],colorInfoHover:S[4],colorInfo:S[6],colorInfoActive:S[7],colorInfoTextHover:S[8],colorInfoText:S[9],colorInfoTextActive:S[10],colorLinkHover:x[4],colorLink:x[6],colorLinkActive:x[7],colorBgMask:new Kn("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const iX=e=>{let t=e,r=e,n=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:i}};function oX(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:i+1},iX(n))}const aX=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function sX(e){return(e+8)/e}function lX(e){const t=new Array(10).fill(null).map((r,n)=>{const i=n-1,o=e*Math.pow(Math.E,i/5),s=n>1?Math.floor(o):Math.ceil(o);return Math.floor(s/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:sX(r)}))}const uX=e=>{const t=lX(e),r=t.map(d=>d.size),n=t.map(d=>d.lineHeight),i=r[1],o=r[0],s=r[2],u=n[1],c=n[0],f=n[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:s,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:u,lineHeightLG:f,lineHeightSM:c,fontHeight:Math.round(u*i),fontHeightLG:Math.round(f*s),fontHeightSM:Math.round(c*o),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function cX(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const Qo=(e,t)=>new Kn(e).setAlpha(t).toRgbString(),Mu=(e,t)=>new Kn(e).darken(t).toHexString(),fX=e=>{const t=_c(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]}},dX=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:Qo(n,.88),colorTextSecondary:Qo(n,.65),colorTextTertiary:Qo(n,.45),colorTextQuaternary:Qo(n,.25),colorFill:Qo(n,.15),colorFillSecondary:Qo(n,.06),colorFillTertiary:Qo(n,.04),colorFillQuaternary:Qo(n,.02),colorBgLayout:Mu(r,4),colorBgContainer:Mu(r,0),colorBgElevated:Mu(r,0),colorBgSpotlight:Qo(n,.85),colorBgBlur:"transparent",colorBorder:Mu(r,15),colorBorderSecondary:Mu(r,6)}};function pX(e){z0.pink=z0.magenta,B0.pink=B0.magenta;const t=Object.keys(Ik).map(r=>{const n=e[r]===z0[r]?B0[r]:_c(e[r]);return new Array(10).fill(1).reduce((i,o,s)=>(i[`${r}-${s+1}`]=n[s],i[`${r}${s+1}`]=n[s],i),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),nX(e,{generateColorPalettes:fX,generateNeutralColorPalettes:dX})),uX(e.fontSize)),cX(e)),aX(e)),oX(e))}const kk=wb(pX),Nb={token:Oc,override:{override:Oc},hashed:!0},Mk=oe.createContext(Nb),jb="ant",Dk="anticon",hX=["outlined","borderless","filled"],gX=(e,t)=>t||(e?`${jb}-${e}`:jb),$i=C.createContext({getPrefixCls:gX,iconPrefixCls:Dk}),{Consumer:Oie}=$i,vX=`-ant-${Date.now()}-${Math.random()}`;function mX(e,t){const r={},n=(s,u)=>{let c=s.clone();return c=u?.(c)||c,c.toRgbString()},i=(s,u)=>{const c=new Kn(s),f=_c(c.toRgbString());r[`${u}-color`]=n(c),r[`${u}-color-disabled`]=f[1],r[`${u}-color-hover`]=f[4],r[`${u}-color-active`]=f[6],r[`${u}-color-outline`]=c.clone().setAlpha(.2).toRgbString(),r[`${u}-color-deprecated-bg`]=f[0],r[`${u}-color-deprecated-border`]=f[2]};if(t.primaryColor){i(t.primaryColor,"primary");const s=new Kn(t.primaryColor),u=_c(s.toRgbString());u.forEach((f,d)=>{r[`primary-${d+1}`]=f}),r["primary-color-deprecated-l-35"]=n(s,f=>f.lighten(35)),r["primary-color-deprecated-l-20"]=n(s,f=>f.lighten(20)),r["primary-color-deprecated-t-20"]=n(s,f=>f.tint(20)),r["primary-color-deprecated-t-50"]=n(s,f=>f.tint(50)),r["primary-color-deprecated-f-12"]=n(s,f=>f.setAlpha(f.getAlpha()*.12));const c=new Kn(u[0]);r["primary-color-active-deprecated-f-30"]=n(c,f=>f.setAlpha(f.getAlpha()*.3)),r["primary-color-active-deprecated-d-02"]=n(c,f=>f.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),`
1056
+ :root {
1057
+ ${Object.keys(r).map(s=>`--${e}-${s}: ${r[s]};`).join(`
1058
+ `)}
1059
+ }
1060
+ `.trim()}function yX(e,t){const r=mX(e,t);kn()&&ra(r,`${vX}-dynamic-theme`)}const Ip=C.createContext(!1),bX=e=>{let{children:t,disabled:r}=e;const n=C.useContext(Ip);return C.createElement(Ip.Provider,{value:r??n},t)},Hl=C.createContext(void 0),SX=e=>{let{children:t,size:r}=e;const n=C.useContext(Hl);return C.createElement(Hl.Provider,{value:r||n},t)};function wX(){const e=C.useContext(Ip),t=C.useContext(Hl);return{componentDisabled:e,componentSize:t}}var Lk=on(function e(){nn(this,e)}),Fk="CALC_UNIT",xX=new RegExp(Fk,"g");function W0(e){return typeof e=="number"?"".concat(e).concat(Fk):e}var EX=(function(e){As(r,e);var t=$s(r);function r(n,i){var o;nn(this,r),o=t.call(this),ue(yt(o),"result",""),ue(yt(o),"unitlessCssVar",void 0),ue(yt(o),"lowPriority",void 0);var s=pt(n);return o.unitlessCssVar=i,n instanceof r?o.result="(".concat(n.result,")"):s==="number"?o.result=W0(n):s==="string"&&(o.result=n),o}return on(r,[{key:"add",value:function(i){return i instanceof r?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(W0(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof r?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(W0(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof r?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof r?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var o=this,s=i||{},u=s.unit,c=!0;return typeof u=="boolean"?c=u:Array.from(this.unitlessCssVar).some(function(f){return o.result.includes(f)})&&(c=!1),this.result=this.result.replace(xX,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r})(Lk),CX=(function(e){As(r,e);var t=$s(r);function r(n){var i;return nn(this,r),i=t.call(this),ue(yt(i),"result",0),n instanceof r?i.result=n.result:typeof n=="number"&&(i.result=n),i}return on(r,[{key:"add",value:function(i){return i instanceof r?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof r?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof r?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof r?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),r})(Lk),RX=function(t,r){var n=t==="css"?EX:CX;return function(i){return new n(i,r)}},OA=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Xn(e){var t=C.useRef();t.current=e;var r=C.useCallback(function(){for(var n,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(o))},[]);return r}function Tc(e){var t=C.useRef(!1),r=C.useState(e),n=Fe(r,2),i=n[0],o=n[1];C.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function s(u,c){c&&t.current||o(u)}return[i,s]}function q0(e){return e!==void 0}function Ac(e,t){var r=t||{},n=r.defaultValue,i=r.value,o=r.onChange,s=r.postState,u=Tc(function(){return q0(i)?i:q0(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),c=Fe(u,2),f=c[0],d=c[1],g=i!==void 0?i:f,h=s?s(g):g,b=Xn(o),v=Tc([g]),S=Fe(v,2),y=S[0],E=S[1];uA(function(){var T=y[0];f!==T&&b(f,T)},[y]),uA(function(){q0(i)||d(i)},[i]);var x=Xn(function(T,A){d(T,A),E([g],A)});return[h,x]}function TA(e,t,r,n){var i=me({},t[e]);if(n!=null&&n.deprecatedTokens){var o=n.deprecatedTokens;o.forEach(function(u){var c=Fe(u,2),f=c[0],d=c[1];if(i!=null&&i[f]||i!=null&&i[d]){var g;(g=i[d])!==null&&g!==void 0||(i[d]=i?.[f])}})}var s=me(me({},r),i);return Object.keys(s).forEach(function(u){s[u]===t[u]&&delete s[u]}),s}var Nk=typeof CSSINJS_STATISTIC<"u",zb=!0;function Is(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!Nk)return Object.assign.apply(Object,[{}].concat(t));zb=!1;var n={};return t.forEach(function(i){if(pt(i)==="object"){var o=Object.keys(i);o.forEach(function(s){Object.defineProperty(n,s,{configurable:!0,enumerable:!0,get:function(){return i[s]}})})}}),zb=!0,n}var AA={};function _X(){}var OX=function(t){var r,n=t,i=_X;return Nk&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(s,u){if(zb){var c;(c=r)===null||c===void 0||c.add(u)}return s[u]}}),i=function(s,u){var c;AA[s]={global:Array.from(r),component:me(me({},(c=AA[s])===null||c===void 0?void 0:c.component),u)}}),{token:n,keys:r,flush:i}};function $A(e,t,r){if(typeof r=="function"){var n;return r(Is(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function TX(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return"max(".concat(n.map(function(o){return zt(o)}).join(","),")")},min:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return"min(".concat(n.map(function(o){return zt(o)}).join(","),")")}}}var AX=1e3*60*10,$X=(function(){function e(){nn(this,e),ue(this,"map",new Map),ue(this,"objectIDMap",new WeakMap),ue(this,"nextID",0),ue(this,"lastAccessBeat",new Map),ue(this,"accessBeat",0)}return on(e,[{key:"set",value:function(r,n){this.clear();var i=this.getCompositeKey(r);this.map.set(i,n),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(r){var n=this.getCompositeKey(r),i=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(r){var n=this,i=r.map(function(o){return o&&pt(o)==="object"?"obj_".concat(n.getObjectID(o)):"".concat(pt(o),"_").concat(o)});return i.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var n=this.nextID;return this.objectIDMap.set(r,n),this.nextID+=1,n}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(i,o){n-i>AX&&(r.map.delete(o),r.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e})(),IA=new $X;function IX(e,t){return oe.useMemo(function(){var r=IA.get(t);if(r)return r;var n=e();return IA.set(t,n),n},t)}var PX=function(){return{}};function kX(e){var t=e.useCSP,r=t===void 0?PX:t,n=e.useToken,i=e.usePrefix,o=e.getResetStyles,s=e.getCommonStyle,u=e.getCompUnitless;function c(h,b,v,S){var y=Array.isArray(h)?h[0]:h;function E(I){return"".concat(String(y)).concat(I.slice(0,1).toUpperCase()).concat(I.slice(1))}var x=S?.unitless||{},T=typeof u=="function"?u(h):{},A=me(me({},T),{},ue({},E("zIndexPopup"),!0));Object.keys(x).forEach(function(I){A[E(I)]=x[I]});var R=me(me({},S),{},{unitless:A,prefixToken:E}),$=d(h,b,v,R),O=f(y,v,R);return function(I){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I,F=$(I,L),q=Fe(F,2),z=q[1],B=O(L),N=Fe(B,2),j=N[0],H=N[1];return[j,z,H]}}function f(h,b,v){var S=v.unitless,y=v.injectStyle,E=y===void 0?!0:y,x=v.prefixToken,T=v.ignore,A=function(O){var I=O.rootCls,L=O.cssVar,F=L===void 0?{}:L,q=n(),z=q.realToken;return _G({path:[h],prefix:F.prefix,key:F.key,unitless:S,ignore:T,token:z,scope:I},function(){var B=$A(h,z,b),N=TA(h,z,B,{deprecatedTokens:v?.deprecatedTokens});return Object.keys(B).forEach(function(j){N[x(j)]=N[j],delete N[j]}),N}),null},R=function(O){var I=n(),L=I.cssVar;return[function(F){return E&&L?oe.createElement(oe.Fragment,null,oe.createElement(A,{rootCls:O,cssVar:L,component:h}),F):F},L?.key]};return R}function d(h,b,v){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=Array.isArray(h)?h:[h,h],E=Fe(y,1),x=E[0],T=y.join("-"),A=e.layer||{name:"antd"};return function(R){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,O=n(),I=O.theme,L=O.realToken,F=O.hashId,q=O.token,z=O.cssVar,B=i(),N=B.rootPrefixCls,j=B.iconPrefixCls,H=r(),X=z?"css":"js",M=IX(function(){var Z=new Set;return z&&Object.keys(S.unitless||{}).forEach(function(te){Z.add(ap(te,z.prefix)),Z.add(ap(te,OA(x,z.prefix)))}),RX(X,Z)},[X,x,z?.prefix]),Q=TX(X),W=Q.max,D=Q.min,P={theme:I,token:q,hashId:F,nonce:function(){return H.nonce},clientOnly:S.clientOnly,layer:A,order:S.order||-999};typeof o=="function"&&Rb(me(me({},P),{},{clientOnly:!1,path:["Shared",N]}),function(){return o(q,{prefix:{rootPrefixCls:N,iconPrefixCls:j},csp:H})});var G=Rb(me(me({},P),{},{path:[T,R,j]}),function(){if(S.injectStyle===!1)return[];var Z=OX(q),te=Z.token,K=Z.flush,be=$A(x,L,v),ae=".".concat(R),Se=TA(x,L,be,{deprecatedTokens:S.deprecatedTokens});z&&be&&pt(be)==="object"&&Object.keys(be).forEach(function(Te){be[Te]="var(".concat(ap(Te,OA(x,z.prefix)),")")});var he=Is(te,{componentCls:ae,prefixCls:R,iconCls:".".concat(j),antCls:".".concat(N),calc:M,max:W,min:D},z?be:Se),Ee=b(he,{hashId:F,prefixCls:R,rootPrefixCls:N,iconPrefixCls:j});K(x,Se);var we=typeof s=="function"?s(he,R,$,S.resetFont):null;return[S.resetStyle===!1?null:we,Ee]});return[G,F]}}function g(h,b,v){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=d(h,b,v,me({resetStyle:!1,order:-998},S)),E=function(T){var A=T.prefixCls,R=T.rootCls,$=R===void 0?A:R;return y(A,$),null};return E}return{genStyleHooks:c,genSubStyleComponent:g,genComponentStyleHook:d}}const Pp=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],MX="5.20.0";function G0(e){return e>=0&&e<=255}function Od(e,t){const{r,g:n,b:i,a:o}=new Kn(e).toRgb();if(o<1)return e;const{r:s,g:u,b:c}=new Kn(t).toRgb();for(let f=.01;f<=1;f+=.01){const d=Math.round((r-s*(1-f))/f),g=Math.round((n-u*(1-f))/f),h=Math.round((i-c*(1-f))/f);if(G0(d)&&G0(g)&&G0(h))return new Kn({r:d,g,b:h,a:Math.round(f*100)/100}).toRgbString()}return new Kn({r,g:n,b:i,a:1}).toRgbString()}var DX=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function jk(e){const{override:t}=e,r=DX(e,["override"]),n=Object.assign({},t);Object.keys(Oc).forEach(h=>{delete n[h]});const i=Object.assign(Object.assign({},r),n),o=480,s=576,u=768,c=992,f=1200,d=1600;return i.motion===!1&&(i.motionDurationFast="0s",i.motionDurationMid="0s",i.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Od(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:Od(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Od(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*4,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:Od(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
1061
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
1062
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
1063
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
1064
+ `,boxShadowSecondary:`
1065
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
1066
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
1067
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
1068
+ `,boxShadowTertiary:`
1069
+ 0 1px 2px 0 rgba(0, 0, 0, 0.03),
1070
+ 0 1px 6px -1px rgba(0, 0, 0, 0.02),
1071
+ 0 2px 4px 0 rgba(0, 0, 0, 0.02)
1072
+ `,screenXS:o,screenXSMin:o,screenXSMax:s-1,screenSM:s,screenSMMin:s,screenSMMax:u-1,screenMD:u,screenMDMin:u,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:f-1,screenXL:f,screenXLMin:f,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
1073
+ 0 1px 2px -2px ${new Kn("rgba(0, 0, 0, 0.16)").toRgbString()},
1074
+ 0 3px 6px 0 ${new Kn("rgba(0, 0, 0, 0.12)").toRgbString()},
1075
+ 0 5px 12px 4px ${new Kn("rgba(0, 0, 0, 0.09)").toRgbString()}
1076
+ `,boxShadowDrawerRight:`
1077
+ -6px 0 16px 0 rgba(0, 0, 0, 0.08),
1078
+ -3px 0 6px -4px rgba(0, 0, 0, 0.12),
1079
+ -9px 0 28px 8px rgba(0, 0, 0, 0.05)
1080
+ `,boxShadowDrawerLeft:`
1081
+ 6px 0 16px 0 rgba(0, 0, 0, 0.08),
1082
+ 3px 0 6px -4px rgba(0, 0, 0, 0.12),
1083
+ 9px 0 28px 8px rgba(0, 0, 0, 0.05)
1084
+ `,boxShadowDrawerUp:`
1085
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
1086
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
1087
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
1088
+ `,boxShadowDrawerDown:`
1089
+ 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
1090
+ 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
1091
+ 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
1092
+ `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}var PA=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const zk={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},LX={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},FX={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Bk=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:i}=t,o=PA(t,["override"]);let s=Object.assign(Object.assign({},n),{override:i});return s=jk(s),o&&Object.entries(o).forEach(u=>{let[c,f]=u;const{theme:d}=f,g=PA(f,["theme"]);let h=g;d&&(h=Bk(Object.assign(Object.assign({},s),g),{override:g},d)),s[c]=h}),s};function Ql(){const{token:e,hashed:t,theme:r,override:n,cssVar:i}=oe.useContext(Mk),o=`${MX}-${t||""}`,s=r||kk,[u,c,f]=eG(s,[Oc,e],{salt:o,override:n,getComputedToken:Bk,formatToken:jk,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:zk,ignore:LX,preserve:FX}});return[s,f,t?c:"",u,i]}const Vk=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),TS=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},NX=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),jX=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),zX=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),BX=(e,t,r,n)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=r?`.${r}`:i,s={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let u={};return n!==!1&&(u={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},u),s),{[i]:s})}},Uk=(e,t)=>{const[r,n]=Ql();return Rb({token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},NX()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:AS}=kX({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=C.useContext($i);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,i]=Ql();return{theme:e,realToken:t,hashId:r,token:n,cssVar:i}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=C.useContext($i);return Uk(t,e),e??{}},getResetStyles:e=>[{"&":zX(e)}],getCommonStyle:BX,getCompUnitless:()=>zk});function VX(e,t){return Pp.reduce((r,n)=>{const i=e[`${n}1`],o=e[`${n}3`],s=e[`${n}6`],u=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:i,lightBorderColor:o,darkColor:s,textColor:u}))},{})}const UX=Object.assign({},Bp),{useId:kA}=UX,HX=()=>"",WX=typeof kA>"u"?HX:kA;function qX(e,t,r){var n;Ok();const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},Nb),{hashed:(n=t?.hashed)!==null&&n!==void 0?n:Nb.hashed,cssVar:t?.cssVar}):t,s=WX();return vS(()=>{var u,c;if(!e)return t;const f=Object.assign({},o.components);Object.keys(e.components||{}).forEach(h=>{f[h]=Object.assign(Object.assign({},f[h]),e.components[h])});const d=`css-var-${s.replace(/:/g,"")}`,g=((u=i.cssVar)!==null&&u!==void 0?u:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r?.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((c=i.cssVar)===null||c===void 0?void 0:c.key)||d});return Object.assign(Object.assign(Object.assign({},o),i),{token:Object.assign(Object.assign({},o.token),i.token),components:f,cssVar:g})},[i,o],(u,c)=>u.some((f,d)=>{const g=c[d];return!bb(f,g,!0)}))}var GX=["children"],Hk=C.createContext({});function XX(e){var t=e.children,r=ei(e,GX);return C.createElement(Hk.Provider,{value:r},t)}var KX=(function(e){As(r,e);var t=$s(r);function r(){return nn(this,r),t.apply(this,arguments)}return on(r,[{key:"render",value:function(){return this.props.children}}]),r})(C.Component);function YX(e){var t=C.useReducer(function(u){return u+1},0),r=Fe(t,2),n=r[1],i=C.useRef(e),o=Xn(function(){return i.current}),s=Xn(function(u){i.current=typeof u=="function"?u(i.current):u,n()});return[o,s]}var Ta="none",Td="appear",Ad="enter",$d="leave",MA="none",Yi="prepare",xl="start",El="active",$S="end",Wk="prepared";function DA(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function JX(e,t){var r={animationend:DA("Animation","AnimationEnd"),transitionend:DA("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var QX=JX(kn(),typeof window<"u"?window:{}),qk={};if(kn()){var ZX=document.createElement("div");qk=ZX.style}var Id={};function Gk(e){if(Id[e])return Id[e];var t=QX[e];if(t)for(var r=Object.keys(t),n=r.length,i=0;i<n;i+=1){var o=r[i];if(Object.prototype.hasOwnProperty.call(t,o)&&o in qk)return Id[e]=t[o],Id[e]}return""}var Xk=Gk("animationend"),Kk=Gk("transitionend"),Yk=!!(Xk&&Kk),LA=Xk||"animationend",FA=Kk||"transitionend";function NA(e,t){if(!e)return null;if(pt(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const eK=(function(e){var t=C.useRef();function r(i){i&&(i.removeEventListener(FA,e),i.removeEventListener(LA,e))}function n(i){t.current&&t.current!==i&&r(t.current),i&&i!==t.current&&(i.addEventListener(FA,e),i.addEventListener(LA,e),t.current=i)}return C.useEffect(function(){return function(){r(t.current)}},[]),[n,r]});var Jk=kn()?C.useLayoutEffect:C.useEffect;const tK=(function(){var e=C.useRef(null);function t(){wc.cancel(e.current)}function r(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=wc(function(){i<=1?n({isCanceled:function(){return o!==e.current}}):r(n,i-1)});e.current=o}return C.useEffect(function(){return function(){t()}},[]),[r,t]});var rK=[Yi,xl,El,$S],nK=[Yi,Wk],Qk=!1,iK=!0;function Zk(e){return e===El||e===$S}const oK=(function(e,t,r){var n=Tc(MA),i=Fe(n,2),o=i[0],s=i[1],u=tK(),c=Fe(u,2),f=c[0],d=c[1];function g(){s(Yi,!0)}var h=t?nK:rK;return Jk(function(){if(o!==MA&&o!==$S){var b=h.indexOf(o),v=h[b+1],S=r(o);S===Qk?s(v,!0):v&&f(function(y){function E(){y.isCanceled()||s(v,!0)}S===!0?E():Promise.resolve(S).then(E)})}},[e,o]),C.useEffect(function(){return function(){d()}},[]),[g,o]});function aK(e,t,r,n){var i=n.motionEnter,o=i===void 0?!0:i,s=n.motionAppear,u=s===void 0?!0:s,c=n.motionLeave,f=c===void 0?!0:c,d=n.motionDeadline,g=n.motionLeaveImmediately,h=n.onAppearPrepare,b=n.onEnterPrepare,v=n.onLeavePrepare,S=n.onAppearStart,y=n.onEnterStart,E=n.onLeaveStart,x=n.onAppearActive,T=n.onEnterActive,A=n.onLeaveActive,R=n.onAppearEnd,$=n.onEnterEnd,O=n.onLeaveEnd,I=n.onVisibleChanged,L=Tc(),F=Fe(L,2),q=F[0],z=F[1],B=YX(Ta),N=Fe(B,2),j=N[0],H=N[1],X=Tc(null),M=Fe(X,2),Q=M[0],W=M[1],D=j(),P=C.useRef(!1),G=C.useRef(null);function Z(){return r()}var te=C.useRef(!1);function K(){H(Ta),W(null,!0)}var be=Xn(function(ze){var Ye=j();if(Ye!==Ta){var Ue=Z();if(!(ze&&!ze.deadline&&ze.target!==Ue)){var Re=te.current,Xe;Ye===Td&&Re?Xe=R?.(Ue,ze):Ye===Ad&&Re?Xe=$?.(Ue,ze):Ye===$d&&Re&&(Xe=O?.(Ue,ze)),Re&&Xe!==!1&&K()}}}),ae=eK(be),Se=Fe(ae,1),he=Se[0],Ee=function(Ye){switch(Ye){case Td:return ue(ue(ue({},Yi,h),xl,S),El,x);case Ad:return ue(ue(ue({},Yi,b),xl,y),El,T);case $d:return ue(ue(ue({},Yi,v),xl,E),El,A);default:return{}}},we=C.useMemo(function(){return Ee(D)},[D]),Te=oK(D,!e,function(ze){if(ze===Yi){var Ye=we[Yi];return Ye?Ye(Z()):Qk}if($e in we){var Ue;W(((Ue=we[$e])===null||Ue===void 0?void 0:Ue.call(we,Z(),null))||null)}return $e===El&&D!==Ta&&(he(Z()),d>0&&(clearTimeout(G.current),G.current=setTimeout(function(){be({deadline:!0})},d))),$e===Wk&&K(),iK}),Ce=Fe(Te,2),_e=Ce[0],$e=Ce[1],ke=Zk($e);te.current=ke;var Ge=C.useRef(null);Jk(function(){if(!(P.current&&Ge.current===t)){z(t);var ze=P.current;P.current=!0;var Ye;!ze&&t&&u&&(Ye=Td),ze&&t&&o&&(Ye=Ad),(ze&&!t&&f||!ze&&g&&!t&&f)&&(Ye=$d);var Ue=Ee(Ye);Ye&&(e||Ue[Yi])?(H(Ye),_e()):H(Ta),Ge.current=t}},[t]),C.useEffect(function(){(D===Td&&!u||D===Ad&&!o||D===$d&&!f)&&H(Ta)},[u,o,f]),C.useEffect(function(){return function(){P.current=!1,clearTimeout(G.current)}},[]);var Qe=C.useRef(!1);C.useEffect(function(){q&&(Qe.current=!0),q!==void 0&&D===Ta&&((Qe.current||q)&&I?.(q),Qe.current=!0)},[q,D]);var je=Q;return we[Yi]&&$e===xl&&(je=me({transition:"none"},je)),[D,$e,je,q??t]}function sK(e){var t=e;pt(e)==="object"&&(t=e.transitionSupport);function r(i,o){return!!(i.motionName&&t&&o!==!1)}var n=C.forwardRef(function(i,o){var s=i.visible,u=s===void 0?!0:s,c=i.removeOnLeave,f=c===void 0?!0:c,d=i.forceRender,g=i.children,h=i.motionName,b=i.leavedClassName,v=i.eventProps,S=C.useContext(Hk),y=S.motion,E=r(i,y),x=C.useRef(),T=C.useRef();function A(){try{return x.current instanceof HTMLElement?x.current:op(T.current)}catch{return null}}var R=aK(E,u,A,i),$=Fe(R,4),O=$[0],I=$[1],L=$[2],F=$[3],q=C.useRef(F);F&&(q.current=!0);var z=C.useCallback(function(M){x.current=M,mS(o,M)},[o]),B,N=me(me({},v),{},{visible:u});if(!g)B=null;else if(O===Ta)F?B=g(me({},N),z):!f&&q.current&&b?B=g(me(me({},N),{},{className:b}),z):d||!f&&!b?B=g(me(me({},N),{},{style:{display:"none"}}),z):B=null;else{var j;I===Yi?j="prepare":Zk(I)?j="active":I===xl&&(j="start");var H=NA(h,"".concat(O,"-").concat(j));B=g(me(me({},N),{},{className:Ct(NA(h,O),ue(ue({},H,H&&j),h,typeof h=="string")),style:L}),z)}if(C.isValidElement(B)&&ch(B)){var X=bS(B);X||(B=C.cloneElement(B,{ref:z}))}return C.createElement(KX,{ref:T},B)});return n.displayName="CSSMotion",n}const IS=sK(Yk);var Bb="add",Vb="keep",Ub="remove",X0="removed";function lK(e){var t;return e&&pt(e)==="object"&&"key"in e?t=e:t={key:e},me(me({},t),{},{key:String(t.key)})}function Hb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(lK)}function uK(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,i=t.length,o=Hb(e),s=Hb(t);o.forEach(function(f){for(var d=!1,g=n;g<i;g+=1){var h=s[g];if(h.key===f.key){n<g&&(r=r.concat(s.slice(n,g).map(function(b){return me(me({},b),{},{status:Bb})})),n=g),r.push(me(me({},h),{},{status:Vb})),n+=1,d=!0;break}}d||r.push(me(me({},f),{},{status:Ub}))}),n<i&&(r=r.concat(s.slice(n).map(function(f){return me(me({},f),{},{status:Bb})})));var u={};r.forEach(function(f){var d=f.key;u[d]=(u[d]||0)+1});var c=Object.keys(u).filter(function(f){return u[f]>1});return c.forEach(function(f){r=r.filter(function(d){var g=d.key,h=d.status;return g!==f||h!==Ub}),r.forEach(function(d){d.key===f&&(d.status=Vb)})}),r}var cK=["component","children","onVisibleChanged","onAllRemoved"],fK=["status"],dK=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function pK(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:IS,r=(function(n){As(o,n);var i=$s(o);function o(){var s;nn(this,o);for(var u=arguments.length,c=new Array(u),f=0;f<u;f++)c[f]=arguments[f];return s=i.call.apply(i,[this].concat(c)),ue(yt(s),"state",{keyEntities:[]}),ue(yt(s),"removeKey",function(d){s.setState(function(g){var h=g.keyEntities.map(function(b){return b.key!==d?b:me(me({},b),{},{status:X0})});return{keyEntities:h}},function(){var g=s.state.keyEntities,h=g.filter(function(b){var v=b.status;return v!==X0}).length;h===0&&s.props.onAllRemoved&&s.props.onAllRemoved()})}),s}return on(o,[{key:"render",value:function(){var u=this,c=this.state.keyEntities,f=this.props,d=f.component,g=f.children,h=f.onVisibleChanged;f.onAllRemoved;var b=ei(f,cK),v=d||C.Fragment,S={};return dK.forEach(function(y){S[y]=b[y],delete b[y]}),delete b.keys,C.createElement(v,b,c.map(function(y,E){var x=y.status,T=ei(y,fK),A=x===Bb||x===Vb;return C.createElement(t,hr({},S,{key:T.key,visible:A,eventProps:T,onVisibleChanged:function($){h?.($,{key:T.key}),$||u.removeKey(T.key)}}),function(R,$){return g(me(me({},R),{},{index:E}),$)})}))}}],[{key:"getDerivedStateFromProps",value:function(u,c){var f=u.keys,d=c.keyEntities,g=Hb(f),h=uK(d,g);return{keyEntities:h.filter(function(b){var v=d.find(function(S){var y=S.key;return b.key===y});return!(v&&v.status===X0&&b.status===Ub)})}}}]),o})(C.Component);return ue(r,"defaultProps",{component:"div"}),r}pK(Yk);function hK(e){const{children:t}=e,[,r]=Ql(),{motion:n}=r,i=C.useRef(!1);return i.current=i.current||n===!1,i.current?C.createElement(XX,{motion:n},t):t}const gK=()=>null;var vK=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const mK=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let e5;function yK(){return e5||jb}function bK(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const SK=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:i}=e;t!==void 0&&(e5=t),n&&bK(n)&&yX(yK(),n)},wK=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:i,anchor:o,form:s,locale:u,componentSize:c,direction:f,space:d,virtual:g,dropdownMatchSelectWidth:h,popupMatchSelectWidth:b,popupOverflow:v,legacyLocale:S,parentContext:y,iconPrefixCls:E,theme:x,componentDisabled:T,segmented:A,statistic:R,spin:$,calendar:O,carousel:I,cascader:L,collapse:F,typography:q,checkbox:z,descriptions:B,divider:N,drawer:j,skeleton:H,steps:X,image:M,layout:Q,list:W,mentions:D,modal:P,progress:G,result:Z,slider:te,breadcrumb:K,menu:be,pagination:ae,input:Se,textArea:he,empty:Ee,badge:we,radio:Te,rate:Ce,switch:_e,transfer:$e,avatar:ke,message:Ge,tag:Qe,table:je,card:ze,tabs:Ye,timeline:Ue,timePicker:Re,upload:Xe,notification:ct,tree:Pt,colorPicker:ht,datePicker:Ft,rangePicker:It,flex:ne,wave:se,dropdown:pe,warning:Y,tour:V,floatButtonGroup:ee,variant:Oe,inputNumber:le,treeSelect:fe}=e,ve=C.useCallback((vt,bt)=>{const{prefixCls:Ot}=e;if(bt)return bt;const Vt=Ot||y.getPrefixCls("");return vt?`${Vt}-${vt}`:Vt},[y.getPrefixCls,e.prefixCls]),Ie=E||y.iconPrefixCls||Dk,De=r||y.csp;Uk(Ie,De);const Be=qX(x,y.theme,{prefixCls:ve("")}),Ze={csp:De,autoInsertSpaceInButton:n,alert:i,anchor:o,locale:u||S,direction:f,space:d,virtual:g,popupMatchSelectWidth:b??h,popupOverflow:v,getPrefixCls:ve,iconPrefixCls:Ie,theme:Be,segmented:A,statistic:R,spin:$,calendar:O,carousel:I,cascader:L,collapse:F,typography:q,checkbox:z,descriptions:B,divider:N,drawer:j,skeleton:H,steps:X,image:M,input:Se,textArea:he,layout:Q,list:W,mentions:D,modal:P,progress:G,result:Z,slider:te,breadcrumb:K,menu:be,pagination:ae,empty:Ee,badge:we,radio:Te,rate:Ce,switch:_e,transfer:$e,avatar:ke,message:Ge,tag:Qe,table:je,card:ze,tabs:Ye,timeline:Ue,timePicker:Re,upload:Xe,notification:ct,tree:Pt,colorPicker:ht,datePicker:Ft,rangePicker:It,flex:ne,wave:se,dropdown:pe,warning:Y,tour:V,floatButtonGroup:ee,variant:Oe,inputNumber:le,treeSelect:fe},et=Object.assign({},y);Object.keys(Ze).forEach(vt=>{Ze[vt]!==void 0&&(et[vt]=Ze[vt])}),mK.forEach(vt=>{const bt=e[vt];bt&&(et[vt]=bt)}),typeof n<"u"&&(et.button=Object.assign({autoInsertSpace:n},et.button));const tt=vS(()=>et,et,(vt,bt)=>{const Ot=Object.keys(vt),Vt=Object.keys(bt);return Ot.length!==Vt.length||Ot.some(ur=>vt[ur]!==bt[ur])}),Bt=C.useMemo(()=>({prefixCls:Ie,csp:De}),[Ie,De]);let dt=C.createElement(C.Fragment,null,C.createElement(gK,{dropdownMatchSelectWidth:h}),t);const gt=C.useMemo(()=>{var vt,bt,Ot,Vt;return Sl(((vt=Ul.Form)===null||vt===void 0?void 0:vt.defaultValidateMessages)||{},((Ot=(bt=tt.locale)===null||bt===void 0?void 0:bt.Form)===null||Ot===void 0?void 0:Ot.defaultValidateMessages)||{},((Vt=tt.form)===null||Vt===void 0?void 0:Vt.validateMessages)||{},s?.validateMessages||{})},[tt,s?.validateMessages]);Object.keys(gt).length>0&&(dt=C.createElement(kG.Provider,{value:gt},dt)),u&&(dt=C.createElement(zG,{locale:u,_ANT_MARK__:jG},dt)),dt=C.createElement(_S.Provider,{value:Bt},dt),c&&(dt=C.createElement(SX,{size:c},dt)),dt=C.createElement(hK,null,dt);const wt=C.useMemo(()=>{const vt=Be||{},{algorithm:bt,token:Ot,components:Vt,cssVar:ur}=vt,gr=vK(vt,["algorithm","token","components","cssVar"]),Sr=bt&&(!Array.isArray(bt)||bt.length>0)?wb(bt):kk,Or={};Object.entries(Vt||{}).forEach(Lr=>{let[vr,yn]=Lr;const qt=Object.assign({},yn);"algorithm"in qt&&(qt.algorithm===!0?qt.theme=Sr:(Array.isArray(qt.algorithm)||typeof qt.algorithm=="function")&&(qt.theme=wb(qt.algorithm)),delete qt.algorithm),Or[vr]=qt});const Dr=Object.assign(Object.assign({},Oc),Ot);return Object.assign(Object.assign({},gr),{theme:Sr,token:Dr,components:Or,override:Object.assign({override:Dr},Or),cssVar:ur})},[Be]);return x&&(dt=C.createElement(Mk.Provider,{value:wt},dt)),tt.warning&&(dt=C.createElement(PG.Provider,{value:tt.warning},dt)),T!==void 0&&(dt=C.createElement(bX,{disabled:T},dt)),C.createElement($i.Provider,{value:tt},dt)},qc=e=>{const t=C.useContext($i),r=C.useContext(OS);return C.createElement(wK,Object.assign({parentContext:t,legacyLocale:r},e))};qc.ConfigContext=$i;qc.SizeContext=Hl;qc.config=SK;qc.useConfig=wX;Object.defineProperty(qc,"SizeContext",{get:()=>Hl});function t5(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function xK(e){return t5(e)instanceof ShadowRoot}function kp(e){return xK(e)?t5(e):null}function EK(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function CK(e,t){Qn(e,"[@ant-design/icons] ".concat(t))}function jA(e){return pt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(pt(e.icon)==="object"||typeof e.icon=="function")}function zA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[EK(r)]=n}return t},{})}function Wb(e,t,r){return r?oe.createElement(e.tag,me(me({key:t},zA(e.attrs)),r),(e.children||[]).map(function(n,i){return Wb(n,"".concat(t,"-").concat(e.tag,"-").concat(i))})):oe.createElement(e.tag,me({key:t},zA(e.attrs)),(e.children||[]).map(function(n,i){return Wb(n,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function r5(e){return _c(e)[0]}function n5(e){return e?Array.isArray(e)?e:[e]:[]}var RK=`
1093
+ .anticon {
1094
+ display: inline-flex;
1095
+ align-items: center;
1096
+ color: inherit;
1097
+ font-style: normal;
1098
+ line-height: 0;
1099
+ text-align: center;
1100
+ text-transform: none;
1101
+ vertical-align: -0.125em;
1102
+ text-rendering: optimizeLegibility;
1103
+ -webkit-font-smoothing: antialiased;
1104
+ -moz-osx-font-smoothing: grayscale;
1105
+ }
1106
+
1107
+ .anticon > * {
1108
+ line-height: 1;
1109
+ }
1110
+
1111
+ .anticon svg {
1112
+ display: inline-block;
1113
+ }
1114
+
1115
+ .anticon::before {
1116
+ display: none;
1117
+ }
1118
+
1119
+ .anticon .anticon-icon {
1120
+ display: block;
1121
+ }
1122
+
1123
+ .anticon[tabindex] {
1124
+ cursor: pointer;
1125
+ }
1126
+
1127
+ .anticon-spin::before,
1128
+ .anticon-spin {
1129
+ display: inline-block;
1130
+ -webkit-animation: loadingCircle 1s infinite linear;
1131
+ animation: loadingCircle 1s infinite linear;
1132
+ }
1133
+
1134
+ @-webkit-keyframes loadingCircle {
1135
+ 100% {
1136
+ -webkit-transform: rotate(360deg);
1137
+ transform: rotate(360deg);
1138
+ }
1139
+ }
1140
+
1141
+ @keyframes loadingCircle {
1142
+ 100% {
1143
+ -webkit-transform: rotate(360deg);
1144
+ transform: rotate(360deg);
1145
+ }
1146
+ }
1147
+ `,_K=function(t){var r=C.useContext(_S),n=r.csp,i=r.prefixCls,o=r.layer,s=RK;i&&(s=s.replace(/anticon/g,i)),o&&(s="@layer ".concat(o,` {
1148
+ `).concat(s,`
1149
+ }`)),C.useEffect(function(){var u=t.current,c=kp(u);ra(s,"@ant-design-icons",{prepend:!o,csp:n,attachTo:c})},[])},OK=["icon","className","onClick","style","primaryColor","secondaryColor"],tc={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function TK(e){var t=e.primaryColor,r=e.secondaryColor;tc.primaryColor=t,tc.secondaryColor=r||r5(t),tc.calculated=!!r}function AK(){return me({},tc)}var Zl=function(t){var r=t.icon,n=t.className,i=t.onClick,o=t.style,s=t.primaryColor,u=t.secondaryColor,c=ei(t,OK),f=C.useRef(),d=tc;if(s&&(d={primaryColor:s,secondaryColor:u||r5(s)}),_K(f),CK(jA(r),"icon should be icon definiton, but got ".concat(r)),!jA(r))return null;var g=r;return g&&typeof g.icon=="function"&&(g=me(me({},g),{},{icon:g.icon(d.primaryColor,d.secondaryColor)})),Wb(g.icon,"svg-".concat(g.name),me(me({className:n,onClick:i,style:o,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:f}))};Zl.displayName="IconReact";Zl.getTwoToneColors=AK;Zl.setTwoToneColors=TK;function i5(e){var t=n5(e),r=Fe(t,2),n=r[0],i=r[1];return Zl.setTwoToneColors({primaryColor:n,secondaryColor:i})}function $K(){var e=Zl.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var IK=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];i5($p.primary);var la=C.forwardRef(function(e,t){var r=e.className,n=e.icon,i=e.spin,o=e.rotate,s=e.tabIndex,u=e.onClick,c=e.twoToneColor,f=ei(e,IK),d=C.useContext(_S),g=d.prefixCls,h=g===void 0?"anticon":g,b=d.rootClassName,v=Ct(b,h,ue(ue({},"".concat(h,"-").concat(n.name),!!n.name),"".concat(h,"-spin"),!!i||n.name==="loading"),r),S=s;S===void 0&&u&&(S=-1);var y=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,E=n5(c),x=Fe(E,2),T=x[0],A=x[1];return C.createElement("span",hr({role:"img","aria-label":n.name},f,{ref:t,tabIndex:S,onClick:u,className:v}),C.createElement(Zl,{icon:n,primaryColor:T,secondaryColor:A,style:y}))});la.displayName="AntdIcon";la.getTwoToneColor=$K;la.setTwoToneColor=i5;var PK={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},kK=function(t,r){return C.createElement(la,hr({},t,{ref:r,icon:PK}))},MK=C.forwardRef(kK);function DK(e){return e&&oe.isValidElement(e)&&e.type===oe.Fragment}const LK=(e,t,r)=>oe.isValidElement(e)?oe.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function o5(e,t){return LK(e,e,t)}const FK=e=>{const[,,,,t]=Ql();return t?`${e}-css-var`:""};var Mp={ENTER:13,ESC:27},NK={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},jK=function(t,r){return C.createElement(la,hr({},t,{ref:r,icon:NK}))},zK=C.forwardRef(jK);const a5=oe.createContext(void 0),ol=100,s5={Modal:ol,Drawer:ol,Popover:ol,Popconfirm:ol,Tooltip:ol,Tour:ol},BK={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function VK(e){return e in s5}function UK(e,t){const[,r]=Ql(),n=oe.useContext(a5),i=VK(e);let o;if(t!==void 0)o=[t,t];else{let s=n??0;i?s+=(n?0:r.zIndexPopupBase)+s5[e]:s+=BK[e],o=[n===void 0?t:s,s]}return o}function l5(e,t){this.v=e,this.k=t}function Zr(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}Zr=function(s,u,c,f){function d(g,h){Zr(s,g,function(b){return this._invoke(g,h,b)})}u?i?i(s,u,{value:c,enumerable:!f,configurable:!f,writable:!f}):s[u]=c:(d("next",0),d("throw",1),d("return",2))},Zr(e,t,r,n)}function PS(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function o(b,v,S,y){var E=v&&v.prototype instanceof u?v:u,x=Object.create(E.prototype);return Zr(x,"_invoke",(function(T,A,R){var $,O,I,L=0,F=R||[],q=!1,z={p:0,n:0,v:e,a:B,f:B.bind(e,4),d:function(j,H){return $=j,O=0,I=e,z.n=H,s}};function B(N,j){for(O=N,I=j,t=0;!q&&L&&!H&&t<F.length;t++){var H,X=F[t],M=z.p,Q=X[2];N>3?(H=Q===j)&&(I=X[(O=X[4])?5:(O=3,3)],X[4]=X[5]=e):X[0]<=M&&((H=N<2&&M<X[1])?(O=0,z.v=j,z.n=X[1]):M<Q&&(H=N<3||X[0]>j||j>Q)&&(X[4]=N,X[5]=j,z.n=Q,O=0))}if(H||N>1)return s;throw q=!0,j}return function(N,j,H){if(L>1)throw TypeError("Generator is already running");for(q&&j===1&&B(j,H),O=j,I=H;(t=O<2?e:I)||!q;){$||(O?O<3?(O>1&&(z.n=-1),B(O,I)):z.n=I:z.v=I);try{if(L=2,$){if(O||(N="next"),t=$[N]){if(!(t=t.call($,I)))throw TypeError("iterator result is not an object");if(!t.done)return t;I=t.value,O<2&&(O=0)}else O===1&&(t=$.return)&&t.call($),O<2&&(I=TypeError("The iterator does not provide a '"+N+"' method"),O=1);$=e}else if((t=(q=z.n<0)?I:T.call(A,z))!==s)break}catch(X){$=e,O=1,I=X}finally{L=1}}return{value:t,done:q}}})(b,S,y),!0),x}var s={};function u(){}function c(){}function f(){}t=Object.getPrototypeOf;var d=[][n]?t(t([][n]())):(Zr(t={},n,function(){return this}),t),g=f.prototype=u.prototype=Object.create(d);function h(b){return Object.setPrototypeOf?Object.setPrototypeOf(b,f):(b.__proto__=f,Zr(b,i,"GeneratorFunction")),b.prototype=Object.create(g),b}return c.prototype=f,Zr(g,"constructor",f),Zr(f,"constructor",c),c.displayName="GeneratorFunction",Zr(f,i,"GeneratorFunction"),Zr(g),Zr(g,i,"Generator"),Zr(g,n,function(){return this}),Zr(g,"toString",function(){return"[object Generator]"}),(PS=function(){return{w:o,m:h}})()}function Dp(e,t){function r(i,o,s,u){try{var c=e[i](o),f=c.value;return f instanceof l5?t.resolve(f.v).then(function(d){r("next",d,s,u)},function(d){r("throw",d,s,u)}):t.resolve(f).then(function(d){c.value=d,s(c)},function(d){return r("throw",d,s,u)})}catch(d){u(d)}}var n;this.next||(Zr(Dp.prototype),Zr(Dp.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Zr(this,"_invoke",function(i,o,s){function u(){return new t(function(c,f){r(i,s,c,f)})}return n=n?n.then(u,u):u()},!0)}function u5(e,t,r,n,i){return new Dp(PS().w(e,t,r,n),i||Promise)}function HK(e,t,r,n,i){var o=u5(e,t,r,n,i);return o.next().then(function(s){return s.done?s.value:o.next()})}function WK(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function i(){for(;r.length;)if((n=r.pop())in t)return i.value=n,i.done=!1,i;return i.done=!0,i}}function BA(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(pt(e)+" is not iterable")}function Ii(){var e=PS(),t=e.m(Ii),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(s){var u=typeof s=="function"&&s.constructor;return!!u&&(u===r||(u.displayName||u.name)==="GeneratorFunction")}var i={throw:1,return:2,break:3,continue:3};function o(s){var u,c;return function(f){u||(u={stop:function(){return c(f.a,2)},catch:function(){return f.v},abrupt:function(g,h){return c(f.a,i[g],h)},delegateYield:function(g,h,b){return u.resultName=h,c(f.d,BA(g),b)},finish:function(g){return c(f.f,g)}},c=function(g,h,b){f.p=u.prev,f.n=u.next;try{return g(h,b)}finally{u.next=f.n}}),u.resultName&&(u[u.resultName]=f.v,u.resultName=void 0),u.sent=f.v,u.next=f.n;try{return s.call(this,u)}finally{f.p=u.prev,f.n=u.next}}}return(Ii=function(){return{wrap:function(c,f,d,g){return e.w(o(c),f,d,g&&g.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(c,f){return new l5(c,f)},AsyncIterator:Dp,async:function(c,f,d,g,h){return(n(f)?u5:HK)(o(c),f,d,g,h)},keys:WK,values:BA}})()}function VA(e,t,r,n,i,o,s){try{var u=e[o](s),c=u.value}catch(f){return void r(f)}u.done?t(c):Promise.resolve(c).then(n,i)}function Gc(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(c){VA(o,n,i,s,u,"next",c)}function u(c){VA(o,n,i,s,u,"throw",c)}s(void 0)})}}const qK=(e,t,r)=>r!==void 0?r:`${e}-${t}`,GK=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),o=i.width,s=i.height;if(o||s)return!0}}return!1}),XK=e=>{const t=oe.useContext(Hl);return oe.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},KK=C.createContext(null),YK=e=>{let{children:t}=e;return C.createElement(KK.Provider,{value:null},t)};function JK(e,t,r){const{focusElCls:n,focus:i,borderElCls:o}=r,s=o?"> *":"",u=["hover",i?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[u]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function QK(e,t,r){const{borderElCls:n}=r,i=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function ZK(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},JK(e,n,t)),QK(r,n,t))}}var c5=C.createContext(null),UA=[];function eY(e,t){var r=C.useState(function(){if(!kn())return null;var v=document.createElement("div");return v}),n=Fe(r,1),i=n[0],o=C.useRef(!1),s=C.useContext(c5),u=C.useState(UA),c=Fe(u,2),f=c[0],d=c[1],g=s||(o.current?void 0:function(v){d(function(S){var y=[v].concat(at(S));return y})});function h(){i.parentElement||document.body.appendChild(i),o.current=!0}function b(){var v;(v=i.parentElement)===null||v===void 0||v.removeChild(i),o.current=!1}return lr(function(){return e?s?s(h):h():b(),b},[e]),lr(function(){f.length&&(f.forEach(function(v){return v()}),d(UA))},[f]),[i,g]}function tY(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var i,o;if(e){var s=getComputedStyle(e);n.scrollbarColor=s.scrollbarColor,n.scrollbarWidth=s.scrollbarWidth;var u=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(u.width,10),f=parseInt(u.height,10);try{var d=c?"width: ".concat(u.width,";"):"",g=f?"height: ".concat(u.height,";"):"";ra(`
1150
+ #`.concat(t,`::-webkit-scrollbar {
1151
+ `).concat(d,`
1152
+ `).concat(g,`
1153
+ }`),t)}catch(v){console.error(v),i=c,o=f}}document.body.appendChild(r);var h=e&&i&&!isNaN(i)?i:r.offsetWidth-r.clientWidth,b=e&&o&&!isNaN(o)?o:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),Ec(t),{width:h,height:b}}function rY(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:tY(e)}function nY(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var iY="rc-util-locker-".concat(Date.now()),HA=0;function oY(e){var t=!!e,r=C.useState(function(){return HA+=1,"".concat(iY,"_").concat(HA)}),n=Fe(r,1),i=n[0];lr(function(){if(t){var o=rY(document.body).width,s=nY();ra(`
1154
+ html body {
1155
+ overflow-y: hidden;
1156
+ `.concat(s?"width: calc(100% - ".concat(o,"px);"):"",`
1157
+ }`),i)}else Ec(i);return function(){Ec(i)}},[t,i])}var aY=!1;function sY(e){return aY}var WA=function(t){return t===!1?!1:!kn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},f5=C.forwardRef(function(e,t){var r=e.open,n=e.autoLock,i=e.getContainer;e.debug;var o=e.autoDestroy,s=o===void 0?!0:o,u=e.children,c=C.useState(r),f=Fe(c,2),d=f[0],g=f[1],h=d||r;C.useEffect(function(){(s||r)&&g(r)},[r,s]);var b=C.useState(function(){return WA(i)}),v=Fe(b,2),S=v[0],y=v[1];C.useEffect(function(){var q=WA(i);y(q??null)});var E=eY(h&&!S),x=Fe(E,2),T=x[0],A=x[1],R=S??T;oY(n&&r&&kn()&&(R===T||R===document.body));var $=null;if(u&&ch(u)&&t){var O=u;$=O.ref}var I=yS($,t);if(!h||!kn()||S===void 0)return null;var L=R===!1||sY(),F=u;return t&&(F=C.cloneElement(u,{ref:I})),C.createElement(c5.Provider,{value:A},L?F:Vp.createPortal(F,R))});function lY(){var e=me({},Bp);return e.useId}var qA=0,GA=lY();const uY=GA?(function(t){var r=GA();return t||r}):(function(t){var r=C.useState("ssr-id"),n=Fe(r,2),i=n[0],o=n[1];return C.useEffect(function(){var s=qA;qA+=1,o("rc_unique_".concat(s))},[]),t||i});var ps="RC_FORM_INTERNAL_HOOKS",Wt=function(){Qn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Wl=C.createContext({getFieldValue:Wt,getFieldsValue:Wt,getFieldError:Wt,getFieldWarning:Wt,getFieldsError:Wt,isFieldsTouched:Wt,isFieldTouched:Wt,isFieldValidating:Wt,isFieldsValidating:Wt,resetFields:Wt,setFields:Wt,setFieldValue:Wt,setFieldsValue:Wt,validateFields:Wt,submit:Wt,getInternalHooks:function(){return Wt(),{dispatch:Wt,initEntityValue:Wt,registerField:Wt,useSubscribe:Wt,setInitialValues:Wt,destroyForm:Wt,setCallbacks:Wt,registerWatch:Wt,getFields:Wt,setValidateMessages:Wt,setPreserve:Wt,getInitialValue:Wt}}}),Lp=C.createContext(null);function qb(e){return e==null?[]:Array.isArray(e)?e:[e]}function cY(e){return e&&!!e._init}function Gb(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",tel:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Xb=Gb();function fY(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function dY(e,t,r){if(sS())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var i=new(e.bind.apply(e,n));return r&&vc(i,r.prototype),i}function Kb(e){var t=typeof Map=="function"?new Map:void 0;return Kb=function(n){if(n===null||!fY(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return dY(n,arguments,mc(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),vc(i,n)},Kb(e)}var pY=/%[sdj%]/g,hY=function(){};function Yb(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function Yn(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0,o=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var s=e.replace(pY,function(u){if(u==="%%")return"%";if(i>=o)return u;switch(u){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch{return"[Circular]"}break;default:return u}});return s}return e}function gY(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function Rr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||gY(t)&&typeof e=="string"&&!e)}function vY(e,t,r){var n=[],i=0,o=e.length;function s(u){n.push.apply(n,at(u||[])),i++,i===o&&r(n)}e.forEach(function(u){t(u,s)})}function XA(e,t,r){var n=0,i=e.length;function o(s){if(s&&s.length){r(s);return}var u=n;n=n+1,u<i?t(e[u],o):r([])}o([])}function mY(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,at(e[r]||[]))}),t}var KA=(function(e){As(r,e);var t=$s(r);function r(n,i){var o;return nn(this,r),o=t.call(this,"Async Validation Error"),ue(yt(o),"errors",void 0),ue(yt(o),"fields",void 0),o.errors=n,o.fields=i,o}return on(r)})(Kb(Error));function yY(e,t,r,n,i){if(t.first){var o=new Promise(function(h,b){var v=function(E){return n(E),E.length?b(new KA(E,Yb(E))):h(i)},S=mY(e);XA(S,r,v)});return o.catch(function(h){return h}),o}var s=t.firstFields===!0?Object.keys(e):t.firstFields||[],u=Object.keys(e),c=u.length,f=0,d=[],g=new Promise(function(h,b){var v=function(y){if(d.push.apply(d,y),f++,f===c)return n(d),d.length?b(new KA(d,Yb(d))):h(i)};u.length||(n(d),h(i)),u.forEach(function(S){var y=e[S];s.indexOf(S)!==-1?XA(y,r,v):vY(y,r,v)})});return g.catch(function(h){return h}),g}function bY(e){return!!(e&&e.message!==void 0)}function SY(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function YA(e,t){return function(r){var n;return e.fullFields?n=SY(t,e.fullFields):n=t[r.field||e.fullField],bY(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function JA(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];pt(n)==="object"&&pt(e[r])==="object"?e[r]=me(me({},e[r]),n):e[r]=n}}return e}var al="enum",wY=function(t,r,n,i,o){t[al]=Array.isArray(t[al])?t[al]:[],t[al].indexOf(r)===-1&&i.push(Yn(o.messages[al],t.fullField,t[al].join(", ")))},xY=function(t,r,n,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||i.push(Yn(o.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(r)||i.push(Yn(o.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},EY=function(t,r,n,i,o){var s=typeof t.len=="number",u=typeof t.min=="number",c=typeof t.max=="number",f=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=r,g=null,h=typeof r=="number",b=typeof r=="string",v=Array.isArray(r);if(h?g="number":b?g="string":v&&(g="array"),!g)return!1;v&&(d=r.length),b&&(d=r.replace(f,"_").length),s?d!==t.len&&i.push(Yn(o.messages[g].len,t.fullField,t.len)):u&&!c&&d<t.min?i.push(Yn(o.messages[g].min,t.fullField,t.min)):c&&!u&&d>t.max?i.push(Yn(o.messages[g].max,t.fullField,t.max)):u&&c&&(d<t.min||d>t.max)&&i.push(Yn(o.messages[g].range,t.fullField,t.min,t.max))},d5=function(t,r,n,i,o,s){t.required&&(!n.hasOwnProperty(t.field)||Rr(r,s||t.type))&&i.push(Yn(o.messages.required,t.fullField))},Pd;const CY=(function(){if(Pd)return Pd;var e="[a-fA-F\\d:]",t=function($){return $&&$.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",i=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",s="(?:".concat(i.join("|"),")").concat(o),u=new RegExp("(?:^".concat(r,"$)|(?:^").concat(s,"$)")),c=new RegExp("^".concat(r,"$")),f=new RegExp("^".concat(s,"$")),d=function($){return $&&$.exact?u:new RegExp("(?:".concat(t($)).concat(r).concat(t($),")|(?:").concat(t($)).concat(s).concat(t($),")"),"g")};d.v4=function(R){return R&&R.exact?c:new RegExp("".concat(t(R)).concat(r).concat(t(R)),"g")},d.v6=function(R){return R&&R.exact?f:new RegExp("".concat(t(R)).concat(s).concat(t(R)),"g")};var g="(?:(?:[a-z]+:)?//)",h="(?:\\S+(?::\\S*)?@)?",b=d.v4().source,v=d.v6().source,S="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",y="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",E="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",x="(?::\\d{2,5})?",T='(?:[/?#][^\\s"]*)?',A="(?:".concat(g,"|www\\.)").concat(h,"(?:localhost|").concat(b,"|").concat(v,"|").concat(S).concat(y).concat(E,")").concat(x).concat(T);return Pd=new RegExp("(?:^".concat(A,"$)"),"i"),Pd});var K0={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Hu={integer:function(t){return Hu.number(t)&&parseInt(t,10)===t},float:function(t){return Hu.number(t)&&!Hu.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return pt(t)==="object"&&!Hu.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(K0.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(K0.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(CY())},hex:function(t){return typeof t=="string"&&!!t.match(K0.hex)}},RY=function(t,r,n,i,o){if(t.required&&r===void 0){d5(t,r,n,i,o);return}var s=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],u=t.type;s.indexOf(u)>-1?Hu[u](r)||i.push(Yn(o.messages.types[u],t.fullField,t.type)):u&&pt(r)!==t.type&&i.push(Yn(o.messages.types[u],t.fullField,t.type))},_Y=function(t,r,n,i,o){(/^\s+$/.test(r)||r==="")&&i.push(Yn(o.messages.whitespace,t.fullField))};const Et={required:d5,whitespace:_Y,type:RY,range:EY,enum:wY,pattern:xY};var OY=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(Rr(r)&&!t.required)return n();Et.required(t,r,i,s,o)}n(s)},TY=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(r==null&&!t.required)return n();Et.required(t,r,i,s,o,"array"),r!=null&&(Et.type(t,r,i,s,o),Et.range(t,r,i,s,o))}n(s)},AY=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(Rr(r)&&!t.required)return n();Et.required(t,r,i,s,o),r!==void 0&&Et.type(t,r,i,s,o)}n(s)},$Y=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(Rr(r,"date")&&!t.required)return n();if(Et.required(t,r,i,s,o),!Rr(r,"date")){var c;r instanceof Date?c=r:c=new Date(r),Et.type(t,c,i,s,o),c&&Et.range(t,c.getTime(),i,s,o)}}n(s)},IY="enum",PY=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(Rr(r)&&!t.required)return n();Et.required(t,r,i,s,o),r!==void 0&&Et[IY](t,r,i,s,o)}n(s)},kY=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(Rr(r)&&!t.required)return n();Et.required(t,r,i,s,o),r!==void 0&&(Et.type(t,r,i,s,o),Et.range(t,r,i,s,o))}n(s)},MY=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(Rr(r)&&!t.required)return n();Et.required(t,r,i,s,o),r!==void 0&&(Et.type(t,r,i,s,o),Et.range(t,r,i,s,o))}n(s)},DY=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(Rr(r)&&!t.required)return n();Et.required(t,r,i,s,o),r!==void 0&&Et.type(t,r,i,s,o)}n(s)},LY=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(r===""&&(r=void 0),Rr(r)&&!t.required)return n();Et.required(t,r,i,s,o),r!==void 0&&(Et.type(t,r,i,s,o),Et.range(t,r,i,s,o))}n(s)},FY=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(Rr(r)&&!t.required)return n();Et.required(t,r,i,s,o),r!==void 0&&Et.type(t,r,i,s,o)}n(s)},NY=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(Rr(r,"string")&&!t.required)return n();Et.required(t,r,i,s,o),Rr(r,"string")||Et.pattern(t,r,i,s,o)}n(s)},jY=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(Rr(r)&&!t.required)return n();Et.required(t,r,i,s,o),Rr(r)||Et.type(t,r,i,s,o)}n(s)},zY=function(t,r,n,i,o){var s=[],u=Array.isArray(r)?"array":pt(r);Et.required(t,r,i,s,o,u),n(s)},BY=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(Rr(r,"string")&&!t.required)return n();Et.required(t,r,i,s,o,"string"),Rr(r,"string")||(Et.type(t,r,i,s,o),Et.range(t,r,i,s,o),Et.pattern(t,r,i,s,o),t.whitespace===!0&&Et.whitespace(t,r,i,s,o))}n(s)},kd=function(t,r,n,i,o){var s=t.type,u=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(Rr(r,s)&&!t.required)return n();Et.required(t,r,i,u,o,s),Rr(r,s)||Et.type(t,r,i,u,o)}n(u)};const rc={string:BY,method:DY,number:LY,boolean:AY,regexp:jY,integer:MY,float:kY,array:TY,object:FY,enum:PY,pattern:NY,date:$Y,url:kd,hex:kd,email:kd,tel:kd,required:zY,any:OY};var Xc=(function(){function e(t){nn(this,e),ue(this,"rules",null),ue(this,"_messages",Xb),this.define(t)}return on(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(pt(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var o=r[i];n.rules[i]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(r){return r&&(this._messages=JA(Gb(),r)),this._messages}},{key:"validate",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},s=r,u=i,c=o;if(typeof u=="function"&&(c=u,u={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,s),Promise.resolve(s);function f(v){var S=[],y={};function E(T){if(Array.isArray(T)){var A;S=(A=S).concat.apply(A,at(T))}else S.push(T)}for(var x=0;x<v.length;x++)E(v[x]);S.length?(y=Yb(S),c(S,y)):c(null,s)}if(u.messages){var d=this.messages();d===Xb&&(d=Gb()),JA(d,u.messages),u.messages=d}else u.messages=this.messages();var g={},h=u.keys||Object.keys(this.rules);h.forEach(function(v){var S=n.rules[v],y=s[v];S.forEach(function(E){var x=E;typeof x.transform=="function"&&(s===r&&(s=me({},s)),y=s[v]=x.transform(y),y!=null&&(x.type=x.type||(Array.isArray(y)?"array":pt(y)))),typeof x=="function"?x={validator:x}:x=me({},x),x.validator=n.getValidationMethod(x),x.validator&&(x.field=v,x.fullField=x.fullField||v,x.type=n.getType(x),g[v]=g[v]||[],g[v].push({rule:x,value:y,source:s,field:v}))})});var b={};return yY(g,u,function(v,S){var y=v.rule,E=(y.type==="object"||y.type==="array")&&(pt(y.fields)==="object"||pt(y.defaultField)==="object");E=E&&(y.required||!y.required&&v.value),y.field=v.field;function x(O,I){return me(me({},I),{},{fullField:"".concat(y.fullField,".").concat(O),fullFields:y.fullFields?[].concat(at(y.fullFields),[O]):[O]})}function T(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],I=Array.isArray(O)?O:[O];!u.suppressWarning&&I.length&&e.warning("async-validator:",I),I.length&&y.message!==void 0&&y.message!==null&&(I=[].concat(y.message));var L=I.map(YA(y,s));if(u.first&&L.length)return b[y.field]=1,S(L);if(!E)S(L);else{if(y.required&&!v.value)return y.message!==void 0?L=[].concat(y.message).map(YA(y,s)):u.error&&(L=[u.error(y,Yn(u.messages.required,y.field))]),S(L);var F={};y.defaultField&&Object.keys(v.value).map(function(B){F[B]=y.defaultField}),F=me(me({},F),v.rule.fields);var q={};Object.keys(F).forEach(function(B){var N=F[B],j=Array.isArray(N)?N:[N];q[B]=j.map(x.bind(null,B))});var z=new e(q);z.messages(u.messages),v.rule.options&&(v.rule.options.messages=u.messages,v.rule.options.error=u.error),z.validate(v.value,v.rule.options||u,function(B){var N=[];L&&L.length&&N.push.apply(N,at(L)),B&&B.length&&N.push.apply(N,at(B)),S(N.length?N:null)})}}var A;if(y.asyncValidator)A=y.asyncValidator(y,v.value,T,v.source,u);else if(y.validator){try{A=y.validator(y,v.value,T,v.source,u)}catch(O){var R,$;(R=($=console).error)===null||R===void 0||R.call($,O),u.suppressValidatorError||setTimeout(function(){throw O},0),T(O.message)}A===!0?T():A===!1?T(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||"".concat(y.fullField||y.field," fails")):A instanceof Array?T(A):A instanceof Error&&T(A.message)}A&&A.then&&A.then(function(){return T()},function(O){return T(O)})},function(v){f(v)},s)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!rc.hasOwnProperty(r.type))throw new Error(Yn("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),i=n.indexOf("message");return i!==-1&&n.splice(i,1),n.length===1&&n[0]==="required"?rc.required:rc[this.getType(r)]||void 0}}]),e})();ue(Xc,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");rc[t]=r});ue(Xc,"warning",hY);ue(Xc,"messages",Xb);ue(Xc,"validators",rc);var Un="'${name}' is not a valid ${type}",p5={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Un,method:Un,array:Un,object:Un,number:Un,date:Un,boolean:Un,integer:Un,float:Un,regexp:Un,email:Un,url:Un,hex:Un},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},QA=Xc;function VY(e,t){return e.replace(/\$\{\w+\}/g,function(r){var n=r.slice(2,-1);return t[n]})}var ZA="CODE_LOGIC_ERROR";function Jb(e,t,r,n,i){return Qb.apply(this,arguments)}function Qb(){return Qb=Gc(Ii().mark(function e(t,r,n,i,o){var s,u,c,f,d,g,h,b,v;return Ii().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return s=me({},n),delete s.ruleIndex,QA.warning=function(){},s.validator&&(u=s.validator,s.validator=function(){try{return u.apply(void 0,arguments)}catch(E){return console.error(E),Promise.reject(ZA)}}),c=null,s&&s.type==="array"&&s.defaultField&&(c=s.defaultField,delete s.defaultField),f=new QA(ue({},t,[s])),d=Sl(p5,i.validateMessages),f.messages(d),g=[],y.prev=10,y.next=13,Promise.resolve(f.validate(ue({},t,r),me({},i)));case 13:y.next=18;break;case 15:y.prev=15,y.t0=y.catch(10),y.t0.errors&&(g=y.t0.errors.map(function(E,x){var T=E.message,A=T===ZA?d.default:T;return C.isValidElement(A)?C.cloneElement(A,{key:"error_".concat(x)}):A}));case 18:if(!(!g.length&&c)){y.next=23;break}return y.next=21,Promise.all(r.map(function(E,x){return Jb("".concat(t,".").concat(x),E,c,i,o)}));case 21:return h=y.sent,y.abrupt("return",h.reduce(function(E,x){return[].concat(at(E),at(x))},[]));case 23:return b=me(me({},n),{},{name:t,enum:(n.enum||[]).join(", ")},o),v=g.map(function(E){return typeof E=="string"?VY(E,b):E}),y.abrupt("return",v);case 26:case"end":return y.stop()}},e,null,[[10,15]])})),Qb.apply(this,arguments)}function UY(e,t,r,n,i,o){var s=e.join("."),u=r.map(function(d,g){var h=d.validator,b=me(me({},d),{},{ruleIndex:g});return h&&(b.validator=function(v,S,y){var E=!1,x=function(){for(var R=arguments.length,$=new Array(R),O=0;O<R;O++)$[O]=arguments[O];Promise.resolve().then(function(){Qn(!E,"Your validator function has already return a promise. `callback` will be ignored."),E||y.apply(void 0,$)})},T=h(v,S,x);E=T&&typeof T.then=="function"&&typeof T.catch=="function",Qn(E,"`callback` is deprecated. Please return a promise instead."),E&&T.then(function(){y()}).catch(function(A){y(A||" ")})}),b}).sort(function(d,g){var h=d.warningOnly,b=d.ruleIndex,v=g.warningOnly,S=g.ruleIndex;return!!h==!!v?b-S:h?1:-1}),c;if(i===!0)c=new Promise((function(){var d=Gc(Ii().mark(function g(h,b){var v,S,y;return Ii().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:v=0;case 1:if(!(v<u.length)){x.next=12;break}return S=u[v],x.next=5,Jb(s,t,S,n,o);case 5:if(y=x.sent,!y.length){x.next=9;break}return b([{errors:y,rule:S}]),x.abrupt("return");case 9:v+=1,x.next=1;break;case 12:h([]);case 13:case"end":return x.stop()}},g)}));return function(g,h){return d.apply(this,arguments)}})());else{var f=u.map(function(d){return Jb(s,t,d,n,o).then(function(g){return{errors:g,rule:d}})});c=(i?WY(f):HY(f)).then(function(d){return Promise.reject(d)})}return c.catch(function(d){return d}),c}function HY(e){return Zb.apply(this,arguments)}function Zb(){return Zb=Gc(Ii().mark(function e(t){return Ii().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(i){var o,s=(o=[]).concat.apply(o,at(i));return s}));case 1:case"end":return n.stop()}},e)})),Zb.apply(this,arguments)}function WY(e){return e1.apply(this,arguments)}function e1(){return e1=Gc(Ii().mark(function e(t){var r;return Ii().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return r=0,i.abrupt("return",new Promise(function(o){t.forEach(function(s){s.then(function(u){u.errors.length&&o([u]),r+=1,r===t.length&&o([])})})}));case 2:case"end":return i.stop()}},e)})),e1.apply(this,arguments)}function fr(e){return qb(e)}function e$(e,t){var r={};return t.forEach(function(n){var i=Co(e,n);r=Ki(r,n,i)}),r}function Rl(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return h5(t,n,r)})}function h5(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,i){return e[i]===n})}function qY(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||pt(e)!=="object"||pt(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),i=new Set([].concat(r,n));return at(i).every(function(o){var s=e[o],u=t[o];return typeof s=="function"&&typeof u=="function"?!0:s===u})}function GY(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&pt(t.target)==="object"&&e in t.target?t.target[e]:t}function t$(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var i=e[t],o=t-r;return o>0?[].concat(at(e.slice(0,r)),[i],at(e.slice(r,t)),at(e.slice(t+1,n))):o<0?[].concat(at(e.slice(0,t)),at(e.slice(t+1,r+1)),[i],at(e.slice(r+1,n))):e}var XY=["name"],Si=[];function r$(e,t,r,n,i,o){return typeof e=="function"?e(t,r,"source"in o?{source:o.source}:{}):n!==i}var kS=(function(e){As(r,e);var t=$s(r);function r(n){var i;if(nn(this,r),i=t.call(this,n),ue(yt(i),"state",{resetCount:0}),ue(yt(i),"cancelRegisterFunc",null),ue(yt(i),"mounted",!1),ue(yt(i),"touched",!1),ue(yt(i),"dirty",!1),ue(yt(i),"validatePromise",void 0),ue(yt(i),"prevValidating",void 0),ue(yt(i),"errors",Si),ue(yt(i),"warnings",Si),ue(yt(i),"cancelRegister",function(){var c=i.props,f=c.preserve,d=c.isListField,g=c.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(d,f,fr(g)),i.cancelRegisterFunc=null}),ue(yt(i),"getNamePath",function(){var c=i.props,f=c.name,d=c.fieldContext,g=d.prefixName,h=g===void 0?[]:g;return f!==void 0?[].concat(at(h),at(f)):[]}),ue(yt(i),"getRules",function(){var c=i.props,f=c.rules,d=f===void 0?[]:f,g=c.fieldContext;return d.map(function(h){return typeof h=="function"?h(g):h})}),ue(yt(i),"refresh",function(){i.mounted&&i.setState(function(c){var f=c.resetCount;return{resetCount:f+1}})}),ue(yt(i),"metaCache",null),ue(yt(i),"triggerMetaEvent",function(c){var f=i.props.onMetaChange;if(f){var d=me(me({},i.getMeta()),{},{destroy:c});bb(i.metaCache,d)||f(d),i.metaCache=d}else i.metaCache=null}),ue(yt(i),"onStoreChange",function(c,f,d){var g=i.props,h=g.shouldUpdate,b=g.dependencies,v=b===void 0?[]:b,S=g.onReset,y=d.store,E=i.getNamePath(),x=i.getValue(c),T=i.getValue(y),A=f&&Rl(f,E);switch(d.type==="valueUpdate"&&d.source==="external"&&!bb(x,T)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Si,i.warnings=Si,i.triggerMetaEvent()),d.type){case"reset":if(!f||A){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Si,i.warnings=Si,i.triggerMetaEvent(),S?.(),i.refresh();return}break;case"remove":{if(h){i.reRender();return}break}case"setField":{var R=d.data;if(A){"touched"in R&&(i.touched=R.touched),"validating"in R&&!("originRCField"in R)&&(i.validatePromise=R.validating?Promise.resolve([]):null),"errors"in R&&(i.errors=R.errors||Si),"warnings"in R&&(i.warnings=R.warnings||Si),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in R&&Rl(f,E,!0)){i.reRender();return}if(h&&!E.length&&r$(h,c,y,x,T,d)){i.reRender();return}break}case"dependenciesUpdate":{var $=v.map(fr);if($.some(function(O){return Rl(d.relatedFields,O)})){i.reRender();return}break}default:if(A||(!v.length||E.length||h)&&r$(h,c,y,x,T,d)){i.reRender();return}break}h===!0&&i.reRender()}),ue(yt(i),"validateRules",function(c){var f=i.getNamePath(),d=i.getValue(),g=c||{},h=g.triggerName,b=g.validateOnly,v=b===void 0?!1:b,S=Promise.resolve().then(Gc(Ii().mark(function y(){var E,x,T,A,R,$,O;return Ii().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:if(i.mounted){L.next=2;break}return L.abrupt("return",[]);case 2:if(E=i.props,x=E.validateFirst,T=x===void 0?!1:x,A=E.messageVariables,R=E.validateDebounce,$=i.getRules(),h&&($=$.filter(function(F){return F}).filter(function(F){var q=F.validateTrigger;if(!q)return!0;var z=qb(q);return z.includes(h)})),!(R&&h)){L.next=10;break}return L.next=8,new Promise(function(F){setTimeout(F,R)});case 8:if(i.validatePromise===S){L.next=10;break}return L.abrupt("return",[]);case 10:return O=UY(f,d,$,c,T,A),O.catch(function(F){return F}).then(function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Si;if(i.validatePromise===S){var q;i.validatePromise=null;var z=[],B=[];(q=F.forEach)===null||q===void 0||q.call(F,function(N){var j=N.rule.warningOnly,H=N.errors,X=H===void 0?Si:H;j?B.push.apply(B,at(X)):z.push.apply(z,at(X))}),i.errors=z,i.warnings=B,i.triggerMetaEvent(),i.reRender()}}),L.abrupt("return",O);case 13:case"end":return L.stop()}},y)})));return v||(i.validatePromise=S,i.dirty=!0,i.errors=Si,i.warnings=Si,i.triggerMetaEvent(),i.reRender()),S}),ue(yt(i),"isFieldValidating",function(){return!!i.validatePromise}),ue(yt(i),"isFieldTouched",function(){return i.touched}),ue(yt(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var c=i.props.fieldContext,f=c.getInternalHooks(ps),d=f.getInitialValue;return d(i.getNamePath())!==void 0}),ue(yt(i),"getErrors",function(){return i.errors}),ue(yt(i),"getWarnings",function(){return i.warnings}),ue(yt(i),"isListField",function(){return i.props.isListField}),ue(yt(i),"isList",function(){return i.props.isList}),ue(yt(i),"isPreserve",function(){return i.props.preserve}),ue(yt(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var c={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return c}),ue(yt(i),"getOnlyChild",function(c){if(typeof c=="function"){var f=i.getMeta();return me(me({},i.getOnlyChild(c(i.getControlled(),f,i.props.fieldContext))),{},{isFunction:!0})}var d=Nl(c);return d.length!==1||!C.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),ue(yt(i),"getValue",function(c){var f=i.props.fieldContext.getFieldsValue,d=i.getNamePath();return Co(c||f(!0),d)}),ue(yt(i),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=i.props,d=f.name,g=f.trigger,h=f.validateTrigger,b=f.getValueFromEvent,v=f.normalize,S=f.valuePropName,y=f.getValueProps,E=f.fieldContext,x=h!==void 0?h:E.validateTrigger,T=i.getNamePath(),A=E.getInternalHooks,R=E.getFieldsValue,$=A(ps),O=$.dispatch,I=i.getValue(),L=y||function(N){return ue({},S,N)},F=c[g],q=d!==void 0?L(I):{},z=me(me({},c),q);z[g]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var N,j=arguments.length,H=new Array(j),X=0;X<j;X++)H[X]=arguments[X];b?N=b.apply(void 0,H):N=GY.apply(void 0,[S].concat(H)),v&&(N=v(N,I,R(!0))),O({type:"updateValue",namePath:T,value:N}),F&&F.apply(void 0,H)};var B=qb(x||[]);return B.forEach(function(N){var j=z[N];z[N]=function(){j&&j.apply(void 0,arguments);var H=i.props.rules;H&&H.length&&O({type:"validateField",namePath:T,triggerName:N})}}),z}),n.fieldContext){var o=n.fieldContext.getInternalHooks,s=o(ps),u=s.initEntityValue;u(yt(i))}return i}return on(r,[{key:"componentDidMount",value:function(){var i=this.props,o=i.shouldUpdate,s=i.fieldContext;if(this.mounted=!0,s){var u=s.getInternalHooks,c=u(ps),f=c.registerField;this.cancelRegisterFunc=f(this)}o===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var i=this.state.resetCount,o=this.props.children,s=this.getOnlyChild(o),u=s.child,c=s.isFunction,f;return c?f=u:C.isValidElement(u)?f=C.cloneElement(u,this.getControlled(u.props)):(Qn(!u,"`children` of Field is not validate ReactElement."),f=u),C.createElement(C.Fragment,{key:i},f)}}]),r})(C.Component);ue(kS,"contextType",Wl);ue(kS,"defaultProps",{trigger:"onChange",valuePropName:"value"});function g5(e){var t=e.name,r=ei(e,XY),n=C.useContext(Wl),i=C.useContext(Lp),o=t!==void 0?fr(t):void 0,s="keep";return r.isListField||(s="_".concat((o||[]).join("_"))),C.createElement(kS,hr({key:s,name:o,isListField:!!i},r,{fieldContext:n}))}function KY(e){var t=e.name,r=e.initialValue,n=e.children,i=e.rules,o=e.validateTrigger,s=e.isListField,u=C.useContext(Wl),c=C.useContext(Lp),f=C.useRef({keys:[],id:0}),d=f.current,g=C.useMemo(function(){var S=fr(u.prefixName)||[];return[].concat(at(S),at(fr(t)))},[u.prefixName,t]),h=C.useMemo(function(){return me(me({},u),{},{prefixName:g})},[u,g]),b=C.useMemo(function(){return{getKey:function(y){var E=g.length,x=y[E];return[d.keys[x],y.slice(E+1)]}}},[g]);if(typeof n!="function")return Qn(!1,"Form.List only accepts function as children."),null;var v=function(y,E,x){var T=x.source;return T==="internal"?!1:y!==E};return C.createElement(Lp.Provider,{value:b},C.createElement(Wl.Provider,{value:h},C.createElement(g5,{name:[],shouldUpdate:v,rules:i,validateTrigger:o,initialValue:r,isList:!0,isListField:s??!!c},function(S,y){var E=S.value,x=E===void 0?[]:E,T=S.onChange,A=u.getFieldValue,R=function(){var L=A(g||[]);return L||[]},$={add:function(L,F){var q=R();F>=0&&F<=q.length?(d.keys=[].concat(at(d.keys.slice(0,F)),[d.id],at(d.keys.slice(F))),T([].concat(at(q.slice(0,F)),[L],at(q.slice(F))))):(d.keys=[].concat(at(d.keys),[d.id]),T([].concat(at(q),[L]))),d.id+=1},remove:function(L){var F=R(),q=new Set(Array.isArray(L)?L:[L]);q.size<=0||(d.keys=d.keys.filter(function(z,B){return!q.has(B)}),T(F.filter(function(z,B){return!q.has(B)})))},move:function(L,F){if(L!==F){var q=R();L<0||L>=q.length||F<0||F>=q.length||(d.keys=t$(d.keys,L,F),T(t$(q,L,F)))}}},O=x||[];return Array.isArray(O)||(O=[]),n(O.map(function(I,L){var F=d.keys[L];return F===void 0&&(d.keys[L]=d.id,F=d.keys[L],d.id+=1),{name:L,key:F,isListField:!0}}),$,y)})))}function YY(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(i,o){e.forEach(function(s,u){s.catch(function(c){return t=!0,c}).then(function(c){r-=1,n[u]=c,!(r>0)&&(t&&o(n),i(n))})})}):Promise.resolve([])}var v5="__@field_split__";function Y0(e){return e.map(function(t){return"".concat(pt(t),":").concat(t)}).join(v5)}var sl=(function(){function e(){nn(this,e),ue(this,"kvs",new Map)}return on(e,[{key:"set",value:function(r,n){this.kvs.set(Y0(r),n)}},{key:"get",value:function(r){return this.kvs.get(Y0(r))}},{key:"update",value:function(r,n){var i=this.get(r),o=n(i);o?this.set(r,o):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(Y0(r))}},{key:"map",value:function(r){return at(this.kvs.entries()).map(function(n){var i=Fe(n,2),o=i[0],s=i[1],u=o.split(v5);return r({key:u.map(function(c){var f=c.match(/^([^:]*):(.*)$/),d=Fe(f,3),g=d[1],h=d[2];return g==="number"?Number(h):h}),value:s})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var i=n.key,o=n.value;return r[i.join(".")]=o,null}),r}}]),e})(),JY=["name"],QY=on(function e(t){var r=this;nn(this,e),ue(this,"formHooked",!1),ue(this,"forceRootUpdate",void 0),ue(this,"subscribable",!0),ue(this,"store",{}),ue(this,"fieldEntities",[]),ue(this,"initialValues",{}),ue(this,"callbacks",{}),ue(this,"validateMessages",null),ue(this,"preserve",null),ue(this,"lastValidatePromise",null),ue(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),ue(this,"getInternalHooks",function(n){return n===ps?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(Qn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),ue(this,"useSubscribe",function(n){r.subscribable=n}),ue(this,"prevWithoutPreserves",null),ue(this,"setInitialValues",function(n,i){if(r.initialValues=n||{},i){var o,s=Sl(n,r.store);(o=r.prevWithoutPreserves)===null||o===void 0||o.map(function(u){var c=u.key;s=Ki(s,c,Co(n,c))}),r.prevWithoutPreserves=null,r.updateStore(s)}}),ue(this,"destroyForm",function(n){if(n)r.updateStore({});else{var i=new sl;r.getFieldEntities(!0).forEach(function(o){r.isMergedPreserve(o.isPreserve())||i.set(o.getNamePath(),!0)}),r.prevWithoutPreserves=i}}),ue(this,"getInitialValue",function(n){var i=Co(r.initialValues,n);return n.length?Sl(i):i}),ue(this,"setCallbacks",function(n){r.callbacks=n}),ue(this,"setValidateMessages",function(n){r.validateMessages=n}),ue(this,"setPreserve",function(n){r.preserve=n}),ue(this,"watchList",[]),ue(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(i){return i!==n})}}),ue(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var i=r.getFieldsValue(),o=r.getFieldsValue(!0);r.watchList.forEach(function(s){s(i,o,n)})}}),ue(this,"timeoutId",null),ue(this,"warningUnhooked",function(){}),ue(this,"updateStore",function(n){r.store=n}),ue(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(i){return i.getNamePath().length}):r.fieldEntities}),ue(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new sl;return r.getFieldEntities(n).forEach(function(o){var s=o.getNamePath();i.set(s,o)}),i}),ue(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var i=r.getFieldsMap(!0);return n.map(function(o){var s=fr(o);return i.get(s)||{INVALIDATE_NAME_PATH:fr(o)}})}),ue(this,"getFieldsValue",function(n,i){r.warningUnhooked();var o,s,u;if(n===!0||Array.isArray(n)?(o=n,s=i):n&&pt(n)==="object"&&(u=n.strict,s=n.filter),o===!0&&!s)return r.store;var c=r.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),f=[];return c.forEach(function(d){var g,h,b="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(u){var v,S;if((v=(S=d).isList)!==null&&v!==void 0&&v.call(S))return}else if(!o&&(g=(h=d).isListField)!==null&&g!==void 0&&g.call(h))return;if(!s)f.push(b);else{var y="getMeta"in d?d.getMeta():null;s(y)&&f.push(b)}}),e$(r.store,f.map(fr))}),ue(this,"getFieldValue",function(n){r.warningUnhooked();var i=fr(n);return Co(r.store,i)}),ue(this,"getFieldsError",function(n){r.warningUnhooked();var i=r.getFieldEntitiesForNamePathList(n);return i.map(function(o,s){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:fr(n[s]),errors:[],warnings:[]}})}),ue(this,"getFieldError",function(n){r.warningUnhooked();var i=fr(n),o=r.getFieldsError([i])[0];return o.errors}),ue(this,"getFieldWarning",function(n){r.warningUnhooked();var i=fr(n),o=r.getFieldsError([i])[0];return o.warnings}),ue(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var s=i[0],u=i[1],c,f=!1;i.length===0?c=null:i.length===1?Array.isArray(s)?(c=s.map(fr),f=!1):(c=null,f=s):(c=s.map(fr),f=u);var d=r.getFieldEntities(!0),g=function(y){return y.isFieldTouched()};if(!c)return f?d.every(function(S){return g(S)||S.isList()}):d.some(g);var h=new sl;c.forEach(function(S){h.set(S,[])}),d.forEach(function(S){var y=S.getNamePath();c.forEach(function(E){E.every(function(x,T){return y[T]===x})&&h.update(E,function(x){return[].concat(at(x),[S])})})});var b=function(y){return y.some(g)},v=h.map(function(S){var y=S.value;return y});return f?v.every(b):v.some(b)}),ue(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),ue(this,"isFieldsValidating",function(n){r.warningUnhooked();var i=r.getFieldEntities();if(!n)return i.some(function(s){return s.isFieldValidating()});var o=n.map(fr);return i.some(function(s){var u=s.getNamePath();return Rl(o,u)&&s.isFieldValidating()})}),ue(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),ue(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=new sl,o=r.getFieldEntities(!0);o.forEach(function(c){var f=c.props.initialValue,d=c.getNamePath();if(f!==void 0){var g=i.get(d)||new Set;g.add({entity:c,value:f}),i.set(d,g)}});var s=function(f){f.forEach(function(d){var g=d.props.initialValue;if(g!==void 0){var h=d.getNamePath(),b=r.getInitialValue(h);if(b!==void 0)Qn(!1,"Form already set 'initialValues' with path '".concat(h.join("."),"'. Field can not overwrite it."));else{var v=i.get(h);if(v&&v.size>1)Qn(!1,"Multiple Field with path '".concat(h.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var S=r.getFieldValue(h),y=d.isListField();!y&&(!n.skipExist||S===void 0)&&r.updateStore(Ki(r.store,h,at(v)[0].value))}}}})},u;n.entities?u=n.entities:n.namePathList?(u=[],n.namePathList.forEach(function(c){var f=i.get(c);if(f){var d;(d=u).push.apply(d,at(at(f).map(function(g){return g.entity})))}})):u=o,s(u)}),ue(this,"resetFields",function(n){r.warningUnhooked();var i=r.store;if(!n){r.updateStore(Sl(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(i,null,{type:"reset"}),r.notifyWatch();return}var o=n.map(fr);o.forEach(function(s){var u=r.getInitialValue(s);r.updateStore(Ki(r.store,s,u))}),r.resetWithFieldInitialValue({namePathList:o}),r.notifyObservers(i,o,{type:"reset"}),r.notifyWatch(o)}),ue(this,"setFields",function(n){r.warningUnhooked();var i=r.store,o=[];n.forEach(function(s){var u=s.name,c=ei(s,JY),f=fr(u);o.push(f),"value"in c&&r.updateStore(Ki(r.store,f,c.value)),r.notifyObservers(i,[f],{type:"setField",data:s})}),r.notifyWatch(o)}),ue(this,"getFields",function(){var n=r.getFieldEntities(!0),i=n.map(function(o){var s=o.getNamePath(),u=o.getMeta(),c=me(me({},u),{},{name:s,value:r.getFieldValue(s)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return i}),ue(this,"initEntityValue",function(n){var i=n.props.initialValue;if(i!==void 0){var o=n.getNamePath(),s=Co(r.store,o);s===void 0&&r.updateStore(Ki(r.store,o,i))}}),ue(this,"isMergedPreserve",function(n){var i=n!==void 0?n:r.preserve;return i??!0}),ue(this,"registerField",function(n){r.fieldEntities.push(n);var i=n.getNamePath();if(r.notifyWatch([i]),n.props.initialValue!==void 0){var o=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(o,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(s,u){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(g){return g!==n}),!r.isMergedPreserve(u)&&(!s||c.length>1)){var f=s?void 0:r.getInitialValue(i);if(i.length&&r.getFieldValue(i)!==f&&r.fieldEntities.every(function(g){return!h5(g.getNamePath(),i)})){var d=r.store;r.updateStore(Ki(d,i,f,!0)),r.notifyObservers(d,[i],{type:"remove"}),r.triggerDependenciesUpdate(d,i)}}r.notifyWatch([i])}}),ue(this,"dispatch",function(n){switch(n.type){case"updateValue":{var i=n.namePath,o=n.value;r.updateValue(i,o);break}case"validateField":{var s=n.namePath,u=n.triggerName;r.validateFields([s],{triggerName:u});break}}}),ue(this,"notifyObservers",function(n,i,o){if(r.subscribable){var s=me(me({},o),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(u){var c=u.onStoreChange;c(n,i,s)})}else r.forceRootUpdate()}),ue(this,"triggerDependenciesUpdate",function(n,i){var o=r.getDependencyChildrenFields(i);return o.length&&r.validateFields(o),r.notifyObservers(n,o,{type:"dependenciesUpdate",relatedFields:[i].concat(at(o))}),o}),ue(this,"updateValue",function(n,i){var o=fr(n),s=r.store;r.updateStore(Ki(r.store,o,i)),r.notifyObservers(s,[o],{type:"valueUpdate",source:"internal"}),r.notifyWatch([o]);var u=r.triggerDependenciesUpdate(s,o),c=r.callbacks.onValuesChange;if(c){var f=e$(r.store,[o]);c(f,r.getFieldsValue())}r.triggerOnFieldsChange([o].concat(at(u)))}),ue(this,"setFieldsValue",function(n){r.warningUnhooked();var i=r.store;if(n){var o=Sl(r.store,n);r.updateStore(o)}r.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),ue(this,"setFieldValue",function(n,i){r.setFields([{name:n,value:i}])}),ue(this,"getDependencyChildrenFields",function(n){var i=new Set,o=[],s=new sl;r.getFieldEntities().forEach(function(c){var f=c.props.dependencies;(f||[]).forEach(function(d){var g=fr(d);s.update(g,function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return h.add(c),h})})});var u=function c(f){var d=s.get(f)||new Set;d.forEach(function(g){if(!i.has(g)){i.add(g);var h=g.getNamePath();g.isFieldDirty()&&h.length&&(o.push(h),c(h))}})};return u(n),o}),ue(this,"triggerOnFieldsChange",function(n,i){var o=r.callbacks.onFieldsChange;if(o){var s=r.getFields();if(i){var u=new sl;i.forEach(function(f){var d=f.name,g=f.errors;u.set(d,g)}),s.forEach(function(f){f.errors=u.get(f.name)||f.errors})}var c=s.filter(function(f){var d=f.name;return Rl(n,d)});c.length&&o(c,s)}}),ue(this,"validateFields",function(n,i){r.warningUnhooked();var o,s;Array.isArray(n)||typeof n=="string"||typeof i=="string"?(o=n,s=i):s=n;var u=!!o,c=u?o.map(fr):[],f=[],d=String(Date.now()),g=new Set,h=s||{},b=h.recursive,v=h.dirty;r.getFieldEntities(!0).forEach(function(x){if(u||c.push(x.getNamePath()),!(!x.props.rules||!x.props.rules.length)&&!(v&&!x.isFieldDirty())){var T=x.getNamePath();if(g.add(T.join(d)),!u||Rl(c,T,b)){var A=x.validateRules(me({validateMessages:me(me({},p5),r.validateMessages)},s));f.push(A.then(function(){return{name:T,errors:[],warnings:[]}}).catch(function(R){var $,O=[],I=[];return($=R.forEach)===null||$===void 0||$.call(R,function(L){var F=L.rule.warningOnly,q=L.errors;F?I.push.apply(I,at(q)):O.push.apply(O,at(q))}),O.length?Promise.reject({name:T,errors:O,warnings:I}):{name:T,errors:O,warnings:I}}))}}});var S=YY(f);r.lastValidatePromise=S,S.catch(function(x){return x}).then(function(x){var T=x.map(function(A){var R=A.name;return R});r.notifyObservers(r.store,T,{type:"validateFinish"}),r.triggerOnFieldsChange(T,x)});var y=S.then(function(){return r.lastValidatePromise===S?Promise.resolve(r.getFieldsValue(c)):Promise.reject([])}).catch(function(x){var T=x.filter(function(A){return A&&A.errors.length});return Promise.reject({values:r.getFieldsValue(c),errorFields:T,outOfDate:r.lastValidatePromise!==S})});y.catch(function(x){return x});var E=c.filter(function(x){return g.has(x.join(d))});return r.triggerOnFieldsChange(E),y}),ue(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var i=r.callbacks.onFinish;if(i)try{i(n)}catch(o){console.error(o)}}).catch(function(n){var i=r.callbacks.onFinishFailed;i&&i(n)})}),this.forceRootUpdate=t});function m5(e){var t=C.useRef(),r=C.useState({}),n=Fe(r,2),i=n[1];if(!t.current)if(e)t.current=e;else{var o=function(){i({})},s=new QY(o);t.current=s.getForm()}return[t.current]}var t1=C.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),ZY=function(t){var r=t.validateMessages,n=t.onFormChange,i=t.onFormFinish,o=t.children,s=C.useContext(t1),u=C.useRef({});return C.createElement(t1.Provider,{value:me(me({},s),{},{validateMessages:me(me({},s.validateMessages),r),triggerFormChange:function(f,d){n&&n(f,{changedFields:d,forms:u.current}),s.triggerFormChange(f,d)},triggerFormFinish:function(f,d){i&&i(f,{values:d,forms:u.current}),s.triggerFormFinish(f,d)},registerForm:function(f,d){f&&(u.current=me(me({},u.current),{},ue({},f,d))),s.registerForm(f,d)},unregisterForm:function(f){var d=me({},u.current);delete d[f],u.current=d,s.unregisterForm(f)}})},o)},eJ=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],tJ=function(t,r){var n=t.name,i=t.initialValues,o=t.fields,s=t.form,u=t.preserve,c=t.children,f=t.component,d=f===void 0?"form":f,g=t.validateMessages,h=t.validateTrigger,b=h===void 0?"onChange":h,v=t.onValuesChange,S=t.onFieldsChange,y=t.onFinish,E=t.onFinishFailed,x=t.clearOnDestroy,T=ei(t,eJ),A=C.useRef(null),R=C.useContext(t1),$=m5(s),O=Fe($,1),I=O[0],L=I.getInternalHooks(ps),F=L.useSubscribe,q=L.setInitialValues,z=L.setCallbacks,B=L.setValidateMessages,N=L.setPreserve,j=L.destroyForm;C.useImperativeHandle(r,function(){return me(me({},I),{},{nativeElement:A.current})}),C.useEffect(function(){return R.registerForm(n,I),function(){R.unregisterForm(n)}},[R,I,n]),B(me(me({},R.validateMessages),g)),z({onValuesChange:v,onFieldsChange:function(Z){if(R.triggerFormChange(n,Z),S){for(var te=arguments.length,K=new Array(te>1?te-1:0),be=1;be<te;be++)K[be-1]=arguments[be];S.apply(void 0,[Z].concat(K))}},onFinish:function(Z){R.triggerFormFinish(n,Z),y&&y(Z)},onFinishFailed:E}),N(u);var H=C.useRef(null);q(i,!H.current),H.current||(H.current=!0),C.useEffect(function(){return function(){return j(x)}},[]);var X,M=typeof c=="function";if(M){var Q=I.getFieldsValue(!0);X=c(Q,I)}else X=c;F(!M);var W=C.useRef();C.useEffect(function(){qY(W.current||[],o||[])||I.setFields(o||[]),W.current=o},[o,I]);var D=C.useMemo(function(){return me(me({},I),{},{validateTrigger:b})},[I,b]),P=C.createElement(Lp.Provider,{value:null},C.createElement(Wl.Provider,{value:D},X));return d===!1?P:C.createElement(d,hr({},T,{ref:A,onSubmit:function(Z){Z.preventDefault(),Z.stopPropagation(),I.submit()},onReset:function(Z){var te;Z.preventDefault(),I.resetFields(),(te=T.onReset)===null||te===void 0||te.call(T,Z)}}),P)};function n$(e){try{return JSON.stringify(e)}catch{return Math.random()}}function rJ(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],i=t[1],o=i===void 0?{}:i,s=cY(o)?{form:o}:o,u=s.form,c=C.useState(),f=Fe(c,2),d=f[0],g=f[1],h=C.useMemo(function(){return n$(d)},[d]),b=C.useRef(h);b.current=h;var v=C.useContext(Wl),S=u||v,y=S&&S._init,E=fr(n),x=C.useRef(E);return x.current=E,C.useEffect(function(){if(y){var T=S.getFieldsValue,A=S.getInternalHooks,R=A(ps),$=R.registerWatch,O=function(q,z){var B=s.preserve?z:q;return typeof n=="function"?n(B):Co(B,x.current)},I=$(function(F,q){var z=O(F,q),B=n$(z);b.current!==B&&(b.current=B,g(z))}),L=O(T(),T(!0));return d!==L&&g(L),I}},[y]),d}var nJ=C.forwardRef(tJ),Kc=nJ;Kc.FormProvider=ZY;Kc.Field=g5;Kc.List=KY;Kc.useForm=m5;Kc.useWatch=rJ;const r1=C.createContext({}),iJ=e=>{let{children:t,status:r,override:n}=e;const i=C.useContext(r1),o=C.useMemo(()=>{const s=Object.assign({},i);return n&&delete s.isFormItemInput,r&&(delete s.status,delete s.hasFeedback,delete s.feedbackIcon),s},[r,n,i]);return C.createElement(r1.Provider,{value:o},t)},oJ=C.createContext(void 0),aJ=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let i=n;return r&&(i=oe.createElement(iJ,{override:!0,status:!0},i)),t&&(i=oe.createElement(YK,null,i)),i};var sJ=function(t){if(kn()&&window.document.documentElement){var r=Array.isArray(t)?t:[t],n=window.document.documentElement;return r.some(function(i){return i in n.style})}return!1};function i$(e,t){return sJ(e)}const lJ=e=>({animationDuration:e,animationFillMode:"both"}),uJ=e=>({animationDuration:e,animationFillMode:"both"}),cJ=function(e,t,r,n){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
1158
+ ${o}${e}-enter,
1159
+ ${o}${e}-appear
1160
+ `]:Object.assign(Object.assign({},lJ(n)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},uJ(n)),{animationPlayState:"paused"}),[`
1161
+ ${o}${e}-enter${e}-enter-active,
1162
+ ${o}${e}-appear${e}-appear-active
1163
+ `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},fJ=new Mi("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),dJ=new Mi("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),o$=new Mi("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),a$=new Mi("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),pJ=new Mi("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),hJ=new Mi("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),gJ=new Mi("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),vJ=new Mi("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),mJ=new Mi("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),yJ=new Mi("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),bJ=new Mi("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),SJ=new Mi("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),wJ={zoom:{inKeyframes:fJ,outKeyframes:dJ},"zoom-big":{inKeyframes:o$,outKeyframes:a$},"zoom-big-fast":{inKeyframes:o$,outKeyframes:a$},"zoom-left":{inKeyframes:gJ,outKeyframes:vJ},"zoom-right":{inKeyframes:mJ,outKeyframes:yJ},"zoom-up":{inKeyframes:pJ,outKeyframes:hJ},"zoom-down":{inKeyframes:bJ,outKeyframes:SJ}},xJ=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:i,outKeyframes:o}=wJ[t];return[cJ(n,i,o,e.motionDurationFast),{[`
1164
+ ${n}-enter,
1165
+ ${n}-appear
1166
+ `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},EJ=(function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e?.substr(0,4))});function CJ(e){var t=e.prefixCls,r=e.align,n=e.arrow,i=e.arrowPos,o=n||{},s=o.className,u=o.content,c=i.x,f=c===void 0?0:c,d=i.y,g=d===void 0?0:d,h=C.useRef();if(!r||!r.points)return null;var b={position:"absolute"};if(r.autoArrow!==!1){var v=r.points[0],S=r.points[1],y=v[0],E=v[1],x=S[0],T=S[1];y===x||!["t","b"].includes(y)?b.top=g:y==="t"?b.top=0:b.bottom=0,E===T||!["l","r"].includes(E)?b.left=f:E==="l"?b.left=0:b.right=0}return C.createElement("div",{ref:h,className:Ct("".concat(t,"-arrow"),s),style:b},u)}function RJ(e){var t=e.prefixCls,r=e.open,n=e.zIndex,i=e.mask,o=e.motion;return i?C.createElement(IS,hr({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(s){var u=s.className;return C.createElement("div",{style:{zIndex:n},className:Ct("".concat(t,"-mask"),u)})}):null}var _J=C.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),OJ=C.forwardRef(function(e,t){var r=e.popup,n=e.className,i=e.prefixCls,o=e.style,s=e.target,u=e.onVisibleChanged,c=e.open,f=e.keepDom,d=e.fresh,g=e.onClick,h=e.mask,b=e.arrow,v=e.arrowPos,S=e.align,y=e.motion,E=e.maskMotion,x=e.forceRender,T=e.getPopupContainer,A=e.autoDestroy,R=e.portal,$=e.zIndex,O=e.onMouseEnter,I=e.onMouseLeave,L=e.onPointerEnter,F=e.onPointerDownCapture,q=e.ready,z=e.offsetX,B=e.offsetY,N=e.offsetR,j=e.offsetB,H=e.onAlign,X=e.onPrepare,M=e.stretch,Q=e.targetWidth,W=e.targetHeight,D=typeof r=="function"?r():r,P=c||f,G=T?.length>0,Z=C.useState(!T||!G),te=Fe(Z,2),K=te[0],be=te[1];if(lr(function(){!K&&G&&s&&be(!0)},[K,G,s]),!K)return null;var ae="auto",Se={left:"-1000vw",top:"-1000vh",right:ae,bottom:ae};if(q||!c){var he,Ee=S.points,we=S.dynamicInset||((he=S._experimental)===null||he===void 0?void 0:he.dynamicInset),Te=we&&Ee[0][1]==="r",Ce=we&&Ee[0][0]==="b";Te?(Se.right=N,Se.left=ae):(Se.left=z,Se.right=ae),Ce?(Se.bottom=j,Se.top=ae):(Se.top=B,Se.bottom=ae)}var _e={};return M&&(M.includes("height")&&W?_e.height=W:M.includes("minHeight")&&W&&(_e.minHeight=W),M.includes("width")&&Q?_e.width=Q:M.includes("minWidth")&&Q&&(_e.minWidth=Q)),c||(_e.pointerEvents="none"),C.createElement(R,{open:x||P,getContainer:T&&function(){return T(s)},autoDestroy:A},C.createElement(RJ,{prefixCls:i,open:c,zIndex:$,mask:h,motion:E}),C.createElement(Wc,{onResize:H,disabled:!c},function($e){return C.createElement(IS,hr({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:x,leavedClassName:"".concat(i,"-hidden")},y,{onAppearPrepare:X,onEnterPrepare:X,visible:c,onVisibleChanged:function(Ge){var Qe;y==null||(Qe=y.onVisibleChanged)===null||Qe===void 0||Qe.call(y,Ge),u(Ge)}}),function(ke,Ge){var Qe=ke.className,je=ke.style,ze=Ct(i,Qe,n);return C.createElement("div",{ref:uh($e,t,Ge),className:ze,style:me(me(me(me({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},Se),_e),je),{},{boxSizing:"border-box",zIndex:$},o),onMouseEnter:O,onMouseLeave:I,onPointerEnter:L,onClick:g,onPointerDownCapture:F},b&&C.createElement(CJ,{prefixCls:i,arrow:b,arrowPos:v,align:S}),C.createElement(_J,{cache:!c&&!d},D))})}))}),TJ=C.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,i=ch(r),o=C.useCallback(function(u){mS(t,n?n(u):u)},[n]),s=yS(o,bS(r));return i?C.cloneElement(r,{ref:s}):r}),s$=C.createContext(null);function l$(e){return e?Array.isArray(e)?e:[e]:[]}function AJ(e,t,r,n){return C.useMemo(function(){var i=l$(r??t),o=l$(n??t),s=new Set(i),u=new Set(o);return e&&(s.has("hover")&&(s.delete("hover"),s.add("click")),u.has("hover")&&(u.delete("hover"),u.add("click"))),[s,u]},[e,t,r,n])}function $J(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function IJ(e,t,r,n){for(var i=r.points,o=Object.keys(e),s=0;s<o.length;s+=1){var u,c=o[s];if($J((u=e[c])===null||u===void 0?void 0:u.points,i,n))return"".concat(t,"-placement-").concat(c)}return""}function u$(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function Yc(e){return e.ownerDocument.defaultView}function n1(e){for(var t=[],r=e?.parentElement,n=["hidden","scroll","clip","auto"];r;){var i=Yc(r).getComputedStyle(r),o=i.overflowX,s=i.overflowY,u=i.overflow;[o,s,u].some(function(c){return n.includes(c)})&&t.push(r),r=r.parentElement}return t}function $c(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Du(e){return $c(parseFloat(e),0)}function c$(e,t){var r=me({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var i=Yc(n).getComputedStyle(n),o=i.overflow,s=i.overflowClipMargin,u=i.borderTopWidth,c=i.borderBottomWidth,f=i.borderLeftWidth,d=i.borderRightWidth,g=n.getBoundingClientRect(),h=n.offsetHeight,b=n.clientHeight,v=n.offsetWidth,S=n.clientWidth,y=Du(u),E=Du(c),x=Du(f),T=Du(d),A=$c(Math.round(g.width/v*1e3)/1e3),R=$c(Math.round(g.height/h*1e3)/1e3),$=(v-S-x-T)*A,O=(h-b-y-E)*R,I=y*R,L=E*R,F=x*A,q=T*A,z=0,B=0;if(o==="clip"){var N=Du(s);z=N*A,B=N*R}var j=g.x+F-z,H=g.y+I-B,X=j+g.width+2*z-F-q-$,M=H+g.height+2*B-I-L-O;r.left=Math.max(r.left,j),r.top=Math.max(r.top,H),r.right=Math.min(r.right,X),r.bottom=Math.min(r.bottom,M)}}),r}function f$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function d$(e,t){var r=t||[],n=Fe(r,2),i=n[0],o=n[1];return[f$(e.width,i),f$(e.height,o)]}function p$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function ll(e,t){var r=t[0],n=t[1],i,o;return r==="t"?o=e.y:r==="b"?o=e.y+e.height:o=e.y+e.height/2,n==="l"?i=e.x:n==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:o}}function _a(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,i){return i===t?r[n]||"c":n}).join("")}function PJ(e,t,r,n,i,o,s){var u=C.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[n]||{}}),c=Fe(u,2),f=c[0],d=c[1],g=C.useRef(0),h=C.useMemo(function(){return t?n1(t):[]},[t]),b=C.useRef({}),v=function(){b.current={}};e||v();var S=Xn(function(){if(t&&r&&e){let Jt=function(Ar,Fr){var sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Xe,Gr=P.x+Ar,jo=P.y+Fr,fo=Gr+Ce,Ve=jo+Te,nt=Math.max(Gr,sn.left),kt=Math.max(jo,sn.top),Nt=Math.min(fo,sn.right),Mt=Math.min(Ve,sn.bottom);return Math.max(0,(Nt-nt)*(Mt-kt))},xr=function(){qt=P.y+wt,nr=qt+Te,Tr=P.x+gt,Ne=Tr+Ce};var No=Jt,fi=xr,x,T,A,R,$=t,O=$.ownerDocument,I=Yc($),L=I.getComputedStyle($),F=L.position,q=$.style.left,z=$.style.top,B=$.style.right,N=$.style.bottom,j=$.style.overflow,H=me(me({},i[n]),o),X=O.createElement("div");(x=$.parentElement)===null||x===void 0||x.appendChild(X),X.style.left="".concat($.offsetLeft,"px"),X.style.top="".concat($.offsetTop,"px"),X.style.position=F,X.style.height="".concat($.offsetHeight,"px"),X.style.width="".concat($.offsetWidth,"px"),$.style.left="0",$.style.top="0",$.style.right="auto",$.style.bottom="auto",$.style.overflow="hidden";var M;if(Array.isArray(r))M={x:r[0],y:r[1],width:0,height:0};else{var Q,W,D=r.getBoundingClientRect();D.x=(Q=D.x)!==null&&Q!==void 0?Q:D.left,D.y=(W=D.y)!==null&&W!==void 0?W:D.top,M={x:D.x,y:D.y,width:D.width,height:D.height}}var P=$.getBoundingClientRect(),G=I.getComputedStyle($),Z=G.height,te=G.width;P.x=(T=P.x)!==null&&T!==void 0?T:P.left,P.y=(A=P.y)!==null&&A!==void 0?A:P.top;var K=O.documentElement,be=K.clientWidth,ae=K.clientHeight,Se=K.scrollWidth,he=K.scrollHeight,Ee=K.scrollTop,we=K.scrollLeft,Te=P.height,Ce=P.width,_e=M.height,$e=M.width,ke={left:0,top:0,right:be,bottom:ae},Ge={left:-we,top:-Ee,right:Se-we,bottom:he-Ee},Qe=H.htmlRegion,je="visible",ze="visibleFirst";Qe!=="scroll"&&Qe!==ze&&(Qe=je);var Ye=Qe===ze,Ue=c$(Ge,h),Re=c$(ke,h),Xe=Qe===je?Re:Ue,ct=Ye?Re:Xe;$.style.left="auto",$.style.top="auto",$.style.right="0",$.style.bottom="0";var Pt=$.getBoundingClientRect();$.style.left=q,$.style.top=z,$.style.right=B,$.style.bottom=N,$.style.overflow=j,(R=$.parentElement)===null||R===void 0||R.removeChild(X);var ht=$c(Math.round(Ce/parseFloat(te)*1e3)/1e3),Ft=$c(Math.round(Te/parseFloat(Z)*1e3)/1e3);if(ht===0||Ft===0||Sc(r)&&!GK(r))return;var It=H.offset,ne=H.targetOffset,se=d$(P,It),pe=Fe(se,2),Y=pe[0],V=pe[1],ee=d$(M,ne),Oe=Fe(ee,2),le=Oe[0],fe=Oe[1];M.x-=le,M.y-=fe;var ve=H.points||[],Ie=Fe(ve,2),De=Ie[0],Be=Ie[1],Ze=p$(Be),et=p$(De),tt=ll(M,Ze),Bt=ll(P,et),dt=me({},H),gt=tt.x-Bt.x+Y,wt=tt.y-Bt.y+V,vt=Jt(gt,wt),bt=Jt(gt,wt,Re),Ot=ll(M,["t","l"]),Vt=ll(P,["t","l"]),ur=ll(M,["b","r"]),gr=ll(P,["b","r"]),Sr=H.overflow||{},Or=Sr.adjustX,Dr=Sr.adjustY,Lr=Sr.shiftX,vr=Sr.shiftY,yn=function(Fr){return typeof Fr=="boolean"?Fr:Fr>=0},qt,nr,Tr,Ne;xr();var oi=yn(Dr),Gt=et[0]===Ze[0];if(oi&&et[0]==="t"&&(nr>ct.bottom||b.current.bt)){var ai=wt;Gt?ai-=Te-_e:ai=Ot.y-gr.y-V;var Ao=Jt(gt,ai),Ut=Jt(gt,ai,Re);Ao>vt||Ao===vt&&(!Ye||Ut>=bt)?(b.current.bt=!0,wt=ai,V=-V,dt.points=[_a(et,0),_a(Ze,0)]):b.current.bt=!1}if(oi&&et[0]==="b"&&(qt<ct.top||b.current.tb)){var si=wt;Gt?si+=Te-_e:si=ur.y-Vt.y-V;var Di=Jt(gt,si),$o=Jt(gt,si,Re);Di>vt||Di===vt&&(!Ye||$o>=bt)?(b.current.tb=!0,wt=si,V=-V,dt.points=[_a(et,0),_a(Ze,0)]):b.current.tb=!1}var li=yn(Or),Io=et[1]===Ze[1];if(li&&et[1]==="l"&&(Ne>ct.right||b.current.rl)){var Dn=gt;Io?Dn-=Ce-$e:Dn=Ot.x-gr.x-Y;var an=Jt(Dn,wt),wr=Jt(Dn,wt,Re);an>vt||an===vt&&(!Ye||wr>=bt)?(b.current.rl=!0,gt=Dn,Y=-Y,dt.points=[_a(et,1),_a(Ze,1)]):b.current.rl=!1}if(li&&et[1]==="r"&&(Tr<ct.left||b.current.lr)){var ui=gt;Io?ui+=Ce-$e:ui=ur.x-Vt.x-Y;var mr=Jt(ui,wt),Li=Jt(ui,wt,Re);mr>vt||mr===vt&&(!Ye||Li>=bt)?(b.current.lr=!0,gt=ui,Y=-Y,dt.points=[_a(et,1),_a(Ze,1)]):b.current.lr=!1}xr();var Ur=Lr===!0?0:Lr;typeof Ur=="number"&&(Tr<Re.left&&(gt-=Tr-Re.left-Y,M.x+$e<Re.left+Ur&&(gt+=M.x-Re.left+$e-Ur)),Ne>Re.right&&(gt-=Ne-Re.right-Y,M.x>Re.right-Ur&&(gt+=M.x-Re.right+Ur)));var Ln=vr===!0?0:vr;typeof Ln=="number"&&(qt<Re.top&&(wt-=qt-Re.top-V,M.y+_e<Re.top+Ln&&(wt+=M.y-Re.top+_e-Ln)),nr>Re.bottom&&(wt-=nr-Re.bottom-V,M.y>Re.bottom-Ln&&(wt+=M.y-Re.bottom+Ln)));var Hr=P.x+gt,Wr=Hr+Ce,bn=P.y+wt,Fi=bn+Te,Po=M.x,ko=Po+$e,ci=M.y,Mo=ci+_e,lo=Math.max(Hr,Po),Fn=Math.min(Wr,ko),ua=(lo+Fn)/2,uo=ua-Hr,xt=Math.max(bn,ci),Do=Math.min(Fi,Mo),Lo=(xt+Do)/2,co=Lo-bn;s?.(t,dt);var qr=Pt.right-P.x-(gt+P.width),Ni=Pt.bottom-P.y-(wt+P.height);ht===1&&(gt=Math.round(gt),qr=Math.round(qr)),Ft===1&&(wt=Math.round(wt),Ni=Math.round(Ni));var Fo={ready:!0,offsetX:gt/ht,offsetY:wt/Ft,offsetR:qr/ht,offsetB:Ni/Ft,arrowX:uo/ht,arrowY:co/Ft,scaleX:ht,scaleY:Ft,align:dt};d(Fo)}}),y=function(){g.current+=1;var T=g.current;Promise.resolve().then(function(){g.current===T&&S()})},E=function(){d(function(T){return me(me({},T),{},{ready:!1})})};return lr(E,[n]),lr(function(){e||E()},[e]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,y]}function kJ(e,t,r,n,i){lr(function(){if(e&&t&&r){let h=function(){n(),i()};var g=h,o=t,s=r,u=n1(o),c=n1(s),f=Yc(s),d=new Set([f].concat(at(u),at(c)));return d.forEach(function(b){b.addEventListener("scroll",h,{passive:!0})}),f.addEventListener("resize",h,{passive:!0}),n(),function(){d.forEach(function(b){b.removeEventListener("scroll",h),f.removeEventListener("resize",h)})}}},[e,t,r])}function MJ(e,t,r,n,i,o,s,u){var c=C.useRef(e);c.current=e;var f=C.useRef(!1);C.useEffect(function(){if(t&&n&&(!i||o)){var g=function(){f.current=!1},h=function(y){var E;c.current&&!s(((E=y.composedPath)===null||E===void 0||(E=E.call(y))===null||E===void 0?void 0:E[0])||y.target)&&!f.current&&u(!1)},b=Yc(n);b.addEventListener("pointerdown",g,!0),b.addEventListener("mousedown",h,!0),b.addEventListener("contextmenu",h,!0);var v=kp(r);return v&&(v.addEventListener("mousedown",h,!0),v.addEventListener("contextmenu",h,!0)),function(){b.removeEventListener("pointerdown",g,!0),b.removeEventListener("mousedown",h,!0),b.removeEventListener("contextmenu",h,!0),v&&(v.removeEventListener("mousedown",h,!0),v.removeEventListener("contextmenu",h,!0))}}},[t,r,n,i,o]);function d(){f.current=!0}return d}var DJ=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function LJ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f5,t=C.forwardRef(function(r,n){var i=r.prefixCls,o=i===void 0?"rc-trigger-popup":i,s=r.children,u=r.action,c=u===void 0?"hover":u,f=r.showAction,d=r.hideAction,g=r.popupVisible,h=r.defaultPopupVisible,b=r.onPopupVisibleChange,v=r.afterPopupVisibleChange,S=r.mouseEnterDelay,y=r.mouseLeaveDelay,E=y===void 0?.1:y,x=r.focusDelay,T=r.blurDelay,A=r.mask,R=r.maskClosable,$=R===void 0?!0:R,O=r.getPopupContainer,I=r.forceRender,L=r.autoDestroy,F=r.destroyPopupOnHide,q=r.popup,z=r.popupClassName,B=r.popupStyle,N=r.popupPlacement,j=r.builtinPlacements,H=j===void 0?{}:j,X=r.popupAlign,M=r.zIndex,Q=r.stretch,W=r.getPopupClassNameFromAlign,D=r.fresh,P=r.alignPoint,G=r.onPopupClick,Z=r.onPopupAlign,te=r.arrow,K=r.popupMotion,be=r.maskMotion,ae=r.popupTransitionName,Se=r.popupAnimation,he=r.maskTransitionName,Ee=r.maskAnimation,we=r.className,Te=r.getTriggerDOMNode,Ce=ei(r,DJ),_e=L||F||!1,$e=C.useState(!1),ke=Fe($e,2),Ge=ke[0],Qe=ke[1];lr(function(){Qe(EJ())},[]);var je=C.useRef({}),ze=C.useContext(s$),Ye=C.useMemo(function(){return{registerSubPopup:function(nt,kt){je.current[nt]=kt,ze?.registerSubPopup(nt,kt)}}},[ze]),Ue=uY(),Re=C.useState(null),Xe=Fe(Re,2),ct=Xe[0],Pt=Xe[1],ht=C.useRef(null),Ft=Xn(function(Ve){ht.current=Ve,Sc(Ve)&&ct!==Ve&&Pt(Ve),ze?.registerSubPopup(Ue,Ve)}),It=C.useState(null),ne=Fe(It,2),se=ne[0],pe=ne[1],Y=C.useRef(null),V=Xn(function(Ve){Sc(Ve)&&se!==Ve&&(pe(Ve),Y.current=Ve)}),ee=C.Children.only(s),Oe=ee?.props||{},le={},fe=Xn(function(Ve){var nt,kt,Nt=se;return Nt?.contains(Ve)||((nt=kp(Nt))===null||nt===void 0?void 0:nt.host)===Ve||Ve===Nt||ct?.contains(Ve)||((kt=kp(ct))===null||kt===void 0?void 0:kt.host)===Ve||Ve===ct||Object.values(je.current).some(function(Mt){return Mt?.contains(Ve)||Ve===Mt})}),ve=u$(o,K,Se,ae),Ie=u$(o,be,Ee,he),De=C.useState(h||!1),Be=Fe(De,2),Ze=Be[0],et=Be[1],tt=g??Ze,Bt=Xn(function(Ve){g===void 0&&et(Ve)});lr(function(){et(g||!1)},[g]);var dt=C.useRef(tt);dt.current=tt;var gt=C.useRef([]);gt.current=[];var wt=Xn(function(Ve){var nt;Bt(Ve),((nt=gt.current[gt.current.length-1])!==null&&nt!==void 0?nt:tt)!==Ve&&(gt.current.push(Ve),b?.(Ve))}),vt=C.useRef(),bt=function(){clearTimeout(vt.current)},Ot=function(nt){var kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;bt(),kt===0?wt(nt):vt.current=setTimeout(function(){wt(nt)},kt*1e3)};C.useEffect(function(){return bt},[]);var Vt=C.useState(!1),ur=Fe(Vt,2),gr=ur[0],Sr=ur[1];lr(function(Ve){(!Ve||tt)&&Sr(!0)},[tt]);var Or=C.useState(null),Dr=Fe(Or,2),Lr=Dr[0],vr=Dr[1],yn=C.useState(null),qt=Fe(yn,2),nr=qt[0],Tr=qt[1],Ne=function(nt){Tr([nt.clientX,nt.clientY])},oi=PJ(tt,ct,P&&nr!==null?nr:se,N,H,X,Z),Gt=Fe(oi,11),ai=Gt[0],Ao=Gt[1],Ut=Gt[2],si=Gt[3],Di=Gt[4],$o=Gt[5],li=Gt[6],Io=Gt[7],Dn=Gt[8],an=Gt[9],wr=Gt[10],ui=AJ(Ge,c,f,d),mr=Fe(ui,2),Li=mr[0],Ur=mr[1],Ln=Li.has("click"),Hr=Ur.has("click")||Ur.has("contextMenu"),Wr=Xn(function(){gr||wr()}),bn=function(){dt.current&&P&&Hr&&Ot(!1)};kJ(tt,se,ct,Wr,bn),lr(function(){Wr()},[nr,N]),lr(function(){tt&&!(H!=null&&H[N])&&Wr()},[JSON.stringify(X)]);var Fi=C.useMemo(function(){var Ve=IJ(H,o,an,P);return Ct(Ve,W?.(an))},[an,W,H,o,P]);C.useImperativeHandle(n,function(){return{nativeElement:Y.current,popupElement:ht.current,forceAlign:Wr}});var Po=C.useState(0),ko=Fe(Po,2),ci=ko[0],Mo=ko[1],lo=C.useState(0),Fn=Fe(lo,2),ua=Fn[0],uo=Fn[1],xt=function(){if(Q&&se){var nt=se.getBoundingClientRect();Mo(nt.width),uo(nt.height)}},Do=function(){xt(),Wr()},Lo=function(nt){Sr(!1),wr(),v?.(nt)},co=function(){return new Promise(function(nt){xt(),vr(function(){return nt})})};lr(function(){Lr&&(wr(),Lr(),vr(null))},[Lr]);function qr(Ve,nt,kt,Nt){le[Ve]=function(Mt){var zo;Nt?.(Mt),Ot(nt,kt);for(var Bo=arguments.length,ca=new Array(Bo>1?Bo-1:0),ji=1;ji<Bo;ji++)ca[ji-1]=arguments[ji];(zo=Oe[Ve])===null||zo===void 0||zo.call.apply(zo,[Oe,Mt].concat(ca))}}(Ln||Hr)&&(le.onClick=function(Ve){var nt;dt.current&&Hr?Ot(!1):!dt.current&&Ln&&(Ne(Ve),Ot(!0));for(var kt=arguments.length,Nt=new Array(kt>1?kt-1:0),Mt=1;Mt<kt;Mt++)Nt[Mt-1]=arguments[Mt];(nt=Oe.onClick)===null||nt===void 0||nt.call.apply(nt,[Oe,Ve].concat(Nt))});var Ni=MJ(tt,Hr,se,ct,A,$,fe,Ot),Fo=Li.has("hover"),No=Ur.has("hover"),fi,Jt;Fo&&(qr("onMouseEnter",!0,S,function(Ve){Ne(Ve)}),qr("onPointerEnter",!0,S,function(Ve){Ne(Ve)}),fi=function(nt){(tt||gr)&&ct!==null&&ct!==void 0&&ct.contains(nt.target)&&Ot(!0,S)},P&&(le.onMouseMove=function(Ve){var nt;(nt=Oe.onMouseMove)===null||nt===void 0||nt.call(Oe,Ve)})),No&&(qr("onMouseLeave",!1,E),qr("onPointerLeave",!1,E),Jt=function(){Ot(!1,E)}),Li.has("focus")&&qr("onFocus",!0,x),Ur.has("focus")&&qr("onBlur",!1,T),Li.has("contextMenu")&&(le.onContextMenu=function(Ve){var nt;dt.current&&Ur.has("contextMenu")?Ot(!1):(Ne(Ve),Ot(!0)),Ve.preventDefault();for(var kt=arguments.length,Nt=new Array(kt>1?kt-1:0),Mt=1;Mt<kt;Mt++)Nt[Mt-1]=arguments[Mt];(nt=Oe.onContextMenu)===null||nt===void 0||nt.call.apply(nt,[Oe,Ve].concat(Nt))}),we&&(le.className=Ct(Oe.className,we));var xr=C.useRef(!1);xr.current||(xr.current=I||tt||gr);var Ar=me(me({},Oe),le),Fr={},sn=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];sn.forEach(function(Ve){Ce[Ve]&&(Fr[Ve]=function(){for(var nt,kt=arguments.length,Nt=new Array(kt),Mt=0;Mt<kt;Mt++)Nt[Mt]=arguments[Mt];(nt=Ar[Ve])===null||nt===void 0||nt.call.apply(nt,[Ar].concat(Nt)),Ce[Ve].apply(Ce,Nt)})});var Gr=C.cloneElement(ee,me(me({},Ar),Fr)),jo={x:$o,y:li},fo=te?me({},te!==!0?te:{}):null;return C.createElement(C.Fragment,null,C.createElement(Wc,{disabled:!tt,ref:V,onResize:Do},C.createElement(TJ,{getTriggerDOMNode:Te},Gr)),xr.current&&C.createElement(s$.Provider,{value:Ye},C.createElement(OJ,{portal:e,ref:Ft,prefixCls:o,popup:q,className:Ct(z,Fi),style:B,target:se,onMouseEnter:fi,onMouseLeave:Jt,onPointerEnter:fi,zIndex:M,open:tt,keepDom:gr,fresh:D,onClick:G,onPointerDownCapture:Ni,mask:A,motion:ve,maskMotion:Ie,onVisibleChanged:Lo,onPrepare:co,forceRender:I,autoDestroy:_e,getPopupContainer:O,align:an,arrow:fo,arrowPos:jo,ready:ai,offsetX:Ao,offsetY:Ut,offsetR:si,offsetB:Di,onAlign:Wr,stretch:Q,targetWidth:ci/Io,targetHeight:ua/Dn})))});return t}const FJ=LJ(f5);function NJ(e,t,r){return Ct({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}const jJ=(e,t)=>t||e,zJ=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var n,i;const{variant:o,[e]:s}=C.useContext($i),u=C.useContext(oJ),c=s?.variant;let f;typeof t<"u"?f=t:r===!1?f="borderless":f=(i=(n=u??c)!==null&&n!==void 0?n:o)!==null&&i!==void 0?i:"outlined";const d=hX.includes(f);return[f,d]};var BJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},VJ=function(t,r){return C.createElement(la,hr({},t,{ref:r,icon:BJ}))},UJ=C.forwardRef(VJ);function y5(e){var t=e.children,r=e.prefixCls,n=e.id,i=e.overlayInnerStyle,o=e.className,s=e.style;return C.createElement("div",{className:Ct("".concat(r,"-content"),o),style:s},C.createElement("div",{className:"".concat(r,"-inner"),id:n,role:"tooltip",style:i},typeof t=="function"?t():t))}var ul={shiftX:64,adjustY:1},cl={adjustX:1,shiftY:!0},wi=[0,0],HJ={left:{points:["cr","cl"],overflow:cl,offset:[-4,0],targetOffset:wi},right:{points:["cl","cr"],overflow:cl,offset:[4,0],targetOffset:wi},top:{points:["bc","tc"],overflow:ul,offset:[0,-4],targetOffset:wi},bottom:{points:["tc","bc"],overflow:ul,offset:[0,4],targetOffset:wi},topLeft:{points:["bl","tl"],overflow:ul,offset:[0,-4],targetOffset:wi},leftTop:{points:["tr","tl"],overflow:cl,offset:[-4,0],targetOffset:wi},topRight:{points:["br","tr"],overflow:ul,offset:[0,-4],targetOffset:wi},rightTop:{points:["tl","tr"],overflow:cl,offset:[4,0],targetOffset:wi},bottomRight:{points:["tr","br"],overflow:ul,offset:[0,4],targetOffset:wi},rightBottom:{points:["bl","br"],overflow:cl,offset:[4,0],targetOffset:wi},bottomLeft:{points:["tl","bl"],overflow:ul,offset:[0,4],targetOffset:wi},leftBottom:{points:["br","bl"],overflow:cl,offset:[-4,0],targetOffset:wi}},WJ=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],qJ=function(t,r){var n=t.overlayClassName,i=t.trigger,o=i===void 0?["hover"]:i,s=t.mouseEnterDelay,u=s===void 0?0:s,c=t.mouseLeaveDelay,f=c===void 0?.1:c,d=t.overlayStyle,g=t.prefixCls,h=g===void 0?"rc-tooltip":g,b=t.children,v=t.onVisibleChange,S=t.afterVisibleChange,y=t.transitionName,E=t.animation,x=t.motion,T=t.placement,A=T===void 0?"right":T,R=t.align,$=R===void 0?{}:R,O=t.destroyTooltipOnHide,I=O===void 0?!1:O,L=t.defaultVisible,F=t.getTooltipContainer,q=t.overlayInnerStyle;t.arrowContent;var z=t.overlay,B=t.id,N=t.showArrow,j=N===void 0?!0:N,H=ei(t,WJ),X=C.useRef(null);C.useImperativeHandle(r,function(){return X.current});var M=me({},H);"visible"in t&&(M.popupVisible=t.visible);var Q=function(){return C.createElement(y5,{key:"content",prefixCls:h,id:B,overlayInnerStyle:q},z)};return C.createElement(FJ,hr({popupClassName:n,prefixCls:h,popup:Q,action:o,builtinPlacements:HJ,popupPlacement:A,ref:X,popupAlign:$,getPopupContainer:F,onPopupVisibleChange:v,afterPopupVisibleChange:S,popupTransitionName:y,popupAnimation:E,popupMotion:x,defaultPopupVisible:L,autoDestroy:I,mouseLeaveDelay:f,popupStyle:d,mouseEnterDelay:u,arrow:j},M),b)};const GJ=C.forwardRef(qJ);function XJ(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,i=t/2,o=0,s=i,u=n*1/Math.sqrt(2),c=i-n*(1-1/Math.sqrt(2)),f=i-r*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),g=2*i-f,h=d,b=2*i-u,v=c,S=2*i-o,y=s,E=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),x=n*(Math.sqrt(2)-1),T=`polygon(${x}px 100%, 50% ${x}px, ${2*i-x}px 100%, ${x}px 100%)`,A=`path('M ${o} ${s} A ${n} ${n} 0 0 0 ${u} ${c} L ${f} ${d} A ${r} ${r} 0 0 1 ${g} ${h} L ${b} ${v} A ${n} ${n} 0 0 0 ${S} ${y} Z')`;return{arrowShadowWidth:E,arrowPath:A,arrowPolygon:T}}const KJ=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:i,arrowPath:o,arrowShadowWidth:s,borderRadiusXS:u,calc:c}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:c(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:s,height:s,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${zt(u)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},b5=8;function S5(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?b5:n}}function Md(e,t){return e?t:{}}function YJ(e,t,r){const{componentCls:n,boxShadowPopoverArrow:i,arrowOffsetVertical:o,arrowOffsetHorizontal:s}=e,{arrowDistance:u=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}={};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},KJ(e,t,i)),{"&:before":{background:t}})]},Md(!!c.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":s,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${zt(s)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),Md(!!c.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":s,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${zt(s)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),Md(!!c.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:o},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:o}})),Md(!!c.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:o},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:o}}))}}function JJ(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const i=n&&typeof n=="object"?n:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+r,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+r,o.shiftX=!0,o.adjustX=!0;break}const s=Object.assign(Object.assign({},o),i);return s.shiftX||(s.adjustX=!0),s.shiftY||(s.adjustY=!0),s}const h$={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},QJ={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},ZJ=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function eQ(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:i,borderRadius:o}=e,s=t/2,u={};return Object.keys(h$).forEach(c=>{const f=n&&QJ[c]||h$[c],d=Object.assign(Object.assign({},f),{offset:[0,0],dynamicInset:!0});switch(u[c]=d,ZJ.has(c)&&(d.autoArrow=!1),c){case"top":case"topLeft":case"topRight":d.offset[1]=-s-i;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=s+i;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-s-i;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=s+i;break}const g=S5({contentRadius:o,limitVerticalRadius:!0});if(n)switch(c){case"topLeft":case"bottomLeft":d.offset[0]=-g.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":d.offset[0]=g.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":d.offset[1]=-g.arrowOffsetHorizontal-s;break;case"leftBottom":case"rightBottom":d.offset[1]=g.arrowOffsetHorizontal+s;break}d.overflow=JJ(c,g,t,r),d.htmlRegion="visibleFirst"}),u}const tQ=e=>{const{componentCls:t,tooltipMaxWidth:r,tooltipColor:n,tooltipBg:i,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:u,boxShadowSecondary:c,paddingSM:f,paddingXS:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},TS(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${t}-inner`]:{minWidth:"1em",minHeight:u,padding:`${zt(e.calc(f).div(2).equal())} ${zt(d)}`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:o,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,b5)}},[`${t}-content`]:{position:"relative"}}),VX(e,(g,h)=>{let{darkColor:b}=h;return{[`&${t}-${g}`]:{[`${t}-inner`]:{backgroundColor:b},[`${t}-arrow`]:{"--antd-arrow-background-color":b}}}})),{"&-rtl":{direction:"rtl"}})},YJ(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},rQ=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},S5({contentRadius:e.borderRadius,limitVerticalRadius:!0})),XJ(Is(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),w5=(function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return AS("Tooltip",n=>{const{borderRadius:i,colorTextLightSolid:o,colorBgSpotlight:s}=n,u=Is(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:s});return[tQ(u),xJ(n,"zoom-big-fast")]},rQ,{resetStyle:!1,injectStyle:t})(e)}),nQ=Pp.map(e=>`${e}-inverse`);function iQ(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(at(nQ),at(Pp)).includes(e):Pp.includes(e)}function x5(e,t){const r=iQ(t),n=Ct({[`${e}-${t}`]:t&&r}),i={},o={};return t&&!r&&(i.background=t,o["--antd-arrow-background-color"]=t),{className:n,overlayStyle:i,arrowStyle:o}}const oQ=e=>{const{prefixCls:t,className:r,placement:n="top",title:i,color:o,overlayInnerStyle:s}=e,{getPrefixCls:u}=C.useContext($i),c=u("tooltip",t),[f,d,g]=w5(c),h=x5(c,o),b=h.arrowStyle,v=Object.assign(Object.assign({},s),h.overlayStyle),S=Ct(d,g,c,`${c}-pure`,`${c}-placement-${n}`,r,h.className);return f(C.createElement("div",{className:S,style:b},C.createElement("div",{className:`${c}-arrow`}),C.createElement(y5,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:v}),i)))};var aQ=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const sQ=C.forwardRef((e,t)=>{var r,n;const{prefixCls:i,openClassName:o,getTooltipContainer:s,overlayClassName:u,color:c,overlayInnerStyle:f,children:d,afterOpenChange:g,afterVisibleChange:h,destroyTooltipOnHide:b,arrow:v=!0,title:S,overlay:y,builtinPlacements:E,arrowPointAtCenter:x=!1,autoAdjustOverflow:T=!0}=e,A=!!v,[,R]=Ql(),{getPopupContainer:$,getPrefixCls:O,direction:I}=C.useContext($i),L=Ok(),F=C.useRef(null),q=()=>{var Ue;(Ue=F.current)===null||Ue===void 0||Ue.forceAlign()};C.useImperativeHandle(t,()=>{var Ue;return{forceAlign:q,forcePopupAlign:()=>{L.deprecated(!1,"forcePopupAlign","forceAlign"),q()},nativeElement:(Ue=F.current)===null||Ue===void 0?void 0:Ue.nativeElement}});const[z,B]=Ac(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),N=!S&&!y&&S!==0,j=Ue=>{var Re,Xe;B(N?!1:Ue),N||((Re=e.onOpenChange)===null||Re===void 0||Re.call(e,Ue),(Xe=e.onVisibleChange)===null||Xe===void 0||Xe.call(e,Ue))},H=C.useMemo(()=>{var Ue,Re;let Xe=x;return typeof v=="object"&&(Xe=(Re=(Ue=v.pointAtCenter)!==null&&Ue!==void 0?Ue:v.arrowPointAtCenter)!==null&&Re!==void 0?Re:x),E||eQ({arrowPointAtCenter:Xe,autoAdjustOverflow:T,arrowWidth:A?R.sizePopupArrow:0,borderRadius:R.borderRadius,offset:R.marginXXS})},[x,v,E,R]),X=C.useMemo(()=>S===0?S:y||S||"",[y,S]),M=C.createElement(aJ,{space:!0},typeof X=="function"?X():X),{getPopupContainer:Q,placement:W="top",mouseEnterDelay:D=.1,mouseLeaveDelay:P=.1,overlayStyle:G,rootClassName:Z}=e,te=aQ(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),K=O("tooltip",i),be=O(),ae=e["data-popover-inject"];let Se=z;!("open"in e)&&!("visible"in e)&&N&&(Se=!1);const he=C.isValidElement(d)&&!DK(d)?d:C.createElement("span",null,d),Ee=he.props,we=!Ee.className||typeof Ee.className=="string"?Ct(Ee.className,o||`${K}-open`):Ee.className,[Te,Ce,_e]=w5(K,!ae),$e=x5(K,c),ke=$e.arrowStyle,Ge=Object.assign(Object.assign({},f),$e.overlayStyle),Qe=Ct(u,{[`${K}-rtl`]:I==="rtl"},$e.className,Z,Ce,_e),[je,ze]=UK("Tooltip",te.zIndex),Ye=C.createElement(GJ,Object.assign({},te,{zIndex:je,showArrow:A,placement:W,mouseEnterDelay:D,mouseLeaveDelay:P,prefixCls:K,overlayClassName:Qe,overlayStyle:Object.assign(Object.assign({},ke),G),getTooltipContainer:Q||s||$,ref:F,builtinPlacements:H,overlay:M,visible:Se,onVisibleChange:j,afterVisibleChange:g??h,overlayInnerStyle:Ge,arrowContent:C.createElement("span",{className:`${K}-arrow-content`}),motion:{motionName:qK(be,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!b}),Se?o5(he,{className:we}):he);return Te(C.createElement(a5.Provider,{value:ze},Ye))}),vh=sQ;vh._InternalPanelDoNotUseOrYouWillBeFired=oQ;function lQ(e){return Is(e,{inputAffixPadding:e.paddingXXS})}const uQ=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:i,controlHeightSM:o,controlHeightLG:s,fontSizeLG:u,lineHeightLG:c,paddingSM:f,controlPaddingHorizontalSM:d,controlPaddingHorizontal:g,colorFillAlter:h,colorPrimaryHover:b,colorPrimary:v,controlOutlineWidth:S,controlOutline:y,colorErrorOutline:E,colorWarningOutline:x,colorBgContainer:T}=e;return{paddingBlock:Math.max(Math.round((t-r*n)/2*10)/10-i,0),paddingBlockSM:Math.max(Math.round((o-r*n)/2*10)/10-i,0),paddingBlockLG:Math.ceil((s-u*c)/2*10)/10-i,paddingInline:f-i,paddingInlineSM:d-i,paddingInlineLG:g-i,addonBg:h,activeBorderColor:v,hoverBorderColor:b,activeShadow:`0 0 0 ${S}px ${y}`,errorActiveShadow:`0 0 0 ${S}px ${E}`,warningActiveShadow:`0 0 0 ${S}px ${x}`,hoverBg:T,activeBg:T,inputFontSize:r,inputFontSizeLG:u,inputFontSizeSM:r}},cQ=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),MS=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},cQ(Is(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),E5=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),g$=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},E5(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),fQ=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},E5(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},MS(e))}),g$(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),g$(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),v$=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),dQ=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${zt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},v$(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),v$(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},MS(e))}})}),pQ=(e,t)=>{const{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},C5=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t?.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),m$=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},C5(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),hQ=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},C5(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},MS(e))}),m$(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),m$(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),y$=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),gQ=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${zt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${zt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},y$(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),y$(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${zt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${zt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${zt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${zt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${zt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${zt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),vQ=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),R5=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:i}=e;return{padding:`${zt(t)} ${zt(i)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},_5=e=>({padding:`${zt(e.paddingBlockSM)} ${zt(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),O5=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${zt(e.paddingBlock)} ${zt(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},vQ(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},R5(e)),"&-sm":Object.assign({},_5(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),mQ=e=>{const{componentCls:t,antCls:r}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},R5(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},_5(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${zt(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${zt(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${zt(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${zt(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${r}-select-selector`]:{color:e.colorPrimary}}},[`${r}-cascader-picker`]:{margin:`-9px ${zt(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},jX()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
1167
+ & > ${t}-affix-wrapper,
1168
+ & > ${t}-number-affix-wrapper,
1169
+ & > ${r}-picker-range
1170
+ `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${r}-select > ${r}-select-selector,
1171
+ & > ${r}-select-auto-complete ${t},
1172
+ & > ${r}-cascader-picker ${t},
1173
+ & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child,
1174
+ & > ${r}-select:first-child > ${r}-select-selector,
1175
+ & > ${r}-select-auto-complete:first-child ${t},
1176
+ & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
1177
+ & > ${r}-select:last-child > ${r}-select-selector,
1178
+ & > ${r}-cascader-picker:last-child ${t},
1179
+ & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},yQ=e=>{const{componentCls:t,controlHeightSM:r,lineWidth:n,calc:i}=e,s=i(r).sub(i(n).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},TS(e)),O5(e)),fQ(e)),hQ(e)),pQ(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:s,paddingBottom:s}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},bQ=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${zt(e.inputAffixPadding)}`}}}},SQ=e=>{const{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:i,colorIcon:o,colorIconHover:s,iconCls:u}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},O5(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:n},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),bQ(e)),{[`${u}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:s}}})}},wQ=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},TS(e)),mQ(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}}},dQ(e)),gQ(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},xQ=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${n}-button:not(${r}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${r}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${n}-button`]:{height:e.controlHeightLG},[`&-small ${n}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
1180
+ > ${t},
1181
+ ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},EQ=e=>{const{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[n]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
1182
+ &-allow-clear > ${t},
1183
+ &-affix-wrapper${n}-has-feedback ${t}
1184
+ `]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},CQ=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},RQ=AS("Input",e=>{const t=Is(e,lQ(e));return[yQ(t),EQ(t),SQ(t),wQ(t),xQ(t),CQ(t),ZK(t)]},uQ,{resetFont:!1});function _Q(e){return!!(e.addonBefore||e.addonAfter)}function OQ(e){return!!(e.prefix||e.suffix||e.allowClear)}function b$(e,t,r){var n=t.cloneNode(!0),i=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},i}function S$(e,t,r,n){if(r){var i=t;if(t.type==="click"){i=b$(t,e,""),r(i);return}if(e.type!=="file"&&n!==void 0){i=b$(t,e,n),r(i);return}r(i)}}var TQ=oe.forwardRef(function(e,t){var r,n,i=e.inputElement,o=e.children,s=e.prefixCls,u=e.prefix,c=e.suffix,f=e.addonBefore,d=e.addonAfter,g=e.className,h=e.style,b=e.disabled,v=e.readOnly,S=e.focused,y=e.triggerFocus,E=e.allowClear,x=e.value,T=e.handleReset,A=e.hidden,R=e.classes,$=e.classNames,O=e.dataAttrs,I=e.styles,L=e.components,F=e.onClear,q=o??i,z=L?.affixWrapper||"span",B=L?.groupWrapper||"span",N=L?.wrapper||"span",j=L?.groupAddon||"span",H=C.useRef(null),X=function(Ce){var _e;(_e=H.current)!==null&&_e!==void 0&&_e.contains(Ce.target)&&y?.()},M=OQ(e),Q=C.cloneElement(q,{value:x,className:Ct(q.props.className,!M&&$?.variant)||null}),W=C.useRef(null);if(oe.useImperativeHandle(t,function(){return{nativeElement:W.current||H.current}}),M){var D=null;if(E){var P=!b&&!v&&x,G="".concat(s,"-clear-icon"),Z=pt(E)==="object"&&E!==null&&E!==void 0&&E.clearIcon?E.clearIcon:"✖";D=oe.createElement("span",{onClick:function(Ce){T?.(Ce),F?.()},onMouseDown:function(Ce){return Ce.preventDefault()},className:Ct(G,ue(ue({},"".concat(G,"-hidden"),!P),"".concat(G,"-has-suffix"),!!c)),role:"button",tabIndex:-1},Z)}var te="".concat(s,"-affix-wrapper"),K=Ct(te,ue(ue(ue(ue(ue({},"".concat(s,"-disabled"),b),"".concat(te,"-disabled"),b),"".concat(te,"-focused"),S),"".concat(te,"-readonly"),v),"".concat(te,"-input-with-clear-btn"),c&&E&&x),R?.affixWrapper,$?.affixWrapper,$?.variant),be=(c||E)&&oe.createElement("span",{className:Ct("".concat(s,"-suffix"),$?.suffix),style:I?.suffix},D,c);Q=oe.createElement(z,hr({className:K,style:I?.affixWrapper,onClick:X},O?.affixWrapper,{ref:H}),u&&oe.createElement("span",{className:Ct("".concat(s,"-prefix"),$?.prefix),style:I?.prefix},u),Q,be)}if(_Q(e)){var ae="".concat(s,"-group"),Se="".concat(ae,"-addon"),he="".concat(ae,"-wrapper"),Ee=Ct("".concat(s,"-wrapper"),ae,R?.wrapper,$?.wrapper),we=Ct(he,ue({},"".concat(he,"-disabled"),b),R?.group,$?.groupWrapper);Q=oe.createElement(B,{className:we,ref:W},oe.createElement(N,{className:Ee},f&&oe.createElement(j,{className:Se},f),Q,d&&oe.createElement(j,{className:Se},d)))}return oe.cloneElement(Q,{className:Ct((r=Q.props)===null||r===void 0?void 0:r.className,g)||null,style:me(me({},(n=Q.props)===null||n===void 0?void 0:n.style),h),hidden:A})}),AQ=["show"];function $Q(e,t){return C.useMemo(function(){var r={};t&&(r.show=pt(t)==="object"&&t.formatter?t.formatter:!!t),r=me(me({},r),e);var n=r,i=n.show,o=ei(n,AQ);return me(me({},o),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:o.strategy||function(s){return s.length}})},[e,t])}const IQ=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:oe.createElement(MK,null)}),t};function PQ(e,t){if(!e)return;e.focus(t);const{cursor:r}=t||{};if(r){const n=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(n,n);break;default:e.setSelectionRange(0,n)}}}var kQ=`
1185
+ min-height:0 !important;
1186
+ max-height:none !important;
1187
+ height:0 !important;
1188
+ visibility:hidden !important;
1189
+ overflow:hidden !important;
1190
+ position:absolute !important;
1191
+ z-index:-1000 !important;
1192
+ top:0 !important;
1193
+ right:0 !important;
1194
+ pointer-events: none !important;
1195
+ `,MQ=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],J0={},Hn;function DQ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&J0[r])return J0[r];var n=window.getComputedStyle(e),i=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),s=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),u=MQ.map(function(f){return"".concat(f,":").concat(n.getPropertyValue(f))}).join(";"),c={sizingStyle:u,paddingSize:o,borderSize:s,boxSizing:i};return t&&r&&(J0[r]=c),c}function LQ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Hn||(Hn=document.createElement("textarea"),Hn.setAttribute("tab-index","-1"),Hn.setAttribute("aria-hidden","true"),Hn.setAttribute("name","hiddenTextarea"),document.body.appendChild(Hn)),e.getAttribute("wrap")?Hn.setAttribute("wrap",e.getAttribute("wrap")):Hn.removeAttribute("wrap");var i=DQ(e,t),o=i.paddingSize,s=i.borderSize,u=i.boxSizing,c=i.sizingStyle;Hn.setAttribute("style","".concat(c,";").concat(kQ)),Hn.value=e.value||e.placeholder||"";var f=void 0,d=void 0,g,h=Hn.scrollHeight;if(u==="border-box"?h+=s:u==="content-box"&&(h-=o),r!==null||n!==null){Hn.value=" ";var b=Hn.scrollHeight-o;r!==null&&(f=b*r,u==="border-box"&&(f=f+o+s),h=Math.max(f,h)),n!==null&&(d=b*n,u==="border-box"&&(d=d+o+s),g=h>d?"":"hidden",h=Math.min(d,h))}var v={height:h,overflowY:g,resize:"none"};return f&&(v.minHeight=f),d&&(v.maxHeight=d),v}var FQ=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Q0=0,Z0=1,ey=2,NQ=C.forwardRef(function(e,t){var r=e,n=r.prefixCls,i=r.defaultValue,o=r.value,s=r.autoSize,u=r.onResize,c=r.className,f=r.style,d=r.disabled,g=r.onChange;r.onInternalAutoSize;var h=ei(r,FQ),b=Ac(i,{value:o,postState:function(Z){return Z??""}}),v=Fe(b,2),S=v[0],y=v[1],E=function(Z){y(Z.target.value),g?.(Z)},x=C.useRef();C.useImperativeHandle(t,function(){return{textArea:x.current}});var T=C.useMemo(function(){return s&&pt(s)==="object"?[s.minRows,s.maxRows]:[]},[s]),A=Fe(T,2),R=A[0],$=A[1],O=!!s,I=function(){try{if(document.activeElement===x.current){var Z=x.current,te=Z.selectionStart,K=Z.selectionEnd,be=Z.scrollTop;x.current.setSelectionRange(te,K),x.current.scrollTop=be}}catch{}},L=C.useState(ey),F=Fe(L,2),q=F[0],z=F[1],B=C.useState(),N=Fe(B,2),j=N[0],H=N[1],X=function(){z(Q0)};lr(function(){O&&X()},[o,R,$,O]),lr(function(){if(q===Q0)z(Z0);else if(q===Z0){var G=LQ(x.current,!1,R,$);z(ey),H(G)}else I()},[q]);var M=C.useRef(),Q=function(){wc.cancel(M.current)},W=function(Z){q===ey&&(u?.(Z),s&&(Q(),M.current=wc(function(){X()})))};C.useEffect(function(){return Q},[]);var D=O?j:null,P=me(me({},f),D);return(q===Q0||q===Z0)&&(P.overflowY="hidden",P.overflowX="hidden"),C.createElement(Wc,{onResize:W,disabled:!(s||u)},C.createElement("textarea",hr({},h,{ref:x,style:P,className:Ct(n,c,ue({},"".concat(n,"-disabled"),d)),disabled:d,value:S,onChange:E})))}),jQ=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],zQ=oe.forwardRef(function(e,t){var r,n=e.defaultValue,i=e.value,o=e.onFocus,s=e.onBlur,u=e.onChange,c=e.allowClear,f=e.maxLength,d=e.onCompositionStart,g=e.onCompositionEnd,h=e.suffix,b=e.prefixCls,v=b===void 0?"rc-textarea":b,S=e.showCount,y=e.count,E=e.className,x=e.style,T=e.disabled,A=e.hidden,R=e.classNames,$=e.styles,O=e.onResize,I=e.onClear,L=e.onPressEnter,F=e.readOnly,q=e.autoSize,z=e.onKeyDown,B=ei(e,jQ),N=Ac(n,{value:i,defaultValue:n}),j=Fe(N,2),H=j[0],X=j[1],M=H==null?"":String(H),Q=oe.useState(!1),W=Fe(Q,2),D=W[0],P=W[1],G=oe.useRef(!1),Z=oe.useState(null),te=Fe(Z,2),K=te[0],be=te[1],ae=C.useRef(null),Se=C.useRef(null),he=function(){var Y;return(Y=Se.current)===null||Y===void 0?void 0:Y.textArea},Ee=function(){he().focus()};C.useImperativeHandle(t,function(){var pe;return{resizableTextArea:Se.current,focus:Ee,blur:function(){he().blur()},nativeElement:((pe=ae.current)===null||pe===void 0?void 0:pe.nativeElement)||he()}}),C.useEffect(function(){P(function(pe){return!T&&pe})},[T]);var we=oe.useState(null),Te=Fe(we,2),Ce=Te[0],_e=Te[1];oe.useEffect(function(){if(Ce){var pe;(pe=he()).setSelectionRange.apply(pe,at(Ce))}},[Ce]);var $e=$Q(y,S),ke=(r=$e.max)!==null&&r!==void 0?r:f,Ge=Number(ke)>0,Qe=$e.strategy(M),je=!!ke&&Qe>ke,ze=function(Y,V){var ee=V;!G.current&&$e.exceedFormatter&&$e.max&&$e.strategy(V)>$e.max&&(ee=$e.exceedFormatter(V,{max:$e.max}),V!==ee&&_e([he().selectionStart||0,he().selectionEnd||0])),X(ee),S$(Y.currentTarget,Y,u,ee)},Ye=function(Y){G.current=!0,d?.(Y)},Ue=function(Y){G.current=!1,ze(Y,Y.currentTarget.value),g?.(Y)},Re=function(Y){ze(Y,Y.target.value)},Xe=function(Y){Y.key==="Enter"&&L&&L(Y),z?.(Y)},ct=function(Y){P(!0),o?.(Y)},Pt=function(Y){P(!1),s?.(Y)},ht=function(Y){X(""),Ee(),S$(he(),Y,u)},Ft=h,It;$e.show&&($e.showFormatter?It=$e.showFormatter({value:M,count:Qe,maxLength:ke}):It="".concat(Qe).concat(Ge?" / ".concat(ke):""),Ft=oe.createElement(oe.Fragment,null,Ft,oe.createElement("span",{className:Ct("".concat(v,"-data-count"),R?.count),style:$?.count},It)));var ne=function(Y){var V;O?.(Y),(V=he())!==null&&V!==void 0&&V.style.height&&be(!0)},se=!q&&!S&&!c;return oe.createElement(TQ,{ref:ae,value:M,allowClear:c,handleReset:ht,suffix:Ft,prefixCls:v,classNames:me(me({},R),{},{affixWrapper:Ct(R?.affixWrapper,ue(ue({},"".concat(v,"-show-count"),S),"".concat(v,"-textarea-allow-clear"),c))}),disabled:T,focused:D,className:Ct(E,je&&"".concat(v,"-out-of-range")),style:me(me({},x),K&&!se?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof It=="string"?It:void 0}},hidden:A,readOnly:F,onClear:I},oe.createElement(NQ,hr({},B,{autoSize:q,maxLength:f,onKeyDown:Xe,onChange:Re,onFocus:ct,onBlur:Pt,onCompositionStart:Ye,onCompositionEnd:Ue,className:Ct(R?.textarea),style:me(me({},$?.textarea),{},{resize:x?.resize}),disabled:T,prefixCls:v,onResize:ne,ref:Se,readOnly:F})))}),BQ=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const VQ=C.forwardRef((e,t)=>{var r,n;const{prefixCls:i,bordered:o=!0,size:s,disabled:u,status:c,allowClear:f,classNames:d,rootClassName:g,className:h,style:b,styles:v,variant:S}=e,y=BQ(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:E,direction:x,textArea:T}=C.useContext($i),A=XK(s),R=C.useContext(Ip),$=u??R,{status:O,hasFeedback:I,feedbackIcon:L}=C.useContext(r1),F=jJ(O,c),q=C.useRef(null);C.useImperativeHandle(t,()=>{var W;return{resizableTextArea:(W=q.current)===null||W===void 0?void 0:W.resizableTextArea,focus:D=>{var P,G;PQ((G=(P=q.current)===null||P===void 0?void 0:P.resizableTextArea)===null||G===void 0?void 0:G.textArea,D)},blur:()=>{var D;return(D=q.current)===null||D===void 0?void 0:D.blur()}}});const z=E("input",i),B=FK(z),[N,j,H]=RQ(z,B),[X,M]=zJ("textArea",S,o),Q=IQ(f??T?.allowClear);return N(C.createElement(zQ,Object.assign({autoComplete:T?.autoComplete},y,{style:Object.assign(Object.assign({},T?.style),b),styles:Object.assign(Object.assign({},T?.styles),v),disabled:$,allowClear:Q,className:Ct(H,B,h,g,T?.className),classNames:Object.assign(Object.assign(Object.assign({},d),T?.classNames),{textarea:Ct({[`${z}-sm`]:A==="small",[`${z}-lg`]:A==="large"},j,d?.textarea,(r=T?.classNames)===null||r===void 0?void 0:r.textarea),variant:Ct({[`${z}-${X}`]:M},NJ(z,F)),affixWrapper:Ct(`${z}-textarea-affix-wrapper`,{[`${z}-affix-wrapper-rtl`]:x==="rtl",[`${z}-affix-wrapper-sm`]:A==="small",[`${z}-affix-wrapper-lg`]:A==="large",[`${z}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},j)}),prefixCls:z,suffix:I&&C.createElement("span",{className:`${z}-textarea-suffix`},L),ref:q})))});var UQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},HQ=function(t,r){return C.createElement(la,hr({},t,{ref:r,icon:UQ}))},WQ=C.forwardRef(HQ),qQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},GQ=function(t,r){return C.createElement(la,hr({},t,{ref:r,icon:qQ}))},XQ=C.forwardRef(GQ),KQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},YQ=function(t,r){return C.createElement(la,hr({},t,{ref:r,icon:KQ}))},JQ=C.forwardRef(YQ),QQ=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const ZQ={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},i1=C.forwardRef((e,t)=>{const r=d=>{const{keyCode:g}=d;g===Mp.ENTER&&d.preventDefault()},n=d=>{const{keyCode:g}=d,{onClick:h}=e;g===Mp.ENTER&&h&&h()},{style:i,noStyle:o,disabled:s,tabIndex:u=0}=e,c=QQ(e,["style","noStyle","disabled","tabIndex"]);let f={};return o||(f=Object.assign({},ZQ)),s&&(f.pointerEvents="none"),f=Object.assign(Object.assign({},f),i),C.createElement("div",Object.assign({role:"button",tabIndex:u,ref:t},c,{onKeyDown:r,onKeyUp:n,style:f}))}),eZ=(e,t,r,n)=>{const{titleMarginBottom:i,fontWeightStrong:o}=n;return{marginBottom:i,color:r,fontWeight:o,fontSize:e,lineHeight:t}},tZ=e=>{const t=[1,2,3,4,5],r={};return t.forEach(n=>{r[`
1196
+ h${n}&,
1197
+ div&-h${n},
1198
+ div&-h${n} > textarea,
1199
+ h${n}
1200
+ `]=eZ(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),r},rZ=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Vk(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},nZ=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Ap[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),iZ=e=>{const{componentCls:t,paddingSM:r}=e,n=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(n).mul(-1).equal(),marginBottom:`calc(1em - ${zt(n)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},oZ=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),aZ=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),sZ=e=>{const{componentCls:t,titleMarginTop:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},tZ(e)),{[`
1201
+ & + h1${t},
1202
+ & + h2${t},
1203
+ & + h3${t},
1204
+ & + h4${t},
1205
+ & + h5${t}
1206
+ `]:{marginTop:r},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:r}}}),nZ(e)),rZ(e)),{[`
1207
+ ${t}-expand,
1208
+ ${t}-collapse,
1209
+ ${t}-edit,
1210
+ ${t}-copy
1211
+ `]:Object.assign(Object.assign({},Vk(e)),{marginInlineStart:e.marginXXS})}),iZ(e)),oZ(e)),aZ()),{"&-rtl":{direction:"rtl"}})}},lZ=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),T5=AS("Typography",e=>[sZ(e)],lZ),uZ=e=>{const{prefixCls:t,"aria-label":r,className:n,style:i,direction:o,maxLength:s,autoSize:u=!0,value:c,onSave:f,onCancel:d,onEnd:g,component:h,enterIcon:b=C.createElement(JQ,null)}=e,v=C.useRef(null),S=C.useRef(!1),y=C.useRef(),[E,x]=C.useState(c);C.useEffect(()=>{x(c)},[c]),C.useEffect(()=>{var j;if(!((j=v.current)===null||j===void 0)&&j.resizableTextArea){const{textArea:H}=v.current.resizableTextArea;H.focus();const{length:X}=H.value;H.setSelectionRange(X,X)}},[]);const T=j=>{let{target:H}=j;x(H.value.replace(/[\n\r]/g,""))},A=()=>{S.current=!0},R=()=>{S.current=!1},$=j=>{let{keyCode:H}=j;S.current||(y.current=H)},O=()=>{f(E.trim())},I=j=>{let{keyCode:H,ctrlKey:X,altKey:M,metaKey:Q,shiftKey:W}=j;y.current===H&&!S.current&&!X&&!M&&!Q&&!W&&(H===Mp.ENTER?(O(),g?.()):H===Mp.ESC&&d())},L=()=>{O()},F=h?`${t}-${h}`:"",[q,z,B]=T5(t),N=Ct(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl"},n,F,z,B);return q(C.createElement("div",{className:N,style:i},C.createElement(VQ,{ref:v,maxLength:s,value:E,onChange:T,onKeyDown:$,onKeyUp:I,onCompositionStart:A,onCompositionEnd:R,onBlur:L,"aria-label":r,rows:1,autoSize:u}),b!==null?o5(b,{className:`${t}-edit-content-confirm`}):null))};var ty,w$;function cZ(){return w$||(w$=1,ty=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(i){e.addRange(i)}),t&&t.focus()}}),ty}var ry,x$;function fZ(){if(x$)return ry;x$=1;var e=cZ(),t={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(o){var s=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return o.replace(/#{\s*key\s*}/g,s)}function i(o,s){var u,c,f,d,g,h,b=!1;s||(s={}),u=s.debug||!1;try{f=e(),d=document.createRange(),g=document.getSelection(),h=document.createElement("span"),h.textContent=o,h.ariaHidden="true",h.style.all="unset",h.style.position="fixed",h.style.top=0,h.style.clip="rect(0, 0, 0, 0)",h.style.whiteSpace="pre",h.style.webkitUserSelect="text",h.style.MozUserSelect="text",h.style.msUserSelect="text",h.style.userSelect="text",h.addEventListener("copy",function(S){if(S.stopPropagation(),s.format)if(S.preventDefault(),typeof S.clipboardData>"u"){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var y=t[s.format]||t.default;window.clipboardData.setData(y,o)}else S.clipboardData.clearData(),S.clipboardData.setData(s.format,o);s.onCopy&&(S.preventDefault(),s.onCopy(S.clipboardData))}),document.body.appendChild(h),d.selectNodeContents(h),g.addRange(d);var v=document.execCommand("copy");if(!v)throw new Error("copy command was unsuccessful");b=!0}catch(S){u&&console.error("unable to copy using execCommand: ",S),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(s.format||"text",o),s.onCopy&&s.onCopy(window.clipboardData),b=!0}catch(y){u&&console.error("unable to copy using clipboardData: ",y),u&&console.error("falling back to prompt"),c=n("message"in s?s.message:r),window.prompt(c,o)}}finally{g&&(typeof g.removeRange=="function"?g.removeRange(d):g.removeAllRanges()),h&&document.body.removeChild(h),f()}return b}return ry=i,ry}var dZ=fZ();const pZ=Mr(dZ);var hZ=function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function u(d){try{f(n.next(d))}catch(g){s(g)}}function c(d){try{f(n.throw(d))}catch(g){s(g)}}function f(d){d.done?o(d.value):i(d.value).then(u,c)}f((n=n.apply(e,t||[])).next())})};const gZ=e=>{let{copyConfig:t,children:r}=e;const[n,i]=C.useState(!1),[o,s]=C.useState(!1),u=C.useRef(null),c=()=>{u.current&&clearTimeout(u.current)},f={};t.format&&(f.format=t.format),C.useEffect(()=>c,[]);const d=Xn(g=>hZ(void 0,void 0,void 0,function*(){var h;g?.preventDefault(),g?.stopPropagation(),s(!0);try{const b=typeof t.text=="function"?yield t.text():t.text;pZ(b||String(r)||"",f),s(!1),i(!0),c(),u.current=setTimeout(()=>{i(!1)},3e3),(h=t.onCopy)===null||h===void 0||h.call(t,g)}catch(b){throw s(!1),b}}));return{copied:n,copyLoading:o,onClick:d}};function ny(e,t){return C.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},t),r&&typeof e=="object"?e:null)]},[e])}const vZ=e=>{const t=C.useRef();return C.useEffect(()=>{t.current=e}),t.current},mZ=(e,t)=>{const r=C.useRef(!1);C.useEffect(()=>{r.current?e():r.current=!0},t)};var yZ=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const A5=C.forwardRef((e,t)=>{const{prefixCls:r,component:n="article",className:i,rootClassName:o,setContentRef:s,children:u,direction:c,style:f}=e,d=yZ(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:g,direction:h,typography:b}=C.useContext($i),v=c??h;let S=t;s&&(S=uh(t,s));const y=g("typography",r),[E,x,T]=T5(y),A=Ct(y,b?.className,{[`${y}-rtl`]:v==="rtl"},i,o,x,T),R=Object.assign(Object.assign({},b?.style),f);return E(C.createElement(n,Object.assign({className:A,style:R,ref:S},d),u))});function E$(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Dd(e,t,r){return e===!0||e===void 0?t:e||r&&t}const bZ=e=>{const{prefixCls:t,copied:r,locale:n,iconOnly:i,tooltips:o,icon:s,loading:u,tabIndex:c,onCopy:f}=e,d=E$(o),g=E$(s),{copied:h,copy:b}=n??{},v=r?Dd(d[1],h):Dd(d[0],b),y=typeof v=="string"?v:r?h:b;return C.createElement(vh,{key:"copy",title:v},C.createElement(i1,{className:Ct(`${t}-copy`,{[`${t}-copy-success`]:r,[`${t}-copy-icon-only`]:i}),onClick:f,"aria-label":y,tabIndex:c},r?Dd(g[1],C.createElement(UJ,null),!0):Dd(g[0],u?C.createElement(zK,null):C.createElement(WQ,null),!0)))},Ld=C.forwardRef((e,t)=>{let{style:r,children:n}=e;const i=C.useRef(null);return C.useImperativeHandle(t,()=>({isExceed:()=>{const o=i.current;return o.scrollHeight>o.clientHeight},getHeight:()=>i.current.clientHeight})),C.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},r)},n)});function $5(e){const t=typeof e;return t==="string"||t==="number"}function SZ(e){let t=0;return e.forEach(r=>{$5(r)?t+=String(r).length:t+=1}),t}function C$(e,t){let r=0;const n=[];for(let i=0;i<e.length;i+=1){if(r===t)return n;const o=e[i],u=$5(o)?String(o).length:1,c=r+u;if(c>t){const f=t-r;return n.push(String(o).slice(0,f)),n}n.push(o),r=c}return e}const iy=0,oy=1,ay=2,sy=3,R$=4,Fd={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function wZ(e){const{enableMeasure:t,width:r,text:n,children:i,rows:o,expanded:s,miscDeps:u,onEllipsis:c}=e,f=C.useMemo(()=>Nl(n),[n]),d=C.useMemo(()=>SZ(f),[n]),g=C.useMemo(()=>i(f,!1),[n]),[h,b]=C.useState(null),v=C.useRef(null),S=C.useRef(null),y=C.useRef(null),E=C.useRef(null),x=C.useRef(null),[T,A]=C.useState(!1),[R,$]=C.useState(iy),[O,I]=C.useState(0),[L,F]=C.useState(null);lr(()=>{$(t&&r&&d?oy:iy)},[r,n,o,t,f]),lr(()=>{var N,j,H,X;if(R===oy){$(ay);const M=S.current&&getComputedStyle(S.current).whiteSpace;F(M)}else if(R===ay){const M=!!(!((N=y.current)===null||N===void 0)&&N.isExceed());$(M?sy:R$),b(M?[0,d]:null),A(M);const Q=((j=y.current)===null||j===void 0?void 0:j.getHeight())||0,W=o===1?0:((H=E.current)===null||H===void 0?void 0:H.getHeight())||0,D=((X=x.current)===null||X===void 0?void 0:X.getHeight())||0,P=W+D,G=Math.max(Q,P);I(G+1),c(M)}},[R]);const q=h?Math.ceil((h[0]+h[1])/2):0;lr(()=>{var N;const[j,H]=h||[0,0];if(j!==H){const M=(((N=v.current)===null||N===void 0?void 0:N.getHeight())||0)>O;let Q=q;H-j===1&&(Q=M?j:H),b(M?[j,Q]:[Q,H])}},[h,q]);const z=C.useMemo(()=>{if(R!==sy||!h||h[0]!==h[1]){const N=i(f,!1);return R!==R$&&R!==iy?C.createElement("span",{style:Object.assign(Object.assign({},Fd),{WebkitLineClamp:o})},N):N}return i(s?f:C$(f,h[0]),T)},[s,R,h,f].concat(at(u))),B={width:r,margin:0,padding:0,whiteSpace:L==="nowrap"?"normal":"inherit"};return C.createElement(C.Fragment,null,z,R===ay&&C.createElement(C.Fragment,null,C.createElement(Ld,{style:Object.assign(Object.assign(Object.assign({},B),Fd),{WebkitLineClamp:o}),ref:y},g),C.createElement(Ld,{style:Object.assign(Object.assign(Object.assign({},B),Fd),{WebkitLineClamp:o-1}),ref:E},g),C.createElement(Ld,{style:Object.assign(Object.assign(Object.assign({},B),Fd),{WebkitLineClamp:1}),ref:x},i([],!0))),R===sy&&h&&h[0]!==h[1]&&C.createElement(Ld,{style:Object.assign(Object.assign({},B),{top:400}),ref:v},i(C$(f,q),!0)),R===oy&&C.createElement("span",{style:{whiteSpace:"inherit"},ref:S}))}const xZ=e=>{let{enableEllipsis:t,isEllipsis:r,children:n,tooltipProps:i}=e;return!i?.title||!t?n:C.createElement(vh,Object.assign({open:r?void 0:!1},i),n)};var EZ=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function CZ(e,t){let{mark:r,code:n,underline:i,delete:o,strong:s,keyboard:u,italic:c}=e,f=t;function d(g,h){h&&(f=C.createElement(g,{},f))}return d("strong",s),d("u",i),d("del",o),d("code",n),d("mark",r),d("kbd",u),d("i",c),f}const RZ="...",mh=C.forwardRef((e,t)=>{var r,n,i;const{prefixCls:o,className:s,style:u,type:c,disabled:f,children:d,ellipsis:g,editable:h,copyable:b,component:v,title:S}=e,y=EZ(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:E,direction:x}=C.useContext($i),[T]=NG("Text"),A=C.useRef(null),R=C.useRef(null),$=E("typography",o),O=ik(y,["mark","code","delete","underline","strong","keyboard","italic"]),[I,L]=ny(h),[F,q]=Ac(!1,{value:L.editing}),{triggerType:z=["icon"]}=L,B=le=>{var fe;le&&((fe=L.onStart)===null||fe===void 0||fe.call(L)),q(le)},N=vZ(F);mZ(()=>{var le;!F&&N&&((le=R.current)===null||le===void 0||le.focus())},[F]);const j=le=>{le?.preventDefault(),B(!0)},H=le=>{var fe;(fe=L.onChange)===null||fe===void 0||fe.call(L,le),B(!1)},X=()=>{var le;(le=L.onCancel)===null||le===void 0||le.call(L),B(!1)},[M,Q]=ny(b),{copied:W,copyLoading:D,onClick:P}=gZ({copyConfig:Q,children:d}),[G,Z]=C.useState(!1),[te,K]=C.useState(!1),[be,ae]=C.useState(!1),[Se,he]=C.useState(!1),[Ee,we]=C.useState(!0),[Te,Ce]=ny(g,{expandable:!1,symbol:le=>le?T?.collapse:T?.expand}),[_e,$e]=Ac(Ce.defaultExpanded||!1,{value:Ce.expanded}),ke=Te&&(!_e||Ce.expandable==="collapsible"),{rows:Ge=1}=Ce,Qe=C.useMemo(()=>ke&&(Ce.suffix!==void 0||Ce.onEllipsis||Ce.expandable||I||M),[ke,Ce,I,M]);lr(()=>{Te&&!Qe&&(Z(i$("webkitLineClamp")),K(i$("textOverflow")))},[Qe,Te]);const[je,ze]=C.useState(ke),Ye=C.useMemo(()=>Qe?!1:Ge===1?te:G,[Qe,te,G]);lr(()=>{ze(Ye&&ke)},[Ye,ke]);const Ue=ke&&(je?Se:be),Re=ke&&Ge===1&&je,Xe=ke&&Ge>1&&je,ct=(le,fe)=>{var ve;$e(fe.expanded),(ve=Ce.onExpand)===null||ve===void 0||ve.call(Ce,le,fe)},[Pt,ht]=C.useState(0),Ft=le=>{let{offsetWidth:fe}=le;ht(fe)},It=le=>{var fe;ae(le),be!==le&&((fe=Ce.onEllipsis)===null||fe===void 0||fe.call(Ce,le))};C.useEffect(()=>{const le=A.current;if(Te&&je&&le){const fe=Xe?le.offsetHeight<le.scrollHeight:le.offsetWidth<le.scrollWidth;Se!==fe&&he(fe)}},[Te,je,d,Xe,Ee,Pt]),C.useEffect(()=>{const le=A.current;if(typeof IntersectionObserver>"u"||!le||!je||!ke)return;const fe=new IntersectionObserver(()=>{we(!!le.offsetParent)});return fe.observe(le),()=>{fe.disconnect()}},[je,ke]);let ne={};Ce.tooltip===!0?ne={title:(r=L.text)!==null&&r!==void 0?r:d}:C.isValidElement(Ce.tooltip)?ne={title:Ce.tooltip}:typeof Ce.tooltip=="object"?ne=Object.assign({title:(n=L.text)!==null&&n!==void 0?n:d},Ce.tooltip):ne={title:Ce.tooltip};const se=C.useMemo(()=>{const le=fe=>["string","number"].includes(typeof fe);if(!(!Te||je)){if(le(L.text))return L.text;if(le(d))return d;if(le(S))return S;if(le(ne.title))return ne.title}},[Te,je,S,ne.title,Ue]);if(F)return C.createElement(uZ,{value:(i=L.text)!==null&&i!==void 0?i:typeof d=="string"?d:"",onSave:H,onCancel:X,onEnd:L.onEnd,prefixCls:$,className:s,style:u,direction:x,component:v,maxLength:L.maxLength,autoSize:L.autoSize,enterIcon:L.enterIcon});const pe=()=>{const{expandable:le,symbol:fe}=Ce;return!le||_e&&le!=="collapsible"?null:C.createElement(i1,{key:"expand",className:`${$}-${_e?"collapse":"expand"}`,onClick:ve=>ct(ve,{expanded:!_e}),"aria-label":_e?T.collapse:T?.expand},typeof fe=="function"?fe(_e):fe)},Y=()=>{if(!I)return;const{icon:le,tooltip:fe,tabIndex:ve}=L,Ie=Nl(fe)[0]||T?.edit,De=typeof Ie=="string"?Ie:"";return z.includes("icon")?C.createElement(vh,{key:"edit",title:fe===!1?"":Ie},C.createElement(i1,{ref:R,className:`${$}-edit`,onClick:j,"aria-label":De,tabIndex:ve},le||C.createElement(XQ,{role:"button"}))):null},V=()=>M?C.createElement(bZ,Object.assign({key:"copy"},Q,{prefixCls:$,copied:W,locale:T,onCopy:P,loading:D,iconOnly:d==null})):null,ee=le=>[le&&pe(),Y(),V()],Oe=le=>[le&&!_e&&C.createElement("span",{"aria-hidden":!0,key:"ellipsis"},RZ),Ce.suffix,ee(le)];return C.createElement(Wc,{onResize:Ft,disabled:!ke},le=>C.createElement(xZ,{tooltipProps:ne,enableEllipsis:ke,isEllipsis:Ue},C.createElement(A5,Object.assign({className:Ct({[`${$}-${c}`]:c,[`${$}-disabled`]:f,[`${$}-ellipsis`]:Te,[`${$}-ellipsis-single-line`]:Re,[`${$}-ellipsis-multiple-line`]:Xe},s),prefixCls:o,style:Object.assign(Object.assign({},u),{WebkitLineClamp:Xe?Ge:void 0}),component:v,ref:uh(le,A,t),direction:x,onClick:z.includes("text")?j:void 0,"aria-label":se?.toString(),title:S},O),C.createElement(wZ,{enableMeasure:ke&&!je,text:d,rows:Ge,width:Pt,onEllipsis:It,expanded:_e,miscDeps:[W,_e,D,I,M]},(fe,ve)=>CZ(e,C.createElement(C.Fragment,null,fe.length>0&&ve&&!_e&&se?C.createElement("span",{key:"show-content","aria-hidden":!0},fe):fe,Oe(ve)))))))});var _Z=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const OZ=C.forwardRef((e,t)=>{var{ellipsis:r,rel:n}=e,i=_Z(e,["ellipsis","rel"]);const o=Object.assign(Object.assign({},i),{rel:n===void 0&&i.target==="_blank"?"noopener noreferrer":n});return delete o.navigate,C.createElement(mh,Object.assign({},o,{ref:t,ellipsis:!!r,component:"a"}))}),TZ=C.forwardRef((e,t)=>C.createElement(mh,Object.assign({ref:t},e,{component:"div"})));var AZ=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const $Z=(e,t)=>{var{ellipsis:r}=e,n=AZ(e,["ellipsis"]);const i=C.useMemo(()=>r&&typeof r=="object"?ik(r,["expandable","rows"]):r,[r]);return C.createElement(mh,Object.assign({ref:t},n,{ellipsis:i,component:"span"}))},IZ=C.forwardRef($Z);var PZ=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const kZ=[1,2,3,4,5],MZ=C.forwardRef((e,t)=>{const{level:r=1}=e,n=PZ(e,["level"]);let i;return kZ.includes(r)?i=`h${r}`:i="h1",C.createElement(mh,Object.assign({ref:t},n,{component:i}))}),Jc=A5;Jc.Text=IZ;Jc.Link=OZ;Jc.Title=MZ;Jc.Paragraph=TZ;const DZ={activeLevels:{debug:!0,info:!0,warning:!0,error:!0,fatal:!0},showTimestamp:!0,showTag:!0,includeTags:new Set,filterText:""},_$=xe(ia).attrs({flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start"})``,O$=xe(Jc.Title).attrs({level:5})`
1212
+ margin-bottom: 20px;
1213
+ `,T$=xe(ia).attrs({columnGap:4,flexDirection:"row",flexWrap:"wrap",flexGrow:1,overflow:"scroll"})``,Nd=xe.input`
1214
+ margin-right: 4px;
1215
+ `,LZ=({options:e,setOptions:t,uniqueTags:r})=>U.jsxs(ia,{flexDirection:"column",borderRadius:8,padding:5,rowGap:5,children:[U.jsxs(_$,{children:[U.jsx(O$,{style:{color:"white",whiteSpace:"nowrap"},children:"Log levels"}),U.jsxs(T$,{children:[U.jsxs("label",{children:[U.jsx(Nd,{type:"checkbox",checked:Object.values(e.activeLevels).every(Boolean),onChange:n=>{const i=Object.fromEntries(Object.keys(e.activeLevels).map(o=>[o,n.target.checked]));t({...e,activeLevels:i})}}),"All"]}),["debug","info","warning","error","fatal"].map(n=>U.jsxs("label",{children:[U.jsx(Nd,{type:"checkbox",checked:e.activeLevels[n],onChange:i=>{t({...e,activeLevels:{...e.activeLevels,[n]:i.target.checked}})}}),n]},n))]})]}),U.jsxs(_$,{children:[U.jsx(O$,{style:{color:"white",whiteSpace:"nowrap"},children:"Tags"}),U.jsxs(T$,{children:[U.jsxs("label",{children:[U.jsx(Nd,{type:"checkbox",checked:r.size===e.includeTags.size,onChange:n=>{n.target.checked?r.forEach(i=>e.includeTags.add(i)):e.includeTags.clear(),t({...e})}}),"All"]}),Array.from(r).map(n=>U.jsxs("label",{children:[U.jsx(Nd,{type:"checkbox",checked:e.includeTags.has(n),onChange:i=>{i.target.checked?e.includeTags.add(n):e.includeTags.delete(n),t({...e})}}),n]},n))]})]})]}),FZ=xe.span`
1216
+ font-size: 11px;
1217
+ color: #666;
1218
+ white-space: nowrap;
1219
+ padding: 0 4px;
1220
+ `,jd=xe.button`
1221
+ background: none;
1222
+ border: none;
1223
+ border-left: 1px solid #eee;
1224
+ padding: 4px 6px;
1225
+ cursor: pointer;
1226
+ opacity: 0.65;
1227
+ color: #333;
1228
+ display: flex;
1229
+ align-items: center;
1230
+ justify-content: center;
1231
+
1232
+ &:hover {
1233
+ opacity: 1;
1234
+ background-color: #f5f5f5;
1235
+ }
1236
+
1237
+ &:disabled {
1238
+ opacity: 0.3;
1239
+ cursor: default;
1240
+ &:hover {
1241
+ background-color: transparent;
1242
+ }
1243
+ }
1244
+ `,NZ=xe.button`
1245
+ background: none;
1246
+ border: none;
1247
+ padding: 4px;
1248
+ cursor: pointer;
1249
+ opacity: 0.5;
1250
+ color: #666;
1251
+ display: flex;
1252
+ align-items: center;
1253
+ justify-content: center;
1254
+
1255
+ &:hover {
1256
+ opacity: 1;
1257
+ }
1258
+ `,A$=xe.span`
1259
+ display: flex;
1260
+ flex-direction: column;
1261
+ align-items: center;
1262
+ line-height: 0;
1263
+ transform: scale(0.85);
1264
+
1265
+ svg {
1266
+ display: block;
1267
+ }
1268
+
1269
+ svg:first-child {
1270
+ margin-bottom: -8px;
1271
+ }
1272
+ `,jZ=({value:e,onChange:t,matchCount:r,currentMatchIndex:n,onNext:i,onPrevious:o,onFirst:s,onLast:u,inputRef:c})=>{const f=C.useRef(null),d=c??f,[g,h]=C.useState(!1),b=C.useCallback(E=>{E.key==="Enter"?(E.preventDefault(),E.shiftKey?o():i()):E.key==="Escape"&&d.current?.blur()},[i,o,d]),v=r>0,S=v?n+1:0,y=C.useCallback(()=>{t(""),d.current?.focus()},[t,d]);return U.jsx(WP,{children:U.jsxs(qP,{$focused:g,children:[U.jsx(GP,{ref:d,type:"text",placeholder:"Search (Ctrl/Cmd+F)",value:e,onChange:E=>t(E.target.value),onFocus:()=>h(!0),onBlur:()=>h(!1),onKeyDown:b}),e&&U.jsx(NZ,{onClick:y,title:"Clear search",children:U.jsx(ub,{size:"XS"})}),e&&U.jsxs(FZ,{children:[S,"/",r]}),U.jsx(jd,{onClick:o,disabled:!v,title:"Previous match (Shift+Enter)",children:U.jsx(T0,{size:"XS"})}),U.jsx(jd,{onClick:i,disabled:!v,title:"Next match (Enter)",children:U.jsx(np,{size:"XS"})}),U.jsx(jd,{onClick:s,disabled:!v,title:"First match",children:U.jsxs(A$,{children:[U.jsx(T0,{size:"XS"}),U.jsx(T0,{size:"XS"})]})}),U.jsx(jd,{onClick:u,disabled:!v,title:"Last match",children:U.jsxs(A$,{children:[U.jsx(np,{size:"XS"}),U.jsx(np,{size:"XS"})]})})]})})},ly=xe.div`
1273
+ opacity: 0.65;
1274
+ cursor: pointer;
1275
+ flex-shrink: 0;
1276
+ &:hover {
1277
+ opacity: 1;
1278
+ }
1279
+ `,zZ=({clearLogs:e,downloadLogs:t,options:r,setOptions:n,uniqueTags:i,searchQuery:o,onSearchChange:s,matchCount:u,currentMatchIndex:c,onSearchNext:f,onSearchPrevious:d,onSearchFirst:g,onSearchLast:h,searchInputRef:b})=>U.jsxs(ia,{flexDirection:"row",columnGap:5,alignItems:"center",flex:1,children:[U.jsx(ly,{onClick:e,children:U.jsx(D7,{size:"S"})}),U.jsx(AW,{trigger:"click",placement:"bottom",interactive:!0,content:U.jsx(LZ,{options:r,setOptions:n,uniqueTags:i}),children:U.jsx(ly,{children:U.jsx(F7,{size:"S"})})}),U.jsx(ly,{onClick:t,children:U.jsx(L7,{size:"S"})}),U.jsx(VW,{value:r.filterText,onChange:v=>n({...r,filterText:v})}),U.jsx(jZ,{value:o,onChange:s,matchCount:u,currentMatchIndex:c,onNext:f,onPrevious:d,onFirst:g,onLast:h,inputRef:b})]});/**
1280
+ * table-core
1281
+ *
1282
+ * Copyright (c) TanStack
1283
+ *
1284
+ * This source code is licensed under the MIT license found in the
1285
+ * LICENSE.md file in the root directory of this source tree.
1286
+ *
1287
+ * @license MIT
1288
+ */function BZ(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function Ma(e,t){return typeof e=="function"?e(t):e}function ri(e,t){return r=>{t.setState(n=>({...n,[e]:Ma(r,n[e])}))}}function yh(e){return e instanceof Function}function VZ(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function UZ(e,t){const r=[],n=i=>{i.forEach(o=>{r.push(o);const s=t(o);s!=null&&s.length&&n(s)})};return n(e),r}function st(e,t,r){let n=[],i;return o=>{let s;r.key&&r.debug&&(s=Date.now());const u=e(o);if(!(u.length!==n.length||u.some((d,g)=>n[g]!==d)))return i;n=u;let f;if(r.key&&r.debug&&(f=Date.now()),i=t(...u),r==null||r.onChange==null||r.onChange(i),r.key&&r.debug&&r!=null&&r.debug()){const d=Math.round((Date.now()-s)*100)/100,g=Math.round((Date.now()-f)*100)/100,h=g/16,b=(v,S)=>{for(v=String(v);v.length<S;)v=" "+v;return v};console.info(`%c⏱ ${b(g,5)} /${b(d,5)} ms`,`
1289
+ font-size: .6rem;
1290
+ font-weight: bold;
1291
+ color: hsl(${Math.max(0,Math.min(120-120*h,120))}deg 100% 31%);`,r?.key)}return i}}function lt(e,t,r,n){return{debug:()=>{var i;return(i=e?.debugAll)!=null?i:e[t]},key:!1,onChange:n}}function HZ(e,t,r,n){const i=()=>{var s;return(s=o.getValue())!=null?s:e.options.renderFallbackValue},o={id:`${t.id}_${r.id}`,row:t,column:r,getValue:()=>t.getValue(n),renderValue:i,getContext:st(()=>[e,r,t,o],(s,u,c,f)=>({table:s,column:u,row:c,cell:f,getValue:f.getValue,renderValue:f.renderValue}),lt(e.options,"debugCells"))};return e._features.forEach(s=>{s.createCell==null||s.createCell(o,r,t,e)},{}),o}function WZ(e,t,r,n){var i,o;const u={...e._getDefaultColumnDef(),...t},c=u.accessorKey;let f=(i=(o=u.id)!=null?o:c?typeof String.prototype.replaceAll=="function"?c.replaceAll(".","_"):c.replace(/\./g,"_"):void 0)!=null?i:typeof u.header=="string"?u.header:void 0,d;if(u.accessorFn?d=u.accessorFn:c&&(c.includes(".")?d=h=>{let b=h;for(const S of c.split(".")){var v;b=(v=b)==null?void 0:v[S]}return b}:d=h=>h[u.accessorKey]),!f)throw new Error;let g={id:`${String(f)}`,accessorFn:d,parent:n,depth:r,columnDef:u,columns:[],getFlatColumns:st(()=>[!0],()=>{var h;return[g,...(h=g.columns)==null?void 0:h.flatMap(b=>b.getFlatColumns())]},lt(e.options,"debugColumns")),getLeafColumns:st(()=>[e._getOrderColumnsFn()],h=>{var b;if((b=g.columns)!=null&&b.length){let v=g.columns.flatMap(S=>S.getLeafColumns());return h(v)}return[g]},lt(e.options,"debugColumns"))};for(const h of e._features)h.createColumn==null||h.createColumn(g,e);return g}const Qr="debugHeaders";function $$(e,t,r){var n;let o={id:(n=r.id)!=null?n:t.id,column:t,index:r.index,isPlaceholder:!!r.isPlaceholder,placeholderId:r.placeholderId,depth:r.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const s=[],u=c=>{c.subHeaders&&c.subHeaders.length&&c.subHeaders.map(u),s.push(c)};return u(o),s},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(s=>{s.createHeader==null||s.createHeader(o,e)}),o}const qZ={createTable:e=>{e.getHeaderGroups=st(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,i)=>{var o,s;const u=(o=n?.map(g=>r.find(h=>h.id===g)).filter(Boolean))!=null?o:[],c=(s=i?.map(g=>r.find(h=>h.id===g)).filter(Boolean))!=null?s:[],f=r.filter(g=>!(n!=null&&n.includes(g.id))&&!(i!=null&&i.includes(g.id)));return zd(t,[...u,...f,...c],e)},lt(e.options,Qr)),e.getCenterHeaderGroups=st(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,i)=>(r=r.filter(o=>!(n!=null&&n.includes(o.id))&&!(i!=null&&i.includes(o.id))),zd(t,r,e,"center")),lt(e.options,Qr)),e.getLeftHeaderGroups=st(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,r,n)=>{var i;const o=(i=n?.map(s=>r.find(u=>u.id===s)).filter(Boolean))!=null?i:[];return zd(t,o,e,"left")},lt(e.options,Qr)),e.getRightHeaderGroups=st(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,r,n)=>{var i;const o=(i=n?.map(s=>r.find(u=>u.id===s)).filter(Boolean))!=null?i:[];return zd(t,o,e,"right")},lt(e.options,Qr)),e.getFooterGroups=st(()=>[e.getHeaderGroups()],t=>[...t].reverse(),lt(e.options,Qr)),e.getLeftFooterGroups=st(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),lt(e.options,Qr)),e.getCenterFooterGroups=st(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),lt(e.options,Qr)),e.getRightFooterGroups=st(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),lt(e.options,Qr)),e.getFlatHeaders=st(()=>[e.getHeaderGroups()],t=>t.map(r=>r.headers).flat(),lt(e.options,Qr)),e.getLeftFlatHeaders=st(()=>[e.getLeftHeaderGroups()],t=>t.map(r=>r.headers).flat(),lt(e.options,Qr)),e.getCenterFlatHeaders=st(()=>[e.getCenterHeaderGroups()],t=>t.map(r=>r.headers).flat(),lt(e.options,Qr)),e.getRightFlatHeaders=st(()=>[e.getRightHeaderGroups()],t=>t.map(r=>r.headers).flat(),lt(e.options,Qr)),e.getCenterLeafHeaders=st(()=>[e.getCenterFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),lt(e.options,Qr)),e.getLeftLeafHeaders=st(()=>[e.getLeftFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),lt(e.options,Qr)),e.getRightLeafHeaders=st(()=>[e.getRightFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),lt(e.options,Qr)),e.getLeafHeaders=st(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,r,n)=>{var i,o,s,u,c,f;return[...(i=(o=t[0])==null?void 0:o.headers)!=null?i:[],...(s=(u=r[0])==null?void 0:u.headers)!=null?s:[],...(c=(f=n[0])==null?void 0:f.headers)!=null?c:[]].map(d=>d.getLeafHeaders()).flat()},lt(e.options,Qr))}};function zd(e,t,r,n){var i,o;let s=0;const u=function(h,b){b===void 0&&(b=1),s=Math.max(s,b),h.filter(v=>v.getIsVisible()).forEach(v=>{var S;(S=v.columns)!=null&&S.length&&u(v.columns,b+1)},0)};u(e);let c=[];const f=(h,b)=>{const v={depth:b,id:[n,`${b}`].filter(Boolean).join("_"),headers:[]},S=[];h.forEach(y=>{const E=[...S].reverse()[0],x=y.column.depth===v.depth;let T,A=!1;if(x&&y.column.parent?T=y.column.parent:(T=y.column,A=!0),E&&E?.column===T)E.subHeaders.push(y);else{const R=$$(r,T,{id:[n,b,T.id,y?.id].filter(Boolean).join("_"),isPlaceholder:A,placeholderId:A?`${S.filter($=>$.column===T).length}`:void 0,depth:b,index:S.length});R.subHeaders.push(y),S.push(R)}v.headers.push(y),y.headerGroup=v}),c.push(v),b>0&&f(S,b-1)},d=t.map((h,b)=>$$(r,h,{depth:s,index:b}));f(d,s-1),c.reverse();const g=h=>h.filter(v=>v.column.getIsVisible()).map(v=>{let S=0,y=0,E=[0];v.subHeaders&&v.subHeaders.length?(E=[],g(v.subHeaders).forEach(T=>{let{colSpan:A,rowSpan:R}=T;S+=A,E.push(R)})):S=1;const x=Math.min(...E);return y=y+x,v.colSpan=S,v.rowSpan=y,{colSpan:S,rowSpan:y}});return g((i=(o=c[0])==null?void 0:o.headers)!=null?i:[]),c}const GZ=(e,t,r,n,i,o,s)=>{let u={id:t,index:n,original:r,depth:i,parentId:s,_valuesCache:{},_uniqueValuesCache:{},getValue:c=>{if(u._valuesCache.hasOwnProperty(c))return u._valuesCache[c];const f=e.getColumn(c);if(f!=null&&f.accessorFn)return u._valuesCache[c]=f.accessorFn(u.original,n),u._valuesCache[c]},getUniqueValues:c=>{if(u._uniqueValuesCache.hasOwnProperty(c))return u._uniqueValuesCache[c];const f=e.getColumn(c);if(f!=null&&f.accessorFn)return f.columnDef.getUniqueValues?(u._uniqueValuesCache[c]=f.columnDef.getUniqueValues(u.original,n),u._uniqueValuesCache[c]):(u._uniqueValuesCache[c]=[u.getValue(c)],u._uniqueValuesCache[c])},renderValue:c=>{var f;return(f=u.getValue(c))!=null?f:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>UZ(u.subRows,c=>c.subRows),getParentRow:()=>u.parentId?e.getRow(u.parentId,!0):void 0,getParentRows:()=>{let c=[],f=u;for(;;){const d=f.getParentRow();if(!d)break;c.push(d),f=d}return c.reverse()},getAllCells:st(()=>[e.getAllLeafColumns()],c=>c.map(f=>HZ(e,u,f,f.id)),lt(e.options,"debugRows")),_getAllCellsByColumnId:st(()=>[u.getAllCells()],c=>c.reduce((f,d)=>(f[d.column.id]=d,f),{}),lt(e.options,"debugRows"))};for(let c=0;c<e._features.length;c++){const f=e._features[c];f==null||f.createRow==null||f.createRow(u,e)}return u},XZ={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},I5=(e,t,r)=>{var n,i;const o=r==null||(n=r.toString())==null?void 0:n.toLowerCase();return!!(!((i=e.getValue(t))==null||(i=i.toString())==null||(i=i.toLowerCase())==null)&&i.includes(o))};I5.autoRemove=e=>no(e);const P5=(e,t,r)=>{var n;return!!(!((n=e.getValue(t))==null||(n=n.toString())==null)&&n.includes(r))};P5.autoRemove=e=>no(e);const k5=(e,t,r)=>{var n;return((n=e.getValue(t))==null||(n=n.toString())==null?void 0:n.toLowerCase())===r?.toLowerCase()};k5.autoRemove=e=>no(e);const M5=(e,t,r)=>{var n;return(n=e.getValue(t))==null?void 0:n.includes(r)};M5.autoRemove=e=>no(e)||!(e!=null&&e.length);const D5=(e,t,r)=>!r.some(n=>{var i;return!((i=e.getValue(t))!=null&&i.includes(n))});D5.autoRemove=e=>no(e)||!(e!=null&&e.length);const L5=(e,t,r)=>r.some(n=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(n)});L5.autoRemove=e=>no(e)||!(e!=null&&e.length);const F5=(e,t,r)=>e.getValue(t)===r;F5.autoRemove=e=>no(e);const N5=(e,t,r)=>e.getValue(t)==r;N5.autoRemove=e=>no(e);const DS=(e,t,r)=>{let[n,i]=r;const o=e.getValue(t);return o>=n&&o<=i};DS.resolveFilterValue=e=>{let[t,r]=e,n=typeof t!="number"?parseFloat(t):t,i=typeof r!="number"?parseFloat(r):r,o=t===null||Number.isNaN(n)?-1/0:n,s=r===null||Number.isNaN(i)?1/0:i;if(o>s){const u=o;o=s,s=u}return[o,s]};DS.autoRemove=e=>no(e)||no(e[0])&&no(e[1]);const ea={includesString:I5,includesStringSensitive:P5,equalsString:k5,arrIncludes:M5,arrIncludesAll:D5,arrIncludesSome:L5,equals:F5,weakEquals:N5,inNumberRange:DS};function no(e){return e==null||e===""}const KZ={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:ri("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const r=t.getCoreRowModel().flatRows[0],n=r?.getValue(e.id);return typeof n=="string"?ea.includesString:typeof n=="number"?ea.inNumberRange:typeof n=="boolean"||n!==null&&typeof n=="object"?ea.equals:Array.isArray(n)?ea.arrIncludes:ea.weakEquals},e.getFilterFn=()=>{var r,n;return yh(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(r=(n=t.options.filterFns)==null?void 0:n[e.columnDef.filterFn])!=null?r:ea[e.columnDef.filterFn]},e.getCanFilter=()=>{var r,n,i;return((r=e.columnDef.enableColumnFilter)!=null?r:!0)&&((n=t.options.enableColumnFilters)!=null?n:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var r;return(r=t.getState().columnFilters)==null||(r=r.find(n=>n.id===e.id))==null?void 0:r.value},e.getFilterIndex=()=>{var r,n;return(r=(n=t.getState().columnFilters)==null?void 0:n.findIndex(i=>i.id===e.id))!=null?r:-1},e.setFilterValue=r=>{t.setColumnFilters(n=>{const i=e.getFilterFn(),o=n?.find(d=>d.id===e.id),s=Ma(r,o?o.value:void 0);if(I$(i,s,e)){var u;return(u=n?.filter(d=>d.id!==e.id))!=null?u:[]}const c={id:e.id,value:s};if(o){var f;return(f=n?.map(d=>d.id===e.id?c:d))!=null?f:[]}return n!=null&&n.length?[...n,c]:[c]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const r=e.getAllLeafColumns(),n=i=>{var o;return(o=Ma(t,i))==null?void 0:o.filter(s=>{const u=r.find(c=>c.id===s.id);if(u){const c=u.getFilterFn();if(I$(c,s.value,u))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(n)},e.resetColumnFilters=t=>{var r,n;e.setColumnFilters(t?[]:(r=(n=e.initialState)==null?void 0:n.columnFilters)!=null?r:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function I$(e,t,r){return(e&&e.autoRemove?e.autoRemove(t,r):!1)||typeof t>"u"||typeof t=="string"&&!t}const YZ=(e,t,r)=>r.reduce((n,i)=>{const o=i.getValue(e);return n+(typeof o=="number"?o:0)},0),JZ=(e,t,r)=>{let n;return r.forEach(i=>{const o=i.getValue(e);o!=null&&(n>o||n===void 0&&o>=o)&&(n=o)}),n},QZ=(e,t,r)=>{let n;return r.forEach(i=>{const o=i.getValue(e);o!=null&&(n<o||n===void 0&&o>=o)&&(n=o)}),n},ZZ=(e,t,r)=>{let n,i;return r.forEach(o=>{const s=o.getValue(e);s!=null&&(n===void 0?s>=s&&(n=i=s):(n>s&&(n=s),i<s&&(i=s)))}),[n,i]},eee=(e,t)=>{let r=0,n=0;if(t.forEach(i=>{let o=i.getValue(e);o!=null&&(o=+o)>=o&&(++r,n+=o)}),r)return n/r},tee=(e,t)=>{if(!t.length)return;const r=t.map(o=>o.getValue(e));if(!VZ(r))return;if(r.length===1)return r[0];const n=Math.floor(r.length/2),i=r.sort((o,s)=>o-s);return r.length%2!==0?i[n]:(i[n-1]+i[n])/2},ree=(e,t)=>Array.from(new Set(t.map(r=>r.getValue(e))).values()),nee=(e,t)=>new Set(t.map(r=>r.getValue(e))).size,iee=(e,t)=>t.length,uy={sum:YZ,min:JZ,max:QZ,extent:ZZ,mean:eee,median:tee,unique:ree,uniqueCount:nee,count:iee},oee={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,r;return(t=(r=e.getValue())==null||r.toString==null?void 0:r.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:ri("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(r=>r!=null&&r.includes(e.id)?r.filter(n=>n!==e.id):[...r??[],e.id])},e.getCanGroup=()=>{var r,n;return((r=e.columnDef.enableGrouping)!=null?r:!0)&&((n=t.options.enableGrouping)!=null?n:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var r;return(r=t.getState().grouping)==null?void 0:r.includes(e.id)},e.getGroupedIndex=()=>{var r;return(r=t.getState().grouping)==null?void 0:r.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const r=e.getCanGroup();return()=>{r&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const r=t.getCoreRowModel().flatRows[0],n=r?.getValue(e.id);if(typeof n=="number")return uy.sum;if(Object.prototype.toString.call(n)==="[object Date]")return uy.extent},e.getAggregationFn=()=>{var r,n;if(!e)throw new Error;return yh(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(r=(n=t.options.aggregationFns)==null?void 0:n[e.columnDef.aggregationFn])!=null?r:uy[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var r,n;e.setGrouping(t?[]:(r=(n=e.initialState)==null?void 0:n.grouping)!=null?r:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=r=>{if(e._groupingValuesCache.hasOwnProperty(r))return e._groupingValuesCache[r];const n=t.getColumn(r);return n!=null&&n.columnDef.getGroupingValue?(e._groupingValuesCache[r]=n.columnDef.getGroupingValue(e.original),e._groupingValuesCache[r]):e.getValue(r)},e._groupingValuesCache={}},createCell:(e,t,r,n)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===r.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var i;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((i=r.subRows)!=null&&i.length)}}};function aee(e,t,r){if(!(t!=null&&t.length)||!r)return e;const n=e.filter(o=>!t.includes(o.id));return r==="remove"?n:[...t.map(o=>e.find(s=>s.id===o)).filter(Boolean),...n]}const see={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:ri("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=st(r=>[nc(t,r)],r=>r.findIndex(n=>n.id===e.id),lt(t.options,"debugColumns")),e.getIsFirstColumn=r=>{var n;return((n=nc(t,r)[0])==null?void 0:n.id)===e.id},e.getIsLastColumn=r=>{var n;const i=nc(t,r);return((n=i[i.length-1])==null?void 0:n.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var r;e.setColumnOrder(t?[]:(r=e.initialState.columnOrder)!=null?r:[])},e._getOrderColumnsFn=st(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,r,n)=>i=>{let o=[];if(!(t!=null&&t.length))o=i;else{const s=[...t],u=[...i];for(;u.length&&s.length;){const c=s.shift(),f=u.findIndex(d=>d.id===c);f>-1&&o.push(u.splice(f,1)[0])}o=[...o,...u]}return aee(o,r,n)},lt(e.options,"debugTable"))}},cy=()=>({left:[],right:[]}),lee={getInitialState:e=>({columnPinning:cy(),...e}),getDefaultOptions:e=>({onColumnPinningChange:ri("columnPinning",e)}),createColumn:(e,t)=>{e.pin=r=>{const n=e.getLeafColumns().map(i=>i.id).filter(Boolean);t.setColumnPinning(i=>{var o,s;if(r==="right"){var u,c;return{left:((u=i?.left)!=null?u:[]).filter(g=>!(n!=null&&n.includes(g))),right:[...((c=i?.right)!=null?c:[]).filter(g=>!(n!=null&&n.includes(g))),...n]}}if(r==="left"){var f,d;return{left:[...((f=i?.left)!=null?f:[]).filter(g=>!(n!=null&&n.includes(g))),...n],right:((d=i?.right)!=null?d:[]).filter(g=>!(n!=null&&n.includes(g)))}}return{left:((o=i?.left)!=null?o:[]).filter(g=>!(n!=null&&n.includes(g))),right:((s=i?.right)!=null?s:[]).filter(g=>!(n!=null&&n.includes(g)))}})},e.getCanPin=()=>e.getLeafColumns().some(n=>{var i,o,s;return((i=n.columnDef.enablePinning)!=null?i:!0)&&((o=(s=t.options.enableColumnPinning)!=null?s:t.options.enablePinning)!=null?o:!0)}),e.getIsPinned=()=>{const r=e.getLeafColumns().map(u=>u.id),{left:n,right:i}=t.getState().columnPinning,o=r.some(u=>n?.includes(u)),s=r.some(u=>i?.includes(u));return o?"left":s?"right":!1},e.getPinnedIndex=()=>{var r,n;const i=e.getIsPinned();return i?(r=(n=t.getState().columnPinning)==null||(n=n[i])==null?void 0:n.indexOf(e.id))!=null?r:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=st(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(r,n,i)=>{const o=[...n??[],...i??[]];return r.filter(s=>!o.includes(s.column.id))},lt(t.options,"debugRows")),e.getLeftVisibleCells=st(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(r,n)=>(n??[]).map(o=>r.find(s=>s.column.id===o)).filter(Boolean).map(o=>({...o,position:"left"})),lt(t.options,"debugRows")),e.getRightVisibleCells=st(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(r,n)=>(n??[]).map(o=>r.find(s=>s.column.id===o)).filter(Boolean).map(o=>({...o,position:"right"})),lt(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var r,n;return e.setColumnPinning(t?cy():(r=(n=e.initialState)==null?void 0:n.columnPinning)!=null?r:cy())},e.getIsSomeColumnsPinned=t=>{var r;const n=e.getState().columnPinning;if(!t){var i,o;return!!((i=n.left)!=null&&i.length||(o=n.right)!=null&&o.length)}return!!((r=n[t])!=null&&r.length)},e.getLeftLeafColumns=st(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,r)=>(r??[]).map(n=>t.find(i=>i.id===n)).filter(Boolean),lt(e.options,"debugColumns")),e.getRightLeafColumns=st(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,r)=>(r??[]).map(n=>t.find(i=>i.id===n)).filter(Boolean),lt(e.options,"debugColumns")),e.getCenterLeafColumns=st(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n)=>{const i=[...r??[],...n??[]];return t.filter(o=>!i.includes(o.id))},lt(e.options,"debugColumns"))}},Bd={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},fy=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),uee={getDefaultColumnDef:()=>Bd,getInitialState:e=>({columnSizing:{},columnSizingInfo:fy(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:ri("columnSizing",e),onColumnSizingInfoChange:ri("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var r,n,i;const o=t.getState().columnSizing[e.id];return Math.min(Math.max((r=e.columnDef.minSize)!=null?r:Bd.minSize,(n=o??e.columnDef.size)!=null?n:Bd.size),(i=e.columnDef.maxSize)!=null?i:Bd.maxSize)},e.getStart=st(r=>[r,nc(t,r),t.getState().columnSizing],(r,n)=>n.slice(0,e.getIndex(r)).reduce((i,o)=>i+o.getSize(),0),lt(t.options,"debugColumns")),e.getAfter=st(r=>[r,nc(t,r),t.getState().columnSizing],(r,n)=>n.slice(e.getIndex(r)+1).reduce((i,o)=>i+o.getSize(),0),lt(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(r=>{let{[e.id]:n,...i}=r;return i})},e.getCanResize=()=>{var r,n;return((r=e.columnDef.enableResizing)!=null?r:!0)&&((n=t.options.enableColumnResizing)!=null?n:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let r=0;const n=i=>{if(i.subHeaders.length)i.subHeaders.forEach(n);else{var o;r+=(o=i.column.getSize())!=null?o:0}};return n(e),r},e.getStart=()=>{if(e.index>0){const r=e.headerGroup.headers[e.index-1];return r.getStart()+r.getSize()}return 0},e.getResizeHandler=r=>{const n=t.getColumn(e.column.id),i=n?.getCanResize();return o=>{if(!n||!i||(o.persist==null||o.persist(),dy(o)&&o.touches&&o.touches.length>1))return;const s=e.getSize(),u=e?e.getLeafHeaders().map(E=>[E.column.id,E.column.getSize()]):[[n.id,n.getSize()]],c=dy(o)?Math.round(o.touches[0].clientX):o.clientX,f={},d=(E,x)=>{typeof x=="number"&&(t.setColumnSizingInfo(T=>{var A,R;const $=t.options.columnResizeDirection==="rtl"?-1:1,O=(x-((A=T?.startOffset)!=null?A:0))*$,I=Math.max(O/((R=T?.startSize)!=null?R:0),-.999999);return T.columnSizingStart.forEach(L=>{let[F,q]=L;f[F]=Math.round(Math.max(q+q*I,0)*100)/100}),{...T,deltaOffset:O,deltaPercentage:I}}),(t.options.columnResizeMode==="onChange"||E==="end")&&t.setColumnSizing(T=>({...T,...f})))},g=E=>d("move",E),h=E=>{d("end",E),t.setColumnSizingInfo(x=>({...x,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},b=r||typeof document<"u"?document:null,v={moveHandler:E=>g(E.clientX),upHandler:E=>{b?.removeEventListener("mousemove",v.moveHandler),b?.removeEventListener("mouseup",v.upHandler),h(E.clientX)}},S={moveHandler:E=>(E.cancelable&&(E.preventDefault(),E.stopPropagation()),g(E.touches[0].clientX),!1),upHandler:E=>{var x;b?.removeEventListener("touchmove",S.moveHandler),b?.removeEventListener("touchend",S.upHandler),E.cancelable&&(E.preventDefault(),E.stopPropagation()),h((x=E.touches[0])==null?void 0:x.clientX)}},y=cee()?{passive:!1}:!1;dy(o)?(b?.addEventListener("touchmove",S.moveHandler,y),b?.addEventListener("touchend",S.upHandler,y)):(b?.addEventListener("mousemove",v.moveHandler,y),b?.addEventListener("mouseup",v.upHandler,y)),t.setColumnSizingInfo(E=>({...E,startOffset:c,startSize:s,deltaOffset:0,deltaPercentage:0,columnSizingStart:u,isResizingColumn:n.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var r;e.setColumnSizing(t?{}:(r=e.initialState.columnSizing)!=null?r:{})},e.resetHeaderSizeInfo=t=>{var r;e.setColumnSizingInfo(t?fy():(r=e.initialState.columnSizingInfo)!=null?r:fy())},e.getTotalSize=()=>{var t,r;return(t=(r=e.getHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,r;return(t=(r=e.getLeftHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,r;return(t=(r=e.getCenterHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,r;return(t=(r=e.getRightHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0}}};let Vd=null;function cee(){if(typeof Vd=="boolean")return Vd;let e=!1;try{const t={get passive(){return e=!0,!1}},r=()=>{};window.addEventListener("test",r,t),window.removeEventListener("test",r)}catch{e=!1}return Vd=e,Vd}function dy(e){return e.type==="touchstart"}const fee={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:ri("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=r=>{e.getCanHide()&&t.setColumnVisibility(n=>({...n,[e.id]:r??!e.getIsVisible()}))},e.getIsVisible=()=>{var r,n;const i=e.columns;return(r=i.length?i.some(o=>o.getIsVisible()):(n=t.getState().columnVisibility)==null?void 0:n[e.id])!=null?r:!0},e.getCanHide=()=>{var r,n;return((r=e.columnDef.enableHiding)!=null?r:!0)&&((n=t.options.enableHiding)!=null?n:!0)},e.getToggleVisibilityHandler=()=>r=>{e.toggleVisibility==null||e.toggleVisibility(r.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=st(()=>[e.getAllCells(),t.getState().columnVisibility],r=>r.filter(n=>n.column.getIsVisible()),lt(t.options,"debugRows")),e.getVisibleCells=st(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(r,n,i)=>[...r,...n,...i],lt(t.options,"debugRows"))},createTable:e=>{const t=(r,n)=>st(()=>[n(),n().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(o=>o.getIsVisible==null?void 0:o.getIsVisible()),lt(e.options,"debugColumns"));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=r=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(r),e.resetColumnVisibility=r=>{var n;e.setColumnVisibility(r?{}:(n=e.initialState.columnVisibility)!=null?n:{})},e.toggleAllColumnsVisible=r=>{var n;r=(n=r)!=null?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((i,o)=>({...i,[o.id]:r||!(o.getCanHide!=null&&o.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(r=>!(r.getIsVisible!=null&&r.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(r=>r.getIsVisible==null?void 0:r.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>r=>{var n;e.toggleAllColumnsVisible((n=r.target)==null?void 0:n.checked)}}};function nc(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const dee={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},pee={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:ri("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var r;const n=(r=e.getCoreRowModel().flatRows[0])==null||(r=r._getAllCellsByColumnId()[t.id])==null?void 0:r.getValue();return typeof n=="string"||typeof n=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var r,n,i,o;return((r=e.columnDef.enableGlobalFilter)!=null?r:!0)&&((n=t.options.enableGlobalFilter)!=null?n:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&((o=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?o:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>ea.includesString,e.getGlobalFilterFn=()=>{var t,r;const{globalFilterFn:n}=e.options;return yh(n)?n:n==="auto"?e.getGlobalAutoFilterFn():(t=(r=e.options.filterFns)==null?void 0:r[n])!=null?t:ea[n]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},hee={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:ri("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,r=!1;e._autoResetExpanded=()=>{var n,i;if(!t){e._queue(()=>{t=!0});return}if((n=(i=e.options.autoResetAll)!=null?i:e.options.autoResetExpanded)!=null?n:!e.options.manualExpanding){if(r)return;r=!0,e._queue(()=>{e.resetExpanded(),r=!1})}},e.setExpanded=n=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(n),e.toggleAllRowsExpanded=n=>{n??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=n=>{var i,o;e.setExpanded(n?{}:(i=(o=e.initialState)==null?void 0:o.expanded)!=null?i:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(n=>n.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>n=>{n.persist==null||n.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const n=e.getState().expanded;return n===!0||Object.values(n).some(Boolean)},e.getIsAllRowsExpanded=()=>{const n=e.getState().expanded;return typeof n=="boolean"?n===!0:!(!Object.keys(n).length||e.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},e.getExpandedDepth=()=>{let n=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(o=>{const s=o.split(".");n=Math.max(n,s.length)}),n},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=r=>{t.setExpanded(n=>{var i;const o=n===!0?!0:!!(n!=null&&n[e.id]);let s={};if(n===!0?Object.keys(t.getRowModel().rowsById).forEach(u=>{s[u]=!0}):s=n,r=(i=r)!=null?i:!o,!o&&r)return{...s,[e.id]:!0};if(o&&!r){const{[e.id]:u,...c}=s;return c}return n})},e.getIsExpanded=()=>{var r;const n=t.getState().expanded;return!!((r=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?r:n===!0||n?.[e.id])},e.getCanExpand=()=>{var r,n,i;return(r=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?r:((n=t.options.enableExpanding)!=null?n:!0)&&!!((i=e.subRows)!=null&&i.length)},e.getIsAllParentsExpanded=()=>{let r=!0,n=e;for(;r&&n.parentId;)n=t.getRow(n.parentId,!0),r=n.getIsExpanded();return r},e.getToggleExpandedHandler=()=>{const r=e.getCanExpand();return()=>{r&&e.toggleExpanded()}}}},o1=0,a1=10,py=()=>({pageIndex:o1,pageSize:a1}),gee={getInitialState:e=>({...e,pagination:{...py(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:ri("pagination",e)}),createTable:e=>{let t=!1,r=!1;e._autoResetPageIndex=()=>{var n,i;if(!t){e._queue(()=>{t=!0});return}if((n=(i=e.options.autoResetAll)!=null?i:e.options.autoResetPageIndex)!=null?n:!e.options.manualPagination){if(r)return;r=!0,e._queue(()=>{e.resetPageIndex(),r=!1})}},e.setPagination=n=>{const i=o=>Ma(n,o);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=n=>{var i;e.setPagination(n?py():(i=e.initialState.pagination)!=null?i:py())},e.setPageIndex=n=>{e.setPagination(i=>{let o=Ma(n,i.pageIndex);const s=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,s)),{...i,pageIndex:o}})},e.resetPageIndex=n=>{var i,o;e.setPageIndex(n?o1:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageIndex)!=null?i:o1)},e.resetPageSize=n=>{var i,o;e.setPageSize(n?a1:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageSize)!=null?i:a1)},e.setPageSize=n=>{e.setPagination(i=>{const o=Math.max(1,Ma(n,i.pageSize)),s=i.pageSize*i.pageIndex,u=Math.floor(s/o);return{...i,pageIndex:u,pageSize:o}})},e.setPageCount=n=>e.setPagination(i=>{var o;let s=Ma(n,(o=e.options.pageCount)!=null?o:-1);return typeof s=="number"&&(s=Math.max(-1,s)),{...i,pageCount:s}}),e.getPageOptions=st(()=>[e.getPageCount()],n=>{let i=[];return n&&n>0&&(i=[...new Array(n)].fill(null).map((o,s)=>s)),i},lt(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:n}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:n<i-1},e.previousPage=()=>e.setPageIndex(n=>n-1),e.nextPage=()=>e.setPageIndex(n=>n+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var n;return(n=e.options.pageCount)!=null?n:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var n;return(n=e.options.rowCount)!=null?n:e.getPrePaginationRowModel().rows.length}}},hy=()=>({top:[],bottom:[]}),vee={getInitialState:e=>({rowPinning:hy(),...e}),getDefaultOptions:e=>({onRowPinningChange:ri("rowPinning",e)}),createRow:(e,t)=>{e.pin=(r,n,i)=>{const o=n?e.getLeafRows().map(c=>{let{id:f}=c;return f}):[],s=i?e.getParentRows().map(c=>{let{id:f}=c;return f}):[],u=new Set([...s,e.id,...o]);t.setRowPinning(c=>{var f,d;if(r==="bottom"){var g,h;return{top:((g=c?.top)!=null?g:[]).filter(S=>!(u!=null&&u.has(S))),bottom:[...((h=c?.bottom)!=null?h:[]).filter(S=>!(u!=null&&u.has(S))),...Array.from(u)]}}if(r==="top"){var b,v;return{top:[...((b=c?.top)!=null?b:[]).filter(S=>!(u!=null&&u.has(S))),...Array.from(u)],bottom:((v=c?.bottom)!=null?v:[]).filter(S=>!(u!=null&&u.has(S)))}}return{top:((f=c?.top)!=null?f:[]).filter(S=>!(u!=null&&u.has(S))),bottom:((d=c?.bottom)!=null?d:[]).filter(S=>!(u!=null&&u.has(S)))}})},e.getCanPin=()=>{var r;const{enableRowPinning:n,enablePinning:i}=t.options;return typeof n=="function"?n(e):(r=n??i)!=null?r:!0},e.getIsPinned=()=>{const r=[e.id],{top:n,bottom:i}=t.getState().rowPinning,o=r.some(u=>n?.includes(u)),s=r.some(u=>i?.includes(u));return o?"top":s?"bottom":!1},e.getPinnedIndex=()=>{var r,n;const i=e.getIsPinned();if(!i)return-1;const o=(r=i==="top"?t.getTopRows():t.getBottomRows())==null?void 0:r.map(s=>{let{id:u}=s;return u});return(n=o?.indexOf(e.id))!=null?n:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var r,n;return e.setRowPinning(t?hy():(r=(n=e.initialState)==null?void 0:n.rowPinning)!=null?r:hy())},e.getIsSomeRowsPinned=t=>{var r;const n=e.getState().rowPinning;if(!t){var i,o;return!!((i=n.top)!=null&&i.length||(o=n.bottom)!=null&&o.length)}return!!((r=n[t])!=null&&r.length)},e._getPinnedRows=(t,r,n)=>{var i;return((i=e.options.keepPinnedRows)==null||i?(r??[]).map(s=>{const u=e.getRow(s,!0);return u.getIsAllParentsExpanded()?u:null}):(r??[]).map(s=>t.find(u=>u.id===s))).filter(Boolean).map(s=>({...s,position:n}))},e.getTopRows=st(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,r)=>e._getPinnedRows(t,r,"top"),lt(e.options,"debugRows")),e.getBottomRows=st(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,r)=>e._getPinnedRows(t,r,"bottom"),lt(e.options,"debugRows")),e.getCenterRows=st(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,r,n)=>{const i=new Set([...r??[],...n??[]]);return t.filter(o=>!i.has(o.id))},lt(e.options,"debugRows"))}},mee={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:ri("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var r;return e.setRowSelection(t?{}:(r=e.initialState.rowSelection)!=null?r:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(r=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const n={...r},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(o=>{o.getCanSelect()&&(n[o.id]=!0)}):i.forEach(o=>{delete n[o.id]}),n})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(r=>{const n=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),i={...r};return e.getRowModel().rows.forEach(o=>{s1(i,o.id,n,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=st(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,r)=>Object.keys(t).length?gy(e,r):{rows:[],flatRows:[],rowsById:{}},lt(e.options,"debugTable")),e.getFilteredSelectedRowModel=st(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,r)=>Object.keys(t).length?gy(e,r):{rows:[],flatRows:[],rowsById:{}},lt(e.options,"debugTable")),e.getGroupedSelectedRowModel=st(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,r)=>Object.keys(t).length?gy(e,r):{rows:[],flatRows:[],rowsById:{}},lt(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:r}=e.getState();let n=!!(t.length&&Object.keys(r).length);return n&&t.some(i=>i.getCanSelect()&&!r[i.id])&&(n=!1),n},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:r}=e.getState();let n=!!t.length;return n&&t.some(i=>!r[i.id])&&(n=!1),n},e.getIsSomeRowsSelected=()=>{var t;const r=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return r>0&&r<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(r=>r.getCanSelect()).some(r=>r.getIsSelected()||r.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(r,n)=>{const i=e.getIsSelected();t.setRowSelection(o=>{var s;if(r=typeof r<"u"?r:!i,e.getCanSelect()&&i===r)return o;const u={...o};return s1(u,e.id,r,(s=n?.selectChildren)!=null?s:!0,t),u})},e.getIsSelected=()=>{const{rowSelection:r}=t.getState();return LS(e,r)},e.getIsSomeSelected=()=>{const{rowSelection:r}=t.getState();return l1(e,r)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:r}=t.getState();return l1(e,r)==="all"},e.getCanSelect=()=>{var r;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(r=t.options.enableRowSelection)!=null?r:!0},e.getCanSelectSubRows=()=>{var r;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(r=t.options.enableSubRowSelection)!=null?r:!0},e.getCanMultiSelect=()=>{var r;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(r=t.options.enableMultiRowSelection)!=null?r:!0},e.getToggleSelectedHandler=()=>{const r=e.getCanSelect();return n=>{var i;r&&e.toggleSelected((i=n.target)==null?void 0:i.checked)}}}},s1=(e,t,r,n,i)=>{var o;const s=i.getRow(t,!0);r?(s.getCanMultiSelect()||Object.keys(e).forEach(u=>delete e[u]),s.getCanSelect()&&(e[t]=!0)):delete e[t],n&&(o=s.subRows)!=null&&o.length&&s.getCanSelectSubRows()&&s.subRows.forEach(u=>s1(e,u.id,r,n,i))};function gy(e,t){const r=e.getState().rowSelection,n=[],i={},o=function(s,u){return s.map(c=>{var f;const d=LS(c,r);if(d&&(n.push(c),i[c.id]=c),(f=c.subRows)!=null&&f.length&&(c={...c,subRows:o(c.subRows)}),d)return c}).filter(Boolean)};return{rows:o(t.rows),flatRows:n,rowsById:i}}function LS(e,t){var r;return(r=t[e.id])!=null?r:!1}function l1(e,t,r){var n;if(!((n=e.subRows)!=null&&n.length))return!1;let i=!0,o=!1;return e.subRows.forEach(s=>{if(!(o&&!i)&&(s.getCanSelect()&&(LS(s,t)?o=!0:i=!1),s.subRows&&s.subRows.length)){const u=l1(s,t);u==="all"?o=!0:(u==="some"&&(o=!0),i=!1)}}),i?"all":o?"some":!1}const u1=/([0-9]+)/gm,yee=(e,t,r)=>j5(Ba(e.getValue(r)).toLowerCase(),Ba(t.getValue(r)).toLowerCase()),bee=(e,t,r)=>j5(Ba(e.getValue(r)),Ba(t.getValue(r))),See=(e,t,r)=>FS(Ba(e.getValue(r)).toLowerCase(),Ba(t.getValue(r)).toLowerCase()),wee=(e,t,r)=>FS(Ba(e.getValue(r)),Ba(t.getValue(r))),xee=(e,t,r)=>{const n=e.getValue(r),i=t.getValue(r);return n>i?1:n<i?-1:0},Eee=(e,t,r)=>FS(e.getValue(r),t.getValue(r));function FS(e,t){return e===t?0:e>t?1:-1}function Ba(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function j5(e,t){const r=e.split(u1).filter(Boolean),n=t.split(u1).filter(Boolean);for(;r.length&&n.length;){const i=r.shift(),o=n.shift(),s=parseInt(i,10),u=parseInt(o,10),c=[s,u].sort();if(isNaN(c[0])){if(i>o)return 1;if(o>i)return-1;continue}if(isNaN(c[1]))return isNaN(s)?-1:1;if(s>u)return 1;if(u>s)return-1}return r.length-n.length}const Lu={alphanumeric:yee,alphanumericCaseSensitive:bee,text:See,textCaseSensitive:wee,datetime:xee,basic:Eee},Cee={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:ri("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const r=t.getFilteredRowModel().flatRows.slice(10);let n=!1;for(const i of r){const o=i?.getValue(e.id);if(Object.prototype.toString.call(o)==="[object Date]")return Lu.datetime;if(typeof o=="string"&&(n=!0,o.split(u1).length>1))return Lu.alphanumeric}return n?Lu.text:Lu.basic},e.getAutoSortDir=()=>{const r=t.getFilteredRowModel().flatRows[0];return typeof r?.getValue(e.id)=="string"?"asc":"desc"},e.getSortingFn=()=>{var r,n;if(!e)throw new Error;return yh(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(r=(n=t.options.sortingFns)==null?void 0:n[e.columnDef.sortingFn])!=null?r:Lu[e.columnDef.sortingFn]},e.toggleSorting=(r,n)=>{const i=e.getNextSortingOrder(),o=typeof r<"u"&&r!==null;t.setSorting(s=>{const u=s?.find(b=>b.id===e.id),c=s?.findIndex(b=>b.id===e.id);let f=[],d,g=o?r:i==="desc";if(s!=null&&s.length&&e.getCanMultiSort()&&n?u?d="toggle":d="add":s!=null&&s.length&&c!==s.length-1?d="replace":u?d="toggle":d="replace",d==="toggle"&&(o||i||(d="remove")),d==="add"){var h;f=[...s,{id:e.id,desc:g}],f.splice(0,f.length-((h=t.options.maxMultiSortColCount)!=null?h:Number.MAX_SAFE_INTEGER))}else d==="toggle"?f=s.map(b=>b.id===e.id?{...b,desc:g}:b):d==="remove"?f=s.filter(b=>b.id!==e.id):f=[{id:e.id,desc:g}];return f})},e.getFirstSortDir=()=>{var r,n;return((r=(n=e.columnDef.sortDescFirst)!=null?n:t.options.sortDescFirst)!=null?r:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=r=>{var n,i;const o=e.getFirstSortDir(),s=e.getIsSorted();return s?s!==o&&((n=t.options.enableSortingRemoval)==null||n)&&(!(r&&(i=t.options.enableMultiRemove)!=null)||i)?!1:s==="desc"?"asc":"desc":o},e.getCanSort=()=>{var r,n;return((r=e.columnDef.enableSorting)!=null?r:!0)&&((n=t.options.enableSorting)!=null?n:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var r,n;return(r=(n=e.columnDef.enableMultiSort)!=null?n:t.options.enableMultiSort)!=null?r:!!e.accessorFn},e.getIsSorted=()=>{var r;const n=(r=t.getState().sorting)==null?void 0:r.find(i=>i.id===e.id);return n?n.desc?"desc":"asc":!1},e.getSortIndex=()=>{var r,n;return(r=(n=t.getState().sorting)==null?void 0:n.findIndex(i=>i.id===e.id))!=null?r:-1},e.clearSorting=()=>{t.setSorting(r=>r!=null&&r.length?r.filter(n=>n.id!==e.id):[])},e.getToggleSortingHandler=()=>{const r=e.getCanSort();return n=>{r&&(n.persist==null||n.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(n):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var r,n;e.setSorting(t?[]:(r=(n=e.initialState)==null?void 0:n.sorting)!=null?r:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},Ree=[qZ,fee,see,lee,XZ,KZ,dee,pee,Cee,oee,hee,gee,vee,mee,uee];function _ee(e){var t,r;const n=[...Ree,...(t=e._features)!=null?t:[]];let i={_features:n};const o=i._features.reduce((h,b)=>Object.assign(h,b.getDefaultOptions==null?void 0:b.getDefaultOptions(i)),{}),s=h=>i.options.mergeOptions?i.options.mergeOptions(o,h):{...o,...h};let c={...{},...(r=e.initialState)!=null?r:{}};i._features.forEach(h=>{var b;c=(b=h.getInitialState==null?void 0:h.getInitialState(c))!=null?b:c});const f=[];let d=!1;const g={_features:n,options:{...o,...e},initialState:c,_queue:h=>{f.push(h),d||(d=!0,Promise.resolve().then(()=>{for(;f.length;)f.shift()();d=!1}).catch(b=>setTimeout(()=>{throw b})))},reset:()=>{i.setState(i.initialState)},setOptions:h=>{const b=Ma(h,i.options);i.options=s(b)},getState:()=>i.options.state,setState:h=>{i.options.onStateChange==null||i.options.onStateChange(h)},_getRowId:(h,b,v)=>{var S;return(S=i.options.getRowId==null?void 0:i.options.getRowId(h,b,v))!=null?S:`${v?[v.id,b].join("."):b}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(h,b)=>{let v=(b?i.getPrePaginationRowModel():i.getRowModel()).rowsById[h];if(!v&&(v=i.getCoreRowModel().rowsById[h],!v))throw new Error;return v},_getDefaultColumnDef:st(()=>[i.options.defaultColumn],h=>{var b;return h=(b=h)!=null?b:{},{header:v=>{const S=v.header.column.columnDef;return S.accessorKey?S.accessorKey:S.accessorFn?S.id:null},cell:v=>{var S,y;return(S=(y=v.renderValue())==null||y.toString==null?void 0:y.toString())!=null?S:null},...i._features.reduce((v,S)=>Object.assign(v,S.getDefaultColumnDef==null?void 0:S.getDefaultColumnDef()),{}),...h}},lt(e,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:st(()=>[i._getColumnDefs()],h=>{const b=function(v,S,y){return y===void 0&&(y=0),v.map(E=>{const x=WZ(i,E,y,S),T=E;return x.columns=T.columns?b(T.columns,x,y+1):[],x})};return b(h)},lt(e,"debugColumns")),getAllFlatColumns:st(()=>[i.getAllColumns()],h=>h.flatMap(b=>b.getFlatColumns()),lt(e,"debugColumns")),_getAllFlatColumnsById:st(()=>[i.getAllFlatColumns()],h=>h.reduce((b,v)=>(b[v.id]=v,b),{}),lt(e,"debugColumns")),getAllLeafColumns:st(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(h,b)=>{let v=h.flatMap(S=>S.getLeafColumns());return b(v)},lt(e,"debugColumns")),getColumn:h=>i._getAllFlatColumnsById()[h]};Object.assign(i,g);for(let h=0;h<i._features.length;h++){const b=i._features[h];b==null||b.createTable==null||b.createTable(i)}return i}function Oee(){return e=>st(()=>[e.options.data],t=>{const r={rows:[],flatRows:[],rowsById:{}},n=function(i,o,s){o===void 0&&(o=0);const u=[];for(let f=0;f<i.length;f++){const d=GZ(e,e._getRowId(i[f],f,s),i[f],f,o,void 0,s?.id);if(r.flatRows.push(d),r.rowsById[d.id]=d,u.push(d),e.options.getSubRows){var c;d.originalSubRows=e.options.getSubRows(i[f],f),(c=d.originalSubRows)!=null&&c.length&&(d.subRows=n(d.originalSubRows,o+1,d))}}return u};return r.rows=n(t),r},lt(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function Tee(){return e=>st(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,r)=>{if(!r.rows.length||!(t!=null&&t.length))return r;const n=e.getState().sorting,i=[],o=n.filter(c=>{var f;return(f=e.getColumn(c.id))==null?void 0:f.getCanSort()}),s={};o.forEach(c=>{const f=e.getColumn(c.id);f&&(s[c.id]={sortUndefined:f.columnDef.sortUndefined,invertSorting:f.columnDef.invertSorting,sortingFn:f.getSortingFn()})});const u=c=>{const f=c.map(d=>({...d}));return f.sort((d,g)=>{for(let b=0;b<o.length;b+=1){var h;const v=o[b],S=s[v.id],y=S.sortUndefined,E=(h=v?.desc)!=null?h:!1;let x=0;if(y){const T=d.getValue(v.id),A=g.getValue(v.id),R=T===void 0,$=A===void 0;if(R||$){if(y==="first")return R?-1:1;if(y==="last")return R?1:-1;x=R&&$?0:R?y:-y}}if(x===0&&(x=S.sortingFn(d,g,v.id)),x!==0)return E&&(x*=-1),S.invertSorting&&(x*=-1),x}return d.index-g.index}),f.forEach(d=>{var g;i.push(d),(g=d.subRows)!=null&&g.length&&(d.subRows=u(d.subRows))}),f};return{rows:u(r.rows),flatRows:i,rowsById:r.rowsById}},lt(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/**
1292
+ * react-table
1293
+ *
1294
+ * Copyright (c) TanStack
1295
+ *
1296
+ * This source code is licensed under the MIT license found in the
1297
+ * LICENSE.md file in the root directory of this source tree.
1298
+ *
1299
+ * @license MIT
1300
+ */function z5(e,t){return e?Aee(e)?C.createElement(e,t):e:null}function Aee(e){return $ee(e)||typeof e=="function"||Iee(e)}function $ee(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function Iee(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function Pee(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[r]=C.useState(()=>({current:_ee(t)})),[n,i]=C.useState(()=>r.current.initialState);return r.current.setOptions(o=>({...o,...e,state:{...n,...e.state},onStateChange:s=>{i(s),e.onStateChange==null||e.onStateChange(s)}})),r.current}function fl(e,t,r){let n=r.initialDeps??[],i;return()=>{var o,s,u,c;let f;r.key&&((o=r.debug)!=null&&o.call(r))&&(f=Date.now());const d=e();if(!(d.length!==n.length||d.some((b,v)=>n[v]!==b)))return i;n=d;let h;if(r.key&&((s=r.debug)!=null&&s.call(r))&&(h=Date.now()),i=t(...d),r.key&&((u=r.debug)!=null&&u.call(r))){const b=Math.round((Date.now()-f)*100)/100,v=Math.round((Date.now()-h)*100)/100,S=v/16,y=(E,x)=>{for(E=String(E);E.length<x;)E=" "+E;return E};console.info(`%c⏱ ${y(v,5)} /${y(b,5)} ms`,`
1301
+ font-size: .6rem;
1302
+ font-weight: bold;
1303
+ color: hsl(${Math.max(0,Math.min(120-120*S,120))}deg 100% 31%);`,r?.key)}return(c=r?.onChange)==null||c.call(r,i),i}}function vy(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const kee=(e,t)=>Math.abs(e-t)<1,Mee=(e,t,r)=>{let n;return function(...i){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,i),r)}},Dee=e=>e,Lee=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let i=t;i<=r;i++)n.push(i);return n},Fee=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;const i=s=>{const{width:u,height:c}=s;t({width:Math.round(u),height:Math.round(c)})};if(i(r.getBoundingClientRect()),!n.ResizeObserver)return()=>{};const o=new n.ResizeObserver(s=>{const u=s[0];if(u?.borderBoxSize){const c=u.borderBoxSize[0];if(c){i({width:c.inlineSize,height:c.blockSize});return}}i(r.getBoundingClientRect())});return o.observe(r,{box:"border-box"}),()=>{o.unobserve(r)}},P$={passive:!0},Nee=typeof window>"u"?!0:"onscrollend"in window,jee=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;let i=0;const o=Nee?()=>{}:Mee(n,()=>{t(i,!1)},e.options.isScrollingResetDelay),s=f=>()=>{const{horizontal:d,isRtl:g}=e.options;i=d?r.scrollLeft*(g&&-1||1):r.scrollTop,o(),t(i,f)},u=s(!0),c=s(!1);return c(),r.addEventListener("scroll",u,P$),r.addEventListener("scrollend",c,P$),()=>{r.removeEventListener("scroll",u),r.removeEventListener("scrollend",c)}},zee=(e,t,r)=>{if(t?.borderBoxSize){const n=t.borderBoxSize[0];if(n)return Math.round(n[r.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[r.options.horizontal?"width":"height"])},Bee=(e,{adjustments:t=0,behavior:r},n)=>{var i,o;const s=e+t;(o=(i=n.scrollElement)==null?void 0:i.scrollTo)==null||o.call(i,{[n.options.horizontal?"left":"top"]:s,behavior:r})};class Vee{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let r=null;const n=()=>r||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:r=new this.targetWindow.ResizeObserver(i=>{i.forEach(o=>{this._measureElement(o.target,o)})}));return{disconnect:()=>{var i;(i=n())==null||i.disconnect(),r=null},observe:i=>{var o;return(o=n())==null?void 0:o.observe(i,{box:"border-box"})},unobserve:i=>{var o;return(o=n())==null?void 0:o.unobserve(i)}}})(),this.range=null,this.setOptions=r=>{Object.entries(r).forEach(([n,i])=>{typeof i>"u"&&delete r[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Dee,rangeExtractor:Lee,onChange:()=>{},measureElement:zee,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,...r}},this.notify=r=>{var n,i;(i=(n=this.options).onChange)==null||i.call(n,this,r)},this.maybeNotify=fl(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),r=>{this.notify(r)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(r=>r()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var r;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((r=this.scrollElement)==null?void 0:r.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,o)=>{this.scrollAdjustments=0,this.scrollDirection=o?this.getScrollOffset()<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=o,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(r,n)=>{const i=new Map,o=new Map;for(let s=n-1;s>=0;s--){const u=r[s];if(i.has(u.lane))continue;const c=o.get(u.lane);if(c==null||u.end>c.end?o.set(u.lane,u):u.end<c.end&&i.set(u.lane,!0),i.size===this.options.lanes)break}return o.size===this.options.lanes?Array.from(o.values()).sort((s,u)=>s.end===u.end?s.index-u.index:s.end-u.end)[0]:void 0},this.getMeasurementOptions=fl(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(r,n,i,o,s)=>(this.pendingMeasuredCacheIndexes=[],{count:r,paddingStart:n,scrollMargin:i,getItemKey:o,enabled:s}),{key:!1}),this.getMeasurements=fl(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:r,paddingStart:n,scrollMargin:i,getItemKey:o,enabled:s},u)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(d=>{this.itemSizeCache.set(d.key,d.size)}));const c=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const f=this.measurementsCache.slice(0,c);for(let d=c;d<r;d++){const g=o(d),h=this.options.lanes===1?f[d-1]:this.getFurthestMeasurement(f,d),b=h?h.end+this.options.gap:n+i,v=u.get(g),S=typeof v=="number"?v:this.options.estimateSize(d),y=b+S,E=h?h.lane:d%this.options.lanes;f[d]={index:d,start:b,size:S,end:y,key:g,lane:E}}return this.measurementsCache=f,f},{key:!1,debug:()=>this.options.debug}),this.calculateRange=fl(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(r,n,i)=>this.range=r.length>0&&n>0?Uee({measurements:r,outerSize:n,scrollOffset:i}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=fl(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(r,n,i,o)=>n===null?[]:r({startIndex:n.startIndex,endIndex:n.endIndex,overscan:i,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=r=>{const n=this.options.indexAttribute,i=r.getAttribute(n);return i?parseInt(i,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this._measureElement=(r,n)=>{const i=this.indexFromElement(r),o=this.measurementsCache[i];if(!o)return;const s=o.key,u=this.elementsCache.get(s);u!==r&&(u&&this.observer.unobserve(u),this.observer.observe(r),this.elementsCache.set(s,r)),r.isConnected&&this.resizeItem(i,this.options.measureElement(r,n,this))},this.resizeItem=(r,n)=>{const i=this.measurementsCache[r];if(!i)return;const o=this.itemSizeCache.get(i.key)??i.size,s=n-o;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,s,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,n)),this.notify(!1))},this.measureElement=r=>{if(!r){this.elementsCache.forEach((n,i)=>{n.isConnected||(this.observer.unobserve(n),this.elementsCache.delete(i))});return}this._measureElement(r,void 0)},this.getVirtualItems=fl(()=>[this.getIndexes(),this.getMeasurements()],(r,n)=>{const i=[];for(let o=0,s=r.length;o<s;o++){const u=r[o],c=n[u];i.push(c)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=r=>{const n=this.getMeasurements();if(n.length!==0)return vy(n[B5(0,n.length-1,i=>vy(n[i]).start,r)])},this.getOffsetForAlignment=(r,n)=>{const i=this.getSize(),o=this.getScrollOffset();n==="auto"&&(r<=o?n="start":r>=o+i?n="end":n="start"),n==="start"?r=r:n==="end"?r=r-i:n==="center"&&(r=r-i/2);const s=this.options.horizontal?"scrollWidth":"scrollHeight",c=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-i;return Math.max(Math.min(c,r),0)},this.getOffsetForIndex=(r,n="auto")=>{r=Math.max(0,Math.min(r,this.options.count-1));const i=this.measurementsCache[r];if(!i)return;const o=this.getSize(),s=this.getScrollOffset();if(n==="auto")if(i.end>=s+o-this.options.scrollPaddingEnd)n="end";else if(i.start<=s+this.options.scrollPaddingStart)n="start";else return[s,n];const u=n==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(u,n),n]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(r,{align:n="start",behavior:i}={})=>{this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(r,n),{adjustments:void 0,behavior:i})},this.scrollToIndex=(r,{align:n="auto",behavior:i}={})=>{r=Math.max(0,Math.min(r,this.options.count-1)),this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const o=this.getOffsetForIndex(r,n);if(!o)return;const[s,u]=o;this._scrollToOffset(s,{adjustments:void 0,behavior:i}),i!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(r))){const[f]=vy(this.getOffsetForIndex(r,u));kee(f,this.getScrollOffset())||this.scrollToIndex(r,{align:u,behavior:i})}else this.scrollToIndex(r,{align:u,behavior:i})}))},this.scrollBy=(r,{behavior:n}={})=>{this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+r,{adjustments:void 0,behavior:n})},this.getTotalSize=()=>{var r;const n=this.getMeasurements();let i;return n.length===0?i=this.options.paddingStart:i=this.options.lanes===1?((r=n[n.length-1])==null?void 0:r.end)??0:Math.max(...n.slice(-this.options.lanes).map(o=>o.end)),Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(r,{adjustments:n,behavior:i})=>{this.options.scrollToFn(r,{behavior:i,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const B5=(e,t,r,n)=>{for(;e<=t;){const i=(e+t)/2|0,o=r(i);if(o<n)e=i+1;else if(o>n)t=i-1;else return i}return e>0?e-1:0};function Uee({measurements:e,outerSize:t,scrollOffset:r}){const n=e.length-1,o=B5(0,n,u=>e[u].start,r);let s=o;for(;s<n&&e[s].end<r+t;)s++;return{startIndex:o,endIndex:s}}const Hee=typeof document<"u"?C.useLayoutEffect:C.useEffect;function Wee(e){const t=C.useReducer(()=>({}),{})[1],r={...e,onChange:(i,o)=>{var s;o?Vp.flushSync(t):t(),(s=e.onChange)==null||s.call(e,i,o)}},[n]=C.useState(()=>new Vee(r));return n.setOptions(r),C.useEffect(()=>n._didMount(),[]),Hee(()=>n._willUpdate()),n}function qee(e){return Wee({observeElementRect:Fee,observeElementOffset:jee,scrollToFn:Bee,...e})}const Ud={ROW_HEIGHT_ESTIMATE:42,OVERSCAN:5,MIN_COLUMN_SIZE:50,MAX_COLUMN_SIZE:500},dl={SIZE:50,BOTTOM_OFFSET:25,RIGHT_OFFSET:25,BORDER_RADIUS:25,PADDING_TOP:4},Gee=1,Fp={HEADER_FONT_SIZE:12,CELL_PADDING:"3px 0px",RESIZER_WIDTH:"3px",RESIZER_MARGIN:"2px"},Xee=xe(ia)`
1304
+ position: absolute;
1305
+ bottom: ${dl.BOTTOM_OFFSET}px;
1306
+ right: ${dl.RIGHT_OFFSET}px;
1307
+ height: ${dl.SIZE}px;
1308
+ width: ${dl.SIZE}px;
1309
+ padding-top: ${dl.PADDING_TOP}px;
1310
+ border-radius: ${dl.BORDER_RADIUS}px;
1311
+ cursor: pointer;
1312
+ box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
1313
+ transition: opacity 0.3s;
1314
+ opacity: ${({enabled:e})=>e?0:1};
1315
+ pointer-events: ${({enabled:e})=>e?"none":"auto"};
1316
+ `,Kee=({onClick:e,enabled:t})=>U.jsx(Xee,{enabled:t,onClick:e,alignItems:"center",justifyContent:"center",bg:"neutral.c100",children:U.jsx(M7,{size:"XL",color:"neutral.c00"})}),Yee=xe.tbody`
1317
+ display: grid;
1318
+ height: ${({totalSize:e})=>e}px;
1319
+ position: relative;
1320
+ `,Jee=xe.tr`
1321
+ display: flex;
1322
+ position: absolute;
1323
+ transform: translateY(${({start:e})=>e}px);
1324
+ width: 100%;
1325
+ overflow-anchor: none;
1326
+ `,Qee=xe.tr`
1327
+ position: absolute;
1328
+ top: ${({totalSize:e})=>e}px;
1329
+ height: 1px;
1330
+ overflow-anchor: auto;
1331
+ `,Zee=xe.td`
1332
+ display: flex;
1333
+ flex: ${({flexible:e,size:t,minSize:r})=>e?`${t} 1 ${r}px`:`0 0 ${t}px`};
1334
+ min-width: ${({flexible:e,size:t,minSize:r})=>e?r:t}px;
1335
+ overflow: hidden;
1336
+ background-color: ${({isEven:e,isHighlighted:t,isCurrentMatch:r})=>r?"#ffd700":t?"#fff3cd":e?"white":"ghostwhite"};
1337
+ padding: ${Fp.CELL_PADDING};
1338
+ `,ete=({virtualizer:e,rows:t,highlightedIndices:r,currentHighlightIndex:n})=>{const i=e.getTotalSize();return U.jsxs(Yee,{totalSize:i,children:[e.getVirtualItems().map(o=>{const s=o.index,u=t[o.index];if(!u)return null;const c=r?.has(s)??!1,f=n===s;return U.jsx(Jee,{"data-index":o.index,ref:d=>e.measureElement(d),start:o.start,children:u.getVisibleCells().map(d=>{const g=d.column.columnDef.meta?.flexible??!1,h=d.column.getSize(),b=d.column.columnDef.minSize??50;return U.jsx(Zee,{size:h,minSize:b,flexible:g,isEven:s%2===0,isHighlighted:c,isCurrentMatch:f,children:z5(d.column.columnDef.cell,d.getContext())},d.id)})},u.id)}),U.jsx(Qee,{totalSize:i,children:U.jsx("td",{})})]})};var tte=Object.create,NS=Object.defineProperty,rte=Object.getOwnPropertyDescriptor,V5=Object.getOwnPropertyNames,nte=Object.getPrototypeOf,ite=Object.prototype.hasOwnProperty,jS=(e,t)=>function(){return t||(0,e[V5(e)[0]])((t={exports:{}}).exports,t),t.exports},ote=(e,t)=>{for(var r in t)NS(e,r,{get:t[r],enumerable:!0})},ate=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of V5(t))!ite.call(e,i)&&i!==r&&NS(e,i,{get:()=>t[i],enumerable:!(n=rte(t,i))||n.enumerable});return e},ste=(e,t,r)=>(r=e!=null?tte(nte(e)):{},ate(NS(r,"default",{value:e,enumerable:!0}),e)),lte=jS({"node_modules/is-object/index.js"(e,t){t.exports=function(n){return typeof n=="object"&&n!==null}}}),ute=jS({"node_modules/is-window/index.js"(e,t){t.exports=function(r){if(r==null)return!1;var n=Object(r);return n===n.window}}}),cte=jS({"node_modules/is-dom/index.js"(e,t){var r=lte(),n=ute();function i(o){return!r(o)||!n(window)||typeof window.Node!="function"?!1:typeof o.nodeType=="number"&&typeof o.nodeName=="string"}t.exports=i}}),Np={};ote(Np,{chromeDark:()=>fte,chromeLight:()=>dte});var fte={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},dte={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},U5=C.createContext([{},()=>{}]),my={WebkitTouchCallout:"none",WebkitUserSelect:"none",KhtmlUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",OUserSelect:"none",userSelect:"none"},dp=e=>({DOMNodePreview:{htmlOpenTag:{base:{color:e.HTML_TAG_COLOR},tagName:{color:e.HTML_TAGNAME_COLOR,textTransform:e.HTML_TAGNAME_TEXT_TRANSFORM},htmlAttributeName:{color:e.HTML_ATTRIBUTE_NAME_COLOR},htmlAttributeValue:{color:e.HTML_ATTRIBUTE_VALUE_COLOR}},htmlCloseTag:{base:{color:e.HTML_TAG_COLOR},offsetLeft:{marginLeft:-e.TREENODE_PADDING_LEFT},tagName:{color:e.HTML_TAGNAME_COLOR,textTransform:e.HTML_TAGNAME_TEXT_TRANSFORM}},htmlComment:{color:e.HTML_COMMENT_COLOR},htmlDoctype:{color:e.HTML_DOCTYPE_COLOR}},ObjectPreview:{objectDescription:{fontStyle:"italic"},preview:{fontStyle:"italic"},arrayMaxProperties:e.OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES,objectMaxProperties:e.OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES},ObjectName:{base:{color:e.OBJECT_NAME_COLOR},dimmed:{opacity:.6}},ObjectValue:{objectValueNull:{color:e.OBJECT_VALUE_NULL_COLOR},objectValueUndefined:{color:e.OBJECT_VALUE_UNDEFINED_COLOR},objectValueRegExp:{color:e.OBJECT_VALUE_REGEXP_COLOR},objectValueString:{color:e.OBJECT_VALUE_STRING_COLOR},objectValueSymbol:{color:e.OBJECT_VALUE_SYMBOL_COLOR},objectValueNumber:{color:e.OBJECT_VALUE_NUMBER_COLOR},objectValueBoolean:{color:e.OBJECT_VALUE_BOOLEAN_COLOR},objectValueFunctionPrefix:{color:e.OBJECT_VALUE_FUNCTION_PREFIX_COLOR,fontStyle:"italic"},objectValueFunctionName:{fontStyle:"italic"}},TreeView:{treeViewOutline:{padding:0,margin:0,listStyleType:"none"}},TreeNode:{treeNodeBase:{color:e.BASE_COLOR,backgroundColor:e.BASE_BACKGROUND_COLOR,lineHeight:e.TREENODE_LINE_HEIGHT,cursor:"default",boxSizing:"border-box",listStyle:"none",fontFamily:e.TREENODE_FONT_FAMILY,fontSize:e.TREENODE_FONT_SIZE},treeNodePreviewContainer:{},treeNodePlaceholder:{whiteSpace:"pre",fontSize:e.ARROW_FONT_SIZE,marginRight:e.ARROW_MARGIN_RIGHT,...my},treeNodeArrow:{base:{color:e.ARROW_COLOR,display:"inline-block",fontSize:e.ARROW_FONT_SIZE,marginRight:e.ARROW_MARGIN_RIGHT,...parseFloat(e.ARROW_ANIMATION_DURATION)>0?{transition:`transform ${e.ARROW_ANIMATION_DURATION} ease 0s`}:{},...my},expanded:{WebkitTransform:"rotateZ(90deg)",MozTransform:"rotateZ(90deg)",transform:"rotateZ(90deg)"},collapsed:{WebkitTransform:"rotateZ(0deg)",MozTransform:"rotateZ(0deg)",transform:"rotateZ(0deg)"}},treeNodeChildNodesContainer:{margin:0,paddingLeft:e.TREENODE_PADDING_LEFT}},TableInspector:{base:{color:e.BASE_COLOR,position:"relative",border:`1px solid ${e.TABLE_BORDER_COLOR}`,fontFamily:e.BASE_FONT_FAMILY,fontSize:e.BASE_FONT_SIZE,lineHeight:"120%",boxSizing:"border-box",cursor:"default"}},TableInspectorHeaderContainer:{base:{top:0,height:"17px",left:0,right:0,overflowX:"hidden"},table:{tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",height:"100%",width:"100%",margin:0}},TableInspectorDataContainer:{tr:{display:"table-row"},td:{boxSizing:"border-box",border:"none",height:"16px",verticalAlign:"top",padding:"1px 4px",WebkitUserSelect:"text",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px"},div:{position:"static",top:"17px",bottom:0,overflowY:"overlay",transform:"translateZ(0)",left:0,right:0,overflowX:"hidden"},table:{positon:"static",left:0,top:0,right:0,bottom:0,borderTop:"0 none transparent",margin:0,backgroundImage:e.TABLE_DATA_BACKGROUND_IMAGE,backgroundSize:e.TABLE_DATA_BACKGROUND_SIZE,tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",width:"100%",fontSize:e.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorTH:{base:{position:"relative",height:"auto",textAlign:"left",backgroundColor:e.TABLE_TH_BACKGROUND_COLOR,borderBottom:`1px solid ${e.TABLE_BORDER_COLOR}`,fontWeight:"normal",verticalAlign:"middle",padding:"0 4px",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px",":hover":{backgroundColor:e.TABLE_TH_HOVER_COLOR}},div:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",fontSize:e.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorLeftBorder:{none:{borderLeft:"none"},solid:{borderLeft:`1px solid ${e.TABLE_BORDER_COLOR}`}},TableInspectorSortIcon:{display:"block",marginRight:3,width:8,height:7,marginTop:-7,color:e.TABLE_SORT_ICON_COLOR,fontSize:12,...my}}),c1="chromeLight",H5=C.createContext(dp(Np[c1])),ni=e=>C.useContext(H5)[e],zS=e=>({theme:r=c1,...n})=>{const i=C.useMemo(()=>{switch(Object.prototype.toString.call(r)){case"[object String]":return dp(Np[r]);case"[object Object]":return dp(r);default:return dp(Np[c1])}},[r]);return oe.createElement(H5.Provider,{value:i},oe.createElement(e,{...n}))},pte=({expanded:e,styles:t})=>oe.createElement("span",{style:{...t.base,...e?t.expanded:t.collapsed}},"▶"),hte=C.memo(e=>{e={expanded:!0,nodeRenderer:({name:d})=>oe.createElement("span",null,d),onClick:()=>{},shouldShowArrow:!1,shouldShowPlaceholder:!0,...e};const{expanded:t,onClick:r,children:n,nodeRenderer:i,title:o,shouldShowArrow:s,shouldShowPlaceholder:u}=e,c=ni("TreeNode"),f=i;return oe.createElement("li",{"aria-expanded":t,role:"treeitem",style:c.treeNodeBase,title:o},oe.createElement("div",{style:c.treeNodePreviewContainer,onClick:r},s||C.Children.count(n)>0?oe.createElement(pte,{expanded:t,styles:c.treeNodeArrow}):u&&oe.createElement("span",{style:c.treeNodePlaceholder}," "),oe.createElement(f,{...e})),oe.createElement("ol",{role:"group",style:c.treeNodeChildNodesContainer},t?n:void 0))}),jp="$",k$="*";function pp(e,t){return!t(e).next().done}var gte=e=>Array.from({length:e},(t,r)=>[jp].concat(Array.from({length:r},()=>"*")).join(".")),vte=(e,t,r,n,i)=>{const o=[].concat(gte(n)).concat(r).filter(u=>typeof u=="string"),s=[];return o.forEach(u=>{const c=u.split("."),f=(d,g,h)=>{if(h===c.length){s.push(g);return}const b=c[h];if(h===0)pp(d,t)&&(b===jp||b===k$)&&f(d,jp,h+1);else if(b===k$)for(const{name:v,data:S}of t(d))pp(S,t)&&f(S,`${g}.${v}`,h+1);else{const v=d[b];pp(v,t)&&f(v,`${g}.${b}`,h+1)}};f(e,"",0)}),s.reduce((u,c)=>(u[c]=!0,u),{...i})},W5=C.memo(e=>{const{data:t,dataIterator:r,path:n,depth:i,nodeRenderer:o}=e,[s,u]=C.useContext(U5),c=pp(t,r),f=!!s[n],d=C.useCallback(()=>c&&u(g=>({...g,[n]:!f})),[c,u,n,f]);return oe.createElement(hte,{expanded:f,onClick:d,shouldShowArrow:c,shouldShowPlaceholder:i>0,nodeRenderer:o,...e},f?[...r(t)].map(({name:g,data:h,...b})=>oe.createElement(W5,{name:g,data:h,depth:i+1,path:`${n}.${g}`,key:g,dataIterator:r,nodeRenderer:o,...b})):null)}),q5=C.memo(({name:e,data:t,dataIterator:r,nodeRenderer:n,expandPaths:i,expandLevel:o})=>{const s=ni("TreeView"),u=C.useState({}),[,c]=u;return C.useLayoutEffect(()=>c(f=>vte(t,r,i,o,f)),[t,r,i,o]),oe.createElement(U5.Provider,{value:u},oe.createElement("ol",{role:"tree",style:s.treeViewOutline},oe.createElement(W5,{name:e,data:t,dataIterator:r,depth:0,path:jp,nodeRenderer:n})))}),BS=({name:e,dimmed:t=!1,styles:r={}})=>{const n=ni("ObjectName"),i={...n.base,...t?n.dimmed:{},...r};return oe.createElement("span",{style:i},e)},ic=({object:e,styles:t})=>{const r=ni("ObjectValue"),n=i=>({...r[i],...t});switch(typeof e){case"bigint":return oe.createElement("span",{style:n("objectValueNumber")},String(e),"n");case"number":return oe.createElement("span",{style:n("objectValueNumber")},String(e));case"string":return oe.createElement("span",{style:n("objectValueString")},'"',e,'"');case"boolean":return oe.createElement("span",{style:n("objectValueBoolean")},String(e));case"undefined":return oe.createElement("span",{style:n("objectValueUndefined")},"undefined");case"object":return e===null?oe.createElement("span",{style:n("objectValueNull")},"null"):e instanceof Date?oe.createElement("span",null,e.toString()):e instanceof RegExp?oe.createElement("span",{style:n("objectValueRegExp")},e.toString()):Array.isArray(e)?oe.createElement("span",null,`Array(${e.length})`):e.constructor?typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)?oe.createElement("span",null,`Buffer[${e.length}]`):oe.createElement("span",null,e.constructor.name):oe.createElement("span",null,"Object");case"function":return oe.createElement("span",null,oe.createElement("span",{style:n("objectValueFunctionPrefix")},"ƒ "),oe.createElement("span",{style:n("objectValueFunctionName")},e.name,"()"));case"symbol":return oe.createElement("span",{style:n("objectValueSymbol")},e.toString());default:return oe.createElement("span",null)}},G5=Object.prototype.hasOwnProperty,mte=Object.prototype.propertyIsEnumerable;function f1(e,t){const r=Object.getOwnPropertyDescriptor(e,t);if(r.get)try{return r.get()}catch{return r.get}return e[t]}function M$(e,t){return e.length===0?[]:e.slice(1).reduce((r,n)=>r.concat([t,n]),[e[0]])}var d1=({data:e})=>{const t=ni("ObjectPreview"),r=e;if(typeof r!="object"||r===null||r instanceof Date||r instanceof RegExp)return oe.createElement(ic,{object:r});if(Array.isArray(r)){const n=t.arrayMaxProperties,i=r.slice(0,n).map((s,u)=>oe.createElement(ic,{key:u,object:s}));r.length>n&&i.push(oe.createElement("span",{key:"ellipsis"},"…"));const o=r.length;return oe.createElement(oe.Fragment,null,oe.createElement("span",{style:t.objectDescription},o===0?"":`(${o}) `),oe.createElement("span",{style:t.preview},"[",M$(i,", "),"]"))}else{const n=t.objectMaxProperties,i=[];for(const s in r)if(G5.call(r,s)){let u;i.length===n-1&&Object.keys(r).length>n&&(u=oe.createElement("span",{key:"ellipsis"},"…"));const c=f1(r,s);if(i.push(oe.createElement("span",{key:s},oe.createElement(BS,{name:s||'""'}),": ",oe.createElement(ic,{object:c}),u)),u)break}const o=r.constructor?r.constructor.name:"Object";return oe.createElement(oe.Fragment,null,oe.createElement("span",{style:t.objectDescription},o==="Object"?"":`${o} `),oe.createElement("span",{style:t.preview},"{",M$(i,", "),"}"))}},yte=({name:e,data:t})=>typeof e=="string"?oe.createElement("span",null,oe.createElement(BS,{name:e}),oe.createElement("span",null,": "),oe.createElement(d1,{data:t})):oe.createElement(d1,{data:t}),bte=({name:e,data:t,isNonenumerable:r=!1})=>{const n=t;return oe.createElement("span",null,typeof e=="string"?oe.createElement(BS,{name:e,dimmed:r}):oe.createElement(d1,{data:e}),oe.createElement("span",null,": "),oe.createElement(ic,{object:n}))},Ste=(e,t)=>function*(n){if(!(typeof n=="object"&&n!==null||typeof n=="function"))return;const o=Array.isArray(n);if(!o&&n[Symbol.iterator]){let s=0;for(const u of n){if(Array.isArray(u)&&u.length===2){const[c,f]=u;yield{name:c,data:f}}else yield{name:s.toString(),data:u};s++}}else{const s=Object.getOwnPropertyNames(n);t===!0&&!o?s.sort():typeof t=="function"&&s.sort(t);for(const u of s)if(mte.call(n,u)){const c=f1(n,u);yield{name:u||'""',data:c}}else if(e){let c;try{c=f1(n,u)}catch{}c!==void 0&&(yield{name:u,data:c,isNonenumerable:!0})}e&&n!==Object.prototype&&(yield{name:"__proto__",data:Object.getPrototypeOf(n),isNonenumerable:!0})}},wte=({depth:e,name:t,data:r,isNonenumerable:n})=>e===0?oe.createElement(yte,{name:t,data:r}):oe.createElement(bte,{name:t,data:r,isNonenumerable:n}),xte=({showNonenumerable:e=!1,sortObjectKeys:t,nodeRenderer:r,...n})=>{const i=Ste(e,t),o=r||wte;return oe.createElement(q5,{nodeRenderer:o,dataIterator:i,...n})},Ete=zS(xte);function Cte(e){if(typeof e=="object"){let t=[];if(Array.isArray(e)){const n=e.length;t=[...Array(n).keys()]}else e!==null&&(t=Object.keys(e));const r=t.reduce((n,i)=>{const o=e[i];return typeof o=="object"&&o!==null&&Object.keys(o).reduce((u,c)=>(u.includes(c)||u.push(c),u),n),n},[]);return{rowHeaders:t,colHeaders:r}}}var Rte=({rows:e,columns:t,rowsData:r})=>{const n=ni("TableInspectorDataContainer"),i=ni("TableInspectorLeftBorder");return oe.createElement("div",{style:n.div},oe.createElement("table",{style:n.table},oe.createElement("colgroup",null),oe.createElement("tbody",null,e.map((o,s)=>oe.createElement("tr",{key:o,style:n.tr},oe.createElement("td",{style:{...n.td,...i.none}},o),t.map(u=>{const c=r[s];return typeof c=="object"&&c!==null&&G5.call(c,u)?oe.createElement("td",{key:u,style:{...n.td,...i.solid}},oe.createElement(ic,{object:c[u]})):oe.createElement("td",{key:u,style:{...n.td,...i.solid}})}))))))},_te=e=>oe.createElement("div",{style:{position:"absolute",top:1,right:0,bottom:1,display:"flex",alignItems:"center"}},e.children),Ote=({sortAscending:e})=>{const t=ni("TableInspectorSortIcon"),r=e?"▲":"▼";return oe.createElement("div",{style:t},r)},D$=({sortAscending:e=!1,sorted:t=!1,onClick:r=void 0,borderStyle:n={},children:i,...o})=>{const s=ni("TableInspectorTH"),[u,c]=C.useState(!1),f=C.useCallback(()=>c(!0),[]),d=C.useCallback(()=>c(!1),[]);return oe.createElement("th",{...o,style:{...s.base,...n,...u?s.base[":hover"]:{}},onMouseEnter:f,onMouseLeave:d,onClick:r},oe.createElement("div",{style:s.div},i),t&&oe.createElement(_te,null,oe.createElement(Ote,{sortAscending:e})))},Tte=({indexColumnText:e="(index)",columns:t=[],sorted:r,sortIndexColumn:n,sortColumn:i,sortAscending:o,onTHClick:s,onIndexTHClick:u})=>{const c=ni("TableInspectorHeaderContainer"),f=ni("TableInspectorLeftBorder");return oe.createElement("div",{style:c.base},oe.createElement("table",{style:c.table},oe.createElement("tbody",null,oe.createElement("tr",null,oe.createElement(D$,{borderStyle:f.none,sorted:r&&n,sortAscending:o,onClick:u},e),t.map(d=>oe.createElement(D$,{borderStyle:f.solid,key:d,sorted:r&&i===d,sortAscending:o,onClick:s.bind(null,d)},d))))))},Ate=({data:e,columns:t})=>{const r=ni("TableInspector"),[{sorted:n,sortIndexColumn:i,sortColumn:o,sortAscending:s},u]=C.useState({sorted:!1,sortIndexColumn:!1,sortColumn:void 0,sortAscending:!1}),c=C.useCallback(()=>{u(({sortIndexColumn:v,sortAscending:S})=>({sorted:!0,sortIndexColumn:!0,sortColumn:void 0,sortAscending:v?!S:!0}))},[]),f=C.useCallback(v=>{u(({sortColumn:S,sortAscending:y})=>({sorted:!0,sortIndexColumn:!1,sortColumn:v,sortAscending:v===S?!y:!0}))},[]);if(typeof e!="object"||e===null)return oe.createElement("div",null);let{rowHeaders:d,colHeaders:g}=Cte(e);t!==void 0&&(g=t);let h=d.map(v=>e[v]),b;if(o!==void 0?b=h.map((v,S)=>typeof v=="object"&&v!==null?[v[o],S]:[void 0,S]):i&&(b=d.map((v,S)=>[d[S],S])),b!==void 0){const v=(y,E)=>(x,T)=>{const A=y(x),R=y(T),$=typeof A,O=typeof R,I=(F,q)=>F<q?-1:F>q?1:0;let L;if($===O)L=I(A,R);else{const F={string:0,number:1,object:2,symbol:3,boolean:4,undefined:5,function:6};L=I(F[$],F[O])}return E||(L=-L),L},S=b.sort(v(y=>y[0],s)).map(y=>y[1]);d=S.map(y=>d[y]),h=S.map(y=>h[y])}return oe.createElement("div",{style:r.base},oe.createElement(Tte,{columns:g,sorted:n,sortIndexColumn:i,sortColumn:o,sortAscending:s,onTHClick:f,onIndexTHClick:c}),oe.createElement(Rte,{rows:d,columns:g,rowsData:h}))},$te=zS(Ate),Ite=80,X5=e=>e.childNodes.length===0||e.childNodes.length===1&&e.childNodes[0].nodeType===Node.TEXT_NODE&&e.textContent.length<Ite,Pte=({tagName:e,attributes:t,styles:r})=>oe.createElement("span",{style:r.base},"<",oe.createElement("span",{style:r.tagName},e),(()=>{if(t){const n=[];for(let i=0;i<t.length;i++){const o=t[i];n.push(oe.createElement("span",{key:i}," ",oe.createElement("span",{style:r.htmlAttributeName},o.name),'="',oe.createElement("span",{style:r.htmlAttributeValue},o.value),'"'))}return n}})(),">"),L$=({tagName:e,isChildNode:t=!1,styles:r})=>oe.createElement("span",{style:Object.assign({},r.base,t&&r.offsetLeft)},"</",oe.createElement("span",{style:r.tagName},e),">"),kte={1:"ELEMENT_NODE",3:"TEXT_NODE",7:"PROCESSING_INSTRUCTION_NODE",8:"COMMENT_NODE",9:"DOCUMENT_NODE",10:"DOCUMENT_TYPE_NODE",11:"DOCUMENT_FRAGMENT_NODE"},Mte=({isCloseTag:e,data:t,expanded:r})=>{const n=ni("DOMNodePreview");if(e)return oe.createElement(L$,{styles:n.htmlCloseTag,isChildNode:!0,tagName:t.tagName});switch(t.nodeType){case Node.ELEMENT_NODE:return oe.createElement("span",null,oe.createElement(Pte,{tagName:t.tagName,attributes:t.attributes,styles:n.htmlOpenTag}),X5(t)?t.textContent:!r&&"…",!r&&oe.createElement(L$,{tagName:t.tagName,styles:n.htmlCloseTag}));case Node.TEXT_NODE:return oe.createElement("span",null,t.textContent);case Node.CDATA_SECTION_NODE:return oe.createElement("span",null,"<![CDATA["+t.textContent+"]]>");case Node.COMMENT_NODE:return oe.createElement("span",{style:n.htmlComment},"<!--",t.textContent,"-->");case Node.PROCESSING_INSTRUCTION_NODE:return oe.createElement("span",null,t.nodeName);case Node.DOCUMENT_TYPE_NODE:return oe.createElement("span",{style:n.htmlDoctype},"<!DOCTYPE ",t.name,t.publicId?` PUBLIC "${t.publicId}"`:"",!t.publicId&&t.systemId?" SYSTEM":"",t.systemId?` "${t.systemId}"`:"",">");case Node.DOCUMENT_NODE:return oe.createElement("span",null,t.nodeName);case Node.DOCUMENT_FRAGMENT_NODE:return oe.createElement("span",null,t.nodeName);default:return oe.createElement("span",null,kte[t.nodeType])}},Dte=function*(e){if(e&&e.childNodes){if(X5(e))return;for(let r=0;r<e.childNodes.length;r++){const n=e.childNodes[r];n.nodeType===Node.TEXT_NODE&&n.textContent.trim().length===0||(yield{name:`${n.tagName}[${r}]`,data:n})}e.tagName&&(yield{name:"CLOSE_TAG",data:{tagName:e.tagName},isCloseTag:!0})}},Lte=e=>oe.createElement(q5,{nodeRenderer:Mte,dataIterator:Dte,...e}),Fte=zS(Lte),Nte=ste(cte()),jte=({table:e=!1,data:t,...r})=>e?oe.createElement($te,{data:t,...r}):(0,Nte.default)(t)?oe.createElement(Fte,{data:t,...r}):oe.createElement(Ete,{data:t,...r});const zte=e=>{const t={whiteSpace:"nowrap",flexShrink:0,alignSelf:"center",fontSize:12};switch(e){case"debug":return{...t,color:"grey"};case"info":return{...t,color:"black"};case"warning":return{...t,color:"darkorange"};case"error":return{...t,color:"red"};case"fatal":return{...t,color:"red"};default:return{...t,color:"grey"}}},bh=xe.p(({verbosity:e})=>zte(e)),Bte=xe(bh)`
1339
+ font-size: 10px;
1340
+ padding-bottom: 2px;
1341
+ `,Vte=xe(bh)`
1342
+ font-weight: bold;
1343
+ width: 190px;
1344
+ `,Ute=({timestamp:e,verbosity:t})=>U.jsx("div",{children:U.jsx(Bte,{verbosity:t,children:new Date(e).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:2,hour12:!1})})}),Hte=({tag:e,verbosity:t})=>U.jsx("div",{children:U.jsx(Vte,{verbosity:t,children:e})}),Wte=({verbosity:e})=>U.jsx("div",{children:U.jsx(bh,{verbosity:e,children:e})}),qte=({message:e,verbosity:t})=>U.jsx("div",{children:U.jsx(bh,{verbosity:t,children:e})}),Gte=({payload:e})=>typeof e!="string"&&Object.entries(e).length===0?null:U.jsx("div",{children:U.jsx(jte,{data:e,expandLevel:0,table:!1})}),Fu=BZ(),Xte=()=>[Fu.accessor("timestamp",{header:"Timestamp",cell:e=>U.jsx(Ute,{...e.row.original}),enableSorting:!0,size:85,meta:{flexible:!1}}),Fu.accessor("tag",{header:"Tag",cell:e=>U.jsx(Hte,{...e.row.original}),enableSorting:!1,size:210,meta:{flexible:!1}}),Fu.accessor("verbosity",{header:"Verbosity",cell:e=>U.jsx(Wte,{...e.row.original}),enableSorting:!1,size:65,meta:{flexible:!1}}),Fu.accessor("message",{header:"Message",cell:e=>U.jsx(qte,{...e.row.original}),enableSorting:!1,size:300,minSize:100,meta:{flexible:!0}}),Fu.accessor("payload",{header:"Payload",cell:e=>U.jsx(Gte,{...e.row.original},e.cell.id),enableSorting:!1,size:200,minSize:100,meta:{flexible:!0}})],Kte=xe.thead`
1345
+ display: grid;
1346
+ position: sticky;
1347
+ top: 0;
1348
+ z-index: 1;
1349
+ background-color: white;
1350
+ `,Yte=xe.tr`
1351
+ display: flex;
1352
+ width: 100%;
1353
+ background-color: ghostwhite;
1354
+ `,Jte=xe.th`
1355
+ display: flex;
1356
+ flex: ${({flexible:e,size:t,minSize:r})=>e?`${t} 1 ${r}px`:`0 0 ${t}px`};
1357
+ min-width: ${({flexible:e,size:t,minSize:r})=>e?r:t}px;
1358
+ position: relative;
1359
+ overflow: hidden;
1360
+ `,Qte=xe.div`
1361
+ font-size: ${Fp.HEADER_FONT_SIZE}px;
1362
+ cursor: ${({canSort:e})=>e?"pointer":"default"};
1363
+ user-select: ${({canSort:e})=>e?"none":"auto"};
1364
+ `,Zte=xe.div`
1365
+ position: absolute;
1366
+ right: 0;
1367
+ top: 0;
1368
+ width: ${Fp.RESIZER_WIDTH};
1369
+ margin-right: ${Fp.RESIZER_MARGIN};
1370
+ height: 100%;
1371
+ cursor: col-resize;
1372
+ background-color: lightgrey;
1373
+ touch-action: none;
1374
+ user-select: none;
1375
+ `,ere=({headerGroups:e})=>U.jsx(Kte,{children:e.map(t=>U.jsx(Yte,{children:t.headers.map(r=>{const n=r.column.columnDef.meta?.flexible??!1,i=r.getSize(),o=r.column.columnDef.minSize??50;return U.jsxs(Jte,{size:i,minSize:o,flexible:n,children:[U.jsxs(Qte,{canSort:r.column.getCanSort(),onClick:r.column.getToggleSortingHandler(),children:[z5(r.column.columnDef.header,r.getContext()),{asc:" 🔼",desc:" 🔽"}[r.column.getIsSorted()]??null]}),U.jsx(Zte,{onDoubleClick:()=>r.column.resetSize(),onMouseDown:r.getResizeHandler(),onTouchStart:r.getResizeHandler()})]},r.id)})},t.id))});function tre(e){const t=C.useRef(null),r=C.useRef(e);return C.useLayoutEffect(()=>{r.current=e},[e]),C.useLayoutEffect(()=>{const n=t?.current;if(!n)return;const i=new ResizeObserver(o=>{const s=o[0];s&&r.current(n,s)});return i.observe(n,{box:"border-box"}),()=>{i.disconnect()}},[]),t}const rre=({data:e})=>{const t=oe.useRef(null),[r,n]=C.useState(!0),i=oe.useRef(!1),o=oe.useRef(e.length),s=C.useCallback(()=>{t.current&&(i.current=!0,n(!0),t.current.scrollTo({top:t.current.scrollHeight,behavior:"instant"}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.current=!1})}))},[]);C.useEffect(()=>{r&&t.current&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.current&&r&&s()})})},[e.length,r,s]),C.useEffect(()=>{const h=o.current,b=e.length;o.current=b,(b<h*.5||b<=3)&&(t.current?.scrollTo({top:0,behavior:"instant"}),n(!0))},[e.length]);const[u,c]=C.useState(0),f=C.useCallback((h,b)=>{c(b.contentRect.height)},[]),d=tre(f);C.useLayoutEffect(()=>{if(d.current){const h=d.current.getBoundingClientRect().height;h>0&&c(h)}},[d]);const g=C.useCallback(()=>{const h=t.current;if(!h||i.current)return;const b=h.scrollTop+h.clientHeight>=h.scrollHeight-Gee;n(b)},[]);return{autoScrollEnabled:r,onScroll:g,scrollContainerRef:t,scrollZoneHeight:u,scrollToBottom:s,scrollZoneRef:d}},nre=xe.div`
1376
+ height: ${({height:e})=>e}px;
1377
+ overflow: ${({disableScroll:e})=>e?"hidden":"auto"};
1378
+ overflow-anchor: auto;
1379
+ position: relative;
1380
+ width: 100%;
1381
+ `,ire=xe.div`
1382
+ width: 100%;
1383
+ min-width: fit-content;
1384
+ `,ore=xe.table`
1385
+ display: grid;
1386
+ `,F$=xe.div`
1387
+ flex: 1;
1388
+ position: relative;
1389
+ display: flex;
1390
+ flex-direction: column;
1391
+ min-height: 0;
1392
+ `,are=xe.div`
1393
+ display: flex;
1394
+ align-items: center;
1395
+ justify-content: center;
1396
+ flex: 1;
1397
+ color: #999;
1398
+ font-size: 14px;
1399
+ `,sre=({data:e,highlightedIndices:t,currentHighlightIndex:r,scrollToIndex:n})=>{const{autoScrollEnabled:i,onScroll:o,scrollContainerRef:s,scrollZoneHeight:u,scrollToBottom:c,scrollZoneRef:f}=rre({data:e}),d=C.useMemo(()=>Xte(),[]),g=Pee({data:e,columns:d,defaultColumn:{minSize:Ud.MIN_COLUMN_SIZE,maxSize:Ud.MAX_COLUMN_SIZE},columnResizeMode:"onChange",getCoreRowModel:Oee(),getSortedRowModel:Tee(),debugTable:!0,getRowId:S=>`${S.timestamp}-${S.message}`}),{rows:h}=g.getRowModel(),b=qee({count:h.length,estimateSize:()=>Ud.ROW_HEIGHT_ESTIMATE,getScrollElement:()=>s.current,getItemKey:S=>h[S]?.id??String(S),measureElement:typeof window<"u"&&navigator.userAgent.indexOf("Firefox")===-1?S=>S?.getBoundingClientRect().height:void 0,overscan:Ud.OVERSCAN}),v=g.getState().columnSizingInfo.isResizingColumn;return C.useEffect(()=>{v||b.measure()},[u,b,v]),C.useEffect(()=>{const S=s.current;if(!S)return;const y=new ResizeObserver(()=>{g.getState().columnSizingInfo.isResizingColumn||requestAnimationFrame(()=>{b.measure()})});return y.observe(S),()=>{y.disconnect()}},[b,s,g]),C.useEffect(()=>{n!==void 0&&n>=0&&b.scrollToIndex(n,{align:"center"})},[n,b]),C.useLayoutEffect(()=>{h.length<100&&h.length>0&&(b.scrollToOffset(0),b.measure())},[h.length,b]),e.length===0?U.jsx(F$,{ref:f,children:U.jsx(are,{children:"No logs to display"})}):U.jsxs(F$,{ref:f,children:[U.jsx(nre,{className:"container",ref:s,onScroll:o,height:u,disableScroll:!!v,children:U.jsx(ire,{children:U.jsxs(ore,{children:[U.jsx(ere,{headerGroups:g.getHeaderGroups()}),U.jsx(ete,{virtualizer:b,rows:h,highlightedIndices:t,currentHighlightIndex:r})]})})}),U.jsx(Kee,{enabled:i,onClick:c})]})};function K5(e){const t=e.trim();if(!t)return[];const r=[],n=/(-?)\/([^/]+)\/|(\S+)/g;let i;for(;(i=n.exec(t))!==null;)if(i[2]!==void 0){const o=i[1]==="-",s=i[2];try{const u=new RegExp(s,"i");r.push({type:"regex",pattern:u,exclude:o})}catch{const u=i[0],c=u.startsWith("-"),f=c?u.slice(1):u;f&&r.push({type:"keyword",value:f.toLowerCase(),exclude:c})}}else if(i[3]!==void 0){const o=i[3],s=o.startsWith("-"),u=s?o.slice(1):o;u&&r.push({type:"keyword",value:u.toLowerCase(),exclude:s})}return r}function lre(e){if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return""}}function ure(e){return[e.tag,e.message,lre(e.payload)].join(" ")}function N$(e,t){return e.type==="keyword"?t.toLowerCase().includes(e.value):e.pattern.test(t)}function Y5(e,t){if(t.length===0)return!0;const r=ure(e),n=t.filter(o=>!o.exclude),i=t.filter(o=>o.exclude);for(const o of n)if(!N$(o,r))return!1;for(const o of i)if(N$(o,r))return!1;return!0}const j$=Number.POSITIVE_INFINITY,cre=({logs:e})=>{const[t,r]=oe.useState(DZ),n=C.useMemo(()=>{const s=K5(t.filterText),u=e.filter(c=>!(!t.activeLevels[c.verbosity]||t.includeTags.size>0&&!t.includeTags.has(c.tag)||s.length>0&&!Y5(c,s)));return u.length>j$?u.slice(-j$):u},[e,t]),i=oe.useRef(new Set),o=C.useMemo(()=>(e.forEach(s=>{i.current.add(s.tag)}),i.current),[e]);return{displayedLogs:n,options:t,setOptions:r,uniqueTags:o}},fre=e=>{const[t,r]=C.useState(""),[n,i]=C.useState(0),o=C.useMemo(()=>{const d=t.trim();if(!d)return[];const g=K5(d);return g.length===0?[]:e.map((h,b)=>Y5(h,g)?b:-1).filter(h=>h!==-1)},[e,t]);C.useEffect(()=>{o.length===0?i(0):n>=o.length&&i(o.length-1)},[o.length,n]);const s=C.useCallback(()=>{o.length!==0&&i(d=>d>=o.length-1?0:d+1)},[o.length]),u=C.useCallback(()=>{o.length!==0&&i(d=>d<=0?o.length-1:d-1)},[o.length]),c=C.useCallback(()=>{o.length!==0&&i(0)},[o.length]),f=C.useCallback(()=>{o.length!==0&&i(o.length-1)},[o.length]);return{searchQuery:t,setSearchQuery:r,matchIndices:o,currentMatchIndex:n,currentMatchRowIndex:o[n],goToNext:s,goToPrevious:u,goToFirst:c,goToLast:f}},dre=`import { DevToolsLogger } from "@ledgerhq/device-management-kit-devtools-core";
1400
+
1401
+ const dmk = new DeviceManagementKitBuilder()
1402
+ .addLogger(new DevToolsLogger(connector))
1403
+ .build();`,pre=({logs:e,clearLogs:t,isConnected:r=!0})=>{const[n,i]=oe.useState(0),{options:o,setOptions:s,displayedLogs:u,uniqueTags:c}=cre({logs:e}),f=u,d=C.useRef(u.length);C.useEffect(()=>{const L=d.current,F=u.length;d.current=F,(F<L*.5||F<100&&F<L)&&i(q=>q+1)},[u.length]);const{searchQuery:g,setSearchQuery:h,matchIndices:b,currentMatchIndex:v,currentMatchRowIndex:S,goToNext:y,goToPrevious:E,goToFirst:x,goToLast:T}=fre(u),A=C.useRef(null);C.useEffect(()=>{const L=F=>{(F.metaKey||F.ctrlKey)&&F.key.toLowerCase()==="f"&&(F.preventDefault(),A.current?.focus(),A.current?.select()),(F.metaKey||F.ctrlKey)&&F.key.toLowerCase()==="g"&&(F.preventDefault(),F.shiftKey?E():y())};return window.addEventListener("keydown",L),()=>window.removeEventListener("keydown",L)},[y,E]);const R=n,$=C.useMemo(()=>new Set(b),[b]),O=C.useCallback(()=>{t(),i(L=>L+1)},[t]),I=C.useCallback(()=>{const L=e.map(B=>{const{payload:N,...j}=B;return j}),F=new Blob([JSON.stringify(L,null,2)],{type:"application/json"}),q=URL.createObjectURL(F),z=document.createElement("a");z.href=q,z.download=`logs-sdk-${new Date().toISOString()}.json`,z.click(),URL.revokeObjectURL(q)},[e]);return r?U.jsxs(ia,{flex:1,flexDirection:"column",minHeight:0,overflow:"hidden",children:[U.jsx(ia,{flexDirection:"column",px:6,py:2,flexShrink:0,children:U.jsx(zZ,{clearLogs:O,downloadLogs:I,options:o,setOptions:s,uniqueTags:c,searchQuery:g,onSearchChange:h,matchCount:b.length,currentMatchIndex:v,onSearchNext:y,onSearchPrevious:E,onSearchFirst:x,onSearchLast:T,searchInputRef:A})}),U.jsx(k7,{mb:3,flexShrink:0}),U.jsx(sre,{data:f,highlightedIndices:$,currentHighlightIndex:S,scrollToIndex:S},R)]}):U.jsx(pP,{title:"Logger not connected",description:U.jsxs(U.Fragment,{children:["To enable logging, add ",U.jsx("code",{children:"DevToolsLogger"})," to your DMK builder:"]}),codeExample:dre})};let hre=class extends oe.Component{constructor(t){super(t),this.state={hasError:!1}}componentDidCatch(t,r){this.setState({hasError:!0,error:t})}reset(){this.setState({hasError:!1})}render(){return this.state.hasError?(console.log("rendering error boundary",this.state.error),U.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100vh"},children:[U.jsx("button",{onClick:()=>this.reset(),children:"Retry"}),U.jsx("pre",{children:this.state.error.message}),U.jsx("pre",{children:this.state.error.stack})]})):this.props.children}};const gre=xe.div`
1404
+ display: flex;
1405
+ flex-direction: column;
1406
+ height: 100vh;
1407
+ overflow: hidden;
1408
+ `,vre=xe.div`
1409
+ display: flex;
1410
+ flex-direction: column;
1411
+ flex: 1;
1412
+ overflow: hidden;
1413
+ `,mre=({connector:e})=>{const{receivedMessages:t,sentMessages:r,logs:n,connectedDevices:i,sessionStates:o,discoveredDevices:s,isListening:u,isActivelyDiscovering:c,isLoggerConnected:f,isInspectorConnected:d,providerValue:g,apduResponses:h,sendMessage:b,clearLogs:v,startListening:S,stopListening:y,startDiscovering:E,stopDiscovering:x,connectDevice:T,getProvider:A,setProvider:R,sendApdu:$}=Q9(e),[O,I]=C.useState(pl.logs),[L,F]=C.useState(!1),q=U.jsx(pre,{logs:n,clearLogs:v,isConnected:f}),z=U.jsx(JU,{devices:i,sessionStates:o,discoveredDevices:s,isListening:u,isActivelyDiscovering:c,sendMessage:b,isConnected:d,startListening:S,stopListening:y,startDiscovering:E,stopDiscovering:x,connectDevice:T,providerValue:g,getProvider:A,setProvider:R,sendApdu:$,apduResponses:h}),B=(()=>{switch(O){case pl.logs:return q;case pl.inspector:return z;case pl.splitHorizontal:return U.jsx(HC,{direction:"horizontal",first:q,second:z});case pl.splitVertical:return U.jsx(HC,{direction:"vertical",first:q,second:z});default:return q}})();return U.jsxs(gre,{children:[U.jsx(c4,{currentScreen:O,onScreenChange:I,isLoggerConnected:f,isInspectorConnected:d}),U.jsx(vre,{children:B}),U.jsx(i4,{isDebugOpen:L,onToggleDebug:()=>F(!L)}),U.jsx(b4,{isOpen:L,onClose:()=>F(!1),sentMessages:r,receivedMessages:t,sendMessage:b})]})};function yre({connector:e}){return U.jsx(hre,{children:U.jsx(t4,{selectedPalette:"light",children:U.jsx(mre,{connector:e})})})}const bre=()=>typeof window<"u"&&typeof window.document<"u";class J5 extends Error{constructor(t){super(`Unsupported platform: ${t}`),this.name="UnsupportedPlatformError"}}const VS="rozenite",Sre=()=>{const e=self.__FUSEBOX_REACT_DEVTOOLS_DISPATCHER__,t=e.BINDING_NAME;return self[t]!=null?e.initializeDomain(VS):null},wre=()=>new Promise(e=>{const t=r=>{r.name===VS&&(self.__FUSEBOX_REACT_DEVTOOLS_DISPATCHER__.onDomainInitialization.removeEventListener(t),setTimeout(()=>e(r)))};self.__FUSEBOX_REACT_DEVTOOLS_DISPATCHER__.onDomainInitialization.addEventListener(t)}),xre=async()=>{const e=new Set;let t=Sre();t||(t=await wre());const r=()=>{if(!t)throw new Error("Domain not initialized");return t},n=i=>{i.name===VS&&(t&&e.forEach(o=>{t.onMessage.removeEventListener(o)}),t=i,e.forEach(o=>{i.onMessage.addEventListener(o)}))};return self.__FUSEBOX_REACT_DEVTOOLS_DISPATCHER__.onDomainInitialization.addEventListener(n),{send:i=>{r().sendMessage(i)},onMessage(i){const o=s=>{setTimeout(()=>{i(s)})};return e.add(o),r().onMessage.addEventListener(o),{remove:()=>{e.delete(o),r().onMessage.removeEventListener(o)}}},close:()=>{self.__FUSEBOX_REACT_DEVTOOLS_DISPATCHER__.onDomainInitialization.removeEventListener(n)}}},Ere=async()=>{if(bre())throw new J5("web");return xre()},Cre=async()=>{const e=new Set,t=r=>{e.forEach(n=>{n(r.data)})};return window.addEventListener("message",t),{send:r=>{window.parent.postMessage({type:"rozenite-message",payload:r},"*")},onMessage:r=>(e.add(r),{remove:()=>{e.delete(r)}}),close:()=>{e.clear(),window.removeEventListener("message",t)}}};let Nu=null;const Rre=async()=>{if(Nu)return Nu;const e="__ROZENITE_PANEL__"in window?Cre():Ere();Nu=e;try{const t=await e;return Nu=t,t}catch(t){throw Nu=null,t}},_re=e=>typeof e!="object"||e===null||!("type"in e)||!("payload"in e)||!("pluginId"in e)?null:e,Ore=async e=>{const t=await Rre(),r=new Map,n=async s=>{const u=_re(s);if(!u||u.pluginId!==e)return;const c=r.get(u.type);c?.forEach(f=>{f(u.payload)})},i=(s,u)=>{t.send({pluginId:e,type:s,payload:u})},o=t.onMessage(n);return{send:i,onMessage:(s,u)=>{const c=r.get(s)??new Set;return c.add(u),r.set(s,c),{remove:()=>{c.delete(u)}}},close:()=>{r.clear(),o.remove(),t.close()}}},Tre=async e=>Ore(e),Are=({pluginId:e})=>{const[t,r]=C.useState(null),[n,i]=C.useState(null);if(C.useEffect(()=>{let o=!0,s=null;const u=async()=>{try{s=await Tre(e),o&&r(s)}catch(f){if(f instanceof J5){console.warn(`[Rozenite, ${e}] Unsupported platform, skipping setup.`);return}console.error("Error setting up client",f),o&&i(f)}},c=async()=>{try{s?.close()}catch{}};return u(),()=>{o=!1,c()}},[e]),n!=null)throw n;return t},yo=class yo{constructor(){this.rozeniteClient=null,this.messagesToSend=new d2,this.messagesFromDashboard=new Gl,this.messagesToSendSubscription=null,this.verbose=!1}static getInstance(){return yo.instance||(yo.instance=new yo),yo.instance}static destroyInstance(){yo.instance&&(yo.instance.destroy(),yo.instance=null)}setVerbose(t){this.verbose=t}error(...t){this.verbose&&console.error(...t)}setClient(t){this.messagesToSendSubscription&&(this.messagesToSendSubscription.unsubscribe(),this.messagesToSendSubscription=null),this.rozeniteClient&&this.rozeniteClient.close(),this.rozeniteClient=t,this.initialize().catch(r=>{this.error("[RozeniteConnector] Error initializing",r)})}destroy(){this.messagesToSendSubscription&&(this.messagesToSendSubscription.unsubscribe(),this.messagesToSendSubscription=null),this.rozeniteClient?.close(),this.messagesToSend.complete(),this.messagesFromDashboard.complete()}async initialize(){const t=this.rozeniteClient;if(!t)throw new Error("[RozeniteConnector] Client not set");this.messagesToSendSubscription&&(this.messagesToSendSubscription.unsubscribe(),this.messagesToSendSubscription=null);const r=()=>{this.messagesToSendSubscription&&this.messagesToSendSubscription.unsubscribe(),this.messagesToSendSubscription=this.messagesToSend.subscribe({next:n=>{t.send("message",n)}})};t.onMessage("init",()=>{const n=!!this.messagesToSendSubscription;r(),n||t.send("init","init response")}),t.onMessage("message",({type:n,payload:i})=>{this.messagesFromDashboard.next({type:n,payload:i})}),t.send("init","init message from client")}sendMessage(t,r){this.messagesToSend.next({type:t,payload:r})}listenToMessages(t){return this.messagesFromDashboard.subscribe({next:r=>t(r.type,r.payload)})}};yo.instance=null;let p1=yo;const $re="@ledgerhq/device-management-kit-devtools-rozenite",Ire=$re;function Pre(){const e=Are({pluginId:Ire}),[t,r]=C.useState(null);return C.useEffect(()=>{if(e){const n=p1.getInstance();n.setClient(e),r(n)}},[e]),t}function kre(){const e=Pre();return e?U.jsx(yre,{connector:e}):U.jsx("h3",{children:"Connector loading..."})}const Q5="index";lc.registerComponent(Q5,()=>kre);lc.runApplication(Q5,{initialProps:{},rootTag:document.getElementById("root")});