@midscene/android-playground 0.27.2-beta-20250825025215.0 → 0.27.3-beta-20250825082408.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- /*! For license information please see 683.03396602.js.LICENSE.txt */
2
- (self.webpackChunkandroid_playground=self.webpackChunkandroid_playground||[]).push([["683"],{25537:function(e,t,r){"use strict";r.d(t,{iN:()=>I,R_:()=>y,EV:()=>E,Ti:()=>$,ez:()=>_});var n=r(20117),i=r(76981),o=2,a=.16,s=.05,l=.05,u=.15,c=5,f=4,h=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function d(e){var t=e.r,r=e.g,i=e.b,o=(0,n.py)(t,r,i);return{h:360*o.h,s:o.s,v:o.v}}function p(e){var t=e.r,r=e.g,i=e.b;return"#".concat((0,n.vq)(t,r,i,!1))}function m(e,t,r){var n=r/100;return{r:(t.r-e.r)*n+e.r,g:(t.g-e.g)*n+e.g,b:(t.b-e.b)*n+e.b}}function g(e,t,r){var n;return(n=Math.round(e.h)>=60&&240>=Math.round(e.h)?r?Math.round(e.h)-o*t:Math.round(e.h)+o*t:r?Math.round(e.h)+o*t:Math.round(e.h)-o*t)<0?n+=360:n>=360&&(n-=360),n}function v(e,t,r){var n;return 0===e.h&&0===e.s?e.s:((n=r?e.s-a*t:t===f?e.s+a:e.s+s*t)>1&&(n=1),r&&t===c&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2)))}function b(e,t,r){var n;return(n=r?e.v+l*t:e.v-u*t)>1&&(n=1),Number(n.toFixed(2))}function y(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],n=(0,i.uA)(e),o=c;o>0;o-=1){var a=d(n),s=p((0,i.uA)({h:g(a,o,!0),s:v(a,o,!0),v:b(a,o,!0)}));r.push(s)}r.push(p(n));for(var l=1;l<=f;l+=1){var u=d(n),y=p((0,i.uA)({h:g(u,l),s:v(u,l),v:b(u,l)}));r.push(y)}return"dark"===t.theme?h.map(function(e){var n=e.index,o=e.opacity;return p(m((0,i.uA)(t.backgroundColor||"#141414"),(0,i.uA)(r[n]),100*o))}):r}var _={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"},w=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];w.primary=w[5];var x=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];x.primary=x[5];var S=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];S.primary=S[5];var E=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];E.primary=E[5];var C=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];C.primary=C[5];var A=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];A.primary=A[5];var k=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];k.primary=k[5];var O=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];O.primary=O[5];var I=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];I.primary=I[5];var T=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];T.primary=T[5];var P=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];P.primary=P[5];var R=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];R.primary=R[5];var M=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];M.primary=M[5];var $={red:w,volcano:x,orange:S,gold:E,yellow:C,lime:A,green:k,cyan:O,blue:I,geekblue:T,purple:P,magenta:R,grey:M},N=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];N.primary=N[5];var j=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];j.primary=j[5];var B=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];B.primary=B[5];var L=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];L.primary=L[5];var F=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];F.primary=F[5];var D=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];D.primary=D[5];var z=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];z.primary=z[5];var U=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];U.primary=U[5];var Z=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];Z.primary=Z[5];var H=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];H.primary=H[5];var G=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];G.primary=G[5];var W=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];W.primary=W[5];var V=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];V.primary=V[5]},1781:function(e,t,r){"use strict";r.d(t,{IX:()=>C,rb:()=>N});var n=r(52655),i=r(57987),o=r(50793),a=r(19741),s=r(44194),l=r(99607),u=r(71123),c=r(83739),f=r(61764),h=r(14425),d=r(20652);let p=(0,c.Z)(function e(){(0,u.Z)(this,e)});var m="CALC_UNIT",g=RegExp(m,"g");function v(e){return"number"==typeof e?"".concat(e).concat(m):e}var b=function(e){(0,h.Z)(r,e);var t=(0,d.Z)(r);function r(e,i){(0,u.Z)(this,r),a=t.call(this),(0,o.Z)((0,f.Z)(a),"result",""),(0,o.Z)((0,f.Z)(a),"unitlessCssVar",void 0),(0,o.Z)((0,f.Z)(a),"lowPriority",void 0);var a,s=(0,n.Z)(e);return a.unitlessCssVar=i,e instanceof r?a.result="(".concat(e.result,")"):"number"===s?a.result=v(e):"string"===s&&(a.result=e),a}return(0,c.Z)(r,[{key:"add",value:function(e){return e instanceof r?this.result="".concat(this.result," + ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," + ").concat(v(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof r?this.result="".concat(this.result," - ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," - ").concat(v(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof r?this.result="".concat(this.result," * ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof r?this.result="".concat(this.result," / ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,r=(e||{}).unit,n=!0;return("boolean"==typeof r?n=r:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(n=!1),this.result=this.result.replace(g,n?"px":""),void 0!==this.lowPriority)?"calc(".concat(this.result,")"):this.result}}]),r}(p);let y=function(e){(0,h.Z)(r,e);var t=(0,d.Z)(r);function r(e){var n;return(0,u.Z)(this,r),n=t.call(this),(0,o.Z)((0,f.Z)(n),"result",0),e instanceof r?n.result=e.result:"number"==typeof e&&(n.result=e),n}return(0,c.Z)(r,[{key:"add",value:function(e){return e instanceof r?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof r?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof r?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof r?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),r}(p),_=function(e,t){var r="css"===e?b:y;return function(e){return new r(e,t)}},w=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};r(69580);let x=function(e,t,r,n){var o=(0,a.Z)({},t[e]);null!=n&&n.deprecatedTokens&&n.deprecatedTokens.forEach(function(e){var t,r=(0,i.Z)(e,2),n=r[0],a=r[1];(null!=o&&o[n]||null!=o&&o[a])&&(null!=(t=o[a])||(o[a]=null==o?void 0:o[n]))});var s=(0,a.Z)((0,a.Z)({},r),o);return Object.keys(s).forEach(function(e){s[e]===t[e]&&delete s[e]}),s};var S="undefined"!=typeof CSSINJS_STATISTIC,E=!0;function C(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!S)return Object.assign.apply(Object,[{}].concat(t));E=!1;var i={};return t.forEach(function(e){if("object"===(0,n.Z)(e)){var t=Object.keys(e);t.forEach(function(t){Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}}),E=!0,i}var A={};function k(){}let O=function(e){var t,r=e,n=k;return S&&"undefined"!=typeof Proxy&&(t=new Set,r=new Proxy(e,{get:function(e,r){if(E){var n;null==(n=t)||n.add(r)}return e[r]}}),n=function(e,r){var n;A[e]={global:Array.from(t),component:(0,a.Z)((0,a.Z)({},null==(n=A[e])?void 0:n.component),r)}}),{token:r,keys:t,flush:n}},I=function(e,t,r){if("function"==typeof r){var n;return r(C(t,null!=(n=t[e])?n:{}))}return null!=r?r:{}},T=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return"max(".concat(t.map(function(e){return(0,l.bf)(e)}).join(","),")")},min:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return"min(".concat(t.map(function(e){return(0,l.bf)(e)}).join(","),")")}}};var P=6e5,R=new(function(){function e(){(0,u.Z)(this,e),(0,o.Z)(this,"map",new Map),(0,o.Z)(this,"objectIDMap",new WeakMap),(0,o.Z)(this,"nextID",0),(0,o.Z)(this,"lastAccessBeat",new Map),(0,o.Z)(this,"accessBeat",0)}return(0,c.Z)(e,[{key:"set",value:function(e,t){this.clear();var r=this.getCompositeKey(e);this.map.set(r,t),this.lastAccessBeat.set(r,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),r=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,r}},{key:"getCompositeKey",value:function(e){var t=this;return e.map(function(e){return e&&"object"===(0,n.Z)(e)?"obj_".concat(t.getObjectID(e)):"".concat((0,n.Z)(e),"_").concat(e)}).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach(function(r,n){t-r>P&&(e.map.delete(n),e.lastAccessBeat.delete(n))}),this.accessBeat=0}}}]),e}());let M=function(e,t){return s.useMemo(function(){var r=R.get(t);if(r)return r;var n=e();return R.set(t,n),n},t)},$=function(){return{}},N=function(e){var t=e.useCSP,r=void 0===t?$:t,u=e.useToken,c=e.usePrefix,f=e.getResetStyles,h=e.getCommonStyle,d=e.getCompUnitless;function p(e,t,r){var n=r.unitless,i=r.injectStyle,o=void 0===i||i,a=r.prefixToken,c=r.ignore,f=function(i){var o=i.rootCls,s=i.cssVar,f=void 0===s?{}:s,h=u().realToken;return(0,l.CI)({path:[e],prefix:f.prefix,key:f.key,unitless:n,ignore:c,token:h,scope:o},function(){var n=I(e,h,t),i=x(e,h,n,{deprecatedTokens:null==r?void 0:r.deprecatedTokens});return Object.keys(n).forEach(function(e){i[a(e)]=i[e],delete i[e]}),i}),null};return function(t){var r=u().cssVar;return[function(n){return o&&r?s.createElement(s.Fragment,null,s.createElement(f,{rootCls:t,cssVar:r,component:e}),n):n},null==r?void 0:r.key]}}function m(t,o,s){var d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},p=Array.isArray(t)?t:[t,t],m=(0,i.Z)(p,1)[0],g=p.join("-"),v=e.layer||{name:"antd"};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,i=u(),p=i.theme,b=i.realToken,y=i.hashId,S=i.token,E=i.cssVar,A=c(),k=A.rootPrefixCls,P=A.iconPrefixCls,R=r(),$=E?"css":"js",N=M(function(){var e=new Set;return E&&Object.keys(d.unitless||{}).forEach(function(t){e.add((0,l.ks)(t,E.prefix)),e.add((0,l.ks)(t,w(m,E.prefix)))}),_($,e)},[$,m,null==E?void 0:E.prefix]),j=T($),B=j.max,L=j.min,F={theme:p,token:S,hashId:y,nonce:function(){return R.nonce},clientOnly:d.clientOnly,layer:v,order:d.order||-999};return(0,l.xy)((0,a.Z)((0,a.Z)({},F),{},{clientOnly:!1,path:["Shared",k]}),function(){return"function"==typeof f?f(S):[]}),[(0,l.xy)((0,a.Z)((0,a.Z)({},F),{},{path:[g,e,P]}),function(){if(!1===d.injectStyle)return[];var r=O(S),i=r.token,a=r.flush,u=I(m,b,s),c=".".concat(e),f=x(m,b,u,{deprecatedTokens:d.deprecatedTokens});E&&u&&"object"===(0,n.Z)(u)&&Object.keys(u).forEach(function(e){u[e]="var(".concat((0,l.ks)(e,w(m,E.prefix)),")")});var p=C(i,{componentCls:c,prefixCls:e,iconCls:".".concat(P),antCls:".".concat(k),calc:N,max:B,min:L},E?u:f),g=o(p,{hashId:y,prefixCls:e,rootPrefixCls:k,iconPrefixCls:P});a(m,f);var v="function"==typeof h?h(p,e,t,d.resetFont):null;return[!1===d.resetStyle?null:v,g]}),y]}}return{genStyleHooks:function(e,t,r,n){var s=Array.isArray(e)?e[0]:e;function l(e){return"".concat(String(s)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var u=(null==n?void 0:n.unitless)||{},c="function"==typeof d?d(e):{},f=(0,a.Z)((0,a.Z)({},c),{},(0,o.Z)({},l("zIndexPopup"),!0));Object.keys(u).forEach(function(e){f[l(e)]=u[e]});var h=(0,a.Z)((0,a.Z)({},n),{},{unitless:f,prefixToken:l}),g=m(e,t,r,h),v=p(s,r,h);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=g(e,t),n=(0,i.Z)(r,2)[1],o=v(t),a=(0,i.Z)(o,2);return[a[0],n,a[1]]}},genSubStyleComponent:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=m(e,t,r,(0,a.Z)({resetStyle:!1,order:-998},n));return function(e){var t=e.prefixCls,r=e.rootCls,n=void 0===r?t:r;return i(t,n),null}},genComponentStyleHook:m}}},99607:function(e,t,r){"use strict";r.d(t,{ks:()=>D,fp:()=>el,jG:()=>T,xy:()=>tl,CI:()=>th,E4:()=>td,bf:()=>L});var n,i=r(50793),o=r(57987),a=r(81632),s=r(19741);let l=function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&r)*0x5bd1e995+((r>>>16)*59797<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)};var u=r(96345),c=r(44194),f=r.t(c,2);r(20638),r(43942);var h=r(71123),d=r(83739),p="%";function m(e){return e.join(p)}let g=function(){function e(t){(0,h.Z)(this,e),(0,i.Z)(this,"instanceId",void 0),(0,i.Z)(this,"cache",new Map),this.instanceId=t}return(0,d.Z)(e,[{key:"get",value:function(e){return this.opGet(m(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(m(e),t)}},{key:"opUpdate",value:function(e,t){var r=t(this.cache.get(e));null===r?this.cache.delete(e):this.cache.set(e,r)}}]),e}();var v="data-token-hash",b="data-css-hash",y="__cssinjs_instance__";function _(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(b,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(t){t[y]=t[y]||e,t[y]===e&&document.head.insertBefore(t,r)});var n={};Array.from(document.querySelectorAll("style[".concat(b,"]"))).forEach(function(t){var r,i=t.getAttribute(b);n[i]?t[y]===e&&(null==(r=t.parentNode)||r.removeChild(t)):n[i]=!0})}return new g(e)}let w=c.createContext({hashPriority:"low",cache:_(),defaultCache:!0});var x=r(52655),S=r(33229);function E(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 C=function(){function e(){(0,h.Z)(this,e),(0,i.Z)(this,"cache",void 0),(0,i.Z)(this,"keys",void 0),(0,i.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,d.Z)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i={map:this.cache};return e.forEach(function(e){if(i){var t;i=null==(t=i)||null==(t=t.map)?void 0:t.get(e)}else i=void 0}),null!=(t=i)&&t.value&&n&&(i.value[1]=this.cacheCallTimes++),null==(r=i)?void 0:r.value}},{key:"get",value:function(e){var t;return null==(t=this.internalGet(e,!0))?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,r){var n=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(e,t){var r=(0,o.Z)(e,2)[1];return n.internalGet(t)[1]<r?[t,n.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]),a=(0,o.Z)(i,1)[0];this.delete(a)}this.keys.push(t)}var s=this.cache;t.forEach(function(e,i){if(i===t.length-1)s.set(e,{value:[r,n.cacheCallTimes++]});else{var o=s.get(e);o?o.map||(o.map=new Map):s.set(e,{map:new Map}),s=s.get(e).map}})}},{key:"deleteByPath",value:function(e,t){var r,n=e.get(t[0]);if(1===t.length)return n.map?e.set(t[0],{map:n.map}):e.delete(t[0]),null==(r=n.value)?void 0:r[0];var i=this.deleteByPath(n.map,t.slice(1));return n.map&&0!==n.map.size||n.value||e.delete(t[0]),i}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter(function(t){return!E(t,e)}),this.deleteByPath(this.cache,e)}}]),e}();(0,i.Z)(C,"MAX_CACHE_SIZE",20),(0,i.Z)(C,"MAX_CACHE_OFFSET",5);var A=r(28740),k=0,O=function(){function e(t){(0,h.Z)(this,e),(0,i.Z)(this,"derivatives",void 0),(0,i.Z)(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=k,0===t.length&&(0,A.Kp)(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),k+=1}return(0,d.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,r){return r(e,t)},void 0)}}]),e}(),I=new C;function T(e){var t=Array.isArray(e)?e:[e];return I.has(t)||I.set(t,new O(t)),I.get(t)}var P=new WeakMap,R={};function M(e,t){for(var r=P,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(R)||r.set(R,e()),r.get(R)}var $=new WeakMap;function N(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=$.get(e)||"";return r||(Object.keys(e).forEach(function(n){var i=e[n];r+=n,i instanceof O?r+=i.id:i&&"object"===(0,x.Z)(i)?r+=N(i,t):r+=i}),t&&(r=l(r)),$.set(e,r)),r}function j(e,t){return l("".concat(t,"_").concat(N(e,!0)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var B=(0,S.Z)();function L(e){return"number"==typeof e?"".concat(e,"px"):e}function F(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(o)return e;var a=(0,s.Z)((0,s.Z)({},n),{},(0,i.Z)((0,i.Z)({},v,t),b,r)),l=Object.keys(a).map(function(e){var t=a[e];return t?"".concat(e,'="').concat(t,'"'):null}).filter(function(e){return e}).join(" ");return"<style ".concat(l,">").concat(e,"</style>")}var D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).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()},z=function(e,t,r){return Object.keys(e).length?".".concat(t).concat(null!=r&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(e).map(function(e){var t=(0,o.Z)(e,2),r=t[0],n=t[1];return"".concat(r,":").concat(n,";")}).join(""),"}"):""},U=function(e,t,r){var n={},i={};return Object.entries(e).forEach(function(e){var t=(0,o.Z)(e,2),a=t[0],s=t[1];if(null!=r&&null!=(l=r.preserve)&&l[a])i[a]=s;else if(("string"==typeof s||"number"==typeof s)&&!(null!=r&&null!=(u=r.ignore)&&u[a])){var l,u,c,f=D(a,null==r?void 0:r.prefix);n[f]="number"!=typeof s||null!=r&&null!=(c=r.unitless)&&c[a]?String(s):"".concat(s,"px"),i[a]="var(".concat(f,")")}}),[i,z(n,t,{scope:null==r?void 0:r.scope})]},Z=r(16713),H=(0,s.Z)({},f).useInsertionEffect,G=function(e,t,r){c.useMemo(e,r),(0,Z.Z)(function(){return t(!0)},r)};let W=H?function(e,t,r){return H(function(){return e(),t()},r)}:G;var V=(0,s.Z)({},f).useInsertionEffect,q=function(e){var t=[],r=!1;function n(e){r||t.push(e)}return c.useEffect(function(){return r=!1,function(){r=!0,t.length&&t.forEach(function(e){return e()})}},e),n},X=function(){return function(e){e()}};let Y=void 0!==V?q:X,K=function(){return!1};function J(e,t,r,n,i){var s=c.useContext(w).cache,l=m([e].concat((0,a.Z)(t))),u=Y([l]);K();var f=function(e){s.opUpdate(l,function(t){var n=t||[void 0,void 0],i=(0,o.Z)(n,2),a=i[0],s=[void 0===a?0:a,i[1]||r()];return e?e(s):s})};c.useMemo(function(){f()},[l]);var h=s.opGet(l)[1];return W(function(){null==i||i(h)},function(e){return f(function(t){var r=(0,o.Z)(t,2),n=r[0],a=r[1];return e&&0===n&&(null==i||i(h)),[n+1,a]}),function(){s.opUpdate(l,function(t){var r=t||[],i=(0,o.Z)(r,2),a=i[0],c=void 0===a?0:a,f=i[1];return 0==c-1?(u(function(){(e||!s.opGet(l))&&(null==n||n(f,!1))}),null):[c-1,f]})}},[l]),h}var Q={},ee="css",et=new Map;function er(e){et.set(e,(et.get(e)||0)+1)}function en(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(v,'="').concat(e,'"]')).forEach(function(e){if(e[y]===t){var r;null==(r=e.parentNode)||r.removeChild(e)}})}var ei=0;function eo(e,t){et.set(e,(et.get(e)||0)-1);var r=Array.from(et.keys()),n=r.filter(function(e){return 0>=(et.get(e)||0)});r.length-n.length>ei&&n.forEach(function(e){en(e,t),et.delete(e)})}var ea=function(e,t,r,n){var i=r.getDerivativeToken(e),o=(0,s.Z)((0,s.Z)({},i),t);return n&&(o=n(o)),o},es="token";function el(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=(0,c.useContext)(w),i=n.cache.instanceId,f=n.container,h=r.salt,d=void 0===h?"":h,p=r.override,m=void 0===p?Q:p,g=r.formatToken,_=r.getComputedToken,x=r.cssVar,S=M(function(){return Object.assign.apply(Object,[{}].concat((0,a.Z)(t)))},t),E=N(S),C=N(m),A=x?N(x):"";return J(es,[d,e.id,E,C,A],function(){var t,r=_?_(S,m,e):ea(S,m,e,g),n=(0,s.Z)({},r),i="";if(x){var a=U(r,x.key,{prefix:x.prefix,ignore:x.ignore,unitless:x.unitless,preserve:x.preserve}),u=(0,o.Z)(a,2);r=u[0],i=u[1]}var c=j(r,d);r._tokenKey=c,n._tokenKey=j(n,d);var f=null!=(t=null==x?void 0:x.key)?t:c;r._themeKey=f,er(f);var h="".concat(ee,"-").concat(l(c));return r._hashId=h,[r,h,n,i,(null==x?void 0:x.key)||""]},function(e){eo(e[0]._themeKey,i)},function(e){var t=(0,o.Z)(e,4),r=t[0],n=t[3];if(x&&n){var a=(0,u.hq)(n,l("css-variables-".concat(r._themeKey)),{mark:b,prepend:"queue",attachTo:f,priority:-999});a[y]=i,a.setAttribute(v,r._themeKey)}})}var eu=function(e,t,r){var n=(0,o.Z)(e,5),i=n[2],a=n[3],s=n[4],l=(r||{}).plain;if(!a)return null;var u=i._tokenKey,c=-999,f=F(a,s,u,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)},l);return[c,u,f]},ec=r(25833);let ef={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};var eh="comm",ed="rule",ep="decl",em="@import",eg="@keyframes",ev="@layer",eb=Math.abs,ey=String.fromCharCode;function e_(e){return e.trim()}function ew(e,t,r){return e.replace(t,r)}function ex(e,t,r){return e.indexOf(t,r)}function eS(e,t){return 0|e.charCodeAt(t)}function eE(e,t,r){return e.slice(t,r)}function eC(e){return e.length}function eA(e){return e.length}function ek(e,t){return t.push(e),e}function eO(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function eI(e,t,r,n){switch(e.type){case ev:if(e.children.length)break;case em:case ep:return e.return=e.return||e.value;case eh:return"";case eg:return e.return=e.value+"{"+eO(e.children,n)+"}";case ed:if(!eC(e.value=e.props.join(",")))return""}return eC(r=eO(e.children,n))?e.return=e.value+"{"+r+"}":""}var eT=1,eP=1,eR=0,eM=0,e$=0,eN="";function ej(e,t,r,n,i,o,a,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:eT,column:eP,length:a,return:"",siblings:s}}function eB(){return e$}function eL(){return e$=eM>0?eS(eN,--eM):0,eP--,10===e$&&(eP=1,eT--),e$}function eF(){return e$=eM<eR?eS(eN,eM++):0,eP++,10===e$&&(eP=1,eT++),e$}function eD(){return eS(eN,eM)}function ez(){return eM}function eU(e,t){return eE(eN,e,t)}function eZ(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 eH(e){return eT=eP=1,eR=eC(eN=e),eM=0,[]}function eG(e){return eN="",e}function eW(e){return e_(eU(eM-1,eX(91===e?e+2:40===e?e+1:e)))}function eV(e){for(;e$=eD();)if(e$<33)eF();else break;return eZ(e)>2||eZ(e$)>3?"":" "}function eq(e,t){for(;--t&&eF()&&!(e$<48)&&!(e$>102)&&(!(e$>57)||!(e$<65))&&(!(e$>70)||!(e$<97)););return eU(e,ez()+(t<6&&32==eD()&&32==eF()))}function eX(e){for(;eF();)switch(e$){case e:return eM;case 34:case 39:34!==e&&39!==e&&eX(e$);break;case 40:41===e&&eX(e);break;case 92:eF()}return eM}function eY(e,t){for(;eF();)if(e+e$===57)break;else if(e+e$===84&&47===eD())break;return"/*"+eU(t,eM-1)+"*"+ey(47===e?e:eF())}function eK(e){for(;!eZ(eD());)eF();return eU(e,eM)}function eJ(e){return eG(eQ("",null,null,null,[""],e=eH(e),0,[0],e))}function eQ(e,t,r,n,i,o,a,s,l){for(var u=0,c=0,f=a,h=0,d=0,p=0,m=1,g=1,v=1,b=0,y="",_=i,w=o,x=n,S=y;g;)switch(p=b,b=eF()){case 40:if(108!=p&&58==eS(S,f-1)){-1!=ex(S+=ew(eW(b),"&","&\f"),"&\f",eb(u?s[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:S+=eW(b);break;case 9:case 10:case 13:case 32:S+=eV(p);break;case 92:S+=eq(ez()-1,7);continue;case 47:switch(eD()){case 42:case 47:ek(e1(eY(eF(),ez()),t,r,l),l),(5==eZ(p||1)||5==eZ(eD()||1))&&eC(S)&&" "!==eE(S,-1,void 0)&&(S+=" ");break;default:S+="/"}break;case 123*m:s[u++]=eC(S)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(S=ew(S,/\f/g,"")),d>0&&(eC(S)-f||0===m&&47===p)&&ek(d>32?e2(S+";",n,r,f-1,l):e2(ew(S," ","")+";",n,r,f-2,l),l);break;case 59:S+=";";default:if(ek(x=e0(S,t,r,u,c,i,s,y,_=[],w=[],f,o),o),123===b)if(0===c)eQ(S,t,x,x,_,o,f,s,w);else switch(99===h&&110===eS(S,3)?100:h){case 100:case 108:case 109:case 115:eQ(e,x,x,n&&ek(e0(e,x,x,0,0,i,s,y,i,_=[],f,w),w),i,w,f,s,n?_:w);break;default:eQ(S,x,x,x,[""],w,0,s,w)}}u=c=d=0,m=v=1,y=S="",f=a;break;case 58:f=1+eC(S),d=p;default:if(m<1){if(123==b)--m;else if(125==b&&0==m++&&125==eL())continue}switch(S+=ey(b),b*m){case 38:v=c>0?1:(S+="\f",-1);break;case 44:s[u++]=(eC(S)-1)*v,v=1;break;case 64:45===eD()&&(S+=eW(eF())),h=eD(),c=f=eC(y=S+=eK(ez())),b++;break;case 45:45===p&&2==eC(S)&&(m=0)}}return o}function e0(e,t,r,n,i,o,a,s,l,u,c,f){for(var h=i-1,d=0===i?o:[""],p=eA(d),m=0,g=0,v=0;m<n;++m)for(var b=0,y=eE(e,h+1,h=eb(g=a[m])),_=e;b<p;++b)(_=e_(g>0?d[b]+" "+y:ew(y,/&\f/g,d[b])))&&(l[v++]=_);return ej(e,t,r,0===i?ed:s,l,u,c,f)}function e1(e,t,r,n){return ej(e,t,r,eh,ey(eB()),eE(e,2,-2),0,n)}function e2(e,t,r,n,i){return ej(e,t,r,ep,eE(e,0,n),eE(e,n+1,-1),n,i)}var e3="data-ant-cssinjs-cache-path",e5="_FILE_STYLE__",e4=!0;function e6(){if(!n&&(n={},(0,S.Z)())){var e,t=document.createElement("div");t.className=e3,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var r=getComputedStyle(t).content||"";(r=r.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=e.split(":"),r=(0,o.Z)(t,2),i=r[0],a=r[1];n[i]=a});var i=document.querySelector("style[".concat(e3,"]"));i&&(e4=!1,null==(e=i.parentNode)||e.removeChild(i)),document.body.removeChild(t)}}function e8(e){return e6(),!!n[e]}function e9(e){var t=n[e],r=null;if(t&&(0,S.Z)())if(e4)r=e5;else{var i=document.querySelector("style[".concat(b,'="').concat(n[e],'"]'));i?r=i.innerHTML:delete n[e]}return[r,t]}var e7="_skip_check_",te="_multi_value_";function tt(e){return eO(eJ(e),eI).replace(/\{%%%\:[^;];}/g,";")}function tr(e){return"object"===(0,x.Z)(e)&&e&&(e7 in e||te in e)}function tn(e,t,r){if(!t)return e;var n=".".concat(t),i="low"===r?":where(".concat(n,")"):n;return e.split(",").map(function(e){var t,r=e.trim().split(/\s+/),n=r[0]||"",o=(null==(t=n.match(/^\w+/))?void 0:t[0])||"";return[n="".concat(o).concat(i).concat(n.slice(o.length))].concat((0,a.Z)(r.slice(1))).join(" ")}).join(",")}var ti=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},i=n.root,l=n.injectHash,u=n.parentSelectors,c=r.hashId,f=r.layer,h=(r.path,r.hashPriority),d=r.transformers,p=void 0===d?[]:d,m=(r.linters,""),g={};function v(t){var n=t.getName(c);if(!g[n]){var i=e(t.style,r,{root:!1,parentSelectors:u}),a=(0,o.Z)(i,1)[0];g[n]="@keyframes ".concat(t.getName(c)).concat(a)}}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach(function(e){Array.isArray(e)?b(e,t):e&&t.push(e)}),t}return b(Array.isArray(t)?t:[t]).forEach(function(t){var n="string"!=typeof t||i?t:{};if("string"==typeof n)m+="".concat(n,"\n");else if(n._keyframe)v(n);else{var f=p.reduce(function(e,t){var r;return(null==t||null==(r=t.visit)?void 0:r.call(t,e))||e},n);Object.keys(f).forEach(function(t){var n=f[t];if("object"!==(0,x.Z)(n)||!n||"animationName"===t&&n._keyframe||tr(n)){function d(e,t){var r=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),n=t;ef[e]||"number"!=typeof n||0===n||(n="".concat(n,"px")),"animationName"===e&&null!=t&&t._keyframe&&(v(t),n=t.getName(c)),m+="".concat(r,":").concat(n,";")}var p,b=null!=(p=null==n?void 0:n.value)?p:n;"object"===(0,x.Z)(n)&&null!=n&&n[te]&&Array.isArray(b)?b.forEach(function(e){d(t,e)}):d(t,b)}else{var y=!1,_=t.trim(),w=!1;(i||l)&&c?_.startsWith("@")?y=!0:_="&"===_?tn("",c,h):tn(t,c,h):i&&!c&&("&"===_||""===_)&&(_="",w=!0);var S=e(n,r,{root:w,injectHash:y,parentSelectors:[].concat((0,a.Z)(u),[_])}),E=(0,o.Z)(S,2),C=E[0],A=E[1];g=(0,s.Z)((0,s.Z)({},g),A),m+="".concat(_).concat(C)}})}}),i?f&&(m="@layer ".concat(f.name," {").concat(m,"}"),f.dependencies&&(g["@layer ".concat(f.name)]=f.dependencies.map(function(e){return"@layer ".concat(e,", ").concat(f.name,";")}).join("\n"))):m="{".concat(m,"}"),[m,g]};function to(e,t){return l("".concat(e.join("%")).concat(t))}function ta(){return null}var ts="style";function tl(e,t){var r=e.token,n=e.path,l=e.hashId,f=e.layer,h=e.nonce,d=e.clientOnly,p=e.order,m=void 0===p?0:p,g=c.useContext(w),_=g.autoClear,x=(g.mock,g.defaultCache),S=g.hashPriority,E=g.container,C=g.ssrInline,A=g.transformers,k=g.linters,O=g.cache,I=g.layer,T=r._tokenKey,P=[T];I&&P.push("layer"),P.push.apply(P,(0,a.Z)(n));var R=B,M=J(ts,P,function(){var e=P.join("|");if(e8(e)){var r=e9(e),i=(0,o.Z)(r,2),a=i[0],s=i[1];if(a)return[a,T,s,{},d,m]}var u=ti(t(),{hashId:l,hashPriority:S,layer:I?f:void 0,path:n.join("-"),transformers:A,linters:k}),c=(0,o.Z)(u,2),h=c[0],p=c[1],g=tt(h),v=to(P,g);return[g,T,v,p,d,m]},function(e,t){var r=(0,o.Z)(e,3)[2];(t||_)&&B&&(0,u.jL)(r,{mark:b})},function(e){var t=(0,o.Z)(e,4),r=t[0],n=(t[1],t[2]),i=t[3];if(R&&r!==e5){var a={mark:b,prepend:!I&&"queue",attachTo:E,priority:m},l="function"==typeof h?h():h;l&&(a.csp={nonce:l});var c=[],f=[];Object.keys(i).forEach(function(e){e.startsWith("@layer")?c.push(e):f.push(e)}),c.forEach(function(e){(0,u.hq)(tt(i[e]),"_layer-".concat(e),(0,s.Z)((0,s.Z)({},a),{},{prepend:!0}))});var d=(0,u.hq)(r,n,a);d[y]=O.instanceId,d.setAttribute(v,T),f.forEach(function(e){(0,u.hq)(tt(i[e]),"_effect-".concat(e),a)})}}),$=(0,o.Z)(M,3),N=$[0],j=$[1],L=$[2];return function(e){var t;return t=C&&!R&&x?c.createElement("style",(0,ec.Z)({},(0,i.Z)((0,i.Z)({},v,j),b,L),{dangerouslySetInnerHTML:{__html:N}})):c.createElement(ta,null),c.createElement(c.Fragment,null,t,e)}}var tu=function(e,t,r){var n=(0,o.Z)(e,6),i=n[0],a=n[1],s=n[2],l=n[3],u=n[4],c=n[5],f=(r||{}).plain;if(u)return null;var h=i,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return h=F(i,a,s,d,f),l&&Object.keys(l).forEach(function(e){if(!t[e]){t[e]=!0;var r=F(tt(l[e]),a,"_effect-".concat(e),d,f);e.startsWith("@layer")?h=r+h:h+=r}}),[c,s,h]},tc="cssVar",tf=function(e,t,r){var n=(0,o.Z)(e,4),i=n[1],a=n[2],s=n[3],l=(r||{}).plain;if(!i)return null;var u=-999,c=F(i,s,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},l);return[u,a,c]};let th=function(e,t){var r=e.key,n=e.prefix,i=e.unitless,s=e.ignore,l=e.token,f=e.scope,h=void 0===f?"":f,d=(0,c.useContext)(w),p=d.cache.instanceId,m=d.container,g=l._tokenKey,_=[].concat((0,a.Z)(e.path),[r,h,g]);return J(tc,_,function(){var e=U(t(),r,{prefix:n,unitless:i,ignore:s,scope:h}),a=(0,o.Z)(e,2),l=a[0],u=a[1],c=to(_,u);return[l,u,c,r]},function(e){var t=(0,o.Z)(e,3)[2];B&&(0,u.jL)(t,{mark:b})},function(e){var t=(0,o.Z)(e,3),n=t[1],i=t[2];if(n){var a=(0,u.hq)(n,i,{mark:b,prepend:"queue",attachTo:m,priority:-999});a[y]=p,a.setAttribute(v,r)}})};(0,i.Z)((0,i.Z)((0,i.Z)({},ts,tu),es,eu),tc,tf);let td=function(){function e(t,r){(0,h.Z)(this,e),(0,i.Z)(this,"name",void 0),(0,i.Z)(this,"style",void 0),(0,i.Z)(this,"_keyframe",!0),this.name=t,this.style=r}return(0,d.Z)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function tp(e){return e.notSplit=!0,e}tp(["borderTop","borderBottom"]),tp(["borderTop"]),tp(["borderBottom"]),tp(["borderLeft","borderRight"]),tp(["borderLeft"]),tp(["borderRight"])},14532:function(e,t,r){"use strict";r.d(t,{Z:()=>j});var n=r(25833),i=r(57987),o=r(50793),a=r(52755),s=r(44194),l=r(41229),u=r.n(l),c=r(25537),f=r(22655),h=r(19741),d=r(52655),p=r(96345),m=r(5940),g=r(28740);function v(e){return e.replace(/-(.)/g,function(e,t){return t.toUpperCase()})}function b(e,t){(0,g.ZP)(e,"[@ant-design/icons] ".concat(t))}function y(e){return"object"===(0,d.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,d.Z)(e.icon)||"function"==typeof e.icon)}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];return"class"===r?(t.className=n,delete t.class):(delete t[r],t[v(r)]=n),t},{})}function w(e,t,r){return r?s.createElement(e.tag,(0,h.Z)((0,h.Z)({key:t},_(e.attrs)),r),(e.children||[]).map(function(r,n){return w(r,"".concat(t,"-").concat(e.tag,"-").concat(n))})):s.createElement(e.tag,(0,h.Z)({key:t},_(e.attrs)),(e.children||[]).map(function(r,n){return w(r,"".concat(t,"-").concat(e.tag,"-").concat(n))}))}function x(e){return(0,c.R_)(e)[0]}function S(e){return e?Array.isArray(e)?e:[e]:[]}var E="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",C=function(e){var t=(0,s.useContext)(f.Z),r=t.csp,n=t.prefixCls,i=E;n&&(i=i.replace(/anticon/g,n)),(0,s.useEffect)(function(){var t=e.current,n=(0,m.A)(t);(0,p.hq)(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:n})},[])},A=["icon","className","onClick","style","primaryColor","secondaryColor"],k={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function O(e){var t=e.primaryColor,r=e.secondaryColor;k.primaryColor=t,k.secondaryColor=r||x(t),k.calculated=!!r}function I(){return(0,h.Z)({},k)}var T=function(e){var t=e.icon,r=e.className,n=e.onClick,i=e.style,o=e.primaryColor,l=e.secondaryColor,u=(0,a.Z)(e,A),c=s.useRef(),f=k;if(o&&(f={primaryColor:o,secondaryColor:l||x(o)}),C(c),b(y(t),"icon should be icon definiton, but got ".concat(t)),!y(t))return null;var d=t;return d&&"function"==typeof d.icon&&(d=(0,h.Z)((0,h.Z)({},d),{},{icon:d.icon(f.primaryColor,f.secondaryColor)})),w(d.icon,"svg-".concat(d.name),(0,h.Z)((0,h.Z)({className:r,onClick:n,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:c}))};T.displayName="IconReact",T.getTwoToneColors=I,T.setTwoToneColors=O;let P=T;function R(e){var t=S(e),r=(0,i.Z)(t,2),n=r[0],o=r[1];return P.setTwoToneColors({primaryColor:n,secondaryColor:o})}function M(){var e=P.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var $=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];R(c.iN.primary);var N=s.forwardRef(function(e,t){var r=e.className,l=e.icon,c=e.spin,h=e.rotate,d=e.tabIndex,p=e.onClick,m=e.twoToneColor,g=(0,a.Z)(e,$),v=s.useContext(f.Z),b=v.prefixCls,y=void 0===b?"anticon":b,_=v.rootClassName,w=u()(_,y,(0,o.Z)((0,o.Z)({},"".concat(y,"-").concat(l.name),!!l.name),"".concat(y,"-spin"),!!c||"loading"===l.name),r),x=d;void 0===x&&p&&(x=-1);var E=h?{msTransform:"rotate(".concat(h,"deg)"),transform:"rotate(".concat(h,"deg)")}:void 0,C=S(m),A=(0,i.Z)(C,2),k=A[0],O=A[1];return s.createElement("span",(0,n.Z)({role:"img","aria-label":l.name},g,{ref:t,tabIndex:x,onClick:p,className:w}),s.createElement(P,{icon:l,primaryColor:k,secondaryColor:O,style:E}))});N.displayName="AntdIcon",N.getTwoToneColor=M,N.setTwoToneColor=R;let j=N},22655:function(e,t,r){"use strict";r.d(t,{Z:()=>n});let n=(0,r(44194).createContext)({})},9004:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"border",theme:"outlined"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},11322:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},4007:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},94249:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={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"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},55655:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={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"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},32110:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},13098:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},50408:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},58111:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},73654:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},94878:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},24452:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},7379:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},16383:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={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"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},43876:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"mobile",theme:"outlined"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},96033:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},67363:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},35725:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},42968:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},93096:function(e,t,r){"use strict";r.d(t,{y:()=>_});var n,i=r(90534);r(73656);let o=(0,i.YR)("identity");function a(e){return`SUCCESS. Scopes: ${Array.isArray(e)?e.join(", "):e}.`}function s(e,t){let r="ERROR.";return(null==e?void 0:e.length)&&(r+=` Scopes: ${Array.isArray(e)?e.join(", "):e}.`),`${r} Error message: ${"string"==typeof t?t:t.message}.`}function l(e,t,r=o){let n=t?`${t.fullTitle} ${e}`:e;function i(e){r.info(`${n} =>`,e)}function a(e){r.warning(`${n} =>`,e)}function s(e){r.verbose(`${n} =>`,e)}function u(e){r.error(`${n} =>`,e)}return{title:e,fullTitle:n,info:i,warning:a,verbose:s,error:u}}function u(e,t=o){let r=l(e,void 0,t);return Object.assign(Object.assign({},r),{parent:t,getToken:l("=> getToken()",r,t)})}let c="CredentialUnavailableError";class f extends Error{constructor(e,t){super(e,t),this.name=c}}let h="AggregateAuthenticationError";class d extends Error{constructor(e,t){super(`${t}
1
+ /*! For license information please see 763.40f17c2d.js.LICENSE.txt */
2
+ (self.webpackChunkandroid_playground=self.webpackChunkandroid_playground||[]).push([["763"],{25537:function(e,t,r){"use strict";r.d(t,{iN:()=>I,R_:()=>y,EV:()=>E,Ti:()=>$,ez:()=>_});var n=r(20117),i=r(76981),o=2,a=.16,s=.05,l=.05,u=.15,c=5,f=4,h=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function d(e){var t=e.r,r=e.g,i=e.b,o=(0,n.py)(t,r,i);return{h:360*o.h,s:o.s,v:o.v}}function p(e){var t=e.r,r=e.g,i=e.b;return"#".concat((0,n.vq)(t,r,i,!1))}function m(e,t,r){var n=r/100;return{r:(t.r-e.r)*n+e.r,g:(t.g-e.g)*n+e.g,b:(t.b-e.b)*n+e.b}}function g(e,t,r){var n;return(n=Math.round(e.h)>=60&&240>=Math.round(e.h)?r?Math.round(e.h)-o*t:Math.round(e.h)+o*t:r?Math.round(e.h)+o*t:Math.round(e.h)-o*t)<0?n+=360:n>=360&&(n-=360),n}function v(e,t,r){var n;return 0===e.h&&0===e.s?e.s:((n=r?e.s-a*t:t===f?e.s+a:e.s+s*t)>1&&(n=1),r&&t===c&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2)))}function b(e,t,r){var n;return(n=r?e.v+l*t:e.v-u*t)>1&&(n=1),Number(n.toFixed(2))}function y(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],n=(0,i.uA)(e),o=c;o>0;o-=1){var a=d(n),s=p((0,i.uA)({h:g(a,o,!0),s:v(a,o,!0),v:b(a,o,!0)}));r.push(s)}r.push(p(n));for(var l=1;l<=f;l+=1){var u=d(n),y=p((0,i.uA)({h:g(u,l),s:v(u,l),v:b(u,l)}));r.push(y)}return"dark"===t.theme?h.map(function(e){var n=e.index,o=e.opacity;return p(m((0,i.uA)(t.backgroundColor||"#141414"),(0,i.uA)(r[n]),100*o))}):r}var _={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"},w=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];w.primary=w[5];var x=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];x.primary=x[5];var S=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];S.primary=S[5];var E=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];E.primary=E[5];var C=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];C.primary=C[5];var A=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];A.primary=A[5];var k=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];k.primary=k[5];var O=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];O.primary=O[5];var I=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];I.primary=I[5];var T=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];T.primary=T[5];var P=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];P.primary=P[5];var R=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];R.primary=R[5];var M=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];M.primary=M[5];var $={red:w,volcano:x,orange:S,gold:E,yellow:C,lime:A,green:k,cyan:O,blue:I,geekblue:T,purple:P,magenta:R,grey:M},N=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];N.primary=N[5];var j=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];j.primary=j[5];var B=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];B.primary=B[5];var L=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];L.primary=L[5];var F=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];F.primary=F[5];var D=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];D.primary=D[5];var z=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];z.primary=z[5];var U=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];U.primary=U[5];var Z=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];Z.primary=Z[5];var H=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];H.primary=H[5];var G=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];G.primary=G[5];var W=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];W.primary=W[5];var V=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];V.primary=V[5]},1781:function(e,t,r){"use strict";r.d(t,{IX:()=>C,rb:()=>N});var n=r(52655),i=r(57987),o=r(50793),a=r(19741),s=r(44194),l=r(99607),u=r(71123),c=r(83739),f=r(61764),h=r(14425),d=r(20652);let p=(0,c.Z)(function e(){(0,u.Z)(this,e)});var m="CALC_UNIT",g=RegExp(m,"g");function v(e){return"number"==typeof e?"".concat(e).concat(m):e}var b=function(e){(0,h.Z)(r,e);var t=(0,d.Z)(r);function r(e,i){(0,u.Z)(this,r),a=t.call(this),(0,o.Z)((0,f.Z)(a),"result",""),(0,o.Z)((0,f.Z)(a),"unitlessCssVar",void 0),(0,o.Z)((0,f.Z)(a),"lowPriority",void 0);var a,s=(0,n.Z)(e);return a.unitlessCssVar=i,e instanceof r?a.result="(".concat(e.result,")"):"number"===s?a.result=v(e):"string"===s&&(a.result=e),a}return(0,c.Z)(r,[{key:"add",value:function(e){return e instanceof r?this.result="".concat(this.result," + ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," + ").concat(v(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof r?this.result="".concat(this.result," - ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," - ").concat(v(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof r?this.result="".concat(this.result," * ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof r?this.result="".concat(this.result," / ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,r=(e||{}).unit,n=!0;return("boolean"==typeof r?n=r:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(n=!1),this.result=this.result.replace(g,n?"px":""),void 0!==this.lowPriority)?"calc(".concat(this.result,")"):this.result}}]),r}(p);let y=function(e){(0,h.Z)(r,e);var t=(0,d.Z)(r);function r(e){var n;return(0,u.Z)(this,r),n=t.call(this),(0,o.Z)((0,f.Z)(n),"result",0),e instanceof r?n.result=e.result:"number"==typeof e&&(n.result=e),n}return(0,c.Z)(r,[{key:"add",value:function(e){return e instanceof r?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof r?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof r?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof r?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),r}(p),_=function(e,t){var r="css"===e?b:y;return function(e){return new r(e,t)}},w=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};r(69580);let x=function(e,t,r,n){var o=(0,a.Z)({},t[e]);null!=n&&n.deprecatedTokens&&n.deprecatedTokens.forEach(function(e){var t,r=(0,i.Z)(e,2),n=r[0],a=r[1];(null!=o&&o[n]||null!=o&&o[a])&&(null!=(t=o[a])||(o[a]=null==o?void 0:o[n]))});var s=(0,a.Z)((0,a.Z)({},r),o);return Object.keys(s).forEach(function(e){s[e]===t[e]&&delete s[e]}),s};var S="undefined"!=typeof CSSINJS_STATISTIC,E=!0;function C(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!S)return Object.assign.apply(Object,[{}].concat(t));E=!1;var i={};return t.forEach(function(e){if("object"===(0,n.Z)(e)){var t=Object.keys(e);t.forEach(function(t){Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}}),E=!0,i}var A={};function k(){}let O=function(e){var t,r=e,n=k;return S&&"undefined"!=typeof Proxy&&(t=new Set,r=new Proxy(e,{get:function(e,r){if(E){var n;null==(n=t)||n.add(r)}return e[r]}}),n=function(e,r){var n;A[e]={global:Array.from(t),component:(0,a.Z)((0,a.Z)({},null==(n=A[e])?void 0:n.component),r)}}),{token:r,keys:t,flush:n}},I=function(e,t,r){if("function"==typeof r){var n;return r(C(t,null!=(n=t[e])?n:{}))}return null!=r?r:{}},T=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return"max(".concat(t.map(function(e){return(0,l.bf)(e)}).join(","),")")},min:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return"min(".concat(t.map(function(e){return(0,l.bf)(e)}).join(","),")")}}};var P=6e5,R=new(function(){function e(){(0,u.Z)(this,e),(0,o.Z)(this,"map",new Map),(0,o.Z)(this,"objectIDMap",new WeakMap),(0,o.Z)(this,"nextID",0),(0,o.Z)(this,"lastAccessBeat",new Map),(0,o.Z)(this,"accessBeat",0)}return(0,c.Z)(e,[{key:"set",value:function(e,t){this.clear();var r=this.getCompositeKey(e);this.map.set(r,t),this.lastAccessBeat.set(r,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),r=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,r}},{key:"getCompositeKey",value:function(e){var t=this;return e.map(function(e){return e&&"object"===(0,n.Z)(e)?"obj_".concat(t.getObjectID(e)):"".concat((0,n.Z)(e),"_").concat(e)}).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach(function(r,n){t-r>P&&(e.map.delete(n),e.lastAccessBeat.delete(n))}),this.accessBeat=0}}}]),e}());let M=function(e,t){return s.useMemo(function(){var r=R.get(t);if(r)return r;var n=e();return R.set(t,n),n},t)},$=function(){return{}},N=function(e){var t=e.useCSP,r=void 0===t?$:t,u=e.useToken,c=e.usePrefix,f=e.getResetStyles,h=e.getCommonStyle,d=e.getCompUnitless;function p(e,t,r){var n=r.unitless,i=r.injectStyle,o=void 0===i||i,a=r.prefixToken,c=r.ignore,f=function(i){var o=i.rootCls,s=i.cssVar,f=void 0===s?{}:s,h=u().realToken;return(0,l.CI)({path:[e],prefix:f.prefix,key:f.key,unitless:n,ignore:c,token:h,scope:o},function(){var n=I(e,h,t),i=x(e,h,n,{deprecatedTokens:null==r?void 0:r.deprecatedTokens});return Object.keys(n).forEach(function(e){i[a(e)]=i[e],delete i[e]}),i}),null};return function(t){var r=u().cssVar;return[function(n){return o&&r?s.createElement(s.Fragment,null,s.createElement(f,{rootCls:t,cssVar:r,component:e}),n):n},null==r?void 0:r.key]}}function m(t,o,s){var d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},p=Array.isArray(t)?t:[t,t],m=(0,i.Z)(p,1)[0],g=p.join("-"),v=e.layer||{name:"antd"};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,i=u(),p=i.theme,b=i.realToken,y=i.hashId,S=i.token,E=i.cssVar,A=c(),k=A.rootPrefixCls,P=A.iconPrefixCls,R=r(),$=E?"css":"js",N=M(function(){var e=new Set;return E&&Object.keys(d.unitless||{}).forEach(function(t){e.add((0,l.ks)(t,E.prefix)),e.add((0,l.ks)(t,w(m,E.prefix)))}),_($,e)},[$,m,null==E?void 0:E.prefix]),j=T($),B=j.max,L=j.min,F={theme:p,token:S,hashId:y,nonce:function(){return R.nonce},clientOnly:d.clientOnly,layer:v,order:d.order||-999};return(0,l.xy)((0,a.Z)((0,a.Z)({},F),{},{clientOnly:!1,path:["Shared",k]}),function(){return"function"==typeof f?f(S):[]}),[(0,l.xy)((0,a.Z)((0,a.Z)({},F),{},{path:[g,e,P]}),function(){if(!1===d.injectStyle)return[];var r=O(S),i=r.token,a=r.flush,u=I(m,b,s),c=".".concat(e),f=x(m,b,u,{deprecatedTokens:d.deprecatedTokens});E&&u&&"object"===(0,n.Z)(u)&&Object.keys(u).forEach(function(e){u[e]="var(".concat((0,l.ks)(e,w(m,E.prefix)),")")});var p=C(i,{componentCls:c,prefixCls:e,iconCls:".".concat(P),antCls:".".concat(k),calc:N,max:B,min:L},E?u:f),g=o(p,{hashId:y,prefixCls:e,rootPrefixCls:k,iconPrefixCls:P});a(m,f);var v="function"==typeof h?h(p,e,t,d.resetFont):null;return[!1===d.resetStyle?null:v,g]}),y]}}return{genStyleHooks:function(e,t,r,n){var s=Array.isArray(e)?e[0]:e;function l(e){return"".concat(String(s)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var u=(null==n?void 0:n.unitless)||{},c="function"==typeof d?d(e):{},f=(0,a.Z)((0,a.Z)({},c),{},(0,o.Z)({},l("zIndexPopup"),!0));Object.keys(u).forEach(function(e){f[l(e)]=u[e]});var h=(0,a.Z)((0,a.Z)({},n),{},{unitless:f,prefixToken:l}),g=m(e,t,r,h),v=p(s,r,h);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=g(e,t),n=(0,i.Z)(r,2)[1],o=v(t),a=(0,i.Z)(o,2);return[a[0],n,a[1]]}},genSubStyleComponent:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=m(e,t,r,(0,a.Z)({resetStyle:!1,order:-998},n));return function(e){var t=e.prefixCls,r=e.rootCls,n=void 0===r?t:r;return i(t,n),null}},genComponentStyleHook:m}}},99607:function(e,t,r){"use strict";r.d(t,{ks:()=>D,fp:()=>el,jG:()=>T,xy:()=>tl,CI:()=>th,E4:()=>td,bf:()=>L});var n,i=r(50793),o=r(57987),a=r(81632),s=r(19741);let l=function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&r)*0x5bd1e995+((r>>>16)*59797<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)};var u=r(96345),c=r(44194),f=r.t(c,2);r(20638),r(43942);var h=r(71123),d=r(83739),p="%";function m(e){return e.join(p)}let g=function(){function e(t){(0,h.Z)(this,e),(0,i.Z)(this,"instanceId",void 0),(0,i.Z)(this,"cache",new Map),this.instanceId=t}return(0,d.Z)(e,[{key:"get",value:function(e){return this.opGet(m(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(m(e),t)}},{key:"opUpdate",value:function(e,t){var r=t(this.cache.get(e));null===r?this.cache.delete(e):this.cache.set(e,r)}}]),e}();var v="data-token-hash",b="data-css-hash",y="__cssinjs_instance__";function _(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(b,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(t){t[y]=t[y]||e,t[y]===e&&document.head.insertBefore(t,r)});var n={};Array.from(document.querySelectorAll("style[".concat(b,"]"))).forEach(function(t){var r,i=t.getAttribute(b);n[i]?t[y]===e&&(null==(r=t.parentNode)||r.removeChild(t)):n[i]=!0})}return new g(e)}let w=c.createContext({hashPriority:"low",cache:_(),defaultCache:!0});var x=r(52655),S=r(33229);function E(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 C=function(){function e(){(0,h.Z)(this,e),(0,i.Z)(this,"cache",void 0),(0,i.Z)(this,"keys",void 0),(0,i.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,d.Z)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i={map:this.cache};return e.forEach(function(e){if(i){var t;i=null==(t=i)||null==(t=t.map)?void 0:t.get(e)}else i=void 0}),null!=(t=i)&&t.value&&n&&(i.value[1]=this.cacheCallTimes++),null==(r=i)?void 0:r.value}},{key:"get",value:function(e){var t;return null==(t=this.internalGet(e,!0))?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,r){var n=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(e,t){var r=(0,o.Z)(e,2)[1];return n.internalGet(t)[1]<r?[t,n.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]),a=(0,o.Z)(i,1)[0];this.delete(a)}this.keys.push(t)}var s=this.cache;t.forEach(function(e,i){if(i===t.length-1)s.set(e,{value:[r,n.cacheCallTimes++]});else{var o=s.get(e);o?o.map||(o.map=new Map):s.set(e,{map:new Map}),s=s.get(e).map}})}},{key:"deleteByPath",value:function(e,t){var r,n=e.get(t[0]);if(1===t.length)return n.map?e.set(t[0],{map:n.map}):e.delete(t[0]),null==(r=n.value)?void 0:r[0];var i=this.deleteByPath(n.map,t.slice(1));return n.map&&0!==n.map.size||n.value||e.delete(t[0]),i}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter(function(t){return!E(t,e)}),this.deleteByPath(this.cache,e)}}]),e}();(0,i.Z)(C,"MAX_CACHE_SIZE",20),(0,i.Z)(C,"MAX_CACHE_OFFSET",5);var A=r(28740),k=0,O=function(){function e(t){(0,h.Z)(this,e),(0,i.Z)(this,"derivatives",void 0),(0,i.Z)(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=k,0===t.length&&(0,A.Kp)(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),k+=1}return(0,d.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,r){return r(e,t)},void 0)}}]),e}(),I=new C;function T(e){var t=Array.isArray(e)?e:[e];return I.has(t)||I.set(t,new O(t)),I.get(t)}var P=new WeakMap,R={};function M(e,t){for(var r=P,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(R)||r.set(R,e()),r.get(R)}var $=new WeakMap;function N(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=$.get(e)||"";return r||(Object.keys(e).forEach(function(n){var i=e[n];r+=n,i instanceof O?r+=i.id:i&&"object"===(0,x.Z)(i)?r+=N(i,t):r+=i}),t&&(r=l(r)),$.set(e,r)),r}function j(e,t){return l("".concat(t,"_").concat(N(e,!0)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var B=(0,S.Z)();function L(e){return"number"==typeof e?"".concat(e,"px"):e}function F(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(o)return e;var a=(0,s.Z)((0,s.Z)({},n),{},(0,i.Z)((0,i.Z)({},v,t),b,r)),l=Object.keys(a).map(function(e){var t=a[e];return t?"".concat(e,'="').concat(t,'"'):null}).filter(function(e){return e}).join(" ");return"<style ".concat(l,">").concat(e,"</style>")}var D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).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()},z=function(e,t,r){return Object.keys(e).length?".".concat(t).concat(null!=r&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(e).map(function(e){var t=(0,o.Z)(e,2),r=t[0],n=t[1];return"".concat(r,":").concat(n,";")}).join(""),"}"):""},U=function(e,t,r){var n={},i={};return Object.entries(e).forEach(function(e){var t=(0,o.Z)(e,2),a=t[0],s=t[1];if(null!=r&&null!=(l=r.preserve)&&l[a])i[a]=s;else if(("string"==typeof s||"number"==typeof s)&&!(null!=r&&null!=(u=r.ignore)&&u[a])){var l,u,c,f=D(a,null==r?void 0:r.prefix);n[f]="number"!=typeof s||null!=r&&null!=(c=r.unitless)&&c[a]?String(s):"".concat(s,"px"),i[a]="var(".concat(f,")")}}),[i,z(n,t,{scope:null==r?void 0:r.scope})]},Z=r(16713),H=(0,s.Z)({},f).useInsertionEffect,G=function(e,t,r){c.useMemo(e,r),(0,Z.Z)(function(){return t(!0)},r)};let W=H?function(e,t,r){return H(function(){return e(),t()},r)}:G;var V=(0,s.Z)({},f).useInsertionEffect,q=function(e){var t=[],r=!1;function n(e){r||t.push(e)}return c.useEffect(function(){return r=!1,function(){r=!0,t.length&&t.forEach(function(e){return e()})}},e),n},X=function(){return function(e){e()}};let Y=void 0!==V?q:X,K=function(){return!1};function J(e,t,r,n,i){var s=c.useContext(w).cache,l=m([e].concat((0,a.Z)(t))),u=Y([l]);K();var f=function(e){s.opUpdate(l,function(t){var n=t||[void 0,void 0],i=(0,o.Z)(n,2),a=i[0],s=[void 0===a?0:a,i[1]||r()];return e?e(s):s})};c.useMemo(function(){f()},[l]);var h=s.opGet(l)[1];return W(function(){null==i||i(h)},function(e){return f(function(t){var r=(0,o.Z)(t,2),n=r[0],a=r[1];return e&&0===n&&(null==i||i(h)),[n+1,a]}),function(){s.opUpdate(l,function(t){var r=t||[],i=(0,o.Z)(r,2),a=i[0],c=void 0===a?0:a,f=i[1];return 0==c-1?(u(function(){(e||!s.opGet(l))&&(null==n||n(f,!1))}),null):[c-1,f]})}},[l]),h}var Q={},ee="css",et=new Map;function er(e){et.set(e,(et.get(e)||0)+1)}function en(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(v,'="').concat(e,'"]')).forEach(function(e){if(e[y]===t){var r;null==(r=e.parentNode)||r.removeChild(e)}})}var ei=0;function eo(e,t){et.set(e,(et.get(e)||0)-1);var r=Array.from(et.keys()),n=r.filter(function(e){return 0>=(et.get(e)||0)});r.length-n.length>ei&&n.forEach(function(e){en(e,t),et.delete(e)})}var ea=function(e,t,r,n){var i=r.getDerivativeToken(e),o=(0,s.Z)((0,s.Z)({},i),t);return n&&(o=n(o)),o},es="token";function el(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=(0,c.useContext)(w),i=n.cache.instanceId,f=n.container,h=r.salt,d=void 0===h?"":h,p=r.override,m=void 0===p?Q:p,g=r.formatToken,_=r.getComputedToken,x=r.cssVar,S=M(function(){return Object.assign.apply(Object,[{}].concat((0,a.Z)(t)))},t),E=N(S),C=N(m),A=x?N(x):"";return J(es,[d,e.id,E,C,A],function(){var t,r=_?_(S,m,e):ea(S,m,e,g),n=(0,s.Z)({},r),i="";if(x){var a=U(r,x.key,{prefix:x.prefix,ignore:x.ignore,unitless:x.unitless,preserve:x.preserve}),u=(0,o.Z)(a,2);r=u[0],i=u[1]}var c=j(r,d);r._tokenKey=c,n._tokenKey=j(n,d);var f=null!=(t=null==x?void 0:x.key)?t:c;r._themeKey=f,er(f);var h="".concat(ee,"-").concat(l(c));return r._hashId=h,[r,h,n,i,(null==x?void 0:x.key)||""]},function(e){eo(e[0]._themeKey,i)},function(e){var t=(0,o.Z)(e,4),r=t[0],n=t[3];if(x&&n){var a=(0,u.hq)(n,l("css-variables-".concat(r._themeKey)),{mark:b,prepend:"queue",attachTo:f,priority:-999});a[y]=i,a.setAttribute(v,r._themeKey)}})}var eu=function(e,t,r){var n=(0,o.Z)(e,5),i=n[2],a=n[3],s=n[4],l=(r||{}).plain;if(!a)return null;var u=i._tokenKey,c=-999,f=F(a,s,u,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)},l);return[c,u,f]},ec=r(25833);let ef={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};var eh="comm",ed="rule",ep="decl",em="@import",eg="@keyframes",ev="@layer",eb=Math.abs,ey=String.fromCharCode;function e_(e){return e.trim()}function ew(e,t,r){return e.replace(t,r)}function ex(e,t,r){return e.indexOf(t,r)}function eS(e,t){return 0|e.charCodeAt(t)}function eE(e,t,r){return e.slice(t,r)}function eC(e){return e.length}function eA(e){return e.length}function ek(e,t){return t.push(e),e}function eO(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function eI(e,t,r,n){switch(e.type){case ev:if(e.children.length)break;case em:case ep:return e.return=e.return||e.value;case eh:return"";case eg:return e.return=e.value+"{"+eO(e.children,n)+"}";case ed:if(!eC(e.value=e.props.join(",")))return""}return eC(r=eO(e.children,n))?e.return=e.value+"{"+r+"}":""}var eT=1,eP=1,eR=0,eM=0,e$=0,eN="";function ej(e,t,r,n,i,o,a,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:eT,column:eP,length:a,return:"",siblings:s}}function eB(){return e$}function eL(){return e$=eM>0?eS(eN,--eM):0,eP--,10===e$&&(eP=1,eT--),e$}function eF(){return e$=eM<eR?eS(eN,eM++):0,eP++,10===e$&&(eP=1,eT++),e$}function eD(){return eS(eN,eM)}function ez(){return eM}function eU(e,t){return eE(eN,e,t)}function eZ(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 eH(e){return eT=eP=1,eR=eC(eN=e),eM=0,[]}function eG(e){return eN="",e}function eW(e){return e_(eU(eM-1,eX(91===e?e+2:40===e?e+1:e)))}function eV(e){for(;e$=eD();)if(e$<33)eF();else break;return eZ(e)>2||eZ(e$)>3?"":" "}function eq(e,t){for(;--t&&eF()&&!(e$<48)&&!(e$>102)&&(!(e$>57)||!(e$<65))&&(!(e$>70)||!(e$<97)););return eU(e,ez()+(t<6&&32==eD()&&32==eF()))}function eX(e){for(;eF();)switch(e$){case e:return eM;case 34:case 39:34!==e&&39!==e&&eX(e$);break;case 40:41===e&&eX(e);break;case 92:eF()}return eM}function eY(e,t){for(;eF();)if(e+e$===57)break;else if(e+e$===84&&47===eD())break;return"/*"+eU(t,eM-1)+"*"+ey(47===e?e:eF())}function eK(e){for(;!eZ(eD());)eF();return eU(e,eM)}function eJ(e){return eG(eQ("",null,null,null,[""],e=eH(e),0,[0],e))}function eQ(e,t,r,n,i,o,a,s,l){for(var u=0,c=0,f=a,h=0,d=0,p=0,m=1,g=1,v=1,b=0,y="",_=i,w=o,x=n,S=y;g;)switch(p=b,b=eF()){case 40:if(108!=p&&58==eS(S,f-1)){-1!=ex(S+=ew(eW(b),"&","&\f"),"&\f",eb(u?s[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:S+=eW(b);break;case 9:case 10:case 13:case 32:S+=eV(p);break;case 92:S+=eq(ez()-1,7);continue;case 47:switch(eD()){case 42:case 47:ek(e1(eY(eF(),ez()),t,r,l),l),(5==eZ(p||1)||5==eZ(eD()||1))&&eC(S)&&" "!==eE(S,-1,void 0)&&(S+=" ");break;default:S+="/"}break;case 123*m:s[u++]=eC(S)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(S=ew(S,/\f/g,"")),d>0&&(eC(S)-f||0===m&&47===p)&&ek(d>32?e2(S+";",n,r,f-1,l):e2(ew(S," ","")+";",n,r,f-2,l),l);break;case 59:S+=";";default:if(ek(x=e0(S,t,r,u,c,i,s,y,_=[],w=[],f,o),o),123===b)if(0===c)eQ(S,t,x,x,_,o,f,s,w);else switch(99===h&&110===eS(S,3)?100:h){case 100:case 108:case 109:case 115:eQ(e,x,x,n&&ek(e0(e,x,x,0,0,i,s,y,i,_=[],f,w),w),i,w,f,s,n?_:w);break;default:eQ(S,x,x,x,[""],w,0,s,w)}}u=c=d=0,m=v=1,y=S="",f=a;break;case 58:f=1+eC(S),d=p;default:if(m<1){if(123==b)--m;else if(125==b&&0==m++&&125==eL())continue}switch(S+=ey(b),b*m){case 38:v=c>0?1:(S+="\f",-1);break;case 44:s[u++]=(eC(S)-1)*v,v=1;break;case 64:45===eD()&&(S+=eW(eF())),h=eD(),c=f=eC(y=S+=eK(ez())),b++;break;case 45:45===p&&2==eC(S)&&(m=0)}}return o}function e0(e,t,r,n,i,o,a,s,l,u,c,f){for(var h=i-1,d=0===i?o:[""],p=eA(d),m=0,g=0,v=0;m<n;++m)for(var b=0,y=eE(e,h+1,h=eb(g=a[m])),_=e;b<p;++b)(_=e_(g>0?d[b]+" "+y:ew(y,/&\f/g,d[b])))&&(l[v++]=_);return ej(e,t,r,0===i?ed:s,l,u,c,f)}function e1(e,t,r,n){return ej(e,t,r,eh,ey(eB()),eE(e,2,-2),0,n)}function e2(e,t,r,n,i){return ej(e,t,r,ep,eE(e,0,n),eE(e,n+1,-1),n,i)}var e3="data-ant-cssinjs-cache-path",e5="_FILE_STYLE__",e4=!0;function e6(){if(!n&&(n={},(0,S.Z)())){var e,t=document.createElement("div");t.className=e3,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var r=getComputedStyle(t).content||"";(r=r.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=e.split(":"),r=(0,o.Z)(t,2),i=r[0],a=r[1];n[i]=a});var i=document.querySelector("style[".concat(e3,"]"));i&&(e4=!1,null==(e=i.parentNode)||e.removeChild(i)),document.body.removeChild(t)}}function e8(e){return e6(),!!n[e]}function e9(e){var t=n[e],r=null;if(t&&(0,S.Z)())if(e4)r=e5;else{var i=document.querySelector("style[".concat(b,'="').concat(n[e],'"]'));i?r=i.innerHTML:delete n[e]}return[r,t]}var e7="_skip_check_",te="_multi_value_";function tt(e){return eO(eJ(e),eI).replace(/\{%%%\:[^;];}/g,";")}function tr(e){return"object"===(0,x.Z)(e)&&e&&(e7 in e||te in e)}function tn(e,t,r){if(!t)return e;var n=".".concat(t),i="low"===r?":where(".concat(n,")"):n;return e.split(",").map(function(e){var t,r=e.trim().split(/\s+/),n=r[0]||"",o=(null==(t=n.match(/^\w+/))?void 0:t[0])||"";return[n="".concat(o).concat(i).concat(n.slice(o.length))].concat((0,a.Z)(r.slice(1))).join(" ")}).join(",")}var ti=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},i=n.root,l=n.injectHash,u=n.parentSelectors,c=r.hashId,f=r.layer,h=(r.path,r.hashPriority),d=r.transformers,p=void 0===d?[]:d,m=(r.linters,""),g={};function v(t){var n=t.getName(c);if(!g[n]){var i=e(t.style,r,{root:!1,parentSelectors:u}),a=(0,o.Z)(i,1)[0];g[n]="@keyframes ".concat(t.getName(c)).concat(a)}}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach(function(e){Array.isArray(e)?b(e,t):e&&t.push(e)}),t}return b(Array.isArray(t)?t:[t]).forEach(function(t){var n="string"!=typeof t||i?t:{};if("string"==typeof n)m+="".concat(n,"\n");else if(n._keyframe)v(n);else{var f=p.reduce(function(e,t){var r;return(null==t||null==(r=t.visit)?void 0:r.call(t,e))||e},n);Object.keys(f).forEach(function(t){var n=f[t];if("object"!==(0,x.Z)(n)||!n||"animationName"===t&&n._keyframe||tr(n)){function d(e,t){var r=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),n=t;ef[e]||"number"!=typeof n||0===n||(n="".concat(n,"px")),"animationName"===e&&null!=t&&t._keyframe&&(v(t),n=t.getName(c)),m+="".concat(r,":").concat(n,";")}var p,b=null!=(p=null==n?void 0:n.value)?p:n;"object"===(0,x.Z)(n)&&null!=n&&n[te]&&Array.isArray(b)?b.forEach(function(e){d(t,e)}):d(t,b)}else{var y=!1,_=t.trim(),w=!1;(i||l)&&c?_.startsWith("@")?y=!0:_="&"===_?tn("",c,h):tn(t,c,h):i&&!c&&("&"===_||""===_)&&(_="",w=!0);var S=e(n,r,{root:w,injectHash:y,parentSelectors:[].concat((0,a.Z)(u),[_])}),E=(0,o.Z)(S,2),C=E[0],A=E[1];g=(0,s.Z)((0,s.Z)({},g),A),m+="".concat(_).concat(C)}})}}),i?f&&(m="@layer ".concat(f.name," {").concat(m,"}"),f.dependencies&&(g["@layer ".concat(f.name)]=f.dependencies.map(function(e){return"@layer ".concat(e,", ").concat(f.name,";")}).join("\n"))):m="{".concat(m,"}"),[m,g]};function to(e,t){return l("".concat(e.join("%")).concat(t))}function ta(){return null}var ts="style";function tl(e,t){var r=e.token,n=e.path,l=e.hashId,f=e.layer,h=e.nonce,d=e.clientOnly,p=e.order,m=void 0===p?0:p,g=c.useContext(w),_=g.autoClear,x=(g.mock,g.defaultCache),S=g.hashPriority,E=g.container,C=g.ssrInline,A=g.transformers,k=g.linters,O=g.cache,I=g.layer,T=r._tokenKey,P=[T];I&&P.push("layer"),P.push.apply(P,(0,a.Z)(n));var R=B,M=J(ts,P,function(){var e=P.join("|");if(e8(e)){var r=e9(e),i=(0,o.Z)(r,2),a=i[0],s=i[1];if(a)return[a,T,s,{},d,m]}var u=ti(t(),{hashId:l,hashPriority:S,layer:I?f:void 0,path:n.join("-"),transformers:A,linters:k}),c=(0,o.Z)(u,2),h=c[0],p=c[1],g=tt(h),v=to(P,g);return[g,T,v,p,d,m]},function(e,t){var r=(0,o.Z)(e,3)[2];(t||_)&&B&&(0,u.jL)(r,{mark:b})},function(e){var t=(0,o.Z)(e,4),r=t[0],n=(t[1],t[2]),i=t[3];if(R&&r!==e5){var a={mark:b,prepend:!I&&"queue",attachTo:E,priority:m},l="function"==typeof h?h():h;l&&(a.csp={nonce:l});var c=[],f=[];Object.keys(i).forEach(function(e){e.startsWith("@layer")?c.push(e):f.push(e)}),c.forEach(function(e){(0,u.hq)(tt(i[e]),"_layer-".concat(e),(0,s.Z)((0,s.Z)({},a),{},{prepend:!0}))});var d=(0,u.hq)(r,n,a);d[y]=O.instanceId,d.setAttribute(v,T),f.forEach(function(e){(0,u.hq)(tt(i[e]),"_effect-".concat(e),a)})}}),$=(0,o.Z)(M,3),N=$[0],j=$[1],L=$[2];return function(e){var t;return t=C&&!R&&x?c.createElement("style",(0,ec.Z)({},(0,i.Z)((0,i.Z)({},v,j),b,L),{dangerouslySetInnerHTML:{__html:N}})):c.createElement(ta,null),c.createElement(c.Fragment,null,t,e)}}var tu=function(e,t,r){var n=(0,o.Z)(e,6),i=n[0],a=n[1],s=n[2],l=n[3],u=n[4],c=n[5],f=(r||{}).plain;if(u)return null;var h=i,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return h=F(i,a,s,d,f),l&&Object.keys(l).forEach(function(e){if(!t[e]){t[e]=!0;var r=F(tt(l[e]),a,"_effect-".concat(e),d,f);e.startsWith("@layer")?h=r+h:h+=r}}),[c,s,h]},tc="cssVar",tf=function(e,t,r){var n=(0,o.Z)(e,4),i=n[1],a=n[2],s=n[3],l=(r||{}).plain;if(!i)return null;var u=-999,c=F(i,s,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},l);return[u,a,c]};let th=function(e,t){var r=e.key,n=e.prefix,i=e.unitless,s=e.ignore,l=e.token,f=e.scope,h=void 0===f?"":f,d=(0,c.useContext)(w),p=d.cache.instanceId,m=d.container,g=l._tokenKey,_=[].concat((0,a.Z)(e.path),[r,h,g]);return J(tc,_,function(){var e=U(t(),r,{prefix:n,unitless:i,ignore:s,scope:h}),a=(0,o.Z)(e,2),l=a[0],u=a[1],c=to(_,u);return[l,u,c,r]},function(e){var t=(0,o.Z)(e,3)[2];B&&(0,u.jL)(t,{mark:b})},function(e){var t=(0,o.Z)(e,3),n=t[1],i=t[2];if(n){var a=(0,u.hq)(n,i,{mark:b,prepend:"queue",attachTo:m,priority:-999});a[y]=p,a.setAttribute(v,r)}})};(0,i.Z)((0,i.Z)((0,i.Z)({},ts,tu),es,eu),tc,tf);let td=function(){function e(t,r){(0,h.Z)(this,e),(0,i.Z)(this,"name",void 0),(0,i.Z)(this,"style",void 0),(0,i.Z)(this,"_keyframe",!0),this.name=t,this.style=r}return(0,d.Z)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function tp(e){return e.notSplit=!0,e}tp(["borderTop","borderBottom"]),tp(["borderTop"]),tp(["borderBottom"]),tp(["borderLeft","borderRight"]),tp(["borderLeft"]),tp(["borderRight"])},14532:function(e,t,r){"use strict";r.d(t,{Z:()=>j});var n=r(25833),i=r(57987),o=r(50793),a=r(52755),s=r(44194),l=r(41229),u=r.n(l),c=r(25537),f=r(22655),h=r(19741),d=r(52655),p=r(96345),m=r(5940),g=r(28740);function v(e){return e.replace(/-(.)/g,function(e,t){return t.toUpperCase()})}function b(e,t){(0,g.ZP)(e,"[@ant-design/icons] ".concat(t))}function y(e){return"object"===(0,d.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,d.Z)(e.icon)||"function"==typeof e.icon)}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];return"class"===r?(t.className=n,delete t.class):(delete t[r],t[v(r)]=n),t},{})}function w(e,t,r){return r?s.createElement(e.tag,(0,h.Z)((0,h.Z)({key:t},_(e.attrs)),r),(e.children||[]).map(function(r,n){return w(r,"".concat(t,"-").concat(e.tag,"-").concat(n))})):s.createElement(e.tag,(0,h.Z)({key:t},_(e.attrs)),(e.children||[]).map(function(r,n){return w(r,"".concat(t,"-").concat(e.tag,"-").concat(n))}))}function x(e){return(0,c.R_)(e)[0]}function S(e){return e?Array.isArray(e)?e:[e]:[]}var E="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",C=function(e){var t=(0,s.useContext)(f.Z),r=t.csp,n=t.prefixCls,i=E;n&&(i=i.replace(/anticon/g,n)),(0,s.useEffect)(function(){var t=e.current,n=(0,m.A)(t);(0,p.hq)(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:n})},[])},A=["icon","className","onClick","style","primaryColor","secondaryColor"],k={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function O(e){var t=e.primaryColor,r=e.secondaryColor;k.primaryColor=t,k.secondaryColor=r||x(t),k.calculated=!!r}function I(){return(0,h.Z)({},k)}var T=function(e){var t=e.icon,r=e.className,n=e.onClick,i=e.style,o=e.primaryColor,l=e.secondaryColor,u=(0,a.Z)(e,A),c=s.useRef(),f=k;if(o&&(f={primaryColor:o,secondaryColor:l||x(o)}),C(c),b(y(t),"icon should be icon definiton, but got ".concat(t)),!y(t))return null;var d=t;return d&&"function"==typeof d.icon&&(d=(0,h.Z)((0,h.Z)({},d),{},{icon:d.icon(f.primaryColor,f.secondaryColor)})),w(d.icon,"svg-".concat(d.name),(0,h.Z)((0,h.Z)({className:r,onClick:n,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:c}))};T.displayName="IconReact",T.getTwoToneColors=I,T.setTwoToneColors=O;let P=T;function R(e){var t=S(e),r=(0,i.Z)(t,2),n=r[0],o=r[1];return P.setTwoToneColors({primaryColor:n,secondaryColor:o})}function M(){var e=P.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var $=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];R(c.iN.primary);var N=s.forwardRef(function(e,t){var r=e.className,l=e.icon,c=e.spin,h=e.rotate,d=e.tabIndex,p=e.onClick,m=e.twoToneColor,g=(0,a.Z)(e,$),v=s.useContext(f.Z),b=v.prefixCls,y=void 0===b?"anticon":b,_=v.rootClassName,w=u()(_,y,(0,o.Z)((0,o.Z)({},"".concat(y,"-").concat(l.name),!!l.name),"".concat(y,"-spin"),!!c||"loading"===l.name),r),x=d;void 0===x&&p&&(x=-1);var E=h?{msTransform:"rotate(".concat(h,"deg)"),transform:"rotate(".concat(h,"deg)")}:void 0,C=S(m),A=(0,i.Z)(C,2),k=A[0],O=A[1];return s.createElement("span",(0,n.Z)({role:"img","aria-label":l.name},g,{ref:t,tabIndex:x,onClick:p,className:w}),s.createElement(P,{icon:l,primaryColor:k,secondaryColor:O,style:E}))});N.displayName="AntdIcon",N.getTwoToneColor=M,N.setTwoToneColor=R;let j=N},22655:function(e,t,r){"use strict";r.d(t,{Z:()=>n});let n=(0,r(44194).createContext)({})},9004:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"border",theme:"outlined"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},11322:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},4007:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},94249:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={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"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},55655:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={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"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},32110:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},13098:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},50408:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},58111:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},73654:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},94878:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},24452:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},7379:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},16383:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={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"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},43876:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"mobile",theme:"outlined"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},96033:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},67363:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},35725:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},42968:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(25833),i=r(44194);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};var a=r(14532),s=function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},93096:function(e,t,r){"use strict";r.d(t,{y:()=>_});var n,i=r(90534);r(73656);let o=(0,i.YR)("identity");function a(e){return`SUCCESS. Scopes: ${Array.isArray(e)?e.join(", "):e}.`}function s(e,t){let r="ERROR.";return(null==e?void 0:e.length)&&(r+=` Scopes: ${Array.isArray(e)?e.join(", "):e}.`),`${r} Error message: ${"string"==typeof t?t:t.message}.`}function l(e,t,r=o){let n=t?`${t.fullTitle} ${e}`:e;function i(e){r.info(`${n} =>`,e)}function a(e){r.warning(`${n} =>`,e)}function s(e){r.verbose(`${n} =>`,e)}function u(e){r.error(`${n} =>`,e)}return{title:e,fullTitle:n,info:i,warning:a,verbose:s,error:u}}function u(e,t=o){let r=l(e,void 0,t);return Object.assign(Object.assign({},r),{parent:t,getToken:l("=> getToken()",r,t)})}let c="CredentialUnavailableError";class f extends Error{constructor(e,t){super(e,t),this.name=c}}let h="AggregateAuthenticationError";class d extends Error{constructor(e,t){super(`${t}
3
3
  ${e.join("\n")}`),this.errors=e,this.name=h}}let p="4.5.0";!function(e){e.AzureChina="https://login.chinacloudapi.cn",e.AzureGermany="https://login.microsoftonline.de",e.AzureGovernment="https://login.microsoftonline.us",e.AzurePublicCloud="https://login.microsoftonline.com"}(n||(n={})),n.AzurePublicCloud;let m=(0,r(82679).U)({namespace:"Microsoft.AAD",packageName:"@azure/identity",packageVersion:p}),g=u("ChainedTokenCredential");class v{constructor(...e){this._sources=[],this._sources=e}async getToken(e,t={}){let{token:r}=await this.getTokenInternal(e,t);return r}async getTokenInternal(e,t={}){let r,n=null,i=[];return m.withSpan("ChainedTokenCredential.getToken",t,async t=>{for(let o=0;o<this._sources.length&&null===n;o++)try{n=await this._sources[o].getToken(e,t),r=this._sources[o]}catch(t){if("CredentialUnavailableError"===t.name||"AuthenticationRequiredError"===t.name)i.push(t);else throw g.getToken.info(s(e,t)),t}if(!n&&i.length>0){let t=new d(i,"ChainedTokenCredential authentication failed.");throw g.getToken.info(s(e,t)),t}if(g.getToken.info(`Result for ${r.constructor.name}: ${a(e)}`),null===n)throw new f("Failed to retrieve a valid token");return{token:n,successfulCredential:r}})}}let b=Error("DefaultAzureCredential is not supported in the browser. Use InteractiveBrowserCredential instead."),y=u("DefaultAzureCredential");class _ extends v{constructor(e){throw super(),y.info(s("",b)),b}getToken(){throw y.getToken.info(s("",b)),b}}},11260:function(e,t,r){"use strict";r.d(t,{r:()=>V});let n=new Set(["Deserialize","Serialize","Retry","Sign"]);class i{constructor(e){var t;this._policies=[],this._policies=null!=(t=null==e?void 0:e.slice(0))?t:[],this._orderedPolicies=void 0}addPolicy(e,t={}){if(t.phase&&t.afterPhase)throw Error("Policies inside a phase cannot specify afterPhase.");if(t.phase&&!n.has(t.phase))throw Error(`Invalid phase name: ${t.phase}`);if(t.afterPhase&&!n.has(t.afterPhase))throw Error(`Invalid afterPhase name: ${t.afterPhase}`);this._policies.push({policy:e,options:t}),this._orderedPolicies=void 0}removePolicy(e){let t=[];return this._policies=this._policies.filter(r=>(!e.name||r.policy.name!==e.name)&&(!e.phase||r.options.phase!==e.phase)||(t.push(r.policy),!1)),this._orderedPolicies=void 0,t}sendRequest(e,t){return this.getOrderedPolicies().reduceRight((e,t)=>r=>t.sendRequest(r,e),t=>e.sendRequest(t))(t)}getOrderedPolicies(){return this._orderedPolicies||(this._orderedPolicies=this.orderPolicies()),this._orderedPolicies}clone(){return new i(this._policies)}static create(){return new i}orderPolicies(){let e=[],t=new Map;function r(e){return{name:e,policies:new Set,hasRun:!1,hasAfterPolicies:!1}}let n=r("Serialize"),i=r("None"),o=r("Deserialize"),a=r("Retry"),s=r("Sign"),l=[n,i,o,a,s];function u(e){return"Retry"===e?a:"Serialize"===e?n:"Deserialize"===e?o:"Sign"===e?s:i}for(let e of this._policies){let r=e.policy,n=e.options,i=r.name;if(t.has(i))throw Error("Duplicate policy names not allowed in pipeline");let o={policy:r,dependsOn:new Set,dependants:new Set};n.afterPhase&&(o.afterPhase=u(n.afterPhase),o.afterPhase.hasAfterPolicies=!0),t.set(i,o),u(n.phase).policies.add(o)}for(let e of this._policies){let{policy:r,options:n}=e,i=r.name,o=t.get(i);if(!o)throw Error(`Missing node for policy ${i}`);if(n.afterPolicies)for(let e of n.afterPolicies){let r=t.get(e);r&&(o.dependsOn.add(r),r.dependants.add(o))}if(n.beforePolicies)for(let e of n.beforePolicies){let r=t.get(e);r&&(r.dependsOn.add(o),o.dependants.add(r))}}function c(r){for(let n of(r.hasRun=!0,r.policies))if((!n.afterPhase||n.afterPhase.hasRun&&!n.afterPhase.policies.size)&&0===n.dependsOn.size){for(let t of(e.push(n.policy),n.dependants))t.dependsOn.delete(n);t.delete(n.policy.name),r.policies.delete(n)}}function f(){for(let e of l){if(c(e),e.policies.size>0&&e!==i){i.hasRun||c(i);return}e.hasAfterPolicies&&c(i)}}let h=0;for(;t.size>0;){h++;let t=e.length;if(f(),e.length<=t&&h>1)throw Error("Cannot satisfy policy dependencies due to requirements cycle.")}return e}}function o(){return i.create()}var a,s,l,u,c,f=r(90534);let h=(0,f.YR)("core-rest-pipeline");class d extends Error{constructor(e){super(e),this.name="AbortError"}}function p(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function m(e){if(p(e)){let t="string"==typeof e.name,r="string"==typeof e.message;return t&&r}return!1}function g(){let e="";for(let t=0;t<32;t++){let r=Math.floor(16*Math.random());12===t?e+="4":16===t?e+=3&r|8:e+=r.toString(16),(7===t||11===t||15===t||19===t)&&(e+="-")}return e}let v="function"==typeof(null==(a=null==globalThis?void 0:globalThis.crypto)?void 0:a.randomUUID)?globalThis.crypto.randomUUID.bind(globalThis.crypto):g;function b(){return v()}"undefined"!=typeof window&&window.document,"object"==typeof self&&"function"==typeof(null==self?void 0:self.importScripts)&&((null==(s=self.constructor)?void 0:s.name)==="DedicatedWorkerGlobalScope"||(null==(l=self.constructor)?void 0:l.name)==="ServiceWorkerGlobalScope"||null==(u=self.constructor)||u.name),"undefined"!=typeof Deno&&void 0!==Deno.version&&Deno.version.deno,"undefined"!=typeof Bun&&Bun.version,void 0!==globalThis.process&&globalThis.process.version&&(null==(c=globalThis.process.versions)||c.node),"undefined"!=typeof navigator&&(null==navigator||navigator.product);let y="REDACTED",_=["x-ms-client-request-id","x-ms-return-client-request-id","x-ms-useragent","x-ms-correlation-request-id","x-ms-request-id","client-request-id","ms-cv","return-client-request-id","traceparent","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Origin","Accept","Accept-Encoding","Cache-Control","Connection","Content-Length","Content-Type","Date","ETag","Expires","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","Last-Modified","Pragma","Request-Id","Retry-After","Server","Transfer-Encoding","User-Agent","WWW-Authenticate"],w=["api-version"];class x{constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:t=[]}={}){e=_.concat(e),t=w.concat(t),this.allowedHeaderNames=new Set(e.map(e=>e.toLowerCase())),this.allowedQueryParameters=new Set(t.map(e=>e.toLowerCase()))}sanitize(e){let t=new Set;return JSON.stringify(e,(e,r)=>{if(r instanceof Error)return Object.assign(Object.assign({},r),{name:r.name,message:r.message});if("headers"===e)return this.sanitizeHeaders(r);if("url"===e)return this.sanitizeUrl(r);if("query"===e)return this.sanitizeQuery(r);if("body"!==e){if("response"===e)return;else if("operationSpec"===e)return;else if(Array.isArray(r)||p(r)){if(t.has(r))return"[Circular]";t.add(r)}return r}},2)}sanitizeUrl(e){if("string"!=typeof e||null===e||""===e)return e;let t=new URL(e);if(!t.search)return e;for(let[e]of t.searchParams)this.allowedQueryParameters.has(e.toLowerCase())||t.searchParams.set(e,y);return t.toString()}sanitizeHeaders(e){let t={};for(let r of Object.keys(e))this.allowedHeaderNames.has(r.toLowerCase())?t[r]=e[r]:t[r]=y;return t}sanitizeQuery(e){if("object"!=typeof e||null===e)return e;let t={};for(let r of Object.keys(e))this.allowedQueryParameters.has(r.toLowerCase())?t[r]=e[r]:t[r]=y;return t}}function S(){return"x-ms-useragent"}(function(){S()})(),Symbol("rawContent");let E="The operation was aborted.";function C(e,t,r){return new Promise((n,i)=>{let o,a,s=()=>i(new d((null==r?void 0:r.abortErrorMsg)?null==r?void 0:r.abortErrorMsg:E)),l=()=>{(null==r?void 0:r.abortSignal)&&a&&r.abortSignal.removeEventListener("abort",a)};if(a=()=>(o&&clearTimeout(o),l(),s()),(null==r?void 0:r.abortSignal)&&r.abortSignal.aborted)return s();o=setTimeout(()=>{l(),n(t)},e),(null==r?void 0:r.abortSignal)&&r.abortSignal.addEventListener("abort",a)})}function A(e){return e.toLowerCase()}function*k(e){for(let t of e.values())yield[t.name,t.value]}(0,f.YR)("core-rest-pipeline retryPolicy");class O{constructor(e){if(this._headersMap=new Map,e)for(let t of Object.keys(e))this.set(t,e[t])}set(e,t){this._headersMap.set(A(e),{name:e,value:String(t).trim()})}get(e){var t;return null==(t=this._headersMap.get(A(e)))?void 0:t.value}has(e){return this._headersMap.has(A(e))}delete(e){this._headersMap.delete(A(e))}toJSON(e={}){let t={};if(e.preserveCase)for(let e of this._headersMap.values())t[e.name]=e.value;else for(let[e,r]of this._headersMap)t[e]=r.value;return t}toString(){return JSON.stringify(this.toJSON({preserveCase:!0}))}[Symbol.iterator](){return k(this._headersMap)}}function I(e){return new O(e)}r(82679);let T={},P=new x;class R extends Error{constructor(e,t={}){super(e),this.name="RestError",this.code=t.code,this.statusCode=t.statusCode,Object.defineProperty(this,"request",{value:t.request,enumerable:!1}),Object.defineProperty(this,"response",{value:t.response,enumerable:!1}),Object.setPrototypeOf(this,R.prototype)}[T](){return`RestError: ${this.message}
4
4
  ${P.sanitize(Object.assign(Object.assign({},this),{request:this.request,response:this.response}))}`}}function M(e){return e instanceof R||m(e)&&"RestError"===e.name}R.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR",R.PARSE_ERROR="PARSE_ERROR";class ${constructor(e){var t,r,n,i,o,a,s;this.url=e.url,this.body=e.body,this.headers=null!=(t=e.headers)?t:I(),this.method=null!=(r=e.method)?r:"GET",this.timeout=null!=(n=e.timeout)?n:0,this.multipartBody=e.multipartBody,this.formData=e.formData,this.disableKeepAlive=null!=(i=e.disableKeepAlive)&&i,this.proxySettings=e.proxySettings,this.streamResponseStatusCodes=e.streamResponseStatusCodes,this.withCredentials=null!=(o=e.withCredentials)&&o,this.abortSignal=e.abortSignal,this.tracingOptions=e.tracingOptions,this.onUploadProgress=e.onUploadProgress,this.onDownloadProgress=e.onDownloadProgress,this.requestId=e.requestId||b(),this.allowInsecureConnection=null!=(a=e.allowInsecureConnection)&&a,this.enableBrowserStreams=null!=(s=e.enableBrowserStreams)&&s}}function N(e){return new $(e)}let j={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:12e4};async function B(e,t,r){async function n(){if(Date.now()<r)try{return await e()}catch(e){return null}{let t=await e();if(null===t)throw Error("Failed to refresh access token.");return t}}let i=await n();for(;null===i;)await C(t),i=await n();return i}function L(e,t){let r,n=null,i=null,o=Object.assign(Object.assign({},j),t),a={get isRefreshing(){return null!==n},get shouldRefresh(){var s;if(a.isRefreshing)return!1;if((null==i?void 0:i.refreshAfterTimestamp)&&i.refreshAfterTimestamp<Date.now())return!0;return(null!=(s=null==i?void 0:i.expiresOnTimestamp)?s:0)-o.refreshWindowInMs<Date.now()},get mustRefresh(){return null===i||i.expiresOnTimestamp-o.forcedRefreshWindowInMs<Date.now()}};function l(t,s){var l;return a.isRefreshing||(n=B(()=>e.getToken(t,s),o.retryIntervalInMs,null!=(l=null==i?void 0:i.expiresOnTimestamp)?l:Date.now()).then(e=>(n=null,i=e,r=s.tenantId,i)).catch(e=>{throw n=null,i=null,r=void 0,e})),n}return async(e,t)=>{let n=!!t.claims,o=r!==t.tenantId;return(n&&(i=null),o||n||a.mustRefresh)?l(e,t):(a.shouldRefresh&&l(e,t),i)}}let F="bearerTokenAuthenticationPolicy";async function D(e,t){try{return[await t(e),void 0]}catch(e){if(M(e)&&e.response)return[e.response,e];throw e}}async function z(e){let{scopes:t,getAccessToken:r,request:n}=e,i={abortSignal:n.abortSignal,tracingOptions:n.tracingOptions,enableCae:!0},o=await r(t,i);o&&e.request.headers.set("Authorization",`Bearer ${o.token}`)}function U(e){return 401===e.status&&e.headers.has("WWW-Authenticate")}async function Z(e,t){var r;let{scopes:n}=e,i=await e.getAccessToken(n,{enableCae:!0,claims:t});return!!i&&(e.request.headers.set("Authorization",`${null!=(r=i.tokenType)?r:"Bearer"} ${i.token}`),!0)}function H(e){var t,r,n;let{credential:i,scopes:o,challengeCallbacks:a}=e,s=e.logger||h,l={authorizeRequest:null!=(r=null==(t=null==a?void 0:a.authorizeRequest)?void 0:t.bind(a))?r:z,authorizeRequestOnChallenge:null==(n=null==a?void 0:a.authorizeRequestOnChallenge)?void 0:n.bind(a)},u=i?L(i):()=>Promise.resolve(null);return{name:F,async sendRequest(e,t){let r,n,i;if(!e.url.toLowerCase().startsWith("https://"))throw Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.");if(await l.authorizeRequest({scopes:Array.isArray(o)?o:[o],request:e,getAccessToken:u,logger:s}),[r,n]=await D(e,t),U(r)){let a=W(r.headers.get("WWW-Authenticate"));if(a){let l;try{l=atob(a)}catch(e){return s.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${a}`),r}(i=await Z({scopes:Array.isArray(o)?o:[o],response:r,request:e,getAccessToken:u,logger:s},l))&&([r,n]=await D(e,t))}else if(l.authorizeRequestOnChallenge&&((i=await l.authorizeRequestOnChallenge({scopes:Array.isArray(o)?o:[o],request:e,response:r,getAccessToken:u,logger:s}))&&([r,n]=await D(e,t)),U(r))&&(a=W(r.headers.get("WWW-Authenticate")))){let l;try{l=atob(a)}catch(e){return s.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${a}`),r}(i=await Z({scopes:Array.isArray(o)?o:[o],response:r,request:e,getAccessToken:u,logger:s},l))&&([r,n]=await D(e,t))}}if(!n)return r;throw n}}}function G(e){let t,r=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g,n=/(\w+)="([^"]*)"/g,i=[];for(;null!==(t=r.exec(e));){let e,r=t[1],o=t[2],a={};for(;null!==(e=n.exec(o));)a[e[1]]=e[2];i.push({scheme:r,params:a})}return i}function W(e){var t;if(e)return null==(t=G(e).find(e=>"Bearer"===e.scheme&&e.params.claims&&"insufficient_claims"===e.params.error))?void 0:t.params.claims}function V(e,t,r){let{abortSignal:n,tracingOptions:i}=r||{},a=o();return a.addPolicy(H({credential:e,scopes:t})),async function(){var e;let t=null==(e=(await a.sendRequest({sendRequest:e=>Promise.resolve({request:e,status:200,headers:e.headers})},N({url:"https://example.com",abortSignal:n,tracingOptions:i}))).headers.get("authorization"))?void 0:e.split(" ")[1];if(!t)throw Error("Failed to get access token");return t}}},20117:function(e,t,r){"use strict";r.d(t,{T6:()=>d,VD:()=>p,WE:()=>u,Yt:()=>m,lC:()=>o,py:()=>l,rW:()=>i,s:()=>f,ve:()=>s,vq:()=>c});var n=r(33146);function i(e,t,r){return{r:255*(0,n.sh)(e,255),g:255*(0,n.sh)(t,255),b:255*(0,n.sh)(r,255)}}function o(e,t,r){e=(0,n.sh)(e,255);var i=Math.max(e,t=(0,n.sh)(t,255),r=(0,n.sh)(r,255)),o=Math.min(e,t,r),a=0,s=0,l=(i+o)/2;if(i===o)s=0,a=0;else{var u=i-o;switch(s=l>.5?u/(2-i-o):u/(i+o),i){case e:a=(t-r)/u+6*(t<r);break;case t:a=(r-e)/u+2;break;case r:a=(e-t)/u+4}a/=6}return{h:a,s:s,l:l}}function a(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+6*r*(t-e):r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function s(e,t,r){if(e=(0,n.sh)(e,360),t=(0,n.sh)(t,100),r=(0,n.sh)(r,100),0===t)o=r,s=r,i=r;else{var i,o,s,l=r<.5?r*(1+t):r+t-r*t,u=2*r-l;i=a(u,l,e+1/3),o=a(u,l,e),s=a(u,l,e-1/3)}return{r:255*i,g:255*o,b:255*s}}function l(e,t,r){e=(0,n.sh)(e,255);var i=Math.max(e,t=(0,n.sh)(t,255),r=(0,n.sh)(r,255)),o=Math.min(e,t,r),a=0,s=i,l=i-o,u=0===i?0:l/i;if(i===o)a=0;else{switch(i){case e:a=(t-r)/l+6*(t<r);break;case t:a=(r-e)/l+2;break;case r:a=(e-t)/l+4}a/=6}return{h:a,s:u,v:s}}function u(e,t,r){e=6*(0,n.sh)(e,360),t=(0,n.sh)(t,100),r=(0,n.sh)(r,100);var i=Math.floor(e),o=e-i,a=r*(1-t),s=r*(1-o*t),l=r*(1-(1-o)*t),u=i%6;return{r:255*[r,s,a,a,l,r][u],g:255*[l,r,r,s,a,a][u],b:255*[a,a,l,r,r,s][u]}}function c(e,t,r,i){var o=[(0,n.FZ)(Math.round(e).toString(16)),(0,n.FZ)(Math.round(t).toString(16)),(0,n.FZ)(Math.round(r).toString(16))];return i&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function f(e,t,r,i,o){var a=[(0,n.FZ)(Math.round(e).toString(16)),(0,n.FZ)(Math.round(t).toString(16)),(0,n.FZ)(Math.round(r).toString(16)),(0,n.FZ)(h(i))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function h(e){return Math.round(255*parseFloat(e)).toString(16)}function d(e){return p(e)/255}function p(e){return parseInt(e,16)}function m(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}},53099:function(e,t,r){"use strict";r.d(t,{R:()=>n});var n={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"}},76981:function(e,t,r){"use strict";r.d(t,{uA:()=>a});var n=r(20117),i=r(53099),o=r(33146);function a(e){var t={r:0,g:0,b:0},r=1,i=null,a=null,s=null,l=!1,u=!1;return"string"==typeof e&&(e=d(e)),"object"==typeof e&&(p(e.r)&&p(e.g)&&p(e.b)?(t=(0,n.rW)(e.r,e.g,e.b),l=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):p(e.h)&&p(e.s)&&p(e.v)?(i=(0,o.JX)(e.s),a=(0,o.JX)(e.v),t=(0,n.WE)(e.h,i,a),l=!0,u="hsv"):p(e.h)&&p(e.s)&&p(e.l)&&(i=(0,o.JX)(e.s),s=(0,o.JX)(e.l),t=(0,n.ve)(e.h,i,s),l=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=(0,o.Yq)(r),{ok:l,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 s="[-\\+]?\\d+%?",l="[-\\+]?\\d*\\.\\d+%?",u="(?:".concat(l,")|(?:").concat(s,")"),c="[\\s|\\(]+(".concat(u,")[,|\\s]+(").concat(u,")[,|\\s]+(").concat(u,")\\s*\\)?"),f="[\\s|\\(]+(".concat(u,")[,|\\s]+(").concat(u,")[,|\\s]+(").concat(u,")[,|\\s]+(").concat(u,")\\s*\\)?"),h={CSS_UNIT:new RegExp(u),rgb:RegExp("rgb"+c),rgba:RegExp("rgba"+f),hsl:RegExp("hsl"+c),hsla:RegExp("hsla"+f),hsv:RegExp("hsv"+c),hsva:RegExp("hsva"+f),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 d(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(i.R[e])e=i.R[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var r=h.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=h.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=h.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=h.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=h.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=h.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=h.hex8.exec(e))?{r:(0,n.VD)(r[1]),g:(0,n.VD)(r[2]),b:(0,n.VD)(r[3]),a:(0,n.T6)(r[4]),format:t?"name":"hex8"}:(r=h.hex6.exec(e))?{r:(0,n.VD)(r[1]),g:(0,n.VD)(r[2]),b:(0,n.VD)(r[3]),format:t?"name":"hex"}:(r=h.hex4.exec(e))?{r:(0,n.VD)(r[1]+r[1]),g:(0,n.VD)(r[2]+r[2]),b:(0,n.VD)(r[3]+r[3]),a:(0,n.T6)(r[4]+r[4]),format:t?"name":"hex8"}:!!(r=h.hex3.exec(e))&&{r:(0,n.VD)(r[1]+r[1]),g:(0,n.VD)(r[2]+r[2]),b:(0,n.VD)(r[3]+r[3]),format:t?"name":"hex"}}function p(e){return!!h.CSS_UNIT.exec(String(e))}},66671:function(e,t,r){"use strict";r.d(t,{C:()=>s});var n=r(20117),i=r(53099),o=r(76981),a=r(33146),s=function(){function e(t,r){if(void 0===t&&(t=""),void 0===r&&(r={}),t instanceof e)return t;"number"==typeof t&&(t=(0,n.Yt)(t)),this.originalInput=t;var i,a=(0,o.uA)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!=(i=r.format)?i:a.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=a.ok}return e.prototype.isDark=function(){return 128>this.getBrightness()},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e,t,r,n=this.toRgb(),i=n.r/255,o=n.g/255,a=n.b/255;return .2126*(e=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.7152*(t=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))+.0722*(r=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,a.Yq)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,n.py)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,n.py)(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),i=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(t,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,n.lC)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,n.lC)(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),i=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(t,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,n.vq)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,n.s)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},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 e=Math.round(this.r),t=Math.round(this.g),r=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(r,")"):"rgba(".concat(e,", ").concat(t,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,a.sh)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,a.sh)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,n.vq)(this.r,this.g,this.b,!1),t=0,r=Object.entries(i.R);t<r.length;t++){var o=r[t],a=o[0];if(e===o[1])return a}return!1},e.prototype.toString=function(e){var t=!!e;e=null!=e?e:this.format;var r=!1,n=this.a<1&&this.a>=0;return!t&&n&&(e.startsWith("hex")||"name"===e)?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||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){void 0===t&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=(0,a.V2)(r.l),new e(r)},e.prototype.brighten=function(t){void 0===t&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-(t/100*255)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-(t/100*255)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-(t/100*255)))),new e(r)},e.prototype.darken=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=(0,a.V2)(r.l),new e(r)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=(0,a.V2)(r.s),new e(r)},e.prototype.saturate=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=(0,a.V2)(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){void 0===r&&(r=50);var n=this.toRgb(),i=new e(t).toRgb(),o=r/100;return new e({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})},e.prototype.analogous=function(t,r){void 0===t&&(t=6),void 0===r&&(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){void 0===t&&(t=6);for(var r=this.toHsv(),n=r.h,i=r.s,o=r.v,a=[],s=1/t;t--;)a.push(new e({h:n,s:i,v:o})),o=(o+s)%1;return a},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,a=1;a<t;a++)i.push(new e({h:(n+a*o)%360,s:r.s,l:r.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}()},33146:function(e,t,r){"use strict";function n(e,t){o(e)&&(e="100%");var r=a(e);return(e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),1e-6>Math.abs(e-t))?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function i(e){return Math.min(1,Math.max(0,e))}function o(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)}function a(e){return"string"==typeof e&&-1!==e.indexOf("%")}function s(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function l(e){return e<=1?"".concat(100*Number(e),"%"):e}function u(e){return 1===e.length?"0"+e:String(e)}r.d(t,{FZ:()=>u,JX:()=>l,V2:()=>i,Yq:()=>s,sh:()=>n})},68013:function(e,t,r){"use strict";r.d(t,{Z:()=>S});var n=r(57987),i=r(44194),o=r(56321),a=r(33229);r(28740);var s=r(38726);let l=i.createContext(null);var u=r(81632),c=r(16713),f=[];function h(e,t){var r=i.useState(function(){return(0,a.Z)()?document.createElement("div"):null}),o=(0,n.Z)(r,1)[0],s=i.useRef(!1),h=i.useContext(l),d=i.useState(f),p=(0,n.Z)(d,2),m=p[0],g=p[1],v=h||(s.current?void 0:function(e){g(function(t){return[e].concat((0,u.Z)(t))})});function b(){o.parentElement||document.body.appendChild(o),s.current=!0}function y(){var e;null==(e=o.parentElement)||e.removeChild(o),s.current=!1}return(0,c.Z)(function(){return e?h?h(b):b():y(),y},[e]),(0,c.Z)(function(){m.length&&(m.forEach(function(e){return e()}),g(f))},[m]),[o,v]}var d=r(96345);function p(e){var t,r,n="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),i=document.createElement("div");i.id=n;var o=i.style;if(o.position="absolute",o.left="0",o.top="0",o.width="100px",o.height="100px",o.overflow="scroll",e){var a=getComputedStyle(e);o.scrollbarColor=a.scrollbarColor,o.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),u=parseInt(s.height,10);try{var c=l?"width: ".concat(s.width,";"):"",f=u?"height: ".concat(s.height,";"):"";(0,d.hq)("\n#".concat(n,"::-webkit-scrollbar {\n").concat(c,"\n").concat(f,"\n}"),n)}catch(e){console.error(e),t=l,r=u}}document.body.appendChild(i);var h=e&&t&&!isNaN(t)?t:i.offsetWidth-i.clientWidth,p=e&&r&&!isNaN(r)?r:i.offsetHeight-i.clientHeight;return document.body.removeChild(i),(0,d.jL)(n),{width:h,height:p}}function m(e){return"undefined"!=typeof document&&e&&e instanceof Element?p(e):{width:0,height:0}}function g(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var v="rc-util-locker-".concat(Date.now()),b=0;function y(e){var t=!!e,r=i.useState(function(){return b+=1,"".concat(v,"_").concat(b)}),o=(0,n.Z)(r,1)[0];(0,c.Z)(function(){if(t){var e=m(document.body).width,r=g();(0,d.hq)("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),o)}else(0,d.jL)(o);return function(){(0,d.jL)(o)}},[t,o])}var _=!1;function w(e){return"boolean"==typeof e&&(_=e),_}var x=function(e){return!1!==e&&((0,a.Z)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)};let S=i.forwardRef(function(e,t){var r=e.open,u=e.autoLock,c=e.getContainer,f=e.debug,d=e.autoDestroy,p=void 0===d||d,m=e.children,g=i.useState(r),v=(0,n.Z)(g,2),b=v[0],_=v[1],S=b||r;i.useEffect(function(){(p||r)&&_(r)},[r,p]);var E=i.useState(function(){return x(c)}),C=(0,n.Z)(E,2),A=C[0],k=C[1];i.useEffect(function(){var e=x(c);k(null!=e?e:null)});var O=h(S&&!A,f),I=(0,n.Z)(O,2),T=I[0],P=I[1],R=null!=A?A:T;y(u&&r&&(0,a.Z)()&&(R===T||R===document.body));var M=null;m&&(0,s.Yr)(m)&&t&&(M=m.ref);var $=(0,s.x1)(M,t);if(!S||!(0,a.Z)()||void 0===A)return null;var N=!1===R||w(),j=m;return t&&(j=i.cloneElement(m,{ref:$})),i.createElement(l.Provider,{value:P},N?j:(0,o.createPortal)(j,R))})},74912:function(e,t,r){"use strict";r.d(t,{Z:()=>V});var n=r(19741),i=r(57987),o=r(52755),a=r(68013),s=r(41229),l=r.n(s),u=r(29659),c=r(40660),f=r(5940),h=r(81446),d=r(21096),p=r(16713),m=r(88487),g=r(44194),v=r(25833),b=r(55940),y=r(38726);function _(e){var t=e.prefixCls,r=e.align,n=e.arrow,i=e.arrowPos,o=n||{},a=o.className,s=o.content,u=i.x,c=void 0===u?0:u,f=i.y,h=void 0===f?0:f,d=g.useRef();if(!r||!r.points)return null;var p={position:"absolute"};if(!1!==r.autoArrow){var m=r.points[0],v=r.points[1],b=m[0],y=m[1],_=v[0],w=v[1];b!==_&&["t","b"].includes(b)?"t"===b?p.top=0:p.bottom=0:p.top=h,y!==w&&["l","r"].includes(y)?"l"===y?p.left=0:p.right=0:p.left=c}return g.createElement("div",{ref:d,className:l()("".concat(t,"-arrow"),a),style:p},s)}function w(e){var t=e.prefixCls,r=e.open,n=e.zIndex,i=e.mask,o=e.motion;return i?g.createElement(b.ZP,(0,v.Z)({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(e){var r=e.className;return g.createElement("div",{style:{zIndex:n},className:l()("".concat(t,"-mask"),r)})}):null}let x=g.memo(function(e){return e.children},function(e,t){return t.cache}),S=g.forwardRef(function(e,t){var r=e.popup,o=e.className,a=e.prefixCls,s=e.style,c=e.target,f=e.onVisibleChanged,h=e.open,d=e.keepDom,m=e.fresh,S=e.onClick,E=e.mask,C=e.arrow,A=e.arrowPos,k=e.align,O=e.motion,I=e.maskMotion,T=e.forceRender,P=e.getPopupContainer,R=e.autoDestroy,M=e.portal,$=e.zIndex,N=e.onMouseEnter,j=e.onMouseLeave,B=e.onPointerEnter,L=e.ready,F=e.offsetX,D=e.offsetY,z=e.offsetR,U=e.offsetB,Z=e.onAlign,H=e.onPrepare,G=e.stretch,W=e.targetWidth,V=e.targetHeight,q="function"==typeof r?r():r,X=h||d,Y=(null==P?void 0:P.length)>0,K=g.useState(!P||!Y),J=(0,i.Z)(K,2),Q=J[0],ee=J[1];if((0,p.Z)(function(){!Q&&Y&&c&&ee(!0)},[Q,Y,c]),!Q)return null;var et="auto",er={left:"-1000vw",top:"-1000vh",right:et,bottom:et};if(L||!h){var en,ei=k.points,eo=k.dynamicInset||(null==(en=k._experimental)?void 0:en.dynamicInset),ea=eo&&"r"===ei[0][1],es=eo&&"b"===ei[0][0];ea?(er.right=z,er.left=et):(er.left=F,er.right=et),es?(er.bottom=U,er.top=et):(er.top=D,er.bottom=et)}var el={};return G&&(G.includes("height")&&V?el.height=V:G.includes("minHeight")&&V&&(el.minHeight=V),G.includes("width")&&W?el.width=W:G.includes("minWidth")&&W&&(el.minWidth=W)),h||(el.pointerEvents="none"),g.createElement(M,{open:T||X,getContainer:P&&function(){return P(c)},autoDestroy:R},g.createElement(w,{prefixCls:a,open:h,zIndex:$,mask:E,motion:I}),g.createElement(u.Z,{onResize:Z,disabled:!h},function(e){return g.createElement(b.ZP,(0,v.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:T,leavedClassName:"".concat(a,"-hidden")},O,{onAppearPrepare:H,onEnterPrepare:H,visible:h,onVisibleChanged:function(e){var t;null==O||null==(t=O.onVisibleChanged)||t.call(O,e),f(e)}}),function(r,i){var u=r.className,c=r.style,f=l()(a,u,o);return g.createElement("div",{ref:(0,y.sQ)(e,t,i),className:f,style:(0,n.Z)((0,n.Z)((0,n.Z)((0,n.Z)({"--arrow-x":"".concat(A.x||0,"px"),"--arrow-y":"".concat(A.y||0,"px")},er),el),c),{},{boxSizing:"border-box",zIndex:$},s),onMouseEnter:N,onMouseLeave:j,onPointerEnter:B,onClick:S},C&&g.createElement(_,{prefixCls:a,arrow:C,arrowPos:A,align:k}),g.createElement(x,{cache:!h&&!m},q))})}))}),E=g.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,i=(0,y.Yr)(r),o=g.useCallback(function(e){(0,y.mH)(t,n?n(e):e)},[n]),a=(0,y.x1)(o,r.ref);return i?g.cloneElement(r,{ref:a}):r}),C=g.createContext(null);function A(e){return e?Array.isArray(e)?e:[e]:[]}function k(e,t,r,n){return g.useMemo(function(){var i=A(null!=r?r:t),o=A(null!=n?n:t),a=new Set(i),s=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,r,n])}var O=r(19014);function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?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 T(e,t,r,n){for(var i=r.points,o=Object.keys(e),a=0;a<o.length;a+=1){var s,l=o[a];if(I(null==(s=e[l])?void 0:s.points,i,n))return"".concat(t,"-placement-").concat(l)}return""}function P(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function R(e){return e.ownerDocument.defaultView}function M(e){for(var t=[],r=null==e?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var i=R(r).getComputedStyle(r);[i.overflowX,i.overflowY,i.overflow].some(function(e){return n.includes(e)})&&t.push(r),r=r.parentElement}return t}function $(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function N(e){return $(parseFloat(e),0)}function j(e,t){var r=(0,n.Z)({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=R(e).getComputedStyle(e),n=t.overflow,i=t.overflowClipMargin,o=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,u=e.getBoundingClientRect(),c=e.offsetHeight,f=e.clientHeight,h=e.offsetWidth,d=e.clientWidth,p=N(o),m=N(a),g=N(s),v=N(l),b=$(Math.round(u.width/h*1e3)/1e3),y=$(Math.round(u.height/c*1e3)/1e3),_=(h-d-g-v)*b,w=(c-f-p-m)*y,x=p*y,S=m*y,E=g*b,C=v*b,A=0,k=0;if("clip"===n){var O=N(i);A=O*b,k=O*y}var I=u.x+E-A,T=u.y+x-k,P=I+u.width+2*A-E-C-_,M=T+u.height+2*k-x-S-w;r.left=Math.max(r.left,I),r.top=Math.max(r.top,T),r.right=Math.min(r.right,P),r.bottom=Math.min(r.bottom,M)}}),r}function B(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function L(e,t){var r=t||[],n=(0,i.Z)(r,2),o=n[0],a=n[1];return[B(e.width,o),B(e.height,a)]}function F(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function D(e,t){var r,n,i=t[0],o=t[1];return n="t"===i?e.y:"b"===i?e.y+e.height:e.y+e.height/2,{x:r="l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function z(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,n){return n===t?r[e]||"c":e}).join("")}function U(e,t,r,o,a,s,l){var u=g.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[o]||{}}),f=(0,i.Z)(u,2),d=f[0],m=f[1],v=g.useRef(0),b=g.useMemo(function(){return t?M(t):[]},[t]),y=g.useRef({}),_=function(){y.current={}};e||_();var w=(0,h.Z)(function(){if(t&&r&&e){var u,f,h,d,p=t,g=p.ownerDocument,v=R(p).getComputedStyle(p),_=v.width,w=v.height,x=v.position,S=p.style.left,E=p.style.top,C=p.style.right,A=p.style.bottom,k=p.style.overflow,I=(0,n.Z)((0,n.Z)({},a[o]),s),T=g.createElement("div");if(null==(P=p.parentElement)||P.appendChild(T),T.style.left="".concat(p.offsetLeft,"px"),T.style.top="".concat(p.offsetTop,"px"),T.style.position=x,T.style.height="".concat(p.offsetHeight,"px"),T.style.width="".concat(p.offsetWidth,"px"),p.style.left="0",p.style.top="0",p.style.right="auto",p.style.bottom="auto",p.style.overflow="hidden",Array.isArray(r))U={x:r[0],y:r[1],width:0,height:0};else{var P,M,N,B,U,Z,H,G=r.getBoundingClientRect();G.x=null!=(Z=G.x)?Z:G.left,G.y=null!=(H=G.y)?H:G.top,U={x:G.x,y:G.y,width:G.width,height:G.height}}var W=p.getBoundingClientRect();W.x=null!=(M=W.x)?M:W.left,W.y=null!=(N=W.y)?N:W.top;var V=g.documentElement,q=V.clientWidth,X=V.clientHeight,Y=V.scrollWidth,K=V.scrollHeight,J=V.scrollTop,Q=V.scrollLeft,ee=W.height,et=W.width,er=U.height,en=U.width,ei={left:0,top:0,right:q,bottom:X},eo={left:-Q,top:-J,right:Y-Q,bottom:K-J},ea=I.htmlRegion,es="visible",el="visibleFirst";"scroll"!==ea&&ea!==el&&(ea=es);var eu=ea===el,ec=j(eo,b),ef=j(ei,b),eh=ea===es?ef:ec,ed=eu?ef:eh;p.style.left="auto",p.style.top="auto",p.style.right="0",p.style.bottom="0";var ep=p.getBoundingClientRect();p.style.left=S,p.style.top=E,p.style.right=C,p.style.bottom=A,p.style.overflow=k,null==(B=p.parentElement)||B.removeChild(T);var em=$(Math.round(et/parseFloat(_)*1e3)/1e3),eg=$(Math.round(ee/parseFloat(w)*1e3)/1e3);if(!(0===em||0===eg||(0,c.Sh)(r)&&!(0,O.Z)(r))){var ev=I.offset,eb=I.targetOffset,ey=L(W,ev),e_=(0,i.Z)(ey,2),ew=e_[0],ex=e_[1],eS=L(U,eb),eE=(0,i.Z)(eS,2),eC=eE[0],eA=eE[1];U.x-=eC,U.y-=eA;var ek=I.points||[],eO=(0,i.Z)(ek,2),eI=eO[0],eT=eO[1],eP=F(eT),eR=F(eI),eM=D(U,eP),e$=D(W,eR),eN=(0,n.Z)({},I),ej=eM.x-e$.x+ew,eB=eM.y-e$.y+ex,eL=tS(ej,eB),eF=tS(ej,eB,ef),eD=D(U,["t","l"]),ez=D(W,["t","l"]),eU=D(U,["b","r"]),eZ=D(W,["b","r"]),eH=I.overflow||{},eG=eH.adjustX,eW=eH.adjustY,eV=eH.shiftX,eq=eH.shiftY,eX=function(e){return"boolean"==typeof e?e:e>=0};tE();var eY=eX(eW),eK=eR[0]===eP[0];if(eY&&"t"===eR[0]&&(f>ed.bottom||y.current.bt)){var eJ=eB;eK?eJ-=ee-er:eJ=eD.y-eZ.y-ex;var eQ=tS(ej,eJ),e0=tS(ej,eJ,ef);eQ>eL||eQ===eL&&(!eu||e0>=eF)?(y.current.bt=!0,eB=eJ,ex=-ex,eN.points=[z(eR,0),z(eP,0)]):y.current.bt=!1}if(eY&&"b"===eR[0]&&(u<ed.top||y.current.tb)){var e1=eB;eK?e1+=ee-er:e1=eU.y-ez.y-ex;var e2=tS(ej,e1),e3=tS(ej,e1,ef);e2>eL||e2===eL&&(!eu||e3>=eF)?(y.current.tb=!0,eB=e1,ex=-ex,eN.points=[z(eR,0),z(eP,0)]):y.current.tb=!1}var e5=eX(eG),e4=eR[1]===eP[1];if(e5&&"l"===eR[1]&&(d>ed.right||y.current.rl)){var e6=ej;e4?e6-=et-en:e6=eD.x-eZ.x-ew;var e8=tS(e6,eB),e9=tS(e6,eB,ef);e8>eL||e8===eL&&(!eu||e9>=eF)?(y.current.rl=!0,ej=e6,ew=-ew,eN.points=[z(eR,1),z(eP,1)]):y.current.rl=!1}if(e5&&"r"===eR[1]&&(h<ed.left||y.current.lr)){var e7=ej;e4?e7+=et-en:e7=eU.x-ez.x-ew;var te=tS(e7,eB),tt=tS(e7,eB,ef);te>eL||te===eL&&(!eu||tt>=eF)?(y.current.lr=!0,ej=e7,ew=-ew,eN.points=[z(eR,1),z(eP,1)]):y.current.lr=!1}tE();var tr=!0===eV?0:eV;"number"==typeof tr&&(h<ef.left&&(ej-=h-ef.left-ew,U.x+en<ef.left+tr&&(ej+=U.x-ef.left+en-tr)),d>ef.right&&(ej-=d-ef.right-ew,U.x>ef.right-tr&&(ej+=U.x-ef.right+tr)));var tn=!0===eq?0:eq;"number"==typeof tn&&(u<ef.top&&(eB-=u-ef.top-ex,U.y+er<ef.top+tn&&(eB+=U.y-ef.top+er-tn)),f>ef.bottom&&(eB-=f-ef.bottom-ex,U.y>ef.bottom-tn&&(eB+=U.y-ef.bottom+tn)));var ti=W.x+ej,to=ti+et,ta=W.y+eB,ts=ta+ee,tl=U.x,tu=tl+en,tc=U.y,tf=tc+er,th=Math.max(ti,tl),td=Math.min(to,tu),tp=(th+td)/2,tm=tp-ti,tg=Math.max(ta,tc),tv=Math.min(ts,tf),tb=(tg+tv)/2,ty=tb-ta;null==l||l(t,eN);var t_=ep.right-W.x-(ej+W.width),tw=ep.bottom-W.y-(eB+W.height);1===em&&(ej=Math.round(ej),t_=Math.round(t_)),1===eg&&(eB=Math.round(eB),tw=Math.round(tw));var tx={ready:!0,offsetX:ej/em,offsetY:eB/eg,offsetR:t_/em,offsetB:tw/eg,arrowX:tm/em,arrowY:ty/eg,scaleX:em,scaleY:eg,align:eN};m(tx)}function tS(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eh,n=W.x+e,i=W.y+t,o=n+et,a=i+ee,s=Math.max(n,r.left),l=Math.max(i,r.top);return Math.max(0,(Math.min(o,r.right)-s)*(Math.min(a,r.bottom)-l))}function tE(){f=(u=W.y+eB)+ee,d=(h=W.x+ej)+et}}}),x=function(){v.current+=1;var e=v.current;Promise.resolve().then(function(){v.current===e&&w()})},S=function(){m(function(e){return(0,n.Z)((0,n.Z)({},e),{},{ready:!1})})};return(0,p.Z)(S,[o]),(0,p.Z)(function(){e||S()},[e]),[d.ready,d.offsetX,d.offsetY,d.offsetR,d.offsetB,d.arrowX,d.arrowY,d.scaleX,d.scaleY,d.align,x]}var Z=r(81632);function H(e,t,r,n,i){(0,p.Z)(function(){if(e&&t&&r){var o=r,a=M(t),s=M(o),l=R(o),u=new Set([l].concat((0,Z.Z)(a),(0,Z.Z)(s)));function c(){n(),i()}return u.forEach(function(e){e.addEventListener("scroll",c,{passive:!0})}),l.addEventListener("resize",c,{passive:!0}),n(),function(){u.forEach(function(e){e.removeEventListener("scroll",c),l.removeEventListener("resize",c)})}}},[e,t,r])}function G(e,t,r,n,i,o,a,s){var l=g.useRef(e);l.current=e,g.useEffect(function(){if(t&&n&&(!i||o)){var e=function(e){var t;l.current&&!a((null==(t=e.composedPath)||null==(t=t.call(e))?void 0:t[0])||e.target)&&s(!1)},u=R(n);u.addEventListener("mousedown",e,!0),u.addEventListener("contextmenu",e,!0);var c=(0,f.A)(r);return c&&(c.addEventListener("mousedown",e,!0),c.addEventListener("contextmenu",e,!0)),function(){u.removeEventListener("mousedown",e,!0),u.removeEventListener("contextmenu",e,!0),c&&(c.removeEventListener("mousedown",e,!0),c.removeEventListener("contextmenu",e,!0))}}},[t,r,n,i,o])}r(28740);var W=["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"];let V=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Z;return g.forwardRef(function(t,r){var a,s,v=t.prefixCls,b=void 0===v?"rc-trigger-popup":v,y=t.children,_=t.action,w=void 0===_?"hover":_,x=t.showAction,A=t.hideAction,O=t.popupVisible,I=t.defaultPopupVisible,R=t.onPopupVisibleChange,M=t.afterPopupVisibleChange,$=t.mouseEnterDelay,N=t.mouseLeaveDelay,j=void 0===N?.1:N,B=t.focusDelay,L=t.blurDelay,F=t.mask,D=t.maskClosable,z=void 0===D||D,Z=t.getPopupContainer,V=t.forceRender,q=t.autoDestroy,X=t.destroyPopupOnHide,Y=t.popup,K=t.popupClassName,J=t.popupStyle,Q=t.popupPlacement,ee=t.builtinPlacements,et=void 0===ee?{}:ee,er=t.popupAlign,en=t.zIndex,ei=t.stretch,eo=t.getPopupClassNameFromAlign,ea=t.fresh,es=t.alignPoint,el=t.onPopupClick,eu=t.onPopupAlign,ec=t.arrow,ef=t.popupMotion,eh=t.maskMotion,ed=t.popupTransitionName,ep=t.popupAnimation,em=t.maskTransitionName,eg=t.maskAnimation,ev=t.className,eb=t.getTriggerDOMNode,ey=(0,o.Z)(t,W),e_=q||X||!1,ew=g.useState(!1),ex=(0,i.Z)(ew,2),eS=ex[0],eE=ex[1];(0,p.Z)(function(){eE((0,m.Z)())},[]);var eC=g.useRef({}),eA=g.useContext(C),ek=g.useMemo(function(){return{registerSubPopup:function(e,t){eC.current[e]=t,null==eA||eA.registerSubPopup(e,t)}}},[eA]),eO=(0,d.Z)(),eI=g.useState(null),eT=(0,i.Z)(eI,2),eP=eT[0],eR=eT[1],eM=g.useRef(null),e$=(0,h.Z)(function(e){eM.current=e,(0,c.Sh)(e)&&eP!==e&&eR(e),null==eA||eA.registerSubPopup(eO,e)}),eN=g.useState(null),ej=(0,i.Z)(eN,2),eB=ej[0],eL=ej[1],eF=g.useRef(null),eD=(0,h.Z)(function(e){(0,c.Sh)(e)&&eB!==e&&(eL(e),eF.current=e)}),ez=g.Children.only(y),eU=(null==ez?void 0:ez.props)||{},eZ={},eH=(0,h.Z)(function(e){var t,r,n=eB;return(null==n?void 0:n.contains(e))||(null==(t=(0,f.A)(n))?void 0:t.host)===e||e===n||(null==eP?void 0:eP.contains(e))||(null==(r=(0,f.A)(eP))?void 0:r.host)===e||e===eP||Object.values(eC.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),eG=P(b,ef,ep,ed),eW=P(b,eh,eg,em),eV=g.useState(I||!1),eq=(0,i.Z)(eV,2),eX=eq[0],eY=eq[1],eK=null!=O?O:eX,eJ=(0,h.Z)(function(e){void 0===O&&eY(e)});(0,p.Z)(function(){eY(O||!1)},[O]);var eQ=g.useRef(eK);eQ.current=eK;var e0=g.useRef([]);e0.current=[];var e1=(0,h.Z)(function(e){var t;eJ(e),(null!=(t=e0.current[e0.current.length-1])?t:eK)!==e&&(e0.current.push(e),null==R||R(e))}),e2=g.useRef(),e3=function(){clearTimeout(e2.current)},e5=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e3(),0===t?e1(e):e2.current=setTimeout(function(){e1(e)},1e3*t)};g.useEffect(function(){return e3},[]);var e4=g.useState(!1),e6=(0,i.Z)(e4,2),e8=e6[0],e9=e6[1];(0,p.Z)(function(e){(!e||eK)&&e9(!0)},[eK]);var e7=g.useState(null),te=(0,i.Z)(e7,2),tt=te[0],tr=te[1],tn=g.useState(null),ti=(0,i.Z)(tn,2),to=ti[0],ta=ti[1],ts=function(e){ta([e.clientX,e.clientY])},tl=U(eK,eP,es&&null!==to?to:eB,Q,et,er,eu),tu=(0,i.Z)(tl,11),tc=tu[0],tf=tu[1],th=tu[2],td=tu[3],tp=tu[4],tm=tu[5],tg=tu[6],tv=tu[7],tb=tu[8],ty=tu[9],t_=tu[10],tw=k(eS,w,x,A),tx=(0,i.Z)(tw,2),tS=tx[0],tE=tx[1],tC=tS.has("click"),tA=tE.has("click")||tE.has("contextMenu"),tk=(0,h.Z)(function(){e8||t_()});H(eK,eB,eP,tk,function(){eQ.current&&es&&tA&&e5(!1)}),(0,p.Z)(function(){tk()},[to,Q]),(0,p.Z)(function(){eK&&!(null!=et&&et[Q])&&tk()},[JSON.stringify(er)]);var tO=g.useMemo(function(){var e=T(et,b,ty,es);return l()(e,null==eo?void 0:eo(ty))},[ty,eo,et,b,es]);g.useImperativeHandle(r,function(){return{nativeElement:eF.current,popupElement:eM.current,forceAlign:tk}});var tI=g.useState(0),tT=(0,i.Z)(tI,2),tP=tT[0],tR=tT[1],tM=g.useState(0),t$=(0,i.Z)(tM,2),tN=t$[0],tj=t$[1],tB=function(){if(ei&&eB){var e=eB.getBoundingClientRect();tR(e.width),tj(e.height)}},tL=function(){tB(),tk()},tF=function(e){e9(!1),t_(),null==M||M(e)},tD=function(){return new Promise(function(e){tB(),tr(function(){return e})})};function tz(e,t,r,n){eZ[e]=function(i){var o;null==n||n(i),e5(t,r);for(var a=arguments.length,s=Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];null==(o=eU[e])||o.call.apply(o,[eU,i].concat(s))}}(0,p.Z)(function(){tt&&(t_(),tt(),tr(null))},[tt]),(tC||tA)&&(eZ.onClick=function(e){var t;eQ.current&&tA?e5(!1):!eQ.current&&tC&&(ts(e),e5(!0));for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];null==(t=eU.onClick)||t.call.apply(t,[eU,e].concat(n))}),G(eK,tA,eB,eP,F,z,eH,e5);var tU=tS.has("hover"),tZ=tE.has("hover");tU&&(tz("onMouseEnter",!0,$,function(e){ts(e)}),tz("onPointerEnter",!0,$,function(e){ts(e)}),a=function(e){(eK||e8)&&null!=eP&&eP.contains(e.target)&&e5(!0,$)},es&&(eZ.onMouseMove=function(e){var t;null==(t=eU.onMouseMove)||t.call(eU,e)})),tZ&&(tz("onMouseLeave",!1,j),tz("onPointerLeave",!1,j),s=function(){e5(!1,j)}),tS.has("focus")&&tz("onFocus",!0,B),tE.has("focus")&&tz("onBlur",!1,L),tS.has("contextMenu")&&(eZ.onContextMenu=function(e){var t;eQ.current&&tE.has("contextMenu")?e5(!1):(ts(e),e5(!0)),e.preventDefault();for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];null==(t=eU.onContextMenu)||t.call.apply(t,[eU,e].concat(n))}),ev&&(eZ.className=l()(eU.className,ev));var tH=(0,n.Z)((0,n.Z)({},eU),eZ),tG={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(function(e){ey[e]&&(tG[e]=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];null==(t=tH[e])||t.call.apply(t,[tH].concat(n)),ey[e].apply(ey,n)})});var tW=g.cloneElement(ez,(0,n.Z)((0,n.Z)({},tH),tG)),tV={x:tm,y:tg},tq=ec?(0,n.Z)({},!0!==ec?ec:{}):null;return g.createElement(g.Fragment,null,g.createElement(u.Z,{disabled:!eK,ref:eD,onResize:tL},g.createElement(E,{getTriggerDOMNode:eb},tW)),g.createElement(C.Provider,{value:ek},g.createElement(S,{portal:e,ref:e$,prefixCls:b,popup:Y,className:l()(K,tO),style:J,target:eB,onMouseEnter:a,onMouseLeave:s,onPointerEnter:a,zIndex:en,open:eK,keepDom:e8,fresh:ea,onClick:el,mask:F,motion:eG,maskMotion:eW,onVisibleChanged:tF,onPrepare:tD,forceRender:V,autoDestroy:e_,getPopupContainer:Z,align:ty,arrow:tq,arrowPos:tV,ready:tc,offsetX:tf,offsetY:th,offsetR:td,offsetB:tp,onAlign:tk,stretch:ei,targetWidth:tP/tv,targetHeight:tN/tb})))})}(a.Z)},98536:function(e,t,r){"use strict";var n=r(57861).Buffer,i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.req=t.json=t.toBuffer=void 0;let s=a(r(66046)),l=a(r(2904));async function u(e){let t=0,r=[];for await(let n of e)t+=n.length,r.push(n);return n.concat(r,t)}t.toBuffer=u,t.json=async function(e){let t=(await u(e)).toString("utf8");try{return JSON.parse(t)}catch(r){let e=r;throw e.message+=` (input: ${t})`,e}},t.req=function(e,t={}){let r=(("string"==typeof e?e:e.href).startsWith("https:")?l:s).request(e,t),n=new Promise((e,t)=>{r.once("response",e).once("error",t).end()});return r.then=n.then.bind(n),r}},32313:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.Agent=void 0;let s=o(r(86110)),l=o(r(66046)),u=r(2904);a(r(98536),t);let c=Symbol("AgentBaseInternalState");class f extends l.Agent{constructor(e){super(e),this[c]={}}isSecureEndpoint(e){if(e){if("boolean"==typeof e.secureEndpoint)return e.secureEndpoint;if("string"==typeof e.protocol)return"https:"===e.protocol}let{stack:t}=Error();return"string"==typeof t&&t.split("\n").some(e=>-1!==e.indexOf("(https.js:")||-1!==e.indexOf("node:https:"))}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let t=new s.Socket({writable:!1});return this.sockets[e].push(t),this.totalSocketCount++,t}decrementSockets(e,t){if(!this.sockets[e]||null===t)return;let r=this.sockets[e],n=r.indexOf(t);-1!==n&&(r.splice(n,1),this.totalSocketCount--,0===r.length&&delete this.sockets[e])}getName(e){return("boolean"==typeof e.secureEndpoint?e.secureEndpoint:this.isSecureEndpoint(e))?u.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,t,r){let n={...t,secureEndpoint:this.isSecureEndpoint(t)},i=this.getName(n),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(i,o),a instanceof l.Agent)try{return a.addRequest(e,n)}catch(e){return r(e)}this[c].currentSocket=a,super.createSocket(e,t,r)},e=>{this.decrementSockets(i,o),r(e)})}createConnection(){let e=this[c].currentSocket;if(this[c].currentSocket=void 0,!e)throw Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[c].defaultPort??("https:"===this.protocol?443:80)}set defaultPort(e){this[c]&&(this[c].defaultPort=e)}get protocol(){return this[c].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[c]&&(this[c].protocol=e)}}t.Agent=f},8300:function(e,t,r){"use strict";e=r.nmd(e);let n=10,i=(e=0)=>t=>`\u001B[${38+e};5;${t}m`,o=(e=0)=>(t,r,n)=>`\u001B[${38+e};2;${t};${r};${n}m`;Object.defineProperty(e,"exports",{enumerable:!0,get:function(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};for(let[r,n]of(t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright,Object.entries(t))){for(let[r,i]of Object.entries(n))t[r]={open:`\u001B[${i[0]}m`,close:`\u001B[${i[1]}m`},n[r]=t[r],e.set(i[0],i[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1b[39m",t.bgColor.close="\x1b[49m",t.color.ansi256=i(),t.color.ansi16m=o(),t.bgColor.ansi256=i(n),t.bgColor.ansi16m=o(n),Object.defineProperties(t,{rgbToAnsi256:{value:(e,t,r)=>e===t&&t===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(r/255*5),enumerable:!1},hexToRgb:{value:e=>{let t=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(e.toString(16));if(!t)return[0,0,0];let{colorString:r}=t.groups;3===r.length&&(r=r.split("").map(e=>e+e).join(""));let n=Number.parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},enumerable:!1},hexToAnsi256:{value:e=>t.rgbToAnsi256(...t.hexToRgb(e)),enumerable:!1}}),t}})},49619:function(e,t,r){"use strict";r.d(t,{Z:()=>a});var n=r(44194),i=r(89258),o=r(64841);let a=e=>{let{space:t,form:r,children:a}=e;if(null==a)return null;let s=a;return r&&(s=n.createElement(i.Ux,{override:!0,status:!0},s)),t&&(s=n.createElement(o.BR,null,s)),s}},92708:function(e,t,r){"use strict";r.d(t,{Z:()=>l,i:()=>s});var n=r(44194),i=r(66744),o=r(16327),a=r(97266);function s(e){return t=>n.createElement(o.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},n.createElement(e,Object.assign({},t)))}let l=(e,t,r,o)=>s(s=>{let{prefixCls:l,style:u}=s,c=n.useRef(null),[f,h]=n.useState(0),[d,p]=n.useState(0),[m,g]=(0,i.Z)(!1,{value:s.open}),{getPrefixCls:v}=n.useContext(a.E_),b=v(t||"select",l);n.useEffect(()=>{if(g(!0),"undefined"!=typeof ResizeObserver){let e=new ResizeObserver(e=>{let t=e[0].target;h(t.offsetHeight+8),p(t.offsetWidth)}),t=setInterval(()=>{var n;let i=r?`.${r(b)}`:`.${b}-dropdown`,o=null==(n=c.current)?void 0:n.querySelector(i);o&&(clearInterval(t),e.observe(o))},10);return()=>{clearInterval(t),e.disconnect()}}},[]);let y=Object.assign(Object.assign({},s),{style:Object.assign(Object.assign({},u),{margin:0}),open:m,visible:m,getPopupContainer:()=>c.current});o&&(y=o(y));let _={paddingBottom:f,position:"relative",minWidth:d};return n.createElement("div",{ref:c,style:_},n.createElement(e,Object.assign({},y)))})},29514:function(e,t,r){"use strict";r.d(t,{Z:()=>o});var n=r(44194),i=r(55655);let o=e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:n.createElement(i.Z,null)}),t}},28175:function(e,t,r){"use strict";r.d(t,{Cn:()=>c,u6:()=>a});var n=r(44194),i=r(23248),o=r(97715);let a=1e3,s={Modal:100,Drawer:100,Popover:100,Popconfirm:100,Tooltip:100,Tour:100,FloatButton:100},l={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function u(e){return e in s}let c=(e,t)=>{let r,[,a]=(0,i.ZP)(),c=n.useContext(o.Z),f=u(e);if(void 0!==t)r=[t,t];else{let n=null!=c?c:0;f?n+=(c?0:a.zIndexPopupBase)+s[e]:n+=l[e],r=[void 0===c?t:n,n]}return r}},19150:function(e,t,r){"use strict";r.d(t,{Z:()=>u,m:()=>l});var n=r(97266);let i=()=>({height:0,opacity:0}),o=e=>{let{scrollHeight:t}=e;return{height:t,opacity:1}},a=e=>({height:e?e.offsetHeight:0}),s=(e,t)=>(null==t?void 0:t.deadline)===!0||"height"===t.propertyName,l=(e,t,r)=>void 0!==r?r:`${e}-${t}`,u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.Rf;return{motionName:`${e}-motion-collapse`,onAppearStart:i,onEnterStart:i,onAppearActive:o,onEnterActive:o,onLeaveStart:a,onLeaveActive:i,onAppearEnd:s,onEnterEnd:s,onLeaveEnd:s,motionDeadline:500}}},19481:function(e,t,r){"use strict";r.d(t,{Z:()=>l});var n=r(79898);function i(e,t,r,n){if(!1===n)return{adjustX:!1,adjustY:!1};let i=n&&"object"==typeof n?n:{},o={};switch(e){case"top":case"bottom":o.shiftX=2*t.arrowOffsetHorizontal+r,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=2*t.arrowOffsetVertical+r,o.shiftX=!0,o.adjustX=!0}let a=Object.assign(Object.assign({},o),i);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}let o={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"]}},a={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"]}},s=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function l(e){let{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:l,offset:u,borderRadius:c,visibleFirst:f}=e,h=t/2,d={};return Object.keys(o).forEach(e=>{let p=Object.assign(Object.assign({},l&&a[e]||o[e]),{offset:[0,0],dynamicInset:!0});switch(d[e]=p,s.has(e)&&(p.autoArrow=!1),e){case"top":case"topLeft":case"topRight":p.offset[1]=-h-u;break;case"bottom":case"bottomLeft":case"bottomRight":p.offset[1]=h+u;break;case"left":case"leftTop":case"leftBottom":p.offset[0]=-h-u;break;case"right":case"rightTop":case"rightBottom":p.offset[0]=h+u}let m=(0,n.wZ)({contentRadius:c,limitVerticalRadius:!0});if(l)switch(e){case"topLeft":case"bottomLeft":p.offset[0]=-m.arrowOffsetHorizontal-h;break;case"topRight":case"bottomRight":p.offset[0]=m.arrowOffsetHorizontal+h;break;case"leftTop":case"rightTop":p.offset[1]=-(2*m.arrowOffsetHorizontal)+h;break;case"leftBottom":case"rightBottom":p.offset[1]=2*m.arrowOffsetHorizontal-h}p.overflow=i(e,m,t,r),f&&(p.htmlRegion="visibleFirst")}),d}},33174:function(e,t,r){"use strict";r.d(t,{M2:()=>i,Tm:()=>a,wm:()=>o});var n=r(44194);function i(e){return e&&n.isValidElement(e)&&e.type===n.Fragment}let o=(e,t,r)=>n.isValidElement(e)?n.cloneElement(e,"function"==typeof r?r(e.props||{}):r):t;function a(e,t){return o(e,e,t)}},28706:function(e,t,r){"use strict";r.d(t,{F:()=>a,Z:()=>o});var n=r(41229),i=r.n(n);function o(e,t,r){return i()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:r})}let a=(e,t)=>t||e},24402:function(e,t,r){"use strict";r.d(t,{G8:()=>o,ln:()=>a});var n=r(44194);function i(){}r(28740);let o=n.createContext({}),a=()=>{let e=()=>{};return e.deprecated=i,e}},48142:function(e,t,r){"use strict";r.d(t,{Z:()=>C});var n=r(44194),i=r(41229),o=r.n(i),a=r(19014),s=r(38726),l=r(97266),u=r(33174),c=r(15022);let f=e=>{let{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:`box-shadow 0.4s ${e.motionEaseOutCirc},opacity 2s ${e.motionEaseOutCirc}`,"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut},opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}}}},h=(0,c.A1)("Wave",e=>[f(e)]);var d=r(81446),p=r(2281),m=r(23248),g=r(85864),v=r(55940),b=r(41309);function y(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function _(e){let{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return y(t)?t:y(r)?r:y(n)?n:null}function w(e){return Number.isNaN(e)?0:e}let x=e=>{let{className:t,target:r,component:i}=e,a=n.useRef(null),[l,u]=n.useState(null),[c,f]=n.useState([]),[h,d]=n.useState(0),[m,y]=n.useState(0),[x,S]=n.useState(0),[E,C]=n.useState(0),[A,k]=n.useState(!1),O={left:h,top:m,width:x,height:E,borderRadius:c.map(e=>`${e}px`).join(" ")};function I(){let e=getComputedStyle(r);u(_(r));let t="static"===e.position,{borderLeftWidth:n,borderTopWidth:i}=e;d(t?r.offsetLeft:w(-parseFloat(n))),y(t?r.offsetTop:w(-parseFloat(i))),S(r.offsetWidth),C(r.offsetHeight);let{borderTopLeftRadius:o,borderTopRightRadius:a,borderBottomLeftRadius:s,borderBottomRightRadius:l}=e;f([o,a,l,s].map(e=>w(parseFloat(e))))}if(l&&(O["--wave-color"]=l),n.useEffect(()=>{if(r){let e,t=(0,p.Z)(()=>{I(),k(!0)});return"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(I)).observe(r),()=>{p.Z.cancel(t),null==e||e.disconnect()}}},[]),!A)return null;let T=("Checkbox"===i||"Radio"===i)&&(null==r?void 0:r.classList.contains(g.A));return n.createElement(v.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var r;if(t.deadline||"opacity"===t.propertyName){let e=null==(r=a.current)?void 0:r.parentElement;(0,b.v)(e).then(()=>{null==e||e.remove()})}return!1}},(e,r)=>{let{className:i}=e;return n.createElement("div",{ref:(0,s.sQ)(a,r),className:o()(t,i,{"wave-quick":T}),style:O})})},S=(e,t)=>{var r;let{component:i}=t;if("Checkbox"===i&&!(null==(r=e.querySelector("input"))?void 0:r.checked))return;let o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==e||e.insertBefore(o,null==e?void 0:e.firstChild),(0,b.s)(n.createElement(x,Object.assign({},t,{target:e})),o)},E=(e,t,r)=>{let{wave:i}=n.useContext(l.E_),[,o,a]=(0,m.ZP)(),s=(0,d.Z)(n=>{let s=e.current;if((null==i?void 0:i.disabled)||!s)return;let l=s.querySelector(`.${g.A}`)||s,{showEffect:u}=i||{};(u||S)(l,{className:t,token:o,component:r,event:n,hashId:a})}),u=n.useRef();return e=>{p.Z.cancel(u.current),u.current=(0,p.Z)(()=>{s(e)})}},C=e=>{let{children:t,disabled:r,component:i}=e,{getPrefixCls:c}=(0,n.useContext)(l.E_),f=(0,n.useRef)(null),d=c("wave"),[,p]=h(d),m=E(f,o()(d,p),i);if(n.useEffect(()=>{let e=f.current;if(!e||1!==e.nodeType||r)return;let t=t=>{!(0,a.Z)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||m(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[r]),!n.isValidElement(t))return null!=t?t:null;let g=(0,s.Yr)(t)?(0,s.sQ)(t.ref,f):f;return(0,u.Tm)(t,{ref:g})}},85864:function(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(97266);let i=`${n.Rf}-wave-target`},97715:function(e,t,r){"use strict";r.d(t,{Z:()=>n});let n=r(44194).createContext(void 0)},99598:function(e,t,r){"use strict";r.d(t,{Z:()=>F});var n=r(44194),i=r(4007),o=r(55655),a=r(32110),s=r(73654),l=r(24452),u=r(41229),c=r.n(u),f=r(55940),h=r(24758),d=r(38726),p=r(33174),m=r(97266),g=r(99607),v=r(46324),b=r(15022);let y=(e,t,r,n,i)=>({background:e,border:`${(0,g.bf)(n.lineWidth)} ${n.lineType} ${t}`,[`${i}-icon`]:{color:r}}),_=e=>{let{componentCls:t,motionDurationSlow:r,marginXS:n,marginSM:i,fontSize:o,fontSizeLG:a,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:u,withDescriptionIconSize:c,colorText:f,colorTextHeading:h,withDescriptionPadding:d,defaultPadding:p}=e;return{[t]:Object.assign(Object.assign({},(0,v.Wf)(e)),{position:"relative",display:"flex",alignItems:"center",padding:p,wordWrap:"break-word",borderRadius:l,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:n,lineHeight:0},"&-description":{display:"none",fontSize:o,lineHeight:s},"&-message":{color:h},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${r} ${u}, opacity ${r} ${u},
5
5
  padding-top ${r} ${u}, padding-bottom ${r} ${u},
@@ -684,5 +684,5 @@ ${e}`:e}},h=Object.create(null),d=class e{constructor(t){let r=-1!==(t={...e.def
684
684
  `:t}static _getFromCache(t,r,n,i){let o=n[t];return"number"!=typeof o&&(o=e._measureText(t,r,i)+r,n[t]=o),o}static _collapseSpaces(e){return"normal"===e||"pre-line"===e}static _collapseNewlines(e){return"normal"===e}static _trimRight(t){if("string"!=typeof t)return"";for(let r=t.length-1;r>=0;r--){let n=t[r];if(!e.isBreakingSpace(n))break;t=t.slice(0,-1)}return t}static _isNewline(t){return"string"==typeof t&&e._newlines.includes(t.charCodeAt(0))}static isBreakingSpace(t,r){return"string"==typeof t&&e._breakingSpaces.includes(t.charCodeAt(0))}static _tokenize(t){let r=[],n="";if("string"!=typeof t)return r;for(let i=0;i<t.length;i++){let o=t[i],a=t[i+1];if(e.isBreakingSpace(o,a)||e._isNewline(o)){""!==n&&(r.push(n),n=""),r.push(o);continue}n+=o}return""!==n&&r.push(n),r}static canBreakWords(e,t){return t}static canBreakChars(e,t,r,n,i){return!0}static wordWrapSplit(t){return e.graphemeSegmenter(t)}static measureFont(t){if(e._fonts[t])return e._fonts[t];let r=e._context;r.font=t;let n=r.measureText(e.METRICS_STRING+e.BASELINE_SYMBOL),i={ascent:n.actualBoundingBoxAscent,descent:n.actualBoundingBoxDescent,fontSize:n.actualBoundingBoxAscent+n.actualBoundingBoxDescent};return e._fonts[t]=i,i}static clearMetrics(t=""){t?delete e._fonts[t]:e._fonts={}}static get _canvas(){if(!e.__canvas){let t;try{let r=new OffscreenCanvas(0,0),i=r.getContext("2d",o);if(i?.measureText)return e.__canvas=r,r;t=n.z.get().createCanvas()}catch(e){t=n.z.get().createCanvas()}t.width=t.height=10,e.__canvas=t}return e.__canvas}static get _context(){return e.__context||(e.__context=e._canvas.getContext("2d",o)),e.__context}};a.METRICS_STRING="|\xc9q\xc5",a.BASELINE_SYMBOL="M",a.BASELINE_MULTIPLIER=1.4,a.HEIGHT_MULTIPLIER=2,a.graphemeSegmenter=(()=>{if("function"==typeof Intl?.Segmenter){let e=new Intl.Segmenter;return t=>[...e.segment(t)].map(e=>e.segment)}return e=>[...e]})(),a.experimentalLetterSpacing=!1,a._fonts={},a._newlines=[10,13],a._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288],a._measurementCache={};let s=a},92007:function(e,t,r){"use strict";r.d(t,{M:()=>i});let n=["serif","sans-serif","monospace","cursive","fantasy","system-ui"];function i(e){let t="number"==typeof e.fontSize?`${e.fontSize}px`:e.fontSize,r=e.fontFamily;Array.isArray(e.fontFamily)||(r=e.fontFamily.split(","));for(let e=r.length-1;e>=0;e--){let t=r[e].trim();/([\"\'])[^\'\"]+\1/.test(t)||n.includes(t)||(t=`"${t}"`),r[e]=t}return`${e.fontStyle} ${e.fontVariant} ${e.fontWeight} ${t} ${r.join(",")}`}},71722:function(e,t,r){"use strict";r.d(t,{L:()=>i});let n=["_fontFamily","_fontStyle","_fontSize","_fontVariant","_fontWeight","_breakWords","_align","_leading","_letterSpacing","_lineHeight","_textBaseline","_whiteSpace","_wordWrap","_wordWrapWidth","_padding","_cssOverrides","_trim"];function i(e){let t=[],r=0;for(let i=0;i<n.length;i++){let o=n[i];t[r++]=e[o]}return r=o(e._fill,t,r),r=a(e._stroke,t,r),t.join("-")}function o(e,t,r){return e&&(t[r++]=e.color,t[r++]=e.alpha,t[r++]=e.fill?.uid),r}function a(e,t,r){return e&&(r=o(e,t,r),t[r++]=e.width,t[r++]=e.alignment,t[r++]=e.cap,t[r++]=e.join,t[r++]=e.miterLimit),r}},65003:function(e,t,r){"use strict";var n=r(91957),i=r(79886),o=r(87894),a=r(86160),s=r(41277),l=r(15792),u=r(45266);let c=class e{constructor(e,t){this.linkedSheets=[],this._texture=e instanceof s.x?e:null,this.textureSource=e.source,this.textures={},this.animations={},this.data=t;let r=parseFloat(t.meta.scale);r?(this.resolution=r,e.source.resolution=this.resolution):this.resolution=e.source._resolution,this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}parse(){return new Promise(t=>{this._callback=t,this._batchIndex=0,this._frameKeys.length<=e.BATCH_SIZE?(this._processFrames(0),this._processAnimations(),this._parseComplete()):this._nextBatch()})}_processFrames(t){let r=t,n=e.BATCH_SIZE;for(;r-t<n&&r<this._frameKeys.length;){let e=this._frameKeys[r],t=this._frames[e],n=t.frame;if(n){let r=null,i=null,o=!1!==t.trimmed&&t.sourceSize?t.sourceSize:t.frame,a=new u.A(0,0,Math.floor(o.w)/this.resolution,Math.floor(o.h)/this.resolution);r=t.rotated?new u.A(Math.floor(n.x)/this.resolution,Math.floor(n.y)/this.resolution,Math.floor(n.h)/this.resolution,Math.floor(n.w)/this.resolution):new u.A(Math.floor(n.x)/this.resolution,Math.floor(n.y)/this.resolution,Math.floor(n.w)/this.resolution,Math.floor(n.h)/this.resolution),!1!==t.trimmed&&t.spriteSourceSize&&(i=new u.A(Math.floor(t.spriteSourceSize.x)/this.resolution,Math.floor(t.spriteSourceSize.y)/this.resolution,Math.floor(n.w)/this.resolution,Math.floor(n.h)/this.resolution)),this.textures[e]=new s.x({source:this.textureSource,frame:r,orig:a,trim:i,rotate:2*!!t.rotated,defaultAnchor:t.anchor,defaultBorders:t.borders,label:e.toString()})}r++}}_processAnimations(){let e=this.data.animations||{};for(let t in e){this.animations[t]=[];for(let r=0;r<e[t].length;r++){let n=e[t][r];this.animations[t].push(this.textures[n])}}}_parseComplete(){let e=this._callback;this._callback=null,this._batchIndex=0,e.call(this,this.textures)}_nextBatch(){this._processFrames(this._batchIndex*e.BATCH_SIZE),this._batchIndex++,setTimeout(()=>{this._batchIndex*e.BATCH_SIZE<this._frameKeys.length?this._nextBatch():(this._processAnimations(),this._parseComplete())},0)}destroy(e=!1){for(let e in this.textures)this.textures[e].destroy();this._frames=null,this._frameKeys=null,this.data=null,this.textures=null,e&&(this._texture?.destroy(),this.textureSource.destroy()),this._texture=null,this.textureSource=null,this.linkedSheets=[]}};c.BATCH_SIZE=1e3;let f=c,h=["jpg","png","jpeg","avif","webp","basis","etc2","bc7","bc6h","bc5","bc4","bc3","bc2","bc1","eac","astc"];function d(e,t,r){let n={};if(e.forEach(e=>{n[e]=t}),Object.keys(t.textures).forEach(e=>{n[e]=t.textures[e]}),!r){let r=l.E.dirname(e[0]);t.linkedSheets.forEach((e,i)=>{Object.assign(n,d([`${r}/${t.data.meta.related_multi_packs[i]}`],e,!0))})}return n}let p={extension:n.nw.Asset,cache:{test:e=>e instanceof f,getCacheableAssets:(e,t)=>d(e,t,!1)},resolver:{test:e=>{let t=e.split("?")[0].split("."),r=t.pop(),n=t.pop();return"json"===r&&h.includes(n)},parse:e=>{let t=e.split(".");return{resolution:parseFloat(o.H.RETINA_PREFIX.exec(e)?.[1]??"1"),format:t[t.length-2],src:e}}},loader:{name:"spritesheetLoader",extension:{type:n.nw.LoadParser,priority:i.Q.Normal},testParse:async(e,t)=>".json"===l.E.extname(t.src).toLowerCase()&&!!e.frames,async parse(e,t,r){let n,{texture:i,imageFilename:o}=t?.data??{},u=l.E.dirname(t.src);if(u&&u.lastIndexOf("/")!==u.length-1&&(u+="/"),i instanceof s.x)n=i;else{let i=(0,a.u)(u+(o??e.meta.image),t.src);n=(await r.load([i]))[i]}let c=new f(n.source,e);await c.parse();let h=e?.meta?.related_multi_packs;if(Array.isArray(h)){let e=[];for(let n of h){if("string"!=typeof n)continue;let i=u+n;t.data?.ignoreMultiPack||(i=(0,a.u)(i,t.src),e.push(r.load({src:i,data:{ignoreMultiPack:!0}})))}let n=await Promise.all(e);c.linkedSheets=n,n.forEach(e=>{e.linkedSheets=[c].concat(c.linkedSheets.filter(t=>t!==e))})}return c},async unload(e,t,r){await r.unload(e.textureSource._sourceOrigin),e.destroy(!1)}}};n.Rw.add(p)},96743:function(e,t,r){"use strict";r.d(t,{v:()=>a});var n=r(95909);class i{constructor(e,t=null,r=0,n=!1){this.next=null,this.previous=null,this._destroyed=!1,this._fn=e,this._context=t,this.priority=r,this._once=n}match(e,t=null){return this._fn===e&&this._context===t}emit(e){this._fn&&(this._context?this._fn.call(this._context,e):this._fn(e));let t=this.next;return this._once&&this.destroy(!0),this._destroyed&&(this.next=null),t}connect(e){this.previous=e,e.next&&(e.next.previous=this),this.next=e.next,e.next=this}destroy(e=!1){this._destroyed=!0,this._fn=null,this._context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);let t=this.next;return this.next=e?null:t,this.previous=null,t}}let o=class e{constructor(){this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new i(null,null,1/0),this.deltaMS=1/e.targetFPMS,this.elapsedMS=1/e.targetFPMS,this._tick=e=>{this._requestId=null,this.started&&(this.update(e),this.started&&null===this._requestId&&this._head.next&&(this._requestId=requestAnimationFrame(this._tick)))}}_requestIfNeeded(){null===this._requestId&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))}_cancelIfNeeded(){null!==this._requestId&&(cancelAnimationFrame(this._requestId),this._requestId=null)}_startIfPossible(){this.started?this._requestIfNeeded():this.autoStart&&this.start()}add(e,t,r=n.u.NORMAL){return this._addListener(new i(e,t,r))}addOnce(e,t,r=n.u.NORMAL){return this._addListener(new i(e,t,r,!0))}_addListener(e){let t=this._head.next,r=this._head;if(t){for(;t;){if(e.priority>t.priority){e.connect(r);break}r=t,t=t.next}e.previous||e.connect(r)}else e.connect(r);return this._startIfPossible(),this}remove(e,t){let r=this._head.next;for(;r;)r=r.match(e,t)?r.destroy():r.next;return this._head.next||this._cancelIfNeeded(),this}get count(){if(!this._head)return 0;let e=0,t=this._head;for(;t=t.next;)e++;return e}start(){this.started||(this.started=!0,this._requestIfNeeded())}stop(){this.started&&(this.started=!1,this._cancelIfNeeded())}destroy(){if(!this._protected){this.stop();let e=this._head.next;for(;e;)e=e.destroy(!0);this._head.destroy(),this._head=null}}update(t=performance.now()){let r;if(t>this.lastTime){if((r=this.elapsedMS=t-this.lastTime)>this._maxElapsedMS&&(r=this._maxElapsedMS),r*=this.speed,this._minElapsedMS){let e=t-this._lastFrame|0;if(e<this._minElapsedMS)return;this._lastFrame=t-e%this._minElapsedMS}this.deltaMS=r,this.deltaTime=this.deltaMS*e.targetFPMS;let n=this._head,i=n.next;for(;i;)i=i.emit(this);n.next||this._cancelIfNeeded()}else this.deltaTime=this.deltaMS=this.elapsedMS=0;this.lastTime=t}get FPS(){return 1e3/this.elapsedMS}get minFPS(){return 1e3/this._maxElapsedMS}set minFPS(t){let r=Math.min(Math.max(0,Math.min(this.maxFPS,t))/1e3,e.targetFPMS);this._maxElapsedMS=1/r}get maxFPS(){return this._minElapsedMS?Math.round(1e3/this._minElapsedMS):0}set maxFPS(e){if(0===e)this._minElapsedMS=0;else{let t=Math.max(this.minFPS,e);this._minElapsedMS=1/(t/1e3)}}static get shared(){if(!e._shared){let t=e._shared=new e;t.autoStart=!0,t._protected=!0}return e._shared}static get system(){if(!e._system){let t=e._system=new e;t.autoStart=!0,t._protected=!0}return e._system}};o.targetFPMS=.06;let a=o},95909:function(e,t,r){"use strict";let n;r.d(t,{u:()=>i});var i=((n=i||{})[n.INTERACTION=50]="INTERACTION",n[n.HIGH=25]="HIGH",n[n.NORMAL=0]="NORMAL",n[n.LOW=-25]="LOW",n[n.UTILITY=-50]="UTILITY",n)},83264:function(e,t,r){"use strict";var n=r(15011),i=r(37861),o=r(87434),a=r(1839),s=r(63949),l=r(17638),u=r(95753),c=r(73109),f=r(62815),h=r(47191);function d(){return p}function p(e,t,r){let n=e.gl,i=e.shader,o=i._getProgramData(t.glProgram);for(let a in t.groups){let s=t.groups[a];for(let l in s.resources){let d=s.resources[l];if(d instanceof c.o)d.ubo?i.bindUniformBlock(d,t._uniformBindMap[a][l],r.blockIndex++):i.updateUniformGroup(d);else if(d instanceof u.q)i.bindUniformBlock(d,t._uniformBindMap[a][l],r.blockIndex++);else if(d instanceof f.p){e.texture.bind(d,r.textureCount);let i=t._uniformBindMap[a][l],s=o.uniformData[i];s&&(s.value!==r.textureCount&&n.uniform1i(s.location,r.textureCount),r.textureCount++)}else h.L}}}var m=r(5468),g=r(98790),v=r(4281);let b=[(e,t,r,n,i)=>{let o=n[e].toArray(!0);t[r]=o[0],t[r+1]=o[1],t[r+2]=o[2],t[r+4]=o[3],t[r+5]=o[4],t[r+6]=o[5],t[r+8]=o[6],t[r+9]=o[7],t[r+10]=o[8]},(e,t,r,n,i)=>{i=n[e],t[r]=i.x,t[r+1]=i.y,t[r+2]=i.width,t[r+3]=i.height},(e,t,r,n,i)=>{i=n[e],t[r]=i.x,t[r+1]=i.y},(e,t,r,n,i)=>{i=n[e],t[r]=i.red,t[r+1]=i.green,t[r+2]=i.blue,t[r+3]=i.alpha},(e,t,r,n,i)=>{i=n[e],t[r]=i.red,t[r+1]=i.green,t[r+2]=i.blue}],y={f32:(e,t,r,n,i)=>{t[r]=i},i32:(e,t,r,n,i)=>{t[r]=i},"vec2<f32>":(e,t,r,n,i)=>{t[r]=i[0],t[r+1]=i[1]},"vec3<f32>":(e,t,r,n,i)=>{t[r]=i[0],t[r+1]=i[1],t[r+2]=i[2]},"vec4<f32>":(e,t,r,n,i)=>{t[r]=i[0],t[r+1]=i[1],t[r+2]=i[2],t[r+3]=i[3]},"mat2x2<f32>":(e,t,r,n,i)=>{t[r]=i[0],t[r+1]=i[1],t[r+2]=i[2],t[r+3]=i[3]},"mat3x3<f32>":(e,t,r,n,i)=>{t[r]=i[0],t[r+1]=i[1],t[r+2]=i[2],t[r+4]=i[3],t[r+5]=i[4],t[r+6]=i[5],t[r+8]=i[6],t[r+9]=i[7],t[r+10]=i[8]},"mat4x4<f32>":(e,t,r,n,i)=>{for(let e=0;e<16;e++)t[r+e]=i[e]},"mat3x2<f32>":(e,t,r,n,i)=>{for(let e=0;e<6;e++)t[r+(e/3|0)*4+e%3]=i[e]},"mat4x2<f32>":(e,t,r,n,i)=>{for(let e=0;e<8;e++)t[r+(e/4|0)*4+e%4]=i[e]},"mat2x3<f32>":(e,t,r,n,i)=>{for(let e=0;e<6;e++)t[r+(e/2|0)*4+e%2]=i[e]},"mat4x3<f32>":(e,t,r,n,i)=>{for(let e=0;e<12;e++)t[r+(e/4|0)*4+e%4]=i[e]},"mat2x4<f32>":(e,t,r,n,i)=>{for(let e=0;e<8;e++)t[r+(e/2|0)*4+e%2]=i[e]},"mat3x4<f32>":(e,t,r,n,i)=>{for(let e=0;e<12;e++)t[r+(e/3|0)*4+e%3]=i[e]}},_={f32:(e,t,r,n,i)=>{t[r]=i},i32:(e,t,r,n,i)=>{t[r]=i},"vec2<f32>":(e,t,r,n,i)=>{t[r]=i[0],t[r+1]=i[1]},"vec3<f32>":(e,t,r,n,i)=>{t[r]=i[0],t[r+1]=i[1],t[r+2]=i[2]},"vec4<f32>":(e,t,r,n,i)=>{t[r]=i[0],t[r+1]=i[1],t[r+2]=i[2],t[r+3]=i[3]},"mat2x2<f32>":(e,t,r,n,i)=>{t[r]=i[0],t[r+1]=i[1],t[r+4]=i[2],t[r+5]=i[3]},"mat3x3<f32>":(e,t,r,n,i)=>{t[r]=i[0],t[r+1]=i[1],t[r+2]=i[2],t[r+4]=i[3],t[r+5]=i[4],t[r+6]=i[5],t[r+8]=i[6],t[r+9]=i[7],t[r+10]=i[8]},"mat4x4<f32>":(e,t,r,n,i)=>{for(let e=0;e<16;e++)t[r+e]=i[e]},"mat3x2<f32>":(e,t,r,n,i)=>{for(let e=0;e<6;e++)t[r+(e/3|0)*4+e%3]=i[e]},"mat4x2<f32>":(e,t,r,n,i)=>{for(let e=0;e<8;e++)t[r+(e/4|0)*4+e%4]=i[e]},"mat2x3<f32>":(e,t,r,n,i)=>{for(let e=0;e<6;e++)t[r+(e/2|0)*4+e%2]=i[e]},"mat4x3<f32>":(e,t,r,n,i)=>{for(let e=0;e<12;e++)t[r+(e/4|0)*4+e%4]=i[e]},"mat2x4<f32>":(e,t,r,n,i)=>{for(let e=0;e<8;e++)t[r+(e/2|0)*4+e%2]=i[e]},"mat3x4<f32>":(e,t,r,n,i)=>{for(let e=0;e<12;e++)t[r+(e/3|0)*4+e%3]=i[e]}};function w(e){return S(e,_,e=>{let t=Math.max(m.P[e.data.type]/16,1),r=e.data.value.length/e.data.size,n=(4-r%4)%4;return(i,o,a,s,l)=>{let u=0;for(let i=0;i<e.data.size*t;i++){for(let e=0;e<r;e++)o[a++]=l[u++];a+=n}}})}function x(e){return S(e,y,e=>{let{size:t,align:r}=g.j[e.data.type],n=(t-r)/4;return(r,i,o,a,s)=>{let l=0;for(let r=0;r<e.data.size*(t/4);r++){for(let e=0;e<t/4;e++)i[o++]=s[l++];o+=n}}})}function S(e,t,r){let n={};for(let i in e){let o=e[i],a=o.data,s=!1;n[a.name]={offset:o.offset/4,func:null};for(let e=0;e<v.s.length;e++){let t=v.s[e];if(a.type===t.type&&t.test(a)){n[a.name].func=b[e],s=!0;break}}s||(1===a.size?n[a.name].func=t[a.type]:n[a.name].func=r(o))}return(e,t,r)=>{for(let i in n)n[i].func(i,t,r+n[i].offset,e,e[i])}}let E={f32(e,t,r,n,i,o,a){r!==n&&(t.value=n,a.uniform1f(i[e].location,n))},"vec2<f32>"(e,t,r,n,i,o,a){(r[0]!==n[0]||r[1]!==n[1])&&(r[0]=n[0],r[1]=n[1],a.uniform2f(i[e].location,n[0],n[1]))},"vec3<f32>"(e,t,r,n,i,o,a){(r[0]!==n[0]||r[1]!==n[1]||r[2]!==n[2])&&(r[0]=n[0],r[1]=n[1],r[2]=n[2],a.uniform3f(i[e].location,n[0],n[1],n[2]))},"vec4<f32>"(e,t,r,n,i,o,a){(r[0]!==n[0]||r[1]!==n[1]||r[2]!==n[2]||r[3]!==n[3])&&(r[0]=n[0],r[1]=n[1],r[2]=n[2],r[3]=n[3],a.uniform4f(i[e].location,n[0],n[1],n[2],n[3]))},i32(e,t,r,n,i,o,a){r!==n&&(t.value=n,a.uniform1i(i[e].location,n))},"vec2<i32>"(e,t,r,n,i,o,a){(r[0]!==n[0]||r[1]!==n[1])&&(r[0]=n[0],r[1]=n[1],a.uniform2i(i[e].location,n[0],n[1]))},"vec3<i32>"(e,t,r,n,i,o,a){(r[0]!==n[0]||r[1]!==n[1]||r[2]!==n[2])&&(r[0]=n[0],r[1]=n[1],r[2]=n[2],a.uniform3i(i[e].location,n[0],n[1],n[2]))},"vec4<i32>"(e,t,r,n,i,o,a){(r[0]!==n[0]||r[1]!==n[1]||r[2]!==n[2]||r[3]!==n[3])&&(r[0]=n[0],r[1]=n[1],r[2]=n[2],r[3]=n[3],a.uniform4i(i[e].location,n[0],n[1],n[2],n[3]))},u32(e,t,r,n,i,o,a){r!==n&&(t.value=n,a.uniform1ui(i[e].location,n))},"vec2<u32>"(e,t,r,n,i,o,a){(r[0]!==n[0]||r[1]!==n[1])&&(r[0]=n[0],r[1]=n[1],a.uniform2ui(i[e].location,n[0],n[1]))},"vec3<u32>"(e,t,r,n,i,o,a){(r[0]!==n[0]||r[1]!==n[1]||r[2]!==n[2])&&(r[0]=n[0],r[1]=n[1],r[2]=n[2],a.uniform3ui(i[e].location,n[0],n[1],n[2]))},"vec4<u32>"(e,t,r,n,i,o,a){(r[0]!==n[0]||r[1]!==n[1]||r[2]!==n[2]||r[3]!==n[3])&&(r[0]=n[0],r[1]=n[1],r[2]=n[2],r[3]=n[3],a.uniform4ui(i[e].location,n[0],n[1],n[2],n[3]))},bool(e,t,r,n,i,o,a){r!==n&&(t.value=n,a.uniform1i(i[e].location,n))},"vec2<bool>"(e,t,r,n,i,o,a){(r[0]!==n[0]||r[1]!==n[1])&&(r[0]=n[0],r[1]=n[1],a.uniform2i(i[e].location,n[0],n[1]))},"vec3<bool>"(e,t,r,n,i,o,a){(r[0]!==n[0]||r[1]!==n[1]||r[2]!==n[2])&&(r[0]=n[0],r[1]=n[1],r[2]=n[2],a.uniform3i(i[e].location,n[0],n[1],n[2]))},"vec4<bool>"(e,t,r,n,i,o,a){(r[0]!==n[0]||r[1]!==n[1]||r[2]!==n[2]||r[3]!==n[3])&&(r[0]=n[0],r[1]=n[1],r[2]=n[2],r[3]=n[3],a.uniform4i(i[e].location,n[0],n[1],n[2],n[3]))},"mat2x2<f32>"(e,t,r,n,i,o,a){a.uniformMatrix2fv(i[e].location,!1,n)},"mat3x3<f32>"(e,t,r,n,i,o,a){a.uniformMatrix3fv(i[e].location,!1,n)},"mat4x4<f32>"(e,t,r,n,i,o,a){a.uniformMatrix4fv(i[e].location,!1,n)}},C={f32(e,t,r,n,i,o,a){a.uniform1fv(i[e].location,n)},"vec2<f32>"(e,t,r,n,i,o,a){a.uniform2fv(i[e].location,n)},"vec3<f32>"(e,t,r,n,i,o,a){a.uniform3fv(i[e].location,n)},"vec4<f32>"(e,t,r,n,i,o,a){a.uniform4fv(i[e].location,n)},"mat2x2<f32>"(e,t,r,n,i,o,a){a.uniformMatrix2fv(i[e].location,!1,n)},"mat3x3<f32>"(e,t,r,n,i,o,a){a.uniformMatrix3fv(i[e].location,!1,n)},"mat4x4<f32>"(e,t,r,n,i,o,a){a.uniformMatrix4fv(i[e].location,!1,n)},i32(e,t,r,n,i,o,a){a.uniform1iv(i[e].location,n)},"vec2<i32>"(e,t,r,n,i,o,a){a.uniform2iv(i[e].location,n)},"vec3<i32>"(e,t,r,n,i,o,a){a.uniform3iv(i[e].location,n)},"vec4<i32>"(e,t,r,n,i,o,a){a.uniform4iv(i[e].location,n)},u32(e,t,r,n,i,o,a){a.uniform1iv(i[e].location,n)},"vec2<u32>"(e,t,r,n,i,o,a){a.uniform2iv(i[e].location,n)},"vec3<u32>"(e,t,r,n,i,o,a){a.uniform3iv(i[e].location,n)},"vec4<u32>"(e,t,r,n,i,o,a){a.uniform4iv(i[e].location,n)},bool(e,t,r,n,i,o,a){a.uniform1iv(i[e].location,n)},"vec2<bool>"(e,t,r,n,i,o,a){a.uniform2iv(i[e].location,n)},"vec3<bool>"(e,t,r,n,i,o,a){a.uniform3iv(i[e].location,n)},"vec4<bool>"(e,t,r,n,i,o,a){a.uniform4iv(i[e].location,n)}},A=[(e,t,r,n,i,o,a)=>{a.uniformMatrix3fv(i[e].location,!1,o[e].toArray(!0))},(e,t,r,n,i,o,a)=>{r=i[e].value,n=o[e],(r[0]!==n.x||r[1]!==n.y||r[2]!==n.width||r[3]!==n.height)&&(r[0]=n.x,r[1]=n.y,r[2]=n.width,r[3]=n.height,a.uniform4f(i[e].location,n.x,n.y,n.width,n.height))},(e,t,r,n,i,o,a)=>{r=i[e].value,n=o[e],(r[0]!==n.x||r[1]!==n.y)&&(r[0]=n.x,r[1]=n.y,a.uniform2f(i[e].location,n.x,n.y))},(e,t,r,n,i,o,a)=>{r=i[e].value,n=o[e],(r[0]!==n.red||r[1]!==n.green||r[2]!==n.blue||r[3]!==n.alpha)&&(r[0]=n.red,r[1]=n.green,r[2]=n.blue,r[3]=n.alpha,a.uniform4f(i[e].location,n.red,n.green,n.blue,n.alpha))},(e,t,r,n,i,o,a)=>{r=i[e].value,n=o[e],(r[0]!==n.red||r[1]!==n.green||r[2]!==n.blue)&&(r[0]=n.red,r[1]=n.green,r[2]=n.blue,a.uniform3f(i[e].location,n.red,n.green,n.blue))}];function k(e,t){let r={};for(let n in e.uniformStructures){if(!t[n])continue;let i=e.uniformStructures[n],o=!1;for(let e=0;e<v.s.length;e++){let t=v.s[e];if(i.type===t.type&&t.test(i)){r[n]=A[e],o=!0;break}}if(!o){let e=1===i.size?E:C;r[n]=e[i.type]}}return(e,t,n)=>{let i=n.gl;for(let n in r){let o=t[n],a=e[n],s=e[n].value;r[n](n,a,s,o,e,t,i)}}}!function(){Object.assign(l.I.prototype,{_unsafeEvalCheck(){}}),Object.assign(s.L.prototype,{_systemCheck(){}}),Object.assign(o.V.prototype,{_generateUniformsSync:k}),Object.assign(n.S.prototype,{_generateUboSync:w}),Object.assign(a.Y.prototype,{_generateUboSync:x}),Object.assign(i.S.prototype,{_generateShaderSync:d})}()},39613:function(e,t,r){"use strict";let n;async function i(){return n??(n=(async()=>{let e=document.createElement("canvas").getContext("webgl");if(!e)return"premultiply-alpha-on-upload";let t=await new Promise(e=>{let t=document.createElement("video");t.onloadeddata=()=>e(t),t.onerror=()=>e(null),t.autoplay=!1,t.crossOrigin="anonymous",t.preload="auto",t.src="data:video/webm;base64,GkXfo59ChoEBQveBAULygQRC84EIQoKEd2VibUKHgQJChYECGFOAZwEAAAAAAAHTEU2bdLpNu4tTq4QVSalmU6yBoU27i1OrhBZUrmtTrIHGTbuMU6uEElTDZ1OsggEXTbuMU6uEHFO7a1OsggG97AEAAAAAAABZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVSalmoCrXsYMPQkBNgIRMYXZmV0GETGF2ZkSJiEBEAAAAAAAAFlSua8yuAQAAAAAAAEPXgQFzxYgAAAAAAAAAAZyBACK1nIN1bmSIgQCGhVZfVlA5g4EBI+ODhAJiWgDglLCBArqBApqBAlPAgQFVsIRVuYEBElTDZ9Vzc9JjwItjxYgAAAAAAAAAAWfInEWjh0VOQ09ERVJEh49MYXZjIGxpYnZweC12cDlnyKJFo4hEVVJBVElPTkSHlDAwOjAwOjAwLjA0MDAwMDAwMAAAH0O2dcfngQCgwqGggQAAAIJJg0IAABAAFgA4JBwYSgAAICAAEb///4r+AAB1oZ2mm+6BAaWWgkmDQgAAEAAWADgkHBhKAAAgIABIQBxTu2uRu4+zgQC3iveBAfGCAXHwgQM=",t.load()});if(!t)return"premultiply-alpha-on-upload";let r=e.createTexture();e.bindTexture(e.TEXTURE_2D,r);let n=e.createFramebuffer();e.bindFramebuffer(e.FRAMEBUFFER,n),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,r,0),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,e.NONE),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t);let i=new Uint8Array(4);return e.readPixels(0,0,1,1,e.RGBA,e.UNSIGNED_BYTE,i),e.deleteFramebuffer(n),e.deleteTexture(r),e.getExtension("WEBGL_lose_context")?.loseContext(),i[0]<=i[3]?"premultiplied-alpha":"premultiply-alpha-on-upload"})()),n}r.d(t,{D:()=>i})},59319:function(e,t,r){"use strict";let n;function i(){if("boolean"==typeof n)return n;try{let e=Function("param1","param2","param3","return param1[param2] === param3;");n=!0===e({a:"b"},"a","b")}catch(e){n=!1}return n}r.d(t,{O:()=>i})},32472:function(e,t,r){"use strict";function n(e,t,r){let n,i=e.length;if(t>=i||0===r)return;r=t+r>i?i-t:r;let o=i-r;for(n=t;n<o;++n)e[n]=e[n+r];e.length=o}r.d(t,{E:()=>n})},45649:function(e,t,r){"use strict";r.d(t,{h:()=>i});let n={default:-1};function i(e="default"){return void 0===n[e]&&(n[e]=-1),++n[e]}},88515:function(e,t,r){"use strict";function n(e,t,r,n){let{width:i,height:o}=r.orig,a=r.trim;if(a){let r=a.width,s=a.height;e.minX=a.x-t._x*i-n,e.maxX=e.minX+r,e.minY=a.y-t._y*o-n,e.maxY=e.minY+s}else e.minX=-t._x*i-n,e.maxX=e.minX+i,e.minY=-t._y*o-n,e.maxY=e.minY+o}r.d(t,{w:()=>n})},24584:function(e,t,r){"use strict";r.d(t,{P:()=>i,a:()=>o});let n={},i="8.0.0";function o(e,t,r=3){if(n[t])return;let i=Error().stack;void 0===i?console.warn("PixiJS Deprecation Warning: ",`${t}
685
685
  Deprecated since v${e}`):(i=i.split("\n").splice(r).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",`${t}
686
686
  Deprecated since v${e}`),console.warn(i),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",`${t}
687
- Deprecated since v${e}`),console.warn(i))),n[t]=!0}},92245:function(e,t,r){"use strict";r.d(t,{Z:()=>o});let n=0,i=500;function o(...e){n!==i&&(++n===i?console.warn("PixiJS Warning: too many warnings, no more warnings will be reported to the console by PixiJS."):console.warn("PixiJS Warning: ",...e))}},15792:function(e,t,r){"use strict";r.d(t,{E:()=>u});var n=r(767);function i(e){if("string"!=typeof e)throw TypeError(`Path must be a string. Received ${JSON.stringify(e)}`)}function o(e){return e.split("?")[0].split("#")[0]}function a(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function s(e,t,r){return e.replace(RegExp(a(t),"g"),r)}function l(e,t){let r="",n=0,i=-1,o=0,a=-1;for(let s=0;s<=e.length;++s){if(s<e.length)a=e.charCodeAt(s);else if(47===a)break;else a=47;if(47===a){if(i===s-1||1===o);else if(i!==s-1&&2===o){if(r.length<2||2!==n||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2)){if(r.length>2){let e=r.lastIndexOf("/");if(e!==r.length-1){-1===e?(r="",n=0):n=(r=r.slice(0,e)).length-1-r.lastIndexOf("/"),i=s,o=0;continue}}else if(2===r.length||1===r.length){r="",n=0,i=s,o=0;continue}}t&&(r.length>0?r+="/..":r="..",n=2)}else r.length>0?r+=`/${e.slice(i+1,s)}`:r=e.slice(i+1,s),n=s-i-1;i=s,o=0}else 46===a&&-1!==o?++o:o=-1}return r}let u={toPosix:e=>s(e,"\\","/"),isUrl(e){return/^https?:/.test(this.toPosix(e))},isDataUrl:e=>/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(e),isBlobUrl:e=>e.startsWith("blob:"),hasProtocol(e){return/^[^/:]+:/.test(this.toPosix(e))},getProtocol(e){i(e),e=this.toPosix(e);let t=/^file:\/\/\//.exec(e);if(t)return t[0];let r=/^[^/:]+:\/{0,2}/.exec(e);return r?r[0]:""},toAbsolute(e,t,r){if(i(e),this.isDataUrl(e)||this.isBlobUrl(e))return e;let a=o(this.toPosix(t??n.z.get().getBaseUrl())),s=o(this.toPosix(r??this.rootname(a)));return(e=this.toPosix(e)).startsWith("/")?u.join(s,e.slice(1)):this.isAbsolute(e)?e:this.join(a,e)},normalize(e){if(i(e),0===e.length)return".";if(this.isDataUrl(e)||this.isBlobUrl(e))return e;e=this.toPosix(e);let t="",r=e.startsWith("/");this.hasProtocol(e)&&(t=this.rootname(e),e=e.slice(t.length));let n=e.endsWith("/");return((e=l(e,!1)).length>0&&n&&(e+="/"),r)?`/${e}`:t+e},isAbsolute(e){return i(e),e=this.toPosix(e),!!this.hasProtocol(e)||e.startsWith("/")},join(...e){let t;if(0===e.length)return".";for(let r=0;r<e.length;++r){let n=e[r];if(i(n),n.length>0)if(void 0===t)t=n;else{let i=e[r-1]??"";this.joinExtensions.includes(this.extname(i).toLowerCase())?t+=`/../${n}`:t+=`/${n}`}}return void 0===t?".":this.normalize(t)},dirname(e){if(i(e),0===e.length)return".";let t=(e=this.toPosix(e)).charCodeAt(0),r=47===t,n=-1,o=!0,a=this.getProtocol(e),s=e;e=e.slice(a.length);for(let r=e.length-1;r>=1;--r)if(47===(t=e.charCodeAt(r))){if(!o){n=r;break}}else o=!1;return -1===n?r?"/":this.isUrl(s)?a+e:a:r&&1===n?"//":a+e.slice(0,n)},rootname(e){i(e);let t="";if(t=(e=this.toPosix(e)).startsWith("/")?"/":this.getProtocol(e),this.isUrl(e)){let r=e.indexOf("/",t.length);(t=-1!==r?e.slice(0,r):e).endsWith("/")||(t+="/")}return t},basename(e,t){let r;i(e),t&&i(t),e=o(this.toPosix(e));let n=0,a=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";let i=t.length-1,o=-1;for(r=e.length-1;r>=0;--r){let l=e.charCodeAt(r);if(47===l){if(!s){n=r+1;break}}else -1===o&&(s=!1,o=r+1),i>=0&&(l===t.charCodeAt(i)?-1==--i&&(a=r):(i=-1,a=o))}return n===a?a=o:-1===a&&(a=e.length),e.slice(n,a)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!s){n=r+1;break}}else -1===a&&(s=!1,a=r+1);return -1===a?"":e.slice(n,a)},extname(e){i(e),e=o(this.toPosix(e));let t=-1,r=0,n=-1,a=!0,s=0;for(let i=e.length-1;i>=0;--i){let o=e.charCodeAt(i);if(47===o){if(!a){r=i+1;break}continue}-1===n&&(a=!1,n=i+1),46===o?-1===t?t=i:1!==s&&(s=1):-1!==t&&(s=-1)}return -1===t||-1===n||0===s||1===s&&t===n-1&&t===r+1?"":e.slice(t,n)},parse(e){let t;i(e);let r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;let n=(e=o(this.toPosix(e))).charCodeAt(0),a=this.isAbsolute(e),s="";r.root=this.rootname(e),t=a||this.hasProtocol(e)?1:0;let l=-1,u=0,c=-1,f=!0,h=e.length-1,d=0;for(;h>=t;--h){if(47===(n=e.charCodeAt(h))){if(!f){u=h+1;break}continue}-1===c&&(f=!1,c=h+1),46===n?-1===l?l=h:1!==d&&(d=1):-1!==l&&(d=-1)}return -1===l||-1===c||0===d||1===d&&l===c-1&&l===u+1?-1!==c&&(0===u&&a?r.base=r.name=e.slice(1,c):r.base=r.name=e.slice(u,c)):(0===u&&a?(r.name=e.slice(1,l),r.base=e.slice(1,c)):(r.name=e.slice(u,l),r.base=e.slice(u,c)),r.ext=e.slice(l,c)),r.dir=this.dirname(e),s&&(r.dir=s+r.dir),r},sep:"/",delimiter:":",joinExtensions:[".html"]}},25400:function(e,t,r){"use strict";r.d(t,{K:()=>n});class n{constructor(e,t){this._pool=[],this._count=0,this._index=0,this._classType=e,t&&this.prepopulate(t)}prepopulate(e){for(let t=0;t<e;t++)this._pool[this._index++]=new this._classType;this._count+=e}get(e){let t;return t=this._index>0?this._pool[--this._index]:new this._classType,t.init?.(e),t}return(e){e.reset?.(),this._pool[this._index++]=e}get totalSize(){return this._count}get totalFree(){return this._index}get totalUsed(){return this._count-this._index}}},24951:function(e,t,r){"use strict";r.d(t,{u:()=>o});var n=r(25400);class i{constructor(){this._poolsByClass=new Map}prepopulate(e,t){this.getPool(e).prepopulate(t)}get(e,t){return this.getPool(e).get(t)}return(e){this.getPool(e.constructor).return(e)}getPool(e){return this._poolsByClass.has(e)||this._poolsByClass.set(e,new n.K(e)),this._poolsByClass.get(e)}stats(){let e={};return this._poolsByClass.forEach(t=>{let r=e[t._classType.name]?t._classType.name+t._classType.ID:t._classType.name;e[r]={free:t.totalFree,used:t.totalUsed,size:t.totalSize}}),e}}let o=new i},90419:function(e,t,r){"use strict";let n,i;r.d(t,{io:()=>eW});var o,a={};r.r(a),r.d(a,{Decoder:()=>eL,Encoder:()=>ej,PacketType:()=>o,protocol:()=>eN});let s=Object.create(null);s.open="0",s.close="1",s.ping="2",s.pong="3",s.message="4",s.upgrade="5",s.noop="6";let l=Object.create(null);Object.keys(s).forEach(e=>{l[s[e]]=e});let u={type:"error",data:"parser error"},c="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),f="function"==typeof ArrayBuffer,h=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,d=({type:e,data:t},r,n)=>{if(c&&t instanceof Blob)if(r)return n(t);else return p(t,n);if(f&&(t instanceof ArrayBuffer||h(t)))if(r)return n(t);else return p(new Blob([t]),n);return n(s[e]+(t||""))},p=(e,t)=>{let r=new FileReader;return r.onload=function(){t("b"+(r.result.split(",")[1]||""))},r.readAsDataURL(e)};function m(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}function g(e,t){return c&&e.data instanceof Blob?e.data.arrayBuffer().then(m).then(t):f&&(e.data instanceof ArrayBuffer||h(e.data))?t(m(e.data)):void d(e,!1,e=>{n||(n=new TextEncoder),t(n.encode(e))})}let v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<v.length;e++)b[v.charCodeAt(e)]=e;let y=e=>{let t=.75*e.length,r=e.length,n,i=0,o,a,s,l;"="===e[e.length-1]&&(t--,"="===e[e.length-2]&&t--);let u=new ArrayBuffer(t),c=new Uint8Array(u);for(n=0;n<r;n+=4)o=b[e.charCodeAt(n)],a=b[e.charCodeAt(n+1)],s=b[e.charCodeAt(n+2)],l=b[e.charCodeAt(n+3)],c[i++]=o<<2|a>>4,c[i++]=(15&a)<<4|s>>2,c[i++]=(3&s)<<6|63&l;return u},_="function"==typeof ArrayBuffer,w=(e,t)=>{if("string"!=typeof e)return{type:"message",data:S(e,t)};let r=e.charAt(0);return"b"===r?{type:"message",data:x(e.substring(1),t)}:l[r]?e.length>1?{type:l[r],data:e.substring(1)}:{type:l[r]}:u},x=(e,t)=>_?S(y(e),t):{base64:!0,data:e},S=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,E="\x1e",C=(e,t)=>{let r=e.length,n=Array(r),i=0;e.forEach((e,o)=>{d(e,!1,e=>{n[o]=e,++i===r&&t(n.join(E))})})},A=(e,t)=>{let r=e.split(E),n=[];for(let e=0;e<r.length;e++){let i=w(r[e],t);if(n.push(i),"error"===i.type)break}return n};function k(){return new TransformStream({transform(e,t){g(e,r=>{let n,i=r.length;if(i<126)new DataView((n=new Uint8Array(1)).buffer).setUint8(0,i);else if(i<65536){let e=new DataView((n=new Uint8Array(3)).buffer);e.setUint8(0,126),e.setUint16(1,i)}else{let e=new DataView((n=new Uint8Array(9)).buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(i))}e.data&&"string"!=typeof e.data&&(n[0]|=128),t.enqueue(n),t.enqueue(r)})}})}function O(e){return e.reduce((e,t)=>e+t.length,0)}function I(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let i=0;i<t;i++)r[i]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function T(e,t){i||(i=new TextDecoder);let r=[],n=0,o=-1,a=!1;return new TransformStream({transform(s,l){for(r.push(s);;){if(0===n){if(1>O(r))break;let e=I(r,1);a=(128&e[0])==128,n=(o=127&e[0])<126?3:126===o?1:2}else if(1===n){if(2>O(r))break;let e=I(r,2);o=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),n=3}else if(2===n){if(8>O(r))break;let e=I(r,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>2097151){l.enqueue(u);break}o=0x100000000*i+t.getUint32(4),n=3}else{if(O(r)<o)break;let e=I(r,o);l.enqueue(w(a?e:i.decode(e),t)),n=0}if(0===o||o>e){l.enqueue(u);break}}}})}let P=4;function R(e){if(e)return M(e)}function M(e){for(var t in R.prototype)e[t]=R.prototype[t];return e}R.prototype.on=R.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},R.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},R.prototype.off=R.prototype.removeListener=R.prototype.removeAllListeners=R.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<n.length;i++)if((r=n[i])===t||r.fn===t){n.splice(i,1);break}return 0===n.length&&delete this._callbacks["$"+e],this},R.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,i=r.length;n<i;++n)r[n].apply(this,t)}return this},R.prototype.emitReserved=R.prototype.emit,R.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},R.prototype.hasListeners=function(e){return!!this.listeners(e).length};let $="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),N="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")(),j="arraybuffer";function B(){}function L(e,...t){return t.reduce((t,r)=>(e.hasOwnProperty(r)&&(t[r]=e[r]),t),{})}let F=N.setTimeout,D=N.clearTimeout;function z(e,t){t.useNativeTimers?(e.setTimeoutFn=F.bind(N),e.clearTimeoutFn=D.bind(N)):(e.setTimeoutFn=N.setTimeout.bind(N),e.clearTimeoutFn=N.clearTimeout.bind(N))}let U=1.33;function Z(e){return"string"==typeof e?H(e):Math.ceil((e.byteLength||e.size)*U)}function H(e){let t=0,r=0;for(let n=0,i=e.length;n<i;n++)(t=e.charCodeAt(n))<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}function G(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function W(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function V(e){let t={},r=e.split("&");for(let e=0,n=r.length;e<n;e++){let n=r[e].split("=");t[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return t}class q extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}class X extends R{constructor(e){super(),this.writable=!1,z(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,r){return super.emitReserved("error",new q(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=w(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return -1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){let t=W(e);return t.length?"?"+t:""}}class Y extends X{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let t=e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)};A(e,this.socket.binaryType).forEach(t),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){let e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,C(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=G()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}}let K=!1;try{K="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}let J=K;function Q(){}class ee extends Y{constructor(e){if(super(e),"undefined"!=typeof location){let t="https:"===location.protocol,r=location.port;r||(r=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,t){let r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}class et extends R{constructor(e,t,r){super(),this.createRequest=e,z(this,r),this._opts=r,this._method=r.method||"GET",this._uri=t,this._data=void 0!==r.data?r.data:null,this._create()}_create(){var e;let t=L(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;let r=this._xhr=this.createRequest(t);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders)for(let e in r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0),this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this._opts.extraHeaders[e])}catch(e){}if("POST"===this._method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{r.setRequestHeader("Accept","*/*")}catch(e){}null==(e=this._opts.cookieJar)||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var e;3===r.readyState&&(null==(e=this._opts.cookieJar)||e.parseCookies(r.getResponseHeader("set-cookie"))),4===r.readyState&&(200===r.status||1223===r.status?this._onLoad():this.setTimeoutFn(()=>{this._onError("number"==typeof r.status?r.status:0)},0))},r.send(this._data)}catch(e){this.setTimeoutFn(()=>{this._onError(e)},0);return}"undefined"!=typeof document&&(this._index=et.requestsCount++,et.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=Q,e)try{this._xhr.abort()}catch(e){}"undefined"!=typeof document&&delete et.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}function er(){for(let e in et.requests)et.requests.hasOwnProperty(e)&&et.requests[e].abort()}et.requestsCount=0,et.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",er):"function"==typeof addEventListener&&addEventListener("onpagehide"in N?"pagehide":"unload",er,!1));let en=function(){let e=eo({xdomain:!1});return e&&null!==e.responseType}();class ei extends ee{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=en&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new et(eo,this.uri(),e)}}function eo(e){let t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||J))return new XMLHttpRequest}catch(e){}if(!t)try{return new N[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(e){}}let ea="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class es extends X{get name(){return"websocket"}doOpen(){let e=this.uri(),t=this.opts.protocols,r=ea?{}:L(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,r)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;d(r,this.supportsBinary,e=>{try{this.doWrite(r,e)}catch(e){}n&&$(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=G()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}let el=N.WebSocket||N.MozWebSocket;class eu extends es{createSocket(e,t,r){return ea?new el(e,t,r):t?new el(e,t):new el(e)}doWrite(e,t){this.ws.send(t)}}class ec extends X{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=T(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),n=k();n.readable.pipeTo(e.writable),this._writer=n.writable.getWriter();let i=()=>{r.read().then(({done:e,value:t})=>{e||(this.onPacket(t),i())}).catch(e=>{})};i();let o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;this._writer.write(r).then(()=>{n&&$(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null==(e=this._transport)||e.close()}}let ef={websocket:eu,webtransport:ec,polling:ei},eh=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,ed=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ep(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");-1!=r&&-1!=n&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let i=eh.exec(e||""),o={},a=14;for(;a--;)o[ed[a]]=i[a]||"";return -1!=r&&-1!=n&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=em(o,o.path),o.queryKey=eg(o,o.query),o}function em(e,t){let r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return("/"==t.slice(0,1)||0===t.length)&&n.splice(0,1),"/"==t.slice(-1)&&n.splice(n.length-1,1),n}function eg(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,n){t&&(r[t]=n)}),r}let ev="function"==typeof addEventListener&&"function"==typeof removeEventListener,eb=[];ev&&addEventListener("offline",()=>{eb.forEach(e=>e())},!1);class ey extends R{constructor(e,t){if(super(),this.binaryType=j,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&"object"==typeof e&&(t=e,e=null),e){let r=ep(e);t.hostname=r.host,t.secure="https"===r.protocol||"wss"===r.protocol,t.port=r.port,r.query&&(t.query=r.query)}else t.host&&(t.hostname=ep(t.host).host);z(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(e=>{let t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=V(this.opts.query)),ev&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},eb.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=B()),this._open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=P,t.transport=e,this.id&&(t.sid=this.id);let r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](r)}_open(){if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);let e=this.opts.rememberUpgrade&&ey.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";let t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",e=>this._onClose("transport close",e))}onOpen(){this.readyState="open",ey.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let t=Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){let r=this.writeBuffer[t].data;if(r&&(e+=Z(r)),t>0&&e>this._maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,$(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,r){return this._sendPacket("message",e,t,r),this}send(e,t,r){return this._sendPacket("message",e,t,r),this}_sendPacket(e,t,r,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof r&&(n=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;let i={type:e,data:t,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),n&&this.once("flush",n),this.flush()}close(){let e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}_onError(e){if(ey.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),ev&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let e=eb.indexOf(this._offlineEventListener);-1!==e&&eb.splice(e,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}ey.protocol=P;class e_ extends ey{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),r=!1;ey.priorWebsocketSuccess=!1;let n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",e=>{if(!r)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;ey.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{r||"closed"!==this.readyState&&(u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{let e=Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}}))};function i(){r||(r=!0,u(),t.close(),t=null)}let o=e=>{let r=Error("probe error: "+e);r.transport=t.name,i(),this.emitReserved("upgradeError",r)};function a(){o("transport closed")}function s(){o("socket closed")}function l(e){t&&e.name!==t.name&&i()}let u=()=>{t.removeListener("open",n),t.removeListener("error",o),t.removeListener("close",a),this.off("close",s),this.off("upgrading",l)};t.once("open",n),t.once("error",o),t.once("close",a),this.once("close",s),this.once("upgrading",l),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}}class ew extends e_{constructor(e,t={}){let r="object"==typeof e?e:t;(!r.transports||r.transports&&"string"==typeof r.transports[0])&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(e=>ef[e]).filter(e=>!!e)),super(e,r)}}function ex(e,t="",r){let n=e;r=r||"undefined"!=typeof location&&location,null==e&&(e=r.protocol+"//"+r.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?r.protocol+e:r.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==r?r.protocol+"//"+e:"https://"+e),n=ep(e)),!n.port&&(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let i=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port+t,n.href=n.protocol+"://"+i+(r&&r.port===n.port?"":":"+n.port),n}ew.protocol;let eS="function"==typeof ArrayBuffer,eE=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,eC=Object.prototype.toString,eA="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===eC.call(Blob),ek="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===eC.call(File);function eO(e){return eS&&(e instanceof ArrayBuffer||eE(e))||eA&&e instanceof Blob||ek&&e instanceof File}function eI(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,r=e.length;t<r;t++)if(eI(e[t]))return!0;return!1}if(eO(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1==arguments.length)return eI(e.toJSON(),!0);for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&eI(e[t]))return!0;return!1}function eT(e){let t=[],r=e.data,n=e;return n.data=eP(r,t),n.attachments=t.length,{packet:n,buffers:t}}function eP(e,t){if(!e)return e;if(eO(e)){let r={_placeholder:!0,num:t.length};return t.push(e),r}if(Array.isArray(e)){let r=Array(e.length);for(let n=0;n<e.length;n++)r[n]=eP(e[n],t);return r}if("object"==typeof e&&!(e instanceof Date)){let r={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=eP(e[n],t));return r}return e}function eR(e,t){return e.data=eM(e.data,t),delete e.attachments,e}function eM(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw Error("illegal attachments")}if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=eM(e[r],t);else if("object"==typeof e)for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=eM(e[r],t));return e}let e$=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],eN=5;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(o||(o={}));class ej{constructor(e){this.replacer=e}encode(e){return(e.type===o.EVENT||e.type===o.ACK)&&eI(e)?this.encodeAsBinary({type:e.type===o.EVENT?o.BINARY_EVENT:o.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===o.BINARY_EVENT||e.type===o.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=eT(e),r=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(r),n}}function eB(e){return"[object Object]"===Object.prototype.toString.call(e)}class eL extends R{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");let r=(t=this.decodeString(e)).type===o.BINARY_EVENT;r||t.type===o.BINARY_ACK?(t.type=r?o.EVENT:o.ACK,this.reconstructor=new eF(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(eO(e)||e.base64)if(this.reconstructor)(t=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw Error("got binary data when not reconstructing a packet");else throw Error("Unknown type: "+e)}decodeString(e){let t=0,r={type:Number(e.charAt(0))};if(void 0===o[r.type])throw Error("unknown packet type "+r.type);if(r.type===o.BINARY_EVENT||r.type===o.BINARY_ACK){let n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);let i=e.substring(n,t);if(i!=Number(i)||"-"!==e.charAt(t))throw Error("Illegal attachments");r.attachments=Number(i)}if("/"===e.charAt(t+1)){let n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);r.nsp=e.substring(n,t)}else r.nsp="/";let n=e.charAt(t+1);if(""!==n&&Number(n)==n){let n=t+1;for(;++t;){let r=e.charAt(t);if(null==r||Number(r)!=r){--t;break}if(t===e.length)break}r.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){let n=this.tryParse(e.substr(t));if(eL.isPayloadValid(r.type,n))r.data=n;else throw Error("invalid payload")}return r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case o.CONNECT:return eB(t);case o.DISCONNECT:return void 0===t;case o.CONNECT_ERROR:return"string"==typeof t||eB(t);case o.EVENT:case o.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===e$.indexOf(t[0]));case o.ACK:case o.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class eF{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let e=eR(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function eD(e,t,r){return e.on(t,r),function(){e.off(t,r)}}let ez=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class eU extends R{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[eD(e,"open",this.onopen.bind(this)),eD(e,"packet",this.onpacket.bind(this)),eD(e,"error",this.onerror.bind(this)),eD(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var r,n,i;if(ez.hasOwnProperty(e))throw Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let a={type:o.EVENT,data:t};if(a.options={},a.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){let e=this.ids++,r=t.pop();this._registerAckCallback(e,r),a.id=e}let s=null==(n=null==(r=this.io.engine)?void 0:r.transport)?void 0:n.writable,l=this.connected&&!(null==(i=this.io.engine)?void 0:i._hasPingExpired());return this.flags.volatile&&!s||(l?(this.notifyOutgoingListeners(a),this.packet(a)):this.sendBuffer.push(a)),this.flags={},this}_registerAckCallback(e,t){var r;let n=null!=(r=this.flags.timeout)?r:this._opts.ackTimeout;if(void 0===n){this.acks[e]=t;return}let i=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error("operation has timed out"))},n),o=(...e)=>{this.io.clearTimeoutFn(i),t.apply(this,e)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((r,n)=>{let i=(e,t)=>e?n(e):r(t);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...n)=>{if(r===this._queue[0])return null!==e?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...n)),r.pending=!1,this._drainQueue()}),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;let t=this._queue[0];(!t.pending||e)&&(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:o.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case o.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case o.EVENT:case o.BINARY_EVENT:this.onevent(e);break;case o.ACK:case o.BINARY_ACK:this.onack(e);break;case o.DISCONNECT:this.ondisconnect();break;case o.CONNECT_ERROR:this.destroy();let t=Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){let t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length)for(let t of this._anyListeners.slice())t.apply(this,e);super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,r=!1;return function(...n){r||(r=!0,t.packet({type:o.ACK,id:e,data:n}))}}onack(e){let t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:o.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r]){t.splice(r,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r]){t.splice(r,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length)for(let t of this._anyOutgoingListeners.slice())t.apply(this,e.data)}}function eZ(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}eZ.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(1&Math.floor(10*t))==0?e-r:e+r}return 0|Math.min(e,this.max)},eZ.prototype.reset=function(){this.attempts=0},eZ.prototype.setMin=function(e){this.ms=e},eZ.prototype.setMax=function(e){this.max=e},eZ.prototype.setJitter=function(e){this.jitter=e};class eH extends R{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,z(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!=(r=t.randomizationFactor)?r:.5),this.backoff=new eZ({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;let n=t.parser||a;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null==(t=this.backoff)||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null==(t=this.backoff)||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null==(t=this.backoff)||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new ew(this.uri,this.opts);let t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let n=eD(t,"open",function(){r.onopen(),e&&e()}),i=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=eD(t,"error",i);if(!1!==this._timeout){let e=this._timeout,r=this.setTimeoutFn(()=>{n(),i(Error("timeout")),t.close()},e);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}return this.subs.push(n),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(eD(e,"ping",this.onping.bind(this)),eD(e,"data",this.ondata.bind(this)),eD(e,"error",this.onerror.bind(this)),eD(e,"close",this.onclose.bind(this)),eD(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){$(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new eU(this,e,t),this.nsps[e]=r),r}_destroy(e){for(let e of Object.keys(this.nsps))if(this.nsps[e].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var r;this.cleanup(),null==(r=this.engine)||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{!e.skipReconnect&&(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}let eG={};function eW(e,t){let r;"object"==typeof e&&(t=e,e=void 0);let n=ex(e,(t=t||{}).path||"/socket.io"),i=n.source,o=n.id,a=n.path,s=eG[o]&&a in eG[o].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||s?r=new eH(i,t):(eG[o]||(eG[o]=new eH(i,t)),r=eG[o]),n.query&&!t.query&&(t.query=n.queryKey),r.socket(n.path,t)}Object.assign(eW,{Manager:eH,Socket:eU,io:eW,connect:eW})},43427:function(e,t,r){"use strict";let n;r.d(t,{ak:()=>eR,pA:()=>tE,z:()=>tC}),function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},e.getValidEnumValues=t=>{let r=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),n={};for(let e of r)n[e]=t[e];return e.objectValues(n)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e.find=(e,t)=>{for(let r of e)if(t(r))return r},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(ty||(ty={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(t_||(t_={}));let i=ty.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),o=e=>{switch(typeof e){case"undefined":return i.undefined;case"string":return i.string;case"number":return isNaN(e)?i.nan:i.number;case"boolean":return i.boolean;case"function":return i.function;case"bigint":return i.bigint;case"symbol":return i.symbol;case"object":if(Array.isArray(e))return i.array;if(null===e)return i.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return i.promise;if("undefined"!=typeof Map&&e instanceof Map)return i.map;if("undefined"!=typeof Set&&e instanceof Set)return i.set;if("undefined"!=typeof Date&&e instanceof Date)return i.date;return i.object;default:return i.unknown}},a=ty.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),s=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class l extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;n<i.path.length;){let r=i.path[n];n===i.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(i))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof l))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ty.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let n of this.issues)n.path.length>0?(t[n.path[0]]=t[n.path[0]]||[],t[n.path[0]].push(e(n))):r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}l.create=e=>new l(e);let u=(e,t)=>{let r;switch(e.code){case a.invalid_type:r=e.received===i.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case a.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,ty.jsonStringifyReplacer)}`;break;case a.unrecognized_keys:r=`Unrecognized key(s) in object: ${ty.joinValues(e.keys,", ")}`;break;case a.invalid_union:r="Invalid input";break;case a.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${ty.joinValues(e.options)}`;break;case a.invalid_enum_value:r=`Invalid enum value. Expected ${ty.joinValues(e.options)}, received '${e.received}'`;break;case a.invalid_arguments:r="Invalid function arguments";break;case a.invalid_return_type:r="Invalid function return type";break;case a.invalid_date:r="Invalid date";break;case a.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:ty.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case a.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case a.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case a.custom:r="Invalid input";break;case a.invalid_intersection_types:r="Intersection results could not be merged";break;case a.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case a.not_finite:r="Number must be finite";break;default:r=t.defaultError,ty.assertNever(e)}return{message:r}},c=u;function f(e){c=e}function h(){return c}let d=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,o=[...r,...i.path||[]],a={...i,path:o};if(void 0!==i.message)return{...i,path:o,message:i.message};let s="";for(let e of n.filter(e=>!!e).slice().reverse())s=e(a,{data:t,defaultError:s}).message;return{...i,path:o,message:s}},p=[];function m(e,t){let r=h(),n=d({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===u?void 0:u].filter(e=>!!e)});e.common.issues.push(n)}class g{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let n of t){if("aborted"===n.status)return v;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return g.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:t,value:i}=n;if("aborted"===t.status||"aborted"===i.status)return v;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||n.alwaysSet)&&(r[t.value]=i.value)}return{status:e.value,value:r}}}let v=Object.freeze({status:"aborted"}),b=e=>({status:"dirty",value:e}),y=e=>({status:"valid",value:e}),_=e=>"aborted"===e.status,w=e=>"dirty"===e.status,x=e=>"valid"===e.status,S=e=>"undefined"!=typeof Promise&&e instanceof Promise;function E(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function C(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}"function"==typeof SuppressedError&&SuppressedError,function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(tw||(tw={}));class A{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let k=(e,t)=>{if(x(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new l(e.common.issues);return this._error=t,this._error}}};function O(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{var o,a;let{message:s}=e;return"invalid_enum_value"===t.code?{message:null!=s?s:i.defaultError}:void 0===i.data?{message:null!=(o=null!=s?s:n)?o:i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:null!=(a=null!=s?s:r)?a:i.defaultError}},description:i}}class I{get description(){return this._def.description}_getType(e){return o(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:o(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new g,ctx:{common:e.parent.common,data:e.data,parsedType:o(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(S(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;let n={common:{issues:[],async:null!=(r=null==t?void 0:t.async)&&r,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:o(e)},i=this._parseSync({data:e,path:n.path,parent:n});return k(n,i)}"~validate"(e){var t,r;let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:o(e)};if(!this["~standard"].async)try{let t=this._parseSync({data:e,path:[],parent:n});return x(t)?{value:t.value}:{issues:n.common.issues}}catch(e){(null==(r=null==(t=null==e?void 0:e.message)?void 0:t.toLowerCase())?void 0:r.includes("encountered"))&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:n}).then(e=>x(e)?{value:e.value}:{issues:n.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:o(e)},n=this._parse({data:e,path:r.path,parent:r});return k(r,await (S(n)?n:Promise.resolve(n)))}refine(e,t){let r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,n)=>{let i=e(t),o=()=>n.addIssue({code:a.custom,...r(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(o(),!1)):!!i||(o(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new eP({schema:this,typeName:tE.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return eR.create(this,this._def)}nullable(){return eM.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return eh.create(this)}promise(){return eT.create(this,this._def)}or(e){return em.create([this,e],this._def)}and(e){return ey.create(this,e,this._def)}transform(e){return new eP({...O(this._def),schema:this,typeName:tE.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let t="function"==typeof e?e:()=>e;return new e$({...O(this._def),innerType:this,defaultValue:t,typeName:tE.ZodDefault})}brand(){return new eL({typeName:tE.ZodBranded,type:this,...O(this._def)})}catch(e){let t="function"==typeof e?e:()=>e;return new eN({...O(this._def),innerType:this,catchValue:t,typeName:tE.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eF.create(this,e)}readonly(){return eD.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let T=/^c[^\s-]{8,}$/i,P=/^[0-9a-z]+$/,R=/^[0-9A-HJKMNP-TV-Z]{26}$/i,M=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,$=/^[a-z0-9_-]{21}$/i,N=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,j=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,B=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,L="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",F=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,D=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,z=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,U=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Z=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,H=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,G="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",W=RegExp(`^${G}$`);function V(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function q(e){return RegExp(`^${V(e)}$`)}function X(e){let t=`${G}T${V(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)}function Y(e,t){return!!(("v4"===t||!t)&&F.test(e)||("v6"===t||!t)&&z.test(e))}function K(e,t){if(!N.test(e))return!1;try{let[r]=e.split("."),n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));if("object"!=typeof i||null===i||!i.typ||!i.alg||t&&i.alg!==t)return!1;return!0}catch(e){return!1}}function J(e,t){return!!(("v4"===t||!t)&&D.test(e)||("v6"===t||!t)&&U.test(e))}class Q extends I{_parse(e){let t;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==i.string){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.string,received:t.parsedType}),v}let r=new g;for(let i of this._def.checks)if("min"===i.kind)e.data.length<i.value&&(m(t=this._getOrReturnCtx(e,t),{code:a.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if("max"===i.kind)e.data.length>i.value&&(m(t=this._getOrReturnCtx(e,t),{code:a.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if("length"===i.kind){let n=e.data.length>i.value,o=e.data.length<i.value;(n||o)&&(t=this._getOrReturnCtx(e,t),n?m(t,{code:a.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):o&&m(t,{code:a.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if("email"===i.kind)B.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"email",code:a.invalid_string,message:i.message}),r.dirty());else if("emoji"===i.kind)n||(n=RegExp(L,"u")),n.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"emoji",code:a.invalid_string,message:i.message}),r.dirty());else if("uuid"===i.kind)M.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"uuid",code:a.invalid_string,message:i.message}),r.dirty());else if("nanoid"===i.kind)$.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"nanoid",code:a.invalid_string,message:i.message}),r.dirty());else if("cuid"===i.kind)T.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"cuid",code:a.invalid_string,message:i.message}),r.dirty());else if("cuid2"===i.kind)P.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"cuid2",code:a.invalid_string,message:i.message}),r.dirty());else if("ulid"===i.kind)R.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"ulid",code:a.invalid_string,message:i.message}),r.dirty());else if("url"===i.kind)try{new URL(e.data)}catch(n){m(t=this._getOrReturnCtx(e,t),{validation:"url",code:a.invalid_string,message:i.message}),r.dirty()}else"regex"===i.kind?(i.regex.lastIndex=0,i.regex.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"regex",code:a.invalid_string,message:i.message}),r.dirty())):"trim"===i.kind?e.data=e.data.trim():"includes"===i.kind?e.data.includes(i.value,i.position)||(m(t=this._getOrReturnCtx(e,t),{code:a.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):"toLowerCase"===i.kind?e.data=e.data.toLowerCase():"toUpperCase"===i.kind?e.data=e.data.toUpperCase():"startsWith"===i.kind?e.data.startsWith(i.value)||(m(t=this._getOrReturnCtx(e,t),{code:a.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):"endsWith"===i.kind?e.data.endsWith(i.value)||(m(t=this._getOrReturnCtx(e,t),{code:a.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):"datetime"===i.kind?X(i).test(e.data)||(m(t=this._getOrReturnCtx(e,t),{code:a.invalid_string,validation:"datetime",message:i.message}),r.dirty()):"date"===i.kind?W.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{code:a.invalid_string,validation:"date",message:i.message}),r.dirty()):"time"===i.kind?q(i).test(e.data)||(m(t=this._getOrReturnCtx(e,t),{code:a.invalid_string,validation:"time",message:i.message}),r.dirty()):"duration"===i.kind?j.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"duration",code:a.invalid_string,message:i.message}),r.dirty()):"ip"===i.kind?Y(e.data,i.version)||(m(t=this._getOrReturnCtx(e,t),{validation:"ip",code:a.invalid_string,message:i.message}),r.dirty()):"jwt"===i.kind?K(e.data,i.alg)||(m(t=this._getOrReturnCtx(e,t),{validation:"jwt",code:a.invalid_string,message:i.message}),r.dirty()):"cidr"===i.kind?J(e.data,i.version)||(m(t=this._getOrReturnCtx(e,t),{validation:"cidr",code:a.invalid_string,message:i.message}),r.dirty()):"base64"===i.kind?Z.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"base64",code:a.invalid_string,message:i.message}),r.dirty()):"base64url"===i.kind?H.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"base64url",code:a.invalid_string,message:i.message}),r.dirty()):ty.assertNever(i);return{status:r.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:a.invalid_string,...tw.errToObj(r)})}_addCheck(e){return new Q({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...tw.errToObj(e)})}url(e){return this._addCheck({kind:"url",...tw.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...tw.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...tw.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...tw.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...tw.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...tw.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...tw.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...tw.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...tw.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...tw.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...tw.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...tw.errToObj(e)})}datetime(e){var t,r;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!=(t=null==e?void 0:e.offset)&&t,local:null!=(r=null==e?void 0:e.local)&&r,...tw.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...tw.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...tw.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...tw.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...tw.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...tw.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...tw.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...tw.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...tw.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...tw.errToObj(t)})}nonempty(e){return this.min(1,tw.errToObj(e))}trim(){return new Q({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Q({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Q({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function ee(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return parseInt(e.toFixed(i).replace(".",""))%parseInt(t.toFixed(i).replace(".",""))/Math.pow(10,i)}Q.create=e=>{var t;return new Q({checks:[],typeName:tE.ZodString,coerce:null!=(t=null==e?void 0:e.coerce)&&t,...O(e)})};class et extends I{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==i.number){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.number,received:t.parsedType}),v}let r=new g;for(let n of this._def.checks)"int"===n.kind?ty.isInteger(e.data)||(m(t=this._getOrReturnCtx(e,t),{code:a.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(m(t=this._getOrReturnCtx(e,t),{code:a.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(m(t=this._getOrReturnCtx(e,t),{code:a.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==ee(e.data,n.value)&&(m(t=this._getOrReturnCtx(e,t),{code:a.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(m(t=this._getOrReturnCtx(e,t),{code:a.not_finite,message:n.message}),r.dirty()):ty.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,tw.toString(t))}gt(e,t){return this.setLimit("min",e,!1,tw.toString(t))}lte(e,t){return this.setLimit("max",e,!0,tw.toString(t))}lt(e,t){return this.setLimit("max",e,!1,tw.toString(t))}setLimit(e,t,r,n){return new et({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:tw.toString(n)}]})}_addCheck(e){return new et({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:tw.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:tw.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:tw.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:tw.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:tw.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:tw.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:tw.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:tw.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:tw.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&ty.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;else"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value);return Number.isFinite(t)&&Number.isFinite(e)}}et.create=e=>new et({checks:[],typeName:tE.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...O(e)});class er extends I{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch(t){return this._getInvalidInput(e)}if(this._getType(e)!==i.bigint)return this._getInvalidInput(e);let r=new g;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(m(t=this._getOrReturnCtx(e,t),{code:a.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(m(t=this._getOrReturnCtx(e,t),{code:a.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(m(t=this._getOrReturnCtx(e,t),{code:a.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):ty.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.bigint,received:t.parsedType}),v}gte(e,t){return this.setLimit("min",e,!0,tw.toString(t))}gt(e,t){return this.setLimit("min",e,!1,tw.toString(t))}lte(e,t){return this.setLimit("max",e,!0,tw.toString(t))}lt(e,t){return this.setLimit("max",e,!1,tw.toString(t))}setLimit(e,t,r,n){return new er({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:tw.toString(n)}]})}_addCheck(e){return new er({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:tw.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:tw.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:tw.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:tw.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:tw.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}er.create=e=>{var t;return new er({checks:[],typeName:tE.ZodBigInt,coerce:null!=(t=null==e?void 0:e.coerce)&&t,...O(e)})};class en extends I{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==i.boolean){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.boolean,received:t.parsedType}),v}return y(e.data)}}en.create=e=>new en({typeName:tE.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...O(e)});class ei extends I{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==i.date){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.date,received:t.parsedType}),v}if(isNaN(e.data.getTime()))return m(this._getOrReturnCtx(e),{code:a.invalid_date}),v;let r=new g;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(m(t=this._getOrReturnCtx(e,t),{code:a.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(m(t=this._getOrReturnCtx(e,t),{code:a.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):ty.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new ei({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:tw.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:tw.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}ei.create=e=>new ei({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:tE.ZodDate,...O(e)});class eo extends I{_parse(e){if(this._getType(e)!==i.symbol){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.symbol,received:t.parsedType}),v}return y(e.data)}}eo.create=e=>new eo({typeName:tE.ZodSymbol,...O(e)});class ea extends I{_parse(e){if(this._getType(e)!==i.undefined){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.undefined,received:t.parsedType}),v}return y(e.data)}}ea.create=e=>new ea({typeName:tE.ZodUndefined,...O(e)});class es extends I{_parse(e){if(this._getType(e)!==i.null){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.null,received:t.parsedType}),v}return y(e.data)}}es.create=e=>new es({typeName:tE.ZodNull,...O(e)});class el extends I{constructor(){super(...arguments),this._any=!0}_parse(e){return y(e.data)}}el.create=e=>new el({typeName:tE.ZodAny,...O(e)});class eu extends I{constructor(){super(...arguments),this._unknown=!0}_parse(e){return y(e.data)}}eu.create=e=>new eu({typeName:tE.ZodUnknown,...O(e)});class ec extends I{_parse(e){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.never,received:t.parsedType}),v}}ec.create=e=>new ec({typeName:tE.ZodNever,...O(e)});class ef extends I{_parse(e){if(this._getType(e)!==i.undefined){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.void,received:t.parsedType}),v}return y(e.data)}}ef.create=e=>new ef({typeName:tE.ZodVoid,...O(e)});class eh extends I{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==i.array)return m(t,{code:a.invalid_type,expected:i.array,received:t.parsedType}),v;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,i=t.data.length<n.exactLength.value;(e||i)&&(m(t,{code:e?a.too_big:a.too_small,minimum:i?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(m(t,{code:a.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(m(t,{code:a.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new A(t,e,t.path,r)))).then(e=>g.mergeArray(r,e));let o=[...t.data].map((e,r)=>n.type._parseSync(new A(t,e,t.path,r)));return g.mergeArray(r,o)}get element(){return this._def.type}min(e,t){return new eh({...this._def,minLength:{value:e,message:tw.toString(t)}})}max(e,t){return new eh({...this._def,maxLength:{value:e,message:tw.toString(t)}})}length(e,t){return new eh({...this._def,exactLength:{value:e,message:tw.toString(t)}})}nonempty(e){return this.min(1,e)}}function ed(e){if(e instanceof ep){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=eR.create(ed(n))}return new ep({...e._def,shape:()=>t})}if(e instanceof eh)return new eh({...e._def,type:ed(e.element)});if(e instanceof eR)return eR.create(ed(e.unwrap()));if(e instanceof eM)return eM.create(ed(e.unwrap()));if(e instanceof e_)return e_.create(e.items.map(e=>ed(e)));else return e}eh.create=(e,t)=>new eh({type:e,minLength:null,maxLength:null,exactLength:null,typeName:tE.ZodArray,...O(t)});class ep extends I{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=ty.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==i.object){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.object,received:t.parsedType}),v}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof ec&&"strip"===this._def.unknownKeys))for(let e in r.data)o.includes(e)||s.push(e);let l=[];for(let e of o){let t=n[e],i=r.data[e];l.push({key:{status:"valid",value:e},value:t._parse(new A(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof ec){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of s)l.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)s.length>0&&(m(r,{code:a.unrecognized_keys,keys:s}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of s){let n=r.data[t];l.push({key:{status:"valid",value:t},value:e._parse(new A(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of l){let r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>g.mergeObjectSync(t,e)):g.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return tw.errToObj,new ep({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var n,i,o,a;let s=null!=(o=null==(i=(n=this._def).errorMap)?void 0:i.call(n,t,r).message)?o:r.defaultError;return"unrecognized_keys"===t.code?{message:null!=(a=tw.errToObj(e).message)?a:s}:{message:s}}}:{}})}strip(){return new ep({...this._def,unknownKeys:"strip"})}passthrough(){return new ep({...this._def,unknownKeys:"passthrough"})}extend(e){return new ep({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ep({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:tE.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ep({...this._def,catchall:e})}pick(e){let t={};return ty.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(t[r]=this.shape[r])}),new ep({...this._def,shape:()=>t})}omit(e){let t={};return ty.objectKeys(this.shape).forEach(r=>{e[r]||(t[r]=this.shape[r])}),new ep({...this._def,shape:()=>t})}deepPartial(){return ed(this)}partial(e){let t={};return ty.objectKeys(this.shape).forEach(r=>{let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}),new ep({...this._def,shape:()=>t})}required(e){let t={};return ty.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof eR;)e=e._def.innerType;t[r]=e}}),new ep({...this._def,shape:()=>t})}keyof(){return ek(ty.objectKeys(this.shape))}}ep.create=(e,t)=>new ep({shape:()=>e,unknownKeys:"strip",catchall:ec.create(),typeName:tE.ZodObject,...O(t)}),ep.strictCreate=(e,t)=>new ep({shape:()=>e,unknownKeys:"strict",catchall:ec.create(),typeName:tE.ZodObject,...O(t)}),ep.lazycreate=(e,t)=>new ep({shape:e,unknownKeys:"strip",catchall:ec.create(),typeName:tE.ZodObject,...O(t)});class em extends I{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;function n(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new l(e.ctx.common.issues));return m(t,{code:a.invalid_union,unionErrors:r}),v}if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(n);{let e,n=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},o=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=n.map(e=>new l(e));return m(t,{code:a.invalid_union,unionErrors:i}),v}}get options(){return this._def.options}}em.create=(e,t)=>new em({options:e,typeName:tE.ZodUnion,...O(t)});let eg=e=>{if(e instanceof eC)return eg(e.schema);if(e instanceof eP)return eg(e.innerType());if(e instanceof eA)return[e.value];if(e instanceof eO)return e.options;if(e instanceof eI)return ty.objectValues(e.enum);else if(e instanceof e$)return eg(e._def.innerType);else if(e instanceof ea)return[void 0];else if(e instanceof es)return[null];else if(e instanceof eR)return[void 0,...eg(e.unwrap())];else if(e instanceof eM)return[null,...eg(e.unwrap())];else if(e instanceof eL)return eg(e.unwrap());else if(e instanceof eD)return eg(e.unwrap());else if(e instanceof eN)return eg(e._def.innerType);else return[]};class ev extends I{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.object)return m(t,{code:a.invalid_type,expected:i.object,received:t.parsedType}),v;let r=this.discriminator,n=t.data[r],o=this.optionsMap.get(n);return o?t.common.async?o._parseAsync({data:t.data,path:t.path,parent:t}):o._parseSync({data:t.data,path:t.path,parent:t}):(m(t,{code:a.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),v)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let r of t){let t=eg(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(n.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);n.set(i,r)}}return new ev({typeName:tE.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...O(r)})}}function eb(e,t){let r=o(e),n=o(t);if(e===t)return{valid:!0,data:e};if(r===i.object&&n===i.object){let r=ty.objectKeys(t),n=ty.objectKeys(e).filter(e=>-1!==r.indexOf(e)),i={...e,...t};for(let r of n){let n=eb(e[r],t[r]);if(!n.valid)return{valid:!1};i[r]=n.data}return{valid:!0,data:i}}if(r===i.array&&n===i.array){if(e.length!==t.length)return{valid:!1};let r=[];for(let n=0;n<e.length;n++){let i=eb(e[n],t[n]);if(!i.valid)return{valid:!1};r.push(i.data)}return{valid:!0,data:r}}if(r===i.date&&n===i.date&&+e==+t)return{valid:!0,data:e};return{valid:!1}}class ey extends I{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(_(e)||_(n))return v;let i=eb(e.value,n.value);return i.valid?((w(e)||w(n))&&t.dirty(),{status:t.value,value:i.data}):(m(r,{code:a.invalid_intersection_types}),v)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ey.create=(e,t,r)=>new ey({left:e,right:t,typeName:tE.ZodIntersection,...O(r)});class e_ extends I{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.array)return m(r,{code:a.invalid_type,expected:i.array,received:r.parsedType}),v;if(r.data.length<this._def.items.length)return m(r,{code:a.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),v;!this._def.rest&&r.data.length>this._def.items.length&&(m(r,{code:a.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new A(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>g.mergeArray(t,e)):g.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new e_({...this._def,rest:e})}}e_.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new e_({items:e,typeName:tE.ZodTuple,rest:null,...O(t)})};class ew extends I{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.object)return m(r,{code:a.invalid_type,expected:i.object,received:r.parsedType}),v;let n=[],o=this._def.keyType,s=this._def.valueType;for(let e in r.data)n.push({key:o._parse(new A(r,e,r.path,e)),value:s._parse(new A(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?g.mergeObjectAsync(t,n):g.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new ew(t instanceof I?{keyType:e,valueType:t,typeName:tE.ZodRecord,...O(r)}:{keyType:Q.create(),valueType:e,typeName:tE.ZodRecord,...O(t)})}}class ex extends I{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.map)return m(r,{code:a.invalid_type,expected:i.map,received:r.parsedType}),v;let n=this._def.keyType,o=this._def.valueType,s=[...r.data.entries()].map(([e,t],i)=>({key:n._parse(new A(r,e,r.path,[i,"key"])),value:o._parse(new A(r,t,r.path,[i,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of s){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return v;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of s){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return v;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}ex.create=(e,t,r)=>new ex({valueType:t,keyType:e,typeName:tE.ZodMap,...O(r)});class eS extends I{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.set)return m(r,{code:a.invalid_type,expected:i.set,received:r.parsedType}),v;let n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(m(r,{code:a.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(m(r,{code:a.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let o=this._def.valueType;function s(e){let r=new Set;for(let n of e){if("aborted"===n.status)return v;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let l=[...r.data.values()].map((e,t)=>o._parse(new A(r,e,r.path,t)));return r.common.async?Promise.all(l).then(e=>s(e)):s(l)}min(e,t){return new eS({...this._def,minSize:{value:e,message:tw.toString(t)}})}max(e,t){return new eS({...this._def,maxSize:{value:e,message:tw.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}eS.create=(e,t)=>new eS({valueType:e,minSize:null,maxSize:null,typeName:tE.ZodSet,...O(t)});class eE extends I{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.function)return m(t,{code:a.invalid_type,expected:i.function,received:t.parsedType}),v;function r(e,r){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,h(),u].filter(e=>!!e),issueData:{code:a.invalid_arguments,argumentsError:r}})}function n(e,r){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,h(),u].filter(e=>!!e),issueData:{code:a.invalid_return_type,returnTypeError:r}})}let o={errorMap:t.common.contextualErrorMap},s=t.data;if(this._def.returns instanceof eT){let e=this;return y(async function(...t){let i=new l([]),a=await e._def.args.parseAsync(t,o).catch(e=>{throw i.addIssue(r(t,e)),i}),u=await Reflect.apply(s,this,a);return await e._def.returns._def.type.parseAsync(u,o).catch(e=>{throw i.addIssue(n(u,e)),i})})}{let e=this;return y(function(...t){let i=e._def.args.safeParse(t,o);if(!i.success)throw new l([r(t,i.error)]);let a=Reflect.apply(s,this,i.data),u=e._def.returns.safeParse(a,o);if(!u.success)throw new l([n(a,u.error)]);return u.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eE({...this._def,args:e_.create(e).rest(eu.create())})}returns(e){return new eE({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new eE({args:e||e_.create([]).rest(eu.create()),returns:t||eu.create(),typeName:tE.ZodFunction,...O(r)})}}class eC extends I{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}eC.create=(e,t)=>new eC({getter:e,typeName:tE.ZodLazy,...O(t)});class eA extends I{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return m(t,{received:t.data,code:a.invalid_literal,expected:this._def.value}),v}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ek(e,t){return new eO({values:e,typeName:tE.ZodEnum,...O(t)})}eA.create=(e,t)=>new eA({value:e,typeName:tE.ZodLiteral,...O(t)});class eO extends I{constructor(){super(...arguments),tx.set(this,void 0)}_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return m(t,{expected:ty.joinValues(r),received:t.parsedType,code:a.invalid_type}),v}if(E(this,tx,"f")||C(this,tx,new Set(this._def.values),"f"),!E(this,tx,"f").has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return m(t,{received:t.data,code:a.invalid_enum_value,options:r}),v}return y(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return eO.create(e,{...this._def,...t})}exclude(e,t=this._def){return eO.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}tx=new WeakMap,eO.create=ek;class eI extends I{constructor(){super(...arguments),tS.set(this,void 0)}_parse(e){let t=ty.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==i.string&&r.parsedType!==i.number){let e=ty.objectValues(t);return m(r,{expected:ty.joinValues(e),received:r.parsedType,code:a.invalid_type}),v}if(E(this,tS,"f")||C(this,tS,new Set(ty.getValidEnumValues(this._def.values)),"f"),!E(this,tS,"f").has(e.data)){let e=ty.objectValues(t);return m(r,{received:r.data,code:a.invalid_enum_value,options:e}),v}return y(e.data)}get enum(){return this._def.values}}tS=new WeakMap,eI.create=(e,t)=>new eI({values:e,typeName:tE.ZodNativeEnum,...O(t)});class eT extends I{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==i.promise&&!1===t.common.async?(m(t,{code:a.invalid_type,expected:i.promise,received:t.parsedType}),v):y((t.parsedType===i.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eT.create=(e,t)=>new eT({type:e,typeName:tE.ZodPromise,...O(t)});class eP extends I{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===tE.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{m(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){let e=n.transform(r.data,i);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return v;let n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?v:"dirty"===n.status||"dirty"===t.value?b(n.value):n});{if("aborted"===t.value)return v;let n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?v:"dirty"===n.status||"dirty"===t.value?b(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?v:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?v:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type)if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>x(e)?Promise.resolve(n.transform(e.value,i)).then(e=>({status:t.value,value:e})):e);else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!x(e))return e;let o=n.transform(e.value,i);if(o instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}ty.assertNever(n)}}eP.create=(e,t,r)=>new eP({schema:e,typeName:tE.ZodEffects,effect:t,...O(r)}),eP.createWithPreprocess=(e,t,r)=>new eP({schema:t,effect:{type:"preprocess",transform:e},typeName:tE.ZodEffects,...O(r)});class eR extends I{_parse(e){return this._getType(e)===i.undefined?y(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eR.create=(e,t)=>new eR({innerType:e,typeName:tE.ZodOptional,...O(t)});class eM extends I{_parse(e){return this._getType(e)===i.null?y(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eM.create=(e,t)=>new eM({innerType:e,typeName:tE.ZodNullable,...O(t)});class e$ extends I{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===i.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}e$.create=(e,t)=>new e$({innerType:e,typeName:tE.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...O(t)});class eN extends I{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return S(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new l(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new l(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}eN.create=(e,t)=>new eN({innerType:e,typeName:tE.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...O(t)});class ej extends I{_parse(e){if(this._getType(e)!==i.nan){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.nan,received:t.parsedType}),v}return{status:"valid",value:e.data}}}ej.create=e=>new ej({typeName:tE.ZodNaN,...O(e)});let eB=Symbol("zod_brand");class eL extends I{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class eF extends I{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?v:"dirty"===e.status?(t.dirty(),b(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?v:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new eF({in:e,out:t,typeName:tE.ZodPipeline})}}class eD extends I{_parse(e){let t=this._def.innerType._parse(e),r=e=>(x(e)&&(e.value=Object.freeze(e.value)),e);return S(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}function ez(e,t){let r="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof r?{message:r}:r}function eU(e,t={},r){return e?el.create().superRefine((n,i)=>{var o,a;let s=e(n);if(s instanceof Promise)return s.then(e=>{var o,a;if(!e){let e=ez(t,n),s=null==(a=null!=(o=e.fatal)?o:r)||a;i.addIssue({code:"custom",...e,fatal:s})}});if(!s){let e=ez(t,n),s=null==(a=null!=(o=e.fatal)?o:r)||a;i.addIssue({code:"custom",...e,fatal:s})}}):el.create()}eD.create=(e,t)=>new eD({innerType:e,typeName:tE.ZodReadonly,...O(t)});let eZ={object:ep.lazycreate};!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(tE||(tE={}));let eH=(e,t={message:`Input not instance of ${e.name}`})=>eU(t=>t instanceof e,t),eG=Q.create,eW=et.create,eV=ej.create,eq=er.create,eX=en.create,eY=ei.create,eK=eo.create,eJ=ea.create,eQ=es.create,e0=el.create,e1=eu.create,e2=ec.create,e3=ef.create,e5=eh.create,e4=ep.create,e6=ep.strictCreate,e8=em.create,e9=ev.create,e7=ey.create,te=e_.create,tt=ew.create,tr=ex.create,tn=eS.create,ti=eE.create,to=eC.create,ta=eA.create,ts=eO.create,tl=eI.create,tu=eT.create,tc=eP.create,tf=eR.create,th=eM.create,td=eP.createWithPreprocess,tp=eF.create,tm=()=>eW().optional(),tg=()=>eX().optional(),tv={string:e=>Q.create({...e,coerce:!0}),number:e=>et.create({...e,coerce:!0}),boolean:e=>en.create({...e,coerce:!0}),bigint:e=>er.create({...e,coerce:!0}),date:e=>ei.create({...e,coerce:!0})},tb=v;var ty,t_,tw,tx,tS,tE,tC=Object.freeze({__proto__:null,defaultErrorMap:u,setErrorMap:f,getErrorMap:h,makeIssue:d,EMPTY_PATH:p,addIssueToContext:m,ParseStatus:g,INVALID:v,DIRTY:b,OK:y,isAborted:_,isDirty:w,isValid:x,isAsync:S,get util(){return ty},get objectUtil(){return t_},ZodParsedType:i,getParsedType:o,ZodType:I,datetimeRegex:X,ZodString:Q,ZodNumber:et,ZodBigInt:er,ZodBoolean:en,ZodDate:ei,ZodSymbol:eo,ZodUndefined:ea,ZodNull:es,ZodAny:el,ZodUnknown:eu,ZodNever:ec,ZodVoid:ef,ZodArray:eh,ZodObject:ep,ZodUnion:em,ZodDiscriminatedUnion:ev,ZodIntersection:ey,ZodTuple:e_,ZodRecord:ew,ZodMap:ex,ZodSet:eS,ZodFunction:eE,ZodLazy:eC,ZodLiteral:eA,ZodEnum:eO,ZodNativeEnum:eI,ZodPromise:eT,ZodEffects:eP,ZodTransformer:eP,ZodOptional:eR,ZodNullable:eM,ZodDefault:e$,ZodCatch:eN,ZodNaN:ej,BRAND:eB,ZodBranded:eL,ZodPipeline:eF,ZodReadonly:eD,custom:eU,Schema:I,ZodSchema:I,late:eZ,get ZodFirstPartyTypeKind(){return tE},coerce:tv,any:e0,array:e5,bigint:eq,boolean:eX,date:eY,discriminatedUnion:e9,effect:tc,enum:ts,function:ti,instanceof:eH,intersection:e7,lazy:to,literal:ta,map:tr,nan:eV,nativeEnum:tl,never:e2,null:eQ,nullable:th,number:eW,object:e4,oboolean:tg,onumber:tm,optional:tf,ostring:()=>eG().optional(),pipeline:tp,preprocess:td,promise:tu,record:tt,set:tn,strictObject:e6,string:eG,symbol:eK,transformer:tc,tuple:te,undefined:eJ,union:e8,unknown:e1,void:e3,NEVER:tb,ZodIssueCode:a,quotelessJson:s,ZodError:l})},62858:function(e,t,r){"use strict";r.d(t,{Ue:()=>d});let n=e=>{let t,r=new Set,n=(e,n)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,o={setState:n,getState:i,getInitialState:()=>a,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},a=t=e(n,i,o);return o},i=e=>e?n(e):n;var o=r(44194),a=r(67591);let{useDebugValue:s}=o,{useSyncExternalStoreWithSelector:l}=a,u=!1,c=e=>e;function f(e,t=c,r){r&&!u&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),u=!0);let n=l(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return s(n),n}let h=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let t="function"==typeof e?i(e):e,r=(e,r)=>f(t,e,r);return Object.assign(r,t),r},d=e=>e?h(e):h}}]);
688
- //# sourceMappingURL=683.03396602.js.map
687
+ Deprecated since v${e}`),console.warn(i))),n[t]=!0}},92245:function(e,t,r){"use strict";r.d(t,{Z:()=>o});let n=0,i=500;function o(...e){n!==i&&(++n===i?console.warn("PixiJS Warning: too many warnings, no more warnings will be reported to the console by PixiJS."):console.warn("PixiJS Warning: ",...e))}},15792:function(e,t,r){"use strict";r.d(t,{E:()=>u});var n=r(767);function i(e){if("string"!=typeof e)throw TypeError(`Path must be a string. Received ${JSON.stringify(e)}`)}function o(e){return e.split("?")[0].split("#")[0]}function a(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function s(e,t,r){return e.replace(RegExp(a(t),"g"),r)}function l(e,t){let r="",n=0,i=-1,o=0,a=-1;for(let s=0;s<=e.length;++s){if(s<e.length)a=e.charCodeAt(s);else if(47===a)break;else a=47;if(47===a){if(i===s-1||1===o);else if(i!==s-1&&2===o){if(r.length<2||2!==n||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2)){if(r.length>2){let e=r.lastIndexOf("/");if(e!==r.length-1){-1===e?(r="",n=0):n=(r=r.slice(0,e)).length-1-r.lastIndexOf("/"),i=s,o=0;continue}}else if(2===r.length||1===r.length){r="",n=0,i=s,o=0;continue}}t&&(r.length>0?r+="/..":r="..",n=2)}else r.length>0?r+=`/${e.slice(i+1,s)}`:r=e.slice(i+1,s),n=s-i-1;i=s,o=0}else 46===a&&-1!==o?++o:o=-1}return r}let u={toPosix:e=>s(e,"\\","/"),isUrl(e){return/^https?:/.test(this.toPosix(e))},isDataUrl:e=>/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(e),isBlobUrl:e=>e.startsWith("blob:"),hasProtocol(e){return/^[^/:]+:/.test(this.toPosix(e))},getProtocol(e){i(e),e=this.toPosix(e);let t=/^file:\/\/\//.exec(e);if(t)return t[0];let r=/^[^/:]+:\/{0,2}/.exec(e);return r?r[0]:""},toAbsolute(e,t,r){if(i(e),this.isDataUrl(e)||this.isBlobUrl(e))return e;let a=o(this.toPosix(t??n.z.get().getBaseUrl())),s=o(this.toPosix(r??this.rootname(a)));return(e=this.toPosix(e)).startsWith("/")?u.join(s,e.slice(1)):this.isAbsolute(e)?e:this.join(a,e)},normalize(e){if(i(e),0===e.length)return".";if(this.isDataUrl(e)||this.isBlobUrl(e))return e;e=this.toPosix(e);let t="",r=e.startsWith("/");this.hasProtocol(e)&&(t=this.rootname(e),e=e.slice(t.length));let n=e.endsWith("/");return((e=l(e,!1)).length>0&&n&&(e+="/"),r)?`/${e}`:t+e},isAbsolute(e){return i(e),e=this.toPosix(e),!!this.hasProtocol(e)||e.startsWith("/")},join(...e){let t;if(0===e.length)return".";for(let r=0;r<e.length;++r){let n=e[r];if(i(n),n.length>0)if(void 0===t)t=n;else{let i=e[r-1]??"";this.joinExtensions.includes(this.extname(i).toLowerCase())?t+=`/../${n}`:t+=`/${n}`}}return void 0===t?".":this.normalize(t)},dirname(e){if(i(e),0===e.length)return".";let t=(e=this.toPosix(e)).charCodeAt(0),r=47===t,n=-1,o=!0,a=this.getProtocol(e),s=e;e=e.slice(a.length);for(let r=e.length-1;r>=1;--r)if(47===(t=e.charCodeAt(r))){if(!o){n=r;break}}else o=!1;return -1===n?r?"/":this.isUrl(s)?a+e:a:r&&1===n?"//":a+e.slice(0,n)},rootname(e){i(e);let t="";if(t=(e=this.toPosix(e)).startsWith("/")?"/":this.getProtocol(e),this.isUrl(e)){let r=e.indexOf("/",t.length);(t=-1!==r?e.slice(0,r):e).endsWith("/")||(t+="/")}return t},basename(e,t){let r;i(e),t&&i(t),e=o(this.toPosix(e));let n=0,a=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";let i=t.length-1,o=-1;for(r=e.length-1;r>=0;--r){let l=e.charCodeAt(r);if(47===l){if(!s){n=r+1;break}}else -1===o&&(s=!1,o=r+1),i>=0&&(l===t.charCodeAt(i)?-1==--i&&(a=r):(i=-1,a=o))}return n===a?a=o:-1===a&&(a=e.length),e.slice(n,a)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!s){n=r+1;break}}else -1===a&&(s=!1,a=r+1);return -1===a?"":e.slice(n,a)},extname(e){i(e),e=o(this.toPosix(e));let t=-1,r=0,n=-1,a=!0,s=0;for(let i=e.length-1;i>=0;--i){let o=e.charCodeAt(i);if(47===o){if(!a){r=i+1;break}continue}-1===n&&(a=!1,n=i+1),46===o?-1===t?t=i:1!==s&&(s=1):-1!==t&&(s=-1)}return -1===t||-1===n||0===s||1===s&&t===n-1&&t===r+1?"":e.slice(t,n)},parse(e){let t;i(e);let r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;let n=(e=o(this.toPosix(e))).charCodeAt(0),a=this.isAbsolute(e),s="";r.root=this.rootname(e),t=a||this.hasProtocol(e)?1:0;let l=-1,u=0,c=-1,f=!0,h=e.length-1,d=0;for(;h>=t;--h){if(47===(n=e.charCodeAt(h))){if(!f){u=h+1;break}continue}-1===c&&(f=!1,c=h+1),46===n?-1===l?l=h:1!==d&&(d=1):-1!==l&&(d=-1)}return -1===l||-1===c||0===d||1===d&&l===c-1&&l===u+1?-1!==c&&(0===u&&a?r.base=r.name=e.slice(1,c):r.base=r.name=e.slice(u,c)):(0===u&&a?(r.name=e.slice(1,l),r.base=e.slice(1,c)):(r.name=e.slice(u,l),r.base=e.slice(u,c)),r.ext=e.slice(l,c)),r.dir=this.dirname(e),s&&(r.dir=s+r.dir),r},sep:"/",delimiter:":",joinExtensions:[".html"]}},25400:function(e,t,r){"use strict";r.d(t,{K:()=>n});class n{constructor(e,t){this._pool=[],this._count=0,this._index=0,this._classType=e,t&&this.prepopulate(t)}prepopulate(e){for(let t=0;t<e;t++)this._pool[this._index++]=new this._classType;this._count+=e}get(e){let t;return t=this._index>0?this._pool[--this._index]:new this._classType,t.init?.(e),t}return(e){e.reset?.(),this._pool[this._index++]=e}get totalSize(){return this._count}get totalFree(){return this._index}get totalUsed(){return this._count-this._index}}},24951:function(e,t,r){"use strict";r.d(t,{u:()=>o});var n=r(25400);class i{constructor(){this._poolsByClass=new Map}prepopulate(e,t){this.getPool(e).prepopulate(t)}get(e,t){return this.getPool(e).get(t)}return(e){this.getPool(e.constructor).return(e)}getPool(e){return this._poolsByClass.has(e)||this._poolsByClass.set(e,new n.K(e)),this._poolsByClass.get(e)}stats(){let e={};return this._poolsByClass.forEach(t=>{let r=e[t._classType.name]?t._classType.name+t._classType.ID:t._classType.name;e[r]={free:t.totalFree,used:t.totalUsed,size:t.totalSize}}),e}}let o=new i},9450:function(e,t,r){"use strict";let n,i;r.d(t,{io:()=>eW});var o,a={};r.r(a),r.d(a,{Decoder:()=>eL,Encoder:()=>ej,PacketType:()=>o,protocol:()=>eN});let s=Object.create(null);s.open="0",s.close="1",s.ping="2",s.pong="3",s.message="4",s.upgrade="5",s.noop="6";let l=Object.create(null);Object.keys(s).forEach(e=>{l[s[e]]=e});let u={type:"error",data:"parser error"},c="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),f="function"==typeof ArrayBuffer,h=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,d=({type:e,data:t},r,n)=>{if(c&&t instanceof Blob)if(r)return n(t);else return p(t,n);if(f&&(t instanceof ArrayBuffer||h(t)))if(r)return n(t);else return p(new Blob([t]),n);return n(s[e]+(t||""))},p=(e,t)=>{let r=new FileReader;return r.onload=function(){t("b"+(r.result.split(",")[1]||""))},r.readAsDataURL(e)};function m(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}function g(e,t){return c&&e.data instanceof Blob?e.data.arrayBuffer().then(m).then(t):f&&(e.data instanceof ArrayBuffer||h(e.data))?t(m(e.data)):void d(e,!1,e=>{n||(n=new TextEncoder),t(n.encode(e))})}let v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<v.length;e++)b[v.charCodeAt(e)]=e;let y=e=>{let t=.75*e.length,r=e.length,n,i=0,o,a,s,l;"="===e[e.length-1]&&(t--,"="===e[e.length-2]&&t--);let u=new ArrayBuffer(t),c=new Uint8Array(u);for(n=0;n<r;n+=4)o=b[e.charCodeAt(n)],a=b[e.charCodeAt(n+1)],s=b[e.charCodeAt(n+2)],l=b[e.charCodeAt(n+3)],c[i++]=o<<2|a>>4,c[i++]=(15&a)<<4|s>>2,c[i++]=(3&s)<<6|63&l;return u},_="function"==typeof ArrayBuffer,w=(e,t)=>{if("string"!=typeof e)return{type:"message",data:S(e,t)};let r=e.charAt(0);return"b"===r?{type:"message",data:x(e.substring(1),t)}:l[r]?e.length>1?{type:l[r],data:e.substring(1)}:{type:l[r]}:u},x=(e,t)=>_?S(y(e),t):{base64:!0,data:e},S=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,E="\x1e",C=(e,t)=>{let r=e.length,n=Array(r),i=0;e.forEach((e,o)=>{d(e,!1,e=>{n[o]=e,++i===r&&t(n.join(E))})})},A=(e,t)=>{let r=e.split(E),n=[];for(let e=0;e<r.length;e++){let i=w(r[e],t);if(n.push(i),"error"===i.type)break}return n};function k(){return new TransformStream({transform(e,t){g(e,r=>{let n,i=r.length;if(i<126)new DataView((n=new Uint8Array(1)).buffer).setUint8(0,i);else if(i<65536){let e=new DataView((n=new Uint8Array(3)).buffer);e.setUint8(0,126),e.setUint16(1,i)}else{let e=new DataView((n=new Uint8Array(9)).buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(i))}e.data&&"string"!=typeof e.data&&(n[0]|=128),t.enqueue(n),t.enqueue(r)})}})}function O(e){return e.reduce((e,t)=>e+t.length,0)}function I(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let i=0;i<t;i++)r[i]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function T(e,t){i||(i=new TextDecoder);let r=[],n=0,o=-1,a=!1;return new TransformStream({transform(s,l){for(r.push(s);;){if(0===n){if(1>O(r))break;let e=I(r,1);a=(128&e[0])==128,n=(o=127&e[0])<126?3:126===o?1:2}else if(1===n){if(2>O(r))break;let e=I(r,2);o=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),n=3}else if(2===n){if(8>O(r))break;let e=I(r,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>2097151){l.enqueue(u);break}o=0x100000000*i+t.getUint32(4),n=3}else{if(O(r)<o)break;let e=I(r,o);l.enqueue(w(a?e:i.decode(e),t)),n=0}if(0===o||o>e){l.enqueue(u);break}}}})}let P=4;function R(e){if(e)return M(e)}function M(e){for(var t in R.prototype)e[t]=R.prototype[t];return e}R.prototype.on=R.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},R.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},R.prototype.off=R.prototype.removeListener=R.prototype.removeAllListeners=R.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<n.length;i++)if((r=n[i])===t||r.fn===t){n.splice(i,1);break}return 0===n.length&&delete this._callbacks["$"+e],this},R.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,i=r.length;n<i;++n)r[n].apply(this,t)}return this},R.prototype.emitReserved=R.prototype.emit,R.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},R.prototype.hasListeners=function(e){return!!this.listeners(e).length};let $="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),N="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")(),j="arraybuffer";function B(){}function L(e,...t){return t.reduce((t,r)=>(e.hasOwnProperty(r)&&(t[r]=e[r]),t),{})}let F=N.setTimeout,D=N.clearTimeout;function z(e,t){t.useNativeTimers?(e.setTimeoutFn=F.bind(N),e.clearTimeoutFn=D.bind(N)):(e.setTimeoutFn=N.setTimeout.bind(N),e.clearTimeoutFn=N.clearTimeout.bind(N))}let U=1.33;function Z(e){return"string"==typeof e?H(e):Math.ceil((e.byteLength||e.size)*U)}function H(e){let t=0,r=0;for(let n=0,i=e.length;n<i;n++)(t=e.charCodeAt(n))<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}function G(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function W(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function V(e){let t={},r=e.split("&");for(let e=0,n=r.length;e<n;e++){let n=r[e].split("=");t[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return t}class q extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}class X extends R{constructor(e){super(),this.writable=!1,z(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,r){return super.emitReserved("error",new q(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=w(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return -1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){let t=W(e);return t.length?"?"+t:""}}class Y extends X{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let t=e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)};A(e,this.socket.binaryType).forEach(t),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){let e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,C(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=G()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}}let K=!1;try{K="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}let J=K;function Q(){}class ee extends Y{constructor(e){if(super(e),"undefined"!=typeof location){let t="https:"===location.protocol,r=location.port;r||(r=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,t){let r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}class et extends R{constructor(e,t,r){super(),this.createRequest=e,z(this,r),this._opts=r,this._method=r.method||"GET",this._uri=t,this._data=void 0!==r.data?r.data:null,this._create()}_create(){var e;let t=L(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;let r=this._xhr=this.createRequest(t);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders)for(let e in r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0),this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this._opts.extraHeaders[e])}catch(e){}if("POST"===this._method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{r.setRequestHeader("Accept","*/*")}catch(e){}null==(e=this._opts.cookieJar)||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var e;3===r.readyState&&(null==(e=this._opts.cookieJar)||e.parseCookies(r.getResponseHeader("set-cookie"))),4===r.readyState&&(200===r.status||1223===r.status?this._onLoad():this.setTimeoutFn(()=>{this._onError("number"==typeof r.status?r.status:0)},0))},r.send(this._data)}catch(e){this.setTimeoutFn(()=>{this._onError(e)},0);return}"undefined"!=typeof document&&(this._index=et.requestsCount++,et.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=Q,e)try{this._xhr.abort()}catch(e){}"undefined"!=typeof document&&delete et.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}function er(){for(let e in et.requests)et.requests.hasOwnProperty(e)&&et.requests[e].abort()}et.requestsCount=0,et.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",er):"function"==typeof addEventListener&&addEventListener("onpagehide"in N?"pagehide":"unload",er,!1));let en=function(){let e=eo({xdomain:!1});return e&&null!==e.responseType}();class ei extends ee{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=en&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new et(eo,this.uri(),e)}}function eo(e){let t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||J))return new XMLHttpRequest}catch(e){}if(!t)try{return new N[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(e){}}let ea="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class es extends X{get name(){return"websocket"}doOpen(){let e=this.uri(),t=this.opts.protocols,r=ea?{}:L(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,r)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;d(r,this.supportsBinary,e=>{try{this.doWrite(r,e)}catch(e){}n&&$(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=G()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}let el=N.WebSocket||N.MozWebSocket;class eu extends es{createSocket(e,t,r){return ea?new el(e,t,r):t?new el(e,t):new el(e)}doWrite(e,t){this.ws.send(t)}}class ec extends X{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=T(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),n=k();n.readable.pipeTo(e.writable),this._writer=n.writable.getWriter();let i=()=>{r.read().then(({done:e,value:t})=>{e||(this.onPacket(t),i())}).catch(e=>{})};i();let o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;this._writer.write(r).then(()=>{n&&$(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null==(e=this._transport)||e.close()}}let ef={websocket:eu,webtransport:ec,polling:ei},eh=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,ed=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ep(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");-1!=r&&-1!=n&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let i=eh.exec(e||""),o={},a=14;for(;a--;)o[ed[a]]=i[a]||"";return -1!=r&&-1!=n&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=em(o,o.path),o.queryKey=eg(o,o.query),o}function em(e,t){let r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return("/"==t.slice(0,1)||0===t.length)&&n.splice(0,1),"/"==t.slice(-1)&&n.splice(n.length-1,1),n}function eg(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,n){t&&(r[t]=n)}),r}let ev="function"==typeof addEventListener&&"function"==typeof removeEventListener,eb=[];ev&&addEventListener("offline",()=>{eb.forEach(e=>e())},!1);class ey extends R{constructor(e,t){if(super(),this.binaryType=j,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&"object"==typeof e&&(t=e,e=null),e){let r=ep(e);t.hostname=r.host,t.secure="https"===r.protocol||"wss"===r.protocol,t.port=r.port,r.query&&(t.query=r.query)}else t.host&&(t.hostname=ep(t.host).host);z(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(e=>{let t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=V(this.opts.query)),ev&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},eb.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=B()),this._open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=P,t.transport=e,this.id&&(t.sid=this.id);let r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](r)}_open(){if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);let e=this.opts.rememberUpgrade&&ey.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";let t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",e=>this._onClose("transport close",e))}onOpen(){this.readyState="open",ey.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let t=Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){let r=this.writeBuffer[t].data;if(r&&(e+=Z(r)),t>0&&e>this._maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,$(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,r){return this._sendPacket("message",e,t,r),this}send(e,t,r){return this._sendPacket("message",e,t,r),this}_sendPacket(e,t,r,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof r&&(n=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;let i={type:e,data:t,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),n&&this.once("flush",n),this.flush()}close(){let e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}_onError(e){if(ey.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),ev&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let e=eb.indexOf(this._offlineEventListener);-1!==e&&eb.splice(e,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}ey.protocol=P;class e_ extends ey{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),r=!1;ey.priorWebsocketSuccess=!1;let n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",e=>{if(!r)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;ey.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{r||"closed"!==this.readyState&&(u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{let e=Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}}))};function i(){r||(r=!0,u(),t.close(),t=null)}let o=e=>{let r=Error("probe error: "+e);r.transport=t.name,i(),this.emitReserved("upgradeError",r)};function a(){o("transport closed")}function s(){o("socket closed")}function l(e){t&&e.name!==t.name&&i()}let u=()=>{t.removeListener("open",n),t.removeListener("error",o),t.removeListener("close",a),this.off("close",s),this.off("upgrading",l)};t.once("open",n),t.once("error",o),t.once("close",a),this.once("close",s),this.once("upgrading",l),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}}class ew extends e_{constructor(e,t={}){let r="object"==typeof e?e:t;(!r.transports||r.transports&&"string"==typeof r.transports[0])&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(e=>ef[e]).filter(e=>!!e)),super(e,r)}}function ex(e,t="",r){let n=e;r=r||"undefined"!=typeof location&&location,null==e&&(e=r.protocol+"//"+r.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?r.protocol+e:r.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==r?r.protocol+"//"+e:"https://"+e),n=ep(e)),!n.port&&(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let i=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port+t,n.href=n.protocol+"://"+i+(r&&r.port===n.port?"":":"+n.port),n}ew.protocol;let eS="function"==typeof ArrayBuffer,eE=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,eC=Object.prototype.toString,eA="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===eC.call(Blob),ek="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===eC.call(File);function eO(e){return eS&&(e instanceof ArrayBuffer||eE(e))||eA&&e instanceof Blob||ek&&e instanceof File}function eI(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,r=e.length;t<r;t++)if(eI(e[t]))return!0;return!1}if(eO(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1==arguments.length)return eI(e.toJSON(),!0);for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&eI(e[t]))return!0;return!1}function eT(e){let t=[],r=e.data,n=e;return n.data=eP(r,t),n.attachments=t.length,{packet:n,buffers:t}}function eP(e,t){if(!e)return e;if(eO(e)){let r={_placeholder:!0,num:t.length};return t.push(e),r}if(Array.isArray(e)){let r=Array(e.length);for(let n=0;n<e.length;n++)r[n]=eP(e[n],t);return r}if("object"==typeof e&&!(e instanceof Date)){let r={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=eP(e[n],t));return r}return e}function eR(e,t){return e.data=eM(e.data,t),delete e.attachments,e}function eM(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw Error("illegal attachments")}if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=eM(e[r],t);else if("object"==typeof e)for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=eM(e[r],t));return e}let e$=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],eN=5;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(o||(o={}));class ej{constructor(e){this.replacer=e}encode(e){return(e.type===o.EVENT||e.type===o.ACK)&&eI(e)?this.encodeAsBinary({type:e.type===o.EVENT?o.BINARY_EVENT:o.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===o.BINARY_EVENT||e.type===o.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=eT(e),r=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(r),n}}function eB(e){return"[object Object]"===Object.prototype.toString.call(e)}class eL extends R{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");let r=(t=this.decodeString(e)).type===o.BINARY_EVENT;r||t.type===o.BINARY_ACK?(t.type=r?o.EVENT:o.ACK,this.reconstructor=new eF(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(eO(e)||e.base64)if(this.reconstructor)(t=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw Error("got binary data when not reconstructing a packet");else throw Error("Unknown type: "+e)}decodeString(e){let t=0,r={type:Number(e.charAt(0))};if(void 0===o[r.type])throw Error("unknown packet type "+r.type);if(r.type===o.BINARY_EVENT||r.type===o.BINARY_ACK){let n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);let i=e.substring(n,t);if(i!=Number(i)||"-"!==e.charAt(t))throw Error("Illegal attachments");r.attachments=Number(i)}if("/"===e.charAt(t+1)){let n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);r.nsp=e.substring(n,t)}else r.nsp="/";let n=e.charAt(t+1);if(""!==n&&Number(n)==n){let n=t+1;for(;++t;){let r=e.charAt(t);if(null==r||Number(r)!=r){--t;break}if(t===e.length)break}r.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){let n=this.tryParse(e.substr(t));if(eL.isPayloadValid(r.type,n))r.data=n;else throw Error("invalid payload")}return r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case o.CONNECT:return eB(t);case o.DISCONNECT:return void 0===t;case o.CONNECT_ERROR:return"string"==typeof t||eB(t);case o.EVENT:case o.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===e$.indexOf(t[0]));case o.ACK:case o.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class eF{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let e=eR(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function eD(e,t,r){return e.on(t,r),function(){e.off(t,r)}}let ez=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class eU extends R{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[eD(e,"open",this.onopen.bind(this)),eD(e,"packet",this.onpacket.bind(this)),eD(e,"error",this.onerror.bind(this)),eD(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var r,n,i;if(ez.hasOwnProperty(e))throw Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let a={type:o.EVENT,data:t};if(a.options={},a.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){let e=this.ids++,r=t.pop();this._registerAckCallback(e,r),a.id=e}let s=null==(n=null==(r=this.io.engine)?void 0:r.transport)?void 0:n.writable,l=this.connected&&!(null==(i=this.io.engine)?void 0:i._hasPingExpired());return this.flags.volatile&&!s||(l?(this.notifyOutgoingListeners(a),this.packet(a)):this.sendBuffer.push(a)),this.flags={},this}_registerAckCallback(e,t){var r;let n=null!=(r=this.flags.timeout)?r:this._opts.ackTimeout;if(void 0===n){this.acks[e]=t;return}let i=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error("operation has timed out"))},n),o=(...e)=>{this.io.clearTimeoutFn(i),t.apply(this,e)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((r,n)=>{let i=(e,t)=>e?n(e):r(t);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...n)=>{if(r===this._queue[0])return null!==e?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...n)),r.pending=!1,this._drainQueue()}),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;let t=this._queue[0];(!t.pending||e)&&(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:o.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case o.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case o.EVENT:case o.BINARY_EVENT:this.onevent(e);break;case o.ACK:case o.BINARY_ACK:this.onack(e);break;case o.DISCONNECT:this.ondisconnect();break;case o.CONNECT_ERROR:this.destroy();let t=Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){let t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length)for(let t of this._anyListeners.slice())t.apply(this,e);super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,r=!1;return function(...n){r||(r=!0,t.packet({type:o.ACK,id:e,data:n}))}}onack(e){let t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:o.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r]){t.splice(r,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r]){t.splice(r,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length)for(let t of this._anyOutgoingListeners.slice())t.apply(this,e.data)}}function eZ(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}eZ.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(1&Math.floor(10*t))==0?e-r:e+r}return 0|Math.min(e,this.max)},eZ.prototype.reset=function(){this.attempts=0},eZ.prototype.setMin=function(e){this.ms=e},eZ.prototype.setMax=function(e){this.max=e},eZ.prototype.setJitter=function(e){this.jitter=e};class eH extends R{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,z(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!=(r=t.randomizationFactor)?r:.5),this.backoff=new eZ({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;let n=t.parser||a;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null==(t=this.backoff)||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null==(t=this.backoff)||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null==(t=this.backoff)||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new ew(this.uri,this.opts);let t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let n=eD(t,"open",function(){r.onopen(),e&&e()}),i=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=eD(t,"error",i);if(!1!==this._timeout){let e=this._timeout,r=this.setTimeoutFn(()=>{n(),i(Error("timeout")),t.close()},e);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}return this.subs.push(n),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(eD(e,"ping",this.onping.bind(this)),eD(e,"data",this.ondata.bind(this)),eD(e,"error",this.onerror.bind(this)),eD(e,"close",this.onclose.bind(this)),eD(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){$(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new eU(this,e,t),this.nsps[e]=r),r}_destroy(e){for(let e of Object.keys(this.nsps))if(this.nsps[e].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var r;this.cleanup(),null==(r=this.engine)||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{!e.skipReconnect&&(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}let eG={};function eW(e,t){let r;"object"==typeof e&&(t=e,e=void 0);let n=ex(e,(t=t||{}).path||"/socket.io"),i=n.source,o=n.id,a=n.path,s=eG[o]&&a in eG[o].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||s?r=new eH(i,t):(eG[o]||(eG[o]=new eH(i,t)),r=eG[o]),n.query&&!t.query&&(t.query=n.queryKey),r.socket(n.path,t)}Object.assign(eW,{Manager:eH,Socket:eU,io:eW,connect:eW})},43427:function(e,t,r){"use strict";let n;r.d(t,{ak:()=>eR,pA:()=>tE,z:()=>tC}),function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},e.getValidEnumValues=t=>{let r=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),n={};for(let e of r)n[e]=t[e];return e.objectValues(n)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e.find=(e,t)=>{for(let r of e)if(t(r))return r},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(ty||(ty={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(t_||(t_={}));let i=ty.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),o=e=>{switch(typeof e){case"undefined":return i.undefined;case"string":return i.string;case"number":return isNaN(e)?i.nan:i.number;case"boolean":return i.boolean;case"function":return i.function;case"bigint":return i.bigint;case"symbol":return i.symbol;case"object":if(Array.isArray(e))return i.array;if(null===e)return i.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return i.promise;if("undefined"!=typeof Map&&e instanceof Map)return i.map;if("undefined"!=typeof Set&&e instanceof Set)return i.set;if("undefined"!=typeof Date&&e instanceof Date)return i.date;return i.object;default:return i.unknown}},a=ty.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),s=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class l extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;n<i.path.length;){let r=i.path[n];n===i.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(i))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof l))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ty.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let n of this.issues)n.path.length>0?(t[n.path[0]]=t[n.path[0]]||[],t[n.path[0]].push(e(n))):r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}l.create=e=>new l(e);let u=(e,t)=>{let r;switch(e.code){case a.invalid_type:r=e.received===i.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case a.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,ty.jsonStringifyReplacer)}`;break;case a.unrecognized_keys:r=`Unrecognized key(s) in object: ${ty.joinValues(e.keys,", ")}`;break;case a.invalid_union:r="Invalid input";break;case a.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${ty.joinValues(e.options)}`;break;case a.invalid_enum_value:r=`Invalid enum value. Expected ${ty.joinValues(e.options)}, received '${e.received}'`;break;case a.invalid_arguments:r="Invalid function arguments";break;case a.invalid_return_type:r="Invalid function return type";break;case a.invalid_date:r="Invalid date";break;case a.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:ty.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case a.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case a.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case a.custom:r="Invalid input";break;case a.invalid_intersection_types:r="Intersection results could not be merged";break;case a.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case a.not_finite:r="Number must be finite";break;default:r=t.defaultError,ty.assertNever(e)}return{message:r}},c=u;function f(e){c=e}function h(){return c}let d=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,o=[...r,...i.path||[]],a={...i,path:o};if(void 0!==i.message)return{...i,path:o,message:i.message};let s="";for(let e of n.filter(e=>!!e).slice().reverse())s=e(a,{data:t,defaultError:s}).message;return{...i,path:o,message:s}},p=[];function m(e,t){let r=h(),n=d({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===u?void 0:u].filter(e=>!!e)});e.common.issues.push(n)}class g{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let n of t){if("aborted"===n.status)return v;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return g.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:t,value:i}=n;if("aborted"===t.status||"aborted"===i.status)return v;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||n.alwaysSet)&&(r[t.value]=i.value)}return{status:e.value,value:r}}}let v=Object.freeze({status:"aborted"}),b=e=>({status:"dirty",value:e}),y=e=>({status:"valid",value:e}),_=e=>"aborted"===e.status,w=e=>"dirty"===e.status,x=e=>"valid"===e.status,S=e=>"undefined"!=typeof Promise&&e instanceof Promise;function E(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function C(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}"function"==typeof SuppressedError&&SuppressedError,function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(tw||(tw={}));class A{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let k=(e,t)=>{if(x(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new l(e.common.issues);return this._error=t,this._error}}};function O(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{var o,a;let{message:s}=e;return"invalid_enum_value"===t.code?{message:null!=s?s:i.defaultError}:void 0===i.data?{message:null!=(o=null!=s?s:n)?o:i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:null!=(a=null!=s?s:r)?a:i.defaultError}},description:i}}class I{get description(){return this._def.description}_getType(e){return o(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:o(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new g,ctx:{common:e.parent.common,data:e.data,parsedType:o(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(S(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;let n={common:{issues:[],async:null!=(r=null==t?void 0:t.async)&&r,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:o(e)},i=this._parseSync({data:e,path:n.path,parent:n});return k(n,i)}"~validate"(e){var t,r;let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:o(e)};if(!this["~standard"].async)try{let t=this._parseSync({data:e,path:[],parent:n});return x(t)?{value:t.value}:{issues:n.common.issues}}catch(e){(null==(r=null==(t=null==e?void 0:e.message)?void 0:t.toLowerCase())?void 0:r.includes("encountered"))&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:n}).then(e=>x(e)?{value:e.value}:{issues:n.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:o(e)},n=this._parse({data:e,path:r.path,parent:r});return k(r,await (S(n)?n:Promise.resolve(n)))}refine(e,t){let r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,n)=>{let i=e(t),o=()=>n.addIssue({code:a.custom,...r(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(o(),!1)):!!i||(o(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new eP({schema:this,typeName:tE.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return eR.create(this,this._def)}nullable(){return eM.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return eh.create(this)}promise(){return eT.create(this,this._def)}or(e){return em.create([this,e],this._def)}and(e){return ey.create(this,e,this._def)}transform(e){return new eP({...O(this._def),schema:this,typeName:tE.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let t="function"==typeof e?e:()=>e;return new e$({...O(this._def),innerType:this,defaultValue:t,typeName:tE.ZodDefault})}brand(){return new eL({typeName:tE.ZodBranded,type:this,...O(this._def)})}catch(e){let t="function"==typeof e?e:()=>e;return new eN({...O(this._def),innerType:this,catchValue:t,typeName:tE.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eF.create(this,e)}readonly(){return eD.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let T=/^c[^\s-]{8,}$/i,P=/^[0-9a-z]+$/,R=/^[0-9A-HJKMNP-TV-Z]{26}$/i,M=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,$=/^[a-z0-9_-]{21}$/i,N=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,j=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,B=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,L="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",F=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,D=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,z=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,U=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Z=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,H=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,G="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",W=RegExp(`^${G}$`);function V(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function q(e){return RegExp(`^${V(e)}$`)}function X(e){let t=`${G}T${V(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)}function Y(e,t){return!!(("v4"===t||!t)&&F.test(e)||("v6"===t||!t)&&z.test(e))}function K(e,t){if(!N.test(e))return!1;try{let[r]=e.split("."),n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));if("object"!=typeof i||null===i||!i.typ||!i.alg||t&&i.alg!==t)return!1;return!0}catch(e){return!1}}function J(e,t){return!!(("v4"===t||!t)&&D.test(e)||("v6"===t||!t)&&U.test(e))}class Q extends I{_parse(e){let t;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==i.string){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.string,received:t.parsedType}),v}let r=new g;for(let i of this._def.checks)if("min"===i.kind)e.data.length<i.value&&(m(t=this._getOrReturnCtx(e,t),{code:a.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if("max"===i.kind)e.data.length>i.value&&(m(t=this._getOrReturnCtx(e,t),{code:a.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if("length"===i.kind){let n=e.data.length>i.value,o=e.data.length<i.value;(n||o)&&(t=this._getOrReturnCtx(e,t),n?m(t,{code:a.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):o&&m(t,{code:a.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if("email"===i.kind)B.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"email",code:a.invalid_string,message:i.message}),r.dirty());else if("emoji"===i.kind)n||(n=RegExp(L,"u")),n.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"emoji",code:a.invalid_string,message:i.message}),r.dirty());else if("uuid"===i.kind)M.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"uuid",code:a.invalid_string,message:i.message}),r.dirty());else if("nanoid"===i.kind)$.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"nanoid",code:a.invalid_string,message:i.message}),r.dirty());else if("cuid"===i.kind)T.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"cuid",code:a.invalid_string,message:i.message}),r.dirty());else if("cuid2"===i.kind)P.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"cuid2",code:a.invalid_string,message:i.message}),r.dirty());else if("ulid"===i.kind)R.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"ulid",code:a.invalid_string,message:i.message}),r.dirty());else if("url"===i.kind)try{new URL(e.data)}catch(n){m(t=this._getOrReturnCtx(e,t),{validation:"url",code:a.invalid_string,message:i.message}),r.dirty()}else"regex"===i.kind?(i.regex.lastIndex=0,i.regex.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"regex",code:a.invalid_string,message:i.message}),r.dirty())):"trim"===i.kind?e.data=e.data.trim():"includes"===i.kind?e.data.includes(i.value,i.position)||(m(t=this._getOrReturnCtx(e,t),{code:a.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):"toLowerCase"===i.kind?e.data=e.data.toLowerCase():"toUpperCase"===i.kind?e.data=e.data.toUpperCase():"startsWith"===i.kind?e.data.startsWith(i.value)||(m(t=this._getOrReturnCtx(e,t),{code:a.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):"endsWith"===i.kind?e.data.endsWith(i.value)||(m(t=this._getOrReturnCtx(e,t),{code:a.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):"datetime"===i.kind?X(i).test(e.data)||(m(t=this._getOrReturnCtx(e,t),{code:a.invalid_string,validation:"datetime",message:i.message}),r.dirty()):"date"===i.kind?W.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{code:a.invalid_string,validation:"date",message:i.message}),r.dirty()):"time"===i.kind?q(i).test(e.data)||(m(t=this._getOrReturnCtx(e,t),{code:a.invalid_string,validation:"time",message:i.message}),r.dirty()):"duration"===i.kind?j.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"duration",code:a.invalid_string,message:i.message}),r.dirty()):"ip"===i.kind?Y(e.data,i.version)||(m(t=this._getOrReturnCtx(e,t),{validation:"ip",code:a.invalid_string,message:i.message}),r.dirty()):"jwt"===i.kind?K(e.data,i.alg)||(m(t=this._getOrReturnCtx(e,t),{validation:"jwt",code:a.invalid_string,message:i.message}),r.dirty()):"cidr"===i.kind?J(e.data,i.version)||(m(t=this._getOrReturnCtx(e,t),{validation:"cidr",code:a.invalid_string,message:i.message}),r.dirty()):"base64"===i.kind?Z.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"base64",code:a.invalid_string,message:i.message}),r.dirty()):"base64url"===i.kind?H.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"base64url",code:a.invalid_string,message:i.message}),r.dirty()):ty.assertNever(i);return{status:r.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:a.invalid_string,...tw.errToObj(r)})}_addCheck(e){return new Q({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...tw.errToObj(e)})}url(e){return this._addCheck({kind:"url",...tw.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...tw.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...tw.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...tw.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...tw.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...tw.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...tw.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...tw.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...tw.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...tw.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...tw.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...tw.errToObj(e)})}datetime(e){var t,r;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!=(t=null==e?void 0:e.offset)&&t,local:null!=(r=null==e?void 0:e.local)&&r,...tw.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...tw.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...tw.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...tw.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...tw.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...tw.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...tw.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...tw.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...tw.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...tw.errToObj(t)})}nonempty(e){return this.min(1,tw.errToObj(e))}trim(){return new Q({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Q({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Q({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function ee(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return parseInt(e.toFixed(i).replace(".",""))%parseInt(t.toFixed(i).replace(".",""))/Math.pow(10,i)}Q.create=e=>{var t;return new Q({checks:[],typeName:tE.ZodString,coerce:null!=(t=null==e?void 0:e.coerce)&&t,...O(e)})};class et extends I{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==i.number){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.number,received:t.parsedType}),v}let r=new g;for(let n of this._def.checks)"int"===n.kind?ty.isInteger(e.data)||(m(t=this._getOrReturnCtx(e,t),{code:a.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(m(t=this._getOrReturnCtx(e,t),{code:a.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(m(t=this._getOrReturnCtx(e,t),{code:a.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==ee(e.data,n.value)&&(m(t=this._getOrReturnCtx(e,t),{code:a.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(m(t=this._getOrReturnCtx(e,t),{code:a.not_finite,message:n.message}),r.dirty()):ty.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,tw.toString(t))}gt(e,t){return this.setLimit("min",e,!1,tw.toString(t))}lte(e,t){return this.setLimit("max",e,!0,tw.toString(t))}lt(e,t){return this.setLimit("max",e,!1,tw.toString(t))}setLimit(e,t,r,n){return new et({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:tw.toString(n)}]})}_addCheck(e){return new et({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:tw.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:tw.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:tw.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:tw.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:tw.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:tw.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:tw.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:tw.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:tw.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&ty.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;else"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value);return Number.isFinite(t)&&Number.isFinite(e)}}et.create=e=>new et({checks:[],typeName:tE.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...O(e)});class er extends I{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch(t){return this._getInvalidInput(e)}if(this._getType(e)!==i.bigint)return this._getInvalidInput(e);let r=new g;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(m(t=this._getOrReturnCtx(e,t),{code:a.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(m(t=this._getOrReturnCtx(e,t),{code:a.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(m(t=this._getOrReturnCtx(e,t),{code:a.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):ty.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.bigint,received:t.parsedType}),v}gte(e,t){return this.setLimit("min",e,!0,tw.toString(t))}gt(e,t){return this.setLimit("min",e,!1,tw.toString(t))}lte(e,t){return this.setLimit("max",e,!0,tw.toString(t))}lt(e,t){return this.setLimit("max",e,!1,tw.toString(t))}setLimit(e,t,r,n){return new er({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:tw.toString(n)}]})}_addCheck(e){return new er({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:tw.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:tw.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:tw.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:tw.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:tw.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}er.create=e=>{var t;return new er({checks:[],typeName:tE.ZodBigInt,coerce:null!=(t=null==e?void 0:e.coerce)&&t,...O(e)})};class en extends I{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==i.boolean){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.boolean,received:t.parsedType}),v}return y(e.data)}}en.create=e=>new en({typeName:tE.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...O(e)});class ei extends I{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==i.date){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.date,received:t.parsedType}),v}if(isNaN(e.data.getTime()))return m(this._getOrReturnCtx(e),{code:a.invalid_date}),v;let r=new g;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(m(t=this._getOrReturnCtx(e,t),{code:a.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(m(t=this._getOrReturnCtx(e,t),{code:a.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):ty.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new ei({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:tw.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:tw.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}ei.create=e=>new ei({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:tE.ZodDate,...O(e)});class eo extends I{_parse(e){if(this._getType(e)!==i.symbol){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.symbol,received:t.parsedType}),v}return y(e.data)}}eo.create=e=>new eo({typeName:tE.ZodSymbol,...O(e)});class ea extends I{_parse(e){if(this._getType(e)!==i.undefined){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.undefined,received:t.parsedType}),v}return y(e.data)}}ea.create=e=>new ea({typeName:tE.ZodUndefined,...O(e)});class es extends I{_parse(e){if(this._getType(e)!==i.null){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.null,received:t.parsedType}),v}return y(e.data)}}es.create=e=>new es({typeName:tE.ZodNull,...O(e)});class el extends I{constructor(){super(...arguments),this._any=!0}_parse(e){return y(e.data)}}el.create=e=>new el({typeName:tE.ZodAny,...O(e)});class eu extends I{constructor(){super(...arguments),this._unknown=!0}_parse(e){return y(e.data)}}eu.create=e=>new eu({typeName:tE.ZodUnknown,...O(e)});class ec extends I{_parse(e){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.never,received:t.parsedType}),v}}ec.create=e=>new ec({typeName:tE.ZodNever,...O(e)});class ef extends I{_parse(e){if(this._getType(e)!==i.undefined){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.void,received:t.parsedType}),v}return y(e.data)}}ef.create=e=>new ef({typeName:tE.ZodVoid,...O(e)});class eh extends I{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==i.array)return m(t,{code:a.invalid_type,expected:i.array,received:t.parsedType}),v;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,i=t.data.length<n.exactLength.value;(e||i)&&(m(t,{code:e?a.too_big:a.too_small,minimum:i?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(m(t,{code:a.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(m(t,{code:a.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new A(t,e,t.path,r)))).then(e=>g.mergeArray(r,e));let o=[...t.data].map((e,r)=>n.type._parseSync(new A(t,e,t.path,r)));return g.mergeArray(r,o)}get element(){return this._def.type}min(e,t){return new eh({...this._def,minLength:{value:e,message:tw.toString(t)}})}max(e,t){return new eh({...this._def,maxLength:{value:e,message:tw.toString(t)}})}length(e,t){return new eh({...this._def,exactLength:{value:e,message:tw.toString(t)}})}nonempty(e){return this.min(1,e)}}function ed(e){if(e instanceof ep){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=eR.create(ed(n))}return new ep({...e._def,shape:()=>t})}if(e instanceof eh)return new eh({...e._def,type:ed(e.element)});if(e instanceof eR)return eR.create(ed(e.unwrap()));if(e instanceof eM)return eM.create(ed(e.unwrap()));if(e instanceof e_)return e_.create(e.items.map(e=>ed(e)));else return e}eh.create=(e,t)=>new eh({type:e,minLength:null,maxLength:null,exactLength:null,typeName:tE.ZodArray,...O(t)});class ep extends I{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=ty.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==i.object){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.object,received:t.parsedType}),v}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof ec&&"strip"===this._def.unknownKeys))for(let e in r.data)o.includes(e)||s.push(e);let l=[];for(let e of o){let t=n[e],i=r.data[e];l.push({key:{status:"valid",value:e},value:t._parse(new A(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof ec){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of s)l.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)s.length>0&&(m(r,{code:a.unrecognized_keys,keys:s}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of s){let n=r.data[t];l.push({key:{status:"valid",value:t},value:e._parse(new A(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of l){let r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>g.mergeObjectSync(t,e)):g.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return tw.errToObj,new ep({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var n,i,o,a;let s=null!=(o=null==(i=(n=this._def).errorMap)?void 0:i.call(n,t,r).message)?o:r.defaultError;return"unrecognized_keys"===t.code?{message:null!=(a=tw.errToObj(e).message)?a:s}:{message:s}}}:{}})}strip(){return new ep({...this._def,unknownKeys:"strip"})}passthrough(){return new ep({...this._def,unknownKeys:"passthrough"})}extend(e){return new ep({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ep({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:tE.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ep({...this._def,catchall:e})}pick(e){let t={};return ty.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(t[r]=this.shape[r])}),new ep({...this._def,shape:()=>t})}omit(e){let t={};return ty.objectKeys(this.shape).forEach(r=>{e[r]||(t[r]=this.shape[r])}),new ep({...this._def,shape:()=>t})}deepPartial(){return ed(this)}partial(e){let t={};return ty.objectKeys(this.shape).forEach(r=>{let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}),new ep({...this._def,shape:()=>t})}required(e){let t={};return ty.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof eR;)e=e._def.innerType;t[r]=e}}),new ep({...this._def,shape:()=>t})}keyof(){return ek(ty.objectKeys(this.shape))}}ep.create=(e,t)=>new ep({shape:()=>e,unknownKeys:"strip",catchall:ec.create(),typeName:tE.ZodObject,...O(t)}),ep.strictCreate=(e,t)=>new ep({shape:()=>e,unknownKeys:"strict",catchall:ec.create(),typeName:tE.ZodObject,...O(t)}),ep.lazycreate=(e,t)=>new ep({shape:e,unknownKeys:"strip",catchall:ec.create(),typeName:tE.ZodObject,...O(t)});class em extends I{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;function n(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new l(e.ctx.common.issues));return m(t,{code:a.invalid_union,unionErrors:r}),v}if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(n);{let e,n=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},o=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=n.map(e=>new l(e));return m(t,{code:a.invalid_union,unionErrors:i}),v}}get options(){return this._def.options}}em.create=(e,t)=>new em({options:e,typeName:tE.ZodUnion,...O(t)});let eg=e=>{if(e instanceof eC)return eg(e.schema);if(e instanceof eP)return eg(e.innerType());if(e instanceof eA)return[e.value];if(e instanceof eO)return e.options;if(e instanceof eI)return ty.objectValues(e.enum);else if(e instanceof e$)return eg(e._def.innerType);else if(e instanceof ea)return[void 0];else if(e instanceof es)return[null];else if(e instanceof eR)return[void 0,...eg(e.unwrap())];else if(e instanceof eM)return[null,...eg(e.unwrap())];else if(e instanceof eL)return eg(e.unwrap());else if(e instanceof eD)return eg(e.unwrap());else if(e instanceof eN)return eg(e._def.innerType);else return[]};class ev extends I{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.object)return m(t,{code:a.invalid_type,expected:i.object,received:t.parsedType}),v;let r=this.discriminator,n=t.data[r],o=this.optionsMap.get(n);return o?t.common.async?o._parseAsync({data:t.data,path:t.path,parent:t}):o._parseSync({data:t.data,path:t.path,parent:t}):(m(t,{code:a.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),v)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let r of t){let t=eg(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(n.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);n.set(i,r)}}return new ev({typeName:tE.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...O(r)})}}function eb(e,t){let r=o(e),n=o(t);if(e===t)return{valid:!0,data:e};if(r===i.object&&n===i.object){let r=ty.objectKeys(t),n=ty.objectKeys(e).filter(e=>-1!==r.indexOf(e)),i={...e,...t};for(let r of n){let n=eb(e[r],t[r]);if(!n.valid)return{valid:!1};i[r]=n.data}return{valid:!0,data:i}}if(r===i.array&&n===i.array){if(e.length!==t.length)return{valid:!1};let r=[];for(let n=0;n<e.length;n++){let i=eb(e[n],t[n]);if(!i.valid)return{valid:!1};r.push(i.data)}return{valid:!0,data:r}}if(r===i.date&&n===i.date&&+e==+t)return{valid:!0,data:e};return{valid:!1}}class ey extends I{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(_(e)||_(n))return v;let i=eb(e.value,n.value);return i.valid?((w(e)||w(n))&&t.dirty(),{status:t.value,value:i.data}):(m(r,{code:a.invalid_intersection_types}),v)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ey.create=(e,t,r)=>new ey({left:e,right:t,typeName:tE.ZodIntersection,...O(r)});class e_ extends I{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.array)return m(r,{code:a.invalid_type,expected:i.array,received:r.parsedType}),v;if(r.data.length<this._def.items.length)return m(r,{code:a.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),v;!this._def.rest&&r.data.length>this._def.items.length&&(m(r,{code:a.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new A(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>g.mergeArray(t,e)):g.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new e_({...this._def,rest:e})}}e_.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new e_({items:e,typeName:tE.ZodTuple,rest:null,...O(t)})};class ew extends I{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.object)return m(r,{code:a.invalid_type,expected:i.object,received:r.parsedType}),v;let n=[],o=this._def.keyType,s=this._def.valueType;for(let e in r.data)n.push({key:o._parse(new A(r,e,r.path,e)),value:s._parse(new A(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?g.mergeObjectAsync(t,n):g.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new ew(t instanceof I?{keyType:e,valueType:t,typeName:tE.ZodRecord,...O(r)}:{keyType:Q.create(),valueType:e,typeName:tE.ZodRecord,...O(t)})}}class ex extends I{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.map)return m(r,{code:a.invalid_type,expected:i.map,received:r.parsedType}),v;let n=this._def.keyType,o=this._def.valueType,s=[...r.data.entries()].map(([e,t],i)=>({key:n._parse(new A(r,e,r.path,[i,"key"])),value:o._parse(new A(r,t,r.path,[i,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of s){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return v;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of s){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return v;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}ex.create=(e,t,r)=>new ex({valueType:t,keyType:e,typeName:tE.ZodMap,...O(r)});class eS extends I{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.set)return m(r,{code:a.invalid_type,expected:i.set,received:r.parsedType}),v;let n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(m(r,{code:a.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(m(r,{code:a.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let o=this._def.valueType;function s(e){let r=new Set;for(let n of e){if("aborted"===n.status)return v;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let l=[...r.data.values()].map((e,t)=>o._parse(new A(r,e,r.path,t)));return r.common.async?Promise.all(l).then(e=>s(e)):s(l)}min(e,t){return new eS({...this._def,minSize:{value:e,message:tw.toString(t)}})}max(e,t){return new eS({...this._def,maxSize:{value:e,message:tw.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}eS.create=(e,t)=>new eS({valueType:e,minSize:null,maxSize:null,typeName:tE.ZodSet,...O(t)});class eE extends I{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.function)return m(t,{code:a.invalid_type,expected:i.function,received:t.parsedType}),v;function r(e,r){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,h(),u].filter(e=>!!e),issueData:{code:a.invalid_arguments,argumentsError:r}})}function n(e,r){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,h(),u].filter(e=>!!e),issueData:{code:a.invalid_return_type,returnTypeError:r}})}let o={errorMap:t.common.contextualErrorMap},s=t.data;if(this._def.returns instanceof eT){let e=this;return y(async function(...t){let i=new l([]),a=await e._def.args.parseAsync(t,o).catch(e=>{throw i.addIssue(r(t,e)),i}),u=await Reflect.apply(s,this,a);return await e._def.returns._def.type.parseAsync(u,o).catch(e=>{throw i.addIssue(n(u,e)),i})})}{let e=this;return y(function(...t){let i=e._def.args.safeParse(t,o);if(!i.success)throw new l([r(t,i.error)]);let a=Reflect.apply(s,this,i.data),u=e._def.returns.safeParse(a,o);if(!u.success)throw new l([n(a,u.error)]);return u.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eE({...this._def,args:e_.create(e).rest(eu.create())})}returns(e){return new eE({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new eE({args:e||e_.create([]).rest(eu.create()),returns:t||eu.create(),typeName:tE.ZodFunction,...O(r)})}}class eC extends I{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}eC.create=(e,t)=>new eC({getter:e,typeName:tE.ZodLazy,...O(t)});class eA extends I{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return m(t,{received:t.data,code:a.invalid_literal,expected:this._def.value}),v}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ek(e,t){return new eO({values:e,typeName:tE.ZodEnum,...O(t)})}eA.create=(e,t)=>new eA({value:e,typeName:tE.ZodLiteral,...O(t)});class eO extends I{constructor(){super(...arguments),tx.set(this,void 0)}_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return m(t,{expected:ty.joinValues(r),received:t.parsedType,code:a.invalid_type}),v}if(E(this,tx,"f")||C(this,tx,new Set(this._def.values),"f"),!E(this,tx,"f").has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return m(t,{received:t.data,code:a.invalid_enum_value,options:r}),v}return y(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return eO.create(e,{...this._def,...t})}exclude(e,t=this._def){return eO.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}tx=new WeakMap,eO.create=ek;class eI extends I{constructor(){super(...arguments),tS.set(this,void 0)}_parse(e){let t=ty.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==i.string&&r.parsedType!==i.number){let e=ty.objectValues(t);return m(r,{expected:ty.joinValues(e),received:r.parsedType,code:a.invalid_type}),v}if(E(this,tS,"f")||C(this,tS,new Set(ty.getValidEnumValues(this._def.values)),"f"),!E(this,tS,"f").has(e.data)){let e=ty.objectValues(t);return m(r,{received:r.data,code:a.invalid_enum_value,options:e}),v}return y(e.data)}get enum(){return this._def.values}}tS=new WeakMap,eI.create=(e,t)=>new eI({values:e,typeName:tE.ZodNativeEnum,...O(t)});class eT extends I{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==i.promise&&!1===t.common.async?(m(t,{code:a.invalid_type,expected:i.promise,received:t.parsedType}),v):y((t.parsedType===i.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eT.create=(e,t)=>new eT({type:e,typeName:tE.ZodPromise,...O(t)});class eP extends I{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===tE.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{m(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){let e=n.transform(r.data,i);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return v;let n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?v:"dirty"===n.status||"dirty"===t.value?b(n.value):n});{if("aborted"===t.value)return v;let n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?v:"dirty"===n.status||"dirty"===t.value?b(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?v:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?v:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type)if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>x(e)?Promise.resolve(n.transform(e.value,i)).then(e=>({status:t.value,value:e})):e);else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!x(e))return e;let o=n.transform(e.value,i);if(o instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}ty.assertNever(n)}}eP.create=(e,t,r)=>new eP({schema:e,typeName:tE.ZodEffects,effect:t,...O(r)}),eP.createWithPreprocess=(e,t,r)=>new eP({schema:t,effect:{type:"preprocess",transform:e},typeName:tE.ZodEffects,...O(r)});class eR extends I{_parse(e){return this._getType(e)===i.undefined?y(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eR.create=(e,t)=>new eR({innerType:e,typeName:tE.ZodOptional,...O(t)});class eM extends I{_parse(e){return this._getType(e)===i.null?y(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eM.create=(e,t)=>new eM({innerType:e,typeName:tE.ZodNullable,...O(t)});class e$ extends I{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===i.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}e$.create=(e,t)=>new e$({innerType:e,typeName:tE.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...O(t)});class eN extends I{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return S(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new l(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new l(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}eN.create=(e,t)=>new eN({innerType:e,typeName:tE.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...O(t)});class ej extends I{_parse(e){if(this._getType(e)!==i.nan){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.nan,received:t.parsedType}),v}return{status:"valid",value:e.data}}}ej.create=e=>new ej({typeName:tE.ZodNaN,...O(e)});let eB=Symbol("zod_brand");class eL extends I{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class eF extends I{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?v:"dirty"===e.status?(t.dirty(),b(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?v:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new eF({in:e,out:t,typeName:tE.ZodPipeline})}}class eD extends I{_parse(e){let t=this._def.innerType._parse(e),r=e=>(x(e)&&(e.value=Object.freeze(e.value)),e);return S(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}function ez(e,t){let r="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof r?{message:r}:r}function eU(e,t={},r){return e?el.create().superRefine((n,i)=>{var o,a;let s=e(n);if(s instanceof Promise)return s.then(e=>{var o,a;if(!e){let e=ez(t,n),s=null==(a=null!=(o=e.fatal)?o:r)||a;i.addIssue({code:"custom",...e,fatal:s})}});if(!s){let e=ez(t,n),s=null==(a=null!=(o=e.fatal)?o:r)||a;i.addIssue({code:"custom",...e,fatal:s})}}):el.create()}eD.create=(e,t)=>new eD({innerType:e,typeName:tE.ZodReadonly,...O(t)});let eZ={object:ep.lazycreate};!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(tE||(tE={}));let eH=(e,t={message:`Input not instance of ${e.name}`})=>eU(t=>t instanceof e,t),eG=Q.create,eW=et.create,eV=ej.create,eq=er.create,eX=en.create,eY=ei.create,eK=eo.create,eJ=ea.create,eQ=es.create,e0=el.create,e1=eu.create,e2=ec.create,e3=ef.create,e5=eh.create,e4=ep.create,e6=ep.strictCreate,e8=em.create,e9=ev.create,e7=ey.create,te=e_.create,tt=ew.create,tr=ex.create,tn=eS.create,ti=eE.create,to=eC.create,ta=eA.create,ts=eO.create,tl=eI.create,tu=eT.create,tc=eP.create,tf=eR.create,th=eM.create,td=eP.createWithPreprocess,tp=eF.create,tm=()=>eW().optional(),tg=()=>eX().optional(),tv={string:e=>Q.create({...e,coerce:!0}),number:e=>et.create({...e,coerce:!0}),boolean:e=>en.create({...e,coerce:!0}),bigint:e=>er.create({...e,coerce:!0}),date:e=>ei.create({...e,coerce:!0})},tb=v;var ty,t_,tw,tx,tS,tE,tC=Object.freeze({__proto__:null,defaultErrorMap:u,setErrorMap:f,getErrorMap:h,makeIssue:d,EMPTY_PATH:p,addIssueToContext:m,ParseStatus:g,INVALID:v,DIRTY:b,OK:y,isAborted:_,isDirty:w,isValid:x,isAsync:S,get util(){return ty},get objectUtil(){return t_},ZodParsedType:i,getParsedType:o,ZodType:I,datetimeRegex:X,ZodString:Q,ZodNumber:et,ZodBigInt:er,ZodBoolean:en,ZodDate:ei,ZodSymbol:eo,ZodUndefined:ea,ZodNull:es,ZodAny:el,ZodUnknown:eu,ZodNever:ec,ZodVoid:ef,ZodArray:eh,ZodObject:ep,ZodUnion:em,ZodDiscriminatedUnion:ev,ZodIntersection:ey,ZodTuple:e_,ZodRecord:ew,ZodMap:ex,ZodSet:eS,ZodFunction:eE,ZodLazy:eC,ZodLiteral:eA,ZodEnum:eO,ZodNativeEnum:eI,ZodPromise:eT,ZodEffects:eP,ZodTransformer:eP,ZodOptional:eR,ZodNullable:eM,ZodDefault:e$,ZodCatch:eN,ZodNaN:ej,BRAND:eB,ZodBranded:eL,ZodPipeline:eF,ZodReadonly:eD,custom:eU,Schema:I,ZodSchema:I,late:eZ,get ZodFirstPartyTypeKind(){return tE},coerce:tv,any:e0,array:e5,bigint:eq,boolean:eX,date:eY,discriminatedUnion:e9,effect:tc,enum:ts,function:ti,instanceof:eH,intersection:e7,lazy:to,literal:ta,map:tr,nan:eV,nativeEnum:tl,never:e2,null:eQ,nullable:th,number:eW,object:e4,oboolean:tg,onumber:tm,optional:tf,ostring:()=>eG().optional(),pipeline:tp,preprocess:td,promise:tu,record:tt,set:tn,strictObject:e6,string:eG,symbol:eK,transformer:tc,tuple:te,undefined:eJ,union:e8,unknown:e1,void:e3,NEVER:tb,ZodIssueCode:a,quotelessJson:s,ZodError:l})},62858:function(e,t,r){"use strict";r.d(t,{Ue:()=>d});let n=e=>{let t,r=new Set,n=(e,n)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,o={setState:n,getState:i,getInitialState:()=>a,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},a=t=e(n,i,o);return o},i=e=>e?n(e):n;var o=r(44194),a=r(67591);let{useDebugValue:s}=o,{useSyncExternalStoreWithSelector:l}=a,u=!1,c=e=>e;function f(e,t=c,r){r&&!u&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),u=!0);let n=l(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return s(n),n}let h=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let t="function"==typeof e?i(e):e,r=(e,r)=>f(t,e,r);return Object.assign(r,t),r},d=e=>e?h(e):h}}]);
688
+ //# sourceMappingURL=763.40f17c2d.js.map