@gientech/modual 2.3.0 → 2.3.2

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.
@@ -0,0 +1,64 @@
1
+ import*as R from"react";import vt,{createContext as te,useContext as ee,useEffect as re}from"react";function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},J.apply(null,arguments)}function ne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function X(e,t){return X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},X(e,t)}function oe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ie(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ke(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}function Z(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ae(e){if(Array.isArray(e))return Z(e)}function se(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function It(e,t){if(e){if(typeof e=="string")return Z(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Z(e,t):void 0}}function ce(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qe(e){return ae(e)||se(e)||It(e)||ce()}function ue(e){if(Array.isArray(e))return e}function fe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,s,a=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(f){c=!0,o=f}finally{try{if(!u&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}function le(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dt(e,t){return ue(e)||fe(e,t)||It(e,t)||le()}function j(e){"@babel/helpers - typeof";return j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j(e)}function he(e,t){if(j(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(j(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ft(e){var t=he(e,"string");return j(t)=="symbol"?t:t+""}function p(e,t,r){return(t=Ft(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_t(Object(r),!0).forEach(function(n){p(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_t(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function de(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function ge(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var wt="data-rc-order",Ct="data-rc-priority",me="rc-util-key",tt=new Map;function Gt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):me}function B(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function ye(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function mt(e){return Array.from((tt.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function $t(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!de())return null;var r=t.csp,n=t.prepend,o=t.priority,i=o===void 0?0:o,s=ye(n),a=s==="prependQueue",u=document.createElement("style");u.setAttribute(wt,s),a&&i&&u.setAttribute(Ct,"".concat(i)),r!=null&&r.nonce&&(u.nonce=r==null?void 0:r.nonce),u.innerHTML=e;var c=B(t),f=c.firstChild;if(n){if(a){var l=(t.styles||mt(c)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(wt)))return!1;var g=Number(h.getAttribute(Ct)||0);return i>=g});if(l.length)return c.insertBefore(u,l[l.length-1].nextSibling),u}c.insertBefore(u,f)}else c.appendChild(u);return u}function Lt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=B(t);return(t.styles||mt(r)).find(function(n){return n.getAttribute(Gt(t))===e})}function Ue(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Lt(e,t);if(r){var n=B(t);n.removeChild(r)}}function pe(e,t){var r=tt.get(e);if(!r||!ge(document,r)){var n=$t("",t),o=n.parentNode;tt.set(e,o),e.removeChild(n)}}function be(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=B(r),o=mt(n),i=S(S({},r),{},{styles:o});pe(n,i);var s=Lt(t,i);if(s){var a,u;if((a=i.csp)!==null&&a!==void 0&&a.nonce&&s.nonce!==((u=i.csp)===null||u===void 0?void 0:u.nonce)){var c;s.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return s.innerHTML!==e&&(s.innerHTML=e),s}var f=$t(e,i);return f.setAttribute(Gt(i),t),f}function Bt(e,t){if(e==null)return{};var r,n,o=oe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var et={},ve=function(t){};function _e(e,t){}function we(e,t){}function Ce(){et={}}function zt(e,t,r){!t&&!et[r]&&(e(!1,r),et[r]=!0)}function z(e,t){zt(_e,e,t)}function xe(e,t){zt(we,e,t)}z.preMessage=ve;z.resetWarned=Ce;z.noteOnce=xe;function Je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ft(n.key),n)}}function Xe(e,t,r){return t&&xt(e.prototype,t),r&&xt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ze(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&X(e,t)}function St(e){return St=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},St(e)}function Se(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Se=function(){return!!e})()}function tr(e,t){if(t&&(j(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ne(e)}var Wt=te({});const m=Math.round;function Q(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)n[o]=t(n[o]||0,r[o]||"",o);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const Ot=(e,t,r)=>r===0?e:e/100;function H(e,t){const r=t||255;return e>r?r:e<0?0:e}class P{constructor(t){p(this,"isValid",!0),p(this,"r",0),p(this,"g",0),p(this,"b",0),p(this,"a",1),p(this,"_h",void 0),p(this,"_s",void 0),p(this,"_l",void 0),p(this,"_v",void 0),p(this,"_max",void 0),p(this,"_min",void 0),p(this,"_brightness",void 0);function r(n){return n[0]in t&&n[1]in t&&n[2]in t}if(t)if(typeof t=="string"){let o=function(i){return n.startsWith(i)};const n=t.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):o("rgb")?this.fromRgbString(n):o("hsl")?this.fromHslString(n):(o("hsv")||o("hsb"))&&this.fromHsvString(n)}else if(t instanceof P)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=H(t.r),this.g=H(t.g),this.b=H(t.b),this.a=typeof t.a=="number"?H(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(i){const s=i/255;return s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)}const r=t(this.r),n=t(this.g),o=t(this.b);return .2126*r+.7152*n+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=m(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const r=this.getHue(),n=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:r,s:n,l:o,a:this.a})}lighten(t=10){const r=this.getHue(),n=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:r,s:n,l:o,a:this.a})}mix(t,r=50){const n=this._c(t),o=r/100,i=a=>(n[a]-this[a])*o+this[a],s={r:m(i("r")),g:m(i("g")),b:m(i("b")),a:m(i("a")*100)/100};return this._c(s)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),n=this.a+r.a*(1-this.a),o=i=>m((this[i]*this.a+r[i]*r.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=m(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=m(this.getSaturation()*100),n=m(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){const o=this.clone();return o[t]=H(r,n),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function n(o,i){return parseInt(r[o]+r[i||o],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:o}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof o=="number"?o:1,r<=0){const h=m(n*255);this.r=h,this.g=h,this.b=h}let i=0,s=0,a=0;const u=t/60,c=(1-Math.abs(2*n-1))*r,f=c*(1-Math.abs(u%2-1));u>=0&&u<1?(i=c,s=f):u>=1&&u<2?(i=f,s=c):u>=2&&u<3?(s=c,a=f):u>=3&&u<4?(s=f,a=c):u>=4&&u<5?(i=f,a=c):u>=5&&u<6&&(i=c,a=f);const l=n-c/2;this.r=m((i+l)*255),this.g=m((s+l)*255),this.b=m((a+l)*255)}fromHsv({h:t,s:r,v:n,a:o}){this._h=t%360,this._s=r,this._v=n,this.a=typeof o=="number"?o:1;const i=m(n*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;const s=t/60,a=Math.floor(s),u=s-a,c=m(n*(1-r)*255),f=m(n*(1-r*u)*255),l=m(n*(1-r*(1-u))*255);switch(a){case 0:this.g=l,this.b=c;break;case 1:this.r=f,this.b=c;break;case 2:this.r=c,this.b=l;break;case 3:this.r=c,this.g=f;break;case 4:this.r=l,this.g=c;break;case 5:default:this.g=c,this.b=f;break}}fromHsvString(t){const r=Q(t,Ot);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=Q(t,Ot);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=Q(t,(n,o)=>o.includes("%")?m(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var G=2,jt=.16,Oe=.05,je=.05,Te=.15,qt=5,Vt=4,Pe=[{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 Tt(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-G*t:Math.round(e.h)+G*t:n=r?Math.round(e.h)+G*t:Math.round(e.h)-G*t,n<0?n+=360:n>=360&&(n-=360),n}function Pt(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-jt*t:t===Vt?n=e.s+jt:n=e.s+Oe*t,n>1&&(n=1),r&&t===qt&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function At(e,t,r){var n;return r?n=e.v+je*t:n=e.v-Te*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function Ae(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new P(e),o=n.toHsv(),i=qt;i>0;i-=1){var s=new P({h:Tt(o,i,!0),s:Pt(o,i,!0),v:At(o,i,!0)});r.push(s)}r.push(n);for(var a=1;a<=Vt;a+=1){var u=new P({h:Tt(o,a),s:Pt(o,a),v:At(o,a)});r.push(u)}return t.theme==="dark"?Pe.map(function(c){var f=c.index,l=c.amount;return new P(t.backgroundColor||"#141414").mix(r[f],l).toHexString()}):r.map(function(c){return c.toHexString()})}var er={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"},rt=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];rt.primary=rt[5];var nt=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];nt.primary=nt[5];var ot=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];ot.primary=ot[5];var it=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];it.primary=it[5];var at=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];at.primary=at[5];var st=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];st.primary=st[5];var ct=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];ct.primary=ct[5];var ut=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];ut.primary=ut[5];var $=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];$.primary=$[5];var ft=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];ft.primary=ft[5];var lt=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];lt.primary=lt[5];var ht=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];ht.primary=ht[5];var dt=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];dt.primary=dt[5];var rr={red:rt,volcano:nt,orange:ot,gold:it,yellow:at,lime:st,green:ct,cyan:ut,blue:$,geekblue:ft,purple:lt,magenta:ht,grey:dt},U={exports:{}};/*!
4
+ Copyright (c) 2018 Jed Watson.
5
+ Licensed under the MIT License (MIT), see
6
+ http://jedwatson.github.io/classnames
7
+ */var Mt;function Me(){return Mt||(Mt=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(i=o(i,n(a)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var s="";for(var a in i)t.call(i,a)&&i[a]&&(s=o(s,a));return s}function o(i,s){return s?i?i+" "+s:i+s:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(U)),U.exports}var Ne=Me();const ke=ie(Ne);function Yt(e,t){this.v=e,this.k=t}function y(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}y=function(s,a,u,c){function f(l,h){y(s,l,function(g){return this._invoke(l,h,g)})}a?o?o(s,a,{value:u,enumerable:!c,configurable:!c,writable:!c}):s[a]=u:(f("next",0),f("throw",1),f("return",2))},y(e,t,r,n)}function yt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(g,M,N,W){var q=M&&M.prototype instanceof a?M:a,k=Object.create(q.prototype);return y(k,"_invoke",(function(V,Y,Zt){var O,d,b,I=0,bt=Zt||[],T=!1,C={p:0,n:0,v:e,a:D,f:D.bind(e,4),d:function(v,x){return O=v,d=0,b=e,C.n=x,s}};function D(w,v){for(d=w,b=v,t=0;!T&&I&&!x&&t<bt.length;t++){var x,_=bt[t],K=C.p,F=_[2];w>3?(x=F===v)&&(b=_[(d=_[4])?5:(d=3,3)],_[4]=_[5]=e):_[0]<=K&&((x=w<2&&K<_[1])?(d=0,C.v=v,C.n=_[1]):K<F&&(x=w<3||_[0]>v||v>F)&&(_[4]=w,_[5]=v,C.n=F,d=0))}if(x||w>1)return s;throw T=!0,v}return function(w,v,x){if(I>1)throw TypeError("Generator is already running");for(T&&v===1&&D(v,x),d=v,b=x;(t=d<2?e:b)||!T;){O||(d?d<3?(d>1&&(C.n=-1),D(d,b)):C.n=b:C.v=b);try{if(I=2,O){if(d||(w="next"),t=O[w]){if(!(t=t.call(O,b)))throw TypeError("iterator result is not an object");if(!t.done)return t;b=t.value,d<2&&(d=0)}else d===1&&(t=O.return)&&t.call(O),d<2&&(b=TypeError("The iterator does not provide a '"+w+"' method"),d=1);O=e}else if((t=(T=C.n<0)?b:V.call(Y,C))!==s)break}catch(_){O=e,d=1,b=_}finally{I=1}}return{value:t,done:T}}})(g,N,W),!0),k}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var f=[][n]?t(t([][n]())):(y(t={},n,function(){return this}),t),l=c.prototype=a.prototype=Object.create(f);function h(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,c):(g.__proto__=c,y(g,o,"GeneratorFunction")),g.prototype=Object.create(l),g}return u.prototype=c,y(l,"constructor",c),y(c,"constructor",u),u.displayName="GeneratorFunction",y(c,o,"GeneratorFunction"),y(l),y(l,o,"Generator"),y(l,n,function(){return this}),y(l,"toString",function(){return"[object Generator]"}),(yt=function(){return{w:i,m:h}})()}function L(e,t){function r(o,i,s,a){try{var u=e[o](i),c=u.value;return c instanceof Yt?t.resolve(c.v).then(function(f){r("next",f,s,a)},function(f){r("throw",f,s,a)}):t.resolve(c).then(function(f){u.value=f,s(u)},function(f){return r("throw",f,s,a)})}catch(f){a(f)}}var n;this.next||(y(L.prototype),y(L.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),y(this,"_invoke",function(o,i,s){function a(){return new t(function(u,c){r(o,s,u,c)})}return n=n?n.then(a,a):a()},!0)}function Kt(e,t,r,n,o){return new L(yt().w(e,t,r,n),o||Promise)}function He(e,t,r,n,o){var i=Kt(e,t,r,n,o);return i.next().then(function(s){return s.done?s.value:i.next()})}function Re(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function o(){for(;r.length;)if((n=r.pop())in t)return o.value=n,o.done=!1,o;return o.done=!0,o}}function Nt(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(j(e)+" is not iterable")}function kt(){var e=yt(),t=e.m(kt),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(s){var a=typeof s=="function"&&s.constructor;return!!a&&(a===r||(a.displayName||a.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function i(s){var a,u;return function(c){a||(a={stop:function(){return u(c.a,2)},catch:function(){return c.v},abrupt:function(l,h){return u(c.a,o[l],h)},delegateYield:function(l,h,g){return a.resultName=h,u(c.d,Nt(l),g)},finish:function(l){return u(c.f,l)}},u=function(l,h,g){c.p=a.prev,c.n=a.next;try{return l(h,g)}finally{a.next=c.n}}),a.resultName&&(a[a.resultName]=c.v,a.resultName=void 0),a.sent=c.v,a.next=c.n;try{return s.call(this,a)}finally{c.p=a.prev,c.n=a.next}}}return(kt=function(){return{wrap:function(u,c,f,l){return e.w(i(u),c,f,l&&l.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(u,c){return new Yt(u,c)},AsyncIterator:L,async:function(u,c,f,l,h){return(n(c)?Kt:He)(i(u),c,f,l,h)},keys:Re,values:Nt}})()}function Ht(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(c){return void r(c)}a.done?t(u):Promise.resolve(u).then(n,o)}function nr(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(u){Ht(i,n,o,s,a,"next",u)}function a(u){Ht(i,n,o,s,a,"throw",u)}s(void 0)})}}function Qt(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Ee(e){return Qt(e)instanceof ShadowRoot}function Ie(e){return Ee(e)?Qt(e):null}function De(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function Fe(e,t){z(e,"[@ant-design/icons] ".concat(t))}function Rt(e){return j(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(j(e.icon)==="object"||typeof e.icon=="function")}function Et(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[De(r)]=n}return t},{})}function gt(e,t,r){return r?vt.createElement(e.tag,S(S({key:t},Et(e.attrs)),r),(e.children||[]).map(function(n,o){return gt(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})):vt.createElement(e.tag,S({key:t},Et(e.attrs)),(e.children||[]).map(function(n,o){return gt(n,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Ut(e){return Ae(e)[0]}function Jt(e){return e?Array.isArray(e)?e:[e]:[]}var Ge=`
8
+ .anticon {
9
+ display: inline-flex;
10
+ align-items: center;
11
+ color: inherit;
12
+ font-style: normal;
13
+ line-height: 0;
14
+ text-align: center;
15
+ text-transform: none;
16
+ vertical-align: -0.125em;
17
+ text-rendering: optimizeLegibility;
18
+ -webkit-font-smoothing: antialiased;
19
+ -moz-osx-font-smoothing: grayscale;
20
+ }
21
+
22
+ .anticon > * {
23
+ line-height: 1;
24
+ }
25
+
26
+ .anticon svg {
27
+ display: inline-block;
28
+ }
29
+
30
+ .anticon::before {
31
+ display: none;
32
+ }
33
+
34
+ .anticon .anticon-icon {
35
+ display: block;
36
+ }
37
+
38
+ .anticon[tabindex] {
39
+ cursor: pointer;
40
+ }
41
+
42
+ .anticon-spin::before,
43
+ .anticon-spin {
44
+ display: inline-block;
45
+ -webkit-animation: loadingCircle 1s infinite linear;
46
+ animation: loadingCircle 1s infinite linear;
47
+ }
48
+
49
+ @-webkit-keyframes loadingCircle {
50
+ 100% {
51
+ -webkit-transform: rotate(360deg);
52
+ transform: rotate(360deg);
53
+ }
54
+ }
55
+
56
+ @keyframes loadingCircle {
57
+ 100% {
58
+ -webkit-transform: rotate(360deg);
59
+ transform: rotate(360deg);
60
+ }
61
+ }
62
+ `,$e=function(t){var r=ee(Wt),n=r.csp,o=r.prefixCls,i=r.layer,s=Ge;o&&(s=s.replace(/anticon/g,o)),i&&(s="@layer ".concat(i,` {
63
+ `).concat(s,`
64
+ }`)),re(function(){var a=t.current,u=Ie(a);be(s,"@ant-design-icons",{prepend:!i,csp:n,attachTo:u})},[])},Le=["icon","className","onClick","style","primaryColor","secondaryColor"],E={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Be(e){var t=e.primaryColor,r=e.secondaryColor;E.primaryColor=t,E.secondaryColor=r||Ut(t),E.calculated=!!r}function ze(){return S({},E)}var A=function(t){var r=t.icon,n=t.className,o=t.onClick,i=t.style,s=t.primaryColor,a=t.secondaryColor,u=Bt(t,Le),c=R.useRef(),f=E;if(s&&(f={primaryColor:s,secondaryColor:a||Ut(s)}),$e(c),Fe(Rt(r),"icon should be icon definiton, but got ".concat(r)),!Rt(r))return null;var l=r;return l&&typeof l.icon=="function"&&(l=S(S({},l),{},{icon:l.icon(f.primaryColor,f.secondaryColor)})),gt(l.icon,"svg-".concat(l.name),S(S({className:n,onClick:o,style:i,"data-icon":l.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:c}))};A.displayName="IconReact";A.getTwoToneColors=ze;A.setTwoToneColors=Be;function Xt(e){var t=Jt(e),r=Dt(t,2),n=r[0],o=r[1];return A.setTwoToneColors({primaryColor:n,secondaryColor:o})}function We(){var e=A.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var qe=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Xt($.primary);var pt=R.forwardRef(function(e,t){var r=e.className,n=e.icon,o=e.spin,i=e.rotate,s=e.tabIndex,a=e.onClick,u=e.twoToneColor,c=Bt(e,qe),f=R.useContext(Wt),l=f.prefixCls,h=l===void 0?"anticon":l,g=f.rootClassName,M=ke(g,h,p(p({},"".concat(h,"-").concat(n.name),!!n.name),"".concat(h,"-spin"),!!o||n.name==="loading"),r),N=s;N===void 0&&a&&(N=-1);var W=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,q=Jt(u),k=Dt(q,2),V=k[0],Y=k[1];return R.createElement("span",J({role:"img","aria-label":n.name},c,{ref:t,tabIndex:N,onClick:a,className:M}),R.createElement(A,{icon:n,primaryColor:V,secondaryColor:Y,style:W}))});pt.displayName="AntdIcon";pt.getTwoToneColor=We;pt.setTwoToneColor=Xt;export{ke as A,nr as B,kt as C,pt as D,X as E,P as F,Ke as G,Ye as H,Wt as I,j as _,Xe as a,Je as b,p as c,Se as d,St as e,tr as f,ie as g,Dt as h,_e as i,de as j,S as k,Qe as l,J as m,ue as n,se as o,It as p,le as q,Ue as r,Ae as s,er as t,be as u,rr as v,z as w,Ze as x,ne as y,Bt as z};