@kb-labs/qa-entry 2.119.0-canary.f8394d5fd → 2.119.1-canary.b53bbee1d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/widgets/46.js +1 -1
- package/dist/widgets/823.js +1 -1
- package/dist/widgets/832.js +2 -2
- package/dist/widgets/875.js +1 -1
- package/dist/widgets/mf-manifest.json +12 -12
- package/dist/widgets/mf-stats.json +12 -12
- package/dist/widgets/remoteEntry.js +4 -4
- package/package.json +9 -9
package/dist/widgets/46.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(self.rspackChunk_kb_labs_qa_entry=self.rspackChunk_kb_labs_qa_entry||[]).push([[46],{8229(e,t,n){"use strict";let r,o,a,i,l,c,s;n.r(t),n.d(t,{Affix:()=>r1,Alert:()=>ac,Anchor:()=>aO,App:()=>du,AutoComplete:()=>pB,Avatar:()=>my,BackTop:()=>mC,Badge:()=>mL,Breadcrumb:()=>hT,Button:()=>ci,Calendar:()=>b3,Card:()=>yB,Carousel:()=>$I,Cascader:()=>xk,Checkbox:()=>xM,Col:()=>xD,Collapse:()=>l_,ColorPicker:()=>Cq,ConfigProvider:()=>iC,DatePicker:()=>Eg,Descriptions:()=>Ek,Divider:()=>xW,Drawer:()=>EW,Dropdown:()=>E4,Empty:()=>fZ,Flex:()=>Se,FloatButton:()=>S$,Form:()=>SU,Grid:()=>SQ,Image:()=>kk,Input:()=>kQ,InputNumber:()=>wJ,Layout:()=>k5,List:()=>OT,Mentions:()=>O0,Menu:()=>h$,Modal:()=>Ar,Pagination:()=>Oh,Popconfirm:()=>Ay,Popover:()=>mv,Progress:()=>Aq,QRCode:()=>Ic,Radio:()=>Is,Rate:()=>Iv,Result:()=>IO,Row:()=>IA,Segmented:()=>x0,Select:()=>pj,Skeleton:()=>ur,Slider:()=>CS,Space:()=>E0,Spin:()=>OA,Splitter:()=>IH,Statistic:()=>IG,Steps:()=>I3,Switch:()=>Ne,Table:()=>ML,Tabs:()=>yI,Tag:()=>MQ,TimePicker:()=>M9,Timeline:()=>Rl,Tooltip:()=>ms,Tour:()=>RO,Transfer:()=>RK,Tree:()=>Mi,TreeSelect:()=>Pi,Typography:()=>PF,Upload:()=>Tu,Watermark:()=>Th,message:()=>O9,notification:()=>Ap,theme:()=>M2,unstableSetRender:()=>iT,version:()=>nX});var u,d,f,p,m,g,h,v,b,y,$,x=n(92),w=n.n(x),C=n(9400),E=n.n(C);function S(){return(S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var k=n(8143),O=Symbol.for("react.element"),A=Symbol.for("react.transitional.element"),I=Symbol.for("react.fragment");function N(e){return e&&"object"===(0,k.A)(e)&&(e.$$typeof===O||e.$$typeof===A)&&e.type===I}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return w().Children.forEach(e,function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(j(e)):N(e)&&e.props?n=n.concat(j(e.props.children,t)):n.push(e))}),n}var M={},R=[];function P(e,t){}function T(e,t){}function z(e,t,n){t||M[n]||(e(!1,n),M[n]=!0)}function B(e,t){z(P,e,t)}B.preMessage=function(e){R.push(e)},B.resetWarned=function(){M={}},B.noteOnce=function(e,t){z(T,e,t)};var D=n(5314),H=n(4778),L=n.n(H);function F(e){return e instanceof HTMLElement||e instanceof SVGElement}function W(e){return e&&"object"===(0,k.A)(e)&&F(e.nativeElement)?e.nativeElement:F(e)?e:null}function _(e){var t,n=W(e);return n||(e instanceof w().Component?null==(t=L().findDOMNode)?void 0:t.call(L(),e):null)}var V=n(3930);function q(e,t,n){var r=x.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var K=Number(x.version.split(".")[0]),X=function(e,t){"function"==typeof e?e(t):"object"===(0,k.A)(e)&&e&&"current"in e&&(e.current=t)},G=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach(function(t){X(t,e)})}},Y=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return q(function(){return G.apply(void 0,t)},t,function(e,t){return e.length!==t.length||e.every(function(e,n){return e!==t[n]})})},U=function(e){if(!e)return!1;if(Q(e)&&K>=19)return!0;var t,n,r=(0,V.isMemo)(e)?e.type.type:e.type;return("function"!=typeof r||!!(null!=(t=r.prototype)&&t.render)||r.$$typeof===V.ForwardRef)&&("function"!=typeof e||!!(null!=(n=e.prototype)&&n.render)||e.$$typeof===V.ForwardRef)};function Q(e){return(0,x.isValidElement)(e)&&!N(e)}var Z=function(e){return e&&Q(e)?e.props.propertyIsEnumerable("ref")?e.props.ref:e.ref:null},J=x.createContext(null),ee=function(){if("u">typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}(),et="u">typeof window&&"u">typeof document&&window.document===document,en=void 0!==n.g&&n.g.Math===Math?n.g:"u">typeof self&&self.Math===Math?self:"u">typeof window&&window.Math===Math?window:Function("return this")(),er="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(en):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},eo=["top","right","bottom","left","width","height","size","weight"],ea="u">typeof MutationObserver,ei=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e){var t=!1,n=!1,r=0;function o(){t&&(t=!1,e()),n&&i()}function a(){er(o)}function i(){var e=Date.now();if(t){if(e-r<2)return;n=!0}else t=!0,n=!1,setTimeout(a,20);r=e}return i}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){et&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ea?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){et&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;eo.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),el=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},ec=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||en},es=ep(0,0,0,0);function eu(e){return parseFloat(e)||0}function ed(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+eu(e["border-"+n+"-width"])},0)}var ef="u">typeof SVGGraphicsElement?function(e){return e instanceof ec(e).SVGGraphicsElement}:function(e){return e instanceof ec(e).SVGElement&&"function"==typeof e.getBBox};function ep(e,t,n,r){return{x:e,y:t,width:n,height:r}}var em=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ep(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=function(e){if(!et)return es;if(ef(e)){var t;return ep(0,0,(t=e.getBBox()).width,t.height)}return function(e){var t,n=e.clientWidth,r=e.clientHeight;if(!n&&!r)return es;var o=ec(e).getComputedStyle(e),a=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],a=e["padding-"+o];t[o]=eu(a)}return t}(o),i=a.left+a.right,l=a.top+a.bottom,c=eu(o.width),s=eu(o.height);if("border-box"===o.boxSizing&&(Math.round(c+i)!==n&&(c-=ed(o,"left","right")+i),Math.round(s+l)!==r&&(s-=ed(o,"top","bottom")+l)),(t=e)!==ec(t).document.documentElement){var u=Math.round(c+i)-n,d=Math.round(s+l)-r;1!==Math.abs(u)&&(c-=u),1!==Math.abs(d)&&(s-=d)}return ep(a.left,a.top,c,s)}(e)}(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),eg=function(e,t){var n,r,o,a,i,l=(n=t.x,r=t.y,o=t.width,a=t.height,el(i=Object.create(("u">typeof DOMRectReadOnly?DOMRectReadOnly:Object).prototype),{x:n,y:r,width:o,height:a,top:r,right:n+o,bottom:a+r,left:n}),i);el(this,{target:e,contentRect:l})},eh=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new ee,"function"!=typeof e)throw TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if(!("u"<typeof Element)&&Element instanceof Object){if(!(e instanceof ec(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new em(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if(!("u"<typeof Element)&&Element instanceof Object){if(!(e instanceof ec(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new eg(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),ev="u">typeof WeakMap?new WeakMap:new ee,eb=function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var n=new eh(t,ei.getInstance(),this);ev.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){eb.prototype[e]=function(){var t;return(t=ev.get(this))[e].apply(t,arguments)}});var ey=void 0!==en.ResizeObserver?en.ResizeObserver:eb,e$=new Map,ex=new ey(function(e){e.forEach(function(e){var t,n=e.target;null==(t=e$.get(n))||t.forEach(function(e){return e(n)})})}),ew=n(1194),eC=n(1580),eE=n(3834),eS=n(3593),ek=n(4151),eO=n(611);function eA(e){var t=(0,ek.A)();return function(){var n,r=(0,eS.A)(e);return n=t?Reflect.construct(r,arguments,(0,eS.A)(this).constructor):r.apply(this,arguments),(0,eO.A)(this,n)}}var eI=function(e){(0,eE.A)(n,e);var t=eA(n);function n(){return(0,ew.A)(this,n),t.apply(this,arguments)}return(0,eC.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(x.Component),eN=x.forwardRef(function(e,t){var n=e.children,r=e.disabled,o=x.useRef(null),a=x.useRef(null),i=x.useContext(J),l="function"==typeof n,c=l?n(o):n,s=x.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!l&&x.isValidElement(c)&&U(c),d=Y(u?Z(c):null,o),f=function(){var e;return _(o.current)||(o.current&&"object"===(0,k.A)(o.current)?_(null==(e=o.current)?void 0:e.nativeElement):null)||_(a.current)};x.useImperativeHandle(t,function(){return f()});var p=x.useRef(e);p.current=e;var m=x.useCallback(function(e){var t=p.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),a=o.width,l=o.height,c=e.offsetWidth,u=e.offsetHeight,d=Math.floor(a),f=Math.floor(l);if(s.current.width!==d||s.current.height!==f||s.current.offsetWidth!==c||s.current.offsetHeight!==u){var m={width:d,height:f,offsetWidth:c,offsetHeight:u};s.current=m;var g=c===Math.round(a)?a:c,h=u===Math.round(l)?l:u,v=(0,D.A)((0,D.A)({},m),{},{offsetWidth:g,offsetHeight:h});null==i||i(v,e,r),n&&Promise.resolve().then(function(){n(v,e)})}},[]);return x.useEffect(function(){var e=f();return e&&!r&&(e$.has(e)||(e$.set(e,new Set),ex.observe(e)),e$.get(e).add(m)),function(){e$.has(e)&&(e$.get(e).delete(m),!e$.get(e).size&&(ex.unobserve(e),e$.delete(e)))}},[o.current,r]),x.createElement(eI,{ref:a},u?x.cloneElement(c,{ref:d}):c)}),ej=x.forwardRef(function(e,t){var n=e.children;return("function"==typeof n?[n]:j(n)).map(function(n,r){var o=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(r);return x.createElement(eN,S({},e,{key:o,ref:0===r?t:void 0}),n)})});ej.Collection=function(e){var t=e.children,n=e.onBatchResize,r=x.useRef(0),o=x.useRef([]),a=x.useContext(J),i=x.useCallback(function(e,t,i){r.current+=1;var l=r.current;o.current.push({size:e,element:t,data:i}),Promise.resolve().then(function(){l===r.current&&(null==n||n(o.current),o.current=[])}),null==a||a(e,t,i)},[n,a]);return x.createElement(J.Provider,{value:i},t)};var eM=n(1782),eR=function(e){return+setTimeout(e,16)},eP=function(e){return clearTimeout(e)};"u">typeof window&&"requestAnimationFrame"in window&&(eR=function(e){return window.requestAnimationFrame(e)},eP=function(e){return window.cancelAnimationFrame(e)});var eT=0,ez=new Map,eB=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=eT+=1;return!function t(r){if(0===r)ez.delete(n),e();else{var o=eR(function(){t(r-1)});ez.set(n,o)}}(t),n};eB.cancel=function(e){var t=ez.get(e);return ez.delete(e),eP(t)};let eD=function(e){let t=null,n=(...n)=>{null===t&&(t=eB(()=>{t=null,e.apply(void 0,(0,eM.A)(n))}))};return n.cancel=()=>{eB.cancel(t),t=null},n},eH="anticon",eL=["outlined","borderless","filled","underlined"],eF=x.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:eH}),{Consumer:eW}=eF,e_={};function eV(e){let t=x.useContext(eF),{getPrefixCls:n,direction:r,getPopupContainer:o}=t;return Object.assign(Object.assign({classNames:e_,styles:e_},t[e]),{getPrefixCls:n,direction:r,getPopupContainer:o})}var eq=n(1095),eK=n(3268);let eX=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&n)*0x5bd1e995+((n>>>16)*59797<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*0x5bd1e995+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*0x5bd1e995+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)};function eG(){return!!("u">typeof window&&window.document&&window.document.createElement)}function eY(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var eU="data-rc-order",eQ="data-rc-priority",eZ=new Map;function eJ(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):"rc-util-key"}function e0(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function e1(e){return Array.from((eZ.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function e2(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!eG())return null;var n=t.csp,r=t.prepend,o=t.priority,a=void 0===o?0:o,i="queue"===r?"prependQueue":r?"prepend":"append",l="prependQueue"===i,c=document.createElement("style");c.setAttribute(eU,i),l&&a&&c.setAttribute(eQ,"".concat(a)),null!=n&&n.nonce&&(c.nonce=null==n?void 0:n.nonce),c.innerHTML=e;var s=e0(t),u=s.firstChild;if(r){if(l){var d=(t.styles||e1(s)).filter(function(e){return!!["prepend","prependQueue"].includes(e.getAttribute(eU))&&a>=Number(e.getAttribute(eQ)||0)});if(d.length)return s.insertBefore(c,d[d.length-1].nextSibling),c}s.insertBefore(c,u)}else s.appendChild(c);return c}function e4(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e0(t);return(t.styles||e1(n)).find(function(n){return n.getAttribute(eJ(t))===e})}function e3(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e4(e,t);n&&e0(t).removeChild(n)}function e6(e,t){var n,r,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e0(a),l=e1(i),c=(0,D.A)((0,D.A)({},a),{},{styles:l}),s=eZ.get(i);if(!s||!eY(document,s)){var u=e2("",c),d=u.parentNode;eZ.set(i,d),i.removeChild(u)}var f=e4(t,c);if(f)return null!=(n=c.csp)&&n.nonce&&f.nonce!==(null==(r=c.csp)?void 0:r.nonce)&&(f.nonce=null==(o=c.csp)?void 0:o.nonce),f.innerHTML!==e&&(f.innerHTML=e),f;var p=e2(e,c);return p.setAttribute(eJ(c),t),p}let e5=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=r.has(t);if(B(!i,"Warning: There may be circular references"),i)return!1;if(t===o)return!0;if(n&&a>1)return!1;r.add(t);var l=a+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var c=0;c<t.length;c++)if(!e(t[c],o[c],l))return!1;return!0}if(t&&o&&"object"===(0,k.A)(t)&&"object"===(0,k.A)(o)){var s=Object.keys(t);return s.length===Object.keys(o).length&&s.every(function(n){return e(t[n],o[n],l)})}return!1}(e,t)};function e8(e){return e.join("%")}var e7=function(){function e(t){(0,ew.A)(this,e),(0,eK.A)(this,"instanceId",void 0),(0,eK.A)(this,"cache",new Map),(0,eK.A)(this,"extracted",new Set),this.instanceId=t}return(0,eC.A)(e,[{key:"get",value:function(e){return this.opGet(e8(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(e8(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),e9="data-token-hash",te="data-css-hash",tt="__cssinjs_instance__",tn=x.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("u">typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(te,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[tt]=t[tt]||e,t[tt]===e&&document.head.insertBefore(t,n)});var r={};Array.from(document.querySelectorAll("style[".concat(te,"]"))).forEach(function(t){var n,o=t.getAttribute(te);r[o]?t[tt]===e&&(null==(n=t.parentNode)||n.removeChild(t)):r[o]=!0})}return new e7(e)}(),defaultCache:!0}),tr=function(){function e(){(0,ew.A)(this,e),(0,eK.A)(this,"cache",void 0),(0,eK.A)(this,"keys",void 0),(0,eK.A)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,eC.A)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){if(o){var t;o=null==(t=o)||null==(t=t.map)?void 0:t.get(e)}else o=void 0}),null!=(t=o)&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null==(n=o)?void 0:n.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,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(e,t){var n=(0,eq.A)(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]),a=(0,eq.A)(o,1)[0];this.delete(a)}this.keys.push(t)}var i=this.cache;t.forEach(function(e,o){if(o===t.length-1)i.set(e,{value:[n,r.cacheCallTimes++]});else{var a=i.get(e);a?a.map||(a.map=new Map):i.set(e,{map:new Map}),i=i.get(e).map}})}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null==(n=r.value)?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter(function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)}),this.deleteByPath(this.cache,e)}}]),e}();(0,eK.A)(tr,"MAX_CACHE_SIZE",20),(0,eK.A)(tr,"MAX_CACHE_OFFSET",5);var to=0,ta=function(){function e(t){(0,ew.A)(this,e),(0,eK.A)(this,"derivatives",void 0),(0,eK.A)(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=to,0===t.length&&t.length,to+=1}return(0,eC.A)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),ti=new tr;function tl(e){var t=Array.isArray(e)?e:[e];return ti.has(t)||ti.set(t,new ta(t)),ti.get(t)}var tc=new WeakMap,ts={},tu=new WeakMap;function td(e){var t=tu.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof ta?t+=r.id:r&&"object"===(0,k.A)(r)?t+=td(r):t+=r}),t=eX(t),tu.set(e,t)),t}function tf(e,t){return eX("".concat(t,"_").concat(td(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var tp=eG();function tm(e){return"number"==typeof e?"".concat(e,"px"):e}function tg(e,t,n){var r=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,D.A)((0,D.A)({},r),{},(0,eK.A)((0,eK.A)({},e9,t),te,n)),i=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(i,">").concat(e,"</style>")}var th=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()},tv=function(e,t,n){var r,o={},a={};return Object.entries(e).forEach(function(e){var t=(0,eq.A)(e,2),r=t[0],i=t[1];if(null!=n&&null!=(l=n.preserve)&&l[r])a[r]=i;else if(("string"==typeof i||"number"==typeof i)&&!(null!=n&&null!=(c=n.ignore)&&c[r])){var l,c,s,u=th(r,null==n?void 0:n.prefix);o[u]="number"!=typeof i||null!=n&&null!=(s=n.unitless)&&s[r]?String(i):"".concat(i,"px"),a[r]="var(".concat(u,")")}}),[a,(r={scope:null==n?void 0:n.scope},Object.keys(o).length?".".concat(t).concat(null!=r&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(o).map(function(e){var t=(0,eq.A)(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")}).join(""),"}"):"")]},tb=eG()?x.useLayoutEffect:x.useEffect,ty=function(e,t){var n=x.useRef(!0);tb(function(){return e(n.current)},t),tb(function(){return n.current=!1,function(){n.current=!0}},[])},t$=function(e,t){ty(function(t){if(!t)return e()},t)},tx=(0,D.A)({},x).useInsertionEffect,tw=tx?function(e,t,n){return tx(function(){return e(),t()},n)}:function(e,t,n){x.useMemo(e,n),ty(function(){return t(!0)},n)},tC=void 0!==(0,D.A)({},x).useInsertionEffect?function(e){var t=[],n=!1;return x.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(e){return e()})}},e),function(e){n||t.push(e)}}:function(){return function(e){e()}};function tE(e,t,n,r,o){var a=x.useContext(tn).cache,i=e8([e].concat((0,eM.A)(t))),l=tC([i]),c=function(e){a.opUpdate(i,function(t){var r=(0,eq.A)(t||[void 0,void 0],2),o=r[0],a=[void 0===o?0:o,r[1]||n()];return e?e(a):a})};x.useMemo(function(){c()},[i]);var s=a.opGet(i)[1];return tw(function(){null==o||o(s)},function(e){return c(function(t){var n=(0,eq.A)(t,2),r=n[0],a=n[1];return e&&0===r&&(null==o||o(s)),[r+1,a]}),function(){a.opUpdate(i,function(t){var n=(0,eq.A)(t||[],2),o=n[0],c=void 0===o?0:o,s=n[1];return 0==c-1?(l(function(){(e||!a.opGet(i))&&(null==r||r(s,!1))}),null):[c-1,s]})}},[i]),s}var tS={},tk=new Map,tO=function(e,t,n,r){var o=n.getDerivativeToken(e),a=(0,D.A)((0,D.A)({},o),t);return r&&(a=r(a)),a},tA="token";let tI={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 tN="comm",tj="rule",tM="decl",tR=Math.abs,tP=String.fromCharCode;function tT(e,t,n){return e.replace(t,n)}function tz(e,t){return 0|e.charCodeAt(t)}function tB(e,t,n){return e.slice(t,n)}function tD(e){return e.length}function tH(e,t){return t.push(e),e}function tL(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function tF(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case tM:return e.return=e.return||e.value;case tN:return"";case"@keyframes":return e.return=e.value+"{"+tL(e.children,r)+"}";case tj:if(!tD(e.value=e.props.join(",")))return""}return tD(n=tL(e.children,r))?e.return=e.value+"{"+n+"}":""}var tW=1,t_=1,tV=0,tq=0,tK=0,tX="";function tG(e,t,n,r,o,a,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:tW,column:t_,length:i,return:"",siblings:l}}function tY(){return tK=tq<tV?tz(tX,tq++):0,t_++,10===tK&&(t_=1,tW++),tK}function tU(){return tz(tX,tq)}function tQ(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 tZ(e){var t,n;return(t=tq-1,n=function e(t){for(;tY();)switch(tK){case t:return tq;case 34:case 39:34!==t&&39!==t&&e(tK);break;case 40:41===t&&e(t);break;case 92:tY()}return tq}(91===e?e+2:40===e?e+1:e),tB(tX,t,n)).trim()}function tJ(e,t,n,r,o,a,i,l,c,s,u,d){for(var f=o-1,p=0===o?a:[""],m=p.length,g=0,h=0,v=0;g<r;++g)for(var b=0,y=tB(e,f+1,f=tR(h=i[g])),$=e;b<m;++b)($=(h>0?p[b]+" "+y:tT(y,/&\f/g,p[b])).trim())&&(c[v++]=$);return tG(e,t,n,0===o?tj:l,c,s,u,d)}function t0(e,t,n,r,o){return tG(e,t,n,tM,tB(e,0,r),tB(e,r+1,-1),r,o)}var t1="data-ant-cssinjs-cache-path",t2="_FILE_STYLE__",t4=!0,t3="_multi_value_";function t6(e){var t,n,r;return tL((r=function e(t,n,r,o,a,i,l,c,s){for(var u,d,f,p,m,g,h=0,v=0,b=l,y=0,$=0,x=0,w=1,C=1,E=1,S=0,k="",O=a,A=i,I=o,N=k;C;)switch(x=S,S=tY()){case 40:if(108!=x&&58==tz(N,b-1)){-1!=(m=N+=tT(tZ(S),"&","&\f"),g=tR(h?c[h-1]:0),m.indexOf("&\f",g))&&(E=-1);break}case 34:case 39:case 91:N+=tZ(S);break;case 9:case 10:case 13:case 32:N+=function(e){for(;tK=tU();)if(tK<33)tY();else break;return tQ(e)>2||tQ(tK)>3?"":" "}(x);break;case 92:N+=function(e,t){for(var n;--t&&tY()&&!(tK<48)&&!(tK>102)&&(!(tK>57)||!(tK<65))&&(!(tK>70)||!(tK<97)););return n=tq+(t<6&&32==tU()&&32==tY()),tB(tX,e,n)}(tq-1,7);continue;case 47:switch(tU()){case 42:case 47:tH((u=function(e,t){for(;tY();)if(e+tK===57)break;else if(e+tK===84&&47===tU())break;return"/*"+tB(tX,t,tq-1)+"*"+tP(47===e?e:tY())}(tY(),tq),d=n,f=r,p=s,tG(u,d,f,tN,tP(tK),tB(u,2,-2),0,p)),s),(5==tQ(x||1)||5==tQ(tU()||1))&&tD(N)&&" "!==tB(N,-1,void 0)&&(N+=" ");break;default:N+="/"}break;case 123*w:c[h++]=tD(N)*E;case 125*w:case 59:case 0:switch(S){case 0:case 125:C=0;case 59+v:-1==E&&(N=tT(N,/\f/g,"")),$>0&&(tD(N)-b||0===w&&47===x)&&tH($>32?t0(N+";",o,r,b-1,s):t0(tT(N," ","")+";",o,r,b-2,s),s);break;case 59:N+=";";default:if(tH(I=tJ(N,n,r,h,v,a,c,k,O=[],A=[],b,i),i),123===S)if(0===v)e(N,n,I,I,O,i,b,c,A);else{switch(y){case 99:if(110===tz(N,3))break;case 108:if(97===tz(N,2))break;default:v=0;case 100:case 109:case 115:}v?e(t,I,I,o&&tH(tJ(t,I,I,0,0,a,c,k,a,O=[],b,A),A),a,A,b,c,o?O:A):e(N,I,I,I,[""],A,0,c,A)}}h=v=$=0,w=E=1,k=N="",b=l;break;case 58:b=1+tD(N),$=x;default:if(w<1){if(123==S)--w;else if(125==S&&0==w++&&125==(tK=tq>0?tz(tX,--tq):0,t_--,10===tK&&(t_=1,tW--),tK))continue}switch(N+=tP(S),S*w){case 38:E=v>0?1:(N+="\f",-1);break;case 44:c[h++]=(tD(N)-1)*E,E=1;break;case 64:45===tU()&&(N+=tZ(tY())),y=tU(),v=b=tD(k=N+=function(e){for(;!tQ(tU());)tY();return tB(tX,e,tq)}(tq)),S++;break;case 45:45===x&&2==tD(N)&&(w=0)}}return i}("",null,null,null,[""],(n=t=e,tW=t_=1,tV=tD(tX=n),tq=0,t=[]),0,[0],t),tX="",r),tF).replace(/\{%%%\:[^;];}/g,";")}function t5(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map(function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",a=(null==(t=r.match(/^\w+/))?void 0:t[0])||"";return[r="".concat(a).concat(o).concat(r.slice(a.length))].concat((0,eM.A)(n.slice(1))).join(" ")}).join(",")}var t8=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,i=r.parentSelectors,l=n.hashId,c=n.layer,s=(n.path,n.hashPriority),u=n.transformers,d=void 0===u?[]:u,f=(n.linters,""),p={};function m(t){var r=t.getName(l);if(!p[r]){var o=e(t.style,n,{root:!1,parentSelectors:i}),a=(0,eq.A)(o,1)[0];p[r]="@keyframes ".concat(t.getName(l)).concat(a)}}return(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,n):t&&n.push(t)}),n})(Array.isArray(t)?t:[t]).forEach(function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)f+="".concat(r,"\n");else if(r._keyframe)m(r);else{var c=d.reduce(function(e,t){var n;return(null==t||null==(n=t.visit)?void 0:n.call(t,e))||e},r);Object.keys(c).forEach(function(t){var r=c[t];if("object"!==(0,k.A)(r)||!r||"animationName"===t&&r._keyframe||"object"===(0,k.A)(r)&&r&&("_skip_check_"in r||t3 in r)){function u(e,t){var n=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),r=t;tI[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(m(t),r=t.getName(l)),f+="".concat(n,":").concat(r,";")}var d,g=null!=(d=null==r?void 0:r.value)?d:r;"object"===(0,k.A)(r)&&null!=r&&r[t3]&&Array.isArray(g)?g.forEach(function(e){u(t,e)}):u(t,g)}else{var h=!1,v=t.trim(),b=!1;(o||a)&&l?v.startsWith("@")?h=!0:v="&"===v?t5("",l,s):t5(t,l,s):o&&!l&&("&"===v||""===v)&&(v="",b=!0);var y=e(r,n,{root:b,injectHash:h,parentSelectors:[].concat((0,eM.A)(i),[v])}),$=(0,eq.A)(y,2),x=$[0],w=$[1];p=(0,D.A)((0,D.A)({},p),w),f+="".concat(v).concat(x)}})}}),o?c&&(f&&(f="@layer ".concat(c.name," {").concat(f,"}")),c.dependencies&&(p["@layer ".concat(c.name)]=c.dependencies.map(function(e){return"@layer ".concat(e,", ").concat(c.name,";")}).join("\n"))):f="{".concat(f,"}"),[f,p]};function t7(e,t){return eX("".concat(e.join("%")).concat(t))}function t9(){return null}var ne="style";function nt(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,l=e.clientOnly,c=e.order,s=void 0===c?0:c,u=x.useContext(tn),d=u.autoClear,f=(u.mock,u.defaultCache),p=u.hashPriority,m=u.container,g=u.ssrInline,v=u.transformers,b=u.linters,y=u.cache,$=u.layer,w=n._tokenKey,C=[w];$&&C.push("layer"),C.push.apply(C,(0,eM.A)(r));var E=tE(ne,C,function(){var e=C.join("|");if(function(e){if(!h&&(h={},eG())){var t,n=document.createElement("div");n.className=t1,n.style.position="fixed",n.style.visibility="hidden",n.style.top="-9999px",document.body.appendChild(n);var r=getComputedStyle(n).content||"";(r=r.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=e.split(":"),n=(0,eq.A)(t,2),r=n[0],o=n[1];h[r]=o});var o=document.querySelector("style[".concat(t1,"]"));o&&(t4=!1,null==(t=o.parentNode)||t.removeChild(o)),document.body.removeChild(n)}return!!h[e]}(e)){var n=function(e){var t=h[e],n=null;if(t&&eG())if(t4)n=t2;else{var r=document.querySelector("style[".concat(te,'="').concat(h[e],'"]'));r?n=r.innerHTML:delete h[e]}return[n,t]}(e),i=(0,eq.A)(n,2),c=i[0],u=i[1];if(c)return[c,w,u,{},l,s]}var d=t8(t(),{hashId:o,hashPriority:p,layer:$?a:void 0,path:r.join("-"),transformers:v,linters:b}),f=(0,eq.A)(d,2),m=f[0],g=f[1],y=t6(m),x=t7(C,y);return[y,w,x,g,l,s]},function(e,t){var n=(0,eq.A)(e,3)[2];(t||d)&&tp&&e3(n,{mark:te,attachTo:m})},function(e){var t=(0,eq.A)(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(tp&&n!==t2){var a={mark:te,prepend:!$&&"queue",attachTo:m,priority:s},l="function"==typeof i?i():i;l&&(a.csp={nonce:l});var c=[],u=[];Object.keys(o).forEach(function(e){e.startsWith("@layer")?c.push(e):u.push(e)}),c.forEach(function(e){e6(t6(o[e]),"_layer-".concat(e),(0,D.A)((0,D.A)({},a),{},{prepend:!0}))});var d=e6(n,r,a);d[tt]=y.instanceId,d.setAttribute(e9,w),u.forEach(function(e){e6(t6(o[e]),"_effect-".concat(e),a)})}}),k=(0,eq.A)(E,3),O=k[0],A=k[1],I=k[2];return function(e){var t;return t=g&&!tp&&f?x.createElement("style",S({},(0,eK.A)((0,eK.A)({},e9,A),te,I),{dangerouslySetInnerHTML:{__html:O}})):x.createElement(t9,null),x.createElement(x.Fragment,null,t,e)}}var nn="cssVar";let nr=function(e,t){var n=e.key,r=e.prefix,o=e.unitless,a=e.ignore,i=e.token,l=e.scope,c=void 0===l?"":l,s=(0,x.useContext)(tn),u=s.cache.instanceId,d=s.container,f=i._tokenKey,p=[].concat((0,eM.A)(e.path),[n,c,f]);return tE(nn,p,function(){var e=tv(t(),n,{prefix:r,unitless:o,ignore:a,scope:c}),i=(0,eq.A)(e,2),l=i[0],s=i[1],u=t7(p,s);return[l,s,u,n]},function(e){var t=(0,eq.A)(e,3)[2];tp&&e3(t,{mark:te,attachTo:d})},function(e){var t=(0,eq.A)(e,3),r=t[1],o=t[2];if(r){var a=e6(r,o,{mark:te,prepend:"queue",attachTo:d,priority:-999});a[tt]=u,a.setAttribute(e9,n)}})};(0,eK.A)((0,eK.A)((0,eK.A)({},ne,function(e,t,n){var r=(0,eq.A)(e,6),o=r[0],a=r[1],i=r[2],l=r[3],c=r[4],s=r[5],u=(n||{}).plain;if(c)return null;var d=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(s)};return d=tg(o,a,i,f,u),l&&Object.keys(l).forEach(function(e){if(!t[e]){t[e]=!0;var n=tg(t6(l[e]),a,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=n+d:d+=n}}),[s,i,d]}),tA,function(e,t,n){var r=(0,eq.A)(e,5),o=r[2],a=r[3],i=r[4],l=(n||{}).plain;if(!a)return null;var c=o._tokenKey,s=tg(a,i,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l);return[-999,c,s]}),nn,function(e,t,n){var r=(0,eq.A)(e,4),o=r[1],a=r[2],i=r[3],l=(n||{}).plain;if(!o)return null;var c=tg(o,i,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l);return[-999,a,c]});var no=function(){function e(t,n){(0,ew.A)(this,e),(0,eK.A)(this,"name",void 0),(0,eK.A)(this,"style",void 0),(0,eK.A)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,eC.A)(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 na(e){return e.notSplit=!0,e}na(["borderTop","borderBottom"]),na(["borderTop"]),na(["borderBottom"]),na(["borderLeft","borderRight"]),na(["borderLeft"]),na(["borderRight"]);var ni=n(8172),nl=(0,eC.A)(function e(){(0,ew.A)(this,e)}),nc="CALC_UNIT",ns=RegExp(nc,"g");function nu(e){return"number"==typeof e?"".concat(e).concat(nc):e}var nd=function(e){(0,eE.A)(n,e);var t=eA(n);function n(e,r){(0,ew.A)(this,n),o=t.call(this),(0,eK.A)((0,ni.A)(o),"result",""),(0,eK.A)((0,ni.A)(o),"unitlessCssVar",void 0),(0,eK.A)((0,ni.A)(o),"lowPriority",void 0);var o,a=(0,k.A)(e);return o.unitlessCssVar=r,e instanceof n?o.result="(".concat(e.result,")"):"number"===a?o.result=nu(e):"string"===a&&(o.result=e),o}return(0,eC.A)(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," + ").concat(nu(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," - ").concat(nu(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?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 n?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,n=(e||{}).unit,r=!0;return("boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(r=!1),this.result=this.result.replace(ns,r?"px":""),void 0!==this.lowPriority)?"calc(".concat(this.result,")"):this.result}}]),n}(nl),nf=function(e){(0,eE.A)(n,e);var t=eA(n);function n(e){var r;return(0,ew.A)(this,n),r=t.call(this),(0,eK.A)((0,ni.A)(r),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return(0,eC.A)(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(nl);let np=function(e,t){var n="css"===e?nd:nf;return function(e){return new n(e,t)}},nm=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("-"))};function ng(e){var t=x.useRef();return t.current=e,x.useCallback(function(){for(var e,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return null==(e=t.current)?void 0:e.call.apply(e,[t].concat(r))},[])}function nh(e){var t=x.useRef(!1),n=x.useState(e),r=(0,eq.A)(n,2),o=r[0],a=r[1];return x.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),[o,function(e,n){n&&t.current||a(e)}]}function nv(e){return void 0!==e}function nb(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,l=nh(function(){return nv(o)?o:nv(r)?"function"==typeof r?r():r:"function"==typeof e?e():e}),c=(0,eq.A)(l,2),s=c[0],u=c[1],d=void 0!==o?o:s,f=i?i(d):d,p=ng(a),m=nh([d]),g=(0,eq.A)(m,2),h=g[0],v=g[1];return t$(function(){var e=h[0];s!==e&&p(s,e)},[h]),t$(function(){nv(o)||u(o)},[o]),[f,ng(function(e,t){u(e,t),v([d],t)})]}function ny(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}var n$=n(4930),nx=n(380),nw=n(3891),nC=n(1059);function nE(e){return(0,n$.A)(e)||(0,nx.A)(e)||(0,nw.A)(e)||(0,nC.A)()}function nS(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!ny(e,t.slice(0,-1))?e:function e(t,n,r,o){if(!n.length)return r;var a,i=nE(n),l=i[0],c=i.slice(1);return a=t||"number"!=typeof l?Array.isArray(t)?(0,eM.A)(t):(0,D.A)({},t):[],o&&void 0===r&&1===c.length?delete a[l][c[0]]:a[l]=e(a[l],c,r,o),a}(e,t,n,r)}function nk(e){return Array.isArray(e)?[]:{}}var nO="u"<typeof Reflect?Object.keys:Reflect.ownKeys;function nA(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=nk(t[0]);return t.forEach(function(e){!function t(n,o){var a=new Set(o),i=ny(e,n),l=Array.isArray(i);if(l||"object"===(0,k.A)(i)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(i)){a.add(i);var c=ny(r,n);l?r=nS(r,n,[]):c&&"object"===(0,k.A)(c)||(r=nS(r,n,nk(i))),nO(i).forEach(function(e){t([].concat((0,eM.A)(n),[e]),a)})}}else r=nS(r,n,i)}([])}),r}let nI=function(e,t,n,r){var o=(0,D.A)({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach(function(e){var t=(0,eq.A)(e,2),n=t[0],r=t[1];(null!=o&&o[n]||null!=o&&o[r])&&(null!=o[r]||(o[r]=null==o?void 0:o[n]))});var a=(0,D.A)((0,D.A)({},n),o);return Object.keys(a).forEach(function(e){a[e]===t[e]&&delete a[e]}),a};var nN="u">typeof CSSINJS_STATISTIC,nj=!0;function nM(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!nN)return Object.assign.apply(Object,[{}].concat(t));nj=!1;var r={};return t.forEach(function(e){"object"===(0,k.A)(e)&&Object.keys(e).forEach(function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}),nj=!0,r}var nR={};function nP(){}let nT=function(e){var t,n=e,r=nP;return nN&&"u">typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){if(nj){var r;null==(r=t)||r.add(n)}return e[n]}}),r=function(e,n){var r;nR[e]={global:Array.from(t),component:(0,D.A)((0,D.A)({},null==(r=nR[e])?void 0:r.component),n)}}),{token:n,keys:t,flush:r}},nz=function(e,t,n){if("function"==typeof n){var r;return n(nM(t,null!=(r=t[e])?r:{}))}return null!=n?n:{}};var nB=new(function(){function e(){(0,ew.A)(this,e),(0,eK.A)(this,"map",new Map),(0,eK.A)(this,"objectIDMap",new WeakMap),(0,eK.A)(this,"nextID",0),(0,eK.A)(this,"lastAccessBeat",new Map),(0,eK.A)(this,"accessBeat",0)}return(0,eC.A)(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map(function(e){return e&&"object"===(0,k.A)(e)?"obj_".concat(t.getObjectID(e)):"".concat((0,k.A)(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(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))}),this.accessBeat=0}}}]),e}());let nD=function(){return{}},nH={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},nL=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),nF=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),nW=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),n_=(e,t)=>({outline:`${tm(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:null!=t?t:1,transition:"outline-offset 0s, outline 0s"}),nV=(e,t)=>({"&:focus-visible":n_(e,t)}),nq=e=>({[`.${e}`]:Object.assign(Object.assign({},nF()),{[`.${e} .${e}-icon`]:{display:"block"}})}),nK=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},nV(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),nX="5.29.3",nG={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},nY=Object.assign(Object.assign({},nG),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
2
2
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
3
|
-
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),nU={token:nY,override:{override:nY},hashed:!0},nQ=(w()).createContext(nU),nZ=Math.round;function nJ(e,t){let n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}let n0=(e,t,n)=>0===n?e:e/100;function n1(e,t){let n=t||255;return e>n?n:e<0?0:e}class n2{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if((0,eK.A)(this,"isValid",!0),(0,eK.A)(this,"r",0),(0,eK.A)(this,"g",0),(0,eK.A)(this,"b",0),(0,eK.A)(this,"a",1),(0,eK.A)(this,"_h",void 0),(0,eK.A)(this,"_s",void 0),(0,eK.A)(this,"_l",void 0),(0,eK.A)(this,"_v",void 0),(0,eK.A)(this,"_max",void 0),(0,eK.A)(this,"_min",void 0),(0,eK.A)(this,"_brightness",void 0),e)if("string"==typeof e){const t=e.trim();function n(e){return t.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(t)?this.fromHexString(t):n("rgb")?this.fromRgbString(t):n("hsl")?this.fromHslString(t):(n("hsv")||n("hsb"))&&this.fromHsvString(t)}else if(e instanceof n2)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=n1(e.r),this.g=n1(e.g),this.b=n1(e.b),this.a="number"==typeof e.a?n1(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else if(t("hsv"))this.fromHsv(e);else throw Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){let t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){let t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return .2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){let e=this.getMax()-this.getMin();0===e?this._h=0:this._h=nZ(60*(this.r===this.getMax()?(this.g-this.b)/e+6*(this.g<this.b):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){let e=this.getMax()-this.getMin();0===e?this._s=0:this._s=e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){let t=this.getHue(),n=this.getSaturation(),r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){let t=this.getHue(),n=this.getSaturation(),r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){let n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],a={r:nZ(o("r")),g:nZ(o("g")),b:nZ(o("b")),a:nZ(100*o("a"))/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){let t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>nZ((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return 128>this.getBrightness()}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#",t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;let n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;let r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){let t=nZ(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let e=this.getHue(),t=nZ(100*this.getSaturation()),n=nZ(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){let r=this.clone();return r[e]=n1(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){let t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){let e=nZ(255*n);this.r=e,this.g=e,this.b=e}let o=0,a=0,i=0,l=e/60,c=(1-Math.abs(2*n-1))*t,s=c*(1-Math.abs(l%2-1));l>=0&&l<1?(o=c,a=s):l>=1&&l<2?(o=s,a=c):l>=2&&l<3?(a=c,i=s):l>=3&&l<4?(a=s,i=c):l>=4&&l<5?(o=s,i=c):l>=5&&l<6&&(o=c,i=s);let u=n-c/2;this.r=nZ((o+u)*255),this.g=nZ((a+u)*255),this.b=nZ((i+u)*255)}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;let o=nZ(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;let a=e/60,i=Math.floor(a),l=a-i,c=nZ(n*(1-t)*255),s=nZ(n*(1-t*l)*255),u=nZ(n*(1-t*(1-l))*255);switch(i){case 0:this.g=u,this.b=c;break;case 1:this.r=s,this.b=c;break;case 2:this.r=c,this.b=u;break;case 3:this.r=c,this.g=s;break;case 4:this.r=u,this.g=c;break;default:this.g=c,this.b=s}}fromHsvString(e){let t=nJ(e,n0);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){let t=nJ(e,n0);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){let t=nJ(e,(e,t)=>t.includes("%")?nZ(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var n4=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function n3(e,t,n){var r;return(r=Math.round(e.h)>=60&&240>=Math.round(e.h)?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function n6(e,t,n){var r;return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100)}function n5(e,t,n){return Math.round(100*Math.max(0,Math.min(1,n?e.v+.05*t:e.v-.15*t)))/100}function n8(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=new n2(e),o=r.toHsv(),a=5;a>0;a-=1){var i=new n2({h:n3(o,a,!0),s:n6(o,a,!0),v:n5(o,a,!0)});n.push(i)}n.push(r);for(var l=1;l<=4;l+=1){var c=new n2({h:n3(o,l),s:n6(o,l),v:n5(o,l)});n.push(c)}return"dark"===t.theme?n4.map(function(e){var r=e.index,o=e.amount;return new n2(t.backgroundColor||"#141414").mix(n[r],o).toHexString()}):n.map(function(e){return e.toHexString()})}var n7={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"},n9=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];n9.primary=n9[5];var re=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];re.primary=re[5];var rt=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];rt.primary=rt[5];var rn=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];rn.primary=rn[5];var rr=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];rr.primary=rr[5];var ro=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];ro.primary=ro[5];var ra=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];ra.primary=ra[5];var ri=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];ri.primary=ri[5];var rl=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];rl.primary=rl[5];var rc=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];rc.primary=rc[5];var rs=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];rs.primary=rs[5];var ru=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];ru.primary=ru[5];var rd=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];rd.primary=rd[5];var rf={red:n9,volcano:re,orange:rt,gold:rn,yellow:rr,lime:ro,green:ra,cyan:ri,blue:rl,geekblue:rc,purple:rs,magenta:ru,grey:rd},rp=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];rp.primary=rp[5];var rm=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];rm.primary=rm[5];var rg=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];rg.primary=rg[5];var rh=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];rh.primary=rh[5];var rv=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];rv.primary=rv[5];var rb=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];rb.primary=rb[5];var ry=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];ry.primary=ry[5];var r$=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];r$.primary=r$[5];var rx=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];rx.primary=rx[5];var rw=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];rw.primary=rw[5];var rC=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];rC.primary=rC[5];var rE=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];rE.primary=rE[5];var rS=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];function rk(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){let{colorSuccess:r,colorWarning:o,colorError:a,colorInfo:i,colorPrimary:l,colorBgBase:c,colorTextBase:s}=e,u=t(l),d=t(r),f=t(o),p=t(a),m=t(i),g=n(c,s),h=t(e.colorLink||e.colorInfo),v=new n2(p[1]).mix(new n2(p[3]),50).toHexString();return Object.assign(Object.assign({},g),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:v,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:h[4],colorLink:h[6],colorLinkActive:h[7],colorBgMask:new n2("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}rS.primary=rS[5];let rO=e=>{let{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}},rA=e=>{let t,n=((t=Array.from({length:10}).map((t,n)=>{let r=e*Math.pow(Math.E,(n-1)/5);return 2*Math.floor((n>1?Math.floor(r):Math.ceil(r))/2)}))[1]=e,t.map(e=>({size:e,lineHeight:(e+8)/e}))),r=n.map(e=>e.size),o=n.map(e=>e.lineHeight),a=r[1],i=r[0],l=r[2],c=o[1],s=o[0],u=o[2];return{fontSizeSM:i,fontSize:a,fontSizeLG:l,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:c,lineHeightLG:u,lineHeightSM:s,fontHeight:Math.round(c*a),fontHeightLG:Math.round(u*l),fontHeightSM:Math.round(s*i),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}},rI=(e,t)=>new n2(e).setA(t).toRgbString(),rN=(e,t)=>new n2(e).darken(t).toHexString(),rj=e=>{let t=n8(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},rM=(e,t)=>{let n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:rI(r,.88),colorTextSecondary:rI(r,.65),colorTextTertiary:rI(r,.45),colorTextQuaternary:rI(r,.25),colorFill:rI(r,.15),colorFillSecondary:rI(r,.06),colorFillTertiary:rI(r,.04),colorFillQuaternary:rI(r,.02),colorBgSolid:rI(r,1),colorBgSolidHover:rI(r,.75),colorBgSolidActive:rI(r,.95),colorBgLayout:rN(n,4),colorBgContainer:rN(n,0),colorBgElevated:rN(n,0),colorBgSpotlight:rI(r,.85),colorBgBlur:"transparent",colorBorder:rN(n,15),colorBorderSecondary:rN(n,6)}};function rR(e){n7.pink=n7.magenta,rf.pink=rf.magenta;let t=Object.keys(nG).map(t=>{let n=e[t]===n7[t]?rf[t]:n8(e[t]);return Array.from({length:10},()=>1).reduce((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),rk(e,{generateColorPalettes:rj,generateNeutralColorPalettes:rM})),rA(e.fontSize)),function(e){let{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),rO(e)),function(e){let t,n,r,o,{motionUnit:a,motionBase:i,borderRadius:l,lineWidth:c}=e;return Object.assign({motionDurationFast:`${(i+a).toFixed(1)}s`,motionDurationMid:`${(i+2*a).toFixed(1)}s`,motionDurationSlow:`${(i+3*a).toFixed(1)}s`,lineWidthBold:c+1},(t=l,n=l,r=l,o=l,l<6&&l>=5?t=l+1:l<16&&l>=6?t=l+2:l>=16&&(t=16),l<7&&l>=5?n=4:l<8&&l>=7?n=5:l<14&&l>=8?n=6:l<16&&l>=14?n=7:l>=16&&(n=8),l<6&&l>=2?r=1:l>=6&&(r=2),l>4&&l<8?o=4:l>=8&&(o=6),{borderRadius:l,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}))}(e))}let rP=tl(rR);function rT(e){return e>=0&&e<=255}let rz=function(e,t){let{r:n,g:r,b:o,a:a}=new n2(e).toRgb();if(a<1)return e;let{r:i,g:l,b:c}=new n2(t).toRgb();for(let e=.01;e<=1;e+=.01){let t=Math.round((n-i*(1-e))/e),a=Math.round((r-l*(1-e))/e),s=Math.round((o-c*(1-e))/e);if(rT(t)&&rT(a)&&rT(s))return new n2({r:t,g:a,b:s,a:Math.round(100*e)/100}).toRgbString()}return new n2({r:n,g:r,b:o,a:1}).toRgbString()};var rB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function rD(e){let{override:t}=e,n=rB(e,["override"]),r=Object.assign({},t);Object.keys(nY).forEach(e=>{delete r[e]});let o=Object.assign(Object.assign({},n),r);return!1===o.motion&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:rz(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:rz(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:rz(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:3*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:rz(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
|
|
3
|
+
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),nU={token:nY,override:{override:nY},hashed:!0},nQ=(w()).createContext(nU),nZ=Math.round;function nJ(e,t){let n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}let n0=(e,t,n)=>0===n?e:e/100;function n1(e,t){let n=t||255;return e>n?n:e<0?0:e}class n2{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if((0,eK.A)(this,"isValid",!0),(0,eK.A)(this,"r",0),(0,eK.A)(this,"g",0),(0,eK.A)(this,"b",0),(0,eK.A)(this,"a",1),(0,eK.A)(this,"_h",void 0),(0,eK.A)(this,"_s",void 0),(0,eK.A)(this,"_l",void 0),(0,eK.A)(this,"_v",void 0),(0,eK.A)(this,"_max",void 0),(0,eK.A)(this,"_min",void 0),(0,eK.A)(this,"_brightness",void 0),e)if("string"==typeof e){let t=e.trim();function n(e){return t.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(t)?this.fromHexString(t):n("rgb")?this.fromRgbString(t):n("hsl")?this.fromHslString(t):(n("hsv")||n("hsb"))&&this.fromHsvString(t)}else if(e instanceof n2)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=n1(e.r),this.g=n1(e.g),this.b=n1(e.b),this.a="number"==typeof e.a?n1(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else if(t("hsv"))this.fromHsv(e);else throw Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){let t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){let t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return .2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){let e=this.getMax()-this.getMin();0===e?this._h=0:this._h=nZ(60*(this.r===this.getMax()?(this.g-this.b)/e+6*(this.g<this.b):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){let e=this.getMax()-this.getMin();0===e?this._s=0:this._s=e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){let t=this.getHue(),n=this.getSaturation(),r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){let t=this.getHue(),n=this.getSaturation(),r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){let n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],a={r:nZ(o("r")),g:nZ(o("g")),b:nZ(o("b")),a:nZ(100*o("a"))/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){let t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>nZ((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return 128>this.getBrightness()}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#",t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;let n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;let r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){let t=nZ(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let e=this.getHue(),t=nZ(100*this.getSaturation()),n=nZ(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){let r=this.clone();return r[e]=n1(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){let t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){let e=nZ(255*n);this.r=e,this.g=e,this.b=e}let o=0,a=0,i=0,l=e/60,c=(1-Math.abs(2*n-1))*t,s=c*(1-Math.abs(l%2-1));l>=0&&l<1?(o=c,a=s):l>=1&&l<2?(o=s,a=c):l>=2&&l<3?(a=c,i=s):l>=3&&l<4?(a=s,i=c):l>=4&&l<5?(o=s,i=c):l>=5&&l<6&&(o=c,i=s);let u=n-c/2;this.r=nZ((o+u)*255),this.g=nZ((a+u)*255),this.b=nZ((i+u)*255)}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;let o=nZ(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;let a=e/60,i=Math.floor(a),l=a-i,c=nZ(n*(1-t)*255),s=nZ(n*(1-t*l)*255),u=nZ(n*(1-t*(1-l))*255);switch(i){case 0:this.g=u,this.b=c;break;case 1:this.r=s,this.b=c;break;case 2:this.r=c,this.b=u;break;case 3:this.r=c,this.g=s;break;case 4:this.r=u,this.g=c;break;default:this.g=c,this.b=s}}fromHsvString(e){let t=nJ(e,n0);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){let t=nJ(e,n0);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){let t=nJ(e,(e,t)=>t.includes("%")?nZ(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var n4=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function n3(e,t,n){var r;return(r=Math.round(e.h)>=60&&240>=Math.round(e.h)?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function n6(e,t,n){var r;return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100)}function n5(e,t,n){return Math.round(100*Math.max(0,Math.min(1,n?e.v+.05*t:e.v-.15*t)))/100}function n8(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=new n2(e),o=r.toHsv(),a=5;a>0;a-=1){var i=new n2({h:n3(o,a,!0),s:n6(o,a,!0),v:n5(o,a,!0)});n.push(i)}n.push(r);for(var l=1;l<=4;l+=1){var c=new n2({h:n3(o,l),s:n6(o,l),v:n5(o,l)});n.push(c)}return"dark"===t.theme?n4.map(function(e){var r=e.index,o=e.amount;return new n2(t.backgroundColor||"#141414").mix(n[r],o).toHexString()}):n.map(function(e){return e.toHexString()})}var n7={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"},n9=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];n9.primary=n9[5];var re=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];re.primary=re[5];var rt=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];rt.primary=rt[5];var rn=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];rn.primary=rn[5];var rr=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];rr.primary=rr[5];var ro=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];ro.primary=ro[5];var ra=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];ra.primary=ra[5];var ri=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];ri.primary=ri[5];var rl=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];rl.primary=rl[5];var rc=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];rc.primary=rc[5];var rs=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];rs.primary=rs[5];var ru=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];ru.primary=ru[5];var rd=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];rd.primary=rd[5];var rf={red:n9,volcano:re,orange:rt,gold:rn,yellow:rr,lime:ro,green:ra,cyan:ri,blue:rl,geekblue:rc,purple:rs,magenta:ru,grey:rd},rp=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];rp.primary=rp[5];var rm=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];rm.primary=rm[5];var rg=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];rg.primary=rg[5];var rh=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];rh.primary=rh[5];var rv=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];rv.primary=rv[5];var rb=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];rb.primary=rb[5];var ry=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];ry.primary=ry[5];var r$=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];r$.primary=r$[5];var rx=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];rx.primary=rx[5];var rw=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];rw.primary=rw[5];var rC=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];rC.primary=rC[5];var rE=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];rE.primary=rE[5];var rS=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];function rk(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){let{colorSuccess:r,colorWarning:o,colorError:a,colorInfo:i,colorPrimary:l,colorBgBase:c,colorTextBase:s}=e,u=t(l),d=t(r),f=t(o),p=t(a),m=t(i),g=n(c,s),h=t(e.colorLink||e.colorInfo),v=new n2(p[1]).mix(new n2(p[3]),50).toHexString();return Object.assign(Object.assign({},g),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:v,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:h[4],colorLink:h[6],colorLinkActive:h[7],colorBgMask:new n2("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}rS.primary=rS[5];let rO=e=>{let{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}},rA=e=>{let t,n=((t=Array.from({length:10}).map((t,n)=>{let r=e*Math.pow(Math.E,(n-1)/5);return 2*Math.floor((n>1?Math.floor(r):Math.ceil(r))/2)}))[1]=e,t.map(e=>({size:e,lineHeight:(e+8)/e}))),r=n.map(e=>e.size),o=n.map(e=>e.lineHeight),a=r[1],i=r[0],l=r[2],c=o[1],s=o[0],u=o[2];return{fontSizeSM:i,fontSize:a,fontSizeLG:l,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:c,lineHeightLG:u,lineHeightSM:s,fontHeight:Math.round(c*a),fontHeightLG:Math.round(u*l),fontHeightSM:Math.round(s*i),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}},rI=(e,t)=>new n2(e).setA(t).toRgbString(),rN=(e,t)=>new n2(e).darken(t).toHexString(),rj=e=>{let t=n8(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},rM=(e,t)=>{let n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:rI(r,.88),colorTextSecondary:rI(r,.65),colorTextTertiary:rI(r,.45),colorTextQuaternary:rI(r,.25),colorFill:rI(r,.15),colorFillSecondary:rI(r,.06),colorFillTertiary:rI(r,.04),colorFillQuaternary:rI(r,.02),colorBgSolid:rI(r,1),colorBgSolidHover:rI(r,.75),colorBgSolidActive:rI(r,.95),colorBgLayout:rN(n,4),colorBgContainer:rN(n,0),colorBgElevated:rN(n,0),colorBgSpotlight:rI(r,.85),colorBgBlur:"transparent",colorBorder:rN(n,15),colorBorderSecondary:rN(n,6)}};function rR(e){n7.pink=n7.magenta,rf.pink=rf.magenta;let t=Object.keys(nG).map(t=>{let n=e[t]===n7[t]?rf[t]:n8(e[t]);return Array.from({length:10},()=>1).reduce((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),rk(e,{generateColorPalettes:rj,generateNeutralColorPalettes:rM})),rA(e.fontSize)),function(e){let{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),rO(e)),function(e){let t,n,r,o,{motionUnit:a,motionBase:i,borderRadius:l,lineWidth:c}=e;return Object.assign({motionDurationFast:`${(i+a).toFixed(1)}s`,motionDurationMid:`${(i+2*a).toFixed(1)}s`,motionDurationSlow:`${(i+3*a).toFixed(1)}s`,lineWidthBold:c+1},(t=l,n=l,r=l,o=l,l<6&&l>=5?t=l+1:l<16&&l>=6?t=l+2:l>=16&&(t=16),l<7&&l>=5?n=4:l<8&&l>=7?n=5:l<14&&l>=8?n=6:l<16&&l>=14?n=7:l>=16&&(n=8),l<6&&l>=2?r=1:l>=6&&(r=2),l>4&&l<8?o=4:l>=8&&(o=6),{borderRadius:l,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}))}(e))}let rP=tl(rR);function rT(e){return e>=0&&e<=255}let rz=function(e,t){let{r:n,g:r,b:o,a:a}=new n2(e).toRgb();if(a<1)return e;let{r:i,g:l,b:c}=new n2(t).toRgb();for(let e=.01;e<=1;e+=.01){let t=Math.round((n-i*(1-e))/e),a=Math.round((r-l*(1-e))/e),s=Math.round((o-c*(1-e))/e);if(rT(t)&&rT(a)&&rT(s))return new n2({r:t,g:a,b:s,a:Math.round(100*e)/100}).toRgbString()}return new n2({r:n,g:r,b:o,a:1}).toRgbString()};var rB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function rD(e){let{override:t}=e,n=rB(e,["override"]),r=Object.assign({},t);Object.keys(nY).forEach(e=>{delete r[e]});let o=Object.assign(Object.assign({},n),r);return!1===o.motion&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:rz(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:rz(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:rz(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:3*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:rz(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
|
|
4
4
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
5
5
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
6
6
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
package/dist/widgets/823.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.rspackChunk_kb_labs_qa_entry=self.rspackChunk_kb_labs_qa_entry||[]).push([[823],{6026(e,t){var a=Symbol.for("react.transitional.element");function s(e,t,s){var r=null;if(void 0!==s&&(r=""+s),void 0!==t.key&&(r=""+t.key),"key"in t)for(var i in s={},t)"key"!==i&&(s[i]=t[i]);else s=t;return{$$typeof:a,type:e,key:r,ref:void 0!==(t=s.ref)?t:null,props:s}}t.Fragment=Symbol.for("react.fragment"),t.jsx=s,t.jsxs=s},4552(e,t,a){e.exports=a(6026)},2137(e,t,a){var s,r,i,n,d,u,l;let o;a.d(t,{YO:()=>eC,zM:()=>eT,k5:()=>eI,eu:()=>ej,ai:()=>eZ,Ik:()=>eN,g1:()=>eS,Yj:()=>ew,KC:()=>eA,L5:()=>eO}),(d=s||(s={})).assertEqual=e=>{},d.assertIs=function(e){},d.assertNever=function(e){throw Error()},d.arrayToEnum=e=>{let t={};for(let a of e)t[a]=a;return t},d.getValidEnumValues=e=>{let t=d.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),a={};for(let s of t)a[s]=e[s];return d.objectValues(a)},d.objectValues=e=>d.objectKeys(e).map(function(t){return e[t]}),d.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.push(a);return t},d.find=(e,t)=>{for(let a of e)if(t(a))return a},d.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,d.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},d.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(r||(r={})).mergeShapes=(e,t)=>({...e,...t});let c=s.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),h=e=>{switch(typeof e){case"undefined":return c.undefined;case"string":return c.string;case"number":return Number.isNaN(e)?c.nan:c.number;case"boolean":return c.boolean;case"function":return c.function;case"bigint":return c.bigint;case"symbol":return c.symbol;case"object":if(Array.isArray(e))return c.array;if(null===e)return c.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return c.promise;if("u">typeof Map&&e instanceof Map)return c.map;if("u">typeof Set&&e instanceof Set)return c.set;if("u">typeof Date&&e instanceof Date)return c.date;return c.object;default:return c.unknown}},p=s.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"]);class m 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]};const 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},a={_errors:[]},s=e=>{for(let r of e.issues)if("invalid_union"===r.code)r.unionErrors.map(s);else if("invalid_return_type"===r.code)s(r.returnTypeError);else if("invalid_arguments"===r.code)s(r.argumentsError);else if(0===r.path.length)a._errors.push(t(r));else{let e=a,s=0;for(;s<r.path.length;){let a=r.path[s];s===r.path.length-1?(e[a]=e[a]||{_errors:[]},e[a]._errors.push(t(r))):e[a]=e[a]||{_errors:[]},e=e[a],s++}}};return s(this),a}static assert(e){if(!(e instanceof m))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,s.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},a=[];for(let s of this.issues)if(s.path.length>0){let a=s.path[0];t[a]=t[a]||[],t[a].push(e(s))}else a.push(e(s));return{formErrors:a,fieldErrors:t}}get formErrors(){return this.flatten()}}m.create=e=>new m(e);let f=(e,t)=>{let a;switch(e.code){case p.invalid_type:a=e.received===c.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case p.invalid_literal:a=`Invalid literal value, expected ${JSON.stringify(e.expected,s.jsonStringifyReplacer)}`;break;case p.unrecognized_keys:a=`Unrecognized key(s) in object: ${s.joinValues(e.keys,", ")}`;break;case p.invalid_union:a="Invalid input";break;case p.invalid_union_discriminator:a=`Invalid discriminator value. Expected ${s.joinValues(e.options)}`;break;case p.invalid_enum_value:a=`Invalid enum value. Expected ${s.joinValues(e.options)}, received '${e.received}'`;break;case p.invalid_arguments:a="Invalid function arguments";break;case p.invalid_return_type:a="Invalid function return type";break;case p.invalid_date:a="Invalid date";break;case p.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(a=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(a=`${a} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?a=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?a=`Invalid input: must end with "${e.validation.endsWith}"`:s.assertNever(e.validation):a="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case p.too_small:a="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||"bigint"===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 p.too_big:a="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 p.custom:a="Invalid input";break;case p.invalid_intersection_types:a="Intersection results could not be merged";break;case p.not_multiple_of:a=`Number must be a multiple of ${e.multipleOf}`;break;case p.not_finite:a="Number must be finite";break;default:a=t.defaultError,s.assertNever(e)}return{message:a}};(u=i||(i={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},u.toString=e=>"string"==typeof e?e:e?.message;function _(e,t){let a=(e=>{let{data:t,path:a,errorMaps:s,issueData:r}=e,i=[...a,...r.path||[]],n={...r,path:i};if(void 0!==r.message)return{...r,path:i,message:r.message};let d="";for(let e of s.filter(e=>!!e).slice().reverse())d=e(n,{data:t,defaultError:d}).message;return{...r,path:i,message:d}})({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,f,void 0].filter(e=>!!e)});e.common.issues.push(a)}class y{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let a=[];for(let s of t){if("aborted"===s.status)return g;"dirty"===s.status&&e.dirty(),a.push(s.value)}return{status:e.value,value:a}}static async mergeObjectAsync(e,t){let a=[];for(let e of t){let t=await e.key,s=await e.value;a.push({key:t,value:s})}return y.mergeObjectSync(e,a)}static mergeObjectSync(e,t){let a={};for(let s of t){let{key:t,value:r}=s;if("aborted"===t.status||"aborted"===r.status)return g;"dirty"===t.status&&e.dirty(),"dirty"===r.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==r.value||s.alwaysSet)&&(a[t.value]=r.value)}return{status:e.value,value:a}}}let g=Object.freeze({status:"aborted"}),v=e=>({status:"dirty",value:e}),k=e=>({status:"valid",value:e}),b=e=>"u">typeof Promise&&e instanceof Promise;class x{constructor(e,t,a,s){this._cachedPath=[],this.parent=e,this.data=t,this._path=a,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let w=(e,t)=>{if("valid"===t.status)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 m(e.common.issues);return this._error=t,this._error}}};function Z(e){if(!e)return{};let{errorMap:t,invalid_type_error:a,required_error:s,description:r}=e;if(t&&(a||s))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:r}:{errorMap:(t,r)=>{let{message:i}=e;return"invalid_enum_value"===t.code?{message:i??r.defaultError}:void 0===r.data?{message:i??s??r.defaultError}:"invalid_type"!==t.code?{message:r.defaultError}:{message:i??a??r.defaultError}},description:r}}class T{get description(){return this._def.description}_getType(e){return h(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:h(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new y,ctx:{common:e.parent.common,data:e.data,parsedType:h(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(b(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let a=this.safeParse(e,t);if(a.success)return a.data;throw a.error}safeParse(e,t){let a={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:h(e)},s=this._parseSync({data:e,path:a.path,parent:a});return w(a,s)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:h(e)};if(!this["~standard"].async)try{let a=this._parseSync({data:e,path:[],parent:t});return"valid"===a.status?{value:a.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>"valid"===e.status?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let a=await this.safeParseAsync(e,t);if(a.success)return a.data;throw a.error}async safeParseAsync(e,t){let a={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:h(e)},s=this._parse({data:e,path:a.path,parent:a});return w(a,await (b(s)?s:Promise.resolve(s)))}refine(e,t){return this._refinement((a,s)=>{let r=e(a),i=()=>s.addIssue({code:p.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(a):t});return"u">typeof Promise&&r instanceof Promise?r.then(e=>!!e||(i(),!1)):!!r||(i(),!1)})}refinement(e,t){return this._refinement((a,s)=>!!e(a)||(s.addIssue("function"==typeof t?t(a,s):t),!1))}_refinement(e){return new em({schema:this,typeName:n.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 ef.create(this,this._def)}nullable(){return e_.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return et.create(this)}promise(){return ep.create(this,this._def)}or(e){return es.create([this,e],this._def)}and(e){return er.create(this,e,this._def)}transform(e){return new em({...Z(this._def),schema:this,typeName:n.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ey({...Z(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:n.ZodDefault})}brand(){return new ek({typeName:n.ZodBranded,type:this,...Z(this._def)})}catch(e){return new eg({...Z(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:n.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eb.create(this,e)}readonly(){return ex.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let O=/^c[^\s-]{8,}$/i,C=/^[0-9a-z]+$/,N=/^[0-9A-HJKMNP-TV-Z]{26}$/i,A=/^[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,S=/^[a-z0-9_-]{21}$/i,j=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,I=/^[-+]?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)?)??$/,R=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,E=/^(?:(?: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])$/,$=/^(?:(?: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])$/,P=/^(([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]))$/,F=/^(([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])$/,L=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,z=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,M="((\\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])))",D=RegExp(`^${M}$`);function V(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let a=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${a}`}class K extends T{_parse(e){var t,a,r,i;let n;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==c.string){let t=this._getOrReturnCtx(e);return _(t,{code:p.invalid_type,expected:c.string,received:t.parsedType}),g}let d=new y;for(let u of this._def.checks)if("min"===u.kind)e.data.length<u.value&&(_(n=this._getOrReturnCtx(e,n),{code:p.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),d.dirty());else if("max"===u.kind)e.data.length>u.value&&(_(n=this._getOrReturnCtx(e,n),{code:p.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),d.dirty());else if("length"===u.kind){let t=e.data.length>u.value,a=e.data.length<u.value;(t||a)&&(n=this._getOrReturnCtx(e,n),t?_(n,{code:p.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}):a&&_(n,{code:p.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}),d.dirty())}else if("email"===u.kind)R.test(e.data)||(_(n=this._getOrReturnCtx(e,n),{validation:"email",code:p.invalid_string,message:u.message}),d.dirty());else if("emoji"===u.kind)o||(o=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),o.test(e.data)||(_(n=this._getOrReturnCtx(e,n),{validation:"emoji",code:p.invalid_string,message:u.message}),d.dirty());else if("uuid"===u.kind)A.test(e.data)||(_(n=this._getOrReturnCtx(e,n),{validation:"uuid",code:p.invalid_string,message:u.message}),d.dirty());else if("nanoid"===u.kind)S.test(e.data)||(_(n=this._getOrReturnCtx(e,n),{validation:"nanoid",code:p.invalid_string,message:u.message}),d.dirty());else if("cuid"===u.kind)O.test(e.data)||(_(n=this._getOrReturnCtx(e,n),{validation:"cuid",code:p.invalid_string,message:u.message}),d.dirty());else if("cuid2"===u.kind)C.test(e.data)||(_(n=this._getOrReturnCtx(e,n),{validation:"cuid2",code:p.invalid_string,message:u.message}),d.dirty());else if("ulid"===u.kind)N.test(e.data)||(_(n=this._getOrReturnCtx(e,n),{validation:"ulid",code:p.invalid_string,message:u.message}),d.dirty());else if("url"===u.kind)try{new URL(e.data)}catch{_(n=this._getOrReturnCtx(e,n),{validation:"url",code:p.invalid_string,message:u.message}),d.dirty()}else"regex"===u.kind?(u.regex.lastIndex=0,u.regex.test(e.data)||(_(n=this._getOrReturnCtx(e,n),{validation:"regex",code:p.invalid_string,message:u.message}),d.dirty())):"trim"===u.kind?e.data=e.data.trim():"includes"===u.kind?e.data.includes(u.value,u.position)||(_(n=this._getOrReturnCtx(e,n),{code:p.invalid_string,validation:{includes:u.value,position:u.position},message:u.message}),d.dirty()):"toLowerCase"===u.kind?e.data=e.data.toLowerCase():"toUpperCase"===u.kind?e.data=e.data.toUpperCase():"startsWith"===u.kind?e.data.startsWith(u.value)||(_(n=this._getOrReturnCtx(e,n),{code:p.invalid_string,validation:{startsWith:u.value},message:u.message}),d.dirty()):"endsWith"===u.kind?e.data.endsWith(u.value)||(_(n=this._getOrReturnCtx(e,n),{code:p.invalid_string,validation:{endsWith:u.value},message:u.message}),d.dirty()):"datetime"===u.kind?(function(e){let t=`${M}T${V(e)}`,a=[];return a.push(e.local?"Z?":"Z"),e.offset&&a.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${a.join("|")})`,RegExp(`^${t}$`)})(u).test(e.data)||(_(n=this._getOrReturnCtx(e,n),{code:p.invalid_string,validation:"datetime",message:u.message}),d.dirty()):"date"===u.kind?D.test(e.data)||(_(n=this._getOrReturnCtx(e,n),{code:p.invalid_string,validation:"date",message:u.message}),d.dirty()):"time"===u.kind?RegExp(`^${V(u)}$`).test(e.data)||(_(n=this._getOrReturnCtx(e,n),{code:p.invalid_string,validation:"time",message:u.message}),d.dirty()):"duration"===u.kind?I.test(e.data)||(_(n=this._getOrReturnCtx(e,n),{validation:"duration",code:p.invalid_string,message:u.message}),d.dirty()):"ip"===u.kind?(t=e.data,!(("v4"===(a=u.version)||!a)&&E.test(t)||("v6"===a||!a)&&P.test(t))&&1&&(_(n=this._getOrReturnCtx(e,n),{validation:"ip",code:p.invalid_string,message:u.message}),d.dirty())):"jwt"===u.kind?!function(e,t){if(!j.test(e))return!1;try{let[a]=e.split(".");if(!a)return!1;let s=a.replace(/-/g,"+").replace(/_/g,"/").padEnd(a.length+(4-a.length%4)%4,"="),r=JSON.parse(atob(s));if("object"!=typeof r||null===r||"typ"in r&&r?.typ!=="JWT"||!r.alg||t&&r.alg!==t)return!1;return!0}catch{return!1}}(e.data,u.alg)&&(_(n=this._getOrReturnCtx(e,n),{validation:"jwt",code:p.invalid_string,message:u.message}),d.dirty()):"cidr"===u.kind?(r=e.data,!(("v4"===(i=u.version)||!i)&&$.test(r)||("v6"===i||!i)&&F.test(r))&&1&&(_(n=this._getOrReturnCtx(e,n),{validation:"cidr",code:p.invalid_string,message:u.message}),d.dirty())):"base64"===u.kind?L.test(e.data)||(_(n=this._getOrReturnCtx(e,n),{validation:"base64",code:p.invalid_string,message:u.message}),d.dirty()):"base64url"===u.kind?z.test(e.data)||(_(n=this._getOrReturnCtx(e,n),{validation:"base64url",code:p.invalid_string,message:u.message}),d.dirty()):s.assertNever(u);return{status:d.value,value:e.data}}_regex(e,t,a){return this.refinement(t=>e.test(t),{validation:t,code:p.invalid_string,...i.errToObj(a)})}_addCheck(e){return new K({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...i.errToObj(e)})}url(e){return this._addCheck({kind:"url",...i.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...i.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...i.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...i.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...i.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...i.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...i.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...i.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...i.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...i.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...i.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...i.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...i.errToObj(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===e?.precision?null:e?.precision,...i.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...i.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...i.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...i.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...i.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...i.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...i.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...i.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...i.errToObj(t)})}nonempty(e){return this.min(1,i.errToObj(e))}trim(){return new K({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new K({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new K({...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}}K.create=e=>new K({checks:[],typeName:n.ZodString,coerce:e?.coerce??!1,...Z(e)});class U extends T{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)!==c.number){let t=this._getOrReturnCtx(e);return _(t,{code:p.invalid_type,expected:c.number,received:t.parsedType}),g}let a=new y;for(let r of this._def.checks)"int"===r.kind?s.isInteger(e.data)||(_(t=this._getOrReturnCtx(e,t),{code:p.invalid_type,expected:"integer",received:"float",message:r.message}),a.dirty()):"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(_(t=this._getOrReturnCtx(e,t),{code:p.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),a.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(_(t=this._getOrReturnCtx(e,t),{code:p.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),a.dirty()):"multipleOf"===r.kind?0!==function(e,t){let a=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,r=a>s?a:s;return Number.parseInt(e.toFixed(r).replace(".",""))%Number.parseInt(t.toFixed(r).replace(".",""))/10**r}(e.data,r.value)&&(_(t=this._getOrReturnCtx(e,t),{code:p.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(_(t=this._getOrReturnCtx(e,t),{code:p.not_finite,message:r.message}),a.dirty()):s.assertNever(r);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,i.toString(t))}gt(e,t){return this.setLimit("min",e,!1,i.toString(t))}lte(e,t){return this.setLimit("max",e,!0,i.toString(t))}lt(e,t){return this.setLimit("max",e,!1,i.toString(t))}setLimit(e,t,a,s){return new U({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:a,message:i.toString(s)}]})}_addCheck(e){return new U({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:i.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:i.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:i.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:i.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:i.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:i.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:i.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:i.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:i.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&&s.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let a of this._def.checks)if("finite"===a.kind||"int"===a.kind||"multipleOf"===a.kind)return!0;else"min"===a.kind?(null===t||a.value>t)&&(t=a.value):"max"===a.kind&&(null===e||a.value<e)&&(e=a.value);return Number.isFinite(t)&&Number.isFinite(e)}}U.create=e=>new U({checks:[],typeName:n.ZodNumber,coerce:e?.coerce||!1,...Z(e)});class W extends T{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{return this._getInvalidInput(e)}if(this._getType(e)!==c.bigint)return this._getInvalidInput(e);let a=new y;for(let r of this._def.checks)"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(_(t=this._getOrReturnCtx(e,t),{code:p.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),a.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(_(t=this._getOrReturnCtx(e,t),{code:p.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),a.dirty()):"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(_(t=this._getOrReturnCtx(e,t),{code:p.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):s.assertNever(r);return{status:a.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return _(t,{code:p.invalid_type,expected:c.bigint,received:t.parsedType}),g}gte(e,t){return this.setLimit("min",e,!0,i.toString(t))}gt(e,t){return this.setLimit("min",e,!1,i.toString(t))}lte(e,t){return this.setLimit("max",e,!0,i.toString(t))}lt(e,t){return this.setLimit("max",e,!1,i.toString(t))}setLimit(e,t,a,s){return new W({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:a,message:i.toString(s)}]})}_addCheck(e){return new W({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:i.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:i.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:i.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:i.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:i.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}}W.create=e=>new W({checks:[],typeName:n.ZodBigInt,coerce:e?.coerce??!1,...Z(e)});class B extends T{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==c.boolean){let t=this._getOrReturnCtx(e);return _(t,{code:p.invalid_type,expected:c.boolean,received:t.parsedType}),g}return k(e.data)}}B.create=e=>new B({typeName:n.ZodBoolean,coerce:e?.coerce||!1,...Z(e)});class q extends T{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==c.date){let t=this._getOrReturnCtx(e);return _(t,{code:p.invalid_type,expected:c.date,received:t.parsedType}),g}if(Number.isNaN(e.data.getTime()))return _(this._getOrReturnCtx(e),{code:p.invalid_date}),g;let a=new y;for(let r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(_(t=this._getOrReturnCtx(e,t),{code:p.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),a.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(_(t=this._getOrReturnCtx(e,t),{code:p.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),a.dirty()):s.assertNever(r);return{status:a.value,value:new Date(e.data.getTime())}}_addCheck(e){return new q({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:i.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:i.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}}q.create=e=>new q({checks:[],coerce:e?.coerce||!1,typeName:n.ZodDate,...Z(e)});class J extends T{_parse(e){if(this._getType(e)!==c.symbol){let t=this._getOrReturnCtx(e);return _(t,{code:p.invalid_type,expected:c.symbol,received:t.parsedType}),g}return k(e.data)}}J.create=e=>new J({typeName:n.ZodSymbol,...Z(e)});class Y extends T{_parse(e){if(this._getType(e)!==c.undefined){let t=this._getOrReturnCtx(e);return _(t,{code:p.invalid_type,expected:c.undefined,received:t.parsedType}),g}return k(e.data)}}Y.create=e=>new Y({typeName:n.ZodUndefined,...Z(e)});class H extends T{_parse(e){if(this._getType(e)!==c.null){let t=this._getOrReturnCtx(e);return _(t,{code:p.invalid_type,expected:c.null,received:t.parsedType}),g}return k(e.data)}}H.create=e=>new H({typeName:n.ZodNull,...Z(e)});class G extends T{constructor(){super(...arguments),this._any=!0}_parse(e){return k(e.data)}}G.create=e=>new G({typeName:n.ZodAny,...Z(e)});class X extends T{constructor(){super(...arguments),this._unknown=!0}_parse(e){return k(e.data)}}X.create=e=>new X({typeName:n.ZodUnknown,...Z(e)});class Q extends T{_parse(e){let t=this._getOrReturnCtx(e);return _(t,{code:p.invalid_type,expected:c.never,received:t.parsedType}),g}}Q.create=e=>new Q({typeName:n.ZodNever,...Z(e)});class ee extends T{_parse(e){if(this._getType(e)!==c.undefined){let t=this._getOrReturnCtx(e);return _(t,{code:p.invalid_type,expected:c.void,received:t.parsedType}),g}return k(e.data)}}ee.create=e=>new ee({typeName:n.ZodVoid,...Z(e)});class et extends T{_parse(e){let{ctx:t,status:a}=this._processInputParams(e),s=this._def;if(t.parsedType!==c.array)return _(t,{code:p.invalid_type,expected:c.array,received:t.parsedType}),g;if(null!==s.exactLength){let e=t.data.length>s.exactLength.value,r=t.data.length<s.exactLength.value;(e||r)&&(_(t,{code:e?p.too_big:p.too_small,minimum:r?s.exactLength.value:void 0,maximum:e?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),a.dirty())}if(null!==s.minLength&&t.data.length<s.minLength.value&&(_(t,{code:p.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),a.dirty()),null!==s.maxLength&&t.data.length>s.maxLength.value&&(_(t,{code:p.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),a.dirty()),t.common.async)return Promise.all([...t.data].map((e,a)=>s.type._parseAsync(new x(t,e,t.path,a)))).then(e=>y.mergeArray(a,e));let r=[...t.data].map((e,a)=>s.type._parseSync(new x(t,e,t.path,a)));return y.mergeArray(a,r)}get element(){return this._def.type}min(e,t){return new et({...this._def,minLength:{value:e,message:i.toString(t)}})}max(e,t){return new et({...this._def,maxLength:{value:e,message:i.toString(t)}})}length(e,t){return new et({...this._def,exactLength:{value:e,message:i.toString(t)}})}nonempty(e){return this.min(1,e)}}et.create=(e,t)=>new et({type:e,minLength:null,maxLength:null,exactLength:null,typeName:n.ZodArray,...Z(t)});class ea extends T{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=s.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==c.object){let t=this._getOrReturnCtx(e);return _(t,{code:p.invalid_type,expected:c.object,received:t.parsedType}),g}let{status:t,ctx:a}=this._processInputParams(e),{shape:s,keys:r}=this._getCached(),i=[];if(!(this._def.catchall instanceof Q&&"strip"===this._def.unknownKeys))for(let e in a.data)r.includes(e)||i.push(e);let n=[];for(let e of r){let t=s[e],r=a.data[e];n.push({key:{status:"valid",value:e},value:t._parse(new x(a,r,a.path,e)),alwaysSet:e in a.data})}if(this._def.catchall instanceof Q){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of i)n.push({key:{status:"valid",value:e},value:{status:"valid",value:a.data[e]}});else if("strict"===e)i.length>0&&(_(a,{code:p.unrecognized_keys,keys:i}),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 i){let s=a.data[t];n.push({key:{status:"valid",value:t},value:e._parse(new x(a,s,a.path,t)),alwaysSet:t in a.data})}}return a.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of n){let a=await t.key,s=await t.value;e.push({key:a,value:s,alwaysSet:t.alwaysSet})}return e}).then(e=>y.mergeObjectSync(t,e)):y.mergeObjectSync(t,n)}get shape(){return this._def.shape()}strict(e){return i.errToObj,new ea({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,a)=>{let s=this._def.errorMap?.(t,a).message??a.defaultError;return"unrecognized_keys"===t.code?{message:i.errToObj(e).message??s}:{message:s}}}:{}})}strip(){return new ea({...this._def,unknownKeys:"strip"})}passthrough(){return new ea({...this._def,unknownKeys:"passthrough"})}extend(e){return new ea({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ea({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:n.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ea({...this._def,catchall:e})}pick(e){let t={};for(let a of s.objectKeys(e))e[a]&&this.shape[a]&&(t[a]=this.shape[a]);return new ea({...this._def,shape:()=>t})}omit(e){let t={};for(let a of s.objectKeys(this.shape))e[a]||(t[a]=this.shape[a]);return new ea({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof ea){let a={};for(let s in t.shape){let r=t.shape[s];a[s]=ef.create(e(r))}return new ea({...t._def,shape:()=>a})}if(t instanceof et)return new et({...t._def,type:e(t.element)});if(t instanceof ef)return ef.create(e(t.unwrap()));if(t instanceof e_)return e_.create(e(t.unwrap()));if(t instanceof ei)return ei.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let a of s.objectKeys(this.shape)){let s=this.shape[a];e&&!e[a]?t[a]=s:t[a]=s.optional()}return new ea({...this._def,shape:()=>t})}required(e){let t={};for(let a of s.objectKeys(this.shape))if(e&&!e[a])t[a]=this.shape[a];else{let e=this.shape[a];for(;e instanceof ef;)e=e._def.innerType;t[a]=e}return new ea({...this._def,shape:()=>t})}keyof(){return eo(s.objectKeys(this.shape))}}ea.create=(e,t)=>new ea({shape:()=>e,unknownKeys:"strip",catchall:Q.create(),typeName:n.ZodObject,...Z(t)}),ea.strictCreate=(e,t)=>new ea({shape:()=>e,unknownKeys:"strict",catchall:Q.create(),typeName:n.ZodObject,...Z(t)}),ea.lazycreate=(e,t)=>new ea({shape:e,unknownKeys:"strip",catchall:Q.create(),typeName:n.ZodObject,...Z(t)});class es extends T{_parse(e){let{ctx:t}=this._processInputParams(e),a=this._def.options;if(t.common.async)return Promise.all(a.map(async e=>{let a={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:a}),ctx:a}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let a of e)if("dirty"===a.result.status)return t.common.issues.push(...a.ctx.common.issues),a.result;let a=e.map(e=>new m(e.ctx.common.issues));return _(t,{code:p.invalid_union,unionErrors:a}),g});{let e,s=[];for(let r of a){let a={...t,common:{...t.common,issues:[]},parent:null},i=r._parseSync({data:t.data,path:t.path,parent:a});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:a}),a.common.issues.length&&s.push(a.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let r=s.map(e=>new m(e));return _(t,{code:p.invalid_union,unionErrors:r}),g}}get options(){return this._def.options}}es.create=(e,t)=>new es({options:e,typeName:n.ZodUnion,...Z(t)});class er extends T{_parse(e){let{status:t,ctx:a}=this._processInputParams(e),r=(e,r)=>{if("aborted"===e.status||"aborted"===r.status)return g;let i=function e(t,a){let r=h(t),i=h(a);if(t===a)return{valid:!0,data:t};if(r===c.object&&i===c.object){let r=s.objectKeys(a),i=s.objectKeys(t).filter(e=>-1!==r.indexOf(e)),n={...t,...a};for(let s of i){let r=e(t[s],a[s]);if(!r.valid)return{valid:!1};n[s]=r.data}return{valid:!0,data:n}}if(r===c.array&&i===c.array){if(t.length!==a.length)return{valid:!1};let s=[];for(let r=0;r<t.length;r++){let i=e(t[r],a[r]);if(!i.valid)return{valid:!1};s.push(i.data)}return{valid:!0,data:s}}if(r===c.date&&i===c.date&&+t==+a)return{valid:!0,data:t};return{valid:!1}}(e.value,r.value);return i.valid?(("dirty"===e.status||"dirty"===r.status)&&t.dirty(),{status:t.value,value:i.data}):(_(a,{code:p.invalid_intersection_types}),g)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}er.create=(e,t,a)=>new er({left:e,right:t,typeName:n.ZodIntersection,...Z(a)});class ei extends T{_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==c.array)return _(a,{code:p.invalid_type,expected:c.array,received:a.parsedType}),g;if(a.data.length<this._def.items.length)return _(a,{code:p.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),g;!this._def.rest&&a.data.length>this._def.items.length&&(_(a,{code:p.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let s=[...a.data].map((e,t)=>{let s=this._def.items[t]||this._def.rest;return s?s._parse(new x(a,e,a.path,t)):null}).filter(e=>!!e);return a.common.async?Promise.all(s).then(e=>y.mergeArray(t,e)):y.mergeArray(t,s)}get items(){return this._def.items}rest(e){return new ei({...this._def,rest:e})}}ei.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new ei({items:e,typeName:n.ZodTuple,rest:null,...Z(t)})};class en extends T{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==c.map)return _(a,{code:p.invalid_type,expected:c.map,received:a.parsedType}),g;let s=this._def.keyType,r=this._def.valueType,i=[...a.data.entries()].map(([e,t],i)=>({key:s._parse(new x(a,e,a.path,[i,"key"])),value:r._parse(new x(a,t,a.path,[i,"value"]))}));if(a.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let a of i){let s=await a.key,r=await a.value;if("aborted"===s.status||"aborted"===r.status)return g;("dirty"===s.status||"dirty"===r.status)&&t.dirty(),e.set(s.value,r.value)}return{status:t.value,value:e}})}{let e=new Map;for(let a of i){let s=a.key,r=a.value;if("aborted"===s.status||"aborted"===r.status)return g;("dirty"===s.status||"dirty"===r.status)&&t.dirty(),e.set(s.value,r.value)}return{status:t.value,value:e}}}}en.create=(e,t,a)=>new en({valueType:t,keyType:e,typeName:n.ZodMap,...Z(a)});class ed extends T{_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==c.set)return _(a,{code:p.invalid_type,expected:c.set,received:a.parsedType}),g;let s=this._def;null!==s.minSize&&a.data.size<s.minSize.value&&(_(a,{code:p.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),t.dirty()),null!==s.maxSize&&a.data.size>s.maxSize.value&&(_(a,{code:p.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),t.dirty());let r=this._def.valueType;function i(e){let a=new Set;for(let s of e){if("aborted"===s.status)return g;"dirty"===s.status&&t.dirty(),a.add(s.value)}return{status:t.value,value:a}}let n=[...a.data.values()].map((e,t)=>r._parse(new x(a,e,a.path,t)));return a.common.async?Promise.all(n).then(e=>i(e)):i(n)}min(e,t){return new ed({...this._def,minSize:{value:e,message:i.toString(t)}})}max(e,t){return new ed({...this._def,maxSize:{value:e,message:i.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ed.create=(e,t)=>new ed({valueType:e,minSize:null,maxSize:null,typeName:n.ZodSet,...Z(t)});class eu extends T{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})}}eu.create=(e,t)=>new eu({getter:e,typeName:n.ZodLazy,...Z(t)});class el extends T{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return _(t,{received:t.data,code:p.invalid_literal,expected:this._def.value}),g}return{status:"valid",value:e.data}}get value(){return this._def.value}}function eo(e,t){return new ec({values:e,typeName:n.ZodEnum,...Z(t)})}el.create=(e,t)=>new el({value:e,typeName:n.ZodLiteral,...Z(t)});class ec extends T{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),a=this._def.values;return _(t,{expected:s.joinValues(a),received:t.parsedType,code:p.invalid_type}),g}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),a=this._def.values;return _(t,{received:t.data,code:p.invalid_enum_value,options:a}),g}return k(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 ec.create(e,{...this._def,...t})}exclude(e,t=this._def){return ec.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}ec.create=eo;class eh extends T{_parse(e){let t=s.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(e);if(a.parsedType!==c.string&&a.parsedType!==c.number){let e=s.objectValues(t);return _(a,{expected:s.joinValues(e),received:a.parsedType,code:p.invalid_type}),g}if(this._cache||(this._cache=new Set(s.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=s.objectValues(t);return _(a,{received:a.data,code:p.invalid_enum_value,options:e}),g}return k(e.data)}get enum(){return this._def.values}}eh.create=(e,t)=>new eh({values:e,typeName:n.ZodNativeEnum,...Z(t)});class ep extends T{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==c.promise&&!1===t.common.async?(_(t,{code:p.invalid_type,expected:c.promise,received:t.parsedType}),g):k((t.parsedType===c.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}ep.create=(e,t)=>new ep({type:e,typeName:n.ZodPromise,...Z(t)});class em extends T{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===n.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:a}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{_(a,e),e.fatal?t.abort():t.dirty()},get path(){return a.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===r.type){let e=r.transform(a.data,i);if(a.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return g;let s=await this._def.schema._parseAsync({data:e,path:a.path,parent:a});return"aborted"===s.status?g:"dirty"===s.status||"dirty"===t.value?v(s.value):s});{if("aborted"===t.value)return g;let s=this._def.schema._parseSync({data:e,path:a.path,parent:a});return"aborted"===s.status?g:"dirty"===s.status||"dirty"===t.value?v(s.value):s}}if("refinement"===r.type){let e=e=>{let t=r.refinement(e,i);if(a.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!==a.common.async)return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(a=>"aborted"===a.status?g:("dirty"===a.status&&t.dirty(),e(a.value).then(()=>({status:t.value,value:a.value}))));{let s=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return"aborted"===s.status?g:("dirty"===s.status&&t.dirty(),e(s.value),{status:t.value,value:s.value})}}if("transform"===r.type)if(!1!==a.common.async)return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(e=>"valid"!==e.status?g:Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})));else{let e=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if("valid"!==e.status)return g;let s=r.transform(e.value,i);if(s instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:s}}s.assertNever(r)}}em.create=(e,t,a)=>new em({schema:e,typeName:n.ZodEffects,effect:t,...Z(a)}),em.createWithPreprocess=(e,t,a)=>new em({schema:t,effect:{type:"preprocess",transform:e},typeName:n.ZodEffects,...Z(a)});class ef extends T{_parse(e){return this._getType(e)===c.undefined?k(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ef.create=(e,t)=>new ef({innerType:e,typeName:n.ZodOptional,...Z(t)});class e_ extends T{_parse(e){return this._getType(e)===c.null?k(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}e_.create=(e,t)=>new e_({innerType:e,typeName:n.ZodNullable,...Z(t)});class ey extends T{_parse(e){let{ctx:t}=this._processInputParams(e),a=t.data;return t.parsedType===c.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ey.create=(e,t)=>new ey({innerType:e,typeName:n.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...Z(t)});class eg extends T{_parse(e){let{ctx:t}=this._processInputParams(e),a={...t,common:{...t.common,issues:[]}},s=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return b(s)?s.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new m(a.common.issues)},input:a.data})})):{status:"valid",value:"valid"===s.status?s.value:this._def.catchValue({get error(){return new m(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}}eg.create=(e,t)=>new eg({innerType:e,typeName:n.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...Z(t)});class ev extends T{_parse(e){if(this._getType(e)!==c.nan){let t=this._getOrReturnCtx(e);return _(t,{code:p.invalid_type,expected:c.nan,received:t.parsedType}),g}return{status:"valid",value:e.data}}}ev.create=e=>new ev({typeName:n.ZodNaN,...Z(e)}),Symbol("zod_brand");class ek extends T{_parse(e){let{ctx:t}=this._processInputParams(e),a=t.data;return this._def.type._parse({data:a,path:t.path,parent:t})}unwrap(){return this._def.type}}class eb extends T{_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return"aborted"===e.status?g:"dirty"===e.status?(t.dirty(),v(e.value)):this._def.out._parseAsync({data:e.value,path:a.path,parent:a})})();{let e=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return"aborted"===e.status?g:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:a.path,parent:a})}}static create(e,t){return new eb({in:e,out:t,typeName:n.ZodPipeline})}}class ex extends T{_parse(e){let t=this._def.innerType._parse(e),a=e=>("valid"===e.status&&(e.value=Object.freeze(e.value)),e);return b(t)?t.then(e=>a(e)):a(t)}unwrap(){return this._def.innerType}}ex.create=(e,t)=>new ex({innerType:e,typeName:n.ZodReadonly,...Z(t)}),ea.lazycreate,(l=n||(n={})).ZodString="ZodString",l.ZodNumber="ZodNumber",l.ZodNaN="ZodNaN",l.ZodBigInt="ZodBigInt",l.ZodBoolean="ZodBoolean",l.ZodDate="ZodDate",l.ZodSymbol="ZodSymbol",l.ZodUndefined="ZodUndefined",l.ZodNull="ZodNull",l.ZodAny="ZodAny",l.ZodUnknown="ZodUnknown",l.ZodNever="ZodNever",l.ZodVoid="ZodVoid",l.ZodArray="ZodArray",l.ZodObject="ZodObject",l.ZodUnion="ZodUnion",l.ZodDiscriminatedUnion="ZodDiscriminatedUnion",l.ZodIntersection="ZodIntersection",l.ZodTuple="ZodTuple",l.ZodRecord="ZodRecord",l.ZodMap="ZodMap",l.ZodSet="ZodSet",l.ZodFunction="ZodFunction",l.ZodLazy="ZodLazy",l.ZodLiteral="ZodLiteral",l.ZodEnum="ZodEnum",l.ZodEffects="ZodEffects",l.ZodNativeEnum="ZodNativeEnum",l.ZodOptional="ZodOptional",l.ZodNullable="ZodNullable",l.ZodDefault="ZodDefault",l.ZodCatch="ZodCatch",l.ZodPromise="ZodPromise",l.ZodBranded="ZodBranded",l.ZodPipeline="ZodPipeline",l.ZodReadonly="ZodReadonly";let ew=K.create,eZ=U.create;ev.create,W.create;let eT=B.create;q.create,J.create,Y.create,H.create,G.create;let eO=X.create;Q.create,ee.create;let eC=et.create,eN=ea.create;ea.strictCreate;let eA=es.create;er.create,ei.create;let eS=(class e extends T{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==c.object)return _(a,{code:p.invalid_type,expected:c.object,received:a.parsedType}),g;let s=[],r=this._def.keyType,i=this._def.valueType;for(let e in a.data)s.push({key:r._parse(new x(a,e,a.path,e)),value:i._parse(new x(a,a.data[e],a.path,e)),alwaysSet:e in a.data});return a.common.async?y.mergeObjectAsync(t,s):y.mergeObjectSync(t,s)}get element(){return this._def.valueType}static create(t,a,s){return new e(a instanceof T?{keyType:t,valueType:a,typeName:n.ZodRecord,...Z(s)}:{keyType:K.create(),valueType:t,typeName:n.ZodRecord,...Z(a)})}}).create;en.create,ed.create,eu.create;let ej=el.create,eI=ec.create;eh.create,ep.create,em.create,ef.create,e_.create,em.createWithPreprocess,eb.create}}]);
|
|
1
|
+
"use strict";(self.rspackChunk_kb_labs_qa_entry=self.rspackChunk_kb_labs_qa_entry||[]).push([[823],{6026(e,t){var a=Symbol.for("react.transitional.element");function s(e,t,s){var r=null;if(void 0!==s&&(r=""+s),void 0!==t.key&&(r=""+t.key),"key"in t)for(var i in s={},t)"key"!==i&&(s[i]=t[i]);else s=t;return{$$typeof:a,type:e,key:r,ref:void 0!==(t=s.ref)?t:null,props:s}}t.Fragment=Symbol.for("react.fragment"),t.jsx=s,t.jsxs=s},4552(e,t,a){e.exports=a(6026)},2137(e,t,a){var s,r,i,n,d,u,l;let o;a.d(t,{YO:()=>eC,zM:()=>eT,k5:()=>eI,eu:()=>ej,ai:()=>eZ,Ik:()=>eN,g1:()=>eS,Yj:()=>ew,KC:()=>eA,L5:()=>eO}),(d=s||(s={})).assertEqual=e=>{},d.assertIs=function(e){},d.assertNever=function(e){throw Error()},d.arrayToEnum=e=>{let t={};for(let a of e)t[a]=a;return t},d.getValidEnumValues=e=>{let t=d.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),a={};for(let s of t)a[s]=e[s];return d.objectValues(a)},d.objectValues=e=>d.objectKeys(e).map(function(t){return e[t]}),d.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.push(a);return t},d.find=(e,t)=>{for(let a of e)if(t(a))return a},d.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,d.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},d.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(r||(r={})).mergeShapes=(e,t)=>({...e,...t});let c=s.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),h=e=>{switch(typeof e){case"undefined":return c.undefined;case"string":return c.string;case"number":return Number.isNaN(e)?c.nan:c.number;case"boolean":return c.boolean;case"function":return c.function;case"bigint":return c.bigint;case"symbol":return c.symbol;case"object":if(Array.isArray(e))return c.array;if(null===e)return c.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return c.promise;if("u">typeof Map&&e instanceof Map)return c.map;if("u">typeof Set&&e instanceof Set)return c.set;if("u">typeof Date&&e instanceof Date)return c.date;return c.object;default:return c.unknown}},p=s.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"]);class m 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},a={_errors:[]},s=e=>{for(let r of e.issues)if("invalid_union"===r.code)r.unionErrors.map(s);else if("invalid_return_type"===r.code)s(r.returnTypeError);else if("invalid_arguments"===r.code)s(r.argumentsError);else if(0===r.path.length)a._errors.push(t(r));else{let e=a,s=0;for(;s<r.path.length;){let a=r.path[s];s===r.path.length-1?(e[a]=e[a]||{_errors:[]},e[a]._errors.push(t(r))):e[a]=e[a]||{_errors:[]},e=e[a],s++}}};return s(this),a}static assert(e){if(!(e instanceof m))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,s.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},a=[];for(let s of this.issues)if(s.path.length>0){let a=s.path[0];t[a]=t[a]||[],t[a].push(e(s))}else a.push(e(s));return{formErrors:a,fieldErrors:t}}get formErrors(){return this.flatten()}}m.create=e=>new m(e);let f=(e,t)=>{let a;switch(e.code){case p.invalid_type:a=e.received===c.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case p.invalid_literal:a=`Invalid literal value, expected ${JSON.stringify(e.expected,s.jsonStringifyReplacer)}`;break;case p.unrecognized_keys:a=`Unrecognized key(s) in object: ${s.joinValues(e.keys,", ")}`;break;case p.invalid_union:a="Invalid input";break;case p.invalid_union_discriminator:a=`Invalid discriminator value. Expected ${s.joinValues(e.options)}`;break;case p.invalid_enum_value:a=`Invalid enum value. Expected ${s.joinValues(e.options)}, received '${e.received}'`;break;case p.invalid_arguments:a="Invalid function arguments";break;case p.invalid_return_type:a="Invalid function return type";break;case p.invalid_date:a="Invalid date";break;case p.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(a=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(a=`${a} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?a=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?a=`Invalid input: must end with "${e.validation.endsWith}"`:s.assertNever(e.validation):a="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case p.too_small:a="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||"bigint"===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 p.too_big:a="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 p.custom:a="Invalid input";break;case p.invalid_intersection_types:a="Intersection results could not be merged";break;case p.not_multiple_of:a=`Number must be a multiple of ${e.multipleOf}`;break;case p.not_finite:a="Number must be finite";break;default:a=t.defaultError,s.assertNever(e)}return{message:a}};(u=i||(i={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},u.toString=e=>"string"==typeof e?e:e?.message;function _(e,t){let a=(e=>{let{data:t,path:a,errorMaps:s,issueData:r}=e,i=[...a,...r.path||[]],n={...r,path:i};if(void 0!==r.message)return{...r,path:i,message:r.message};let d="";for(let e of s.filter(e=>!!e).slice().reverse())d=e(n,{data:t,defaultError:d}).message;return{...r,path:i,message:d}})({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,f,void 0].filter(e=>!!e)});e.common.issues.push(a)}class y{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let a=[];for(let s of t){if("aborted"===s.status)return g;"dirty"===s.status&&e.dirty(),a.push(s.value)}return{status:e.value,value:a}}static async mergeObjectAsync(e,t){let a=[];for(let e of t){let t=await e.key,s=await e.value;a.push({key:t,value:s})}return y.mergeObjectSync(e,a)}static mergeObjectSync(e,t){let a={};for(let s of t){let{key:t,value:r}=s;if("aborted"===t.status||"aborted"===r.status)return g;"dirty"===t.status&&e.dirty(),"dirty"===r.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==r.value||s.alwaysSet)&&(a[t.value]=r.value)}return{status:e.value,value:a}}}let g=Object.freeze({status:"aborted"}),v=e=>({status:"dirty",value:e}),k=e=>({status:"valid",value:e}),b=e=>"u">typeof Promise&&e instanceof Promise;class x{constructor(e,t,a,s){this._cachedPath=[],this.parent=e,this.data=t,this._path=a,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let w=(e,t)=>{if("valid"===t.status)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 m(e.common.issues);return this._error=t,this._error}}};function Z(e){if(!e)return{};let{errorMap:t,invalid_type_error:a,required_error:s,description:r}=e;if(t&&(a||s))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:r}:{errorMap:(t,r)=>{let{message:i}=e;return"invalid_enum_value"===t.code?{message:i??r.defaultError}:void 0===r.data?{message:i??s??r.defaultError}:"invalid_type"!==t.code?{message:r.defaultError}:{message:i??a??r.defaultError}},description:r}}class T{get description(){return this._def.description}_getType(e){return h(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:h(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new y,ctx:{common:e.parent.common,data:e.data,parsedType:h(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(b(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let a=this.safeParse(e,t);if(a.success)return a.data;throw a.error}safeParse(e,t){let a={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:h(e)},s=this._parseSync({data:e,path:a.path,parent:a});return w(a,s)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:h(e)};if(!this["~standard"].async)try{let a=this._parseSync({data:e,path:[],parent:t});return"valid"===a.status?{value:a.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>"valid"===e.status?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let a=await this.safeParseAsync(e,t);if(a.success)return a.data;throw a.error}async safeParseAsync(e,t){let a={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:h(e)},s=this._parse({data:e,path:a.path,parent:a});return w(a,await (b(s)?s:Promise.resolve(s)))}refine(e,t){return this._refinement((a,s)=>{let r=e(a),i=()=>s.addIssue({code:p.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(a):t});return"u">typeof Promise&&r instanceof Promise?r.then(e=>!!e||(i(),!1)):!!r||(i(),!1)})}refinement(e,t){return this._refinement((a,s)=>!!e(a)||(s.addIssue("function"==typeof t?t(a,s):t),!1))}_refinement(e){return new em({schema:this,typeName:n.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 ef.create(this,this._def)}nullable(){return e_.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return et.create(this)}promise(){return ep.create(this,this._def)}or(e){return es.create([this,e],this._def)}and(e){return er.create(this,e,this._def)}transform(e){return new em({...Z(this._def),schema:this,typeName:n.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ey({...Z(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:n.ZodDefault})}brand(){return new ek({typeName:n.ZodBranded,type:this,...Z(this._def)})}catch(e){return new eg({...Z(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:n.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eb.create(this,e)}readonly(){return ex.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let O=/^c[^\s-]{8,}$/i,C=/^[0-9a-z]+$/,N=/^[0-9A-HJKMNP-TV-Z]{26}$/i,A=/^[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,S=/^[a-z0-9_-]{21}$/i,j=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,I=/^[-+]?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)?)??$/,R=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,E=/^(?:(?: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])$/,$=/^(?:(?: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])$/,P=/^(([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]))$/,F=/^(([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])$/,L=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,z=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,M="((\\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])))",D=RegExp(`^${M}$`);function V(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let a=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${a}`}class K extends T{_parse(e){var t,a,r,i;let n;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==c.string){let t=this._getOrReturnCtx(e);return _(t,{code:p.invalid_type,expected:c.string,received:t.parsedType}),g}let d=new y;for(let u of this._def.checks)if("min"===u.kind)e.data.length<u.value&&(_(n=this._getOrReturnCtx(e,n),{code:p.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),d.dirty());else if("max"===u.kind)e.data.length>u.value&&(_(n=this._getOrReturnCtx(e,n),{code:p.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),d.dirty());else if("length"===u.kind){let t=e.data.length>u.value,a=e.data.length<u.value;(t||a)&&(n=this._getOrReturnCtx(e,n),t?_(n,{code:p.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}):a&&_(n,{code:p.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}),d.dirty())}else if("email"===u.kind)R.test(e.data)||(_(n=this._getOrReturnCtx(e,n),{validation:"email",code:p.invalid_string,message:u.message}),d.dirty());else if("emoji"===u.kind)o||(o=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),o.test(e.data)||(_(n=this._getOrReturnCtx(e,n),{validation:"emoji",code:p.invalid_string,message:u.message}),d.dirty());else if("uuid"===u.kind)A.test(e.data)||(_(n=this._getOrReturnCtx(e,n),{validation:"uuid",code:p.invalid_string,message:u.message}),d.dirty());else if("nanoid"===u.kind)S.test(e.data)||(_(n=this._getOrReturnCtx(e,n),{validation:"nanoid",code:p.invalid_string,message:u.message}),d.dirty());else if("cuid"===u.kind)O.test(e.data)||(_(n=this._getOrReturnCtx(e,n),{validation:"cuid",code:p.invalid_string,message:u.message}),d.dirty());else if("cuid2"===u.kind)C.test(e.data)||(_(n=this._getOrReturnCtx(e,n),{validation:"cuid2",code:p.invalid_string,message:u.message}),d.dirty());else if("ulid"===u.kind)N.test(e.data)||(_(n=this._getOrReturnCtx(e,n),{validation:"ulid",code:p.invalid_string,message:u.message}),d.dirty());else if("url"===u.kind)try{new URL(e.data)}catch{_(n=this._getOrReturnCtx(e,n),{validation:"url",code:p.invalid_string,message:u.message}),d.dirty()}else"regex"===u.kind?(u.regex.lastIndex=0,u.regex.test(e.data)||(_(n=this._getOrReturnCtx(e,n),{validation:"regex",code:p.invalid_string,message:u.message}),d.dirty())):"trim"===u.kind?e.data=e.data.trim():"includes"===u.kind?e.data.includes(u.value,u.position)||(_(n=this._getOrReturnCtx(e,n),{code:p.invalid_string,validation:{includes:u.value,position:u.position},message:u.message}),d.dirty()):"toLowerCase"===u.kind?e.data=e.data.toLowerCase():"toUpperCase"===u.kind?e.data=e.data.toUpperCase():"startsWith"===u.kind?e.data.startsWith(u.value)||(_(n=this._getOrReturnCtx(e,n),{code:p.invalid_string,validation:{startsWith:u.value},message:u.message}),d.dirty()):"endsWith"===u.kind?e.data.endsWith(u.value)||(_(n=this._getOrReturnCtx(e,n),{code:p.invalid_string,validation:{endsWith:u.value},message:u.message}),d.dirty()):"datetime"===u.kind?(function(e){let t=`${M}T${V(e)}`,a=[];return a.push(e.local?"Z?":"Z"),e.offset&&a.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${a.join("|")})`,RegExp(`^${t}$`)})(u).test(e.data)||(_(n=this._getOrReturnCtx(e,n),{code:p.invalid_string,validation:"datetime",message:u.message}),d.dirty()):"date"===u.kind?D.test(e.data)||(_(n=this._getOrReturnCtx(e,n),{code:p.invalid_string,validation:"date",message:u.message}),d.dirty()):"time"===u.kind?RegExp(`^${V(u)}$`).test(e.data)||(_(n=this._getOrReturnCtx(e,n),{code:p.invalid_string,validation:"time",message:u.message}),d.dirty()):"duration"===u.kind?I.test(e.data)||(_(n=this._getOrReturnCtx(e,n),{validation:"duration",code:p.invalid_string,message:u.message}),d.dirty()):"ip"===u.kind?(t=e.data,!(("v4"===(a=u.version)||!a)&&E.test(t)||("v6"===a||!a)&&P.test(t))&&1&&(_(n=this._getOrReturnCtx(e,n),{validation:"ip",code:p.invalid_string,message:u.message}),d.dirty())):"jwt"===u.kind?!function(e,t){if(!j.test(e))return!1;try{let[a]=e.split(".");if(!a)return!1;let s=a.replace(/-/g,"+").replace(/_/g,"/").padEnd(a.length+(4-a.length%4)%4,"="),r=JSON.parse(atob(s));if("object"!=typeof r||null===r||"typ"in r&&r?.typ!=="JWT"||!r.alg||t&&r.alg!==t)return!1;return!0}catch{return!1}}(e.data,u.alg)&&(_(n=this._getOrReturnCtx(e,n),{validation:"jwt",code:p.invalid_string,message:u.message}),d.dirty()):"cidr"===u.kind?(r=e.data,!(("v4"===(i=u.version)||!i)&&$.test(r)||("v6"===i||!i)&&F.test(r))&&1&&(_(n=this._getOrReturnCtx(e,n),{validation:"cidr",code:p.invalid_string,message:u.message}),d.dirty())):"base64"===u.kind?L.test(e.data)||(_(n=this._getOrReturnCtx(e,n),{validation:"base64",code:p.invalid_string,message:u.message}),d.dirty()):"base64url"===u.kind?z.test(e.data)||(_(n=this._getOrReturnCtx(e,n),{validation:"base64url",code:p.invalid_string,message:u.message}),d.dirty()):s.assertNever(u);return{status:d.value,value:e.data}}_regex(e,t,a){return this.refinement(t=>e.test(t),{validation:t,code:p.invalid_string,...i.errToObj(a)})}_addCheck(e){return new K({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...i.errToObj(e)})}url(e){return this._addCheck({kind:"url",...i.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...i.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...i.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...i.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...i.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...i.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...i.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...i.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...i.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...i.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...i.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...i.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...i.errToObj(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===e?.precision?null:e?.precision,...i.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...i.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...i.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...i.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...i.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...i.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...i.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...i.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...i.errToObj(t)})}nonempty(e){return this.min(1,i.errToObj(e))}trim(){return new K({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new K({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new K({...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}}K.create=e=>new K({checks:[],typeName:n.ZodString,coerce:e?.coerce??!1,...Z(e)});class U extends T{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)!==c.number){let t=this._getOrReturnCtx(e);return _(t,{code:p.invalid_type,expected:c.number,received:t.parsedType}),g}let a=new y;for(let r of this._def.checks)"int"===r.kind?s.isInteger(e.data)||(_(t=this._getOrReturnCtx(e,t),{code:p.invalid_type,expected:"integer",received:"float",message:r.message}),a.dirty()):"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(_(t=this._getOrReturnCtx(e,t),{code:p.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),a.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(_(t=this._getOrReturnCtx(e,t),{code:p.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),a.dirty()):"multipleOf"===r.kind?0!==function(e,t){let a=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,r=a>s?a:s;return Number.parseInt(e.toFixed(r).replace(".",""))%Number.parseInt(t.toFixed(r).replace(".",""))/10**r}(e.data,r.value)&&(_(t=this._getOrReturnCtx(e,t),{code:p.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(_(t=this._getOrReturnCtx(e,t),{code:p.not_finite,message:r.message}),a.dirty()):s.assertNever(r);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,i.toString(t))}gt(e,t){return this.setLimit("min",e,!1,i.toString(t))}lte(e,t){return this.setLimit("max",e,!0,i.toString(t))}lt(e,t){return this.setLimit("max",e,!1,i.toString(t))}setLimit(e,t,a,s){return new U({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:a,message:i.toString(s)}]})}_addCheck(e){return new U({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:i.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:i.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:i.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:i.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:i.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:i.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:i.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:i.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:i.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&&s.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let a of this._def.checks)if("finite"===a.kind||"int"===a.kind||"multipleOf"===a.kind)return!0;else"min"===a.kind?(null===t||a.value>t)&&(t=a.value):"max"===a.kind&&(null===e||a.value<e)&&(e=a.value);return Number.isFinite(t)&&Number.isFinite(e)}}U.create=e=>new U({checks:[],typeName:n.ZodNumber,coerce:e?.coerce||!1,...Z(e)});class W extends T{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{return this._getInvalidInput(e)}if(this._getType(e)!==c.bigint)return this._getInvalidInput(e);let a=new y;for(let r of this._def.checks)"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(_(t=this._getOrReturnCtx(e,t),{code:p.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),a.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(_(t=this._getOrReturnCtx(e,t),{code:p.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),a.dirty()):"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(_(t=this._getOrReturnCtx(e,t),{code:p.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):s.assertNever(r);return{status:a.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return _(t,{code:p.invalid_type,expected:c.bigint,received:t.parsedType}),g}gte(e,t){return this.setLimit("min",e,!0,i.toString(t))}gt(e,t){return this.setLimit("min",e,!1,i.toString(t))}lte(e,t){return this.setLimit("max",e,!0,i.toString(t))}lt(e,t){return this.setLimit("max",e,!1,i.toString(t))}setLimit(e,t,a,s){return new W({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:a,message:i.toString(s)}]})}_addCheck(e){return new W({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:i.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:i.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:i.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:i.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:i.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}}W.create=e=>new W({checks:[],typeName:n.ZodBigInt,coerce:e?.coerce??!1,...Z(e)});class B extends T{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==c.boolean){let t=this._getOrReturnCtx(e);return _(t,{code:p.invalid_type,expected:c.boolean,received:t.parsedType}),g}return k(e.data)}}B.create=e=>new B({typeName:n.ZodBoolean,coerce:e?.coerce||!1,...Z(e)});class q extends T{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==c.date){let t=this._getOrReturnCtx(e);return _(t,{code:p.invalid_type,expected:c.date,received:t.parsedType}),g}if(Number.isNaN(e.data.getTime()))return _(this._getOrReturnCtx(e),{code:p.invalid_date}),g;let a=new y;for(let r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(_(t=this._getOrReturnCtx(e,t),{code:p.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),a.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(_(t=this._getOrReturnCtx(e,t),{code:p.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),a.dirty()):s.assertNever(r);return{status:a.value,value:new Date(e.data.getTime())}}_addCheck(e){return new q({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:i.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:i.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}}q.create=e=>new q({checks:[],coerce:e?.coerce||!1,typeName:n.ZodDate,...Z(e)});class J extends T{_parse(e){if(this._getType(e)!==c.symbol){let t=this._getOrReturnCtx(e);return _(t,{code:p.invalid_type,expected:c.symbol,received:t.parsedType}),g}return k(e.data)}}J.create=e=>new J({typeName:n.ZodSymbol,...Z(e)});class Y extends T{_parse(e){if(this._getType(e)!==c.undefined){let t=this._getOrReturnCtx(e);return _(t,{code:p.invalid_type,expected:c.undefined,received:t.parsedType}),g}return k(e.data)}}Y.create=e=>new Y({typeName:n.ZodUndefined,...Z(e)});class H extends T{_parse(e){if(this._getType(e)!==c.null){let t=this._getOrReturnCtx(e);return _(t,{code:p.invalid_type,expected:c.null,received:t.parsedType}),g}return k(e.data)}}H.create=e=>new H({typeName:n.ZodNull,...Z(e)});class G extends T{constructor(){super(...arguments),this._any=!0}_parse(e){return k(e.data)}}G.create=e=>new G({typeName:n.ZodAny,...Z(e)});class X extends T{constructor(){super(...arguments),this._unknown=!0}_parse(e){return k(e.data)}}X.create=e=>new X({typeName:n.ZodUnknown,...Z(e)});class Q extends T{_parse(e){let t=this._getOrReturnCtx(e);return _(t,{code:p.invalid_type,expected:c.never,received:t.parsedType}),g}}Q.create=e=>new Q({typeName:n.ZodNever,...Z(e)});class ee extends T{_parse(e){if(this._getType(e)!==c.undefined){let t=this._getOrReturnCtx(e);return _(t,{code:p.invalid_type,expected:c.void,received:t.parsedType}),g}return k(e.data)}}ee.create=e=>new ee({typeName:n.ZodVoid,...Z(e)});class et extends T{_parse(e){let{ctx:t,status:a}=this._processInputParams(e),s=this._def;if(t.parsedType!==c.array)return _(t,{code:p.invalid_type,expected:c.array,received:t.parsedType}),g;if(null!==s.exactLength){let e=t.data.length>s.exactLength.value,r=t.data.length<s.exactLength.value;(e||r)&&(_(t,{code:e?p.too_big:p.too_small,minimum:r?s.exactLength.value:void 0,maximum:e?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),a.dirty())}if(null!==s.minLength&&t.data.length<s.minLength.value&&(_(t,{code:p.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),a.dirty()),null!==s.maxLength&&t.data.length>s.maxLength.value&&(_(t,{code:p.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),a.dirty()),t.common.async)return Promise.all([...t.data].map((e,a)=>s.type._parseAsync(new x(t,e,t.path,a)))).then(e=>y.mergeArray(a,e));let r=[...t.data].map((e,a)=>s.type._parseSync(new x(t,e,t.path,a)));return y.mergeArray(a,r)}get element(){return this._def.type}min(e,t){return new et({...this._def,minLength:{value:e,message:i.toString(t)}})}max(e,t){return new et({...this._def,maxLength:{value:e,message:i.toString(t)}})}length(e,t){return new et({...this._def,exactLength:{value:e,message:i.toString(t)}})}nonempty(e){return this.min(1,e)}}et.create=(e,t)=>new et({type:e,minLength:null,maxLength:null,exactLength:null,typeName:n.ZodArray,...Z(t)});class ea extends T{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=s.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==c.object){let t=this._getOrReturnCtx(e);return _(t,{code:p.invalid_type,expected:c.object,received:t.parsedType}),g}let{status:t,ctx:a}=this._processInputParams(e),{shape:s,keys:r}=this._getCached(),i=[];if(!(this._def.catchall instanceof Q&&"strip"===this._def.unknownKeys))for(let e in a.data)r.includes(e)||i.push(e);let n=[];for(let e of r){let t=s[e],r=a.data[e];n.push({key:{status:"valid",value:e},value:t._parse(new x(a,r,a.path,e)),alwaysSet:e in a.data})}if(this._def.catchall instanceof Q){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of i)n.push({key:{status:"valid",value:e},value:{status:"valid",value:a.data[e]}});else if("strict"===e)i.length>0&&(_(a,{code:p.unrecognized_keys,keys:i}),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 i){let s=a.data[t];n.push({key:{status:"valid",value:t},value:e._parse(new x(a,s,a.path,t)),alwaysSet:t in a.data})}}return a.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of n){let a=await t.key,s=await t.value;e.push({key:a,value:s,alwaysSet:t.alwaysSet})}return e}).then(e=>y.mergeObjectSync(t,e)):y.mergeObjectSync(t,n)}get shape(){return this._def.shape()}strict(e){return i.errToObj,new ea({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,a)=>{let s=this._def.errorMap?.(t,a).message??a.defaultError;return"unrecognized_keys"===t.code?{message:i.errToObj(e).message??s}:{message:s}}}:{}})}strip(){return new ea({...this._def,unknownKeys:"strip"})}passthrough(){return new ea({...this._def,unknownKeys:"passthrough"})}extend(e){return new ea({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ea({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:n.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ea({...this._def,catchall:e})}pick(e){let t={};for(let a of s.objectKeys(e))e[a]&&this.shape[a]&&(t[a]=this.shape[a]);return new ea({...this._def,shape:()=>t})}omit(e){let t={};for(let a of s.objectKeys(this.shape))e[a]||(t[a]=this.shape[a]);return new ea({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof ea){let a={};for(let s in t.shape){let r=t.shape[s];a[s]=ef.create(e(r))}return new ea({...t._def,shape:()=>a})}if(t instanceof et)return new et({...t._def,type:e(t.element)});if(t instanceof ef)return ef.create(e(t.unwrap()));if(t instanceof e_)return e_.create(e(t.unwrap()));if(t instanceof ei)return ei.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let a of s.objectKeys(this.shape)){let s=this.shape[a];e&&!e[a]?t[a]=s:t[a]=s.optional()}return new ea({...this._def,shape:()=>t})}required(e){let t={};for(let a of s.objectKeys(this.shape))if(e&&!e[a])t[a]=this.shape[a];else{let e=this.shape[a];for(;e instanceof ef;)e=e._def.innerType;t[a]=e}return new ea({...this._def,shape:()=>t})}keyof(){return eo(s.objectKeys(this.shape))}}ea.create=(e,t)=>new ea({shape:()=>e,unknownKeys:"strip",catchall:Q.create(),typeName:n.ZodObject,...Z(t)}),ea.strictCreate=(e,t)=>new ea({shape:()=>e,unknownKeys:"strict",catchall:Q.create(),typeName:n.ZodObject,...Z(t)}),ea.lazycreate=(e,t)=>new ea({shape:e,unknownKeys:"strip",catchall:Q.create(),typeName:n.ZodObject,...Z(t)});class es extends T{_parse(e){let{ctx:t}=this._processInputParams(e),a=this._def.options;if(t.common.async)return Promise.all(a.map(async e=>{let a={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:a}),ctx:a}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let a of e)if("dirty"===a.result.status)return t.common.issues.push(...a.ctx.common.issues),a.result;let a=e.map(e=>new m(e.ctx.common.issues));return _(t,{code:p.invalid_union,unionErrors:a}),g});{let e,s=[];for(let r of a){let a={...t,common:{...t.common,issues:[]},parent:null},i=r._parseSync({data:t.data,path:t.path,parent:a});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:a}),a.common.issues.length&&s.push(a.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let r=s.map(e=>new m(e));return _(t,{code:p.invalid_union,unionErrors:r}),g}}get options(){return this._def.options}}es.create=(e,t)=>new es({options:e,typeName:n.ZodUnion,...Z(t)});class er extends T{_parse(e){let{status:t,ctx:a}=this._processInputParams(e),r=(e,r)=>{if("aborted"===e.status||"aborted"===r.status)return g;let i=function e(t,a){let r=h(t),i=h(a);if(t===a)return{valid:!0,data:t};if(r===c.object&&i===c.object){let r=s.objectKeys(a),i=s.objectKeys(t).filter(e=>-1!==r.indexOf(e)),n={...t,...a};for(let s of i){let r=e(t[s],a[s]);if(!r.valid)return{valid:!1};n[s]=r.data}return{valid:!0,data:n}}if(r===c.array&&i===c.array){if(t.length!==a.length)return{valid:!1};let s=[];for(let r=0;r<t.length;r++){let i=e(t[r],a[r]);if(!i.valid)return{valid:!1};s.push(i.data)}return{valid:!0,data:s}}if(r===c.date&&i===c.date&&+t==+a)return{valid:!0,data:t};return{valid:!1}}(e.value,r.value);return i.valid?(("dirty"===e.status||"dirty"===r.status)&&t.dirty(),{status:t.value,value:i.data}):(_(a,{code:p.invalid_intersection_types}),g)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}er.create=(e,t,a)=>new er({left:e,right:t,typeName:n.ZodIntersection,...Z(a)});class ei extends T{_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==c.array)return _(a,{code:p.invalid_type,expected:c.array,received:a.parsedType}),g;if(a.data.length<this._def.items.length)return _(a,{code:p.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),g;!this._def.rest&&a.data.length>this._def.items.length&&(_(a,{code:p.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let s=[...a.data].map((e,t)=>{let s=this._def.items[t]||this._def.rest;return s?s._parse(new x(a,e,a.path,t)):null}).filter(e=>!!e);return a.common.async?Promise.all(s).then(e=>y.mergeArray(t,e)):y.mergeArray(t,s)}get items(){return this._def.items}rest(e){return new ei({...this._def,rest:e})}}ei.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new ei({items:e,typeName:n.ZodTuple,rest:null,...Z(t)})};class en extends T{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==c.map)return _(a,{code:p.invalid_type,expected:c.map,received:a.parsedType}),g;let s=this._def.keyType,r=this._def.valueType,i=[...a.data.entries()].map(([e,t],i)=>({key:s._parse(new x(a,e,a.path,[i,"key"])),value:r._parse(new x(a,t,a.path,[i,"value"]))}));if(a.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let a of i){let s=await a.key,r=await a.value;if("aborted"===s.status||"aborted"===r.status)return g;("dirty"===s.status||"dirty"===r.status)&&t.dirty(),e.set(s.value,r.value)}return{status:t.value,value:e}})}{let e=new Map;for(let a of i){let s=a.key,r=a.value;if("aborted"===s.status||"aborted"===r.status)return g;("dirty"===s.status||"dirty"===r.status)&&t.dirty(),e.set(s.value,r.value)}return{status:t.value,value:e}}}}en.create=(e,t,a)=>new en({valueType:t,keyType:e,typeName:n.ZodMap,...Z(a)});class ed extends T{_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==c.set)return _(a,{code:p.invalid_type,expected:c.set,received:a.parsedType}),g;let s=this._def;null!==s.minSize&&a.data.size<s.minSize.value&&(_(a,{code:p.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),t.dirty()),null!==s.maxSize&&a.data.size>s.maxSize.value&&(_(a,{code:p.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),t.dirty());let r=this._def.valueType;function i(e){let a=new Set;for(let s of e){if("aborted"===s.status)return g;"dirty"===s.status&&t.dirty(),a.add(s.value)}return{status:t.value,value:a}}let n=[...a.data.values()].map((e,t)=>r._parse(new x(a,e,a.path,t)));return a.common.async?Promise.all(n).then(e=>i(e)):i(n)}min(e,t){return new ed({...this._def,minSize:{value:e,message:i.toString(t)}})}max(e,t){return new ed({...this._def,maxSize:{value:e,message:i.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ed.create=(e,t)=>new ed({valueType:e,minSize:null,maxSize:null,typeName:n.ZodSet,...Z(t)});class eu extends T{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})}}eu.create=(e,t)=>new eu({getter:e,typeName:n.ZodLazy,...Z(t)});class el extends T{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return _(t,{received:t.data,code:p.invalid_literal,expected:this._def.value}),g}return{status:"valid",value:e.data}}get value(){return this._def.value}}function eo(e,t){return new ec({values:e,typeName:n.ZodEnum,...Z(t)})}el.create=(e,t)=>new el({value:e,typeName:n.ZodLiteral,...Z(t)});class ec extends T{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),a=this._def.values;return _(t,{expected:s.joinValues(a),received:t.parsedType,code:p.invalid_type}),g}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),a=this._def.values;return _(t,{received:t.data,code:p.invalid_enum_value,options:a}),g}return k(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 ec.create(e,{...this._def,...t})}exclude(e,t=this._def){return ec.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}ec.create=eo;class eh extends T{_parse(e){let t=s.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(e);if(a.parsedType!==c.string&&a.parsedType!==c.number){let e=s.objectValues(t);return _(a,{expected:s.joinValues(e),received:a.parsedType,code:p.invalid_type}),g}if(this._cache||(this._cache=new Set(s.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=s.objectValues(t);return _(a,{received:a.data,code:p.invalid_enum_value,options:e}),g}return k(e.data)}get enum(){return this._def.values}}eh.create=(e,t)=>new eh({values:e,typeName:n.ZodNativeEnum,...Z(t)});class ep extends T{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==c.promise&&!1===t.common.async?(_(t,{code:p.invalid_type,expected:c.promise,received:t.parsedType}),g):k((t.parsedType===c.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}ep.create=(e,t)=>new ep({type:e,typeName:n.ZodPromise,...Z(t)});class em extends T{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===n.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:a}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{_(a,e),e.fatal?t.abort():t.dirty()},get path(){return a.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===r.type){let e=r.transform(a.data,i);if(a.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return g;let s=await this._def.schema._parseAsync({data:e,path:a.path,parent:a});return"aborted"===s.status?g:"dirty"===s.status||"dirty"===t.value?v(s.value):s});{if("aborted"===t.value)return g;let s=this._def.schema._parseSync({data:e,path:a.path,parent:a});return"aborted"===s.status?g:"dirty"===s.status||"dirty"===t.value?v(s.value):s}}if("refinement"===r.type){let e=e=>{let t=r.refinement(e,i);if(a.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!==a.common.async)return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(a=>"aborted"===a.status?g:("dirty"===a.status&&t.dirty(),e(a.value).then(()=>({status:t.value,value:a.value}))));{let s=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return"aborted"===s.status?g:("dirty"===s.status&&t.dirty(),e(s.value),{status:t.value,value:s.value})}}if("transform"===r.type)if(!1!==a.common.async)return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(e=>"valid"!==e.status?g:Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})));else{let e=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if("valid"!==e.status)return g;let s=r.transform(e.value,i);if(s instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:s}}s.assertNever(r)}}em.create=(e,t,a)=>new em({schema:e,typeName:n.ZodEffects,effect:t,...Z(a)}),em.createWithPreprocess=(e,t,a)=>new em({schema:t,effect:{type:"preprocess",transform:e},typeName:n.ZodEffects,...Z(a)});class ef extends T{_parse(e){return this._getType(e)===c.undefined?k(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ef.create=(e,t)=>new ef({innerType:e,typeName:n.ZodOptional,...Z(t)});class e_ extends T{_parse(e){return this._getType(e)===c.null?k(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}e_.create=(e,t)=>new e_({innerType:e,typeName:n.ZodNullable,...Z(t)});class ey extends T{_parse(e){let{ctx:t}=this._processInputParams(e),a=t.data;return t.parsedType===c.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ey.create=(e,t)=>new ey({innerType:e,typeName:n.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...Z(t)});class eg extends T{_parse(e){let{ctx:t}=this._processInputParams(e),a={...t,common:{...t.common,issues:[]}},s=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return b(s)?s.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new m(a.common.issues)},input:a.data})})):{status:"valid",value:"valid"===s.status?s.value:this._def.catchValue({get error(){return new m(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}}eg.create=(e,t)=>new eg({innerType:e,typeName:n.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...Z(t)});class ev extends T{_parse(e){if(this._getType(e)!==c.nan){let t=this._getOrReturnCtx(e);return _(t,{code:p.invalid_type,expected:c.nan,received:t.parsedType}),g}return{status:"valid",value:e.data}}}ev.create=e=>new ev({typeName:n.ZodNaN,...Z(e)}),Symbol("zod_brand");class ek extends T{_parse(e){let{ctx:t}=this._processInputParams(e),a=t.data;return this._def.type._parse({data:a,path:t.path,parent:t})}unwrap(){return this._def.type}}class eb extends T{_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return"aborted"===e.status?g:"dirty"===e.status?(t.dirty(),v(e.value)):this._def.out._parseAsync({data:e.value,path:a.path,parent:a})})();{let e=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return"aborted"===e.status?g:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:a.path,parent:a})}}static create(e,t){return new eb({in:e,out:t,typeName:n.ZodPipeline})}}class ex extends T{_parse(e){let t=this._def.innerType._parse(e),a=e=>("valid"===e.status&&(e.value=Object.freeze(e.value)),e);return b(t)?t.then(e=>a(e)):a(t)}unwrap(){return this._def.innerType}}ex.create=(e,t)=>new ex({innerType:e,typeName:n.ZodReadonly,...Z(t)}),ea.lazycreate,(l=n||(n={})).ZodString="ZodString",l.ZodNumber="ZodNumber",l.ZodNaN="ZodNaN",l.ZodBigInt="ZodBigInt",l.ZodBoolean="ZodBoolean",l.ZodDate="ZodDate",l.ZodSymbol="ZodSymbol",l.ZodUndefined="ZodUndefined",l.ZodNull="ZodNull",l.ZodAny="ZodAny",l.ZodUnknown="ZodUnknown",l.ZodNever="ZodNever",l.ZodVoid="ZodVoid",l.ZodArray="ZodArray",l.ZodObject="ZodObject",l.ZodUnion="ZodUnion",l.ZodDiscriminatedUnion="ZodDiscriminatedUnion",l.ZodIntersection="ZodIntersection",l.ZodTuple="ZodTuple",l.ZodRecord="ZodRecord",l.ZodMap="ZodMap",l.ZodSet="ZodSet",l.ZodFunction="ZodFunction",l.ZodLazy="ZodLazy",l.ZodLiteral="ZodLiteral",l.ZodEnum="ZodEnum",l.ZodEffects="ZodEffects",l.ZodNativeEnum="ZodNativeEnum",l.ZodOptional="ZodOptional",l.ZodNullable="ZodNullable",l.ZodDefault="ZodDefault",l.ZodCatch="ZodCatch",l.ZodPromise="ZodPromise",l.ZodBranded="ZodBranded",l.ZodPipeline="ZodPipeline",l.ZodReadonly="ZodReadonly";let ew=K.create,eZ=U.create;ev.create,W.create;let eT=B.create;q.create,J.create,Y.create,H.create,G.create;let eO=X.create;Q.create,ee.create;let eC=et.create,eN=ea.create;ea.strictCreate;let eA=es.create;er.create,ei.create;let eS=(class e extends T{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==c.object)return _(a,{code:p.invalid_type,expected:c.object,received:a.parsedType}),g;let s=[],r=this._def.keyType,i=this._def.valueType;for(let e in a.data)s.push({key:r._parse(new x(a,e,a.path,e)),value:i._parse(new x(a,a.data[e],a.path,e)),alwaysSet:e in a.data});return a.common.async?y.mergeObjectAsync(t,s):y.mergeObjectSync(t,s)}get element(){return this._def.valueType}static create(t,a,s){return new e(a instanceof T?{keyType:t,valueType:a,typeName:n.ZodRecord,...Z(s)}:{keyType:K.create(),valueType:t,typeName:n.ZodRecord,...Z(a)})}}).create;en.create,ed.create,eu.create;let ej=el.create,eI=ec.create;eh.create,ep.create,em.create,ef.create,e_.create,em.createWithPreprocess,eb.create}}]);
|