diff --git a/.umirc.ts b/.umirc.ts index 4400422..6912ff7 100644 --- a/.umirc.ts +++ b/.umirc.ts @@ -3,7 +3,7 @@ import { version } from './package.json' export default { mode: 'site', title: `Fexd Tools`, - logo: '/logo.png', + logo: process.env.NODE_ENV === 'production' ? '/tools/logo.png' : '/logo.png', outputPath: 'docs', publicPath: process.env.NODE_ENV === 'production' ? '/tools/' : '/', history: { type: 'hash' }, diff --git a/docs/umi.js b/docs/umi.js index d259108..6a3ce5e 100644 --- a/docs/umi.js +++ b/docs/umi.js @@ -1 +1 @@ -(function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/tools/",n(n.s=0)})({"+37V":function(e,t,n){var r=n("GXoa");r("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"+3Zf":function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("sErw"),i=n("v3z7"),l=n("R8Xy"),c=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:a},{find:function(e){var t=o(this),n=l(t),r=i(e,arguments.length>1?arguments[1]:void 0,3);return c(n,(function(e){if(r(e,e,t))return c.stop(e)}),void 0,!1,!0).result}})},"+U9+":function(e,t,n){var r=n("PORw"),a=n("PWyJ"),o="[object AsyncFunction]",i="[object Function]",l="[object GeneratorFunction]",c="[object Proxy]";function u(e){if(!a(e))return!1;var t=r(e);return t==i||t==l||t==o||t==c}e.exports=u},"+ock":function(e,t,n){"use strict";var r=n("uF/W"),a=n("sErw"),o=n("h+/6"),i=n("rfqm"),l="toString",c=RegExp.prototype,u=c[l],s=o((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),f=u.name!=l;(s||f)&&r(RegExp.prototype,l,(function(){var e=a(this),t=String(e.source),n=e.flags,r=String(void 0===n&&e instanceof RegExp&&!("flags"in c)?i.call(e):n);return"/"+t+"/"+r}),{unsafe:!0})},"//kW":function(e,t,n){var r=n("ANLo");e.exports=function(e){var t=r(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},"/0hc":function(e,t,n){},"/1uK":function(e,t,n){"use strict";var r=n("OOCw"),a=n("Us7a").end,o=n("SRer");r({target:"String",proto:!0,forced:o},{padEnd:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},"/383":function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["url-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"url"},a.a.createElement(o["AnchorLink"],{to:"#url","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"url"),a.a.createElement("p",null,"\u4e0e url \u76f8\u5173\u7684\u51fd\u6570\u96c6\u5408\uff0c\u53ef\u7528\u6765\u5feb\u6377\u83b7\u53d6 url \u76f8\u5173\u4fe1\u606f\u3001\u751f\u6210 url \u53c2\u6570\u7b49\u3002"),a.a.createElement("h2",{id:"url-\u91cc\u7684\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#url-\u91cc\u7684\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"url \u91cc\u7684\u53c2\u6570")),a.a.createElement(i["default"],t["url-demo"].previewerProps,a.a.createElement(n,null)),a.a.createElement("div",{className:"markdown"},a.a.createElement(l["a"],{code:"{\n allParam: function allParam(),\n allParamEscape: function allParamEscape(), // [\u5df2\u5e9f\u5f03\u7684unescape()]\n generateParamStr: function generateParamStr(paramObj),\n param: function param(name),\n paramEscape: function paramEscape, // [\u5df2\u5e9f\u5f03\u7684unescape()]\n}",lang:"js"}),a.a.createElement("h2",{id:"\u793a\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u793a\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u793a\u4f8b"),a.a.createElement("h3",{id:"urlallparam"},a.a.createElement(o["AnchorLink"],{to:"#urlallparam","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"url.allParam()"),a.a.createElement(l["a"],{code:"import { url } from '@fexd/tools'\n\nconst testUrl = 'http://www.test.com?id=2&name=1'\n\n// \u4ece\u5f53\u524d\u7684 url \u4e2d\u83b7\u53d6\u5230\u6240\u6709\u53c2\u6570\u3002\nconsole.log(url.allParam()) // {}\n\n// \u4f46\u4e3a\u4e86\u907f\u514d\u67d0\u79cd\u62ff\u4e0d\u5230\u7684\u573a\u666f\uff0c\u53ef\u5c06\u7b2c\u4e00\u4e2a\u53c2\u6570\u4f5c\u4e3a\u8981\u89e3\u6790\u53c2\u6570\u7684 url\u3002\nconsole.log(url.allParam(testUrl)) // {id: \"2\", name: \"1\"}",lang:"js"}),a.a.createElement("h3",{id:"urlparamname"},a.a.createElement(o["AnchorLink"],{to:"#urlparamname","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"url.param(name)"),a.a.createElement(l["a"],{code:"import { url } from '@fexd/tools'\n\n// \u4eceurl\u4e0a\u53bb\u83b7\u53d6 name \u53c2\u6570\u7684\u503c\nconsole.log(url.param('name')) // undefined\n\n// \u5982\u679c url \u4e3a \"http://www.test.com?id=2&name=1\" \u5c31\u80fd\u5f97\u5230 \"1\"",lang:"js"}),a.a.createElement("h3",{id:"urlgenerateparamstrparamobj"},a.a.createElement(o["AnchorLink"],{to:"#urlgenerateparamstrparamobj","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"url.generateParamStr(paramObj)"),a.a.createElement(l["a"],{code:"import { url } from '@fexd/tools'\n\n// \u5c06\u5bf9\u8c61\u751f\u6210\u8bf7\u6c42\u53c2\u6570\u683c\u5f0f\u7684\u5b57\u7b26\u4e32\nurl.generateParamStr({ name: 1 }) // ?name=1\nurl.generateParamStr({ id: 2, name: 1 }) // ?id=2&name=1",lang:"js"}),a.a.createElement("h3",{id:"urlparamescape-\u548c-urlallparamescape"},a.a.createElement(o["AnchorLink"],{to:"#urlparamescape-\u548c-urlallparamescape","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"url.paramEscape() \u548c url.allParamEscape()"),a.a.createElement(l["a"],{code:"import { url } from '@fexd/tools'\n\nconst testUrl = 'http://www.test.com?id=2&name=1'\n\n// \u4eceurl\u4e0a\u53bb\u83b7\u53d6\u53c2\u6570\nurl.paramEscape('name') // undefined\n\n// \u4eceurl\u4e0a\u53bb\u83b7\u53d6\u6240\u6709\u53c2\u6570\u7684\u503c\nurl.allParamEscape() // {}\n// \u4f46\u4e3a\u4e86\u907f\u514d\u67d0\u79cd\u62ff\u4e0d\u5230\u7684\u573a\u666f\uff0c\u53ef\u5c06\u7b2c\u4e00\u4e2a\u53c2\u6570\u4f5c\u4e3a\u8981\u89e3\u6790\u53c2\u6570\u7684 url\u3002\nurl.allParamEscape(testUrl) // {id: \"2\", name: \"1\"}",lang:"js"}))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},"/5AF":function(e,t,n){var r=n("ZGY3");r("flat")},"/7QA":function(e,t,n){"use strict";n.r(t),n.d(t,"easing",(function(){return v})),n.d(t,"CombJudge",(function(){return g})),n.d(t,"EventBus",(function(){return k})),n.d(t,"FrameProcess",(function(){return R})),n.d(t,"I18n",(function(){return ce})),n.d(t,"SAS",(function(){return pe})),n.d(t,"ScrollListener",(function(){return we})),n.d(t,"Tween",(function(){return Ae})),n.d(t,"__",(function(){return Ce})),n.d(t,"capitalize",(function(){return Ne})),n.d(t,"clamp",(function(){return xe})),n.d(t,"classnames",(function(){return _e})),n.d(t,"copy",(function(){return Ie})),n.d(t,"curry",(function(){return Le})),n.d(t,"debounce",(function(){return Me})),n.d(t,"deepMerge",(function(){return ne})),n.d(t,"delay",(function(){return We})),n.d(t,"first",(function(){return Ue})),n.d(t,"flatten",(function(){return Je})),n.d(t,"get",(function(){return N})),n.d(t,"getFormatter",(function(){return Ke})),n.d(t,"globalThis",(function(){return _["a"]})),n.d(t,"groupBy",(function(){return qe})),n.d(t,"intersection",(function(){return Ye})),n.d(t,"isAndroid",(function(){return tt})),n.d(t,"isArray",(function(){return G})),n.d(t,"isBoolean",(function(){return rt})),n.d(t,"isDate",(function(){return ot})),n.d(t,"isDesktop",(function(){return ct})),n.d(t,"isError",(function(){return ft})),n.d(t,"isExist",(function(){return ae})),n.d(t,"isFunction",(function(){return E})),n.d(t,"isIOS",(function(){return mt})),n.d(t,"isMobile",(function(){return vt})),n.d(t,"isNaN",(function(){return A})),n.d(t,"isNull",(function(){return H})),n.d(t,"isNumber",(function(){return C})),n.d(t,"isObject",(function(){return V})),n.d(t,"isPromiseLike",(function(){return ie})),n.d(t,"isString",(function(){return S})),n.d(t,"isUndefined",(function(){return x})),n.d(t,"isWKWebview",(function(){return yt})),n.d(t,"last",(function(){return Et})),n.d(t,"lock",(function(){return fe})),n.d(t,"memoize",(function(){return $})),n.d(t,"nextTick",(function(){return xt})),n.d(t,"pick",(function(){return St})),n.d(t,"pickBy",(function(){return Se})),n.d(t,"pipe",(function(){return Xe})),n.d(t,"preloadImage",(function(){return At})),n.d(t,"promiseGuess",(function(){return Ct})),n.d(t,"qs",(function(){return Mt})),n.d(t,"random",(function(){return Wt})),n.d(t,"run",(function(){return P})),n.d(t,"sample",(function(){return Ut})),n.d(t,"set",(function(){return Jt})),n.d(t,"source",(function(){return Qt})),n.d(t,"storage",(function(){return dn})),n.d(t,"throttle",(function(){return mn})),n.d(t,"uniqByKey",(function(){return vn})),n.d(t,"url",(function(){return Ft})),n.d(t,"value",(function(){return B})),n.d(t,"segment",(function(){return gn}));var r=n("iojd");function a(e){return-Math.cos(e*Math.PI)/2+.5}function o(e){return e}var i={inQuad:function(e){return Math.pow(e,2)},outQuad:function(e){return-(Math.pow(e-1,2)-1)},inOutQuad:function(e){return(e/=.5)<1?.5*Math.pow(e,2):-.5*((e-=2)*e-2)},inCubic:function(e){return Math.pow(e,3)},outCubic:function(e){return Math.pow(e-1,3)+1},inOutCubic:function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)},inQuart:function(e){return Math.pow(e,4)},outQuart:function(e){return-(Math.pow(e-1,4)-1)},inOutQuart:function(e){return(e/=.5)<1?.5*Math.pow(e,4):-.5*((e-=2)*Math.pow(e,3)-2)},inQuint:function(e){return Math.pow(e,5)},outQuint:function(e){return Math.pow(e-1,5)+1},inOutQuint:function(e){return(e/=.5)<1?.5*Math.pow(e,5):.5*(Math.pow(e-2,5)+2)},inSine:function(e){return 1-Math.cos(e*(Math.PI/2))},outSine:function(e){return Math.sin(e*(Math.PI/2))},inOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},inExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},outExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},inOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},inCirc:function(e){return-(Math.sqrt(1-e*e)-1)},outCirc:function(e){return Math.sqrt(1-Math.pow(e-1,2))},inOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},outBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},inBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},outBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},inOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},elastic:function(e){return-1*Math.pow(4,-8*e)*Math.sin((6*e-1)*(2*Math.PI)/2)+1},swingFromTo:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},swingFrom:function(e){var t=1.70158;return e*e*((t+1)*e-t)},swingTo:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},bounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bouncePast:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?2-(7.5625*(e-=1.5/2.75)*e+.75):e<2.5/2.75?2-(7.5625*(e-=2.25/2.75)*e+.9375):2-(7.5625*(e-=2.625/2.75)*e+.984375)},fromTo:function(e){return(e/=.5)<1?.5*Math.pow(e,4):-.5*((e-=2)*Math.pow(e,3)-2)},from:function(e){return Math.pow(e,4)},to:function(e){return Math.pow(e,.25)},linear:o,sinusoidal:a,reverse:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;return 1-t(e)},mirror:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;return t(e<.5?2*e:1-2*(e-.5))},flicker:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;return e+=(Math.random()-.5)/5,t(e<0?0:e>1?1:e)},wobble:function(e){return-Math.cos(e*Math.PI*(9*e))/2+.5},pulse:function(e,t){return-Math.cos(e*((t||5)-.5)*2*Math.PI)/2+.5},blink:function(e,t){return Math.round(e*(t||5))%2},spring:function(e){return 1-Math.cos(4.5*e*Math.PI)*Math.exp(6*-e)},none:function(){return 0},full:function(){return 1}},l=400,c=Math.pow,u=Math.sqrt,s=Math.sin,f=Math.min,d=Math.asin,p=Math.PI,m={sine:function(e){return 1+s(p/2*e-p/2)},circ:function(e){return 1-u(1-e*e)},elastic:function(e,t){if(t=t||l,0===e||1===e)return e;var n=1-f(t,998)/1e3,r=e/1,a=r-1,o=n/(2*p)*d(1);return-c(2,10*a)*s(2*p*(a-o)/n)},back:function(e){return e*e*(3*e-2)},bounce:function(e){var t,n=4;while(e<((t=c(2,--n))-1)/11);return 1/c(4,3-n)-7.5625*c((3*t-2)/22-e,2)}};["quad","cubic","quart","quint","expo"].forEach((function(e,t){m[e]=function(e){return c(e,t+2)}}));var h=function(e){return e.length<1?e:e[0].toUpperCase()+e.slice(1)};Object.entries(m).forEach((function(e){var t=Object(r["default"])(e,2),n=t[0],a=t[1];n=h(n),i["in".concat(n)]=a,i["out".concat(n)]=function(e,t){return 1-a(1-e,t)},i["inOut".concat(n)]=function(e,t){return e<.5?a(2*e,t)/2:1-a(-2*e+2,t)/2},i["outIn".concat(n)]=function(e,t){return e<.5?(1-a(1-2*e,t))/2:(a(2*e-1,t)+1)/2}}));var v=i;class g{constructor(e){this.list=void 0,this.attr=void 0,this.attrKey=void 0,this.have=e=>Object.values(this.list).some((t=>Object.entries(e).every((e=>{var n=Object(r["default"])(e,2),a=n[0],o=n[1];return t[a]===o})))),this.adaptedAttr=e=>Object.entries(this.attr).reduce(((t,n)=>{var a=Object(r["default"])(n,2),o=a[0],i=a[1];return Object.assign(t,{[o]:i.filter((t=>this.have(Object.assign({},e,{[o]:t}))))})}),{}),this.find=e=>{for(var t=function(){var t=a[n];o=Object(r["default"])(t,2);var i=o[0],l=o[1];if(Object.entries(e).every((e=>{var t=Object(r["default"])(e,2),n=t[0],a=t[1];return l[n]===a}))&&Object.keys(l).every((t=>t in e)))return{v:i}},n=0,a=Object.entries(this.list);n{var n=Object(r["default"])(t,2),a=n[1];return Object.entries(a).forEach((t=>{var n=Object(r["default"])(t,2),a=n[0],o=n[1];e[a]=e[a]||[],e[a]=[...new Set([...e[a],o])]})),e}),{}),this.attrKey=Object.keys(this.attr)}}var y=n("G3cz"),b=e=>"function"===typeof e,E=b,w=e=>"undefined"===typeof e,x=w;class k{constructor(){var e=this;this.listeners={},this.getEventMap=e=>(this.listeners[String(e)]||(this.listeners[String(e)]=new Map),this.listeners[String(e)]),this.on=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=r.once,o=void 0!==a&&a;return E(n)?(e.getEventMap(t).set(n,o?function(){n(...arguments),e.off(t,n)}:n),e):(console.error("[EventBus Error] listener is not a function"),e)},this.once=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.on(t,n,Object(y["default"])(Object(y["default"])({},r),{},{once:!0}))},this.off=(e,t)=>{var n=this.getEventMap(e);return x(t)?n.clear():n.delete(t),this},this.emit=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;ae(...r)))}}}function S(e){return"string"===typeof e}var O=e=>e!==e,A=O,j=e=>"number"===typeof e&&!A(e),C=j;function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;try{C(t)&&(t=String(t));var r=(S(t)?t.split("."):t).reduce(((e,t)=>e[t]),e);return x(r)?n:r}catch(a){return n}}var T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];t=S(t)?t.split("."):t;for(var n=N(e,t),r=N(e,t.slice(0,-1)),a=arguments.length,o=new Array(a>2?a-2:0),i=2;i0&&void 0!==arguments[0]?arguments[0]:{},t=e.maxTaskCount,n=void 0===t?20:t;this.maxTaskCount=void 0,this.taskList=new Set,this.isAvailable=()=>this.taskList.size>=this.maxTaskCount,this.isRunning=!1,this.frame=()=>{var e=Date.now();this.taskList.forEach((t=>{var n=t.frame,r=t.startTime;return P(n,void 0,{runningTime:e-r,startTime:r,frameTime:e})})),this.taskList.size>0?D(this.frame):this.isRunning=!1},this.run=e=>{var t={startTime:Date.now(),frame:e};return this.taskList.add(t),this.isRunning||D((()=>{this.isRunning=!0,this.frame()})),()=>this.taskList.delete(t)},this.maxTaskCount=n}}class F{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.maxTaskCount=void 0,this.threadList=[],this.getAvailableThread=()=>{var e=this.threadList.find((e=>e.isAvailable()));return e||(e=new I({maxTaskCount:this.maxTaskCount}),this.threadList.push(e)),e},this.start=e=>this.getAvailableThread().run(e),this.once=e=>{var t=this.start((function(){for(var n=arguments.length,r=new Array(n),a=0;ax(e)?P(t):P(e)),void 0)},B=W,U=e=>e instanceof Array,G=U,J=e=>null===e,H=J,K=e=>"object"===typeof e&&!(G(e)||H(e)),V=K,q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.disable,r=void 0===n?()=>!1:n,a=new Map,o=function(t){if(a.has(t))return a.get(t);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;ia.delete(t)})||a.set(t,l),l};return o.cache=a,o},$=q,X=n("Ef+f");function Q(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var Y=n("NDrN"),Z=n("jl5J");function ee(e){return Object(X["a"])(e)||Q(e)||Object(Y["a"])(e)||Object(Z["a"])()}var te=function e(){for(var t=arguments.length,n=new Array(t),r=0;rV(e)));if(0===a.length)return{};if(1===a.length)return a[0];var o=ee(a),i=o[0],l=o.slice(1);return l.forEach((t=>{for(var n in t){var r=i[n],a=t[n];V(r)&&V(a)?i[n]=e(Object.assign({},r),a):i[n]=a}})),i},ne=te,re=e=>!(x(e)||H(e)),ae=re,oe=e=>ae(e)&&E(e.then),ie=oe,le=/:/;class ce{static get lng(){return ce.language}get lng(){return this.language}constructor(e){var t=this;this.resources={},this.language=void 0,this.eventBus=new k,this.config=void 0,this.applyConfig=function(){var e=Object(z["default"])(Object(M["default"])().mark((function e(n){return Object(M["default"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(ne(t.config,n),!t.language){e.next=3;break}return e.abrupt("return",t.applyLanguage(t.language));case 3:if(!ce.language){e.next=8;break}return e.next=6,t.applyLanguage(ce.language);case 6:e.next=9;break;case 8:ce.eventBus.once("change",(e=>{t.applyLanguage(ce.language)}));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.applyLanguage=function(){var e=Object(z["default"])(Object(M["default"])().mark((function e(n){return Object(M["default"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,Promise.all(Object.entries(t.config.types).map(function(){var e=Object(z["default"])(Object(M["default"])().mark((function e(a){var o,i,l;return Object(M["default"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=Object(r["default"])(a,2),i=o[0],l=o[1].resources,t.resources[i]||(t.resources[i]={}),e.next=4,P(N(l,n,l));case 4:t.resources[i][n]=e.sent;case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 4:t.language=n,t.eventBus.emit("change",n);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.applyLng=this.applyLanguage,this.translate=function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=le.test(e),i=e.split("@"),l=Object(r["default"])(i,2),c=l[0],u=l[1],s=void 0===u?t.config.defaultType||"default":u,f=c;if(o){var d=c.split(":"),p=Object(r["default"])(d,2);n=p[0],f=p[1]}if(!o&&t.language){var m=N(t.config,"types.".concat(s,".format.").concat(t.language),N(t.config,"types.".concat(s,".format"),ce.template)),h=!1!==N(t.config,"types.".concat(s,".resources"));if(E(m)){var v=P(m,void 0,h?N(t.resources,"".concat(s,".").concat(t.language,".").concat(f)):f,a);if(v)return v}}var g=t.fallbackTranslate("".concat(f,"@").concat(s),a,n)||P(t.config,"translateFallback",f,a);return g||(a._fbT?void 0:f)},this.fallbackTranslate=(e,t,n)=>{if(G(this.config.fallback)||V(this.config.fallback)){var r=Object(y["default"])(Object(y["default"])({},t),{},{_fbT:!0});if(n){var a=P(this.config.fallback,"".concat(n,".t"),e,r);if(a)return a}else for(var o=0,i=Object.values(this.config.fallback);o{this.applyLanguage(ce.language)}))}}ce.instances=[],ce.language=void 0,ce.eventBus=new k,ce.template=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.split,a=void 0!==r&&r,o=n.fallback,i=void 0===o?"(unknow)":o,l=/{{\s*\w*\s*}}/g,c=E(i),u=(e.match(l)||[]).map((e=>{var n=e;e=e.replace(/({{\s*)|(\s*}})/g,"");var r=c?i(e,n):i;return e=B(t[e],r),e})),s=(e.split(l)||[]).reduce(((e,t)=>e.concat([t,u.shift()])),[]);return a?s:s.join("")},ce.load=function(){for(var e=arguments.length,t=new Array(e),n=0;n{var t=P(e),n=e=>N(e,"default",e);return ie(t)?t.then(n):n(t)})));case 2:return n=e.sent,e.abrupt("return",Object.assign({},...n));case 4:case"end":return e.stop()}}),e)}))))},ce.applyLanguage=function(){var e=Object(z["default"])(Object(M["default"])().mark((function e(t){return Object(M["default"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,Promise.all(ce.instances.map((e=>e.applyLanguage(t))));case 4:ce.language=t,ce.eventBus.emit("change",t);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ce.applyLng=ce.applyLanguage;var ue=$((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{},n=t.always,r=t.locking,a=()=>ue.cache.delete(e),o=()=>ue.cache.has(e),i=function(){P(n),o()&&P(r);for(var t=arguments.length,a=new Array(t),i=0;i{var t=fe((function(){for(var n=this,r=arguments.length,a=new Array(r),o=0;oE(e.distance)?e.distance():e.distance,Ee=e=>{var t=!1,n=n=>{t||(requestAnimationFrame((()=>{e(n),t=!1})),t=!0)};return n};class we{constructor(e){this.config=void 0,this.getScrollDistance=void 0,this.destroy=()=>null,this.dynamicEvents=[],this.currentStaticEvent=void 0,this.staticEvents=[],this.walkEvent=(e,t)=>{var n=e.onGoingIn,r=void 0===n?()=>{}:n,a=e.onGoingOut,o=void 0===a?()=>{}:a,i=e.status,l=be(e);switch(i){case he:t>l&&(o(),e.status=me);break;default:case me:t<=l&&(r(),e.status=he);break}return e.status!==i},this.walkStaticEvent=e=>{var t=e.direction,n=e.scrollDistance,r=this.currentStaticEvent;if(r){var a=r.prevEvent||r.getPrevEvent(),o=r.nextEvent||r.getNextEvent(),i=r;if(t===ve?r.status===me&&(i=o):r.status===he&&(i=a),i){var l=this.walkEvent(i,n);l&&(this.currentStaticEvent=(t===ve?o:a)||r,this.walkStaticEvent({direction:t,scrollDistance:n}))}}},this.walkDynamicEvents=e=>{var t=e.direction,n=e.scrollDistance;this.dynamicEvents.sort(((e,n)=>(be(e)-be(n))*t)).forEach((e=>{this.walkEvent(e,n)}))},this.config=e,this.init()}init(){var e=this.config,t=e.element,n=e.scrollHandler,r=void 0===n?Ee:n,a=e.getScrollDistance,o=e.direction,i=void 0===o?"vertical":o;if("undefined"!==typeof t){var l=E(a)?a:{vertical:()=>t.scrollTop,horizontal:()=>t.scrollLeft}[i];this.getScrollDistance=l,this.genDynamicEvents(),this.genStaticEvents();var c=l(),u=e=>{e.stopPropagation();var t=l(),n=t>c?ve:ge,r={scrollDistance:t,direction:n};this.walkStaticEvent(r),this.walkDynamicEvents(r),c=t},s=r(u);return t.addEventListener(ye,s),this.destroy=()=>t.removeEventListener(ye,s),this}console.error("Need Scroll Container!")}getEndReachedEvent(){var e=this.config,t=e.distanceToReachEnd,n=void 0===t?100:t,r=e.onEndReached,a=e.element,o=e.direction,i=void 0===o?"vertical":o;if(E(r)){var l=!1,c=e=>{e?0===this.staticEvents.length&&1===this.dynamicEvents.length&&this.dynamicEvents[0]===u&&this.destroy():l=!1},u={dynamic:!0,distance:{vertical:()=>a.scrollHeight-a.offsetHeight-n,horizontal:()=>a.scrollWidth-a.offsetWidth-n}[i],onGoingOut:()=>{l||(l=!0,r(c))}};return u}}genDynamicEvents(){var e=this.config.distanceEvents,t=void 0===e?[]:e,n=this.getEndReachedEvent(),r=this.getScrollDistance(),a=[...t,n].filter((e=>e&&e.dynamic)).map((e=>Object(y["default"])(Object(y["default"])({},e),{},{status:r>e.distance?me:he})));this.dynamicEvents=a}genStaticEvents(){var e=this.config.distanceEvents,t=void 0===e?[]:e,n=this.getScrollDistance(),r=t.map((e=>Object(y["default"])(Object(y["default"])({},e),{},{distance:be(e)}))).filter((e=>e.distance>=0&&!e.dynamic)).map(((e,t)=>{var a=Object(y["default"])(Object(y["default"])({},e),{},{prevEvent:void 0,nextEvent:void 0,getPrevEvent:()=>{var e=r[t-1]||null;return a.prevEvent=e,e},getNextEvent:()=>{var e=r[t+1]||null;return a.nextEvent=e,e},status:n>e.distance?me:he});return a}));this.staticEvents=r,this.currentStaticEvent=r.find((e=>e.distance>=n))}}function xe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_VALUE;return en?n:e}var ke=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>ae(e);return Object.entries(e).filter((e=>P(t,void 0,e[1],e[0]))).reduce(((e,t)=>Object(y["default"])(Object(y["default"])({},e),{},{[t[0]]:t[1]})),{})},Se=ke,Oe={from:0,to:1,duration:1e3,ease:e=>e,loop:!1};class Ae{constructor(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Oe;this.stopRunningFrame=void 0,this.bus=new k,this.state={reversed:!1,progress:0,stoped:!0,config:Oe},this.on=(e,t)=>(this.bus.on(e,t),this),this.off=(e,t)=>(this.bus.off(e,t),this),this.config=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Oe;return e.state.config=Object(y["default"])(Object(y["default"])(Object(y["default"])({},Oe),e.state.config),Se(t,ae)),e},this.start=()=>{if(this.isEnded()||!this.state.stoped)return this;this.state.stoped=!1,this.bus.emit("start");var e=Date.now();return this.stopRunningFrame=L.start((t=>{var n=t.frameTime,r=(n-e)/xe(this.state.config.duration,16),a=this.state.reversed?-1:1;this.progress(this.state.progress+r*a),e=n})),this},this.restart=()=>this.reset().start(),this.reset=()=>{var e=this.state.reversed;return this.stop().progress(e?1:0)},this.stop=()=>(this.state.stoped||(this.state.stoped=!0,P(this.stopRunningFrame),this.bus.emit("stop")),this),this.reverse=()=>(this.state.reversed=!this.state.reversed,this.bus.emit("reverse"),this),this.progress=e=>{var t=this.state.progress;return this.state.progress=xe(e,0,1),this.bus.emit("update",this.value(e),this.value(t)),this.isEnded()&&(this.state.config.loop?this.state.reversed=!this.state.reversed:(this.stop(),this.bus.emit("end"))),this},this.value=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.state.progress;t=xe(t,0,1);var n=e.state.config,r=n.ease,a=n.to,o=n.from,i=r;return(a-o)*P(i,void 0,t)+o},this.isEnded=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.state.progress,n=e.state.reversed;return n?t<=0:t>=1},this.config(t)}}Ae.DEFAULT_CONFIG=Oe;var je=(e,t)=>function(){for(var n=arguments.length,r=new Array(n),a=0;ae===je?a.shift():e)).concat(a))}},Ce=je;function Ne(e){return S(e)?/\s/.test(e)?e.split(" ").map(Ne).join(" "):e.split("").map(((e,t)=>0===t?e.toUpperCase():e)).join(""):""}var Te=n("BRxd"),Pe=n.n(Te),_e=Pe.a,De=e=>{if(x(document))return console.warn("\u5bbf\u4e3b\u73af\u5883\u4e0d\u5b58\u5728 DOM \u5bf9\u8c61\uff0c\u65e0\u6cd5\u6267\u884c\u590d\u5236\u64cd\u4f5c");var t=document.createElement("input");t.style.cssText="\n position: absolute;\n left: 0;\n top: 0;\n z-index: -1;\n pointer-events: none;\n opacity: 0;\n ",document.body.appendChild(t),t.setAttribute("value",e),t.select(),t.setSelectionRange(0,9999),document.execCommand("copy",!0)&&document.execCommand("copy",!0),document.body.removeChild(t)},Ie=De,Fe=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:16;return function(){for(var r=arguments.length,a=new Array(r),o=0;o{e.apply(this,a)}),n),t}},Me=Re,ze=e=>new Promise((t=>{e!==1/0&&setTimeout(t,e)})),We=ze,Be=e=>{if(G(e))return e[0];if(V(e)){var t=Object.keys(e);return e[Be(t)]}},Ue=Be,Ge=e=>e.reduce(((e,t)=>[...e,...G(t)?Ge(t):[t]]),[]),Je=Ge,He=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.separator,n=void 0===t?" ":t,r=e.length,a=void 0===r?3:r,o=e.reverse,i=void 0!==o&&o,l=e.isNumber,c=void 0!==l&&l;return e=>{if(c){var t=-1!==e.toString().indexOf(".");return t?e&&e.toString().replace(new RegExp("(\\d)(?=(\\d{".concat(a,"})+\\.)"),"g"),((e,t)=>t+n)):e&&e.toString().replace(new RegExp("\\d{1,".concat(a,"}(?=(\\d{").concat(a,"})+$)"),"g"),"$&".concat(n))}if(e=C(e)?Math.floor(e):e,x(e))return e;var r=String(e).split("");return i||(r=r.reverse()),r=r.reduce(((e,t,r)=>(e.unshift(t,r>0&&r%a===0?n:void 0),e)),[]),i&&(r=r.reverse()),r=r.join(""),r}},Ke=He,Ve=(e,t)=>t.reduce((function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),o=2;ot.reduce(((e,t)=>P(t,void 0,e)),e)},Xe=$e,Qe=function(){for(var e=arguments.length,t=new Array(e),n=0;nnew Set(e)),Array.from)(t).filter((e=>t.every((t=>t.includes(e)))))},Ye=Qe,Ze=/(Android)/i,et=()=>Ze.test(N(_["a"],"navigator.userAgent")),tt=et,nt=e=>"boolean"===typeof e,rt=nt,at=e=>e instanceof Date,ot=at,it=/(Win32|Win64|MacIntel|Linux x86_64)/i,lt=()=>it.test(N(_["a"],"navigator.platform")),ct=lt,ut=["Error","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"].map((e=>_["a"][e])).filter((e=>!x(e))),st=e=>ut.some((t=>e instanceof t)),ft=st,dt=/(iPhone|iPad|iPod|iOS)/i,pt=()=>dt.test(N(_["a"],"navigator.userAgent")),mt=pt,ht=()=>!ct()&&(tt()||mt()),vt=ht,gt=()=>mt()&&ae(N(_["a"],"webkit")),yt=gt,bt=e=>{if(G(e))return e[e.length-1];if(V(e)){var t=Object.keys(e);return e[bt(t)]}},Et=bt,wt=e=>Promise.resolve().then(e),xt=wt,kt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.keys(e);return Se(e,((e,n)=>t.includes(n)))},St=kt,Ot=e=>e.forEach((e=>{var t=new Image;t.src=e})),At=Ot,jt=(e,t)=>function(){for(var n=arguments.length,r=new Array(n),a=0;ao.then((n=>e(t.call(this,null,n,...r)))).catch((n=>e(t.call(this,n,void 0,...r)))))):t.call(this,null,o,...r)},Ct=jt,Nt=e=>{for(var t=[_["a"].decodeURIComponent,_["a"].decodeURI,_["a"].unescape],n=0,r=t;n1&&void 0!==arguments[1]?arguments[1]:_["a"].location.search,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Nt,r=N(P(t,"split","?"),"1","").match(new RegExp("(^|&)".concat(e,"=([^&]*)(&|$)")));return H(r)?void 0:n(r[2])}var _t=Ce(Dt)(Ce,_["a"].unescape);function Dt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_["a"].location.search,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Nt,n=N(e.split("?"),[1],"");return 0===n.length?{}:n.split("&").map((e=>e.split("="))).reduce(((e,n)=>{var a=Object(r["default"])(n,2),o=a[0],i=a[1];return Object.assign(e,{[o]:t(i)})}),{})}function It(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_["a"].encodeURIComponent;return"?".concat(Object.entries(e).map((e=>{var n=Object(r["default"])(e,2),a=n[0],o=n[1];return[a,t(o)].join("=")})).join("&"))}var Ft={paramEscape:Tt,param:Pt,allParamEscape:_t,allParam:Dt,generateParamStr:It},Lt=e=>Dt(e),Rt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return It(e).replace(/^.?/,"")},Mt={parse:Lt,stringify:Rt},zt=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=Math.random()*(t-e)+e;return n?Math.floor(r):r},Wt=zt,Bt=e=>N(e,Wt(0,N(e,"length",0))),Ut=Bt,Gt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return e=Object.assign({},e),t=S(t)?t.split("."):t,t.reduce(((e,r,a)=>{var o=a===t.length-1?n:N(e,r,{});return V(o)&&(o=Object.assign({},o)),G(o)&&(o=o.slice()),e[r]=o,e[r]}),e),e},Jt=Gt,Ht=Le(((e,t)=>{var n=_["a"][t];return!x(t)&&x(n)&&console.warn("No external named '".concat(t,"' in global after loaded ").concat(e)),n})),Kt=(e,t)=>G(t)?t.map(Ht(e)):Ht(e,t),Vt=Kt,qt={js:[],css:[]},$t=(e,t)=>qt.js.includes(e)?(console.warn("[source.js] ".concat(e," \u5df2\u88ab\u52a0\u8f7d")),Promise.resolve(Vt(e,t))):new Promise(((n,r)=>{var a=document.createElement("script");a.setAttribute("src",e),a.addEventListener("load",(()=>setTimeout((()=>{qt.js.push(e),n(Vt(e,t))})))),a.addEventListener("error",r),document.body.appendChild(a)})),Xt=e=>{if(qt.css.includes(e))console.warn("[source.css] ".concat(e," \u5df2\u88ab\u52a0\u8f7d"));else if(document.querySelector('link[href="'.concat(e,'"]')))qt.css.push(e);else{var t=document.createElement("link");t.setAttribute("href",e),t.setAttribute("rel","stylesheet"),document.body.appendChild(t),qt.css.push(e)}},Qt={js:$t,css:Xt},Yt=!0,Zt="__testSupportive__",en=_["a"].localStorage;ae(en)||(Yt=!1);try{en.setItem(Zt,"__testSupportive__"),en.removeItem(Zt)}catch(yn){Yt=!1}function tn(e){return Yt?e:()=>console.warn("Storage unsupported")}var nn=e=>tn((t=>{var n,r=e.getItem(t);if("undefined"===r||H(r))n=void 0;else try{n=JSON.parse(r)}catch(yn){console.error("[ERROR storage.get --\x3e JSON.parse]",yn),n=r}return n})),rn=e=>tn(((t,n)=>{var r;try{r=JSON.stringify(n)}catch(yn){console.error("[ERROR storage.set --\x3e JSON.stringify]",yn),r=n}return e.setItem(t,r),r})),an=e=>tn((t=>{e.removeItem(t)})),on=nn(_["a"].localStorage),ln=rn(_["a"].localStorage),cn=an(_["a"].localStorage),un=nn(_["a"].sessionStorage),sn=rn(_["a"].sessionStorage),fn=an(_["a"].sessionStorage),dn={get:on,set:ln,remove:cn,getSession:un,setSession:sn,removeSession:fn},pn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,n=!1,r=()=>{n=!1},a=Me((e=>{E(e)&&e()}),t);return function(){for(var o=arguments.length,i=new Array(o),l=0;l{c||(c=!0,e.apply(this,i))};a(u),n||(n=!0,u(),setTimeout(r,t))}},mn=pn,hn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n={};return e.filter((e=>{if(!(t in e))return!0;var r=e[t];return!(r in n)&&(n[r]=!0,!0)}))},vn=hn;function gn(e,t,n){var a=Object(r["default"])(n,2),o=a[0],i=a[1],l=e/t;if(li)throw new Error("\u65e0\u6cd5\u5206\u6bb5");var c=[],u=Array(t).fill(l).reduce(((e,t)=>{var n=e+t,r=[o,i,n-o,n-i].sort(((e,t)=>e-t)).slice(1,3);return e=Wt(r[0],r[1],!1),t=n-e,c.push(e),t}));return c.push(u),c}},"/AzE":function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["pick-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"pick"},a.a.createElement(o["AnchorLink"],{to:"#pick","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"pick"),a.a.createElement("p",null,"\u8fc7\u6ee4\u5bf9\u8c61\u5c5e\u6027\uff0c\u6311\u9009\u51fa\u4e00\u4e2a\u5bf9\u8c61\u4e2d\u7684\u6307\u5b9a\u5c5e\u6027\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"pick: (obj: Object, keys?: any[]) => Object",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"obj \u6570\u636e\u6e90\u5bf9\u8c61"),a.a.createElement("li",null,"keys \u591a\u4e2a\u5c5e\u6027\uff08\u5b57\u7b26\u4e32\u6570\u7ec4\uff09\u6216\u8005\u5355\u4e2a\u5c5e\u6027\uff08\u5b57\u7b26\u4e32\uff09")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u65b0\u5bf9\u8c61\uff0c\u5185\u542b\u6307\u5b9a\u5c5e\u6027\u548c\u5b83\u7684\u503c")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"import { pick } from '@fexd/tools'\n\nconst obj = {\n id: 1,\n name: 'Tom',\n age: 18,\n gender: 'man',\n}\n\n// \u53d6\u6307\u5b9a\u7684\u5355\u4e2a\u5c5e\u6027\u503c\nconsole.log(pick(obj)) // {id: 1, name: \"Tom\", age: 18, gender: \"man\"}\nconsole.log(pick(obj, 'id')) // {id: 1}\nconsole.log(pick(obj, 'name')) // {name: \"Tom\"}\nconsole.log(pick(obj, 'age')) // {age: 18}\nconsole.log(pick(obj, 'gender')) // {gender: \"man\"}\n\n// \u53d6\u6307\u5b9a\u7684\u591a\u4e2a\u5c5e\u6027\u503c\nconsole.log(pick(obj, 'id', 'name')) // {id: 1} \uff0c\u9519\u8bef\u793a\u8303\uff0c\u8981\u53d6\u591a\u4e2a\u5c5e\u6027\u7b2c\u4e8c\u4e2a\u53c2\u6570\u8bf7\u7528\u6570\u7ec4\nconsole.log(pick(obj, ['id', 'name'])) // {id: 1, name: \"Tom\"}",lang:"js"})),a.a.createElement(i["default"],t["pick-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},"/ZDR":function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["pickBy-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"pickby"},a.a.createElement(o["AnchorLink"],{to:"#pickby","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"pickBy"),a.a.createElement("p",null,"\u81ea\u5b9a\u4e49\u9009\u503c\u51fd\u6570\u3002\u7528\u4e8e\u5f97\u5230\u7531\u6570\u636e\u6e90\u5bf9\u8c61\u4e2d\u6240\u6709\u7b26\u5408\u7684\u6761\u4ef6\u7684\u952e\u503c\u5bf9\u7ec4\u6210\u7684\u65b0\u5bf9\u8c61\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"const pickBy: (obj: Object, predicate?: (...args: any[]) => boolean) => Object",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"obj \u6570\u636e\u6e90\u5bf9\u8c61"),a.a.createElement("li",null,"predicate \u7b5b\u9009\u51fd\u6570\uff0c\u6839\u636e\u51fd\u6570\u7684\u8fd4\u56de\u503c\u6765\u9009")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u5305\u542b\u4e86\u6240\u6709\u7b26\u5408\u6761\u4ef6\u7684\u952e\u503c\u5bf9\u7684\u5bf9\u8c61")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"import React from 'react'\nimport { pickBy, isNumber } from '@fexd/tools'\n\nconst obj = {\n id: 1,\n name: 'Tom',\n age: 18,\n gender: 'man',\n}\n\nconst predicateValue = (value, key) => {\n // console.log(`value:${value}, key:${key}`)\n return isNumber(value)\n}\n\nconst predicateKey = (value, key) => {\n // console.log(`value:${value}, key:${key}`)\n return key.length > 2\n}\n\n// isNumber\u662f\u5224\u65ad\u662f\u5426\u4e3aNumber\u7684\u51fd\u6570\uff0cisNumber: (value: any) => boolean;\nconsole.log(pickBy(obj, isNumber)) // {id: 1, age: 18}\nconsole.log(pickBy(obj, predicateValue)) // {id: 1, age: 18}\nconsole.log(pickBy(obj, predicateKey)) // {name: \"Tom\", age: 18, gender: \"man\"}",lang:"javascript"})),a.a.createElement(i["default"],t["pickBy-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},"/fpf":function(e,t){var n=1/0,r=Math.abs,a=Math.pow,o=Math.floor,i=Math.log,l=Math.LN2,c=function(e,t,c){var u,s,f,d=new Array(c),p=8*c-t-1,m=(1<>1,v=23===t?a(2,-24)-a(2,-77):0,g=e<0||0===e&&1/e<0?1:0,y=0;for(e=r(e),e!=e||e===n?(s=e!=e?1:0,u=m):(u=o(i(e)/l),e*(f=a(2,-u))<1&&(u--,f*=2),e+=u+h>=1?v/f:v*a(2,1-h),e*f>=2&&(u++,f/=2),u+h>=m?(s=0,u=m):u+h>=1?(s=(e*f-1)*a(2,t),u+=h):(s=e*a(2,h-1)*a(2,t),u=0));t>=8;d[y++]=255&s,s/=256,t-=8);for(u=u<0;d[y++]=255&u,u/=256,p-=8);return d[--y]|=128*g,d},u=function(e,t){var r,o=e.length,i=8*o-t-1,l=(1<>1,u=i-7,s=o-1,f=e[s--],d=127&f;for(f>>=7;u>0;d=256*d+e[s],s--,u-=8);for(r=d&(1<<-u)-1,d>>=-u,u+=t;u>0;r=256*r+e[s],s--,u-=8);if(0===d)d=1-c;else{if(d===l)return r?NaN:f?-n:n;r+=a(2,t),d-=c}return(f?-1:1)*r*a(2,d-t)};e.exports={pack:c,unpack:u}},"/gJP":function(e,t,n){var r=n("r+6h"),a=n("6SQG"),o=n("RzMS"),i=n("aRba"),l=n("0JbB").f,c=n("lFeU").f,u=n("q43B"),s=n("rfqm"),f=n("kj2u"),d=n("uF/W"),p=n("h+/6"),m=n("uJNS").set,h=n("ct0+"),v=n("3Hes"),g=v("match"),y=a.RegExp,b=y.prototype,E=/a/g,w=/a/g,x=new y(E)!==E,k=f.UNSUPPORTED_Y,S=r&&o("RegExp",!x||k||p((function(){return w[g]=!1,y(E)!=E||y(w)==w||"/a/i"!=y(E,"i")})));if(S){var O=function(e,t){var n,r=this instanceof O,a=u(e),o=void 0===t;if(!r&&a&&e.constructor===O&&o)return e;x?a&&!o&&(e=e.source):e instanceof O&&(o&&(t=s.call(e)),e=e.source),k&&(n=!!t&&t.indexOf("y")>-1,n&&(t=t.replace(/y/g,"")));var l=i(x?new y(e,t):y(e,t),r?this:b,O);return k&&n&&m(l,{sticky:n}),l},A=function(e){e in O||l(O,e,{configurable:!0,get:function(){return y[e]},set:function(t){y[e]=t}})},j=c(y),C=0;while(j.length>C)A(j[C++]);b.constructor=O,O.prototype=b,d(a,"RegExp",O)}h("RegExp")},"/sHi":function(e,t,n){"use strict";var r="%[a-f0-9]{2}",a=new RegExp(r,"gi"),o=new RegExp("("+r+")+","gi");function i(e,t){try{return decodeURIComponent(e.join(""))}catch(a){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],i(n),i(r))}function l(e){try{return decodeURIComponent(e)}catch(r){for(var t=e.match(a),n=1;n{var t=e.demos,n=t["isWKWebview-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"iswkwebview"},a.a.createElement(o["AnchorLink"],{to:"#iswkwebview","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isWKWebview"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a WKWebview \u73af\u5883\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isWKWebview: () => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("p",null,"\u65e0"),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u662f WKWebview \u73af\u5883"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u4e0d\u662f WKWebview \u73af\u5883")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isWKWebview-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},"0G8B":function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["random-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"random"},a.a.createElement(o["AnchorLink"],{to:"#random","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"random"),a.a.createElement("p",null,"\u968f\u673a\u51fd\u6570\uff0c\u83b7\u53d6 (min, max) \u4e4b\u95f4\u7684\u4e00\u4e2a\u968f\u673a\u6570"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"random: (min: number, max: number, int?: boolean) => number",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"min \u6700\u5c0f\u503c"),a.a.createElement("li",null,"max \u6700\u5927\u503c"),a.a.createElement("li",null,"int \u662f\u5426\u4e3a\u6574\u578b\uff0c\u9ed8\u8ba4 true")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u6839\u636e\u53c2\u6570\u8fd4\u56de\u7b26\u5408\u6761\u4ef6\u7684\u4e00\u4e2a\u968f\u673a\u6570\u5b57\u3002")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["random-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},"0Ifp":function(e,t,n){var r=n("MULs"),a=n("lf6h");function o(e,t,n,i,l){return e===t||(null==e||null==t||!a(e)&&!a(t)?e!==e&&t!==t:r(e,t,n,i,o,l))}e.exports=o},"0JX+":function(e,t,n){"use strict";var r=n("SDiR")["default"];function a(){var e=n("nNWW");return a=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var o=n("Gdey");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1&&n.push(f[r]);v(n)}else v([])}),[e,f.length]),h},v=function(){var e=(0,a().useContext)(o.context),t=e.config.algolia,n=(0,a().useCallback)((function(e){window.docsearch(l({inputSelector:e},t))}),[t]);return n},g=function(e){var t=(0,a().useContext)(o.context),n=t.config,r=h(e),i=v();return n.algolia?i:r};t["default"]=g},"0JbB":function(e,t,n){var r=n("r+6h"),a=n("p3eN"),o=n("sErw"),i=n("JSMs"),l=Object.defineProperty;t.f=r?l:function(e,t,n){if(o(e),t=i(t,!0),o(n),a)try{return l(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"0OGf":function(e,t,n){"use strict";(function(e){var r=n("nNWW"),a=n.n(r),o=n("R5oI"),i=n("BA5g"),l=n.n(i),c=1073741823,u="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{};function s(){var e="__global_unique_id__";return u[e]=(u[e]||0)+1}function f(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function d(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}function p(e){return Array.isArray(e)?e[0]:e}function m(e,t){var n,a,i="__create-react-context-"+s()+"__",u=function(e){function n(){var t;return t=e.apply(this,arguments)||this,t.emitter=d(t.props.value),t}Object(o["a"])(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return e={},e[i]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,a=e.value;f(r,a)?n=0:(n="function"===typeof t?t(r,a):c,n|=0,0!==n&&this.emitter.set(e.value,n))}},r.render=function(){return this.props.children},n}(r["Component"]);u.childContextTypes=(n={},n[i]=l.a.object.isRequired,n);var m=function(t){function n(){var e;return e=t.apply(this,arguments)||this,e.state={value:e.getValue()},e.onUpdate=function(t,n){var r=0|e.observedBits;0!==(r&n)&&e.setState({value:e.getValue()})},e}Object(o["a"])(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?c:t},r.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?c:e},r.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},r.getValue=function(){return this.context[i]?this.context[i].get():e},r.render=function(){return p(this.props.children)(this.state.value)},n}(r["Component"]);return m.contextTypes=(a={},a[i]=l.a.object,a),{Provider:u,Consumer:m}}var h=a.a.createContext||m;t["a"]=h}).call(this,n("bQdJ"))},"0W/Y":function(e,t,n){"use strict";var r=n("x1fj")["default"];Object.defineProperty(t,"__esModule",{value:!0});var a=n("i0LQ"),o=n("nNWW"),i=n("yh5g"),l=n("0bwR");function c(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var u=c(o);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t=0||(a[n]=e[n]);return a}function g(e,t){if(null==e)return{};var n,r,a=v(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function y(e,t){return b(e)||E(e,t)||w(e,t)||k()}function b(e){if(Array.isArray(e))return e}function E(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done);i=!0)if(o.push(r.value),t&&o.length===t)break}catch(c){l=!0,a=c}finally{try{i||null==n["return"]||n["return"]()}finally{if(l)throw a}}return o}}function w(e,t){if(e){if("string"===typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n["return"]||n["return"]()}finally{if(l)throw o}}}}function O(e){return u["default"].createElement(a.__RouterContext.Consumer,null,(function(t){var n=e.location||t.location,r=e.computedMatch,o=f(f({},t),{},{location:n,match:r}),i=e.render;return u["default"].createElement(a.__RouterContext.Provider,{value:o},o.match?i(f(f({},e.layoutProps),o)):null)}))}var A=["children"];function j(e){return u["default"].createElement(a.__RouterContext.Consumer,null,(function(t){var n,r=e.children,i=g(e,A),l=e.location||t.location,c=null;return o.Children.forEach(r,(function(e){if(null===c&&o.isValidElement(e)){n=e;var r=e.props.path||e.props.from;c=r?a.matchPath(l.pathname,f(f({},e.props),{},{path:r})):t.match}})),c?o.cloneElement(n,{location:l,computedMatch:c,layoutProps:i}):null}))}var C=["component"];function N(e,t){e.component;var n=g(e,C),i=e.component;function l(l){var c=o.useState((function(){return window.g_initialProps})),s=y(c,2),d=s[0],m=s[1];return o.useEffect((function(){var o=function(){var o=p(r().mark((function o(){var c,u,s,d,p;return r().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(u=i,!i.preload){r.next=6;break}return r.next=4,i.preload();case 4:u=r.sent,u=u["default"]||u;case 6:if(s=f(f({isServer:!1,match:null===l||void 0===l?void 0:l.match,history:null===l||void 0===l?void 0:l.history,route:e},t.getInitialPropsCtx||{}),n),!(null===(c=u)||void 0===c?void 0:c.getInitialProps)){r.next=15;break}return r.next=10,t.plugin.applyPlugins({key:"ssr.modifyGetInitialPropsCtx",type:a.ApplyPluginsType.modify,initialValue:s,async:!0});case 10:return d=r.sent,r.next=13,u.getInitialProps(d||s);case 13:p=r.sent,m(p);case 15:case"end":return r.stop()}}),o)})));return function(){return o.apply(this,arguments)}}();window.g_initialProps||o()}),[window.location.pathname,window.location.search]),u["default"].createElement(i,h({},l,d))}return l.wrapInitialPropsLoaded=!0,l.displayName="ComponentWithInitialPropsFetch",l}function T(e){var t=e.route,n=e.opts,r=e.props,a=_(f(f({},n),{},{routes:t.routes||[],rootRoutes:n.rootRoutes}),{location:r.location}),i=t.component,l=t.wrappers;if(i){var c=n.isServer?{}:window.g_initialProps,s=f(f(f(f({},r),n.extraProps),n.pageInitialProps||c),{},{route:t,routes:n.rootRoutes}),d=u["default"].createElement(i,s,a);if(l){var p=l.length-1;while(p>=0)d=o.createElement(l[p],s,d),p-=1}return d}return a}function P(e){var t,n,r,o=e.route,i=e.index,l=e.opts,c={key:o.key||i,exact:o.exact,strict:o.strict,sensitive:o.sensitive,path:o.path};return o.redirect?u["default"].createElement(a.Redirect,h({},c,{from:o.path,to:o.redirect})):(!l.ssrProps||l.isServer||(null===(t=o.component)||void 0===t?void 0:t.wrapInitialPropsLoaded)||!(null===(n=o.component)||void 0===n?void 0:n.getInitialProps)&&!(null===(r=o.component)||void 0===r?void 0:r.preload)||(o.component=N(o,l)),u["default"].createElement(O,h({},c,{render:function(e){return T({route:o,opts:l,props:e})}})))}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.routes?u["default"].createElement(j,t,e.routes.map((function(t,n){return P({route:t,index:n,opts:f(f({},e),{},{rootRoutes:e.rootRoutes||e.routes})})}))):null}var D=["history"];function I(e){var t=e.history,n=g(e,D);return o.useEffect((function(){function r(t,r){var o=l.matchRoutes(e.routes,t.pathname);"undefined"!==typeof document&&void 0!==n.defaultTitle&&(document.title=o.length&&o[o.length-1].route.title||n.defaultTitle||""),e.plugin.applyPlugins({key:"onRouteChange",type:a.ApplyPluginsType.event,args:{routes:e.routes,matchedRoutes:o,location:t,action:r}})}return window.g_useSSR&&(window.g_initialProps=null),r(t.location,"POP"),t.listen(r)}),[t]),u["default"].createElement(a.Router,{history:t},_(n))}function F(e){return e.plugin.applyPlugins({type:a.ApplyPluginsType.modify,key:"rootContainer",initialValue:u["default"].createElement(I,{history:e.history,routes:e.routes,plugin:e.plugin,ssrProps:e.ssrProps,defaultTitle:e.defaultTitle}),args:{history:e.history,routes:e.routes,plugin:e.plugin}})}function L(e){return R.apply(this,arguments)}function R(){return R=p(r().mark((function e(t){var n,a,o,i,c,u,s,f,d=arguments;return r().wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=d.length>1&&void 0!==d[1]?d[1]:window.location.pathname,a=l.matchRoutes(t,n),o=S(a),e.prev=3,o.s();case 5:if((i=o.n()).done){e.next=19;break}if(u=i.value,s=u.route,"string"===typeof s.component||!(null===(c=s.component)||void 0===c?void 0:c.preload)){e.next=13;break}return e.next=11,s.component.preload();case 11:f=e.sent,s.component=f["default"]||f;case 13:if(!s.routes){e.next=17;break}return e.next=16,L(s.routes,n);case 16:s.routes=e.sent;case 17:e.next=5;break;case 19:e.next=24;break;case 21:e.prev=21,e.t0=e["catch"](3),o.e(e.t0);case 24:return e.prev=24,o.f(),e.finish(24);case 27:return e.abrupt("return",t);case 28:case"end":return e.stop()}}),e,null,[[3,21,24,27]])}))),R.apply(this,arguments)}function M(e){var t=F(e);if(!e.rootElement)return t;var n="string"===typeof e.rootElement?document.getElementById(e.rootElement):e.rootElement,r=e.callback||function(){};window.g_useSSR?e.dynamicImport?L(e.routes).then((function(){i.hydrate(t,n,r)})):i.hydrate(t,n,r):i.render(t,n,r)}t.renderClient=M,t.renderRoutes=_},"0bwR":function(e,t,n){"use strict";n.r(t),n.d(t,"matchRoutes",(function(){return l})),n.d(t,"renderRoutes",(function(){return c}));var r=n("Bm2L"),a=n("973d"),o=n("nNWW"),i=n.n(o);function l(e,t,n){return void 0===n&&(n=[]),e.some((function(e){var a=e.path?Object(r["i"])(t,e):n.length?n[n.length-1].match:r["e"].computeRootMatch(t);return a&&(n.push({route:e,match:a}),e.routes&&l(e.routes,t,n)),a})),n}function c(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),e?i.a.createElement(r["g"],n,e.map((function(e,n){return i.a.createElement(r["d"],{key:e.key||n,path:e.path,exact:e.exact,strict:e.strict,render:function(n){return e.render?e.render(Object(a["a"])({},n,{},t,{route:e})):i.a.createElement(e.component,Object(a["a"])({},n,t,{route:e}))}})}))):null}},"0pkz":function(e,t,n){"use strict";var r=n("684d"),a=n("ZGY3"),o=n("AnAv"),i=n("uJNS"),l=n("vSpU"),c="Array Iterator",u=i.set,s=i.getterFor(c);e.exports=l(Array,"Array",(function(e,t){u(this,{type:c,target:r(e),index:0,kind:t})}),(function(){var e=s(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),o.Arguments=o.Array,a("keys"),a("values"),a("entries")},"0zpI":function(e,t,n){var r=n("cBxx"),a=n("MyUB"),o=n("fkhx"),i=n("RtFG"),l=n("wWVk"),c=n("9rFP"),u=1,s=2,f="[object Boolean]",d="[object Date]",p="[object Error]",m="[object Map]",h="[object Number]",v="[object RegExp]",g="[object Set]",y="[object String]",b="[object Symbol]",E="[object ArrayBuffer]",w="[object DataView]",x=r?r.prototype:void 0,k=x?x.valueOf:void 0;function S(e,t,n,r,x,S,O){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!S(new a(e),new a(t)));case f:case d:case h:return o(+e,+t);case p:return e.name==t.name&&e.message==t.message;case v:case y:return e==t+"";case m:var A=l;case g:var j=r&u;if(A||(A=c),e.size!=t.size&&!j)return!1;var C=O.get(e);if(C)return C==t;r|=s,O.set(e,t);var N=i(A(e),A(t),r,x,S,O);return O["delete"](e),N;case b:if(k)return k.call(e)==k.call(t)}return!1}e.exports=S},1623:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["groupBy-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"groupby"},a.a.createElement(o["AnchorLink"],{to:"#groupby","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"groupBy"),a.a.createElement("p",null,"\u5bf9\u6570\u7ec4\u8fdb\u884c\u5f52\u7c7b\u5904\u7406\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"groupBy: (namer: Function, list: any[]) => Object",lang:"js"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"namer \u5f52\u7c7b\u5904\u7406\u51fd\u6570\uff0c\u8fd4\u56de\u503c\u4e3a\u6240\u5f52\u7c7b\u7684 key \u540d\u3002"),a.a.createElement("li",null,"list \u9700\u8981\u5f52\u7c7b\u5904\u7406\u7684\u6570\u7ec4\u3002")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u5f52\u7c7b\u597d\u7684\u5bf9\u8c61\uff0c\u952e( key )\u4e3a\u5f52\u7c7b\u7684\u540d\uff0c\u503c( value )\u4e3a\u5c5e\u4e8e\u8fd9\u4e00\u7c7b\u7684\u6570\u636e\u3002")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["groupBy-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},"1B1/":function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("l4Xg"),l=a.a.memo((e=>{e.demos;return a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"source"},a.a.createElement(o["AnchorLink"],{to:"#source","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"source"),a.a.createElement("p",null,"\u5728\u7ebf\u8d44\u6e90\u52a0\u8f7d\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(i["a"],{code:"const source = {\n js: (src: string, externals?: string | string[]) => Promise;\n css: (href: string) => void;\n};",lang:"ts"}),a.a.createElement("h2",{id:"source-\u5bf9\u8c61\u5c5e\u6027"},a.a.createElement(o["AnchorLink"],{to:"#source-\u5bf9\u8c61\u5c5e\u6027","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"source \u5bf9\u8c61\u5c5e\u6027"),a.a.createElement("ul",null,a.a.createElement("li",null,"js: (src: string, externals?: string | string[]) \uff0c\u5728\u7ebf\u52a0\u8f7d ",a.a.createElement("code",null,"js")," \u8d44\u6e90\uff0c\u8fd4\u56de\u503c\u4e3a ",a.a.createElement("code",null,"Promise")," \u5bf9\u8c61\u3002"),a.a.createElement("li",null,"css(href: string)\uff0c\u5728\u7ebf\u52a0\u8f7d ",a.a.createElement("code",null,"css")," \u8d44\u6e90\u3002")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(i["a"],{code:"// \u52a0\u8f7d js \u4f8b\u5b50\nsource\n .js(\n 'chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/react_devtools_backend.js',\n 'js'\n )\n .then(function (e) {\n console.log(e)\n })\n .catch((er) => {\n console.log(er)\n })\n\n// \u52a0\u8f7d css \u4f8b\u5b50\nsource.css('https://ts.xcatliu.com/assets/reset.css')",lang:"javascript"})))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(l,{demos:n})}},"1DF2":function(e,t,n){var r=n("rkJ6");function a(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}e.exports=a},"1Grl":function(e,t,n){var r=n("7TNV"),a=n("lf6h"),o=Object.prototype,i=o.hasOwnProperty,l=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return a(e)&&i.call(e,"callee")&&!l.call(e,"callee")};e.exports=c},"1KG/":function(e,t,n){var r,a=function(){var e=String.fromCharCode,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",r={};function a(e,t){if(!r[e]){r[e]={};for(var n=0;n>>8,n[2*r+1]=i%256}return n},decompressFromUint8Array:function(t){if(null===t||void 0===t)return o.decompress(t);for(var n=new Array(t.length/2),r=0,a=n.length;r>=1}else{for(a=1,r=0;r>=1}f--,0==f&&(f=Math.pow(2,p),p++),delete l[s]}else for(a=i[s],r=0;r>=1;f--,0==f&&(f=Math.pow(2,p),p++),i[u]=d++,s=String(c)}if(""!==s){if(Object.prototype.hasOwnProperty.call(l,s)){if(s.charCodeAt(0)<256){for(r=0;r>=1}else{for(a=1,r=0;r>=1}f--,0==f&&(f=Math.pow(2,p),p++),delete l[s]}else for(a=i[s],r=0;r>=1;f--,0==f&&(f=Math.pow(2,p),p++)}for(a=2,r=0;r>=1;while(1){if(h<<=1,v==t-1){m.push(n(h));break}v++}return m.join("")},decompress:function(e){return null==e?"":""==e?null:o._decompress(e.length,32768,(function(t){return e.charCodeAt(t)}))},_decompress:function(t,n,r){var a,o,i,l,c,u,s,f=[],d=4,p=4,m=3,h="",v=[],g={val:r(0),position:n,index:1};for(a=0;a<3;a+=1)f[a]=a;i=0,c=Math.pow(2,2),u=1;while(u!=c)l=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),i|=(l>0?1:0)*u,u<<=1;switch(i){case 0:i=0,c=Math.pow(2,8),u=1;while(u!=c)l=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),i|=(l>0?1:0)*u,u<<=1;s=e(i);break;case 1:i=0,c=Math.pow(2,16),u=1;while(u!=c)l=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),i|=(l>0?1:0)*u,u<<=1;s=e(i);break;case 2:return""}f[3]=s,o=s,v.push(s);while(1){if(g.index>t)return"";i=0,c=Math.pow(2,m),u=1;while(u!=c)l=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),i|=(l>0?1:0)*u,u<<=1;switch(s=i){case 0:i=0,c=Math.pow(2,8),u=1;while(u!=c)l=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),i|=(l>0?1:0)*u,u<<=1;f[p++]=e(i),s=p-1,d--;break;case 1:i=0,c=Math.pow(2,16),u=1;while(u!=c)l=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),i|=(l>0?1:0)*u,u<<=1;f[p++]=e(i),s=p-1,d--;break;case 2:return v.join("")}if(0==d&&(d=Math.pow(2,m),m++),f[s])h=f[s];else{if(s!==p)return null;h=o+o.charAt(0)}v.push(h),f[p++]=o+h.charAt(0),d--,o=h,0==d&&(d=Math.pow(2,m),m++)}}};return o}();r=function(){return a}.call(t,n,t,e),void 0===r||(e.exports=r)},"1Sp3":function(e,t,n){var r=n("mRlv"),a=n("Ox3h"),o=n("WAeE"),i=o("metadata"),l=i.store||(i.store=new a),c=function(e,t,n){var a=l.get(e);if(!a){if(!n)return;l.set(e,a=new r)}var o=a.get(t);if(!o){if(!n)return;a.set(t,o=new r)}return o},u=function(e,t,n){var r=c(t,n,!1);return void 0!==r&&r.has(e)},s=function(e,t,n){var r=c(t,n,!1);return void 0===r?void 0:r.get(e)},f=function(e,t,n,r){c(n,r,!0).set(e,t)},d=function(e,t){var n=c(e,t,!1),r=[];return n&&n.forEach((function(e,t){r.push(t)})),r},p=function(e){return void 0===e||"symbol"==typeof e?e:String(e)};e.exports={store:l,getMap:c,has:u,get:s,set:f,keys:d,toKey:p}},"1a2d":function(e,t,n){"use strict";var r=n("OOCw");r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},"1aCi":function(e,t,n){var r=n("OOCw");r({target:"Math",stat:!0},{imulh:function(e,t){var n=65535,r=+e,a=+t,o=r&n,i=a&n,l=r>>16,c=a>>16,u=(l*i>>>0)+(o*i>>>16);return l*c+(u>>16)+((o*c>>>0)+(u&n)>>16)}})},"1aIJ":function(e,t){function n(e,t){var n=-1,r=null==e?0:e.length;while(++n1?arguments[1]:void 0,3);return c(n,(function(e,n){if(r(n,e,t))return c.stop(n)}),void 0,!0,!0).result}})},"1mu+":function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("sErw"),i=n("QHn5"),l=n("F/PV"),c=n("uZx/");r({target:"Map",proto:!0,real:!0,forced:a},{includes:function(e){return c(i(o(this)),(function(t,n){if(l(n,e))return c.stop()}),void 0,!0,!0).stopped}})},"1rhD":function(e,t,n){"use strict";var r=n("OOCw"),a=n("dz2h"),o=n("z43i"),i=n("uJNS"),l=n("vfR7"),c=l.codeAt,u=l.charAt,s="String Iterator",f=i.set,d=i.getterFor(s),p=a((function(e){f(this,{type:s,string:e,index:0})}),"String",(function(){var e,t=d(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=u(n,r),t.index+=e.length,{value:{codePoint:c(e,0),position:r},done:!1})}));r({target:"String",proto:!0},{codePoints:function(){return new p(String(o(this)))}})},"1uVM":function(e,t,n){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())}))}},"1wx2":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"1x+Y":function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("eyaU"),i=n("sErw"),l=n("lkgX"),c=n("mxPn"),u=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:a},{isSubsetOf:function(e){var t=c(this),n=i(e),r=n.has;return"function"!=typeof r&&(n=new(o("Set"))(e),r=l(n.has)),!u(t,(function(e){if(!1===r.call(n,e))return u.stop()}),void 0,!1,!0).stopped}})},"21Yw":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("2E/K"),a=n("nNWW");function o(e){var t=a["useRef"](!1),n=a["useState"](e),o=Object(r["a"])(n,2),i=o[0],l=o[1];function c(e,n){n&&t.current||l(e)}return a["useEffect"]((function(){return t.current=!1,function(){t.current=!0}}),[]),[i,c]}},"290e":function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"2E/K":function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}function a(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done);i=!0)if(o.push(r.value),t&&o.length===t)break}catch(c){l=!0,a=c}finally{try{i||null==n["return"]||n["return"]()}finally{if(l)throw a}}return o}}n.d(t,"a",(function(){return l}));var o=n("N4es");function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e,t){return r(e)||a(e,t)||Object(o["a"])(e,t)||i()}},"2Roc":function(e,t,n){var r=n("3Hes");t.f=r},"2Yex":function(e,t,n){"use strict";var r=n("OOCw"),a=n("YfbA").includes,o=n("ZGY3"),i=n("7/pz"),l=i("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!l},{includes:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},"2fm6":function(e,t,n){"use strict";var r=n("sErw"),a=n("lkgX");e.exports=function(){for(var e,t=r(this),n=a(t["delete"]),o=!0,i=0,l=arguments.length;i-1e-8&&e<1e-8?e-e*e/2:n(1+e)}},"2lI5":function(e,t,n){var r=n("67Yi"),a=n("orhk"),o=n("zzA2");function i(e){var t=-1,n=null==e?0:e.length;this.__data__=new r;while(++t{var t=e.demos,n=t["sample-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"sample"},a.a.createElement(o["AnchorLink"],{to:"#sample","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"sample"),a.a.createElement("p",null,"\u62bd\u6837\u51fd\u6570\u3002\u968f\u673a\u83b7\u53d6\u6570\u7ec4\u4e2d\u7684\u4e00\u4e2a\u503c\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"sample(array: [])",lang:"unknown"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"array \u6570\u636e\u6e90\u6570\u7ec4")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u968f\u673a\u4ece\u6570\u7ec4\u4e2d\u62bd\u53d6\u4e00\u4e2a\u503c\u8fd4\u56de\u3002")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"const arr1 = [1, 2, 3, 4]\nsample(arr1) // 3\nsample(arr1) // 2\n\nconst arr2 = [{ name: 'Amy' }, { name: 'Peter' }, [1], 2, true]\nsample(arr2) // {name: \"Peter\"}\nsample(arr2) // [1]",lang:"javascript"})),a.a.createElement(i["default"],t["sample-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},"3CiM":function(e,t,n){var r=n("OOCw"),a=n("CBsr");r({target:"Map",stat:!0},{of:a})},"3Hes":function(e,t,n){var r=n("6SQG"),a=n("WAeE"),o=n("oEsY"),i=n("KgcE"),l=n("O8qS"),c=n("V0hj"),u=a("wks"),s=r.Symbol,f=c?s:s&&s.withoutSetter||i;e.exports=function(e){return o(u,e)||(l&&o(s,e)?u[e]=s[e]:u[e]=f("Symbol."+e)),u[e]}},"3YDC":function(e,t,n){var r=n("OOCw"),a=n("1Sp3"),o=n("sErw"),i=n("zesz"),l=a.has,c=a.toKey,u=function(e,t,n){var r=l(e,t,n);if(r)return!0;var a=i(t);return null!==a&&u(e,a,n)};r({target:"Reflect",stat:!0},{hasMetadata:function(e,t){var n=arguments.length<3?void 0:c(arguments[2]);return u(e,o(t),n)}})},"3f79":function(e,t){e.exports=function(e,t,n,r){var a=n?n.call(r,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),c=0;ce.length)&&(t=e.length);for(var n=0,r=new Array(t);n{var t=e.demos,n=t["isIOS-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"isios"},a.a.createElement(o["AnchorLink"],{to:"#isios","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isIOS"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a ios \u5e73\u53f0\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isIOS: () => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("p",null,"\u65e0"),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u662f ios \u5e73\u53f0"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u4e0d\u662f ios \u5e73\u53f0")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isIOS-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},"4Whr":function(e,t,n){"use strict";var r=n("OOCw"),a=n("h+/6"),o=n("g0aX"),i=n("x+sk"),l=n("OdMF"),c=n("upgS"),u=n("tmip"),s=n("63eO"),f=n("THrr"),d=n("3Hes"),p=n("tDGd"),m=d("isConcatSpreadable"),h=9007199254740991,v="Maximum allowed index exceeded",g=p>=51||!a((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),y=f("concat"),b=function(e){if(!i(e))return!1;var t=e[m];return void 0!==t?!!t:o(e)},E=!g||!y;r({target:"Array",proto:!0,forced:E},{concat:function(e){var t,n,r,a,o,i=l(this),f=s(i,0),d=0;for(t=-1,r=arguments.length;th)throw TypeError(v);for(n=0;n=h)throw TypeError(v);u(f,d++,o)}return f.length=d,f}})},"4uZn":function(e,t,n){var r=n("6SQG");e.exports=r},"58gk":function(e,t){function n(e,t){var n=-1,r=null==e?0:e.length,a=0,o=[];while(++n1?arguments[1]:void 0,n),c=i>2?arguments[2]:void 0,u=void 0===c?n:a(c,n);while(u>l)t[l++]=e;return t}},"5jZn":function(e,t,n){var r=n("OOCw"),a=180/Math.PI;r({target:"Math",stat:!0},{degrees:function(e){return e*a}})},"5yEw":function(e,t,n){var r=n("3Hes"),a=r("toStringTag"),o={};o[a]="z",e.exports="[object z]"===String(o)},"63eO":function(e,t,n){var r=n("x+sk"),a=n("g0aX"),o=n("3Hes"),i=o("species");e.exports=function(e,t){var n;return a(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!a(n.prototype)?r(n)&&(n=n[i],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},"67Yi":function(e,t,n){var r=n("K29s"),a=n("AU2x"),o=n("u7Ge"),i=n("w7O4"),l=n("GRr6");function c(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t1?arguments[1]:void 0)}},"6jqD":function(e,t,n){var r=n("x+sk");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"6qLJ":function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["set-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"set"},a.a.createElement(o["AnchorLink"],{to:"#set","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"set"),a.a.createElement("p",null,"\u65e0\u75db\u8bbe\u7f6e\u5c5e\u6027\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"set: (obj: Object, keys: KType, value: any) => Object",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"obj \uff0c\u8bbe\u7f6e\u5bf9\u8c61"),a.a.createElement("li",null,"keys \uff0c\u8bbe\u7f6e key"),a.a.createElement("li",null,"value \uff0c\u8bbe\u7f6e value")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u8fd4\u56de\u8bbe\u7f6e\u597d\u7684\u5bf9\u8c61")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:'set({}, \'a.b.c.d\', \'hello world\')\n/* \n{\n "a": {\n "b": {\n "c": {\n "d": "hello world"\n }\n }\n }\n}\n*/',lang:"javascript"})),a.a.createElement(i["default"],t["set-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},"6ssM":function(e,t,n){var r=n("r+6h"),a=n("UQib"),o=n("ZVkV"),i=n("684d"),l=n("JSMs"),c=n("oEsY"),u=n("p3eN"),s=Object.getOwnPropertyDescriptor;t.f=r?s:function(e,t){if(e=i(e),t=l(t,!0),u)try{return s(e,t)}catch(n){}if(c(e,t))return o(!a.f.call(e,t),e[t])}},"6vUj":function(e,t,n){var r=n("pgBP"),a=n("dfcU"),o=n("Zjj6");function i(e){return o(e)?r(e):a(e)}e.exports=i},"7/pz":function(e,t,n){var r=n("r+6h"),a=n("h+/6"),o=n("oEsY"),i=Object.defineProperty,l={},c=function(e){throw e};e.exports=function(e,t){if(o(l,e))return l[e];t||(t={});var n=[][e],u=!!o(t,"ACCESSORS")&&t.ACCESSORS,s=o(t,0)?t[0]:c,f=o(t,1)?t[1]:void 0;return l[e]=!!n&&!a((function(){if(u&&!r)return!0;var e={length:-1};u?i(e,1,{enumerable:!0,get:c}):e[1]=1,n.call(e,s,f)}))}},"73fw":function(e,t,n){var r=n("6SQG"),a=n("x+sk"),o=r.document,i=a(o)&&a(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},"75i3":function(e,t,n){"use strict";n.r(t),n.d(t,"ApplyPluginsType",(function(){return W})),n.d(t,"Plugin",(function(){return J})),n.d(t,"dynamic",(function(){return M})),n.d(t,"isBrowser",(function(){return B}));var r=n("DBVu"),a=n("ptaF");n.d(t,"createBrowserHistory",(function(){return a["a"]})),n.d(t,"createHashHistory",(function(){return a["b"]})),n.d(t,"createMemoryHistory",(function(){return a["d"]}));var o=n("Bm2L");n.d(t,"__RouterContext",(function(){return o["h"]}));var i=n("QwZf");n.d(t,"Link",(function(){return i["a"]})),n.d(t,"MemoryRouter",(function(){return o["a"]})),n.d(t,"NavLink",(function(){return i["b"]})),n.d(t,"Prompt",(function(){return o["b"]})),n.d(t,"Redirect",(function(){return o["c"]})),n.d(t,"Route",(function(){return o["d"]})),n.d(t,"Router",(function(){return o["e"]})),n.d(t,"StaticRouter",(function(){return o["f"]})),n.d(t,"Switch",(function(){return o["g"]})),n.d(t,"matchPath",(function(){return o["i"]})),n.d(t,"useHistory",(function(){return o["j"]})),n.d(t,"useLocation",(function(){return o["k"]})),n.d(t,"useParams",(function(){return o["l"]})),n.d(t,"useRouteMatch",(function(){return o["m"]})),n.d(t,"withRouter",(function(){return o["n"]}));var l=n("nNWW"),c=n("WYEs");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n["return"]||n["return"]()}finally{if(l)throw o}}}}var O=Object(l["createContext"])(null),A=[],j=[],C=!1;function N(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e}))["catch"]((function(e){throw n.loading=!1,n.error=e,e})),n}function T(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var a=N(e[r]);a.loading?t.loading=!0:(t.loaded[r]=a.loaded,t.error=a.error),n.push(a.promise),a.promise.then((function(e){t.loaded[r]=e}))["catch"]((function(e){t.error=e}))}))}catch(r){t.error=r}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e}))["catch"]((function(e){throw t.loading=!1,e})),t}function P(e){return e&&e.__esModule?e["default"]:e}function _(e,t){return Object(l["createElement"])(P(e),t)}function D(e,t){var n=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:_,webpack:null,modules:null},t),r=null;function a(){if(!r){var t=new I(e,n);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if("undefined"===typeof window&&A.push(a),!C&&"undefined"!==typeof window&&"function"===typeof n.webpack){var o=n.webpack();j.push((function(e){var t,n=S(o);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(-1!==e.indexOf(r))return a()}}catch(i){n.e(i)}finally{n.f()}}))}var i=function(e,t){a();var o=Object(l["useContext"])(O),i=Object(c["useSubscription"])(r);return Object(l["useImperativeHandle"])(t,(function(){return{retry:r.retry}})),o&&Array.isArray(n.modules)&&n.modules.forEach((function(e){o(e)})),i.loading||i.error?Object(l["createElement"])(n.loading,{isLoading:i.loading,pastDelay:i.pastDelay,timedOut:i.timedOut,error:i.error,retry:r.retry}):i.loaded?n.render(i.loaded,e):null},u=Object(l["forwardRef"])(i);return u.preload=function(){return a()},u.displayName="LoadableComponent",u}var I=function(){function e(t,n){m(this,e),this._loadFn=t,this._opts=n,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return v(e,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var t=this._res,n=this._opts;t.loading&&("number"===typeof n.delay&&(0===n.delay?this._state.pastDelay=!0:this._delay=setTimeout((function(){e._update({pastDelay:!0})}),n.delay)),"number"===typeof n.timeout&&(this._timeout=setTimeout((function(){e._update({timedOut:!0})}),n.timeout))),this._res.promise.then((function(){e._update(),e._clearTimeouts()}))["catch"]((function(t){e._update(),e._clearTimeouts()})),this._update({})}},{key:"_update",value:function(e){this._state=s(s({},this._state),e),this._callbacks.forEach((function(e){return e()}))}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return s(s({},this._state),{},{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading})}},{key:"subscribe",value:function(e){var t=this;return this._callbacks.add(e),function(){t._callbacks["delete"](e)}}}]),e}();function F(e){return D(N,e)}function L(e){if("function"!==typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return D(T,e)}function R(e,t){var n=[];while(e.length){var r=e.pop();n.push(r(t))}return Promise.all(n).then((function(){if(e.length)return R(e,t)}))}function M(e){var t=F,n={loading:function(e){e.error,e.isLoading;return Object(l["createElement"])("p",null,"loading...")}};if("function"===typeof e)n.loader=e;else{if("object"!==f(e))throw new Error("Unexpect arguments ".concat(e));n=s(s({},n),e)}return t(n)}function z(e,t){if(!e)throw new Error(t)}F.Map=L,F.preloadAll=function(){return new Promise((function(e,t){R(A).then(e,t)}))},F.preloadReady=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(t){var n=function(){return C=!0,t()};R(j,e).then(n,n)}))},"undefined"!==typeof window&&(window.__NEXT_PRELOADREADY=F.preloadReady);var W,B=function(){return"undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement};function U(e){var t=e.fns,n=e.args;if(1===t.length)return t[0];var r=t.pop();return t.reduce((function(e,t){return function(){return t(e,n)}}),r)}function G(e){return!!e&&"object"===f(e)&&"function"===typeof e.then}(function(e){e["compose"]="compose",e["modify"]="modify",e["event"]="event"})(W||(W={}));var J=function(){function e(t){m(this,e),this.validKeys=void 0,this.hooks={},this.validKeys=(null===t||void 0===t?void 0:t.validKeys)||[]}return v(e,[{key:"register",value:function(e){var t=this;z(!!e.apply,"register failed, plugin.apply must supplied"),z(!!e.path,"register failed, plugin.path must supplied"),Object.keys(e.apply).forEach((function(n){z(t.validKeys.indexOf(n)>-1,"register failed, invalid key ".concat(n," from plugin ").concat(e.path,".")),t.hooks[n]||(t.hooks[n]=[]),t.hooks[n]=t.hooks[n].concat(e.apply[n])}))}},{key:"getHooks",value:function(e){var t=e.split("."),n=y(t),r=n[0],a=n.slice(1),o=this.hooks[r]||[];return a.length&&(o=o.map((function(e){try{var t,n=e,r=S(a);try{for(r.s();!(t=r.n()).done;){var o=t.value;n=n[o]}}catch(i){r.e(i)}finally{r.f()}return n}catch(l){return null}})).filter(Boolean)),o}},{key:"applyPlugins",value:function(e){var t=e.key,n=e.type,a=e.initialValue,o=e.args,i=e.async,l=this.getHooks(t)||[];switch(o&&z("object"===f(o),"applyPlugins failed, args must be plain object."),n){case W.modify:return i?l.reduce(function(){var e=p(Object(r["default"])().mark((function e(n,a){var i;return Object(r["default"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(z("function"===typeof a||"object"===f(a)||G(a),"applyPlugins failed, all hooks for key ".concat(t," must be function, plain object or Promise.")),!G(n)){e.next=5;break}return e.next=4,n;case 4:n=e.sent;case 5:if("function"!==typeof a){e.next=16;break}if(i=a(n,o),!G(i)){e.next=13;break}return e.next=10,i;case 10:return e.abrupt("return",e.sent);case 13:return e.abrupt("return",i);case 14:e.next=21;break;case 16:if(!G(a)){e.next=20;break}return e.next=19,a;case 19:a=e.sent;case 20:return e.abrupt("return",s(s({},n),a));case 21:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),G(a)?a:Promise.resolve(a)):l.reduce((function(e,n){return z("function"===typeof n||"object"===f(n),"applyPlugins failed, all hooks for key ".concat(t," must be function or plain object.")),"function"===typeof n?n(e,o):s(s({},e),n)}),a);case W.event:return l.forEach((function(e){z("function"===typeof e,"applyPlugins failed, all hooks for key ".concat(t," must be function.")),e(o)}));case W.compose:return function(){return U({fns:l.concat(a),args:o})()}}}}]),e}()},"78S/":function(e,t){e.exports="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView},"7EYs":function(e,t,n){var r=n("eyaU");e.exports=r("navigator","userAgent")||""},"7F/w":function(e,t,n){"use strict";var r=n("v3z7"),a=n("OdMF"),o=n("pKuQ"),i=n("dwb6"),l=n("upgS"),c=n("tmip"),u=n("MI4T");e.exports=function(e){var t,n,s,f,d,p,m=a(e),h="function"==typeof this?this:Array,v=arguments.length,g=v>1?arguments[1]:void 0,y=void 0!==g,b=u(m),E=0;if(y&&(g=r(g,v>2?arguments[2]:void 0,2)),void 0==b||h==Array&&i(b))for(t=l(m.length),n=new h(t);t>E;E++)p=y?g(m[E],E):m[E],c(n,E,p);else for(f=b.call(m),d=f.next,n=new h;!(s=d.call(f)).done;E++)p=y?o(f,g,[s.value,E],!0):s.value,c(n,E,p);return n.length=E,n}},"7HYU":function(e,t){function n(){this.__data__=[],this.size=0}e.exports=n},"7JKi":function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["memoize-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"memoize"},a.a.createElement(o["AnchorLink"],{to:"#memoize","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"memoize"),a.a.createElement("p",null,"\u8bb0\u5fc6\u51fd\u6570\uff0c\u7f13\u5b58\u7ed3\u679c\u3002"),a.a.createElement("p",null,"\u5982\u679c\u5df2\u7ecf\u88ab\u7f13\u5b58\u8fc7\uff0c\u4e0b\u6b21\u518d\u8c03\u7528\u76f4\u63a5\u53d6\u7f13\u5b58\u7684\u7ed3\u679c\uff0c\u4e0d\u4f1a\u518d\u6267\u884c\u51fd\u6570\u4e2d\u95f4\u5185\u5bb9\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"CachedFunction extends Function {\n cache: Map;\n}\nmemoize: (func: (value: void)) => CachedFunction;",lang:"unknown"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"func \u6267\u884c\u7684\u51fd\u6570")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"func \u6267\u884c\u7684\u51fd\u6570\u7684\u7ed3\u679c")),a.a.createElement("h2",{id:"\u4f7f\u7528\u65b9\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u4f7f\u7528\u65b9\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4f7f\u7528\u65b9\u6cd5"),a.a.createElement(l["a"],{code:"const memoizeFunc = memoize(function plus(param) {\n // \u6839\u636e param \u6765\u5224\u65ad\u6709\u6ca1\u7f13\u5b58, \u7b2c\u4e00\u6b21\u4f1a\u628a return \u7684\u7ed3\u679c\u7f13\u5b58\u4e0b\u6765\n console.log(param, ':first')\n return param + 1 // \u5c06\u4f1a\u88ab\u7f13\u5b58\n})\n\nconsole.log(memoizeFunc(1))",lang:"js"}),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["memoize-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},"7NTl":function(e,t,n){"use strict";var r=n("g0pg"),a=n("vMeL"),o=r.aTypedArrayConstructor,i=r.exportTypedArrayStaticMethod;i("of",(function(){var e=0,t=arguments.length,n=new(o(this))(t);while(t>e)n[e]=arguments[e++];return n}),a)},"7PoB":function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("eyaU"),i=n("sErw"),l=n("lkgX"),c=n("v3z7"),u=n("ZT9G"),s=n("QHn5"),f=n("uZx/");r({target:"Map",proto:!0,real:!0,forced:a},{mapValues:function(e){var t=i(this),n=s(t),r=c(e,arguments.length>1?arguments[1]:void 0,3),a=new(u(t,o("Map"))),d=l(a.set);return f(n,(function(e,n){d.call(a,e,r(n,e,t))}),void 0,!0,!0),a}})},"7TNV":function(e,t,n){var r=n("PORw"),a=n("lf6h"),o="[object Arguments]";function i(e){return a(e)&&r(e)==o}e.exports=i},"7Xfv":function(e,t,n){"use strict";var r=n("OOCw"),a=n("r+6h"),o=n("THzI"),i=n("OdMF"),l=n("lkgX"),c=n("0JbB");a&&r({target:"Object",proto:!0,forced:o},{__defineSetter__:function(e,t){c.f(i(this),e,{set:l(t),enumerable:!0,configurable:!0})}})},"7Yeq":function(e,t,n){"use strict";var r=n("SHha"),a="function"===typeof Symbol&&Symbol.for,o=a?Symbol.for("react.element"):60103,i=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,c=a?Symbol.for("react.strict_mode"):60108,u=a?Symbol.for("react.profiler"):60114,s=a?Symbol.for("react.provider"):60109,f=a?Symbol.for("react.context"):60110,d=a?Symbol.for("react.forward_ref"):60112,p=a?Symbol.for("react.suspense"):60113,m=a?Symbol.for("react.memo"):60115,h=a?Symbol.for("react.lazy"):60116,v="function"===typeof Symbol&&Symbol.iterator;function g(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n_.length&&_.push(e)}function F(e,t,n,r){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case o:case i:l=!0}}if(l)return n(r,e,""===t?"."+R(e,0):t),1;if(l=0,t=""===t?".":t+":",Array.isArray(e))for(var c=0;c0&&(!f.multiline||f.multiline&&"\n"!==e[f.lastIndex-1])&&(m="(?: "+m+")",v=" "+v,h++),n=new RegExp("^(?:"+m+")",p)),s&&(n=new RegExp("^"+m+"$(?!\\s)",p)),c&&(t=f.lastIndex),a=o.call(d?n:f,v),d?a?(a.input=a.input.slice(h),a[0]=a[0].slice(h),a.index=f.lastIndex,f.lastIndex+=a[0].length):f.lastIndex=0:c&&a&&(f.lastIndex=f.global?a.index+a[0].length:t),s&&a&&a.length>1&&i.call(a[0],n,(function(){for(l=1;l0?r:n)(e)}},AU2x:function(e,t,n){var r=n("F71Q");function a(e){var t=r(this,e)["delete"](e);return this.size-=t?1:0,t}e.exports=a},AnAv:function(e,t){e.exports={}},AqOu:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"B+gL":function(e,t,n){"use strict";var r=2147483647,a=36,o=1,i=26,l=38,c=700,u=72,s=128,f="-",d=/[^\0-\u007E]/,p=/[.\u3002\uFF0E\uFF61]/g,m="Overflow: input needs wider integers to process",h=a-o,v=Math.floor,g=String.fromCharCode,y=function(e){var t=[],n=0,r=e.length;while(n=55296&&a<=56319&&n>1,e+=v(e/t);e>h*i>>1;r+=a)e=v(e/h);return v(r+(h+1)*e/(e+l))},w=function(e){var t=[];e=y(e);var n,l,c=e.length,d=s,p=0,h=u;for(n=0;n=d&&lv((r-p)/S))throw RangeError(m);for(p+=(k-d)*S,d=k,n=0;nr)throw RangeError(m);if(l==d){for(var O=p,A=a;;A+=a){var j=A<=h?o:A>=h+i?i:A-h;if(O0?arguments[0]:void 0,s=this,p=[];if(j(s,{type:O,entries:p,updateURL:function(){},updateSearchParams:W}),void 0!==u)if(v(u))if(e=E(u),"function"===typeof e){t=e.call(u),n=t.next;while(!(r=n.call(t)).done){if(a=b(h(r.value)),o=a.next,(i=o.call(a)).done||(l=o.call(a)).done||!o.call(a).done)throw TypeError("Expected sequence with length 2");p.push({key:i.value+"",value:l.value+""})}}else for(c in u)d(u,c)&&p.push({key:c,value:u[c]+""});else z(p,"string"===typeof u?"?"===u.charAt(0)?u.slice(1):u:u+"")},J=G.prototype;l(J,{append:function(e,t){B(arguments.length,2);var n=C(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){B(arguments.length,1);var t=C(this),n=t.entries,r=e+"",a=0;while(ae.key){a.splice(t,0,e);break}t===n&&a.push(e)}r.updateURL()},forEach:function(e){var t,n=C(this).entries,r=p(e,arguments.length>1?arguments[1]:void 0,3),a=0;while(a1&&(t=arguments[1],v(t)&&(n=t.body,m(n)===O&&(r=t.headers?new k(t.headers):new k,r.has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=g(t,{body:y(0,String(n)),headers:y(0,r)}))),a.push(t)),x.apply(this,a)}}),e.exports={URLSearchParams:G,getState:C}},BLCN:function(e,t,n){"use strict";var r=n("OOCw"),a=n("Us7a").start,o=n("SRer");r({target:"String",proto:!0,forced:o},{padStart:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},BNr0:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["value-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"value"},a.a.createElement(o["AnchorLink"],{to:"#value","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"value"),a.a.createElement("p",null,"\u591a\u5c42\u9ed8\u8ba4\u503c\uff08\u53ea\u5728\u503c\u4e3a undefined \u60c5\u51b5\u4e0b\u751f\u6548\uff09\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"const value: (...values: any[]) => T",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"values\uff0c\u80fd\u4ece\u4e2d\u9009\u53d6\u7684\u9ed8\u8ba4\u503c")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"var v1,\n v2,\n v3 = 'default'\nconsole.log(v1) // undefined\nconsole.log(v2) // undefined\nconsole.log(v3) // \"default\"\n\nvalue(v1, v2, v3) // \"default\"\nvalue(v1, 0, v3) // 0\n\n// \u53ef\u4f20\u9012\u6267\u884c\u51fd\u6570\nvalue(\n v1,\n () => {\n console.log('v1\u6ca1\u6709\uff0c\u5c1d\u8bd5v2')\n return v2\n },\n () => {\n console.log('v2\u4e5f\u6ca1\u6709\uff0c\u5c1d\u8bd5v3')\n return v3\n }\n) // default",lang:"javascript"})),a.a.createElement(i["default"],t["value-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},BRxd:function(e,t,n){var r,a;(function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t>>16,c=a>>>16,u=(l*i>>>0)+(o*i>>>16);return l*c+(u>>>16)+((o*c>>>0)+(u&n)>>>16)}})},CZSf:function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},CZpw:function(e,t,n){"use strict";var r,a,o,i,l=n("OOCw"),c=n("qyeh"),u=n("6SQG"),s=n("eyaU"),f=n("N59M"),d=n("uF/W"),p=n("TxBV"),m=n("nBeg"),h=n("ct0+"),v=n("x+sk"),g=n("lkgX"),y=n("CZSf"),b=n("kk5s"),E=n("piBM"),w=n("uZx/"),x=n("eW2S"),k=n("ZT9G"),S=n("bbNk").set,O=n("OtMc"),A=n("rCLu"),j=n("Cqy2"),C=n("8d12"),N=n("86T+"),T=n("uJNS"),P=n("RzMS"),_=n("3Hes"),D=n("tDGd"),I=_("species"),F="Promise",L=T.get,R=T.set,M=T.getterFor(F),z=f,W=u.TypeError,B=u.document,U=u.process,G=s("fetch"),J=C.f,H=J,K="process"==b(U),V=!!(B&&B.createEvent&&u.dispatchEvent),q="unhandledrejection",$="rejectionhandled",X=0,Q=1,Y=2,Z=1,ee=2,te=P(F,(function(){var e=E(z)!==String(z);if(!e){if(66===D)return!0;if(!K&&"function"!=typeof PromiseRejectionEvent)return!0}if(c&&!z.prototype["finally"])return!0;if(D>=51&&/native code/.test(z))return!1;var t=z.resolve(1),n=function(e){e((function(){}),(function(){}))},r=t.constructor={};return r[I]=n,!(t.then((function(){}))instanceof n)})),ne=te||!x((function(e){z.all(e)["catch"]((function(){}))})),re=function(e){var t;return!(!v(e)||"function"!=typeof(t=e.then))&&t},ae=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;O((function(){var a=t.value,o=t.state==Q,i=0;while(r.length>i){var l,c,u,s=r[i++],f=o?s.ok:s.fail,d=s.resolve,p=s.reject,m=s.domain;try{f?(o||(t.rejection===ee&&ce(e,t),t.rejection=Z),!0===f?l=a:(m&&m.enter(),l=f(a),m&&(m.exit(),u=!0)),l===s.promise?p(W("Promise-chain cycle")):(c=re(l))?c.call(l,d,p):d(l)):p(a)}catch(h){m&&!u&&m.exit(),p(h)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&ie(e,t)}))}},oe=function(e,t,n){var r,a;V?(r=B.createEvent("Event"),r.promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},(a=u["on"+e])?a(r):e===q&&j("Unhandled promise rejection",n)},ie=function(e,t){S.call(u,(function(){var n,r=t.value,a=le(t);if(a&&(n=N((function(){K?U.emit("unhandledRejection",r,e):oe(q,e,r)})),t.rejection=K||le(t)?ee:Z,n.error))throw n.value}))},le=function(e){return e.rejection!==Z&&!e.parent},ce=function(e,t){S.call(u,(function(){K?U.emit("rejectionHandled",e):oe($,e,t.value)}))},ue=function(e,t,n,r){return function(a){e(t,n,a,r)}},se=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=Y,ae(e,t,!0))},fe=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw W("Promise can't be resolved itself");var a=re(n);a?O((function(){var r={done:!1};try{a.call(n,ue(fe,e,r,t),ue(se,e,r,t))}catch(o){se(e,r,o,t)}})):(t.value=n,t.state=Q,ae(e,t,!1))}catch(o){se(e,{done:!1},o,t)}}};te&&(z=function(e){y(this,z,F),g(e),r.call(this);var t=L(this);try{e(ue(fe,this,t),ue(se,this,t))}catch(n){se(this,t,n)}},r=function(e){R(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:X,value:void 0})},r.prototype=p(z.prototype,{then:function(e,t){var n=M(this),r=J(k(this,z));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=K?U.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=X&&ae(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new r,t=L(e);this.promise=e,this.resolve=ue(fe,e,t),this.reject=ue(se,e,t)},C.f=J=function(e){return e===z||e===o?new a(e):H(e)},c||"function"!=typeof f||(i=f.prototype.then,d(f.prototype,"then",(function(e,t){var n=this;return new z((function(e,t){i.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof G&&l({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return A(z,G.apply(u,arguments))}}))),l({global:!0,wrap:!0,forced:te},{Promise:z}),m(z,F,!1,!0),h(F),o=s(F),l({target:F,stat:!0,forced:te},{reject:function(e){var t=J(this);return t.reject.call(void 0,e),t.promise}}),l({target:F,stat:!0,forced:c||te},{resolve:function(e){return A(c&&this===o?z:this,e)}}),l({target:F,stat:!0,forced:ne},{all:function(e){var t=this,n=J(t),r=n.resolve,a=n.reject,o=N((function(){var n=g(t.resolve),o=[],i=0,l=1;w(e,(function(e){var c=i++,u=!1;o.push(void 0),l++,n.call(t,e).then((function(e){u||(u=!0,o[c]=e,--l||r(o))}),a)})),--l||r(o)}));return o.error&&a(o.value),n.promise},race:function(e){var t=this,n=J(t),r=n.reject,a=N((function(){var a=g(t.resolve);w(e,(function(e){a.call(t,e).then(n.resolve,r)}))}));return a.error&&r(a.value),n.promise}})},CpWJ:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("eyaU"),i=n("sErw"),l=n("lkgX"),c=n("v3z7"),u=n("ZT9G"),s=n("QHn5"),f=n("uZx/");r({target:"Map",proto:!0,real:!0,forced:a},{filter:function(e){var t=i(this),n=s(t),r=c(e,arguments.length>1?arguments[1]:void 0,3),a=new(u(t,o("Map"))),d=l(a.set);return f(n,(function(e,n){r(n,e,t)&&d.call(a,e,n)}),void 0,!0,!0),a}})},Cqy2:function(e,t,n){var r=n("6SQG");e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},CsJM:function(e,t,n){var r=n("z43i"),a=n("Vg85"),o="["+a+"]",i=RegExp("^"+o+o+"*"),l=RegExp(o+o+"*$"),c=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(i,"")),2&e&&(n=n.replace(l,"")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},Czbz:function(e,t,n){var r=n("OOCw"),a=n("HRbj");r({target:"WeakMap",stat:!0},{from:a})},D0rO:function(e,t,n){"use strict";var r=n("OOCw"),a=n("h+/6"),o=n("xy/A"),i=n("sErw"),l=n("erIx"),c=n("upgS"),u=n("ZT9G"),s=o.ArrayBuffer,f=o.DataView,d=s.prototype.slice,p=a((function(){return!new s(2).slice(1,void 0).byteLength}));r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:p},{slice:function(e,t){if(void 0!==d&&void 0===t)return d.call(i(this),e);var n=i(this).byteLength,r=l(e,n),a=l(void 0===t?n:t,n),o=new(u(this,s))(c(a-r)),p=new f(this),m=new f(o),h=0;while(r=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(l&&c){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;S(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}n.r(t),n.d(t,"default",(function(){return a}))},"DQ/D":function(e,t){function n(e,t){var n=-1,r=Array(e);while(++nc)a.f(e,n=r[c++],t[n]);return e}},Dkad:function(e,t,n){var r=n("GXoa");r("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},EA9V:function(e,t){function n(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}e.exports=n},EN7L:function(e,t,n){"use strict";n("M2ND");var r,a=n("OOCw"),o=n("r+6h"),i=n("Hy9b"),l=n("6SQG"),c=n("DS72"),u=n("uF/W"),s=n("CZSf"),f=n("oEsY"),d=n("NWlk"),p=n("7F/w"),m=n("vfR7").codeAt,h=n("B+gL"),v=n("nBeg"),g=n("BC4x"),y=n("uJNS"),b=l.URL,E=g.URLSearchParams,w=g.getState,x=y.set,k=y.getterFor("URL"),S=Math.floor,O=Math.pow,A="Invalid authority",j="Invalid scheme",C="Invalid host",N="Invalid port",T=/[A-Za-z]/,P=/[\d+-.A-Za-z]/,_=/\d/,D=/^(0x|0X)/,I=/^[0-7]+$/,F=/^\d+$/,L=/^[\dA-Fa-f]+$/,R=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,M=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,z=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,W=/[\u0009\u000A\u000D]/g,B=function(e,t){var n,r,a;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return C;if(n=G(t.slice(1,-1)),!n)return C;e.host=n}else if(Y(e)){if(t=h(t),R.test(t))return C;if(n=U(t),null===n)return C;e.host=n}else{if(M.test(t))return C;for(n="",r=p(t),a=0;a4)return e;for(n=[],r=0;r1&&"0"==a.charAt(0)&&(o=D.test(a)?16:8,a=a.slice(8==o?1:2)),""===a)i=0;else{if(!(10==o?F:8==o?I:L).test(a))return e;i=parseInt(a,o)}n.push(i)}for(r=0;r=O(256,5-t))return null}else if(i>255)return null;for(l=n.pop(),r=0;r6)return;r=0;while(d()){if(a=null,r>0){if(!("."==d()&&r<4))return;f++}if(!_.test(d()))return;while(_.test(d())){if(o=parseInt(d(),10),null===a)a=o;else{if(0==a)return;a=10*a+o}if(a>255)return;f++}c[u]=256*c[u]+a,r++,2!=r&&4!=r||u++}if(4!=r)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;c[u++]=t}else{if(null!==s)return;f++,u++,s=u}}if(null!==s){i=u-s,u=7;while(0!=u&&i>0)l=c[u],c[u--]=c[s+i-1],c[s+--i]=l}else if(8!=u)return;return c},J=function(e){for(var t=null,n=1,r=null,a=0,o=0;o<8;o++)0!==e[o]?(a>n&&(t=r,n=a),r=null,a=0):(null===r&&(r=o),++a);return a>n&&(t=r,n=a),t},H=function(e){var t,n,r,a;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=S(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=J(e),n=0;n<8;n++)a&&0===e[n]||(a&&(a=!1),r===n?(t+=n?":":"::",a=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},K={},V=d({},K,{" ":1,'"':1,"<":1,">":1,"`":1}),q=d({},V,{"#":1,"?":1,"{":1,"}":1}),$=d({},q,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),X=function(e,t){var n=m(e,0);return n>32&&n<127&&!f(t,e)?e:encodeURIComponent(e)},Q={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Y=function(e){return f(Q,e.scheme)},Z=function(e){return""!=e.username||""!=e.password},ee=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},te=function(e,t){var n;return 2==e.length&&T.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},ne=function(e){var t;return e.length>1&&te(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},re=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&te(t[0],!0)||t.pop()},ae=function(e){return"."===e||"%2e"===e.toLowerCase()},oe=function(e){return e=e.toLowerCase(),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},ie={},le={},ce={},ue={},se={},fe={},de={},pe={},me={},he={},ve={},ge={},ye={},be={},Ee={},we={},xe={},ke={},Se={},Oe={},Ae={},je=function(e,t,n,a){var o,i,l,c,u=n||ie,s=0,d="",m=!1,h=!1,v=!1;n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(z,"")),t=t.replace(W,""),o=p(t);while(s<=o.length){switch(i=o[s],u){case ie:if(!i||!T.test(i)){if(n)return j;u=ce;continue}d+=i.toLowerCase(),u=le;break;case le:if(i&&(P.test(i)||"+"==i||"-"==i||"."==i))d+=i.toLowerCase();else{if(":"!=i){if(n)return j;d="",u=ce,s=0;continue}if(n&&(Y(e)!=f(Q,d)||"file"==d&&(Z(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=d,n)return void(Y(e)&&Q[e.scheme]==e.port&&(e.port=null));d="","file"==e.scheme?u=be:Y(e)&&a&&a.scheme==e.scheme?u=ue:Y(e)?u=pe:"/"==o[s+1]?(u=se,s++):(e.cannotBeABaseURL=!0,e.path.push(""),u=Se)}break;case ce:if(!a||a.cannotBeABaseURL&&"#"!=i)return j;if(a.cannotBeABaseURL&&"#"==i){e.scheme=a.scheme,e.path=a.path.slice(),e.query=a.query,e.fragment="",e.cannotBeABaseURL=!0,u=Ae;break}u="file"==a.scheme?be:fe;continue;case ue:if("/"!=i||"/"!=o[s+1]){u=fe;continue}u=me,s++;break;case se:if("/"==i){u=he;break}u=ke;continue;case fe:if(e.scheme=a.scheme,i==r)e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.query=a.query;else if("/"==i||"\\"==i&&Y(e))u=de;else if("?"==i)e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.query="",u=Oe;else{if("#"!=i){e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.path.pop(),u=ke;continue}e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.query=a.query,e.fragment="",u=Ae}break;case de:if(!Y(e)||"/"!=i&&"\\"!=i){if("/"!=i){e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,u=ke;continue}u=he}else u=me;break;case pe:if(u=me,"/"!=i||"/"!=d.charAt(s+1))continue;s++;break;case me:if("/"!=i&&"\\"!=i){u=he;continue}break;case he:if("@"==i){m&&(d="%40"+d),m=!0,l=p(d);for(var g=0;g65535)return N;e.port=Y(e)&&E===Q[e.scheme]?null:E,d=""}if(n)return;u=xe;continue}return N}d+=i;break;case be:if(e.scheme="file","/"==i||"\\"==i)u=Ee;else{if(!a||"file"!=a.scheme){u=ke;continue}if(i==r)e.host=a.host,e.path=a.path.slice(),e.query=a.query;else if("?"==i)e.host=a.host,e.path=a.path.slice(),e.query="",u=Oe;else{if("#"!=i){ne(o.slice(s).join(""))||(e.host=a.host,e.path=a.path.slice(),re(e)),u=ke;continue}e.host=a.host,e.path=a.path.slice(),e.query=a.query,e.fragment="",u=Ae}}break;case Ee:if("/"==i||"\\"==i){u=we;break}a&&"file"==a.scheme&&!ne(o.slice(s).join(""))&&(te(a.path[0],!0)?e.path.push(a.path[0]):e.host=a.host),u=ke;continue;case we:if(i==r||"/"==i||"\\"==i||"?"==i||"#"==i){if(!n&&te(d))u=ke;else if(""==d){if(e.host="",n)return;u=xe}else{if(c=B(e,d),c)return c;if("localhost"==e.host&&(e.host=""),n)return;d="",u=xe}continue}d+=i;break;case xe:if(Y(e)){if(u=ke,"/"!=i&&"\\"!=i)continue}else if(n||"?"!=i)if(n||"#"!=i){if(i!=r&&(u=ke,"/"!=i))continue}else e.fragment="",u=Ae;else e.query="",u=Oe;break;case ke:if(i==r||"/"==i||"\\"==i&&Y(e)||!n&&("?"==i||"#"==i)){if(oe(d)?(re(e),"/"==i||"\\"==i&&Y(e)||e.path.push("")):ae(d)?"/"==i||"\\"==i&&Y(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&te(d)&&(e.host&&(e.host=""),d=d.charAt(0)+":"),e.path.push(d)),d="","file"==e.scheme&&(i==r||"?"==i||"#"==i))while(e.path.length>1&&""===e.path[0])e.path.shift();"?"==i?(e.query="",u=Oe):"#"==i&&(e.fragment="",u=Ae)}else d+=X(i,q);break;case Se:"?"==i?(e.query="",u=Oe):"#"==i?(e.fragment="",u=Ae):i!=r&&(e.path[0]+=X(i,K));break;case Oe:n||"#"!=i?i!=r&&("'"==i&&Y(e)?e.query+="%27":e.query+="#"==i?"%23":X(i,K)):(e.fragment="",u=Ae);break;case Ae:i!=r&&(e.fragment+=X(i,V));break}s++}},Ce=function(e){var t,n,r=s(this,Ce,"URL"),a=arguments.length>1?arguments[1]:void 0,i=String(e),l=x(r,{type:"URL"});if(void 0!==a)if(a instanceof Ce)t=k(a);else if(n=je(t={},String(a)),n)throw TypeError(n);if(n=je(l,i,null,t),n)throw TypeError(n);var c=l.searchParams=new E,u=w(c);u.updateSearchParams(l.query),u.updateURL=function(){l.query=String(c)||null},o||(r.href=Te.call(r),r.origin=Pe.call(r),r.protocol=_e.call(r),r.username=De.call(r),r.password=Ie.call(r),r.host=Fe.call(r),r.hostname=Le.call(r),r.port=Re.call(r),r.pathname=Me.call(r),r.search=ze.call(r),r.searchParams=We.call(r),r.hash=Be.call(r))},Ne=Ce.prototype,Te=function(){var e=k(this),t=e.scheme,n=e.username,r=e.password,a=e.host,o=e.port,i=e.path,l=e.query,c=e.fragment,u=t+":";return null!==a?(u+="//",Z(e)&&(u+=n+(r?":"+r:"")+"@"),u+=H(a),null!==o&&(u+=":"+o)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?i[0]:i.length?"/"+i.join("/"):"",null!==l&&(u+="?"+l),null!==c&&(u+="#"+c),u},Pe=function(){var e=k(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(r){return"null"}return"file"!=t&&Y(e)?t+"://"+H(e.host)+(null!==n?":"+n:""):"null"},_e=function(){return k(this).scheme+":"},De=function(){return k(this).username},Ie=function(){return k(this).password},Fe=function(){var e=k(this),t=e.host,n=e.port;return null===t?"":null===n?H(t):H(t)+":"+n},Le=function(){var e=k(this).host;return null===e?"":H(e)},Re=function(){var e=k(this).port;return null===e?"":String(e)},Me=function(){var e=k(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},ze=function(){var e=k(this).query;return e?"?"+e:""},We=function(){return k(this).searchParams},Be=function(){var e=k(this).fragment;return e?"#"+e:""},Ue=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(o&&c(Ne,{href:Ue(Te,(function(e){var t=k(this),n=String(e),r=je(t,n);if(r)throw TypeError(r);w(t.searchParams).updateSearchParams(t.query)})),origin:Ue(Pe),protocol:Ue(_e,(function(e){var t=k(this);je(t,String(e)+":",ie)})),username:Ue(De,(function(e){var t=k(this),n=p(String(e));if(!ee(t)){t.username="";for(var r=0;r{var t=e.demos,n=t["EventBus-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"eventbus"},a.a.createElement(o["AnchorLink"],{to:"#eventbus","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"EventBus"),a.a.createElement("p",null,"\u4e00\u79cd\u4e8b\u4ef6\u53d1\u5e03\u8ba2\u9605\u6a21\u5f0f\u3002\u901a\u8fc7\u5f02\u6b65\u5904\u7406\u5c06\u4e8b\u4ef6\u7684\u53d1\u8d77\u548c\u5904\u7406\u5206\u5272\u5f00\u6765\u5b9e\u73b0\u89e3\u8026\u5408\uff0c\u9ad8\u6027\u80fd\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"class EventBus {\n private listeners\n private getEventMap\n on: (\n event: string,\n listener: Function,\n {\n once,\n }?: {\n once?: boolean\n }\n ) => this\n once: (event: string, listener: Function, config?: {}) => this\n off: (event: string, listener: Function) => this\n emit: (event: string, ...args: any[]) => void\n}",lang:"ts"}),a.a.createElement("h2",{id:"\u5b9e\u4f8b\u5c5e\u6027"},a.a.createElement(o["AnchorLink"],{to:"#\u5b9e\u4f8b\u5c5e\u6027","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u5b9e\u4f8b\u5c5e\u6027"),a.a.createElement("ul",null,a.a.createElement("li",null,"listeners \u603b\u7684\u4e8b\u4ef6\u5bf9\u8c61\uff0c\u7ba1\u7406\u6240\u6709\u7684\u4e8b\u4ef6\u3002"),a.a.createElement("li",null,"getEventMap(event) \u6839\u636e\u4e8b\u4ef6\u540d event \u6765\u83b7\u5f97\u5bf9\u5e94\u7684 ",a.a.createElement("code",null,"Map")," \u5bf9\u8c61\u3002"),a.a.createElement("li",null,"on(event, callback) \u76d1\u542c\u53d1\u51fa\u7684\u4e8b\u4ef6 event \u3002"),a.a.createElement("li",null,"once(event, callback) \u76d1\u542c\u7b2c\u4e00\u6b21\u53d1\u51fa\u7684\u4e8b\u4ef6\u3002"),a.a.createElement("li",null,"off(event, listener) \u5220\u9664\u67d0\u4e2a\u76d1\u542c\u5668\u91cc\u7684\u4e8b\u4ef6 event \u3002"),a.a.createElement("li",null,"emit(event) \u53d1\u9001\u4e8b\u4ef6\u3002")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"EventBus \u7684\u5b9e\u4f8b")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["EventBus-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},"Ef+f":function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},EiSY:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("sErw"),i=n("lkgX");r({target:"Map",proto:!0,real:!0,forced:a},{update:function(e,t){var n=o(this),r=arguments.length;i(t);var a=n.has(e);if(!a&&r<3)throw TypeError("Updating absent value");var l=a?n.get(e):i(r>2?arguments[2]:void 0)(e,n);return n.set(e,t(l,e,n)),n}})},EnC2:function(e,t,n){},"F/PV":function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},F71Q:function(e,t,n){var r=n("pADs");function a(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}e.exports=a},FHCv:function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,a="function"===typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(e,t,n,r){var a=t&&t.prototype instanceof h?t:h,o=Object.create(a.prototype),i=new C(r||[]);return o._invoke=S(e,n,i),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}e.wrap=c;var s="suspendedStart",f="suspendedYield",d="executing",p="completed",m={};function h(){}function v(){}function g(){}var y={};y[o]=function(){return this};var b=Object.getPrototypeOf,E=b&&b(b(N([])));E&&E!==n&&r.call(E,o)&&(y=E);var w=g.prototype=h.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function k(e,t){function n(a,o,i,l){var c=u(e[a],e,o);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"===typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(f).then((function(e){s.value=e,i(s)}),(function(e){return n("throw",e,i,l)}))}l(c.arg)}var a;function o(e,r){function o(){return new t((function(t,a){n(e,r,t,a)}))}return a=a?a.then(o,o):o()}this._invoke=o}function S(e,t,n){var r=s;return function(a,o){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===a)throw o;return T()}n.method=a,n.arg=o;while(1){var i=n.delegate;if(i){var l=O(i,n);if(l){if(l===m)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===s)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=u(e,t,n);if("normal"===c.type){if(r=n.done?p:f,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.arg)}}}function O(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator["return"]&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var a=u(r,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function N(e){if(e){var n=e[o];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function n(){while(++a=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:N(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=r}catch(a){Function("r","regeneratorRuntime = r")(r)}},FbU2:function(e,t,n){var r=n("muZu"),a=n("eoSM");function o(e,t,n){var o=t(e);return a(e)?o:r(o,n(e))}e.exports=o},FfOG:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n("ptaF"),a={basename:"/"};window.routerBase&&(a.basename=window.routerBase);var o=Object({NODE_ENV:"production"}).__IS_SERVER?null:Object(r["b"])(a),i=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e||(o=Object(r["b"])(a)),o}},FlI8:function(e,t,n){var r=n("OOCw"),a=n("7F/w"),o=n("eW2S"),i=!o((function(e){Array.from(e)}));r({target:"Array",stat:!0,forced:i},{from:a})},Ft2i:function(e,t,n){"use strict";var r=n("OOCw"),a=n("lkgX"),o=n("OdMF"),i=n("h+/6"),l=n("rUEg"),c=[],u=c.sort,s=i((function(){c.sort(void 0)})),f=i((function(){c.sort(null)})),d=l("sort"),p=s||!f||!d;r({target:"Array",proto:!0,forced:p},{sort:function(e){return void 0===e?u.call(o(this)):u.call(o(this),a(e))}})},G2F8:function(e,t,n){var r=n("ANLo"),a=n("upgS");e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=a(t);if(t!==n)throw RangeError("Wrong length or index");return n}},G3cz:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return o}));var r=n("f2HW");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t{var t=e.demos,n=t["isExist-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"isexist"},a.a.createElement(o["AnchorLink"],{to:"#isexist","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isExist"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u5b58\u5728\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isExist: (value: any) => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value \uff0c\u8981\u5224\u65ad\u7684\u6570\u636e")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u662f\u5b58\u5728"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u662f\u4e0d\u5b58\u5728")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isExist-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},GLQI:function(e,t,n){var r=n("cBxx"),a=Object.prototype,o=a.hasOwnProperty,i=a.toString,l=r?r.toStringTag:void 0;function c(e){var t=o.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(c){}var a=i.call(e);return r&&(t?e[l]=n:delete e[l]),a}e.exports=c},"GLf+":function(e,t){var n=Function.prototype,r=n.toString;function a(e){if(null!=e){try{return r.call(e)}catch(t){}try{return e+""}catch(t){}}return""}e.exports=a},GQDD:function(e,t,n){var r=n("t+TA"),a=n("O4yA"),o=r(a,"Map");e.exports=o},GRr6:function(e,t,n){var r=n("F71Q");function a(e,t){var n=r(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}e.exports=a},GXoa:function(e,t,n){"use strict";var r=n("OOCw"),a=n("6SQG"),o=n("r+6h"),i=n("vMeL"),l=n("g0pg"),c=n("xy/A"),u=n("CZSf"),s=n("ZVkV"),f=n("MZA9"),d=n("upgS"),p=n("G2F8"),m=n("vViN"),h=n("JSMs"),v=n("oEsY"),g=n("elB0"),y=n("x+sk"),b=n("QWtl"),E=n("d8EH"),w=n("lFeU").f,x=n("N0ls"),k=n("M+Sl").forEach,S=n("ct0+"),O=n("0JbB"),A=n("6ssM"),j=n("uJNS"),C=n("aRba"),N=j.get,T=j.set,P=O.f,_=A.f,D=Math.round,I=a.RangeError,F=c.ArrayBuffer,L=c.DataView,R=l.NATIVE_ARRAY_BUFFER_VIEWS,M=l.TYPED_ARRAY_TAG,z=l.TypedArray,W=l.TypedArrayPrototype,B=l.aTypedArrayConstructor,U=l.isTypedArray,G="BYTES_PER_ELEMENT",J="Wrong length",H=function(e,t){var n=0,r=t.length,a=new(B(e))(r);while(r>n)a[n]=t[n++];return a},K=function(e,t){P(e,t,{get:function(){return N(this)[t]}})},V=function(e){var t;return e instanceof F||"ArrayBuffer"==(t=g(e))||"SharedArrayBuffer"==t},q=function(e,t){return U(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},$=function(e,t){return q(e,t=h(t,!0))?s(2,e[t]):_(e,t)},X=function(e,t,n){return!(q(e,t=h(t,!0))&&y(n)&&v(n,"value"))||v(n,"get")||v(n,"set")||n.configurable||v(n,"writable")&&!n.writable||v(n,"enumerable")&&!n.enumerable?P(e,t,n):(e[t]=n.value,e)};o?(R||(A.f=$,O.f=X,K(W,"buffer"),K(W,"byteOffset"),K(W,"byteLength"),K(W,"length")),r({target:"Object",stat:!0,forced:!R},{getOwnPropertyDescriptor:$,defineProperty:X}),e.exports=function(e,t,n){var o=e.match(/\d+$/)[0]/8,l=e+(n?"Clamped":"")+"Array",c="get"+e,s="set"+e,h=a[l],v=h,g=v&&v.prototype,O={},A=function(e,t){var n=N(e);return n.view[c](t*o+n.byteOffset,!0)},j=function(e,t,r){var a=N(e);n&&(r=(r=D(r))<0?0:r>255?255:255&r),a.view[s](t*o+a.byteOffset,r,!0)},_=function(e,t){P(e,t,{get:function(){return A(this,t)},set:function(e){return j(this,t,e)},enumerable:!0})};R?i&&(v=t((function(e,t,n,r){return u(e,v,l),C(function(){return y(t)?V(t)?void 0!==r?new h(t,m(n,o),r):void 0!==n?new h(t,m(n,o)):new h(t):U(t)?H(v,t):x.call(v,t):new h(p(t))}(),e,v)})),E&&E(v,z),k(w(h),(function(e){e in v||f(v,e,h[e])})),v.prototype=g):(v=t((function(e,t,n,r){u(e,v,l);var a,i,c,s=0,f=0;if(y(t)){if(!V(t))return U(t)?H(v,t):x.call(v,t);a=t,f=m(n,o);var h=t.byteLength;if(void 0===r){if(h%o)throw I(J);if(i=h-f,i<0)throw I(J)}else if(i=d(r)*o,i+f>h)throw I(J);c=i/o}else c=p(t),i=c*o,a=new F(i);T(e,{buffer:a,byteOffset:f,byteLength:i,length:c,view:new L(a)});while(so)a.push(arguments[o++]);if(r=t,(p(t)||void 0!==e)&&!le(e))return d(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!le(t))return t}),a[1]=t,V.apply(null,a)}})}K[B][U]||j(K[B],U,K[B].valueOf),L(K,W),P[z]=!0},GnHn:function(e,t,n){"use strict";var r=n("QkOx"),a=n("sErw"),o=n("z43i"),i=n("1wx2"),l=n("OR72");r("search",1,(function(e,t,n){return[function(t){var n=o(this),r=void 0==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var o=a(e),c=String(this),u=o.lastIndex;i(u,0)||(o.lastIndex=0);var s=l(o,c);return i(o.lastIndex,u)||(o.lastIndex=u),null===s?-1:s.index}]}))},Gs6S:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("sErw"),i=n("R8Xy"),l=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:a},{join:function(e){var t=o(this),n=i(t),r=void 0===e?",":String(e),a=[];return l(n,a.push,a,!1,!0),a.join(r)}})},"HN/d":function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?arguments[1]:void 0;return r(this),t=void 0!==u,t&&r(u),void 0==e?new this:(n=[],t?(i=0,l=a(u,c>2?arguments[2]:void 0,2),o(e,(function(e){n.push(l(e,i++))}))):o(e,n.push,n),new this(n))}},HU7W:function(e,t){function n(e,t){return null==e?void 0:e[t]}e.exports=n},HVkW:function(e,t,n){"use strict";var r=n("OOCw"),a=n("r+6h"),o=n("ct0+"),i=n("lkgX"),l=n("sErw"),c=n("x+sk"),u=n("CZSf"),s=n("0JbB").f,f=n("MZA9"),d=n("TxBV"),p=n("mxPn"),m=n("uZx/"),h=n("Cqy2"),v=n("3Hes"),g=n("uJNS"),y=v("observable"),b=g.get,E=g.set,w=function(e){return null==e?void 0:i(e)},x=function(e){var t=e.cleanup;if(t){e.cleanup=void 0;try{t()}catch(n){h(n)}}},k=function(e){return void 0===e.observer},S=function(e,t){if(!a){e.closed=!0;var n=t.subscriptionObserver;n&&(n.closed=!0)}t.observer=void 0},O=function(e,t){var n,r=E(this,{cleanup:void 0,observer:l(e),subscriptionObserver:void 0});a||(this.closed=!1);try{(n=w(e.start))&&n.call(e,this)}catch(s){h(s)}if(!k(r)){var o=r.subscriptionObserver=new A(this);try{var c=t(o),u=c;null!=c&&(r.cleanup="function"===typeof c.unsubscribe?function(){u.unsubscribe()}:i(c))}catch(s){return void o.error(s)}k(r)&&x(r)}};O.prototype=d({},{unsubscribe:function(){var e=b(this);k(e)||(S(this,e),x(e))}}),a&&s(O.prototype,"closed",{configurable:!0,get:function(){return k(b(this))}});var A=function(e){E(this,{subscription:e}),a||(this.closed=!1)};A.prototype=d({},{next:function(e){var t=b(b(this).subscription);if(!k(t)){var n=t.observer;try{var r=w(n.next);r&&r.call(n,e)}catch(a){h(a)}}},error:function(e){var t=b(this).subscription,n=b(t);if(!k(n)){var r=n.observer;S(t,n);try{var a=w(r.error);a?a.call(r,e):h(e)}catch(o){h(o)}x(n)}},complete:function(){var e=b(this).subscription,t=b(e);if(!k(t)){var n=t.observer;S(e,t);try{var r=w(n.complete);r&&r.call(n)}catch(a){h(a)}x(t)}}}),a&&s(A.prototype,"closed",{configurable:!0,get:function(){return k(b(b(this).subscription))}});var j=function(e){u(this,j,"Observable"),E(this,{subscriber:i(e)})};d(j.prototype,{subscribe:function(e){var t=arguments.length;return new O("function"===typeof e?{next:e,error:t>1?arguments[1]:void 0,complete:t>2?arguments[2]:void 0}:c(e)?e:{},b(this).subscriber)}}),d(j,{from:function(e){var t="function"===typeof this?this:j,n=w(l(e)[y]);if(n){var r=l(n.call(e));return r.constructor===t?r:new t((function(e){return r.subscribe(e)}))}var a=p(e);return new t((function(e){m(a,(function(t){if(e.next(t),e.closed)return m.stop()}),void 0,!1,!0),e.complete()}))},of:function(){var e="function"===typeof this?this:j,t=arguments.length,n=new Array(t),r=0;while(r>>0,o=t>>>0,i=n>>>0;return o-(r>>>0)-((~a&i|~(a^i)&a-i>>>0)>>>31)|0}})},Hy9b:function(e,t,n){var r=n("h+/6"),a=n("3Hes"),o=n("qyeh"),i=a("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t["delete"]("b"),n+=r+e})),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[i]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://\u0442\u0435\u0441\u0442").host||"#%D0%B1"!==new URL("http://a#\u0431").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},HznY:function(e,t,n){"use strict";var r=n("g0pg"),a=n("YfbA").includes,o=r.aTypedArray,i=r.exportTypedArrayMethod;i("includes",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},I0FN:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["uniqByKey-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"uniqbykey"},a.a.createElement(o["AnchorLink"],{to:"#uniqbykey","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"uniqByKey"),a.a.createElement("p",null,"\u53bb\u91cd\u5bf9\u8c61\u6570\u7ec4\u3002"),a.a.createElement("h3",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"uniqByKey: (array: any[], key: any) => T[];",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"array \uff0c\u5bf9\u8c61\u6570\u7ec4"),a.a.createElement("li",null,"key \uff0c\u6bd4\u5bf9\u7684 key \u503c")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u8fd4\u56de\u53bb\u91cd\u540e\u7684\u65b0\u6570\u7ec4\u3002")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"uniqByKey([{ name: 'a' }, { name: 'b' }, { name: 'a' }], 'name') // [{name: 'a'},{name: 'a'}]",lang:"javascript"})),a.a.createElement(i["default"],t["uniqByKey-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},I99e:function(e,t,n){var r=n("O4yA"),a=r["__core-js_shared__"];e.exports=a},"IuL+":function(e,t,n){var r=n("PORw"),a=n("VJj2"),o=n("lf6h"),i="[object Arguments]",l="[object Array]",c="[object Boolean]",u="[object Date]",s="[object Error]",f="[object Function]",d="[object Map]",p="[object Number]",m="[object Object]",h="[object RegExp]",v="[object Set]",g="[object String]",y="[object WeakMap]",b="[object ArrayBuffer]",E="[object DataView]",w="[object Float32Array]",x="[object Float64Array]",k="[object Int8Array]",S="[object Int16Array]",O="[object Int32Array]",A="[object Uint8Array]",j="[object Uint8ClampedArray]",C="[object Uint16Array]",N="[object Uint32Array]",T={};function P(e){return o(e)&&a(e.length)&&!!T[r(e)]}T[w]=T[x]=T[k]=T[S]=T[O]=T[A]=T[j]=T[C]=T[N]=!0,T[i]=T[l]=T[b]=T[c]=T[E]=T[u]=T[s]=T[f]=T[d]=T[p]=T[m]=T[h]=T[v]=T[g]=T[y]=!1,e.exports=P},J4oQ:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["capitalize-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"capitalize"},a.a.createElement(o["AnchorLink"],{to:"#capitalize","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"capitalize"),a.a.createElement("p",null,"\u4f7f\u9996\u5b57\u6bcd\u5927\u5199\u7684\u51fd\u6570\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"capitalize(word: string): string;",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"string\uff0c\u9700\u8981\u9996\u5b57\u6bcd\u53d8\u5927\u5199\u7684\u5b57\u7b26\u4e32")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u9996\u5b57\u6bcd\u5927\u5199\u540e\u7684\u5b57\u7b26\u4e32")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"capitalize('hello') // Hello",lang:"javascript"})),a.a.createElement(i["default"],t["capitalize-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},JG3H:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("nNWW");function a(e,t,n){var a=r["useRef"]({});return"value"in a.current&&!n(a.current.condition,t)||(a.current.value=e(),a.current.condition=t),a.current.value}},JLOv:function(e,t,n){var r=n("OOCw"),a=n("SuUP"),o=n("eyaU"),i=n("QWtl"),l=function(){var e=o("Object","freeze");return e?e(i(null)):i(null)};r({global:!0},{compositeKey:function(){return a.apply(Object,arguments).get("object",l)}})},JSMs:function(e,t,n){var r=n("x+sk");e.exports=function(e,t){if(!r(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!r(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},JsrE:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("973d"),i=n("vh/W"),l=n("2E/K"),c=n("ME80"),u=n("jtnu"),s=n("V6CC"),f=n("BRxd"),d=n.n(f),p=n("NuOa"),m=function(){if("undefined"===typeof navigator||"undefined"===typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null===e||void 0===e?void 0:e.substr(0,4))};function h(e){var t=r["useRef"]();t.current=e;var n=r["useCallback"]((function(){for(var e,n=arguments.length,r=new Array(n),a=0;ad&&pc+h){n=r-1;break}}for(var o=0,s=t-1;s>=0;s-=1){var f=e.get(u[s].key)||P;if(f[l]w,Ae=Object(r["useMemo"])((function(){var e=c;return ke?e=null===F&&_?c:c.slice(0,Math.min(c.length,R/v)):"number"===typeof w&&(e=c.slice(0,w)),e}),[c,v,F,w,ke]),je=Object(r["useMemo"])((function(){return ke?c.slice(he+1):c.slice(Ae.length)}),[c,Ae,ke,he]),Ce=Object(r["useCallback"])((function(e,t){var n;return"function"===typeof m?m(e):null!==(n=m&&(null===e||void 0===e?void 0:e[m]))&&void 0!==n?n:t}),[m]),Ne=Object(r["useCallback"])(f||function(e){return e},[f]);function Te(e,t,n){(pe!==e||void 0!==t&&t!==ue)&&(me(e),n||(be(eR){Te(r-1,e-a-oe+te);break}}O&&Fe(0)+oe>R&&se(null)}}),[R,U,te,oe,Ce,Ae]);var Le=ye&&!!je.length,Re={};null!==ue&&ke&&(Re={position:"absolute",left:ue,top:0});var Me,ze={prefixCls:Ee,responsive:ke,component:C,invalidate:Se},We=p?function(e,t){var n=Ce(e,t);return r["createElement"]($.Provider,{key:n,value:Object(s["a"])(Object(s["a"])({},ze),{},{order:t,item:e,itemKey:n,registerSize:_e,display:t<=he})},p(e,t))}:function(e,t){var n=Ce(e,t);return r["createElement"](W,Object(o["a"])({},ze,{order:t,key:n,item:e,renderItem:Ne,itemKey:n,registerSize:_e,display:t<=he}))},Be={order:Le?he:Number.MAX_SAFE_INTEGER,className:"".concat(Ee,"-rest"),registerSize:De,display:Le};if(S)S&&(Me=r["createElement"]($.Provider,{value:Object(s["a"])(Object(s["a"])({},ze),Be)},S(je)));else{var Ue=x||Y;Me=r["createElement"](W,Object(o["a"])({},ze,Be),"function"===typeof Ue?Ue(je):Ue)}var Ge=r["createElement"](j,Object(o["a"])({className:d()(!Se&&a,E),style:b,ref:t},T),Ae.map(We),Oe?Me:null,O&&r["createElement"](W,Object(o["a"])({},ze,{responsive:xe,responsiveDisabled:!ke,order:he,className:"".concat(Ee,"-suffix"),registerSize:Ie,display:!0,style:Re}),O));return xe&&(Ge=r["createElement"](k["a"],{onResize:Pe,disabled:!ke},Ge)),Ge}var ee=r["forwardRef"](Z);ee.displayName="Overflow",ee.Item=V,ee.RESPONSIVE=X,ee.INVALIDATE=Q;var te=ee,ne=te,re=n("p4sU"),ae=n("asw4"),oe=n("sLj8"),ie=n("qAhB"),le=n("Q1cZ"),ce=n("JG3H"),ue=["children","locked"],se=r["createContext"](null);function fe(e,t){var n=Object(s["a"])({},e);return Object.keys(t).forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n}function de(e){var t=e.children,n=e.locked,a=Object(u["a"])(e,ue),o=r["useContext"](se),i=Object(ce["a"])((function(){return fe(o,a)}),[o,a],(function(e,t){return!n&&(e[0]!==t[0]||!I()(e[1],t[1]))}));return r["createElement"](se.Provider,{value:i},t)}function pe(e,t,n,a){var o=r["useContext"](se),i=o.activeKey,l=o.onActive,c=o.onInactive,u={active:i===e};return t||(u.onMouseEnter=function(t){null===n||void 0===n||n({key:e,domEvent:t}),l(e)},u.onMouseLeave=function(t){null===a||void 0===a||a({key:e,domEvent:t}),c(e)}),u}var me=["item"];function he(e){var t=e.item,n=Object(u["a"])(e,me);return Object.defineProperty(n,"item",{get:function(){return Object(F["a"])(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}function ve(e){var t,n=e.icon,a=e.props,o=e.children;return t="function"===typeof n?r["createElement"](n,Object(s["a"])({},a)):n,t||o||null}function ge(e){var t=r["useContext"](se),n=t.mode,a=t.rtl,o=t.inlineIndent;if("inline"!==n)return null;var i=e;return a?{paddingRight:i*o}:{paddingLeft:i*o}}var ye=[],be=r["createContext"](null);function Ee(){return r["useContext"](be)}var we=r["createContext"](ye);function xe(e){var t=r["useContext"](we);return r["useMemo"]((function(){return void 0!==e?[].concat(Object(w["a"])(t),[e]):t}),[t,e])}var ke=r["createContext"](null),Se=r["createContext"](null);function Oe(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Ae(e){var t=r["useContext"](Se);return Oe(t,e)}var je=r["createContext"]({}),Ce=je,Ne=["title","attribute","elementRef"],Te=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Pe=["active"],_e=function(e){Object(oe["a"])(n,e);var t=Object(ie["a"])(n);function n(){return Object(re["a"])(this,n),t.apply(this,arguments)}return Object(ae["a"])(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,a=e.elementRef,i=Object(u["a"])(e,Ne),l=Object(le["a"])(i,["eventKey"]);return Object(F["a"])(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),r["createElement"](ne.Item,Object(o["a"])({},n,{title:"string"===typeof t?t:void 0},l,{ref:a}))}}]),n}(r["Component"]),De=function(e){var t,n=e.style,a=e.className,l=e.eventKey,c=(e.warnKey,e.disabled),f=e.itemIcon,p=e.children,m=e.role,h=e.onMouseEnter,v=e.onMouseLeave,g=e.onClick,y=e.onKeyDown,b=e.onFocus,E=Object(u["a"])(e,Te),x=Ae(l),k=r["useContext"](se),S=k.prefixCls,O=k.onItemClick,j=k.disabled,C=k.overflowDisabled,N=k.itemIcon,T=k.selectedKeys,P=k.onActive,_=r["useContext"](Ce),D=_._internalRenderMenuItem,I="".concat(S,"-item"),F=r["useRef"](),L=r["useRef"](),R=j||c,M=xe(l);var z=function(e){return{key:l,keyPath:Object(w["a"])(M).reverse(),item:F.current,domEvent:e}},W=f||N,B=pe(l,R,h,v),U=B.active,G=Object(u["a"])(B,Pe),J=T.includes(l),H=ge(M.length),K=function(e){if(!R){var t=z(e);null===g||void 0===g||g(he(t)),O(t)}},V=function(e){if(null===y||void 0===y||y(e),e.which===A["a"].ENTER){var t=z(e);null===g||void 0===g||g(he(t)),O(t)}},q=function(e){P(l),null===b||void 0===b||b(e)},$={};"option"===e.role&&($["aria-selected"]=J);var X=r["createElement"](_e,Object(o["a"])({ref:F,elementRef:L,role:null===m?"none":m||"menuitem",tabIndex:c?null:-1,"data-menu-id":C&&x?null:x},E,G,$,{component:"li","aria-disabled":c,style:Object(s["a"])(Object(s["a"])({},H),n),className:d()(I,(t={},Object(i["a"])(t,"".concat(I,"-active"),U),Object(i["a"])(t,"".concat(I,"-selected"),J),Object(i["a"])(t,"".concat(I,"-disabled"),R),t),a),onClick:K,onKeyDown:V,onFocus:q}),p,r["createElement"](ve,{props:Object(s["a"])(Object(s["a"])({},e),{},{isSelected:J}),icon:W}));return D&&(X=D(X,e,{selected:J})),X};function Ie(e){var t=e.eventKey,n=Ee(),a=xe(t);return r["useEffect"]((function(){if(n)return n.registerPath(t,a),function(){n.unregisterPath(t,a)}}),[a]),n?null:r["createElement"](De,e)}var Fe=Ie,Le=["label","children","key","type"];function Re(e,t){return Object(p["a"])(e).map((function(e,n){if(r["isValidElement"](e)){var a,o,i=e.key,l=null!==(a=null===(o=e.props)||void 0===o?void 0:o.eventKey)&&void 0!==a?a:i,c=null===l||void 0===l;c&&(l="tmp_key-".concat([].concat(Object(w["a"])(t),[n]).join("-")));var u={key:l,eventKey:l};return r["cloneElement"](e,u)}return e}))}function Me(e){return(e||[]).map((function(e,t){if(e&&"object"===Object(c["a"])(e)){var n=e.label,a=e.children,i=e.key,l=e.type,s=Object(u["a"])(e,Le),f=null!==i&&void 0!==i?i:"tmp-".concat(t);return a||"group"===l?"group"===l?r["createElement"](ta,Object(o["a"])({key:f},s,{title:n}),Me(a)):r["createElement"](wr,Object(o["a"])({key:f},s,{title:n}),Me(a)):"divider"===l?r["createElement"](na,Object(o["a"])({key:f},s)):r["createElement"](Fe,Object(o["a"])({key:f},s),n)}return null})).filter((function(e){return e}))}function ze(e,t,n){var r=e;return t&&(r=Me(t)),Re(r,n)}function We(e){var t=r["useRef"](e);t.current=e;var n=r["useCallback"]((function(){for(var e,n=arguments.length,r=new Array(n),a=0;a=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function hn(e,t,n,r){var a=un.clone(e),o={width:t.width,height:t.height};return r.adjustX&&a.left=n.left&&a.left+o.width>n.right&&(o.width-=a.left+o.width-n.right),r.adjustX&&a.left+o.width>n.right&&(a.left=Math.max(n.right-o.width,n.left)),r.adjustY&&a.top=n.top&&a.top+o.height>n.bottom&&(o.height-=a.top+o.height-n.bottom),r.adjustY&&a.top+o.height>n.bottom&&(a.top=Math.max(n.bottom-o.height,n.top)),un.mix(a,o)}function vn(e){var t,n,r;if(un.isWindow(e)||9===e.nodeType){var a=un.getWindow(e);t={left:un.getWindowScrollLeft(a),top:un.getWindowScrollTop(a)},n=un.viewportWidth(a),r=un.viewportHeight(a)}else t=un.offset(e),n=un.outerWidth(e),r=un.outerHeight(e);return t.width=n,t.height=r,t}function gn(e,t){var n=t.charAt(0),r=t.charAt(1),a=e.width,o=e.height,i=e.left,l=e.top;return"c"===n?l+=o/2:"b"===n&&(l+=o),"c"===r?i+=a/2:"r"===r&&(i+=a),{left:i,top:l}}function yn(e,t,n,r,a){var o=gn(t,n[1]),i=gn(e,n[0]),l=[i.left-o.left,i.top-o.top];return{left:Math.round(e.left-l[0]+r[0]-a[0]),top:Math.round(e.top-l[1]+r[1]-a[1])}}function bn(e,t,n){return e.leftn.right}function En(e,t,n){return e.topn.bottom}function wn(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.right||r.top>=n.bottom}function Nn(e,t,n){var r=n.target||t,a=vn(r),o=!Cn(r,n.overflow&&n.overflow.alwaysByViewport);return jn(e,a,n,o)}function Tn(e,t,n){var r,a,o=un.getDocument(e),i=o.defaultView||o.parentWindow,l=un.getWindowScrollLeft(i),c=un.getWindowScrollTop(i),u=un.viewportWidth(i),s=un.viewportHeight(i);r="pageX"in t?t.pageX:l+t.clientX,a="pageY"in t?t.pageY:c+t.clientY;var f={left:r,top:a,width:0,height:0},d=r>=0&&r<=l+u&&a>=0&&a<=c+s,p=[n.points[0],"cc"];return jn(e,f,st(st({},n),{},{points:p}),d)}Nn.__getOffsetParent=fn,Nn.__getVisibleRectForElement=mn;var Pn=n("rDMZ"),_n=n.n(Pn),Dn=n("QQXB");function In(e,t){return e===t||!(!e||!t)&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&(e.clientX===t.clientX&&e.clientY===t.clientY))}function Fn(e,t){e!==document.activeElement&&qe(t,e)&&"function"===typeof e.focus&&e.focus()}function Ln(e,t){var n=null,r=null;function a(e){var a=Object(l["a"])(e,1),o=a[0].target;if(document.documentElement.contains(o)){var i=o.getBoundingClientRect(),c=i.width,u=i.height,s=Math.floor(c),f=Math.floor(u);n===s&&r===f||Promise.resolve().then((function(){t({width:s,height:f})})),n=s,r=f}}var o=new Dn["a"](a);return e&&o.observe(e),function(){o.disconnect()}}var Rn=function(e,t){var n=a.a.useRef(!1),r=a.a.useRef(null);function o(){window.clearTimeout(r.current)}function i(a){if(o(),n.current&&!0!==a)r.current=window.setTimeout((function(){n.current=!1,i()}),t);else{if(!1===e())return;n.current=!0,r.current=window.setTimeout((function(){n.current=!1}),t)}}return[i,function(){n.current=!1,o()}]};function Mn(e){return"function"!==typeof e?null:e()}function zn(e){return"object"===Object(c["a"])(e)&&e?e:null}var Wn=function(e,t){var n=e.children,r=e.disabled,o=e.target,i=e.align,c=e.onAlign,u=e.monitorWindowResize,s=e.monitorBufferTime,f=void 0===s?0:s,d=a.a.useRef({}),p=a.a.useRef(),m=a.a.Children.only(n),h=a.a.useRef({});h.current.disabled=r,h.current.target=o,h.current.align=i,h.current.onAlign=c;var v=Rn((function(){var e=h.current,t=e.disabled,n=e.target,r=e.align,a=e.onAlign;if(!t&&n){var o,i=p.current,l=Mn(n),c=zn(n);d.current.element=l,d.current.point=c,d.current.align=r;var u=document,s=u.activeElement;return l&&ct(l)?o=Nn(i,l,r):c&&(o=Tn(i,c,r)),Fn(s,i),a&&o&&a(i,o),!0}return!1}),f),g=Object(l["a"])(v,2),y=g[0],b=g[1],E=a.a.useRef({cancel:function(){}}),w=a.a.useRef({cancel:function(){}});a.a.useEffect((function(){var e=Mn(o),t=zn(o);p.current!==w.current.element&&(w.current.cancel(),w.current.element=p.current,w.current.cancel=Ln(p.current,y)),d.current.element===e&&In(d.current.point,t)&&_n()(d.current.align,i)||(y(),E.current.element!==e&&(E.current.cancel(),E.current.element=e,E.current.cancel=Ln(e,y)))})),a.a.useEffect((function(){r?b():y()}),[r]);var x=a.a.useRef(null);return a.a.useEffect((function(){u?x.current||(x.current=Qe(window,"resize",y)):x.current&&(x.current.remove(),x.current=null)}),[u]),a.a.useEffect((function(){return function(){E.current.cancel(),w.current.cancel(),x.current&&x.current.remove(),b()}}),[]),a.a.useImperativeHandle(t,(function(){return{forceAlign:function(){return y(!0)}}})),a.a.isValidElement(m)&&(m=a.a.cloneElement(m,{ref:Object(Xe["a"])(m.ref,p)})),m},Bn=a.a.forwardRef(Wn);Bn.displayName="Align";var Un=Bn,Gn=Un;function Jn(){Jn=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(N){u=function(e,t,n){return e[t]=n}}function s(e,t,n,a){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),l=new A(a||[]);return r(i,"_invoke",{value:x(e,n,l)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(N){return{type:"throw",arg:N}}}e.wrap=s;var d={};function p(){}function m(){}function h(){}var v={};u(v,o,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(j([])));y&&y!==t&&n.call(y,o)&&(v=y);var b=h.prototype=p.prototype=Object.create(v);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function a(r,o,i,l){var u=f(e[r],e,o);if("throw"!==u.type){var s=u.arg,d=s.value;return d&&"object"==Object(c["a"])(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,i,l)}),(function(e){a("throw",e,i,l)})):t.resolve(d).then((function(e){s.value=e,i(s)}),(function(e){return a("throw",e,i,l)}))}l(u.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return C()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var l=k(i,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=f(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function k(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=f(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function j(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(l&&c){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;O(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:j(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function Hn(e,t,n,r,a,o,i){try{var l=e[o](i),c=l.value}catch(u){return void n(u)}l.done?t(c):Promise.resolve(c).then(r,a)}function Kn(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Hn(o,r,a,i,l,"next",e)}function l(e){Hn(o,r,a,i,l,"throw",e)}i(void 0)}))}}var Vn=["measure","alignPre","align",null,"motion"],qn=function(e,t){var n=Object(y["a"])(null),a=Object(l["a"])(n,2),o=a[0],i=a[1],c=Object(r["useRef"])();function u(e){i(e,!0)}function s(){x["a"].cancel(c.current)}function f(e){s(),c.current=Object(x["a"])((function(){u((function(e){switch(o){case"align":return"motion";case"motion":return"stable";default:}return e})),null===e||void 0===e||e()}))}return Object(r["useEffect"])((function(){u("measure")}),[e]),Object(r["useEffect"])((function(){switch(o){case"measure":t();break;default:}o&&(c.current=Object(x["a"])(Kn(Jn().mark((function e(){var t,n;return Jn().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=Vn.indexOf(o),n=Vn[t+1],n&&-1!==t&&u(n);case 3:case"end":return e.stop()}}),e)})))))}),[o]),Object(r["useEffect"])((function(){return function(){s()}}),[]),[o,f]},$n=function(e){var t=r["useState"]({width:0,height:0}),n=Object(l["a"])(t,2),a=n[0],o=n[1];function i(e){o({width:e.offsetWidth,height:e.offsetHeight})}var c=r["useMemo"]((function(){var t={};if(e){var n=a.width,r=a.height;-1!==e.indexOf("height")&&r?t.height=r:-1!==e.indexOf("minHeight")&&r&&(t.minHeight=r),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,a]);return[c,i]},Xn=r["forwardRef"]((function(e,t){var n=e.visible,a=e.prefixCls,i=e.className,c=e.style,u=e.children,f=e.zIndex,p=e.stretch,m=e.destroyPopupOnHide,h=e.forceRender,v=e.align,y=e.point,b=e.getRootDomNode,E=e.getClassNameFromAlign,w=e.onAlign,x=e.onMouseEnter,k=e.onMouseLeave,S=e.onMouseDown,O=e.onTouchStart,A=e.onClick,j=Object(r["useRef"])(),C=Object(r["useRef"])(),N=Object(r["useState"])(),T=Object(l["a"])(N,2),P=T[0],_=T[1],D=$n(p),I=Object(l["a"])(D,2),F=I[0],L=I[1];function R(){p&&L(b())}var M=qn(n,R),z=Object(l["a"])(M,2),W=z[0],B=z[1],U=Object(r["useState"])(0),G=Object(l["a"])(U,2),J=G[0],H=G[1],K=Object(r["useRef"])();function V(){return y||b}function q(){var e;null===(e=j.current)||void 0===e||e.forceAlign()}function $(e,t){var n=E(t);P!==n&&_(n),H((function(e){return e+1})),"align"===W&&(null===w||void 0===w||w(e,t))}Object(g["a"])((function(){"alignPre"===W&&H(0)}),[W]),Object(g["a"])((function(){"align"===W&&(J<3?q():B((function(){var e;null===(e=K.current)||void 0===e||e.call(K)})))}),[J]);var X=Object(s["a"])({},ot(e));function Q(){return new Promise((function(e){K.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=X[e];X[e]=function(e,n){return B(),null===t||void 0===t?void 0:t(e,n)}})),r["useEffect"]((function(){X.motionName||"motion"!==W||B()}),[X.motionName,W]),r["useImperativeHandle"](t,(function(){return{forceAlign:q,getElement:function(){return C.current}}}));var Y=Object(s["a"])(Object(s["a"])({},F),{},{zIndex:f,opacity:"motion"!==W&&"stable"!==W&&n?0:void 0,pointerEvents:n||"stable"===W?void 0:"none"},c),Z=!0;null===v||void 0===v||!v.points||"align"!==W&&"stable"!==W||(Z=!1);var ee=u;return r["Children"].count(u)>1&&(ee=r["createElement"]("div",{className:"".concat(a,"-content")},u)),r["createElement"](at["a"],Object(o["a"])({visible:n,ref:C,leavedClassName:"".concat(a,"-hidden")},X,{onAppearPrepare:Q,onEnterPrepare:Q,removeOnLeave:m,forceRender:h}),(function(e,t){var n=e.className,o=e.style,l=d()(a,i,P,n);return r["createElement"](Gn,{target:V(),key:"popup",ref:j,monitorWindowResize:!0,disabled:Z,align:v,onAlign:$},r["createElement"]("div",{ref:t,className:l,onMouseEnter:x,onMouseLeave:k,onMouseDownCapture:S,onTouchStartCapture:O,onClick:A,style:Object(s["a"])(Object(s["a"])({},o),Y)},ee))}))}));Xn.displayName="PopupInner";var Qn=Xn,Yn=r["forwardRef"]((function(e,t){var n=e.prefixCls,a=e.visible,i=e.zIndex,l=e.children,c=e.mobile;c=void 0===c?{}:c;var u=c.popupClassName,f=c.popupStyle,p=c.popupMotion,m=void 0===p?{}:p,h=c.popupRender,v=e.onClick,g=r["useRef"]();r["useImperativeHandle"](t,(function(){return{forceAlign:function(){},getElement:function(){return g.current}}}));var y=Object(s["a"])({zIndex:i},f),b=l;return r["Children"].count(l)>1&&(b=r["createElement"]("div",{className:"".concat(n,"-content")},l)),h&&(b=h(b)),r["createElement"](at["a"],Object(o["a"])({visible:a,ref:g,removeOnLeave:!0},m),(function(e,t){var a=e.className,o=e.style,i=d()(n,u,a);return r["createElement"]("div",{ref:t,className:i,onClick:v,style:Object(s["a"])(Object(s["a"])({},o),y)},b)}))}));Yn.displayName="MobilePopupInner";var Zn=Yn,er=["visible","mobile"],tr=r["forwardRef"]((function(e,t){var n=e.visible,a=e.mobile,i=Object(u["a"])(e,er),c=Object(r["useState"])(n),f=Object(l["a"])(c,2),d=f[0],p=f[1],h=Object(r["useState"])(!1),v=Object(l["a"])(h,2),g=v[0],y=v[1],b=Object(s["a"])(Object(s["a"])({},i),{},{visible:d});Object(r["useEffect"])((function(){p(n),n&&a&&y(m())}),[n,a]);var E=g?r["createElement"](Zn,Object(o["a"])({},b,{mobile:a,ref:t})):r["createElement"](Qn,Object(o["a"])({},b,{ref:t}));return r["createElement"]("div",null,r["createElement"](it,b),E)}));tr.displayName="Popup";var nr=tr,rr=r["createContext"](null),ar=rr;function or(){}function ir(){return""}function lr(e){return e?e.ownerDocument:window.document}var cr=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function ur(e){var t=function(t){Object(oe["a"])(a,t);var n=Object(ie["a"])(a);function a(e){var t,l;return Object(re["a"])(this,a),t=n.call(this,e),Object(i["a"])(Object(He["a"])(t),"popupRef",r["createRef"]()),Object(i["a"])(Object(He["a"])(t),"triggerRef",r["createRef"]()),Object(i["a"])(Object(He["a"])(t),"portalContainer",void 0),Object(i["a"])(Object(He["a"])(t),"attachId",void 0),Object(i["a"])(Object(He["a"])(t),"clickOutsideHandler",void 0),Object(i["a"])(Object(He["a"])(t),"touchOutsideHandler",void 0),Object(i["a"])(Object(He["a"])(t),"contextMenuOutsideHandler1",void 0),Object(i["a"])(Object(He["a"])(t),"contextMenuOutsideHandler2",void 0),Object(i["a"])(Object(He["a"])(t),"mouseDownTimeout",void 0),Object(i["a"])(Object(He["a"])(t),"focusTime",void 0),Object(i["a"])(Object(He["a"])(t),"preClickTime",void 0),Object(i["a"])(Object(He["a"])(t),"preTouchTime",void 0),Object(i["a"])(Object(He["a"])(t),"delayTimer",void 0),Object(i["a"])(Object(He["a"])(t),"hasPopupMouseDown",void 0),Object(i["a"])(Object(He["a"])(t),"onMouseEnter",(function(e){var n=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",e),t.delaySetPopupVisible(!0,n,n?null:e)})),Object(i["a"])(Object(He["a"])(t),"onMouseMove",(function(e){t.fireEvents("onMouseMove",e),t.setPoint(e)})),Object(i["a"])(Object(He["a"])(t),"onMouseLeave",(function(e){t.fireEvents("onMouseLeave",e),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)})),Object(i["a"])(Object(He["a"])(t),"onPopupMouseEnter",(function(){t.clearDelayTimer()})),Object(i["a"])(Object(He["a"])(t),"onPopupMouseLeave",(function(e){var n;e.relatedTarget&&!e.relatedTarget.setTimeout&&qe(null===(n=t.popupRef.current)||void 0===n?void 0:n.getElement(),e.relatedTarget)||t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)})),Object(i["a"])(Object(He["a"])(t),"onFocus",(function(e){t.fireEvents("onFocus",e),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))})),Object(i["a"])(Object(He["a"])(t),"onMouseDown",(function(e){t.fireEvents("onMouseDown",e),t.preClickTime=Date.now()})),Object(i["a"])(Object(He["a"])(t),"onTouchStart",(function(e){t.fireEvents("onTouchStart",e),t.preTouchTime=Date.now()})),Object(i["a"])(Object(He["a"])(t),"onBlur",(function(e){t.fireEvents("onBlur",e),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)})),Object(i["a"])(Object(He["a"])(t),"onContextMenu",(function(e){e.preventDefault(),t.fireEvents("onContextMenu",e),t.setPopupVisible(!0,e)})),Object(i["a"])(Object(He["a"])(t),"onContextMenuClose",(function(){t.isContextMenuToShow()&&t.close()})),Object(i["a"])(Object(He["a"])(t),"onClick",(function(e){if(t.fireEvents("onClick",e),t.focusTime){var n;if(t.preClickTime&&t.preTouchTime?n=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?n=t.preClickTime:t.preTouchTime&&(n=t.preTouchTime),Math.abs(n-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var r=!t.state.popupVisible;(t.isClickToHide()&&!r||r&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,e)})),Object(i["a"])(Object(He["a"])(t),"onPopupMouseDown",(function(){var e;(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout((function(){t.hasPopupMouseDown=!1}),0),t.context)&&(e=t.context).onPopupMouseDown.apply(e,arguments)})),Object(i["a"])(Object(He["a"])(t),"onDocumentClick",(function(e){if(!t.props.mask||t.props.maskClosable){var n=e.target,r=t.getRootDomNode(),a=t.getPopupDomNode();qe(r,n)&&!t.isContextMenuOnly()||qe(a,n)||t.hasPopupMouseDown||t.close()}})),Object(i["a"])(Object(He["a"])(t),"getRootDomNode",(function(){var e=t.props.getTriggerDOMNode;if(e)return e(t.triggerRef.current);try{var n=Object($e["a"])(t.triggerRef.current);if(n)return n}catch(r){}return Ve.a.findDOMNode(Object(He["a"])(t))})),Object(i["a"])(Object(He["a"])(t),"getPopupClassNameFromAlign",(function(e){var n=[],r=t.props,a=r.popupPlacement,o=r.builtinPlacements,i=r.prefixCls,l=r.alignPoint,c=r.getPopupClassNameFromAlign;return a&&o&&n.push(rt(o,i,e,l)),c&&n.push(c(e)),n.join(" ")})),Object(i["a"])(Object(He["a"])(t),"getComponent",(function(){var e=t.props,n=e.prefixCls,a=e.destroyPopupOnHide,i=e.popupClassName,l=e.onPopupAlign,c=e.popupMotion,u=e.popupAnimation,s=e.popupTransitionName,f=e.popupStyle,d=e.mask,p=e.maskAnimation,m=e.maskTransitionName,h=e.maskMotion,v=e.zIndex,g=e.popup,y=e.stretch,b=e.alignPoint,E=e.mobile,w=e.forceRender,x=e.onPopupClick,k=t.state,S=k.popupVisible,O=k.point,A=t.getPopupAlign(),j={};return t.isMouseEnterToShow()&&(j.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(j.onMouseLeave=t.onPopupMouseLeave),j.onMouseDown=t.onPopupMouseDown,j.onTouchStart=t.onPopupMouseDown,r["createElement"](nr,Object(o["a"])({prefixCls:n,destroyPopupOnHide:a,visible:S,point:b&&O,className:i,align:A,onAlign:l,animation:u,getClassNameFromAlign:t.getPopupClassNameFromAlign},j,{stretch:y,getRootDomNode:t.getRootDomNode,style:f,mask:d,zIndex:v,transitionName:s,maskAnimation:p,maskTransitionName:m,maskMotion:h,ref:t.popupRef,motion:c,mobile:E,forceRender:w,onClick:x}),"function"===typeof g?g():g)})),Object(i["a"])(Object(He["a"])(t),"attachParent",(function(e){x["a"].cancel(t.attachId);var n,r=t.props,a=r.getPopupContainer,o=r.getDocument,i=t.getRootDomNode();a?(i||0===a.length)&&(n=a(i)):n=o(t.getRootDomNode()).body,n?n.appendChild(e):t.attachId=Object(x["a"])((function(){t.attachParent(e)}))})),Object(i["a"])(Object(He["a"])(t),"getContainer",(function(){if(!t.portalContainer){var e=t.props.getDocument,n=e(t.getRootDomNode()).createElement("div");n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",t.portalContainer=n}return t.attachParent(t.portalContainer),t.portalContainer})),Object(i["a"])(Object(He["a"])(t),"setPoint",(function(e){var n=t.props.alignPoint;n&&e&&t.setState({point:{pageX:e.pageX,pageY:e.pageY}})})),Object(i["a"])(Object(He["a"])(t),"handlePortalUpdate",(function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)})),Object(i["a"])(Object(He["a"])(t),"triggerContextValue",{onPopupMouseDown:t.onPopupMouseDown}),l="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,t.state={prevPopupVisible:l,popupVisible:l},cr.forEach((function(e){t["fire".concat(e)]=function(n){t.fireEvents(e,n)}})),t}return Object(ae["a"])(a,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props,n=this.state;if(n.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Qe(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Qe(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Qe(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Qe(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),x["a"].cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?nt(r,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,a=1e3*t;if(this.clearDelayTimer(),a){var o=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,o),r.clearDelayTimer()}),a)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,n=this.props,a=n.children,o=n.forceRender,i=n.alignPoint,l=n.className,c=n.autoDestroy,u=r["Children"].only(a),f={key:"trigger"};this.isContextMenuToShow()?f.onContextMenu=this.onContextMenu:f.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(f.onClick=this.onClick,f.onMouseDown=this.onMouseDown,f.onTouchStart=this.onTouchStart):(f.onClick=this.createTwoChains("onClick"),f.onMouseDown=this.createTwoChains("onMouseDown"),f.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(f.onMouseEnter=this.onMouseEnter,i&&(f.onMouseMove=this.onMouseMove)):f.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?f.onMouseLeave=this.onMouseLeave:f.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(f.onFocus=this.onFocus,f.onBlur=this.onBlur):(f.onFocus=this.createTwoChains("onFocus"),f.onBlur=this.createTwoChains("onBlur"));var p=d()(u&&u.props&&u.props.className,l);p&&(f.className=p);var m=Object(s["a"])({},f);Object(Xe["c"])(u)&&(m.ref=Object(Xe["a"])(this.triggerRef,u.ref));var h,v=r["cloneElement"](u,m);return(t||this.popupRef.current||o)&&(h=r["createElement"](e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&c&&(h=null),r["createElement"](ar.Provider,{value:this.triggerContextValue},v,h)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),a}(r["Component"]);return Object(i["a"])(t,"contextType",ar),Object(i["a"])(t,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:ir,getDocument:lr,onPopupVisibleChange:or,afterPopupVisibleChange:or,onPopupAlign:or,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),t}var sr=ur(et),fr={adjustX:1,adjustY:1},dr={topLeft:{points:["bl","tl"],overflow:fr,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:fr,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:fr,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:fr,offset:[4,0]}},pr={topLeft:{points:["bl","tl"],overflow:fr,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:fr,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:fr,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:fr,offset:[4,0]}};function mr(e,t,n){return t||(n?n[e]||n.other:void 0)}var hr={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function vr(e){var t=e.prefixCls,n=e.visible,a=e.children,o=e.popup,c=e.popupClassName,u=e.popupOffset,f=e.disabled,p=e.mode,m=e.onVisibleChange,h=r["useContext"](se),v=h.getPopupContainer,g=h.rtl,y=h.subMenuOpenDelay,b=h.subMenuCloseDelay,E=h.builtinPlacements,w=h.triggerSubMenuAction,k=h.forceSubMenuRender,S=h.rootClassName,O=h.motion,A=h.defaultMotions,j=r["useState"](!1),C=Object(l["a"])(j,2),N=C[0],T=C[1],P=g?Object(s["a"])(Object(s["a"])({},pr),E):Object(s["a"])(Object(s["a"])({},dr),E),_=hr[p],D=mr(p,O,A),I=Object(s["a"])(Object(s["a"])({},D),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),F=r["useRef"]();return r["useEffect"]((function(){return F.current=Object(x["a"])((function(){T(n)})),function(){x["a"].cancel(F.current)}}),[n]),r["createElement"](sr,{prefixCls:t,popupClassName:d()("".concat(t,"-popup"),Object(i["a"])({},"".concat(t,"-rtl"),g),c,S),stretch:"horizontal"===p?"minWidth":null,getPopupContainer:v,builtinPlacements:P,popupPlacement:_,popupVisible:N,popup:o,popupAlign:u&&{offset:u},action:f?[]:[w],mouseEnterDelay:y,mouseLeaveDelay:b,onPopupVisibleChange:m,forceRender:k,popupMotion:I},a)}function gr(e){var t=e.id,n=e.open,a=e.keyPath,i=e.children,c="inline",u=r["useContext"](se),f=u.prefixCls,d=u.forceSubMenuRender,p=u.motion,m=u.defaultMotions,h=u.mode,v=r["useRef"](!1);v.current=h===c;var g=r["useState"](!v.current),y=Object(l["a"])(g,2),b=y[0],E=y[1],w=!!v.current&&n;r["useEffect"]((function(){v.current&&E(!1)}),[h]);var x=Object(s["a"])({},mr(c,p,m));a.length>1&&(x.motionAppear=!1);var k=x.onVisibleChanged;return x.onVisibleChanged=function(e){return v.current||e||E(!0),null===k||void 0===k?void 0:k(e)},b?null:r["createElement"](de,{mode:c,locked:!v.current},r["createElement"](at["a"],Object(o["a"])({visible:w},x,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(f,"-hidden")}),(function(e){var n=e.className,a=e.style;return r["createElement"](Je,{id:t,className:n,style:a},i)})))}var yr=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],br=["active"],Er=function(e){var t,n=e.style,a=e.className,c=e.title,f=e.eventKey,p=(e.warnKey,e.disabled),m=e.internalPopupClose,h=e.children,v=e.itemIcon,g=e.expandIcon,y=e.popupClassName,b=e.popupOffset,E=e.onClick,w=e.onMouseEnter,x=e.onMouseLeave,k=e.onTitleClick,S=e.onTitleMouseEnter,O=e.onTitleMouseLeave,A=Object(u["a"])(e,yr),j=Ae(f),C=r["useContext"](se),N=C.prefixCls,T=C.mode,P=C.openKeys,_=C.disabled,D=C.overflowDisabled,I=C.activeKey,F=C.selectedKeys,L=C.itemIcon,R=C.expandIcon,M=C.onItemClick,z=C.onOpenChange,W=C.onActive,B=r["useContext"](Ce),U=B._internalRenderSubMenuItem,G=r["useContext"](ke),J=G.isSubPathKey,H=xe(),K="".concat(N,"-submenu"),V=_||p,q=r["useRef"](),$=r["useRef"]();var X=v||L,Q=g||R,Y=P.includes(f),Z=!D&&Y,ee=J(F,f),te=pe(f,V,S,O),re=te.active,ae=Object(u["a"])(te,br),oe=r["useState"](!1),ie=Object(l["a"])(oe,2),le=ie[0],ce=ie[1],ue=function(e){V||ce(e)},fe=function(e){ue(!0),null===w||void 0===w||w({key:f,domEvent:e})},me=function(e){ue(!1),null===x||void 0===x||x({key:f,domEvent:e})},ye=r["useMemo"]((function(){return re||"inline"!==T&&(le||J([I],f))}),[T,re,I,le,f,J]),be=ge(H.length),Ee=function(e){V||(null===k||void 0===k||k({key:f,domEvent:e}),"inline"===T&&z(f,!Y))},we=We((function(e){null===E||void 0===E||E(he(e)),M(e)})),Se=function(e){"inline"!==T&&z(f,e)},Oe=function(){W(f)},je=j&&"".concat(j,"-popup"),Ne=r["createElement"]("div",Object(o["a"])({role:"menuitem",style:be,className:"".concat(K,"-title"),tabIndex:V?null:-1,ref:q,title:"string"===typeof c?c:null,"data-menu-id":D&&j?null:j,"aria-expanded":Z,"aria-haspopup":!0,"aria-controls":je,"aria-disabled":V,onClick:Ee,onFocus:Oe},ae),c,r["createElement"](ve,{icon:"horizontal"!==T?Q:null,props:Object(s["a"])(Object(s["a"])({},e),{},{isOpen:Z,isSubMenu:!0})},r["createElement"]("i",{className:"".concat(K,"-arrow")}))),Te=r["useRef"](T);if("inline"!==T&&(Te.current=H.length>1?"vertical":T),!D){var Pe=Te.current;Ne=r["createElement"](vr,{mode:Pe,prefixCls:K,visible:!m&&Z&&"inline"!==T,popupClassName:y,popupOffset:b,popup:r["createElement"](de,{mode:"horizontal"===Pe?"vertical":Pe},r["createElement"](Je,{id:je,ref:$},h)),disabled:V,onVisibleChange:Se},Ne)}var _e=r["createElement"](ne.Item,Object(o["a"])({role:"none"},A,{component:"li",style:n,className:d()(K,"".concat(K,"-").concat(T),a,(t={},Object(i["a"])(t,"".concat(K,"-open"),Z),Object(i["a"])(t,"".concat(K,"-active"),ye),Object(i["a"])(t,"".concat(K,"-selected"),ee),Object(i["a"])(t,"".concat(K,"-disabled"),V),t)),onMouseEnter:fe,onMouseLeave:me}),Ne,!D&&r["createElement"](gr,{id:je,open:Z,keyPath:H},h));return U&&(_e=U(_e,e,{selected:ee,active:ye,open:Z,disabled:V})),r["createElement"](de,{onItemClick:we,mode:"horizontal"===T?"vertical":T,itemIcon:X,expandIcon:Q},_e)};function wr(e){var t,n=e.eventKey,a=e.children,o=xe(n),i=Re(a,o),l=Ee();return r["useEffect"]((function(){if(l)return l.registerPath(n,o),function(){l.unregisterPath(n,o)}}),[o]),t=l?i:r["createElement"](Er,e,i),r["createElement"](we.Provider,{value:o},t)}function xr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(ct(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),o=Number(a),i=null;return a&&!Number.isNaN(o)?i=o:r&&null===i&&(i=0),r&&e.disabled&&(i=null),null!==i&&(i>=0||t&&i<0)}return!1}function kr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Object(w["a"])(e.querySelectorAll("*")).filter((function(e){return xr(e,t)}));return xr(e,t)&&n.unshift(e),n}var Sr=A["a"].LEFT,Or=A["a"].RIGHT,Ar=A["a"].UP,jr=A["a"].DOWN,Cr=A["a"].ENTER,Nr=A["a"].ESC,Tr=A["a"].HOME,Pr=A["a"].END,_r=[Ar,jr,Sr,Or];function Dr(e,t,n,r){var a,o,l,c,u="prev",s="next",f="children",d="parent";if("inline"===e&&r===Cr)return{inlineTrigger:!0};var p=(a={},Object(i["a"])(a,Ar,u),Object(i["a"])(a,jr,s),a),m=(o={},Object(i["a"])(o,Sr,n?s:u),Object(i["a"])(o,Or,n?u:s),Object(i["a"])(o,jr,f),Object(i["a"])(o,Cr,f),o),h=(l={},Object(i["a"])(l,Ar,u),Object(i["a"])(l,jr,s),Object(i["a"])(l,Cr,f),Object(i["a"])(l,Nr,d),Object(i["a"])(l,Sr,n?f:d),Object(i["a"])(l,Or,n?d:f),l),v={inline:p,horizontal:m,vertical:h,inlineSub:p,horizontalSub:h,verticalSub:h},g=null===(c=v["".concat(e).concat(t?"":"Sub")])||void 0===c?void 0:c[r];switch(g){case u:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case f:return{offset:1,sibling:!1};default:return null}}function Ir(e){var t=e;while(t){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function Fr(e,t){var n=e||document.activeElement;while(n){if(t.has(n))return n;n=n.parentElement}return null}function Lr(e,t){var n=kr(e,!0);return n.filter((function(e){return t.has(e)}))}function Rr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var a=Lr(e,t),o=a.length,i=a.findIndex((function(e){return n===e}));return r<0?-1===i?i=o-1:i-=1:r>0&&(i+=1),i=(i+o)%o,a[i]}function Mr(e,t,n,a,o,i,l,c,u,s){var f=r["useRef"](),d=r["useRef"]();d.current=t;var p=function(){x["a"].cancel(f.current)};return r["useEffect"]((function(){return function(){p()}}),[]),function(r){var m=r.which;if([].concat(_r,[Cr,Nr,Tr,Pr]).includes(m)){var h,v,g,y=function(){h=new Set,v=new Map,g=new Map;var e=i();return e.forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(Oe(a,e),"']"));t&&(h.add(t),g.set(t,e),v.set(e,t))})),h};y();var b=v.get(t),E=Fr(b,h),w=g.get(E),k=Dr(e,1===l(w,!0).length,n,m);if(!k&&m!==Tr&&m!==Pr)return;(_r.includes(m)||[Tr,Pr].includes(m))&&r.preventDefault();var S=function(e){if(e){var t=e,n=e.querySelector("a");(null===n||void 0===n?void 0:n.getAttribute("href"))&&(t=n);var r=g.get(e);c(r),p(),f.current=Object(x["a"])((function(){d.current===r&&t.focus()}))}};if([Tr,Pr].includes(m)||k.sibling||!E){var O,A;O=E&&"inline"!==e?Ir(E):o.current;var j=Lr(O,h);A=m===Tr?j[0]:m===Pr?j[j.length-1]:Rr(O,h,E,k.offset),S(A)}else if(k.inlineTrigger)u(w);else if(k.offset>0)u(w,!0),p(),f.current=Object(x["a"])((function(){y();var e=E.getAttribute("aria-controls"),t=document.getElementById(e),n=Rr(t,h);S(n)}),5);else if(k.offset<0){var C=l(w,!0),N=C[C.length-2],T=v.get(N);u(N,!1),S(T)}}null===s||void 0===s||s(r)}}var zr=Math.random().toFixed(5).toString().slice(2),Wr=0;function Br(e){var t=E(e,{value:e}),n=Object(l["a"])(t,2),a=n[0],o=n[1];return r["useEffect"]((function(){Wr+=1;var e="".concat(zr,"-").concat(Wr);o("rc-menu-uuid-".concat(e))}),[]),a}function Ur(e){Promise.resolve().then(e)}var Gr="__RC_UTIL_PATH_SPLIT__",Jr=function(e){return e.join(Gr)},Hr=function(e){return e.split(Gr)},Kr="rc-menu-more";function Vr(){var e=r["useState"]({}),t=Object(l["a"])(e,2),n=t[1],a=Object(r["useRef"])(new Map),o=Object(r["useRef"])(new Map),i=r["useState"]([]),c=Object(l["a"])(i,2),u=c[0],s=c[1],f=Object(r["useRef"])(0),d=Object(r["useRef"])(!1),p=function(){d.current||n({})},m=Object(r["useCallback"])((function(e,t){var n=Jr(t);o.current.set(n,e),a.current.set(e,n),f.current+=1;var r=f.current;Ur((function(){r===f.current&&p()}))}),[]),h=Object(r["useCallback"])((function(e,t){var n=Jr(t);o.current["delete"](n),a.current["delete"](e)}),[]),v=Object(r["useCallback"])((function(e){s(e)}),[]),g=Object(r["useCallback"])((function(e,t){var n=a.current.get(e)||"",r=Hr(n);return t&&u.includes(r[0])&&r.unshift(Kr),r}),[u]),y=Object(r["useCallback"])((function(e,t){return e.some((function(e){var n=g(e,!0);return n.includes(t)}))}),[g]),b=function(){var e=Object(w["a"])(a.current.keys());return u.length&&e.push(Kr),e},E=Object(r["useCallback"])((function(e){var t="".concat(a.current.get(e)).concat(Gr),n=new Set;return Object(w["a"])(o.current.keys()).forEach((function(e){e.startsWith(t)&&n.add(o.current.get(e))})),n}),[]);return r["useEffect"]((function(){return function(){d.current=!0}}),[]),{registerPath:m,unregisterPath:h,refreshOverflowKeys:v,isSubPathKey:y,getKeyPath:g,getKeys:b,getSubPathKeys:E}}var qr=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],$r=[],Xr=r["forwardRef"]((function(e,t){var n,a,c=e.prefixCls,f=void 0===c?"rc-menu":c,p=e.rootClassName,m=e.style,h=e.className,v=e.tabIndex,g=void 0===v?0:v,y=e.items,b=e.children,x=e.direction,k=e.id,S=e.mode,O=void 0===S?"vertical":S,A=e.inlineCollapsed,j=e.disabled,C=e.disabledOverflow,N=e.subMenuOpenDelay,T=void 0===N?.1:N,P=e.subMenuCloseDelay,_=void 0===P?.1:P,D=e.forceSubMenuRender,F=e.defaultOpenKeys,L=e.openKeys,R=e.activeKey,M=e.defaultActiveFirst,z=e.selectable,W=void 0===z||z,B=e.multiple,U=void 0!==B&&B,G=e.defaultSelectedKeys,J=e.selectedKeys,H=e.onSelect,K=e.onDeselect,V=e.inlineIndent,q=void 0===V?24:V,$=e.motion,X=e.defaultMotions,Q=e.triggerSubMenuAction,Y=void 0===Q?"hover":Q,Z=e.builtinPlacements,ee=e.itemIcon,te=e.expandIcon,re=e.overflowedIndicator,ae=void 0===re?"...":re,oe=e.overflowedIndicatorPopupClassName,ie=e.getPopupContainer,le=e.onClick,ce=e.onOpenChange,ue=e.onKeyDown,se=(e.openAnimation,e.openTransitionName,e._internalRenderMenuItem),fe=e._internalRenderSubMenuItem,pe=Object(u["a"])(e,qr),me=r["useMemo"]((function(){return ze(b,y,$r)}),[b,y]),ve=r["useState"](!1),ge=Object(l["a"])(ve,2),ye=ge[0],Ee=ge[1],we=r["useRef"](),xe=Br(k),Ae="rtl"===x;var je=r["useMemo"]((function(){return"inline"!==O&&"vertical"!==O||!A?[O,!1]:["vertical",A]}),[O,A]),Ne=Object(l["a"])(je,2),Te=Ne[0],Pe=Ne[1],_e=r["useState"](0),De=Object(l["a"])(_e,2),Ie=De[0],Le=De[1],Re=Ie>=me.length-1||"horizontal"!==Te||C,Me=E(F,{value:L,postState:function(e){return e||$r}}),Be=Object(l["a"])(Me,2),Ue=Be[0],Ge=Be[1],Je=function(e){Ge(e),null===ce||void 0===ce||ce(e)},He=r["useState"](Ue),Ke=Object(l["a"])(He,2),Ve=Ke[0],qe=Ke[1],$e="inline"===Te,Xe=r["useRef"](!1);r["useEffect"]((function(){$e&&qe(Ue)}),[Ue]),r["useEffect"]((function(){Xe.current&&($e?Ge(Ve):Je($r))}),[$e]),r["useEffect"]((function(){return Xe.current=!0,function(){Xe.current=!1}}),[]);var Qe=Vr(),Ye=Qe.registerPath,Ze=Qe.unregisterPath,et=Qe.refreshOverflowKeys,tt=Qe.isSubPathKey,nt=Qe.getKeyPath,rt=Qe.getKeys,at=Qe.getSubPathKeys,ot=r["useMemo"]((function(){return{registerPath:Ye,unregisterPath:Ze}}),[Ye,Ze]),it=r["useMemo"]((function(){return{isSubPathKey:tt}}),[tt]);r["useEffect"]((function(){et(Re?$r:me.slice(Ie+1).map((function(e){return e.key})))}),[Ie,Re]);var lt=E(R||M&&(null===(n=me[0])||void 0===n?void 0:n.key),{value:R}),ct=Object(l["a"])(lt,2),ut=ct[0],st=ct[1],ft=We((function(e){st(e)})),dt=We((function(){st(void 0)}));Object(r["useImperativeHandle"])(t,(function(){return{list:we.current,focus:function(e){var t,n,r,a,o=null!==ut&&void 0!==ut?ut:null===(t=me.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key;o&&(null===(n=we.current)||void 0===n||null===(r=n.querySelector("li[data-menu-id='".concat(Oe(xe,o),"']")))||void 0===r||null===(a=r.focus)||void 0===a||a.call(r,e))}}}));var pt=E(G||[],{value:J,postState:function(e){return Array.isArray(e)?e:null===e||void 0===e?$r:[e]}}),mt=Object(l["a"])(pt,2),ht=mt[0],vt=mt[1],gt=function(e){if(W){var t,n=e.key,r=ht.includes(n);t=U?r?ht.filter((function(e){return e!==n})):[].concat(Object(w["a"])(ht),[n]):[n],vt(t);var a=Object(s["a"])(Object(s["a"])({},e),{},{selectedKeys:t});r?null===K||void 0===K||K(a):null===H||void 0===H||H(a)}!U&&Ue.length&&"inline"!==Te&&Je($r)},yt=We((function(e){null===le||void 0===le||le(he(e)),gt(e)})),bt=We((function(e,t){var n=Ue.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Te){var r=at(e);n=n.filter((function(e){return!r.has(e)}))}I()(Ue,n)||Je(n)})),Et=We(ie),wt=function(e,t){var n=null!==t&&void 0!==t?t:!Ue.includes(e);bt(e,n)},xt=Mr(Te,ut,Ae,xe,we,rt,nt,st,wt,ue);r["useEffect"]((function(){Ee(!0)}),[]);var kt=r["useMemo"]((function(){return{_internalRenderMenuItem:se,_internalRenderSubMenuItem:fe}}),[se,fe]),St="horizontal"!==Te||C?me:me.map((function(e,t){return r["createElement"](de,{key:e.key,overflowDisabled:t>Ie},e)})),Ot=r["createElement"](ne,Object(o["a"])({id:k,ref:we,prefixCls:"".concat(f,"-overflow"),component:"ul",itemComponent:Fe,className:d()(f,"".concat(f,"-root"),"".concat(f,"-").concat(Te),h,(a={},Object(i["a"])(a,"".concat(f,"-inline-collapsed"),Pe),Object(i["a"])(a,"".concat(f,"-rtl"),Ae),a),p),dir:x,style:m,role:"menu",tabIndex:g,data:St,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?me.slice(-t):null;return r["createElement"](wr,{eventKey:Kr,title:ae,disabled:Re,internalPopupClose:0===t,popupClassName:oe},n)},maxCount:"horizontal"!==Te||C?ne.INVALIDATE:ne.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Le(e)},onKeyDown:xt},pe));return r["createElement"](Ce.Provider,{value:kt},r["createElement"](Se.Provider,{value:xe},r["createElement"](de,{prefixCls:f,rootClassName:p,mode:Te,openKeys:Ue,rtl:Ae,disabled:j,motion:ye?$:null,defaultMotions:ye?X:null,activeKey:ut,onActive:ft,onInactive:dt,selectedKeys:ht,inlineIndent:q,subMenuOpenDelay:T,subMenuCloseDelay:_,forceSubMenuRender:D,builtinPlacements:Z,triggerSubMenuAction:Y,getPopupContainer:Et,itemIcon:ee,expandIcon:te,onItemClick:yt,onOpenChange:bt},r["createElement"](ke.Provider,{value:it},Ot),r["createElement"]("div",{style:{display:"none"},"aria-hidden":!0},r["createElement"](be.Provider,{value:ot},me)))))})),Qr=Xr,Yr=["className","title","eventKey","children"],Zr=["children"],ea=function(e){var t=e.className,n=e.title,a=(e.eventKey,e.children),i=Object(u["a"])(e,Yr),l=r["useContext"](se),c=l.prefixCls,s="".concat(c,"-item-group");return r["createElement"]("li",Object(o["a"])({},i,{onClick:function(e){return e.stopPropagation()},className:d()(s,t)}),r["createElement"]("div",{className:"".concat(s,"-title"),title:"string"===typeof n?n:void 0},n),r["createElement"]("ul",{className:"".concat(s,"-list")},a))};function ta(e){var t=e.children,n=Object(u["a"])(e,Zr),a=xe(n.eventKey),o=Re(t,a),i=Ee();return i?o:r["createElement"](ea,Object(le["a"])(n,["warnKey"]),o)}function na(e){var t=e.className,n=e.style,a=r["useContext"](se),o=a.prefixCls,i=Ee();return i?null:r["createElement"]("li",{className:d()("".concat(o,"-item-divider"),t),style:n})}var ra=Qr;ra.Item=Fe,ra.SubMenu=wr,ra.ItemGroup=ta,ra.Divider=na;var aa=ra,oa={adjustX:1,adjustY:1},ia=[0,0],la={topLeft:{points:["bl","tl"],overflow:oa,offset:[0,-4],targetOffset:ia},topCenter:{points:["bc","tc"],overflow:oa,offset:[0,-4],targetOffset:ia},topRight:{points:["br","tr"],overflow:oa,offset:[0,-4],targetOffset:ia},bottomLeft:{points:["tl","bl"],overflow:oa,offset:[0,4],targetOffset:ia},bottomCenter:{points:["tc","bc"],overflow:oa,offset:[0,4],targetOffset:ia},bottomRight:{points:["tr","br"],overflow:oa,offset:[0,4],targetOffset:ia}},ca=la,ua=A["a"].ESC,sa=A["a"].TAB;function fa(e){var t=e.visible,n=e.setTriggerVisible,a=e.triggerRef,o=e.onVisibleChange,i=e.autoFocus,l=r["useRef"](!1),c=function(){var e,r,i,l;t&&a.current&&(null===(e=a.current)||void 0===e||null===(r=e.triggerRef)||void 0===r||null===(i=r.current)||void 0===i||null===(l=i.focus)||void 0===l||l.call(i),n(!1),"function"===typeof o&&o(!1))},u=function(){var e,t,n,r,o=kr(null===(e=a.current)||void 0===e||null===(t=e.popupRef)||void 0===t||null===(n=t.current)||void 0===n||null===(r=n.getElement)||void 0===r?void 0:r.call(n)),i=o[0];return!!(null===i||void 0===i?void 0:i.focus)&&(i.focus(),l.current=!0,!0)},s=function(e){switch(e.keyCode){case ua:c();break;case sa:var t=!1;l.current||(t=u()),t?e.preventDefault():c();break}};r["useEffect"]((function(){return t?(window.addEventListener("keydown",s),i&&Object(x["a"])(u,3),function(){window.removeEventListener("keydown",s),l.current=!1}):function(){l.current=!1}}),[t])}var da=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function pa(e,t){var n=e.arrow,a=void 0!==n&&n,o=e.prefixCls,c=void 0===o?"rc-dropdown":o,f=e.transitionName,p=e.animation,m=e.align,h=e.placement,v=void 0===h?"bottomLeft":h,g=e.placements,y=void 0===g?ca:g,b=e.getPopupContainer,E=e.showAction,w=e.hideAction,x=e.overlayClassName,k=e.overlayStyle,S=e.visible,O=e.trigger,A=void 0===O?["hover"]:O,j=e.autoFocus,C=Object(u["a"])(e,da),N=r["useState"](),T=Object(l["a"])(N,2),P=T[0],_=T[1],D="visible"in e?S:P,I=r["useRef"](null);r["useImperativeHandle"](t,(function(){return I.current})),fa({visible:D,setTriggerVisible:_,triggerRef:I,onVisibleChange:e.onVisibleChange,autoFocus:j});var F=function(){var t,n=e.overlay;return t="function"===typeof n?n():n,t},L=function(t){var n=e.onOverlayClick;_(!1),n&&n(t)},R=function(t){var n=e.onVisibleChange;_(t),"function"===typeof n&&n(t)},M=function(){var e=F();return r["createElement"](r["Fragment"],null,a&&r["createElement"]("div",{className:"".concat(c,"-arrow")}),e)},z=function(){var t=e.overlay;return"function"===typeof t?M:M()},W=function(){var t=e.minOverlayWidthMatchTrigger,n=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?t:!n},B=function(){var t=e.openClassName;return void 0!==t?t:"".concat(c,"-open")},U=function(){var t=e.children,n=t.props?t.props:{},a=d()(n.className,B());return D&&t?r["cloneElement"](t,{className:a}):t},G=w;return G||-1===A.indexOf("contextMenu")||(G=["click"]),r["createElement"](sr,Object(s["a"])(Object(s["a"])({builtinPlacements:y},C),{},{prefixCls:c,ref:I,popupClassName:d()(x,Object(i["a"])({},"".concat(c,"-show-arrow"),a)),popupStyle:k,action:A,showAction:E,hideAction:G||[],popupPlacement:v,popupAlign:m,popupTransitionName:f,popupAnimation:p,popupVisible:D,stretch:W()?"minWidth":"",popup:z(),onPopupVisibleChange:R,onPopupClick:L,getPopupContainer:b}),U())}var ma=r["forwardRef"](pa),ha=ma;function va(e,t){var n=e.prefixCls,a=e.editable,o=e.locale,i=e.style;return a&&!1!==a.showAdd?r["createElement"]("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null===o||void 0===o?void 0:o.addAriaLabel)||"Add tab",onClick:function(e){a.onEdit("add",{event:e})}},a.addIcon||"+"):null}var ga=r["forwardRef"](va);function ya(e,t){var n=e.prefixCls,a=e.id,o=e.tabs,c=e.locale,u=e.mobile,s=e.moreIcon,f=void 0===s?"More":s,p=e.moreTransitionName,m=e.style,h=e.className,v=e.editable,g=e.tabBarGutter,y=e.rtl,b=e.removeAriaLabel,E=e.onTabClick,w=e.getPopupContainer,x=e.popupClassName,k=Object(r["useState"])(!1),S=Object(l["a"])(k,2),O=S[0],j=S[1],C=Object(r["useState"])(null),N=Object(l["a"])(C,2),T=N[0],P=N[1],_="".concat(a,"-more-popup"),D="".concat(n,"-dropdown"),I=null!==T?"".concat(_,"-").concat(T):null,F=null===c||void 0===c?void 0:c.dropdownAriaLabel;function L(e,t){e.preventDefault(),e.stopPropagation(),v.onEdit("remove",{key:t,event:e})}var R=r["createElement"](aa,{onClick:function(e){var t=e.key,n=e.domEvent;E(t,n),j(!1)},prefixCls:"".concat(D,"-menu"),id:_,tabIndex:-1,role:"listbox","aria-activedescendant":I,selectedKeys:[T],"aria-label":void 0!==F?F:"expanded dropdown"},o.map((function(e){var t=v&&!1!==e.closable&&!e.disabled;return r["createElement"](Fe,{key:e.key,id:"".concat(_,"-").concat(e.key),role:"option","aria-controls":a&&"".concat(a,"-panel-").concat(e.key),disabled:e.disabled},r["createElement"]("span",null,e.tab),t&&r["createElement"]("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(D,"-menu-item-remove"),onClick:function(t){t.stopPropagation(),L(t,e.key)}},e.closeIcon||v.removeIcon||"\xd7"))})));function M(e){for(var t=o.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===T}))||0,r=t.length,a=0;ai?(a=n,S.current="x"):(a=r,S.current="y"),t(-a,-a)&&e.preventDefault()}var A=Object(r["useRef"])(null);A.current={onTouchStart:w,onTouchMove:x,onTouchEnd:k,onWheel:O},r["useEffect"]((function(){function t(e){A.current.onTouchStart(e)}function n(e){A.current.onTouchMove(e)}function r(e){A.current.onTouchEnd(e)}function a(e){A.current.onWheel(e)}return document.addEventListener("touchmove",n,{passive:!1}),document.addEventListener("touchend",r,{passive:!1}),e.current.addEventListener("touchstart",t,{passive:!1}),e.current.addEventListener("wheel",a),function(){document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r)}}),[])}function Aa(){var e=Object(r["useRef"])(new Map);function t(t){return e.current.has(t)||e.current.set(t,r["createRef"]()),e.current.get(t)}function n(t){e.current["delete"](t)}return[t,n]}function ja(e,t){var n=r["useRef"](e),a=r["useState"]({}),o=Object(l["a"])(a,2),i=o[1];function c(e){var r="function"===typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,i({})}return[n.current,c]}var Ca=function(e){var t,n=e.position,a=e.prefixCls,o=e.extra;if(!o)return null;var i={};return o&&"object"===Object(c["a"])(o)&&!r["isValidElement"](o)?i=o:i.right=o,"right"===n&&(t=i.right),"left"===n&&(t=i.left),t?r["createElement"]("div",{className:"".concat(a,"-extra-content")},t):null};function Na(e,t){var n,a=r["useContext"](Ea),c=a.prefixCls,u=a.tabs,f=e.className,p=e.style,m=e.id,h=e.animated,v=e.activeKey,g=e.rtl,y=e.extra,b=e.editable,E=e.locale,A=e.tabPosition,j=e.tabBarGutter,N=e.children,P=e.onTabClick,D=e.onTabScroll,I=Object(r["useRef"])(),F=Object(r["useRef"])(),L=Object(r["useRef"])(),R=Object(r["useRef"])(),M=Aa(),z=Object(l["a"])(M,2),W=z[0],B=z[1],U="top"===A||"bottom"===A,G=ja(0,(function(e,t){U&&D&&D({direction:e>t?"left":"right"})})),J=Object(l["a"])(G,2),H=J[0],K=J[1],V=ja(0,(function(e,t){!U&&D&&D({direction:e>t?"top":"bottom"})})),q=Object(l["a"])(V,2),$=q[0],X=q[1],Q=Object(r["useState"])(0),Y=Object(l["a"])(Q,2),Z=Y[0],ee=Y[1],te=Object(r["useState"])(0),ne=Object(l["a"])(te,2),re=ne[0],ae=ne[1],oe=Object(r["useState"])(null),ie=Object(l["a"])(oe,2),le=ie[0],ce=ie[1],ue=Object(r["useState"])(null),se=Object(l["a"])(ue,2),fe=se[0],de=se[1],pe=Object(r["useState"])(0),me=Object(l["a"])(pe,2),he=me[0],ve=me[1],ge=Object(r["useState"])(0),ye=Object(l["a"])(ge,2),be=ye[0],Ee=ye[1],we=O(new Map),xe=Object(l["a"])(we,2),ke=xe[0],Se=xe[1],Oe=T(u,ke,Z),Ae="".concat(c,"-nav-operations-hidden"),je=0,Ce=0;function Ne(e){return eCe?Ce:e}U?g?(je=0,Ce=Math.max(0,Z-le)):(je=Math.min(0,le-Z),Ce=0):(je=Math.min(0,fe-re),Ce=0);var Te=Object(r["useRef"])(),Pe=Object(r["useState"])(),_e=Object(l["a"])(Pe,2),De=_e[0],Ie=_e[1];function Fe(){Ie(Date.now())}function Le(){window.clearTimeout(Te.current)}function Re(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=Oe.get(e)||{width:0,height:0,left:0,right:0,top:0};if(U){var n=H;g?t.rightH+le&&(n=t.right+t.width-le):t.left<-H?n=-t.left:t.left+t.width>-H+le&&(n=-(t.left+t.width-le)),X(0),K(Ne(n))}else{var r=$;t.top<-$?r=-t.top:t.top+t.height>-$+fe&&(r=-(t.top+t.height-fe)),K(0),X(Ne(r))}}Oa(I,(function(e,t){function n(e,t){e((function(e){var n=Ne(e+t);return n}))}if(U){if(le>=Z)return!1;n(K,e)}else{if(fe>=re)return!1;n(X,t)}return Le(),Fe(),!0})),Object(r["useEffect"])((function(){return Le(),De&&(Te.current=window.setTimeout((function(){Ie(0)}),100)),Le}),[De]);var Me=_(Oe,{width:le,height:fe,left:H,top:$},{width:Z,height:re},{width:he,height:be},Object(s["a"])(Object(s["a"])({},e),{},{tabs:u})),ze=Object(l["a"])(Me,2),We=ze[0],Be=ze[1],Ue={};"top"===A||"bottom"===A?Ue[g?"marginRight":"marginLeft"]=j:Ue.marginTop=j;var Ge=u.map((function(e,t){var n=e.key;return r["createElement"](C,{id:m,prefixCls:c,key:n,tab:e,style:0===t?void 0:Ue,closable:e.closable,editable:b,active:n===v,renderWrapper:N,removeAriaLabel:null===E||void 0===E?void 0:E.removeAriaLabel,ref:W(n),onClick:function(e){P(n,e)},onRemove:function(){B(n)},onFocus:function(){Re(n),Fe(),I.current&&(g||(I.current.scrollLeft=0),I.current.scrollTop=0)}})})),Je=S((function(){var e,t,n,r,a,o,i=(null===(e=I.current)||void 0===e?void 0:e.offsetWidth)||0,l=(null===(t=I.current)||void 0===t?void 0:t.offsetHeight)||0,c=(null===(n=R.current)||void 0===n?void 0:n.offsetWidth)||0,s=(null===(r=R.current)||void 0===r?void 0:r.offsetHeight)||0;ce(i),de(l),ve(c),Ee(s);var f=((null===(a=F.current)||void 0===a?void 0:a.offsetWidth)||0)-c,d=((null===(o=F.current)||void 0===o?void 0:o.offsetHeight)||0)-s;ee(f),ae(d),Se((function(){var e=new Map;return u.forEach((function(t){var n=t.key,r=W(n).current;r&&e.set(n,{width:r.offsetWidth,height:r.offsetHeight,left:r.offsetLeft,top:r.offsetTop})})),e}))})),He=u.slice(0,We),Ke=u.slice(Be+1),Ve=[].concat(Object(w["a"])(He),Object(w["a"])(Ke)),qe=Object(r["useState"])(),$e=Object(l["a"])(qe,2),Xe=$e[0],Qe=$e[1],Ye=Oe.get(v),Ze=Object(r["useRef"])();function et(){x["a"].cancel(Ze.current)}Object(r["useEffect"])((function(){var e={};return Ye&&(U?(g?e.right=Ye.right:e.left=Ye.left,e.width=Ye.width):(e.top=Ye.top,e.height=Ye.height)),et(),Ze.current=Object(x["a"])((function(){Qe(e)})),et}),[Ye,U,g]),Object(r["useEffect"])((function(){Re()}),[v,Ye,Oe,U]),Object(r["useEffect"])((function(){Je()}),[g,j,v,u.map((function(e){return e.key})).join("_")]);var tt,nt,rt,at,ot=!!Ve.length,it="".concat(c,"-nav-wrap");return U?g?(nt=H>0,tt=H+lee.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?arguments[1]:void 0),t}})},KH8A:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["isMobile-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"ismobile"},a.a.createElement(o["AnchorLink"],{to:"#ismobile","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isMobile"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a\u79fb\u52a8\u7aef\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isMobile: () => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("p",null,"\u65e0"),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u662f\u79fb\u52a8\u7aef"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u4e0d\u662f\u79fb\u52a8\u7aef")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isMobile-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},KSsz:function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},KTM1:function(e,t,n){var r=n("OOCw"),a=n("HRbj");r({target:"Set",stat:!0},{from:a})},KUb8:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("sErw"),i=n("QHn5"),l=n("uZx/");r({target:"Map",proto:!0,real:!0,forced:a},{keyOf:function(e){return l(i(o(this)),(function(t,n){if(n===e)return l.stop(t)}),void 0,!0,!0).result}})},"KUi+":function(e,t,n){"use strict";var r=n("sErw"),a=n("JSMs");e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return a(r(this),"number"!==e)}},KZF9:function(e,t,n){var r=n("4uZn"),a=n("oEsY"),o=n("2Roc"),i=n("0JbB").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});a(t,e)||i(t,e,{value:o.f(e)})}},KZPF:function(e,t,n){var r=n("OOCw"),a=n("SlEr"),o=n("1Sp3"),i=n("sErw"),l=n("zesz"),c=n("uZx/"),u=o.keys,s=o.toKey,f=function(e){var t=[];return c(e,t.push,t),t},d=function(e,t){var n=u(e,t),r=l(e);if(null===r)return n;var o=d(r,t);return o.length?n.length?f(new a(n.concat(o))):o:n};r({target:"Reflect",stat:!0},{getMetadataKeys:function(e){var t=arguments.length<2?void 0:s(arguments[1]);return d(i(e),t)}})},KgcE:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},Kk74:function(e,t,n){var r=n("OOCw"),a=n("1Sp3"),o=n("sErw"),i=a.get,l=a.toKey;r({target:"Reflect",stat:!0},{getOwnMetadata:function(e,t){var n=arguments.length<3?void 0:l(arguments[2]);return i(e,o(t),n)}})},KuRq:function(e,t,n){var r=n("6SQG"),a=n("nBeg");a(r.JSON,"JSON",!0)},L809:function(e,t,n){"use strict";var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE)return!0;if(e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY)return!0;if(e>=r.A&&e<=r.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t["a"]=r},LGtU:function(e,t){function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"M+Sl":function(e,t,n){var r=n("v3z7"),a=n("MdxV"),o=n("OdMF"),i=n("upgS"),l=n("63eO"),c=[].push,u=function(e){var t=1==e,n=2==e,u=3==e,s=4==e,f=6==e,d=5==e||f;return function(p,m,h,v){for(var g,y,b=o(p),E=a(b),w=r(m,h,3),x=i(E.length),k=0,S=v||l,O=t?S(p,x):n?S(p,0):void 0;x>k;k++)if((d||k in E)&&(g=E[k],y=w(g,k,b),e))if(t)O[k]=y;else if(y)switch(e){case 3:return!0;case 5:return g;case 6:return k;case 2:c.call(O,g)}else if(s)return!1;return f?-1:u||s?s:O}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},M2ND:function(e,t,n){"use strict";var r=n("vfR7").charAt,a=n("uJNS"),o=n("vSpU"),i="String Iterator",l=a.set,c=a.getterFor(i);o(String,"String",(function(e){l(this,{type:i,string:String(e),index:0})}),(function(){var e,t=c(this),n=t.string,a=t.index;return a>=n.length?{value:void 0,done:!0}:(e=r(n,a),t.index+=e.length,{value:e,done:!1})}))},M48M:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["isNaN-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"isnan"},a.a.createElement(o["AnchorLink"],{to:"#isnan","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isNaN"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a NaN \u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isNaN: (value: any) => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value \uff0c\u8981\u5224\u65ad\u7684\u6570\u636e")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u662f NaN \u7c7b\u578b"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u4e0d\u662f NaN \u7c7b\u578b")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isNaN-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},M5mG:function(e,t,n){var r=n("6SQG"),a=n("mVlO"),o=n("0pkz"),i=n("MZA9"),l=n("3Hes"),c=l("iterator"),u=l("toStringTag"),s=o.values;for(var f in a){var d=r[f],p=d&&d.prototype;if(p){if(p[c]!==s)try{i(p,c,s)}catch(h){p[c]=s}if(p[u]||i(p,u,f),a[f])for(var m in o)if(p[m]!==o[m])try{i(p,m,o[m])}catch(h){p[m]=o[m]}}}},M9kN:function(e,t,n){var r=n("ry6q"),a=n("GQDD"),o=n("67Yi"),i=200;function l(e,t){var n=this.__data__;if(n instanceof r){var l=n.__data__;if(!a||l.lengthf)n=a(r,t=u[f++]),void 0!==n&&c(s,t,n);return s}})},MULs:function(e,t,n){var r=n("Zjmp"),a=n("RtFG"),o=n("0zpI"),i=n("NRXl"),l=n("Vc2o"),c=n("eoSM"),u=n("Zsrj"),s=n("GC0I"),f=1,d="[object Arguments]",p="[object Array]",m="[object Object]",h=Object.prototype,v=h.hasOwnProperty;function g(e,t,n,h,g,y){var b=c(e),E=c(t),w=b?p:l(e),x=E?p:l(t);w=w==d?m:w,x=x==d?m:x;var k=w==m,S=x==m,O=w==x;if(O&&u(e)){if(!u(t))return!1;b=!0,k=!1}if(O&&!k)return y||(y=new r),b||s(e)?a(e,t,n,h,g,y):o(e,t,w,n,h,g,y);if(!(n&f)){var A=k&&v.call(e,"__wrapped__"),j=S&&v.call(t,"__wrapped__");if(A||j){var C=A?e.value():e,N=j?t.value():t;return y||(y=new r),g(C,N,n,h,y)}}return!!O&&(y||(y=new r),i(e,t,n,h,g,y))}e.exports=g},MZA9:function(e,t,n){var r=n("r+6h"),a=n("0JbB"),o=n("ZVkV");e.exports=r?function(e,t,n){return a.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},MdxV:function(e,t,n){var r=n("h+/6"),a=n("kk5s"),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?o.call(e,""):Object(e)}:Object},Mfbz:function(e,t,n){var r=n("FbU2"),a=n("oA63"),o=n("6vUj");function i(e){return r(e,o,a)}e.exports=i},MyUB:function(e,t,n){var r=n("O4yA"),a=r.Uint8Array;e.exports=a},"N+aw":function(e,t,n){var r=n("r+6h"),a=n("3s2x"),o=n("684d"),i=n("UQib").f,l=function(e){return function(t){var n,l=o(t),c=a(l),u=c.length,s=0,f=[];while(u>s)n=c[s++],r&&!i.call(l,n)||f.push(e?[n,l[n]]:l[n]);return f}};e.exports={entries:l(!0),values:l(!1)}},"N/7o":function(e,t,n){"use strict";var r=n("OOCw"),a=n("ANLo"),o=n("pVp3"),i=n("jax1"),l=n("h+/6"),c=1..toFixed,u=Math.floor,s=function(e,t,n){return 0===t?n:t%2===1?s(e,t-1,n*e):s(e*e,t/2,n)},f=function(e){var t=0,n=e;while(n>=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t},d=c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!l((function(){c.call({})}));r({target:"Number",proto:!0,forced:d},{toFixed:function(e){var t,n,r,l,c=o(this),d=a(e),p=[0,0,0,0,0,0],m="",h="0",v=function(e,t){var n=-1,r=t;while(++n<6)r+=e*p[n],p[n]=r%1e7,r=u(r/1e7)},g=function(e){var t=6,n=0;while(--t>=0)n+=p[t],p[t]=u(n/e),n=n%e*1e7},y=function(){var e=6,t="";while(--e>=0)if(""!==t||0===e||0!==p[e]){var n=String(p[e]);t=""===t?n:t+i.call("0",7-n.length)+n}return t};if(d<0||d>20)throw RangeError("Incorrect fraction digits");if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(m="-",c=-c),c>1e-21)if(t=f(c*s(2,69,1))-69,n=t<0?c*s(2,-t,1):c/s(2,t,1),n*=4503599627370496,t=52-t,t>0){v(0,n),r=d;while(r>=7)v(1e7,0),r-=7;v(s(10,r,1),0),r=t-1;while(r>=23)g(1<<23),r-=23;g(1<0?(l=h.length,h=m+(l<=d?"0."+i.call("0",d-l)+h:h.slice(0,l-d)+"."+h.slice(l-d))):h=m+h,h}})},N0ls:function(e,t,n){var r=n("OdMF"),a=n("upgS"),o=n("MI4T"),i=n("dwb6"),l=n("v3z7"),c=n("g0pg").aTypedArrayConstructor;e.exports=function(e){var t,n,u,s,f,d,p=r(e),m=arguments.length,h=m>1?arguments[1]:void 0,v=void 0!==h,g=o(p);if(void 0!=g&&!i(g)){f=g.call(p),d=f.next,p=[];while(!(s=d.call(f)).done)p.push(s.value)}for(v&&m>2&&(h=l(h,arguments[2],2)),n=a(p.length),u=new(c(this))(n),t=0;n>t;t++)u[t]=v?h(p[t],t):p[t];return u}},N4es:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("HN/d");function a(e,t){if(e){if("string"===typeof e)return Object(r["a"])(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r["a"])(e,t):void 0}}},N59M:function(e,t,n){var r=n("6SQG");e.exports=r.Promise},NDrN:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{var t=e.demos,n=t["isBoolean-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"isboolean"},a.a.createElement(o["AnchorLink"],{to:"#isboolean","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isBoolean"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a Boolean \u7c7b\u578b\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isBoolean: (value: any) => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value \uff0c\u8981\u5224\u65ad\u7684\u6570\u636e")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \uff0c\u662f Boolean \u7c7b\u578b"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \uff0c\u4e0d\u662f Boolean \u7c7b\u578b")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isBoolean-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},NRXl:function(e,t,n){var r=n("Mfbz"),a=1,o=Object.prototype,i=o.hasOwnProperty;function l(e,t,n,o,l,c){var u=n&a,s=r(e),f=s.length,d=r(t),p=d.length;if(f!=p&&!u)return!1;var m=f;while(m--){var h=s[m];if(!(u?h in t:i.call(t,h)))return!1}var v=c.get(e),g=c.get(t);if(v&&g)return v==t&&g==e;var y=!0;c.set(e,t),c.set(t,e);var b=u;while(++ms){var p,m=u(arguments[s++]),h=f?o(m).concat(f(m)):o(m),v=h.length,g=0;while(v>g)p=h[g++],r&&!d.call(m,p)||(n[p]=m[p])}return n}:s},NlHq:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("eyaU"),i=n("sErw"),l=n("lkgX"),c=n("ZT9G"),u=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:a},{intersection:function(e){var t=i(this),n=new(c(t,o("Set"))),r=l(t.has),a=l(n.add);return u(e,(function(e){r.call(t,e)&&a.call(n,e)})),n}})},NuOa:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("nNWW"),a=n.n(r),o=n("tSbI");function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return a.a.Children.forEach(e,(function(e){(void 0!==e&&null!==e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(i(e)):Object(o["isFragment"])(e)&&e.props?n=n.concat(i(e.props.children,t)):n.push(e))})),n}},NvbK:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var a=u(n("nNWW")),o=n("75i3"),i=l(n("bIC1"));function l(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(a,i,l):a[i]=e[i]}return a["default"]=e,n&&n.set(e,a),a}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n128||n===e.anchors.length-1})),n=this.anchors[Math.max(0,t-1)],r=n.parentElement.id;this.listeners.forEach((function(e){return e(r)}))}},{key:"watch",value:function(e){0===this.anchors.length&&"undefined"!==typeof window&&window.addEventListener("scroll",this.listener),this.anchors.push(e),this.listener()}},{key:"unwatch",value:function(e){this.anchors.splice(this.anchors.findIndex((function(t){return t===e})),1),0===this.anchors.length&&"undefined"!==typeof window&&window.removeEventListener("scroll",this.listener)}},{key:"listen",value:function(e){this.listeners.push(e)}},{key:"unlisten",value:function(e){this.listeners.splice(this.listeners.findIndex((function(t){return t===e})),1)}}]),e}());function w(e){return e.offsetTop+(e.offsetParent?w(e.offsetParent):0)}var x=function e(t){var n,r=(null===(n=t.to.match(/(#[^&?]*)/))||void 0===n?void 0:n[1])||"",i=(0,a.useRef)(null),l=(0,a.useState)(!1),c=f(l,2),u=c[0],d=c[1];return(0,a.useEffect)((function(){var e,t;if(["H1","H2","H3"].includes(null===(e=i.current)||void 0===e||null===(t=e.parentElement)||void 0===t?void 0:t.tagName)&&i.current.parentElement.id){var n=i.current;return E.watch(n),function(){E.unwatch(n)}}var a=function(e){d(r==="#".concat(e))};return E.listen(a),function(){return E.unlisten(a)}}),[]),a["default"].createElement(o.NavLink,s({},t,{ref:i,onClick:function(){return e.scrollToAnchor(r.substring(1))},isActive:function(){return u}}))};x.scrollToAnchor=function(e){window.requestAnimationFrame((function(){var t=document.getElementById(decodeURIComponent(e));t&&window.scrollTo(0,w(t)-100)}))};var k=x;t["default"]=k},Nvne:function(e,t,n){var r=n("GXoa");r("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},O4yA:function(e,t,n){var r=n("yn9n"),a="object"==typeof self&&self&&self.Object===Object&&self,o=r||a||Function("return this")();e.exports=o},O8qS:function(e,t,n){var r=n("h+/6");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},OGs1:function(e,t,n){},OOCw:function(e,t,n){var r=n("6SQG"),a=n("6ssM").f,o=n("MZA9"),i=n("uF/W"),l=n("jukf"),c=n("mult"),u=n("RzMS");e.exports=function(e,t){var n,s,f,d,p,m,h=e.target,v=e.global,g=e.stat;if(s=v?r:g?r[h]||l(h,{}):(r[h]||{}).prototype,s)for(f in t){if(p=t[f],e.noTargetGet?(m=a(s,f),d=m&&m.value):d=s[f],n=u(v?f:h+(g?".":"#")+f,e.forced),!n&&void 0!==d){if(typeof p===typeof d)continue;c(p,d)}(e.sham||d&&d.sham)&&o(p,"sham",!0),i(s,f,p,e)}}},OR72:function(e,t,n){var r=n("kk5s"),a=n("A2zS");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var o=n.call(e,t);if("object"!==typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return a.call(e,t)}},Oax0:function(e,t,n){var r=n("rkJ6"),a=Array.prototype,o=a.splice;function i(e){var t=this.__data__,n=r(t,e);if(n<0)return!1;var a=t.length-1;return n==a?t.pop():o.call(t,n,1),--this.size,!0}e.exports=i},Obug:function(e,t,n){"use strict";var r=n("OOCw"),a=n("ANLo"),o=n("VqGX"),i="Invalid number representation",l="Invalid radix",c=/^[\da-z]+$/;r({target:"Number",stat:!0},{fromString:function(e,t){var n,r,u=1;if("string"!=typeof e)throw TypeError(i);if(!e.length)throw SyntaxError(i);if("-"==e.charAt(0)&&(u=-1,e=e.slice(1),!e.length))throw SyntaxError(i);if(n=void 0===t?10:a(t),n<2||n>36)throw RangeError(l);if(!c.test(e)||(r=o(e,n)).toString(n)!==e)throw SyntaxError(i);return u*r}})},OcJn:function(e,t,n){var r=n("KZF9");r("isConcatSpreadable")},OdMF:function(e,t,n){var r=n("z43i");e.exports=function(e){return Object(r(e))}},OtMc:function(e,t,n){var r,a,o,i,l,c,u,s,f=n("6SQG"),d=n("6ssM").f,p=n("kk5s"),m=n("bbNk").set,h=n("ytxp"),v=f.MutationObserver||f.WebKitMutationObserver,g=f.process,y=f.Promise,b="process"==p(g),E=d(f,"queueMicrotask"),w=E&&E.value;w||(r=function(){var e,t;b&&(e=g.domain)&&e.exit();while(a){t=a.fn,a=a.next;try{t()}catch(n){throw a?i():o=void 0,n}}o=void 0,e&&e.enter()},b?i=function(){g.nextTick(r)}:v&&!h?(l=!0,c=document.createTextNode(""),new v(r).observe(c,{characterData:!0}),i=function(){c.data=l=!l}):y&&y.resolve?(u=y.resolve(void 0),s=u.then,i=function(){s.call(u,r)}):i=function(){m.call(f,r)}),e.exports=w||function(e){var t={fn:e,next:void 0};o&&(o.next=t),a||(a=t,i()),o=t}},Ox3h:function(e,t,n){"use strict";var r,a=n("6SQG"),o=n("TxBV"),i=n("gArs"),l=n("BUyj"),c=n("jETf"),u=n("x+sk"),s=n("uJNS").enforce,f=n("qbEc"),d=!a.ActiveXObject&&"ActiveXObject"in a,p=Object.isExtensible,m=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},h=e.exports=l("WeakMap",m,c);if(f&&d){r=c.getConstructor(m,"WeakMap",!0),i.REQUIRED=!0;var v=h.prototype,g=v["delete"],y=v.has,b=v.get,E=v.set;o(v,{delete:function(e){if(u(e)&&!p(e)){var t=s(this);return t.frozen||(t.frozen=new r),g.call(this,e)||t.frozen["delete"](e)}return g.call(this,e)},has:function(e){if(u(e)&&!p(e)){var t=s(this);return t.frozen||(t.frozen=new r),y.call(this,e)||t.frozen.has(e)}return y.call(this,e)},get:function(e){if(u(e)&&!p(e)){var t=s(this);return t.frozen||(t.frozen=new r),y.call(this,e)?b.call(this,e):t.frozen.get(e)}return b.call(this,e)},set:function(e,t){if(u(e)&&!p(e)){var n=s(this);n.frozen||(n.frozen=new r),y.call(this,e)?E.call(this,e,t):n.frozen.set(e,t)}else E.call(this,e,t);return this}})}},"P/vu":function(e,t,n){var r=n("290e")["default"];function a(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var c=i?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(o,l,c):o[l]=e[l]}return o["default"]=e,n&&n.set(e,o),o}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},P1ha:function(e,t,n){"use strict";var r=n("8Yqn")["default"];function a(){var e=n("nNWW");return a=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var o=i(n("RnyB"));function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){return d(e)||f(e,t)||u(e,t)||c()}function c(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){if(e){if("string"===typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{var t=e.demos,n=t["Tween-demo"].component,r=t["Tween-demo-1"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"tween"},a.a.createElement(o["AnchorLink"],{to:"#tween","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"Tween"),a.a.createElement("p",null,"\u7f13\u52a8\u7b97\u6cd5\u51fd\u6570\u3002\u53ef\u7528\u4e8e\u4e24\u4e2a\u6570\u5b57\u4e4b\u95f4\u4f18\u96c5\u7684\u53d8\u5316\uff0c\u4e5f\u53ef\u7528\u4e8e\u5404\u79cd\u7f13\u52a8\u8fd0\u52a8\u7684\u52a8\u753b\u3002"),a.a.createElement("h2",{id:"\u8be6\u7ec6-demo"},a.a.createElement(o["AnchorLink"],{to:"#\u8be6\u7ec6-demo","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8be6\u7ec6 demo"),a.a.createElement("p",null,a.a.createElement(o["Link"],{to:"https://cjy0208.github.io/webpack-multiple-pages/tweenDemo.html#/"},"Tween Demo")),a.a.createElement("p",null,a.a.createElement(o["Link"],{to:"https://cjy0208.github.io/webpack-multiple-pages/tweenDemo.html#/Easing"},"\u4f7f\u7528\u8be5\u7b97\u6cd5\u5199\u7684\u6240\u6709 Easing \u793a\u4f8b")),a.a.createElement("h2",{id:"\u7b80\u964b\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u7b80\u964b\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u7b80\u964b\u4e3e\u4f8b")),a.a.createElement(i["default"],t["Tween-demo"].previewerProps,a.a.createElement(n,null)),a.a.createElement(i["default"],t["Tween-demo-1"].previewerProps,a.a.createElement(r,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(l,{demos:n})}},PORw:function(e,t,n){var r=n("cBxx"),a=n("GLQI"),o=n("ohzl"),i="[object Null]",l="[object Undefined]",c=r?r.toStringTag:void 0;function u(e){return null==e?void 0===e?l:i:c&&c in Object(e)?a(e):o(e)}e.exports=u},PP1l:function(e,t,n){"use strict";var r=n("SP/E")["default"],a=n("5F55")["default"];function o(){var e=n("nNWW");return o=function(){return e},e}function i(e,t){return f(e)||s(e,t)||c(e,t)||l()}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){if(e){if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{var t=e.demos,n=t["clamp-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"clamp"},a.a.createElement(o["AnchorLink"],{to:"#clamp","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"clamp"),a.a.createElement("p",null,"\u6570\u503c\u8303\u56f4\u9650\u5b9a\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"clamp(value: number, min: number, max?: number): number;",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"number \u88ab\u9650\u5236\u7684\u503c"),a.a.createElement("li",null,"min \u6700\u5c0f\u503c(\u9ed8\u8ba4\u662f ",a.a.createElement("code",null,"Number.MIN_VALUE")," )"),a.a.createElement("li",null,"max \u6700\u5927\u503c (\u9ed8\u8ba4\u662f ",a.a.createElement("code",null,"Number.MAX_VALUE")," )")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u5982\u679c number \u6bd4 min \u5c0f\uff0c\u5219\u8fd4\u56de min\u3002"),a.a.createElement("li",null,"\u5982\u679c number \u6bd4 max \u5927\uff0c\u5219\u8fd4\u56de max\u3002"),a.a.createElement("li",null,"\u5982\u679c number \u6bd4 min \u5927\u4e14\u6bd4 max \u5c0f\uff0c\u5219\u8fd4\u56de number\u3002")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["clamp-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},PVOi:function(e,t,n){var r=n("t+TA"),a=n("O4yA"),o=r(a,"WeakMap");e.exports=o},PWyJ:function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},Pcho:function(e,t,n){"use strict";function r(){var e=n("nNWW");return r=function(){return e},e}function a(e,t){return u(e)||c(e,t)||i(e,t)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e,t){if(e){if("string"===typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?arguments[1]:void 0)}})},PewQ:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["isNull-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"isnull"},a.a.createElement(o["AnchorLink"],{to:"#isnull","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isNull"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a null \u7c7b\u578b\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isNull: (value: any) => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value \uff0c\u8981\u5224\u65ad\u7684\u6570\u636e")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u662f null \u7c7b\u578b"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u4e0d\u662f null \u7c7b\u578b")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isNull-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},PyMO:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["isDesktop-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"isdesktop"},a.a.createElement(o["AnchorLink"],{to:"#isdesktop","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isDesktop"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a\u684c\u9762\u5e94\u7528\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isDesktop: () => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("p",null,"\u65e0"),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u662f\u684c\u9762\u5e94\u7528"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u4e0d\u662f\u684c\u9762\u5e94\u7528")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isDesktop-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},PynX:function(e,t,n){var r=n("KZF9");r("dispose")},Q1cZ:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("V6CC");function a(e,t){var n=Object(r["a"])({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}},Q69t:function(e,t){function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=n},Q7Q6:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["I18n-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"i18n"},a.a.createElement(o["AnchorLink"],{to:"#i18n","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"I18n"),a.a.createElement("p",null,a.a.createElement("code",null,"i18nshell")," \u5de5\u5177\u539f\u578b\uff0c\u591a\u8bed\u8a00\u5de5\u5177\u5305\u3002\u8be6\u60c5\u53ef\u53c2\u8003\uff1a",a.a.createElement(o["Link"],{to:"https://github.com/CJY0208/i18nshell/blob/HEAD/README_CN.md"},"CJY0208/i18nshell")),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"import EventBus from './EventBus'\nexport interface I18nConfig {\n types: {\n resources: Object\n }[]\n defaultType: string\n fallback?: I18n[] | Object\n}\nexport default class I18n {\n static instances: any[]\n static language: any\n static eventBus: EventBus\n /**\n * [template \u7b80\u6613\u5b57\u7b26\u4e32\u6a21\u677f\u51fd\u6570]\n * e.g: template('hello {{name}}', { name: 'CJY' }) ==> 'hello CJY'\n * @param {[\u5b57\u7b26\u4e32]} str [description]\n * @param {[type]} data [description]\n * @return {[type]} [description]\n */\n static template: (str: string, data: any) => string\n static load: (...loaders: any[]) => import('./memoize').CachedFunction\n static applyLanguage: (language: any) => Promise\n resources: {}\n language: any\n eventBus: EventBus\n config: I18nConfig\n constructor(config: I18nConfig)\n applyLanguage: (language: any) => Promise\n translate: (str: any, options?: {}) => any\n fallbackTranslate: (str: any, options: any, namespace: any) => any\n t: (str: any, options?: {}) => any\n}",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"config: I18nConfig\uff0c\u7b26\u5408\u8bed\u6cd5\u7684 ",a.a.createElement("code",null,"I18nConfig")," \u914d\u7f6e\u5bf9\u8c61\u3002")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"I18n \u7684\u5b9e\u4f8b")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["I18n-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},QHn5:function(e,t,n){var r=n("qyeh"),a=n("mxPn");e.exports=r?a:function(e){return Map.prototype.entries.call(e)}},QKCj:function(e,t,n){n("ax/v")},QQXB:function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!==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}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(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__;n0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(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(){r&&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,r=u.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),d=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),C="undefined"!==typeof WeakMap?new WeakMap:new n,N=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=f.getInstance(),r=new j(t,n,this);C.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach((function(e){N.prototype[e]=function(){var t;return(t=C.get(this))[e].apply(t,arguments)}}));var T=function(){return"undefined"!==typeof a.ResizeObserver?a.ResizeObserver:N}();t["a"]=T}).call(this,n("bQdJ"))},QWtl:function(e,t,n){var r,a=n("sErw"),o=n("DS72"),i=n("AqOu"),l=n("Y3cF"),c=n("RtP/"),u=n("73fw"),s=n("8i6t"),f=">",d="<",p="prototype",m="script",h=s("IE_PROTO"),v=function(){},g=function(e){return d+m+f+e+d+"/"+m+f},y=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=u("iframe"),n="java"+m+":";return t.style.display="none",c.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(g("document.F=Object")),e.close(),e.F},E=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}E=r?y(r):b();var e=i.length;while(e--)delete E[p][i[e]];return E()};l[h]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(v[p]=a(e),n=new v,v[p]=null,n[h]=e):n=E(),void 0===t?n:o(n,t)}},QZNO:function(e,t,n){var r=n("OOCw"),a=n("6SQG");r({global:!0},{globalThis:a})},Qf6j:function(e,t,n){},QiOl:function(e,t,n){"use strict";var r=n("5yEw"),a=n("elB0");e.exports=r?{}.toString:function(){return"[object "+a(this)+"]"}},QkOx:function(e,t,n){"use strict";n("jYqw");var r=n("uF/W"),a=n("h+/6"),o=n("3Hes"),i=n("A2zS"),l=n("MZA9"),c=o("species"),u=!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")})),s=function(){return"$0"==="a".replace(/./,"$0")}(),f=o("replace"),d=function(){return!!/./[f]&&""===/./[f]("a","$0")}(),p=!a((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,f){var m=o(e),h=!a((function(){var t={};return t[m]=function(){return 7},7!=""[e](t)})),v=h&&!a((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[c]=function(){return n},n.flags="",n[m]=/./[m]),n.exec=function(){return t=!0,null},n[m](""),!t}));if(!h||!v||"replace"===e&&(!u||!s||d)||"split"===e&&!p){var g=/./[m],y=n(m,""[e],(function(e,t,n,r,a){return t.exec===i?h&&!a?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:s,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),b=y[0],E=y[1];r(String.prototype,e,b),r(RegExp.prototype,m,2==t?function(e,t){return E.call(e,this,t)}:function(e){return E.call(e,this)})}f&&l(RegExp.prototype[m],"sham",!0)}},Qkfr:function(e,t,n){"use strict";var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.target,r=void 0===n?document.body:n,a=document.createElement("textarea"),o=document.activeElement;a.value=e,a.setAttribute("readonly",""),a.style.contain="strict",a.style.position="absolute",a.style.left="-9999px",a.style.fontSize="12pt";var i=document.getSelection(),l=!1;i.rangeCount>0&&(l=i.getRangeAt(0)),r.append(a),a.select(),a.selectionStart=0,a.selectionEnd=e.length;var c=!1;try{c=document.execCommand("copy")}catch(u){}return a.remove(),l&&(i.removeAllRanges(),i.addRange(l)),o&&o.focus(),c};e.exports=r,e.exports["default"]=r},QlVd:function(e,t,n){"use strict";var r=n("OOCw"),a=n("dz2h"),o=n("z43i"),i=n("upgS"),l=n("lkgX"),c=n("sErw"),u=n("kk5s"),s=n("q43B"),f=n("rfqm"),d=n("MZA9"),p=n("h+/6"),m=n("3Hes"),h=n("ZT9G"),v=n("o1x9"),g=n("uJNS"),y=n("qyeh"),b=m("matchAll"),E="RegExp String",w=E+" Iterator",x=g.set,k=g.getterFor(w),S=RegExp.prototype,O=S.exec,A="".matchAll,j=!!A&&!p((function(){"a".matchAll(/./)})),C=function(e,t){var n,r=e.exec;if("function"==typeof r){if(n=r.call(e,t),"object"!=typeof n)throw TypeError("Incorrect exec result");return n}return O.call(e,t)},N=a((function(e,t,n,r){x(this,{type:w,regexp:e,string:t,global:n,unicode:r,done:!1})}),E,(function(){var e=k(this);if(e.done)return{value:void 0,done:!0};var t=e.regexp,n=e.string,r=C(t,n);return null===r?{value:void 0,done:e.done=!0}:e.global?(""==String(r[0])&&(t.lastIndex=v(n,i(t.lastIndex),e.unicode)),{value:r,done:!1}):(e.done=!0,{value:r,done:!1})})),T=function(e){var t,n,r,a,o,l,u=c(this),s=String(e);return t=h(u,RegExp),n=u.flags,void 0===n&&u instanceof RegExp&&!("flags"in S)&&(n=f.call(u)),r=void 0===n?"":String(n),a=new t(t===RegExp?u.source:u,r),o=!!~r.indexOf("g"),l=!!~r.indexOf("u"),a.lastIndex=i(u.lastIndex),new N(a,s,o,l)};r({target:"String",proto:!0,forced:j},{matchAll:function(e){var t,n,r,a,i=o(this);if(null!=e){if(s(e)&&(t=String(o("flags"in S?e.flags:f.call(e))),!~t.indexOf("g")))throw TypeError("`.matchAll` does not allow non-global regexes");if(j)return A.apply(i,arguments);if(r=e[b],void 0===r&&y&&"RegExp"==u(e)&&(r=T),null!=r)return l(r).call(e,i)}else if(j)return A.apply(i,arguments);return n=String(i),a=new RegExp(e,"g"),y?T.call(a,n):a[b](n)}}),y||b in S||d(S,b,T)},Qm0Y:function(e,t,n){var r=n("OOCw"),a=n("dmWW");r({global:!0,forced:parseFloat!=a},{parseFloat:a})},QwZf:function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return w}));var r=n("Bm2L"),a=n("R5oI"),o=n("nNWW"),i=n.n(o),l=n("ptaF"),c=n("973d"),u=n("dl1G"),s=n("rfn3");i.a.Component;i.a.Component;var f=function(e,t){return"function"===typeof e?e(t):e},d=function(e,t){return"string"===typeof e?Object(l["c"])(e,null,null,t):e},p=function(e){return e},m=i.a.forwardRef;function h(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}"undefined"===typeof m&&(m=p);var v=m((function(e,t){var n=e.innerRef,r=e.navigate,a=e.onClick,o=Object(u["a"])(e,["innerRef","navigate","onClick"]),l=o.target,s=Object(c["a"])({},o,{onClick:function(e){try{a&&a(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||l&&"_self"!==l||h(e)||(e.preventDefault(),r())}});return s.ref=p!==m&&t||n,i.a.createElement("a",s)}));var g=m((function(e,t){var n=e.component,a=void 0===n?v:n,o=e.replace,l=e.to,h=e.innerRef,g=Object(u["a"])(e,["component","replace","to","innerRef"]);return i.a.createElement(r["h"].Consumer,null,(function(e){e||Object(s["a"])(!1);var n=e.history,r=d(f(l,e.location),e.location),u=r?n.createHref(r):"",v=Object(c["a"])({},g,{href:u,navigate:function(){var t=f(l,e.location),r=o?n.replace:n.push;r(t)}});return p!==m?v.ref=t||h:v.innerRef=h,i.a.createElement(a,v)}))})),y=function(e){return e},b=i.a.forwardRef;function E(){for(var e=arguments.length,t=new Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n, mountNode);"),t}var b=function(e){var t=(0,o().useState)(),n=u(t,2),i=n[0],c=n[1],s=g();return(0,o().useEffect)((function(){if(e&&s&&1===Object.keys(e.sources).length){var t,n=document.createElement("form"),o=document.createElement("input");return n.method="POST",n.target="_blank",n.style.display="none",n.action=v,n.appendChild(o),n.setAttribute("data-demo",e.title||""),o.name="data",o.value=JSON.stringify({title:e.titlle,js:y(e),css:Object.entries(e.dependencies).filter((function(e){var t=a(e,2),n=t[1];return n.css})).map((function(e){var t=a(e,2),n=t[0],r=t[1],o=r.version,i=r.css;return"@import '~".concat(i.replace(new RegExp("^(".concat(n,")")),"$1@".concat(o)),"';")})).concat(e.background?"body {\n background: ".concat(e.background,";\n}"):"").join("\n"),json:JSON.stringify({description:e.description,dependencies:Object.entries(e.dependencies).reduce((function(e,t){var n=a(t,2),o=n[0],i=n[1].version;return l(l({},e),{},r({},o,i))}),{"react-dom":(null===(t=e.dependencies.react)||void 0===t?void 0:t.version)||"latest"})},null,2)}),document.body.appendChild(n),c((function(){return function(){return n.submit()}})),function(){return n.remove()}}}),[e,s]),i};t["default"]=b},QzCP:function(e,t,n){var r=n("t+TA"),a=r(Object,"create");e.exports=a},R5oI:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("fVxY");function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Object(r["a"])(e,t)}},R8Xy:function(e,t,n){var r=n("qyeh"),a=n("mxPn");e.exports=r?a:function(e){return Set.prototype.values.call(e)}},RHHP:function(e,t,n){n("QlVd")},RSL4:function(e,t,n){n("QZNO")},RfhN:function(e,t){function n(){return!1}e.exports=n},RnyB:function(e,t,n){"use strict";function r(){var e=a(n("nNWW"));return r=function(){return e},e}function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var o=r()["default"].createContext({config:{mode:"doc",title:"",navs:{},menus:{},locales:[],repository:{branch:"master"},theme:{}},meta:{title:""},menu:[],nav:[],base:"",routes:[],apis:{},demos:{}});t["default"]=o},RtFG:function(e,t,n){var r=n("2lI5"),a=n("1aIJ"),o=n("l3mM"),i=1,l=2;function c(e,t,n,c,u,s){var f=n&i,d=e.length,p=t.length;if(d!=p&&!(f&&p>d))return!1;var m=s.get(e),h=s.get(t);if(m&&h)return m==t&&h==e;var v=-1,g=!0,y=n&l?new r:void 0;s.set(e,t),s.set(t,e);while(++ve.length)&&(t=e.length);for(var n=0,r=new Array(t);nv)throw TypeError(g);for(s=c(y,r),f=0;fb-r+n;f--)delete y[f-1]}else if(n>r)for(f=b-r;f>E;f--)d=f+r-1,p=f+n-1,d in y?y[p]=y[d]:delete y[p];for(f=0;f1?arguments[1]:void 0,3),a=new(u(t,o("Map"))),d=l(a.set);return f(n,(function(e,n){d.call(a,r(n,e,t),n)}),void 0,!0,!0),a}})},SHha:function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function i(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function l(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(o){return!1}}e.exports=l()?Object.assign:function(e,t){for(var n,l,c=i(e),u=1;u{var t=e.demos,n=t["run-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"run"},a.a.createElement(o["AnchorLink"],{to:"#run","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"run"),a.a.createElement("p",null,"\u65e0\u75db\u8fd0\u884c\u51fd\u6570\u6216\u975e\u51fd\u6570\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"run(obj: any, keys?: KType, ...args: any[]): T;",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"obj \u63d0\u53d6\u5bf9\u8c61\u6216\u8981\u6267\u884c\u7684\u51fd\u6570"),a.a.createElement("li",null,"keys \u63d0\u53d6\u5bf9\u8c61\u7684 key \u64cd\u4f5c\u7b26\uff0c\u65e0\u9700\u8bf7\u4f20 ",a.a.createElement("code",null,"undefined")),a.a.createElement("li",null,"args \u4f20\u7ed9\u51fd\u6570\u7684\u53c2\u6570")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u5982\u679c\u8981\u8fd0\u884c\u7684\u662f\u51fd\u6570\uff0c\u5c31\u4f1a\u8fd0\u884c\uff0c\u8fd4\u56de\u51fd\u6570\u8fd4\u56de\u7684\u503c\u3002"),a.a.createElement("li",null,"\u5982\u679c\u8981\u8fd0\u884c\u7684\u4e0d\u662f\u51fd\u6570\uff0c\u5c31\u76f4\u63a5\u8fd4\u56de\u8981\u8fd0\u884c\u7684\u503c\u3002")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"const obj = {\n a: {\n b: {\n c: 'abc',\n func: function () {\n console.log(arguments)\n console.log('vagaga')\n },\n },\n },\n}\n\nrun(obj, 'a.b.f', 'hello world') // ['hello world'] vagaga\nrun(a, 'a.b.c', 'hello world') // abc",lang:"javascript"})),a.a.createElement(i["default"],t["run-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},SlEr:function(e,t,n){"use strict";var r=n("BUyj"),a=n("ZmXH");e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),a)},SpTn:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var a=c(n("nNWW")),o=i(n("RnyB"));function i(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var c=o?Object.getOwnPropertyDescriptor(e,i):null;c&&(c.get||c.set)?Object.defineProperty(a,i,c):a[i]=e[i]}return a["default"]=e,n&&n.set(e,a),a}function u(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=d(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n["return"]||n["return"]()}finally{if(l)throw o}}}}function s(e,t){return h(e)||m(e,t)||d(e,t)||f()}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e,t){if(e){if("string"===typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;i-=1){var l=a[i],c=[l].concat(l.children).filter(Boolean),u=c.find((function(e){return e.path&&new RegExp("^".concat(e.path.replace(/\.html$/,""),"(/|.|$)")).test(n[2])}));if(u){o=u.path;break}}return(null===(e=n[0].menus[n[1]])||void 0===e?void 0:e[o])||[]},o=(0,a.useState)(r(e,t,n)),i=s(o,2),l=i[0],c=i[1];return(0,a.useLayoutEffect)((function(){c(r(e,t,n))}),[e.navs,e.menus,t,n]),l},x=function(e,t,n){var r=function(){for(var t=arguments.length,r=new Array(t),a=0;a{var t=e.demos,n=t["\u4e0b\u5212\u7ebf-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"__"},a.a.createElement(o["AnchorLink"],{to:"#__","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"__"),a.a.createElement("p",null,"\u81ea\u7531\u67ef\u91cc\u5316\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"AnyFunction = (...args: any[]) => any;\n\n__: (func: T, context?: any) => (...preArgs: any[]) => (...args: any[]) => ReturnType;",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value \u5904\u7406\u4f20\u5165\u53c2\u6570\u7684\u51fd\u6570\uff0ccontext \u7ed1\u5b9a\u7684\u5bf9\u8c61"),a.a.createElement("li",null,"\u9700\u8981\u5904\u7406\u7684\u53c2\u6570")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u4f20\u5165\u8981\u5904\u7406\u53c2\u6570\u7684\u51fd\u6570\u548c\u7ed1\u5b9a\u7684\u5bf9\u8c61\u540e\uff0c\u4f1a\u8fd4\u56de\u4e00\u4e2a\u65b0\u7684 curry \u51fd\u6570\uff0c\u4f9b\u540e\u7eed\u8c03\u7528"),a.a.createElement("li",null,"\u6700\u7ec8\u4f1a\u8fd4\u56de\u5904\u7406\u51fd\u6570\u7684\u8fd4\u56de\u7ed3\u679c")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["\u4e0b\u5212\u7ebf-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},TDWY:function(e,t,n){var r=n("rkJ6");function a(e,t){var n=this.__data__,a=r(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}e.exports=a},TEI5:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["isObject-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"isobject"},a.a.createElement(o["AnchorLink"],{to:"#isobject","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isObject"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a Object \u7c7b\u578b\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isObject: (value: any) => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value \uff0c\u8981\u5224\u65ad\u7684\u6570\u636e")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u662f Object \u7c7b\u578b"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u4e0d\u662f Object \u7c7b\u578b")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isObject-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},THrr:function(e,t,n){var r=n("h+/6"),a=n("3Hes"),o=n("tDGd"),i=a("species");e.exports=function(e){return o>=51||!r((function(){var t=[],n=t.constructor={};return n[i]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},THzI:function(e,t,n){"use strict";var r=n("qyeh"),a=n("6SQG"),o=n("h+/6");e.exports=r||!o((function(){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete a[e]}))},TMNz:function(e,t,n){"use strict";var r=n("OOCw"),a=n("M+Sl").map,o=n("THrr"),i=n("7/pz"),l=o("map"),c=i("map");r({target:"Array",proto:!0,forced:!l||!c},{map:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},TwAS:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["curry-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"curry"},a.a.createElement(o["AnchorLink"],{to:"#curry","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"curry"),a.a.createElement("p",null,"curry \u67ef\u91cc\u5316\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"curry: (fn: Function) => (...args: any[]) => T",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u5904\u7406\u4f20\u5165\u53c2\u6570\u7684\u51fd\u6570"),a.a.createElement("li",null,"\u9700\u8981\u5904\u7406\u7684\u53c2\u6570")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u4f20\u5165\u8981\u5904\u7406\u53c2\u6570\u7684\u51fd\u6570\u540e\uff0c\u4f1a\u8fd4\u56de\u4e00\u4e2a\u65b0\u7684 curry \u51fd\u6570\uff0c\u4f9b\u540e\u7eed\u8c03\u7528"),a.a.createElement("li",null,"\u6700\u7ec8\u4f1a\u8fd4\u56de\u5904\u7406\u51fd\u6570\u7684\u8fd4\u56de\u7ed3\u679c")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["curry-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},TxBV:function(e,t,n){var r=n("uF/W");e.exports=function(e,t,n){for(var a in t)r(e,a,t[a],n);return e}},TxDi:function(e,t,n){var r=n("3Hes"),a=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[a]=!1,"/./"[e](t)}catch(r){}}return!1}},Txlo:function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function a(e,t){var a=typeof e;return t=null==t?n:t,!!t&&("number"==a||"symbol"!=a&&r.test(e))&&e>-1&&e%1==0&&e{var t=e.demos,n=t["isString-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"isstring"},a.a.createElement(o["AnchorLink"],{to:"#isstring","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isString"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a String \u7c7b\u578b\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isString: (value: any) => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value \uff0c\u8981\u5224\u65ad\u7684\u6570\u636e")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u662f String \u7c7b\u578b"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u4e0d\u662f String \u7c7b\u578b")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isString-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},UDnj:function(e,t,n){var r=n("KZF9");r("toStringTag")},UMve:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("eyaU"),i=n("sErw"),l=n("lkgX"),c=n("v3z7"),u=n("ZT9G"),s=n("R8Xy"),f=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:a},{filter:function(e){var t=i(this),n=s(t),r=c(e,arguments.length>1?arguments[1]:void 0,3),a=new(u(t,o("Set"))),d=l(a.add);return f(n,(function(e){r(e,e,t)&&d.call(a,e)}),void 0,!1,!0),a}})},UQib:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,o=a&&!r.call({1:2},1);t.f=o?function(e){var t=a(this,e);return!!t&&t.enumerable}:r},UWO6:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["get-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"get"},a.a.createElement(o["AnchorLink"],{to:"#get","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"get"),a.a.createElement("p",null,"\u65e0\u75db\u53d6\u503c\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"declare type KType = string | any[] | number;\nget(obj: any, keys?: KType, defaultValue?: any): T;",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"obj \u63d0\u53d6\u5bf9\u8c61"),a.a.createElement("li",null,"keys \u63d0\u53d6\u5bf9\u8c61\u7684 key \u64cd\u4f5c\u7b26"),a.a.createElement("li",null,"defaultValue \u53d6\u4e0d\u5230\u503c\u7684\u9ed8\u8ba4\u503c")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u5982\u679c\u80fd\u53d6\u5230\u503c\uff0c\u5c31\u8fd4\u56de\u53d6\u5230\u7684\u503c\u3002"),a.a.createElement("li",null,"\u5982\u679c\u4e0d\u80fd\u53d6\u5230\u503c\uff0c\u5c31\u8fd4\u56de ",a.a.createElement("code",null,"defaultValue")," \u9ed8\u8ba4\u503c\u3002")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"const a = {\n a: {\n b: {\n c: 'abc',\n },\n },\n}\nget(a, 'a.b.d', 'hello world') // hello world\nget(a, 'a.b.c', 'hello world') // abc",lang:"javascript"})),a.a.createElement(i["default"],t["get-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},Us7a:function(e,t,n){var r=n("upgS"),a=n("jax1"),o=n("z43i"),i=Math.ceil,l=function(e){return function(t,n,l){var c,u,s=String(o(t)),f=s.length,d=void 0===l?" ":String(l),p=r(n);return p<=f||""==d?s:(c=p-f,u=a.call(d,i(c/d.length)),u.length>c&&(u=u.slice(0,c)),e?s+u:u+s)}};e.exports={start:l(!1),end:l(!0)}},UtSM:function(e,t,n){var r=n("rkJ6");function a(e){return r(this.__data__,e)>-1}e.exports=a},Uv1i:function(e,t,n){var r=n("GXoa");r("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},V0hj:function(e,t,n){var r=n("O8qS");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},V6CC:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("vh/W");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t-1&&e%1==0&&e<=n}e.exports=r},VNwZ:function(e,t){function n(e){if(Array.isArray(e))return e}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},Vc2o:function(e,t,n){var r=n("t+GO"),a=n("GQDD"),o=n("megh"),i=n("NSh6"),l=n("PVOi"),c=n("PORw"),u=n("GLf+"),s="[object Map]",f="[object Object]",d="[object Promise]",p="[object Set]",m="[object WeakMap]",h="[object DataView]",v=u(r),g=u(a),y=u(o),b=u(i),E=u(l),w=c;(r&&w(new r(new ArrayBuffer(1)))!=h||a&&w(new a)!=s||o&&w(o.resolve())!=d||i&&w(new i)!=p||l&&w(new l)!=m)&&(w=function(e){var t=c(e),n=t==f?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case v:return h;case g:return s;case y:return d;case b:return p;case E:return m}return t}),e.exports=w},Vg85:function(e,t){e.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},VnLQ:function(e,t,n){"use strict";var r=n("OOCw"),a=n("lkgX"),o=n("eyaU"),i=n("8d12"),l=n("86T+"),c=n("uZx/"),u="No one promise resolved";r({target:"Promise",stat:!0},{any:function(e){var t=this,n=i.f(t),r=n.resolve,s=n.reject,f=l((function(){var n=a(t.resolve),i=[],l=0,f=1,d=!1;c(e,(function(e){var a=l++,c=!1;i.push(void 0),f++,n.call(t,e).then((function(e){c||d||(d=!0,r(e))}),(function(e){c||d||(c=!0,i[a]=e,--f||s(new(o("AggregateError"))(i,u)))}))})),--f||s(new(o("AggregateError"))(i,u))}));return f.error&&s(f.value),n.promise}})},VnN1:function(e,t,n){"use strict";var r,a,o,i,l;if("undefined"===typeof window||"function"!==typeof MessageChannel){var c=null,u=null,s=function e(){if(null!==c)try{var n=t.unstable_now();c(!0,n),c=null}catch(r){throw setTimeout(e,0),r}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(s,0))},a=function(e,t){u=setTimeout(e,t)},o=function(){clearTimeout(u)},i=function(){return!1},l=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,p=window.Date,m=window.setTimeout,h=window.clearTimeout;if("undefined"!==typeof console){var v=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"===typeof d&&"function"===typeof d.now)t.unstable_now=function(){return d.now()};else{var g=p.now();t.unstable_now=function(){return p.now()-g}}var y=!1,b=null,E=-1,w=5,x=0;i=function(){return t.unstable_now()>=x},l=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,a=e[r];if(!(void 0!==a&&0C(i,n))void 0!==c&&0>C(c,i)?(e[r]=c,e[l]=n,r=l):(e[r]=i,e[o]=n,r=o);else{if(!(void 0!==c&&0>C(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var N=[],T=[],P=1,_=null,D=3,I=!1,F=!1,L=!1;function R(e){for(var t=A(T);null!==t;){if(null===t.callback)j(T);else{if(!(t.startTime<=e))break;j(T),t.sortIndex=t.expirationTime,O(N,t)}t=A(T)}}function M(e){if(L=!1,R(e),!F)if(null!==A(N))F=!0,r(z);else{var t=A(T);null!==t&&a(M,t.startTime-e)}}function z(e,n){F=!1,L&&(L=!1,o()),I=!0;var r=D;try{for(R(n),_=A(N);null!==_&&(!(_.expirationTime>n)||e&&!i());){var l=_.callback;if(null!==l){_.callback=null,D=_.priorityLevel;var c=l(_.expirationTime<=n);n=t.unstable_now(),"function"===typeof c?_.callback=c:_===A(N)&&j(N),R(n)}else j(N);_=A(N)}if(null!==_)var u=!0;else{var s=A(T);null!==s&&a(M,s.startTime-n),u=!1}return u}finally{_=null,D=r,I=!1}}function W(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var B=l;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){F||I||(F=!0,r(z))},t.unstable_getCurrentPriorityLevel=function(){return D},t.unstable_getFirstCallbackNode=function(){return A(N)},t.unstable_next=function(e){switch(D){case 1:case 2:case 3:var t=3;break;default:t=D}var n=D;D=t;try{return e()}finally{D=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=D;D=e;try{return t()}finally{D=n}},t.unstable_scheduleCallback=function(e,n,i){var l=t.unstable_now();if("object"===typeof i&&null!==i){var c=i.delay;c="number"===typeof c&&0l?(e.sortIndex=c,O(T,e),null===A(N)&&e===A(T)&&(L?o():L=!0,a(M,c-l))):(e.sortIndex=i,O(N,e),F||I||(F=!0,r(z))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();R(e);var n=A(N);return n!==_&&null!==_&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<_.expirationTime||i()},t.unstable_wrapCallback=function(e){var t=D;return function(){var n=D;D=t;try{return e.apply(this,arguments)}finally{D=n}}}},VqGX:function(e,t,n){var r=n("6SQG"),a=n("CsJM").trim,o=n("Vg85"),i=r.parseInt,l=/^[+-]?0[Xx]/,c=8!==i(o+"08")||22!==i(o+"0x16");e.exports=c?function(e,t){var n=a(String(e));return i(n,t>>>0||(l.test(n)?16:10))}:i},VzNH:function(e,t){function n(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"W5+R":function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["globalThis-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"globalthis"},a.a.createElement(o["AnchorLink"],{to:"#globalthis","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"globalThis"),a.a.createElement("p",null,"\u65e0\u9700\u8003\u8651\u73af\u5883\uff0c\u4f1a\u81ea\u52a8\u8fd4\u56de\u5168\u5c40\u5bf9\u8c61\u3002"),a.a.createElement("p",null,"\u5728\u6d4f\u89c8\u5668\u4e2d\uff0c\u5168\u5c40\u5bf9\u8c61\u5c31\u662f ",a.a.createElement("code",null,"window")," \u5bf9\u8c61\u3002\u800c\u5728 ",a.a.createElement("code",null,"Node.js")," \u73af\u5883\u4e2d\uff0c\u5168\u5c40\u5bf9\u8c61\u5219\u53eb ",a.a.createElement("code",null,"global")," \u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"globalThis: any",lang:"ts"}),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("p",null,"\u8fd4\u56de\u5168\u5c40\u5bf9\u8c61"),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["globalThis-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},WAeE:function(e,t,n){var r=n("qyeh"),a=n("l9Lh");(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},WJ2W:function(e,t,n){var r=n("KZF9");r("hasInstance")},WYEs:function(e,t,n){"use strict";e.exports=n("oGfY")},WgHT:function(e,t){function n(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},WkS0:function(e,t,n){"use strict";var r,a,o,i=n("zesz"),l=n("MZA9"),c=n("oEsY"),u=n("3Hes"),s=n("qyeh"),f=u("iterator"),d=!1,p=function(){return this};[].keys&&(o=[].keys(),"next"in o?(a=i(i(o)),a!==Object.prototype&&(r=a)):d=!0),void 0==r&&(r={}),s||c(r,f)||l(r,f,p),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},WkeX:function(e,t,n){"use strict";var r=n("CEyi");function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},Wldj:function(e,t,n){"use strict";var r=n("lkgX"),a=n("x+sk"),o=[].slice,i={},l=function(e,t,n){if(!(t in i)){for(var r=[],a=0;a{var t=e.demos,n=t["storage-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"storage"},a.a.createElement(o["AnchorLink"],{to:"#storage","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"storage"),a.a.createElement("p",null,"storage \u5b58\u53d6\u76f8\u5173\u51fd\u6570\u7684\u5c01\u88c5\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"const get: Function\nconst set: Function\nconst remove: Function\nconst getSession: Function\nconst setSession: Function\nconst removeSession: Function\n\nexport default {\n get: get,\n set: set,\n remove: remove,\n getSession: getSession,\n setSession: setSession,\n removeSession: removeSession,\n}",lang:"ts"}),a.a.createElement("h2",{id:"storage-\u5bf9\u8c61\u91cc\u7684\u5c5e\u6027"},a.a.createElement(o["AnchorLink"],{to:"#storage-\u5bf9\u8c61\u91cc\u7684\u5c5e\u6027","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"storage \u5bf9\u8c61\u91cc\u7684\u5c5e\u6027"),a.a.createElement("ul",null,a.a.createElement("li",null,"get(key) \uff0c\u4ece ",a.a.createElement("code",null,"localStorage")," \u4e2d\u901a\u8fc7 key \u83b7\u53d6\u5230\u6570\u636e"),a.a.createElement("li",null,"set(key, value) \uff0c\u8bbe\u7f6e ",a.a.createElement("code",null,"localStorage")," \u4e2d key \u6570\u636e\u4e3a value"),a.a.createElement("li",null,"remove(key) \uff0c\u79fb\u9664 ",a.a.createElement("code",null,"localStorage")," \u4e2d\u7684\u6570\u636e"),a.a.createElement("li",null,"getSession(key) \uff0c\u4ece ",a.a.createElement("code",null,"sessionStorage")," \u4e2d\u901a\u8fc7 key \u83b7\u53d6\u5230\u6570\u636e"),a.a.createElement("li",null,"setSession(key, value) \uff0c\u8bbe\u7f6e ",a.a.createElement("code",null,"sessionStorage")," \u4e2d key \u6570\u636e\u4e3a value"),a.a.createElement("li",null,"removeSession(key) \uff0c\u79fb\u9664 ",a.a.createElement("code",null,"sessionStorage")," \u4e2d\u7684\u6570\u636e")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["storage-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},X0H4:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("N59M"),i=n("h+/6"),l=n("eyaU"),c=n("ZT9G"),u=n("rCLu"),s=n("uF/W"),f=!!o&&i((function(){o.prototype["finally"].call({then:function(){}},(function(){}))}));r({target:"Promise",proto:!0,real:!0,forced:f},{finally:function(e){var t=c(this,l("Promise")),n="function"==typeof e;return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),a||"function"!=typeof o||o.prototype["finally"]||s(o.prototype,"finally",l("Promise").prototype["finally"])},X7eB:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["throttle-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"throttle"},a.a.createElement(o["AnchorLink"],{to:"#throttle","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"throttle"),a.a.createElement("p",null,"\u89c4\u5b9a\u4e00\u4e2a\u5355\u4f4d\u65f6\u95f4\uff0c\u5728\u8fd9\u4e2a\u5355\u4f4d\u65f6\u95f4\u5185\uff0c\u53ea\u80fd\u6709\u4e00\u6b21\u89e6\u53d1\u4e8b\u4ef6\u7684\u56de\u8c03\u51fd\u6570\u6267\u884c\uff0c\u5982\u679c\u5728\u540c\u4e00\u4e2a\u5355\u4f4d\u65f6\u95f4\u5185\u67d0\u4e8b\u4ef6\u88ab\u89e6\u53d1\u591a\u6b21\uff0c\u53ea\u6709\u4e00\u6b21\u80fd\u751f\u6548\u3002"),a.a.createElement("h3",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"throttle: (func: T, wait?: number) => (...args: any[]) => void | ReturnType;",lang:"unknown"}),a.a.createElement("h3",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"func \u8282\u6d41\u51fd\u6570"),a.a.createElement("li",null,"wait \u89c4\u5b9a\u591a\u4e45\u53ef\u4ee5\u6267\u884c\u4e00\u6b21\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2(ms)")),a.a.createElement("h3",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u8fd4\u56de\u8282\u6d41\u7684\u51fd\u6570\u3002")),a.a.createElement("h3",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["throttle-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},XAgF:function(e,t){function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},XDG7:function(e,t,n){var r=n("GXoa");r("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},XLmh:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["last-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"last"},a.a.createElement(o["AnchorLink"],{to:"#last","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"last"),a.a.createElement("p",null,"\u53d6\u672b\u4e2a\u503c\uff0c\u53ef\u7528\u4e8e\u5bf9\u8c61\u6216\u6570\u7ec4\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"const last: (value: any[] | Object) => T",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value \u6e90\u96c6\u5408")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u5982\u679c ",a.a.createElement("code",null,"value \u6e90\u96c6\u5408")," \u4e3a\u6570\u7ec4\uff0c\u8fd4\u56de\u6570\u7ec4\u7684\u6700\u540e\u4e00\u4e2a\u5143\u7d20\u3002"),a.a.createElement("li",null,"\u5982\u679c ",a.a.createElement("code",null,"value \u6e90\u96c6\u5408")," \u4e3a\u5bf9\u8c61\uff0c\u8fd4\u56de\u5bf9\u8c61\u7684\u6700\u540e\u4e00\u4e2a\u5c5e\u6027\u7684\u503c\u3002")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"last([1, 2, 3, 4, 5]) //5",lang:"javascript"})),a.a.createElement(i["default"],t["last-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},XZPW:function(e,t,n){"use strict";var r=n("g0pg"),a=r.aTypedArray,o=r.exportTypedArrayMethod,i=[].sort;o("sort",(function(e){return i.call(a(this),e)}))},Xu7U:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("l4Xg"),l=a.a.memo((e=>{e.demos;return a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"frameprocess"},a.a.createElement(o["AnchorLink"],{to:"#frameprocess","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"FrameProcess"),a.a.createElement("h2",{id:"frameprocess-\u5e27\u8fdb\u7a0b\u7528\u4e8e\u5236\u4f5c\u52a8\u753b"},a.a.createElement(o["AnchorLink"],{to:"#frameprocess-\u5e27\u8fdb\u7a0b\u7528\u4e8e\u5236\u4f5c\u52a8\u753b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"FrameProcess \u5e27\u8fdb\u7a0b\uff0c\u7528\u4e8e\u5236\u4f5c\u52a8\u753b"),a.a.createElement("h3",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(i["a"],{code:"",lang:"unknown"}),a.a.createElement("h3",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("h3",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("h3",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(i["a"],{code:"",lang:"javascript"})))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(l,{demos:n})}},XuqB:function(e,t,n){var r=n("OOCw"),a=n("sErw"),o=n("kXTd"),i=n("dz2h"),l=n("uJNS"),c="Seeded Random",u=c+" Generator",s=l.set,f=l.getterFor(u),d='Math.seededPRNG() argument should have a "seed" field with a finite value.',p=i((function(e){s(this,{type:u,seed:e%2147483647})}),c,(function(){var e=f(this),t=e.seed=(1103515245*e.seed+12345)%2147483647;return{value:(1073741823&t)/1073741823,done:!1}}));r({target:"Math",stat:!0,forced:!0},{seededPRNG:function(e){var t=a(e).seed;if(!o(t))throw TypeError(d);return new p(t)}})},XxTS:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("sErw"),i=n("lkgX"),l=n("uZx/");r({target:"Map",proto:!0,real:!0,forced:a},{merge:function(e){var t=o(this),n=i(t.set),r=0;while(r{var t=e.demos,n=t["isArray-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"isarray"},a.a.createElement(o["AnchorLink"],{to:"#isarray","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isArray"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a\u6570\u7ec4\u7c7b\u578b\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isArray: (value: any) => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value \uff0c\u8981\u5224\u65ad\u7684\u6570\u636e")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \uff0c\u662f\u6570\u7ec4\u7c7b\u578b"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \uff0c\u4e0d\u662f\u6570\u7ec4\u7c7b\u578b")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isArray-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},YfbA:function(e,t,n){var r=n("684d"),a=n("upgS"),o=n("erIx"),i=function(e){return function(t,n,i){var l,c=r(t),u=a(c.length),s=o(i,u);if(e&&n!=n){while(u>s)if(l=c[s++],l!=l)return!0}else for(;u>s;s++)if((e||s in c)&&c[s]===n)return e||s||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},Yxqv:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("eyaU"),i=n("sErw"),l=n("lkgX"),c=n("ZT9G"),u=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:a},{symmetricDifference:function(e){var t=i(this),n=new(c(t,o("Set")))(t),r=l(n["delete"]),a=l(n.add);return u(e,(function(e){r.call(n,e)||a.call(n,e)})),n}})},Z4n3:function(e,t,n){"use strict";var r=n("nNWW"),a=n("SHha"),o=n("f4/9");function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}function X(e,t,n,r,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o}var Q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Q[e]=new X(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Q[t]=new X(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Q[e]=new X(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Q[e]=new X(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){Q[e]=new X(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Q[e]=new X(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){Q[e]=new X(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){Q[e]=new X(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){Q[e]=new X(e,5,!1,e.toLowerCase(),null,!1)}));var Y=/[\-:]([a-z])/g;function Z(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Y,Z);Q[t]=new X(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Y,Z);Q[t]=new X(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Y,Z);Q[t]=new X(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){Q[e]=new X(e,1,!1,e.toLowerCase(),null,!1)})),Q.xlinkHref=new X("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){Q[e]=new X(e,1,!1,e.toLowerCase(),null,!0)}));var ee=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function te(e,t,n,r){var a=Q.hasOwnProperty(t)?Q[t]:null,o=null!==a?0===a.type:!r&&(2=n.length))throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ke(n)}}function ze(e,t){var n=ke(t.value),r=ke(t.defaultValue);null!=n&&(n=""+n,n!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function We(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Be={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Ue(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ge(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Ue(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Je,He=function(e){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,a){MSApp.execUnsafeLocalFunction((function(){return e(t,n,r,a)}))}:e}((function(e,t){if(e.namespaceURI!==Be.svg||"innerHTML"in e)e.innerHTML=t;else{for(Je=Je||document.createElement("div"),Je.innerHTML=""+t.valueOf().toString()+"",t=Je.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function Ke(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Ve(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var qe={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},$e={},Xe={};function Qe(e){if($e[e])return $e[e];if(!qe[e])return e;var t,n=qe[e];for(t in n)if(n.hasOwnProperty(t)&&t in Xe)return $e[e]=n[t];return e}C&&(Xe=document.createElement("div").style,"AnimationEvent"in window||(delete qe.animationend.animation,delete qe.animationiteration.animation,delete qe.animationstart.animation),"TransitionEvent"in window||delete qe.transitionend.transition);var Ye=Qe("animationend"),Ze=Qe("animationiteration"),et=Qe("animationstart"),tt=Qe("transitionend"),nt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),rt=new("function"===typeof WeakMap?WeakMap:Map);function at(e){var t=rt.get(e);return void 0===t&&(t=new Map,rt.set(e,t)),t}function ot(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{t=e,0!==(1026&t.effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function it(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(e=e.alternate,null!==e&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function lt(e){if(ot(e)!==e)throw Error(i(188))}function ct(e){var t=e.alternate;if(!t){if(t=ot(e),null===t)throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var o=a.alternate;if(null===o){if(r=a.return,null!==r){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return lt(a),e;if(o===r)return lt(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var l=!1,c=a.child;c;){if(c===n){l=!0,n=a,r=o;break}if(c===r){l=!0,r=a,n=o;break}c=c.sibling}if(!l){for(c=o.child;c;){if(c===n){l=!0,n=o,r=a;break}if(c===r){l=!0,r=o,n=a;break}c=c.sibling}if(!l)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}function ut(e){if(e=ct(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function st(e,t){if(null==t)throw Error(i(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function ft(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var dt=null;function pt(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;rgt.length&>.push(e)}function bt(e,t,n,r){if(gt.length){var a=gt.pop();return a.topLevelType=e,a.eventSystemFlags=r,a.nativeEvent=t,a.targetInst=n,a}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function Et(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;t=n.tag,5!==t&&6!==t||e.ancestors.push(n),n=Bn(r)}while(n);for(n=0;n=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=En(r)}}function xn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?xn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function kn(){for(var e=window,t=bn();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;e=t.contentWindow,t=bn(e.document)}return t}function Sn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var On="$",An="/$",jn="$?",Cn="$!",Nn=null,Tn=null;function Pn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function _n(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Dn="function"===typeof setTimeout?setTimeout:void 0,In="function"===typeof clearTimeout?clearTimeout:void 0;function Fn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Ln(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===On||n===Cn||n===jn){if(0===t)return e;t--}else n===An&&t++}e=e.previousSibling}return null}var Rn=Math.random().toString(36).slice(2),Mn="__reactInternalInstance$"+Rn,zn="__reactEventHandlers$"+Rn,Wn="__reactContainere$"+Rn;function Bn(e){var t=e[Mn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Wn]||n[Mn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Ln(e);null!==e;){if(n=e[Mn])return n;e=Ln(e)}return t}e=n,n=e.parentNode}return null}function Un(e){return e=e[Mn]||e[Wn],!e||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Gn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function Jn(e){return e[zn]||null}function Hn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Kn(e,t){var n=e.stateNode;if(!n)return null;var r=h(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!("button"===e||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}function Vn(e,t,n){(t=Kn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=st(n._dispatchListeners,t),n._dispatchInstances=st(n._dispatchInstances,e))}function qn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Hn(t);for(t=n.length;0this.eventPool.length&&this.eventPool.push(e)}function lr(e){e.eventPool=[],e.getPooled=or,e.release=ir}a(ar.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nr)},persist:function(){this.isPersistent=nr},isPersistent:rr,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=rr,this._dispatchInstances=this._dispatchListeners=null}}),ar.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ar.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return a(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=a({},r.Interface,e),n.extend=r.extend,lr(n),n},lr(ar);var cr=ar.extend({data:null}),ur=ar.extend({data:null}),sr=[9,13,27,32],fr=C&&"CompositionEvent"in window,dr=null;C&&"documentMode"in document&&(dr=document.documentMode);var pr=C&&"TextEvent"in window&&!dr,mr=C&&(!fr||dr&&8=dr),hr=String.fromCharCode(32),vr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},gr=!1;function yr(e,t){switch(e){case"keyup":return-1!==sr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function br(e){return e=e.detail,"object"===typeof e&&"data"in e?e.data:null}var Er=!1;function wr(e,t){switch(e){case"compositionend":return br(t);case"keypress":return 32!==t.which?null:(gr=!0,hr);case"textInput":return e=t.data,e===hr&&gr?null:e;default:return null}}function xr(e,t){if(Er)return"compositionend"===e||!fr&&yr(e,t)?(e=tr(),er=Zn=Yn=null,Er=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=document.documentMode,aa={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},oa=null,ia=null,la=null,ca=!1;function ua(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return ca||null==oa||oa!==bn(n)?null:(n=oa,"selectionStart"in n&&Sn(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),la&&na(la,n)?null:(la=n,e=ar.getPooled(aa.select,ia,e,t),e.type="select",e.target=oa,Qn(e),e))}var sa={eventTypes:aa,extractEvents:function(e,t,n,r,a,o){if(a=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument),!(o=!a)){e:{a=at(a),o=A.onSelect;for(var i=0;iOa||(e.current=Sa[Oa],Sa[Oa]=null,Oa--)}function ja(e,t){Oa++,Sa[Oa]=e.current,e.current=t}var Ca={},Na={current:Ca},Ta={current:!1},Pa=Ca;function _a(e,t){var n=e.type.contextTypes;if(!n)return Ca;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Da(e){return e=e.childContextTypes,null!==e&&void 0!==e}function Ia(){Aa(Ta),Aa(Na)}function Fa(e,t,n){if(Na.current!==Ca)throw Error(i(168));ja(Na,t),ja(Ta,n)}function La(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext(),r)if(!(o in e))throw Error(i(108,we(t)||"Unknown",o));return a({},n,{},r)}function Ra(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ca,Pa=Na.current,ja(Na,e),ja(Ta,Ta.current),!0}function Ma(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=La(e,t,Pa),r.__reactInternalMemoizedMergedChildContext=e,Aa(Ta),Aa(Na),ja(Na,e)):Aa(Ta),ja(Ta,n)}var za=o.unstable_runWithPriority,Wa=o.unstable_scheduleCallback,Ba=o.unstable_cancelCallback,Ua=o.unstable_requestPaint,Ga=o.unstable_now,Ja=o.unstable_getCurrentPriorityLevel,Ha=o.unstable_ImmediatePriority,Ka=o.unstable_UserBlockingPriority,Va=o.unstable_NormalPriority,qa=o.unstable_LowPriority,$a=o.unstable_IdlePriority,Xa={},Qa=o.unstable_shouldYield,Ya=void 0!==Ua?Ua:function(){},Za=null,eo=null,to=!1,no=Ga(),ro=1e4>no?Ga:function(){return Ga()-no};function ao(){switch(Ja()){case Ha:return 99;case Ka:return 98;case Va:return 97;case qa:return 96;case $a:return 95;default:throw Error(i(332))}}function oo(e){switch(e){case 99:return Ha;case 98:return Ka;case 97:return Va;case 96:return qa;case 95:return $a;default:throw Error(i(332))}}function io(e,t){return e=oo(e),za(e,t)}function lo(e,t,n){return e=oo(e),Wa(e,t,n)}function co(e){return null===Za?(Za=[e],eo=Wa(Ha,so)):Za.push(e),Xa}function uo(){if(null!==eo){var e=eo;eo=null,Ba(e)}so()}function so(){if(!to&&null!==Za){to=!0;var e=0;try{var t=Za;io(99,(function(){for(;e=t&&(qi=!0),e.firstContext=null)}function xo(e,t){if(go!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(go=e,t=1073741823),t={context:e,observedBits:t,next:null},null===vo){if(null===ho)throw Error(i(308));vo=t,ho.dependencies={expirationTime:0,firstContext:t,responders:null}}else vo=vo.next=t;return e._currentValue}var ko=!1;function So(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function Oo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function Ao(e,t){return e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null},e.next=e}function jo(e,t){if(e=e.updateQueue,null!==e){e=e.shared;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function Co(e,t){var n=e.alternate;null!==n&&Oo(n,e),e=e.updateQueue,n=e.baseQueue,null===n?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function No(e,t,n,r){var o=e.updateQueue;ko=!1;var i=o.baseQueue,l=o.shared.pending;if(null!==l){if(null!==i){var c=i.next;i.next=l.next,l.next=c}i=l,o.shared.pending=null,c=e.alternate,null!==c&&(c=c.updateQueue,null!==c&&(c.baseQueue=l))}if(null!==i){c=i.next;var u=o.baseState,s=0,f=null,d=null,p=null;if(null!==c){var m=c;do{if(l=m.expirationTime,ls&&(s=l)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:m.suspenseConfig,tag:m.tag,payload:m.payload,callback:m.callback,next:null}),Lc(l,m.suspenseConfig);e:{var v=e,g=m;switch(l=t,h=n,g.tag){case 1:if(v=g.payload,"function"===typeof v){u=v.call(h,u,l);break e}u=v;break e;case 3:v.effectTag=-4097&v.effectTag|64;case 0:if(v=g.payload,l="function"===typeof v?v.call(h,u,l):v,null===l||void 0===l)break e;u=a({},u,l);break e;case 2:ko=!0}}null!==m.callback&&(e.effectTag|=32,l=o.effects,null===l?o.effects=[m]:l.push(m))}if(m=m.next,null===m||m===c){if(l=o.shared.pending,null===l)break;m=i.next=l.next,l.next=c,o.baseQueue=i=l,o.shared.pending=null}}while(1)}null===p?f=u:p.next=d,o.baseState=f,o.baseQueue=p,Rc(s),e.expirationTime=s,e.memoizedState=u}}function To(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;th?(v=f,f=null):v=f.sibling;var g=p(a,f,l[h],c);if(null===g){null===f&&(f=v);break}e&&f&&null===g.alternate&&t(a,f),i=o(g,i,h),null===s?u=g:s.sibling=g,s=g,f=v}if(h===l.length)return n(a,f),u;if(null===f){for(;hv?(g=h,h=null):g=h.sibling;var b=p(a,h,y.value,u);if(null===b){null===h&&(h=g);break}e&&h&&null===b.alternate&&t(a,h),l=o(b,l,v),null===f?s=b:f.sibling=b,f=b,h=g}if(y.done)return n(a,h),s;if(null===h){for(;!y.done;v++,y=c.next())y=d(a,y.value,u),null!==y&&(l=o(y,l,v),null===f?s=y:f.sibling=y,f=y);return s}for(h=r(a,h);!y.done;v++,y=c.next())y=m(h,a,v,y.value,u),null!==y&&(e&&null!==y.alternate&&h.delete(null===y.key?v:y.key),l=o(y,l,v),null===f?s=y:f.sibling=y,f=y);return e&&h.forEach((function(e){return t(a,e)})),s}return function(e,r,o,c){var u="object"===typeof o&&null!==o&&o.type===ie&&null===o.key;u&&(o=o.props.children);var s="object"===typeof o&&null!==o;if(s)switch(o.$$typeof){case ae:e:{for(s=o.key,u=r;null!==u;){if(u.key===s){switch(u.tag){case 7:if(o.type===ie){n(e,u.sibling),r=a(u,o.props.children),r.return=e,e=r;break e}break;default:if(u.elementType===o.type){n(e,u.sibling),r=a(u,o.props),r.ref=Wo(e,u,o),r.return=e,e=r;break e}}n(e,u);break}t(e,u),u=u.sibling}o.type===ie?(r=lu(o.props.children,e.mode,c,o.key),r.return=e,e=r):(c=iu(o.type,o.key,o.props,null,e.mode,c),c.ref=Wo(e,r,o),c.return=e,e=c)}return l(e);case oe:e:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),r=a(r,o.children||[]),r.return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}r=uu(o,e.mode,c),r.return=e,e=r}return l(e)}if("string"===typeof o||"number"===typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),r=a(r,o),r.return=e,e=r):(n(e,r),r=cu(o,e.mode,c),r.return=e,e=r),l(e);if(zo(o))return h(e,r,o,c);if(be(o))return v(e,r,o,c);if(s&&Bo(e,o),"undefined"===typeof o&&!u)switch(e.tag){case 1:case 0:throw e=e.type,Error(i(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Go=Uo(!0),Jo=Uo(!1),Ho={},Ko={current:Ho},Vo={current:Ho},qo={current:Ho};function $o(e){if(e===Ho)throw Error(i(174));return e}function Xo(e,t){switch(ja(qo,t),ja(Vo,e),ja(Ko,Ho),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ge(null,"");break;default:e=8===e?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ge(t,e)}Aa(Ko),ja(Ko,t)}function Qo(){Aa(Ko),Aa(Vo),Aa(qo)}function Yo(e){$o(qo.current);var t=$o(Ko.current),n=Ge(t,e.type);t!==n&&(ja(Vo,e),ja(Ko,n))}function Zo(e){Vo.current===e&&(Aa(Ko),Aa(Vo))}var ei={current:0};function ti(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(n=n.dehydrated,null===n||n.data===jn||n.data===Cn))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function ni(e,t){return{responder:e,props:t}}var ri=ee.ReactCurrentDispatcher,ai=ee.ReactCurrentBatchConfig,oi=0,ii=null,li=null,ci=null,ui=!1;function si(){throw Error(i(321))}function fi(e,t){if(null===t)return!1;for(var n=0;no))throw Error(i(301));o+=1,ci=li=null,t.updateQueue=null,ri.current=Ri,e=n(r,a)}while(t.expirationTime===oi)}if(ri.current=Ii,t=null!==li&&null!==li.next,oi=0,ci=li=ii=null,ui=!1,t)throw Error(i(300));return e}function pi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ci?ii.memoizedState=ci=e:ci=ci.next=e,ci}function mi(){if(null===li){var e=ii.alternate;e=null!==e?e.memoizedState:null}else e=li.next;var t=null===ci?ii.memoizedState:ci.next;if(null!==t)ci=t,li=e;else{if(null===e)throw Error(i(310));li=e,e={memoizedState:li.memoizedState,baseState:li.baseState,baseQueue:li.baseQueue,queue:li.queue,next:null},null===ci?ii.memoizedState=ci=e:ci=ci.next=e}return ci}function hi(e,t){return"function"===typeof t?t(e):t}function vi(e){var t=mi(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=li,a=r.baseQueue,o=n.pending;if(null!==o){if(null!==a){var l=a.next;a.next=o.next,o.next=l}r.baseQueue=a=o,n.pending=null}if(null!==a){a=a.next,r=r.baseState;var c=l=o=null,u=a;do{var s=u.expirationTime;if(sii.expirationTime&&(ii.expirationTime=s,Rc(s))}else null!==c&&(c=c.next={expirationTime:1073741823,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),Lc(s,u.suspenseConfig),r=u.eagerReducer===e?u.eagerState:e(r,u.action);u=u.next}while(null!==u&&u!==a);null===c?o=r:c.next=l,ea(r,t.memoizedState)||(qi=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=c,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function gi(e){var t=mi(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(null!==a){n.pending=null;var l=a=a.next;do{o=e(o,l.action),l=l.next}while(l!==a);ea(o,t.memoizedState)||(qi=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function yi(e){var t=pi();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:hi,lastRenderedState:e},e=e.dispatch=Di.bind(null,ii,e),[t.memoizedState,e]}function bi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ii.updateQueue,null===t?(t={lastEffect:null},ii.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,null===n?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Ei(){return mi().memoizedState}function wi(e,t,n,r){var a=pi();ii.effectTag|=e,a.memoizedState=bi(1|t,n,void 0,void 0===r?null:r)}function xi(e,t,n,r){var a=mi();r=void 0===r?null:r;var o=void 0;if(null!==li){var i=li.memoizedState;if(o=i.destroy,null!==r&&fi(r,i.deps))return void bi(t,n,o,r)}ii.effectTag|=e,a.memoizedState=bi(1|t,n,o,r)}function ki(e,t){return wi(516,4,e,t)}function Si(e,t){return xi(516,4,e,t)}function Oi(e,t){return xi(4,2,e,t)}function Ai(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ji(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,xi(4,2,Ai.bind(null,t,e),n)}function Ci(){}function Ni(e,t){return pi().memoizedState=[e,void 0===t?null:t],e}function Ti(e,t){var n=mi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&fi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Pi(e,t){var n=mi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&fi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function _i(e,t,n){var r=ao();io(98>r?98:r,(function(){e(!0)})),io(97<\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=c.createElement(o,{is:r.is}):(e=c.createElement(o),"select"===o&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,o),e[Mn]=t,e[zn]=r,al(e,t,!1,!1),t.stateNode=e,c=hn(o,r),o){case"iframe":case"object":case"embed":nn("load",e),u=r;break;case"video":case"audio":for(u=0;ur.tailExpiration&&1t)&&yc.set(e,t)))}}function Oc(e,t){e.expirationTimee?n:e,2>=e&&t!==e?0:e}function jc(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=co(Nc.bind(null,e));else{var t=Ac(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=xc();if(1073741823===t?r=99:1===t||2===t?r=95:(r=10*(1073741821-t)-10*(1073741821-r),r=0>=r?99:250>=r?98:5250>=r?97:95),null!==n){var a=e.callbackPriority;if(e.callbackExpirationTime===t&&a>=r)return;n!==Xa&&Ba(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?co(Nc.bind(null,e)):lo(r,Cc.bind(null,e),{timeout:10*(1073741821-t)-ro()}),e.callbackNode=t}}}function Cc(e,t){if(wc=0,t)return t=xc(),mu(e,t),jc(e),null;var n=Ac(e);if(0!==n){if(t=e.callbackNode,(Yl&(Jl|Hl))!==Ul)throw Error(i(327));if(Kc(),e===Zl&&n===tc||Dc(e,n),null!==ec){var r=Yl;Yl|=Jl;var a=Fc();do{try{zc();break}catch(c){Ic(e,c)}}while(1);if(yo(),Yl=r,Wl.current=a,nc===Vl)throw t=rc,Dc(e,n),du(e,n),jc(e),t;if(null===ec)switch(a=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=nc,Zl=null,r){case Kl:case Vl:throw Error(i(345));case ql:mu(e,2=n){e.lastPingedTime=n,Dc(e,n);break}}if(o=Ac(e),0!==o&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=Dn(Gc.bind(null,e),a);break}Gc(e);break;case Xl:if(du(e,n),r=e.lastSuspendedTime,n===r&&(e.nextKnownPendingLevel=Uc(a)),cc&&(a=e.lastPingedTime,0===a||a>=n)){e.lastPingedTime=n,Dc(e,n);break}if(a=Ac(e),0!==a&&a!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==oc?r=10*(1073741821-oc)-ro():1073741823===ac?r=0:(r=10*(1073741821-ac)-5e3,a=ro(),n=10*(1073741821-n)-a,r=a-r,0>r&&(r=0),r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*zl(r/1960))-r,n=r?r=0:(a=0|l.busyDelayMs,o=ro()-(10*(1073741821-o)-(0|l.timeoutMs||5e3)),r=o<=a?0:a+r-o),10 component higher in the tree to provide a loading indicator or placeholder to display."+xe(i))}nc!==Ql&&(nc=ql),l=gl(l,i),f=o;do{switch(f.tag){case 3:c=l,f.effectTag|=4096,f.expirationTime=t;var E=Ll(f,c,t);Co(f,E);break e;case 1:c=l;var w=f.type,x=f.stateNode;if(0===(64&f.effectTag)&&("function"===typeof w.getDerivedStateFromError||null!==x&&"function"===typeof x.componentDidCatch&&(null===mc||!mc.has(x)))){f.effectTag|=4096,f.expirationTime=t;var k=Rl(f,c,t);Co(f,k);break e}}f=f.return}while(null!==f)}ec=Bc(ec)}catch(S){t=S;continue}break}while(1)}function Fc(){var e=Wl.current;return Wl.current=Ii,null===e?Ii:e}function Lc(e,t){elc&&(lc=e)}function Mc(){for(;null!==ec;)ec=Wc(ec)}function zc(){for(;null!==ec&&!Qa();)ec=Wc(ec)}function Wc(e){var t=Ml(e.alternate,e,tc);return e.memoizedProps=e.pendingProps,null===t&&(t=Bc(e)),Bl.current=null,t}function Bc(e){ec=e;do{var t=ec.alternate;if(e=ec.return,0===(2048&ec.effectTag)){if(t=hl(t,ec,tc),1===tc||1!==ec.childExpirationTime){for(var n=0,r=ec.child;null!==r;){var a=r.expirationTime,o=r.childExpirationTime;a>n&&(n=a),o>n&&(n=o),r=r.sibling}ec.childExpirationTime=n}if(null!==t)return t;null!==e&&0===(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=ec.firstEffect),null!==ec.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=ec.firstEffect),e.lastEffect=ec.lastEffect),1e?t:e}function Gc(e){var t=ao();return io(99,Jc.bind(null,e,t)),null}function Jc(e,t){do{Kc()}while(null!==vc);if((Yl&(Jl|Hl))!==Ul)throw Error(i(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var a=Uc(n);if(e.firstPendingTime=a,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Zl&&(ec=Zl=null,tc=0),1c&&(s=c,c=l,l=s),s=wn(E,l),f=wn(E,c),s&&f&&(1!==x.rangeCount||x.anchorNode!==s.node||x.anchorOffset!==s.offset||x.focusNode!==f.node||x.focusOffset!==f.offset)&&(w=w.createRange(),w.setStart(s.node,s.offset),x.removeAllRanges(),l>c?(x.addRange(w),x.extend(f.node,f.offset)):(w.setEnd(f.node,f.offset),x.addRange(w)))))),w=[];for(x=E;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"===typeof E.focus&&E.focus(),E=0;E=n?ul(e,t,n):(ja(ei,1&ei.current),t=pl(e,t,n),null!==t?t.sibling:null);ja(ei,1&ei.current);break;case 19:if(r=t.childExpirationTime>=n,0!==(64&e.effectTag)){if(r)return dl(e,t,n);t.effectTag|=64}if(a=t.memoizedState,null!==a&&(a.rendering=null,a.tail=null),ja(ei,ei.current),!r)return null}return pl(e,t,n)}qi=!1}}else qi=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,a=_a(t,Na.current),wo(t,n),a=di(null,t,r,e,a,n),t.effectTag|=1,"object"===typeof a&&null!==a&&"function"===typeof a.render&&void 0===a.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Da(r)){var o=!0;Ra(t)}else o=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,So(t);var l=r.getDerivedStateFromProps;"function"===typeof l&&Do(t,r,l,e),a.updater=Io,t.stateNode=a,a._reactInternalFiber=t,Mo(t,r,e,n),t=nl(null,t,r,!0,o,n)}else t.tag=0,$i(null,t,a,n),t=t.child;return t;case 16:e:{if(a=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,Ee(a),1!==a._status)throw a._result;switch(a=a._result,t.type=a,o=t.tag=au(a),e=po(a,e),o){case 0:t=el(null,t,a,e,n);break e;case 1:t=tl(null,t,a,e,n);break e;case 11:t=Xi(null,t,a,e,n);break e;case 14:t=Qi(null,t,a,po(a.type,e),r,n);break e}throw Error(i(306,a,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:po(r,a),el(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:po(r,a),tl(e,t,r,a,n);case 3:if(rl(t),r=t.updateQueue,null===e||null===r)throw Error(i(282));if(r=t.pendingProps,a=t.memoizedState,a=null!==a?a.element:null,Oo(e,t),No(t,r,null,n),r=t.memoizedState.element,r===a)Ki(),t=pl(e,t,n);else{if((a=t.stateNode.hydrate)&&(zi=Fn(t.stateNode.containerInfo.firstChild),Mi=t,a=Wi=!0),a)for(n=Jo(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else $i(e,t,r,n),Ki();t=t.child}return t;case 5:return Yo(t),null===e&&Gi(t),r=t.type,a=t.pendingProps,o=null!==e?e.memoizedProps:null,l=a.children,_n(r,a)?l=null:null!==o&&_n(r,o)&&(t.effectTag|=16),Zi(e,t),4&t.mode&&1!==n&&a.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):($i(e,t,l,n),t=t.child),t;case 6:return null===e&&Gi(t),null;case 13:return ul(e,t,n);case 4:return Xo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Go(t,null,r,n):$i(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:po(r,a),Xi(e,t,r,a,n);case 7:return $i(e,t,t.pendingProps,n),t.child;case 8:return $i(e,t,t.pendingProps.children,n),t.child;case 12:return $i(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,a=t.pendingProps,l=t.memoizedProps,o=a.value;var c=t.type._context;if(ja(mo,c._currentValue),c._currentValue=o,null!==l)if(c=l.value,o=ea(c,o)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(c,o):1073741823),0===o){if(l.children===a.children&&!Ta.current){t=pl(e,t,n);break e}}else for(c=t.child,null!==c&&(c.return=t);null!==c;){var u=c.dependencies;if(null!==u){l=c.child;for(var s=u.firstContext;null!==s;){if(s.context===r&&0!==(s.observedBits&o)){1===c.tag&&(s=Ao(n,null),s.tag=2,jo(c,s)),c.expirationTime=t&&e<=t}function du(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;nt||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function pu(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function mu(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function hu(e,t,n,r){var a=t.current,o=xc(),l=Po.suspense;o=kc(o,a,l);e:if(n){n=n._reactInternalFiber;t:{if(ot(n)!==n||1!==n.tag)throw Error(i(170));var c=n;do{switch(c.tag){case 3:c=c.stateNode.context;break t;case 1:if(Da(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break t}}c=c.return}while(null!==c);throw Error(i(171))}if(1===n.tag){var u=n.type;if(Da(u)){n=La(n,u,c);break e}}n=c}else n=Ca;return null===t.context?t.context=n:t.pendingContext=n,t=Ao(o,l),t.payload={element:e},r=void 0===r?null:r,null!==r&&(t.callback=r),jo(a,t),Sc(a,o),o}function vu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function gu(e,t){e=e.memoizedState,null!==e&&null!==e.dehydrated&&e.retryTime{var t=e.demos,n=t["delay-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"delay"},a.a.createElement(o["AnchorLink"],{to:"#delay","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"delay"),a.a.createElement("p",null,"\u53ef\u6a21\u62df\u5f02\u6b65\u64cd\u4f5c\u7684\u5ef6\u8fdf\u6267\u884c\u51fd\u6570\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"delay(time: number): Promise",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("p",null,a.a.createElement("code",null,"delay(time: number)")," \uff0c\u8981\u5ef6\u8fdf\u6267\u884c\u7684\u65f6\u95f4\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2(ms)\u3002"),a.a.createElement("h3",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("p",null,"\u8fd4\u56de\u4e00\u4e2a ",a.a.createElement("code",null,"PromiseState")," \u4e3a ",a.a.createElement("code",null,"fulfilled")," \u7684 ",a.a.createElement("code",null,"Promise")," \u5bf9\u8c61\u3002"),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["delay-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},ZGY3:function(e,t,n){var r=n("3Hes"),a=n("QWtl"),o=n("0JbB"),i=r("unscopables"),l=Array.prototype;void 0==l[i]&&o.f(l,i,{configurable:!0,value:a(null)}),e.exports=function(e){l[i][e]=!0}},ZIdP:function(e,t,n){var r=n("OOCw"),a=n("1Sp3"),o=n("sErw"),i=a.toKey,l=a.set;r({target:"Reflect",stat:!0},{defineMetadata:function(e,t,n){var r=arguments.length<4?void 0:i(arguments[3]);l(e,t,o(n),r)}})},ZT9G:function(e,t,n){var r=n("sErw"),a=n("lkgX"),o=n("3Hes"),i=o("species");e.exports=function(e,t){var n,o=r(e).constructor;return void 0===o||void 0==(n=r(o)[i])?t:a(n)}},ZVkV:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},ZYMV:function(e,t,n){var r=n("ZwOi"),a=Math.abs,o=Math.pow,i=o(2,-52),l=o(2,-23),c=o(2,127)*(2-l),u=o(2,-126),s=function(e){return e+1/i-1/i};e.exports=Math.fround||function(e){var t,n,o=a(e),f=r(e);return oc||n!=n?f*(1/0):f*n)}},Zjj6:function(e,t,n){var r=n("+U9+"),a=n("VJj2");function o(e){return null!=e&&a(e.length)&&!r(e)}e.exports=o},Zjmp:function(e,t,n){var r=n("ry6q"),a=n("mIaV"),o=n("EA9V"),i=n("nXRf"),l=n("KSsz"),c=n("M9kN");function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=a,u.prototype["delete"]=o,u.prototype.get=i,u.prototype.has=l,u.prototype.set=c,e.exports=u},ZmXH:function(e,t,n){"use strict";var r=n("0JbB").f,a=n("QWtl"),o=n("TxBV"),i=n("v3z7"),l=n("CZSf"),c=n("uZx/"),u=n("vSpU"),s=n("ct0+"),f=n("r+6h"),d=n("gArs").fastKey,p=n("uJNS"),m=p.set,h=p.getterFor;e.exports={getConstructor:function(e,t,n,u){var s=e((function(e,r){l(e,s,t),m(e,{type:t,index:a(null),first:void 0,last:void 0,size:0}),f||(e.size=0),void 0!=r&&c(r,e[u],e,n)})),p=h(t),v=function(e,t,n){var r,a,o=p(e),i=g(e,t);return i?i.value=n:(o.last=i={index:a=d(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=i),r&&(r.next=i),f?o.size++:e.size++,"F"!==a&&(o.index[a]=i)),e},g=function(e,t){var n,r=p(e),a=d(t);if("F"!==a)return r.index[a];for(n=r.first;n;n=n.next)if(n.key==t)return n};return o(s.prototype,{clear:function(){var e=this,t=p(e),n=t.index,r=t.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete n[r.index],r=r.next;t.first=t.last=void 0,f?t.size=0:e.size=0},delete:function(e){var t=this,n=p(t),r=g(t,e);if(r){var a=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=a),a&&(a.previous=o),n.first==r&&(n.first=a),n.last==r&&(n.last=o),f?n.size--:t.size--}return!!r},forEach:function(e){var t,n=p(this),r=i(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:n.first){r(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!g(this,e)}}),o(s.prototype,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),f&&r(s.prototype,"size",{get:function(){return p(this).size}}),s},setStrong:function(e,t,n){var r=t+" Iterator",a=h(t),o=h(r);u(e,t,(function(e,t){m(this,{type:r,target:e,state:a(e),kind:t,last:void 0})}),(function(){var e=o(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),s(t)}}},Zsrj:function(e,t,n){(function(e){var r=n("O4yA"),a=n("RfhN"),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,l=i&&i.exports===o,c=l?r.Buffer:void 0,u=c?c.isBuffer:void 0,s=u||a;e.exports=s}).call(this,n("vhgi")(e))},ZsxT:function(e,t,n){var r=n("QzCP"),a=Object.prototype,o=a.hasOwnProperty;function i(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}e.exports=i},ZwOi:function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},ZxN6:function(e,t,n){var r=n("OOCw"),a=n("CBsr");r({target:"WeakSet",stat:!0},{of:a})},aRba:function(e,t,n){var r=n("x+sk"),a=n("d8EH");e.exports=function(e,t,n){var o,i;return a&&"function"==typeof(o=t.constructor)&&o!==n&&r(i=o.prototype)&&i!==n.prototype&&a(e,i),e}},aTTI:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("sErw"),i=n("v3z7"),l=n("R8Xy"),c=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:a},{every:function(e){var t=o(this),n=l(t),r=i(e,arguments.length>1?arguments[1]:void 0,3);return!c(n,(function(e){if(!r(e,e,t))return c.stop()}),void 0,!1,!0).stopped}})},aUZo:function(e,t,n){"use strict";var r=n("OOCw"),a=n("6SQG"),o=n("xy/A"),i=n("ct0+"),l="ArrayBuffer",c=o[l],u=a[l];r({global:!0,forced:u!==c},{ArrayBuffer:c}),i(l)},aVyU:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("2fm6");r({target:"Map",proto:!0,real:!0,forced:a},{deleteAll:function(){return o.apply(this,arguments)}})},aaHa:function(e,t,n){var r=n("Y30u");e.exports=y,e.exports.parse=o,e.exports.compile=i,e.exports.tokensToFunction=u,e.exports.tokensToRegExp=g;var a=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){var n,r=[],o=0,i=0,l="",c=t&&t.delimiter||"/";while(null!=(n=a.exec(e))){var u=n[0],d=n[1],p=n.index;if(l+=e.slice(i,p),i=p+u.length,d)l+=d[1];else{var m=e[i],h=n[2],v=n[3],g=n[4],y=n[5],b=n[6],E=n[7];l&&(r.push(l),l="");var w=null!=h&&null!=m&&m!==h,x="+"===b||"*"===b,k="?"===b||"*"===b,S=n[2]||c,O=g||y;r.push({name:v||o++,prefix:h||"",delimiter:S,optional:k,repeat:x,partial:w,asterisk:!!E,pattern:O?f(O):E?".*":"[^"+s(S)+"]+?"})}}return i\n

\u5927\u5bb6\u597d\u6211\u662f\u7ec4\u4ef6\u4e00\uff01\u70b9\u51fb\u4e0b\u9762\u7684\u6309\u94ae\u5c06\u4f1a\u7edf\u8ba1\u70b9\u51fb\u7684\u6b21\u6570\u3002

\n \n \n )\n}\n\nfunction Test2() {\n const [count, setCount] = useState(0)\n const [onceCount, setOnceCount] = useState(0)\n\n eventBus.on('clickNum', (num) => setCount(num))\n // eventBus.once(\"clickNum\", (num) => {\n // console.log(num);\n // setOnceCount(num);\n // });\n\n function onClick() {\n eventBus.off('clickNum')\n alert('\u5df2\u7ecf\u79fb\u9664')\n }\n\n return (\n //
\u7b2c\u4e00\u6b21\u7edf\u8ba1\u5df2\u7ecf\u70b9\u51fb\u7684\u6b21\u6570\uff1a{onceCount}
\n <>\n

\u5927\u5bb6\u597d\u6211\u662f\u7ec4\u4ef6\u4e8c\uff01\u6211\u6765\u63a5\u6536\u4e8b\u4ef6

\n
\u7d2f\u8ba1\u7edf\u8ba1\u5df2\u7ecf\u70b9\u51fb\u7684\u6b21\u6570\uff1a{count}
\n
\n

\u70b9\u51fb\u4e0b\u9762\u6309\u94ae\u5c06\u79fb\u9664\u6b21\u6570\u7edf\u8ba1\u4e8b\u4ef6\uff1a

\n \n \n )\n}\n\nexport default function App() {\n return (\n <>\n

\u7ec4\u4ef6\u4e00

\n \n

\u7ec4\u4ef6\u4e8c

\n \n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"EventBus-demo"}},"delay-demo":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("DBVu")),a=t(n("GAyR")),o=t(n("iojd")),i=e(n("nNWW")),l=n("/7QA"),c=function(){var e=(0,i.useState)(0),t=(0,o["default"])(e,2),n=t[0],c=t[1],u=(0,i.useState)(!1),s=(0,o["default"])(u,2),f=s[0],d=s[1],p=(0,i.useCallback)((0,a["default"])((0,r["default"])().mark((function e(){return(0,r["default"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return d(!0),e.next=3,(0,l.delay)(2e3);case 3:c(n+1),d(!1);case 5:case"end":return e.stop()}}),e)}))),[n,f]);return i["default"].createElement(i["default"].Fragment,null,i["default"].createElement("h1",null,"\u6570\u5b57num\uff1a",n),i["default"].createElement("button",{onClick:p,disabled:f},"\u70b9\u51fb\u6309\u94ae2\u79d2\u540e\u6570\u5b57\u624d\u4f1a\u53d8\u5316"))};return i["default"].createElement(c)},previewerProps:{sources:{_:{jsx:"import React, { useState, useCallback } from 'react'\nimport { delay } from '@fexd/tools'\n\nexport default () => {\n const [num, setNum] = useState(0)\n const [disabled, setDisabled] = useState(false)\n\n const plus = useCallback(async () => {\n setDisabled(true)\n await delay(2000)\n setNum(num + 1)\n setDisabled(false)\n }, [num, disabled])\n\n return (\n <>\n

\u6570\u5b57num\uff1a{num}

\n \n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"delay-demo"}},"lock-demo":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("iojd")),a=e(n("nNWW")),o=n("/7QA"),i=(0,o.lock)((function(e){e()})),l=function(){var e=(0,a.useState)(0),t=(0,r["default"])(e,2),n=t[0],o=t[1],l=(0,a.useState)(!1),c=(0,r["default"])(l,2),u=c[0],s=c[1];return a["default"].createElement(a["default"].Fragment,null,a["default"].createElement("h1",null,"num: ",n),a["default"].createElement("div",null,a["default"].createElement("button",{onClick:function(){return i((function(){o(n+1)}))}},"\u70b9\u51fb\u52a01"),a["default"].createElement("button",{onClick:function(){return i((function(){o(n+2)}))}},"\u70b9\u51fb\u52a02")),a["default"].createElement("p",null,"PS: \u6267\u884c\u4e86\u4e00\u6b21\u4e4b\u540e\uff0c\u4f1a\u81ea\u52a8\u4e0a\u9501\uff0c\u9664\u975e\u89e3\u9501\uff0c\u65e0\u6cd5\u518d\u6267\u884c"),a["default"].createElement("div",null,a["default"].createElement("button",{onClick:function(){i.unlock(),alert("\u89e3\u9501\u6210\u529f")}},"\u70b9\u51fb\u89e3\u9501\u51fd\u6570")),a["default"].createElement("h1",null,"\u662f\u5426\u5df2\u7ecf\u9501\u5b9a"),a["default"].createElement("button",{onClick:function(){s(i.isLocked())}},"\u67e5\u770b\u662f\u5426\u5df2\u7ecf\u9501\u5b9a\uff1a",u.toString()))};return a["default"].createElement(l)},previewerProps:{sources:{_:{jsx:"import React, { useState } from 'react'\nimport { lock } from '@fexd/tools'\n\nconst lockFunc = lock(function get(callback) {\n callback()\n})\n\nexport default () => {\n const [num, setNum] = useState(0)\n const [isLocked, setIsLocked] = useState(false)\n\n return (\n <>\n

num: {num}

\n
\n \n lockFunc(() => {\n setNum(num + 1)\n })\n }\n >\n \u70b9\u51fb\u52a01\n \n \n lockFunc(() => {\n setNum(num + 2)\n })\n }\n >\n \u70b9\u51fb\u52a02\n \n
\n\n

PS: \u6267\u884c\u4e86\u4e00\u6b21\u4e4b\u540e\uff0c\u4f1a\u81ea\u52a8\u4e0a\u9501\uff0c\u9664\u975e\u89e3\u9501\uff0c\u65e0\u6cd5\u518d\u6267\u884c

\n\n
\n {\n lockFunc.unlock()\n alert('\u89e3\u9501\u6210\u529f')\n }}\n >\n \u70b9\u51fb\u89e3\u9501\u51fd\u6570\n \n
\n\n

\u662f\u5426\u5df2\u7ecf\u9501\u5b9a

\n {\n setIsLocked(lockFunc.isLocked())\n }}\n >\n \u67e5\u770b\u662f\u5426\u5df2\u7ecf\u9501\u5b9a\uff1a{isLocked.toString()}\n \n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"lock-demo"}},"memoize-demo":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("iojd")),a=t(n("DBVu")),o=t(n("GAyR")),i=e(n("nNWW")),l=n("/7QA"),c=(0,l.memoize)(function(){var e=(0,o["default"])((0,a["default"])().mark((function e(t){return(0,a["default"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return console.log("It\u2019s the first time I met."),console.log("Nice to meet you!"),e.next=4,(0,l.delay)(1e3);case 4:return console.log("Sorry to have to wait a while."),console.log("Hello ".concat(t,"!")),e.abrupt("return","Hello ".concat(t,"!"));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),u=function(){var e=(0,i.useState)(""),t=(0,r["default"])(e,2),n=t[0],l=t[1],u=(0,i.useState)(!1),s=(0,r["default"])(u,2),f=s[0],d=s[1],p=function(){var e=(0,o["default"])((0,a["default"])().mark((function e(t){var n;return(0,a["default"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return d(!0),e.next=3,c(t);case 3:n=e.sent,l(n),d(!1);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return i["default"].createElement(i["default"].Fragment,null,i["default"].createElement("h1",null,"\u65b0\u62db\u547c\uff1a",n),i["default"].createElement("button",{onClick:function(){return p("Peter")},disabled:f},"\u70b9\u51fb Peter \u8981\u53bb\u6253\u62db\u547c"),i["default"].createElement("button",{onClick:function(){return p("Tom")},disabled:f},"\u70b9\u51fb Tom \u8981\u53bb\u6253\u62db\u547c"),i["default"].createElement("button",{onClick:function(){return p("Amy")},disabled:f},"\u70b9\u51fb Amy \u8981\u53bb\u6253\u62db\u547c"),i["default"].createElement("p",null,"PS: \u7b2c\u4e00\u6b21\u6253\u62db\u547c\u9700\u8981\u7b49\u5f851s\uff0c\u4e4b\u540e\u4e0d\u9700\u8981\u7b49\u5f85\u3002\u53ef\u6253\u5f00\u63a7\u5236\u53f0\u770b\u8f93\u51fa\u4fe1\u606f\u3002"))};return i["default"].createElement(u)},previewerProps:{sources:{_:{jsx:"import React, { useState } from 'react'\nimport { memoize, delay } from '@fexd/tools'\n\nconst memoizeFunc = memoize(async (name) => {\n console.log('It\u2019s the first time I met.')\n console.log('Nice to meet you!')\n await delay(1000)\n console.log('Sorry to have to wait a while.')\n console.log(`Hello ${name}!`)\n return `Hello ${name}!`\n})\n\nexport default () => {\n const [message, setMessage] = useState('')\n const [disabled, setDisabled] = useState(false)\n\n const greet = async (name) => {\n setDisabled(true)\n const msg = await memoizeFunc(name)\n setMessage(msg)\n setDisabled(false)\n }\n\n return (\n <>\n

\u65b0\u62db\u547c\uff1a{message}

\n \n \n \n

\n PS: \u7b2c\u4e00\u6b21\u6253\u62db\u547c\u9700\u8981\u7b49\u5f851s\uff0c\u4e4b\u540e\u4e0d\u9700\u8981\u7b49\u5f85\u3002\u53ef\u6253\u5f00\u63a7\u5236\u53f0\u770b\u8f93\u51fa\u4fe1\u606f\u3002\n

\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"memoize-demo"}},"nextTick-demo":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("iojd")),a=e(n("nNWW")),o=n("/7QA"),i=function(){var e=(0,a.useState)(""),t=(0,r["default"])(e,2),n=t[0],i=t[1],l=(0,a.useState)(""),c=(0,r["default"])(l,2),u=c[0],s=c[1],f=(0,o.nextTick)((function(){return i("\u60a8\u597d\uff01"),"\u7a0b\u5e8f\u733f\uff01"}));return a["default"].createElement(a["default"].Fragment,null,a["default"].createElement("p",null,n),a["default"].createElement("button",{onClick:function(){return f.then((function(e){return s(e)}))}},"\u70b9\u51fb\u67e5\u8be2\u4f60\u7684\u8eab\u4efd"),a["default"].createElement("p",null,u))};return a["default"].createElement(i)},previewerProps:{sources:{_:{jsx:"import React, { useState } from 'react'\nimport { nextTick } from '@fexd/tools'\n\nexport default () => {\n const [greetStr, setGreetStr] = useState('')\n const [identity, setIdentity] = useState('')\n\n const outputIdentity = nextTick(() => {\n setGreetStr('\u60a8\u597d\uff01')\n return '\u7a0b\u5e8f\u733f\uff01'\n })\n\n return (\n <>\n

{greetStr}

\n \n

{identity}

\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"nextTick-demo"}},"pick-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a={id:1,name:"Tom",age:18,gender:"man"},o=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("p",null,"const obj = { id: 1, name: 'Tom', age: 18, gender: 'man'}"),t["default"].createElement("h1",null,"\u53d6\u6307\u5b9a\u7684\u5355\u4e2a\u5c5e\u6027\u503c"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"pick(obj)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify((0,r.pick)(a),null,2))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"pick(obj, 'id')")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify((0,r.pick)(a,"id"),"",2))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"pick(obj, 'name')")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify((0,r.pick)(a,"name"),"",2))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"pick(obj, 'age')")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify((0,r.pick)(a,"age"),"",2))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"pick(obj, 'gender')")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify((0,r.pick)(a,"gender"),"",2))),t["default"].createElement("h1",null,"\u53d6\u6307\u5b9a\u7684\u591a\u4e2a\u5c5e\u6027\u503c"),t["default"].createElement("div",null,t["default"].createElement("div",null,"// \u9519\u8bef\u793a\u8303\uff0c\u8981\u53d6\u591a\u4e2a\u5c5e\u6027\u7b2c\u4e8c\u4e2a\u53c2\u6570\u8bf7\u7528\u6570\u7ec4"),t["default"].createElement("span",{style:{color:"#DD4A68"}},"pick(obj, 'id', 'name')")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify((0,r.pick)(a,"id","name"),"",2))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"pick(obj, ['id', 'name'])")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify((0,r.pick)(a,["id","name"]),"",2))))};return t["default"].createElement(o)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { pick } from '@fexd/tools'\n\nconst obj = {\n id: 1,\n name: 'Tom',\n age: 18,\n gender: 'man',\n}\n\nexport default () => {\n return (\n <>\n

{`const obj = { id: 1, name: 'Tom', age: 18, gender: 'man'}`}

\n

\u53d6\u6307\u5b9a\u7684\u5355\u4e2a\u5c5e\u6027\u503c

\n
\n pick(obj) \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n          {JSON.stringify(pick(obj), null, 2)}\n        
\n
\n
\n pick(obj, 'id') \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n          {JSON.stringify(pick(obj, 'id'), '', 2)}\n        
\n
\n
\n pick(obj, 'name') \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n          {JSON.stringify(pick(obj, 'name'), '', 2)}\n        
\n
\n
\n pick(obj, 'age') \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n          {JSON.stringify(pick(obj, 'age'), '', 2)}\n        
\n
\n
\n pick(obj, 'gender') \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n          {JSON.stringify(pick(obj, 'gender'), '', 2)}\n        
\n
\n\n

\u53d6\u6307\u5b9a\u7684\u591a\u4e2a\u5c5e\u6027\u503c

\n
\n
// \u9519\u8bef\u793a\u8303\uff0c\u8981\u53d6\u591a\u4e2a\u5c5e\u6027\u7b2c\u4e8c\u4e2a\u53c2\u6570\u8bf7\u7528\u6570\u7ec4
\n pick(obj, 'id', 'name') \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n          {JSON.stringify(pick(obj, 'id', 'name'), '', 2)}\n        
\n
\n
\n pick(obj, ['id', 'name']){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n          {JSON.stringify(pick(obj, ['id', 'name']), '', 2)}\n        
\n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"pick-demo"}},"pickBy-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a={id:1,name:"Tom",age:18,gender:"man"},o=function(e,t){return(0,r.isNumber)(e)},i=function(e,t){return t.length>2},l=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("p",null,"const obj = { id: 1, name: 'Tom', age: 18, gender: 'man'}"),t["default"].createElement("h1",null,"\u76f4\u63a5\u4f20\u5165\u4e00\u4e2a\u5224\u65ad\u662f\u5426\u4e3aNumber\u7684\u51fd\u6570"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"pickBy(obj, isNumber)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify((0,r.pickBy)(a,r.isNumber),null,2))),t["default"].createElement("h1",null,"\u53ef\u4ee5\u901a\u8fc7\u5bf9\u8c61\u7684\u6240\u6709 value \u6765\u7b5b\u9009\u51fa\u7b26\u5408\u6761\u4ef6\u7684\u65b0\u5bf9\u8c61"),t["default"].createElement("pre",null,"const predicateValue = (value, key) => { return isNumber(value) }"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"pickBy(obj, predicateValue)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify((0,r.pickBy)(a,o),null,2))),t["default"].createElement("h1",null,"\u53ef\u4ee5\u901a\u8fc7\u5bf9\u8c61\u7684\u6240\u6709 key \u6765\u7b5b\u9009\u51fa\u7b26\u5408\u6761\u4ef6\u7684\u65b0\u5bf9\u8c61"),t["default"].createElement("pre",null,"const predicateKey = (value, key) => { return key.length > 2 }"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"pickBy(obj, predicateKey)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify((0,r.pickBy)(a,i),null,2))))};return t["default"].createElement(l)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { pickBy, isNumber } from '@fexd/tools'\n\nconst obj = {\n id: 1,\n name: 'Tom',\n age: 18,\n gender: 'man',\n}\n\nconst predicateValue = (value, key) => {\n // console.log(`value:${value}, key:${key}`)\n return isNumber(value)\n}\n\nconst predicateKey = (value, key) => {\n // console.log(`value:${value}, key:${key}`)\n return key.length > 2\n}\n\nexport default () => {\n return (\n <>\n

{`const obj = { id: 1, name: 'Tom', age: 18, gender: 'man'}`}

\n

\u76f4\u63a5\u4f20\u5165\u4e00\u4e2a\u5224\u65ad\u662f\u5426\u4e3aNumber\u7684\u51fd\u6570

\n
\n pickBy(obj, isNumber){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n          {JSON.stringify(pickBy(obj, isNumber), null, 2)}\n        
\n
\n

\u53ef\u4ee5\u901a\u8fc7\u5bf9\u8c61\u7684\u6240\u6709 value \u6765\u7b5b\u9009\u51fa\u7b26\u5408\u6761\u4ef6\u7684\u65b0\u5bf9\u8c61

\n
\n        {`const predicateValue = (value, key) => { return isNumber(value) }`}\n      
\n
\n pickBy(obj, predicateValue){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n          {JSON.stringify(pickBy(obj, predicateValue), null, 2)}\n        
\n
\n

\u53ef\u4ee5\u901a\u8fc7\u5bf9\u8c61\u7684\u6240\u6709 key \u6765\u7b5b\u9009\u51fa\u7b26\u5408\u6761\u4ef6\u7684\u65b0\u5bf9\u8c61

\n
\n        {`const predicateKey = (value, key) => { return key.length > 2 }`}\n      
\n
\n pickBy(obj, predicateKey){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n          {JSON.stringify(pickBy(obj, predicateKey), null, 2)}\n        
\n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"pickBy-demo"}},"pipe-demo":{component:function(){var e=n("P/vu")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(e){return e+1},o=function(e){return e+3},i=function(e){return e+5},l=(0,r.pipe)(a,o,i),c=function(e){return e.setHours(0),e.setMinutes(0),e.setSeconds(0),e.setMilliseconds(0),e},u=function(e){return e.setDate(e.getDate()-1),e},s=function(e){var t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return"".concat(t,"\u5e74").concat(n,"\u6708").concat(r,"\u65e5")},f=(0,r.pipe)(c,u,s),d=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("h1",null,"\u5982\u679c\u60f3\u5f97\u5230\u67d0\u4e2a\u6570\u5b57 +1 +3 +5 \u7684\u503c"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"plusFive(plusThree(plusOne(666)))")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},i(o(a(666))))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"plusFive(plusThree(plusOne(996)))")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},i(o(a(996))))),t["default"].createElement("p",null," const pipePlus = pipe(plusOne, plusThree, plusFive) "),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"pipePlus(666)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},l(666))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"pipePlus(996)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},l(996))),t["default"].createElement("h1",null,"\u5982\u679c\u60f3\u83b7\u5f97\u5f53\u524d\u65f6\u95f4\u7684\u6628\u5929\u65e5\u671f"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"getLastday(h0(new Date())))")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},s(u(c(new Date))))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"getLastday(h0(new Date('2020-02-01'))))")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},s(u(c(new Date("2020-02-01")))))),t["default"].createElement("p",null,"const pipeDateStr = pipe(h0, getLastday, getString)"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"getLastday(h0(new Date())))")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},f(new Date))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"getLastday(h0(new Date('2020-02-01'))))")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},f(new Date("2020-02-01")))))};return t["default"].createElement(d)},previewerProps:{sources:{_:{jsx:"import React, { useState } from 'react'\nimport { pipe } from '@fexd/tools'\n\nconst plusOne = (num) => num + 1\nconst plusThree = (num) => num + 3\nconst plusFive = (num) => num + 5\n\nconst pipePlus = pipe(plusOne, plusThree, plusFive)\n\n// \u83b7\u53d6\u65e5\u671f\u7684\u5f53\u5929\u7684\u96f6\u65f6\u523b\nconst h0 = (date) => {\n date.setHours(0)\n date.setMinutes(0)\n date.setSeconds(0)\n date.setMilliseconds(0)\n\n return date\n}\n// \u83b7\u53d6\u65e5\u671f\u7684\u6628\u5929\nconst getLastday = (date) => {\n date.setDate(date.getDate() - 1)\n return date\n}\n// \u5c06\u65e5\u671f\u5bf9\u8c61\u8f6c\u5316\u4e3a\u5b57\u7b26\u4e32\nconst getString = (date) => {\n const year = date.getFullYear()\n const month = date.getMonth() + 1\n const day = date.getDate()\n return `${year}\u5e74${month}\u6708${day}\u65e5`\n}\n\nconst pipeDateStr = pipe(h0, getLastday, getString)\n\nexport default () => {\n return (\n <>\n

\u5982\u679c\u60f3\u5f97\u5230\u67d0\u4e2a\u6570\u5b57 +1 +3 +5 \u7684\u503c

\n
\n \n plusFive(plusThree(plusOne(666)))\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {plusFive(plusThree(plusOne(666)))}\n \n
\n
\n \n plusFive(plusThree(plusOne(996)))\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {plusFive(plusThree(plusOne(996)))}\n \n
\n

const pipePlus = pipe(plusOne, plusThree, plusFive)

\n
\n pipePlus(666) \u7684\u7ed3\u679c\u4e3a\uff1a\n {pipePlus(666)}\n
\n
\n pipePlus(996) \u7684\u7ed3\u679c\u4e3a\uff1a\n {pipePlus(996)}\n
\n

\u5982\u679c\u60f3\u83b7\u5f97\u5f53\u524d\u65f6\u95f4\u7684\u6628\u5929\u65e5\u671f

\n
\n getLastday(h0(new Date()))){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {getString(getLastday(h0(new Date())))}\n \n
\n
\n \n getLastday(h0(new Date('2020-02-01'))))\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {getString(getLastday(h0(new Date('2020-02-01'))))}\n \n
\n

const pipeDateStr = pipe(h0, getLastday, getString)

\n
\n getLastday(h0(new Date()))){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n {pipeDateStr(new Date())}\n
\n
\n \n getLastday(h0(new Date('2020-02-01'))))\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {pipeDateStr(new Date('2020-02-01'))}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"pipe-demo"}},"promiseGuess-demo":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("DBVu")),a=t(n("GAyR")),o=t(n("iojd")),i=e(n("nNWW")),l=n("/7QA"),c={name:"Amy",age:18},u=function(){var e=(0,i.useState)(""),t=(0,o["default"])(e,2),n=t[0],u=t[1],s=(0,i.useState)(""),f=(0,o["default"])(s,2),d=f[0],p=f[1],m=(0,l.promiseGuess)((function(e){var t=e.name;e.age;return t}),(function(e,t,n){var r="Hello.I'm ".concat(t);return u(r),r})),h=(0,l.promiseGuess)(function(){var e=(0,a["default"])((0,r["default"])().mark((function e(t){var n;return(0,r["default"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.name,t.age,e.next=3,(0,l.delay)(1e3);case 3:return e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),(function(e,t,n){var r="Hello.I'm ".concat(t);return p(r),r}));return(0,i.useEffect)((function(){m(c),h(c)}),[]),i["default"].createElement(i["default"].Fragment,null,i["default"].createElement("div",null,i["default"].createElement("span",{style:{color:"#DD4A68"}},"asyncGreet(person)")," \u7684\u7ed3\u679c\u4e3a\uff1a",i["default"].createElement("pre",{style:{color:"#690"}},d)),i["default"].createElement("div",null,i["default"].createElement("span",{style:{color:"#DD4A68"}},"greet(person)")," \u7684\u7ed3\u679c\u4e3a\uff1a",i["default"].createElement("pre",{style:{color:"#690"}},n)))};return i["default"].createElement(u)},previewerProps:{sources:{_:{jsx:"import React, { useState, useEffect } from 'react'\nimport { promiseGuess, delay } from '@fexd/tools'\n\nconst person = {\n name: 'Amy',\n age: 18,\n}\n\nexport default () => {\n const [result, setResult] = useState('')\n const [promiseResult, setPromiseResult] = useState('')\n\n const greet = promiseGuess(\n ({ name, age }) => {\n // console.log(name, age) // Amy 18\n return name\n },\n (error, value, args) => {\n // console.log(error, value, args) // [null, \"Amy\", {name: \"Amy\", age: 18}]\n const str = `Hello.I'm ${value}`\n setResult(str)\n return str\n }\n )\n\n const asyncGreet = promiseGuess(\n async ({ name, age }) => {\n // console.log(name, age) // Amy 18\n await delay(1000)\n return name\n },\n (error, value, args) => {\n // console.log(error, value, args)\t// [null, \"Amy\", {name: \"Amy\", age: 18}]\n const str = `Hello.I'm ${value}`\n setPromiseResult(str)\n return str\n }\n )\n\n useEffect(() => {\n greet(person)\n asyncGreet(person)\n }, [])\n\n return (\n <>\n
\n asyncGreet(person) \u7684\u7ed3\u679c\u4e3a\uff1a\n
{promiseResult}
\n
\n
\n greet(person) \u7684\u7ed3\u679c\u4e3a\uff1a\n
{result}
\n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"promiseGuess-demo"}},"random-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("p",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"random(1,10)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.random)(1,10))),t["default"].createElement("p",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"Arandom(1,10, true)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.random)(1,10,!0))),t["default"].createElement("p",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"Arandom(1,10, false)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.random)(1,10,!1))),t["default"].createElement("br",null),t["default"].createElement("p",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"Arandom(98,100)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.random)(98,100))),t["default"].createElement("p",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"Arandom(98, 100, true)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.random)(98,100,!0))),t["default"].createElement("p",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"Arandom(98, 100, false)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.random)(98,100,!1))))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { random } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n

\n random(1,10) \u7684\u7ed3\u679c\u4e3a\uff1a\n {random(1, 10)}\n

\n

\n Arandom(1,10, true) \u7684\u7ed3\u679c\u4e3a\uff1a\n {random(1, 10, true)}\n

\n

\n Arandom(1,10, false){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n {random(1, 10, false)}\n

\n
\n

\n Arandom(98,100) \u7684\u7ed3\u679c\u4e3a\uff1a\n {random(98, 100)}\n

\n

\n Arandom(98, 100, true){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n {random(98, 100, true)}\n

\n

\n Arandom(98, 100, false){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n {random(98, 100, false)}\n

\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"random-demo"}},"sample-demo":{component:function(){var e=n("P/vu")["default"],t=e(n("nNWW")),r=n("/7QA"),a=[1,2,3,4],o=[{name:"Amy"},{name:"Peter"},[1],2,!0],i=function(e){return(0,r.isNumber)(e)||(0,r.isString)(e)?e:(0,r.isObject)(e)?JSON.stringify(e,null,2):(0,r.isArray)(e)?JSON.stringify(e):(0,r.isBoolean)(e)?e.toString():void 0},l=(0,r.pipe)(r.sample,i),c=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("p",null,"const arr1 = [1, 2, 3, 4]"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"sample(arr1)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},l(a))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"sample(arr1)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},l(a))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"sample(arr1)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},l(a))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"sample(arr1)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},l(a))),t["default"].createElement("br",null),t["default"].createElement("p",null,"const arr2 = [{name: 'Amy'}, {name: 'Peter'}, [1], 2, true]"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"sample(arr2)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},l(o))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"sample(arr2)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},l(o))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"sample(arr2)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},l(o))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"sample(arr2)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},l(o))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"sample(arr2)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},l(o))))};return t["default"].createElement(c)},previewerProps:{sources:{_:{jsx:"import React, { useState } from 'react'\nimport {\n sample,\n pipe,\n isNumber,\n isString,\n isObject,\n isBoolean,\n isArray,\n} from '@fexd/tools'\n\nconst arr1 = [1, 2, 3, 4]\nconst arr2 = [{ name: 'Amy' }, { name: 'Peter' }, [1], 2, true]\n\nconst getString = (data) => {\n const type = typeof data\n if (isNumber(data) || isString(data)) {\n return data\n }\n if (isObject(data)) {\n return JSON.stringify(data, null, 2)\n }\n if (isArray(data)) {\n return JSON.stringify(data)\n }\n if (isBoolean(data)) {\n return data.toString()\n }\n}\n\nconst sampleFunc = pipe(sample, getString)\n\nexport default () => {\n return (\n <>\n

const arr1 = [1, 2, 3, 4]

\n
\n sample(arr1) \u7684\u7ed3\u679c\u4e3a\uff1a\n
{sampleFunc(arr1)}
\n
\n
\n sample(arr1) \u7684\u7ed3\u679c\u4e3a\uff1a\n
{sampleFunc(arr1)}
\n
\n
\n sample(arr1) \u7684\u7ed3\u679c\u4e3a\uff1a\n
{sampleFunc(arr1)}
\n
\n
\n sample(arr1) \u7684\u7ed3\u679c\u4e3a\uff1a\n
{sampleFunc(arr1)}
\n
\n
\n

{`const arr2 = [{name: 'Amy'}, {name: 'Peter'}, [1], 2, true]`}

\n
\n sample(arr2) \u7684\u7ed3\u679c\u4e3a\uff1a\n
{sampleFunc(arr2)}
\n
\n
\n sample(arr2) \u7684\u7ed3\u679c\u4e3a\uff1a\n
{sampleFunc(arr2)}
\n
\n
\n sample(arr2) \u7684\u7ed3\u679c\u4e3a\uff1a\n
{sampleFunc(arr2)}
\n
\n
\n sample(arr2) \u7684\u7ed3\u679c\u4e3a\uff1a\n
{sampleFunc(arr2)}
\n
\n
\n sample(arr2) \u7684\u7ed3\u679c\u4e3a\uff1a\n
{sampleFunc(arr2)}
\n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"sample-demo"}},"Tween-demo":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("iojd")),a=e(n("nNWW")),o=n("/7QA"),i=996,l=function(){var e=(0,a.useState)(0),t=(0,r["default"])(e,2),n=t[0],l=t[1],c=(0,a.useState)(0),u=(0,r["default"])(c,2),s=u[0],f=u[1],d=(0,a.useState)((function(){t=o.Tween.easing,e=Object.keys(t),(0,o.sample)(e);var e,t,n=new o.Tween({from:0,to:i,duration:1200,loop:!1}).on("update",(function(e){l(parseInt(e))})).start(),r=new o.Tween({from:i,to:0,duration:1200,loop:!1}).on("update",(function(e){f(parseInt(e))})).start();return{num1:n,num2:r}})),p=(0,r["default"])(d,1),m=p[0],h=m.num1,v=m.num2;return a["default"].createElement(a["default"].Fragment,null,a["default"].createElement("h1",null,n,"\u3001",s),a["default"].createElement("button",{onClick:function(){h.restart(),v.restart()}},"Restart"))};return a["default"].createElement(l)},previewerProps:{sources:{_:{jsx:"import React, { useState, useRef } from 'react'\nimport { Tween, sample } from '@fexd/tools'\n\nconst targetNum = 996\n\nexport default () => {\n const [num1, setNum1] = useState(0)\n const [num2, setNum2] = useState(0)\n\n const [tweens] = useState(() => {\n // \u53d8\u5316\u66f2\u7ebf\u662fease\n const ease = Tween.easing |> Object.keys |> sample\n\n const num1 = new Tween({\n from: 0,\n to: targetNum,\n duration: 1200,\n loop: false,\n })\n .on('update', (progress) => {\n setNum1(parseInt(progress))\n })\n .start()\n\n const num2 = new Tween({\n from: targetNum,\n to: 0,\n duration: 1200,\n loop: false,\n })\n .on('update', (progress) => {\n setNum2(parseInt(progress))\n })\n .start()\n\n return { num1, num2 }\n })\n const tween1 = tweens.num1\n const tween2 = tweens.num2\n\n return (\n <>\n

\n {num1}\u3001{num2}\n

\n {\n tween1.restart()\n tween2.restart()\n }}\n >\n Restart\n \n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"Tween-demo"}},"Tween-demo-1":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("iojd")),a=e(n("nNWW")),o=n("/7QA"),i=function(){var e,t=(0,a.useRef)(null),n=(0,a.useState)({x:0,y:0,scale:1,rotate:0}),i=(0,r["default"])(n,2),l=i[0],c=i[1],u=(0,a.useState)((function(){var e,n,r=(n=o.Tween.easing,e=Object.keys(n),(0,o.sample)(e)),a=new o.Tween({from:0,to:335,ease:r}),i=new o.Tween({from:0,to:-50,ease:r}),l=new o.Tween({from:1,to:2.5,ease:r}),u=new o.Tween({from:0,to:360,ease:r}),s=new o.Tween({from:0,to:1,duration:1200,loop:!0}).on("update",(function(e){c({x:a.value(e),y:i.value(e),scale:l.value(e),rotate:u.value(e)}),t&&t.current&&(t.current.value=100*e)})).start();return{main:s,x:a,y:i,scale:l,rotate:u}})),s=(0,r["default"])(u,1),f=s[0],d=f.main;return a["default"].createElement(a["default"].Fragment,null,a["default"].createElement("input",{className:"progress",ref:t,type:"range",defaultValue:"0",min:"0",max:"100",onInput:function(e){d.stop(),d.progress(e.target.value/100)},onMouseUp:d.start}),a["default"].createElement("span",null,"Progress:",null===d||void 0===d||null===(e=d.state)||void 0===e?void 0:e.progress),a["default"].createElement("h1",null,"\u53ef\u7528\u4e8e\u505a\u52a8\u753b\u7684\u5143\u7d20:"),a["default"].createElement("pre",{style:{color:"#690"}}," \n translateX(".concat(l.x,"px)\n translateY(").concat(l.y,"px)\n scale(").concat(l.scale,")\n rotate(").concat(l.rotate,"deg)\n ")),a["default"].createElement("h1",null,"\u53ef\u6682\u505c\u3001\u7ee7\u7eed\u3001\u91cd\u7f6e\u3001\u91cd\u65b0\u5f00\u59cb\u7b49:"),a["default"].createElement("div",null,a["default"].createElement("button",{onClick:d.start},"Start"),a["default"].createElement("button",{onClick:d.stop},"Stop"),a["default"].createElement("button",{onClick:d.reset},"Reset"),a["default"].createElement("button",{onClick:d.restart},"Restart")))};return a["default"].createElement(i)},previewerProps:{sources:{_:{jsx:'import React, { useState, useRef } from \'react\'\nimport { Tween, sample } from \'@fexd/tools\'\n\nexport default () => {\n const progressRef = useRef(null)\n\n const [transform, setTransform] = useState({\n x: 0,\n y: 0,\n scale: 1,\n rotate: 0,\n })\n\n const [tweens] = useState(() => {\n // \u53d8\u5316\u66f2\u7ebf\u662fease\n const ease = Tween.easing |> Object.keys |> sample\n\n const x = new Tween({\n from: 0,\n to: 335,\n ease,\n })\n const y = new Tween({\n from: 0,\n to: -50,\n ease,\n })\n const scale = new Tween({\n from: 1,\n to: 2.5,\n ease,\n })\n const rotate = new Tween({\n from: 0,\n to: 360,\n ease,\n })\n\n const main = new Tween({\n from: 0,\n to: 1,\n duration: 1200,\n loop: true,\n })\n .on(\'update\', (progress) => {\n setTransform({\n x: x.value(progress),\n y: y.value(progress),\n scale: scale.value(progress),\n rotate: rotate.value(progress),\n })\n\n if (progressRef && progressRef.current) {\n progressRef.current.value = progress * 100\n }\n })\n .start()\n\n return { main, x, y, scale, rotate }\n })\n\n const tween = tweens.main\n\n return (\n <>\n {\n tween.stop()\n tween.progress(e.target.value / 100)\n }}\n onMouseUp={tween.start}\n />\n Progress:{tween?.state?.progress}\n\n

\u53ef\u7528\u4e8e\u505a\u52a8\u753b\u7684\u5143\u7d20:

\n
\n        {` \n          translateX(${transform.x}px)\n          translateY(${transform.y}px)\n          scale(${transform.scale})\n          rotate(${transform.rotate}deg)\n        `}\n      
\n\n

\u53ef\u6682\u505c\u3001\u7ee7\u7eed\u3001\u91cd\u7f6e\u3001\u91cd\u65b0\u5f00\u59cb\u7b49:

\n
\n \n \n \n \n
\n \n )\n}'}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"Tween-demo-1"}},"isAndroid-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isAndroid()")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isAndroid)(),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isAndroid } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isAndroid()`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isAndroid(), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isAndroid-demo"}},"isArray-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isArray([1, 2, 3, 4])")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isArray)([1,2,3,4]),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isArray(null)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isArray)(null),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isArray } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isArray([1, 2, 3, 4])`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isArray([1, 2, 3, 4]), null, 1)}\n \n
\n \n {`isArray(null)`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isArray(null), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isArray-demo"}},"isBoolean-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isBoolean(true)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isBoolean)(!0),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isBoolean(null)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isBoolean)(null),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},'isBoolean("true")')," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isBoolean)("true"),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isBoolean } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isBoolean(true)`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isBoolean(true), null, 1)}\n \n
\n \n {`isBoolean(null)`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isBoolean(null), null, 1)}\n \n
\n \n {`isBoolean(\"true\")`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isBoolean('true'), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isBoolean-demo"}},"isDate-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isDate(new Date())")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isDate)(new Date),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},'isDate("2020-12-16")')," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isDate)("2020-12-16"),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isDate(new Date().getTime())")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isDate)((new Date).getTime()),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isDate } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isDate(new Date())`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isDate(new Date()), null, 1)}\n \n
\n \n {`isDate(\"2020-12-16\")`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isDate('2020-12-16'), null, 1)}\n \n
\n \n {`isDate(new Date().getTime())`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isDate(new Date().getTime()), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isDate-demo"}},"isDesktop-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isDesktop()")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isDesktop)(),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isDesktop } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isDesktop()`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isDesktop(), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isDesktop-demo"}},"isError-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},'isError(Error("err"))')," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isError)(Error("err")),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},'isError("err")')," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isError)("err"),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isError } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isError(Error(\"err\"))`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isError(Error('err')), null, 1)}\n \n
\n \n {`isError(\"err\")`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isError('err'), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isError-demo"}},"isExist-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isExist(false)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isExist)(!1),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isExist(0)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isExist)(0),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isExist(NaN)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isExist)(NaN),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},'isExist("")')," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isExist)(""),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isExist({})")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isExist)({}),null,1)),t["default"].createElement("br",null),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isExist(null)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isExist)(null),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isExist(undefined)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isExist)(void 0),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isExist } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isExist(false)`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isExist(false), null, 1)}\n \n
\n \n {`isExist(0)`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isExist(0), null, 1)}\n \n
\n \n {`isExist(NaN)`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isExist(NaN), null, 1)}\n \n
\n \n {`isExist(\"\")`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isExist(''), null, 1)}\n \n
\n \n {`isExist({})`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isExist({}), null, 1)}\n \n
\n
\n \n {`isExist(null)`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isExist(null), null, 1)}\n \n
\n \n {`isExist(undefined)`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isExist(undefined), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isExist-demo"}},"isFunction-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},'isFunction("function")')," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isFunction)("function"),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isFunction(() => {})")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isFunction)((function(){})),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isFunction(function test(){})")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isFunction)((function(){})),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isFunction } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isFunction(\"function\")`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isFunction('function'), null, 1)}\n \n
\n \n {`isFunction(() => {})`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(\n isFunction(() => {}),\n null,\n 1\n )}\n \n
\n \n {`isFunction(function test(){})`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(\n isFunction(function test() {}),\n null,\n 1\n )}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isFunction-demo"}},"isIOS-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isIOS()")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isIOS)(),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isIOS } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isIOS()`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isIOS(), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isIOS-demo"}},"isMobile-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isMobile()")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isMobile)(),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isMobile } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isMobile()`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isMobile(), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isMobile-demo"}},"isNaN-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isNaN(NaN)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isNaN)(NaN),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isNaN(0)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isNaN)(0),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isNaN } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isNaN(NaN)`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isNaN(NaN), null, 1)}\n \n
\n \n {`isNaN(0)`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isNaN(0), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isNaN-demo"}},"isNull-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isNull()")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isNull)(),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isNull(null)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isNull)(null),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isNull } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isNull()`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isNull(), null, 1)}\n \n
\n \n {`isNull(null)`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isNull(null), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isNull-demo"}},"isNumber-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isNumber()")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isNumber)(),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},'isNumber("1")')," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isNumber)("1"),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isNumber(1)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isNumber)(1),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isNumber } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isNumber()`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isNumber(), null, 1)}\n \n
\n \n {`isNumber(\"1\")`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isNumber('1'), null, 1)}\n \n
\n \n {`isNumber(1)`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isNumber(1), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isNumber-demo"}},"isObject-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isObject([1])")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isObject)([1]),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isObject({ a: 1 })")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isObject)({a:1}),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isObject({})")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isObject)({}),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isObject } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isObject([1])`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isObject([1]), null, 1)}\n \n
\n \n {`isObject({ a: 1 })`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isObject({ a: 1 }), null, 1)}\n \n
\n \n {`isObject({})`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isObject({}), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isObject-demo"}},"isPromiseLike-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isPromiseLike({ a: 1 })")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isPromiseLike)({a:1}),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isPromiseLike(new Promise((resolve) => resolve(1)))")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isPromiseLike)(new Promise((function(e){return e(1)}))),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isPromiseLike } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isPromiseLike({ a: 1 })`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isPromiseLike({ a: 1 }), null, 1)}\n \n
\n \n {`isPromiseLike(new Promise((resolve) => resolve(1)))`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(\n isPromiseLike(new Promise((resolve) => resolve(1))),\n null,\n 1\n )}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isPromiseLike-demo"}},"isString-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isString()")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isString)(),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isString(123)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isString)(123),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},'isString("123")')," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isString)("123"),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},'isString("")')," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isString)(""),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isString } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isString()`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isString(), null, 1)}\n \n
\n \n {`isString(123)`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isString(123), null, 1)}\n \n
\n \n {`isString(\"123\")`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isString('123'), null, 1)}\n \n
\n \n {`isString(\"\")`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isString(''), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isString-demo"}},"isUndefined-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isUndefined()")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isUndefined)(),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isUndefined(undefined)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isUndefined)(void 0),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},'isUndefined("")')," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isUndefined)(""),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isUndefined(null)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isUndefined)(null),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isUndefined } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isUndefined()`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isUndefined(), null, 1)}\n \n
\n \n {`isUndefined(undefined)`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isUndefined(undefined), null, 1)}\n \n
\n \n {`isUndefined(\"\")`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isUndefined(''), null, 1)}\n \n
\n \n {`isUndefined(null)`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isUndefined(null), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isUndefined-demo"}},"isWKWebview-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isWKWebview()")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isWKWebview)(),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isWKWebview } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isWKWebview()`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isWKWebview(), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isWKWebview-demo"}},"I18n-demo":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("DBVu")),a=t(n("GAyR")),o=t(n("iojd")),i=e(n("nNWW")),l=n("/7QA"),c=new l.I18n({types:{default:{resources:{en:{greet:"Hello 11",world:"world!"},zh:{greet:"\u4f60\u597d, 11",world:"\u4e16\u754c\uff01"},in:{greet:"Halo 22",world:"dunia!"}}}}}),u=new l.I18n({types:{default:{resources:{}},jsx:{resources:{en:{clickHere:"click {{here}}"},zh:{clickHere:"\u70b9\u51fb {{here}}"}},format:function(e,t){return i["default"].createElement(i.Fragment,null,l.I18n.template(e,t,{split:!0}).map((function(e,t){return i["default"].createElement(i.Fragment,{key:t},e)})))}}},fallback:[c],translateFallback:function(e){return Array(e.length).fill("-").join("")}});window.i18n=u,window.I18n=l.I18n;var s=function(){var e=(0,i.useState)(""),t=(0,o["default"])(e,2),n=t[0],c=t[1];function s(e){return f.apply(this,arguments)}function f(){return f=(0,a["default"])((0,r["default"])().mark((function e(t){return(0,r["default"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l.I18n.applyLanguage(t);case 2:case"end":return e.stop()}}),e)}))),f.apply(this,arguments)}return(0,i.useEffect)((function(){u.eventBus.on("change",(function(){var e=u.t("greet"),t=u.t("world");c(i["default"].createElement(i["default"].Fragment,null,e," ",t))})),s("en")}),[]),i["default"].createElement(i["default"].Fragment,null,i["default"].createElement("h1",null,n),i["default"].createElement("button",{onClick:function(){return s("en")}},"\u5207\u6362\u82f1\u8bed"),i["default"].createElement("button",{onClick:function(){return s("zh")}},"\u5207\u6362\u4e2d\u6587"),i["default"].createElement("button",{onClick:function(){return s("in")}},"\u5207\u6362\u5370\u5c3c\u8bed"),i["default"].createElement("button",{onClick:function(){u.applyConfig({types:{default:{resources:{en:{greet:"Hello",world:"world!"},zh:{greet:"\u4f60\u597d,",world:"\u4e16\u754c\uff01"},in:{greet:"Halo",world:"dunia!"}}},jsx:{resources:{en:{clickHere:"click {{here}} 22"},zh:{clickHere:"\u70b9\u51fb {{here}} 11"}}}}})}},"\u52a8\u6001\u6ce8\u5165\u8bed\u8a00\u5305 config"),i["default"].createElement("div",null,u.t("clickHere@jsx",{here:i["default"].createElement("a",{href:"https://www.google.com"},"google")})))};return i["default"].createElement(s)},previewerProps:{sources:{_:{jsx:"import React, { useState, useEffect, Fragment } from 'react'\nimport { I18n } from '@fexd/tools'\n\nconst fallbackI18n = new I18n({\n types: {\n default: {\n resources: {\n en: {\n greet: 'Hello 11',\n world: 'world!',\n },\n zh: {\n greet: '\u4f60\u597d, 11',\n world: '\u4e16\u754c\uff01',\n },\n in: {\n greet: 'Halo 22',\n world: 'dunia!',\n },\n },\n },\n },\n})\n\nconst i18n = new I18n({\n types: {\n default: {\n resources: {\n // en: {\n // greet: 'Hello',\n // world: 'world!',\n // },\n // zh: {\n // greet: '\u4f60\u597d,',\n // world: '\u4e16\u754c\uff01',\n // },\n // in: {\n // greet: 'Halo',\n // world: 'dunia!',\n // },\n },\n },\n jsx: {\n resources: {\n en: {\n clickHere: 'click {{here}}',\n },\n zh: {\n clickHere: '\u70b9\u51fb {{here}}',\n },\n },\n format: (value, data) => (\n \n {I18n.template(value, data, { split: true }).map((item, idx) => (\n {item}\n ))}\n \n ),\n },\n },\n fallback: [fallbackI18n],\n translateFallback: (text) => Array(text.length).fill('-').join(''),\n})\n\nwindow.i18n = i18n\nwindow.I18n = I18n\n\nexport default () => {\n const [greetText, setGreetText] = useState('')\n\n async function ToggleLang(lang) {\n await I18n.applyLanguage(lang) // \u4f7f\u7528 I18n.applyLanguage \u6765\u5207\u6362\u8bed\u8a00\n }\n\n useEffect(() => {\n i18n.eventBus.on('change', () => {\n const text1 = i18n.t('greet') // \u4f7f\u7528\u5b9e\u4f8b\u7684 t \u65b9\u6cd5\u6765\u83b7\u5f97\u5f53\u524d\u8bed\u8a00\u7684\u5bf9\u5e94\u6587\u5b57\n const text2 = i18n.t('world')\n setGreetText(\n <>\n {text1} {text2}\n \n )\n })\n\n ToggleLang('en')\n }, [])\n\n return (\n <>\n

{greetText}

\n \n \n \n {\n i18n.applyConfig({\n types: {\n default: {\n resources: {\n en: {\n greet: 'Hello',\n world: 'world!',\n },\n zh: {\n greet: '\u4f60\u597d,',\n world: '\u4e16\u754c\uff01',\n },\n in: {\n greet: 'Halo',\n world: 'dunia!',\n },\n },\n },\n jsx: {\n resources: {\n en: {\n clickHere: 'click {{here}} 22',\n },\n zh: {\n clickHere: '\u70b9\u51fb {{here}} 11',\n },\n },\n },\n },\n })\n }}\n >\n \u52a8\u6001\u6ce8\u5165\u8bed\u8a00\u5305 config\n \n\n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"I18n-demo"}},"storage-demo":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("iojd")),a=e(n("nNWW")),o=n("/7QA"),i="count",l=function(){var e=(0,a.useState)(0),t=(0,r["default"])(e,2),n=t[0],l=t[1];function c(){o.storage.set(i,n),alert("\u5df2\u4fdd\u5b58\u5230 localStorage \u4e2d")}function u(){o.storage.setSession(i,n),alert("\u5df2\u4fdd\u5b58\u5230 sessionStorage \u4e2d")}function s(){o.storage.remove(i),alert("\u5df2\u79fb\u9664 localStorage \u7684 count")}function f(){o.storage.removeSession(i),alert("\u5df2\u79fb\u9664 sessionStorage \u7684 count")}return a["default"].createElement(a["default"].Fragment,null,a["default"].createElement("button",{onClick:function(){return l(n+1)}},"\u70b9\u51fb\u52a01"),a["default"].createElement("h1",null,"count: ",n),a["default"].createElement("p",null,a["default"].createElement("button",{onClick:c},"\u70b9\u51fb\u5c06\u5f53\u524d count \u4fdd\u5b58\u5230 localStorage \u4e2d"),a["default"].createElement("button",{onClick:u,style:{marginLeft:"10px"}},"\u70b9\u51fb\u5c06\u5f53\u524d count \u4fdd\u5b58\u5230 sessionStorage \u4e2d")),a["default"].createElement("p",null,a["default"].createElement("button",{onClick:s},"\u79fb\u9664 localStorage \u7684 count"),a["default"].createElement("button",{onClick:f,style:{marginLeft:"10px"}},"\u79fb\u9664 sessionStorage \u7684 count")))};return a["default"].createElement(l)},previewerProps:{sources:{_:{jsx:"import React, { useState } from 'react'\nimport { storage } from '@fexd/tools'\n\nconst COUNT_KEY = 'count'\n\nexport default () => {\n const [count, setCount] = useState(0)\n\n function setLocal() {\n storage.set(COUNT_KEY, count)\n alert('\u5df2\u4fdd\u5b58\u5230 localStorage \u4e2d')\n }\n\n function setSession() {\n storage.setSession(COUNT_KEY, count)\n alert('\u5df2\u4fdd\u5b58\u5230 sessionStorage \u4e2d')\n }\n\n function removeLocal() {\n storage.remove(COUNT_KEY)\n alert('\u5df2\u79fb\u9664 localStorage \u7684 count')\n }\n\n function removeSession() {\n storage.removeSession(COUNT_KEY)\n alert('\u5df2\u79fb\u9664 sessionStorage \u7684 count')\n }\n\n return (\n <>\n \n

count: {count}

\n\n

\n \n\n \n

\n

\n \n\n \n

\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"storage-demo"}},"capitalize-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"capitalize('hello')")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.capitalize)("hello"))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"capitalize('Hello')")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.capitalize)("Hello"))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"capitalize('1231abc')")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.capitalize)("1231abc"))))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { capitalize } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n
\n capitalize('hello') \u7684\u7ed3\u679c\u4e3a\uff1a\n {capitalize('hello')}\n
\n
\n capitalize('Hello') \u7684\u7ed3\u679c\u4e3a\uff1a\n {capitalize('Hello')}\n
\n
\n capitalize('1231abc'){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n {capitalize('1231abc')}\n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"capitalize-demo"}},"copy-demo":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("iojd")),a=e(n("nNWW")),o=n("/7QA"),i=function(){var e=(0,a.useState)(""),t=(0,r["default"])(e,2),n=t[0],i=t[1];return a["default"].createElement(a["default"].Fragment,null,a["default"].createElement("div",null,a["default"].createElement("input",{value:n,onChange:function(e){return i(e.target.value)}}),a["default"].createElement("button",{onClick:function(){return(0,o.copy)(n)}},"\u70b9\u51fb copy \u8f93\u5165\u6846\u5185\u5bb9")),a["default"].createElement("p",null,"\u53ef\u5728\u4e0b\u9762\u8f93\u5165\u6846\u7c98\u8d34\uff0c\u770b\u770b\u662f\u5426\u662f\u4e0a\u9762\u8f93\u5165\u6846\u7684\u5185\u5bb9\uff08Windows\u5feb\u6377\u952e\u4e3aCtrl + V\uff09"),a["default"].createElement("input",null))};return a["default"].createElement(i)},previewerProps:{sources:{_:{jsx:"import React, { useState } from 'react'\nimport { copy } from '@fexd/tools'\n\nexport default () => {\n const [inputValue, setInputValue] = useState('')\n return (\n <>\n
\n setInputValue(e.target.value)}\n />\n \n
\n

\n \u53ef\u5728\u4e0b\u9762\u8f93\u5165\u6846\u7c98\u8d34\uff0c\u770b\u770b\u662f\u5426\u662f\u4e0a\u9762\u8f93\u5165\u6846\u7684\u5185\u5bb9\uff08Windows\u5feb\u6377\u952e\u4e3aCtrl +\n V\uff09\n

\n \n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"copy-demo"}},"first-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("p",null,"const arr = [1, 2, 3, 4]"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"first(arr)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.first)([1,2,3,4]))),t["default"].createElement("br",null),t["default"].createElement("p",null,"const obj = { a: 1, b: 2 }"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"first(obj)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.first)({a:1,b:2}))),t["default"].createElement("br",null),t["default"].createElement("p",null,"const obj = { name: 'Amy', age: 18 }"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"first(obj)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.first)({name:"Amy",age:18}))))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { first } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n

const arr = [1, 2, 3, 4]

\n
\n first(arr) \u7684\u7ed3\u679c\u4e3a\uff1a\n {first([1, 2, 3, 4])}\n
\n
\n

{`const obj = { a: 1, b: 2 }`}

\n
\n first(obj) \u7684\u7ed3\u679c\u4e3a\uff1a\n {first({ a: 1, b: 2 })}\n
\n
\n

{`const obj = { name: 'Amy', age: 18 }`}

\n
\n first(obj) \u7684\u7ed3\u679c\u4e3a\uff1a\n {first({ name: 'Amy', age: 18 })}\n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"first-demo"}},"get-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a={a:{b:1}},o=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("pre",{style:{color:"#690"}},"const obj = ".concat(JSON.stringify({a:{b:1}},null,2))),t["default"].createElement("h1",null,"\u6210\u529f\u53d6\u5230\u503c"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"get(obj, 'a.b')")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.get)(a,"a.b"))),t["default"].createElement("br",null),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"get(obj, 'a.b', 'default')")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.get)(a,"a.b","default"))),t["default"].createElement("br",null),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"get(obj, ['a', 'b'])")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.get)(a,["a","b"]))),t["default"].createElement("br",null),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"get(obj, ['a', 'b'], 'default')")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.get)(a,["a","b"],"default"))),t["default"].createElement("br",null),t["default"].createElement("h1",null,"\u6ca1\u6210\u529f\u53d6\u5230\u503c"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"get(obj, 'c.b') ")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.get)(a,"c.b"))),t["default"].createElement("br",null),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"get(obj, 'c.b', 'default') ")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.get)(a,"c.b","default"))))};return t["default"].createElement(o)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { get } from '@fexd/tools'\n\nconst obj = {\n a: {\n b: 1,\n },\n}\n\nexport default () => {\n return (\n <>\n
\n        {`const obj = ${JSON.stringify({ a: { b: 1 } }, null, 2)}`}\n      
\n

\u6210\u529f\u53d6\u5230\u503c

\n
\n get(obj, 'a.b') \u7684\u7ed3\u679c\u4e3a\uff1a\n {get(obj, 'a.b')}\n
\n
\n
\n get(obj, 'a.b', 'default'){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n {get(obj, 'a.b', 'default')}\n
\n
\n
\n get(obj, ['a', 'b']){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n {get(obj, ['a', 'b'])}\n
\n
\n
\n \n get(obj, ['a', 'b'], 'default')\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n {get(obj, ['a', 'b'], 'default')}\n
\n
\n

\u6ca1\u6210\u529f\u53d6\u5230\u503c

\n
\n get(obj, 'c.b') \u7684\u7ed3\u679c\u4e3a\uff1a\n {get(obj, 'c.b')}\n
\n
\n
\n get(obj, 'c.b', 'default') {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n {get(obj, 'c.b', 'default')}\n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"get-demo"}},"getFormatter-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=(0,r.getFormatter)({separator:",",length:3,reverse:!0,isNumber:!0}),o=(0,r.getFormatter)({separator:"--",length:2,reverse:!1,isNumber:!1}),i=(0,r.getFormatter)({separator:" ",length:4,reverse:!1,isNumber:!0});window.getFormatter=r.getFormatter;var l=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("h1",null,"\u683c\u5f0f\u5316\u4eba\u6c11\u5e01"),t["default"].createElement("pre",{style:{color:"#690"}},"const formatRMB = getFormatter".concat(JSON.stringify({separator:",",length:3,reverse:!0,isNumber:!0},null,2))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"formatRMB(1234500)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},a(1234500))),t["default"].createElement("br",null),t["default"].createElement("h1",null,"\u683c\u5f0f\u5316\u5b57\u7b26\u4e32"),t["default"].createElement("pre",{style:{color:"#690"}},"const formatString = getFormatter".concat(JSON.stringify({separator:"--",length:2,reverse:!1,isNumber:!1},null,2))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"formatString('aabbccddeeff')")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},o("aabbccddeeff"))),t["default"].createElement("br",null),t["default"].createElement("h1",null,"\u683c\u5f0f\u5316\u94f6\u884c\u5361\u53f7"),t["default"].createElement("pre",{style:{color:"#690"}},"const formatBankCode = getFormatter".concat(JSON.stringify({separator:" ",length:4,reverse:!1,isNumber:!0},null,2))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"formatBankCode(1234567812345678)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},i(0x462d537e7ef4e))))};return t["default"].createElement(l)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { getFormatter } from '@fexd/tools'\n\nconst formatRMB = getFormatter({\n separator: ',',\n length: 3,\n reverse: true,\n isNumber: true,\n})\n\nconst formatString = getFormatter({\n separator: '--',\n length: 2,\n reverse: false,\n isNumber: false,\n})\n\nconst formatBankCode = getFormatter({\n separator: ' ',\n length: 4,\n reverse: false,\n isNumber: true,\n})\n\nwindow.getFormatter = getFormatter\n\nexport default () => {\n return (\n <>\n

\u683c\u5f0f\u5316\u4eba\u6c11\u5e01

\n
\n        {`const formatRMB = getFormatter${JSON.stringify(\n          {\n            separator: ',',\n            length: 3,\n            reverse: true,\n            isNumber: true,\n          },\n          null,\n          2\n        )}`}\n      
\n
\n formatRMB(1234500) \u7684\u7ed3\u679c\u4e3a\uff1a\n {formatRMB(1234500)}\n
\n
\n\n

\u683c\u5f0f\u5316\u5b57\u7b26\u4e32

\n
\n        {`const formatString = getFormatter${JSON.stringify(\n          {\n            separator: '--',\n            length: 2,\n            reverse: false,\n            isNumber: false,\n          },\n          null,\n          2\n        )}`}\n      
\n
\n formatString('aabbccddeeff'){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n {formatString('aabbccddeeff')}\n
\n
\n\n

\u683c\u5f0f\u5316\u94f6\u884c\u5361\u53f7

\n
\n        {`const formatBankCode = getFormatter${JSON.stringify(\n          {\n            separator: ' ',\n            length: 4,\n            reverse: false,\n            isNumber: true,\n          },\n          null,\n          2\n        )}`}\n      
\n
\n \n formatBankCode(1234567812345678)\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {formatBankCode(1234567812345678)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"getFormatter-demo"}},"intersection-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"intersection([1, 2, 3, 4], [2, 3, 4, 5])")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},JSON.stringify((0,r.intersection)([1,2,3,4],[2,3,4,5])))))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { intersection } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n
\n \n intersection([1, 2, 3, 4], [2, 3, 4, 5])\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(intersection([1, 2, 3, 4], [2, 3, 4, 5]))}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"intersection-demo"}},"last-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("p",null,"const arr = [1, 2, 3, 4]"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"last(arr)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.last)([1,2,3,4]))),t["default"].createElement("br",null),t["default"].createElement("p",null,"const obj = { a: 1, b: 2 }"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"last(obj)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.last)({a:1,b:2}))),t["default"].createElement("br",null),t["default"].createElement("p",null,"const obj = { name: 'Amy', age: 18 }"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"last(obj)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.last)({name:"Amy",age:18}))))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { last } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n

const arr = [1, 2, 3, 4]

\n
\n last(arr) \u7684\u7ed3\u679c\u4e3a\uff1a\n {last([1, 2, 3, 4])}\n
\n
\n

{`const obj = { a: 1, b: 2 }`}

\n
\n last(obj) \u7684\u7ed3\u679c\u4e3a\uff1a\n {last({ a: 1, b: 2 })}\n
\n
\n

{`const obj = { name: 'Amy', age: 18 }`}

\n
\n last(obj) \u7684\u7ed3\u679c\u4e3a\uff1a\n {last({ name: 'Amy', age: 18 })}\n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"last-demo"}},"run-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a={a:{b:{c:"abc",func:function(e){return e}}}},o=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("h1",null,"\u65e0\u75db\u6267\u884c\u5bf9\u8c61\u91cc\u7684\uff1a"),t["default"].createElement("p",null,"\u6267\u884c\u5bf9\u8c61\u91cc\u7684\u51fd\u6570\uff0c\u6210\u529f"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"run(obj, 'a.b.func', 'vagaga')")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.run)(a,"a.b.func","vagaga"))),t["default"].createElement("br",null),t["default"].createElement("p",null,"\u6267\u884c\u5bf9\u8c61\u91cc\u4e0d\u5b58\u5728\u7684\u51fd\u6570\uff0c\u6ca1\u6709\u6210\u529f"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"run(obj, 'a.b.d', 'vagaga')")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.run)(a,"a.b.d","vagaga"))),t["default"].createElement("br",null),t["default"].createElement("p",null,"\u6267\u884c\u5bf9\u8c61\u91cc\u7684\u5176\u4ed6\u7c7b\u578b\uff0c\u6210\u529f"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"run(obj, 'a.b.c', 'vagaga')")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.run)(a,"a.b.c","vagaga"))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"run(obj, 'a.b', 'vagaga')")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify((0,r.run)(a,"a.b","vagaga"),null,2))),t["default"].createElement("br",null),t["default"].createElement("h1",null,"\u65e0\u75db\u76f4\u63a5\u6267\u884c\uff1a"),t["default"].createElement("p",null,"\u76f4\u63a5\u6267\u884c\u51fd\u6570\uff0c\u6210\u529f"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"run(obj.a.b.func, undefined, 'vagaga')")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.run)(a.a.b.func,void 0,"vagaga"))),t["default"].createElement("p",null,"\u76f4\u63a5\u6267\u884c\u5b57\u7b26\u4e32\uff0c\u6210\u529f"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"run(obj.a.b.c, undefined, 'vagaga')")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.run)(a.a.b.c,void 0,"vagaga"))),t["default"].createElement("p",null,"\u76f4\u63a5\u6267\u884c\u5bf9\u8c61\uff0c\u6210\u529f"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"run(obj.a, undefined, 'vagaga')")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify((0,r.run)(a.a,void 0,"vagaga"),null,2))),t["default"].createElement("p",null,"\u76f4\u63a5\u6267\u884c\u4e0d\u5b58\u5728\u7684\uff0c\u5931\u8d25"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"run(obj.a.b.d, undefined, 'vagaga')")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.run)(a.a.b.d,void 0,"vagaga"))))};return t["default"].createElement(o)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { run } from '@fexd/tools'\n\nconst obj = {\n a: {\n b: {\n c: 'abc',\n func: (str) => {\n return str\n },\n },\n },\n}\n\nexport default () => {\n return (\n <>\n

\u65e0\u75db\u6267\u884c\u5bf9\u8c61\u91cc\u7684\uff1a

\n

\u6267\u884c\u5bf9\u8c61\u91cc\u7684\u51fd\u6570\uff0c\u6210\u529f

\n
\n run(obj, 'a.b.func', 'vagaga'){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n {run(obj, 'a.b.func', 'vagaga')}\n
\n
\n

\u6267\u884c\u5bf9\u8c61\u91cc\u4e0d\u5b58\u5728\u7684\u51fd\u6570\uff0c\u6ca1\u6709\u6210\u529f

\n
\n run(obj, 'a.b.d', 'vagaga'){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n {run(obj, 'a.b.d', 'vagaga')}\n
\n
\n

\u6267\u884c\u5bf9\u8c61\u91cc\u7684\u5176\u4ed6\u7c7b\u578b\uff0c\u6210\u529f

\n
\n run(obj, 'a.b.c', 'vagaga'){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n {run(obj, 'a.b.c', 'vagaga')}\n
\n
\n run(obj, 'a.b', 'vagaga'){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n          {JSON.stringify(run(obj, 'a.b', 'vagaga'), null, 2)}\n        
\n
\n
\n\n

\u65e0\u75db\u76f4\u63a5\u6267\u884c\uff1a

\n

\u76f4\u63a5\u6267\u884c\u51fd\u6570\uff0c\u6210\u529f

\n
\n \n run(obj.a.b.func, undefined, 'vagaga')\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {run(obj.a.b.func, undefined, 'vagaga')}\n \n
\n

\u76f4\u63a5\u6267\u884c\u5b57\u7b26\u4e32\uff0c\u6210\u529f

\n
\n \n run(obj.a.b.c, undefined, 'vagaga')\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {run(obj.a.b.c, undefined, 'vagaga')}\n \n
\n

\u76f4\u63a5\u6267\u884c\u5bf9\u8c61\uff0c\u6210\u529f

\n
\n \n run(obj.a, undefined, 'vagaga')\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n          {JSON.stringify(run(obj.a, undefined, 'vagaga'), null, 2)}\n        
\n
\n

\u76f4\u63a5\u6267\u884c\u4e0d\u5b58\u5728\u7684\uff0c\u5931\u8d25

\n
\n \n run(obj.a.b.d, undefined, 'vagaga')\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {run(obj.a.b.d, undefined, 'vagaga')}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"run-demo"}},"set-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"set({}, 'a.b.c.d', 'hello world')")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify((0,r.set)({},"a.b.c.d","hello world"),null,2))),t["default"].createElement("br",null),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"set(undefined, 'a.b.c', 1)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify((0,r.set)(void 0,"a.b.c",1),null,2))))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { set } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n
\n {`set({}, 'a.b.c.d', 'hello world')`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n          {JSON.stringify(set({}, 'a.b.c.d', 'hello world'), null, 2)}\n        
\n
\n
\n
\n {`set(undefined, 'a.b.c', 1)`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n          {JSON.stringify(set(undefined, 'a.b.c', 1), null, 2)}\n        
\n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"set-demo"}},"uniqByKey-demo":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("iojd")),a=e(n("nNWW")),o=n("/7QA"),i=[{name:"Amy",age:18},{name:"Tom",age:19},{name:"Amy"}],l=function(){var e=(0,a.useState)([]),t=(0,r["default"])(e,2),n=t[0],l=t[1];return a["default"].createElement(a["default"].Fragment,null,a["default"].createElement("div",null,a["default"].createElement("span",{style:{color:"#DD4A68"}},"const arr = "),a["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify(i,null,2))),a["default"].createElement("br",null),a["default"].createElement("div",null,a["default"].createElement("button",{onClick:function(){l((0,o.uniqByKey)(i,"name"))}},"\u70b9\u51fb\u53bb\u91cd uniqByKey(arr, 'name')")),a["default"].createElement("br",null),a["default"].createElement("div",null,a["default"].createElement("span",{style:{color:"#DD4A68"}},"\u53bb\u91cd\u540e\u5f97\u5230\u7684\u6570\u7ec4\u4e3a\uff1a"),a["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify(n,null,2))))};return a["default"].createElement(l)},previewerProps:{sources:{_:{jsx:"import React, { useState } from 'react'\nimport { uniqByKey } from '@fexd/tools'\n\nconst arr = [\n { name: 'Amy', age: 18 },\n { name: 'Tom', age: 19 },\n { name: 'Amy' },\n]\nexport default () => {\n const [newArr, setNewArr] = useState([])\n return (\n <>\n
\n const arr = \n
{JSON.stringify(arr, null, 2)}
\n
\n
\n
\n {\n setNewArr(uniqByKey(arr, 'name'))\n }}\n >\n \u70b9\u51fb\u53bb\u91cd uniqByKey(arr, 'name')\n \n
\n
\n
\n \u53bb\u91cd\u540e\u5f97\u5230\u7684\u6570\u7ec4\u4e3a\uff1a\n
{JSON.stringify(newArr, null, 2)}
\n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"uniqByKey-demo"}},"value-demo":{component:function(){var e,t,r=n("uKmp")["default"],a=r(n("nNWW")),o=n("/7QA"),i="default",l='value(\n v1,\n () => {\n console.log("v1\u6ca1\u6709\uff0c\u5c1d\u8bd5v2");\n return v2;\n },\n () => {\n console.log("v2\u4e5f\u6ca1\u6709\uff0c\u5c1d\u8bd5v3");\n return v3;\n }\n);',c=function(){return a["default"].createElement(a["default"].Fragment,null,a["default"].createElement("h1",null,"var v1, v2, v3 = 'default'"),a["default"].createElement("div",null,a["default"].createElement("span",{style:{color:"#DD4A68"}},"value(v1, v2, v3)")," \u7684\u7ed3\u679c\u4e3a\uff1a",a["default"].createElement("span",{style:{color:"#690"}},(0,o.value)(e,t,i))),a["default"].createElement("br",null),a["default"].createElement("div",null,a["default"].createElement("span",{style:{color:"#DD4A68"}},"value(v1, 0, v3)")," \u7684\u7ed3\u679c\u4e3a\uff1a",a["default"].createElement("span",{style:{color:"#690"}},(0,o.value)(e,0,i))),a["default"].createElement("br",null),a["default"].createElement("div",null,a["default"].createElement("pre",{style:{color:"#DD4A68"}},l)," \u7684\u7ed3\u679c\u4e3a\uff1a",a["default"].createElement("span",{style:{color:"#690"}},(0,o.value)(e,(function(){return console.log("v1\u6ca1\u6709\uff0c\u5c1d\u8bd5v2"),t}),(function(){return console.log("v2\u4e5f\u6ca1\u6709\uff0c\u5c1d\u8bd5v3"),i})))),a["default"].createElement("br",null))};return a["default"].createElement(c)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { value, isUndefined } from '@fexd/tools'\n\nvar v1,\n v2,\n v3 = 'default'\n\nconst str = `value(\n v1,\n () => {\n console.log(\"v1\u6ca1\u6709\uff0c\u5c1d\u8bd5v2\");\n return v2;\n },\n () => {\n console.log(\"v2\u4e5f\u6ca1\u6709\uff0c\u5c1d\u8bd5v3\");\n return v3;\n }\n);`\n\nexport default () => {\n return (\n <>\n

var v1, v2, v3 = 'default'

\n
\n value(v1, v2, v3) \u7684\u7ed3\u679c\u4e3a\uff1a\n {value(v1, v2, v3)}\n
\n
\n
\n value(v1, 0, v3) \u7684\u7ed3\u679c\u4e3a\uff1a\n {value(v1, 0, v3)}\n
\n
\n
\n
{str}
\u7684\u7ed3\u679c\u4e3a\uff1a\n \n {value(\n v1,\n () => {\n console.log('v1\u6ca1\u6709\uff0c\u5c1d\u8bd5v2')\n return v2\n },\n () => {\n console.log('v2\u4e5f\u6ca1\u6709\uff0c\u5c1d\u8bd5v3')\n return v3\n }\n )}\n \n
\n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"value-demo"}},"qs-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a="http://www.test.com?id=2&name=1",o=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"qs.parse()")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},JSON.stringify(r.qs.parse()))),t["default"].createElement("br",null),t["default"].createElement("p",null,'const url = "http://www.test.com?id=2&name=1"'),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"qs.parse(url)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},JSON.stringify(r.qs.parse(a),null,2))))};return t["default"].createElement(o)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { qs } from '@fexd/tools'\n\nconst url = 'http://www.test.com?id=2&name=1'\n\nexport default () => {\n return (\n <>\n
\n qs.parse() \u7684\u7ed3\u679c\u4e3a\uff1a\n {JSON.stringify(qs.parse())}\n
\n
\n\n

const url = \"http://www.test.com?id=2&name=1\"

\n
\n qs.parse(url) \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(qs.parse(url), null, 2)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"qs-demo"}},"qs-demo-1":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"qs.stringify({ id: 1 })")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},r.qs.stringify({id:1}))),t["default"].createElement("br",null),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"qs.stringify({ id: 2, name: 1 })")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},r.qs.stringify({id:2,name:1}))))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { qs } from '@fexd/tools'\n\nconst url = 'http://www.test.com?id=2&name=1'\n\nexport default () => {\n return (\n <>\n
\n {`qs.stringify({ id: 1 })`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n {qs.stringify({ id: 1 })}\n
\n
\n\n
\n {`qs.stringify({ id: 2, name: 1 })`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {qs.stringify({ id: 2, name: 1 })}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"qs-demo-1"}},"classnames-demo":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("f2HW")),a=t(n("iojd")),o=e(n("nNWW")),i=n("/7QA"),l=function(){var e=(0,o.useState)("primary"),t=(0,a["default"])(e,2),n=t[0],l=t[1],c=(0,o.useMemo)((function(){return"primary"===n?"\u70b9\u6211\u5c06\u4fee\u6539 buttonType \u7684\u503c\u4e3a warning":"\u70b9\u6211\u5c06\u4fee\u6539 buttonType \u7684\u503c\u4e3a primary"}),[n]);return o["default"].createElement(o["default"].Fragment,null,o["default"].createElement("p",null,"\u7c7b\u540d\u53ef\u4e3a\u5b57\u7b26\u4e32\uff1a"),o["default"].createElement("div",null,o["default"].createElement("span",{style:{color:"#DD4A68"}},"classnames('foo', 'bar')")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",o["default"].createElement("span",{style:{color:"#690"}},JSON.stringify((0,i.classnames)("foo","bar"),null,2))),o["default"].createElement("br",null),o["default"].createElement("p",null,"\u4f7f\u7528\u5bf9\u8c61\u6765\u5bf9\u7c7b\u540d\u8fdb\u884c\u6761\u4ef6\u9009\u62e9\uff0ckey \u4e3a\u7c7b\u540d\uff0cvalue \u4e3a true \u624d\u6709\u8fd9\u4e2a\u7c7b\u540d\uff1a"),o["default"].createElement("div",null,o["default"].createElement("span",{style:{color:"#DD4A68"}},"classnames({ 'foo-bar': true })")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",o["default"].createElement("span",{style:{color:"#690"}},JSON.stringify((0,i.classnames)({"foo-bar":!0}),null,2))),o["default"].createElement("br",null),o["default"].createElement("div",null,o["default"].createElement("span",{style:{color:"#DD4A68"}},"classnames({ 'foo-bar': false })")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",o["default"].createElement("span",{style:{color:"#690"}},JSON.stringify((0,i.classnames)({"foo-bar":!1}),null,2))),o["default"].createElement("br",null),o["default"].createElement("div",null,o["default"].createElement("span",{style:{color:"#DD4A68"}},"classnames({ foo: true }, { bar: true })")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",o["default"].createElement("span",{style:{color:"#690"}},JSON.stringify((0,i.classnames)({foo:!0},{bar:!0}),null,2))),o["default"].createElement("br",null),o["default"].createElement("div",null,o["default"].createElement("span",{style:{color:"#DD4A68"}},"classnames({ foo: true, bar: true })")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",o["default"].createElement("span",{style:{color:"#690"}},JSON.stringify((0,i.classnames)({foo:!0,bar:!0}),null,2))),o["default"].createElement("br",null),o["default"].createElement("p",null,"\u7c7b\u540d\u6709\u5b57\u7b26\u4e32\u548c\u5bf9\u8c61\uff1a"),o["default"].createElement("div",null,o["default"].createElement("span",{style:{color:"#DD4A68"}},"classnames('foo', { bar: true })")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",o["default"].createElement("span",{style:{color:"#690"}},JSON.stringify((0,i.classnames)("foo",{bar:!0}),null,2))),o["default"].createElement("br",null),o["default"].createElement("div",null,o["default"].createElement("span",{style:{color:"#DD4A68"}},"classnames('foo', { bar: true, duck: false }, 'baz', { quux: true })")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",o["default"].createElement("span",{style:{color:"#690"}},JSON.stringify((0,i.classnames)("foo",{bar:!0,duck:!1},"baz",{quux:!0}),null,2))),o["default"].createElement("br",null),o["default"].createElement("p",null," falsy \u7684\u503c\u90fd\u4f1a\u88ab\u5ffd\u7565"),o["default"].createElement("div",null,o["default"].createElement("span",{style:{color:"#DD4A68"}},"classnames(null, false, 'bar', undefined, 0, 1, { baz: null }, '')")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",o["default"].createElement("span",{style:{color:"#690"}},JSON.stringify((0,i.classnames)(null,!1,"bar",void 0,0,1,{baz:null},""),null,2))),o["default"].createElement("br",null),o["default"].createElement("p",null," \u6570\u7ec4\u4e5f\u4f1a\u88ab\u62cd\u5e73 "),o["default"].createElement("div",null,o["default"].createElement("span",{style:{color:"#DD4A68"}},"classnames('a', ['b', { c: true, d: false }])")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",o["default"].createElement("span",{style:{color:"#690"}},JSON.stringify((0,i.classnames)("a",["b",{c:!0,d:!1}]),null,2))),o["default"].createElement("br",null),o["default"].createElement("p",null,"\u4f7f\u7528 ES2015 \u52a8\u6001\u7c7b\u540d"),o["default"].createElement("div",null,o["default"].createElement("div",null,o["default"].createElement("button",{onClick:function(){l("warning"===n?"primary":"warning")}},c),o["default"].createElement("span",{style:{paddingLeft:"20px"}},"buttonType \u4e3a ",n)),o["default"].createElement("br",null),o["default"].createElement("span",{style:{color:"#DD4A68"}},"classnames(","{"," [`btn-$","{","buttonType","}","`]: true })")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",o["default"].createElement("span",{style:{color:"#690"}},JSON.stringify((0,i.classnames)((0,r["default"])({},"btn-".concat(n),!0)),null,2))),o["default"].createElement("br",null))};return o["default"].createElement(l)},previewerProps:{sources:{_:{jsx:"import React, { useState, useMemo } from 'react'\nimport { classnames } from '@fexd/tools'\n\nexport default () => {\n const [buttonType, setButtonType] = useState('primary')\n const text = useMemo(() => {\n if (buttonType === 'primary') {\n return '\u70b9\u6211\u5c06\u4fee\u6539 buttonType \u7684\u503c\u4e3a warning'\n }\n return '\u70b9\u6211\u5c06\u4fee\u6539 buttonType \u7684\u503c\u4e3a primary'\n }, [buttonType])\n\n return (\n <>\n

\u7c7b\u540d\u53ef\u4e3a\u5b57\u7b26\u4e32\uff1a

\n
\n {`classnames('foo', 'bar')`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(classnames('foo', 'bar'), null, 2)}\n \n
\n
\n\n

\n \u4f7f\u7528\u5bf9\u8c61\u6765\u5bf9\u7c7b\u540d\u8fdb\u884c\u6761\u4ef6\u9009\u62e9\uff0ckey \u4e3a\u7c7b\u540d\uff0cvalue \u4e3a true \u624d\u6709\u8fd9\u4e2a\u7c7b\u540d\uff1a\n

\n
\n {`classnames({ 'foo-bar': true })`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(classnames({ 'foo-bar': true }), null, 2)}\n \n
\n
\n
\n {`classnames({ 'foo-bar': false })`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(classnames({ 'foo-bar': false }), null, 2)}\n \n
\n
\n
\n {`classnames({ foo: true }, { bar: true })`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(classnames({ foo: true }, { bar: true }), null, 2)}\n \n
\n
\n
\n {`classnames({ foo: true, bar: true })`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(classnames({ foo: true, bar: true }), null, 2)}\n \n
\n
\n\n

\u7c7b\u540d\u6709\u5b57\u7b26\u4e32\u548c\u5bf9\u8c61\uff1a

\n
\n {`classnames('foo', { bar: true })`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(classnames('foo', { bar: true }), null, 2)}\n \n
\n
\n
\n {`classnames('foo', { bar: true, duck: false }, 'baz', { quux: true })`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(\n classnames('foo', { bar: true, duck: false }, 'baz', {\n quux: true,\n }),\n null,\n 2\n )}\n \n
\n
\n\n

falsy \u7684\u503c\u90fd\u4f1a\u88ab\u5ffd\u7565

\n
\n {`classnames(null, false, 'bar', undefined, 0, 1, { baz: null }, '')`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(\n classnames(null, false, 'bar', undefined, 0, 1, { baz: null }, ''),\n null,\n 2\n )}\n \n
\n
\n\n

\u6570\u7ec4\u4e5f\u4f1a\u88ab\u62cd\u5e73

\n
\n {`classnames('a', ['b', { c: true, d: false }])`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(\n classnames('a', ['b', { c: true, d: false }]),\n null,\n 2\n )}\n \n
\n
\n\n

\u4f7f\u7528 ES2015 \u52a8\u6001\u7c7b\u540d

\n
\n
\n {\n setButtonType(buttonType === 'warning' ? 'primary' : 'warning')\n }}\n >\n {text}\n \n \n buttonType \u4e3a {buttonType}\n \n
\n
\n \n classnames({`{`} [`btn-${`{`}buttonType{`}`}`]: true })\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(classnames({ [`btn-${buttonType}`]: true }), null, 2)}\n \n
\n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"classnames-demo"}},"CombJudge-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=[{name:"iPhone X",color:"\u9ed1\u8272",storage:"64g"},{color:"\u9ed1\u8272",name:"iPhone XS",storage:"64g"},{color:"\u767d\u8272",name:"iPhone X",storage:"64g"},{color:"\u767d\u8272",name:"iPhone X",storage:"256g"}],o=new r.CombJudge(a),i=function(){return t["default"].createElement("div",null,t["default"].createElement("div",{style:{color:"#DD4A68"}},"const judge = new CombJudge(product);"),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68"}},"judge.list")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify(o.list,null,2)))};return t["default"].createElement(i)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { CombJudge } from '@fexd/tools'\n\n// \u5546\u54c1\nconst product = [\n {\n name: 'iPhone X',\n color: '\u9ed1\u8272',\n storage: '64g',\n },\n {\n color: '\u9ed1\u8272',\n name: 'iPhone XS',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '256g',\n },\n]\n\nconst judge = new CombJudge(product)\n\nexport default () => {\n return (\n
\n
\n const judge = new CombJudge(product);\n
\n
\n judge.list \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n        {JSON.stringify(judge.list, null, 2)}\n      
\n
\n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"CombJudge-demo"}},"CombJudge-demo-1":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=[{name:"iPhone X",color:"\u9ed1\u8272",storage:"64g"},{color:"\u9ed1\u8272",name:"iPhone XS",storage:"64g"},{color:"\u767d\u8272",name:"iPhone X",storage:"64g"},{color:"\u767d\u8272",name:"iPhone X",storage:"256g"}],o=new r.CombJudge(a),i=function(){return t["default"].createElement("div",null,t["default"].createElement("div",{style:{color:"#DD4A68"}},"const judge = new CombJudge(product);"),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68"}},"judge.attrKey")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify(o.attrKey,null,2)))};return t["default"].createElement(i)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { CombJudge } from '@fexd/tools'\n\n// \u5546\u54c1\nconst product = [\n {\n name: 'iPhone X',\n color: '\u9ed1\u8272',\n storage: '64g',\n },\n {\n color: '\u9ed1\u8272',\n name: 'iPhone XS',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '256g',\n },\n]\n\nconst judge = new CombJudge(product)\n\nexport default () => {\n return (\n
\n
\n const judge = new CombJudge(product);\n
\n
\n judge.attrKey \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n        {JSON.stringify(judge.attrKey, null, 2)}\n      
\n
\n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"CombJudge-demo-1"}},"CombJudge-demo-2":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=[{name:"iPhone X",color:"\u9ed1\u8272",storage:"64g"},{color:"\u9ed1\u8272",name:"iPhone XS",storage:"64g"},{color:"\u767d\u8272",name:"iPhone X",storage:"64g"},{color:"\u767d\u8272",name:"iPhone X",storage:"256g"}],o=new r.CombJudge(a),i=function(){return t["default"].createElement("div",null,t["default"].createElement("div",{style:{color:"#DD4A68"}},"const judge = new CombJudge(product);"),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68"}},"judge.attr")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify(o.attr,null,2)))};return t["default"].createElement(i)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { CombJudge } from '@fexd/tools'\n\n// \u5546\u54c1\nconst product = [\n {\n name: 'iPhone X',\n color: '\u9ed1\u8272',\n storage: '64g',\n },\n {\n color: '\u9ed1\u8272',\n name: 'iPhone XS',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '256g',\n },\n]\n\nconst judge = new CombJudge(product)\n\nexport default () => {\n return (\n
\n
\n const judge = new CombJudge(product);\n
\n
\n judge.attr \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n        {JSON.stringify(judge.attr, null, 2)}\n      
\n
\n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"CombJudge-demo-2"}},"CombJudge-demo-3":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=[{name:"iPhone X",color:"\u9ed1\u8272",storage:"64g"},{color:"\u9ed1\u8272",name:"iPhone XS",storage:"64g"},{color:"\u767d\u8272",name:"iPhone X",storage:"64g"},{color:"\u767d\u8272",name:"iPhone X",storage:"256g"}],o=new r.CombJudge(a),i=function(){return t["default"].createElement("div",null,t["default"].createElement("div",{style:{color:"#DD4A68"}},"const judge = new CombJudge(product);"),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},'judge.have({ name: "iPhone X", color: "\u9ed1\u8272", storage: "64g" })')," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},o.have({name:"iPhone X",color:"\u9ed1\u8272",storage:"64g"}).toString()),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},'judge.have({ name: "iPhone X", color: "\u9ed1\u8272", storage: "128g" })')," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},o.have({name:"iPhone X",color:"\u9ed1\u8272",storage:"128g"}).toString()),t["default"].createElement("br",null))};return t["default"].createElement(i)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { CombJudge } from '@fexd/tools'\n\n// \u5546\u54c1\nconst product = [\n {\n name: 'iPhone X',\n color: '\u9ed1\u8272',\n storage: '64g',\n },\n {\n color: '\u9ed1\u8272',\n name: 'iPhone XS',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '256g',\n },\n]\n\nconst judge = new CombJudge(product)\n\nexport default () => {\n return (\n
\n
\n const judge = new CombJudge(product);\n
\n
\n {`judge.have({ name: \"iPhone X\", color: \"\u9ed1\u8272\", storage: \"64g\" })`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {judge\n .have({ name: 'iPhone X', color: '\u9ed1\u8272', storage: '64g' })\n .toString()}\n \n
\n {`judge.have({ name: \"iPhone X\", color: \"\u9ed1\u8272\", storage: \"128g\" })`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {judge\n .have({ name: 'iPhone X', color: '\u9ed1\u8272', storage: '128g' })\n .toString()}\n \n
\n
\n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"CombJudge-demo-3"}},"CombJudge-demo-4":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=[{name:"iPhone X",color:"\u9ed1\u8272",storage:"64g"},{color:"\u9ed1\u8272",name:"iPhone XS",storage:"64g"},{color:"\u767d\u8272",name:"iPhone X",storage:"64g"},{color:"\u767d\u8272",name:"iPhone X",storage:"256g"}],o=new r.CombJudge(a),i=function(){return t["default"].createElement("div",null,t["default"].createElement("div",{style:{color:"#DD4A68"}},"const judge = new CombJudge(product);"),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},'judge.find({ name: "iPhone X", color: "\u9ed1\u8272", storage: "64g" })')," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},o.find({name:"iPhone X",color:"\u9ed1\u8272",storage:"64g"}).toString()),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},'judge.find({ name: "iPhone X", color: "\u9ed1\u8272", storage: "128g" })')," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},"".concat(o.find({name:"iPhone X",color:"\u9ed1\u8272",storage:"128g"}))),t["default"].createElement("br",null))};return t["default"].createElement(i)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { CombJudge } from '@fexd/tools'\n\n// \u5546\u54c1\nconst product = [\n {\n name: 'iPhone X',\n color: '\u9ed1\u8272',\n storage: '64g',\n },\n {\n color: '\u9ed1\u8272',\n name: 'iPhone XS',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '256g',\n },\n]\n\nconst judge = new CombJudge(product)\n\nexport default () => {\n return (\n
\n
\n const judge = new CombJudge(product);\n
\n
\n {`judge.find({ name: \"iPhone X\", color: \"\u9ed1\u8272\", storage: \"64g\" })`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {judge\n .find({ name: 'iPhone X', color: '\u9ed1\u8272', storage: '64g' })\n .toString()}\n \n
\n {`judge.find({ name: \"iPhone X\", color: \"\u9ed1\u8272\", storage: \"128g\" })`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {`${judge.find({ name: 'iPhone X', color: '\u9ed1\u8272', storage: '128g' })}`}\n \n
\n
\n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"CombJudge-demo-4"}},"CombJudge-demo-5":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=[{name:"iPhone X",color:"\u9ed1\u8272",storage:"64g"},{color:"\u9ed1\u8272",name:"iPhone XS",storage:"64g"},{color:"\u767d\u8272",name:"iPhone X",storage:"64g"},{color:"\u767d\u8272",name:"iPhone X",storage:"256g"}],o=new r.CombJudge(a),i=o.adaptedAttr({name:"iPhone X",color:"\u9ed1\u8272"}),l=function(){return t["default"].createElement("div",null,t["default"].createElement("div",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"const judge = new CombJudge(product);"),t["default"].createElement("div",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},'const adaptedAttr = judge.adaptedAttr({ name: "iPhone X", color: "\u9ed1\u8272" })'),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},"adaptedAttr")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify(i,null,2)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},"adaptedAttr['name']")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify(i["name"])),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},"adaptedAttr['color']")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify(i["color"])),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},"adaptedAttr['storage']")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify(i["storage"])),t["default"].createElement("br",null))};return t["default"].createElement(l)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { CombJudge } from '@fexd/tools'\n\n// \u5546\u54c1\nconst product = [\n {\n name: 'iPhone X',\n color: '\u9ed1\u8272',\n storage: '64g',\n },\n {\n color: '\u9ed1\u8272',\n name: 'iPhone XS',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '256g',\n },\n]\n\nconst judge = new CombJudge(product)\nconst adaptedAttr = judge.adaptedAttr({ name: 'iPhone X', color: '\u9ed1\u8272' })\n\nexport default () => {\n return (\n
\n \n const judge = new CombJudge(product);\n
\n \n {`const adaptedAttr = judge.adaptedAttr({ name: \"iPhone X\", color: \"\u9ed1\u8272\" })`}\n \n
\n {`adaptedAttr`} \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n        {JSON.stringify(adaptedAttr, null, 2)}\n      
\n
\n {`adaptedAttr['name']`} \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(adaptedAttr['name'])}\n \n
\n {`adaptedAttr['color']`} \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(adaptedAttr['color'])}\n \n
\n {`adaptedAttr['storage']`} \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(adaptedAttr['storage'])}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"CombJudge-demo-5"}},"CombJudge-demo-6":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("G3cz")),a=t(n("iojd")),o=e(n("nNWW")),i=n("/7QA"),l=[{name:"iPhone X",color:"\u9ed1\u8272",storage:"64g"},{color:"\u9ed1\u8272",name:"iPhone XS",storage:"64g"},{color:"\u767d\u8272",name:"iPhone X",storage:"64g"},{color:"\u767d\u8272",name:"iPhone X",storage:"256g"}],c={margin:"0 20px",padding:"5px 10px",color:"rgba(0,0,0,.25)",background:"#f5f5f5",border:"1px solid",borderColor:"#d9d9d9"},u={margin:"0 20px",padding:"5px 10px",color:"rgba(0,0,0,.85)",background:"#fff",border:"1px solid",borderColor:"#d9d9d9"},s={margin:"0 20px",padding:"5px 10px",color:"#fff",background:"#1890ff",border:"1px solid",borderColor:"#1890ff"},f={name:"\u578b\u53f7",color:"\u989c\u8272",storage:"\u5185\u5b58"},d=new i.CombJudge(l),p=d.attr,m=d.attrKey,h=function(){var e=m.map((function(e){return{label:e,list:p[e]}})),t=(0,o.useState)({}),n=(0,a["default"])(t,2),i=n[0],l=n[1],h=(0,o.useMemo)((function(){return d.adaptedAttr(i)}),[i]),v=(0,o.useMemo)((function(){var t={};return e.forEach((function(e){var n=e.label,r=e.list;t[n]={},r.forEach((function(e){t[n][e]=-1,h[n].includes(e)&&(t[n][e]=0)}))})),t}),[h]);function g(e,t){if(-1!==v[e]){var n=(0,r["default"])({},i);n[t]===e?delete n[t]:n[t]=e,l(n)}}return o["default"].createElement(o["default"].Fragment,null,e.map((function(e,t){return o["default"].createElement("div",{key:t},o["default"].createElement("p",null,f[e.label]),o["default"].createElement("div",null,e.list.map((function(t,n){return o["default"].createElement("span",{key:n,onClick:function(){return g(t,e.label)},style:-1===v[e.label][t]?c:i[e.label]===t?s:u},t)}))))})))};return o["default"].createElement(h)},previewerProps:{sources:{_:{jsx:"import React, { useState, useEffect, useMemo } from 'react'\nimport { CombJudge } from '@fexd/tools'\n\n// \u5546\u54c1\nconst product = [\n {\n name: 'iPhone X',\n color: '\u9ed1\u8272',\n storage: '64g',\n },\n {\n color: '\u9ed1\u8272',\n name: 'iPhone XS',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '256g',\n },\n]\n// \u6837\u5f0f\u4eec\nconst disabledStyle = {\n margin: '0 20px',\n padding: '5px 10px',\n color: 'rgba(0,0,0,.25)',\n background: '#f5f5f5',\n border: '1px solid',\n borderColor: '#d9d9d9',\n}\nconst normalStyle = {\n margin: '0 20px',\n padding: '5px 10px',\n color: 'rgba(0,0,0,.85)',\n background: '#fff',\n border: '1px solid',\n borderColor: '#d9d9d9',\n}\nconst selectedStyle = {\n margin: '0 20px',\n padding: '5px 10px',\n color: '#fff',\n background: '#1890ff',\n border: '1px solid',\n borderColor: '#1890ff',\n}\n\nconst zh = {\n name: '\u578b\u53f7',\n color: '\u989c\u8272',\n storage: '\u5185\u5b58',\n}\n\nconst judge = new CombJudge(product)\nconst { attr, attrKey } = judge\n\nexport default () => {\n // \u6e32\u67d3\u7684\u9009\u62e9\u89c4\u683c\u6570\u636e\n const renderProduct = attrKey.map((key) => {\n return {\n label: key,\n list: attr[key],\n }\n })\n // \u5f53\u524d\u9009\u4e2d\u7684\u6570\u636e\n const [selected, setSelected] = useState({})\n // \u53ef\u88ab\u9009\u7684\u6570\u636e\n const adaptedAttr = useMemo(() => judge.adaptedAttr(selected), [selected])\n // \u9009\u9879\u7684\u72b6\u6001\n const optionStatus = useMemo(() => {\n const result = {}\n renderProduct.forEach((item) => {\n const key = item.label\n const list = item.list\n result[key] = {}\n list.forEach((option) => {\n result[key][option] = -1\n if (adaptedAttr[key].includes(option)) {\n result[key][option] = 0\n }\n })\n })\n return result\n }, [adaptedAttr])\n\n function onClick(value, option) {\n // \u7981\u7528\u4e0d\u53ef\u70b9\n if (optionStatus[value] === -1) {\n return\n }\n\n const tempSelected = { ...selected }\n // \u662f\u5426\u662f\u53d6\u6d88\n if (tempSelected[option] === value) {\n delete tempSelected[option]\n } else {\n tempSelected[option] = value\n }\n setSelected(tempSelected)\n }\n\n return (\n <>\n {renderProduct.map((options, index) => (\n
\n

{zh[options.label]}

\n
\n {options.list.map((item, itemIdx) => (\n onClick(item, options.label)}\n style={\n optionStatus[options.label][item] === -1\n ? disabledStyle\n : selected[options.label] === item\n ? selectedStyle\n : normalStyle\n }\n >\n {item}\n \n ))}\n
\n
\n ))}\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"CombJudge-demo-6"}},"globalThis-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA");console.log(r.globalThis);var a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"globalThis.innerHeight")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},r.globalThis.innerHeight),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"globalThis.innerWidth")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},r.globalThis.innerWidth),t["default"].createElement("br",null),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"globalThis.screen.availWidth")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},r.globalThis.screen.availWidth),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"globalThis.screen.availHeight")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},r.globalThis.screen.availHeight),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { globalThis } from '@fexd/tools'\n\nconsole.log(globalThis)\nexport default () => {\n return (\n <>\n \n globalThis.innerHeight\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {globalThis.innerHeight}\n \n
\n \n globalThis.innerWidth\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {globalThis.innerWidth}\n \n
\n
\n \n globalThis.screen.availWidth\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {globalThis.screen.availWidth}\n \n
\n \n globalThis.screen.availHeight\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {globalThis.screen.availHeight}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"globalThis-demo"}},"clamp-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"clamp(10, 20)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},(0,r.clamp)(10,20)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"clamp(10, 20, 30)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},(0,r.clamp)(10,20,30)),t["default"].createElement("br",null),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"clamp(40, 20, 30)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},(0,r.clamp)(40,20,30)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"clamp(25, 20, 30)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},(0,r.clamp)(25,20,30)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { clamp } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n clamp(10, 20)\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {clamp(10, 20)}\n \n
\n \n clamp(10, 20, 30)\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {clamp(10, 20, 30)}\n \n
\n
\n \n clamp(40, 20, 30)\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {clamp(40, 20, 30)}\n \n
\n \n clamp(25, 20, 30)\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {clamp(25, 20, 30)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"clamp-demo"}},"flatten-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"flatten([1, 2, 3, [1, 2, [1, 2, 3, 4], 3, 4], 4]")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.flatten)([1,2,3,[1,2,[1,2,3,4],3,4],4]),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { flatten } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n flatten([1, 2, 3, [1, 2, [1, 2, 3, 4], 3, 4], 4]\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(\n flatten([1, 2, 3, [1, 2, [1, 2, 3, 4], 3, 4], 4]),\n null,\n 1\n )}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"flatten-demo"}},"groupBy-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=[1,2,3,4,5,6,7];function o(e){return e%2===0?"even":"odd"}var i=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("div",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"const arr = [1, 2, 3, 4, 5, 6, 7];"),t["default"].createElement("pre",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"function groupFunc(value) {",t["default"].createElement("br",null)," if (value % 2 === 0) {",t["default"].createElement("br",null),' return "even";',t["default"].createElement("br",null)," } else {",t["default"].createElement("br",null),' return "odd";',t["default"].createElement("br",null)," }",t["default"].createElement("br",null),"}"),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"groupBy(groupFunc, arr)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.groupBy)(o,a),null,2)),t["default"].createElement("br",null))};return t["default"].createElement(i)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { groupBy } from '@fexd/tools'\n\nconst arr = [1, 2, 3, 4, 5, 6, 7]\n\nfunction groupFunc(value) {\n if (value % 2 === 0) {\n return 'even'\n } else {\n return 'odd'\n }\n}\n\nexport default () => {\n return (\n <>\n \n const arr = [1, 2, 3, 4, 5, 6, 7];\n \n \n {`function groupFunc(value) {`}\n
\n {` if (value % 2 === 0) {`}\n
\n {` return \"even\";`}\n
\n {` } else {`}\n
\n {` return \"odd\";`}\n
\n {` }`}\n
\n {`}`}\n \n
\n \n groupBy(groupFunc, arr)\n \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n        {JSON.stringify(groupBy(groupFunc, arr), null, 2)}\n      
\n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"groupBy-demo"}},"curry-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA");function a(e,t,n,r){return e+t+n+r}var o=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("pre",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"function add(a, b, c, d) {",t["default"].createElement("br",null)," return a + b + c + d;",t["default"].createElement("br",null),"}"),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"curry(add)(1, 2)(3, 4)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},(0,r.curry)(a)(1,2)(3,4)),t["default"].createElement("br",null))};return t["default"].createElement(o)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { curry } from '@fexd/tools'\n\nfunction add(a, b, c, d) {\n return a + b + c + d\n}\n\nexport default () => {\n return (\n <>\n \n {`function add(a, b, c, d) {`}\n
\n {` return a + b + c + d;`}\n
\n {`}`}\n \n \n curry(add)(1, 2)(3, 4)\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {curry(add)(1, 2)(3, 4)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"curry-demo"}},"\u4e0b\u5212\u7ebf-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a={a:"hello world"};function o(e,t,n,r){return console.log(this.a),this.arr=arguments,e+t+n+r}var i=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("div",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},'const context = { a: "hello world" };'),t["default"].createElement("pre",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"function add(a, b, c, d) {",t["default"].createElement("br",null)," console.log(this.a);",t["default"].createElement("br",null)," this.arr = arguments;",t["default"].createElement("br",null)," return a + b + c + d;",t["default"].createElement("br",null),"}"),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"__(add, context)(1, 2)(3, 4)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},(0,r.__)(o,a)(1,2)(3,4)),t["default"].createElement("br",null),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"context.arr")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify(a.arr,null,2)),t["default"].createElement("br",null))};return t["default"].createElement(i)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { __ } from '@fexd/tools'\n\nconst context = {\n a: 'hello world',\n}\n\nfunction add(a, b, c, d) {\n console.log(this.a)\n this.arr = arguments\n return a + b + c + d\n}\n\nexport default () => {\n return (\n <>\n \n {`const context = { a: \"hello world\" };`}\n \n \n {`function add(a, b, c, d) {`}\n
\n {` console.log(this.a);`}\n
\n {` this.arr = arguments;`}\n
\n {` return a + b + c + d;`}\n
\n {`}`}\n \n
\n \n __(add, context)(1, 2)(3, 4)\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {__(add, context)(1, 2)(3, 4)}\n \n
\n
\n \n context.arr\n \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n        {JSON.stringify(context.arr, null, 2)}\n      
\n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"\u4e0b\u5212\u7ebf-demo"}},"preloadImage-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a="https://static.k366.com/uploads/allimg/181008/7-1Q00Q51023331.jpg";(0,r.preloadImage)([a]);var o=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("img",{src:a,alt:"pig"}))};return t["default"].createElement(o)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { preloadImage } from '@fexd/tools'\n\nconst pig = 'https://static.k366.com/uploads/allimg/181008/7-1Q00Q51023331.jpg'\npreloadImage([pig])\n\nexport default () => {\n return (\n <>\n \"pig\"\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"preloadImage-demo"}},"ScrollListener-demo":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("iojd")),a=e(n("nNWW")),o=n("/7QA"),i=(0,a.useRef)(),l=(0,a.useRef)({}),c=[1,2,3,4],u=[new Array(24).fill("111111111111"),new Array(24).fill("22222"),new Array(24).fill("3333333333"),new Array(24).fill("44444")];function s(e){return function(t){t&&(l.current[e]=t)}}var f=function(){var e=(0,a.useState)(1),t=(0,r["default"])(e,2),n=t[0],f=t[1];return(0,a.useEffect)((function(){new o.ScrollListener({element:i.current,distanceEvents:c.map((function(e,t){return{dynamic:!0,distance:function(){return(0,o.clamp)((0,o.get)(l.current[e],"offsetTop",0),0)},onGoingIn:function(){f(e-1>1?e-1:1)},onGoingOut:function(){f(e)}}}))})}),[]),a["default"].createElement(a["default"].Fragment,null,a["default"].createElement("p",null,"\u5f53\u524d\u5728\u754c\u9762\uff1a",n),a["default"].createElement("div",{ref:i,style:{position:"relative",border:"1px solid #C8E1FF",background:"#F1F8FF",height:"500px",width:"300px",overflow:"auto"}},u.map((function(e,t){return a["default"].createElement("div",{key:t,ref:s(t+1)},e.map((function(e,t){return a["default"].createElement("div",{key:t},e)})))}))))};return a["default"].createElement(f)},previewerProps:{sources:{_:{jsx:"import React, { useState, useRef, useEffect } from 'react'\nimport { ScrollListener, get, clamp } from '@fexd/tools'\n\nconst scrollView = useRef()\nconst anchors = useRef({})\n\nconst tabs = [1, 2, 3, 4]\nconst text = [\n new Array(24).fill('111111111111'),\n new Array(24).fill('22222'),\n new Array(24).fill('3333333333'),\n new Array(24).fill('44444'),\n]\n\nfunction setAnchor(name) {\n return (dom) => {\n if (dom) {\n // dom.style.borderTop = 'solid 1px red'\n anchors.current[name] = dom\n }\n }\n}\n\nexport default () => {\n const [distanceText, setDistanceText] = useState(1)\n\n useEffect(() => {\n new ScrollListener({\n // \u6eda\u52a8\u5bb9\u5668\uff0c\u9700\u8bbe\u7f6e overflow: scroll/auto;\n element: scrollView.current,\n distanceEvents: tabs.map((tab, idx) => ({\n dynamic: true,\n distance: () => clamp(get(anchors.current[tab], 'offsetTop', 0), 0),\n onGoingIn() {\n setDistanceText(tab - 1 > 1 ? tab - 1 : 1)\n },\n onGoingOut() {\n setDistanceText(tab)\n },\n })),\n })\n }, [])\n return (\n <>\n

\u5f53\u524d\u5728\u754c\u9762\uff1a{distanceText}

\n \n {text.map((arr, arrIdx) => (\n
\n {arr.map((text, textIdx) => (\n
{text}
\n ))}\n
\n ))}\n \n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"ScrollListener-demo"}},"debounce-demo":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("iojd")),a=e(n("nNWW")),o=n("/7QA"),i=(0,o.debounce)((function(e){e()}),2e3),l=function(){var e=(0,a.useState)(0),t=(0,r["default"])(e,2),n=t[0],o=t[1];return a["default"].createElement(a["default"].Fragment,null,a["default"].createElement("h1",null,"num: ",n),a["default"].createElement("button",{onClick:function(){return i((function(){return o(n+1)}))}},"\u54ea\u6015\u72c2\u6309\u6309\u94ae\uff0c\u4e5f\u53ea\u5728\u6700\u540e\u4e00\u6b21\u70b9\u51fb\u7684 2s \u540e\u624d\u6267\u884c\u4e00\u6b21\u52a01"))};return a["default"].createElement(l)},previewerProps:{sources:{_:{jsx:"import React, { useState } from 'react'\nimport { debounce } from '@fexd/tools'\n\nconst debounceFunc = debounce((plus) => {\n plus()\n}, 2000)\n\nexport default () => {\n const [num, setNum] = useState(0)\n\n return (\n <>\n

num: {num}

\n \n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"debounce-demo"}},"throttle-demo":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("iojd")),a=e(n("nNWW")),o=n("/7QA"),i=(0,o.throttle)((function(e){e()}),5e3),l=function(){var e=(0,a.useState)(0),t=(0,r["default"])(e,2),n=t[0],o=t[1];return a["default"].createElement(a["default"].Fragment,null,a["default"].createElement("h1",null,"num: ",n),a["default"].createElement("button",{onClick:function(){return i((function(){return o(n+1)}))}},"5s\u91cc\u54ea\u6015\u72c2\u6309\u6309\u94ae\u4e5f\u53ea\u6267\u884c\u4e00\u6b21\u52a01"))};return a["default"].createElement(l)},previewerProps:{sources:{_:{jsx:"import React, { useState } from 'react'\nimport { throttle } from '@fexd/tools'\n\nconst throttleFunc = throttle((plus) => {\n plus()\n}, 5000)\n\nexport default () => {\n const [num, setNum] = useState(0)\n\n return (\n <>\n

num: {num}

\n \n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"throttle-demo"}},"SAS-demo":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("DBVu")),a=t(n("GAyR")),o=t(n("iojd")),i=e(n("nNWW")),l=n("/7QA"),c=function(){var e=(0,i.useState)(0),t=(0,o["default"])(e,2),n=t[0],c=t[1];function u(){return new Promise((function(e){setTimeout(e,3e3,"done")}))}var s=(0,l.SAS)(u);return i["default"].createElement(i["default"].Fragment,null,i["default"].createElement("p",null,"count: ",n),i["default"].createElement("button",{onClick:(0,a["default"])((0,r["default"])().mark((function e(){return(0,r["default"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,s();case 2:c(n+1);case 3:case"end":return e.stop()}}),e)})))},"\u70b9\u6211\u52a01\uff0c3\u79d2\u5185\u53ea\u8bf7\u6c42\u4e00\u6b21"))};return i["default"].createElement(c)},previewerProps:{sources:{_:{jsx:"import React, { useState } from 'react'\nimport { SAS, delay } from '@fexd/tools'\n\nexport default () => {\n const [count, setCount] = useState(0)\n\n function query() {\n return new Promise((resolve) => {\n // \u505a\u4e00\u4e9b\u5f02\u6b65\u64cd\u4f5c\n setTimeout(resolve, 3000, 'done')\n })\n }\n\n const sas = SAS(query)\n\n return (\n <>\n

count: {count}

\n {\n await sas()\n setCount(count + 1)\n }}\n >\n \u70b9\u6211\u52a01\uff0c3\u79d2\u5185\u53ea\u8bf7\u6c42\u4e00\u6b21\n \n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"SAS-demo"}},"url-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("h2",null,"\u6253\u5f00\u63a7\u5236\u53f0\u67e5\u770b\u8f93\u51fa\u7684 url \u5bf9\u8c61"),'console.log("url\u5bf9\u8c61", url)',console.log("url\u5bf9\u8c61",r.url))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { url } from '@fexd/tools'\n\nexport default () => {\n const testUrl = 'http://www.test.com?id=2&name=1'\n\n return (\n <>\n

\u6253\u5f00\u63a7\u5236\u53f0\u67e5\u770b\u8f93\u51fa\u7684 url \u5bf9\u8c61

\n console.log(\"url\u5bf9\u8c61\", url)\n {console.log('url\u5bf9\u8c61', url)}\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"url-demo"}}},c=n("x2v5"),u=n("SpTn"),s=n.n(u);t["default"]=e=>o.a.createElement(s.a,r({},e,{config:i,demos:l,apis:c}))},ahVg:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("sErw"),i=n("v3z7"),l=n("QHn5"),c=n("uZx/");r({target:"Map",proto:!0,real:!0,forced:a},{every:function(e){var t=o(this),n=l(t),r=i(e,arguments.length>1?arguments[1]:void 0,3);return!c(n,(function(e,n){if(!r(n,e,t))return c.stop()}),void 0,!0,!0).stopped}})},asw4:function(e,t,n){"use strict";function r(e,t){for(var n=0;n{var t=e.demos,n=t["isError-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"iserror"},a.a.createElement(o["AnchorLink"],{to:"#iserror","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isError"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a Error \u7c7b\u578b\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isError: (value: any) => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value \uff0c\u8981\u5224\u65ad\u7684\u6570\u636e")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u662f ",a.a.createElement("code",null,"Error")," \u7c7b\u578b"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u4e0d\u662f ",a.a.createElement("code",null,"Error")," \u7c7b\u578b")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isError-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},b4Yr:function(e,t,n){},bCY9:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("i0LQ"),a=new r["Plugin"]({validKeys:["modifyClientRenderOpts","patchRoutes","rootContainer","render","onRouteChange","__mfsu"]})},bHKe:function(e,t,n){var r=n("OOCw"),a=n("6SQG"),o=n("bbNk"),i=!a.setImmediate||!a.clearImmediate;r({global:!0,bind:!0,enumerable:!0,forced:i},{setImmediate:o.set,clearImmediate:o.clear})},bIC1:function(e,t,n){(function(t){var n="Expected a function",r=NaN,a="[object Symbol]",o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,d=s||f||Function("return this")(),p=Object.prototype,m=p.toString,h=Math.max,v=Math.min,g=function(){return d.Date.now()};function y(e,t,r){var a,o,i,l,c,u,s=0,f=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError(n);function m(t){var n=a,r=o;return a=o=void 0,s=t,l=e.apply(r,n),l}function y(e){return s=e,c=setTimeout(x,t),f?m(e):l}function b(e){var n=e-u,r=e-s,a=t-n;return d?v(a,i-r):a}function w(e){var n=e-u,r=e-s;return void 0===u||n>=t||n<0||d&&r>=i}function x(){var e=g();if(w(e))return S(e);c=setTimeout(x,b(e))}function S(e){return c=void 0,p&&a?m(e):(a=o=void 0,l)}function O(){void 0!==c&&clearTimeout(c),s=0,a=u=o=c=void 0}function A(){return void 0===c?l:S(g())}function j(){var e=g(),n=w(e);if(a=arguments,o=this,u=e,n){if(void 0===c)return y(u);if(d)return c=setTimeout(x,t),m(u)}return void 0===c&&(c=setTimeout(x,t)),l}return t=k(t)||0,E(r)&&(f=!!r.leading,d="maxWait"in r,i=d?h(k(r.maxWait)||0,t):i,p="trailing"in r?!!r.trailing:p),j.cancel=O,j.flush=A,j}function b(e,t,r){var a=!0,o=!0;if("function"!=typeof e)throw new TypeError(n);return E(r)&&(a="leading"in r?!!r.leading:a,o="trailing"in r?!!r.trailing:o),y(e,t,{leading:a,maxWait:t,trailing:o})}function E(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function w(e){return!!e&&"object"==typeof e}function x(e){return"symbol"==typeof e||w(e)&&m.call(e)==a}function k(e){if("number"==typeof e)return e;if(x(e))return r;if(E(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=E(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=l.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):i.test(e)?r:+e}e.exports=b}).call(this,n("bQdJ"))},bK3N:function(e,t,n){var r=n("+U9+"),a=n("e3zV"),o=n("PWyJ"),i=n("GLf+"),l=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,f=u.toString,d=s.hasOwnProperty,p=RegExp("^"+f.call(d).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(e){if(!o(e)||a(e))return!1;var t=r(e)?p:c;return t.test(i(e))}e.exports=m},bOH8:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["qs-demo"].component,r=t["qs-demo-1"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"qs"},a.a.createElement(o["AnchorLink"],{to:"#qs","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"qs"),a.a.createElement("p",null,"qs \u5e93\u7b80\u6613\u5b9e\u73b0\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"qs: {\n parse: (str: any) => {}\n stringify: (params?: {}) => string\n}",lang:"ts"}),a.a.createElement("h3",{id:"qsparse"},a.a.createElement(o["AnchorLink"],{to:"#qsparse","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"qs.parse"),a.a.createElement("p",null,"\u4e0e\u672c\u5de5\u5177\u5e93\u7684 ",a.a.createElement("code",null,"url.allParam")," \u529f\u80fd\u76f8\u540c\uff0c\u4ece\u5f53\u524d\u7684 url \u4e2d\u83b7\u53d6\u5230\u6240\u6709\u53c2\u6570\u3002"),a.a.createElement("h4",{id:"\u8bed\u6cd5-1"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5-1","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"parse: (str: any) => {}",lang:"ts"}),a.a.createElement("h4",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"url\uff0c\u4e3a\u4e86\u907f\u514d\u67d0\u79cd\u62ff\u4e0d\u5230\u7684\u573a\u666f\uff0c\u53ef\u4f20\u5165\u8981\u4ece\u4e2d\u89e3\u6790\u53c2\u6570\u7684 url")),a.a.createElement("h4",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u4ece url \u4e2d\u89e3\u6790\u51fa\u6765\u7684\u53c2\u6570\u5bf9\u8c61")),a.a.createElement("h4",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["qs-demo"].previewerProps,a.a.createElement(n,null)),a.a.createElement("div",{className:"markdown"},a.a.createElement("h3",{id:"qsstringify"},a.a.createElement(o["AnchorLink"],{to:"#qsstringify","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"qs.stringify"),a.a.createElement("p",null,"\u5c06\u5bf9\u8c61\u5e8f\u5217\u5316\u6210 URL \u7684\u5f62\u5f0f\uff0c\u4ee5 & \u8fdb\u884c\u62fc\u63a5\u3002"),a.a.createElement("p",null,"\u4e0e\u672c\u5de5\u5177\u5e93\u7684 ",a.a.createElement("code",null,"url.generateParamStr")," \u529f\u80fd\u76f8\u4f3c\uff0c\u4f46 ",a.a.createElement("code",null,"url.generateParamStr")," \u8fd4\u56de\u7684\u7ed3\u679c\u6709 ",a.a.createElement("code",null,"?")," \uff0c\u800c ",a.a.createElement("code",null,"qs.stringify")," \u7684\u8fd4\u56de\u7ed3\u679c\u6ca1\u6709\u3002"),a.a.createElement("h4",{id:"\u8bed\u6cd5-2"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5-2","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"stringify: (params?: {}) => string",lang:"ts"}),a.a.createElement("h4",{id:"\u53c2\u6570-1"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570-1","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u8981\u5e8f\u5217\u5316\u4e3a url \u5f62\u5f0f\u7684\u53c2\u6570\u5bf9\u8c61")),a.a.createElement("h4",{id:"\u8fd4\u56de\u503c-1"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c-1","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u4ee5 & \u62fc\u63a5\u540e\u7684\u5b57\u7b26\u4e32")),a.a.createElement("h4",{id:"\u4e3e\u4f8b-1"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b-1","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["qs-demo-1"].previewerProps,a.a.createElement(r,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},bQdJ:function(e,t){(function(t){e.exports=function(){var e={873:function(e){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(n){"object"===typeof window&&(t=window)}e.exports=t}},n={};function r(t){if(n[t])return n[t].exports;var a=n[t]={exports:{}},o=!0;try{e[t](a,a.exports,r),o=!1}finally{o&&delete n[t]}return a.exports}return r.ab=t+"/",r(873)}()}).call(this,"/")},bUaa:function(e,t,n){(function(e){var r=n("yn9n"),a=t&&!t.nodeType&&t,o=a&&"object"==typeof e&&e&&!e.nodeType&&e,i=o&&o.exports===a,l=i&&r.process,c=function(){try{var e=o&&o.require&&o.require("util").types;return e||l&&l.binding&&l.binding("util")}catch(t){}}();e.exports=c}).call(this,n("vhgi")(e))},bbNk:function(e,t,n){var r,a,o,i=n("6SQG"),l=n("h+/6"),c=n("kk5s"),u=n("v3z7"),s=n("RtP/"),f=n("73fw"),d=n("ytxp"),p=i.location,m=i.setImmediate,h=i.clearImmediate,v=i.process,g=i.MessageChannel,y=i.Dispatch,b=0,E={},w="onreadystatechange",x=function(e){if(E.hasOwnProperty(e)){var t=E[e];delete E[e],t()}},k=function(e){return function(){x(e)}},S=function(e){x(e.data)},O=function(e){i.postMessage(e+"",p.protocol+"//"+p.host)};m&&h||(m=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return E[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},h=function(e){delete E[e]},"process"==c(v)?r=function(e){v.nextTick(k(e))}:y&&y.now?r=function(e){y.now(k(e))}:g&&!d?(a=new g,o=a.port2,a.port1.onmessage=S,r=u(o.postMessage,o,1)):!i.addEventListener||"function"!=typeof postMessage||i.importScripts||l(O)||"file:"===p.protocol?r=w in f("script")?function(e){s.appendChild(f("script"))[w]=function(){s.removeChild(this),x(e)}}:function(e){setTimeout(k(e),0)}:(r=O,i.addEventListener("message",S,!1))),e.exports={set:m,clear:h}},beEN:function(e,t,n){"use strict";var r=n("OOCw"),a=n("SD1J"),o=n("z43i"),i=n("TxDi");r({target:"String",proto:!0,forced:!i("includes")},{includes:function(e){return!!~String(o(this)).indexOf(a(e),arguments.length>1?arguments[1]:void 0)}})},brx1:function(e,t,n){var r=n("ct0+");r("Array")},cBkf:function(e,t,n){"use strict";var r=n("OOCw"),a=n("x+sk"),o=n("g0aX"),i=n("erIx"),l=n("upgS"),c=n("684d"),u=n("tmip"),s=n("3Hes"),f=n("THrr"),d=n("7/pz"),p=f("slice"),m=d("slice",{ACCESSORS:!0,0:0,1:2}),h=s("species"),v=[].slice,g=Math.max;r({target:"Array",proto:!0,forced:!p||!m},{slice:function(e,t){var n,r,s,f=c(this),d=l(f.length),p=i(e,d),m=i(void 0===t?d:t,d);if(o(f)&&(n=f.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?a(n)&&(n=n[h],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return v.call(f,p,m);for(r=new(void 0===n?Array:n)(g(m-p,0)),s=0;p{var t=e.demos,n=t["ScrollListener-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"scrolllistener"},a.a.createElement(o["AnchorLink"],{to:"#scrolllistener","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"ScrollListener"),a.a.createElement("p",null,"\u6eda\u52a8\u76d1\u542c\u3002\u8be6\u60c5\u67e5\u770b\uff1a",a.a.createElement(o["Link"],{to:"https://github.com/CJY0208/tiny-scroll-listener"},"CJY0208/tiny-scroll-listener")),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"export interface DistanceEventType {\n distance: number | Function\n onGoingIn?: Function\n onGoningOut: Function\n dynamic?: boolean\n}\nexport interface ScrollListenerConfig {\n element: HTMLBaseElement\n scrollHandler?: Function\n getScrollDistance?: Function\n distanceToReachEnd?: number\n onEndReached?: Function\n distanceEvents?: DistanceEventType[]\n direction?: 'vertical' | 'horizontal'\n}\nexport default class ScrollListener {\n config: ScrollListenerConfig\n getScrollDistance: Function\n constructor(config: ScrollListenerConfig)\n destroy: () => any\n init(): this\n getEndReachedEvent(): {\n dynamic: boolean\n distance: (() => number) | (() => number)\n onGoingOut: () => void\n }\n dynamicEvents: any[]\n genDynamicEvents(): void\n currentStaticEvent: any\n staticEvents: any[]\n genStaticEvents(): void\n walkEvent: (event: any, scrollDistance: any) => boolean\n walkStaticEvent: ({\n direction,\n scrollDistance,\n }: {\n direction: any\n scrollDistance: any\n }) => void\n walkDynamicEvents: ({\n direction,\n scrollDistance,\n }: {\n direction: any\n scrollDistance: any\n }) => void\n}",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"config: ScrollListenerConfig\uff0c\u7b26\u5408\u8bed\u6cd5\u7684\u914d\u7f6e\u5bf9\u8c61\u3002")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"ScrollListener \u7684\u5b9e\u4f8b")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["ScrollListener-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},"ct0+":function(e,t,n){"use strict";var r=n("eyaU"),a=n("0JbB"),o=n("3Hes"),i=n("r+6h"),l=o("species");e.exports=function(e){var t=r(e),n=a.f;i&&t&&!t[l]&&n(t,l,{configurable:!0,get:function(){return this}})}},cuAp:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("eyaU"),i=n("sErw"),l=n("lkgX"),c=n("v3z7"),u=n("ZT9G"),s=n("R8Xy"),f=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:a},{map:function(e){var t=i(this),n=s(t),r=c(e,arguments.length>1?arguments[1]:void 0,3),a=new(u(t,o("Set"))),d=l(a.add);return f(n,(function(e){d.call(a,r(e,e,t))}),void 0,!1,!0),a}})},"d+E4":function(e,t,n){"use strict";var r=n("OOCw"),a=n("8d12"),o=n("86T+");r({target:"Promise",stat:!0},{try:function(e){var t=a.f(this),n=o(e);return(n.error?t.reject:t.resolve)(n.value),t.promise}})},d8EH:function(e,t,n){var r=n("sErw"),a=n("6jqD");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(o){}return function(n,o){return r(n),a(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},d9X2:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["isAndroid-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"isandroid"},a.a.createElement(o["AnchorLink"],{to:"#isandroid","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isAndroid"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u5b89\u5353\u73af\u5883\u3002"),a.a.createElement("h3",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isAndroid: () => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("p",null,"\u7a7a"),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u4e3a\u5b89\u5353\u73af\u5883"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u4e0d\u4e3a\u5b89\u5353\u73af\u5883")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isAndroid-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},dOaE:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["nextTick-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"nexttick"},a.a.createElement(o["AnchorLink"],{to:"#nexttick","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"nextTick"),a.a.createElement("p",null,"nextTick \u7684\u5ba2\u6237\u7aef\u5b9e\u73b0\uff0c\u7528\u4e8e\u5ef6\u8fdf\u6267\u884c\u4e00\u6bb5\u4ee3\u7801\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"nextTick: (func: (value: void) => void | PromiseLike) => Promise;",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"func \u5148\u6267\u884c\u7684\u51fd\u6570")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"Promise \u5bf9\u8c61")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["nextTick-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},dfcU:function(e,t,n){var r=n("D7Bi"),a=n("7zK7"),o=Object.prototype,i=o.hasOwnProperty;function l(e){if(!r(e))return a(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}e.exports=l},dh0R:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["intersection-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"intersection"},a.a.createElement(o["AnchorLink"],{to:"#intersection","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"intersection"),a.a.createElement("p",null,"\u4ea4\u96c6\u3002"),a.a.createElement("h3",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"intersection: (...args: any[]) => any[];",lang:"ts"}),a.a.createElement("h3",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u9700\u8981\u5224\u65ad\u4ea4\u96c6\u7684\u6570\u7ec4")),a.a.createElement("h3",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u4ea4\u96c6\u6570\u7ec4")),a.a.createElement("h3",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"intersection([1, 2], [2, 3]) // [2]",lang:"js"})),a.a.createElement(i["default"],t["intersection-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},dl1G:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a}n.d(t,"a",(function(){return r}))},dmWW:function(e,t,n){var r=n("6SQG"),a=n("CsJM").trim,o=n("Vg85"),i=r.parseFloat,l=1/i(o+"-0")!==-1/0;e.exports=l?function(e){var t=a(String(e)),n=i(t);return 0===n&&"-"==t.charAt(0)?-0:n}:i},dtr2:function(e,t,n){var r=n("ou61");function a(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}e.exports=a,e.exports.__esModule=!0,e.exports["default"]=e.exports},dwb6:function(e,t,n){var r=n("3Hes"),a=n("AnAv"),o=r("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(a.Array===e||i[o]===e)}},dz2h:function(e,t,n){"use strict";var r=n("WkS0").IteratorPrototype,a=n("QWtl"),o=n("ZVkV"),i=n("nBeg"),l=n("AnAv"),c=function(){return this};e.exports=function(e,t,n){var u=t+" Iterator";return e.prototype=a(r,{next:o(1,n)}),i(e,u,!1,!0),l[u]=c,e}},e38J:function(e,t,n){var r=n("OOCw"),a=n("eyaU"),o=n("lkgX"),i=n("sErw"),l=n("h+/6"),c=a("Reflect","apply"),u=Function.apply,s=!l((function(){c((function(){}))}));r({target:"Reflect",stat:!0,forced:s},{apply:function(e,t,n){return o(e),i(n),c?c(e,t,n):u.call(e,t,n)}})},e3zV:function(e,t,n){var r=n("I99e"),a=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function o(e){return!!a&&a in e}e.exports=o},eKcC:function(e,t){function n(){return[]}e.exports=n},eOjw:function(e,t,n){var r=n("OOCw"),a=Math.hypot,o=Math.abs,i=Math.sqrt,l=!!a&&a(1/0,NaN)!==1/0;r({target:"Math",stat:!0,forced:l},{hypot:function(e,t){var n,r,a=0,l=0,c=arguments.length,u=0;while(l0?(r=n/u,a+=r*r):a+=n;return u===1/0?1/0:u*i(a)}})},eW2S:function(e,t,n){var r=n("3Hes"),a=r("iterator"),o=!1;try{var i=0,l={next:function(){return{done:!!i++}},return:function(){o=!0}};l[a]=function(){return this},Array.from(l,(function(){throw 2}))}catch(c){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var r={};r[a]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(c){}return n}},ecma:function(e,t,n){var r=n("GXoa");r("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},ediS:function(e,t,n){var r=n("OOCw"),a=n("1Sp3"),o=n("sErw"),i=n("zesz"),l=a.has,c=a.get,u=a.toKey,s=function(e,t,n){var r=l(e,t,n);if(r)return c(e,t,n);var a=i(t);return null!==a?s(e,a,n):void 0};r({target:"Reflect",stat:!0},{getMetadata:function(e,t){var n=arguments.length<3?void 0:u(arguments[2]);return s(e,o(t),n)}})},elB0:function(e,t,n){var r=n("5yEw"),a=n("kk5s"),o=n("3Hes"),i=o("toStringTag"),l="Arguments"==a(function(){return arguments}()),c=function(e,t){try{return e[t]}catch(n){}};e.exports=r?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=c(t=Object(e),i))?n:l?a(t):"Object"==(r=a(t))&&"function"==typeof t.callee?"Arguments":r}},em2R:function(e,t,n){var r=n("OOCw"),a=n("1Sp3"),o=n("sErw"),i=a.toKey,l=a.getMap,c=a.store;r({target:"Reflect",stat:!0},{deleteMetadata:function(e,t){var n=arguments.length<3?void 0:i(arguments[2]),r=l(o(t),n,!1);if(void 0===r||!r["delete"](e))return!1;if(r.size)return!0;var a=c.get(t);return a["delete"](n),!!a.size||c["delete"](t)}})},eoSM:function(e,t){var n=Array.isArray;e.exports=n},erIx:function(e,t,n){var r=n("ANLo"),a=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?a(n+t,0):o(n,t)}},eyaU:function(e,t,n){var r=n("4uZn"),a=n("6SQG"),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(a[e]):r[e]&&r[e][t]||a[e]&&a[e][t]}},eyew:function(e,t,n){"use strict";var r=n("OOCw"),a=n("r+6h"),o=n("THzI"),i=n("OdMF"),l=n("JSMs"),c=n("zesz"),u=n("6ssM").f;a&&r({target:"Object",proto:!0,forced:o},{__lookupSetter__:function(e){var t,n=i(this),r=l(e,!0);do{if(t=u(n,r))return t.set}while(n=c(n))}})},f2HW:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.r(t),n.d(t,"default",(function(){return r}))},"f4/9":function(e,t,n){"use strict";e.exports=n("VnN1")},fVxY:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,"a",(function(){return r}))},fXIi:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["debounce-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"debounce"},a.a.createElement(o["AnchorLink"],{to:"#debounce","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"debounce"),a.a.createElement("p",null,"\u9632\u6296\u51fd\u6570\u3002\u89e6\u53d1\u9ad8\u9891\u4e8b\u4ef6\u540e n \u6beb\u79d2\u5185\u51fd\u6570\u53ea\u4f1a\u6267\u884c\u4e00\u6b21\uff0c\u5982\u679c n \u6beb\u79d2\u5185\u9ad8\u9891\u4e8b\u4ef6\u518d\u6b21\u88ab\u89e6\u53d1\uff0c\u5219\u91cd\u65b0\u8ba1\u7b97\u65f6\u95f4\u3002"),a.a.createElement("h3",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"declare type AnyFunction = (...args: any[]) => any\n/**\n * [\u9632\u6296]\n * @param {Function} func \u6267\u884c\u51fd\u6570\n * @param {Number} wait \u591a\u5c11\u6beb\u79d2\u540e\u8fd0\u884c\u4e00\u6b21\n */\ndeclare const debounce: (\n func: T,\n wait?: number\n) => (...args: any[]) => void | ReturnType",lang:"ts"}),a.a.createElement("h3",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"func \u6267\u884c\u51fd\u6570"),a.a.createElement("li",null,"wait \u591a\u4e45\u540e\u8fd0\u884c\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2(ms)")),a.a.createElement("h3",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u8fd4\u56de\u65b0\u7684 debounced\uff08\u9632\u6296\u52a8\uff09\u51fd\u6570\u3002")),a.a.createElement("h3",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["debounce-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},fkhx:function(e,t){function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},fuK4:function(e,t,n){},"fx/t":function(e,t,n){"use strict";(function(e){var n=()=>"undefined"!==typeof window?window:"undefined"!==typeof self?self:"undefined"!==typeof e?e:Function("return this")(),r=n(),a=()=>"object"===typeof e&&e&&e.Math===Math&&e.Array===Array?e:r,o=a();t["a"]=o}).call(this,n("bQdJ"))},g0aX:function(e,t,n){var r=n("kk5s");e.exports=Array.isArray||function(e){return"Array"==r(e)}},g0pg:function(e,t,n){"use strict";var r,a=n("78S/"),o=n("r+6h"),i=n("6SQG"),l=n("x+sk"),c=n("oEsY"),u=n("elB0"),s=n("MZA9"),f=n("uF/W"),d=n("0JbB").f,p=n("zesz"),m=n("d8EH"),h=n("3Hes"),v=n("KgcE"),g=i.Int8Array,y=g&&g.prototype,b=i.Uint8ClampedArray,E=b&&b.prototype,w=g&&p(g),x=y&&p(y),k=Object.prototype,S=k.isPrototypeOf,O=h("toStringTag"),A=v("TYPED_ARRAY_TAG"),j=a&&!!m&&"Opera"!==u(i.opera),C=!1,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},T=function(e){var t=u(e);return"DataView"===t||c(N,t)},P=function(e){return l(e)&&c(N,u(e))},_=function(e){if(P(e))return e;throw TypeError("Target is not a typed array")},D=function(e){if(m){if(S.call(w,e))return e}else for(var t in N)if(c(N,r)){var n=i[t];if(n&&(e===n||S.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},I=function(e,t,n){if(o){if(n)for(var r in N){var a=i[r];a&&c(a.prototype,e)&&delete a.prototype[e]}x[e]&&!n||f(x,e,n?t:j&&y[e]||t)}},F=function(e,t,n){var r,a;if(o){if(m){if(n)for(r in N)a=i[r],a&&c(a,e)&&delete a[e];if(w[e]&&!n)return;try{return f(w,e,n?t:j&&g[e]||t)}catch(l){}}for(r in N)a=i[r],!a||a[e]&&!n||f(a,e,t)}};for(r in N)i[r]||(j=!1);if((!j||"function"!=typeof w||w===Function.prototype)&&(w=function(){throw TypeError("Incorrect invocation")},j))for(r in N)i[r]&&m(i[r],w);if((!j||!x||x===k)&&(x=w.prototype,j))for(r in N)i[r]&&m(i[r].prototype,x);if(j&&p(E)!==x&&m(E,x),o&&!c(x,O))for(r in C=!0,d(x,O,{get:function(){return l(this)?this[A]:void 0}}),N)i[r]&&s(i[r],A,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:j,TYPED_ARRAY_TAG:C&&A,aTypedArray:_,aTypedArrayConstructor:D,exportTypedArrayMethod:I,exportTypedArrayStaticMethod:F,isView:T,isTypedArray:P,TypedArray:w,TypedArrayPrototype:x}},gArs:function(e,t,n){var r=n("Y3cF"),a=n("x+sk"),o=n("oEsY"),i=n("0JbB").f,l=n("KgcE"),c=n("Y4d4"),u=l("meta"),s=0,f=Object.isExtensible||function(){return!0},d=function(e){i(e,u,{value:{objectID:"O"+ ++s,weakData:{}}})},p=function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,u)){if(!f(e))return"F";if(!t)return"E";d(e)}return e[u].objectID},m=function(e,t){if(!o(e,u)){if(!f(e))return!0;if(!t)return!1;d(e)}return e[u].weakData},h=function(e){return c&&v.REQUIRED&&f(e)&&!o(e,u)&&d(e),e},v=e.exports={REQUIRED:!1,fastKey:p,getWeakData:m,onFreeze:h};r[u]=!0},gGOj:function(e,t,n){"use strict";var r=n("8Yqn")["default"],a=n("gGwC")["default"],o=n("SDiR")["default"],i=n("1uVM"),l=n("/sHi"),c=n("mDdX"),u=n("jrV3"),s=function(e){return null===e||void 0===e};function f(e){switch(e.arrayFormat){case"index":return function(t){return function(n,r){var a=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(o(n),null===r?[[m(t,e),"[",a,"]"].join("")]:[[m(t,e),"[",m(a,e),"]=",m(r,e)].join("")])}};case"bracket":return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(o(n),null===r?[[m(t,e),"[]"].join("")]:[[m(t,e),"[]=",m(r,e)].join("")])}};case"comma":case"separator":return function(t){return function(n,r){return null===r||void 0===r||0===r.length?n:0===n.length?[[m(t,e),"=",m(r,e)].join("")]:[[n,m(r,e)].join(e.arrayFormatSeparator)]}};default:return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(o(n),null===r?[m(t,e)]:[[m(t,e),"=",m(r,e)].join("")])}}}}function d(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return function(t,n,r){var a="string"===typeof n&&n.includes(e.arrayFormatSeparator),o="string"===typeof n&&!a&&h(n,e).includes(e.arrayFormatSeparator);n=o?h(n,e):n;var i=a||o?n.split(e.arrayFormatSeparator).map((function(t){return h(t,e)})):null===n?n:h(n,e);r[t]=i};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}function p(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function m(e,t){return t.encode?t.strict?i(e):encodeURIComponent(e):e}function h(e,t){return t.decode?l(e):e}function v(e){return Array.isArray(e)?e.sort():"object"===typeof e?v(Object.keys(e)).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e[t]})):e}function g(e){var t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function y(e){var t="",n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}function b(e){e=g(e);var t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function E(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function w(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),p(t.arrayFormatSeparator);var n=d(t),o=Object.create(null);if("string"!==typeof e)return o;if(e=e.trim().replace(/^[?#&]/,""),!e)return o;var i,l=a(e.split("&"));try{for(l.s();!(i=l.n()).done;){var u=i.value;if(""!==u){var s=c(t.decode?u.replace(/\+/g," "):u,"="),f=r(s,2),m=f[0],g=f[1];g=void 0===g?null:["comma","separator"].includes(t.arrayFormat)?g:h(g,t),n(h(m,t),g,o)}}}catch(A){l.e(A)}finally{l.f()}for(var y=0,b=Object.keys(o);y0})).join("&")},t.parseUrl=function(e,t){t=Object.assign({decode:!0},t);var n=c(e,"#"),a=r(n,2),o=a[0],i=a[1];return Object.assign({url:o.split("?")[0]||"",query:w(b(e),t)},t&&t.parseFragmentIdentifier&&i?{fragmentIdentifier:h(i,t)}:{})},t.stringifyUrl=function(e,n){n=Object.assign({encode:!0,strict:!0},n);var r=g(e.url).split("?")[0]||"",a=t.extract(e.url),o=t.parse(a,{sort:!1}),i=Object.assign(o,e.query),l=t.stringify(i,n);l&&(l="?".concat(l));var c=y(e.url);return e.fragmentIdentifier&&(c="#".concat(m(e.fragmentIdentifier,n))),"".concat(r).concat(l).concat(c)},t.pick=function(e,n,r){r=Object.assign({parseFragmentIdentifier:!0},r);var a=t.parseUrl(e,r),o=a.url,i=a.query,l=a.fragmentIdentifier;return t.stringifyUrl({url:o,query:u(i,n),fragmentIdentifier:l},r)},t.exclude=function(e,n,r){var a=Array.isArray(n)?function(e){return!n.includes(e)}:function(e,t){return!n(e,t)};return t.pick(e,a,r)}},gGwC:function(e,t,n){var r=n("dtr2");function a(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,i=e},f:function(){try{l||null==n["return"]||n["return"]()}finally{if(c)throw i}}}}e.exports=a,e.exports.__esModule=!0,e.exports["default"]=e.exports},gIQF:function(e,t,n){"use strict";var r=n("6SQG"),a=n("g0pg"),o=n("0pkz"),i=n("3Hes"),l=i("iterator"),c=r.Uint8Array,u=o.values,s=o.keys,f=o.entries,d=a.aTypedArray,p=a.exportTypedArrayMethod,m=c&&c.prototype[l],h=!!m&&("values"==m.name||void 0==m.name),v=function(){return u.call(d(this))};p("entries",(function(){return f.call(d(this))})),p("keys",(function(){return s.call(d(this))})),p("values",v,!h),p(l,v,!h)},gTJW:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("2fm6");r({target:"Set",proto:!0,real:!0,forced:a},{deleteAll:function(){return o.apply(this,arguments)}})},gmW1:function(e,t,n){"use strict";function r(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}n.d(t,"a",(function(){return r}))},"h+/6":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},h9Wi:function(e,t,n){var r=n("OOCw"),a=n("2hel"),o=Math.acosh,i=Math.log,l=Math.sqrt,c=Math.LN2,u=!o||710!=Math.floor(o(Number.MAX_VALUE))||o(1/0)!=1/0;r({target:"Math",stat:!0,forced:u},{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?i(e)+c:a(e-1+l(e-1)*l(e+1))}})},hWwf:function(e,t,n){"use strict";var r=n("x+sk"),a=n("0JbB"),o=n("zesz"),i=n("3Hes"),l=i("hasInstance"),c=Function.prototype;l in c||a.f(c,l,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;while(e=o(e))if(this.prototype===e)return!0;return!1}})},hpYE:function(e,t,n){"use strict";var r=n("684d"),a=n("ANLo"),o=n("upgS"),i=n("rUEg"),l=n("7/pz"),c=Math.min,u=[].lastIndexOf,s=!!u&&1/[1].lastIndexOf(1,-0)<0,f=i("lastIndexOf"),d=l("indexOf",{ACCESSORS:!0,1:0}),p=s||!f||!d;e.exports=p?function(e){if(s)return u.apply(this,arguments)||0;var t=r(this),n=o(t.length),i=n-1;for(arguments.length>1&&(i=c(i,a(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in t&&t[i]===e)return i||0;return-1}:u},i0LQ:function(e,t,n){"use strict";n.r(t),n.d(t,"ApplyPluginsType",(function(){return W})),n.d(t,"Plugin",(function(){return J})),n.d(t,"dynamic",(function(){return M})),n.d(t,"isBrowser",(function(){return B}));var r=n("DBVu"),a=n("ptaF");n.d(t,"createBrowserHistory",(function(){return a["a"]})),n.d(t,"createHashHistory",(function(){return a["b"]})),n.d(t,"createMemoryHistory",(function(){return a["d"]}));var o=n("Bm2L");n.d(t,"__RouterContext",(function(){return o["h"]}));var i=n("QwZf");n.d(t,"Link",(function(){return i["a"]})),n.d(t,"MemoryRouter",(function(){return o["a"]})),n.d(t,"NavLink",(function(){return i["b"]})),n.d(t,"Prompt",(function(){return o["b"]})),n.d(t,"Redirect",(function(){return o["c"]})),n.d(t,"Route",(function(){return o["d"]})),n.d(t,"Router",(function(){return o["e"]})),n.d(t,"StaticRouter",(function(){return o["f"]})),n.d(t,"Switch",(function(){return o["g"]})),n.d(t,"matchPath",(function(){return o["i"]})),n.d(t,"useHistory",(function(){return o["j"]})),n.d(t,"useLocation",(function(){return o["k"]})),n.d(t,"useParams",(function(){return o["l"]})),n.d(t,"useRouteMatch",(function(){return o["m"]})),n.d(t,"withRouter",(function(){return o["n"]}));var l=n("nNWW"),c=n("rVbH");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n["return"]||n["return"]()}finally{if(l)throw o}}}}var O=Object(l["createContext"])(null),A=[],j=[],C=!1;function N(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e}))["catch"]((function(e){throw n.loading=!1,n.error=e,e})),n}function T(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var a=N(e[r]);a.loading?t.loading=!0:(t.loaded[r]=a.loaded,t.error=a.error),n.push(a.promise),a.promise.then((function(e){t.loaded[r]=e}))["catch"]((function(e){t.error=e}))}))}catch(r){t.error=r}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e}))["catch"]((function(e){throw t.loading=!1,e})),t}function P(e){return e&&e.__esModule?e["default"]:e}function _(e,t){return Object(l["createElement"])(P(e),t)}function D(e,t){var n=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:_,webpack:null,modules:null},t),r=null;function a(){if(!r){var t=new I(e,n);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if("undefined"===typeof window&&A.push(a),!C&&"undefined"!==typeof window&&"function"===typeof n.webpack){var o=n.webpack();j.push((function(e){var t,n=S(o);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(-1!==e.indexOf(r))return a()}}catch(i){n.e(i)}finally{n.f()}}))}var i=function(e,t){a();var o=Object(l["useContext"])(O),i=Object(c["useSubscription"])(r);return Object(l["useImperativeHandle"])(t,(function(){return{retry:r.retry}})),o&&Array.isArray(n.modules)&&n.modules.forEach((function(e){o(e)})),i.loading||i.error?Object(l["createElement"])(n.loading,{isLoading:i.loading,pastDelay:i.pastDelay,timedOut:i.timedOut,error:i.error,retry:r.retry}):i.loaded?n.render(i.loaded,e):null},u=Object(l["forwardRef"])(i);return u.preload=function(){return a()},u.displayName="LoadableComponent",u}var I=function(){function e(t,n){m(this,e),this._loadFn=t,this._opts=n,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return v(e,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var t=this._res,n=this._opts;t.loading&&("number"===typeof n.delay&&(0===n.delay?this._state.pastDelay=!0:this._delay=setTimeout((function(){e._update({pastDelay:!0})}),n.delay)),"number"===typeof n.timeout&&(this._timeout=setTimeout((function(){e._update({timedOut:!0})}),n.timeout))),this._res.promise.then((function(){e._update(),e._clearTimeouts()}))["catch"]((function(t){e._update(),e._clearTimeouts()})),this._update({})}},{key:"_update",value:function(e){this._state=s(s({},this._state),e),this._callbacks.forEach((function(e){return e()}))}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return s(s({},this._state),{},{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading})}},{key:"subscribe",value:function(e){var t=this;return this._callbacks.add(e),function(){t._callbacks["delete"](e)}}}]),e}();function F(e){return D(N,e)}function L(e){if("function"!==typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return D(T,e)}function R(e,t){var n=[];while(e.length){var r=e.pop();n.push(r(t))}return Promise.all(n).then((function(){if(e.length)return R(e,t)}))}function M(e){var t=F,n={loading:function(e){e.error,e.isLoading;return Object(l["createElement"])("p",null,"loading...")}};if("function"===typeof e)n.loader=e;else{if("object"!==f(e))throw new Error("Unexpect arguments ".concat(e));n=s(s({},n),e)}return t(n)}function z(e,t){if(!e)throw new Error(t)}F.Map=L,F.preloadAll=function(){return new Promise((function(e,t){R(A).then(e,t)}))},F.preloadReady=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(t){var n=function(){return C=!0,t()};R(j,e).then(n,n)}))},"undefined"!==typeof window&&(window.__NEXT_PRELOADREADY=F.preloadReady);var W,B=function(){return"undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement};function U(e){var t=e.fns,n=e.args;if(1===t.length)return t[0];var r=t.pop();return t.reduce((function(e,t){return function(){return t(e,n)}}),r)}function G(e){return!!e&&"object"===f(e)&&"function"===typeof e.then}(function(e){e["compose"]="compose",e["modify"]="modify",e["event"]="event"})(W||(W={}));var J=function(){function e(t){m(this,e),this.validKeys=void 0,this.hooks={},this.validKeys=(null===t||void 0===t?void 0:t.validKeys)||[]}return v(e,[{key:"register",value:function(e){var t=this;z(!!e.apply,"register failed, plugin.apply must supplied"),z(!!e.path,"register failed, plugin.path must supplied"),Object.keys(e.apply).forEach((function(n){z(t.validKeys.indexOf(n)>-1,"register failed, invalid key ".concat(n," from plugin ").concat(e.path,".")),t.hooks[n]||(t.hooks[n]=[]),t.hooks[n]=t.hooks[n].concat(e.apply[n])}))}},{key:"getHooks",value:function(e){var t=e.split("."),n=y(t),r=n[0],a=n.slice(1),o=this.hooks[r]||[];return a.length&&(o=o.map((function(e){try{var t,n=e,r=S(a);try{for(r.s();!(t=r.n()).done;){var o=t.value;n=n[o]}}catch(i){r.e(i)}finally{r.f()}return n}catch(l){return null}})).filter(Boolean)),o}},{key:"applyPlugins",value:function(e){var t=e.key,n=e.type,a=e.initialValue,o=e.args,i=e.async,l=this.getHooks(t)||[];switch(o&&z("object"===f(o),"applyPlugins failed, args must be plain object."),n){case W.modify:return i?l.reduce(function(){var e=p(Object(r["default"])().mark((function e(n,a){var i;return Object(r["default"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(z("function"===typeof a||"object"===f(a)||G(a),"applyPlugins failed, all hooks for key ".concat(t," must be function, plain object or Promise.")),!G(n)){e.next=5;break}return e.next=4,n;case 4:n=e.sent;case 5:if("function"!==typeof a){e.next=16;break}if(i=a(n,o),!G(i)){e.next=13;break}return e.next=10,i;case 10:return e.abrupt("return",e.sent);case 13:return e.abrupt("return",i);case 14:e.next=21;break;case 16:if(!G(a)){e.next=20;break}return e.next=19,a;case 19:a=e.sent;case 20:return e.abrupt("return",s(s({},n),a));case 21:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),G(a)?a:Promise.resolve(a)):l.reduce((function(e,n){return z("function"===typeof n||"object"===f(n),"applyPlugins failed, all hooks for key ".concat(t," must be function or plain object.")),"function"===typeof n?n(e,o):s(s({},e),n)}),a);case W.event:return l.forEach((function(e){z("function"===typeof e,"applyPlugins failed, all hooks for key ".concat(t," must be function.")),e(o)}));case W.compose:return function(){return U({fns:l.concat(a),args:o})()}}}}]),e}()},i3On:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("2fm6");r({target:"WeakSet",proto:!0,real:!0,forced:a},{deleteAll:function(){return o.apply(this,arguments)}})},iBNQ:function(e,t,n){var r=n("OOCw");r({target:"Math",stat:!0},{RAD_PER_DEG:180/Math.PI})},iIWa:function(e,t,n){var r=n("OOCw"),a=n("HRbj");r({target:"WeakSet",stat:!0},{from:a})},iJ36:function(e,t,n){var r=n("GXoa");r("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},iLo9:function(e,t,n){"use strict";var r=n("r+6h"),a=n("ZGY3"),o=n("OdMF"),i=n("upgS"),l=n("0JbB").f;r&&!("lastIndex"in[])&&(l(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=o(this),t=i(e.length);return 0==t?0:t-1}}),a("lastIndex"))},"iS+J":function(e,t,n){var r=n("OOCw"),a=n("N+aw").values;r({target:"Object",stat:!0},{values:function(e){return a(e)}})},ig3D:function(e,t,n){"use strict";var r=n("OOCw"),a=n("6ssM").f,o=n("upgS"),i=n("SD1J"),l=n("z43i"),c=n("TxDi"),u=n("qyeh"),s="".startsWith,f=Math.min,d=c("startsWith"),p=!u&&!d&&!!function(){var e=a(String.prototype,"startsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!p&&!d},{startsWith:function(e){var t=String(l(this));i(e);var n=o(f(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return s?s.call(t,r,n):t.slice(n,n+r.length)===r}})},"io+V":function(e,t,n){"use strict";var r=n("OOCw"),a=n("r+6h"),o=n("zesz"),i=n("d8EH"),l=n("QWtl"),c=n("0JbB"),u=n("ZVkV"),s=n("uZx/"),f=n("MZA9"),d=n("uJNS"),p=d.set,m=d.getterFor("AggregateError"),h=function(e,t){var n=this;if(!(n instanceof h))return new h(e,t);i&&(n=i(new Error(t),o(n)));var r=[];return s(e,r.push,r),a?p(n,{errors:r,type:"AggregateError"}):n.errors=r,void 0!==t&&f(n,"message",String(t)),n};h.prototype=l(Error.prototype,{constructor:u(5,h),message:u(5,""),name:u(5,"AggregateError")}),a&&c.f(h.prototype,"errors",{get:function(){return m(this).errors},configurable:!0}),r({global:!0},{AggregateError:h})},iojd:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return l}));var r=n("Ef+f");function a(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done);i=!0)if(o.push(r.value),t&&o.length===t)break}catch(c){l=!0,a=c}finally{try{i||null==n["return"]||n["return"]()}finally{if(l)throw a}}return o}}var o=n("NDrN"),i=n("jl5J");function l(e,t){return Object(r["a"])(e)||a(e,t)||Object(o["a"])(e,t)||Object(i["a"])()}},itOZ:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["isDate-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"isdate"},a.a.createElement(o["AnchorLink"],{to:"#isdate","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isDate"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a Date \u7c7b\u578b\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isDate: (value: any) => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"(value: any) => boolean;")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u662f Date \u7c7b\u578b"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u4e0d\u662f Date \u7c7b\u578b")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isDate-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},iwOu:function(e,t,n){"use strict";var r=n("OOCw"),a=n("jssG").left,o=n("rUEg"),i=n("7/pz"),l=o("reduce"),c=i("reduce",{1:0});r({target:"Array",proto:!0,forced:!l||!c},{reduce:function(e){return a(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"j/ks":function(e,t,n){"use strict";var r=n("g0aX"),a=n("upgS"),o=n("v3z7"),i=function(e,t,n,l,c,u,s,f){var d,p=c,m=0,h=!!s&&o(s,f,3);while(m0&&r(d))p=i(e,t,d,a(d.length),p,u-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[p]=d}p++}m++}return p};e.exports=i},j2YP:function(e,t,n){"use strict";var r=n("OOCw"),a=n("j/ks"),o=n("OdMF"),i=n("upgS"),l=n("ANLo"),c=n("63eO");r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=o(this),n=i(t.length),r=c(t,0);return r.length=a(r,t,t,n,0,void 0===e?1:l(e)),r}})},jBBt:function(e,t){function n(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done);i=!0)if(o.push(r.value),t&&o.length===t)break}catch(c){l=!0,a=c}finally{try{i||null==n["return"]||n["return"]()}finally{if(l)throw a}}return o}}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},jETf:function(e,t,n){"use strict";var r=n("TxBV"),a=n("gArs").getWeakData,o=n("sErw"),i=n("x+sk"),l=n("CZSf"),c=n("uZx/"),u=n("M+Sl"),s=n("oEsY"),f=n("uJNS"),d=f.set,p=f.getterFor,m=u.find,h=u.findIndex,v=0,g=function(e){return e.frozen||(e.frozen=new y)},y=function(){this.entries=[]},b=function(e,t){return m(e.entries,(function(e){return e[0]===t}))};y.prototype={get:function(e){var t=b(this,e);if(t)return t[1]},has:function(e){return!!b(this,e)},set:function(e,t){var n=b(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=h(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,u){var f=e((function(e,r){l(e,f,t),d(e,{type:t,id:v++,frozen:void 0}),void 0!=r&&c(r,e[u],e,n)})),m=p(t),h=function(e,t,n){var r=m(e),i=a(o(t),!0);return!0===i?g(r).set(t,n):i[r.id]=n,e};return r(f.prototype,{delete:function(e){var t=m(this);if(!i(e))return!1;var n=a(e);return!0===n?g(t)["delete"](e):n&&s(n,t.id)&&delete n[t.id]},has:function(e){var t=m(this);if(!i(e))return!1;var n=a(e);return!0===n?g(t).has(e):n&&s(n,t.id)}}),r(f.prototype,n?{get:function(e){var t=m(this);if(i(e)){var n=a(e);return!0===n?g(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return h(this,e,t)}}:{add:function(e){return h(this,e,!0)}}),f}}},jHOP:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("sErw"),i=n("v3z7"),l=n("QHn5"),c=n("uZx/");r({target:"Map",proto:!0,real:!0,forced:a},{findKey:function(e){var t=o(this),n=l(t),r=i(e,arguments.length>1?arguments[1]:void 0,3);return c(n,(function(e,n){if(r(n,e,t))return c.stop(e)}),void 0,!0,!0).result}})},jMas:function(e,t,n){"use strict";var r=n("973d"),a=n("nNWW"),o=n("NuOa"),i=(n("8rlb"),n("V6CC")),l=n("8DO7"),c=n("sgiM"),u=n("QQXB"),s=new Map;function f(e){e.forEach((function(e){var t,n=e.target;null===(t=s.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}var d=new u["a"](f);function p(e,t){s.has(e)||(s.set(e,new Set),d.observe(e)),s.get(e).add(t)}function m(e,t){s.has(e)&&(s.get(e)["delete"](t),s.get(e).size||(d.unobserve(e),s["delete"](e)))}var h=n("p4sU"),v=n("asw4"),g=n("sLj8"),y=n("qAhB"),b=function(e){Object(g["a"])(n,e);var t=Object(y["a"])(n);function n(){return Object(h["a"])(this,n),t.apply(this,arguments)}return Object(v["a"])(n,[{key:"render",value:function(){return this.props.children}}]),n}(a["Component"]),E=a["createContext"](null);function w(e){var t=e.children,n=e.onBatchResize,r=a["useRef"](0),o=a["useRef"]([]),i=a["useContext"](E),l=a["useCallback"]((function(e,t,a){r.current+=1;var l=r.current;o.current.push({size:e,element:t,data:a}),Promise.resolve().then((function(){l===r.current&&(null===n||void 0===n||n(o.current),o.current=[])})),null===i||void 0===i||i(e,t,a)}),[n,i]);return a["createElement"](E.Provider,{value:l},t)}function x(e){var t=e.children,n=e.disabled,r=a["useRef"](null),o=a["useRef"](null),u=a["useContext"](E),s="function"===typeof t,f=s?t(r):t,d=a["useRef"]({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),h=!s&&a["isValidElement"](f)&&Object(l["c"])(f),v=h?f.ref:null,g=a["useMemo"]((function(){return Object(l["a"])(v,r)}),[v,r]),y=a["useRef"](e);y.current=e;var w=a["useCallback"]((function(e){var t=y.current,n=t.onResize,r=t.data,a=e.getBoundingClientRect(),o=a.width,l=a.height,c=e.offsetWidth,s=e.offsetHeight,f=Math.floor(o),p=Math.floor(l);if(d.current.width!==f||d.current.height!==p||d.current.offsetWidth!==c||d.current.offsetHeight!==s){var m={width:f,height:p,offsetWidth:c,offsetHeight:s};d.current=m;var h=c===Math.round(o)?o:c,v=s===Math.round(l)?l:s,g=Object(i["a"])(Object(i["a"])({},m),{},{offsetWidth:h,offsetHeight:v});null===u||void 0===u||u(g,e,r),n&&Promise.resolve().then((function(){n(g,e)}))}}),[]);return a["useEffect"]((function(){var e=Object(c["a"])(r.current)||Object(c["a"])(o.current);return e&&!n&&p(e,w),function(){return m(e,w)}}),[r.current,n]),a["createElement"](b,{ref:o},h?a["cloneElement"](f,{ref:g}):f)}var k="rc-observer-key";function S(e){var t=e.children,n="function"===typeof t?[t]:Object(o["a"])(t);return n.map((function(t,n){var o=(null===t||void 0===t?void 0:t.key)||"".concat(k,"-").concat(n);return a["createElement"](x,Object(r["a"])({},e,{key:o}),t)}))}S.Collection=w;t["a"]=S},jUhn:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=function(e){return+setTimeout(e,16)},a=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},a=function(e){return window.cancelAnimationFrame(e)});var o=0,i=new Map;function l(e){i["delete"](e)}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;o+=1;var n=o;function a(t){if(0===t)l(n),e();else{var o=r((function(){a(t-1)}));i.set(n,o)}}return a(t),n}c.cancel=function(e){var t=i.get(e);return l(t),a(t)}},jYqw:function(e,t,n){"use strict";var r=n("OOCw"),a=n("A2zS");r({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},jax1:function(e,t,n){"use strict";var r=n("ANLo"),a=n("z43i");e.exports="".repeat||function(e){var t=String(a(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},"jht+":function(e,t,n){var r=n("OOCw");r({target:"Math",stat:!0},{DEG_PER_RAD:Math.PI/180})},jl5J:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},jrV3:function(e,t,n){"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),a=Array.isArray(t),o=0;o=0:f>d;d+=p)d in s&&(c=n(c,s[d],d,u));return c}};e.exports={left:l(!1),right:l(!0)}},jtnu:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("dl1G");function a(e,t){if(null==e)return{};var n,a,o=Object(r["a"])(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},jukf:function(e,t,n){var r=n("6SQG"),a=n("MZA9");e.exports=function(e,t){try{a(r,e,t)}catch(n){r[e]=t}return t}},"k/Nc":function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var r=n("nNWW"),a=n("gmW1"),o=Object(a["a"])()?r["useLayoutEffect"]:r["useEffect"];t["a"]=o;var i=function(e,t){var n=r["useRef"](!0);o((function(){if(!n.current)return e()}),t),o((function(){return n.current=!1,function(){n.current=!0}}),[])}},kMjI:function(e,t,n){var r=n("5yEw"),a=n("uF/W"),o=n("QiOl");r||a(Object.prototype,"toString",o,{unsafe:!0})},kNKa:function(e,t,n){"use strict";var r=n("8Yqn")["default"];function a(){var e=n("nNWW");return a=function(){return e},e}function o(){var e=n("2mBG");return o=function(){return e},e}function i(e,t){return f(e)||s(e,t)||c(e,t)||l()}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){if(e){if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n,\n document.getElementById('root'),\n);"):"react-dom/client"===e?"/**\n* This is an auto-generated demo by dumi\n* if you think it is not working as expected,\n* please report the issue at\n* https://github.com/umijs/dumi/issues\n**/\nimport React from 'react';\nimport { createRoot } from \"react-dom/client\";\n".concat(t,'\nimport App from "./App";\n\nconst rootElement = document.getElementById("root");\nconst root = createRoot(rootElement);\n\nroot.render();'):void 0};function m(e){var t=document.createElement("span");t.innerHTML=e;var n=t.textContent;return t.remove(),n}function h(e){var t,n=Boolean(e.sources._.tsx),a=n?".tsx":".jsx",i={},l={},c=Object.values(e.dependencies).filter((function(e){return e.css})),u="App".concat(a),s="index".concat(a);return Object.entries(e.dependencies).forEach((function(e){var t=r(e,2),n=t[0],a=t[1].version;l[n]=a})),l["react-dom"]||(l["react-dom"]=l.react||"latest"),i["sandbox.config.json"]={content:JSON.stringify({template:n?"create-react-app-typescript":"create-react-app"},null,2),isBinary:!1},i["package.json"]={content:JSON.stringify({name:e.title,description:m(e.description||"An auto-generated demo by dumi"),main:s,dependencies:l,devDependencies:n?{typescript:"^3"}:{}},null,2),isBinary:!1},i["index.html"]={content:'
',isBinary:!1},i[s]={content:p((null===l||void 0===l||null===(t=l["react-dom"])||void 0===t?void 0:t.startsWith("18."))||"latest"===l.react?"react-dom/client":"react-dom",c.map((function(e){var t=e.css;return"import '".concat(t,"';")})).join("\n")),isBinary:!1},Object.entries(e.sources).forEach((function(e){var t=r(e,2),n=t[0],a=t[1],o=a.tsx,l=a.jsx,c=a.content;i["_"===n?u:n]={content:o||l||c,isBinary:!1}})),(0,o().getParameters)({files:i})}var v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d,n=(0,a().useState)(),r=i(n,2),o=r[0],l=r[1];return(0,a().useEffect)((function(){if(e){var n=document.createElement("form"),r=document.createElement("input"),a=h(e);return n.method="POST",n.target="_blank",n.style.display="none",n.action=t,n.appendChild(r),n.setAttribute("data-demo",e.title||""),r.name="parameters",r.value=a,document.body.appendChild(n),l((function(){return function(){return n.submit()}})),function(){return n.remove()}}}),[e]),o};t["default"]=v},kXTd:function(e,t,n){var r=n("6SQG"),a=r.isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&a(e)}},"kZ+D":function(e,t,n){var r=n("OOCw"),a=n("SuUP"),o=n("eyaU");r({global:!0},{compositeSymbol:function(){return 1===arguments.length&&"string"===typeof arguments[0]?o("Symbol")["for"](arguments[0]):a.apply(null,arguments).get("symbol",o("Symbol"))}})},kccB:function(e,t,n){var r=n("OOCw"),a=n("dmWW");r({target:"Number",stat:!0,forced:Number.parseFloat!=a},{parseFloat:a})},kj2u:function(e,t,n){"use strict";var r=n("h+/6");function a(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=a("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=a("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},kk5s:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},klMd:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=t.LinkWrapper=void 0;var r=i(n("nNWW")),a=n("75i3"),o=["to"];function i(e){return e&&e.__esModule?e:{default:e}}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function u(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a}var s=function(e){return function(t){var n=t.to,a=c(t,o),i=/^(\w+:)?\/\/|^(mailto|tel):/.test(n)||!n,u=r["default"].isValidElement(a.children);return r["default"].createElement(e,l({to:n||"",component:i?function(){return r["default"].createElement("a",{target:"_blank",rel:"noopener noreferrer",href:n},a.children,n&&!u&&r["default"].createElement("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",x:"0px",y:"0px",viewBox:"0 0 100 100",width:"15",height:"15",className:"__dumi-default-external-link-icon"},r["default"].createElement("path",{fill:"currentColor",d:"M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"}),r["default"].createElement("polygon",{fill:"currentColor",points:"45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"})))}:void 0},a,i?{}:{onClick:function(){var e;window.scrollTo({top:0});for(var t=arguments.length,n=new Array(t),r=0;r{var t=e.demos,n=t["classnames-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"classnames"},a.a.createElement(o["AnchorLink"],{to:"#classnames","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"classnames"),a.a.createElement("p",null,"\u7528\u4e8e\u6709\u6761\u4ef6\u5730\u5c06 ",a.a.createElement("code",null,"className")," \u8fde\u63a5\u5728\u4e00\u8d77\u3002"),a.a.createElement("p",null,"\u53ef\u53c2\u8003 ",a.a.createElement(o["Link"],{to:"https://www.npmjs.com/package/classnames"},"https://www.npmjs.com/package/classnames")),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"classnames(word: any): string;",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u8981\u62fc\u5408\u7684\u7c7b\u540d")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u62fc\u63a5\u597d\u6240\u6709\u7b26\u5408\u6761\u4ef6\u7684\u7c7b\u540d\u7684\u5b57\u7b26\u4e32")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["classnames-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},l3mM:function(e,t){function n(e,t){return e.has(t)}e.exports=n},l4Xg:function(e,t,n){"use strict";var r=n("nNWW"),a=n.n(r),o=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=f.reach)break;var S=x.value;if(t.length>e.length)return;if(!(S instanceof a)){var O,A=1;if(y){if(O=o(w,k,e,g),!O||O.index>=e.length)break;var j=O.index,C=O.index+O[0].length,N=k;N+=x.value.length;while(j>=N)x=x.next,N+=x.value.length;if(N-=x.value.length,k=N,x.value instanceof a)continue;for(var T=x;T!==t.tail&&(Nf.reach&&(f.reach=I);var F=x.prev;_&&(F=c(t,F,_),k+=_.length),u(t,F,A);var L=new a(d,v?r.tokenize(P,v):P,b,P);if(x=c(t,F,L),D&&c(t,x,D),A>1){var R={cause:d+","+m,reach:I};i(e,t,n,x.prev,k,R),f&&R.reach>f.reach&&(f.reach=R.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function u(e,t,n){for(var r=t.next,a=0;a"+o.content+""},r}(),i=o;o["default"]=o,i.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},i.languages.markup["tag"].inside["attr-value"].inside["entity"]=i.languages.markup["entity"],i.languages.markup["doctype"].inside["internal-subset"].inside=i.languages.markup,i.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes["title"]=e.content.replace(/&/,"&"))})),Object.defineProperty(i.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:i.languages[t]},n["cdata"]=/^$/i;var r={"included-cdata":{pattern://i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:i.languages[t]};var a={};a[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},i.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(i.languages.markup.tag,"addAttribute",{value:function(e,t){i.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:i.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),i.languages.html=i.languages.markup,i.languages.mathml=i.languages.markup,i.languages.svg=i.languages.markup,i.languages.xml=i.languages.extend("markup",{}),i.languages.ssml=i.languages.xml,i.languages.atom=i.languages.xml,i.languages.rss=i.languages.xml,function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,i=0;i]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},i.languages.c=i.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),i.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),i.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},i.languages.c["string"]],char:i.languages.c["char"],comment:i.languages.c["comment"],"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:i.languages.c}}}}),i.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete i.languages.c["boolean"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(i),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css["atrule"].inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(i),function(e){var t,n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css["atrule"].inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var r={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:a})}(i),i.languages.javascript=i.languages.extend("clike",{"class-name":[i.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),i.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,i.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:i.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:i.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:i.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:i.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:i.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),i.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:i.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),i.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),i.languages.markup&&(i.languages.markup.tag.addInlined("script","javascript"),i.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),i.languages.js=i.languages.javascript,function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(i),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,(function(){return r})).replace(/<>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,(function(){return r})).replace(/<>/g,(function(){return"(?:"+a+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(o),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(i),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(//g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+o+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+o+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){function t(e){if(e&&"string"!==typeof e)for(var n=0,r=e.length;n",quot:'"'},c=String.fromCodePoint||String.fromCharCode;function u(e){var t=e.replace(i,"");return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if(t=t.toLowerCase(),"#"===t[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),c(n);var r=l[t];return r||e})),t}e.languages.md=e.languages.markdown}(i),i.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:i.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},i.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!==typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n0)){var l=d(/^\{$/,/^\}$/);if(-1===l)continue;for(var c=n;c=0&&p(u,"variable-input")}}}}function s(e){return t[n+e]}function f(e,t){t=t||0;for(var n=0;n?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside["interpolation"],a=r.inside["interpolation-punctuation"],o=r.pattern.source;function i(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function l(e,t){return"___"+t.toUpperCase()+"_"+e+"___"}function c(t,n,r){var a={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",a),a.tokens=e.tokenize(a.code,a.grammar),e.hooks.run("after-tokenize",a),a.tokens}function u(t){var n={};n["interpolation-punctuation"]=a;var o=e.tokenize(t,n);if(3===o.length){var i=[1,1];i.push.apply(i,c(o[1],e.languages.javascript,"javascript")),o.splice.apply(o,i)}return new e.Token("interpolation",o,r.alias,t)}function s(t,n,r){var a=e.tokenize(t,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),i=0,s={},f=a.map((function(e){if("string"===typeof e)return e;var n,a=e.content;while(-1!==t.indexOf(n=l(i++,r)));return s[n]=a,n})).join(""),d=c(f,n,r),p=Object.keys(s);function m(e){for(var t=0;t=p.length)return;var n=e[t];if("string"===typeof n||"string"===typeof n.content){var r=p[i],a="string"===typeof n?n:n.content,o=a.indexOf(r);if(-1!==o){++i;var l=a.substring(0,o),c=u(s[r]),f=a.substring(o+r.length),d=[];if(l&&d.push(l),d.push(c),f){var h=[f];m(h),d.push.apply(d,h)}"string"===typeof n?(e.splice.apply(e,[t,1].concat(d)),t+=d.length-1):n.content=d}}else{var v=n.content;Array.isArray(v)?m(v):m([v])}}}return i=0,m(d),new e.Token(r,d,"language-"+r,t)}e.languages.javascript["template-string"]=[i("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),i("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),i("svg",/\bsvg/.source),i("markdown",/\b(?:markdown|md)/.source),i("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),i("sql",/\bsql/.source),t].filter(Boolean);var f={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function d(e){return"string"===typeof e?e:Array.isArray(e)?e.map(d).join(""):d(e.content)}e.hooks.add("after-tokenize",(function(t){function n(t){for(var r=0,a=t.length;r]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript["parameter"],delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(i),function(e){function t(e,t){return RegExp(e.replace(//g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function"].source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript["keyword"].unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r*\.{3}(?:[^{}]|)*\})/.source;function o(e,t){return e=e.replace(//g,(function(){return n})).replace(//g,(function(){return r})).replace(//g,(function(){return a})),RegExp(e,t)}a=o(a).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),e.languages.jsx.tag.inside["tag"].pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside["tag"].inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside["comment"]=t["comment"],e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(//.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var i=function e(t){return t?"string"===typeof t?t:"string"===typeof t.content?t.content:t.content.map(e).join(""):""},l=function t(n){for(var r=[],a=0;a0&&r[r.length-1].tagName===i(o.content[0].content[1])&&r.pop():"/>"===o.content[o.content.length-1].content||r.push({tagName:i(o.content[0].content[1]),openedBraces:0}):r.length>0&&"punctuation"===o.type&&"{"===o.content?r[r.length-1].openedBraces++:r.length>0&&r[r.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?r[r.length-1].openedBraces--:l=!0),(l||"string"===typeof o)&&r.length>0&&0===r[r.length-1].openedBraces){var c=i(o);a0&&("string"===typeof n[a-1]||"plain-text"===n[a-1].type)&&(c=i(n[a-1])+c,n.splice(a-1,1),a--),n[a]=new e.Token("plain-text",c,null,c)}o.content&&"string"!==typeof o.content&&t(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||l(e.tokens)}))}(i),function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],a=[];/^\w+$/.test(n)||a.push(/\w+/.exec(n)[0]),"diff"===n&&a.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:a,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(i),i.languages.git={comment:/^#.*/m,deleted:/^[-\u2013].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m},i.languages.go=i.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),i.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete i.languages.go["class-name"],function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,a,o){if(n.language===r){var i=n.tokenStack=[];n.code=n.code.replace(a,(function(e){if("function"===typeof o&&!o(e))return e;var a,l=i.length;while(-1!==n.code.indexOf(a=t(r,l)))++l;return i[l]=e,a})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var a=0,o=Object.keys(n.tokenStack);i(n.tokens)}function i(l){for(var c=0;c=o.length)break;var u=l[c];if("string"===typeof u||u.content&&"string"===typeof u.content){var s=o[a],f=n.tokenStack[s],d="string"===typeof u?u:u.content,p=t(r,s),m=d.indexOf(p);if(m>-1){++a;var h=d.substring(0,m),v=new e.Token(r,e.tokenize(f,n.grammar),"language-"+r,f),g=d.substring(m+p.length),y=[];h&&y.push.apply(y,i([h])),y.push(v),g&&y.push.apply(y,i([g])),"string"===typeof u?l.splice.apply(l,[c,1].concat(y)):u.content=y}}else u.content&&i(u.content)}return l}}}})}(i),function(e){e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",(function(t){var n=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;e.languages["markup-templating"].buildPlaceholders(t,"handlebars",n)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"handlebars")})),e.languages.hbs=e.languages.handlebars}(i),i.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},i.languages.webmanifest=i.languages.json,i.languages.less=i.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),i.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),i.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/},i.languages.objectivec=i.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete i.languages.objectivec["class-name"],i.languages.objc=i.languages.objectivec,i.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/},i.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},i.languages.python["string-interpolation"].inside["interpolation"].inside.rest=i.languages.python,i.languages.py=i.languages.python,i.languages.reason=i.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),i.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete i.languages.reason["function"],function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(i),i.languages.scss=i.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),i.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),i.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),i.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),i.languages.scss["atrule"].inside.rest=i.languages.scss,function(e){var t={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},r={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:n,punctuation:/[{}()\[\];:,]/};r["interpolation"]={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:r}},r["func"]={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:r}},e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:r}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:r}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:r}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:r.interpolation}},rest:r}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:r.interpolation,comment:r.comment,punctuation:/[{},]/}},func:r.func,string:r.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:r.interpolation,punctuation:/[{}()\[\];:.]/}}(i),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx["parameter"],delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(i),i.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/};var l=i,c={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},u=c,s={Prism:l,theme:u};function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(){return d=Object.assign||function(e){for(var t=1;t0&&e[n-1]===t?e:e.concat(t)},v=function(e){var t=[[]],n=[e],r=[0],a=[e.length],o=0,i=0,l=[],c=[l];while(i>-1){while((o=r[i]++)0?s:["plain"],u=d):(s=h(s,d.type),d.alias&&(s=h(s,d.alias)),u=d.content),"string"===typeof u){var v=u.split(p),g=v.length;l.push({types:s,content:v[0]});for(var y=1;ye.length)&&(t=e.length);for(var n=0,r=new Array(t);n{var t=e.demos,n=t["getFormatter-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"getformatter"},a.a.createElement(o["AnchorLink"],{to:"#getformatter","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"getFormatter"),a.a.createElement("p",null,"\u683c\u5f0f\u5316\u5de5\u5177\u3002\u53ef\u901a\u8fc7\u914d\u7f6e\u83b7\u5f97\u7b26\u5408\u8981\u6c42\u7684\u5207\u5272\u51fd\u6570\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"getFormatter: ({\n separator,\n length,\n reverse,\n isNumber: isNumberFormat,\n}?: {\n separator?: string\n length?: number\n reverse?: boolean\n isNumber?: boolean\n}) => (text: any) => string",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("p",null,"\u53c2\u6570\u4e3a\u4e00\u4e2a\u914d\u7f6e ",a.a.createElement("code",null,"\u5bf9\u8c61")," \uff0c\u5bf9\u8c61\u91cc\u7684\u5c5e\u6027\u5e94\u4e3a\uff1a"),a.a.createElement("ul",null,a.a.createElement("li",null,"separator\uff0c\u95f4\u9694\u7b26"),a.a.createElement("li",null,"length\uff0c\u5207\u5272\u957f\u5ea6"),a.a.createElement("li",null,"reverse\uff0c\u662f\u5426\u53cd\u8f6c\u4e3a\u4ece\u540e\u5f80\u524d\u5207\u5272"),a.a.createElement("li",null,"isNumber\uff0c \u662f\u5426\u4e3a\u6570\u5b57")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u8fd4\u56de\u4e00\u4e2a\u683c\u5f0f\u5316\u51fd\u6570")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"const a = getFormatter({\n separator: '--',\n length: 2,\n reverse: true,\n isNumber: false,\n})\na('abcdefghigklmn') // ab--cd--ef--gh--ig--kl--mn",lang:"js"})),a.a.createElement(i["default"],t["getFormatter-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},mnt4:function(e,t,n){"use strict";var r=n("OOCw"),a=n("uZx/"),o=n("lkgX");r({target:"Map",stat:!0},{groupBy:function(e,t){var n=new this;o(t);var r=o(n.has),i=o(n.get),l=o(n.set);return a(e,(function(e){var a=t(e);r.call(n,a)?i.call(n,a).push(e):l.call(n,a,[e])})),n}})},muZu:function(e,t){function n(e,t){var n=-1,r=t.length,a=e.length;while(++n1?arguments[1]:void 0,1),n=this.length,r=i(e),l=a(r.length),u=0;if(l+t>n)throw RangeError("Wrong length");while(u]*>)/g,h=/\$([$&'`]|\d\d?)/g,v=function(e){return void 0===e?e:String(e)};r("replace",2,(function(e,t,n,r){var g=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,y=r.REPLACE_KEEPS_$0,b=g?"$":"$0";return[function(n,r){var a=c(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,a,r):t.call(String(a),n,r)},function(e,r){if(!g&&y||"string"===typeof r&&-1===r.indexOf(b)){var o=n(t,e,this,r);if(o.done)return o.value}var c=a(e),p=String(this),m="function"===typeof r;m||(r=String(r));var h=c.global;if(h){var w=c.unicode;c.lastIndex=0}var x=[];while(1){var k=s(c,p);if(null===k)break;if(x.push(k),!h)break;var S=String(k[0]);""===S&&(c.lastIndex=u(p,i(c.lastIndex),w))}for(var O="",A=0,j=0;j=A&&(O+=p.slice(A,N)+I,A=N+C.length)}return O+p.slice(A)}];function E(e,n,r,a,i,l){var c=r+e.length,u=a.length,s=h;return void 0!==i&&(i=o(i),s=m),t.call(l,s,(function(t,o){var l;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":l=i[o.slice(1,-1)];break;default:var s=+o;if(0===s)return t;if(s>u){var f=p(s/10);return 0===f?t:f<=u?void 0===a[f-1]?o.charAt(1):a[f-1]+o.charAt(1):t}l=a[s-1]}return void 0===l?"":l}))}}))},nXRf:function(e,t){function n(e){return this.__data__.get(e)}e.exports=n},nZVm:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=a.a.memo((e=>{e.demos;return a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"\u7a7a"},a.a.createElement(o["AnchorLink"],{to:"#\u7a7a","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u7a7a")))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(i,{demos:n})}},niw9:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["copy-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"copy"},a.a.createElement(o["AnchorLink"],{to:"#copy","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"copy"),a.a.createElement("p",null,"\u5c1d\u8bd5\u901a\u8fc7 web \u672c\u8eab\u5b9e\u73b0\u590d\u5236\u529f\u80fd\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"declare const copy: (value: string | number) => void\nexport default copy",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value\uff0c\u8981\u590d\u5236\u7684\u503c")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"undefined")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["copy-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},nndC:function(e,t,n){var r=n("OOCw"),a=n("CBsr");r({target:"WeakMap",stat:!0},{of:a})},o1x9:function(e,t,n){"use strict";var r=n("vfR7").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},oA63:function(e,t,n){var r=n("58gk"),a=n("eKcC"),o=Object.prototype,i=o.propertyIsEnumerable,l=Object.getOwnPropertySymbols,c=l?function(e){return null==e?[]:(e=Object(e),r(l(e),(function(t){return i.call(e,t)})))}:a;e.exports=c},oEsY:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},oGfY:function(e,t,n){"use strict";var r=n("SHha"),a=n("nNWW");t.useSubscription=function(e){var t=e.getCurrentValue,n=e.subscribe,o=a.useState((function(){return{getCurrentValue:t,subscribe:n,value:t()}}));e=o[0];var i=o[1];return o=e.value,e.getCurrentValue===t&&e.subscribe===n||(o=t(),i({getCurrentValue:t,subscribe:n,value:o})),a.useDebugValue(o),a.useEffect((function(){function e(){if(!a){var e=t();i((function(a){return a.getCurrentValue!==t||a.subscribe!==n||a.value===e?a:r({},a,{value:e})}))}}var a=!1,o=n(e);return e(),function(){a=!0,o()}}),[t,n]),o}},oSdA:function(e,t,n){var r=n("KZF9");r("toPrimitive")},ohzl:function(e,t){var n=Object.prototype,r=n.toString;function a(e){return r.call(e)}e.exports=a},opL2:function(e,t,n){var r=n("r+6h"),a=n("0JbB"),o=n("rfqm"),i=n("kj2u").UNSUPPORTED_Y;r&&("g"!=/./g.flags||i)&&a.f(RegExp.prototype,"flags",{configurable:!0,get:o})},orhk:function(e,t){var n="__lodash_hash_undefined__";function r(e){return this.__data__.set(e,n),this}e.exports=r},ou61:function(e,t){function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n>>0,o=t>>>0,i=n>>>0;return o+(r>>>0)+((a&i|(a|i)&~(a+i>>>0))>>>31)|0}})},p1yP:function(e,t,n){"use strict";var r=n("OOCw"),a=n("r+6h"),o=n("THzI"),i=n("OdMF"),l=n("JSMs"),c=n("zesz"),u=n("6ssM").f;a&&r({target:"Object",proto:!0,forced:o},{__lookupGetter__:function(e){var t,n=i(this),r=l(e,!0);do{if(t=u(n,r))return t.get}while(n=c(n))}})},p3eN:function(e,t,n){var r=n("r+6h"),a=n("h+/6"),o=n("73fw");e.exports=!r&&!a((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},p4sU:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},pADs:function(e,t){function n(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=n},pDCl:function(e,t,n){var r=n("OOCw"),a=n("HRbj");r({target:"Map",stat:!0},{from:a})},pKuQ:function(e,t,n){var r=n("sErw");e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(i){var o=e["return"];throw void 0!==o&&r(o.call(e)),i}}},pS8w:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("9kvl"),l=(n("fuK4"),function(e){var t=e.location,n=Object(r["useContext"])(o["context"]),l=n.base,c=n.locale,u=n.config.locales,s=u.find((function(e){var t=e.name;return t!==c}));function f(e){var n=l.replace("/".concat(c),""),r=t.pathname.replace(new RegExp("^".concat(l,"(/|$)")),"".concat(n,"$1"))||"/";if(e!==u[0].name){var a="".concat(n,"/").concat(e).replace(/\/\//,"/"),o=t.pathname.replace(l.replace(/^\/$/,"//"),"");return"".concat(a).concat(o).replace(/\/$/,"")}return r}return s?a.a.createElement("div",{className:"__dumi-default-locale-select","data-locale-count":u.length},u.length>2?a.a.createElement("select",{value:c,onChange:function(e){return i["a"].push(f(e.target.value))}},u.map((function(e){return a.a.createElement("option",{value:e.name,key:e.name},e.label)}))):a.a.createElement(o["Link"],{to:f(s.name)},s.label)):null}),c=l,u=(n("OGs1"),function(e){var t=e.onMobileMenuClick,n=e.navPrefix,i=e.location,l=e.darkPrefix,u=Object(r["useContext"])(o["context"]),s=u.base,f=u.config,d=f.mode,p=f.title,m=f.logo,h=u.nav;return a.a.createElement("div",{className:"__dumi-default-navbar","data-mode":d},a.a.createElement("button",{className:"__dumi-default-navbar-toggle",onClick:t}),a.a.createElement(o["Link"],{className:"__dumi-default-navbar-logo",style:{backgroundImage:m&&"url('".concat(m,"')")},to:s,"data-plaintext":!1===m||void 0},p),a.a.createElement("nav",null,n,h.map((function(e){var t,n=Boolean(null===(t=e.children)||void 0===t?void 0:t.length)&&a.a.createElement("ul",null,e.children.map((function(e){return a.a.createElement("li",{key:e.path},a.a.createElement(o["NavLink"],{to:e.path},e.title))})));return a.a.createElement("span",{key:e.title||e.path},e.path?a.a.createElement(o["NavLink"],{to:e.path,key:e.path},e.title):e.title,n)})),a.a.createElement("div",{className:"__dumi-default-navbar-tool"},a.a.createElement(c,{location:i}),l)))}),s=u,f=(n("4BIg"),["slugs"]);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function m(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a}var h=function(e){var t=e.slugs,n=p(e,f);return a.a.createElement("ul",d({role:"slug-list"},n),t.filter((function(e){var t=e.depth;return t>1&&t<4})).map((function(e){return a.a.createElement("li",{key:e.heading,title:e.value,"data-depth":e.depth},a.a.createElement(o["AnchorLink"],{to:"#".concat(e.heading)},a.a.createElement("span",null,e.value)))})))},v=h,g=(n("Sr6Q"),function(e){var t=e.mobileMenuCollapsed,n=e.location,i=e.darkPrefix,l=Object(r["useContext"])(o["context"]),u=l.config,s=u.logo,f=u.title,d=u.description,p=u.mode,m=u.repository.url,h=l.menu,g=l.nav,y=l.base,b=l.meta,E=Boolean((b.hero||b.features||b.gapless)&&"site"===p)||!1===b.sidemenu||void 0;return a.a.createElement("div",{className:"__dumi-default-menu","data-mode":p,"data-hidden":E,"data-mobile-show":!t||void 0},a.a.createElement("div",{className:"__dumi-default-menu-inner"},a.a.createElement("div",{className:"__dumi-default-menu-header"},a.a.createElement(o["Link"],{to:y,className:"__dumi-default-menu-logo",style:{backgroundImage:s&&"url('".concat(s,"')")}}),a.a.createElement("h1",null,f),a.a.createElement("p",null,d),/github\.com/.test(m)&&"doc"===p&&a.a.createElement("p",null,a.a.createElement("object",{type:"image/svg+xml",data:"https://img.shields.io/github/stars".concat(m.match(/((\/[^\/]+){2})$/)[1],"?style=social")}))),a.a.createElement("div",{className:"__dumi-default-menu-mobile-area"},!!g.length&&a.a.createElement("ul",{className:"__dumi-default-menu-nav-list"},g.map((function(e){var t,n=Boolean(null===(t=e.children)||void 0===t?void 0:t.length)&&a.a.createElement("ul",null,e.children.map((function(e){return a.a.createElement("li",{key:e.path||e.title},a.a.createElement(o["NavLink"],{to:e.path},e.title))})));return a.a.createElement("li",{key:e.path||e.title},e.path?a.a.createElement(o["NavLink"],{to:e.path},e.title):e.title,n)}))),a.a.createElement(c,{location:n}),i),a.a.createElement("ul",{className:"__dumi-default-menu-list"},!E&&h.map((function(e){var t,r=Boolean(null===(t=b.slugs)||void 0===t?void 0:t.length),i=e.children&&Boolean(e.children.length),l="menu"===b.toc&&!i&&r&&e.path===n.pathname.replace(/([^^])\/$/,"$1"),c=i?e.children.map((function(e){return e.path})):[e.path,n.pathname.startsWith("".concat(e.path,"/"))&&b.title===e.title?n.pathname:null];return a.a.createElement("li",{key:e.path||e.title},a.a.createElement(o["NavLink"],{to:e.path,isActive:function(){return c.includes(n.pathname)}},e.title),Boolean(e.children&&e.children.length)&&a.a.createElement("ul",null,e.children.map((function(e){return a.a.createElement("li",{key:e.path},a.a.createElement(o["NavLink"],{to:e.path,exact:!0},a.a.createElement("span",null,e.title)),Boolean("menu"===b.toc&&"undefined"!==typeof window&&e.path===n.pathname&&r)&&a.a.createElement(v,{slugs:b.slugs}))}))),l&&a.a.createElement(v,{slugs:b.slugs}))})))))}),y=g;n("AM8P");function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&u.map((function(e){var t;return a.a.createElement("li",{key:e.path,onClick:function(){return i("")}},a.a.createElement(o["AnchorLink"],{to:e.path},(null===(t=e.parent)||void 0===t?void 0:t.title)&&a.a.createElement("span",null,e.parent.title),A(n,e.title)))})),0===u.length&&n&&a.a.createElement("li",{style:{textAlign:"center"}},p)))};n("/0hc");function C(e,t){return D(e)||_(e,t)||T(e,t)||N()}function N(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(e,t){if(e){if("string"===typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;d--){var p=i[d];"."===p?o(i,d):".."===p?(o(i,d),f++):f&&(o(i,d),f--)}if(!u)for(;f--;f)i.unshift("..");!u||""===i[0]||i[0]&&a(i[0])||i.unshift("");var m=i.join("/");return n&&"/"!==m.substr(-1)&&(m+="/"),m}var l=i;function c(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}function u(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every((function(e,n){return u(e,t[n])}));if("object"===typeof e||"object"===typeof t){var n=c(e),r=c(t);return n!==e||r!==t?u(n,r):Object.keys(Object.assign({},e,t)).every((function(n){return u(e[n],t[n])}))}return!1}var s=u,f=n("gGOj"),d=n.n(f),p=n("rfn3");function m(e){return"/"===e.charAt(0)?e:"/"+e}function h(e){return"/"===e.charAt(0)?e.substr(1):e}function v(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}function g(e,t){return v(e,t)?e.substr(t.length):e}function y(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function b(e){var t=e||"/",n="",r="",a=t.indexOf("#");-1!==a&&(r=t.substr(a),t=t.substr(0,a));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}function E(e){var t=e.pathname,n=e.search,r=e.hash,a=t||"/";return n&&"?"!==n&&(a+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(a+="#"===r.charAt(0)?r:"#"+r),a}function w(e,t,n,a){var o;"string"===typeof e?(o=b(e),o.query=o.search?d.a.parse(o.search):{},o.state=t):(o=Object(r["a"])({},e),void 0===o.pathname&&(o.pathname=""),o.search?("?"!==o.search.charAt(0)&&(o.search="?"+o.search),o.query=d.a.parse(o.search)):(o.search=o.query?d.a.stringify(o.query):"",o.query=o.query||{}),o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(i){throw i instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):i}return n&&(o.key=n),a?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=l(o.pathname,a.pathname)):o.pathname=a.pathname:o.pathname||(o.pathname="/"),o}function x(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&s(e.state,t.state)}function k(){var e=null;function t(t){return e=t,function(){e===t&&(e=null)}}function n(t,n,r,a){if(null!=e){var o="function"===typeof e?e(t,n):e;"string"===typeof o?"function"===typeof r?r(o,a):a(!0):a(!1!==o)}else a(!0)}var r=[];function a(e){var t=!0;function n(){t&&e.apply(void 0,arguments)}return r.push(n),function(){t=!1,r=r.filter((function(e){return e!==n}))}}function o(){for(var e=arguments.length,t=new Array(e),n=0;nn?o.splice(n,o.length-n,a):o.push(a),f({action:r,location:a,index:n,entries:o})}}))}function g(e,t){var r="REPLACE",a=w(e,t,d(),j.location);s.confirmTransitionTo(a,r,n,(function(e){e&&(j.entries[j.index]=a,f({action:r,location:a}))}))}function y(e){var t=B(j.index+e,0,j.entries.length-1),r="POP",a=j.entries[t];s.confirmTransitionTo(a,r,n,(function(e){e?f({action:r,location:a,index:t}):f()}))}function b(){y(-1)}function x(){y(1)}function S(e){var t=j.index+e;return t>=0&&t{var t=e.demos,n=t["preloadImage-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"preloadimage"},a.a.createElement(o["AnchorLink"],{to:"#preloadimage","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"preloadImage"),a.a.createElement("p",null,"\u9884\u6e32\u67d3\u6307\u5b9a\u56fe\u7247\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"preloadImage: (srcList: string[]) => void;",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"srcList \u9884\u6e32\u67d3\u56fe\u7247\u5730\u5740\u6570\u7ec4")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"undefined")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"preloadImage(['url.jpg'])",lang:"javascript"})),a.a.createElement(i["default"],t["preloadImage-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},rHUP:function(e,t,n){"use strict";var r=n("OOCw"),a=n("jssG").right,o=n("rUEg"),i=n("7/pz"),l=o("reduceRight"),c=i("reduce",{1:0});r({target:"Array",proto:!0,forced:!l||!c},{reduceRight:function(e){return a(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},rUEg:function(e,t,n){"use strict";var r=n("h+/6");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},rVbH:function(e,t,n){"use strict";e.exports=n("BZ8O")},rfn3:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=!0,a="Invariant failed";function o(e,t){if(!e){if(r)throw new Error(a);var n="function"===typeof t?t():t,o=n?"".concat(a,": ").concat(n):a;throw new Error(o)}}},rfqm:function(e,t,n){"use strict";var r=n("sErw");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},rjd2:function(e,t,n){"use strict";var r=n("OOCw"),a=n("uZx/"),o=n("lkgX");r({target:"Map",stat:!0},{keyBy:function(e,t){var n=new this;o(t);var r=o(n.set);return a(e,(function(e){r.call(n,t(e),e)})),n}})},rjqm:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["pipe-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"pipe"},a.a.createElement(o["AnchorLink"],{to:"#pipe","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"pipe"),a.a.createElement("p",null,"\u7ba1\u9053\u51fd\u6570\u3002\u9002\u5408\u628a\u524d\u4e00\u4e2a\u51fd\u6570\u7684 ",a.a.createElement("code",null,"\u8fd4\u56de\u7ed3\u679c")," \u4f5c\u4e3a\u540e\u4e00\u4e2a\u51fd\u6570\u7684 ",a.a.createElement("code",null,"\u8f93\u5165")," \u7684\u573a\u666f\u3002"),a.a.createElement("h3",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"pipe: (...handlers: Function[]) => (arg: any) => T;",lang:"unknown"}),a.a.createElement("h3",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"handlers \u51fd\u6570\u4eec")),a.a.createElement("h3",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u628a\u201c\u7ba1\u9053\u201d\u62fc\u63a5\u597d\u7684\u65b0\u51fd\u6570\u3002")),a.a.createElement("h3",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"import React, { useState } from 'react'\nimport { pipe } from '@fexd/tools'\n\n// \u4f8b\u5b50\u4e00\uff1a\u60f3\u5f97\u5230\u67d0\u4e2a\u6570\u5b57 +1 +3 +5 \u7684\u503c\nconst plusOne = (num) => num + 1\nconst plusThree = (num) => num + 3\nconst plusFive = (num) => num + 5\n\nconsole.log(plusFive(plusThree(plusOne(666)))) // 675\nconsole.log(plusFive(plusThree(plusOne(996)))) // 1005\n// \u4f7f\u7528\u7ba1\u9053\u51fd\u6570\nconst pipePlus = pipe(plusOne, plusThree, plusFive)\nconsole.log(pipePlus(666)) // 675\nconsole.log(pipePlus(996)) // 1005\n\n// \u4f8b\u5b50\u4e8c\uff1a\u83b7\u5f97\u5f53\u524d\u65f6\u95f4\u7684\u6628\u5929\u65e5\u671f\n// \u83b7\u53d6\u65e5\u671f\u7684\u5f53\u5929\u7684\u96f6\u65f6\u523b\nconst h0 = (date) => {\n date.setHours(0)\n date.setMinutes(0)\n date.setSeconds(0)\n date.setMilliseconds(0)\n return date\n}\n// \u83b7\u53d6\u65e5\u671f\u7684\u6628\u5929\nconst getLastday = (date) => {\n date.setDate(date.getDate() - 1)\n return date\n}\n// \u5c06\u65e5\u671f\u5bf9\u8c61\u8f6c\u5316\u4e3a\u5b57\u7b26\u4e32\nconst getString = (date) => {\n const year = date.getFullYear()\n const month = date.getMonth() + 1\n const day = date.getDate()\n return `${year}\u5e74${month}\u6708${day}\u65e5`\n}\n\nconsole.log(getString(getLastday(h0(new Date())))) // 2020\u5e7411\u670822\u65e5\nconsole.log(getString(getLastday(h0(new Date('2020-02-01'))))) // 2020\u5e741\u670831\u65e5\n// \u4f7f\u7528\u7ba1\u9053\u51fd\u6570\nconst pipeDateStr = pipe(h0, getLastday, getString)\nconsole.log(pipeDateStr(new Date())) // 2020\u5e7411\u670822\u65e5\nconsole.log(pipeDateStr(new Date('2020-02-01'))) // 2020\u5e741\u670831\u65e5",lang:"javascript"})),a.a.createElement(i["default"],t["pipe-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},rkJ6:function(e,t,n){var r=n("fkhx");function a(e,t){var n=e.length;while(n--)if(r(e[n][0],t))return n;return-1}e.exports=a},rmH6:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},"rp+D":function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["lock-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"lock"},a.a.createElement(o["AnchorLink"],{to:"#lock","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"lock"),a.a.createElement("p",null,"\u7ed9\u51fd\u6570\u52a0\u9501\uff1a\u51fd\u6570\u6267\u884c\u4e00\u6b21\u540e\u81ea\u52a8\u9501\u5b9a\uff0c\u9664\u975e\u89e3\u9501\uff0c\u5426\u5219\u4e0d\u4f1a\u518d\u6267\u884c\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"lock(func: Function)",lang:"unknown"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"func \u6267\u884c\u7684\u51fd\u6570")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u9501\u5b9a\u7684\u51fd\u6570")),a.a.createElement("h2",{id:"\u5e38\u7528\u5b50\u65b9\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u5e38\u7528\u5b50\u65b9\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u5e38\u7528\u5b50\u65b9\u6cd5"),a.a.createElement("h3",{id:"1-islocked"},a.a.createElement(o["AnchorLink"],{to:"#1-islocked","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"1. isLocked()"),a.a.createElement("p",null,"\u67e5\u770b\u662f\u5426\u5df2\u7ecf\u9501\u5b9a\u3002"),a.a.createElement(l["a"],{code:"import { lock } from '@fexd/tools'\n\nconst lockFunc = lock(function get(a1) {\n console.log(a1)\n})\n\nlockFunc.isLocked() // false\nlockFunc(1) // 1\nlockFunc.isLocked() // true",lang:"js"}),a.a.createElement("h3",{id:"2-unlock"},a.a.createElement(o["AnchorLink"],{to:"#2-unlock","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"2. unlock()"),a.a.createElement("p",null,"\u89e3\u9501\u51fd\u6570\u3002"),a.a.createElement(l["a"],{code:"import { lock } from '@fexd/tools'\n\nconst lockFunc = lock(function get(a1) {\n console.log(a1)\n})\n\nlockFunc(1) // 1\nlockFunc(1) // \u6ca1\u6267\u884c\uff0c\u6ca1\u8f93\u51fa\nlockFun.unlock()\nlockFunc(1) // 1\nlockFunc(1) // \u6ca1\u6267\u884c\uff0c\u6ca1\u8f93\u51fa",lang:"js"}),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["lock-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},rwnW:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["SAS-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"sas"},a.a.createElement(o["AnchorLink"],{to:"#sas","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"SAS"),a.a.createElement("p",null,"[\u5355\u54a8\u8be2\u670d\u52a1] Single Advisory Service \u540c\u4e00\u65f6\u523b\u5bf9\u540c\u4e00\u5f02\u6b65\u8bf7\u6c42\u8fdb\u884c\u7edf\u4e00\u7b49\u5f85\uff0c\u4e0d\u91cd\u590d\u53d1\u8d77\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"SAS: (query: () => Promise) => () => Promise;",lang:"unknown"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"query \u5f02\u6b65\u67e5\u8be2\u51fd\u6570\uff0c\u9700\u8981\u8fd4\u56de Promise")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,'"\u4e0a\u9501"\u4e86\u7684\u65b0\u51fd\u6570')),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["SAS-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},ry2H:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("sErw"),i=n("lkgX"),l=n("R8Xy"),c=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:a},{reduce:function(e){var t=o(this),n=l(t),r=arguments.length<2,a=r?void 0:arguments[1];if(i(e),c(n,(function(n){r?(r=!1,a=n):a=e(a,n,n,t)}),void 0,!1,!0),r)throw TypeError("Reduce of empty set with no initial value");return a}})},ry6q:function(e,t,n){var r=n("7HYU"),a=n("Oax0"),o=n("1DF2"),i=n("UtSM"),l=n("TDWY");function c(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t{var t=e.demos,n=t["flatten-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"flatten"},a.a.createElement(o["AnchorLink"],{to:"#flatten","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"flatten"),a.a.createElement("p",null,"\u6570\u7ec4\u62cd\u5e73\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"flatten: (array: any[]) => T[];",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u9700\u8981\u62cd\u5e73\u7684\u6570\u7ec4")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u62cd\u5e73\u7684\u6570\u7ec4")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["flatten-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},sErw:function(e,t,n){var r=n("x+sk");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},sLj8:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("fVxY");function a(e,t){if("function"!==typeof t&&null!==t)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&&Object(r["a"])(e,t)}},sgiM:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("yh5g"),a=n.n(r);function o(e){return e instanceof HTMLElement?e:a.a.findDOMNode(e)}},sq0Y:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["isNumber-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"isnumber"},a.a.createElement(o["AnchorLink"],{to:"#isnumber","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isNumber"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a Number \u7c7b\u578b\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isNumber: (value: any) => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value \uff0c\u8981\u5224\u65ad\u7684\u6570\u636e")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u662f Number \u7c7b\u578b"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u4e0d\u662f Number \u7c7b\u578b")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"isNumber(null) //false\n\nisNumber(1) //true",lang:"javascript"})),a.a.createElement(i["default"],t["isNumber-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},sr0c:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["promiseGuess-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"promiseguess"},a.a.createElement(o["AnchorLink"],{to:"#promiseguess","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"promiseGuess"),a.a.createElement("p",null,"\u731c\u6d4b\u662f\u5426\u4e3a\u5f02\u6b65\u51fd\u6570\uff0c\u7528\u6765\u667a\u80fd\u5904\u7406 Promise \u7c7b\u578b\u8fd4\u56de\u503c\u3002"),a.a.createElement("p",null,"\u5982\u679c\u7b2c\u4e00\u4e2a\u53c2\u6570\uff0c\u662f\u4e00\u4e2a\u5f02\u6b65\u51fd\u6570\uff0c\u5c06\u5f97\u5230 promise \u7c7b\u578b\u8fd4\u56de\u503c\uff0c\u6309\u7ea6\u5b9a resolve \u6700\u7ec8\u503c\u3002"),a.a.createElement("p",null,"\u5982\u679c\u7b2c\u4e00\u4e2a\u53c2\u6570\uff0c\u4e0d\u662f\u4e00\u4e2a\u5f02\u6b65\u51fd\u6570\uff0c\u5c06\u76f4\u63a5\u8c03\u7528\u51fd\u6570\uff0c\u8fd4\u56de\u6700\u7ec8\u503c\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"promiseGuess: (executor: Function, valuer: Function) => (...args: any[]) => T",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"executor \u51fd\u6570\uff0c\u6267\u884c\u8fc7\u7a0b\u83b7\u53d6\u3002\u53ef\u4ee5\u662f\u5f02\u6b65\u51fd\u6570\u4e5f\u53ef\u4ee5\u4e0d\u662f\u5f02\u6b65\u51fd\u6570\u3002"),a.a.createElement("li",null,"valuer \u51fd\u6570\uff0c\u503c\u5904\u7406\u8fc7\u7a0b\u3002")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"executor \u4e3a\u5f02\u6b65\u51fd\u6570\uff0c\u8fd4\u56de\u503c\u4e3a\u5f02\u6b65\u51fd\u6570\u3002"),a.a.createElement("li",null,"executor \u4e0d\u4e3a\u5f02\u6b65\u51fd\u6570\uff0c\u8fd4\u56de\u503c\u4e3a\u666e\u901a\u51fd\u6570\u3002")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"import React, { useState } from 'react'\nimport { promiseGuess, delay } from '@fexd/tools'\n\nconst person = {\n name: 'Amy',\n age: 18,\n}\n\nconst asyncGreet = promiseGuess(\n async ({ name, age }) => {\n console.log(name, age) // Amy 18\n await delay(1000)\n return name\n },\n (error, value, args) => {\n console.log(error, value, args) // [null, \"Amy\", {name: \"Amy\", age: 18}]\n return `Hello.I'm ${value}`\n }\n)\n\nconst greet = promiseGuess(\n ({ name, age }) => {\n console.log(name, age) // Amy 18\n return name\n },\n (error, value, args) => {\n console.log(error, value, args) // [null, \"Amy\", {name: \"Amy\", age: 18}]\n return `Hello.I'm ${value}`\n }\n)\n\nconsole.log(asyncGreet(person)) // Promise{}\nconsole.log(greet(person)) // Hello.I'm Amy",lang:"javascript"})),a.a.createElement(i["default"],t["promiseGuess-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},"t+GO":function(e,t,n){var r=n("t+TA"),a=n("O4yA"),o=r(a,"DataView");e.exports=o},"t+TA":function(e,t,n){var r=n("bK3N"),a=n("HU7W");function o(e,t){var n=a(e,t);return r(n)?n:void 0}e.exports=o},"t+pk":function(e,t,n){"use strict";var r=n("QkOx"),a=n("q43B"),o=n("sErw"),i=n("z43i"),l=n("ZT9G"),c=n("o1x9"),u=n("upgS"),s=n("OR72"),f=n("A2zS"),d=n("h+/6"),p=[].push,m=Math.min,h=4294967295,v=!d((function(){return!RegExp(h,"y")}));r("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(i(this)),o=void 0===n?h:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!a(e))return t.call(r,e,o);var l,c,u,s=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,v=new RegExp(e.source,d+"g");while(l=f.call(v,r)){if(c=v.lastIndex,c>m&&(s.push(r.slice(m,l.index)),l.length>1&&l.index=o))break;v.lastIndex===l.index&&v.lastIndex++}return m===r.length?!u&&v.test("")||s.push(""):s.push(r.slice(m)),s.length>o?s.slice(0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var a=i(this),o=void 0==t?void 0:t[e];return void 0!==o?o.call(t,a,n):r.call(String(a),t,n)},function(e,a){var i=n(r,e,this,a,r!==t);if(i.done)return i.value;var f=o(e),d=String(this),p=l(f,RegExp),g=f.unicode,y=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(v?"y":"g"),b=new p(v?f:"^(?:"+f.source+")",y),E=void 0===a?h:a>>>0;if(0===E)return[];if(0===d.length)return null===s(b,d)?[d]:[];var w=0,x=0,k=[];while(x{var t=n("nNWW"),r=n("u6Sb"),a=r.default,o=n("JsrE"),i=o.default,c=n("Gdey"),u=c.usePrefersColor,s=c.context,f=t.useContext(s),d=f.demos,p=t.useState([]),m=Object(l["default"])(p,2),h=m[0],v=m[1];switch(t.useLayoutEffect((()=>{v(a(e,d))}),[e.match.params.uuid,e.location.query.wrapper,e.location.query.capture]),u(),h.length){case 1:return h[0];case 2:return t.createElement(i,h[0],h[1]);default:return"Demo ".concat(e.match.params.uuid," not found :(")}}},{path:"/_demos/:uuid",redirect:"/~demos/:uuid"},{__dumiRoot:!0,layout:!1,path:"/",wrappers:[n("afA6").default,n("pS8w").default],routes:[{path:"/",component:n("wVcw").default,exact:!0,meta:{filePath:"documents/index.md",updatedTime:1700622704e3,sidemenu:!1,slugs:[{depth:1,value:"\u8f85\u52a9\u5de5\u5177\u5e93",heading:"\u8f85\u52a9\u5de5\u5177\u5e93"},{depth:2,value:"\u5b89\u88c5",heading:"\u5b89\u88c5"},{depth:2,value:"\u7528\u6cd5\u793a\u4f8b",heading:"\u7528\u6cd5\u793a\u4f8b"},{depth:2,value:"\u6309\u9700\u52a0\u8f7d",heading:"\u6309\u9700\u52a0\u8f7d"},{depth:2,value:"\u5bfc\u51fa\u7684\u65b9\u6cd5\u6709\u4ee5\u4e0b",heading:"\u5bfc\u51fa\u7684\u65b9\u6cd5\u6709\u4ee5\u4e0b"}],title:"\u8f85\u52a9\u5de5\u5177\u5e93"},title:"\u8f85\u52a9\u5de5\u5177\u5e93 - Fexd Tools"},{path:"/\u6587\u6863/\u4e8b\u4ef6\u5904\u7406/event-bus",component:n("Edy/").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u4e8b\u4ef6\u5904\u7406/EventBus.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"EventBus",heading:"eventbus"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u5b9e\u4f8b\u5c5e\u6027",heading:"\u5b9e\u4f8b\u5c5e\u6027"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"EventBus",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u4e8b\u4ef6\u5904\u7406",title:"\u4e8b\u4ef6\u5904\u7406"}},title:"EventBus - Fexd Tools"},{path:"/\u6587\u6863/\u51fd\u6570/delay",component:n("ZEG/").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u51fd\u6570/delay.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"delay",heading:"delay"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:3,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"delay",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u51fd\u6570",title:"\u51fd\u6570"}},title:"delay - Fexd Tools"},{path:"/\u6587\u6863/\u51fd\u6570/lock",component:n("rp+D").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u51fd\u6570/lock.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"lock",heading:"lock"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u5e38\u7528\u5b50\u65b9\u6cd5",heading:"\u5e38\u7528\u5b50\u65b9\u6cd5"},{depth:3,value:"1. isLocked()",heading:"1-islocked"},{depth:3,value:"2. unlock()",heading:"2-unlock"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"lock",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u51fd\u6570",title:"\u51fd\u6570"}},title:"lock - Fexd Tools"},{path:"/\u6587\u6863/\u51fd\u6570/memoize",component:n("7JKi").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u51fd\u6570/memoize.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"memoize",heading:"memoize"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4f7f\u7528\u65b9\u6cd5",heading:"\u4f7f\u7528\u65b9\u6cd5"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"memoize",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u51fd\u6570",title:"\u51fd\u6570"}},title:"memoize - Fexd Tools"},{path:"/\u6587\u6863/\u51fd\u6570/next-tick",component:n("dOaE").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u51fd\u6570/nextTick.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"nextTick",heading:"nexttick"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"nextTick",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u51fd\u6570",title:"\u51fd\u6570"}},title:"nextTick - Fexd Tools"},{path:"/\u6587\u6863/\u51fd\u6570/pick",component:n("/AzE").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u51fd\u6570/pick.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"pick",heading:"pick"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"pick",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u51fd\u6570",title:"\u51fd\u6570"}},title:"pick - Fexd Tools"},{path:"/\u6587\u6863/\u51fd\u6570/pick-by",component:n("/ZDR").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u51fd\u6570/pickBy.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"pickBy",heading:"pickby"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"pickBy",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u51fd\u6570",title:"\u51fd\u6570"}},title:"pickBy - Fexd Tools"},{path:"/\u6587\u6863/\u51fd\u6570/pipe",component:n("rjqm").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u51fd\u6570/pipe.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"pipe",heading:"pipe"},{depth:3,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:3,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:3,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:3,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"pipe",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u51fd\u6570",title:"\u51fd\u6570"}},title:"pipe - Fexd Tools"},{path:"/\u6587\u6863/\u51fd\u6570/promise-guess",component:n("sr0c").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u51fd\u6570/promiseGuess.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"promiseGuess",heading:"promiseguess"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"promiseGuess",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u51fd\u6570",title:"\u51fd\u6570"}},title:"promiseGuess - Fexd Tools"},{path:"/\u6587\u6863/\u51fd\u6570/random",component:n("0G8B").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u51fd\u6570/random.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"random",heading:"random"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"random",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u51fd\u6570",title:"\u51fd\u6570"}},title:"random - Fexd Tools"},{path:"/\u6587\u6863/\u51fd\u6570/sample",component:n("31cE").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u51fd\u6570/sample.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"sample",heading:"sample"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"sample",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u51fd\u6570",title:"\u51fd\u6570"}},title:"sample - Fexd Tools"},{path:"/\u6587\u6863/\u51fd\u6570/tween",component:n("PE3m").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u51fd\u6570/Tween.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"Tween",heading:"tween"},{depth:2,value:"\u8be6\u7ec6 demo",heading:"\u8be6\u7ec6-demo"},{depth:2,value:"\u7b80\u964b\u4e3e\u4f8b",heading:"\u7b80\u964b\u4e3e\u4f8b"}],title:"Tween",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u51fd\u6570",title:"\u51fd\u6570"}},title:"Tween - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-android",component:n("d9X2").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isAndroid.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isAndroid",heading:"isandroid"},{depth:3,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isAndroid",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isAndroid - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-array",component:n("YUzc").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isArray.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isArray",heading:"isarray"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isArray",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isArray - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-boolean",component:n("NNlK").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isBoolean.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isBoolean",heading:"isboolean"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isBoolean",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isBoolean - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-date",component:n("itOZ").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isDate.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isDate",heading:"isdate"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isDate",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isDate - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-desktop",component:n("PyMO").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isDesktop.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isDesktop",heading:"isdesktop"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isDesktop",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isDesktop - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-error",component:n("b/MS").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isError.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isError",heading:"iserror"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isError",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isError - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-exist",component:n("GE8o").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isExist.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isExist",heading:"isexist"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isExist",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isExist - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-function",component:n("xEA5").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isFunction.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isFunction",heading:"isfunction"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isFunction",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isFunction - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-ios",component:n("4D/p").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isIOS.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isIOS",heading:"isios"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isIOS",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isIOS - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-mobile",component:n("KH8A").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isMobile.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isMobile",heading:"ismobile"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isMobile",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isMobile - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-na-n",component:n("M48M").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isNaN.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isNaN",heading:"isnan"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isNaN",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isNaN - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-null",component:n("PewQ").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isNull.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isNull",heading:"isnull"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isNull",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isNull - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-number",component:n("sq0Y").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isNumber.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isNumber",heading:"isnumber"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isNumber",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isNumber - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-object",component:n("TEI5").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isObject.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isObject",heading:"isobject"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isObject",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isObject - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-promise-like",component:n("vmLw").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isPromiseLike.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isPromiseLike",heading:"ispromiselike"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isPromiseLike",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isPromiseLike - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-string",component:n("UBRp").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isString.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isString",heading:"isstring"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isString",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isString - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-undefined",component:n("yA6K").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isUndefined.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isUndefined",heading:"isundefined"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isUndefined",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isUndefined - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-wkwebview",component:n("0EOe").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isWKWebview.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isWKWebview",heading:"iswkwebview"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isWKWebview",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isWKWebview - Fexd Tools"},{path:"/\u6587\u6863/\u56fd\u9645\u5316/i18n",component:n("Q7Q6").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u56fd\u9645\u5316/I18n.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"I18n",heading:"i18n"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"I18n",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u56fd\u9645\u5316",title:"\u56fd\u9645\u5316"}},title:"I18n - Fexd Tools"},{path:"/\u6587\u6863/\u5b58\u53d6/storage",component:n("Wm87").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5b58\u53d6/storage.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"storage",heading:"storage"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"storage \u5bf9\u8c61\u91cc\u7684\u5c5e\u6027",heading:"storage-\u5bf9\u8c61\u91cc\u7684\u5c5e\u6027"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"storage",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5b58\u53d6",title:"\u5b58\u53d6"}},title:"storage - Fexd Tools"},{path:"/\u6587\u6863/\u5de5\u5177/capitalize",component:n("J4oQ").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5de5\u5177/capitalize.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"capitalize",heading:"capitalize"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"capitalize",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5de5\u5177",title:"\u5de5\u5177"}},title:"capitalize - Fexd Tools"},{path:"/\u6587\u6863/\u5de5\u5177/copy",component:n("niw9").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5de5\u5177/copy.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"copy",heading:"copy"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"copy",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5de5\u5177",title:"\u5de5\u5177"}},title:"copy - Fexd Tools"},{path:"/\u6587\u6863/\u5de5\u5177/first",component:n("uEBc").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5de5\u5177/first.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"first",heading:"first"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"first",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5de5\u5177",title:"\u5de5\u5177"}},title:"first - Fexd Tools"},{path:"/\u6587\u6863/\u5de5\u5177/get",component:n("UWO6").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5de5\u5177/get.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"get",heading:"get"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"get",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5de5\u5177",title:"\u5de5\u5177"}},title:"get - Fexd Tools"},{path:"/\u6587\u6863/\u5de5\u5177/get-formatter",component:n("miY2").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5de5\u5177/getFormatter.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"getFormatter",heading:"getformatter"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"getFormatter",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5de5\u5177",title:"\u5de5\u5177"}},title:"getFormatter - Fexd Tools"},{path:"/\u6587\u6863/\u5de5\u5177/intersection",component:n("dh0R").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5de5\u5177/intersection.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"intersection",heading:"intersection"},{depth:3,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:3,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:3,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:3,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"intersection",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5de5\u5177",title:"\u5de5\u5177"}},title:"intersection - Fexd Tools"},{path:"/\u6587\u6863/\u5de5\u5177/last",component:n("XLmh").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5de5\u5177/last.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"last",heading:"last"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"last",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5de5\u5177",title:"\u5de5\u5177"}},title:"last - Fexd Tools"},{path:"/\u6587\u6863/\u5de5\u5177/run",component:n("SgJx").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5de5\u5177/run.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"run",heading:"run"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"run",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5de5\u5177",title:"\u5de5\u5177"}},title:"run - Fexd Tools"},{path:"/\u6587\u6863/\u5de5\u5177/set",component:n("6qLJ").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5de5\u5177/set.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"set",heading:"set"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"set",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5de5\u5177",title:"\u5de5\u5177"}},title:"set - Fexd Tools"},{path:"/\u6587\u6863/\u5de5\u5177/uniq-by-key",component:n("I0FN").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5de5\u5177/uniqByKey.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"uniqByKey",heading:"uniqbykey"},{depth:3,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"uniqByKey",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5de5\u5177",title:"\u5de5\u5177"}},title:"uniqByKey - Fexd Tools"},{path:"/\u6587\u6863/\u5de5\u5177/value",component:n("BNr0").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5de5\u5177/value.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"value",heading:"value"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"value",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5de5\u5177",title:"\u5de5\u5177"}},title:"value - Fexd Tools"},{path:"/\u6587\u6863/\u5e8f\u5217\u5316/qs",component:n("bOH8").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5e8f\u5217\u5316/qs.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"qs",heading:"qs"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:3,value:"qs.parse",heading:"qsparse"},{depth:4,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5-1"},{depth:4,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:4,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:4,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"},{depth:3,value:"qs.stringify",heading:"qsstringify"},{depth:4,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5-2"},{depth:4,value:"\u53c2\u6570",heading:"\u53c2\u6570-1"},{depth:4,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c-1"},{depth:4,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b-1"}],title:"qs",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5e8f\u5217\u5316",title:"\u5e8f\u5217\u5316"}},title:"qs - Fexd Tools"},{path:"/\u6587\u6863/\u6269\u5c55/classnames",component:n("l1UK").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u6269\u5c55/classnames.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"classnames",heading:"classnames"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"classnames",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u6269\u5c55",title:"\u6269\u5c55"}},title:"classnames - Fexd Tools"},{path:"/\u6587\u6863/\u6269\u5c55/comb-judge",component:n("trcp").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u6269\u5c55/CombJudge.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"CombJudge",heading:"combjudge"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u8fd4\u56de\u7684\u5b9e\u4f8b\u7684\u5c5e\u6027",heading:"\u8fd4\u56de\u7684\u5b9e\u4f8b\u7684\u5c5e\u6027"},{depth:3,value:"list",heading:"list"},{depth:3,value:"attrKey",heading:"attrkey"},{depth:3,value:"attr",heading:"attr"},{depth:3,value:"have()",heading:"have"},{depth:3,value:"find()",heading:"find"},{depth:3,value:"adaptedAttr()",heading:"adaptedattr"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"CombJudge",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u6269\u5c55",title:"\u6269\u5c55"}},title:"CombJudge - Fexd Tools"},{path:"/\u6587\u6863/\u6269\u5c55/global-this",component:n("W5+R").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u6269\u5c55/globalThis.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"globalThis",heading:"globalthis"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"globalThis",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u6269\u5c55",title:"\u6269\u5c55"}},title:"globalThis - Fexd Tools"},{path:"/\u6587\u6863/\u6570\u5b57/clamp",component:n("PPg0").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u6570\u5b57/clamp.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"clamp",heading:"clamp"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"clamp",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u6570\u5b57",title:"\u6570\u5b57"}},title:"clamp - Fexd Tools"},{path:"/\u6587\u6863/\u6570\u7ec4/flatten",component:n("s9xe").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u6570\u7ec4/flatten.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"flatten",heading:"flatten"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"flatten",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u6570\u7ec4",title:"\u6570\u7ec4"}},title:"flatten - Fexd Tools"},{path:"/\u6587\u6863/\u6570\u7ec4/group-by",component:n("1623").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u6570\u7ec4/groupBy.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"groupBy",heading:"groupby"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"groupBy",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u6570\u7ec4",title:"\u6570\u7ec4"}},title:"groupBy - Fexd Tools"},{path:"/\u6587\u6863/\u67ef\u91cc\u5316/curry",component:n("TwAS").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u67ef\u91cc\u5316/curry.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"curry",heading:"curry"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"curry",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u67ef\u91cc\u5316",title:"\u67ef\u91cc\u5316"}},title:"curry - Fexd Tools"},{path:"/\u6587\u6863/\u67ef\u91cc\u5316/\u4e0b\u5212\u7ebf",component:n("T39T").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u67ef\u91cc\u5316/\u4e0b\u5212\u7ebf.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"__",heading:"__"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"__",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u67ef\u91cc\u5316",title:"\u67ef\u91cc\u5316"}},title:"__ - Fexd Tools"},{path:"/\u6587\u6863/\u6e32\u67d3/default-frame-process",component:n("nZVm").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u6e32\u67d3/defaultFrameProcess.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"\u7a7a",heading:"\u7a7a"}],title:"\u7a7a",nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u6e32\u67d3",title:"\u6e32\u67d3"}},title:"\u7a7a - Fexd Tools"},{path:"/\u6587\u6863/\u6e32\u67d3/frame-process",component:n("Xu7U").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u6e32\u67d3/FrameProcess.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"FrameProcess",heading:"frameprocess"},{depth:2,value:"FrameProcess \u5e27\u8fdb\u7a0b\uff0c\u7528\u4e8e\u5236\u4f5c\u52a8\u753b",heading:"frameprocess-\u5e27\u8fdb\u7a0b\u7528\u4e8e\u5236\u4f5c\u52a8\u753b"},{depth:3,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:3,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:3,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:3,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"FrameProcess",nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u6e32\u67d3",title:"\u6e32\u67d3"}},title:"FrameProcess - Fexd Tools"},{path:"/\u6587\u6863/\u6e32\u67d3/preload-image",component:n("rG9Z").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u6e32\u67d3/preloadImage.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"preloadImage",heading:"preloadimage"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"preloadImage",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u6e32\u67d3",title:"\u6e32\u67d3"}},title:"preloadImage - Fexd Tools"},{path:"/\u6587\u6863/\u76d1\u542c/scroll-listener",component:n("cO67").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u76d1\u542c/ScrollListener.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"ScrollListener",heading:"scrolllistener"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"ScrollListener",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u76d1\u542c",title:"\u76d1\u542c"}},title:"ScrollListener - Fexd Tools"},{path:"/\u6587\u6863/\u8282\u6d41/debounce",component:n("fXIi").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u8282\u6d41/debounce.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"debounce",heading:"debounce"},{depth:3,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:3,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:3,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:3,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"debounce",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u8282\u6d41",title:"\u8282\u6d41"}},title:"debounce - Fexd Tools"},{path:"/\u6587\u6863/\u8282\u6d41/throttle",component:n("X7eB").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u8282\u6d41/throttle.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"throttle",heading:"throttle"},{depth:3,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:3,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:3,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:3,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"throttle",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u8282\u6d41",title:"\u8282\u6d41"}},title:"throttle - Fexd Tools"},{path:"/\u6587\u6863/\u8bf7\u6c42/sas",component:n("rwnW").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u8bf7\u6c42/SAS.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"SAS",heading:"sas"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"SAS",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u8bf7\u6c42",title:"\u8bf7\u6c42"}},title:"SAS - Fexd Tools"},{path:"/\u6587\u6863/\u8bf7\u6c42/source",component:n("1B1/").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u8bf7\u6c42/source.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"source",heading:"source"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"source \u5bf9\u8c61\u5c5e\u6027",heading:"source-\u5bf9\u8c61\u5c5e\u6027"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"source",nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u8bf7\u6c42",title:"\u8bf7\u6c42"}},title:"source - Fexd Tools"},{path:"/\u6587\u6863/\u8bf7\u6c42/url",component:n("/383").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u8bf7\u6c42/url.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"url",heading:"url"},{depth:2,value:"url \u91cc\u7684\u53c2\u6570",heading:"url-\u91cc\u7684\u53c2\u6570"},{depth:2,value:"\u793a\u4f8b",heading:"\u793a\u4f8b"},{depth:3,value:"url.allParam()",heading:"urlallparam"},{depth:3,value:"url.param(name)",heading:"urlparamname"},{depth:3,value:"url.generateParamStr(paramObj)",heading:"urlgenerateparamstrparamobj"},{depth:3,value:"url.paramEscape() \u548c url.allParamEscape()",heading:"urlparamescape-\u548c-urlallparamescape"}],title:"url",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u8bf7\u6c42",title:"\u8bf7\u6c42"}},title:"url - Fexd Tools"},{path:"/\u6587\u6863/\u4e8b\u4ef6\u5904\u7406",meta:{},exact:!0,redirect:"/\u6587\u6863/\u4e8b\u4ef6\u5904\u7406/event-bus"},{path:"/\u6587\u6863",meta:{},exact:!0,redirect:"/\u6587\u6863/\u4e8b\u4ef6\u5904\u7406"},{path:"/\u6587\u6863/\u51fd\u6570",meta:{},exact:!0,redirect:"/\u6587\u6863/\u51fd\u6570/delay"},{path:"/\u6587\u6863/\u5224\u65ad",meta:{},exact:!0,redirect:"/\u6587\u6863/\u5224\u65ad/is-android"},{path:"/\u6587\u6863/\u56fd\u9645\u5316",meta:{},exact:!0,redirect:"/\u6587\u6863/\u56fd\u9645\u5316/i18n"},{path:"/\u6587\u6863/\u5b58\u53d6",meta:{},exact:!0,redirect:"/\u6587\u6863/\u5b58\u53d6/storage"},{path:"/\u6587\u6863/\u5de5\u5177",meta:{},exact:!0,redirect:"/\u6587\u6863/\u5de5\u5177/capitalize"},{path:"/\u6587\u6863/\u5e8f\u5217\u5316",meta:{},exact:!0,redirect:"/\u6587\u6863/\u5e8f\u5217\u5316/qs"},{path:"/\u6587\u6863/\u6269\u5c55",meta:{},exact:!0,redirect:"/\u6587\u6863/\u6269\u5c55/classnames"},{path:"/\u6587\u6863/\u6570\u5b57",meta:{},exact:!0,redirect:"/\u6587\u6863/\u6570\u5b57/clamp"},{path:"/\u6587\u6863/\u6570\u7ec4",meta:{},exact:!0,redirect:"/\u6587\u6863/\u6570\u7ec4/flatten"},{path:"/\u6587\u6863/\u67ef\u91cc\u5316",meta:{},exact:!0,redirect:"/\u6587\u6863/\u67ef\u91cc\u5316/curry"},{path:"/\u6587\u6863/\u6e32\u67d3",meta:{},exact:!0,redirect:"/\u6587\u6863/\u6e32\u67d3/default-frame-process"},{path:"/\u6587\u6863/\u76d1\u542c",meta:{},exact:!0,redirect:"/\u6587\u6863/\u76d1\u542c/scroll-listener"},{path:"/\u6587\u6863/\u8282\u6d41",meta:{},exact:!0,redirect:"/\u6587\u6863/\u8282\u6d41/debounce"},{path:"/\u6587\u6863/\u8bf7\u6c42",meta:{},exact:!0,redirect:"/\u6587\u6863/\u8bf7\u6c42/sas"}],title:"Fexd Tools",component:e=>e.children}];return r["a"].applyPlugins({key:"patchRoutes",type:o["ApplyPluginsType"].event,args:{routes:e}}),e}var u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r["a"].applyPlugins({key:"render",type:o["ApplyPluginsType"].compose,initialValue:()=>{var t=r["a"].applyPlugins({key:"modifyClientRenderOpts",type:o["ApplyPluginsType"].modify,initialValue:{routes:e.routes||c(),plugin:r["a"],history:Object(a["a"])(e.hot),isServer:Object({NODE_ENV:"production"}).__IS_SERVER,rootElement:"root",defaultTitle:"Fexd Tools"}});return Object(i["renderClient"])(t)},args:e})},s=u();t["default"]=s();window.g_umi={version:"3.5.35"}},tDGd:function(e,t,n){var r,a,o=n("6SQG"),i=n("7EYs"),l=o.process,c=l&&l.versions,u=c&&c.v8;u?(r=u.split("."),a=r[0]+r[1]):i&&(r=i.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/),r&&(a=r[1]))),e.exports=a&&+a},tOwT:function(e,t,n){"use strict";var r=n("BUyj"),a=n("jETf");r("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),a)},tSbI:function(e,t,n){"use strict";e.exports=n("Swb/")},tSnU:function(e,t,n){var r=n("h+/6"),a=n("Vg85"),o="\u200b\x85\u180e";e.exports=function(e){return r((function(){return!!a[e]()||o[e]()!=o||a[e].name!==e}))}},tZ8k:function(e,t,n){"use strict";var r=n("g0pg"),a=n("5ilB"),o=r.aTypedArray,i=r.exportTypedArrayMethod;i("fill",(function(e){return a.apply(o(this),arguments)}))},tmip:function(e,t,n){"use strict";var r=n("JSMs"),a=n("0JbB"),o=n("ZVkV");e.exports=function(e,t,n){var i=r(t);i in e?a.f(e,i,o(0,n)):e[i]=n}},trcp:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["CombJudge-demo"].component,r=t["CombJudge-demo-1"].component,c=t["CombJudge-demo-2"].component,u=t["CombJudge-demo-3"].component,s=t["CombJudge-demo-4"].component,f=t["CombJudge-demo-5"].component,d=t["CombJudge-demo-6"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"combjudge"},a.a.createElement(o["AnchorLink"],{to:"#combjudge","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"CombJudge"),a.a.createElement("p",null,"\u7ec4\u5408\u5224\u65ad\u5668\u3002\u53ef\u7528\u4e8e SKU \u7b97\u6cd5\uff08\u5546\u54c1\u591a\u89c4\u683c\u9009\u62e9\uff09\u573a\u666f\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"interface Attr {\n [key: string]: any[]\n}\nclass CombJubge {\n list: Object | any[]\n attr: Attr\n attrKey: string[]\n constructor(list: Object | any[])\n private have\n adaptedAttr: (activeAttr: Object) => Object\n find: (activeAttr: Object) => string | undefined\n}",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u5546\u54c1\u5217\u8868\u6570\u7ec4\uff0c\u683c\u5f0f\u5e94\u8be5\u4e3a:")),a.a.createElement(l["a"],{code:"const product = [\n {\n // \"\u5546\u54c1\u89c4\u683c\u540d\u79f0\": \"\u8be5\u5546\u54c1\u6b64\u89c4\u683c\u7684\u503c\",\n name: 'iPhone X',\n color: '\u9ed1\u8272',\n storage: '64g',\n },\n {\n color: '\u9ed1\u8272',\n name: 'iPhone XS',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '256g',\n },\n]",lang:"js"}),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"CombJudge \u7684\u5b9e\u4f8b")),a.a.createElement("h2",{id:"\u8fd4\u56de\u7684\u5b9e\u4f8b\u7684\u5c5e\u6027"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u7684\u5b9e\u4f8b\u7684\u5c5e\u6027","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u7684\u5b9e\u4f8b\u7684\u5c5e\u6027"),a.a.createElement("h3",{id:"list"},a.a.createElement(o["AnchorLink"],{to:"#list","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"list"),a.a.createElement("p",null,"\u5546\u54c1\u89c4\u683c\u6570\u7ec4\u3002")),a.a.createElement(i["default"],t["CombJudge-demo"].previewerProps,a.a.createElement(n,null)),a.a.createElement("div",{className:"markdown"},a.a.createElement("h3",{id:"attrkey"},a.a.createElement(o["AnchorLink"],{to:"#attrkey","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"attrKey"),a.a.createElement("p",null,"\u7531\u6240\u6709\u5546\u54c1\u7684\u89c4\u683c key \u7ec4\u6210\u7684\u6570\u7ec4\u3002")),a.a.createElement(i["default"],t["CombJudge-demo-1"].previewerProps,a.a.createElement(r,null)),a.a.createElement("div",{className:"markdown"},a.a.createElement("h3",{id:"attr"},a.a.createElement(o["AnchorLink"],{to:"#attr","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"attr"),a.a.createElement("p",null,"\u5546\u54c1\u5168\u90e8\u5c5e\u6027\u9009\u9879\u5bf9\u8c61\u3002\u6b64\u5bf9\u8c61\u7684\u6210\u5458\u7684 ",a.a.createElement("code",null,"key")," \u4e3a\u67d0\u89c4\u683c\u7684 key\uff0c",a.a.createElement("code",null,"value")," \u4e3a \u8fd9\u89c4\u683c\u7684\u6240\u6709\u9009\u9879\u6570\u7ec4\u3002")),a.a.createElement(i["default"],t["CombJudge-demo-2"].previewerProps,a.a.createElement(c,null)),a.a.createElement("div",{className:"markdown"},a.a.createElement("h3",{id:"have"},a.a.createElement(o["AnchorLink"],{to:"#have","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"have()"),a.a.createElement("p",null,"\u5224\u65ad\u6709\u6ca1\u6709\u8fd9\u4e2a\u89c4\u683c\u7684\u5546\u54c1\uff0c\u8fd4\u56de\u5e03\u5c14\u503c\u3002")),a.a.createElement(i["default"],t["CombJudge-demo-3"].previewerProps,a.a.createElement(u,null)),a.a.createElement("div",{className:"markdown"},a.a.createElement("h3",{id:"find"},a.a.createElement(o["AnchorLink"],{to:"#find","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"find()"),a.a.createElement("p",null,"\u67e5\u627e\u5339\u914d\u5546\u54c1\u3002\u5982\u679c\u627e\u5230\u4e86\uff0c\u5c31\u8fd4\u56de\u5546\u54c1\u6807\u8bc6\uff08\u5546\u54c1\u4e3a\u6570\u7ec4\u5219\u8fd4\u56de\u6570\u7ec4\u7d22\u5f15 index\uff09\uff1b\u5982\u679c\u6ca1\u627e\u5230\uff0c\u5219\u8fd4\u56de undefined \u3002")),a.a.createElement(i["default"],t["CombJudge-demo-4"].previewerProps,a.a.createElement(s,null)),a.a.createElement("div",{className:"markdown"},a.a.createElement("h3",{id:"adaptedattr"},a.a.createElement(o["AnchorLink"],{to:"#adaptedattr","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"adaptedAttr()"),a.a.createElement("p",null,"\u5224\u65ad\u5c5e\u6027\u53ef\u7528\u6027")),a.a.createElement(i["default"],t["CombJudge-demo-5"].previewerProps,a.a.createElement(f,null)),a.a.createElement("div",{className:"markdown"},a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["CombJudge-demo-6"].previewerProps,a.a.createElement(d,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},u6Sb:function(e,t,n){"use strict";function r(){var e=o(n("nNWW"));return r=function(){return e},e}function a(){var e=n("Gdey");return a=function(){return e},e}function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n3&&void 0!==arguments[3]?arguments[3]:0;if(o{var t=e.demos,n=t["first-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"first"},a.a.createElement(o["AnchorLink"],{to:"#first","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"first"),a.a.createElement("p",null,"\u53d6\u9996\u4e2a\u503c\uff0c\u53ef\u7528\u4e8e\u5bf9\u8c61\u6216\u6570\u7ec4\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"const first: (value: any[] | Object) => T",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value \u6e90\u96c6\u5408")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u5982\u679c ",a.a.createElement("code",null,"value \u6e90\u96c6\u5408")," \u4e3a\u6570\u7ec4\uff0c\u8fd4\u56de\u6570\u7ec4\u7684\u7b2c\u4e00\u4e2a\u5143\u7d20\u3002"),a.a.createElement("li",null,"\u5982\u679c ",a.a.createElement("code",null,"value \u6e90\u96c6\u5408")," \u4e3a\u5bf9\u8c61\uff0c\u8fd4\u56de\u5bf9\u8c61\u7684\u7b2c\u4e00\u4e2a\u5c5e\u6027\u7684\u503c\u3002")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"const a = [1, 2, 3, 4]\n\nfirst(a) // 1",lang:"javascript"})),a.a.createElement(i["default"],t["first-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},"uF/W":function(e,t,n){var r=n("6SQG"),a=n("MZA9"),o=n("oEsY"),i=n("jukf"),l=n("piBM"),c=n("uJNS"),u=c.get,s=c.enforce,f=String(String).split("String");(e.exports=function(e,t,n,l){var c=!!l&&!!l.unsafe,u=!!l&&!!l.enumerable,d=!!l&&!!l.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||a(n,"name",t),s(n).source=f.join("string"==typeof t?t:"")),e!==r?(c?!d&&e[t]&&(u=!0):delete e[t],u?e[t]=n:a(e,t,n)):u?e[t]=n:i(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||l(this)}))},uJNS:function(e,t,n){var r,a,o,i=n("qbEc"),l=n("6SQG"),c=n("x+sk"),u=n("MZA9"),s=n("oEsY"),f=n("8i6t"),d=n("Y3cF"),p=l.WeakMap,m=function(e){return o(e)?a(e):r(e,{})},h=function(e){return function(t){var n;if(!c(t)||(n=a(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(i){var v=new p,g=v.get,y=v.has,b=v.set;r=function(e,t){return b.call(v,e,t),t},a=function(e){return g.call(v,e)||{}},o=function(e){return y.call(v,e)}}else{var E=f("state");d[E]=!0,r=function(e,t){return u(e,E,t),t},a=function(e){return s(e,E)?e[E]:{}},o=function(e){return s(e,E)}}e.exports={set:r,get:a,has:o,enforce:m,getterFor:h}},uKmp:function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"uZx/":function(e,t,n){var r=n("sErw"),a=n("dwb6"),o=n("upgS"),i=n("v3z7"),l=n("MI4T"),c=n("pKuQ"),u=function(e,t){this.stopped=e,this.result=t},s=e.exports=function(e,t,n,s,f){var d,p,m,h,v,g,y,b=i(t,n,s?2:1);if(f)d=e;else{if(p=l(e),"function"!=typeof p)throw TypeError("Target is not iterable");if(a(p)){for(m=0,h=o(e.length);h>m;m++)if(v=s?b(r(y=e[m])[0],y[1]):b(e[m]),v&&v instanceof u)return v;return new u(!1)}d=p.call(e)}g=d.next;while(!(y=g.call(d)).done)if(v=c(d,b,y.value,s),"object"==typeof v&&v&&v instanceof u)return v;return new u(!1)};s.stop=function(e){return new u(!0,e)}},ukK5:function(e,t,n){var r=n("OOCw"),a=n("VqGX");r({global:!0,forced:parseInt!=a},{parseInt:a})},upgS:function(e,t,n){var r=n("ANLo"),a=Math.min;e.exports=function(e){return e>0?a(r(e),9007199254740991):0}},v1go:function(e,t,n){"use strict";var r=n("OOCw"),a=n("6ssM").f,o=n("upgS"),i=n("SD1J"),l=n("z43i"),c=n("TxDi"),u=n("qyeh"),s="".endsWith,f=Math.min,d=c("endsWith"),p=!u&&!d&&!!function(){var e=a(String.prototype,"endsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!p&&!d},{endsWith:function(e){var t=String(l(this));i(e);var n=arguments.length>1?arguments[1]:void 0,r=o(t.length),a=void 0===n?r:f(o(n),r),c=String(e);return s?s.call(t,c,a):t.slice(a-c.length,a)===c}})},v3z7:function(e,t,n){var r=n("lkgX");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)}}return function(){return e.apply(t,arguments)}}},vEbx:function(e,t,n){var r=n("oEsY"),a=n("684d"),o=n("YfbA").indexOf,i=n("Y3cF");e.exports=function(e,t){var n,l=a(e),c=0,u=[];for(n in l)!r(i,n)&&r(l,n)&&u.push(n);while(t.length>c)r(l,n=t[c++])&&(~o(u,n)||u.push(n));return u}},vMeL:function(e,t,n){var r=n("6SQG"),a=n("h+/6"),o=n("eW2S"),i=n("g0pg").NATIVE_ARRAY_BUFFER_VIEWS,l=r.ArrayBuffer,c=r.Int8Array;e.exports=!i||!a((function(){c(1)}))||!a((function(){new c(-1)}))||!o((function(e){new c,new c(null),new c(1.5),new c(e)}),!0)||a((function(){return 1!==new c(new l(2),1,void 0).length}))},vRqM:function(e,t,n){"use strict";var r=n("OOCw"),a=n("CsJM").trim,o=n("tSnU");r({target:"String",proto:!0,forced:o("trim")},{trim:function(){return a(this)}})},vSpU:function(e,t,n){"use strict";var r=n("OOCw"),a=n("dz2h"),o=n("zesz"),i=n("d8EH"),l=n("nBeg"),c=n("MZA9"),u=n("uF/W"),s=n("3Hes"),f=n("qyeh"),d=n("AnAv"),p=n("WkS0"),m=p.IteratorPrototype,h=p.BUGGY_SAFARI_ITERATORS,v=s("iterator"),g="keys",y="values",b="entries",E=function(){return this};e.exports=function(e,t,n,s,p,w,x){a(n,t,s);var k,S,O,A=function(e){if(e===p&&P)return P;if(!h&&e in N)return N[e];switch(e){case g:return function(){return new n(this,e)};case y:return function(){return new n(this,e)};case b:return function(){return new n(this,e)}}return function(){return new n(this)}},j=t+" Iterator",C=!1,N=e.prototype,T=N[v]||N["@@iterator"]||p&&N[p],P=!h&&T||A(p),_="Array"==t&&N.entries||T;if(_&&(k=o(_.call(new e)),m!==Object.prototype&&k.next&&(f||o(k)===m||(i?i(k,m):"function"!=typeof k[v]&&c(k,v,E)),l(k,j,!0,!0),f&&(d[j]=E))),p==y&&T&&T.name!==y&&(C=!0,P=function(){return T.call(this)}),f&&!x||N[v]===P||c(N,v,P),d[t]=P,p)if(S={values:A(y),keys:w?P:A(g),entries:A(b)},x)for(O in S)(h||C||!(O in N))&&u(N,O,S[O]);else r({target:t,proto:!0,forced:h||C},S);return S}},vViN:function(e,t,n){var r=n("//kW");e.exports=function(e,t){var n=r(e);if(n%t)throw RangeError("Wrong offset");return n}},vfR7:function(e,t,n){var r=n("ANLo"),a=n("z43i"),o=function(e){return function(t,n){var o,i,l=String(a(t)),c=r(n),u=l.length;return c<0||c>=u?e?"":void 0:(o=l.charCodeAt(c),o<55296||o>56319||c+1===u||(i=l.charCodeAt(c+1))<56320||i>57343?e?l.charAt(c):o:e?l.slice(c,c+2):i-56320+(o-55296<<10)+65536)}};e.exports={codeAt:o(!1),charAt:o(!0)}},"vh/W":function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},vhgi:function(e,t){(function(t){e.exports=function(){var e={311:function(e){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}}},n={};function r(t){if(n[t])return n[t].exports;var a=n[t]={exports:{}},o=!0;try{e[t](a,a.exports,r),o=!1}finally{o&&delete n[t]}return a.exports}return r.ab=t+"/",r(311)}()}).call(this,"/")},vmLw:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["isPromiseLike-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"ispromiselike"},a.a.createElement(o["AnchorLink"],{to:"#ispromiselike","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isPromiseLike"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a Promise \u5bf9\u8c61\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isPromiseLike: (value: any) => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value \uff0c\u8981\u5224\u65ad\u7684\u6570\u636e")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u662f Promise \u5bf9\u8c61"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u4e0d\u662f Promise \u5bf9\u8c61")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isPromiseLike-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},vqhe:function(e,t,n){"use strict";var r=n("OOCw"),a=n("YfbA").indexOf,o=n("rUEg"),i=n("7/pz"),l=[].indexOf,c=!!l&&1/[1].indexOf(1,-0)<0,u=o("indexOf"),s=i("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:c||!u||!s},{indexOf:function(e){return c?l.apply(this,arguments)||0:a(this,e,arguments.length>1?arguments[1]:void 0)}})},vzSZ:function(e,t,n){"use strict";var r=n("vh/W"),a=n("V6CC"),o=n("2E/K"),i=n("ME80"),l=n("nNWW"),c=n("sgiM"),u=n("8DO7"),s=n("BRxd"),f=n.n(s),d=n("gmW1");function p(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function m(e,t){var n={animationend:p("Animation","AnimationEnd"),transitionend:p("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var h=m(Object(d["a"])(),"undefined"!==typeof window?window:{}),v={};if(Object(d["a"])()){var g=document.createElement("div");v=g.style}var y={};function b(e){if(y[e])return y[e];var t=h[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a1&&void 0!==arguments[1]?arguments[1]:2;t();var o=Object(L["a"])((function(){a<=1?r({isCanceled:function(){return o!==e.current}}):n(r,a-1)}));e.current=o}return l["useEffect"]((function(){return function(){t()}}),[]),[n,t]},M=Object(d["a"])()?l["useLayoutEffect"]:l["useEffect"],z=M,W=[P,_,D,I],B=!1,U=!0;function G(e){return e===D||e===I}var J=function(e,t){var n=Object(F["a"])(T),r=Object(o["a"])(n,2),a=r[0],i=r[1],c=R(),u=Object(o["a"])(c,2),s=u[0],f=u[1];function d(){i(P,!0)}return z((function(){if(a!==T&&a!==I){var e=W.indexOf(a),n=W[e+1],r=t(a);r===B?i(n,!0):s((function(e){function t(){e.isCanceled()||i(n,!0)}!0===r?t():Promise.resolve(r).then(t)}))}}),[e,a]),l["useEffect"]((function(){return function(){f()}}),[]),[d,a]},H=function(e){var t=Object(l["useRef"])(),n=Object(l["useRef"])(e);n.current=e;var r=l["useCallback"]((function(e){n.current(e)}),[]);function a(e){e&&(e.removeEventListener(S,r),e.removeEventListener(k,r))}function o(e){t.current&&t.current!==e&&a(t.current),e&&e!==t.current&&(e.addEventListener(S,r),e.addEventListener(k,r),t.current=e)}return l["useEffect"]((function(){return function(){a(t.current)}}),[]),[o,a]};function K(e,t,n,i){var c=i.motionEnter,u=void 0===c||c,s=i.motionAppear,f=void 0===s||s,d=i.motionLeave,p=void 0===d||d,m=i.motionDeadline,h=i.motionLeaveImmediately,v=i.onAppearPrepare,g=i.onEnterPrepare,y=i.onLeavePrepare,b=i.onAppearStart,E=i.onEnterStart,w=i.onLeaveStart,x=i.onAppearActive,k=i.onEnterActive,S=i.onLeaveActive,O=i.onAppearEnd,T=i.onEnterEnd,I=i.onLeaveEnd,L=i.onVisibleChanged,R=Object(F["a"])(),M=Object(o["a"])(R,2),W=M[0],K=M[1],V=Object(F["a"])(A),q=Object(o["a"])(V,2),$=q[0],X=q[1],Q=Object(F["a"])(null),Y=Object(o["a"])(Q,2),Z=Y[0],ee=Y[1],te=Object(l["useRef"])(!1),ne=Object(l["useRef"])(null);function re(){return n()}var ae=Object(l["useRef"])(!1);function oe(e){var t=re();if(!e||e.deadline||e.target===t){var n,r=ae.current;$===j&&r?n=null===O||void 0===O?void 0:O(t,e):$===C&&r?n=null===T||void 0===T?void 0:T(t,e):$===N&&r&&(n=null===I||void 0===I?void 0:I(t,e)),$!==A&&r&&!1!==n&&(X(A,!0),ee(null,!0))}}var ie=H(oe),le=Object(o["a"])(ie,1),ce=le[0],ue=l["useMemo"]((function(){var e,t,n;switch($){case j:return e={},Object(r["a"])(e,P,v),Object(r["a"])(e,_,b),Object(r["a"])(e,D,x),e;case C:return t={},Object(r["a"])(t,P,g),Object(r["a"])(t,_,E),Object(r["a"])(t,D,k),t;case N:return n={},Object(r["a"])(n,P,y),Object(r["a"])(n,_,w),Object(r["a"])(n,D,S),n;default:return{}}}),[$]),se=J($,(function(e){if(e===P){var t=ue[P];return t?t(re()):B}var n;pe in ue&&ee((null===(n=ue[pe])||void 0===n?void 0:n.call(ue,re(),null))||null);return pe===D&&(ce(re()),m>0&&(clearTimeout(ne.current),ne.current=setTimeout((function(){oe({deadline:!0})}),m))),U})),fe=Object(o["a"])(se,2),de=fe[0],pe=fe[1],me=G(pe);ae.current=me,z((function(){K(t);var n,r=te.current;(te.current=!0,e)&&(!r&&t&&f&&(n=j),r&&t&&u&&(n=C),(r&&!t&&p||!r&&h&&!t&&p)&&(n=N),n&&(X(n),de()))}),[t]),Object(l["useEffect"])((function(){($===j&&!f||$===C&&!u||$===N&&!p)&&X(A)}),[f,u,p]),Object(l["useEffect"])((function(){return function(){te.current=!1,clearTimeout(ne.current)}}),[]);var he=l["useRef"](!1);Object(l["useEffect"])((function(){W&&(he.current=!0),void 0!==W&&$===A&&((he.current||W)&&(null===L||void 0===L||L(W)),he.current=!0)}),[W,$]);var ve=Z;return ue[P]&&pe===_&&(ve=Object(a["a"])({transition:"none"},ve)),[$,pe,ve,null!==W&&void 0!==W?W:t]}var V=n("p4sU"),q=n("asw4"),$=n("sLj8"),X=n("qAhB"),Q=function(e){Object($["a"])(n,e);var t=Object(X["a"])(n);function n(){return Object(V["a"])(this,n),t.apply(this,arguments)}return Object(q["a"])(n,[{key:"render",value:function(){return this.props.children}}]),n}(l["Component"]),Y=Q;function Z(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===Object(i["a"])(e)&&(t=e.transitionSupport);var s=l["forwardRef"]((function(e,t){var i=e.visible,s=void 0===i||i,d=e.removeOnLeave,p=void 0===d||d,m=e.forceRender,h=e.children,v=e.motionName,g=e.leavedClassName,y=e.eventProps,b=n(e),E=Object(l["useRef"])(),w=Object(l["useRef"])();function x(){try{return E.current instanceof HTMLElement?E.current:Object(c["a"])(w.current)}catch(e){return null}}var k=K(b,s,x,e),S=Object(o["a"])(k,4),j=S[0],C=S[1],N=S[2],T=S[3],D=l["useRef"](T);T&&(D.current=!0);var I,F=l["useCallback"]((function(e){E.current=e,Object(u["b"])(t,e)}),[t]),L=Object(a["a"])(Object(a["a"])({},y),{},{visible:s});if(h)if(j!==A&&n(e)){var R,M;C===P?M="prepare":G(C)?M="active":C===_&&(M="start"),I=h(Object(a["a"])(Object(a["a"])({},L),{},{className:f()(O(v,j),(R={},Object(r["a"])(R,O(v,"".concat(j,"-").concat(M)),M),Object(r["a"])(R,v,"string"===typeof v),R)),style:N}),F)}else I=T?h(Object(a["a"])({},L),F):!p&&D.current?h(Object(a["a"])(Object(a["a"])({},L),{},{className:g}),F):m?h(Object(a["a"])(Object(a["a"])({},L),{},{style:{display:"none"}}),F):null;else I=null;if(l["isValidElement"](I)&&Object(u["c"])(I)){var z=I,W=z.ref;W||(I=l["cloneElement"](I,{ref:F}))}return l["createElement"](Y,{ref:w},I)}));return s.displayName="CSSMotion",s}var ee=Z(x),te=n("973d"),ne=n("jtnu"),re="add",ae="keep",oe="remove",ie="removed";function le(e){var t;return t=e&&"object"===Object(i["a"])(e)&&"key"in e?e:{key:e},Object(a["a"])(Object(a["a"])({},t),{},{key:String(t.key)})}function ce(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(le)}function ue(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=ce(e),l=ce(t);i.forEach((function(e){for(var t=!1,i=r;i1}));return u.forEach((function(e){n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==oe})),n.forEach((function(t){t.key===e&&(t.status=ae)}))})),n}var se=["component","children","onVisibleChanged","onAllRemoved"],fe=["status"],de=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function pe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ee,n=function(e){Object($["a"])(r,e);var n=Object(X["a"])(r);function r(){var e;Object(V["a"])(this,r);for(var t=arguments.length,o=new Array(t),i=0;i{e.demos;return a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"\u8f85\u52a9\u5de5\u5177\u5e93"},a.a.createElement(o["AnchorLink"],{to:"#\u8f85\u52a9\u5de5\u5177\u5e93","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8f85\u52a9\u5de5\u5177\u5e93"),a.a.createElement("h2",{id:"\u5b89\u88c5"},a.a.createElement(o["AnchorLink"],{to:"#\u5b89\u88c5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u5b89\u88c5"),a.a.createElement(i["a"],{code:"pnpm add @fexd/tools\n# or\nyarn add @fexd/tools\n# or\nnpm install @fexd/tools",lang:"bash"}),a.a.createElement("h2",{id:"\u7528\u6cd5\u793a\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u7528\u6cd5\u793a\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u7528\u6cd5\u793a\u4f8b"),a.a.createElement(i["a"],{code:"import { isArray } from '@fexd/tools'",lang:"js"}),a.a.createElement("h2",{id:"\u6309\u9700\u52a0\u8f7d"},a.a.createElement(o["AnchorLink"],{to:"#\u6309\u9700\u52a0\u8f7d","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u6309\u9700\u52a0\u8f7d"),a.a.createElement("p",null,"\u914d\u5408 ",a.a.createElement(o["Link"],{to:"https://github.com/ant-design/babel-plugin-import"},"babel-plugin-import")," \u5b9e\u73b0\u6309\u9700\u52a0\u8f7d\uff0c\u9700\u5c06 ",a.a.createElement("code",null,"camel2DashComponentName")," \u914d\u7f6e\u5173\u95ed"),a.a.createElement(i["a"],{code:"// babel.config.js\nmodule.exports = {\n plugins: [\n [\n 'babel-plugin-import',\n {\n libraryName: '@fexd/tools',\n camel2DashComponentName: false,\n },\n ],\n ],\n}",lang:"js"}),a.a.createElement("h2",{id:"\u5bfc\u51fa\u7684\u65b9\u6cd5\u6709\u4ee5\u4e0b"},a.a.createElement(o["AnchorLink"],{to:"#\u5bfc\u51fa\u7684\u65b9\u6cd5\u6709\u4ee5\u4e0b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u5bfc\u51fa\u7684\u65b9\u6cd5\u6709\u4ee5\u4e0b"),a.a.createElement(i["a"],{code:"export {\n CombJudge, // \u7ec4\u5408\u5224\u65ad\u5668\n EventBus, // EventBus\n FrameProcess, // \u5e27\u8fdb\u7a0b\uff0c\u7528\u4e8e\u5236\u4f5c\u52a8\u753b\n I18n, // i18nshell \u5de5\u5177\u539f\u578b\uff0c\u591a\u8bed\u8a00\u5de5\u5177\u5305\n SAS, // [\u5355\u54a8\u8be2\u670d\u52a1] Single Advisory Service \u540c\u4e00\u65f6\u523b\u5bf9\u540c\u4e00\u5f02\u6b65\u8bf7\u6c42\u8fdb\u884c\u7edf\u4e00\u7b49\u5f85\uff0c\u4e0d\u91cd\u590d\u53d1\u8d77\n ScrollListener, // \u6eda\u52a8\u76d1\u542c\n Tween, // \u7f13\u52a8\u51fd\u6570\u5de5\u5177\n __, // \u81ea\u7531\u67ef\u91cc\u5316\n capitalize, // \u9996\u5b57\u6bcd\u5927\u5199\n clamp, // \u6570\u503c\u8303\u56f4\u9650\u5b9a\n classnames, // classnames \u5e93\u7684\u81ea\u5b9e\u73b0\n copy, // \u590d\u5236\u7c98\u8d34\n curry, // \u67ef\u91cc\u5316\n debounce, // \u9632\u6296\n defaultFrameProcess, // \u9ed8\u8ba4\u5e27\u8fdb\u7a0b\n delay, // \u5ef6\u65f6 Promise\n first, // \u53d6\u9996\u4e2a\u503c\uff0c\u53ef\u7528\u4e8e\u5bf9\u8c61\u6216\u6570\u7ec4\n flatten, // \u6570\u7ec4\u62cd\u5e73\n get, // \u65e0\u75db\u53d6\u503c\uff0c\u540c ?. \u7b97\u7b26\n getFormatter, // \u683c\u5f0f\u5316\u5de5\u5177\n globalThis, // globalThis\n groupBy, // \u5bf9\u6570\u7ec4\u8fdb\u884c\u5f52\u7c7b\u5904\u7406\n intersection, // \u4ea4\u96c6\n isAndroid, // \u662f\u5426\u5b89\u5353\u73af\u5883\n isArray, // \u662f\u5426\u6570\u7ec4\n isBoolean, // \u662f\u5426 Boolean\n isDate, // \u662f\u5426\u65e5\u671f\u7c7b\u578b\n isDesktop, // \u662f\u5426\u684c\u9762\u7aef\uff08PC\uff09\n isError, // \u662f\u5426\u9519\u8bef\u7c7b\u578b\n isExist, // \u662f\u5426\u5b58\u5728\uff08\u975e undefined / null\uff09\n isFunction, // \u662f\u5426\u51fd\u6570\u7c7b\u578b\n isIOS, // \u662f\u5426 iOS \u73af\u5883\n isMobile, // \u662f\u5426\u79fb\u52a8\u7aef\n isNaN, // \u662f\u5426 NaN\n isNull, // \u662f\u5426 Null\n isNumber, // \u662f\u5426\u6570\u5b57\u7c7b\u578b\n isObject, // \u662f\u5426\u5bf9\u8c61\uff08Array \u4e0d\u7b97\uff09\n isPromiseLike, // \u662f\u5426 PromiseLike\n isString, // \u662f\u5426\u5b57\u7b26\u4e32\n isUndefined, // \u662f\u5426 undefined\n isWKWebview, // \u662f\u5426 WKWebview \u73af\u5883\n last, // \u53d6\u9996\u672b\u5c3e\uff0c\u53ef\u7528\u4e8e\u5bf9\u8c61\u6216\u6570\u7ec4\n lock, // \u81ea\u9501\u51fd\u6570\n memoize, // \u8bb0\u5fc6\u51fd\u6570\n nextTick, // nextTick \u7684\u5ba2\u6237\u7aef\u5b9e\u73b0\n pick, // \u9009\u503c\u51fd\u6570\n pickBy, // \u81ea\u5b9a\u4e49\u9009\u503c\u51fd\u6570\n pipe, // \u7ba1\u9053\u51fd\u6570\uff0c\u540c |> \u7b97\u7b26\n preloadImage, // \u9884\u6e32\u67d3\u6307\u5b9a\u56fe\u7247\n promiseGuess, // \u667a\u80fd\u5904\u7406 Promise \u7c7b\u578b\u8fd4\u56de\u503c\n qs, // qs \u5e93\u7b80\u6613\u5b9e\u73b0\n random, // \u968f\u673a\u51fd\u6570\n run, // \u65e0\u75db\u8fd0\u884c\n sample, // \u6837\u672c\u51fd\u6570\n set, // \u65e0\u75db\u5c5e\u6027\u8bbe\u7f6e\n source, // \u5728\u7ebf\u8d44\u6e90\u52a0\u8f7d\n storage, // storage \u5b58\u53d6\n throttle, // \u8282\u6d41\n uniqByKey, // \u53bb\u91cd\n url, // url \u53c2\u6570\u53d6\u503c\n value, // \u503c\u9009\u62e9\uff0c\u540c ?? \u7b97\u7b26\n}",lang:"js"}),a.a.createElement(i["a"],{code:"import './layout.less'",lang:"js"})))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(l,{demos:n})}},wWVk:function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}e.exports=n},"x+sk":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},x1LQ:function(e,t,n){"use strict";var r=n("g0pg").exportTypedArrayMethod,a=n("h+/6"),o=n("6SQG"),i=o.Uint8Array,l=i&&i.prototype||{},c=[].toString,u=[].join;a((function(){c.call({})}))&&(c=function(){return u.call(this)});var s=l.toString!=c;r("toString",c,s)},x1fj:function(e,t,n){var r=n("290e")["default"];function a(){"use strict";e.exports=a=function(){return t},e.exports.__esModule=!0,e.exports["default"]=e.exports;var t={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},l=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(N){s=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var a=t&&t.prototype instanceof m?t:m,o=Object.create(a.prototype),i=new A(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return C()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var l=k(i,n);if(l){if(l===p)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=d(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,i),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(N){return{type:"throw",arg:N}}}t.wrap=f;var p={};function m(){}function h(){}function v(){}var g={};s(g,l,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(j([])));b&&b!==n&&o.call(b,l)&&(g=b);var E=v.prototype=m.prototype=Object.create(g);function w(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,i,l,c){var u=d(e[a],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==r(f)&&o.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,l,c)}),(function(e){n("throw",e,l,c)})):t.resolve(f).then((function(e){s.value=e,l(s)}),(function(e){return n("throw",e,l,c)}))}c(u.arg)}var a;this._invoke=function(e,r){function o(){return new t((function(t,a){n(e,r,t,a)}))}return a=a?a.then(o,o):o()}}function k(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=d(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function j(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n=0;--r){var a=this.tryEntries[r],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;O(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:j(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},t}e.exports=a,e.exports.__esModule=!0,e.exports["default"]=e.exports},x2v5:function(e){e.exports=JSON.parse("{}")},xEA5:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["isFunction-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"isfunction"},a.a.createElement(o["AnchorLink"],{to:"#isfunction","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isFunction"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a\u51fd\u6570\u7c7b\u578b\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isFunction: (value: any) => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value \uff0c\u8981\u5224\u65ad\u7684\u6570\u636e")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u662f\u51fd\u6570\u7c7b\u578b"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u4e0d\u662f\u51fd\u6570\u7c7b\u578b")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isFunction-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},xMG8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=n("75i3"),a=n("klMd"),o=(0,a.LinkWrapper)(r.NavLink);t["default"]=o},xTvi:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("sErw"),i=n("v3z7"),l=n("R8Xy"),c=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:a},{some:function(e){var t=o(this),n=l(t),r=i(e,arguments.length>1?arguments[1]:void 0,3);return c(n,(function(e){if(r(e,e,t))return c.stop()}),void 0,!1,!0).stopped}})},xUjK:function(e,t,n){},xiuu:function(e,t,n){"use strict";var r=n("vMeL"),a=n("g0pg").exportTypedArrayStaticMethod,o=n("N0ls");a("from",o,r)},xuOn:function(e,t,n){var r=n("QzCP"),a="__lodash_hash_undefined__",o=Object.prototype,i=o.hasOwnProperty;function l(e){var t=this.__data__;if(r){var n=t[e];return n===a?void 0:n}return i.call(t,e)?t[e]:void 0}e.exports=l},xut5:function(e,t,n){var r=n("OOCw"),a=n("VqGX");r({target:"Number",stat:!0,forced:Number.parseInt!=a},{parseInt:a})},"xy/A":function(e,t,n){"use strict";var r=n("6SQG"),a=n("r+6h"),o=n("78S/"),i=n("MZA9"),l=n("TxBV"),c=n("h+/6"),u=n("CZSf"),s=n("ANLo"),f=n("upgS"),d=n("G2F8"),p=n("/fpf"),m=n("zesz"),h=n("d8EH"),v=n("lFeU").f,g=n("0JbB").f,y=n("5ilB"),b=n("nBeg"),E=n("uJNS"),w=E.get,x=E.set,k="ArrayBuffer",S="DataView",O="prototype",A="Wrong length",j="Wrong index",C=r[k],N=C,T=r[S],P=T&&T[O],_=Object.prototype,D=r.RangeError,I=p.pack,F=p.unpack,L=function(e){return[255&e]},R=function(e){return[255&e,e>>8&255]},M=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},z=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},W=function(e){return I(e,23,4)},B=function(e){return I(e,52,8)},U=function(e,t){g(e[O],t,{get:function(){return w(this)[t]}})},G=function(e,t,n,r){var a=d(n),o=w(e);if(a+t>o.byteLength)throw D(j);var i=w(o.buffer).bytes,l=a+o.byteOffset,c=i.slice(l,l+t);return r?c:c.reverse()},J=function(e,t,n,r,a,o){var i=d(n),l=w(e);if(i+t>l.byteLength)throw D(j);for(var c=w(l.buffer).bytes,u=i+l.byteOffset,s=r(+a),f=0;fq;)(H=V[q++])in N||i(N,H,C[H]);K.constructor=N}h&&m(P)!==_&&h(P,_);var $=new T(new N(2)),X=P.setInt8;$.setInt8(0,2147483648),$.setInt8(1,2147483649),!$.getInt8(0)&&$.getInt8(1)||l(P,{setInt8:function(e,t){X.call(this,e,t<<24>>24)},setUint8:function(e,t){X.call(this,e,t<<24>>24)}},{unsafe:!0})}else N=function(e){u(this,N,k);var t=d(e);x(this,{bytes:y.call(new Array(t),0),byteLength:t}),a||(this.byteLength=t)},T=function(e,t,n){u(this,T,S),u(e,N,S);var r=w(e).byteLength,o=s(t);if(o<0||o>r)throw D("Wrong offset");if(n=void 0===n?r-o:f(n),o+n>r)throw D(A);x(this,{buffer:e,byteLength:n,byteOffset:o}),a||(this.buffer=e,this.byteLength=n,this.byteOffset=o)},a&&(U(N,"byteLength"),U(T,"buffer"),U(T,"byteLength"),U(T,"byteOffset")),l(T[O],{getInt8:function(e){return G(this,1,e)[0]<<24>>24},getUint8:function(e){return G(this,1,e)[0]},getInt16:function(e){var t=G(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=G(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return z(G(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return z(G(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return F(G(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return F(G(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){J(this,1,e,L,t)},setUint8:function(e,t){J(this,1,e,L,t)},setInt16:function(e,t){J(this,2,e,R,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){J(this,2,e,R,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){J(this,4,e,M,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){J(this,4,e,M,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){J(this,4,e,W,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){J(this,8,e,B,t,arguments.length>2?arguments[2]:void 0)}});b(N,k),b(T,S),e.exports={ArrayBuffer:N,DataView:T}},"y2+G":function(e,t,n){var r=n("684d"),a=n("lFeU").f,o={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return a(e)}catch(t){return i.slice()}};e.exports.f=function(e){return i&&"[object Window]"==o.call(e)?l(e):a(r(e))}},y3he:function(e,t,n){"use strict";var r=n("OOCw"),a=n("CsJM").end,o=n("tSnU"),i=o("trimEnd"),l=i?function(){return a(this)}:"".trimEnd;r({target:"String",proto:!0,forced:i},{trimEnd:l,trimRight:l})},yA6K:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["isUndefined-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"isundefined"},a.a.createElement(o["AnchorLink"],{to:"#isundefined","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isUndefined"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a undefined \u7c7b\u578b\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isUndefined: (value: any) => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value \uff0c\u8981\u5224\u65ad\u7684\u6570\u636e")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u662f NaN \u7c7b\u578b"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u4e0d\u662f NaN \u7c7b\u578b")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isUndefined-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},yFoN:function(e,t,n){var r=n("OOCw");r({target:"Math",stat:!0},{signbit:function(e){return(e=+e)==e&&0==e?1/e==-1/0:e<0}})},yJKb:function(e,t,n){var r=n("eyaU"),a=n("lFeU"),o=n("AG0a"),i=n("sErw");e.exports=r("Reflect","ownKeys")||function(e){var t=a.f(i(e)),n=o.f;return n?t.concat(n(e)):t}},yh5g:function(e,t,n){"use strict";function r(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}}r(),e.exports=n("Z4n3")},yh5m:function(e,t,n){var r=n("OOCw"),a=n("eyaU"),o=n("lkgX"),i=n("sErw"),l=n("x+sk"),c=n("QWtl"),u=n("Wldj"),s=n("h+/6"),f=a("Reflect","construct"),d=s((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),p=!s((function(){f((function(){}))})),m=d||p;r({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(e,t){o(e),i(t);var n=arguments.length<3?e:o(arguments[2]);if(p&&!d)return f(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(u.apply(e,r))}var a=n.prototype,s=c(l(a)?a:Object.prototype),m=Function.apply.call(e,s,t);return l(m)?m:s}})},ylpK:function(e,t,n){"use strict";function r(){var e=n("nNWW");return r=function(){return e},e}function a(){var e=o(n("Qkfr"));return a=function(){return e},e}function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){return f(e)||s(e,t)||c(e,t)||l()}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){if(e){if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?arguments[1]:void 0,3);return c(n,(function(e,n){if(r(n,e,t))return c.stop()}),void 0,!0,!0).stopped}})},zyZy:function(e,t,n){"use strict";var r=n("tSbI"),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function u(e){return r.isMemo(e)?l:c[e["$$typeof"]]||a}c[r.ForwardRef]=i,c[r.Memo]=l;var s=Object.defineProperty,f=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,h=Object.prototype;function v(e,t,n){if("string"!==typeof t){if(h){var r=m(t);r&&r!==h&&v(e,r,n)}var a=f(t);d&&(a=a.concat(d(t)));for(var i=u(e),l=u(t),c=0;c1?arguments[1]:void 0,3);return c(n,(function(e){if(r(e,e,t))return c.stop(e)}),void 0,!1,!0).result}})},"+U9+":function(e,t,n){var r=n("PORw"),a=n("PWyJ"),o="[object AsyncFunction]",i="[object Function]",l="[object GeneratorFunction]",c="[object Proxy]";function u(e){if(!a(e))return!1;var t=r(e);return t==i||t==l||t==o||t==c}e.exports=u},"+ock":function(e,t,n){"use strict";var r=n("uF/W"),a=n("sErw"),o=n("h+/6"),i=n("rfqm"),l="toString",c=RegExp.prototype,u=c[l],s=o((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),f=u.name!=l;(s||f)&&r(RegExp.prototype,l,(function(){var e=a(this),t=String(e.source),n=e.flags,r=String(void 0===n&&e instanceof RegExp&&!("flags"in c)?i.call(e):n);return"/"+t+"/"+r}),{unsafe:!0})},"//kW":function(e,t,n){var r=n("ANLo");e.exports=function(e){var t=r(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},"/0hc":function(e,t,n){},"/1uK":function(e,t,n){"use strict";var r=n("OOCw"),a=n("Us7a").end,o=n("SRer");r({target:"String",proto:!0,forced:o},{padEnd:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},"/383":function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["url-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"url"},a.a.createElement(o["AnchorLink"],{to:"#url","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"url"),a.a.createElement("p",null,"\u4e0e url \u76f8\u5173\u7684\u51fd\u6570\u96c6\u5408\uff0c\u53ef\u7528\u6765\u5feb\u6377\u83b7\u53d6 url \u76f8\u5173\u4fe1\u606f\u3001\u751f\u6210 url \u53c2\u6570\u7b49\u3002"),a.a.createElement("h2",{id:"url-\u91cc\u7684\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#url-\u91cc\u7684\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"url \u91cc\u7684\u53c2\u6570")),a.a.createElement(i["default"],t["url-demo"].previewerProps,a.a.createElement(n,null)),a.a.createElement("div",{className:"markdown"},a.a.createElement(l["a"],{code:"{\n allParam: function allParam(),\n allParamEscape: function allParamEscape(), // [\u5df2\u5e9f\u5f03\u7684unescape()]\n generateParamStr: function generateParamStr(paramObj),\n param: function param(name),\n paramEscape: function paramEscape, // [\u5df2\u5e9f\u5f03\u7684unescape()]\n}",lang:"js"}),a.a.createElement("h2",{id:"\u793a\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u793a\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u793a\u4f8b"),a.a.createElement("h3",{id:"urlallparam"},a.a.createElement(o["AnchorLink"],{to:"#urlallparam","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"url.allParam()"),a.a.createElement(l["a"],{code:"import { url } from '@fexd/tools'\n\nconst testUrl = 'http://www.test.com?id=2&name=1'\n\n// \u4ece\u5f53\u524d\u7684 url \u4e2d\u83b7\u53d6\u5230\u6240\u6709\u53c2\u6570\u3002\nconsole.log(url.allParam()) // {}\n\n// \u4f46\u4e3a\u4e86\u907f\u514d\u67d0\u79cd\u62ff\u4e0d\u5230\u7684\u573a\u666f\uff0c\u53ef\u5c06\u7b2c\u4e00\u4e2a\u53c2\u6570\u4f5c\u4e3a\u8981\u89e3\u6790\u53c2\u6570\u7684 url\u3002\nconsole.log(url.allParam(testUrl)) // {id: \"2\", name: \"1\"}",lang:"js"}),a.a.createElement("h3",{id:"urlparamname"},a.a.createElement(o["AnchorLink"],{to:"#urlparamname","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"url.param(name)"),a.a.createElement(l["a"],{code:"import { url } from '@fexd/tools'\n\n// \u4eceurl\u4e0a\u53bb\u83b7\u53d6 name \u53c2\u6570\u7684\u503c\nconsole.log(url.param('name')) // undefined\n\n// \u5982\u679c url \u4e3a \"http://www.test.com?id=2&name=1\" \u5c31\u80fd\u5f97\u5230 \"1\"",lang:"js"}),a.a.createElement("h3",{id:"urlgenerateparamstrparamobj"},a.a.createElement(o["AnchorLink"],{to:"#urlgenerateparamstrparamobj","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"url.generateParamStr(paramObj)"),a.a.createElement(l["a"],{code:"import { url } from '@fexd/tools'\n\n// \u5c06\u5bf9\u8c61\u751f\u6210\u8bf7\u6c42\u53c2\u6570\u683c\u5f0f\u7684\u5b57\u7b26\u4e32\nurl.generateParamStr({ name: 1 }) // ?name=1\nurl.generateParamStr({ id: 2, name: 1 }) // ?id=2&name=1",lang:"js"}),a.a.createElement("h3",{id:"urlparamescape-\u548c-urlallparamescape"},a.a.createElement(o["AnchorLink"],{to:"#urlparamescape-\u548c-urlallparamescape","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"url.paramEscape() \u548c url.allParamEscape()"),a.a.createElement(l["a"],{code:"import { url } from '@fexd/tools'\n\nconst testUrl = 'http://www.test.com?id=2&name=1'\n\n// \u4eceurl\u4e0a\u53bb\u83b7\u53d6\u53c2\u6570\nurl.paramEscape('name') // undefined\n\n// \u4eceurl\u4e0a\u53bb\u83b7\u53d6\u6240\u6709\u53c2\u6570\u7684\u503c\nurl.allParamEscape() // {}\n// \u4f46\u4e3a\u4e86\u907f\u514d\u67d0\u79cd\u62ff\u4e0d\u5230\u7684\u573a\u666f\uff0c\u53ef\u5c06\u7b2c\u4e00\u4e2a\u53c2\u6570\u4f5c\u4e3a\u8981\u89e3\u6790\u53c2\u6570\u7684 url\u3002\nurl.allParamEscape(testUrl) // {id: \"2\", name: \"1\"}",lang:"js"}))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},"/5AF":function(e,t,n){var r=n("ZGY3");r("flat")},"/7QA":function(e,t,n){"use strict";n.r(t),n.d(t,"easing",(function(){return v})),n.d(t,"CombJudge",(function(){return g})),n.d(t,"EventBus",(function(){return k})),n.d(t,"FrameProcess",(function(){return R})),n.d(t,"I18n",(function(){return ce})),n.d(t,"SAS",(function(){return pe})),n.d(t,"ScrollListener",(function(){return we})),n.d(t,"Tween",(function(){return Ae})),n.d(t,"__",(function(){return Ce})),n.d(t,"capitalize",(function(){return Ne})),n.d(t,"clamp",(function(){return xe})),n.d(t,"classnames",(function(){return _e})),n.d(t,"copy",(function(){return Ie})),n.d(t,"curry",(function(){return Le})),n.d(t,"debounce",(function(){return Me})),n.d(t,"deepMerge",(function(){return ne})),n.d(t,"delay",(function(){return We})),n.d(t,"first",(function(){return Ue})),n.d(t,"flatten",(function(){return Je})),n.d(t,"get",(function(){return N})),n.d(t,"getFormatter",(function(){return Ke})),n.d(t,"globalThis",(function(){return _["a"]})),n.d(t,"groupBy",(function(){return qe})),n.d(t,"intersection",(function(){return Ye})),n.d(t,"isAndroid",(function(){return tt})),n.d(t,"isArray",(function(){return G})),n.d(t,"isBoolean",(function(){return rt})),n.d(t,"isDate",(function(){return ot})),n.d(t,"isDesktop",(function(){return ct})),n.d(t,"isError",(function(){return ft})),n.d(t,"isExist",(function(){return ae})),n.d(t,"isFunction",(function(){return E})),n.d(t,"isIOS",(function(){return mt})),n.d(t,"isMobile",(function(){return vt})),n.d(t,"isNaN",(function(){return A})),n.d(t,"isNull",(function(){return H})),n.d(t,"isNumber",(function(){return C})),n.d(t,"isObject",(function(){return V})),n.d(t,"isPromiseLike",(function(){return ie})),n.d(t,"isString",(function(){return S})),n.d(t,"isUndefined",(function(){return x})),n.d(t,"isWKWebview",(function(){return yt})),n.d(t,"last",(function(){return Et})),n.d(t,"lock",(function(){return fe})),n.d(t,"memoize",(function(){return $})),n.d(t,"nextTick",(function(){return xt})),n.d(t,"pick",(function(){return St})),n.d(t,"pickBy",(function(){return Se})),n.d(t,"pipe",(function(){return Xe})),n.d(t,"preloadImage",(function(){return At})),n.d(t,"promiseGuess",(function(){return Ct})),n.d(t,"qs",(function(){return Mt})),n.d(t,"random",(function(){return Wt})),n.d(t,"run",(function(){return P})),n.d(t,"sample",(function(){return Ut})),n.d(t,"set",(function(){return Jt})),n.d(t,"source",(function(){return Qt})),n.d(t,"storage",(function(){return dn})),n.d(t,"throttle",(function(){return mn})),n.d(t,"uniqByKey",(function(){return vn})),n.d(t,"url",(function(){return Ft})),n.d(t,"value",(function(){return B})),n.d(t,"segment",(function(){return gn}));var r=n("iojd");function a(e){return-Math.cos(e*Math.PI)/2+.5}function o(e){return e}var i={inQuad:function(e){return Math.pow(e,2)},outQuad:function(e){return-(Math.pow(e-1,2)-1)},inOutQuad:function(e){return(e/=.5)<1?.5*Math.pow(e,2):-.5*((e-=2)*e-2)},inCubic:function(e){return Math.pow(e,3)},outCubic:function(e){return Math.pow(e-1,3)+1},inOutCubic:function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)},inQuart:function(e){return Math.pow(e,4)},outQuart:function(e){return-(Math.pow(e-1,4)-1)},inOutQuart:function(e){return(e/=.5)<1?.5*Math.pow(e,4):-.5*((e-=2)*Math.pow(e,3)-2)},inQuint:function(e){return Math.pow(e,5)},outQuint:function(e){return Math.pow(e-1,5)+1},inOutQuint:function(e){return(e/=.5)<1?.5*Math.pow(e,5):.5*(Math.pow(e-2,5)+2)},inSine:function(e){return 1-Math.cos(e*(Math.PI/2))},outSine:function(e){return Math.sin(e*(Math.PI/2))},inOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},inExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},outExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},inOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},inCirc:function(e){return-(Math.sqrt(1-e*e)-1)},outCirc:function(e){return Math.sqrt(1-Math.pow(e-1,2))},inOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},outBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},inBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},outBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},inOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},elastic:function(e){return-1*Math.pow(4,-8*e)*Math.sin((6*e-1)*(2*Math.PI)/2)+1},swingFromTo:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},swingFrom:function(e){var t=1.70158;return e*e*((t+1)*e-t)},swingTo:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},bounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bouncePast:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?2-(7.5625*(e-=1.5/2.75)*e+.75):e<2.5/2.75?2-(7.5625*(e-=2.25/2.75)*e+.9375):2-(7.5625*(e-=2.625/2.75)*e+.984375)},fromTo:function(e){return(e/=.5)<1?.5*Math.pow(e,4):-.5*((e-=2)*Math.pow(e,3)-2)},from:function(e){return Math.pow(e,4)},to:function(e){return Math.pow(e,.25)},linear:o,sinusoidal:a,reverse:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;return 1-t(e)},mirror:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;return t(e<.5?2*e:1-2*(e-.5))},flicker:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;return e+=(Math.random()-.5)/5,t(e<0?0:e>1?1:e)},wobble:function(e){return-Math.cos(e*Math.PI*(9*e))/2+.5},pulse:function(e,t){return-Math.cos(e*((t||5)-.5)*2*Math.PI)/2+.5},blink:function(e,t){return Math.round(e*(t||5))%2},spring:function(e){return 1-Math.cos(4.5*e*Math.PI)*Math.exp(6*-e)},none:function(){return 0},full:function(){return 1}},l=400,c=Math.pow,u=Math.sqrt,s=Math.sin,f=Math.min,d=Math.asin,p=Math.PI,m={sine:function(e){return 1+s(p/2*e-p/2)},circ:function(e){return 1-u(1-e*e)},elastic:function(e,t){if(t=t||l,0===e||1===e)return e;var n=1-f(t,998)/1e3,r=e/1,a=r-1,o=n/(2*p)*d(1);return-c(2,10*a)*s(2*p*(a-o)/n)},back:function(e){return e*e*(3*e-2)},bounce:function(e){var t,n=4;while(e<((t=c(2,--n))-1)/11);return 1/c(4,3-n)-7.5625*c((3*t-2)/22-e,2)}};["quad","cubic","quart","quint","expo"].forEach((function(e,t){m[e]=function(e){return c(e,t+2)}}));var h=function(e){return e.length<1?e:e[0].toUpperCase()+e.slice(1)};Object.entries(m).forEach((function(e){var t=Object(r["default"])(e,2),n=t[0],a=t[1];n=h(n),i["in".concat(n)]=a,i["out".concat(n)]=function(e,t){return 1-a(1-e,t)},i["inOut".concat(n)]=function(e,t){return e<.5?a(2*e,t)/2:1-a(-2*e+2,t)/2},i["outIn".concat(n)]=function(e,t){return e<.5?(1-a(1-2*e,t))/2:(a(2*e-1,t)+1)/2}}));var v=i;class g{constructor(e){this.list=void 0,this.attr=void 0,this.attrKey=void 0,this.have=e=>Object.values(this.list).some((t=>Object.entries(e).every((e=>{var n=Object(r["default"])(e,2),a=n[0],o=n[1];return t[a]===o})))),this.adaptedAttr=e=>Object.entries(this.attr).reduce(((t,n)=>{var a=Object(r["default"])(n,2),o=a[0],i=a[1];return Object.assign(t,{[o]:i.filter((t=>this.have(Object.assign({},e,{[o]:t}))))})}),{}),this.find=e=>{for(var t=function(){var t=a[n];o=Object(r["default"])(t,2);var i=o[0],l=o[1];if(Object.entries(e).every((e=>{var t=Object(r["default"])(e,2),n=t[0],a=t[1];return l[n]===a}))&&Object.keys(l).every((t=>t in e)))return{v:i}},n=0,a=Object.entries(this.list);n{var n=Object(r["default"])(t,2),a=n[1];return Object.entries(a).forEach((t=>{var n=Object(r["default"])(t,2),a=n[0],o=n[1];e[a]=e[a]||[],e[a]=[...new Set([...e[a],o])]})),e}),{}),this.attrKey=Object.keys(this.attr)}}var y=n("G3cz"),b=e=>"function"===typeof e,E=b,w=e=>"undefined"===typeof e,x=w;class k{constructor(){var e=this;this.listeners={},this.getEventMap=e=>(this.listeners[String(e)]||(this.listeners[String(e)]=new Map),this.listeners[String(e)]),this.on=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=r.once,o=void 0!==a&&a;return E(n)?(e.getEventMap(t).set(n,o?function(){n(...arguments),e.off(t,n)}:n),e):(console.error("[EventBus Error] listener is not a function"),e)},this.once=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.on(t,n,Object(y["default"])(Object(y["default"])({},r),{},{once:!0}))},this.off=(e,t)=>{var n=this.getEventMap(e);return x(t)?n.clear():n.delete(t),this},this.emit=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;ae(...r)))}}}function S(e){return"string"===typeof e}var O=e=>e!==e,A=O,j=e=>"number"===typeof e&&!A(e),C=j;function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;try{C(t)&&(t=String(t));var r=(S(t)?t.split("."):t).reduce(((e,t)=>e[t]),e);return x(r)?n:r}catch(a){return n}}var T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];t=S(t)?t.split("."):t;for(var n=N(e,t),r=N(e,t.slice(0,-1)),a=arguments.length,o=new Array(a>2?a-2:0),i=2;i0&&void 0!==arguments[0]?arguments[0]:{},t=e.maxTaskCount,n=void 0===t?20:t;this.maxTaskCount=void 0,this.taskList=new Set,this.isAvailable=()=>this.taskList.size>=this.maxTaskCount,this.isRunning=!1,this.frame=()=>{var e=Date.now();this.taskList.forEach((t=>{var n=t.frame,r=t.startTime;return P(n,void 0,{runningTime:e-r,startTime:r,frameTime:e})})),this.taskList.size>0?D(this.frame):this.isRunning=!1},this.run=e=>{var t={startTime:Date.now(),frame:e};return this.taskList.add(t),this.isRunning||D((()=>{this.isRunning=!0,this.frame()})),()=>this.taskList.delete(t)},this.maxTaskCount=n}}class F{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.maxTaskCount=void 0,this.threadList=[],this.getAvailableThread=()=>{var e=this.threadList.find((e=>e.isAvailable()));return e||(e=new I({maxTaskCount:this.maxTaskCount}),this.threadList.push(e)),e},this.start=e=>this.getAvailableThread().run(e),this.once=e=>{var t=this.start((function(){for(var n=arguments.length,r=new Array(n),a=0;ax(e)?P(t):P(e)),void 0)},B=W,U=e=>e instanceof Array,G=U,J=e=>null===e,H=J,K=e=>"object"===typeof e&&!(G(e)||H(e)),V=K,q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.disable,r=void 0===n?()=>!1:n,a=new Map,o=function(t){if(a.has(t))return a.get(t);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;ia.delete(t)})||a.set(t,l),l};return o.cache=a,o},$=q,X=n("Ef+f");function Q(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var Y=n("NDrN"),Z=n("jl5J");function ee(e){return Object(X["a"])(e)||Q(e)||Object(Y["a"])(e)||Object(Z["a"])()}var te=function e(){for(var t=arguments.length,n=new Array(t),r=0;rV(e)));if(0===a.length)return{};if(1===a.length)return a[0];var o=ee(a),i=o[0],l=o.slice(1);return l.forEach((t=>{for(var n in t){var r=i[n],a=t[n];V(r)&&V(a)?i[n]=e(Object.assign({},r),a):i[n]=a}})),i},ne=te,re=e=>!(x(e)||H(e)),ae=re,oe=e=>ae(e)&&E(e.then),ie=oe,le=/:/;class ce{static get lng(){return ce.language}get lng(){return this.language}constructor(e){var t=this;this.resources={},this.language=void 0,this.eventBus=new k,this.config=void 0,this.applyConfig=function(){var e=Object(z["default"])(Object(M["default"])().mark((function e(n){return Object(M["default"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(ne(t.config,n),!t.language){e.next=3;break}return e.abrupt("return",t.applyLanguage(t.language));case 3:if(!ce.language){e.next=8;break}return e.next=6,t.applyLanguage(ce.language);case 6:e.next=9;break;case 8:ce.eventBus.once("change",(e=>{t.applyLanguage(ce.language)}));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.applyLanguage=function(){var e=Object(z["default"])(Object(M["default"])().mark((function e(n){return Object(M["default"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,Promise.all(Object.entries(t.config.types).map(function(){var e=Object(z["default"])(Object(M["default"])().mark((function e(a){var o,i,l;return Object(M["default"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=Object(r["default"])(a,2),i=o[0],l=o[1].resources,t.resources[i]||(t.resources[i]={}),e.next=4,P(N(l,n,l));case 4:t.resources[i][n]=e.sent;case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 4:t.language=n,t.eventBus.emit("change",n);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.applyLng=this.applyLanguage,this.translate=function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=le.test(e),i=e.split("@"),l=Object(r["default"])(i,2),c=l[0],u=l[1],s=void 0===u?t.config.defaultType||"default":u,f=c;if(o){var d=c.split(":"),p=Object(r["default"])(d,2);n=p[0],f=p[1]}if(!o&&t.language){var m=N(t.config,"types.".concat(s,".format.").concat(t.language),N(t.config,"types.".concat(s,".format"),ce.template)),h=!1!==N(t.config,"types.".concat(s,".resources"));if(E(m)){var v=P(m,void 0,h?N(t.resources,"".concat(s,".").concat(t.language,".").concat(f)):f,a);if(v)return v}}var g=t.fallbackTranslate("".concat(f,"@").concat(s),a,n)||P(t.config,"translateFallback",f,a);return g||(a._fbT?void 0:f)},this.fallbackTranslate=(e,t,n)=>{if(G(this.config.fallback)||V(this.config.fallback)){var r=Object(y["default"])(Object(y["default"])({},t),{},{_fbT:!0});if(n){var a=P(this.config.fallback,"".concat(n,".t"),e,r);if(a)return a}else for(var o=0,i=Object.values(this.config.fallback);o{this.applyLanguage(ce.language)}))}}ce.instances=[],ce.language=void 0,ce.eventBus=new k,ce.template=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.split,a=void 0!==r&&r,o=n.fallback,i=void 0===o?"(unknow)":o,l=/{{\s*\w*\s*}}/g,c=E(i),u=(e.match(l)||[]).map((e=>{var n=e;e=e.replace(/({{\s*)|(\s*}})/g,"");var r=c?i(e,n):i;return e=B(t[e],r),e})),s=(e.split(l)||[]).reduce(((e,t)=>e.concat([t,u.shift()])),[]);return a?s:s.join("")},ce.load=function(){for(var e=arguments.length,t=new Array(e),n=0;n{var t=P(e),n=e=>N(e,"default",e);return ie(t)?t.then(n):n(t)})));case 2:return n=e.sent,e.abrupt("return",Object.assign({},...n));case 4:case"end":return e.stop()}}),e)}))))},ce.applyLanguage=function(){var e=Object(z["default"])(Object(M["default"])().mark((function e(t){return Object(M["default"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,Promise.all(ce.instances.map((e=>e.applyLanguage(t))));case 4:ce.language=t,ce.eventBus.emit("change",t);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ce.applyLng=ce.applyLanguage;var ue=$((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{},n=t.always,r=t.locking,a=()=>ue.cache.delete(e),o=()=>ue.cache.has(e),i=function(){P(n),o()&&P(r);for(var t=arguments.length,a=new Array(t),i=0;i{var t=fe((function(){for(var n=this,r=arguments.length,a=new Array(r),o=0;oE(e.distance)?e.distance():e.distance,Ee=e=>{var t=!1,n=n=>{t||(requestAnimationFrame((()=>{e(n),t=!1})),t=!0)};return n};class we{constructor(e){this.config=void 0,this.getScrollDistance=void 0,this.destroy=()=>null,this.dynamicEvents=[],this.currentStaticEvent=void 0,this.staticEvents=[],this.walkEvent=(e,t)=>{var n=e.onGoingIn,r=void 0===n?()=>{}:n,a=e.onGoingOut,o=void 0===a?()=>{}:a,i=e.status,l=be(e);switch(i){case he:t>l&&(o(),e.status=me);break;default:case me:t<=l&&(r(),e.status=he);break}return e.status!==i},this.walkStaticEvent=e=>{var t=e.direction,n=e.scrollDistance,r=this.currentStaticEvent;if(r){var a=r.prevEvent||r.getPrevEvent(),o=r.nextEvent||r.getNextEvent(),i=r;if(t===ve?r.status===me&&(i=o):r.status===he&&(i=a),i){var l=this.walkEvent(i,n);l&&(this.currentStaticEvent=(t===ve?o:a)||r,this.walkStaticEvent({direction:t,scrollDistance:n}))}}},this.walkDynamicEvents=e=>{var t=e.direction,n=e.scrollDistance;this.dynamicEvents.sort(((e,n)=>(be(e)-be(n))*t)).forEach((e=>{this.walkEvent(e,n)}))},this.config=e,this.init()}init(){var e=this.config,t=e.element,n=e.scrollHandler,r=void 0===n?Ee:n,a=e.getScrollDistance,o=e.direction,i=void 0===o?"vertical":o;if("undefined"!==typeof t){var l=E(a)?a:{vertical:()=>t.scrollTop,horizontal:()=>t.scrollLeft}[i];this.getScrollDistance=l,this.genDynamicEvents(),this.genStaticEvents();var c=l(),u=e=>{e.stopPropagation();var t=l(),n=t>c?ve:ge,r={scrollDistance:t,direction:n};this.walkStaticEvent(r),this.walkDynamicEvents(r),c=t},s=r(u);return t.addEventListener(ye,s),this.destroy=()=>t.removeEventListener(ye,s),this}console.error("Need Scroll Container!")}getEndReachedEvent(){var e=this.config,t=e.distanceToReachEnd,n=void 0===t?100:t,r=e.onEndReached,a=e.element,o=e.direction,i=void 0===o?"vertical":o;if(E(r)){var l=!1,c=e=>{e?0===this.staticEvents.length&&1===this.dynamicEvents.length&&this.dynamicEvents[0]===u&&this.destroy():l=!1},u={dynamic:!0,distance:{vertical:()=>a.scrollHeight-a.offsetHeight-n,horizontal:()=>a.scrollWidth-a.offsetWidth-n}[i],onGoingOut:()=>{l||(l=!0,r(c))}};return u}}genDynamicEvents(){var e=this.config.distanceEvents,t=void 0===e?[]:e,n=this.getEndReachedEvent(),r=this.getScrollDistance(),a=[...t,n].filter((e=>e&&e.dynamic)).map((e=>Object(y["default"])(Object(y["default"])({},e),{},{status:r>e.distance?me:he})));this.dynamicEvents=a}genStaticEvents(){var e=this.config.distanceEvents,t=void 0===e?[]:e,n=this.getScrollDistance(),r=t.map((e=>Object(y["default"])(Object(y["default"])({},e),{},{distance:be(e)}))).filter((e=>e.distance>=0&&!e.dynamic)).map(((e,t)=>{var a=Object(y["default"])(Object(y["default"])({},e),{},{prevEvent:void 0,nextEvent:void 0,getPrevEvent:()=>{var e=r[t-1]||null;return a.prevEvent=e,e},getNextEvent:()=>{var e=r[t+1]||null;return a.nextEvent=e,e},status:n>e.distance?me:he});return a}));this.staticEvents=r,this.currentStaticEvent=r.find((e=>e.distance>=n))}}function xe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_VALUE;return en?n:e}var ke=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>ae(e);return Object.entries(e).filter((e=>P(t,void 0,e[1],e[0]))).reduce(((e,t)=>Object(y["default"])(Object(y["default"])({},e),{},{[t[0]]:t[1]})),{})},Se=ke,Oe={from:0,to:1,duration:1e3,ease:e=>e,loop:!1};class Ae{constructor(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Oe;this.stopRunningFrame=void 0,this.bus=new k,this.state={reversed:!1,progress:0,stoped:!0,config:Oe},this.on=(e,t)=>(this.bus.on(e,t),this),this.off=(e,t)=>(this.bus.off(e,t),this),this.config=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Oe;return e.state.config=Object(y["default"])(Object(y["default"])(Object(y["default"])({},Oe),e.state.config),Se(t,ae)),e},this.start=()=>{if(this.isEnded()||!this.state.stoped)return this;this.state.stoped=!1,this.bus.emit("start");var e=Date.now();return this.stopRunningFrame=L.start((t=>{var n=t.frameTime,r=(n-e)/xe(this.state.config.duration,16),a=this.state.reversed?-1:1;this.progress(this.state.progress+r*a),e=n})),this},this.restart=()=>this.reset().start(),this.reset=()=>{var e=this.state.reversed;return this.stop().progress(e?1:0)},this.stop=()=>(this.state.stoped||(this.state.stoped=!0,P(this.stopRunningFrame),this.bus.emit("stop")),this),this.reverse=()=>(this.state.reversed=!this.state.reversed,this.bus.emit("reverse"),this),this.progress=e=>{var t=this.state.progress;return this.state.progress=xe(e,0,1),this.bus.emit("update",this.value(e),this.value(t)),this.isEnded()&&(this.state.config.loop?this.state.reversed=!this.state.reversed:(this.stop(),this.bus.emit("end"))),this},this.value=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.state.progress;t=xe(t,0,1);var n=e.state.config,r=n.ease,a=n.to,o=n.from,i=r;return(a-o)*P(i,void 0,t)+o},this.isEnded=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.state.progress,n=e.state.reversed;return n?t<=0:t>=1},this.config(t)}}Ae.DEFAULT_CONFIG=Oe;var je=(e,t)=>function(){for(var n=arguments.length,r=new Array(n),a=0;ae===je?a.shift():e)).concat(a))}},Ce=je;function Ne(e){return S(e)?/\s/.test(e)?e.split(" ").map(Ne).join(" "):e.split("").map(((e,t)=>0===t?e.toUpperCase():e)).join(""):""}var Te=n("BRxd"),Pe=n.n(Te),_e=Pe.a,De=e=>{if(x(document))return console.warn("\u5bbf\u4e3b\u73af\u5883\u4e0d\u5b58\u5728 DOM \u5bf9\u8c61\uff0c\u65e0\u6cd5\u6267\u884c\u590d\u5236\u64cd\u4f5c");var t=document.createElement("input");t.style.cssText="\n position: absolute;\n left: 0;\n top: 0;\n z-index: -1;\n pointer-events: none;\n opacity: 0;\n ",document.body.appendChild(t),t.setAttribute("value",e),t.select(),t.setSelectionRange(0,9999),document.execCommand("copy",!0)&&document.execCommand("copy",!0),document.body.removeChild(t)},Ie=De,Fe=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:16;return function(){for(var r=arguments.length,a=new Array(r),o=0;o{e.apply(this,a)}),n),t}},Me=Re,ze=e=>new Promise((t=>{e!==1/0&&setTimeout(t,e)})),We=ze,Be=e=>{if(G(e))return e[0];if(V(e)){var t=Object.keys(e);return e[Be(t)]}},Ue=Be,Ge=e=>e.reduce(((e,t)=>[...e,...G(t)?Ge(t):[t]]),[]),Je=Ge,He=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.separator,n=void 0===t?" ":t,r=e.length,a=void 0===r?3:r,o=e.reverse,i=void 0!==o&&o,l=e.isNumber,c=void 0!==l&&l;return e=>{if(c){var t=-1!==e.toString().indexOf(".");return t?e&&e.toString().replace(new RegExp("(\\d)(?=(\\d{".concat(a,"})+\\.)"),"g"),((e,t)=>t+n)):e&&e.toString().replace(new RegExp("\\d{1,".concat(a,"}(?=(\\d{").concat(a,"})+$)"),"g"),"$&".concat(n))}if(e=C(e)?Math.floor(e):e,x(e))return e;var r=String(e).split("");return i||(r=r.reverse()),r=r.reduce(((e,t,r)=>(e.unshift(t,r>0&&r%a===0?n:void 0),e)),[]),i&&(r=r.reverse()),r=r.join(""),r}},Ke=He,Ve=(e,t)=>t.reduce((function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),o=2;ot.reduce(((e,t)=>P(t,void 0,e)),e)},Xe=$e,Qe=function(){for(var e=arguments.length,t=new Array(e),n=0;nnew Set(e)),Array.from)(t).filter((e=>t.every((t=>t.includes(e)))))},Ye=Qe,Ze=/(Android)/i,et=()=>Ze.test(N(_["a"],"navigator.userAgent")),tt=et,nt=e=>"boolean"===typeof e,rt=nt,at=e=>e instanceof Date,ot=at,it=/(Win32|Win64|MacIntel|Linux x86_64)/i,lt=()=>it.test(N(_["a"],"navigator.platform")),ct=lt,ut=["Error","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"].map((e=>_["a"][e])).filter((e=>!x(e))),st=e=>ut.some((t=>e instanceof t)),ft=st,dt=/(iPhone|iPad|iPod|iOS)/i,pt=()=>dt.test(N(_["a"],"navigator.userAgent")),mt=pt,ht=()=>!ct()&&(tt()||mt()),vt=ht,gt=()=>mt()&&ae(N(_["a"],"webkit")),yt=gt,bt=e=>{if(G(e))return e[e.length-1];if(V(e)){var t=Object.keys(e);return e[bt(t)]}},Et=bt,wt=e=>Promise.resolve().then(e),xt=wt,kt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.keys(e);return Se(e,((e,n)=>t.includes(n)))},St=kt,Ot=e=>e.forEach((e=>{var t=new Image;t.src=e})),At=Ot,jt=(e,t)=>function(){for(var n=arguments.length,r=new Array(n),a=0;ao.then((n=>e(t.call(this,null,n,...r)))).catch((n=>e(t.call(this,n,void 0,...r)))))):t.call(this,null,o,...r)},Ct=jt,Nt=e=>{for(var t=[_["a"].decodeURIComponent,_["a"].decodeURI,_["a"].unescape],n=0,r=t;n1&&void 0!==arguments[1]?arguments[1]:_["a"].location.search,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Nt,r=N(P(t,"split","?"),"1","").match(new RegExp("(^|&)".concat(e,"=([^&]*)(&|$)")));return H(r)?void 0:n(r[2])}var _t=Ce(Dt)(Ce,_["a"].unescape);function Dt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_["a"].location.search,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Nt,n=N(e.split("?"),[1],"");return 0===n.length?{}:n.split("&").map((e=>e.split("="))).reduce(((e,n)=>{var a=Object(r["default"])(n,2),o=a[0],i=a[1];return Object.assign(e,{[o]:t(i)})}),{})}function It(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_["a"].encodeURIComponent;return"?".concat(Object.entries(e).map((e=>{var n=Object(r["default"])(e,2),a=n[0],o=n[1];return[a,t(o)].join("=")})).join("&"))}var Ft={paramEscape:Tt,param:Pt,allParamEscape:_t,allParam:Dt,generateParamStr:It},Lt=e=>Dt(e),Rt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return It(e).replace(/^.?/,"")},Mt={parse:Lt,stringify:Rt},zt=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=Math.random()*(t-e)+e;return n?Math.floor(r):r},Wt=zt,Bt=e=>N(e,Wt(0,N(e,"length",0))),Ut=Bt,Gt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return e=Object.assign({},e),t=S(t)?t.split("."):t,t.reduce(((e,r,a)=>{var o=a===t.length-1?n:N(e,r,{});return V(o)&&(o=Object.assign({},o)),G(o)&&(o=o.slice()),e[r]=o,e[r]}),e),e},Jt=Gt,Ht=Le(((e,t)=>{var n=_["a"][t];return!x(t)&&x(n)&&console.warn("No external named '".concat(t,"' in global after loaded ").concat(e)),n})),Kt=(e,t)=>G(t)?t.map(Ht(e)):Ht(e,t),Vt=Kt,qt={js:[],css:[]},$t=(e,t)=>qt.js.includes(e)?(console.warn("[source.js] ".concat(e," \u5df2\u88ab\u52a0\u8f7d")),Promise.resolve(Vt(e,t))):new Promise(((n,r)=>{var a=document.createElement("script");a.setAttribute("src",e),a.addEventListener("load",(()=>setTimeout((()=>{qt.js.push(e),n(Vt(e,t))})))),a.addEventListener("error",r),document.body.appendChild(a)})),Xt=e=>{if(qt.css.includes(e))console.warn("[source.css] ".concat(e," \u5df2\u88ab\u52a0\u8f7d"));else if(document.querySelector('link[href="'.concat(e,'"]')))qt.css.push(e);else{var t=document.createElement("link");t.setAttribute("href",e),t.setAttribute("rel","stylesheet"),document.body.appendChild(t),qt.css.push(e)}},Qt={js:$t,css:Xt},Yt=!0,Zt="__testSupportive__",en=_["a"].localStorage;ae(en)||(Yt=!1);try{en.setItem(Zt,"__testSupportive__"),en.removeItem(Zt)}catch(yn){Yt=!1}function tn(e){return Yt?e:()=>console.warn("Storage unsupported")}var nn=e=>tn((t=>{var n,r=e.getItem(t);if("undefined"===r||H(r))n=void 0;else try{n=JSON.parse(r)}catch(yn){console.error("[ERROR storage.get --\x3e JSON.parse]",yn),n=r}return n})),rn=e=>tn(((t,n)=>{var r;try{r=JSON.stringify(n)}catch(yn){console.error("[ERROR storage.set --\x3e JSON.stringify]",yn),r=n}return e.setItem(t,r),r})),an=e=>tn((t=>{e.removeItem(t)})),on=nn(_["a"].localStorage),ln=rn(_["a"].localStorage),cn=an(_["a"].localStorage),un=nn(_["a"].sessionStorage),sn=rn(_["a"].sessionStorage),fn=an(_["a"].sessionStorage),dn={get:on,set:ln,remove:cn,getSession:un,setSession:sn,removeSession:fn},pn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,n=!1,r=()=>{n=!1},a=Me((e=>{E(e)&&e()}),t);return function(){for(var o=arguments.length,i=new Array(o),l=0;l{c||(c=!0,e.apply(this,i))};a(u),n||(n=!0,u(),setTimeout(r,t))}},mn=pn,hn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n={};return e.filter((e=>{if(!(t in e))return!0;var r=e[t];return!(r in n)&&(n[r]=!0,!0)}))},vn=hn;function gn(e,t,n){var a=Object(r["default"])(n,2),o=a[0],i=a[1],l=e/t;if(li)throw new Error("\u65e0\u6cd5\u5206\u6bb5");var c=[],u=Array(t).fill(l).reduce(((e,t)=>{var n=e+t,r=[o,i,n-o,n-i].sort(((e,t)=>e-t)).slice(1,3);return e=Wt(r[0],r[1],!1),t=n-e,c.push(e),t}));return c.push(u),c}},"/AzE":function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["pick-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"pick"},a.a.createElement(o["AnchorLink"],{to:"#pick","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"pick"),a.a.createElement("p",null,"\u8fc7\u6ee4\u5bf9\u8c61\u5c5e\u6027\uff0c\u6311\u9009\u51fa\u4e00\u4e2a\u5bf9\u8c61\u4e2d\u7684\u6307\u5b9a\u5c5e\u6027\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"pick: (obj: Object, keys?: any[]) => Object",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"obj \u6570\u636e\u6e90\u5bf9\u8c61"),a.a.createElement("li",null,"keys \u591a\u4e2a\u5c5e\u6027\uff08\u5b57\u7b26\u4e32\u6570\u7ec4\uff09\u6216\u8005\u5355\u4e2a\u5c5e\u6027\uff08\u5b57\u7b26\u4e32\uff09")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u65b0\u5bf9\u8c61\uff0c\u5185\u542b\u6307\u5b9a\u5c5e\u6027\u548c\u5b83\u7684\u503c")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"import { pick } from '@fexd/tools'\n\nconst obj = {\n id: 1,\n name: 'Tom',\n age: 18,\n gender: 'man',\n}\n\n// \u53d6\u6307\u5b9a\u7684\u5355\u4e2a\u5c5e\u6027\u503c\nconsole.log(pick(obj)) // {id: 1, name: \"Tom\", age: 18, gender: \"man\"}\nconsole.log(pick(obj, 'id')) // {id: 1}\nconsole.log(pick(obj, 'name')) // {name: \"Tom\"}\nconsole.log(pick(obj, 'age')) // {age: 18}\nconsole.log(pick(obj, 'gender')) // {gender: \"man\"}\n\n// \u53d6\u6307\u5b9a\u7684\u591a\u4e2a\u5c5e\u6027\u503c\nconsole.log(pick(obj, 'id', 'name')) // {id: 1} \uff0c\u9519\u8bef\u793a\u8303\uff0c\u8981\u53d6\u591a\u4e2a\u5c5e\u6027\u7b2c\u4e8c\u4e2a\u53c2\u6570\u8bf7\u7528\u6570\u7ec4\nconsole.log(pick(obj, ['id', 'name'])) // {id: 1, name: \"Tom\"}",lang:"js"})),a.a.createElement(i["default"],t["pick-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},"/ZDR":function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["pickBy-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"pickby"},a.a.createElement(o["AnchorLink"],{to:"#pickby","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"pickBy"),a.a.createElement("p",null,"\u81ea\u5b9a\u4e49\u9009\u503c\u51fd\u6570\u3002\u7528\u4e8e\u5f97\u5230\u7531\u6570\u636e\u6e90\u5bf9\u8c61\u4e2d\u6240\u6709\u7b26\u5408\u7684\u6761\u4ef6\u7684\u952e\u503c\u5bf9\u7ec4\u6210\u7684\u65b0\u5bf9\u8c61\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"const pickBy: (obj: Object, predicate?: (...args: any[]) => boolean) => Object",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"obj \u6570\u636e\u6e90\u5bf9\u8c61"),a.a.createElement("li",null,"predicate \u7b5b\u9009\u51fd\u6570\uff0c\u6839\u636e\u51fd\u6570\u7684\u8fd4\u56de\u503c\u6765\u9009")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u5305\u542b\u4e86\u6240\u6709\u7b26\u5408\u6761\u4ef6\u7684\u952e\u503c\u5bf9\u7684\u5bf9\u8c61")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"import React from 'react'\nimport { pickBy, isNumber } from '@fexd/tools'\n\nconst obj = {\n id: 1,\n name: 'Tom',\n age: 18,\n gender: 'man',\n}\n\nconst predicateValue = (value, key) => {\n // console.log(`value:${value}, key:${key}`)\n return isNumber(value)\n}\n\nconst predicateKey = (value, key) => {\n // console.log(`value:${value}, key:${key}`)\n return key.length > 2\n}\n\n// isNumber\u662f\u5224\u65ad\u662f\u5426\u4e3aNumber\u7684\u51fd\u6570\uff0cisNumber: (value: any) => boolean;\nconsole.log(pickBy(obj, isNumber)) // {id: 1, age: 18}\nconsole.log(pickBy(obj, predicateValue)) // {id: 1, age: 18}\nconsole.log(pickBy(obj, predicateKey)) // {name: \"Tom\", age: 18, gender: \"man\"}",lang:"javascript"})),a.a.createElement(i["default"],t["pickBy-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},"/fpf":function(e,t){var n=1/0,r=Math.abs,a=Math.pow,o=Math.floor,i=Math.log,l=Math.LN2,c=function(e,t,c){var u,s,f,d=new Array(c),p=8*c-t-1,m=(1<>1,v=23===t?a(2,-24)-a(2,-77):0,g=e<0||0===e&&1/e<0?1:0,y=0;for(e=r(e),e!=e||e===n?(s=e!=e?1:0,u=m):(u=o(i(e)/l),e*(f=a(2,-u))<1&&(u--,f*=2),e+=u+h>=1?v/f:v*a(2,1-h),e*f>=2&&(u++,f/=2),u+h>=m?(s=0,u=m):u+h>=1?(s=(e*f-1)*a(2,t),u+=h):(s=e*a(2,h-1)*a(2,t),u=0));t>=8;d[y++]=255&s,s/=256,t-=8);for(u=u<0;d[y++]=255&u,u/=256,p-=8);return d[--y]|=128*g,d},u=function(e,t){var r,o=e.length,i=8*o-t-1,l=(1<>1,u=i-7,s=o-1,f=e[s--],d=127&f;for(f>>=7;u>0;d=256*d+e[s],s--,u-=8);for(r=d&(1<<-u)-1,d>>=-u,u+=t;u>0;r=256*r+e[s],s--,u-=8);if(0===d)d=1-c;else{if(d===l)return r?NaN:f?-n:n;r+=a(2,t),d-=c}return(f?-1:1)*r*a(2,d-t)};e.exports={pack:c,unpack:u}},"/gJP":function(e,t,n){var r=n("r+6h"),a=n("6SQG"),o=n("RzMS"),i=n("aRba"),l=n("0JbB").f,c=n("lFeU").f,u=n("q43B"),s=n("rfqm"),f=n("kj2u"),d=n("uF/W"),p=n("h+/6"),m=n("uJNS").set,h=n("ct0+"),v=n("3Hes"),g=v("match"),y=a.RegExp,b=y.prototype,E=/a/g,w=/a/g,x=new y(E)!==E,k=f.UNSUPPORTED_Y,S=r&&o("RegExp",!x||k||p((function(){return w[g]=!1,y(E)!=E||y(w)==w||"/a/i"!=y(E,"i")})));if(S){var O=function(e,t){var n,r=this instanceof O,a=u(e),o=void 0===t;if(!r&&a&&e.constructor===O&&o)return e;x?a&&!o&&(e=e.source):e instanceof O&&(o&&(t=s.call(e)),e=e.source),k&&(n=!!t&&t.indexOf("y")>-1,n&&(t=t.replace(/y/g,"")));var l=i(x?new y(e,t):y(e,t),r?this:b,O);return k&&n&&m(l,{sticky:n}),l},A=function(e){e in O||l(O,e,{configurable:!0,get:function(){return y[e]},set:function(t){y[e]=t}})},j=c(y),C=0;while(j.length>C)A(j[C++]);b.constructor=O,O.prototype=b,d(a,"RegExp",O)}h("RegExp")},"/sHi":function(e,t,n){"use strict";var r="%[a-f0-9]{2}",a=new RegExp(r,"gi"),o=new RegExp("("+r+")+","gi");function i(e,t){try{return decodeURIComponent(e.join(""))}catch(a){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],i(n),i(r))}function l(e){try{return decodeURIComponent(e)}catch(r){for(var t=e.match(a),n=1;n{var t=e.demos,n=t["isWKWebview-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"iswkwebview"},a.a.createElement(o["AnchorLink"],{to:"#iswkwebview","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isWKWebview"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a WKWebview \u73af\u5883\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isWKWebview: () => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("p",null,"\u65e0"),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u662f WKWebview \u73af\u5883"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u4e0d\u662f WKWebview \u73af\u5883")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isWKWebview-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},"0G8B":function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["random-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"random"},a.a.createElement(o["AnchorLink"],{to:"#random","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"random"),a.a.createElement("p",null,"\u968f\u673a\u51fd\u6570\uff0c\u83b7\u53d6 (min, max) \u4e4b\u95f4\u7684\u4e00\u4e2a\u968f\u673a\u6570"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"random: (min: number, max: number, int?: boolean) => number",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"min \u6700\u5c0f\u503c"),a.a.createElement("li",null,"max \u6700\u5927\u503c"),a.a.createElement("li",null,"int \u662f\u5426\u4e3a\u6574\u578b\uff0c\u9ed8\u8ba4 true")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u6839\u636e\u53c2\u6570\u8fd4\u56de\u7b26\u5408\u6761\u4ef6\u7684\u4e00\u4e2a\u968f\u673a\u6570\u5b57\u3002")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["random-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},"0Ifp":function(e,t,n){var r=n("MULs"),a=n("lf6h");function o(e,t,n,i,l){return e===t||(null==e||null==t||!a(e)&&!a(t)?e!==e&&t!==t:r(e,t,n,i,o,l))}e.exports=o},"0JX+":function(e,t,n){"use strict";var r=n("SDiR")["default"];function a(){var e=n("nNWW");return a=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var o=n("Gdey");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1&&n.push(f[r]);v(n)}else v([])}),[e,f.length]),h},v=function(){var e=(0,a().useContext)(o.context),t=e.config.algolia,n=(0,a().useCallback)((function(e){window.docsearch(l({inputSelector:e},t))}),[t]);return n},g=function(e){var t=(0,a().useContext)(o.context),n=t.config,r=h(e),i=v();return n.algolia?i:r};t["default"]=g},"0JbB":function(e,t,n){var r=n("r+6h"),a=n("p3eN"),o=n("sErw"),i=n("JSMs"),l=Object.defineProperty;t.f=r?l:function(e,t,n){if(o(e),t=i(t,!0),o(n),a)try{return l(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"0OGf":function(e,t,n){"use strict";(function(e){var r=n("nNWW"),a=n.n(r),o=n("R5oI"),i=n("BA5g"),l=n.n(i),c=1073741823,u="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{};function s(){var e="__global_unique_id__";return u[e]=(u[e]||0)+1}function f(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function d(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}function p(e){return Array.isArray(e)?e[0]:e}function m(e,t){var n,a,i="__create-react-context-"+s()+"__",u=function(e){function n(){var t;return t=e.apply(this,arguments)||this,t.emitter=d(t.props.value),t}Object(o["a"])(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return e={},e[i]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,a=e.value;f(r,a)?n=0:(n="function"===typeof t?t(r,a):c,n|=0,0!==n&&this.emitter.set(e.value,n))}},r.render=function(){return this.props.children},n}(r["Component"]);u.childContextTypes=(n={},n[i]=l.a.object.isRequired,n);var m=function(t){function n(){var e;return e=t.apply(this,arguments)||this,e.state={value:e.getValue()},e.onUpdate=function(t,n){var r=0|e.observedBits;0!==(r&n)&&e.setState({value:e.getValue()})},e}Object(o["a"])(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?c:t},r.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?c:e},r.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},r.getValue=function(){return this.context[i]?this.context[i].get():e},r.render=function(){return p(this.props.children)(this.state.value)},n}(r["Component"]);return m.contextTypes=(a={},a[i]=l.a.object,a),{Provider:u,Consumer:m}}var h=a.a.createContext||m;t["a"]=h}).call(this,n("bQdJ"))},"0W/Y":function(e,t,n){"use strict";var r=n("x1fj")["default"];Object.defineProperty(t,"__esModule",{value:!0});var a=n("i0LQ"),o=n("nNWW"),i=n("yh5g"),l=n("0bwR");function c(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var u=c(o);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t=0||(a[n]=e[n]);return a}function g(e,t){if(null==e)return{};var n,r,a=v(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function y(e,t){return b(e)||E(e,t)||w(e,t)||k()}function b(e){if(Array.isArray(e))return e}function E(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done);i=!0)if(o.push(r.value),t&&o.length===t)break}catch(c){l=!0,a=c}finally{try{i||null==n["return"]||n["return"]()}finally{if(l)throw a}}return o}}function w(e,t){if(e){if("string"===typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n["return"]||n["return"]()}finally{if(l)throw o}}}}function O(e){return u["default"].createElement(a.__RouterContext.Consumer,null,(function(t){var n=e.location||t.location,r=e.computedMatch,o=f(f({},t),{},{location:n,match:r}),i=e.render;return u["default"].createElement(a.__RouterContext.Provider,{value:o},o.match?i(f(f({},e.layoutProps),o)):null)}))}var A=["children"];function j(e){return u["default"].createElement(a.__RouterContext.Consumer,null,(function(t){var n,r=e.children,i=g(e,A),l=e.location||t.location,c=null;return o.Children.forEach(r,(function(e){if(null===c&&o.isValidElement(e)){n=e;var r=e.props.path||e.props.from;c=r?a.matchPath(l.pathname,f(f({},e.props),{},{path:r})):t.match}})),c?o.cloneElement(n,{location:l,computedMatch:c,layoutProps:i}):null}))}var C=["component"];function N(e,t){e.component;var n=g(e,C),i=e.component;function l(l){var c=o.useState((function(){return window.g_initialProps})),s=y(c,2),d=s[0],m=s[1];return o.useEffect((function(){var o=function(){var o=p(r().mark((function o(){var c,u,s,d,p;return r().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(u=i,!i.preload){r.next=6;break}return r.next=4,i.preload();case 4:u=r.sent,u=u["default"]||u;case 6:if(s=f(f({isServer:!1,match:null===l||void 0===l?void 0:l.match,history:null===l||void 0===l?void 0:l.history,route:e},t.getInitialPropsCtx||{}),n),!(null===(c=u)||void 0===c?void 0:c.getInitialProps)){r.next=15;break}return r.next=10,t.plugin.applyPlugins({key:"ssr.modifyGetInitialPropsCtx",type:a.ApplyPluginsType.modify,initialValue:s,async:!0});case 10:return d=r.sent,r.next=13,u.getInitialProps(d||s);case 13:p=r.sent,m(p);case 15:case"end":return r.stop()}}),o)})));return function(){return o.apply(this,arguments)}}();window.g_initialProps||o()}),[window.location.pathname,window.location.search]),u["default"].createElement(i,h({},l,d))}return l.wrapInitialPropsLoaded=!0,l.displayName="ComponentWithInitialPropsFetch",l}function T(e){var t=e.route,n=e.opts,r=e.props,a=_(f(f({},n),{},{routes:t.routes||[],rootRoutes:n.rootRoutes}),{location:r.location}),i=t.component,l=t.wrappers;if(i){var c=n.isServer?{}:window.g_initialProps,s=f(f(f(f({},r),n.extraProps),n.pageInitialProps||c),{},{route:t,routes:n.rootRoutes}),d=u["default"].createElement(i,s,a);if(l){var p=l.length-1;while(p>=0)d=o.createElement(l[p],s,d),p-=1}return d}return a}function P(e){var t,n,r,o=e.route,i=e.index,l=e.opts,c={key:o.key||i,exact:o.exact,strict:o.strict,sensitive:o.sensitive,path:o.path};return o.redirect?u["default"].createElement(a.Redirect,h({},c,{from:o.path,to:o.redirect})):(!l.ssrProps||l.isServer||(null===(t=o.component)||void 0===t?void 0:t.wrapInitialPropsLoaded)||!(null===(n=o.component)||void 0===n?void 0:n.getInitialProps)&&!(null===(r=o.component)||void 0===r?void 0:r.preload)||(o.component=N(o,l)),u["default"].createElement(O,h({},c,{render:function(e){return T({route:o,opts:l,props:e})}})))}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.routes?u["default"].createElement(j,t,e.routes.map((function(t,n){return P({route:t,index:n,opts:f(f({},e),{},{rootRoutes:e.rootRoutes||e.routes})})}))):null}var D=["history"];function I(e){var t=e.history,n=g(e,D);return o.useEffect((function(){function r(t,r){var o=l.matchRoutes(e.routes,t.pathname);"undefined"!==typeof document&&void 0!==n.defaultTitle&&(document.title=o.length&&o[o.length-1].route.title||n.defaultTitle||""),e.plugin.applyPlugins({key:"onRouteChange",type:a.ApplyPluginsType.event,args:{routes:e.routes,matchedRoutes:o,location:t,action:r}})}return window.g_useSSR&&(window.g_initialProps=null),r(t.location,"POP"),t.listen(r)}),[t]),u["default"].createElement(a.Router,{history:t},_(n))}function F(e){return e.plugin.applyPlugins({type:a.ApplyPluginsType.modify,key:"rootContainer",initialValue:u["default"].createElement(I,{history:e.history,routes:e.routes,plugin:e.plugin,ssrProps:e.ssrProps,defaultTitle:e.defaultTitle}),args:{history:e.history,routes:e.routes,plugin:e.plugin}})}function L(e){return R.apply(this,arguments)}function R(){return R=p(r().mark((function e(t){var n,a,o,i,c,u,s,f,d=arguments;return r().wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=d.length>1&&void 0!==d[1]?d[1]:window.location.pathname,a=l.matchRoutes(t,n),o=S(a),e.prev=3,o.s();case 5:if((i=o.n()).done){e.next=19;break}if(u=i.value,s=u.route,"string"===typeof s.component||!(null===(c=s.component)||void 0===c?void 0:c.preload)){e.next=13;break}return e.next=11,s.component.preload();case 11:f=e.sent,s.component=f["default"]||f;case 13:if(!s.routes){e.next=17;break}return e.next=16,L(s.routes,n);case 16:s.routes=e.sent;case 17:e.next=5;break;case 19:e.next=24;break;case 21:e.prev=21,e.t0=e["catch"](3),o.e(e.t0);case 24:return e.prev=24,o.f(),e.finish(24);case 27:return e.abrupt("return",t);case 28:case"end":return e.stop()}}),e,null,[[3,21,24,27]])}))),R.apply(this,arguments)}function M(e){var t=F(e);if(!e.rootElement)return t;var n="string"===typeof e.rootElement?document.getElementById(e.rootElement):e.rootElement,r=e.callback||function(){};window.g_useSSR?e.dynamicImport?L(e.routes).then((function(){i.hydrate(t,n,r)})):i.hydrate(t,n,r):i.render(t,n,r)}t.renderClient=M,t.renderRoutes=_},"0bwR":function(e,t,n){"use strict";n.r(t),n.d(t,"matchRoutes",(function(){return l})),n.d(t,"renderRoutes",(function(){return c}));var r=n("Bm2L"),a=n("973d"),o=n("nNWW"),i=n.n(o);function l(e,t,n){return void 0===n&&(n=[]),e.some((function(e){var a=e.path?Object(r["i"])(t,e):n.length?n[n.length-1].match:r["e"].computeRootMatch(t);return a&&(n.push({route:e,match:a}),e.routes&&l(e.routes,t,n)),a})),n}function c(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),e?i.a.createElement(r["g"],n,e.map((function(e,n){return i.a.createElement(r["d"],{key:e.key||n,path:e.path,exact:e.exact,strict:e.strict,render:function(n){return e.render?e.render(Object(a["a"])({},n,{},t,{route:e})):i.a.createElement(e.component,Object(a["a"])({},n,t,{route:e}))}})}))):null}},"0pkz":function(e,t,n){"use strict";var r=n("684d"),a=n("ZGY3"),o=n("AnAv"),i=n("uJNS"),l=n("vSpU"),c="Array Iterator",u=i.set,s=i.getterFor(c);e.exports=l(Array,"Array",(function(e,t){u(this,{type:c,target:r(e),index:0,kind:t})}),(function(){var e=s(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),o.Arguments=o.Array,a("keys"),a("values"),a("entries")},"0zpI":function(e,t,n){var r=n("cBxx"),a=n("MyUB"),o=n("fkhx"),i=n("RtFG"),l=n("wWVk"),c=n("9rFP"),u=1,s=2,f="[object Boolean]",d="[object Date]",p="[object Error]",m="[object Map]",h="[object Number]",v="[object RegExp]",g="[object Set]",y="[object String]",b="[object Symbol]",E="[object ArrayBuffer]",w="[object DataView]",x=r?r.prototype:void 0,k=x?x.valueOf:void 0;function S(e,t,n,r,x,S,O){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!S(new a(e),new a(t)));case f:case d:case h:return o(+e,+t);case p:return e.name==t.name&&e.message==t.message;case v:case y:return e==t+"";case m:var A=l;case g:var j=r&u;if(A||(A=c),e.size!=t.size&&!j)return!1;var C=O.get(e);if(C)return C==t;r|=s,O.set(e,t);var N=i(A(e),A(t),r,x,S,O);return O["delete"](e),N;case b:if(k)return k.call(e)==k.call(t)}return!1}e.exports=S},1623:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["groupBy-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"groupby"},a.a.createElement(o["AnchorLink"],{to:"#groupby","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"groupBy"),a.a.createElement("p",null,"\u5bf9\u6570\u7ec4\u8fdb\u884c\u5f52\u7c7b\u5904\u7406\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"groupBy: (namer: Function, list: any[]) => Object",lang:"js"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"namer \u5f52\u7c7b\u5904\u7406\u51fd\u6570\uff0c\u8fd4\u56de\u503c\u4e3a\u6240\u5f52\u7c7b\u7684 key \u540d\u3002"),a.a.createElement("li",null,"list \u9700\u8981\u5f52\u7c7b\u5904\u7406\u7684\u6570\u7ec4\u3002")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u5f52\u7c7b\u597d\u7684\u5bf9\u8c61\uff0c\u952e( key )\u4e3a\u5f52\u7c7b\u7684\u540d\uff0c\u503c( value )\u4e3a\u5c5e\u4e8e\u8fd9\u4e00\u7c7b\u7684\u6570\u636e\u3002")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["groupBy-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},"1B1/":function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("l4Xg"),l=a.a.memo((e=>{e.demos;return a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"source"},a.a.createElement(o["AnchorLink"],{to:"#source","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"source"),a.a.createElement("p",null,"\u5728\u7ebf\u8d44\u6e90\u52a0\u8f7d\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(i["a"],{code:"const source = {\n js: (src: string, externals?: string | string[]) => Promise;\n css: (href: string) => void;\n};",lang:"ts"}),a.a.createElement("h2",{id:"source-\u5bf9\u8c61\u5c5e\u6027"},a.a.createElement(o["AnchorLink"],{to:"#source-\u5bf9\u8c61\u5c5e\u6027","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"source \u5bf9\u8c61\u5c5e\u6027"),a.a.createElement("ul",null,a.a.createElement("li",null,"js: (src: string, externals?: string | string[]) \uff0c\u5728\u7ebf\u52a0\u8f7d ",a.a.createElement("code",null,"js")," \u8d44\u6e90\uff0c\u8fd4\u56de\u503c\u4e3a ",a.a.createElement("code",null,"Promise")," \u5bf9\u8c61\u3002"),a.a.createElement("li",null,"css(href: string)\uff0c\u5728\u7ebf\u52a0\u8f7d ",a.a.createElement("code",null,"css")," \u8d44\u6e90\u3002")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(i["a"],{code:"// \u52a0\u8f7d js \u4f8b\u5b50\nsource\n .js(\n 'chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/react_devtools_backend.js',\n 'js'\n )\n .then(function (e) {\n console.log(e)\n })\n .catch((er) => {\n console.log(er)\n })\n\n// \u52a0\u8f7d css \u4f8b\u5b50\nsource.css('https://ts.xcatliu.com/assets/reset.css')",lang:"javascript"})))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(l,{demos:n})}},"1DF2":function(e,t,n){var r=n("rkJ6");function a(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}e.exports=a},"1Grl":function(e,t,n){var r=n("7TNV"),a=n("lf6h"),o=Object.prototype,i=o.hasOwnProperty,l=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return a(e)&&i.call(e,"callee")&&!l.call(e,"callee")};e.exports=c},"1KG/":function(e,t,n){var r,a=function(){var e=String.fromCharCode,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",r={};function a(e,t){if(!r[e]){r[e]={};for(var n=0;n>>8,n[2*r+1]=i%256}return n},decompressFromUint8Array:function(t){if(null===t||void 0===t)return o.decompress(t);for(var n=new Array(t.length/2),r=0,a=n.length;r>=1}else{for(a=1,r=0;r>=1}f--,0==f&&(f=Math.pow(2,p),p++),delete l[s]}else for(a=i[s],r=0;r>=1;f--,0==f&&(f=Math.pow(2,p),p++),i[u]=d++,s=String(c)}if(""!==s){if(Object.prototype.hasOwnProperty.call(l,s)){if(s.charCodeAt(0)<256){for(r=0;r>=1}else{for(a=1,r=0;r>=1}f--,0==f&&(f=Math.pow(2,p),p++),delete l[s]}else for(a=i[s],r=0;r>=1;f--,0==f&&(f=Math.pow(2,p),p++)}for(a=2,r=0;r>=1;while(1){if(h<<=1,v==t-1){m.push(n(h));break}v++}return m.join("")},decompress:function(e){return null==e?"":""==e?null:o._decompress(e.length,32768,(function(t){return e.charCodeAt(t)}))},_decompress:function(t,n,r){var a,o,i,l,c,u,s,f=[],d=4,p=4,m=3,h="",v=[],g={val:r(0),position:n,index:1};for(a=0;a<3;a+=1)f[a]=a;i=0,c=Math.pow(2,2),u=1;while(u!=c)l=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),i|=(l>0?1:0)*u,u<<=1;switch(i){case 0:i=0,c=Math.pow(2,8),u=1;while(u!=c)l=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),i|=(l>0?1:0)*u,u<<=1;s=e(i);break;case 1:i=0,c=Math.pow(2,16),u=1;while(u!=c)l=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),i|=(l>0?1:0)*u,u<<=1;s=e(i);break;case 2:return""}f[3]=s,o=s,v.push(s);while(1){if(g.index>t)return"";i=0,c=Math.pow(2,m),u=1;while(u!=c)l=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),i|=(l>0?1:0)*u,u<<=1;switch(s=i){case 0:i=0,c=Math.pow(2,8),u=1;while(u!=c)l=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),i|=(l>0?1:0)*u,u<<=1;f[p++]=e(i),s=p-1,d--;break;case 1:i=0,c=Math.pow(2,16),u=1;while(u!=c)l=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),i|=(l>0?1:0)*u,u<<=1;f[p++]=e(i),s=p-1,d--;break;case 2:return v.join("")}if(0==d&&(d=Math.pow(2,m),m++),f[s])h=f[s];else{if(s!==p)return null;h=o+o.charAt(0)}v.push(h),f[p++]=o+h.charAt(0),d--,o=h,0==d&&(d=Math.pow(2,m),m++)}}};return o}();r=function(){return a}.call(t,n,t,e),void 0===r||(e.exports=r)},"1Sp3":function(e,t,n){var r=n("mRlv"),a=n("Ox3h"),o=n("WAeE"),i=o("metadata"),l=i.store||(i.store=new a),c=function(e,t,n){var a=l.get(e);if(!a){if(!n)return;l.set(e,a=new r)}var o=a.get(t);if(!o){if(!n)return;a.set(t,o=new r)}return o},u=function(e,t,n){var r=c(t,n,!1);return void 0!==r&&r.has(e)},s=function(e,t,n){var r=c(t,n,!1);return void 0===r?void 0:r.get(e)},f=function(e,t,n,r){c(n,r,!0).set(e,t)},d=function(e,t){var n=c(e,t,!1),r=[];return n&&n.forEach((function(e,t){r.push(t)})),r},p=function(e){return void 0===e||"symbol"==typeof e?e:String(e)};e.exports={store:l,getMap:c,has:u,get:s,set:f,keys:d,toKey:p}},"1a2d":function(e,t,n){"use strict";var r=n("OOCw");r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},"1aCi":function(e,t,n){var r=n("OOCw");r({target:"Math",stat:!0},{imulh:function(e,t){var n=65535,r=+e,a=+t,o=r&n,i=a&n,l=r>>16,c=a>>16,u=(l*i>>>0)+(o*i>>>16);return l*c+(u>>16)+((o*c>>>0)+(u&n)>>16)}})},"1aIJ":function(e,t){function n(e,t){var n=-1,r=null==e?0:e.length;while(++n1?arguments[1]:void 0,3);return c(n,(function(e,n){if(r(n,e,t))return c.stop(n)}),void 0,!0,!0).result}})},"1mu+":function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("sErw"),i=n("QHn5"),l=n("F/PV"),c=n("uZx/");r({target:"Map",proto:!0,real:!0,forced:a},{includes:function(e){return c(i(o(this)),(function(t,n){if(l(n,e))return c.stop()}),void 0,!0,!0).stopped}})},"1rhD":function(e,t,n){"use strict";var r=n("OOCw"),a=n("dz2h"),o=n("z43i"),i=n("uJNS"),l=n("vfR7"),c=l.codeAt,u=l.charAt,s="String Iterator",f=i.set,d=i.getterFor(s),p=a((function(e){f(this,{type:s,string:e,index:0})}),"String",(function(){var e,t=d(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=u(n,r),t.index+=e.length,{value:{codePoint:c(e,0),position:r},done:!1})}));r({target:"String",proto:!0},{codePoints:function(){return new p(String(o(this)))}})},"1uVM":function(e,t,n){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())}))}},"1wx2":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"1x+Y":function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("eyaU"),i=n("sErw"),l=n("lkgX"),c=n("mxPn"),u=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:a},{isSubsetOf:function(e){var t=c(this),n=i(e),r=n.has;return"function"!=typeof r&&(n=new(o("Set"))(e),r=l(n.has)),!u(t,(function(e){if(!1===r.call(n,e))return u.stop()}),void 0,!1,!0).stopped}})},"21Yw":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("2E/K"),a=n("nNWW");function o(e){var t=a["useRef"](!1),n=a["useState"](e),o=Object(r["a"])(n,2),i=o[0],l=o[1];function c(e,n){n&&t.current||l(e)}return a["useEffect"]((function(){return t.current=!1,function(){t.current=!0}}),[]),[i,c]}},"290e":function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"2E/K":function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}function a(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done);i=!0)if(o.push(r.value),t&&o.length===t)break}catch(c){l=!0,a=c}finally{try{i||null==n["return"]||n["return"]()}finally{if(l)throw a}}return o}}n.d(t,"a",(function(){return l}));var o=n("N4es");function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e,t){return r(e)||a(e,t)||Object(o["a"])(e,t)||i()}},"2Roc":function(e,t,n){var r=n("3Hes");t.f=r},"2Yex":function(e,t,n){"use strict";var r=n("OOCw"),a=n("YfbA").includes,o=n("ZGY3"),i=n("7/pz"),l=i("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!l},{includes:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},"2fm6":function(e,t,n){"use strict";var r=n("sErw"),a=n("lkgX");e.exports=function(){for(var e,t=r(this),n=a(t["delete"]),o=!0,i=0,l=arguments.length;i-1e-8&&e<1e-8?e-e*e/2:n(1+e)}},"2lI5":function(e,t,n){var r=n("67Yi"),a=n("orhk"),o=n("zzA2");function i(e){var t=-1,n=null==e?0:e.length;this.__data__=new r;while(++t{var t=e.demos,n=t["sample-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"sample"},a.a.createElement(o["AnchorLink"],{to:"#sample","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"sample"),a.a.createElement("p",null,"\u62bd\u6837\u51fd\u6570\u3002\u968f\u673a\u83b7\u53d6\u6570\u7ec4\u4e2d\u7684\u4e00\u4e2a\u503c\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"sample(array: [])",lang:"unknown"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"array \u6570\u636e\u6e90\u6570\u7ec4")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u968f\u673a\u4ece\u6570\u7ec4\u4e2d\u62bd\u53d6\u4e00\u4e2a\u503c\u8fd4\u56de\u3002")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"const arr1 = [1, 2, 3, 4]\nsample(arr1) // 3\nsample(arr1) // 2\n\nconst arr2 = [{ name: 'Amy' }, { name: 'Peter' }, [1], 2, true]\nsample(arr2) // {name: \"Peter\"}\nsample(arr2) // [1]",lang:"javascript"})),a.a.createElement(i["default"],t["sample-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},"3CiM":function(e,t,n){var r=n("OOCw"),a=n("CBsr");r({target:"Map",stat:!0},{of:a})},"3Hes":function(e,t,n){var r=n("6SQG"),a=n("WAeE"),o=n("oEsY"),i=n("KgcE"),l=n("O8qS"),c=n("V0hj"),u=a("wks"),s=r.Symbol,f=c?s:s&&s.withoutSetter||i;e.exports=function(e){return o(u,e)||(l&&o(s,e)?u[e]=s[e]:u[e]=f("Symbol."+e)),u[e]}},"3YDC":function(e,t,n){var r=n("OOCw"),a=n("1Sp3"),o=n("sErw"),i=n("zesz"),l=a.has,c=a.toKey,u=function(e,t,n){var r=l(e,t,n);if(r)return!0;var a=i(t);return null!==a&&u(e,a,n)};r({target:"Reflect",stat:!0},{hasMetadata:function(e,t){var n=arguments.length<3?void 0:c(arguments[2]);return u(e,o(t),n)}})},"3f79":function(e,t){e.exports=function(e,t,n,r){var a=n?n.call(r,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),c=0;ce.length)&&(t=e.length);for(var n=0,r=new Array(t);n{var t=e.demos,n=t["isIOS-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"isios"},a.a.createElement(o["AnchorLink"],{to:"#isios","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isIOS"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a ios \u5e73\u53f0\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isIOS: () => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("p",null,"\u65e0"),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u662f ios \u5e73\u53f0"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u4e0d\u662f ios \u5e73\u53f0")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isIOS-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},"4Whr":function(e,t,n){"use strict";var r=n("OOCw"),a=n("h+/6"),o=n("g0aX"),i=n("x+sk"),l=n("OdMF"),c=n("upgS"),u=n("tmip"),s=n("63eO"),f=n("THrr"),d=n("3Hes"),p=n("tDGd"),m=d("isConcatSpreadable"),h=9007199254740991,v="Maximum allowed index exceeded",g=p>=51||!a((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),y=f("concat"),b=function(e){if(!i(e))return!1;var t=e[m];return void 0!==t?!!t:o(e)},E=!g||!y;r({target:"Array",proto:!0,forced:E},{concat:function(e){var t,n,r,a,o,i=l(this),f=s(i,0),d=0;for(t=-1,r=arguments.length;th)throw TypeError(v);for(n=0;n=h)throw TypeError(v);u(f,d++,o)}return f.length=d,f}})},"4uZn":function(e,t,n){var r=n("6SQG");e.exports=r},"58gk":function(e,t){function n(e,t){var n=-1,r=null==e?0:e.length,a=0,o=[];while(++n1?arguments[1]:void 0,n),c=i>2?arguments[2]:void 0,u=void 0===c?n:a(c,n);while(u>l)t[l++]=e;return t}},"5jZn":function(e,t,n){var r=n("OOCw"),a=180/Math.PI;r({target:"Math",stat:!0},{degrees:function(e){return e*a}})},"5yEw":function(e,t,n){var r=n("3Hes"),a=r("toStringTag"),o={};o[a]="z",e.exports="[object z]"===String(o)},"63eO":function(e,t,n){var r=n("x+sk"),a=n("g0aX"),o=n("3Hes"),i=o("species");e.exports=function(e,t){var n;return a(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!a(n.prototype)?r(n)&&(n=n[i],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},"67Yi":function(e,t,n){var r=n("K29s"),a=n("AU2x"),o=n("u7Ge"),i=n("w7O4"),l=n("GRr6");function c(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t1?arguments[1]:void 0)}},"6jqD":function(e,t,n){var r=n("x+sk");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"6qLJ":function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["set-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"set"},a.a.createElement(o["AnchorLink"],{to:"#set","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"set"),a.a.createElement("p",null,"\u65e0\u75db\u8bbe\u7f6e\u5c5e\u6027\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"set: (obj: Object, keys: KType, value: any) => Object",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"obj \uff0c\u8bbe\u7f6e\u5bf9\u8c61"),a.a.createElement("li",null,"keys \uff0c\u8bbe\u7f6e key"),a.a.createElement("li",null,"value \uff0c\u8bbe\u7f6e value")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u8fd4\u56de\u8bbe\u7f6e\u597d\u7684\u5bf9\u8c61")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:'set({}, \'a.b.c.d\', \'hello world\')\n/* \n{\n "a": {\n "b": {\n "c": {\n "d": "hello world"\n }\n }\n }\n}\n*/',lang:"javascript"})),a.a.createElement(i["default"],t["set-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},"6ssM":function(e,t,n){var r=n("r+6h"),a=n("UQib"),o=n("ZVkV"),i=n("684d"),l=n("JSMs"),c=n("oEsY"),u=n("p3eN"),s=Object.getOwnPropertyDescriptor;t.f=r?s:function(e,t){if(e=i(e),t=l(t,!0),u)try{return s(e,t)}catch(n){}if(c(e,t))return o(!a.f.call(e,t),e[t])}},"6vUj":function(e,t,n){var r=n("pgBP"),a=n("dfcU"),o=n("Zjj6");function i(e){return o(e)?r(e):a(e)}e.exports=i},"7/pz":function(e,t,n){var r=n("r+6h"),a=n("h+/6"),o=n("oEsY"),i=Object.defineProperty,l={},c=function(e){throw e};e.exports=function(e,t){if(o(l,e))return l[e];t||(t={});var n=[][e],u=!!o(t,"ACCESSORS")&&t.ACCESSORS,s=o(t,0)?t[0]:c,f=o(t,1)?t[1]:void 0;return l[e]=!!n&&!a((function(){if(u&&!r)return!0;var e={length:-1};u?i(e,1,{enumerable:!0,get:c}):e[1]=1,n.call(e,s,f)}))}},"73fw":function(e,t,n){var r=n("6SQG"),a=n("x+sk"),o=r.document,i=a(o)&&a(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},"75i3":function(e,t,n){"use strict";n.r(t),n.d(t,"ApplyPluginsType",(function(){return W})),n.d(t,"Plugin",(function(){return J})),n.d(t,"dynamic",(function(){return M})),n.d(t,"isBrowser",(function(){return B}));var r=n("DBVu"),a=n("ptaF");n.d(t,"createBrowserHistory",(function(){return a["a"]})),n.d(t,"createHashHistory",(function(){return a["b"]})),n.d(t,"createMemoryHistory",(function(){return a["d"]}));var o=n("Bm2L");n.d(t,"__RouterContext",(function(){return o["h"]}));var i=n("QwZf");n.d(t,"Link",(function(){return i["a"]})),n.d(t,"MemoryRouter",(function(){return o["a"]})),n.d(t,"NavLink",(function(){return i["b"]})),n.d(t,"Prompt",(function(){return o["b"]})),n.d(t,"Redirect",(function(){return o["c"]})),n.d(t,"Route",(function(){return o["d"]})),n.d(t,"Router",(function(){return o["e"]})),n.d(t,"StaticRouter",(function(){return o["f"]})),n.d(t,"Switch",(function(){return o["g"]})),n.d(t,"matchPath",(function(){return o["i"]})),n.d(t,"useHistory",(function(){return o["j"]})),n.d(t,"useLocation",(function(){return o["k"]})),n.d(t,"useParams",(function(){return o["l"]})),n.d(t,"useRouteMatch",(function(){return o["m"]})),n.d(t,"withRouter",(function(){return o["n"]}));var l=n("nNWW"),c=n("WYEs");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n["return"]||n["return"]()}finally{if(l)throw o}}}}var O=Object(l["createContext"])(null),A=[],j=[],C=!1;function N(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e}))["catch"]((function(e){throw n.loading=!1,n.error=e,e})),n}function T(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var a=N(e[r]);a.loading?t.loading=!0:(t.loaded[r]=a.loaded,t.error=a.error),n.push(a.promise),a.promise.then((function(e){t.loaded[r]=e}))["catch"]((function(e){t.error=e}))}))}catch(r){t.error=r}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e}))["catch"]((function(e){throw t.loading=!1,e})),t}function P(e){return e&&e.__esModule?e["default"]:e}function _(e,t){return Object(l["createElement"])(P(e),t)}function D(e,t){var n=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:_,webpack:null,modules:null},t),r=null;function a(){if(!r){var t=new I(e,n);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if("undefined"===typeof window&&A.push(a),!C&&"undefined"!==typeof window&&"function"===typeof n.webpack){var o=n.webpack();j.push((function(e){var t,n=S(o);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(-1!==e.indexOf(r))return a()}}catch(i){n.e(i)}finally{n.f()}}))}var i=function(e,t){a();var o=Object(l["useContext"])(O),i=Object(c["useSubscription"])(r);return Object(l["useImperativeHandle"])(t,(function(){return{retry:r.retry}})),o&&Array.isArray(n.modules)&&n.modules.forEach((function(e){o(e)})),i.loading||i.error?Object(l["createElement"])(n.loading,{isLoading:i.loading,pastDelay:i.pastDelay,timedOut:i.timedOut,error:i.error,retry:r.retry}):i.loaded?n.render(i.loaded,e):null},u=Object(l["forwardRef"])(i);return u.preload=function(){return a()},u.displayName="LoadableComponent",u}var I=function(){function e(t,n){m(this,e),this._loadFn=t,this._opts=n,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return v(e,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var t=this._res,n=this._opts;t.loading&&("number"===typeof n.delay&&(0===n.delay?this._state.pastDelay=!0:this._delay=setTimeout((function(){e._update({pastDelay:!0})}),n.delay)),"number"===typeof n.timeout&&(this._timeout=setTimeout((function(){e._update({timedOut:!0})}),n.timeout))),this._res.promise.then((function(){e._update(),e._clearTimeouts()}))["catch"]((function(t){e._update(),e._clearTimeouts()})),this._update({})}},{key:"_update",value:function(e){this._state=s(s({},this._state),e),this._callbacks.forEach((function(e){return e()}))}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return s(s({},this._state),{},{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading})}},{key:"subscribe",value:function(e){var t=this;return this._callbacks.add(e),function(){t._callbacks["delete"](e)}}}]),e}();function F(e){return D(N,e)}function L(e){if("function"!==typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return D(T,e)}function R(e,t){var n=[];while(e.length){var r=e.pop();n.push(r(t))}return Promise.all(n).then((function(){if(e.length)return R(e,t)}))}function M(e){var t=F,n={loading:function(e){e.error,e.isLoading;return Object(l["createElement"])("p",null,"loading...")}};if("function"===typeof e)n.loader=e;else{if("object"!==f(e))throw new Error("Unexpect arguments ".concat(e));n=s(s({},n),e)}return t(n)}function z(e,t){if(!e)throw new Error(t)}F.Map=L,F.preloadAll=function(){return new Promise((function(e,t){R(A).then(e,t)}))},F.preloadReady=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(t){var n=function(){return C=!0,t()};R(j,e).then(n,n)}))},"undefined"!==typeof window&&(window.__NEXT_PRELOADREADY=F.preloadReady);var W,B=function(){return"undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement};function U(e){var t=e.fns,n=e.args;if(1===t.length)return t[0];var r=t.pop();return t.reduce((function(e,t){return function(){return t(e,n)}}),r)}function G(e){return!!e&&"object"===f(e)&&"function"===typeof e.then}(function(e){e["compose"]="compose",e["modify"]="modify",e["event"]="event"})(W||(W={}));var J=function(){function e(t){m(this,e),this.validKeys=void 0,this.hooks={},this.validKeys=(null===t||void 0===t?void 0:t.validKeys)||[]}return v(e,[{key:"register",value:function(e){var t=this;z(!!e.apply,"register failed, plugin.apply must supplied"),z(!!e.path,"register failed, plugin.path must supplied"),Object.keys(e.apply).forEach((function(n){z(t.validKeys.indexOf(n)>-1,"register failed, invalid key ".concat(n," from plugin ").concat(e.path,".")),t.hooks[n]||(t.hooks[n]=[]),t.hooks[n]=t.hooks[n].concat(e.apply[n])}))}},{key:"getHooks",value:function(e){var t=e.split("."),n=y(t),r=n[0],a=n.slice(1),o=this.hooks[r]||[];return a.length&&(o=o.map((function(e){try{var t,n=e,r=S(a);try{for(r.s();!(t=r.n()).done;){var o=t.value;n=n[o]}}catch(i){r.e(i)}finally{r.f()}return n}catch(l){return null}})).filter(Boolean)),o}},{key:"applyPlugins",value:function(e){var t=e.key,n=e.type,a=e.initialValue,o=e.args,i=e.async,l=this.getHooks(t)||[];switch(o&&z("object"===f(o),"applyPlugins failed, args must be plain object."),n){case W.modify:return i?l.reduce(function(){var e=p(Object(r["default"])().mark((function e(n,a){var i;return Object(r["default"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(z("function"===typeof a||"object"===f(a)||G(a),"applyPlugins failed, all hooks for key ".concat(t," must be function, plain object or Promise.")),!G(n)){e.next=5;break}return e.next=4,n;case 4:n=e.sent;case 5:if("function"!==typeof a){e.next=16;break}if(i=a(n,o),!G(i)){e.next=13;break}return e.next=10,i;case 10:return e.abrupt("return",e.sent);case 13:return e.abrupt("return",i);case 14:e.next=21;break;case 16:if(!G(a)){e.next=20;break}return e.next=19,a;case 19:a=e.sent;case 20:return e.abrupt("return",s(s({},n),a));case 21:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),G(a)?a:Promise.resolve(a)):l.reduce((function(e,n){return z("function"===typeof n||"object"===f(n),"applyPlugins failed, all hooks for key ".concat(t," must be function or plain object.")),"function"===typeof n?n(e,o):s(s({},e),n)}),a);case W.event:return l.forEach((function(e){z("function"===typeof e,"applyPlugins failed, all hooks for key ".concat(t," must be function.")),e(o)}));case W.compose:return function(){return U({fns:l.concat(a),args:o})()}}}}]),e}()},"78S/":function(e,t){e.exports="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView},"7EYs":function(e,t,n){var r=n("eyaU");e.exports=r("navigator","userAgent")||""},"7F/w":function(e,t,n){"use strict";var r=n("v3z7"),a=n("OdMF"),o=n("pKuQ"),i=n("dwb6"),l=n("upgS"),c=n("tmip"),u=n("MI4T");e.exports=function(e){var t,n,s,f,d,p,m=a(e),h="function"==typeof this?this:Array,v=arguments.length,g=v>1?arguments[1]:void 0,y=void 0!==g,b=u(m),E=0;if(y&&(g=r(g,v>2?arguments[2]:void 0,2)),void 0==b||h==Array&&i(b))for(t=l(m.length),n=new h(t);t>E;E++)p=y?g(m[E],E):m[E],c(n,E,p);else for(f=b.call(m),d=f.next,n=new h;!(s=d.call(f)).done;E++)p=y?o(f,g,[s.value,E],!0):s.value,c(n,E,p);return n.length=E,n}},"7HYU":function(e,t){function n(){this.__data__=[],this.size=0}e.exports=n},"7JKi":function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["memoize-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"memoize"},a.a.createElement(o["AnchorLink"],{to:"#memoize","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"memoize"),a.a.createElement("p",null,"\u8bb0\u5fc6\u51fd\u6570\uff0c\u7f13\u5b58\u7ed3\u679c\u3002"),a.a.createElement("p",null,"\u5982\u679c\u5df2\u7ecf\u88ab\u7f13\u5b58\u8fc7\uff0c\u4e0b\u6b21\u518d\u8c03\u7528\u76f4\u63a5\u53d6\u7f13\u5b58\u7684\u7ed3\u679c\uff0c\u4e0d\u4f1a\u518d\u6267\u884c\u51fd\u6570\u4e2d\u95f4\u5185\u5bb9\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"CachedFunction extends Function {\n cache: Map;\n}\nmemoize: (func: (value: void)) => CachedFunction;",lang:"unknown"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"func \u6267\u884c\u7684\u51fd\u6570")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"func \u6267\u884c\u7684\u51fd\u6570\u7684\u7ed3\u679c")),a.a.createElement("h2",{id:"\u4f7f\u7528\u65b9\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u4f7f\u7528\u65b9\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4f7f\u7528\u65b9\u6cd5"),a.a.createElement(l["a"],{code:"const memoizeFunc = memoize(function plus(param) {\n // \u6839\u636e param \u6765\u5224\u65ad\u6709\u6ca1\u7f13\u5b58, \u7b2c\u4e00\u6b21\u4f1a\u628a return \u7684\u7ed3\u679c\u7f13\u5b58\u4e0b\u6765\n console.log(param, ':first')\n return param + 1 // \u5c06\u4f1a\u88ab\u7f13\u5b58\n})\n\nconsole.log(memoizeFunc(1))",lang:"js"}),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["memoize-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},"7NTl":function(e,t,n){"use strict";var r=n("g0pg"),a=n("vMeL"),o=r.aTypedArrayConstructor,i=r.exportTypedArrayStaticMethod;i("of",(function(){var e=0,t=arguments.length,n=new(o(this))(t);while(t>e)n[e]=arguments[e++];return n}),a)},"7PoB":function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("eyaU"),i=n("sErw"),l=n("lkgX"),c=n("v3z7"),u=n("ZT9G"),s=n("QHn5"),f=n("uZx/");r({target:"Map",proto:!0,real:!0,forced:a},{mapValues:function(e){var t=i(this),n=s(t),r=c(e,arguments.length>1?arguments[1]:void 0,3),a=new(u(t,o("Map"))),d=l(a.set);return f(n,(function(e,n){d.call(a,e,r(n,e,t))}),void 0,!0,!0),a}})},"7TNV":function(e,t,n){var r=n("PORw"),a=n("lf6h"),o="[object Arguments]";function i(e){return a(e)&&r(e)==o}e.exports=i},"7Xfv":function(e,t,n){"use strict";var r=n("OOCw"),a=n("r+6h"),o=n("THzI"),i=n("OdMF"),l=n("lkgX"),c=n("0JbB");a&&r({target:"Object",proto:!0,forced:o},{__defineSetter__:function(e,t){c.f(i(this),e,{set:l(t),enumerable:!0,configurable:!0})}})},"7Yeq":function(e,t,n){"use strict";var r=n("SHha"),a="function"===typeof Symbol&&Symbol.for,o=a?Symbol.for("react.element"):60103,i=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,c=a?Symbol.for("react.strict_mode"):60108,u=a?Symbol.for("react.profiler"):60114,s=a?Symbol.for("react.provider"):60109,f=a?Symbol.for("react.context"):60110,d=a?Symbol.for("react.forward_ref"):60112,p=a?Symbol.for("react.suspense"):60113,m=a?Symbol.for("react.memo"):60115,h=a?Symbol.for("react.lazy"):60116,v="function"===typeof Symbol&&Symbol.iterator;function g(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n_.length&&_.push(e)}function F(e,t,n,r){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case o:case i:l=!0}}if(l)return n(r,e,""===t?"."+R(e,0):t),1;if(l=0,t=""===t?".":t+":",Array.isArray(e))for(var c=0;c0&&(!f.multiline||f.multiline&&"\n"!==e[f.lastIndex-1])&&(m="(?: "+m+")",v=" "+v,h++),n=new RegExp("^(?:"+m+")",p)),s&&(n=new RegExp("^"+m+"$(?!\\s)",p)),c&&(t=f.lastIndex),a=o.call(d?n:f,v),d?a?(a.input=a.input.slice(h),a[0]=a[0].slice(h),a.index=f.lastIndex,f.lastIndex+=a[0].length):f.lastIndex=0:c&&a&&(f.lastIndex=f.global?a.index+a[0].length:t),s&&a&&a.length>1&&i.call(a[0],n,(function(){for(l=1;l0?r:n)(e)}},AU2x:function(e,t,n){var r=n("F71Q");function a(e){var t=r(this,e)["delete"](e);return this.size-=t?1:0,t}e.exports=a},AnAv:function(e,t){e.exports={}},AqOu:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"B+gL":function(e,t,n){"use strict";var r=2147483647,a=36,o=1,i=26,l=38,c=700,u=72,s=128,f="-",d=/[^\0-\u007E]/,p=/[.\u3002\uFF0E\uFF61]/g,m="Overflow: input needs wider integers to process",h=a-o,v=Math.floor,g=String.fromCharCode,y=function(e){var t=[],n=0,r=e.length;while(n=55296&&a<=56319&&n>1,e+=v(e/t);e>h*i>>1;r+=a)e=v(e/h);return v(r+(h+1)*e/(e+l))},w=function(e){var t=[];e=y(e);var n,l,c=e.length,d=s,p=0,h=u;for(n=0;n=d&&lv((r-p)/S))throw RangeError(m);for(p+=(k-d)*S,d=k,n=0;nr)throw RangeError(m);if(l==d){for(var O=p,A=a;;A+=a){var j=A<=h?o:A>=h+i?i:A-h;if(O0?arguments[0]:void 0,s=this,p=[];if(j(s,{type:O,entries:p,updateURL:function(){},updateSearchParams:W}),void 0!==u)if(v(u))if(e=E(u),"function"===typeof e){t=e.call(u),n=t.next;while(!(r=n.call(t)).done){if(a=b(h(r.value)),o=a.next,(i=o.call(a)).done||(l=o.call(a)).done||!o.call(a).done)throw TypeError("Expected sequence with length 2");p.push({key:i.value+"",value:l.value+""})}}else for(c in u)d(u,c)&&p.push({key:c,value:u[c]+""});else z(p,"string"===typeof u?"?"===u.charAt(0)?u.slice(1):u:u+"")},J=G.prototype;l(J,{append:function(e,t){B(arguments.length,2);var n=C(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){B(arguments.length,1);var t=C(this),n=t.entries,r=e+"",a=0;while(ae.key){a.splice(t,0,e);break}t===n&&a.push(e)}r.updateURL()},forEach:function(e){var t,n=C(this).entries,r=p(e,arguments.length>1?arguments[1]:void 0,3),a=0;while(a1&&(t=arguments[1],v(t)&&(n=t.body,m(n)===O&&(r=t.headers?new k(t.headers):new k,r.has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=g(t,{body:y(0,String(n)),headers:y(0,r)}))),a.push(t)),x.apply(this,a)}}),e.exports={URLSearchParams:G,getState:C}},BLCN:function(e,t,n){"use strict";var r=n("OOCw"),a=n("Us7a").start,o=n("SRer");r({target:"String",proto:!0,forced:o},{padStart:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},BNr0:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["value-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"value"},a.a.createElement(o["AnchorLink"],{to:"#value","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"value"),a.a.createElement("p",null,"\u591a\u5c42\u9ed8\u8ba4\u503c\uff08\u53ea\u5728\u503c\u4e3a undefined \u60c5\u51b5\u4e0b\u751f\u6548\uff09\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"const value: (...values: any[]) => T",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"values\uff0c\u80fd\u4ece\u4e2d\u9009\u53d6\u7684\u9ed8\u8ba4\u503c")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"var v1,\n v2,\n v3 = 'default'\nconsole.log(v1) // undefined\nconsole.log(v2) // undefined\nconsole.log(v3) // \"default\"\n\nvalue(v1, v2, v3) // \"default\"\nvalue(v1, 0, v3) // 0\n\n// \u53ef\u4f20\u9012\u6267\u884c\u51fd\u6570\nvalue(\n v1,\n () => {\n console.log('v1\u6ca1\u6709\uff0c\u5c1d\u8bd5v2')\n return v2\n },\n () => {\n console.log('v2\u4e5f\u6ca1\u6709\uff0c\u5c1d\u8bd5v3')\n return v3\n }\n) // default",lang:"javascript"})),a.a.createElement(i["default"],t["value-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},BRxd:function(e,t,n){var r,a;(function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t>>16,c=a>>>16,u=(l*i>>>0)+(o*i>>>16);return l*c+(u>>>16)+((o*c>>>0)+(u&n)>>>16)}})},CZSf:function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},CZpw:function(e,t,n){"use strict";var r,a,o,i,l=n("OOCw"),c=n("qyeh"),u=n("6SQG"),s=n("eyaU"),f=n("N59M"),d=n("uF/W"),p=n("TxBV"),m=n("nBeg"),h=n("ct0+"),v=n("x+sk"),g=n("lkgX"),y=n("CZSf"),b=n("kk5s"),E=n("piBM"),w=n("uZx/"),x=n("eW2S"),k=n("ZT9G"),S=n("bbNk").set,O=n("OtMc"),A=n("rCLu"),j=n("Cqy2"),C=n("8d12"),N=n("86T+"),T=n("uJNS"),P=n("RzMS"),_=n("3Hes"),D=n("tDGd"),I=_("species"),F="Promise",L=T.get,R=T.set,M=T.getterFor(F),z=f,W=u.TypeError,B=u.document,U=u.process,G=s("fetch"),J=C.f,H=J,K="process"==b(U),V=!!(B&&B.createEvent&&u.dispatchEvent),q="unhandledrejection",$="rejectionhandled",X=0,Q=1,Y=2,Z=1,ee=2,te=P(F,(function(){var e=E(z)!==String(z);if(!e){if(66===D)return!0;if(!K&&"function"!=typeof PromiseRejectionEvent)return!0}if(c&&!z.prototype["finally"])return!0;if(D>=51&&/native code/.test(z))return!1;var t=z.resolve(1),n=function(e){e((function(){}),(function(){}))},r=t.constructor={};return r[I]=n,!(t.then((function(){}))instanceof n)})),ne=te||!x((function(e){z.all(e)["catch"]((function(){}))})),re=function(e){var t;return!(!v(e)||"function"!=typeof(t=e.then))&&t},ae=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;O((function(){var a=t.value,o=t.state==Q,i=0;while(r.length>i){var l,c,u,s=r[i++],f=o?s.ok:s.fail,d=s.resolve,p=s.reject,m=s.domain;try{f?(o||(t.rejection===ee&&ce(e,t),t.rejection=Z),!0===f?l=a:(m&&m.enter(),l=f(a),m&&(m.exit(),u=!0)),l===s.promise?p(W("Promise-chain cycle")):(c=re(l))?c.call(l,d,p):d(l)):p(a)}catch(h){m&&!u&&m.exit(),p(h)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&ie(e,t)}))}},oe=function(e,t,n){var r,a;V?(r=B.createEvent("Event"),r.promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},(a=u["on"+e])?a(r):e===q&&j("Unhandled promise rejection",n)},ie=function(e,t){S.call(u,(function(){var n,r=t.value,a=le(t);if(a&&(n=N((function(){K?U.emit("unhandledRejection",r,e):oe(q,e,r)})),t.rejection=K||le(t)?ee:Z,n.error))throw n.value}))},le=function(e){return e.rejection!==Z&&!e.parent},ce=function(e,t){S.call(u,(function(){K?U.emit("rejectionHandled",e):oe($,e,t.value)}))},ue=function(e,t,n,r){return function(a){e(t,n,a,r)}},se=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=Y,ae(e,t,!0))},fe=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw W("Promise can't be resolved itself");var a=re(n);a?O((function(){var r={done:!1};try{a.call(n,ue(fe,e,r,t),ue(se,e,r,t))}catch(o){se(e,r,o,t)}})):(t.value=n,t.state=Q,ae(e,t,!1))}catch(o){se(e,{done:!1},o,t)}}};te&&(z=function(e){y(this,z,F),g(e),r.call(this);var t=L(this);try{e(ue(fe,this,t),ue(se,this,t))}catch(n){se(this,t,n)}},r=function(e){R(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:X,value:void 0})},r.prototype=p(z.prototype,{then:function(e,t){var n=M(this),r=J(k(this,z));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=K?U.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=X&&ae(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new r,t=L(e);this.promise=e,this.resolve=ue(fe,e,t),this.reject=ue(se,e,t)},C.f=J=function(e){return e===z||e===o?new a(e):H(e)},c||"function"!=typeof f||(i=f.prototype.then,d(f.prototype,"then",(function(e,t){var n=this;return new z((function(e,t){i.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof G&&l({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return A(z,G.apply(u,arguments))}}))),l({global:!0,wrap:!0,forced:te},{Promise:z}),m(z,F,!1,!0),h(F),o=s(F),l({target:F,stat:!0,forced:te},{reject:function(e){var t=J(this);return t.reject.call(void 0,e),t.promise}}),l({target:F,stat:!0,forced:c||te},{resolve:function(e){return A(c&&this===o?z:this,e)}}),l({target:F,stat:!0,forced:ne},{all:function(e){var t=this,n=J(t),r=n.resolve,a=n.reject,o=N((function(){var n=g(t.resolve),o=[],i=0,l=1;w(e,(function(e){var c=i++,u=!1;o.push(void 0),l++,n.call(t,e).then((function(e){u||(u=!0,o[c]=e,--l||r(o))}),a)})),--l||r(o)}));return o.error&&a(o.value),n.promise},race:function(e){var t=this,n=J(t),r=n.reject,a=N((function(){var a=g(t.resolve);w(e,(function(e){a.call(t,e).then(n.resolve,r)}))}));return a.error&&r(a.value),n.promise}})},CpWJ:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("eyaU"),i=n("sErw"),l=n("lkgX"),c=n("v3z7"),u=n("ZT9G"),s=n("QHn5"),f=n("uZx/");r({target:"Map",proto:!0,real:!0,forced:a},{filter:function(e){var t=i(this),n=s(t),r=c(e,arguments.length>1?arguments[1]:void 0,3),a=new(u(t,o("Map"))),d=l(a.set);return f(n,(function(e,n){r(n,e,t)&&d.call(a,e,n)}),void 0,!0,!0),a}})},Cqy2:function(e,t,n){var r=n("6SQG");e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},CsJM:function(e,t,n){var r=n("z43i"),a=n("Vg85"),o="["+a+"]",i=RegExp("^"+o+o+"*"),l=RegExp(o+o+"*$"),c=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(i,"")),2&e&&(n=n.replace(l,"")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},Czbz:function(e,t,n){var r=n("OOCw"),a=n("HRbj");r({target:"WeakMap",stat:!0},{from:a})},D0rO:function(e,t,n){"use strict";var r=n("OOCw"),a=n("h+/6"),o=n("xy/A"),i=n("sErw"),l=n("erIx"),c=n("upgS"),u=n("ZT9G"),s=o.ArrayBuffer,f=o.DataView,d=s.prototype.slice,p=a((function(){return!new s(2).slice(1,void 0).byteLength}));r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:p},{slice:function(e,t){if(void 0!==d&&void 0===t)return d.call(i(this),e);var n=i(this).byteLength,r=l(e,n),a=l(void 0===t?n:t,n),o=new(u(this,s))(c(a-r)),p=new f(this),m=new f(o),h=0;while(r=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(l&&c){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;S(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}n.r(t),n.d(t,"default",(function(){return a}))},"DQ/D":function(e,t){function n(e,t){var n=-1,r=Array(e);while(++nc)a.f(e,n=r[c++],t[n]);return e}},Dkad:function(e,t,n){var r=n("GXoa");r("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},EA9V:function(e,t){function n(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}e.exports=n},EN7L:function(e,t,n){"use strict";n("M2ND");var r,a=n("OOCw"),o=n("r+6h"),i=n("Hy9b"),l=n("6SQG"),c=n("DS72"),u=n("uF/W"),s=n("CZSf"),f=n("oEsY"),d=n("NWlk"),p=n("7F/w"),m=n("vfR7").codeAt,h=n("B+gL"),v=n("nBeg"),g=n("BC4x"),y=n("uJNS"),b=l.URL,E=g.URLSearchParams,w=g.getState,x=y.set,k=y.getterFor("URL"),S=Math.floor,O=Math.pow,A="Invalid authority",j="Invalid scheme",C="Invalid host",N="Invalid port",T=/[A-Za-z]/,P=/[\d+-.A-Za-z]/,_=/\d/,D=/^(0x|0X)/,I=/^[0-7]+$/,F=/^\d+$/,L=/^[\dA-Fa-f]+$/,R=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,M=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,z=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,W=/[\u0009\u000A\u000D]/g,B=function(e,t){var n,r,a;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return C;if(n=G(t.slice(1,-1)),!n)return C;e.host=n}else if(Y(e)){if(t=h(t),R.test(t))return C;if(n=U(t),null===n)return C;e.host=n}else{if(M.test(t))return C;for(n="",r=p(t),a=0;a4)return e;for(n=[],r=0;r1&&"0"==a.charAt(0)&&(o=D.test(a)?16:8,a=a.slice(8==o?1:2)),""===a)i=0;else{if(!(10==o?F:8==o?I:L).test(a))return e;i=parseInt(a,o)}n.push(i)}for(r=0;r=O(256,5-t))return null}else if(i>255)return null;for(l=n.pop(),r=0;r6)return;r=0;while(d()){if(a=null,r>0){if(!("."==d()&&r<4))return;f++}if(!_.test(d()))return;while(_.test(d())){if(o=parseInt(d(),10),null===a)a=o;else{if(0==a)return;a=10*a+o}if(a>255)return;f++}c[u]=256*c[u]+a,r++,2!=r&&4!=r||u++}if(4!=r)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;c[u++]=t}else{if(null!==s)return;f++,u++,s=u}}if(null!==s){i=u-s,u=7;while(0!=u&&i>0)l=c[u],c[u--]=c[s+i-1],c[s+--i]=l}else if(8!=u)return;return c},J=function(e){for(var t=null,n=1,r=null,a=0,o=0;o<8;o++)0!==e[o]?(a>n&&(t=r,n=a),r=null,a=0):(null===r&&(r=o),++a);return a>n&&(t=r,n=a),t},H=function(e){var t,n,r,a;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=S(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=J(e),n=0;n<8;n++)a&&0===e[n]||(a&&(a=!1),r===n?(t+=n?":":"::",a=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},K={},V=d({},K,{" ":1,'"':1,"<":1,">":1,"`":1}),q=d({},V,{"#":1,"?":1,"{":1,"}":1}),$=d({},q,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),X=function(e,t){var n=m(e,0);return n>32&&n<127&&!f(t,e)?e:encodeURIComponent(e)},Q={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Y=function(e){return f(Q,e.scheme)},Z=function(e){return""!=e.username||""!=e.password},ee=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},te=function(e,t){var n;return 2==e.length&&T.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},ne=function(e){var t;return e.length>1&&te(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},re=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&te(t[0],!0)||t.pop()},ae=function(e){return"."===e||"%2e"===e.toLowerCase()},oe=function(e){return e=e.toLowerCase(),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},ie={},le={},ce={},ue={},se={},fe={},de={},pe={},me={},he={},ve={},ge={},ye={},be={},Ee={},we={},xe={},ke={},Se={},Oe={},Ae={},je=function(e,t,n,a){var o,i,l,c,u=n||ie,s=0,d="",m=!1,h=!1,v=!1;n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(z,"")),t=t.replace(W,""),o=p(t);while(s<=o.length){switch(i=o[s],u){case ie:if(!i||!T.test(i)){if(n)return j;u=ce;continue}d+=i.toLowerCase(),u=le;break;case le:if(i&&(P.test(i)||"+"==i||"-"==i||"."==i))d+=i.toLowerCase();else{if(":"!=i){if(n)return j;d="",u=ce,s=0;continue}if(n&&(Y(e)!=f(Q,d)||"file"==d&&(Z(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=d,n)return void(Y(e)&&Q[e.scheme]==e.port&&(e.port=null));d="","file"==e.scheme?u=be:Y(e)&&a&&a.scheme==e.scheme?u=ue:Y(e)?u=pe:"/"==o[s+1]?(u=se,s++):(e.cannotBeABaseURL=!0,e.path.push(""),u=Se)}break;case ce:if(!a||a.cannotBeABaseURL&&"#"!=i)return j;if(a.cannotBeABaseURL&&"#"==i){e.scheme=a.scheme,e.path=a.path.slice(),e.query=a.query,e.fragment="",e.cannotBeABaseURL=!0,u=Ae;break}u="file"==a.scheme?be:fe;continue;case ue:if("/"!=i||"/"!=o[s+1]){u=fe;continue}u=me,s++;break;case se:if("/"==i){u=he;break}u=ke;continue;case fe:if(e.scheme=a.scheme,i==r)e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.query=a.query;else if("/"==i||"\\"==i&&Y(e))u=de;else if("?"==i)e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.query="",u=Oe;else{if("#"!=i){e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.path.pop(),u=ke;continue}e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.query=a.query,e.fragment="",u=Ae}break;case de:if(!Y(e)||"/"!=i&&"\\"!=i){if("/"!=i){e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,u=ke;continue}u=he}else u=me;break;case pe:if(u=me,"/"!=i||"/"!=d.charAt(s+1))continue;s++;break;case me:if("/"!=i&&"\\"!=i){u=he;continue}break;case he:if("@"==i){m&&(d="%40"+d),m=!0,l=p(d);for(var g=0;g65535)return N;e.port=Y(e)&&E===Q[e.scheme]?null:E,d=""}if(n)return;u=xe;continue}return N}d+=i;break;case be:if(e.scheme="file","/"==i||"\\"==i)u=Ee;else{if(!a||"file"!=a.scheme){u=ke;continue}if(i==r)e.host=a.host,e.path=a.path.slice(),e.query=a.query;else if("?"==i)e.host=a.host,e.path=a.path.slice(),e.query="",u=Oe;else{if("#"!=i){ne(o.slice(s).join(""))||(e.host=a.host,e.path=a.path.slice(),re(e)),u=ke;continue}e.host=a.host,e.path=a.path.slice(),e.query=a.query,e.fragment="",u=Ae}}break;case Ee:if("/"==i||"\\"==i){u=we;break}a&&"file"==a.scheme&&!ne(o.slice(s).join(""))&&(te(a.path[0],!0)?e.path.push(a.path[0]):e.host=a.host),u=ke;continue;case we:if(i==r||"/"==i||"\\"==i||"?"==i||"#"==i){if(!n&&te(d))u=ke;else if(""==d){if(e.host="",n)return;u=xe}else{if(c=B(e,d),c)return c;if("localhost"==e.host&&(e.host=""),n)return;d="",u=xe}continue}d+=i;break;case xe:if(Y(e)){if(u=ke,"/"!=i&&"\\"!=i)continue}else if(n||"?"!=i)if(n||"#"!=i){if(i!=r&&(u=ke,"/"!=i))continue}else e.fragment="",u=Ae;else e.query="",u=Oe;break;case ke:if(i==r||"/"==i||"\\"==i&&Y(e)||!n&&("?"==i||"#"==i)){if(oe(d)?(re(e),"/"==i||"\\"==i&&Y(e)||e.path.push("")):ae(d)?"/"==i||"\\"==i&&Y(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&te(d)&&(e.host&&(e.host=""),d=d.charAt(0)+":"),e.path.push(d)),d="","file"==e.scheme&&(i==r||"?"==i||"#"==i))while(e.path.length>1&&""===e.path[0])e.path.shift();"?"==i?(e.query="",u=Oe):"#"==i&&(e.fragment="",u=Ae)}else d+=X(i,q);break;case Se:"?"==i?(e.query="",u=Oe):"#"==i?(e.fragment="",u=Ae):i!=r&&(e.path[0]+=X(i,K));break;case Oe:n||"#"!=i?i!=r&&("'"==i&&Y(e)?e.query+="%27":e.query+="#"==i?"%23":X(i,K)):(e.fragment="",u=Ae);break;case Ae:i!=r&&(e.fragment+=X(i,V));break}s++}},Ce=function(e){var t,n,r=s(this,Ce,"URL"),a=arguments.length>1?arguments[1]:void 0,i=String(e),l=x(r,{type:"URL"});if(void 0!==a)if(a instanceof Ce)t=k(a);else if(n=je(t={},String(a)),n)throw TypeError(n);if(n=je(l,i,null,t),n)throw TypeError(n);var c=l.searchParams=new E,u=w(c);u.updateSearchParams(l.query),u.updateURL=function(){l.query=String(c)||null},o||(r.href=Te.call(r),r.origin=Pe.call(r),r.protocol=_e.call(r),r.username=De.call(r),r.password=Ie.call(r),r.host=Fe.call(r),r.hostname=Le.call(r),r.port=Re.call(r),r.pathname=Me.call(r),r.search=ze.call(r),r.searchParams=We.call(r),r.hash=Be.call(r))},Ne=Ce.prototype,Te=function(){var e=k(this),t=e.scheme,n=e.username,r=e.password,a=e.host,o=e.port,i=e.path,l=e.query,c=e.fragment,u=t+":";return null!==a?(u+="//",Z(e)&&(u+=n+(r?":"+r:"")+"@"),u+=H(a),null!==o&&(u+=":"+o)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?i[0]:i.length?"/"+i.join("/"):"",null!==l&&(u+="?"+l),null!==c&&(u+="#"+c),u},Pe=function(){var e=k(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(r){return"null"}return"file"!=t&&Y(e)?t+"://"+H(e.host)+(null!==n?":"+n:""):"null"},_e=function(){return k(this).scheme+":"},De=function(){return k(this).username},Ie=function(){return k(this).password},Fe=function(){var e=k(this),t=e.host,n=e.port;return null===t?"":null===n?H(t):H(t)+":"+n},Le=function(){var e=k(this).host;return null===e?"":H(e)},Re=function(){var e=k(this).port;return null===e?"":String(e)},Me=function(){var e=k(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},ze=function(){var e=k(this).query;return e?"?"+e:""},We=function(){return k(this).searchParams},Be=function(){var e=k(this).fragment;return e?"#"+e:""},Ue=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(o&&c(Ne,{href:Ue(Te,(function(e){var t=k(this),n=String(e),r=je(t,n);if(r)throw TypeError(r);w(t.searchParams).updateSearchParams(t.query)})),origin:Ue(Pe),protocol:Ue(_e,(function(e){var t=k(this);je(t,String(e)+":",ie)})),username:Ue(De,(function(e){var t=k(this),n=p(String(e));if(!ee(t)){t.username="";for(var r=0;r{var t=e.demos,n=t["EventBus-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"eventbus"},a.a.createElement(o["AnchorLink"],{to:"#eventbus","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"EventBus"),a.a.createElement("p",null,"\u4e00\u79cd\u4e8b\u4ef6\u53d1\u5e03\u8ba2\u9605\u6a21\u5f0f\u3002\u901a\u8fc7\u5f02\u6b65\u5904\u7406\u5c06\u4e8b\u4ef6\u7684\u53d1\u8d77\u548c\u5904\u7406\u5206\u5272\u5f00\u6765\u5b9e\u73b0\u89e3\u8026\u5408\uff0c\u9ad8\u6027\u80fd\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"class EventBus {\n private listeners\n private getEventMap\n on: (\n event: string,\n listener: Function,\n {\n once,\n }?: {\n once?: boolean\n }\n ) => this\n once: (event: string, listener: Function, config?: {}) => this\n off: (event: string, listener: Function) => this\n emit: (event: string, ...args: any[]) => void\n}",lang:"ts"}),a.a.createElement("h2",{id:"\u5b9e\u4f8b\u5c5e\u6027"},a.a.createElement(o["AnchorLink"],{to:"#\u5b9e\u4f8b\u5c5e\u6027","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u5b9e\u4f8b\u5c5e\u6027"),a.a.createElement("ul",null,a.a.createElement("li",null,"listeners \u603b\u7684\u4e8b\u4ef6\u5bf9\u8c61\uff0c\u7ba1\u7406\u6240\u6709\u7684\u4e8b\u4ef6\u3002"),a.a.createElement("li",null,"getEventMap(event) \u6839\u636e\u4e8b\u4ef6\u540d event \u6765\u83b7\u5f97\u5bf9\u5e94\u7684 ",a.a.createElement("code",null,"Map")," \u5bf9\u8c61\u3002"),a.a.createElement("li",null,"on(event, callback) \u76d1\u542c\u53d1\u51fa\u7684\u4e8b\u4ef6 event \u3002"),a.a.createElement("li",null,"once(event, callback) \u76d1\u542c\u7b2c\u4e00\u6b21\u53d1\u51fa\u7684\u4e8b\u4ef6\u3002"),a.a.createElement("li",null,"off(event, listener) \u5220\u9664\u67d0\u4e2a\u76d1\u542c\u5668\u91cc\u7684\u4e8b\u4ef6 event \u3002"),a.a.createElement("li",null,"emit(event) \u53d1\u9001\u4e8b\u4ef6\u3002")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"EventBus \u7684\u5b9e\u4f8b")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["EventBus-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},"Ef+f":function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},EiSY:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("sErw"),i=n("lkgX");r({target:"Map",proto:!0,real:!0,forced:a},{update:function(e,t){var n=o(this),r=arguments.length;i(t);var a=n.has(e);if(!a&&r<3)throw TypeError("Updating absent value");var l=a?n.get(e):i(r>2?arguments[2]:void 0)(e,n);return n.set(e,t(l,e,n)),n}})},EnC2:function(e,t,n){},"F/PV":function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},F71Q:function(e,t,n){var r=n("pADs");function a(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}e.exports=a},FHCv:function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,a="function"===typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(e,t,n,r){var a=t&&t.prototype instanceof h?t:h,o=Object.create(a.prototype),i=new C(r||[]);return o._invoke=S(e,n,i),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}e.wrap=c;var s="suspendedStart",f="suspendedYield",d="executing",p="completed",m={};function h(){}function v(){}function g(){}var y={};y[o]=function(){return this};var b=Object.getPrototypeOf,E=b&&b(b(N([])));E&&E!==n&&r.call(E,o)&&(y=E);var w=g.prototype=h.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function k(e,t){function n(a,o,i,l){var c=u(e[a],e,o);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"===typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(f).then((function(e){s.value=e,i(s)}),(function(e){return n("throw",e,i,l)}))}l(c.arg)}var a;function o(e,r){function o(){return new t((function(t,a){n(e,r,t,a)}))}return a=a?a.then(o,o):o()}this._invoke=o}function S(e,t,n){var r=s;return function(a,o){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===a)throw o;return T()}n.method=a,n.arg=o;while(1){var i=n.delegate;if(i){var l=O(i,n);if(l){if(l===m)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===s)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=u(e,t,n);if("normal"===c.type){if(r=n.done?p:f,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.arg)}}}function O(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator["return"]&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var a=u(r,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function N(e){if(e){var n=e[o];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function n(){while(++a=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:N(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=r}catch(a){Function("r","regeneratorRuntime = r")(r)}},FbU2:function(e,t,n){var r=n("muZu"),a=n("eoSM");function o(e,t,n){var o=t(e);return a(e)?o:r(o,n(e))}e.exports=o},FfOG:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n("ptaF"),a={basename:"/"};window.routerBase&&(a.basename=window.routerBase);var o=Object({NODE_ENV:"production"}).__IS_SERVER?null:Object(r["b"])(a),i=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e||(o=Object(r["b"])(a)),o}},FlI8:function(e,t,n){var r=n("OOCw"),a=n("7F/w"),o=n("eW2S"),i=!o((function(e){Array.from(e)}));r({target:"Array",stat:!0,forced:i},{from:a})},Ft2i:function(e,t,n){"use strict";var r=n("OOCw"),a=n("lkgX"),o=n("OdMF"),i=n("h+/6"),l=n("rUEg"),c=[],u=c.sort,s=i((function(){c.sort(void 0)})),f=i((function(){c.sort(null)})),d=l("sort"),p=s||!f||!d;r({target:"Array",proto:!0,forced:p},{sort:function(e){return void 0===e?u.call(o(this)):u.call(o(this),a(e))}})},G2F8:function(e,t,n){var r=n("ANLo"),a=n("upgS");e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=a(t);if(t!==n)throw RangeError("Wrong length or index");return n}},G3cz:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return o}));var r=n("f2HW");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t{var t=e.demos,n=t["isExist-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"isexist"},a.a.createElement(o["AnchorLink"],{to:"#isexist","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isExist"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u5b58\u5728\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isExist: (value: any) => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value \uff0c\u8981\u5224\u65ad\u7684\u6570\u636e")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u662f\u5b58\u5728"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u662f\u4e0d\u5b58\u5728")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isExist-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},GLQI:function(e,t,n){var r=n("cBxx"),a=Object.prototype,o=a.hasOwnProperty,i=a.toString,l=r?r.toStringTag:void 0;function c(e){var t=o.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(c){}var a=i.call(e);return r&&(t?e[l]=n:delete e[l]),a}e.exports=c},"GLf+":function(e,t){var n=Function.prototype,r=n.toString;function a(e){if(null!=e){try{return r.call(e)}catch(t){}try{return e+""}catch(t){}}return""}e.exports=a},GQDD:function(e,t,n){var r=n("t+TA"),a=n("O4yA"),o=r(a,"Map");e.exports=o},GRr6:function(e,t,n){var r=n("F71Q");function a(e,t){var n=r(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}e.exports=a},GXoa:function(e,t,n){"use strict";var r=n("OOCw"),a=n("6SQG"),o=n("r+6h"),i=n("vMeL"),l=n("g0pg"),c=n("xy/A"),u=n("CZSf"),s=n("ZVkV"),f=n("MZA9"),d=n("upgS"),p=n("G2F8"),m=n("vViN"),h=n("JSMs"),v=n("oEsY"),g=n("elB0"),y=n("x+sk"),b=n("QWtl"),E=n("d8EH"),w=n("lFeU").f,x=n("N0ls"),k=n("M+Sl").forEach,S=n("ct0+"),O=n("0JbB"),A=n("6ssM"),j=n("uJNS"),C=n("aRba"),N=j.get,T=j.set,P=O.f,_=A.f,D=Math.round,I=a.RangeError,F=c.ArrayBuffer,L=c.DataView,R=l.NATIVE_ARRAY_BUFFER_VIEWS,M=l.TYPED_ARRAY_TAG,z=l.TypedArray,W=l.TypedArrayPrototype,B=l.aTypedArrayConstructor,U=l.isTypedArray,G="BYTES_PER_ELEMENT",J="Wrong length",H=function(e,t){var n=0,r=t.length,a=new(B(e))(r);while(r>n)a[n]=t[n++];return a},K=function(e,t){P(e,t,{get:function(){return N(this)[t]}})},V=function(e){var t;return e instanceof F||"ArrayBuffer"==(t=g(e))||"SharedArrayBuffer"==t},q=function(e,t){return U(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},$=function(e,t){return q(e,t=h(t,!0))?s(2,e[t]):_(e,t)},X=function(e,t,n){return!(q(e,t=h(t,!0))&&y(n)&&v(n,"value"))||v(n,"get")||v(n,"set")||n.configurable||v(n,"writable")&&!n.writable||v(n,"enumerable")&&!n.enumerable?P(e,t,n):(e[t]=n.value,e)};o?(R||(A.f=$,O.f=X,K(W,"buffer"),K(W,"byteOffset"),K(W,"byteLength"),K(W,"length")),r({target:"Object",stat:!0,forced:!R},{getOwnPropertyDescriptor:$,defineProperty:X}),e.exports=function(e,t,n){var o=e.match(/\d+$/)[0]/8,l=e+(n?"Clamped":"")+"Array",c="get"+e,s="set"+e,h=a[l],v=h,g=v&&v.prototype,O={},A=function(e,t){var n=N(e);return n.view[c](t*o+n.byteOffset,!0)},j=function(e,t,r){var a=N(e);n&&(r=(r=D(r))<0?0:r>255?255:255&r),a.view[s](t*o+a.byteOffset,r,!0)},_=function(e,t){P(e,t,{get:function(){return A(this,t)},set:function(e){return j(this,t,e)},enumerable:!0})};R?i&&(v=t((function(e,t,n,r){return u(e,v,l),C(function(){return y(t)?V(t)?void 0!==r?new h(t,m(n,o),r):void 0!==n?new h(t,m(n,o)):new h(t):U(t)?H(v,t):x.call(v,t):new h(p(t))}(),e,v)})),E&&E(v,z),k(w(h),(function(e){e in v||f(v,e,h[e])})),v.prototype=g):(v=t((function(e,t,n,r){u(e,v,l);var a,i,c,s=0,f=0;if(y(t)){if(!V(t))return U(t)?H(v,t):x.call(v,t);a=t,f=m(n,o);var h=t.byteLength;if(void 0===r){if(h%o)throw I(J);if(i=h-f,i<0)throw I(J)}else if(i=d(r)*o,i+f>h)throw I(J);c=i/o}else c=p(t),i=c*o,a=new F(i);T(e,{buffer:a,byteOffset:f,byteLength:i,length:c,view:new L(a)});while(so)a.push(arguments[o++]);if(r=t,(p(t)||void 0!==e)&&!le(e))return d(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!le(t))return t}),a[1]=t,V.apply(null,a)}})}K[B][U]||j(K[B],U,K[B].valueOf),L(K,W),P[z]=!0},GnHn:function(e,t,n){"use strict";var r=n("QkOx"),a=n("sErw"),o=n("z43i"),i=n("1wx2"),l=n("OR72");r("search",1,(function(e,t,n){return[function(t){var n=o(this),r=void 0==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var o=a(e),c=String(this),u=o.lastIndex;i(u,0)||(o.lastIndex=0);var s=l(o,c);return i(o.lastIndex,u)||(o.lastIndex=u),null===s?-1:s.index}]}))},Gs6S:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("sErw"),i=n("R8Xy"),l=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:a},{join:function(e){var t=o(this),n=i(t),r=void 0===e?",":String(e),a=[];return l(n,a.push,a,!1,!0),a.join(r)}})},"HN/d":function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?arguments[1]:void 0;return r(this),t=void 0!==u,t&&r(u),void 0==e?new this:(n=[],t?(i=0,l=a(u,c>2?arguments[2]:void 0,2),o(e,(function(e){n.push(l(e,i++))}))):o(e,n.push,n),new this(n))}},HU7W:function(e,t){function n(e,t){return null==e?void 0:e[t]}e.exports=n},HVkW:function(e,t,n){"use strict";var r=n("OOCw"),a=n("r+6h"),o=n("ct0+"),i=n("lkgX"),l=n("sErw"),c=n("x+sk"),u=n("CZSf"),s=n("0JbB").f,f=n("MZA9"),d=n("TxBV"),p=n("mxPn"),m=n("uZx/"),h=n("Cqy2"),v=n("3Hes"),g=n("uJNS"),y=v("observable"),b=g.get,E=g.set,w=function(e){return null==e?void 0:i(e)},x=function(e){var t=e.cleanup;if(t){e.cleanup=void 0;try{t()}catch(n){h(n)}}},k=function(e){return void 0===e.observer},S=function(e,t){if(!a){e.closed=!0;var n=t.subscriptionObserver;n&&(n.closed=!0)}t.observer=void 0},O=function(e,t){var n,r=E(this,{cleanup:void 0,observer:l(e),subscriptionObserver:void 0});a||(this.closed=!1);try{(n=w(e.start))&&n.call(e,this)}catch(s){h(s)}if(!k(r)){var o=r.subscriptionObserver=new A(this);try{var c=t(o),u=c;null!=c&&(r.cleanup="function"===typeof c.unsubscribe?function(){u.unsubscribe()}:i(c))}catch(s){return void o.error(s)}k(r)&&x(r)}};O.prototype=d({},{unsubscribe:function(){var e=b(this);k(e)||(S(this,e),x(e))}}),a&&s(O.prototype,"closed",{configurable:!0,get:function(){return k(b(this))}});var A=function(e){E(this,{subscription:e}),a||(this.closed=!1)};A.prototype=d({},{next:function(e){var t=b(b(this).subscription);if(!k(t)){var n=t.observer;try{var r=w(n.next);r&&r.call(n,e)}catch(a){h(a)}}},error:function(e){var t=b(this).subscription,n=b(t);if(!k(n)){var r=n.observer;S(t,n);try{var a=w(r.error);a?a.call(r,e):h(e)}catch(o){h(o)}x(n)}},complete:function(){var e=b(this).subscription,t=b(e);if(!k(t)){var n=t.observer;S(e,t);try{var r=w(n.complete);r&&r.call(n)}catch(a){h(a)}x(t)}}}),a&&s(A.prototype,"closed",{configurable:!0,get:function(){return k(b(b(this).subscription))}});var j=function(e){u(this,j,"Observable"),E(this,{subscriber:i(e)})};d(j.prototype,{subscribe:function(e){var t=arguments.length;return new O("function"===typeof e?{next:e,error:t>1?arguments[1]:void 0,complete:t>2?arguments[2]:void 0}:c(e)?e:{},b(this).subscriber)}}),d(j,{from:function(e){var t="function"===typeof this?this:j,n=w(l(e)[y]);if(n){var r=l(n.call(e));return r.constructor===t?r:new t((function(e){return r.subscribe(e)}))}var a=p(e);return new t((function(e){m(a,(function(t){if(e.next(t),e.closed)return m.stop()}),void 0,!1,!0),e.complete()}))},of:function(){var e="function"===typeof this?this:j,t=arguments.length,n=new Array(t),r=0;while(r>>0,o=t>>>0,i=n>>>0;return o-(r>>>0)-((~a&i|~(a^i)&a-i>>>0)>>>31)|0}})},Hy9b:function(e,t,n){var r=n("h+/6"),a=n("3Hes"),o=n("qyeh"),i=a("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t["delete"]("b"),n+=r+e})),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[i]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://\u0442\u0435\u0441\u0442").host||"#%D0%B1"!==new URL("http://a#\u0431").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},HznY:function(e,t,n){"use strict";var r=n("g0pg"),a=n("YfbA").includes,o=r.aTypedArray,i=r.exportTypedArrayMethod;i("includes",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},I0FN:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["uniqByKey-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"uniqbykey"},a.a.createElement(o["AnchorLink"],{to:"#uniqbykey","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"uniqByKey"),a.a.createElement("p",null,"\u53bb\u91cd\u5bf9\u8c61\u6570\u7ec4\u3002"),a.a.createElement("h3",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"uniqByKey: (array: any[], key: any) => T[];",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"array \uff0c\u5bf9\u8c61\u6570\u7ec4"),a.a.createElement("li",null,"key \uff0c\u6bd4\u5bf9\u7684 key \u503c")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u8fd4\u56de\u53bb\u91cd\u540e\u7684\u65b0\u6570\u7ec4\u3002")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"uniqByKey([{ name: 'a' }, { name: 'b' }, { name: 'a' }], 'name') // [{name: 'a'},{name: 'a'}]",lang:"javascript"})),a.a.createElement(i["default"],t["uniqByKey-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},I99e:function(e,t,n){var r=n("O4yA"),a=r["__core-js_shared__"];e.exports=a},"IuL+":function(e,t,n){var r=n("PORw"),a=n("VJj2"),o=n("lf6h"),i="[object Arguments]",l="[object Array]",c="[object Boolean]",u="[object Date]",s="[object Error]",f="[object Function]",d="[object Map]",p="[object Number]",m="[object Object]",h="[object RegExp]",v="[object Set]",g="[object String]",y="[object WeakMap]",b="[object ArrayBuffer]",E="[object DataView]",w="[object Float32Array]",x="[object Float64Array]",k="[object Int8Array]",S="[object Int16Array]",O="[object Int32Array]",A="[object Uint8Array]",j="[object Uint8ClampedArray]",C="[object Uint16Array]",N="[object Uint32Array]",T={};function P(e){return o(e)&&a(e.length)&&!!T[r(e)]}T[w]=T[x]=T[k]=T[S]=T[O]=T[A]=T[j]=T[C]=T[N]=!0,T[i]=T[l]=T[b]=T[c]=T[E]=T[u]=T[s]=T[f]=T[d]=T[p]=T[m]=T[h]=T[v]=T[g]=T[y]=!1,e.exports=P},J4oQ:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["capitalize-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"capitalize"},a.a.createElement(o["AnchorLink"],{to:"#capitalize","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"capitalize"),a.a.createElement("p",null,"\u4f7f\u9996\u5b57\u6bcd\u5927\u5199\u7684\u51fd\u6570\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"capitalize(word: string): string;",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"string\uff0c\u9700\u8981\u9996\u5b57\u6bcd\u53d8\u5927\u5199\u7684\u5b57\u7b26\u4e32")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u9996\u5b57\u6bcd\u5927\u5199\u540e\u7684\u5b57\u7b26\u4e32")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"capitalize('hello') // Hello",lang:"javascript"})),a.a.createElement(i["default"],t["capitalize-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},JG3H:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("nNWW");function a(e,t,n){var a=r["useRef"]({});return"value"in a.current&&!n(a.current.condition,t)||(a.current.value=e(),a.current.condition=t),a.current.value}},JLOv:function(e,t,n){var r=n("OOCw"),a=n("SuUP"),o=n("eyaU"),i=n("QWtl"),l=function(){var e=o("Object","freeze");return e?e(i(null)):i(null)};r({global:!0},{compositeKey:function(){return a.apply(Object,arguments).get("object",l)}})},JSMs:function(e,t,n){var r=n("x+sk");e.exports=function(e,t){if(!r(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!r(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},JsrE:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("973d"),i=n("vh/W"),l=n("2E/K"),c=n("ME80"),u=n("jtnu"),s=n("V6CC"),f=n("BRxd"),d=n.n(f),p=n("NuOa"),m=function(){if("undefined"===typeof navigator||"undefined"===typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null===e||void 0===e?void 0:e.substr(0,4))};function h(e){var t=r["useRef"]();t.current=e;var n=r["useCallback"]((function(){for(var e,n=arguments.length,r=new Array(n),a=0;ad&&pc+h){n=r-1;break}}for(var o=0,s=t-1;s>=0;s-=1){var f=e.get(u[s].key)||P;if(f[l]w,Ae=Object(r["useMemo"])((function(){var e=c;return ke?e=null===F&&_?c:c.slice(0,Math.min(c.length,R/v)):"number"===typeof w&&(e=c.slice(0,w)),e}),[c,v,F,w,ke]),je=Object(r["useMemo"])((function(){return ke?c.slice(he+1):c.slice(Ae.length)}),[c,Ae,ke,he]),Ce=Object(r["useCallback"])((function(e,t){var n;return"function"===typeof m?m(e):null!==(n=m&&(null===e||void 0===e?void 0:e[m]))&&void 0!==n?n:t}),[m]),Ne=Object(r["useCallback"])(f||function(e){return e},[f]);function Te(e,t,n){(pe!==e||void 0!==t&&t!==ue)&&(me(e),n||(be(eR){Te(r-1,e-a-oe+te);break}}O&&Fe(0)+oe>R&&se(null)}}),[R,U,te,oe,Ce,Ae]);var Le=ye&&!!je.length,Re={};null!==ue&&ke&&(Re={position:"absolute",left:ue,top:0});var Me,ze={prefixCls:Ee,responsive:ke,component:C,invalidate:Se},We=p?function(e,t){var n=Ce(e,t);return r["createElement"]($.Provider,{key:n,value:Object(s["a"])(Object(s["a"])({},ze),{},{order:t,item:e,itemKey:n,registerSize:_e,display:t<=he})},p(e,t))}:function(e,t){var n=Ce(e,t);return r["createElement"](W,Object(o["a"])({},ze,{order:t,key:n,item:e,renderItem:Ne,itemKey:n,registerSize:_e,display:t<=he}))},Be={order:Le?he:Number.MAX_SAFE_INTEGER,className:"".concat(Ee,"-rest"),registerSize:De,display:Le};if(S)S&&(Me=r["createElement"]($.Provider,{value:Object(s["a"])(Object(s["a"])({},ze),Be)},S(je)));else{var Ue=x||Y;Me=r["createElement"](W,Object(o["a"])({},ze,Be),"function"===typeof Ue?Ue(je):Ue)}var Ge=r["createElement"](j,Object(o["a"])({className:d()(!Se&&a,E),style:b,ref:t},T),Ae.map(We),Oe?Me:null,O&&r["createElement"](W,Object(o["a"])({},ze,{responsive:xe,responsiveDisabled:!ke,order:he,className:"".concat(Ee,"-suffix"),registerSize:Ie,display:!0,style:Re}),O));return xe&&(Ge=r["createElement"](k["a"],{onResize:Pe,disabled:!ke},Ge)),Ge}var ee=r["forwardRef"](Z);ee.displayName="Overflow",ee.Item=V,ee.RESPONSIVE=X,ee.INVALIDATE=Q;var te=ee,ne=te,re=n("p4sU"),ae=n("asw4"),oe=n("sLj8"),ie=n("qAhB"),le=n("Q1cZ"),ce=n("JG3H"),ue=["children","locked"],se=r["createContext"](null);function fe(e,t){var n=Object(s["a"])({},e);return Object.keys(t).forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n}function de(e){var t=e.children,n=e.locked,a=Object(u["a"])(e,ue),o=r["useContext"](se),i=Object(ce["a"])((function(){return fe(o,a)}),[o,a],(function(e,t){return!n&&(e[0]!==t[0]||!I()(e[1],t[1]))}));return r["createElement"](se.Provider,{value:i},t)}function pe(e,t,n,a){var o=r["useContext"](se),i=o.activeKey,l=o.onActive,c=o.onInactive,u={active:i===e};return t||(u.onMouseEnter=function(t){null===n||void 0===n||n({key:e,domEvent:t}),l(e)},u.onMouseLeave=function(t){null===a||void 0===a||a({key:e,domEvent:t}),c(e)}),u}var me=["item"];function he(e){var t=e.item,n=Object(u["a"])(e,me);return Object.defineProperty(n,"item",{get:function(){return Object(F["a"])(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}function ve(e){var t,n=e.icon,a=e.props,o=e.children;return t="function"===typeof n?r["createElement"](n,Object(s["a"])({},a)):n,t||o||null}function ge(e){var t=r["useContext"](se),n=t.mode,a=t.rtl,o=t.inlineIndent;if("inline"!==n)return null;var i=e;return a?{paddingRight:i*o}:{paddingLeft:i*o}}var ye=[],be=r["createContext"](null);function Ee(){return r["useContext"](be)}var we=r["createContext"](ye);function xe(e){var t=r["useContext"](we);return r["useMemo"]((function(){return void 0!==e?[].concat(Object(w["a"])(t),[e]):t}),[t,e])}var ke=r["createContext"](null),Se=r["createContext"](null);function Oe(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Ae(e){var t=r["useContext"](Se);return Oe(t,e)}var je=r["createContext"]({}),Ce=je,Ne=["title","attribute","elementRef"],Te=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Pe=["active"],_e=function(e){Object(oe["a"])(n,e);var t=Object(ie["a"])(n);function n(){return Object(re["a"])(this,n),t.apply(this,arguments)}return Object(ae["a"])(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,a=e.elementRef,i=Object(u["a"])(e,Ne),l=Object(le["a"])(i,["eventKey"]);return Object(F["a"])(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),r["createElement"](ne.Item,Object(o["a"])({},n,{title:"string"===typeof t?t:void 0},l,{ref:a}))}}]),n}(r["Component"]),De=function(e){var t,n=e.style,a=e.className,l=e.eventKey,c=(e.warnKey,e.disabled),f=e.itemIcon,p=e.children,m=e.role,h=e.onMouseEnter,v=e.onMouseLeave,g=e.onClick,y=e.onKeyDown,b=e.onFocus,E=Object(u["a"])(e,Te),x=Ae(l),k=r["useContext"](se),S=k.prefixCls,O=k.onItemClick,j=k.disabled,C=k.overflowDisabled,N=k.itemIcon,T=k.selectedKeys,P=k.onActive,_=r["useContext"](Ce),D=_._internalRenderMenuItem,I="".concat(S,"-item"),F=r["useRef"](),L=r["useRef"](),R=j||c,M=xe(l);var z=function(e){return{key:l,keyPath:Object(w["a"])(M).reverse(),item:F.current,domEvent:e}},W=f||N,B=pe(l,R,h,v),U=B.active,G=Object(u["a"])(B,Pe),J=T.includes(l),H=ge(M.length),K=function(e){if(!R){var t=z(e);null===g||void 0===g||g(he(t)),O(t)}},V=function(e){if(null===y||void 0===y||y(e),e.which===A["a"].ENTER){var t=z(e);null===g||void 0===g||g(he(t)),O(t)}},q=function(e){P(l),null===b||void 0===b||b(e)},$={};"option"===e.role&&($["aria-selected"]=J);var X=r["createElement"](_e,Object(o["a"])({ref:F,elementRef:L,role:null===m?"none":m||"menuitem",tabIndex:c?null:-1,"data-menu-id":C&&x?null:x},E,G,$,{component:"li","aria-disabled":c,style:Object(s["a"])(Object(s["a"])({},H),n),className:d()(I,(t={},Object(i["a"])(t,"".concat(I,"-active"),U),Object(i["a"])(t,"".concat(I,"-selected"),J),Object(i["a"])(t,"".concat(I,"-disabled"),R),t),a),onClick:K,onKeyDown:V,onFocus:q}),p,r["createElement"](ve,{props:Object(s["a"])(Object(s["a"])({},e),{},{isSelected:J}),icon:W}));return D&&(X=D(X,e,{selected:J})),X};function Ie(e){var t=e.eventKey,n=Ee(),a=xe(t);return r["useEffect"]((function(){if(n)return n.registerPath(t,a),function(){n.unregisterPath(t,a)}}),[a]),n?null:r["createElement"](De,e)}var Fe=Ie,Le=["label","children","key","type"];function Re(e,t){return Object(p["a"])(e).map((function(e,n){if(r["isValidElement"](e)){var a,o,i=e.key,l=null!==(a=null===(o=e.props)||void 0===o?void 0:o.eventKey)&&void 0!==a?a:i,c=null===l||void 0===l;c&&(l="tmp_key-".concat([].concat(Object(w["a"])(t),[n]).join("-")));var u={key:l,eventKey:l};return r["cloneElement"](e,u)}return e}))}function Me(e){return(e||[]).map((function(e,t){if(e&&"object"===Object(c["a"])(e)){var n=e.label,a=e.children,i=e.key,l=e.type,s=Object(u["a"])(e,Le),f=null!==i&&void 0!==i?i:"tmp-".concat(t);return a||"group"===l?"group"===l?r["createElement"](ta,Object(o["a"])({key:f},s,{title:n}),Me(a)):r["createElement"](wr,Object(o["a"])({key:f},s,{title:n}),Me(a)):"divider"===l?r["createElement"](na,Object(o["a"])({key:f},s)):r["createElement"](Fe,Object(o["a"])({key:f},s),n)}return null})).filter((function(e){return e}))}function ze(e,t,n){var r=e;return t&&(r=Me(t)),Re(r,n)}function We(e){var t=r["useRef"](e);t.current=e;var n=r["useCallback"]((function(){for(var e,n=arguments.length,r=new Array(n),a=0;a=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function hn(e,t,n,r){var a=un.clone(e),o={width:t.width,height:t.height};return r.adjustX&&a.left=n.left&&a.left+o.width>n.right&&(o.width-=a.left+o.width-n.right),r.adjustX&&a.left+o.width>n.right&&(a.left=Math.max(n.right-o.width,n.left)),r.adjustY&&a.top=n.top&&a.top+o.height>n.bottom&&(o.height-=a.top+o.height-n.bottom),r.adjustY&&a.top+o.height>n.bottom&&(a.top=Math.max(n.bottom-o.height,n.top)),un.mix(a,o)}function vn(e){var t,n,r;if(un.isWindow(e)||9===e.nodeType){var a=un.getWindow(e);t={left:un.getWindowScrollLeft(a),top:un.getWindowScrollTop(a)},n=un.viewportWidth(a),r=un.viewportHeight(a)}else t=un.offset(e),n=un.outerWidth(e),r=un.outerHeight(e);return t.width=n,t.height=r,t}function gn(e,t){var n=t.charAt(0),r=t.charAt(1),a=e.width,o=e.height,i=e.left,l=e.top;return"c"===n?l+=o/2:"b"===n&&(l+=o),"c"===r?i+=a/2:"r"===r&&(i+=a),{left:i,top:l}}function yn(e,t,n,r,a){var o=gn(t,n[1]),i=gn(e,n[0]),l=[i.left-o.left,i.top-o.top];return{left:Math.round(e.left-l[0]+r[0]-a[0]),top:Math.round(e.top-l[1]+r[1]-a[1])}}function bn(e,t,n){return e.leftn.right}function En(e,t,n){return e.topn.bottom}function wn(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.right||r.top>=n.bottom}function Nn(e,t,n){var r=n.target||t,a=vn(r),o=!Cn(r,n.overflow&&n.overflow.alwaysByViewport);return jn(e,a,n,o)}function Tn(e,t,n){var r,a,o=un.getDocument(e),i=o.defaultView||o.parentWindow,l=un.getWindowScrollLeft(i),c=un.getWindowScrollTop(i),u=un.viewportWidth(i),s=un.viewportHeight(i);r="pageX"in t?t.pageX:l+t.clientX,a="pageY"in t?t.pageY:c+t.clientY;var f={left:r,top:a,width:0,height:0},d=r>=0&&r<=l+u&&a>=0&&a<=c+s,p=[n.points[0],"cc"];return jn(e,f,st(st({},n),{},{points:p}),d)}Nn.__getOffsetParent=fn,Nn.__getVisibleRectForElement=mn;var Pn=n("rDMZ"),_n=n.n(Pn),Dn=n("QQXB");function In(e,t){return e===t||!(!e||!t)&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&(e.clientX===t.clientX&&e.clientY===t.clientY))}function Fn(e,t){e!==document.activeElement&&qe(t,e)&&"function"===typeof e.focus&&e.focus()}function Ln(e,t){var n=null,r=null;function a(e){var a=Object(l["a"])(e,1),o=a[0].target;if(document.documentElement.contains(o)){var i=o.getBoundingClientRect(),c=i.width,u=i.height,s=Math.floor(c),f=Math.floor(u);n===s&&r===f||Promise.resolve().then((function(){t({width:s,height:f})})),n=s,r=f}}var o=new Dn["a"](a);return e&&o.observe(e),function(){o.disconnect()}}var Rn=function(e,t){var n=a.a.useRef(!1),r=a.a.useRef(null);function o(){window.clearTimeout(r.current)}function i(a){if(o(),n.current&&!0!==a)r.current=window.setTimeout((function(){n.current=!1,i()}),t);else{if(!1===e())return;n.current=!0,r.current=window.setTimeout((function(){n.current=!1}),t)}}return[i,function(){n.current=!1,o()}]};function Mn(e){return"function"!==typeof e?null:e()}function zn(e){return"object"===Object(c["a"])(e)&&e?e:null}var Wn=function(e,t){var n=e.children,r=e.disabled,o=e.target,i=e.align,c=e.onAlign,u=e.monitorWindowResize,s=e.monitorBufferTime,f=void 0===s?0:s,d=a.a.useRef({}),p=a.a.useRef(),m=a.a.Children.only(n),h=a.a.useRef({});h.current.disabled=r,h.current.target=o,h.current.align=i,h.current.onAlign=c;var v=Rn((function(){var e=h.current,t=e.disabled,n=e.target,r=e.align,a=e.onAlign;if(!t&&n){var o,i=p.current,l=Mn(n),c=zn(n);d.current.element=l,d.current.point=c,d.current.align=r;var u=document,s=u.activeElement;return l&&ct(l)?o=Nn(i,l,r):c&&(o=Tn(i,c,r)),Fn(s,i),a&&o&&a(i,o),!0}return!1}),f),g=Object(l["a"])(v,2),y=g[0],b=g[1],E=a.a.useRef({cancel:function(){}}),w=a.a.useRef({cancel:function(){}});a.a.useEffect((function(){var e=Mn(o),t=zn(o);p.current!==w.current.element&&(w.current.cancel(),w.current.element=p.current,w.current.cancel=Ln(p.current,y)),d.current.element===e&&In(d.current.point,t)&&_n()(d.current.align,i)||(y(),E.current.element!==e&&(E.current.cancel(),E.current.element=e,E.current.cancel=Ln(e,y)))})),a.a.useEffect((function(){r?b():y()}),[r]);var x=a.a.useRef(null);return a.a.useEffect((function(){u?x.current||(x.current=Qe(window,"resize",y)):x.current&&(x.current.remove(),x.current=null)}),[u]),a.a.useEffect((function(){return function(){E.current.cancel(),w.current.cancel(),x.current&&x.current.remove(),b()}}),[]),a.a.useImperativeHandle(t,(function(){return{forceAlign:function(){return y(!0)}}})),a.a.isValidElement(m)&&(m=a.a.cloneElement(m,{ref:Object(Xe["a"])(m.ref,p)})),m},Bn=a.a.forwardRef(Wn);Bn.displayName="Align";var Un=Bn,Gn=Un;function Jn(){Jn=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(N){u=function(e,t,n){return e[t]=n}}function s(e,t,n,a){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),l=new A(a||[]);return r(i,"_invoke",{value:x(e,n,l)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(N){return{type:"throw",arg:N}}}e.wrap=s;var d={};function p(){}function m(){}function h(){}var v={};u(v,o,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(j([])));y&&y!==t&&n.call(y,o)&&(v=y);var b=h.prototype=p.prototype=Object.create(v);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function a(r,o,i,l){var u=f(e[r],e,o);if("throw"!==u.type){var s=u.arg,d=s.value;return d&&"object"==Object(c["a"])(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,i,l)}),(function(e){a("throw",e,i,l)})):t.resolve(d).then((function(e){s.value=e,i(s)}),(function(e){return a("throw",e,i,l)}))}l(u.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return C()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var l=k(i,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=f(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function k(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=f(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function j(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(l&&c){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;O(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:j(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function Hn(e,t,n,r,a,o,i){try{var l=e[o](i),c=l.value}catch(u){return void n(u)}l.done?t(c):Promise.resolve(c).then(r,a)}function Kn(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Hn(o,r,a,i,l,"next",e)}function l(e){Hn(o,r,a,i,l,"throw",e)}i(void 0)}))}}var Vn=["measure","alignPre","align",null,"motion"],qn=function(e,t){var n=Object(y["a"])(null),a=Object(l["a"])(n,2),o=a[0],i=a[1],c=Object(r["useRef"])();function u(e){i(e,!0)}function s(){x["a"].cancel(c.current)}function f(e){s(),c.current=Object(x["a"])((function(){u((function(e){switch(o){case"align":return"motion";case"motion":return"stable";default:}return e})),null===e||void 0===e||e()}))}return Object(r["useEffect"])((function(){u("measure")}),[e]),Object(r["useEffect"])((function(){switch(o){case"measure":t();break;default:}o&&(c.current=Object(x["a"])(Kn(Jn().mark((function e(){var t,n;return Jn().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=Vn.indexOf(o),n=Vn[t+1],n&&-1!==t&&u(n);case 3:case"end":return e.stop()}}),e)})))))}),[o]),Object(r["useEffect"])((function(){return function(){s()}}),[]),[o,f]},$n=function(e){var t=r["useState"]({width:0,height:0}),n=Object(l["a"])(t,2),a=n[0],o=n[1];function i(e){o({width:e.offsetWidth,height:e.offsetHeight})}var c=r["useMemo"]((function(){var t={};if(e){var n=a.width,r=a.height;-1!==e.indexOf("height")&&r?t.height=r:-1!==e.indexOf("minHeight")&&r&&(t.minHeight=r),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,a]);return[c,i]},Xn=r["forwardRef"]((function(e,t){var n=e.visible,a=e.prefixCls,i=e.className,c=e.style,u=e.children,f=e.zIndex,p=e.stretch,m=e.destroyPopupOnHide,h=e.forceRender,v=e.align,y=e.point,b=e.getRootDomNode,E=e.getClassNameFromAlign,w=e.onAlign,x=e.onMouseEnter,k=e.onMouseLeave,S=e.onMouseDown,O=e.onTouchStart,A=e.onClick,j=Object(r["useRef"])(),C=Object(r["useRef"])(),N=Object(r["useState"])(),T=Object(l["a"])(N,2),P=T[0],_=T[1],D=$n(p),I=Object(l["a"])(D,2),F=I[0],L=I[1];function R(){p&&L(b())}var M=qn(n,R),z=Object(l["a"])(M,2),W=z[0],B=z[1],U=Object(r["useState"])(0),G=Object(l["a"])(U,2),J=G[0],H=G[1],K=Object(r["useRef"])();function V(){return y||b}function q(){var e;null===(e=j.current)||void 0===e||e.forceAlign()}function $(e,t){var n=E(t);P!==n&&_(n),H((function(e){return e+1})),"align"===W&&(null===w||void 0===w||w(e,t))}Object(g["a"])((function(){"alignPre"===W&&H(0)}),[W]),Object(g["a"])((function(){"align"===W&&(J<3?q():B((function(){var e;null===(e=K.current)||void 0===e||e.call(K)})))}),[J]);var X=Object(s["a"])({},ot(e));function Q(){return new Promise((function(e){K.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=X[e];X[e]=function(e,n){return B(),null===t||void 0===t?void 0:t(e,n)}})),r["useEffect"]((function(){X.motionName||"motion"!==W||B()}),[X.motionName,W]),r["useImperativeHandle"](t,(function(){return{forceAlign:q,getElement:function(){return C.current}}}));var Y=Object(s["a"])(Object(s["a"])({},F),{},{zIndex:f,opacity:"motion"!==W&&"stable"!==W&&n?0:void 0,pointerEvents:n||"stable"===W?void 0:"none"},c),Z=!0;null===v||void 0===v||!v.points||"align"!==W&&"stable"!==W||(Z=!1);var ee=u;return r["Children"].count(u)>1&&(ee=r["createElement"]("div",{className:"".concat(a,"-content")},u)),r["createElement"](at["a"],Object(o["a"])({visible:n,ref:C,leavedClassName:"".concat(a,"-hidden")},X,{onAppearPrepare:Q,onEnterPrepare:Q,removeOnLeave:m,forceRender:h}),(function(e,t){var n=e.className,o=e.style,l=d()(a,i,P,n);return r["createElement"](Gn,{target:V(),key:"popup",ref:j,monitorWindowResize:!0,disabled:Z,align:v,onAlign:$},r["createElement"]("div",{ref:t,className:l,onMouseEnter:x,onMouseLeave:k,onMouseDownCapture:S,onTouchStartCapture:O,onClick:A,style:Object(s["a"])(Object(s["a"])({},o),Y)},ee))}))}));Xn.displayName="PopupInner";var Qn=Xn,Yn=r["forwardRef"]((function(e,t){var n=e.prefixCls,a=e.visible,i=e.zIndex,l=e.children,c=e.mobile;c=void 0===c?{}:c;var u=c.popupClassName,f=c.popupStyle,p=c.popupMotion,m=void 0===p?{}:p,h=c.popupRender,v=e.onClick,g=r["useRef"]();r["useImperativeHandle"](t,(function(){return{forceAlign:function(){},getElement:function(){return g.current}}}));var y=Object(s["a"])({zIndex:i},f),b=l;return r["Children"].count(l)>1&&(b=r["createElement"]("div",{className:"".concat(n,"-content")},l)),h&&(b=h(b)),r["createElement"](at["a"],Object(o["a"])({visible:a,ref:g,removeOnLeave:!0},m),(function(e,t){var a=e.className,o=e.style,i=d()(n,u,a);return r["createElement"]("div",{ref:t,className:i,onClick:v,style:Object(s["a"])(Object(s["a"])({},o),y)},b)}))}));Yn.displayName="MobilePopupInner";var Zn=Yn,er=["visible","mobile"],tr=r["forwardRef"]((function(e,t){var n=e.visible,a=e.mobile,i=Object(u["a"])(e,er),c=Object(r["useState"])(n),f=Object(l["a"])(c,2),d=f[0],p=f[1],h=Object(r["useState"])(!1),v=Object(l["a"])(h,2),g=v[0],y=v[1],b=Object(s["a"])(Object(s["a"])({},i),{},{visible:d});Object(r["useEffect"])((function(){p(n),n&&a&&y(m())}),[n,a]);var E=g?r["createElement"](Zn,Object(o["a"])({},b,{mobile:a,ref:t})):r["createElement"](Qn,Object(o["a"])({},b,{ref:t}));return r["createElement"]("div",null,r["createElement"](it,b),E)}));tr.displayName="Popup";var nr=tr,rr=r["createContext"](null),ar=rr;function or(){}function ir(){return""}function lr(e){return e?e.ownerDocument:window.document}var cr=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function ur(e){var t=function(t){Object(oe["a"])(a,t);var n=Object(ie["a"])(a);function a(e){var t,l;return Object(re["a"])(this,a),t=n.call(this,e),Object(i["a"])(Object(He["a"])(t),"popupRef",r["createRef"]()),Object(i["a"])(Object(He["a"])(t),"triggerRef",r["createRef"]()),Object(i["a"])(Object(He["a"])(t),"portalContainer",void 0),Object(i["a"])(Object(He["a"])(t),"attachId",void 0),Object(i["a"])(Object(He["a"])(t),"clickOutsideHandler",void 0),Object(i["a"])(Object(He["a"])(t),"touchOutsideHandler",void 0),Object(i["a"])(Object(He["a"])(t),"contextMenuOutsideHandler1",void 0),Object(i["a"])(Object(He["a"])(t),"contextMenuOutsideHandler2",void 0),Object(i["a"])(Object(He["a"])(t),"mouseDownTimeout",void 0),Object(i["a"])(Object(He["a"])(t),"focusTime",void 0),Object(i["a"])(Object(He["a"])(t),"preClickTime",void 0),Object(i["a"])(Object(He["a"])(t),"preTouchTime",void 0),Object(i["a"])(Object(He["a"])(t),"delayTimer",void 0),Object(i["a"])(Object(He["a"])(t),"hasPopupMouseDown",void 0),Object(i["a"])(Object(He["a"])(t),"onMouseEnter",(function(e){var n=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",e),t.delaySetPopupVisible(!0,n,n?null:e)})),Object(i["a"])(Object(He["a"])(t),"onMouseMove",(function(e){t.fireEvents("onMouseMove",e),t.setPoint(e)})),Object(i["a"])(Object(He["a"])(t),"onMouseLeave",(function(e){t.fireEvents("onMouseLeave",e),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)})),Object(i["a"])(Object(He["a"])(t),"onPopupMouseEnter",(function(){t.clearDelayTimer()})),Object(i["a"])(Object(He["a"])(t),"onPopupMouseLeave",(function(e){var n;e.relatedTarget&&!e.relatedTarget.setTimeout&&qe(null===(n=t.popupRef.current)||void 0===n?void 0:n.getElement(),e.relatedTarget)||t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)})),Object(i["a"])(Object(He["a"])(t),"onFocus",(function(e){t.fireEvents("onFocus",e),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))})),Object(i["a"])(Object(He["a"])(t),"onMouseDown",(function(e){t.fireEvents("onMouseDown",e),t.preClickTime=Date.now()})),Object(i["a"])(Object(He["a"])(t),"onTouchStart",(function(e){t.fireEvents("onTouchStart",e),t.preTouchTime=Date.now()})),Object(i["a"])(Object(He["a"])(t),"onBlur",(function(e){t.fireEvents("onBlur",e),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)})),Object(i["a"])(Object(He["a"])(t),"onContextMenu",(function(e){e.preventDefault(),t.fireEvents("onContextMenu",e),t.setPopupVisible(!0,e)})),Object(i["a"])(Object(He["a"])(t),"onContextMenuClose",(function(){t.isContextMenuToShow()&&t.close()})),Object(i["a"])(Object(He["a"])(t),"onClick",(function(e){if(t.fireEvents("onClick",e),t.focusTime){var n;if(t.preClickTime&&t.preTouchTime?n=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?n=t.preClickTime:t.preTouchTime&&(n=t.preTouchTime),Math.abs(n-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var r=!t.state.popupVisible;(t.isClickToHide()&&!r||r&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,e)})),Object(i["a"])(Object(He["a"])(t),"onPopupMouseDown",(function(){var e;(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout((function(){t.hasPopupMouseDown=!1}),0),t.context)&&(e=t.context).onPopupMouseDown.apply(e,arguments)})),Object(i["a"])(Object(He["a"])(t),"onDocumentClick",(function(e){if(!t.props.mask||t.props.maskClosable){var n=e.target,r=t.getRootDomNode(),a=t.getPopupDomNode();qe(r,n)&&!t.isContextMenuOnly()||qe(a,n)||t.hasPopupMouseDown||t.close()}})),Object(i["a"])(Object(He["a"])(t),"getRootDomNode",(function(){var e=t.props.getTriggerDOMNode;if(e)return e(t.triggerRef.current);try{var n=Object($e["a"])(t.triggerRef.current);if(n)return n}catch(r){}return Ve.a.findDOMNode(Object(He["a"])(t))})),Object(i["a"])(Object(He["a"])(t),"getPopupClassNameFromAlign",(function(e){var n=[],r=t.props,a=r.popupPlacement,o=r.builtinPlacements,i=r.prefixCls,l=r.alignPoint,c=r.getPopupClassNameFromAlign;return a&&o&&n.push(rt(o,i,e,l)),c&&n.push(c(e)),n.join(" ")})),Object(i["a"])(Object(He["a"])(t),"getComponent",(function(){var e=t.props,n=e.prefixCls,a=e.destroyPopupOnHide,i=e.popupClassName,l=e.onPopupAlign,c=e.popupMotion,u=e.popupAnimation,s=e.popupTransitionName,f=e.popupStyle,d=e.mask,p=e.maskAnimation,m=e.maskTransitionName,h=e.maskMotion,v=e.zIndex,g=e.popup,y=e.stretch,b=e.alignPoint,E=e.mobile,w=e.forceRender,x=e.onPopupClick,k=t.state,S=k.popupVisible,O=k.point,A=t.getPopupAlign(),j={};return t.isMouseEnterToShow()&&(j.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(j.onMouseLeave=t.onPopupMouseLeave),j.onMouseDown=t.onPopupMouseDown,j.onTouchStart=t.onPopupMouseDown,r["createElement"](nr,Object(o["a"])({prefixCls:n,destroyPopupOnHide:a,visible:S,point:b&&O,className:i,align:A,onAlign:l,animation:u,getClassNameFromAlign:t.getPopupClassNameFromAlign},j,{stretch:y,getRootDomNode:t.getRootDomNode,style:f,mask:d,zIndex:v,transitionName:s,maskAnimation:p,maskTransitionName:m,maskMotion:h,ref:t.popupRef,motion:c,mobile:E,forceRender:w,onClick:x}),"function"===typeof g?g():g)})),Object(i["a"])(Object(He["a"])(t),"attachParent",(function(e){x["a"].cancel(t.attachId);var n,r=t.props,a=r.getPopupContainer,o=r.getDocument,i=t.getRootDomNode();a?(i||0===a.length)&&(n=a(i)):n=o(t.getRootDomNode()).body,n?n.appendChild(e):t.attachId=Object(x["a"])((function(){t.attachParent(e)}))})),Object(i["a"])(Object(He["a"])(t),"getContainer",(function(){if(!t.portalContainer){var e=t.props.getDocument,n=e(t.getRootDomNode()).createElement("div");n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",t.portalContainer=n}return t.attachParent(t.portalContainer),t.portalContainer})),Object(i["a"])(Object(He["a"])(t),"setPoint",(function(e){var n=t.props.alignPoint;n&&e&&t.setState({point:{pageX:e.pageX,pageY:e.pageY}})})),Object(i["a"])(Object(He["a"])(t),"handlePortalUpdate",(function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)})),Object(i["a"])(Object(He["a"])(t),"triggerContextValue",{onPopupMouseDown:t.onPopupMouseDown}),l="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,t.state={prevPopupVisible:l,popupVisible:l},cr.forEach((function(e){t["fire".concat(e)]=function(n){t.fireEvents(e,n)}})),t}return Object(ae["a"])(a,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props,n=this.state;if(n.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Qe(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Qe(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Qe(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Qe(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),x["a"].cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?nt(r,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,a=1e3*t;if(this.clearDelayTimer(),a){var o=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,o),r.clearDelayTimer()}),a)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,n=this.props,a=n.children,o=n.forceRender,i=n.alignPoint,l=n.className,c=n.autoDestroy,u=r["Children"].only(a),f={key:"trigger"};this.isContextMenuToShow()?f.onContextMenu=this.onContextMenu:f.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(f.onClick=this.onClick,f.onMouseDown=this.onMouseDown,f.onTouchStart=this.onTouchStart):(f.onClick=this.createTwoChains("onClick"),f.onMouseDown=this.createTwoChains("onMouseDown"),f.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(f.onMouseEnter=this.onMouseEnter,i&&(f.onMouseMove=this.onMouseMove)):f.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?f.onMouseLeave=this.onMouseLeave:f.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(f.onFocus=this.onFocus,f.onBlur=this.onBlur):(f.onFocus=this.createTwoChains("onFocus"),f.onBlur=this.createTwoChains("onBlur"));var p=d()(u&&u.props&&u.props.className,l);p&&(f.className=p);var m=Object(s["a"])({},f);Object(Xe["c"])(u)&&(m.ref=Object(Xe["a"])(this.triggerRef,u.ref));var h,v=r["cloneElement"](u,m);return(t||this.popupRef.current||o)&&(h=r["createElement"](e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&c&&(h=null),r["createElement"](ar.Provider,{value:this.triggerContextValue},v,h)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),a}(r["Component"]);return Object(i["a"])(t,"contextType",ar),Object(i["a"])(t,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:ir,getDocument:lr,onPopupVisibleChange:or,afterPopupVisibleChange:or,onPopupAlign:or,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),t}var sr=ur(et),fr={adjustX:1,adjustY:1},dr={topLeft:{points:["bl","tl"],overflow:fr,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:fr,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:fr,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:fr,offset:[4,0]}},pr={topLeft:{points:["bl","tl"],overflow:fr,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:fr,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:fr,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:fr,offset:[4,0]}};function mr(e,t,n){return t||(n?n[e]||n.other:void 0)}var hr={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function vr(e){var t=e.prefixCls,n=e.visible,a=e.children,o=e.popup,c=e.popupClassName,u=e.popupOffset,f=e.disabled,p=e.mode,m=e.onVisibleChange,h=r["useContext"](se),v=h.getPopupContainer,g=h.rtl,y=h.subMenuOpenDelay,b=h.subMenuCloseDelay,E=h.builtinPlacements,w=h.triggerSubMenuAction,k=h.forceSubMenuRender,S=h.rootClassName,O=h.motion,A=h.defaultMotions,j=r["useState"](!1),C=Object(l["a"])(j,2),N=C[0],T=C[1],P=g?Object(s["a"])(Object(s["a"])({},pr),E):Object(s["a"])(Object(s["a"])({},dr),E),_=hr[p],D=mr(p,O,A),I=Object(s["a"])(Object(s["a"])({},D),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),F=r["useRef"]();return r["useEffect"]((function(){return F.current=Object(x["a"])((function(){T(n)})),function(){x["a"].cancel(F.current)}}),[n]),r["createElement"](sr,{prefixCls:t,popupClassName:d()("".concat(t,"-popup"),Object(i["a"])({},"".concat(t,"-rtl"),g),c,S),stretch:"horizontal"===p?"minWidth":null,getPopupContainer:v,builtinPlacements:P,popupPlacement:_,popupVisible:N,popup:o,popupAlign:u&&{offset:u},action:f?[]:[w],mouseEnterDelay:y,mouseLeaveDelay:b,onPopupVisibleChange:m,forceRender:k,popupMotion:I},a)}function gr(e){var t=e.id,n=e.open,a=e.keyPath,i=e.children,c="inline",u=r["useContext"](se),f=u.prefixCls,d=u.forceSubMenuRender,p=u.motion,m=u.defaultMotions,h=u.mode,v=r["useRef"](!1);v.current=h===c;var g=r["useState"](!v.current),y=Object(l["a"])(g,2),b=y[0],E=y[1],w=!!v.current&&n;r["useEffect"]((function(){v.current&&E(!1)}),[h]);var x=Object(s["a"])({},mr(c,p,m));a.length>1&&(x.motionAppear=!1);var k=x.onVisibleChanged;return x.onVisibleChanged=function(e){return v.current||e||E(!0),null===k||void 0===k?void 0:k(e)},b?null:r["createElement"](de,{mode:c,locked:!v.current},r["createElement"](at["a"],Object(o["a"])({visible:w},x,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(f,"-hidden")}),(function(e){var n=e.className,a=e.style;return r["createElement"](Je,{id:t,className:n,style:a},i)})))}var yr=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],br=["active"],Er=function(e){var t,n=e.style,a=e.className,c=e.title,f=e.eventKey,p=(e.warnKey,e.disabled),m=e.internalPopupClose,h=e.children,v=e.itemIcon,g=e.expandIcon,y=e.popupClassName,b=e.popupOffset,E=e.onClick,w=e.onMouseEnter,x=e.onMouseLeave,k=e.onTitleClick,S=e.onTitleMouseEnter,O=e.onTitleMouseLeave,A=Object(u["a"])(e,yr),j=Ae(f),C=r["useContext"](se),N=C.prefixCls,T=C.mode,P=C.openKeys,_=C.disabled,D=C.overflowDisabled,I=C.activeKey,F=C.selectedKeys,L=C.itemIcon,R=C.expandIcon,M=C.onItemClick,z=C.onOpenChange,W=C.onActive,B=r["useContext"](Ce),U=B._internalRenderSubMenuItem,G=r["useContext"](ke),J=G.isSubPathKey,H=xe(),K="".concat(N,"-submenu"),V=_||p,q=r["useRef"](),$=r["useRef"]();var X=v||L,Q=g||R,Y=P.includes(f),Z=!D&&Y,ee=J(F,f),te=pe(f,V,S,O),re=te.active,ae=Object(u["a"])(te,br),oe=r["useState"](!1),ie=Object(l["a"])(oe,2),le=ie[0],ce=ie[1],ue=function(e){V||ce(e)},fe=function(e){ue(!0),null===w||void 0===w||w({key:f,domEvent:e})},me=function(e){ue(!1),null===x||void 0===x||x({key:f,domEvent:e})},ye=r["useMemo"]((function(){return re||"inline"!==T&&(le||J([I],f))}),[T,re,I,le,f,J]),be=ge(H.length),Ee=function(e){V||(null===k||void 0===k||k({key:f,domEvent:e}),"inline"===T&&z(f,!Y))},we=We((function(e){null===E||void 0===E||E(he(e)),M(e)})),Se=function(e){"inline"!==T&&z(f,e)},Oe=function(){W(f)},je=j&&"".concat(j,"-popup"),Ne=r["createElement"]("div",Object(o["a"])({role:"menuitem",style:be,className:"".concat(K,"-title"),tabIndex:V?null:-1,ref:q,title:"string"===typeof c?c:null,"data-menu-id":D&&j?null:j,"aria-expanded":Z,"aria-haspopup":!0,"aria-controls":je,"aria-disabled":V,onClick:Ee,onFocus:Oe},ae),c,r["createElement"](ve,{icon:"horizontal"!==T?Q:null,props:Object(s["a"])(Object(s["a"])({},e),{},{isOpen:Z,isSubMenu:!0})},r["createElement"]("i",{className:"".concat(K,"-arrow")}))),Te=r["useRef"](T);if("inline"!==T&&(Te.current=H.length>1?"vertical":T),!D){var Pe=Te.current;Ne=r["createElement"](vr,{mode:Pe,prefixCls:K,visible:!m&&Z&&"inline"!==T,popupClassName:y,popupOffset:b,popup:r["createElement"](de,{mode:"horizontal"===Pe?"vertical":Pe},r["createElement"](Je,{id:je,ref:$},h)),disabled:V,onVisibleChange:Se},Ne)}var _e=r["createElement"](ne.Item,Object(o["a"])({role:"none"},A,{component:"li",style:n,className:d()(K,"".concat(K,"-").concat(T),a,(t={},Object(i["a"])(t,"".concat(K,"-open"),Z),Object(i["a"])(t,"".concat(K,"-active"),ye),Object(i["a"])(t,"".concat(K,"-selected"),ee),Object(i["a"])(t,"".concat(K,"-disabled"),V),t)),onMouseEnter:fe,onMouseLeave:me}),Ne,!D&&r["createElement"](gr,{id:je,open:Z,keyPath:H},h));return U&&(_e=U(_e,e,{selected:ee,active:ye,open:Z,disabled:V})),r["createElement"](de,{onItemClick:we,mode:"horizontal"===T?"vertical":T,itemIcon:X,expandIcon:Q},_e)};function wr(e){var t,n=e.eventKey,a=e.children,o=xe(n),i=Re(a,o),l=Ee();return r["useEffect"]((function(){if(l)return l.registerPath(n,o),function(){l.unregisterPath(n,o)}}),[o]),t=l?i:r["createElement"](Er,e,i),r["createElement"](we.Provider,{value:o},t)}function xr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(ct(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),o=Number(a),i=null;return a&&!Number.isNaN(o)?i=o:r&&null===i&&(i=0),r&&e.disabled&&(i=null),null!==i&&(i>=0||t&&i<0)}return!1}function kr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Object(w["a"])(e.querySelectorAll("*")).filter((function(e){return xr(e,t)}));return xr(e,t)&&n.unshift(e),n}var Sr=A["a"].LEFT,Or=A["a"].RIGHT,Ar=A["a"].UP,jr=A["a"].DOWN,Cr=A["a"].ENTER,Nr=A["a"].ESC,Tr=A["a"].HOME,Pr=A["a"].END,_r=[Ar,jr,Sr,Or];function Dr(e,t,n,r){var a,o,l,c,u="prev",s="next",f="children",d="parent";if("inline"===e&&r===Cr)return{inlineTrigger:!0};var p=(a={},Object(i["a"])(a,Ar,u),Object(i["a"])(a,jr,s),a),m=(o={},Object(i["a"])(o,Sr,n?s:u),Object(i["a"])(o,Or,n?u:s),Object(i["a"])(o,jr,f),Object(i["a"])(o,Cr,f),o),h=(l={},Object(i["a"])(l,Ar,u),Object(i["a"])(l,jr,s),Object(i["a"])(l,Cr,f),Object(i["a"])(l,Nr,d),Object(i["a"])(l,Sr,n?f:d),Object(i["a"])(l,Or,n?d:f),l),v={inline:p,horizontal:m,vertical:h,inlineSub:p,horizontalSub:h,verticalSub:h},g=null===(c=v["".concat(e).concat(t?"":"Sub")])||void 0===c?void 0:c[r];switch(g){case u:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case f:return{offset:1,sibling:!1};default:return null}}function Ir(e){var t=e;while(t){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function Fr(e,t){var n=e||document.activeElement;while(n){if(t.has(n))return n;n=n.parentElement}return null}function Lr(e,t){var n=kr(e,!0);return n.filter((function(e){return t.has(e)}))}function Rr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var a=Lr(e,t),o=a.length,i=a.findIndex((function(e){return n===e}));return r<0?-1===i?i=o-1:i-=1:r>0&&(i+=1),i=(i+o)%o,a[i]}function Mr(e,t,n,a,o,i,l,c,u,s){var f=r["useRef"](),d=r["useRef"]();d.current=t;var p=function(){x["a"].cancel(f.current)};return r["useEffect"]((function(){return function(){p()}}),[]),function(r){var m=r.which;if([].concat(_r,[Cr,Nr,Tr,Pr]).includes(m)){var h,v,g,y=function(){h=new Set,v=new Map,g=new Map;var e=i();return e.forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(Oe(a,e),"']"));t&&(h.add(t),g.set(t,e),v.set(e,t))})),h};y();var b=v.get(t),E=Fr(b,h),w=g.get(E),k=Dr(e,1===l(w,!0).length,n,m);if(!k&&m!==Tr&&m!==Pr)return;(_r.includes(m)||[Tr,Pr].includes(m))&&r.preventDefault();var S=function(e){if(e){var t=e,n=e.querySelector("a");(null===n||void 0===n?void 0:n.getAttribute("href"))&&(t=n);var r=g.get(e);c(r),p(),f.current=Object(x["a"])((function(){d.current===r&&t.focus()}))}};if([Tr,Pr].includes(m)||k.sibling||!E){var O,A;O=E&&"inline"!==e?Ir(E):o.current;var j=Lr(O,h);A=m===Tr?j[0]:m===Pr?j[j.length-1]:Rr(O,h,E,k.offset),S(A)}else if(k.inlineTrigger)u(w);else if(k.offset>0)u(w,!0),p(),f.current=Object(x["a"])((function(){y();var e=E.getAttribute("aria-controls"),t=document.getElementById(e),n=Rr(t,h);S(n)}),5);else if(k.offset<0){var C=l(w,!0),N=C[C.length-2],T=v.get(N);u(N,!1),S(T)}}null===s||void 0===s||s(r)}}var zr=Math.random().toFixed(5).toString().slice(2),Wr=0;function Br(e){var t=E(e,{value:e}),n=Object(l["a"])(t,2),a=n[0],o=n[1];return r["useEffect"]((function(){Wr+=1;var e="".concat(zr,"-").concat(Wr);o("rc-menu-uuid-".concat(e))}),[]),a}function Ur(e){Promise.resolve().then(e)}var Gr="__RC_UTIL_PATH_SPLIT__",Jr=function(e){return e.join(Gr)},Hr=function(e){return e.split(Gr)},Kr="rc-menu-more";function Vr(){var e=r["useState"]({}),t=Object(l["a"])(e,2),n=t[1],a=Object(r["useRef"])(new Map),o=Object(r["useRef"])(new Map),i=r["useState"]([]),c=Object(l["a"])(i,2),u=c[0],s=c[1],f=Object(r["useRef"])(0),d=Object(r["useRef"])(!1),p=function(){d.current||n({})},m=Object(r["useCallback"])((function(e,t){var n=Jr(t);o.current.set(n,e),a.current.set(e,n),f.current+=1;var r=f.current;Ur((function(){r===f.current&&p()}))}),[]),h=Object(r["useCallback"])((function(e,t){var n=Jr(t);o.current["delete"](n),a.current["delete"](e)}),[]),v=Object(r["useCallback"])((function(e){s(e)}),[]),g=Object(r["useCallback"])((function(e,t){var n=a.current.get(e)||"",r=Hr(n);return t&&u.includes(r[0])&&r.unshift(Kr),r}),[u]),y=Object(r["useCallback"])((function(e,t){return e.some((function(e){var n=g(e,!0);return n.includes(t)}))}),[g]),b=function(){var e=Object(w["a"])(a.current.keys());return u.length&&e.push(Kr),e},E=Object(r["useCallback"])((function(e){var t="".concat(a.current.get(e)).concat(Gr),n=new Set;return Object(w["a"])(o.current.keys()).forEach((function(e){e.startsWith(t)&&n.add(o.current.get(e))})),n}),[]);return r["useEffect"]((function(){return function(){d.current=!0}}),[]),{registerPath:m,unregisterPath:h,refreshOverflowKeys:v,isSubPathKey:y,getKeyPath:g,getKeys:b,getSubPathKeys:E}}var qr=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],$r=[],Xr=r["forwardRef"]((function(e,t){var n,a,c=e.prefixCls,f=void 0===c?"rc-menu":c,p=e.rootClassName,m=e.style,h=e.className,v=e.tabIndex,g=void 0===v?0:v,y=e.items,b=e.children,x=e.direction,k=e.id,S=e.mode,O=void 0===S?"vertical":S,A=e.inlineCollapsed,j=e.disabled,C=e.disabledOverflow,N=e.subMenuOpenDelay,T=void 0===N?.1:N,P=e.subMenuCloseDelay,_=void 0===P?.1:P,D=e.forceSubMenuRender,F=e.defaultOpenKeys,L=e.openKeys,R=e.activeKey,M=e.defaultActiveFirst,z=e.selectable,W=void 0===z||z,B=e.multiple,U=void 0!==B&&B,G=e.defaultSelectedKeys,J=e.selectedKeys,H=e.onSelect,K=e.onDeselect,V=e.inlineIndent,q=void 0===V?24:V,$=e.motion,X=e.defaultMotions,Q=e.triggerSubMenuAction,Y=void 0===Q?"hover":Q,Z=e.builtinPlacements,ee=e.itemIcon,te=e.expandIcon,re=e.overflowedIndicator,ae=void 0===re?"...":re,oe=e.overflowedIndicatorPopupClassName,ie=e.getPopupContainer,le=e.onClick,ce=e.onOpenChange,ue=e.onKeyDown,se=(e.openAnimation,e.openTransitionName,e._internalRenderMenuItem),fe=e._internalRenderSubMenuItem,pe=Object(u["a"])(e,qr),me=r["useMemo"]((function(){return ze(b,y,$r)}),[b,y]),ve=r["useState"](!1),ge=Object(l["a"])(ve,2),ye=ge[0],Ee=ge[1],we=r["useRef"](),xe=Br(k),Ae="rtl"===x;var je=r["useMemo"]((function(){return"inline"!==O&&"vertical"!==O||!A?[O,!1]:["vertical",A]}),[O,A]),Ne=Object(l["a"])(je,2),Te=Ne[0],Pe=Ne[1],_e=r["useState"](0),De=Object(l["a"])(_e,2),Ie=De[0],Le=De[1],Re=Ie>=me.length-1||"horizontal"!==Te||C,Me=E(F,{value:L,postState:function(e){return e||$r}}),Be=Object(l["a"])(Me,2),Ue=Be[0],Ge=Be[1],Je=function(e){Ge(e),null===ce||void 0===ce||ce(e)},He=r["useState"](Ue),Ke=Object(l["a"])(He,2),Ve=Ke[0],qe=Ke[1],$e="inline"===Te,Xe=r["useRef"](!1);r["useEffect"]((function(){$e&&qe(Ue)}),[Ue]),r["useEffect"]((function(){Xe.current&&($e?Ge(Ve):Je($r))}),[$e]),r["useEffect"]((function(){return Xe.current=!0,function(){Xe.current=!1}}),[]);var Qe=Vr(),Ye=Qe.registerPath,Ze=Qe.unregisterPath,et=Qe.refreshOverflowKeys,tt=Qe.isSubPathKey,nt=Qe.getKeyPath,rt=Qe.getKeys,at=Qe.getSubPathKeys,ot=r["useMemo"]((function(){return{registerPath:Ye,unregisterPath:Ze}}),[Ye,Ze]),it=r["useMemo"]((function(){return{isSubPathKey:tt}}),[tt]);r["useEffect"]((function(){et(Re?$r:me.slice(Ie+1).map((function(e){return e.key})))}),[Ie,Re]);var lt=E(R||M&&(null===(n=me[0])||void 0===n?void 0:n.key),{value:R}),ct=Object(l["a"])(lt,2),ut=ct[0],st=ct[1],ft=We((function(e){st(e)})),dt=We((function(){st(void 0)}));Object(r["useImperativeHandle"])(t,(function(){return{list:we.current,focus:function(e){var t,n,r,a,o=null!==ut&&void 0!==ut?ut:null===(t=me.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key;o&&(null===(n=we.current)||void 0===n||null===(r=n.querySelector("li[data-menu-id='".concat(Oe(xe,o),"']")))||void 0===r||null===(a=r.focus)||void 0===a||a.call(r,e))}}}));var pt=E(G||[],{value:J,postState:function(e){return Array.isArray(e)?e:null===e||void 0===e?$r:[e]}}),mt=Object(l["a"])(pt,2),ht=mt[0],vt=mt[1],gt=function(e){if(W){var t,n=e.key,r=ht.includes(n);t=U?r?ht.filter((function(e){return e!==n})):[].concat(Object(w["a"])(ht),[n]):[n],vt(t);var a=Object(s["a"])(Object(s["a"])({},e),{},{selectedKeys:t});r?null===K||void 0===K||K(a):null===H||void 0===H||H(a)}!U&&Ue.length&&"inline"!==Te&&Je($r)},yt=We((function(e){null===le||void 0===le||le(he(e)),gt(e)})),bt=We((function(e,t){var n=Ue.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Te){var r=at(e);n=n.filter((function(e){return!r.has(e)}))}I()(Ue,n)||Je(n)})),Et=We(ie),wt=function(e,t){var n=null!==t&&void 0!==t?t:!Ue.includes(e);bt(e,n)},xt=Mr(Te,ut,Ae,xe,we,rt,nt,st,wt,ue);r["useEffect"]((function(){Ee(!0)}),[]);var kt=r["useMemo"]((function(){return{_internalRenderMenuItem:se,_internalRenderSubMenuItem:fe}}),[se,fe]),St="horizontal"!==Te||C?me:me.map((function(e,t){return r["createElement"](de,{key:e.key,overflowDisabled:t>Ie},e)})),Ot=r["createElement"](ne,Object(o["a"])({id:k,ref:we,prefixCls:"".concat(f,"-overflow"),component:"ul",itemComponent:Fe,className:d()(f,"".concat(f,"-root"),"".concat(f,"-").concat(Te),h,(a={},Object(i["a"])(a,"".concat(f,"-inline-collapsed"),Pe),Object(i["a"])(a,"".concat(f,"-rtl"),Ae),a),p),dir:x,style:m,role:"menu",tabIndex:g,data:St,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?me.slice(-t):null;return r["createElement"](wr,{eventKey:Kr,title:ae,disabled:Re,internalPopupClose:0===t,popupClassName:oe},n)},maxCount:"horizontal"!==Te||C?ne.INVALIDATE:ne.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Le(e)},onKeyDown:xt},pe));return r["createElement"](Ce.Provider,{value:kt},r["createElement"](Se.Provider,{value:xe},r["createElement"](de,{prefixCls:f,rootClassName:p,mode:Te,openKeys:Ue,rtl:Ae,disabled:j,motion:ye?$:null,defaultMotions:ye?X:null,activeKey:ut,onActive:ft,onInactive:dt,selectedKeys:ht,inlineIndent:q,subMenuOpenDelay:T,subMenuCloseDelay:_,forceSubMenuRender:D,builtinPlacements:Z,triggerSubMenuAction:Y,getPopupContainer:Et,itemIcon:ee,expandIcon:te,onItemClick:yt,onOpenChange:bt},r["createElement"](ke.Provider,{value:it},Ot),r["createElement"]("div",{style:{display:"none"},"aria-hidden":!0},r["createElement"](be.Provider,{value:ot},me)))))})),Qr=Xr,Yr=["className","title","eventKey","children"],Zr=["children"],ea=function(e){var t=e.className,n=e.title,a=(e.eventKey,e.children),i=Object(u["a"])(e,Yr),l=r["useContext"](se),c=l.prefixCls,s="".concat(c,"-item-group");return r["createElement"]("li",Object(o["a"])({},i,{onClick:function(e){return e.stopPropagation()},className:d()(s,t)}),r["createElement"]("div",{className:"".concat(s,"-title"),title:"string"===typeof n?n:void 0},n),r["createElement"]("ul",{className:"".concat(s,"-list")},a))};function ta(e){var t=e.children,n=Object(u["a"])(e,Zr),a=xe(n.eventKey),o=Re(t,a),i=Ee();return i?o:r["createElement"](ea,Object(le["a"])(n,["warnKey"]),o)}function na(e){var t=e.className,n=e.style,a=r["useContext"](se),o=a.prefixCls,i=Ee();return i?null:r["createElement"]("li",{className:d()("".concat(o,"-item-divider"),t),style:n})}var ra=Qr;ra.Item=Fe,ra.SubMenu=wr,ra.ItemGroup=ta,ra.Divider=na;var aa=ra,oa={adjustX:1,adjustY:1},ia=[0,0],la={topLeft:{points:["bl","tl"],overflow:oa,offset:[0,-4],targetOffset:ia},topCenter:{points:["bc","tc"],overflow:oa,offset:[0,-4],targetOffset:ia},topRight:{points:["br","tr"],overflow:oa,offset:[0,-4],targetOffset:ia},bottomLeft:{points:["tl","bl"],overflow:oa,offset:[0,4],targetOffset:ia},bottomCenter:{points:["tc","bc"],overflow:oa,offset:[0,4],targetOffset:ia},bottomRight:{points:["tr","br"],overflow:oa,offset:[0,4],targetOffset:ia}},ca=la,ua=A["a"].ESC,sa=A["a"].TAB;function fa(e){var t=e.visible,n=e.setTriggerVisible,a=e.triggerRef,o=e.onVisibleChange,i=e.autoFocus,l=r["useRef"](!1),c=function(){var e,r,i,l;t&&a.current&&(null===(e=a.current)||void 0===e||null===(r=e.triggerRef)||void 0===r||null===(i=r.current)||void 0===i||null===(l=i.focus)||void 0===l||l.call(i),n(!1),"function"===typeof o&&o(!1))},u=function(){var e,t,n,r,o=kr(null===(e=a.current)||void 0===e||null===(t=e.popupRef)||void 0===t||null===(n=t.current)||void 0===n||null===(r=n.getElement)||void 0===r?void 0:r.call(n)),i=o[0];return!!(null===i||void 0===i?void 0:i.focus)&&(i.focus(),l.current=!0,!0)},s=function(e){switch(e.keyCode){case ua:c();break;case sa:var t=!1;l.current||(t=u()),t?e.preventDefault():c();break}};r["useEffect"]((function(){return t?(window.addEventListener("keydown",s),i&&Object(x["a"])(u,3),function(){window.removeEventListener("keydown",s),l.current=!1}):function(){l.current=!1}}),[t])}var da=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function pa(e,t){var n=e.arrow,a=void 0!==n&&n,o=e.prefixCls,c=void 0===o?"rc-dropdown":o,f=e.transitionName,p=e.animation,m=e.align,h=e.placement,v=void 0===h?"bottomLeft":h,g=e.placements,y=void 0===g?ca:g,b=e.getPopupContainer,E=e.showAction,w=e.hideAction,x=e.overlayClassName,k=e.overlayStyle,S=e.visible,O=e.trigger,A=void 0===O?["hover"]:O,j=e.autoFocus,C=Object(u["a"])(e,da),N=r["useState"](),T=Object(l["a"])(N,2),P=T[0],_=T[1],D="visible"in e?S:P,I=r["useRef"](null);r["useImperativeHandle"](t,(function(){return I.current})),fa({visible:D,setTriggerVisible:_,triggerRef:I,onVisibleChange:e.onVisibleChange,autoFocus:j});var F=function(){var t,n=e.overlay;return t="function"===typeof n?n():n,t},L=function(t){var n=e.onOverlayClick;_(!1),n&&n(t)},R=function(t){var n=e.onVisibleChange;_(t),"function"===typeof n&&n(t)},M=function(){var e=F();return r["createElement"](r["Fragment"],null,a&&r["createElement"]("div",{className:"".concat(c,"-arrow")}),e)},z=function(){var t=e.overlay;return"function"===typeof t?M:M()},W=function(){var t=e.minOverlayWidthMatchTrigger,n=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?t:!n},B=function(){var t=e.openClassName;return void 0!==t?t:"".concat(c,"-open")},U=function(){var t=e.children,n=t.props?t.props:{},a=d()(n.className,B());return D&&t?r["cloneElement"](t,{className:a}):t},G=w;return G||-1===A.indexOf("contextMenu")||(G=["click"]),r["createElement"](sr,Object(s["a"])(Object(s["a"])({builtinPlacements:y},C),{},{prefixCls:c,ref:I,popupClassName:d()(x,Object(i["a"])({},"".concat(c,"-show-arrow"),a)),popupStyle:k,action:A,showAction:E,hideAction:G||[],popupPlacement:v,popupAlign:m,popupTransitionName:f,popupAnimation:p,popupVisible:D,stretch:W()?"minWidth":"",popup:z(),onPopupVisibleChange:R,onPopupClick:L,getPopupContainer:b}),U())}var ma=r["forwardRef"](pa),ha=ma;function va(e,t){var n=e.prefixCls,a=e.editable,o=e.locale,i=e.style;return a&&!1!==a.showAdd?r["createElement"]("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null===o||void 0===o?void 0:o.addAriaLabel)||"Add tab",onClick:function(e){a.onEdit("add",{event:e})}},a.addIcon||"+"):null}var ga=r["forwardRef"](va);function ya(e,t){var n=e.prefixCls,a=e.id,o=e.tabs,c=e.locale,u=e.mobile,s=e.moreIcon,f=void 0===s?"More":s,p=e.moreTransitionName,m=e.style,h=e.className,v=e.editable,g=e.tabBarGutter,y=e.rtl,b=e.removeAriaLabel,E=e.onTabClick,w=e.getPopupContainer,x=e.popupClassName,k=Object(r["useState"])(!1),S=Object(l["a"])(k,2),O=S[0],j=S[1],C=Object(r["useState"])(null),N=Object(l["a"])(C,2),T=N[0],P=N[1],_="".concat(a,"-more-popup"),D="".concat(n,"-dropdown"),I=null!==T?"".concat(_,"-").concat(T):null,F=null===c||void 0===c?void 0:c.dropdownAriaLabel;function L(e,t){e.preventDefault(),e.stopPropagation(),v.onEdit("remove",{key:t,event:e})}var R=r["createElement"](aa,{onClick:function(e){var t=e.key,n=e.domEvent;E(t,n),j(!1)},prefixCls:"".concat(D,"-menu"),id:_,tabIndex:-1,role:"listbox","aria-activedescendant":I,selectedKeys:[T],"aria-label":void 0!==F?F:"expanded dropdown"},o.map((function(e){var t=v&&!1!==e.closable&&!e.disabled;return r["createElement"](Fe,{key:e.key,id:"".concat(_,"-").concat(e.key),role:"option","aria-controls":a&&"".concat(a,"-panel-").concat(e.key),disabled:e.disabled},r["createElement"]("span",null,e.tab),t&&r["createElement"]("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(D,"-menu-item-remove"),onClick:function(t){t.stopPropagation(),L(t,e.key)}},e.closeIcon||v.removeIcon||"\xd7"))})));function M(e){for(var t=o.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===T}))||0,r=t.length,a=0;ai?(a=n,S.current="x"):(a=r,S.current="y"),t(-a,-a)&&e.preventDefault()}var A=Object(r["useRef"])(null);A.current={onTouchStart:w,onTouchMove:x,onTouchEnd:k,onWheel:O},r["useEffect"]((function(){function t(e){A.current.onTouchStart(e)}function n(e){A.current.onTouchMove(e)}function r(e){A.current.onTouchEnd(e)}function a(e){A.current.onWheel(e)}return document.addEventListener("touchmove",n,{passive:!1}),document.addEventListener("touchend",r,{passive:!1}),e.current.addEventListener("touchstart",t,{passive:!1}),e.current.addEventListener("wheel",a),function(){document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r)}}),[])}function Aa(){var e=Object(r["useRef"])(new Map);function t(t){return e.current.has(t)||e.current.set(t,r["createRef"]()),e.current.get(t)}function n(t){e.current["delete"](t)}return[t,n]}function ja(e,t){var n=r["useRef"](e),a=r["useState"]({}),o=Object(l["a"])(a,2),i=o[1];function c(e){var r="function"===typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,i({})}return[n.current,c]}var Ca=function(e){var t,n=e.position,a=e.prefixCls,o=e.extra;if(!o)return null;var i={};return o&&"object"===Object(c["a"])(o)&&!r["isValidElement"](o)?i=o:i.right=o,"right"===n&&(t=i.right),"left"===n&&(t=i.left),t?r["createElement"]("div",{className:"".concat(a,"-extra-content")},t):null};function Na(e,t){var n,a=r["useContext"](Ea),c=a.prefixCls,u=a.tabs,f=e.className,p=e.style,m=e.id,h=e.animated,v=e.activeKey,g=e.rtl,y=e.extra,b=e.editable,E=e.locale,A=e.tabPosition,j=e.tabBarGutter,N=e.children,P=e.onTabClick,D=e.onTabScroll,I=Object(r["useRef"])(),F=Object(r["useRef"])(),L=Object(r["useRef"])(),R=Object(r["useRef"])(),M=Aa(),z=Object(l["a"])(M,2),W=z[0],B=z[1],U="top"===A||"bottom"===A,G=ja(0,(function(e,t){U&&D&&D({direction:e>t?"left":"right"})})),J=Object(l["a"])(G,2),H=J[0],K=J[1],V=ja(0,(function(e,t){!U&&D&&D({direction:e>t?"top":"bottom"})})),q=Object(l["a"])(V,2),$=q[0],X=q[1],Q=Object(r["useState"])(0),Y=Object(l["a"])(Q,2),Z=Y[0],ee=Y[1],te=Object(r["useState"])(0),ne=Object(l["a"])(te,2),re=ne[0],ae=ne[1],oe=Object(r["useState"])(null),ie=Object(l["a"])(oe,2),le=ie[0],ce=ie[1],ue=Object(r["useState"])(null),se=Object(l["a"])(ue,2),fe=se[0],de=se[1],pe=Object(r["useState"])(0),me=Object(l["a"])(pe,2),he=me[0],ve=me[1],ge=Object(r["useState"])(0),ye=Object(l["a"])(ge,2),be=ye[0],Ee=ye[1],we=O(new Map),xe=Object(l["a"])(we,2),ke=xe[0],Se=xe[1],Oe=T(u,ke,Z),Ae="".concat(c,"-nav-operations-hidden"),je=0,Ce=0;function Ne(e){return eCe?Ce:e}U?g?(je=0,Ce=Math.max(0,Z-le)):(je=Math.min(0,le-Z),Ce=0):(je=Math.min(0,fe-re),Ce=0);var Te=Object(r["useRef"])(),Pe=Object(r["useState"])(),_e=Object(l["a"])(Pe,2),De=_e[0],Ie=_e[1];function Fe(){Ie(Date.now())}function Le(){window.clearTimeout(Te.current)}function Re(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=Oe.get(e)||{width:0,height:0,left:0,right:0,top:0};if(U){var n=H;g?t.rightH+le&&(n=t.right+t.width-le):t.left<-H?n=-t.left:t.left+t.width>-H+le&&(n=-(t.left+t.width-le)),X(0),K(Ne(n))}else{var r=$;t.top<-$?r=-t.top:t.top+t.height>-$+fe&&(r=-(t.top+t.height-fe)),K(0),X(Ne(r))}}Oa(I,(function(e,t){function n(e,t){e((function(e){var n=Ne(e+t);return n}))}if(U){if(le>=Z)return!1;n(K,e)}else{if(fe>=re)return!1;n(X,t)}return Le(),Fe(),!0})),Object(r["useEffect"])((function(){return Le(),De&&(Te.current=window.setTimeout((function(){Ie(0)}),100)),Le}),[De]);var Me=_(Oe,{width:le,height:fe,left:H,top:$},{width:Z,height:re},{width:he,height:be},Object(s["a"])(Object(s["a"])({},e),{},{tabs:u})),ze=Object(l["a"])(Me,2),We=ze[0],Be=ze[1],Ue={};"top"===A||"bottom"===A?Ue[g?"marginRight":"marginLeft"]=j:Ue.marginTop=j;var Ge=u.map((function(e,t){var n=e.key;return r["createElement"](C,{id:m,prefixCls:c,key:n,tab:e,style:0===t?void 0:Ue,closable:e.closable,editable:b,active:n===v,renderWrapper:N,removeAriaLabel:null===E||void 0===E?void 0:E.removeAriaLabel,ref:W(n),onClick:function(e){P(n,e)},onRemove:function(){B(n)},onFocus:function(){Re(n),Fe(),I.current&&(g||(I.current.scrollLeft=0),I.current.scrollTop=0)}})})),Je=S((function(){var e,t,n,r,a,o,i=(null===(e=I.current)||void 0===e?void 0:e.offsetWidth)||0,l=(null===(t=I.current)||void 0===t?void 0:t.offsetHeight)||0,c=(null===(n=R.current)||void 0===n?void 0:n.offsetWidth)||0,s=(null===(r=R.current)||void 0===r?void 0:r.offsetHeight)||0;ce(i),de(l),ve(c),Ee(s);var f=((null===(a=F.current)||void 0===a?void 0:a.offsetWidth)||0)-c,d=((null===(o=F.current)||void 0===o?void 0:o.offsetHeight)||0)-s;ee(f),ae(d),Se((function(){var e=new Map;return u.forEach((function(t){var n=t.key,r=W(n).current;r&&e.set(n,{width:r.offsetWidth,height:r.offsetHeight,left:r.offsetLeft,top:r.offsetTop})})),e}))})),He=u.slice(0,We),Ke=u.slice(Be+1),Ve=[].concat(Object(w["a"])(He),Object(w["a"])(Ke)),qe=Object(r["useState"])(),$e=Object(l["a"])(qe,2),Xe=$e[0],Qe=$e[1],Ye=Oe.get(v),Ze=Object(r["useRef"])();function et(){x["a"].cancel(Ze.current)}Object(r["useEffect"])((function(){var e={};return Ye&&(U?(g?e.right=Ye.right:e.left=Ye.left,e.width=Ye.width):(e.top=Ye.top,e.height=Ye.height)),et(),Ze.current=Object(x["a"])((function(){Qe(e)})),et}),[Ye,U,g]),Object(r["useEffect"])((function(){Re()}),[v,Ye,Oe,U]),Object(r["useEffect"])((function(){Je()}),[g,j,v,u.map((function(e){return e.key})).join("_")]);var tt,nt,rt,at,ot=!!Ve.length,it="".concat(c,"-nav-wrap");return U?g?(nt=H>0,tt=H+lee.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?arguments[1]:void 0),t}})},KH8A:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["isMobile-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"ismobile"},a.a.createElement(o["AnchorLink"],{to:"#ismobile","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isMobile"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a\u79fb\u52a8\u7aef\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isMobile: () => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("p",null,"\u65e0"),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u662f\u79fb\u52a8\u7aef"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u4e0d\u662f\u79fb\u52a8\u7aef")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isMobile-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},KSsz:function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},KTM1:function(e,t,n){var r=n("OOCw"),a=n("HRbj");r({target:"Set",stat:!0},{from:a})},KUb8:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("sErw"),i=n("QHn5"),l=n("uZx/");r({target:"Map",proto:!0,real:!0,forced:a},{keyOf:function(e){return l(i(o(this)),(function(t,n){if(n===e)return l.stop(t)}),void 0,!0,!0).result}})},"KUi+":function(e,t,n){"use strict";var r=n("sErw"),a=n("JSMs");e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return a(r(this),"number"!==e)}},KZF9:function(e,t,n){var r=n("4uZn"),a=n("oEsY"),o=n("2Roc"),i=n("0JbB").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});a(t,e)||i(t,e,{value:o.f(e)})}},KZPF:function(e,t,n){var r=n("OOCw"),a=n("SlEr"),o=n("1Sp3"),i=n("sErw"),l=n("zesz"),c=n("uZx/"),u=o.keys,s=o.toKey,f=function(e){var t=[];return c(e,t.push,t),t},d=function(e,t){var n=u(e,t),r=l(e);if(null===r)return n;var o=d(r,t);return o.length?n.length?f(new a(n.concat(o))):o:n};r({target:"Reflect",stat:!0},{getMetadataKeys:function(e){var t=arguments.length<2?void 0:s(arguments[1]);return d(i(e),t)}})},KgcE:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},Kk74:function(e,t,n){var r=n("OOCw"),a=n("1Sp3"),o=n("sErw"),i=a.get,l=a.toKey;r({target:"Reflect",stat:!0},{getOwnMetadata:function(e,t){var n=arguments.length<3?void 0:l(arguments[2]);return i(e,o(t),n)}})},KuRq:function(e,t,n){var r=n("6SQG"),a=n("nBeg");a(r.JSON,"JSON",!0)},L809:function(e,t,n){"use strict";var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE)return!0;if(e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY)return!0;if(e>=r.A&&e<=r.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t["a"]=r},LGtU:function(e,t){function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"M+Sl":function(e,t,n){var r=n("v3z7"),a=n("MdxV"),o=n("OdMF"),i=n("upgS"),l=n("63eO"),c=[].push,u=function(e){var t=1==e,n=2==e,u=3==e,s=4==e,f=6==e,d=5==e||f;return function(p,m,h,v){for(var g,y,b=o(p),E=a(b),w=r(m,h,3),x=i(E.length),k=0,S=v||l,O=t?S(p,x):n?S(p,0):void 0;x>k;k++)if((d||k in E)&&(g=E[k],y=w(g,k,b),e))if(t)O[k]=y;else if(y)switch(e){case 3:return!0;case 5:return g;case 6:return k;case 2:c.call(O,g)}else if(s)return!1;return f?-1:u||s?s:O}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},M2ND:function(e,t,n){"use strict";var r=n("vfR7").charAt,a=n("uJNS"),o=n("vSpU"),i="String Iterator",l=a.set,c=a.getterFor(i);o(String,"String",(function(e){l(this,{type:i,string:String(e),index:0})}),(function(){var e,t=c(this),n=t.string,a=t.index;return a>=n.length?{value:void 0,done:!0}:(e=r(n,a),t.index+=e.length,{value:e,done:!1})}))},M48M:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["isNaN-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"isnan"},a.a.createElement(o["AnchorLink"],{to:"#isnan","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isNaN"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a NaN \u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isNaN: (value: any) => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value \uff0c\u8981\u5224\u65ad\u7684\u6570\u636e")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u662f NaN \u7c7b\u578b"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u4e0d\u662f NaN \u7c7b\u578b")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isNaN-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},M5mG:function(e,t,n){var r=n("6SQG"),a=n("mVlO"),o=n("0pkz"),i=n("MZA9"),l=n("3Hes"),c=l("iterator"),u=l("toStringTag"),s=o.values;for(var f in a){var d=r[f],p=d&&d.prototype;if(p){if(p[c]!==s)try{i(p,c,s)}catch(h){p[c]=s}if(p[u]||i(p,u,f),a[f])for(var m in o)if(p[m]!==o[m])try{i(p,m,o[m])}catch(h){p[m]=o[m]}}}},M9kN:function(e,t,n){var r=n("ry6q"),a=n("GQDD"),o=n("67Yi"),i=200;function l(e,t){var n=this.__data__;if(n instanceof r){var l=n.__data__;if(!a||l.lengthf)n=a(r,t=u[f++]),void 0!==n&&c(s,t,n);return s}})},MULs:function(e,t,n){var r=n("Zjmp"),a=n("RtFG"),o=n("0zpI"),i=n("NRXl"),l=n("Vc2o"),c=n("eoSM"),u=n("Zsrj"),s=n("GC0I"),f=1,d="[object Arguments]",p="[object Array]",m="[object Object]",h=Object.prototype,v=h.hasOwnProperty;function g(e,t,n,h,g,y){var b=c(e),E=c(t),w=b?p:l(e),x=E?p:l(t);w=w==d?m:w,x=x==d?m:x;var k=w==m,S=x==m,O=w==x;if(O&&u(e)){if(!u(t))return!1;b=!0,k=!1}if(O&&!k)return y||(y=new r),b||s(e)?a(e,t,n,h,g,y):o(e,t,w,n,h,g,y);if(!(n&f)){var A=k&&v.call(e,"__wrapped__"),j=S&&v.call(t,"__wrapped__");if(A||j){var C=A?e.value():e,N=j?t.value():t;return y||(y=new r),g(C,N,n,h,y)}}return!!O&&(y||(y=new r),i(e,t,n,h,g,y))}e.exports=g},MZA9:function(e,t,n){var r=n("r+6h"),a=n("0JbB"),o=n("ZVkV");e.exports=r?function(e,t,n){return a.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},MdxV:function(e,t,n){var r=n("h+/6"),a=n("kk5s"),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?o.call(e,""):Object(e)}:Object},Mfbz:function(e,t,n){var r=n("FbU2"),a=n("oA63"),o=n("6vUj");function i(e){return r(e,o,a)}e.exports=i},MyUB:function(e,t,n){var r=n("O4yA"),a=r.Uint8Array;e.exports=a},"N+aw":function(e,t,n){var r=n("r+6h"),a=n("3s2x"),o=n("684d"),i=n("UQib").f,l=function(e){return function(t){var n,l=o(t),c=a(l),u=c.length,s=0,f=[];while(u>s)n=c[s++],r&&!i.call(l,n)||f.push(e?[n,l[n]]:l[n]);return f}};e.exports={entries:l(!0),values:l(!1)}},"N/7o":function(e,t,n){"use strict";var r=n("OOCw"),a=n("ANLo"),o=n("pVp3"),i=n("jax1"),l=n("h+/6"),c=1..toFixed,u=Math.floor,s=function(e,t,n){return 0===t?n:t%2===1?s(e,t-1,n*e):s(e*e,t/2,n)},f=function(e){var t=0,n=e;while(n>=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t},d=c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!l((function(){c.call({})}));r({target:"Number",proto:!0,forced:d},{toFixed:function(e){var t,n,r,l,c=o(this),d=a(e),p=[0,0,0,0,0,0],m="",h="0",v=function(e,t){var n=-1,r=t;while(++n<6)r+=e*p[n],p[n]=r%1e7,r=u(r/1e7)},g=function(e){var t=6,n=0;while(--t>=0)n+=p[t],p[t]=u(n/e),n=n%e*1e7},y=function(){var e=6,t="";while(--e>=0)if(""!==t||0===e||0!==p[e]){var n=String(p[e]);t=""===t?n:t+i.call("0",7-n.length)+n}return t};if(d<0||d>20)throw RangeError("Incorrect fraction digits");if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(m="-",c=-c),c>1e-21)if(t=f(c*s(2,69,1))-69,n=t<0?c*s(2,-t,1):c/s(2,t,1),n*=4503599627370496,t=52-t,t>0){v(0,n),r=d;while(r>=7)v(1e7,0),r-=7;v(s(10,r,1),0),r=t-1;while(r>=23)g(1<<23),r-=23;g(1<0?(l=h.length,h=m+(l<=d?"0."+i.call("0",d-l)+h:h.slice(0,l-d)+"."+h.slice(l-d))):h=m+h,h}})},N0ls:function(e,t,n){var r=n("OdMF"),a=n("upgS"),o=n("MI4T"),i=n("dwb6"),l=n("v3z7"),c=n("g0pg").aTypedArrayConstructor;e.exports=function(e){var t,n,u,s,f,d,p=r(e),m=arguments.length,h=m>1?arguments[1]:void 0,v=void 0!==h,g=o(p);if(void 0!=g&&!i(g)){f=g.call(p),d=f.next,p=[];while(!(s=d.call(f)).done)p.push(s.value)}for(v&&m>2&&(h=l(h,arguments[2],2)),n=a(p.length),u=new(c(this))(n),t=0;n>t;t++)u[t]=v?h(p[t],t):p[t];return u}},N4es:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("HN/d");function a(e,t){if(e){if("string"===typeof e)return Object(r["a"])(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r["a"])(e,t):void 0}}},N59M:function(e,t,n){var r=n("6SQG");e.exports=r.Promise},NDrN:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{var t=e.demos,n=t["isBoolean-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"isboolean"},a.a.createElement(o["AnchorLink"],{to:"#isboolean","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isBoolean"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a Boolean \u7c7b\u578b\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isBoolean: (value: any) => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value \uff0c\u8981\u5224\u65ad\u7684\u6570\u636e")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \uff0c\u662f Boolean \u7c7b\u578b"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \uff0c\u4e0d\u662f Boolean \u7c7b\u578b")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isBoolean-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},NRXl:function(e,t,n){var r=n("Mfbz"),a=1,o=Object.prototype,i=o.hasOwnProperty;function l(e,t,n,o,l,c){var u=n&a,s=r(e),f=s.length,d=r(t),p=d.length;if(f!=p&&!u)return!1;var m=f;while(m--){var h=s[m];if(!(u?h in t:i.call(t,h)))return!1}var v=c.get(e),g=c.get(t);if(v&&g)return v==t&&g==e;var y=!0;c.set(e,t),c.set(t,e);var b=u;while(++ms){var p,m=u(arguments[s++]),h=f?o(m).concat(f(m)):o(m),v=h.length,g=0;while(v>g)p=h[g++],r&&!d.call(m,p)||(n[p]=m[p])}return n}:s},NlHq:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("eyaU"),i=n("sErw"),l=n("lkgX"),c=n("ZT9G"),u=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:a},{intersection:function(e){var t=i(this),n=new(c(t,o("Set"))),r=l(t.has),a=l(n.add);return u(e,(function(e){r.call(t,e)&&a.call(n,e)})),n}})},NuOa:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("nNWW"),a=n.n(r),o=n("tSbI");function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return a.a.Children.forEach(e,(function(e){(void 0!==e&&null!==e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(i(e)):Object(o["isFragment"])(e)&&e.props?n=n.concat(i(e.props.children,t)):n.push(e))})),n}},NvbK:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var a=u(n("nNWW")),o=n("75i3"),i=l(n("bIC1"));function l(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(a,i,l):a[i]=e[i]}return a["default"]=e,n&&n.set(e,a),a}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n128||n===e.anchors.length-1})),n=this.anchors[Math.max(0,t-1)],r=n.parentElement.id;this.listeners.forEach((function(e){return e(r)}))}},{key:"watch",value:function(e){0===this.anchors.length&&"undefined"!==typeof window&&window.addEventListener("scroll",this.listener),this.anchors.push(e),this.listener()}},{key:"unwatch",value:function(e){this.anchors.splice(this.anchors.findIndex((function(t){return t===e})),1),0===this.anchors.length&&"undefined"!==typeof window&&window.removeEventListener("scroll",this.listener)}},{key:"listen",value:function(e){this.listeners.push(e)}},{key:"unlisten",value:function(e){this.listeners.splice(this.listeners.findIndex((function(t){return t===e})),1)}}]),e}());function w(e){return e.offsetTop+(e.offsetParent?w(e.offsetParent):0)}var x=function e(t){var n,r=(null===(n=t.to.match(/(#[^&?]*)/))||void 0===n?void 0:n[1])||"",i=(0,a.useRef)(null),l=(0,a.useState)(!1),c=f(l,2),u=c[0],d=c[1];return(0,a.useEffect)((function(){var e,t;if(["H1","H2","H3"].includes(null===(e=i.current)||void 0===e||null===(t=e.parentElement)||void 0===t?void 0:t.tagName)&&i.current.parentElement.id){var n=i.current;return E.watch(n),function(){E.unwatch(n)}}var a=function(e){d(r==="#".concat(e))};return E.listen(a),function(){return E.unlisten(a)}}),[]),a["default"].createElement(o.NavLink,s({},t,{ref:i,onClick:function(){return e.scrollToAnchor(r.substring(1))},isActive:function(){return u}}))};x.scrollToAnchor=function(e){window.requestAnimationFrame((function(){var t=document.getElementById(decodeURIComponent(e));t&&window.scrollTo(0,w(t)-100)}))};var k=x;t["default"]=k},Nvne:function(e,t,n){var r=n("GXoa");r("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},O4yA:function(e,t,n){var r=n("yn9n"),a="object"==typeof self&&self&&self.Object===Object&&self,o=r||a||Function("return this")();e.exports=o},O8qS:function(e,t,n){var r=n("h+/6");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},OGs1:function(e,t,n){},OOCw:function(e,t,n){var r=n("6SQG"),a=n("6ssM").f,o=n("MZA9"),i=n("uF/W"),l=n("jukf"),c=n("mult"),u=n("RzMS");e.exports=function(e,t){var n,s,f,d,p,m,h=e.target,v=e.global,g=e.stat;if(s=v?r:g?r[h]||l(h,{}):(r[h]||{}).prototype,s)for(f in t){if(p=t[f],e.noTargetGet?(m=a(s,f),d=m&&m.value):d=s[f],n=u(v?f:h+(g?".":"#")+f,e.forced),!n&&void 0!==d){if(typeof p===typeof d)continue;c(p,d)}(e.sham||d&&d.sham)&&o(p,"sham",!0),i(s,f,p,e)}}},OR72:function(e,t,n){var r=n("kk5s"),a=n("A2zS");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var o=n.call(e,t);if("object"!==typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return a.call(e,t)}},Oax0:function(e,t,n){var r=n("rkJ6"),a=Array.prototype,o=a.splice;function i(e){var t=this.__data__,n=r(t,e);if(n<0)return!1;var a=t.length-1;return n==a?t.pop():o.call(t,n,1),--this.size,!0}e.exports=i},Obug:function(e,t,n){"use strict";var r=n("OOCw"),a=n("ANLo"),o=n("VqGX"),i="Invalid number representation",l="Invalid radix",c=/^[\da-z]+$/;r({target:"Number",stat:!0},{fromString:function(e,t){var n,r,u=1;if("string"!=typeof e)throw TypeError(i);if(!e.length)throw SyntaxError(i);if("-"==e.charAt(0)&&(u=-1,e=e.slice(1),!e.length))throw SyntaxError(i);if(n=void 0===t?10:a(t),n<2||n>36)throw RangeError(l);if(!c.test(e)||(r=o(e,n)).toString(n)!==e)throw SyntaxError(i);return u*r}})},OcJn:function(e,t,n){var r=n("KZF9");r("isConcatSpreadable")},OdMF:function(e,t,n){var r=n("z43i");e.exports=function(e){return Object(r(e))}},OtMc:function(e,t,n){var r,a,o,i,l,c,u,s,f=n("6SQG"),d=n("6ssM").f,p=n("kk5s"),m=n("bbNk").set,h=n("ytxp"),v=f.MutationObserver||f.WebKitMutationObserver,g=f.process,y=f.Promise,b="process"==p(g),E=d(f,"queueMicrotask"),w=E&&E.value;w||(r=function(){var e,t;b&&(e=g.domain)&&e.exit();while(a){t=a.fn,a=a.next;try{t()}catch(n){throw a?i():o=void 0,n}}o=void 0,e&&e.enter()},b?i=function(){g.nextTick(r)}:v&&!h?(l=!0,c=document.createTextNode(""),new v(r).observe(c,{characterData:!0}),i=function(){c.data=l=!l}):y&&y.resolve?(u=y.resolve(void 0),s=u.then,i=function(){s.call(u,r)}):i=function(){m.call(f,r)}),e.exports=w||function(e){var t={fn:e,next:void 0};o&&(o.next=t),a||(a=t,i()),o=t}},Ox3h:function(e,t,n){"use strict";var r,a=n("6SQG"),o=n("TxBV"),i=n("gArs"),l=n("BUyj"),c=n("jETf"),u=n("x+sk"),s=n("uJNS").enforce,f=n("qbEc"),d=!a.ActiveXObject&&"ActiveXObject"in a,p=Object.isExtensible,m=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},h=e.exports=l("WeakMap",m,c);if(f&&d){r=c.getConstructor(m,"WeakMap",!0),i.REQUIRED=!0;var v=h.prototype,g=v["delete"],y=v.has,b=v.get,E=v.set;o(v,{delete:function(e){if(u(e)&&!p(e)){var t=s(this);return t.frozen||(t.frozen=new r),g.call(this,e)||t.frozen["delete"](e)}return g.call(this,e)},has:function(e){if(u(e)&&!p(e)){var t=s(this);return t.frozen||(t.frozen=new r),y.call(this,e)||t.frozen.has(e)}return y.call(this,e)},get:function(e){if(u(e)&&!p(e)){var t=s(this);return t.frozen||(t.frozen=new r),y.call(this,e)?b.call(this,e):t.frozen.get(e)}return b.call(this,e)},set:function(e,t){if(u(e)&&!p(e)){var n=s(this);n.frozen||(n.frozen=new r),y.call(this,e)?E.call(this,e,t):n.frozen.set(e,t)}else E.call(this,e,t);return this}})}},"P/vu":function(e,t,n){var r=n("290e")["default"];function a(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var c=i?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(o,l,c):o[l]=e[l]}return o["default"]=e,n&&n.set(e,o),o}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},P1ha:function(e,t,n){"use strict";var r=n("8Yqn")["default"];function a(){var e=n("nNWW");return a=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var o=i(n("RnyB"));function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){return d(e)||f(e,t)||u(e,t)||c()}function c(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){if(e){if("string"===typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{var t=e.demos,n=t["Tween-demo"].component,r=t["Tween-demo-1"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"tween"},a.a.createElement(o["AnchorLink"],{to:"#tween","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"Tween"),a.a.createElement("p",null,"\u7f13\u52a8\u7b97\u6cd5\u51fd\u6570\u3002\u53ef\u7528\u4e8e\u4e24\u4e2a\u6570\u5b57\u4e4b\u95f4\u4f18\u96c5\u7684\u53d8\u5316\uff0c\u4e5f\u53ef\u7528\u4e8e\u5404\u79cd\u7f13\u52a8\u8fd0\u52a8\u7684\u52a8\u753b\u3002"),a.a.createElement("h2",{id:"\u8be6\u7ec6-demo"},a.a.createElement(o["AnchorLink"],{to:"#\u8be6\u7ec6-demo","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8be6\u7ec6 demo"),a.a.createElement("p",null,a.a.createElement(o["Link"],{to:"https://cjy0208.github.io/webpack-multiple-pages/tweenDemo.html#/"},"Tween Demo")),a.a.createElement("p",null,a.a.createElement(o["Link"],{to:"https://cjy0208.github.io/webpack-multiple-pages/tweenDemo.html#/Easing"},"\u4f7f\u7528\u8be5\u7b97\u6cd5\u5199\u7684\u6240\u6709 Easing \u793a\u4f8b")),a.a.createElement("h2",{id:"\u7b80\u964b\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u7b80\u964b\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u7b80\u964b\u4e3e\u4f8b")),a.a.createElement(i["default"],t["Tween-demo"].previewerProps,a.a.createElement(n,null)),a.a.createElement(i["default"],t["Tween-demo-1"].previewerProps,a.a.createElement(r,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(l,{demos:n})}},PORw:function(e,t,n){var r=n("cBxx"),a=n("GLQI"),o=n("ohzl"),i="[object Null]",l="[object Undefined]",c=r?r.toStringTag:void 0;function u(e){return null==e?void 0===e?l:i:c&&c in Object(e)?a(e):o(e)}e.exports=u},PP1l:function(e,t,n){"use strict";var r=n("SP/E")["default"],a=n("5F55")["default"];function o(){var e=n("nNWW");return o=function(){return e},e}function i(e,t){return f(e)||s(e,t)||c(e,t)||l()}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){if(e){if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{var t=e.demos,n=t["clamp-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"clamp"},a.a.createElement(o["AnchorLink"],{to:"#clamp","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"clamp"),a.a.createElement("p",null,"\u6570\u503c\u8303\u56f4\u9650\u5b9a\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"clamp(value: number, min: number, max?: number): number;",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"number \u88ab\u9650\u5236\u7684\u503c"),a.a.createElement("li",null,"min \u6700\u5c0f\u503c(\u9ed8\u8ba4\u662f ",a.a.createElement("code",null,"Number.MIN_VALUE")," )"),a.a.createElement("li",null,"max \u6700\u5927\u503c (\u9ed8\u8ba4\u662f ",a.a.createElement("code",null,"Number.MAX_VALUE")," )")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u5982\u679c number \u6bd4 min \u5c0f\uff0c\u5219\u8fd4\u56de min\u3002"),a.a.createElement("li",null,"\u5982\u679c number \u6bd4 max \u5927\uff0c\u5219\u8fd4\u56de max\u3002"),a.a.createElement("li",null,"\u5982\u679c number \u6bd4 min \u5927\u4e14\u6bd4 max \u5c0f\uff0c\u5219\u8fd4\u56de number\u3002")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["clamp-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},PVOi:function(e,t,n){var r=n("t+TA"),a=n("O4yA"),o=r(a,"WeakMap");e.exports=o},PWyJ:function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},Pcho:function(e,t,n){"use strict";function r(){var e=n("nNWW");return r=function(){return e},e}function a(e,t){return u(e)||c(e,t)||i(e,t)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e,t){if(e){if("string"===typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?arguments[1]:void 0)}})},PewQ:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["isNull-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"isnull"},a.a.createElement(o["AnchorLink"],{to:"#isnull","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isNull"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a null \u7c7b\u578b\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isNull: (value: any) => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value \uff0c\u8981\u5224\u65ad\u7684\u6570\u636e")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u662f null \u7c7b\u578b"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u4e0d\u662f null \u7c7b\u578b")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isNull-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},PyMO:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["isDesktop-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"isdesktop"},a.a.createElement(o["AnchorLink"],{to:"#isdesktop","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isDesktop"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a\u684c\u9762\u5e94\u7528\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isDesktop: () => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("p",null,"\u65e0"),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u662f\u684c\u9762\u5e94\u7528"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u4e0d\u662f\u684c\u9762\u5e94\u7528")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isDesktop-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},PynX:function(e,t,n){var r=n("KZF9");r("dispose")},Q1cZ:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("V6CC");function a(e,t){var n=Object(r["a"])({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}},Q69t:function(e,t){function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=n},Q7Q6:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["I18n-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"i18n"},a.a.createElement(o["AnchorLink"],{to:"#i18n","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"I18n"),a.a.createElement("p",null,a.a.createElement("code",null,"i18nshell")," \u5de5\u5177\u539f\u578b\uff0c\u591a\u8bed\u8a00\u5de5\u5177\u5305\u3002\u8be6\u60c5\u53ef\u53c2\u8003\uff1a",a.a.createElement(o["Link"],{to:"https://github.com/CJY0208/i18nshell/blob/HEAD/README_CN.md"},"CJY0208/i18nshell")),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"import EventBus from './EventBus'\nexport interface I18nConfig {\n types: {\n resources: Object\n }[]\n defaultType: string\n fallback?: I18n[] | Object\n}\nexport default class I18n {\n static instances: any[]\n static language: any\n static eventBus: EventBus\n /**\n * [template \u7b80\u6613\u5b57\u7b26\u4e32\u6a21\u677f\u51fd\u6570]\n * e.g: template('hello {{name}}', { name: 'CJY' }) ==> 'hello CJY'\n * @param {[\u5b57\u7b26\u4e32]} str [description]\n * @param {[type]} data [description]\n * @return {[type]} [description]\n */\n static template: (str: string, data: any) => string\n static load: (...loaders: any[]) => import('./memoize').CachedFunction\n static applyLanguage: (language: any) => Promise\n resources: {}\n language: any\n eventBus: EventBus\n config: I18nConfig\n constructor(config: I18nConfig)\n applyLanguage: (language: any) => Promise\n translate: (str: any, options?: {}) => any\n fallbackTranslate: (str: any, options: any, namespace: any) => any\n t: (str: any, options?: {}) => any\n}",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"config: I18nConfig\uff0c\u7b26\u5408\u8bed\u6cd5\u7684 ",a.a.createElement("code",null,"I18nConfig")," \u914d\u7f6e\u5bf9\u8c61\u3002")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"I18n \u7684\u5b9e\u4f8b")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["I18n-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},QHn5:function(e,t,n){var r=n("qyeh"),a=n("mxPn");e.exports=r?a:function(e){return Map.prototype.entries.call(e)}},QKCj:function(e,t,n){n("ax/v")},QQXB:function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!==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}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(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__;n0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(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(){r&&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,r=u.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),d=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),C="undefined"!==typeof WeakMap?new WeakMap:new n,N=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=f.getInstance(),r=new j(t,n,this);C.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach((function(e){N.prototype[e]=function(){var t;return(t=C.get(this))[e].apply(t,arguments)}}));var T=function(){return"undefined"!==typeof a.ResizeObserver?a.ResizeObserver:N}();t["a"]=T}).call(this,n("bQdJ"))},QWtl:function(e,t,n){var r,a=n("sErw"),o=n("DS72"),i=n("AqOu"),l=n("Y3cF"),c=n("RtP/"),u=n("73fw"),s=n("8i6t"),f=">",d="<",p="prototype",m="script",h=s("IE_PROTO"),v=function(){},g=function(e){return d+m+f+e+d+"/"+m+f},y=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=u("iframe"),n="java"+m+":";return t.style.display="none",c.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(g("document.F=Object")),e.close(),e.F},E=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}E=r?y(r):b();var e=i.length;while(e--)delete E[p][i[e]];return E()};l[h]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(v[p]=a(e),n=new v,v[p]=null,n[h]=e):n=E(),void 0===t?n:o(n,t)}},QZNO:function(e,t,n){var r=n("OOCw"),a=n("6SQG");r({global:!0},{globalThis:a})},Qf6j:function(e,t,n){},QiOl:function(e,t,n){"use strict";var r=n("5yEw"),a=n("elB0");e.exports=r?{}.toString:function(){return"[object "+a(this)+"]"}},QkOx:function(e,t,n){"use strict";n("jYqw");var r=n("uF/W"),a=n("h+/6"),o=n("3Hes"),i=n("A2zS"),l=n("MZA9"),c=o("species"),u=!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")})),s=function(){return"$0"==="a".replace(/./,"$0")}(),f=o("replace"),d=function(){return!!/./[f]&&""===/./[f]("a","$0")}(),p=!a((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,f){var m=o(e),h=!a((function(){var t={};return t[m]=function(){return 7},7!=""[e](t)})),v=h&&!a((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[c]=function(){return n},n.flags="",n[m]=/./[m]),n.exec=function(){return t=!0,null},n[m](""),!t}));if(!h||!v||"replace"===e&&(!u||!s||d)||"split"===e&&!p){var g=/./[m],y=n(m,""[e],(function(e,t,n,r,a){return t.exec===i?h&&!a?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:s,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),b=y[0],E=y[1];r(String.prototype,e,b),r(RegExp.prototype,m,2==t?function(e,t){return E.call(e,this,t)}:function(e){return E.call(e,this)})}f&&l(RegExp.prototype[m],"sham",!0)}},Qkfr:function(e,t,n){"use strict";var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.target,r=void 0===n?document.body:n,a=document.createElement("textarea"),o=document.activeElement;a.value=e,a.setAttribute("readonly",""),a.style.contain="strict",a.style.position="absolute",a.style.left="-9999px",a.style.fontSize="12pt";var i=document.getSelection(),l=!1;i.rangeCount>0&&(l=i.getRangeAt(0)),r.append(a),a.select(),a.selectionStart=0,a.selectionEnd=e.length;var c=!1;try{c=document.execCommand("copy")}catch(u){}return a.remove(),l&&(i.removeAllRanges(),i.addRange(l)),o&&o.focus(),c};e.exports=r,e.exports["default"]=r},QlVd:function(e,t,n){"use strict";var r=n("OOCw"),a=n("dz2h"),o=n("z43i"),i=n("upgS"),l=n("lkgX"),c=n("sErw"),u=n("kk5s"),s=n("q43B"),f=n("rfqm"),d=n("MZA9"),p=n("h+/6"),m=n("3Hes"),h=n("ZT9G"),v=n("o1x9"),g=n("uJNS"),y=n("qyeh"),b=m("matchAll"),E="RegExp String",w=E+" Iterator",x=g.set,k=g.getterFor(w),S=RegExp.prototype,O=S.exec,A="".matchAll,j=!!A&&!p((function(){"a".matchAll(/./)})),C=function(e,t){var n,r=e.exec;if("function"==typeof r){if(n=r.call(e,t),"object"!=typeof n)throw TypeError("Incorrect exec result");return n}return O.call(e,t)},N=a((function(e,t,n,r){x(this,{type:w,regexp:e,string:t,global:n,unicode:r,done:!1})}),E,(function(){var e=k(this);if(e.done)return{value:void 0,done:!0};var t=e.regexp,n=e.string,r=C(t,n);return null===r?{value:void 0,done:e.done=!0}:e.global?(""==String(r[0])&&(t.lastIndex=v(n,i(t.lastIndex),e.unicode)),{value:r,done:!1}):(e.done=!0,{value:r,done:!1})})),T=function(e){var t,n,r,a,o,l,u=c(this),s=String(e);return t=h(u,RegExp),n=u.flags,void 0===n&&u instanceof RegExp&&!("flags"in S)&&(n=f.call(u)),r=void 0===n?"":String(n),a=new t(t===RegExp?u.source:u,r),o=!!~r.indexOf("g"),l=!!~r.indexOf("u"),a.lastIndex=i(u.lastIndex),new N(a,s,o,l)};r({target:"String",proto:!0,forced:j},{matchAll:function(e){var t,n,r,a,i=o(this);if(null!=e){if(s(e)&&(t=String(o("flags"in S?e.flags:f.call(e))),!~t.indexOf("g")))throw TypeError("`.matchAll` does not allow non-global regexes");if(j)return A.apply(i,arguments);if(r=e[b],void 0===r&&y&&"RegExp"==u(e)&&(r=T),null!=r)return l(r).call(e,i)}else if(j)return A.apply(i,arguments);return n=String(i),a=new RegExp(e,"g"),y?T.call(a,n):a[b](n)}}),y||b in S||d(S,b,T)},Qm0Y:function(e,t,n){var r=n("OOCw"),a=n("dmWW");r({global:!0,forced:parseFloat!=a},{parseFloat:a})},QwZf:function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return w}));var r=n("Bm2L"),a=n("R5oI"),o=n("nNWW"),i=n.n(o),l=n("ptaF"),c=n("973d"),u=n("dl1G"),s=n("rfn3");i.a.Component;i.a.Component;var f=function(e,t){return"function"===typeof e?e(t):e},d=function(e,t){return"string"===typeof e?Object(l["c"])(e,null,null,t):e},p=function(e){return e},m=i.a.forwardRef;function h(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}"undefined"===typeof m&&(m=p);var v=m((function(e,t){var n=e.innerRef,r=e.navigate,a=e.onClick,o=Object(u["a"])(e,["innerRef","navigate","onClick"]),l=o.target,s=Object(c["a"])({},o,{onClick:function(e){try{a&&a(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||l&&"_self"!==l||h(e)||(e.preventDefault(),r())}});return s.ref=p!==m&&t||n,i.a.createElement("a",s)}));var g=m((function(e,t){var n=e.component,a=void 0===n?v:n,o=e.replace,l=e.to,h=e.innerRef,g=Object(u["a"])(e,["component","replace","to","innerRef"]);return i.a.createElement(r["h"].Consumer,null,(function(e){e||Object(s["a"])(!1);var n=e.history,r=d(f(l,e.location),e.location),u=r?n.createHref(r):"",v=Object(c["a"])({},g,{href:u,navigate:function(){var t=f(l,e.location),r=o?n.replace:n.push;r(t)}});return p!==m?v.ref=t||h:v.innerRef=h,i.a.createElement(a,v)}))})),y=function(e){return e},b=i.a.forwardRef;function E(){for(var e=arguments.length,t=new Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n, mountNode);"),t}var b=function(e){var t=(0,o().useState)(),n=u(t,2),i=n[0],c=n[1],s=g();return(0,o().useEffect)((function(){if(e&&s&&1===Object.keys(e.sources).length){var t,n=document.createElement("form"),o=document.createElement("input");return n.method="POST",n.target="_blank",n.style.display="none",n.action=v,n.appendChild(o),n.setAttribute("data-demo",e.title||""),o.name="data",o.value=JSON.stringify({title:e.titlle,js:y(e),css:Object.entries(e.dependencies).filter((function(e){var t=a(e,2),n=t[1];return n.css})).map((function(e){var t=a(e,2),n=t[0],r=t[1],o=r.version,i=r.css;return"@import '~".concat(i.replace(new RegExp("^(".concat(n,")")),"$1@".concat(o)),"';")})).concat(e.background?"body {\n background: ".concat(e.background,";\n}"):"").join("\n"),json:JSON.stringify({description:e.description,dependencies:Object.entries(e.dependencies).reduce((function(e,t){var n=a(t,2),o=n[0],i=n[1].version;return l(l({},e),{},r({},o,i))}),{"react-dom":(null===(t=e.dependencies.react)||void 0===t?void 0:t.version)||"latest"})},null,2)}),document.body.appendChild(n),c((function(){return function(){return n.submit()}})),function(){return n.remove()}}}),[e,s]),i};t["default"]=b},QzCP:function(e,t,n){var r=n("t+TA"),a=r(Object,"create");e.exports=a},R5oI:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("fVxY");function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Object(r["a"])(e,t)}},R8Xy:function(e,t,n){var r=n("qyeh"),a=n("mxPn");e.exports=r?a:function(e){return Set.prototype.values.call(e)}},RHHP:function(e,t,n){n("QlVd")},RSL4:function(e,t,n){n("QZNO")},RfhN:function(e,t){function n(){return!1}e.exports=n},RnyB:function(e,t,n){"use strict";function r(){var e=a(n("nNWW"));return r=function(){return e},e}function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var o=r()["default"].createContext({config:{mode:"doc",title:"",navs:{},menus:{},locales:[],repository:{branch:"master"},theme:{}},meta:{title:""},menu:[],nav:[],base:"",routes:[],apis:{},demos:{}});t["default"]=o},RtFG:function(e,t,n){var r=n("2lI5"),a=n("1aIJ"),o=n("l3mM"),i=1,l=2;function c(e,t,n,c,u,s){var f=n&i,d=e.length,p=t.length;if(d!=p&&!(f&&p>d))return!1;var m=s.get(e),h=s.get(t);if(m&&h)return m==t&&h==e;var v=-1,g=!0,y=n&l?new r:void 0;s.set(e,t),s.set(t,e);while(++ve.length)&&(t=e.length);for(var n=0,r=new Array(t);nv)throw TypeError(g);for(s=c(y,r),f=0;fb-r+n;f--)delete y[f-1]}else if(n>r)for(f=b-r;f>E;f--)d=f+r-1,p=f+n-1,d in y?y[p]=y[d]:delete y[p];for(f=0;f1?arguments[1]:void 0,3),a=new(u(t,o("Map"))),d=l(a.set);return f(n,(function(e,n){d.call(a,r(n,e,t),n)}),void 0,!0,!0),a}})},SHha:function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function i(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function l(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(o){return!1}}e.exports=l()?Object.assign:function(e,t){for(var n,l,c=i(e),u=1;u{var t=e.demos,n=t["run-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"run"},a.a.createElement(o["AnchorLink"],{to:"#run","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"run"),a.a.createElement("p",null,"\u65e0\u75db\u8fd0\u884c\u51fd\u6570\u6216\u975e\u51fd\u6570\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"run(obj: any, keys?: KType, ...args: any[]): T;",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"obj \u63d0\u53d6\u5bf9\u8c61\u6216\u8981\u6267\u884c\u7684\u51fd\u6570"),a.a.createElement("li",null,"keys \u63d0\u53d6\u5bf9\u8c61\u7684 key \u64cd\u4f5c\u7b26\uff0c\u65e0\u9700\u8bf7\u4f20 ",a.a.createElement("code",null,"undefined")),a.a.createElement("li",null,"args \u4f20\u7ed9\u51fd\u6570\u7684\u53c2\u6570")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u5982\u679c\u8981\u8fd0\u884c\u7684\u662f\u51fd\u6570\uff0c\u5c31\u4f1a\u8fd0\u884c\uff0c\u8fd4\u56de\u51fd\u6570\u8fd4\u56de\u7684\u503c\u3002"),a.a.createElement("li",null,"\u5982\u679c\u8981\u8fd0\u884c\u7684\u4e0d\u662f\u51fd\u6570\uff0c\u5c31\u76f4\u63a5\u8fd4\u56de\u8981\u8fd0\u884c\u7684\u503c\u3002")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"const obj = {\n a: {\n b: {\n c: 'abc',\n func: function () {\n console.log(arguments)\n console.log('vagaga')\n },\n },\n },\n}\n\nrun(obj, 'a.b.f', 'hello world') // ['hello world'] vagaga\nrun(a, 'a.b.c', 'hello world') // abc",lang:"javascript"})),a.a.createElement(i["default"],t["run-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},SlEr:function(e,t,n){"use strict";var r=n("BUyj"),a=n("ZmXH");e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),a)},SpTn:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var a=c(n("nNWW")),o=i(n("RnyB"));function i(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var c=o?Object.getOwnPropertyDescriptor(e,i):null;c&&(c.get||c.set)?Object.defineProperty(a,i,c):a[i]=e[i]}return a["default"]=e,n&&n.set(e,a),a}function u(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=d(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n["return"]||n["return"]()}finally{if(l)throw o}}}}function s(e,t){return h(e)||m(e,t)||d(e,t)||f()}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e,t){if(e){if("string"===typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;i-=1){var l=a[i],c=[l].concat(l.children).filter(Boolean),u=c.find((function(e){return e.path&&new RegExp("^".concat(e.path.replace(/\.html$/,""),"(/|.|$)")).test(n[2])}));if(u){o=u.path;break}}return(null===(e=n[0].menus[n[1]])||void 0===e?void 0:e[o])||[]},o=(0,a.useState)(r(e,t,n)),i=s(o,2),l=i[0],c=i[1];return(0,a.useLayoutEffect)((function(){c(r(e,t,n))}),[e.navs,e.menus,t,n]),l},x=function(e,t,n){var r=function(){for(var t=arguments.length,r=new Array(t),a=0;a{var t=e.demos,n=t["\u4e0b\u5212\u7ebf-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"__"},a.a.createElement(o["AnchorLink"],{to:"#__","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"__"),a.a.createElement("p",null,"\u81ea\u7531\u67ef\u91cc\u5316\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"AnyFunction = (...args: any[]) => any;\n\n__: (func: T, context?: any) => (...preArgs: any[]) => (...args: any[]) => ReturnType;",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value \u5904\u7406\u4f20\u5165\u53c2\u6570\u7684\u51fd\u6570\uff0ccontext \u7ed1\u5b9a\u7684\u5bf9\u8c61"),a.a.createElement("li",null,"\u9700\u8981\u5904\u7406\u7684\u53c2\u6570")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u4f20\u5165\u8981\u5904\u7406\u53c2\u6570\u7684\u51fd\u6570\u548c\u7ed1\u5b9a\u7684\u5bf9\u8c61\u540e\uff0c\u4f1a\u8fd4\u56de\u4e00\u4e2a\u65b0\u7684 curry \u51fd\u6570\uff0c\u4f9b\u540e\u7eed\u8c03\u7528"),a.a.createElement("li",null,"\u6700\u7ec8\u4f1a\u8fd4\u56de\u5904\u7406\u51fd\u6570\u7684\u8fd4\u56de\u7ed3\u679c")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["\u4e0b\u5212\u7ebf-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},TDWY:function(e,t,n){var r=n("rkJ6");function a(e,t){var n=this.__data__,a=r(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}e.exports=a},TEI5:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["isObject-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"isobject"},a.a.createElement(o["AnchorLink"],{to:"#isobject","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isObject"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a Object \u7c7b\u578b\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isObject: (value: any) => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value \uff0c\u8981\u5224\u65ad\u7684\u6570\u636e")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u662f Object \u7c7b\u578b"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u4e0d\u662f Object \u7c7b\u578b")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isObject-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},THrr:function(e,t,n){var r=n("h+/6"),a=n("3Hes"),o=n("tDGd"),i=a("species");e.exports=function(e){return o>=51||!r((function(){var t=[],n=t.constructor={};return n[i]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},THzI:function(e,t,n){"use strict";var r=n("qyeh"),a=n("6SQG"),o=n("h+/6");e.exports=r||!o((function(){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete a[e]}))},TMNz:function(e,t,n){"use strict";var r=n("OOCw"),a=n("M+Sl").map,o=n("THrr"),i=n("7/pz"),l=o("map"),c=i("map");r({target:"Array",proto:!0,forced:!l||!c},{map:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},TwAS:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["curry-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"curry"},a.a.createElement(o["AnchorLink"],{to:"#curry","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"curry"),a.a.createElement("p",null,"curry \u67ef\u91cc\u5316\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"curry: (fn: Function) => (...args: any[]) => T",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u5904\u7406\u4f20\u5165\u53c2\u6570\u7684\u51fd\u6570"),a.a.createElement("li",null,"\u9700\u8981\u5904\u7406\u7684\u53c2\u6570")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u4f20\u5165\u8981\u5904\u7406\u53c2\u6570\u7684\u51fd\u6570\u540e\uff0c\u4f1a\u8fd4\u56de\u4e00\u4e2a\u65b0\u7684 curry \u51fd\u6570\uff0c\u4f9b\u540e\u7eed\u8c03\u7528"),a.a.createElement("li",null,"\u6700\u7ec8\u4f1a\u8fd4\u56de\u5904\u7406\u51fd\u6570\u7684\u8fd4\u56de\u7ed3\u679c")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["curry-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},TxBV:function(e,t,n){var r=n("uF/W");e.exports=function(e,t,n){for(var a in t)r(e,a,t[a],n);return e}},TxDi:function(e,t,n){var r=n("3Hes"),a=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[a]=!1,"/./"[e](t)}catch(r){}}return!1}},Txlo:function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function a(e,t){var a=typeof e;return t=null==t?n:t,!!t&&("number"==a||"symbol"!=a&&r.test(e))&&e>-1&&e%1==0&&e{var t=e.demos,n=t["isString-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"isstring"},a.a.createElement(o["AnchorLink"],{to:"#isstring","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isString"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a String \u7c7b\u578b\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isString: (value: any) => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value \uff0c\u8981\u5224\u65ad\u7684\u6570\u636e")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u662f String \u7c7b\u578b"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u4e0d\u662f String \u7c7b\u578b")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isString-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},UDnj:function(e,t,n){var r=n("KZF9");r("toStringTag")},UMve:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("eyaU"),i=n("sErw"),l=n("lkgX"),c=n("v3z7"),u=n("ZT9G"),s=n("R8Xy"),f=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:a},{filter:function(e){var t=i(this),n=s(t),r=c(e,arguments.length>1?arguments[1]:void 0,3),a=new(u(t,o("Set"))),d=l(a.add);return f(n,(function(e){r(e,e,t)&&d.call(a,e)}),void 0,!1,!0),a}})},UQib:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,o=a&&!r.call({1:2},1);t.f=o?function(e){var t=a(this,e);return!!t&&t.enumerable}:r},UWO6:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["get-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"get"},a.a.createElement(o["AnchorLink"],{to:"#get","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"get"),a.a.createElement("p",null,"\u65e0\u75db\u53d6\u503c\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"declare type KType = string | any[] | number;\nget(obj: any, keys?: KType, defaultValue?: any): T;",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"obj \u63d0\u53d6\u5bf9\u8c61"),a.a.createElement("li",null,"keys \u63d0\u53d6\u5bf9\u8c61\u7684 key \u64cd\u4f5c\u7b26"),a.a.createElement("li",null,"defaultValue \u53d6\u4e0d\u5230\u503c\u7684\u9ed8\u8ba4\u503c")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u5982\u679c\u80fd\u53d6\u5230\u503c\uff0c\u5c31\u8fd4\u56de\u53d6\u5230\u7684\u503c\u3002"),a.a.createElement("li",null,"\u5982\u679c\u4e0d\u80fd\u53d6\u5230\u503c\uff0c\u5c31\u8fd4\u56de ",a.a.createElement("code",null,"defaultValue")," \u9ed8\u8ba4\u503c\u3002")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"const a = {\n a: {\n b: {\n c: 'abc',\n },\n },\n}\nget(a, 'a.b.d', 'hello world') // hello world\nget(a, 'a.b.c', 'hello world') // abc",lang:"javascript"})),a.a.createElement(i["default"],t["get-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},Us7a:function(e,t,n){var r=n("upgS"),a=n("jax1"),o=n("z43i"),i=Math.ceil,l=function(e){return function(t,n,l){var c,u,s=String(o(t)),f=s.length,d=void 0===l?" ":String(l),p=r(n);return p<=f||""==d?s:(c=p-f,u=a.call(d,i(c/d.length)),u.length>c&&(u=u.slice(0,c)),e?s+u:u+s)}};e.exports={start:l(!1),end:l(!0)}},UtSM:function(e,t,n){var r=n("rkJ6");function a(e){return r(this.__data__,e)>-1}e.exports=a},Uv1i:function(e,t,n){var r=n("GXoa");r("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},V0hj:function(e,t,n){var r=n("O8qS");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},V6CC:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("vh/W");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t-1&&e%1==0&&e<=n}e.exports=r},VNwZ:function(e,t){function n(e){if(Array.isArray(e))return e}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},Vc2o:function(e,t,n){var r=n("t+GO"),a=n("GQDD"),o=n("megh"),i=n("NSh6"),l=n("PVOi"),c=n("PORw"),u=n("GLf+"),s="[object Map]",f="[object Object]",d="[object Promise]",p="[object Set]",m="[object WeakMap]",h="[object DataView]",v=u(r),g=u(a),y=u(o),b=u(i),E=u(l),w=c;(r&&w(new r(new ArrayBuffer(1)))!=h||a&&w(new a)!=s||o&&w(o.resolve())!=d||i&&w(new i)!=p||l&&w(new l)!=m)&&(w=function(e){var t=c(e),n=t==f?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case v:return h;case g:return s;case y:return d;case b:return p;case E:return m}return t}),e.exports=w},Vg85:function(e,t){e.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},VnLQ:function(e,t,n){"use strict";var r=n("OOCw"),a=n("lkgX"),o=n("eyaU"),i=n("8d12"),l=n("86T+"),c=n("uZx/"),u="No one promise resolved";r({target:"Promise",stat:!0},{any:function(e){var t=this,n=i.f(t),r=n.resolve,s=n.reject,f=l((function(){var n=a(t.resolve),i=[],l=0,f=1,d=!1;c(e,(function(e){var a=l++,c=!1;i.push(void 0),f++,n.call(t,e).then((function(e){c||d||(d=!0,r(e))}),(function(e){c||d||(c=!0,i[a]=e,--f||s(new(o("AggregateError"))(i,u)))}))})),--f||s(new(o("AggregateError"))(i,u))}));return f.error&&s(f.value),n.promise}})},VnN1:function(e,t,n){"use strict";var r,a,o,i,l;if("undefined"===typeof window||"function"!==typeof MessageChannel){var c=null,u=null,s=function e(){if(null!==c)try{var n=t.unstable_now();c(!0,n),c=null}catch(r){throw setTimeout(e,0),r}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(s,0))},a=function(e,t){u=setTimeout(e,t)},o=function(){clearTimeout(u)},i=function(){return!1},l=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,p=window.Date,m=window.setTimeout,h=window.clearTimeout;if("undefined"!==typeof console){var v=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"===typeof d&&"function"===typeof d.now)t.unstable_now=function(){return d.now()};else{var g=p.now();t.unstable_now=function(){return p.now()-g}}var y=!1,b=null,E=-1,w=5,x=0;i=function(){return t.unstable_now()>=x},l=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,a=e[r];if(!(void 0!==a&&0C(i,n))void 0!==c&&0>C(c,i)?(e[r]=c,e[l]=n,r=l):(e[r]=i,e[o]=n,r=o);else{if(!(void 0!==c&&0>C(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var N=[],T=[],P=1,_=null,D=3,I=!1,F=!1,L=!1;function R(e){for(var t=A(T);null!==t;){if(null===t.callback)j(T);else{if(!(t.startTime<=e))break;j(T),t.sortIndex=t.expirationTime,O(N,t)}t=A(T)}}function M(e){if(L=!1,R(e),!F)if(null!==A(N))F=!0,r(z);else{var t=A(T);null!==t&&a(M,t.startTime-e)}}function z(e,n){F=!1,L&&(L=!1,o()),I=!0;var r=D;try{for(R(n),_=A(N);null!==_&&(!(_.expirationTime>n)||e&&!i());){var l=_.callback;if(null!==l){_.callback=null,D=_.priorityLevel;var c=l(_.expirationTime<=n);n=t.unstable_now(),"function"===typeof c?_.callback=c:_===A(N)&&j(N),R(n)}else j(N);_=A(N)}if(null!==_)var u=!0;else{var s=A(T);null!==s&&a(M,s.startTime-n),u=!1}return u}finally{_=null,D=r,I=!1}}function W(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var B=l;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){F||I||(F=!0,r(z))},t.unstable_getCurrentPriorityLevel=function(){return D},t.unstable_getFirstCallbackNode=function(){return A(N)},t.unstable_next=function(e){switch(D){case 1:case 2:case 3:var t=3;break;default:t=D}var n=D;D=t;try{return e()}finally{D=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=D;D=e;try{return t()}finally{D=n}},t.unstable_scheduleCallback=function(e,n,i){var l=t.unstable_now();if("object"===typeof i&&null!==i){var c=i.delay;c="number"===typeof c&&0l?(e.sortIndex=c,O(T,e),null===A(N)&&e===A(T)&&(L?o():L=!0,a(M,c-l))):(e.sortIndex=i,O(N,e),F||I||(F=!0,r(z))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();R(e);var n=A(N);return n!==_&&null!==_&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<_.expirationTime||i()},t.unstable_wrapCallback=function(e){var t=D;return function(){var n=D;D=t;try{return e.apply(this,arguments)}finally{D=n}}}},VqGX:function(e,t,n){var r=n("6SQG"),a=n("CsJM").trim,o=n("Vg85"),i=r.parseInt,l=/^[+-]?0[Xx]/,c=8!==i(o+"08")||22!==i(o+"0x16");e.exports=c?function(e,t){var n=a(String(e));return i(n,t>>>0||(l.test(n)?16:10))}:i},VzNH:function(e,t){function n(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"W5+R":function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["globalThis-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"globalthis"},a.a.createElement(o["AnchorLink"],{to:"#globalthis","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"globalThis"),a.a.createElement("p",null,"\u65e0\u9700\u8003\u8651\u73af\u5883\uff0c\u4f1a\u81ea\u52a8\u8fd4\u56de\u5168\u5c40\u5bf9\u8c61\u3002"),a.a.createElement("p",null,"\u5728\u6d4f\u89c8\u5668\u4e2d\uff0c\u5168\u5c40\u5bf9\u8c61\u5c31\u662f ",a.a.createElement("code",null,"window")," \u5bf9\u8c61\u3002\u800c\u5728 ",a.a.createElement("code",null,"Node.js")," \u73af\u5883\u4e2d\uff0c\u5168\u5c40\u5bf9\u8c61\u5219\u53eb ",a.a.createElement("code",null,"global")," \u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"globalThis: any",lang:"ts"}),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("p",null,"\u8fd4\u56de\u5168\u5c40\u5bf9\u8c61"),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["globalThis-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},WAeE:function(e,t,n){var r=n("qyeh"),a=n("l9Lh");(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},WJ2W:function(e,t,n){var r=n("KZF9");r("hasInstance")},WYEs:function(e,t,n){"use strict";e.exports=n("oGfY")},WgHT:function(e,t){function n(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},WkS0:function(e,t,n){"use strict";var r,a,o,i=n("zesz"),l=n("MZA9"),c=n("oEsY"),u=n("3Hes"),s=n("qyeh"),f=u("iterator"),d=!1,p=function(){return this};[].keys&&(o=[].keys(),"next"in o?(a=i(i(o)),a!==Object.prototype&&(r=a)):d=!0),void 0==r&&(r={}),s||c(r,f)||l(r,f,p),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},WkeX:function(e,t,n){"use strict";var r=n("CEyi");function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},Wldj:function(e,t,n){"use strict";var r=n("lkgX"),a=n("x+sk"),o=[].slice,i={},l=function(e,t,n){if(!(t in i)){for(var r=[],a=0;a{var t=e.demos,n=t["storage-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"storage"},a.a.createElement(o["AnchorLink"],{to:"#storage","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"storage"),a.a.createElement("p",null,"storage \u5b58\u53d6\u76f8\u5173\u51fd\u6570\u7684\u5c01\u88c5\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"const get: Function\nconst set: Function\nconst remove: Function\nconst getSession: Function\nconst setSession: Function\nconst removeSession: Function\n\nexport default {\n get: get,\n set: set,\n remove: remove,\n getSession: getSession,\n setSession: setSession,\n removeSession: removeSession,\n}",lang:"ts"}),a.a.createElement("h2",{id:"storage-\u5bf9\u8c61\u91cc\u7684\u5c5e\u6027"},a.a.createElement(o["AnchorLink"],{to:"#storage-\u5bf9\u8c61\u91cc\u7684\u5c5e\u6027","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"storage \u5bf9\u8c61\u91cc\u7684\u5c5e\u6027"),a.a.createElement("ul",null,a.a.createElement("li",null,"get(key) \uff0c\u4ece ",a.a.createElement("code",null,"localStorage")," \u4e2d\u901a\u8fc7 key \u83b7\u53d6\u5230\u6570\u636e"),a.a.createElement("li",null,"set(key, value) \uff0c\u8bbe\u7f6e ",a.a.createElement("code",null,"localStorage")," \u4e2d key \u6570\u636e\u4e3a value"),a.a.createElement("li",null,"remove(key) \uff0c\u79fb\u9664 ",a.a.createElement("code",null,"localStorage")," \u4e2d\u7684\u6570\u636e"),a.a.createElement("li",null,"getSession(key) \uff0c\u4ece ",a.a.createElement("code",null,"sessionStorage")," \u4e2d\u901a\u8fc7 key \u83b7\u53d6\u5230\u6570\u636e"),a.a.createElement("li",null,"setSession(key, value) \uff0c\u8bbe\u7f6e ",a.a.createElement("code",null,"sessionStorage")," \u4e2d key \u6570\u636e\u4e3a value"),a.a.createElement("li",null,"removeSession(key) \uff0c\u79fb\u9664 ",a.a.createElement("code",null,"sessionStorage")," \u4e2d\u7684\u6570\u636e")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["storage-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},X0H4:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("N59M"),i=n("h+/6"),l=n("eyaU"),c=n("ZT9G"),u=n("rCLu"),s=n("uF/W"),f=!!o&&i((function(){o.prototype["finally"].call({then:function(){}},(function(){}))}));r({target:"Promise",proto:!0,real:!0,forced:f},{finally:function(e){var t=c(this,l("Promise")),n="function"==typeof e;return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),a||"function"!=typeof o||o.prototype["finally"]||s(o.prototype,"finally",l("Promise").prototype["finally"])},X7eB:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["throttle-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"throttle"},a.a.createElement(o["AnchorLink"],{to:"#throttle","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"throttle"),a.a.createElement("p",null,"\u89c4\u5b9a\u4e00\u4e2a\u5355\u4f4d\u65f6\u95f4\uff0c\u5728\u8fd9\u4e2a\u5355\u4f4d\u65f6\u95f4\u5185\uff0c\u53ea\u80fd\u6709\u4e00\u6b21\u89e6\u53d1\u4e8b\u4ef6\u7684\u56de\u8c03\u51fd\u6570\u6267\u884c\uff0c\u5982\u679c\u5728\u540c\u4e00\u4e2a\u5355\u4f4d\u65f6\u95f4\u5185\u67d0\u4e8b\u4ef6\u88ab\u89e6\u53d1\u591a\u6b21\uff0c\u53ea\u6709\u4e00\u6b21\u80fd\u751f\u6548\u3002"),a.a.createElement("h3",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"throttle: (func: T, wait?: number) => (...args: any[]) => void | ReturnType;",lang:"unknown"}),a.a.createElement("h3",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"func \u8282\u6d41\u51fd\u6570"),a.a.createElement("li",null,"wait \u89c4\u5b9a\u591a\u4e45\u53ef\u4ee5\u6267\u884c\u4e00\u6b21\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2(ms)")),a.a.createElement("h3",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u8fd4\u56de\u8282\u6d41\u7684\u51fd\u6570\u3002")),a.a.createElement("h3",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["throttle-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},XAgF:function(e,t){function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},XDG7:function(e,t,n){var r=n("GXoa");r("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},XLmh:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["last-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"last"},a.a.createElement(o["AnchorLink"],{to:"#last","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"last"),a.a.createElement("p",null,"\u53d6\u672b\u4e2a\u503c\uff0c\u53ef\u7528\u4e8e\u5bf9\u8c61\u6216\u6570\u7ec4\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"const last: (value: any[] | Object) => T",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value \u6e90\u96c6\u5408")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u5982\u679c ",a.a.createElement("code",null,"value \u6e90\u96c6\u5408")," \u4e3a\u6570\u7ec4\uff0c\u8fd4\u56de\u6570\u7ec4\u7684\u6700\u540e\u4e00\u4e2a\u5143\u7d20\u3002"),a.a.createElement("li",null,"\u5982\u679c ",a.a.createElement("code",null,"value \u6e90\u96c6\u5408")," \u4e3a\u5bf9\u8c61\uff0c\u8fd4\u56de\u5bf9\u8c61\u7684\u6700\u540e\u4e00\u4e2a\u5c5e\u6027\u7684\u503c\u3002")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"last([1, 2, 3, 4, 5]) //5",lang:"javascript"})),a.a.createElement(i["default"],t["last-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},XZPW:function(e,t,n){"use strict";var r=n("g0pg"),a=r.aTypedArray,o=r.exportTypedArrayMethod,i=[].sort;o("sort",(function(e){return i.call(a(this),e)}))},Xu7U:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("l4Xg"),l=a.a.memo((e=>{e.demos;return a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"frameprocess"},a.a.createElement(o["AnchorLink"],{to:"#frameprocess","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"FrameProcess"),a.a.createElement("h2",{id:"frameprocess-\u5e27\u8fdb\u7a0b\u7528\u4e8e\u5236\u4f5c\u52a8\u753b"},a.a.createElement(o["AnchorLink"],{to:"#frameprocess-\u5e27\u8fdb\u7a0b\u7528\u4e8e\u5236\u4f5c\u52a8\u753b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"FrameProcess \u5e27\u8fdb\u7a0b\uff0c\u7528\u4e8e\u5236\u4f5c\u52a8\u753b"),a.a.createElement("h3",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(i["a"],{code:"",lang:"unknown"}),a.a.createElement("h3",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("h3",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("h3",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(i["a"],{code:"",lang:"javascript"})))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(l,{demos:n})}},XuqB:function(e,t,n){var r=n("OOCw"),a=n("sErw"),o=n("kXTd"),i=n("dz2h"),l=n("uJNS"),c="Seeded Random",u=c+" Generator",s=l.set,f=l.getterFor(u),d='Math.seededPRNG() argument should have a "seed" field with a finite value.',p=i((function(e){s(this,{type:u,seed:e%2147483647})}),c,(function(){var e=f(this),t=e.seed=(1103515245*e.seed+12345)%2147483647;return{value:(1073741823&t)/1073741823,done:!1}}));r({target:"Math",stat:!0,forced:!0},{seededPRNG:function(e){var t=a(e).seed;if(!o(t))throw TypeError(d);return new p(t)}})},XxTS:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("sErw"),i=n("lkgX"),l=n("uZx/");r({target:"Map",proto:!0,real:!0,forced:a},{merge:function(e){var t=o(this),n=i(t.set),r=0;while(r{var t=e.demos,n=t["isArray-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"isarray"},a.a.createElement(o["AnchorLink"],{to:"#isarray","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isArray"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a\u6570\u7ec4\u7c7b\u578b\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isArray: (value: any) => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value \uff0c\u8981\u5224\u65ad\u7684\u6570\u636e")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \uff0c\u662f\u6570\u7ec4\u7c7b\u578b"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \uff0c\u4e0d\u662f\u6570\u7ec4\u7c7b\u578b")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isArray-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},YfbA:function(e,t,n){var r=n("684d"),a=n("upgS"),o=n("erIx"),i=function(e){return function(t,n,i){var l,c=r(t),u=a(c.length),s=o(i,u);if(e&&n!=n){while(u>s)if(l=c[s++],l!=l)return!0}else for(;u>s;s++)if((e||s in c)&&c[s]===n)return e||s||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},Yxqv:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("eyaU"),i=n("sErw"),l=n("lkgX"),c=n("ZT9G"),u=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:a},{symmetricDifference:function(e){var t=i(this),n=new(c(t,o("Set")))(t),r=l(n["delete"]),a=l(n.add);return u(e,(function(e){r.call(n,e)||a.call(n,e)})),n}})},Z4n3:function(e,t,n){"use strict";var r=n("nNWW"),a=n("SHha"),o=n("f4/9");function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}function X(e,t,n,r,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o}var Q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Q[e]=new X(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Q[t]=new X(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Q[e]=new X(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Q[e]=new X(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){Q[e]=new X(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Q[e]=new X(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){Q[e]=new X(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){Q[e]=new X(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){Q[e]=new X(e,5,!1,e.toLowerCase(),null,!1)}));var Y=/[\-:]([a-z])/g;function Z(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Y,Z);Q[t]=new X(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Y,Z);Q[t]=new X(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Y,Z);Q[t]=new X(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){Q[e]=new X(e,1,!1,e.toLowerCase(),null,!1)})),Q.xlinkHref=new X("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){Q[e]=new X(e,1,!1,e.toLowerCase(),null,!0)}));var ee=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function te(e,t,n,r){var a=Q.hasOwnProperty(t)?Q[t]:null,o=null!==a?0===a.type:!r&&(2=n.length))throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ke(n)}}function ze(e,t){var n=ke(t.value),r=ke(t.defaultValue);null!=n&&(n=""+n,n!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function We(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Be={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Ue(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ge(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Ue(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Je,He=function(e){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,a){MSApp.execUnsafeLocalFunction((function(){return e(t,n,r,a)}))}:e}((function(e,t){if(e.namespaceURI!==Be.svg||"innerHTML"in e)e.innerHTML=t;else{for(Je=Je||document.createElement("div"),Je.innerHTML=""+t.valueOf().toString()+"",t=Je.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function Ke(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Ve(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var qe={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},$e={},Xe={};function Qe(e){if($e[e])return $e[e];if(!qe[e])return e;var t,n=qe[e];for(t in n)if(n.hasOwnProperty(t)&&t in Xe)return $e[e]=n[t];return e}C&&(Xe=document.createElement("div").style,"AnimationEvent"in window||(delete qe.animationend.animation,delete qe.animationiteration.animation,delete qe.animationstart.animation),"TransitionEvent"in window||delete qe.transitionend.transition);var Ye=Qe("animationend"),Ze=Qe("animationiteration"),et=Qe("animationstart"),tt=Qe("transitionend"),nt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),rt=new("function"===typeof WeakMap?WeakMap:Map);function at(e){var t=rt.get(e);return void 0===t&&(t=new Map,rt.set(e,t)),t}function ot(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{t=e,0!==(1026&t.effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function it(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(e=e.alternate,null!==e&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function lt(e){if(ot(e)!==e)throw Error(i(188))}function ct(e){var t=e.alternate;if(!t){if(t=ot(e),null===t)throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var o=a.alternate;if(null===o){if(r=a.return,null!==r){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return lt(a),e;if(o===r)return lt(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var l=!1,c=a.child;c;){if(c===n){l=!0,n=a,r=o;break}if(c===r){l=!0,r=a,n=o;break}c=c.sibling}if(!l){for(c=o.child;c;){if(c===n){l=!0,n=o,r=a;break}if(c===r){l=!0,r=o,n=a;break}c=c.sibling}if(!l)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}function ut(e){if(e=ct(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function st(e,t){if(null==t)throw Error(i(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function ft(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var dt=null;function pt(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;rgt.length&>.push(e)}function bt(e,t,n,r){if(gt.length){var a=gt.pop();return a.topLevelType=e,a.eventSystemFlags=r,a.nativeEvent=t,a.targetInst=n,a}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function Et(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;t=n.tag,5!==t&&6!==t||e.ancestors.push(n),n=Bn(r)}while(n);for(n=0;n=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=En(r)}}function xn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?xn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function kn(){for(var e=window,t=bn();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;e=t.contentWindow,t=bn(e.document)}return t}function Sn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var On="$",An="/$",jn="$?",Cn="$!",Nn=null,Tn=null;function Pn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function _n(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Dn="function"===typeof setTimeout?setTimeout:void 0,In="function"===typeof clearTimeout?clearTimeout:void 0;function Fn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Ln(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===On||n===Cn||n===jn){if(0===t)return e;t--}else n===An&&t++}e=e.previousSibling}return null}var Rn=Math.random().toString(36).slice(2),Mn="__reactInternalInstance$"+Rn,zn="__reactEventHandlers$"+Rn,Wn="__reactContainere$"+Rn;function Bn(e){var t=e[Mn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Wn]||n[Mn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Ln(e);null!==e;){if(n=e[Mn])return n;e=Ln(e)}return t}e=n,n=e.parentNode}return null}function Un(e){return e=e[Mn]||e[Wn],!e||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Gn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function Jn(e){return e[zn]||null}function Hn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Kn(e,t){var n=e.stateNode;if(!n)return null;var r=h(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!("button"===e||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}function Vn(e,t,n){(t=Kn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=st(n._dispatchListeners,t),n._dispatchInstances=st(n._dispatchInstances,e))}function qn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Hn(t);for(t=n.length;0this.eventPool.length&&this.eventPool.push(e)}function lr(e){e.eventPool=[],e.getPooled=or,e.release=ir}a(ar.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nr)},persist:function(){this.isPersistent=nr},isPersistent:rr,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=rr,this._dispatchInstances=this._dispatchListeners=null}}),ar.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ar.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return a(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=a({},r.Interface,e),n.extend=r.extend,lr(n),n},lr(ar);var cr=ar.extend({data:null}),ur=ar.extend({data:null}),sr=[9,13,27,32],fr=C&&"CompositionEvent"in window,dr=null;C&&"documentMode"in document&&(dr=document.documentMode);var pr=C&&"TextEvent"in window&&!dr,mr=C&&(!fr||dr&&8=dr),hr=String.fromCharCode(32),vr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},gr=!1;function yr(e,t){switch(e){case"keyup":return-1!==sr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function br(e){return e=e.detail,"object"===typeof e&&"data"in e?e.data:null}var Er=!1;function wr(e,t){switch(e){case"compositionend":return br(t);case"keypress":return 32!==t.which?null:(gr=!0,hr);case"textInput":return e=t.data,e===hr&&gr?null:e;default:return null}}function xr(e,t){if(Er)return"compositionend"===e||!fr&&yr(e,t)?(e=tr(),er=Zn=Yn=null,Er=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=document.documentMode,aa={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},oa=null,ia=null,la=null,ca=!1;function ua(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return ca||null==oa||oa!==bn(n)?null:(n=oa,"selectionStart"in n&&Sn(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),la&&na(la,n)?null:(la=n,e=ar.getPooled(aa.select,ia,e,t),e.type="select",e.target=oa,Qn(e),e))}var sa={eventTypes:aa,extractEvents:function(e,t,n,r,a,o){if(a=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument),!(o=!a)){e:{a=at(a),o=A.onSelect;for(var i=0;iOa||(e.current=Sa[Oa],Sa[Oa]=null,Oa--)}function ja(e,t){Oa++,Sa[Oa]=e.current,e.current=t}var Ca={},Na={current:Ca},Ta={current:!1},Pa=Ca;function _a(e,t){var n=e.type.contextTypes;if(!n)return Ca;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Da(e){return e=e.childContextTypes,null!==e&&void 0!==e}function Ia(){Aa(Ta),Aa(Na)}function Fa(e,t,n){if(Na.current!==Ca)throw Error(i(168));ja(Na,t),ja(Ta,n)}function La(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext(),r)if(!(o in e))throw Error(i(108,we(t)||"Unknown",o));return a({},n,{},r)}function Ra(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ca,Pa=Na.current,ja(Na,e),ja(Ta,Ta.current),!0}function Ma(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=La(e,t,Pa),r.__reactInternalMemoizedMergedChildContext=e,Aa(Ta),Aa(Na),ja(Na,e)):Aa(Ta),ja(Ta,n)}var za=o.unstable_runWithPriority,Wa=o.unstable_scheduleCallback,Ba=o.unstable_cancelCallback,Ua=o.unstable_requestPaint,Ga=o.unstable_now,Ja=o.unstable_getCurrentPriorityLevel,Ha=o.unstable_ImmediatePriority,Ka=o.unstable_UserBlockingPriority,Va=o.unstable_NormalPriority,qa=o.unstable_LowPriority,$a=o.unstable_IdlePriority,Xa={},Qa=o.unstable_shouldYield,Ya=void 0!==Ua?Ua:function(){},Za=null,eo=null,to=!1,no=Ga(),ro=1e4>no?Ga:function(){return Ga()-no};function ao(){switch(Ja()){case Ha:return 99;case Ka:return 98;case Va:return 97;case qa:return 96;case $a:return 95;default:throw Error(i(332))}}function oo(e){switch(e){case 99:return Ha;case 98:return Ka;case 97:return Va;case 96:return qa;case 95:return $a;default:throw Error(i(332))}}function io(e,t){return e=oo(e),za(e,t)}function lo(e,t,n){return e=oo(e),Wa(e,t,n)}function co(e){return null===Za?(Za=[e],eo=Wa(Ha,so)):Za.push(e),Xa}function uo(){if(null!==eo){var e=eo;eo=null,Ba(e)}so()}function so(){if(!to&&null!==Za){to=!0;var e=0;try{var t=Za;io(99,(function(){for(;e=t&&(qi=!0),e.firstContext=null)}function xo(e,t){if(go!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(go=e,t=1073741823),t={context:e,observedBits:t,next:null},null===vo){if(null===ho)throw Error(i(308));vo=t,ho.dependencies={expirationTime:0,firstContext:t,responders:null}}else vo=vo.next=t;return e._currentValue}var ko=!1;function So(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function Oo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function Ao(e,t){return e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null},e.next=e}function jo(e,t){if(e=e.updateQueue,null!==e){e=e.shared;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function Co(e,t){var n=e.alternate;null!==n&&Oo(n,e),e=e.updateQueue,n=e.baseQueue,null===n?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function No(e,t,n,r){var o=e.updateQueue;ko=!1;var i=o.baseQueue,l=o.shared.pending;if(null!==l){if(null!==i){var c=i.next;i.next=l.next,l.next=c}i=l,o.shared.pending=null,c=e.alternate,null!==c&&(c=c.updateQueue,null!==c&&(c.baseQueue=l))}if(null!==i){c=i.next;var u=o.baseState,s=0,f=null,d=null,p=null;if(null!==c){var m=c;do{if(l=m.expirationTime,ls&&(s=l)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:m.suspenseConfig,tag:m.tag,payload:m.payload,callback:m.callback,next:null}),Lc(l,m.suspenseConfig);e:{var v=e,g=m;switch(l=t,h=n,g.tag){case 1:if(v=g.payload,"function"===typeof v){u=v.call(h,u,l);break e}u=v;break e;case 3:v.effectTag=-4097&v.effectTag|64;case 0:if(v=g.payload,l="function"===typeof v?v.call(h,u,l):v,null===l||void 0===l)break e;u=a({},u,l);break e;case 2:ko=!0}}null!==m.callback&&(e.effectTag|=32,l=o.effects,null===l?o.effects=[m]:l.push(m))}if(m=m.next,null===m||m===c){if(l=o.shared.pending,null===l)break;m=i.next=l.next,l.next=c,o.baseQueue=i=l,o.shared.pending=null}}while(1)}null===p?f=u:p.next=d,o.baseState=f,o.baseQueue=p,Rc(s),e.expirationTime=s,e.memoizedState=u}}function To(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;th?(v=f,f=null):v=f.sibling;var g=p(a,f,l[h],c);if(null===g){null===f&&(f=v);break}e&&f&&null===g.alternate&&t(a,f),i=o(g,i,h),null===s?u=g:s.sibling=g,s=g,f=v}if(h===l.length)return n(a,f),u;if(null===f){for(;hv?(g=h,h=null):g=h.sibling;var b=p(a,h,y.value,u);if(null===b){null===h&&(h=g);break}e&&h&&null===b.alternate&&t(a,h),l=o(b,l,v),null===f?s=b:f.sibling=b,f=b,h=g}if(y.done)return n(a,h),s;if(null===h){for(;!y.done;v++,y=c.next())y=d(a,y.value,u),null!==y&&(l=o(y,l,v),null===f?s=y:f.sibling=y,f=y);return s}for(h=r(a,h);!y.done;v++,y=c.next())y=m(h,a,v,y.value,u),null!==y&&(e&&null!==y.alternate&&h.delete(null===y.key?v:y.key),l=o(y,l,v),null===f?s=y:f.sibling=y,f=y);return e&&h.forEach((function(e){return t(a,e)})),s}return function(e,r,o,c){var u="object"===typeof o&&null!==o&&o.type===ie&&null===o.key;u&&(o=o.props.children);var s="object"===typeof o&&null!==o;if(s)switch(o.$$typeof){case ae:e:{for(s=o.key,u=r;null!==u;){if(u.key===s){switch(u.tag){case 7:if(o.type===ie){n(e,u.sibling),r=a(u,o.props.children),r.return=e,e=r;break e}break;default:if(u.elementType===o.type){n(e,u.sibling),r=a(u,o.props),r.ref=Wo(e,u,o),r.return=e,e=r;break e}}n(e,u);break}t(e,u),u=u.sibling}o.type===ie?(r=lu(o.props.children,e.mode,c,o.key),r.return=e,e=r):(c=iu(o.type,o.key,o.props,null,e.mode,c),c.ref=Wo(e,r,o),c.return=e,e=c)}return l(e);case oe:e:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),r=a(r,o.children||[]),r.return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}r=uu(o,e.mode,c),r.return=e,e=r}return l(e)}if("string"===typeof o||"number"===typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),r=a(r,o),r.return=e,e=r):(n(e,r),r=cu(o,e.mode,c),r.return=e,e=r),l(e);if(zo(o))return h(e,r,o,c);if(be(o))return v(e,r,o,c);if(s&&Bo(e,o),"undefined"===typeof o&&!u)switch(e.tag){case 1:case 0:throw e=e.type,Error(i(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Go=Uo(!0),Jo=Uo(!1),Ho={},Ko={current:Ho},Vo={current:Ho},qo={current:Ho};function $o(e){if(e===Ho)throw Error(i(174));return e}function Xo(e,t){switch(ja(qo,t),ja(Vo,e),ja(Ko,Ho),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ge(null,"");break;default:e=8===e?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ge(t,e)}Aa(Ko),ja(Ko,t)}function Qo(){Aa(Ko),Aa(Vo),Aa(qo)}function Yo(e){$o(qo.current);var t=$o(Ko.current),n=Ge(t,e.type);t!==n&&(ja(Vo,e),ja(Ko,n))}function Zo(e){Vo.current===e&&(Aa(Ko),Aa(Vo))}var ei={current:0};function ti(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(n=n.dehydrated,null===n||n.data===jn||n.data===Cn))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function ni(e,t){return{responder:e,props:t}}var ri=ee.ReactCurrentDispatcher,ai=ee.ReactCurrentBatchConfig,oi=0,ii=null,li=null,ci=null,ui=!1;function si(){throw Error(i(321))}function fi(e,t){if(null===t)return!1;for(var n=0;no))throw Error(i(301));o+=1,ci=li=null,t.updateQueue=null,ri.current=Ri,e=n(r,a)}while(t.expirationTime===oi)}if(ri.current=Ii,t=null!==li&&null!==li.next,oi=0,ci=li=ii=null,ui=!1,t)throw Error(i(300));return e}function pi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ci?ii.memoizedState=ci=e:ci=ci.next=e,ci}function mi(){if(null===li){var e=ii.alternate;e=null!==e?e.memoizedState:null}else e=li.next;var t=null===ci?ii.memoizedState:ci.next;if(null!==t)ci=t,li=e;else{if(null===e)throw Error(i(310));li=e,e={memoizedState:li.memoizedState,baseState:li.baseState,baseQueue:li.baseQueue,queue:li.queue,next:null},null===ci?ii.memoizedState=ci=e:ci=ci.next=e}return ci}function hi(e,t){return"function"===typeof t?t(e):t}function vi(e){var t=mi(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=li,a=r.baseQueue,o=n.pending;if(null!==o){if(null!==a){var l=a.next;a.next=o.next,o.next=l}r.baseQueue=a=o,n.pending=null}if(null!==a){a=a.next,r=r.baseState;var c=l=o=null,u=a;do{var s=u.expirationTime;if(sii.expirationTime&&(ii.expirationTime=s,Rc(s))}else null!==c&&(c=c.next={expirationTime:1073741823,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),Lc(s,u.suspenseConfig),r=u.eagerReducer===e?u.eagerState:e(r,u.action);u=u.next}while(null!==u&&u!==a);null===c?o=r:c.next=l,ea(r,t.memoizedState)||(qi=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=c,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function gi(e){var t=mi(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(null!==a){n.pending=null;var l=a=a.next;do{o=e(o,l.action),l=l.next}while(l!==a);ea(o,t.memoizedState)||(qi=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function yi(e){var t=pi();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:hi,lastRenderedState:e},e=e.dispatch=Di.bind(null,ii,e),[t.memoizedState,e]}function bi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ii.updateQueue,null===t?(t={lastEffect:null},ii.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,null===n?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Ei(){return mi().memoizedState}function wi(e,t,n,r){var a=pi();ii.effectTag|=e,a.memoizedState=bi(1|t,n,void 0,void 0===r?null:r)}function xi(e,t,n,r){var a=mi();r=void 0===r?null:r;var o=void 0;if(null!==li){var i=li.memoizedState;if(o=i.destroy,null!==r&&fi(r,i.deps))return void bi(t,n,o,r)}ii.effectTag|=e,a.memoizedState=bi(1|t,n,o,r)}function ki(e,t){return wi(516,4,e,t)}function Si(e,t){return xi(516,4,e,t)}function Oi(e,t){return xi(4,2,e,t)}function Ai(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ji(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,xi(4,2,Ai.bind(null,t,e),n)}function Ci(){}function Ni(e,t){return pi().memoizedState=[e,void 0===t?null:t],e}function Ti(e,t){var n=mi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&fi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Pi(e,t){var n=mi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&fi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function _i(e,t,n){var r=ao();io(98>r?98:r,(function(){e(!0)})),io(97<\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=c.createElement(o,{is:r.is}):(e=c.createElement(o),"select"===o&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,o),e[Mn]=t,e[zn]=r,al(e,t,!1,!1),t.stateNode=e,c=hn(o,r),o){case"iframe":case"object":case"embed":nn("load",e),u=r;break;case"video":case"audio":for(u=0;ur.tailExpiration&&1t)&&yc.set(e,t)))}}function Oc(e,t){e.expirationTimee?n:e,2>=e&&t!==e?0:e}function jc(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=co(Nc.bind(null,e));else{var t=Ac(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=xc();if(1073741823===t?r=99:1===t||2===t?r=95:(r=10*(1073741821-t)-10*(1073741821-r),r=0>=r?99:250>=r?98:5250>=r?97:95),null!==n){var a=e.callbackPriority;if(e.callbackExpirationTime===t&&a>=r)return;n!==Xa&&Ba(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?co(Nc.bind(null,e)):lo(r,Cc.bind(null,e),{timeout:10*(1073741821-t)-ro()}),e.callbackNode=t}}}function Cc(e,t){if(wc=0,t)return t=xc(),mu(e,t),jc(e),null;var n=Ac(e);if(0!==n){if(t=e.callbackNode,(Yl&(Jl|Hl))!==Ul)throw Error(i(327));if(Kc(),e===Zl&&n===tc||Dc(e,n),null!==ec){var r=Yl;Yl|=Jl;var a=Fc();do{try{zc();break}catch(c){Ic(e,c)}}while(1);if(yo(),Yl=r,Wl.current=a,nc===Vl)throw t=rc,Dc(e,n),du(e,n),jc(e),t;if(null===ec)switch(a=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=nc,Zl=null,r){case Kl:case Vl:throw Error(i(345));case ql:mu(e,2=n){e.lastPingedTime=n,Dc(e,n);break}}if(o=Ac(e),0!==o&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=Dn(Gc.bind(null,e),a);break}Gc(e);break;case Xl:if(du(e,n),r=e.lastSuspendedTime,n===r&&(e.nextKnownPendingLevel=Uc(a)),cc&&(a=e.lastPingedTime,0===a||a>=n)){e.lastPingedTime=n,Dc(e,n);break}if(a=Ac(e),0!==a&&a!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==oc?r=10*(1073741821-oc)-ro():1073741823===ac?r=0:(r=10*(1073741821-ac)-5e3,a=ro(),n=10*(1073741821-n)-a,r=a-r,0>r&&(r=0),r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*zl(r/1960))-r,n=r?r=0:(a=0|l.busyDelayMs,o=ro()-(10*(1073741821-o)-(0|l.timeoutMs||5e3)),r=o<=a?0:a+r-o),10 component higher in the tree to provide a loading indicator or placeholder to display."+xe(i))}nc!==Ql&&(nc=ql),l=gl(l,i),f=o;do{switch(f.tag){case 3:c=l,f.effectTag|=4096,f.expirationTime=t;var E=Ll(f,c,t);Co(f,E);break e;case 1:c=l;var w=f.type,x=f.stateNode;if(0===(64&f.effectTag)&&("function"===typeof w.getDerivedStateFromError||null!==x&&"function"===typeof x.componentDidCatch&&(null===mc||!mc.has(x)))){f.effectTag|=4096,f.expirationTime=t;var k=Rl(f,c,t);Co(f,k);break e}}f=f.return}while(null!==f)}ec=Bc(ec)}catch(S){t=S;continue}break}while(1)}function Fc(){var e=Wl.current;return Wl.current=Ii,null===e?Ii:e}function Lc(e,t){elc&&(lc=e)}function Mc(){for(;null!==ec;)ec=Wc(ec)}function zc(){for(;null!==ec&&!Qa();)ec=Wc(ec)}function Wc(e){var t=Ml(e.alternate,e,tc);return e.memoizedProps=e.pendingProps,null===t&&(t=Bc(e)),Bl.current=null,t}function Bc(e){ec=e;do{var t=ec.alternate;if(e=ec.return,0===(2048&ec.effectTag)){if(t=hl(t,ec,tc),1===tc||1!==ec.childExpirationTime){for(var n=0,r=ec.child;null!==r;){var a=r.expirationTime,o=r.childExpirationTime;a>n&&(n=a),o>n&&(n=o),r=r.sibling}ec.childExpirationTime=n}if(null!==t)return t;null!==e&&0===(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=ec.firstEffect),null!==ec.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=ec.firstEffect),e.lastEffect=ec.lastEffect),1e?t:e}function Gc(e){var t=ao();return io(99,Jc.bind(null,e,t)),null}function Jc(e,t){do{Kc()}while(null!==vc);if((Yl&(Jl|Hl))!==Ul)throw Error(i(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var a=Uc(n);if(e.firstPendingTime=a,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Zl&&(ec=Zl=null,tc=0),1c&&(s=c,c=l,l=s),s=wn(E,l),f=wn(E,c),s&&f&&(1!==x.rangeCount||x.anchorNode!==s.node||x.anchorOffset!==s.offset||x.focusNode!==f.node||x.focusOffset!==f.offset)&&(w=w.createRange(),w.setStart(s.node,s.offset),x.removeAllRanges(),l>c?(x.addRange(w),x.extend(f.node,f.offset)):(w.setEnd(f.node,f.offset),x.addRange(w)))))),w=[];for(x=E;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"===typeof E.focus&&E.focus(),E=0;E=n?ul(e,t,n):(ja(ei,1&ei.current),t=pl(e,t,n),null!==t?t.sibling:null);ja(ei,1&ei.current);break;case 19:if(r=t.childExpirationTime>=n,0!==(64&e.effectTag)){if(r)return dl(e,t,n);t.effectTag|=64}if(a=t.memoizedState,null!==a&&(a.rendering=null,a.tail=null),ja(ei,ei.current),!r)return null}return pl(e,t,n)}qi=!1}}else qi=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,a=_a(t,Na.current),wo(t,n),a=di(null,t,r,e,a,n),t.effectTag|=1,"object"===typeof a&&null!==a&&"function"===typeof a.render&&void 0===a.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Da(r)){var o=!0;Ra(t)}else o=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,So(t);var l=r.getDerivedStateFromProps;"function"===typeof l&&Do(t,r,l,e),a.updater=Io,t.stateNode=a,a._reactInternalFiber=t,Mo(t,r,e,n),t=nl(null,t,r,!0,o,n)}else t.tag=0,$i(null,t,a,n),t=t.child;return t;case 16:e:{if(a=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,Ee(a),1!==a._status)throw a._result;switch(a=a._result,t.type=a,o=t.tag=au(a),e=po(a,e),o){case 0:t=el(null,t,a,e,n);break e;case 1:t=tl(null,t,a,e,n);break e;case 11:t=Xi(null,t,a,e,n);break e;case 14:t=Qi(null,t,a,po(a.type,e),r,n);break e}throw Error(i(306,a,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:po(r,a),el(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:po(r,a),tl(e,t,r,a,n);case 3:if(rl(t),r=t.updateQueue,null===e||null===r)throw Error(i(282));if(r=t.pendingProps,a=t.memoizedState,a=null!==a?a.element:null,Oo(e,t),No(t,r,null,n),r=t.memoizedState.element,r===a)Ki(),t=pl(e,t,n);else{if((a=t.stateNode.hydrate)&&(zi=Fn(t.stateNode.containerInfo.firstChild),Mi=t,a=Wi=!0),a)for(n=Jo(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else $i(e,t,r,n),Ki();t=t.child}return t;case 5:return Yo(t),null===e&&Gi(t),r=t.type,a=t.pendingProps,o=null!==e?e.memoizedProps:null,l=a.children,_n(r,a)?l=null:null!==o&&_n(r,o)&&(t.effectTag|=16),Zi(e,t),4&t.mode&&1!==n&&a.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):($i(e,t,l,n),t=t.child),t;case 6:return null===e&&Gi(t),null;case 13:return ul(e,t,n);case 4:return Xo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Go(t,null,r,n):$i(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:po(r,a),Xi(e,t,r,a,n);case 7:return $i(e,t,t.pendingProps,n),t.child;case 8:return $i(e,t,t.pendingProps.children,n),t.child;case 12:return $i(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,a=t.pendingProps,l=t.memoizedProps,o=a.value;var c=t.type._context;if(ja(mo,c._currentValue),c._currentValue=o,null!==l)if(c=l.value,o=ea(c,o)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(c,o):1073741823),0===o){if(l.children===a.children&&!Ta.current){t=pl(e,t,n);break e}}else for(c=t.child,null!==c&&(c.return=t);null!==c;){var u=c.dependencies;if(null!==u){l=c.child;for(var s=u.firstContext;null!==s;){if(s.context===r&&0!==(s.observedBits&o)){1===c.tag&&(s=Ao(n,null),s.tag=2,jo(c,s)),c.expirationTime=t&&e<=t}function du(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;nt||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function pu(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function mu(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function hu(e,t,n,r){var a=t.current,o=xc(),l=Po.suspense;o=kc(o,a,l);e:if(n){n=n._reactInternalFiber;t:{if(ot(n)!==n||1!==n.tag)throw Error(i(170));var c=n;do{switch(c.tag){case 3:c=c.stateNode.context;break t;case 1:if(Da(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break t}}c=c.return}while(null!==c);throw Error(i(171))}if(1===n.tag){var u=n.type;if(Da(u)){n=La(n,u,c);break e}}n=c}else n=Ca;return null===t.context?t.context=n:t.pendingContext=n,t=Ao(o,l),t.payload={element:e},r=void 0===r?null:r,null!==r&&(t.callback=r),jo(a,t),Sc(a,o),o}function vu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function gu(e,t){e=e.memoizedState,null!==e&&null!==e.dehydrated&&e.retryTime{var t=e.demos,n=t["delay-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"delay"},a.a.createElement(o["AnchorLink"],{to:"#delay","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"delay"),a.a.createElement("p",null,"\u53ef\u6a21\u62df\u5f02\u6b65\u64cd\u4f5c\u7684\u5ef6\u8fdf\u6267\u884c\u51fd\u6570\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"delay(time: number): Promise",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("p",null,a.a.createElement("code",null,"delay(time: number)")," \uff0c\u8981\u5ef6\u8fdf\u6267\u884c\u7684\u65f6\u95f4\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2(ms)\u3002"),a.a.createElement("h3",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("p",null,"\u8fd4\u56de\u4e00\u4e2a ",a.a.createElement("code",null,"PromiseState")," \u4e3a ",a.a.createElement("code",null,"fulfilled")," \u7684 ",a.a.createElement("code",null,"Promise")," \u5bf9\u8c61\u3002"),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["delay-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},ZGY3:function(e,t,n){var r=n("3Hes"),a=n("QWtl"),o=n("0JbB"),i=r("unscopables"),l=Array.prototype;void 0==l[i]&&o.f(l,i,{configurable:!0,value:a(null)}),e.exports=function(e){l[i][e]=!0}},ZIdP:function(e,t,n){var r=n("OOCw"),a=n("1Sp3"),o=n("sErw"),i=a.toKey,l=a.set;r({target:"Reflect",stat:!0},{defineMetadata:function(e,t,n){var r=arguments.length<4?void 0:i(arguments[3]);l(e,t,o(n),r)}})},ZT9G:function(e,t,n){var r=n("sErw"),a=n("lkgX"),o=n("3Hes"),i=o("species");e.exports=function(e,t){var n,o=r(e).constructor;return void 0===o||void 0==(n=r(o)[i])?t:a(n)}},ZVkV:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},ZYMV:function(e,t,n){var r=n("ZwOi"),a=Math.abs,o=Math.pow,i=o(2,-52),l=o(2,-23),c=o(2,127)*(2-l),u=o(2,-126),s=function(e){return e+1/i-1/i};e.exports=Math.fround||function(e){var t,n,o=a(e),f=r(e);return oc||n!=n?f*(1/0):f*n)}},Zjj6:function(e,t,n){var r=n("+U9+"),a=n("VJj2");function o(e){return null!=e&&a(e.length)&&!r(e)}e.exports=o},Zjmp:function(e,t,n){var r=n("ry6q"),a=n("mIaV"),o=n("EA9V"),i=n("nXRf"),l=n("KSsz"),c=n("M9kN");function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=a,u.prototype["delete"]=o,u.prototype.get=i,u.prototype.has=l,u.prototype.set=c,e.exports=u},ZmXH:function(e,t,n){"use strict";var r=n("0JbB").f,a=n("QWtl"),o=n("TxBV"),i=n("v3z7"),l=n("CZSf"),c=n("uZx/"),u=n("vSpU"),s=n("ct0+"),f=n("r+6h"),d=n("gArs").fastKey,p=n("uJNS"),m=p.set,h=p.getterFor;e.exports={getConstructor:function(e,t,n,u){var s=e((function(e,r){l(e,s,t),m(e,{type:t,index:a(null),first:void 0,last:void 0,size:0}),f||(e.size=0),void 0!=r&&c(r,e[u],e,n)})),p=h(t),v=function(e,t,n){var r,a,o=p(e),i=g(e,t);return i?i.value=n:(o.last=i={index:a=d(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=i),r&&(r.next=i),f?o.size++:e.size++,"F"!==a&&(o.index[a]=i)),e},g=function(e,t){var n,r=p(e),a=d(t);if("F"!==a)return r.index[a];for(n=r.first;n;n=n.next)if(n.key==t)return n};return o(s.prototype,{clear:function(){var e=this,t=p(e),n=t.index,r=t.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete n[r.index],r=r.next;t.first=t.last=void 0,f?t.size=0:e.size=0},delete:function(e){var t=this,n=p(t),r=g(t,e);if(r){var a=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=a),a&&(a.previous=o),n.first==r&&(n.first=a),n.last==r&&(n.last=o),f?n.size--:t.size--}return!!r},forEach:function(e){var t,n=p(this),r=i(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:n.first){r(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!g(this,e)}}),o(s.prototype,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),f&&r(s.prototype,"size",{get:function(){return p(this).size}}),s},setStrong:function(e,t,n){var r=t+" Iterator",a=h(t),o=h(r);u(e,t,(function(e,t){m(this,{type:r,target:e,state:a(e),kind:t,last:void 0})}),(function(){var e=o(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),s(t)}}},Zsrj:function(e,t,n){(function(e){var r=n("O4yA"),a=n("RfhN"),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,l=i&&i.exports===o,c=l?r.Buffer:void 0,u=c?c.isBuffer:void 0,s=u||a;e.exports=s}).call(this,n("vhgi")(e))},ZsxT:function(e,t,n){var r=n("QzCP"),a=Object.prototype,o=a.hasOwnProperty;function i(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}e.exports=i},ZwOi:function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},ZxN6:function(e,t,n){var r=n("OOCw"),a=n("CBsr");r({target:"WeakSet",stat:!0},{of:a})},aRba:function(e,t,n){var r=n("x+sk"),a=n("d8EH");e.exports=function(e,t,n){var o,i;return a&&"function"==typeof(o=t.constructor)&&o!==n&&r(i=o.prototype)&&i!==n.prototype&&a(e,i),e}},aTTI:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("sErw"),i=n("v3z7"),l=n("R8Xy"),c=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:a},{every:function(e){var t=o(this),n=l(t),r=i(e,arguments.length>1?arguments[1]:void 0,3);return!c(n,(function(e){if(!r(e,e,t))return c.stop()}),void 0,!1,!0).stopped}})},aUZo:function(e,t,n){"use strict";var r=n("OOCw"),a=n("6SQG"),o=n("xy/A"),i=n("ct0+"),l="ArrayBuffer",c=o[l],u=a[l];r({global:!0,forced:u!==c},{ArrayBuffer:c}),i(l)},aVyU:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("2fm6");r({target:"Map",proto:!0,real:!0,forced:a},{deleteAll:function(){return o.apply(this,arguments)}})},aaHa:function(e,t,n){var r=n("Y30u");e.exports=y,e.exports.parse=o,e.exports.compile=i,e.exports.tokensToFunction=u,e.exports.tokensToRegExp=g;var a=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){var n,r=[],o=0,i=0,l="",c=t&&t.delimiter||"/";while(null!=(n=a.exec(e))){var u=n[0],d=n[1],p=n.index;if(l+=e.slice(i,p),i=p+u.length,d)l+=d[1];else{var m=e[i],h=n[2],v=n[3],g=n[4],y=n[5],b=n[6],E=n[7];l&&(r.push(l),l="");var w=null!=h&&null!=m&&m!==h,x="+"===b||"*"===b,k="?"===b||"*"===b,S=n[2]||c,O=g||y;r.push({name:v||o++,prefix:h||"",delimiter:S,optional:k,repeat:x,partial:w,asterisk:!!E,pattern:O?f(O):E?".*":"[^"+s(S)+"]+?"})}}return i\n

\u5927\u5bb6\u597d\u6211\u662f\u7ec4\u4ef6\u4e00\uff01\u70b9\u51fb\u4e0b\u9762\u7684\u6309\u94ae\u5c06\u4f1a\u7edf\u8ba1\u70b9\u51fb\u7684\u6b21\u6570\u3002

\n \n \n )\n}\n\nfunction Test2() {\n const [count, setCount] = useState(0)\n const [onceCount, setOnceCount] = useState(0)\n\n eventBus.on('clickNum', (num) => setCount(num))\n // eventBus.once(\"clickNum\", (num) => {\n // console.log(num);\n // setOnceCount(num);\n // });\n\n function onClick() {\n eventBus.off('clickNum')\n alert('\u5df2\u7ecf\u79fb\u9664')\n }\n\n return (\n //
\u7b2c\u4e00\u6b21\u7edf\u8ba1\u5df2\u7ecf\u70b9\u51fb\u7684\u6b21\u6570\uff1a{onceCount}
\n <>\n

\u5927\u5bb6\u597d\u6211\u662f\u7ec4\u4ef6\u4e8c\uff01\u6211\u6765\u63a5\u6536\u4e8b\u4ef6

\n
\u7d2f\u8ba1\u7edf\u8ba1\u5df2\u7ecf\u70b9\u51fb\u7684\u6b21\u6570\uff1a{count}
\n
\n

\u70b9\u51fb\u4e0b\u9762\u6309\u94ae\u5c06\u79fb\u9664\u6b21\u6570\u7edf\u8ba1\u4e8b\u4ef6\uff1a

\n \n \n )\n}\n\nexport default function App() {\n return (\n <>\n

\u7ec4\u4ef6\u4e00

\n \n

\u7ec4\u4ef6\u4e8c

\n \n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"EventBus-demo"}},"delay-demo":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("DBVu")),a=t(n("GAyR")),o=t(n("iojd")),i=e(n("nNWW")),l=n("/7QA"),c=function(){var e=(0,i.useState)(0),t=(0,o["default"])(e,2),n=t[0],c=t[1],u=(0,i.useState)(!1),s=(0,o["default"])(u,2),f=s[0],d=s[1],p=(0,i.useCallback)((0,a["default"])((0,r["default"])().mark((function e(){return(0,r["default"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return d(!0),e.next=3,(0,l.delay)(2e3);case 3:c(n+1),d(!1);case 5:case"end":return e.stop()}}),e)}))),[n,f]);return i["default"].createElement(i["default"].Fragment,null,i["default"].createElement("h1",null,"\u6570\u5b57num\uff1a",n),i["default"].createElement("button",{onClick:p,disabled:f},"\u70b9\u51fb\u6309\u94ae2\u79d2\u540e\u6570\u5b57\u624d\u4f1a\u53d8\u5316"))};return i["default"].createElement(c)},previewerProps:{sources:{_:{jsx:"import React, { useState, useCallback } from 'react'\nimport { delay } from '@fexd/tools'\n\nexport default () => {\n const [num, setNum] = useState(0)\n const [disabled, setDisabled] = useState(false)\n\n const plus = useCallback(async () => {\n setDisabled(true)\n await delay(2000)\n setNum(num + 1)\n setDisabled(false)\n }, [num, disabled])\n\n return (\n <>\n

\u6570\u5b57num\uff1a{num}

\n \n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"delay-demo"}},"lock-demo":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("iojd")),a=e(n("nNWW")),o=n("/7QA"),i=(0,o.lock)((function(e){e()})),l=function(){var e=(0,a.useState)(0),t=(0,r["default"])(e,2),n=t[0],o=t[1],l=(0,a.useState)(!1),c=(0,r["default"])(l,2),u=c[0],s=c[1];return a["default"].createElement(a["default"].Fragment,null,a["default"].createElement("h1",null,"num: ",n),a["default"].createElement("div",null,a["default"].createElement("button",{onClick:function(){return i((function(){o(n+1)}))}},"\u70b9\u51fb\u52a01"),a["default"].createElement("button",{onClick:function(){return i((function(){o(n+2)}))}},"\u70b9\u51fb\u52a02")),a["default"].createElement("p",null,"PS: \u6267\u884c\u4e86\u4e00\u6b21\u4e4b\u540e\uff0c\u4f1a\u81ea\u52a8\u4e0a\u9501\uff0c\u9664\u975e\u89e3\u9501\uff0c\u65e0\u6cd5\u518d\u6267\u884c"),a["default"].createElement("div",null,a["default"].createElement("button",{onClick:function(){i.unlock(),alert("\u89e3\u9501\u6210\u529f")}},"\u70b9\u51fb\u89e3\u9501\u51fd\u6570")),a["default"].createElement("h1",null,"\u662f\u5426\u5df2\u7ecf\u9501\u5b9a"),a["default"].createElement("button",{onClick:function(){s(i.isLocked())}},"\u67e5\u770b\u662f\u5426\u5df2\u7ecf\u9501\u5b9a\uff1a",u.toString()))};return a["default"].createElement(l)},previewerProps:{sources:{_:{jsx:"import React, { useState } from 'react'\nimport { lock } from '@fexd/tools'\n\nconst lockFunc = lock(function get(callback) {\n callback()\n})\n\nexport default () => {\n const [num, setNum] = useState(0)\n const [isLocked, setIsLocked] = useState(false)\n\n return (\n <>\n

num: {num}

\n
\n \n lockFunc(() => {\n setNum(num + 1)\n })\n }\n >\n \u70b9\u51fb\u52a01\n \n \n lockFunc(() => {\n setNum(num + 2)\n })\n }\n >\n \u70b9\u51fb\u52a02\n \n
\n\n

PS: \u6267\u884c\u4e86\u4e00\u6b21\u4e4b\u540e\uff0c\u4f1a\u81ea\u52a8\u4e0a\u9501\uff0c\u9664\u975e\u89e3\u9501\uff0c\u65e0\u6cd5\u518d\u6267\u884c

\n\n
\n {\n lockFunc.unlock()\n alert('\u89e3\u9501\u6210\u529f')\n }}\n >\n \u70b9\u51fb\u89e3\u9501\u51fd\u6570\n \n
\n\n

\u662f\u5426\u5df2\u7ecf\u9501\u5b9a

\n {\n setIsLocked(lockFunc.isLocked())\n }}\n >\n \u67e5\u770b\u662f\u5426\u5df2\u7ecf\u9501\u5b9a\uff1a{isLocked.toString()}\n \n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"lock-demo"}},"memoize-demo":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("iojd")),a=t(n("DBVu")),o=t(n("GAyR")),i=e(n("nNWW")),l=n("/7QA"),c=(0,l.memoize)(function(){var e=(0,o["default"])((0,a["default"])().mark((function e(t){return(0,a["default"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return console.log("It\u2019s the first time I met."),console.log("Nice to meet you!"),e.next=4,(0,l.delay)(1e3);case 4:return console.log("Sorry to have to wait a while."),console.log("Hello ".concat(t,"!")),e.abrupt("return","Hello ".concat(t,"!"));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),u=function(){var e=(0,i.useState)(""),t=(0,r["default"])(e,2),n=t[0],l=t[1],u=(0,i.useState)(!1),s=(0,r["default"])(u,2),f=s[0],d=s[1],p=function(){var e=(0,o["default"])((0,a["default"])().mark((function e(t){var n;return(0,a["default"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return d(!0),e.next=3,c(t);case 3:n=e.sent,l(n),d(!1);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return i["default"].createElement(i["default"].Fragment,null,i["default"].createElement("h1",null,"\u65b0\u62db\u547c\uff1a",n),i["default"].createElement("button",{onClick:function(){return p("Peter")},disabled:f},"\u70b9\u51fb Peter \u8981\u53bb\u6253\u62db\u547c"),i["default"].createElement("button",{onClick:function(){return p("Tom")},disabled:f},"\u70b9\u51fb Tom \u8981\u53bb\u6253\u62db\u547c"),i["default"].createElement("button",{onClick:function(){return p("Amy")},disabled:f},"\u70b9\u51fb Amy \u8981\u53bb\u6253\u62db\u547c"),i["default"].createElement("p",null,"PS: \u7b2c\u4e00\u6b21\u6253\u62db\u547c\u9700\u8981\u7b49\u5f851s\uff0c\u4e4b\u540e\u4e0d\u9700\u8981\u7b49\u5f85\u3002\u53ef\u6253\u5f00\u63a7\u5236\u53f0\u770b\u8f93\u51fa\u4fe1\u606f\u3002"))};return i["default"].createElement(u)},previewerProps:{sources:{_:{jsx:"import React, { useState } from 'react'\nimport { memoize, delay } from '@fexd/tools'\n\nconst memoizeFunc = memoize(async (name) => {\n console.log('It\u2019s the first time I met.')\n console.log('Nice to meet you!')\n await delay(1000)\n console.log('Sorry to have to wait a while.')\n console.log(`Hello ${name}!`)\n return `Hello ${name}!`\n})\n\nexport default () => {\n const [message, setMessage] = useState('')\n const [disabled, setDisabled] = useState(false)\n\n const greet = async (name) => {\n setDisabled(true)\n const msg = await memoizeFunc(name)\n setMessage(msg)\n setDisabled(false)\n }\n\n return (\n <>\n

\u65b0\u62db\u547c\uff1a{message}

\n \n \n \n

\n PS: \u7b2c\u4e00\u6b21\u6253\u62db\u547c\u9700\u8981\u7b49\u5f851s\uff0c\u4e4b\u540e\u4e0d\u9700\u8981\u7b49\u5f85\u3002\u53ef\u6253\u5f00\u63a7\u5236\u53f0\u770b\u8f93\u51fa\u4fe1\u606f\u3002\n

\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"memoize-demo"}},"nextTick-demo":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("iojd")),a=e(n("nNWW")),o=n("/7QA"),i=function(){var e=(0,a.useState)(""),t=(0,r["default"])(e,2),n=t[0],i=t[1],l=(0,a.useState)(""),c=(0,r["default"])(l,2),u=c[0],s=c[1],f=(0,o.nextTick)((function(){return i("\u60a8\u597d\uff01"),"\u7a0b\u5e8f\u733f\uff01"}));return a["default"].createElement(a["default"].Fragment,null,a["default"].createElement("p",null,n),a["default"].createElement("button",{onClick:function(){return f.then((function(e){return s(e)}))}},"\u70b9\u51fb\u67e5\u8be2\u4f60\u7684\u8eab\u4efd"),a["default"].createElement("p",null,u))};return a["default"].createElement(i)},previewerProps:{sources:{_:{jsx:"import React, { useState } from 'react'\nimport { nextTick } from '@fexd/tools'\n\nexport default () => {\n const [greetStr, setGreetStr] = useState('')\n const [identity, setIdentity] = useState('')\n\n const outputIdentity = nextTick(() => {\n setGreetStr('\u60a8\u597d\uff01')\n return '\u7a0b\u5e8f\u733f\uff01'\n })\n\n return (\n <>\n

{greetStr}

\n \n

{identity}

\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"nextTick-demo"}},"pick-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a={id:1,name:"Tom",age:18,gender:"man"},o=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("p",null,"const obj = { id: 1, name: 'Tom', age: 18, gender: 'man'}"),t["default"].createElement("h1",null,"\u53d6\u6307\u5b9a\u7684\u5355\u4e2a\u5c5e\u6027\u503c"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"pick(obj)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify((0,r.pick)(a),null,2))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"pick(obj, 'id')")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify((0,r.pick)(a,"id"),"",2))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"pick(obj, 'name')")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify((0,r.pick)(a,"name"),"",2))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"pick(obj, 'age')")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify((0,r.pick)(a,"age"),"",2))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"pick(obj, 'gender')")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify((0,r.pick)(a,"gender"),"",2))),t["default"].createElement("h1",null,"\u53d6\u6307\u5b9a\u7684\u591a\u4e2a\u5c5e\u6027\u503c"),t["default"].createElement("div",null,t["default"].createElement("div",null,"// \u9519\u8bef\u793a\u8303\uff0c\u8981\u53d6\u591a\u4e2a\u5c5e\u6027\u7b2c\u4e8c\u4e2a\u53c2\u6570\u8bf7\u7528\u6570\u7ec4"),t["default"].createElement("span",{style:{color:"#DD4A68"}},"pick(obj, 'id', 'name')")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify((0,r.pick)(a,"id","name"),"",2))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"pick(obj, ['id', 'name'])")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify((0,r.pick)(a,["id","name"]),"",2))))};return t["default"].createElement(o)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { pick } from '@fexd/tools'\n\nconst obj = {\n id: 1,\n name: 'Tom',\n age: 18,\n gender: 'man',\n}\n\nexport default () => {\n return (\n <>\n

{`const obj = { id: 1, name: 'Tom', age: 18, gender: 'man'}`}

\n

\u53d6\u6307\u5b9a\u7684\u5355\u4e2a\u5c5e\u6027\u503c

\n
\n pick(obj) \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n          {JSON.stringify(pick(obj), null, 2)}\n        
\n
\n
\n pick(obj, 'id') \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n          {JSON.stringify(pick(obj, 'id'), '', 2)}\n        
\n
\n
\n pick(obj, 'name') \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n          {JSON.stringify(pick(obj, 'name'), '', 2)}\n        
\n
\n
\n pick(obj, 'age') \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n          {JSON.stringify(pick(obj, 'age'), '', 2)}\n        
\n
\n
\n pick(obj, 'gender') \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n          {JSON.stringify(pick(obj, 'gender'), '', 2)}\n        
\n
\n\n

\u53d6\u6307\u5b9a\u7684\u591a\u4e2a\u5c5e\u6027\u503c

\n
\n
// \u9519\u8bef\u793a\u8303\uff0c\u8981\u53d6\u591a\u4e2a\u5c5e\u6027\u7b2c\u4e8c\u4e2a\u53c2\u6570\u8bf7\u7528\u6570\u7ec4
\n pick(obj, 'id', 'name') \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n          {JSON.stringify(pick(obj, 'id', 'name'), '', 2)}\n        
\n
\n
\n pick(obj, ['id', 'name']){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n          {JSON.stringify(pick(obj, ['id', 'name']), '', 2)}\n        
\n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"pick-demo"}},"pickBy-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a={id:1,name:"Tom",age:18,gender:"man"},o=function(e,t){return(0,r.isNumber)(e)},i=function(e,t){return t.length>2},l=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("p",null,"const obj = { id: 1, name: 'Tom', age: 18, gender: 'man'}"),t["default"].createElement("h1",null,"\u76f4\u63a5\u4f20\u5165\u4e00\u4e2a\u5224\u65ad\u662f\u5426\u4e3aNumber\u7684\u51fd\u6570"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"pickBy(obj, isNumber)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify((0,r.pickBy)(a,r.isNumber),null,2))),t["default"].createElement("h1",null,"\u53ef\u4ee5\u901a\u8fc7\u5bf9\u8c61\u7684\u6240\u6709 value \u6765\u7b5b\u9009\u51fa\u7b26\u5408\u6761\u4ef6\u7684\u65b0\u5bf9\u8c61"),t["default"].createElement("pre",null,"const predicateValue = (value, key) => { return isNumber(value) }"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"pickBy(obj, predicateValue)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify((0,r.pickBy)(a,o),null,2))),t["default"].createElement("h1",null,"\u53ef\u4ee5\u901a\u8fc7\u5bf9\u8c61\u7684\u6240\u6709 key \u6765\u7b5b\u9009\u51fa\u7b26\u5408\u6761\u4ef6\u7684\u65b0\u5bf9\u8c61"),t["default"].createElement("pre",null,"const predicateKey = (value, key) => { return key.length > 2 }"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"pickBy(obj, predicateKey)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify((0,r.pickBy)(a,i),null,2))))};return t["default"].createElement(l)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { pickBy, isNumber } from '@fexd/tools'\n\nconst obj = {\n id: 1,\n name: 'Tom',\n age: 18,\n gender: 'man',\n}\n\nconst predicateValue = (value, key) => {\n // console.log(`value:${value}, key:${key}`)\n return isNumber(value)\n}\n\nconst predicateKey = (value, key) => {\n // console.log(`value:${value}, key:${key}`)\n return key.length > 2\n}\n\nexport default () => {\n return (\n <>\n

{`const obj = { id: 1, name: 'Tom', age: 18, gender: 'man'}`}

\n

\u76f4\u63a5\u4f20\u5165\u4e00\u4e2a\u5224\u65ad\u662f\u5426\u4e3aNumber\u7684\u51fd\u6570

\n
\n pickBy(obj, isNumber){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n          {JSON.stringify(pickBy(obj, isNumber), null, 2)}\n        
\n
\n

\u53ef\u4ee5\u901a\u8fc7\u5bf9\u8c61\u7684\u6240\u6709 value \u6765\u7b5b\u9009\u51fa\u7b26\u5408\u6761\u4ef6\u7684\u65b0\u5bf9\u8c61

\n
\n        {`const predicateValue = (value, key) => { return isNumber(value) }`}\n      
\n
\n pickBy(obj, predicateValue){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n          {JSON.stringify(pickBy(obj, predicateValue), null, 2)}\n        
\n
\n

\u53ef\u4ee5\u901a\u8fc7\u5bf9\u8c61\u7684\u6240\u6709 key \u6765\u7b5b\u9009\u51fa\u7b26\u5408\u6761\u4ef6\u7684\u65b0\u5bf9\u8c61

\n
\n        {`const predicateKey = (value, key) => { return key.length > 2 }`}\n      
\n
\n pickBy(obj, predicateKey){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n          {JSON.stringify(pickBy(obj, predicateKey), null, 2)}\n        
\n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"pickBy-demo"}},"pipe-demo":{component:function(){var e=n("P/vu")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(e){return e+1},o=function(e){return e+3},i=function(e){return e+5},l=(0,r.pipe)(a,o,i),c=function(e){return e.setHours(0),e.setMinutes(0),e.setSeconds(0),e.setMilliseconds(0),e},u=function(e){return e.setDate(e.getDate()-1),e},s=function(e){var t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return"".concat(t,"\u5e74").concat(n,"\u6708").concat(r,"\u65e5")},f=(0,r.pipe)(c,u,s),d=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("h1",null,"\u5982\u679c\u60f3\u5f97\u5230\u67d0\u4e2a\u6570\u5b57 +1 +3 +5 \u7684\u503c"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"plusFive(plusThree(plusOne(666)))")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},i(o(a(666))))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"plusFive(plusThree(plusOne(996)))")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},i(o(a(996))))),t["default"].createElement("p",null," const pipePlus = pipe(plusOne, plusThree, plusFive) "),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"pipePlus(666)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},l(666))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"pipePlus(996)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},l(996))),t["default"].createElement("h1",null,"\u5982\u679c\u60f3\u83b7\u5f97\u5f53\u524d\u65f6\u95f4\u7684\u6628\u5929\u65e5\u671f"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"getLastday(h0(new Date())))")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},s(u(c(new Date))))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"getLastday(h0(new Date('2020-02-01'))))")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},s(u(c(new Date("2020-02-01")))))),t["default"].createElement("p",null,"const pipeDateStr = pipe(h0, getLastday, getString)"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"getLastday(h0(new Date())))")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},f(new Date))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"getLastday(h0(new Date('2020-02-01'))))")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},f(new Date("2020-02-01")))))};return t["default"].createElement(d)},previewerProps:{sources:{_:{jsx:"import React, { useState } from 'react'\nimport { pipe } from '@fexd/tools'\n\nconst plusOne = (num) => num + 1\nconst plusThree = (num) => num + 3\nconst plusFive = (num) => num + 5\n\nconst pipePlus = pipe(plusOne, plusThree, plusFive)\n\n// \u83b7\u53d6\u65e5\u671f\u7684\u5f53\u5929\u7684\u96f6\u65f6\u523b\nconst h0 = (date) => {\n date.setHours(0)\n date.setMinutes(0)\n date.setSeconds(0)\n date.setMilliseconds(0)\n\n return date\n}\n// \u83b7\u53d6\u65e5\u671f\u7684\u6628\u5929\nconst getLastday = (date) => {\n date.setDate(date.getDate() - 1)\n return date\n}\n// \u5c06\u65e5\u671f\u5bf9\u8c61\u8f6c\u5316\u4e3a\u5b57\u7b26\u4e32\nconst getString = (date) => {\n const year = date.getFullYear()\n const month = date.getMonth() + 1\n const day = date.getDate()\n return `${year}\u5e74${month}\u6708${day}\u65e5`\n}\n\nconst pipeDateStr = pipe(h0, getLastday, getString)\n\nexport default () => {\n return (\n <>\n

\u5982\u679c\u60f3\u5f97\u5230\u67d0\u4e2a\u6570\u5b57 +1 +3 +5 \u7684\u503c

\n
\n \n plusFive(plusThree(plusOne(666)))\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {plusFive(plusThree(plusOne(666)))}\n \n
\n
\n \n plusFive(plusThree(plusOne(996)))\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {plusFive(plusThree(plusOne(996)))}\n \n
\n

const pipePlus = pipe(plusOne, plusThree, plusFive)

\n
\n pipePlus(666) \u7684\u7ed3\u679c\u4e3a\uff1a\n {pipePlus(666)}\n
\n
\n pipePlus(996) \u7684\u7ed3\u679c\u4e3a\uff1a\n {pipePlus(996)}\n
\n

\u5982\u679c\u60f3\u83b7\u5f97\u5f53\u524d\u65f6\u95f4\u7684\u6628\u5929\u65e5\u671f

\n
\n getLastday(h0(new Date()))){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {getString(getLastday(h0(new Date())))}\n \n
\n
\n \n getLastday(h0(new Date('2020-02-01'))))\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {getString(getLastday(h0(new Date('2020-02-01'))))}\n \n
\n

const pipeDateStr = pipe(h0, getLastday, getString)

\n
\n getLastday(h0(new Date()))){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n {pipeDateStr(new Date())}\n
\n
\n \n getLastday(h0(new Date('2020-02-01'))))\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {pipeDateStr(new Date('2020-02-01'))}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"pipe-demo"}},"promiseGuess-demo":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("DBVu")),a=t(n("GAyR")),o=t(n("iojd")),i=e(n("nNWW")),l=n("/7QA"),c={name:"Amy",age:18},u=function(){var e=(0,i.useState)(""),t=(0,o["default"])(e,2),n=t[0],u=t[1],s=(0,i.useState)(""),f=(0,o["default"])(s,2),d=f[0],p=f[1],m=(0,l.promiseGuess)((function(e){var t=e.name;e.age;return t}),(function(e,t,n){var r="Hello.I'm ".concat(t);return u(r),r})),h=(0,l.promiseGuess)(function(){var e=(0,a["default"])((0,r["default"])().mark((function e(t){var n;return(0,r["default"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.name,t.age,e.next=3,(0,l.delay)(1e3);case 3:return e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),(function(e,t,n){var r="Hello.I'm ".concat(t);return p(r),r}));return(0,i.useEffect)((function(){m(c),h(c)}),[]),i["default"].createElement(i["default"].Fragment,null,i["default"].createElement("div",null,i["default"].createElement("span",{style:{color:"#DD4A68"}},"asyncGreet(person)")," \u7684\u7ed3\u679c\u4e3a\uff1a",i["default"].createElement("pre",{style:{color:"#690"}},d)),i["default"].createElement("div",null,i["default"].createElement("span",{style:{color:"#DD4A68"}},"greet(person)")," \u7684\u7ed3\u679c\u4e3a\uff1a",i["default"].createElement("pre",{style:{color:"#690"}},n)))};return i["default"].createElement(u)},previewerProps:{sources:{_:{jsx:"import React, { useState, useEffect } from 'react'\nimport { promiseGuess, delay } from '@fexd/tools'\n\nconst person = {\n name: 'Amy',\n age: 18,\n}\n\nexport default () => {\n const [result, setResult] = useState('')\n const [promiseResult, setPromiseResult] = useState('')\n\n const greet = promiseGuess(\n ({ name, age }) => {\n // console.log(name, age) // Amy 18\n return name\n },\n (error, value, args) => {\n // console.log(error, value, args) // [null, \"Amy\", {name: \"Amy\", age: 18}]\n const str = `Hello.I'm ${value}`\n setResult(str)\n return str\n }\n )\n\n const asyncGreet = promiseGuess(\n async ({ name, age }) => {\n // console.log(name, age) // Amy 18\n await delay(1000)\n return name\n },\n (error, value, args) => {\n // console.log(error, value, args)\t// [null, \"Amy\", {name: \"Amy\", age: 18}]\n const str = `Hello.I'm ${value}`\n setPromiseResult(str)\n return str\n }\n )\n\n useEffect(() => {\n greet(person)\n asyncGreet(person)\n }, [])\n\n return (\n <>\n
\n asyncGreet(person) \u7684\u7ed3\u679c\u4e3a\uff1a\n
{promiseResult}
\n
\n
\n greet(person) \u7684\u7ed3\u679c\u4e3a\uff1a\n
{result}
\n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"promiseGuess-demo"}},"random-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("p",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"random(1,10)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.random)(1,10))),t["default"].createElement("p",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"Arandom(1,10, true)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.random)(1,10,!0))),t["default"].createElement("p",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"Arandom(1,10, false)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.random)(1,10,!1))),t["default"].createElement("br",null),t["default"].createElement("p",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"Arandom(98,100)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.random)(98,100))),t["default"].createElement("p",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"Arandom(98, 100, true)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.random)(98,100,!0))),t["default"].createElement("p",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"Arandom(98, 100, false)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.random)(98,100,!1))))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { random } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n

\n random(1,10) \u7684\u7ed3\u679c\u4e3a\uff1a\n {random(1, 10)}\n

\n

\n Arandom(1,10, true) \u7684\u7ed3\u679c\u4e3a\uff1a\n {random(1, 10, true)}\n

\n

\n Arandom(1,10, false){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n {random(1, 10, false)}\n

\n
\n

\n Arandom(98,100) \u7684\u7ed3\u679c\u4e3a\uff1a\n {random(98, 100)}\n

\n

\n Arandom(98, 100, true){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n {random(98, 100, true)}\n

\n

\n Arandom(98, 100, false){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n {random(98, 100, false)}\n

\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"random-demo"}},"sample-demo":{component:function(){var e=n("P/vu")["default"],t=e(n("nNWW")),r=n("/7QA"),a=[1,2,3,4],o=[{name:"Amy"},{name:"Peter"},[1],2,!0],i=function(e){return(0,r.isNumber)(e)||(0,r.isString)(e)?e:(0,r.isObject)(e)?JSON.stringify(e,null,2):(0,r.isArray)(e)?JSON.stringify(e):(0,r.isBoolean)(e)?e.toString():void 0},l=(0,r.pipe)(r.sample,i),c=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("p",null,"const arr1 = [1, 2, 3, 4]"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"sample(arr1)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},l(a))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"sample(arr1)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},l(a))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"sample(arr1)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},l(a))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"sample(arr1)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},l(a))),t["default"].createElement("br",null),t["default"].createElement("p",null,"const arr2 = [{name: 'Amy'}, {name: 'Peter'}, [1], 2, true]"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"sample(arr2)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},l(o))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"sample(arr2)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},l(o))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"sample(arr2)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},l(o))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"sample(arr2)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},l(o))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"sample(arr2)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},l(o))))};return t["default"].createElement(c)},previewerProps:{sources:{_:{jsx:"import React, { useState } from 'react'\nimport {\n sample,\n pipe,\n isNumber,\n isString,\n isObject,\n isBoolean,\n isArray,\n} from '@fexd/tools'\n\nconst arr1 = [1, 2, 3, 4]\nconst arr2 = [{ name: 'Amy' }, { name: 'Peter' }, [1], 2, true]\n\nconst getString = (data) => {\n const type = typeof data\n if (isNumber(data) || isString(data)) {\n return data\n }\n if (isObject(data)) {\n return JSON.stringify(data, null, 2)\n }\n if (isArray(data)) {\n return JSON.stringify(data)\n }\n if (isBoolean(data)) {\n return data.toString()\n }\n}\n\nconst sampleFunc = pipe(sample, getString)\n\nexport default () => {\n return (\n <>\n

const arr1 = [1, 2, 3, 4]

\n
\n sample(arr1) \u7684\u7ed3\u679c\u4e3a\uff1a\n
{sampleFunc(arr1)}
\n
\n
\n sample(arr1) \u7684\u7ed3\u679c\u4e3a\uff1a\n
{sampleFunc(arr1)}
\n
\n
\n sample(arr1) \u7684\u7ed3\u679c\u4e3a\uff1a\n
{sampleFunc(arr1)}
\n
\n
\n sample(arr1) \u7684\u7ed3\u679c\u4e3a\uff1a\n
{sampleFunc(arr1)}
\n
\n
\n

{`const arr2 = [{name: 'Amy'}, {name: 'Peter'}, [1], 2, true]`}

\n
\n sample(arr2) \u7684\u7ed3\u679c\u4e3a\uff1a\n
{sampleFunc(arr2)}
\n
\n
\n sample(arr2) \u7684\u7ed3\u679c\u4e3a\uff1a\n
{sampleFunc(arr2)}
\n
\n
\n sample(arr2) \u7684\u7ed3\u679c\u4e3a\uff1a\n
{sampleFunc(arr2)}
\n
\n
\n sample(arr2) \u7684\u7ed3\u679c\u4e3a\uff1a\n
{sampleFunc(arr2)}
\n
\n
\n sample(arr2) \u7684\u7ed3\u679c\u4e3a\uff1a\n
{sampleFunc(arr2)}
\n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"sample-demo"}},"Tween-demo":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("iojd")),a=e(n("nNWW")),o=n("/7QA"),i=996,l=function(){var e=(0,a.useState)(0),t=(0,r["default"])(e,2),n=t[0],l=t[1],c=(0,a.useState)(0),u=(0,r["default"])(c,2),s=u[0],f=u[1],d=(0,a.useState)((function(){t=o.Tween.easing,e=Object.keys(t),(0,o.sample)(e);var e,t,n=new o.Tween({from:0,to:i,duration:1200,loop:!1}).on("update",(function(e){l(parseInt(e))})).start(),r=new o.Tween({from:i,to:0,duration:1200,loop:!1}).on("update",(function(e){f(parseInt(e))})).start();return{num1:n,num2:r}})),p=(0,r["default"])(d,1),m=p[0],h=m.num1,v=m.num2;return a["default"].createElement(a["default"].Fragment,null,a["default"].createElement("h1",null,n,"\u3001",s),a["default"].createElement("button",{onClick:function(){h.restart(),v.restart()}},"Restart"))};return a["default"].createElement(l)},previewerProps:{sources:{_:{jsx:"import React, { useState, useRef } from 'react'\nimport { Tween, sample } from '@fexd/tools'\n\nconst targetNum = 996\n\nexport default () => {\n const [num1, setNum1] = useState(0)\n const [num2, setNum2] = useState(0)\n\n const [tweens] = useState(() => {\n // \u53d8\u5316\u66f2\u7ebf\u662fease\n const ease = Tween.easing |> Object.keys |> sample\n\n const num1 = new Tween({\n from: 0,\n to: targetNum,\n duration: 1200,\n loop: false,\n })\n .on('update', (progress) => {\n setNum1(parseInt(progress))\n })\n .start()\n\n const num2 = new Tween({\n from: targetNum,\n to: 0,\n duration: 1200,\n loop: false,\n })\n .on('update', (progress) => {\n setNum2(parseInt(progress))\n })\n .start()\n\n return { num1, num2 }\n })\n const tween1 = tweens.num1\n const tween2 = tweens.num2\n\n return (\n <>\n

\n {num1}\u3001{num2}\n

\n {\n tween1.restart()\n tween2.restart()\n }}\n >\n Restart\n \n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"Tween-demo"}},"Tween-demo-1":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("iojd")),a=e(n("nNWW")),o=n("/7QA"),i=function(){var e,t=(0,a.useRef)(null),n=(0,a.useState)({x:0,y:0,scale:1,rotate:0}),i=(0,r["default"])(n,2),l=i[0],c=i[1],u=(0,a.useState)((function(){var e,n,r=(n=o.Tween.easing,e=Object.keys(n),(0,o.sample)(e)),a=new o.Tween({from:0,to:335,ease:r}),i=new o.Tween({from:0,to:-50,ease:r}),l=new o.Tween({from:1,to:2.5,ease:r}),u=new o.Tween({from:0,to:360,ease:r}),s=new o.Tween({from:0,to:1,duration:1200,loop:!0}).on("update",(function(e){c({x:a.value(e),y:i.value(e),scale:l.value(e),rotate:u.value(e)}),t&&t.current&&(t.current.value=100*e)})).start();return{main:s,x:a,y:i,scale:l,rotate:u}})),s=(0,r["default"])(u,1),f=s[0],d=f.main;return a["default"].createElement(a["default"].Fragment,null,a["default"].createElement("input",{className:"progress",ref:t,type:"range",defaultValue:"0",min:"0",max:"100",onInput:function(e){d.stop(),d.progress(e.target.value/100)},onMouseUp:d.start}),a["default"].createElement("span",null,"Progress:",null===d||void 0===d||null===(e=d.state)||void 0===e?void 0:e.progress),a["default"].createElement("h1",null,"\u53ef\u7528\u4e8e\u505a\u52a8\u753b\u7684\u5143\u7d20:"),a["default"].createElement("pre",{style:{color:"#690"}}," \n translateX(".concat(l.x,"px)\n translateY(").concat(l.y,"px)\n scale(").concat(l.scale,")\n rotate(").concat(l.rotate,"deg)\n ")),a["default"].createElement("h1",null,"\u53ef\u6682\u505c\u3001\u7ee7\u7eed\u3001\u91cd\u7f6e\u3001\u91cd\u65b0\u5f00\u59cb\u7b49:"),a["default"].createElement("div",null,a["default"].createElement("button",{onClick:d.start},"Start"),a["default"].createElement("button",{onClick:d.stop},"Stop"),a["default"].createElement("button",{onClick:d.reset},"Reset"),a["default"].createElement("button",{onClick:d.restart},"Restart")))};return a["default"].createElement(i)},previewerProps:{sources:{_:{jsx:'import React, { useState, useRef } from \'react\'\nimport { Tween, sample } from \'@fexd/tools\'\n\nexport default () => {\n const progressRef = useRef(null)\n\n const [transform, setTransform] = useState({\n x: 0,\n y: 0,\n scale: 1,\n rotate: 0,\n })\n\n const [tweens] = useState(() => {\n // \u53d8\u5316\u66f2\u7ebf\u662fease\n const ease = Tween.easing |> Object.keys |> sample\n\n const x = new Tween({\n from: 0,\n to: 335,\n ease,\n })\n const y = new Tween({\n from: 0,\n to: -50,\n ease,\n })\n const scale = new Tween({\n from: 1,\n to: 2.5,\n ease,\n })\n const rotate = new Tween({\n from: 0,\n to: 360,\n ease,\n })\n\n const main = new Tween({\n from: 0,\n to: 1,\n duration: 1200,\n loop: true,\n })\n .on(\'update\', (progress) => {\n setTransform({\n x: x.value(progress),\n y: y.value(progress),\n scale: scale.value(progress),\n rotate: rotate.value(progress),\n })\n\n if (progressRef && progressRef.current) {\n progressRef.current.value = progress * 100\n }\n })\n .start()\n\n return { main, x, y, scale, rotate }\n })\n\n const tween = tweens.main\n\n return (\n <>\n {\n tween.stop()\n tween.progress(e.target.value / 100)\n }}\n onMouseUp={tween.start}\n />\n Progress:{tween?.state?.progress}\n\n

\u53ef\u7528\u4e8e\u505a\u52a8\u753b\u7684\u5143\u7d20:

\n
\n        {` \n          translateX(${transform.x}px)\n          translateY(${transform.y}px)\n          scale(${transform.scale})\n          rotate(${transform.rotate}deg)\n        `}\n      
\n\n

\u53ef\u6682\u505c\u3001\u7ee7\u7eed\u3001\u91cd\u7f6e\u3001\u91cd\u65b0\u5f00\u59cb\u7b49:

\n
\n \n \n \n \n
\n \n )\n}'}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"Tween-demo-1"}},"isAndroid-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isAndroid()")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isAndroid)(),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isAndroid } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isAndroid()`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isAndroid(), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isAndroid-demo"}},"isArray-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isArray([1, 2, 3, 4])")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isArray)([1,2,3,4]),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isArray(null)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isArray)(null),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isArray } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isArray([1, 2, 3, 4])`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isArray([1, 2, 3, 4]), null, 1)}\n \n
\n \n {`isArray(null)`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isArray(null), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isArray-demo"}},"isBoolean-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isBoolean(true)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isBoolean)(!0),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isBoolean(null)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isBoolean)(null),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},'isBoolean("true")')," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isBoolean)("true"),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isBoolean } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isBoolean(true)`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isBoolean(true), null, 1)}\n \n
\n \n {`isBoolean(null)`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isBoolean(null), null, 1)}\n \n
\n \n {`isBoolean(\"true\")`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isBoolean('true'), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isBoolean-demo"}},"isDate-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isDate(new Date())")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isDate)(new Date),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},'isDate("2020-12-16")')," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isDate)("2020-12-16"),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isDate(new Date().getTime())")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isDate)((new Date).getTime()),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isDate } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isDate(new Date())`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isDate(new Date()), null, 1)}\n \n
\n \n {`isDate(\"2020-12-16\")`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isDate('2020-12-16'), null, 1)}\n \n
\n \n {`isDate(new Date().getTime())`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isDate(new Date().getTime()), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isDate-demo"}},"isDesktop-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isDesktop()")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isDesktop)(),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isDesktop } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isDesktop()`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isDesktop(), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isDesktop-demo"}},"isError-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},'isError(Error("err"))')," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isError)(Error("err")),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},'isError("err")')," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isError)("err"),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isError } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isError(Error(\"err\"))`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isError(Error('err')), null, 1)}\n \n
\n \n {`isError(\"err\")`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isError('err'), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isError-demo"}},"isExist-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isExist(false)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isExist)(!1),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isExist(0)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isExist)(0),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isExist(NaN)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isExist)(NaN),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},'isExist("")')," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isExist)(""),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isExist({})")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isExist)({}),null,1)),t["default"].createElement("br",null),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isExist(null)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isExist)(null),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isExist(undefined)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isExist)(void 0),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isExist } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isExist(false)`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isExist(false), null, 1)}\n \n
\n \n {`isExist(0)`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isExist(0), null, 1)}\n \n
\n \n {`isExist(NaN)`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isExist(NaN), null, 1)}\n \n
\n \n {`isExist(\"\")`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isExist(''), null, 1)}\n \n
\n \n {`isExist({})`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isExist({}), null, 1)}\n \n
\n
\n \n {`isExist(null)`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isExist(null), null, 1)}\n \n
\n \n {`isExist(undefined)`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isExist(undefined), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isExist-demo"}},"isFunction-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},'isFunction("function")')," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isFunction)("function"),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isFunction(() => {})")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isFunction)((function(){})),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isFunction(function test(){})")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isFunction)((function(){})),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isFunction } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isFunction(\"function\")`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isFunction('function'), null, 1)}\n \n
\n \n {`isFunction(() => {})`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(\n isFunction(() => {}),\n null,\n 1\n )}\n \n
\n \n {`isFunction(function test(){})`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(\n isFunction(function test() {}),\n null,\n 1\n )}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isFunction-demo"}},"isIOS-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isIOS()")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isIOS)(),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isIOS } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isIOS()`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isIOS(), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isIOS-demo"}},"isMobile-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isMobile()")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isMobile)(),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isMobile } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isMobile()`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isMobile(), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isMobile-demo"}},"isNaN-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isNaN(NaN)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isNaN)(NaN),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isNaN(0)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isNaN)(0),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isNaN } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isNaN(NaN)`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isNaN(NaN), null, 1)}\n \n
\n \n {`isNaN(0)`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isNaN(0), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isNaN-demo"}},"isNull-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isNull()")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isNull)(),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isNull(null)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isNull)(null),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isNull } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isNull()`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isNull(), null, 1)}\n \n
\n \n {`isNull(null)`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isNull(null), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isNull-demo"}},"isNumber-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isNumber()")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isNumber)(),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},'isNumber("1")')," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isNumber)("1"),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isNumber(1)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isNumber)(1),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isNumber } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isNumber()`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isNumber(), null, 1)}\n \n
\n \n {`isNumber(\"1\")`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isNumber('1'), null, 1)}\n \n
\n \n {`isNumber(1)`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isNumber(1), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isNumber-demo"}},"isObject-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isObject([1])")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isObject)([1]),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isObject({ a: 1 })")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isObject)({a:1}),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isObject({})")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isObject)({}),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isObject } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isObject([1])`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isObject([1]), null, 1)}\n \n
\n \n {`isObject({ a: 1 })`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isObject({ a: 1 }), null, 1)}\n \n
\n \n {`isObject({})`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isObject({}), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isObject-demo"}},"isPromiseLike-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isPromiseLike({ a: 1 })")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isPromiseLike)({a:1}),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isPromiseLike(new Promise((resolve) => resolve(1)))")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isPromiseLike)(new Promise((function(e){return e(1)}))),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isPromiseLike } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isPromiseLike({ a: 1 })`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isPromiseLike({ a: 1 }), null, 1)}\n \n
\n \n {`isPromiseLike(new Promise((resolve) => resolve(1)))`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(\n isPromiseLike(new Promise((resolve) => resolve(1))),\n null,\n 1\n )}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isPromiseLike-demo"}},"isString-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isString()")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isString)(),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isString(123)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isString)(123),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},'isString("123")')," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isString)("123"),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},'isString("")')," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isString)(""),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isString } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isString()`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isString(), null, 1)}\n \n
\n \n {`isString(123)`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isString(123), null, 1)}\n \n
\n \n {`isString(\"123\")`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isString('123'), null, 1)}\n \n
\n \n {`isString(\"\")`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isString(''), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isString-demo"}},"isUndefined-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isUndefined()")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isUndefined)(),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isUndefined(undefined)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isUndefined)(void 0),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},'isUndefined("")')," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isUndefined)(""),null,1)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isUndefined(null)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isUndefined)(null),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isUndefined } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isUndefined()`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isUndefined(), null, 1)}\n \n
\n \n {`isUndefined(undefined)`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isUndefined(undefined), null, 1)}\n \n
\n \n {`isUndefined(\"\")`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isUndefined(''), null, 1)}\n \n
\n \n {`isUndefined(null)`}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isUndefined(null), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isUndefined-demo"}},"isWKWebview-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"isWKWebview()")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.isWKWebview)(),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { isWKWebview } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n {`isWKWebview()`}\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(isWKWebview(), null, 1)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"isWKWebview-demo"}},"I18n-demo":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("DBVu")),a=t(n("GAyR")),o=t(n("iojd")),i=e(n("nNWW")),l=n("/7QA"),c=new l.I18n({types:{default:{resources:{en:{greet:"Hello 11",world:"world!"},zh:{greet:"\u4f60\u597d, 11",world:"\u4e16\u754c\uff01"},in:{greet:"Halo 22",world:"dunia!"}}}}}),u=new l.I18n({types:{default:{resources:{}},jsx:{resources:{en:{clickHere:"click {{here}}"},zh:{clickHere:"\u70b9\u51fb {{here}}"}},format:function(e,t){return i["default"].createElement(i.Fragment,null,l.I18n.template(e,t,{split:!0}).map((function(e,t){return i["default"].createElement(i.Fragment,{key:t},e)})))}}},fallback:[c],translateFallback:function(e){return Array(e.length).fill("-").join("")}});window.i18n=u,window.I18n=l.I18n;var s=function(){var e=(0,i.useState)(""),t=(0,o["default"])(e,2),n=t[0],c=t[1];function s(e){return f.apply(this,arguments)}function f(){return f=(0,a["default"])((0,r["default"])().mark((function e(t){return(0,r["default"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l.I18n.applyLanguage(t);case 2:case"end":return e.stop()}}),e)}))),f.apply(this,arguments)}return(0,i.useEffect)((function(){u.eventBus.on("change",(function(){var e=u.t("greet"),t=u.t("world");c(i["default"].createElement(i["default"].Fragment,null,e," ",t))})),s("en")}),[]),i["default"].createElement(i["default"].Fragment,null,i["default"].createElement("h1",null,n),i["default"].createElement("button",{onClick:function(){return s("en")}},"\u5207\u6362\u82f1\u8bed"),i["default"].createElement("button",{onClick:function(){return s("zh")}},"\u5207\u6362\u4e2d\u6587"),i["default"].createElement("button",{onClick:function(){return s("in")}},"\u5207\u6362\u5370\u5c3c\u8bed"),i["default"].createElement("button",{onClick:function(){u.applyConfig({types:{default:{resources:{en:{greet:"Hello",world:"world!"},zh:{greet:"\u4f60\u597d,",world:"\u4e16\u754c\uff01"},in:{greet:"Halo",world:"dunia!"}}},jsx:{resources:{en:{clickHere:"click {{here}} 22"},zh:{clickHere:"\u70b9\u51fb {{here}} 11"}}}}})}},"\u52a8\u6001\u6ce8\u5165\u8bed\u8a00\u5305 config"),i["default"].createElement("div",null,u.t("clickHere@jsx",{here:i["default"].createElement("a",{href:"https://www.google.com"},"google")})))};return i["default"].createElement(s)},previewerProps:{sources:{_:{jsx:"import React, { useState, useEffect, Fragment } from 'react'\nimport { I18n } from '@fexd/tools'\n\nconst fallbackI18n = new I18n({\n types: {\n default: {\n resources: {\n en: {\n greet: 'Hello 11',\n world: 'world!',\n },\n zh: {\n greet: '\u4f60\u597d, 11',\n world: '\u4e16\u754c\uff01',\n },\n in: {\n greet: 'Halo 22',\n world: 'dunia!',\n },\n },\n },\n },\n})\n\nconst i18n = new I18n({\n types: {\n default: {\n resources: {\n // en: {\n // greet: 'Hello',\n // world: 'world!',\n // },\n // zh: {\n // greet: '\u4f60\u597d,',\n // world: '\u4e16\u754c\uff01',\n // },\n // in: {\n // greet: 'Halo',\n // world: 'dunia!',\n // },\n },\n },\n jsx: {\n resources: {\n en: {\n clickHere: 'click {{here}}',\n },\n zh: {\n clickHere: '\u70b9\u51fb {{here}}',\n },\n },\n format: (value, data) => (\n \n {I18n.template(value, data, { split: true }).map((item, idx) => (\n {item}\n ))}\n \n ),\n },\n },\n fallback: [fallbackI18n],\n translateFallback: (text) => Array(text.length).fill('-').join(''),\n})\n\nwindow.i18n = i18n\nwindow.I18n = I18n\n\nexport default () => {\n const [greetText, setGreetText] = useState('')\n\n async function ToggleLang(lang) {\n await I18n.applyLanguage(lang) // \u4f7f\u7528 I18n.applyLanguage \u6765\u5207\u6362\u8bed\u8a00\n }\n\n useEffect(() => {\n i18n.eventBus.on('change', () => {\n const text1 = i18n.t('greet') // \u4f7f\u7528\u5b9e\u4f8b\u7684 t \u65b9\u6cd5\u6765\u83b7\u5f97\u5f53\u524d\u8bed\u8a00\u7684\u5bf9\u5e94\u6587\u5b57\n const text2 = i18n.t('world')\n setGreetText(\n <>\n {text1} {text2}\n \n )\n })\n\n ToggleLang('en')\n }, [])\n\n return (\n <>\n

{greetText}

\n \n \n \n {\n i18n.applyConfig({\n types: {\n default: {\n resources: {\n en: {\n greet: 'Hello',\n world: 'world!',\n },\n zh: {\n greet: '\u4f60\u597d,',\n world: '\u4e16\u754c\uff01',\n },\n in: {\n greet: 'Halo',\n world: 'dunia!',\n },\n },\n },\n jsx: {\n resources: {\n en: {\n clickHere: 'click {{here}} 22',\n },\n zh: {\n clickHere: '\u70b9\u51fb {{here}} 11',\n },\n },\n },\n },\n })\n }}\n >\n \u52a8\u6001\u6ce8\u5165\u8bed\u8a00\u5305 config\n \n\n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"I18n-demo"}},"storage-demo":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("iojd")),a=e(n("nNWW")),o=n("/7QA"),i="count",l=function(){var e=(0,a.useState)(0),t=(0,r["default"])(e,2),n=t[0],l=t[1];function c(){o.storage.set(i,n),alert("\u5df2\u4fdd\u5b58\u5230 localStorage \u4e2d")}function u(){o.storage.setSession(i,n),alert("\u5df2\u4fdd\u5b58\u5230 sessionStorage \u4e2d")}function s(){o.storage.remove(i),alert("\u5df2\u79fb\u9664 localStorage \u7684 count")}function f(){o.storage.removeSession(i),alert("\u5df2\u79fb\u9664 sessionStorage \u7684 count")}return a["default"].createElement(a["default"].Fragment,null,a["default"].createElement("button",{onClick:function(){return l(n+1)}},"\u70b9\u51fb\u52a01"),a["default"].createElement("h1",null,"count: ",n),a["default"].createElement("p",null,a["default"].createElement("button",{onClick:c},"\u70b9\u51fb\u5c06\u5f53\u524d count \u4fdd\u5b58\u5230 localStorage \u4e2d"),a["default"].createElement("button",{onClick:u,style:{marginLeft:"10px"}},"\u70b9\u51fb\u5c06\u5f53\u524d count \u4fdd\u5b58\u5230 sessionStorage \u4e2d")),a["default"].createElement("p",null,a["default"].createElement("button",{onClick:s},"\u79fb\u9664 localStorage \u7684 count"),a["default"].createElement("button",{onClick:f,style:{marginLeft:"10px"}},"\u79fb\u9664 sessionStorage \u7684 count")))};return a["default"].createElement(l)},previewerProps:{sources:{_:{jsx:"import React, { useState } from 'react'\nimport { storage } from '@fexd/tools'\n\nconst COUNT_KEY = 'count'\n\nexport default () => {\n const [count, setCount] = useState(0)\n\n function setLocal() {\n storage.set(COUNT_KEY, count)\n alert('\u5df2\u4fdd\u5b58\u5230 localStorage \u4e2d')\n }\n\n function setSession() {\n storage.setSession(COUNT_KEY, count)\n alert('\u5df2\u4fdd\u5b58\u5230 sessionStorage \u4e2d')\n }\n\n function removeLocal() {\n storage.remove(COUNT_KEY)\n alert('\u5df2\u79fb\u9664 localStorage \u7684 count')\n }\n\n function removeSession() {\n storage.removeSession(COUNT_KEY)\n alert('\u5df2\u79fb\u9664 sessionStorage \u7684 count')\n }\n\n return (\n <>\n \n

count: {count}

\n\n

\n \n\n \n

\n

\n \n\n \n

\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"storage-demo"}},"capitalize-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"capitalize('hello')")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.capitalize)("hello"))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"capitalize('Hello')")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.capitalize)("Hello"))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"capitalize('1231abc')")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.capitalize)("1231abc"))))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { capitalize } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n
\n capitalize('hello') \u7684\u7ed3\u679c\u4e3a\uff1a\n {capitalize('hello')}\n
\n
\n capitalize('Hello') \u7684\u7ed3\u679c\u4e3a\uff1a\n {capitalize('Hello')}\n
\n
\n capitalize('1231abc'){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n {capitalize('1231abc')}\n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"capitalize-demo"}},"copy-demo":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("iojd")),a=e(n("nNWW")),o=n("/7QA"),i=function(){var e=(0,a.useState)(""),t=(0,r["default"])(e,2),n=t[0],i=t[1];return a["default"].createElement(a["default"].Fragment,null,a["default"].createElement("div",null,a["default"].createElement("input",{value:n,onChange:function(e){return i(e.target.value)}}),a["default"].createElement("button",{onClick:function(){return(0,o.copy)(n)}},"\u70b9\u51fb copy \u8f93\u5165\u6846\u5185\u5bb9")),a["default"].createElement("p",null,"\u53ef\u5728\u4e0b\u9762\u8f93\u5165\u6846\u7c98\u8d34\uff0c\u770b\u770b\u662f\u5426\u662f\u4e0a\u9762\u8f93\u5165\u6846\u7684\u5185\u5bb9\uff08Windows\u5feb\u6377\u952e\u4e3aCtrl + V\uff09"),a["default"].createElement("input",null))};return a["default"].createElement(i)},previewerProps:{sources:{_:{jsx:"import React, { useState } from 'react'\nimport { copy } from '@fexd/tools'\n\nexport default () => {\n const [inputValue, setInputValue] = useState('')\n return (\n <>\n
\n setInputValue(e.target.value)}\n />\n \n
\n

\n \u53ef\u5728\u4e0b\u9762\u8f93\u5165\u6846\u7c98\u8d34\uff0c\u770b\u770b\u662f\u5426\u662f\u4e0a\u9762\u8f93\u5165\u6846\u7684\u5185\u5bb9\uff08Windows\u5feb\u6377\u952e\u4e3aCtrl +\n V\uff09\n

\n \n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"copy-demo"}},"first-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("p",null,"const arr = [1, 2, 3, 4]"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"first(arr)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.first)([1,2,3,4]))),t["default"].createElement("br",null),t["default"].createElement("p",null,"const obj = { a: 1, b: 2 }"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"first(obj)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.first)({a:1,b:2}))),t["default"].createElement("br",null),t["default"].createElement("p",null,"const obj = { name: 'Amy', age: 18 }"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"first(obj)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.first)({name:"Amy",age:18}))))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { first } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n

const arr = [1, 2, 3, 4]

\n
\n first(arr) \u7684\u7ed3\u679c\u4e3a\uff1a\n {first([1, 2, 3, 4])}\n
\n
\n

{`const obj = { a: 1, b: 2 }`}

\n
\n first(obj) \u7684\u7ed3\u679c\u4e3a\uff1a\n {first({ a: 1, b: 2 })}\n
\n
\n

{`const obj = { name: 'Amy', age: 18 }`}

\n
\n first(obj) \u7684\u7ed3\u679c\u4e3a\uff1a\n {first({ name: 'Amy', age: 18 })}\n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"first-demo"}},"get-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a={a:{b:1}},o=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("pre",{style:{color:"#690"}},"const obj = ".concat(JSON.stringify({a:{b:1}},null,2))),t["default"].createElement("h1",null,"\u6210\u529f\u53d6\u5230\u503c"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"get(obj, 'a.b')")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.get)(a,"a.b"))),t["default"].createElement("br",null),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"get(obj, 'a.b', 'default')")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.get)(a,"a.b","default"))),t["default"].createElement("br",null),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"get(obj, ['a', 'b'])")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.get)(a,["a","b"]))),t["default"].createElement("br",null),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"get(obj, ['a', 'b'], 'default')")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.get)(a,["a","b"],"default"))),t["default"].createElement("br",null),t["default"].createElement("h1",null,"\u6ca1\u6210\u529f\u53d6\u5230\u503c"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"get(obj, 'c.b') ")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.get)(a,"c.b"))),t["default"].createElement("br",null),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"get(obj, 'c.b', 'default') ")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.get)(a,"c.b","default"))))};return t["default"].createElement(o)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { get } from '@fexd/tools'\n\nconst obj = {\n a: {\n b: 1,\n },\n}\n\nexport default () => {\n return (\n <>\n
\n        {`const obj = ${JSON.stringify({ a: { b: 1 } }, null, 2)}`}\n      
\n

\u6210\u529f\u53d6\u5230\u503c

\n
\n get(obj, 'a.b') \u7684\u7ed3\u679c\u4e3a\uff1a\n {get(obj, 'a.b')}\n
\n
\n
\n get(obj, 'a.b', 'default'){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n {get(obj, 'a.b', 'default')}\n
\n
\n
\n get(obj, ['a', 'b']){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n {get(obj, ['a', 'b'])}\n
\n
\n
\n \n get(obj, ['a', 'b'], 'default')\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n {get(obj, ['a', 'b'], 'default')}\n
\n
\n

\u6ca1\u6210\u529f\u53d6\u5230\u503c

\n
\n get(obj, 'c.b') \u7684\u7ed3\u679c\u4e3a\uff1a\n {get(obj, 'c.b')}\n
\n
\n
\n get(obj, 'c.b', 'default') {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n {get(obj, 'c.b', 'default')}\n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"get-demo"}},"getFormatter-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=(0,r.getFormatter)({separator:",",length:3,reverse:!0,isNumber:!0}),o=(0,r.getFormatter)({separator:"--",length:2,reverse:!1,isNumber:!1}),i=(0,r.getFormatter)({separator:" ",length:4,reverse:!1,isNumber:!0});window.getFormatter=r.getFormatter;var l=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("h1",null,"\u683c\u5f0f\u5316\u4eba\u6c11\u5e01"),t["default"].createElement("pre",{style:{color:"#690"}},"const formatRMB = getFormatter".concat(JSON.stringify({separator:",",length:3,reverse:!0,isNumber:!0},null,2))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"formatRMB(1234500)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},a(1234500))),t["default"].createElement("br",null),t["default"].createElement("h1",null,"\u683c\u5f0f\u5316\u5b57\u7b26\u4e32"),t["default"].createElement("pre",{style:{color:"#690"}},"const formatString = getFormatter".concat(JSON.stringify({separator:"--",length:2,reverse:!1,isNumber:!1},null,2))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"formatString('aabbccddeeff')")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},o("aabbccddeeff"))),t["default"].createElement("br",null),t["default"].createElement("h1",null,"\u683c\u5f0f\u5316\u94f6\u884c\u5361\u53f7"),t["default"].createElement("pre",{style:{color:"#690"}},"const formatBankCode = getFormatter".concat(JSON.stringify({separator:" ",length:4,reverse:!1,isNumber:!0},null,2))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"formatBankCode(1234567812345678)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},i(0x462d537e7ef4e))))};return t["default"].createElement(l)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { getFormatter } from '@fexd/tools'\n\nconst formatRMB = getFormatter({\n separator: ',',\n length: 3,\n reverse: true,\n isNumber: true,\n})\n\nconst formatString = getFormatter({\n separator: '--',\n length: 2,\n reverse: false,\n isNumber: false,\n})\n\nconst formatBankCode = getFormatter({\n separator: ' ',\n length: 4,\n reverse: false,\n isNumber: true,\n})\n\nwindow.getFormatter = getFormatter\n\nexport default () => {\n return (\n <>\n

\u683c\u5f0f\u5316\u4eba\u6c11\u5e01

\n
\n        {`const formatRMB = getFormatter${JSON.stringify(\n          {\n            separator: ',',\n            length: 3,\n            reverse: true,\n            isNumber: true,\n          },\n          null,\n          2\n        )}`}\n      
\n
\n formatRMB(1234500) \u7684\u7ed3\u679c\u4e3a\uff1a\n {formatRMB(1234500)}\n
\n
\n\n

\u683c\u5f0f\u5316\u5b57\u7b26\u4e32

\n
\n        {`const formatString = getFormatter${JSON.stringify(\n          {\n            separator: '--',\n            length: 2,\n            reverse: false,\n            isNumber: false,\n          },\n          null,\n          2\n        )}`}\n      
\n
\n formatString('aabbccddeeff'){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n {formatString('aabbccddeeff')}\n
\n
\n\n

\u683c\u5f0f\u5316\u94f6\u884c\u5361\u53f7

\n
\n        {`const formatBankCode = getFormatter${JSON.stringify(\n          {\n            separator: ' ',\n            length: 4,\n            reverse: false,\n            isNumber: true,\n          },\n          null,\n          2\n        )}`}\n      
\n
\n \n formatBankCode(1234567812345678)\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {formatBankCode(1234567812345678)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"getFormatter-demo"}},"intersection-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"intersection([1, 2, 3, 4], [2, 3, 4, 5])")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},JSON.stringify((0,r.intersection)([1,2,3,4],[2,3,4,5])))))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { intersection } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n
\n \n intersection([1, 2, 3, 4], [2, 3, 4, 5])\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(intersection([1, 2, 3, 4], [2, 3, 4, 5]))}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"intersection-demo"}},"last-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("p",null,"const arr = [1, 2, 3, 4]"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"last(arr)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.last)([1,2,3,4]))),t["default"].createElement("br",null),t["default"].createElement("p",null,"const obj = { a: 1, b: 2 }"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"last(obj)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.last)({a:1,b:2}))),t["default"].createElement("br",null),t["default"].createElement("p",null,"const obj = { name: 'Amy', age: 18 }"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"last(obj)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.last)({name:"Amy",age:18}))))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { last } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n

const arr = [1, 2, 3, 4]

\n
\n last(arr) \u7684\u7ed3\u679c\u4e3a\uff1a\n {last([1, 2, 3, 4])}\n
\n
\n

{`const obj = { a: 1, b: 2 }`}

\n
\n last(obj) \u7684\u7ed3\u679c\u4e3a\uff1a\n {last({ a: 1, b: 2 })}\n
\n
\n

{`const obj = { name: 'Amy', age: 18 }`}

\n
\n last(obj) \u7684\u7ed3\u679c\u4e3a\uff1a\n {last({ name: 'Amy', age: 18 })}\n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"last-demo"}},"run-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a={a:{b:{c:"abc",func:function(e){return e}}}},o=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("h1",null,"\u65e0\u75db\u6267\u884c\u5bf9\u8c61\u91cc\u7684\uff1a"),t["default"].createElement("p",null,"\u6267\u884c\u5bf9\u8c61\u91cc\u7684\u51fd\u6570\uff0c\u6210\u529f"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"run(obj, 'a.b.func', 'vagaga')")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.run)(a,"a.b.func","vagaga"))),t["default"].createElement("br",null),t["default"].createElement("p",null,"\u6267\u884c\u5bf9\u8c61\u91cc\u4e0d\u5b58\u5728\u7684\u51fd\u6570\uff0c\u6ca1\u6709\u6210\u529f"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"run(obj, 'a.b.d', 'vagaga')")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.run)(a,"a.b.d","vagaga"))),t["default"].createElement("br",null),t["default"].createElement("p",null,"\u6267\u884c\u5bf9\u8c61\u91cc\u7684\u5176\u4ed6\u7c7b\u578b\uff0c\u6210\u529f"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"run(obj, 'a.b.c', 'vagaga')")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.run)(a,"a.b.c","vagaga"))),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"run(obj, 'a.b', 'vagaga')")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify((0,r.run)(a,"a.b","vagaga"),null,2))),t["default"].createElement("br",null),t["default"].createElement("h1",null,"\u65e0\u75db\u76f4\u63a5\u6267\u884c\uff1a"),t["default"].createElement("p",null,"\u76f4\u63a5\u6267\u884c\u51fd\u6570\uff0c\u6210\u529f"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"run(obj.a.b.func, undefined, 'vagaga')")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.run)(a.a.b.func,void 0,"vagaga"))),t["default"].createElement("p",null,"\u76f4\u63a5\u6267\u884c\u5b57\u7b26\u4e32\uff0c\u6210\u529f"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"run(obj.a.b.c, undefined, 'vagaga')")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.run)(a.a.b.c,void 0,"vagaga"))),t["default"].createElement("p",null,"\u76f4\u63a5\u6267\u884c\u5bf9\u8c61\uff0c\u6210\u529f"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"run(obj.a, undefined, 'vagaga')")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify((0,r.run)(a.a,void 0,"vagaga"),null,2))),t["default"].createElement("p",null,"\u76f4\u63a5\u6267\u884c\u4e0d\u5b58\u5728\u7684\uff0c\u5931\u8d25"),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"run(obj.a.b.d, undefined, 'vagaga')")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},(0,r.run)(a.a.b.d,void 0,"vagaga"))))};return t["default"].createElement(o)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { run } from '@fexd/tools'\n\nconst obj = {\n a: {\n b: {\n c: 'abc',\n func: (str) => {\n return str\n },\n },\n },\n}\n\nexport default () => {\n return (\n <>\n

\u65e0\u75db\u6267\u884c\u5bf9\u8c61\u91cc\u7684\uff1a

\n

\u6267\u884c\u5bf9\u8c61\u91cc\u7684\u51fd\u6570\uff0c\u6210\u529f

\n
\n run(obj, 'a.b.func', 'vagaga'){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n {run(obj, 'a.b.func', 'vagaga')}\n
\n
\n

\u6267\u884c\u5bf9\u8c61\u91cc\u4e0d\u5b58\u5728\u7684\u51fd\u6570\uff0c\u6ca1\u6709\u6210\u529f

\n
\n run(obj, 'a.b.d', 'vagaga'){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n {run(obj, 'a.b.d', 'vagaga')}\n
\n
\n

\u6267\u884c\u5bf9\u8c61\u91cc\u7684\u5176\u4ed6\u7c7b\u578b\uff0c\u6210\u529f

\n
\n run(obj, 'a.b.c', 'vagaga'){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n {run(obj, 'a.b.c', 'vagaga')}\n
\n
\n run(obj, 'a.b', 'vagaga'){' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n          {JSON.stringify(run(obj, 'a.b', 'vagaga'), null, 2)}\n        
\n
\n
\n\n

\u65e0\u75db\u76f4\u63a5\u6267\u884c\uff1a

\n

\u76f4\u63a5\u6267\u884c\u51fd\u6570\uff0c\u6210\u529f

\n
\n \n run(obj.a.b.func, undefined, 'vagaga')\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {run(obj.a.b.func, undefined, 'vagaga')}\n \n
\n

\u76f4\u63a5\u6267\u884c\u5b57\u7b26\u4e32\uff0c\u6210\u529f

\n
\n \n run(obj.a.b.c, undefined, 'vagaga')\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {run(obj.a.b.c, undefined, 'vagaga')}\n \n
\n

\u76f4\u63a5\u6267\u884c\u5bf9\u8c61\uff0c\u6210\u529f

\n
\n \n run(obj.a, undefined, 'vagaga')\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n          {JSON.stringify(run(obj.a, undefined, 'vagaga'), null, 2)}\n        
\n
\n

\u76f4\u63a5\u6267\u884c\u4e0d\u5b58\u5728\u7684\uff0c\u5931\u8d25

\n
\n \n run(obj.a.b.d, undefined, 'vagaga')\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {run(obj.a.b.d, undefined, 'vagaga')}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"run-demo"}},"set-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"set({}, 'a.b.c.d', 'hello world')")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify((0,r.set)({},"a.b.c.d","hello world"),null,2))),t["default"].createElement("br",null),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"set(undefined, 'a.b.c', 1)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify((0,r.set)(void 0,"a.b.c",1),null,2))))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { set } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n
\n {`set({}, 'a.b.c.d', 'hello world')`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n          {JSON.stringify(set({}, 'a.b.c.d', 'hello world'), null, 2)}\n        
\n
\n
\n
\n {`set(undefined, 'a.b.c', 1)`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n          {JSON.stringify(set(undefined, 'a.b.c', 1), null, 2)}\n        
\n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"set-demo"}},"uniqByKey-demo":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("iojd")),a=e(n("nNWW")),o=n("/7QA"),i=[{name:"Amy",age:18},{name:"Tom",age:19},{name:"Amy"}],l=function(){var e=(0,a.useState)([]),t=(0,r["default"])(e,2),n=t[0],l=t[1];return a["default"].createElement(a["default"].Fragment,null,a["default"].createElement("div",null,a["default"].createElement("span",{style:{color:"#DD4A68"}},"const arr = "),a["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify(i,null,2))),a["default"].createElement("br",null),a["default"].createElement("div",null,a["default"].createElement("button",{onClick:function(){l((0,o.uniqByKey)(i,"name"))}},"\u70b9\u51fb\u53bb\u91cd uniqByKey(arr, 'name')")),a["default"].createElement("br",null),a["default"].createElement("div",null,a["default"].createElement("span",{style:{color:"#DD4A68"}},"\u53bb\u91cd\u540e\u5f97\u5230\u7684\u6570\u7ec4\u4e3a\uff1a"),a["default"].createElement("pre",{style:{color:"#690"}},JSON.stringify(n,null,2))))};return a["default"].createElement(l)},previewerProps:{sources:{_:{jsx:"import React, { useState } from 'react'\nimport { uniqByKey } from '@fexd/tools'\n\nconst arr = [\n { name: 'Amy', age: 18 },\n { name: 'Tom', age: 19 },\n { name: 'Amy' },\n]\nexport default () => {\n const [newArr, setNewArr] = useState([])\n return (\n <>\n
\n const arr = \n
{JSON.stringify(arr, null, 2)}
\n
\n
\n
\n {\n setNewArr(uniqByKey(arr, 'name'))\n }}\n >\n \u70b9\u51fb\u53bb\u91cd uniqByKey(arr, 'name')\n \n
\n
\n
\n \u53bb\u91cd\u540e\u5f97\u5230\u7684\u6570\u7ec4\u4e3a\uff1a\n
{JSON.stringify(newArr, null, 2)}
\n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"uniqByKey-demo"}},"value-demo":{component:function(){var e,t,r=n("uKmp")["default"],a=r(n("nNWW")),o=n("/7QA"),i="default",l='value(\n v1,\n () => {\n console.log("v1\u6ca1\u6709\uff0c\u5c1d\u8bd5v2");\n return v2;\n },\n () => {\n console.log("v2\u4e5f\u6ca1\u6709\uff0c\u5c1d\u8bd5v3");\n return v3;\n }\n);',c=function(){return a["default"].createElement(a["default"].Fragment,null,a["default"].createElement("h1",null,"var v1, v2, v3 = 'default'"),a["default"].createElement("div",null,a["default"].createElement("span",{style:{color:"#DD4A68"}},"value(v1, v2, v3)")," \u7684\u7ed3\u679c\u4e3a\uff1a",a["default"].createElement("span",{style:{color:"#690"}},(0,o.value)(e,t,i))),a["default"].createElement("br",null),a["default"].createElement("div",null,a["default"].createElement("span",{style:{color:"#DD4A68"}},"value(v1, 0, v3)")," \u7684\u7ed3\u679c\u4e3a\uff1a",a["default"].createElement("span",{style:{color:"#690"}},(0,o.value)(e,0,i))),a["default"].createElement("br",null),a["default"].createElement("div",null,a["default"].createElement("pre",{style:{color:"#DD4A68"}},l)," \u7684\u7ed3\u679c\u4e3a\uff1a",a["default"].createElement("span",{style:{color:"#690"}},(0,o.value)(e,(function(){return console.log("v1\u6ca1\u6709\uff0c\u5c1d\u8bd5v2"),t}),(function(){return console.log("v2\u4e5f\u6ca1\u6709\uff0c\u5c1d\u8bd5v3"),i})))),a["default"].createElement("br",null))};return a["default"].createElement(c)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { value, isUndefined } from '@fexd/tools'\n\nvar v1,\n v2,\n v3 = 'default'\n\nconst str = `value(\n v1,\n () => {\n console.log(\"v1\u6ca1\u6709\uff0c\u5c1d\u8bd5v2\");\n return v2;\n },\n () => {\n console.log(\"v2\u4e5f\u6ca1\u6709\uff0c\u5c1d\u8bd5v3\");\n return v3;\n }\n);`\n\nexport default () => {\n return (\n <>\n

var v1, v2, v3 = 'default'

\n
\n value(v1, v2, v3) \u7684\u7ed3\u679c\u4e3a\uff1a\n {value(v1, v2, v3)}\n
\n
\n
\n value(v1, 0, v3) \u7684\u7ed3\u679c\u4e3a\uff1a\n {value(v1, 0, v3)}\n
\n
\n
\n
{str}
\u7684\u7ed3\u679c\u4e3a\uff1a\n \n {value(\n v1,\n () => {\n console.log('v1\u6ca1\u6709\uff0c\u5c1d\u8bd5v2')\n return v2\n },\n () => {\n console.log('v2\u4e5f\u6ca1\u6709\uff0c\u5c1d\u8bd5v3')\n return v3\n }\n )}\n \n
\n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"value-demo"}},"qs-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a="http://www.test.com?id=2&name=1",o=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"qs.parse()")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},JSON.stringify(r.qs.parse()))),t["default"].createElement("br",null),t["default"].createElement("p",null,'const url = "http://www.test.com?id=2&name=1"'),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"qs.parse(url)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},JSON.stringify(r.qs.parse(a),null,2))))};return t["default"].createElement(o)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { qs } from '@fexd/tools'\n\nconst url = 'http://www.test.com?id=2&name=1'\n\nexport default () => {\n return (\n <>\n
\n qs.parse() \u7684\u7ed3\u679c\u4e3a\uff1a\n {JSON.stringify(qs.parse())}\n
\n
\n\n

const url = \"http://www.test.com?id=2&name=1\"

\n
\n qs.parse(url) \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(qs.parse(url), null, 2)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"qs-demo"}},"qs-demo-1":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"qs.stringify({ id: 1 })")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},r.qs.stringify({id:1}))),t["default"].createElement("br",null),t["default"].createElement("div",null,t["default"].createElement("span",{style:{color:"#DD4A68"}},"qs.stringify({ id: 2, name: 1 })")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690"}},r.qs.stringify({id:2,name:1}))))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { qs } from '@fexd/tools'\n\nconst url = 'http://www.test.com?id=2&name=1'\n\nexport default () => {\n return (\n <>\n
\n {`qs.stringify({ id: 1 })`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n {qs.stringify({ id: 1 })}\n
\n
\n\n
\n {`qs.stringify({ id: 2, name: 1 })`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {qs.stringify({ id: 2, name: 1 })}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"qs-demo-1"}},"classnames-demo":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("f2HW")),a=t(n("iojd")),o=e(n("nNWW")),i=n("/7QA"),l=function(){var e=(0,o.useState)("primary"),t=(0,a["default"])(e,2),n=t[0],l=t[1],c=(0,o.useMemo)((function(){return"primary"===n?"\u70b9\u6211\u5c06\u4fee\u6539 buttonType \u7684\u503c\u4e3a warning":"\u70b9\u6211\u5c06\u4fee\u6539 buttonType \u7684\u503c\u4e3a primary"}),[n]);return o["default"].createElement(o["default"].Fragment,null,o["default"].createElement("p",null,"\u7c7b\u540d\u53ef\u4e3a\u5b57\u7b26\u4e32\uff1a"),o["default"].createElement("div",null,o["default"].createElement("span",{style:{color:"#DD4A68"}},"classnames('foo', 'bar')")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",o["default"].createElement("span",{style:{color:"#690"}},JSON.stringify((0,i.classnames)("foo","bar"),null,2))),o["default"].createElement("br",null),o["default"].createElement("p",null,"\u4f7f\u7528\u5bf9\u8c61\u6765\u5bf9\u7c7b\u540d\u8fdb\u884c\u6761\u4ef6\u9009\u62e9\uff0ckey \u4e3a\u7c7b\u540d\uff0cvalue \u4e3a true \u624d\u6709\u8fd9\u4e2a\u7c7b\u540d\uff1a"),o["default"].createElement("div",null,o["default"].createElement("span",{style:{color:"#DD4A68"}},"classnames({ 'foo-bar': true })")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",o["default"].createElement("span",{style:{color:"#690"}},JSON.stringify((0,i.classnames)({"foo-bar":!0}),null,2))),o["default"].createElement("br",null),o["default"].createElement("div",null,o["default"].createElement("span",{style:{color:"#DD4A68"}},"classnames({ 'foo-bar': false })")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",o["default"].createElement("span",{style:{color:"#690"}},JSON.stringify((0,i.classnames)({"foo-bar":!1}),null,2))),o["default"].createElement("br",null),o["default"].createElement("div",null,o["default"].createElement("span",{style:{color:"#DD4A68"}},"classnames({ foo: true }, { bar: true })")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",o["default"].createElement("span",{style:{color:"#690"}},JSON.stringify((0,i.classnames)({foo:!0},{bar:!0}),null,2))),o["default"].createElement("br",null),o["default"].createElement("div",null,o["default"].createElement("span",{style:{color:"#DD4A68"}},"classnames({ foo: true, bar: true })")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",o["default"].createElement("span",{style:{color:"#690"}},JSON.stringify((0,i.classnames)({foo:!0,bar:!0}),null,2))),o["default"].createElement("br",null),o["default"].createElement("p",null,"\u7c7b\u540d\u6709\u5b57\u7b26\u4e32\u548c\u5bf9\u8c61\uff1a"),o["default"].createElement("div",null,o["default"].createElement("span",{style:{color:"#DD4A68"}},"classnames('foo', { bar: true })")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",o["default"].createElement("span",{style:{color:"#690"}},JSON.stringify((0,i.classnames)("foo",{bar:!0}),null,2))),o["default"].createElement("br",null),o["default"].createElement("div",null,o["default"].createElement("span",{style:{color:"#DD4A68"}},"classnames('foo', { bar: true, duck: false }, 'baz', { quux: true })")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",o["default"].createElement("span",{style:{color:"#690"}},JSON.stringify((0,i.classnames)("foo",{bar:!0,duck:!1},"baz",{quux:!0}),null,2))),o["default"].createElement("br",null),o["default"].createElement("p",null," falsy \u7684\u503c\u90fd\u4f1a\u88ab\u5ffd\u7565"),o["default"].createElement("div",null,o["default"].createElement("span",{style:{color:"#DD4A68"}},"classnames(null, false, 'bar', undefined, 0, 1, { baz: null }, '')")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",o["default"].createElement("span",{style:{color:"#690"}},JSON.stringify((0,i.classnames)(null,!1,"bar",void 0,0,1,{baz:null},""),null,2))),o["default"].createElement("br",null),o["default"].createElement("p",null," \u6570\u7ec4\u4e5f\u4f1a\u88ab\u62cd\u5e73 "),o["default"].createElement("div",null,o["default"].createElement("span",{style:{color:"#DD4A68"}},"classnames('a', ['b', { c: true, d: false }])")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",o["default"].createElement("span",{style:{color:"#690"}},JSON.stringify((0,i.classnames)("a",["b",{c:!0,d:!1}]),null,2))),o["default"].createElement("br",null),o["default"].createElement("p",null,"\u4f7f\u7528 ES2015 \u52a8\u6001\u7c7b\u540d"),o["default"].createElement("div",null,o["default"].createElement("div",null,o["default"].createElement("button",{onClick:function(){l("warning"===n?"primary":"warning")}},c),o["default"].createElement("span",{style:{paddingLeft:"20px"}},"buttonType \u4e3a ",n)),o["default"].createElement("br",null),o["default"].createElement("span",{style:{color:"#DD4A68"}},"classnames(","{"," [`btn-$","{","buttonType","}","`]: true })")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",o["default"].createElement("span",{style:{color:"#690"}},JSON.stringify((0,i.classnames)((0,r["default"])({},"btn-".concat(n),!0)),null,2))),o["default"].createElement("br",null))};return o["default"].createElement(l)},previewerProps:{sources:{_:{jsx:"import React, { useState, useMemo } from 'react'\nimport { classnames } from '@fexd/tools'\n\nexport default () => {\n const [buttonType, setButtonType] = useState('primary')\n const text = useMemo(() => {\n if (buttonType === 'primary') {\n return '\u70b9\u6211\u5c06\u4fee\u6539 buttonType \u7684\u503c\u4e3a warning'\n }\n return '\u70b9\u6211\u5c06\u4fee\u6539 buttonType \u7684\u503c\u4e3a primary'\n }, [buttonType])\n\n return (\n <>\n

\u7c7b\u540d\u53ef\u4e3a\u5b57\u7b26\u4e32\uff1a

\n
\n {`classnames('foo', 'bar')`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(classnames('foo', 'bar'), null, 2)}\n \n
\n
\n\n

\n \u4f7f\u7528\u5bf9\u8c61\u6765\u5bf9\u7c7b\u540d\u8fdb\u884c\u6761\u4ef6\u9009\u62e9\uff0ckey \u4e3a\u7c7b\u540d\uff0cvalue \u4e3a true \u624d\u6709\u8fd9\u4e2a\u7c7b\u540d\uff1a\n

\n
\n {`classnames({ 'foo-bar': true })`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(classnames({ 'foo-bar': true }), null, 2)}\n \n
\n
\n
\n {`classnames({ 'foo-bar': false })`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(classnames({ 'foo-bar': false }), null, 2)}\n \n
\n
\n
\n {`classnames({ foo: true }, { bar: true })`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(classnames({ foo: true }, { bar: true }), null, 2)}\n \n
\n
\n
\n {`classnames({ foo: true, bar: true })`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(classnames({ foo: true, bar: true }), null, 2)}\n \n
\n
\n\n

\u7c7b\u540d\u6709\u5b57\u7b26\u4e32\u548c\u5bf9\u8c61\uff1a

\n
\n {`classnames('foo', { bar: true })`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(classnames('foo', { bar: true }), null, 2)}\n \n
\n
\n
\n {`classnames('foo', { bar: true, duck: false }, 'baz', { quux: true })`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(\n classnames('foo', { bar: true, duck: false }, 'baz', {\n quux: true,\n }),\n null,\n 2\n )}\n \n
\n
\n\n

falsy \u7684\u503c\u90fd\u4f1a\u88ab\u5ffd\u7565

\n
\n {`classnames(null, false, 'bar', undefined, 0, 1, { baz: null }, '')`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(\n classnames(null, false, 'bar', undefined, 0, 1, { baz: null }, ''),\n null,\n 2\n )}\n \n
\n
\n\n

\u6570\u7ec4\u4e5f\u4f1a\u88ab\u62cd\u5e73

\n
\n {`classnames('a', ['b', { c: true, d: false }])`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(\n classnames('a', ['b', { c: true, d: false }]),\n null,\n 2\n )}\n \n
\n
\n\n

\u4f7f\u7528 ES2015 \u52a8\u6001\u7c7b\u540d

\n
\n
\n {\n setButtonType(buttonType === 'warning' ? 'primary' : 'warning')\n }}\n >\n {text}\n \n \n buttonType \u4e3a {buttonType}\n \n
\n
\n \n classnames({`{`} [`btn-${`{`}buttonType{`}`}`]: true })\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(classnames({ [`btn-${buttonType}`]: true }), null, 2)}\n \n
\n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"classnames-demo"}},"CombJudge-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=[{name:"iPhone X",color:"\u9ed1\u8272",storage:"64g"},{color:"\u9ed1\u8272",name:"iPhone XS",storage:"64g"},{color:"\u767d\u8272",name:"iPhone X",storage:"64g"},{color:"\u767d\u8272",name:"iPhone X",storage:"256g"}],o=new r.CombJudge(a),i=function(){return t["default"].createElement("div",null,t["default"].createElement("div",{style:{color:"#DD4A68"}},"const judge = new CombJudge(product);"),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68"}},"judge.list")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify(o.list,null,2)))};return t["default"].createElement(i)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { CombJudge } from '@fexd/tools'\n\n// \u5546\u54c1\nconst product = [\n {\n name: 'iPhone X',\n color: '\u9ed1\u8272',\n storage: '64g',\n },\n {\n color: '\u9ed1\u8272',\n name: 'iPhone XS',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '256g',\n },\n]\n\nconst judge = new CombJudge(product)\n\nexport default () => {\n return (\n
\n
\n const judge = new CombJudge(product);\n
\n
\n judge.list \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n        {JSON.stringify(judge.list, null, 2)}\n      
\n
\n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"CombJudge-demo"}},"CombJudge-demo-1":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=[{name:"iPhone X",color:"\u9ed1\u8272",storage:"64g"},{color:"\u9ed1\u8272",name:"iPhone XS",storage:"64g"},{color:"\u767d\u8272",name:"iPhone X",storage:"64g"},{color:"\u767d\u8272",name:"iPhone X",storage:"256g"}],o=new r.CombJudge(a),i=function(){return t["default"].createElement("div",null,t["default"].createElement("div",{style:{color:"#DD4A68"}},"const judge = new CombJudge(product);"),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68"}},"judge.attrKey")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify(o.attrKey,null,2)))};return t["default"].createElement(i)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { CombJudge } from '@fexd/tools'\n\n// \u5546\u54c1\nconst product = [\n {\n name: 'iPhone X',\n color: '\u9ed1\u8272',\n storage: '64g',\n },\n {\n color: '\u9ed1\u8272',\n name: 'iPhone XS',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '256g',\n },\n]\n\nconst judge = new CombJudge(product)\n\nexport default () => {\n return (\n
\n
\n const judge = new CombJudge(product);\n
\n
\n judge.attrKey \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n        {JSON.stringify(judge.attrKey, null, 2)}\n      
\n
\n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"CombJudge-demo-1"}},"CombJudge-demo-2":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=[{name:"iPhone X",color:"\u9ed1\u8272",storage:"64g"},{color:"\u9ed1\u8272",name:"iPhone XS",storage:"64g"},{color:"\u767d\u8272",name:"iPhone X",storage:"64g"},{color:"\u767d\u8272",name:"iPhone X",storage:"256g"}],o=new r.CombJudge(a),i=function(){return t["default"].createElement("div",null,t["default"].createElement("div",{style:{color:"#DD4A68"}},"const judge = new CombJudge(product);"),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68"}},"judge.attr")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify(o.attr,null,2)))};return t["default"].createElement(i)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { CombJudge } from '@fexd/tools'\n\n// \u5546\u54c1\nconst product = [\n {\n name: 'iPhone X',\n color: '\u9ed1\u8272',\n storage: '64g',\n },\n {\n color: '\u9ed1\u8272',\n name: 'iPhone XS',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '256g',\n },\n]\n\nconst judge = new CombJudge(product)\n\nexport default () => {\n return (\n
\n
\n const judge = new CombJudge(product);\n
\n
\n judge.attr \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n        {JSON.stringify(judge.attr, null, 2)}\n      
\n
\n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"CombJudge-demo-2"}},"CombJudge-demo-3":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=[{name:"iPhone X",color:"\u9ed1\u8272",storage:"64g"},{color:"\u9ed1\u8272",name:"iPhone XS",storage:"64g"},{color:"\u767d\u8272",name:"iPhone X",storage:"64g"},{color:"\u767d\u8272",name:"iPhone X",storage:"256g"}],o=new r.CombJudge(a),i=function(){return t["default"].createElement("div",null,t["default"].createElement("div",{style:{color:"#DD4A68"}},"const judge = new CombJudge(product);"),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},'judge.have({ name: "iPhone X", color: "\u9ed1\u8272", storage: "64g" })')," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},o.have({name:"iPhone X",color:"\u9ed1\u8272",storage:"64g"}).toString()),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},'judge.have({ name: "iPhone X", color: "\u9ed1\u8272", storage: "128g" })')," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},o.have({name:"iPhone X",color:"\u9ed1\u8272",storage:"128g"}).toString()),t["default"].createElement("br",null))};return t["default"].createElement(i)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { CombJudge } from '@fexd/tools'\n\n// \u5546\u54c1\nconst product = [\n {\n name: 'iPhone X',\n color: '\u9ed1\u8272',\n storage: '64g',\n },\n {\n color: '\u9ed1\u8272',\n name: 'iPhone XS',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '256g',\n },\n]\n\nconst judge = new CombJudge(product)\n\nexport default () => {\n return (\n
\n
\n const judge = new CombJudge(product);\n
\n
\n {`judge.have({ name: \"iPhone X\", color: \"\u9ed1\u8272\", storage: \"64g\" })`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {judge\n .have({ name: 'iPhone X', color: '\u9ed1\u8272', storage: '64g' })\n .toString()}\n \n
\n {`judge.have({ name: \"iPhone X\", color: \"\u9ed1\u8272\", storage: \"128g\" })`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {judge\n .have({ name: 'iPhone X', color: '\u9ed1\u8272', storage: '128g' })\n .toString()}\n \n
\n
\n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"CombJudge-demo-3"}},"CombJudge-demo-4":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=[{name:"iPhone X",color:"\u9ed1\u8272",storage:"64g"},{color:"\u9ed1\u8272",name:"iPhone XS",storage:"64g"},{color:"\u767d\u8272",name:"iPhone X",storage:"64g"},{color:"\u767d\u8272",name:"iPhone X",storage:"256g"}],o=new r.CombJudge(a),i=function(){return t["default"].createElement("div",null,t["default"].createElement("div",{style:{color:"#DD4A68"}},"const judge = new CombJudge(product);"),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},'judge.find({ name: "iPhone X", color: "\u9ed1\u8272", storage: "64g" })')," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},o.find({name:"iPhone X",color:"\u9ed1\u8272",storage:"64g"}).toString()),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},'judge.find({ name: "iPhone X", color: "\u9ed1\u8272", storage: "128g" })')," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},"".concat(o.find({name:"iPhone X",color:"\u9ed1\u8272",storage:"128g"}))),t["default"].createElement("br",null))};return t["default"].createElement(i)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { CombJudge } from '@fexd/tools'\n\n// \u5546\u54c1\nconst product = [\n {\n name: 'iPhone X',\n color: '\u9ed1\u8272',\n storage: '64g',\n },\n {\n color: '\u9ed1\u8272',\n name: 'iPhone XS',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '256g',\n },\n]\n\nconst judge = new CombJudge(product)\n\nexport default () => {\n return (\n
\n
\n const judge = new CombJudge(product);\n
\n
\n {`judge.find({ name: \"iPhone X\", color: \"\u9ed1\u8272\", storage: \"64g\" })`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {judge\n .find({ name: 'iPhone X', color: '\u9ed1\u8272', storage: '64g' })\n .toString()}\n \n
\n {`judge.find({ name: \"iPhone X\", color: \"\u9ed1\u8272\", storage: \"128g\" })`}{' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {`${judge.find({ name: 'iPhone X', color: '\u9ed1\u8272', storage: '128g' })}`}\n \n
\n
\n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"CombJudge-demo-4"}},"CombJudge-demo-5":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=[{name:"iPhone X",color:"\u9ed1\u8272",storage:"64g"},{color:"\u9ed1\u8272",name:"iPhone XS",storage:"64g"},{color:"\u767d\u8272",name:"iPhone X",storage:"64g"},{color:"\u767d\u8272",name:"iPhone X",storage:"256g"}],o=new r.CombJudge(a),i=o.adaptedAttr({name:"iPhone X",color:"\u9ed1\u8272"}),l=function(){return t["default"].createElement("div",null,t["default"].createElement("div",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"const judge = new CombJudge(product);"),t["default"].createElement("div",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},'const adaptedAttr = judge.adaptedAttr({ name: "iPhone X", color: "\u9ed1\u8272" })'),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},"adaptedAttr")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify(i,null,2)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},"adaptedAttr['name']")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify(i["name"])),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},"adaptedAttr['color']")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify(i["color"])),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},"adaptedAttr['storage']")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify(i["storage"])),t["default"].createElement("br",null))};return t["default"].createElement(l)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { CombJudge } from '@fexd/tools'\n\n// \u5546\u54c1\nconst product = [\n {\n name: 'iPhone X',\n color: '\u9ed1\u8272',\n storage: '64g',\n },\n {\n color: '\u9ed1\u8272',\n name: 'iPhone XS',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '256g',\n },\n]\n\nconst judge = new CombJudge(product)\nconst adaptedAttr = judge.adaptedAttr({ name: 'iPhone X', color: '\u9ed1\u8272' })\n\nexport default () => {\n return (\n
\n \n const judge = new CombJudge(product);\n
\n \n {`const adaptedAttr = judge.adaptedAttr({ name: \"iPhone X\", color: \"\u9ed1\u8272\" })`}\n \n
\n {`adaptedAttr`} \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n        {JSON.stringify(adaptedAttr, null, 2)}\n      
\n
\n {`adaptedAttr['name']`} \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(adaptedAttr['name'])}\n \n
\n {`adaptedAttr['color']`} \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(adaptedAttr['color'])}\n \n
\n {`adaptedAttr['storage']`} \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(adaptedAttr['storage'])}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"CombJudge-demo-5"}},"CombJudge-demo-6":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("G3cz")),a=t(n("iojd")),o=e(n("nNWW")),i=n("/7QA"),l=[{name:"iPhone X",color:"\u9ed1\u8272",storage:"64g"},{color:"\u9ed1\u8272",name:"iPhone XS",storage:"64g"},{color:"\u767d\u8272",name:"iPhone X",storage:"64g"},{color:"\u767d\u8272",name:"iPhone X",storage:"256g"}],c={margin:"0 20px",padding:"5px 10px",color:"rgba(0,0,0,.25)",background:"#f5f5f5",border:"1px solid",borderColor:"#d9d9d9"},u={margin:"0 20px",padding:"5px 10px",color:"rgba(0,0,0,.85)",background:"#fff",border:"1px solid",borderColor:"#d9d9d9"},s={margin:"0 20px",padding:"5px 10px",color:"#fff",background:"#1890ff",border:"1px solid",borderColor:"#1890ff"},f={name:"\u578b\u53f7",color:"\u989c\u8272",storage:"\u5185\u5b58"},d=new i.CombJudge(l),p=d.attr,m=d.attrKey,h=function(){var e=m.map((function(e){return{label:e,list:p[e]}})),t=(0,o.useState)({}),n=(0,a["default"])(t,2),i=n[0],l=n[1],h=(0,o.useMemo)((function(){return d.adaptedAttr(i)}),[i]),v=(0,o.useMemo)((function(){var t={};return e.forEach((function(e){var n=e.label,r=e.list;t[n]={},r.forEach((function(e){t[n][e]=-1,h[n].includes(e)&&(t[n][e]=0)}))})),t}),[h]);function g(e,t){if(-1!==v[e]){var n=(0,r["default"])({},i);n[t]===e?delete n[t]:n[t]=e,l(n)}}return o["default"].createElement(o["default"].Fragment,null,e.map((function(e,t){return o["default"].createElement("div",{key:t},o["default"].createElement("p",null,f[e.label]),o["default"].createElement("div",null,e.list.map((function(t,n){return o["default"].createElement("span",{key:n,onClick:function(){return g(t,e.label)},style:-1===v[e.label][t]?c:i[e.label]===t?s:u},t)}))))})))};return o["default"].createElement(h)},previewerProps:{sources:{_:{jsx:"import React, { useState, useEffect, useMemo } from 'react'\nimport { CombJudge } from '@fexd/tools'\n\n// \u5546\u54c1\nconst product = [\n {\n name: 'iPhone X',\n color: '\u9ed1\u8272',\n storage: '64g',\n },\n {\n color: '\u9ed1\u8272',\n name: 'iPhone XS',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '256g',\n },\n]\n// \u6837\u5f0f\u4eec\nconst disabledStyle = {\n margin: '0 20px',\n padding: '5px 10px',\n color: 'rgba(0,0,0,.25)',\n background: '#f5f5f5',\n border: '1px solid',\n borderColor: '#d9d9d9',\n}\nconst normalStyle = {\n margin: '0 20px',\n padding: '5px 10px',\n color: 'rgba(0,0,0,.85)',\n background: '#fff',\n border: '1px solid',\n borderColor: '#d9d9d9',\n}\nconst selectedStyle = {\n margin: '0 20px',\n padding: '5px 10px',\n color: '#fff',\n background: '#1890ff',\n border: '1px solid',\n borderColor: '#1890ff',\n}\n\nconst zh = {\n name: '\u578b\u53f7',\n color: '\u989c\u8272',\n storage: '\u5185\u5b58',\n}\n\nconst judge = new CombJudge(product)\nconst { attr, attrKey } = judge\n\nexport default () => {\n // \u6e32\u67d3\u7684\u9009\u62e9\u89c4\u683c\u6570\u636e\n const renderProduct = attrKey.map((key) => {\n return {\n label: key,\n list: attr[key],\n }\n })\n // \u5f53\u524d\u9009\u4e2d\u7684\u6570\u636e\n const [selected, setSelected] = useState({})\n // \u53ef\u88ab\u9009\u7684\u6570\u636e\n const adaptedAttr = useMemo(() => judge.adaptedAttr(selected), [selected])\n // \u9009\u9879\u7684\u72b6\u6001\n const optionStatus = useMemo(() => {\n const result = {}\n renderProduct.forEach((item) => {\n const key = item.label\n const list = item.list\n result[key] = {}\n list.forEach((option) => {\n result[key][option] = -1\n if (adaptedAttr[key].includes(option)) {\n result[key][option] = 0\n }\n })\n })\n return result\n }, [adaptedAttr])\n\n function onClick(value, option) {\n // \u7981\u7528\u4e0d\u53ef\u70b9\n if (optionStatus[value] === -1) {\n return\n }\n\n const tempSelected = { ...selected }\n // \u662f\u5426\u662f\u53d6\u6d88\n if (tempSelected[option] === value) {\n delete tempSelected[option]\n } else {\n tempSelected[option] = value\n }\n setSelected(tempSelected)\n }\n\n return (\n <>\n {renderProduct.map((options, index) => (\n
\n

{zh[options.label]}

\n
\n {options.list.map((item, itemIdx) => (\n onClick(item, options.label)}\n style={\n optionStatus[options.label][item] === -1\n ? disabledStyle\n : selected[options.label] === item\n ? selectedStyle\n : normalStyle\n }\n >\n {item}\n \n ))}\n
\n
\n ))}\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"CombJudge-demo-6"}},"globalThis-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA");console.log(r.globalThis);var a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"globalThis.innerHeight")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},r.globalThis.innerHeight),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"globalThis.innerWidth")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},r.globalThis.innerWidth),t["default"].createElement("br",null),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"globalThis.screen.availWidth")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},r.globalThis.screen.availWidth),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"globalThis.screen.availHeight")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},r.globalThis.screen.availHeight),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { globalThis } from '@fexd/tools'\n\nconsole.log(globalThis)\nexport default () => {\n return (\n <>\n \n globalThis.innerHeight\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {globalThis.innerHeight}\n \n
\n \n globalThis.innerWidth\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {globalThis.innerWidth}\n \n
\n
\n \n globalThis.screen.availWidth\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {globalThis.screen.availWidth}\n \n
\n \n globalThis.screen.availHeight\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {globalThis.screen.availHeight}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"globalThis-demo"}},"clamp-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"clamp(10, 20)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},(0,r.clamp)(10,20)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"clamp(10, 20, 30)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},(0,r.clamp)(10,20,30)),t["default"].createElement("br",null),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"clamp(40, 20, 30)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},(0,r.clamp)(40,20,30)),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"clamp(25, 20, 30)")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},(0,r.clamp)(25,20,30)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { clamp } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n clamp(10, 20)\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {clamp(10, 20)}\n \n
\n \n clamp(10, 20, 30)\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {clamp(10, 20, 30)}\n \n
\n
\n \n clamp(40, 20, 30)\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {clamp(40, 20, 30)}\n \n
\n \n clamp(25, 20, 30)\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {clamp(25, 20, 30)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"clamp-demo"}},"flatten-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"flatten([1, 2, 3, [1, 2, [1, 2, 3, 4], 3, 4], 4]")," ","\u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.flatten)([1,2,3,[1,2,[1,2,3,4],3,4],4]),null,1)),t["default"].createElement("br",null))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { flatten } from '@fexd/tools'\n\nexport default () => {\n return (\n <>\n \n flatten([1, 2, 3, [1, 2, [1, 2, 3, 4], 3, 4], 4]\n {' '}\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {JSON.stringify(\n flatten([1, 2, 3, [1, 2, [1, 2, 3, 4], 3, 4], 4]),\n null,\n 1\n )}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"flatten-demo"}},"groupBy-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=[1,2,3,4,5,6,7];function o(e){return e%2===0?"even":"odd"}var i=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("div",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"const arr = [1, 2, 3, 4, 5, 6, 7];"),t["default"].createElement("pre",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"function groupFunc(value) {",t["default"].createElement("br",null)," if (value % 2 === 0) {",t["default"].createElement("br",null),' return "even";',t["default"].createElement("br",null)," } else {",t["default"].createElement("br",null),' return "odd";',t["default"].createElement("br",null)," }",t["default"].createElement("br",null),"}"),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"groupBy(groupFunc, arr)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify((0,r.groupBy)(o,a),null,2)),t["default"].createElement("br",null))};return t["default"].createElement(i)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { groupBy } from '@fexd/tools'\n\nconst arr = [1, 2, 3, 4, 5, 6, 7]\n\nfunction groupFunc(value) {\n if (value % 2 === 0) {\n return 'even'\n } else {\n return 'odd'\n }\n}\n\nexport default () => {\n return (\n <>\n \n const arr = [1, 2, 3, 4, 5, 6, 7];\n \n \n {`function groupFunc(value) {`}\n
\n {` if (value % 2 === 0) {`}\n
\n {` return \"even\";`}\n
\n {` } else {`}\n
\n {` return \"odd\";`}\n
\n {` }`}\n
\n {`}`}\n \n
\n \n groupBy(groupFunc, arr)\n \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n        {JSON.stringify(groupBy(groupFunc, arr), null, 2)}\n      
\n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"groupBy-demo"}},"curry-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA");function a(e,t,n,r){return e+t+n+r}var o=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("pre",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"function add(a, b, c, d) {",t["default"].createElement("br",null)," return a + b + c + d;",t["default"].createElement("br",null),"}"),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"curry(add)(1, 2)(3, 4)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},(0,r.curry)(a)(1,2)(3,4)),t["default"].createElement("br",null))};return t["default"].createElement(o)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { curry } from '@fexd/tools'\n\nfunction add(a, b, c, d) {\n return a + b + c + d\n}\n\nexport default () => {\n return (\n <>\n \n {`function add(a, b, c, d) {`}\n
\n {` return a + b + c + d;`}\n
\n {`}`}\n \n \n curry(add)(1, 2)(3, 4)\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {curry(add)(1, 2)(3, 4)}\n \n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"curry-demo"}},"\u4e0b\u5212\u7ebf-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a={a:"hello world"};function o(e,t,n,r){return console.log(this.a),this.arr=arguments,e+t+n+r}var i=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("div",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},'const context = { a: "hello world" };'),t["default"].createElement("pre",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"function add(a, b, c, d) {",t["default"].createElement("br",null)," console.log(this.a);",t["default"].createElement("br",null)," this.arr = arguments;",t["default"].createElement("br",null)," return a + b + c + d;",t["default"].createElement("br",null),"}"),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"__(add, context)(1, 2)(3, 4)")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("span",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},(0,r.__)(o,a)(1,2)(3,4)),t["default"].createElement("br",null),t["default"].createElement("br",null),t["default"].createElement("span",{style:{color:"#DD4A68",fontSize:"14px",fontFamily:"Consolas"}},"context.arr")," \u7684\u7ed3\u679c\u4e3a\uff1a",t["default"].createElement("pre",{style:{color:"#690",fontSize:"14px",fontFamily:"Consolas"}},JSON.stringify(a.arr,null,2)),t["default"].createElement("br",null))};return t["default"].createElement(i)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { __ } from '@fexd/tools'\n\nconst context = {\n a: 'hello world',\n}\n\nfunction add(a, b, c, d) {\n console.log(this.a)\n this.arr = arguments\n return a + b + c + d\n}\n\nexport default () => {\n return (\n <>\n \n {`const context = { a: \"hello world\" };`}\n \n \n {`function add(a, b, c, d) {`}\n
\n {` console.log(this.a);`}\n
\n {` this.arr = arguments;`}\n
\n {` return a + b + c + d;`}\n
\n {`}`}\n \n
\n \n __(add, context)(1, 2)(3, 4)\n \u7684\u7ed3\u679c\u4e3a\uff1a\n \n {__(add, context)(1, 2)(3, 4)}\n \n
\n
\n \n context.arr\n \u7684\u7ed3\u679c\u4e3a\uff1a\n
\n        {JSON.stringify(context.arr, null, 2)}\n      
\n
\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"\u4e0b\u5212\u7ebf-demo"}},"preloadImage-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a="https://static.k366.com/uploads/allimg/181008/7-1Q00Q51023331.jpg";(0,r.preloadImage)([a]);var o=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("img",{src:a,alt:"pig"}))};return t["default"].createElement(o)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { preloadImage } from '@fexd/tools'\n\nconst pig = 'https://static.k366.com/uploads/allimg/181008/7-1Q00Q51023331.jpg'\npreloadImage([pig])\n\nexport default () => {\n return (\n <>\n \"pig\"\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"preloadImage-demo"}},"ScrollListener-demo":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("iojd")),a=e(n("nNWW")),o=n("/7QA"),i=(0,a.useRef)(),l=(0,a.useRef)({}),c=[1,2,3,4],u=[new Array(24).fill("111111111111"),new Array(24).fill("22222"),new Array(24).fill("3333333333"),new Array(24).fill("44444")];function s(e){return function(t){t&&(l.current[e]=t)}}var f=function(){var e=(0,a.useState)(1),t=(0,r["default"])(e,2),n=t[0],f=t[1];return(0,a.useEffect)((function(){new o.ScrollListener({element:i.current,distanceEvents:c.map((function(e,t){return{dynamic:!0,distance:function(){return(0,o.clamp)((0,o.get)(l.current[e],"offsetTop",0),0)},onGoingIn:function(){f(e-1>1?e-1:1)},onGoingOut:function(){f(e)}}}))})}),[]),a["default"].createElement(a["default"].Fragment,null,a["default"].createElement("p",null,"\u5f53\u524d\u5728\u754c\u9762\uff1a",n),a["default"].createElement("div",{ref:i,style:{position:"relative",border:"1px solid #C8E1FF",background:"#F1F8FF",height:"500px",width:"300px",overflow:"auto"}},u.map((function(e,t){return a["default"].createElement("div",{key:t,ref:s(t+1)},e.map((function(e,t){return a["default"].createElement("div",{key:t},e)})))}))))};return a["default"].createElement(f)},previewerProps:{sources:{_:{jsx:"import React, { useState, useRef, useEffect } from 'react'\nimport { ScrollListener, get, clamp } from '@fexd/tools'\n\nconst scrollView = useRef()\nconst anchors = useRef({})\n\nconst tabs = [1, 2, 3, 4]\nconst text = [\n new Array(24).fill('111111111111'),\n new Array(24).fill('22222'),\n new Array(24).fill('3333333333'),\n new Array(24).fill('44444'),\n]\n\nfunction setAnchor(name) {\n return (dom) => {\n if (dom) {\n // dom.style.borderTop = 'solid 1px red'\n anchors.current[name] = dom\n }\n }\n}\n\nexport default () => {\n const [distanceText, setDistanceText] = useState(1)\n\n useEffect(() => {\n new ScrollListener({\n // \u6eda\u52a8\u5bb9\u5668\uff0c\u9700\u8bbe\u7f6e overflow: scroll/auto;\n element: scrollView.current,\n distanceEvents: tabs.map((tab, idx) => ({\n dynamic: true,\n distance: () => clamp(get(anchors.current[tab], 'offsetTop', 0), 0),\n onGoingIn() {\n setDistanceText(tab - 1 > 1 ? tab - 1 : 1)\n },\n onGoingOut() {\n setDistanceText(tab)\n },\n })),\n })\n }, [])\n return (\n <>\n

\u5f53\u524d\u5728\u754c\u9762\uff1a{distanceText}

\n \n {text.map((arr, arrIdx) => (\n
\n {arr.map((text, textIdx) => (\n
{text}
\n ))}\n
\n ))}\n \n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"ScrollListener-demo"}},"debounce-demo":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("iojd")),a=e(n("nNWW")),o=n("/7QA"),i=(0,o.debounce)((function(e){e()}),2e3),l=function(){var e=(0,a.useState)(0),t=(0,r["default"])(e,2),n=t[0],o=t[1];return a["default"].createElement(a["default"].Fragment,null,a["default"].createElement("h1",null,"num: ",n),a["default"].createElement("button",{onClick:function(){return i((function(){return o(n+1)}))}},"\u54ea\u6015\u72c2\u6309\u6309\u94ae\uff0c\u4e5f\u53ea\u5728\u6700\u540e\u4e00\u6b21\u70b9\u51fb\u7684 2s \u540e\u624d\u6267\u884c\u4e00\u6b21\u52a01"))};return a["default"].createElement(l)},previewerProps:{sources:{_:{jsx:"import React, { useState } from 'react'\nimport { debounce } from '@fexd/tools'\n\nconst debounceFunc = debounce((plus) => {\n plus()\n}, 2000)\n\nexport default () => {\n const [num, setNum] = useState(0)\n\n return (\n <>\n

num: {num}

\n \n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"debounce-demo"}},"throttle-demo":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("iojd")),a=e(n("nNWW")),o=n("/7QA"),i=(0,o.throttle)((function(e){e()}),5e3),l=function(){var e=(0,a.useState)(0),t=(0,r["default"])(e,2),n=t[0],o=t[1];return a["default"].createElement(a["default"].Fragment,null,a["default"].createElement("h1",null,"num: ",n),a["default"].createElement("button",{onClick:function(){return i((function(){return o(n+1)}))}},"5s\u91cc\u54ea\u6015\u72c2\u6309\u6309\u94ae\u4e5f\u53ea\u6267\u884c\u4e00\u6b21\u52a01"))};return a["default"].createElement(l)},previewerProps:{sources:{_:{jsx:"import React, { useState } from 'react'\nimport { throttle } from '@fexd/tools'\n\nconst throttleFunc = throttle((plus) => {\n plus()\n}, 5000)\n\nexport default () => {\n const [num, setNum] = useState(0)\n\n return (\n <>\n

num: {num}

\n \n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"throttle-demo"}},"SAS-demo":{component:function(){var e=n("P/vu")["default"],t=n("uKmp")["default"],r=t(n("DBVu")),a=t(n("GAyR")),o=t(n("iojd")),i=e(n("nNWW")),l=n("/7QA"),c=function(){var e=(0,i.useState)(0),t=(0,o["default"])(e,2),n=t[0],c=t[1];function u(){return new Promise((function(e){setTimeout(e,3e3,"done")}))}var s=(0,l.SAS)(u);return i["default"].createElement(i["default"].Fragment,null,i["default"].createElement("p",null,"count: ",n),i["default"].createElement("button",{onClick:(0,a["default"])((0,r["default"])().mark((function e(){return(0,r["default"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,s();case 2:c(n+1);case 3:case"end":return e.stop()}}),e)})))},"\u70b9\u6211\u52a01\uff0c3\u79d2\u5185\u53ea\u8bf7\u6c42\u4e00\u6b21"))};return i["default"].createElement(c)},previewerProps:{sources:{_:{jsx:"import React, { useState } from 'react'\nimport { SAS, delay } from '@fexd/tools'\n\nexport default () => {\n const [count, setCount] = useState(0)\n\n function query() {\n return new Promise((resolve) => {\n // \u505a\u4e00\u4e9b\u5f02\u6b65\u64cd\u4f5c\n setTimeout(resolve, 3000, 'done')\n })\n }\n\n const sas = SAS(query)\n\n return (\n <>\n

count: {count}

\n {\n await sas()\n setCount(count + 1)\n }}\n >\n \u70b9\u6211\u52a01\uff0c3\u79d2\u5185\u53ea\u8bf7\u6c42\u4e00\u6b21\n \n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"SAS-demo"}},"url-demo":{component:function(){var e=n("uKmp")["default"],t=e(n("nNWW")),r=n("/7QA"),a=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("h2",null,"\u6253\u5f00\u63a7\u5236\u53f0\u67e5\u770b\u8f93\u51fa\u7684 url \u5bf9\u8c61"),'console.log("url\u5bf9\u8c61", url)',console.log("url\u5bf9\u8c61",r.url))};return t["default"].createElement(a)},previewerProps:{sources:{_:{jsx:"import React from 'react'\nimport { url } from '@fexd/tools'\n\nexport default () => {\n const testUrl = 'http://www.test.com?id=2&name=1'\n\n return (\n <>\n

\u6253\u5f00\u63a7\u5236\u53f0\u67e5\u770b\u8f93\u51fa\u7684 url \u5bf9\u8c61

\n console.log(\"url\u5bf9\u8c61\", url)\n {console.log('url\u5bf9\u8c61', url)}\n \n )\n}"}},dependencies:{react:{version:"16.14.0"},"@fexd/tools":{version:"0.1.0"}},identifier:"url-demo"}}},c=n("x2v5"),u=n("SpTn"),s=n.n(u);t["default"]=e=>o.a.createElement(s.a,r({},e,{config:i,demos:l,apis:c}))},ahVg:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("sErw"),i=n("v3z7"),l=n("QHn5"),c=n("uZx/");r({target:"Map",proto:!0,real:!0,forced:a},{every:function(e){var t=o(this),n=l(t),r=i(e,arguments.length>1?arguments[1]:void 0,3);return!c(n,(function(e,n){if(!r(n,e,t))return c.stop()}),void 0,!0,!0).stopped}})},asw4:function(e,t,n){"use strict";function r(e,t){for(var n=0;n{var t=e.demos,n=t["isError-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"iserror"},a.a.createElement(o["AnchorLink"],{to:"#iserror","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isError"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a Error \u7c7b\u578b\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isError: (value: any) => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value \uff0c\u8981\u5224\u65ad\u7684\u6570\u636e")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u662f ",a.a.createElement("code",null,"Error")," \u7c7b\u578b"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u4e0d\u662f ",a.a.createElement("code",null,"Error")," \u7c7b\u578b")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isError-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},b4Yr:function(e,t,n){},bCY9:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("i0LQ"),a=new r["Plugin"]({validKeys:["modifyClientRenderOpts","patchRoutes","rootContainer","render","onRouteChange","__mfsu"]})},bHKe:function(e,t,n){var r=n("OOCw"),a=n("6SQG"),o=n("bbNk"),i=!a.setImmediate||!a.clearImmediate;r({global:!0,bind:!0,enumerable:!0,forced:i},{setImmediate:o.set,clearImmediate:o.clear})},bIC1:function(e,t,n){(function(t){var n="Expected a function",r=NaN,a="[object Symbol]",o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,d=s||f||Function("return this")(),p=Object.prototype,m=p.toString,h=Math.max,v=Math.min,g=function(){return d.Date.now()};function y(e,t,r){var a,o,i,l,c,u,s=0,f=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError(n);function m(t){var n=a,r=o;return a=o=void 0,s=t,l=e.apply(r,n),l}function y(e){return s=e,c=setTimeout(x,t),f?m(e):l}function b(e){var n=e-u,r=e-s,a=t-n;return d?v(a,i-r):a}function w(e){var n=e-u,r=e-s;return void 0===u||n>=t||n<0||d&&r>=i}function x(){var e=g();if(w(e))return S(e);c=setTimeout(x,b(e))}function S(e){return c=void 0,p&&a?m(e):(a=o=void 0,l)}function O(){void 0!==c&&clearTimeout(c),s=0,a=u=o=c=void 0}function A(){return void 0===c?l:S(g())}function j(){var e=g(),n=w(e);if(a=arguments,o=this,u=e,n){if(void 0===c)return y(u);if(d)return c=setTimeout(x,t),m(u)}return void 0===c&&(c=setTimeout(x,t)),l}return t=k(t)||0,E(r)&&(f=!!r.leading,d="maxWait"in r,i=d?h(k(r.maxWait)||0,t):i,p="trailing"in r?!!r.trailing:p),j.cancel=O,j.flush=A,j}function b(e,t,r){var a=!0,o=!0;if("function"!=typeof e)throw new TypeError(n);return E(r)&&(a="leading"in r?!!r.leading:a,o="trailing"in r?!!r.trailing:o),y(e,t,{leading:a,maxWait:t,trailing:o})}function E(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function w(e){return!!e&&"object"==typeof e}function x(e){return"symbol"==typeof e||w(e)&&m.call(e)==a}function k(e){if("number"==typeof e)return e;if(x(e))return r;if(E(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=E(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=l.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):i.test(e)?r:+e}e.exports=b}).call(this,n("bQdJ"))},bK3N:function(e,t,n){var r=n("+U9+"),a=n("e3zV"),o=n("PWyJ"),i=n("GLf+"),l=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,f=u.toString,d=s.hasOwnProperty,p=RegExp("^"+f.call(d).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(e){if(!o(e)||a(e))return!1;var t=r(e)?p:c;return t.test(i(e))}e.exports=m},bOH8:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["qs-demo"].component,r=t["qs-demo-1"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"qs"},a.a.createElement(o["AnchorLink"],{to:"#qs","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"qs"),a.a.createElement("p",null,"qs \u5e93\u7b80\u6613\u5b9e\u73b0\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"qs: {\n parse: (str: any) => {}\n stringify: (params?: {}) => string\n}",lang:"ts"}),a.a.createElement("h3",{id:"qsparse"},a.a.createElement(o["AnchorLink"],{to:"#qsparse","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"qs.parse"),a.a.createElement("p",null,"\u4e0e\u672c\u5de5\u5177\u5e93\u7684 ",a.a.createElement("code",null,"url.allParam")," \u529f\u80fd\u76f8\u540c\uff0c\u4ece\u5f53\u524d\u7684 url \u4e2d\u83b7\u53d6\u5230\u6240\u6709\u53c2\u6570\u3002"),a.a.createElement("h4",{id:"\u8bed\u6cd5-1"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5-1","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"parse: (str: any) => {}",lang:"ts"}),a.a.createElement("h4",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"url\uff0c\u4e3a\u4e86\u907f\u514d\u67d0\u79cd\u62ff\u4e0d\u5230\u7684\u573a\u666f\uff0c\u53ef\u4f20\u5165\u8981\u4ece\u4e2d\u89e3\u6790\u53c2\u6570\u7684 url")),a.a.createElement("h4",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u4ece url \u4e2d\u89e3\u6790\u51fa\u6765\u7684\u53c2\u6570\u5bf9\u8c61")),a.a.createElement("h4",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["qs-demo"].previewerProps,a.a.createElement(n,null)),a.a.createElement("div",{className:"markdown"},a.a.createElement("h3",{id:"qsstringify"},a.a.createElement(o["AnchorLink"],{to:"#qsstringify","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"qs.stringify"),a.a.createElement("p",null,"\u5c06\u5bf9\u8c61\u5e8f\u5217\u5316\u6210 URL \u7684\u5f62\u5f0f\uff0c\u4ee5 & \u8fdb\u884c\u62fc\u63a5\u3002"),a.a.createElement("p",null,"\u4e0e\u672c\u5de5\u5177\u5e93\u7684 ",a.a.createElement("code",null,"url.generateParamStr")," \u529f\u80fd\u76f8\u4f3c\uff0c\u4f46 ",a.a.createElement("code",null,"url.generateParamStr")," \u8fd4\u56de\u7684\u7ed3\u679c\u6709 ",a.a.createElement("code",null,"?")," \uff0c\u800c ",a.a.createElement("code",null,"qs.stringify")," \u7684\u8fd4\u56de\u7ed3\u679c\u6ca1\u6709\u3002"),a.a.createElement("h4",{id:"\u8bed\u6cd5-2"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5-2","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"stringify: (params?: {}) => string",lang:"ts"}),a.a.createElement("h4",{id:"\u53c2\u6570-1"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570-1","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u8981\u5e8f\u5217\u5316\u4e3a url \u5f62\u5f0f\u7684\u53c2\u6570\u5bf9\u8c61")),a.a.createElement("h4",{id:"\u8fd4\u56de\u503c-1"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c-1","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u4ee5 & \u62fc\u63a5\u540e\u7684\u5b57\u7b26\u4e32")),a.a.createElement("h4",{id:"\u4e3e\u4f8b-1"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b-1","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["qs-demo-1"].previewerProps,a.a.createElement(r,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},bQdJ:function(e,t){(function(t){e.exports=function(){var e={873:function(e){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(n){"object"===typeof window&&(t=window)}e.exports=t}},n={};function r(t){if(n[t])return n[t].exports;var a=n[t]={exports:{}},o=!0;try{e[t](a,a.exports,r),o=!1}finally{o&&delete n[t]}return a.exports}return r.ab=t+"/",r(873)}()}).call(this,"/")},bUaa:function(e,t,n){(function(e){var r=n("yn9n"),a=t&&!t.nodeType&&t,o=a&&"object"==typeof e&&e&&!e.nodeType&&e,i=o&&o.exports===a,l=i&&r.process,c=function(){try{var e=o&&o.require&&o.require("util").types;return e||l&&l.binding&&l.binding("util")}catch(t){}}();e.exports=c}).call(this,n("vhgi")(e))},bbNk:function(e,t,n){var r,a,o,i=n("6SQG"),l=n("h+/6"),c=n("kk5s"),u=n("v3z7"),s=n("RtP/"),f=n("73fw"),d=n("ytxp"),p=i.location,m=i.setImmediate,h=i.clearImmediate,v=i.process,g=i.MessageChannel,y=i.Dispatch,b=0,E={},w="onreadystatechange",x=function(e){if(E.hasOwnProperty(e)){var t=E[e];delete E[e],t()}},k=function(e){return function(){x(e)}},S=function(e){x(e.data)},O=function(e){i.postMessage(e+"",p.protocol+"//"+p.host)};m&&h||(m=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return E[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},h=function(e){delete E[e]},"process"==c(v)?r=function(e){v.nextTick(k(e))}:y&&y.now?r=function(e){y.now(k(e))}:g&&!d?(a=new g,o=a.port2,a.port1.onmessage=S,r=u(o.postMessage,o,1)):!i.addEventListener||"function"!=typeof postMessage||i.importScripts||l(O)||"file:"===p.protocol?r=w in f("script")?function(e){s.appendChild(f("script"))[w]=function(){s.removeChild(this),x(e)}}:function(e){setTimeout(k(e),0)}:(r=O,i.addEventListener("message",S,!1))),e.exports={set:m,clear:h}},beEN:function(e,t,n){"use strict";var r=n("OOCw"),a=n("SD1J"),o=n("z43i"),i=n("TxDi");r({target:"String",proto:!0,forced:!i("includes")},{includes:function(e){return!!~String(o(this)).indexOf(a(e),arguments.length>1?arguments[1]:void 0)}})},brx1:function(e,t,n){var r=n("ct0+");r("Array")},cBkf:function(e,t,n){"use strict";var r=n("OOCw"),a=n("x+sk"),o=n("g0aX"),i=n("erIx"),l=n("upgS"),c=n("684d"),u=n("tmip"),s=n("3Hes"),f=n("THrr"),d=n("7/pz"),p=f("slice"),m=d("slice",{ACCESSORS:!0,0:0,1:2}),h=s("species"),v=[].slice,g=Math.max;r({target:"Array",proto:!0,forced:!p||!m},{slice:function(e,t){var n,r,s,f=c(this),d=l(f.length),p=i(e,d),m=i(void 0===t?d:t,d);if(o(f)&&(n=f.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?a(n)&&(n=n[h],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return v.call(f,p,m);for(r=new(void 0===n?Array:n)(g(m-p,0)),s=0;p{var t=e.demos,n=t["ScrollListener-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"scrolllistener"},a.a.createElement(o["AnchorLink"],{to:"#scrolllistener","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"ScrollListener"),a.a.createElement("p",null,"\u6eda\u52a8\u76d1\u542c\u3002\u8be6\u60c5\u67e5\u770b\uff1a",a.a.createElement(o["Link"],{to:"https://github.com/CJY0208/tiny-scroll-listener"},"CJY0208/tiny-scroll-listener")),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"export interface DistanceEventType {\n distance: number | Function\n onGoingIn?: Function\n onGoningOut: Function\n dynamic?: boolean\n}\nexport interface ScrollListenerConfig {\n element: HTMLBaseElement\n scrollHandler?: Function\n getScrollDistance?: Function\n distanceToReachEnd?: number\n onEndReached?: Function\n distanceEvents?: DistanceEventType[]\n direction?: 'vertical' | 'horizontal'\n}\nexport default class ScrollListener {\n config: ScrollListenerConfig\n getScrollDistance: Function\n constructor(config: ScrollListenerConfig)\n destroy: () => any\n init(): this\n getEndReachedEvent(): {\n dynamic: boolean\n distance: (() => number) | (() => number)\n onGoingOut: () => void\n }\n dynamicEvents: any[]\n genDynamicEvents(): void\n currentStaticEvent: any\n staticEvents: any[]\n genStaticEvents(): void\n walkEvent: (event: any, scrollDistance: any) => boolean\n walkStaticEvent: ({\n direction,\n scrollDistance,\n }: {\n direction: any\n scrollDistance: any\n }) => void\n walkDynamicEvents: ({\n direction,\n scrollDistance,\n }: {\n direction: any\n scrollDistance: any\n }) => void\n}",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"config: ScrollListenerConfig\uff0c\u7b26\u5408\u8bed\u6cd5\u7684\u914d\u7f6e\u5bf9\u8c61\u3002")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"ScrollListener \u7684\u5b9e\u4f8b")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["ScrollListener-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},"ct0+":function(e,t,n){"use strict";var r=n("eyaU"),a=n("0JbB"),o=n("3Hes"),i=n("r+6h"),l=o("species");e.exports=function(e){var t=r(e),n=a.f;i&&t&&!t[l]&&n(t,l,{configurable:!0,get:function(){return this}})}},cuAp:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("eyaU"),i=n("sErw"),l=n("lkgX"),c=n("v3z7"),u=n("ZT9G"),s=n("R8Xy"),f=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:a},{map:function(e){var t=i(this),n=s(t),r=c(e,arguments.length>1?arguments[1]:void 0,3),a=new(u(t,o("Set"))),d=l(a.add);return f(n,(function(e){d.call(a,r(e,e,t))}),void 0,!1,!0),a}})},"d+E4":function(e,t,n){"use strict";var r=n("OOCw"),a=n("8d12"),o=n("86T+");r({target:"Promise",stat:!0},{try:function(e){var t=a.f(this),n=o(e);return(n.error?t.reject:t.resolve)(n.value),t.promise}})},d8EH:function(e,t,n){var r=n("sErw"),a=n("6jqD");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(o){}return function(n,o){return r(n),a(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},d9X2:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["isAndroid-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"isandroid"},a.a.createElement(o["AnchorLink"],{to:"#isandroid","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isAndroid"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u5b89\u5353\u73af\u5883\u3002"),a.a.createElement("h3",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isAndroid: () => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("p",null,"\u7a7a"),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u4e3a\u5b89\u5353\u73af\u5883"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u4e0d\u4e3a\u5b89\u5353\u73af\u5883")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isAndroid-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},dOaE:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["nextTick-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"nexttick"},a.a.createElement(o["AnchorLink"],{to:"#nexttick","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"nextTick"),a.a.createElement("p",null,"nextTick \u7684\u5ba2\u6237\u7aef\u5b9e\u73b0\uff0c\u7528\u4e8e\u5ef6\u8fdf\u6267\u884c\u4e00\u6bb5\u4ee3\u7801\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"nextTick: (func: (value: void) => void | PromiseLike) => Promise;",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"func \u5148\u6267\u884c\u7684\u51fd\u6570")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"Promise \u5bf9\u8c61")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["nextTick-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},dfcU:function(e,t,n){var r=n("D7Bi"),a=n("7zK7"),o=Object.prototype,i=o.hasOwnProperty;function l(e){if(!r(e))return a(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}e.exports=l},dh0R:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["intersection-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"intersection"},a.a.createElement(o["AnchorLink"],{to:"#intersection","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"intersection"),a.a.createElement("p",null,"\u4ea4\u96c6\u3002"),a.a.createElement("h3",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"intersection: (...args: any[]) => any[];",lang:"ts"}),a.a.createElement("h3",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u9700\u8981\u5224\u65ad\u4ea4\u96c6\u7684\u6570\u7ec4")),a.a.createElement("h3",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u4ea4\u96c6\u6570\u7ec4")),a.a.createElement("h3",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"intersection([1, 2], [2, 3]) // [2]",lang:"js"})),a.a.createElement(i["default"],t["intersection-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},dl1G:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a}n.d(t,"a",(function(){return r}))},dmWW:function(e,t,n){var r=n("6SQG"),a=n("CsJM").trim,o=n("Vg85"),i=r.parseFloat,l=1/i(o+"-0")!==-1/0;e.exports=l?function(e){var t=a(String(e)),n=i(t);return 0===n&&"-"==t.charAt(0)?-0:n}:i},dtr2:function(e,t,n){var r=n("ou61");function a(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}e.exports=a,e.exports.__esModule=!0,e.exports["default"]=e.exports},dwb6:function(e,t,n){var r=n("3Hes"),a=n("AnAv"),o=r("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(a.Array===e||i[o]===e)}},dz2h:function(e,t,n){"use strict";var r=n("WkS0").IteratorPrototype,a=n("QWtl"),o=n("ZVkV"),i=n("nBeg"),l=n("AnAv"),c=function(){return this};e.exports=function(e,t,n){var u=t+" Iterator";return e.prototype=a(r,{next:o(1,n)}),i(e,u,!1,!0),l[u]=c,e}},e38J:function(e,t,n){var r=n("OOCw"),a=n("eyaU"),o=n("lkgX"),i=n("sErw"),l=n("h+/6"),c=a("Reflect","apply"),u=Function.apply,s=!l((function(){c((function(){}))}));r({target:"Reflect",stat:!0,forced:s},{apply:function(e,t,n){return o(e),i(n),c?c(e,t,n):u.call(e,t,n)}})},e3zV:function(e,t,n){var r=n("I99e"),a=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function o(e){return!!a&&a in e}e.exports=o},eKcC:function(e,t){function n(){return[]}e.exports=n},eOjw:function(e,t,n){var r=n("OOCw"),a=Math.hypot,o=Math.abs,i=Math.sqrt,l=!!a&&a(1/0,NaN)!==1/0;r({target:"Math",stat:!0,forced:l},{hypot:function(e,t){var n,r,a=0,l=0,c=arguments.length,u=0;while(l0?(r=n/u,a+=r*r):a+=n;return u===1/0?1/0:u*i(a)}})},eW2S:function(e,t,n){var r=n("3Hes"),a=r("iterator"),o=!1;try{var i=0,l={next:function(){return{done:!!i++}},return:function(){o=!0}};l[a]=function(){return this},Array.from(l,(function(){throw 2}))}catch(c){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var r={};r[a]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(c){}return n}},ecma:function(e,t,n){var r=n("GXoa");r("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},ediS:function(e,t,n){var r=n("OOCw"),a=n("1Sp3"),o=n("sErw"),i=n("zesz"),l=a.has,c=a.get,u=a.toKey,s=function(e,t,n){var r=l(e,t,n);if(r)return c(e,t,n);var a=i(t);return null!==a?s(e,a,n):void 0};r({target:"Reflect",stat:!0},{getMetadata:function(e,t){var n=arguments.length<3?void 0:u(arguments[2]);return s(e,o(t),n)}})},elB0:function(e,t,n){var r=n("5yEw"),a=n("kk5s"),o=n("3Hes"),i=o("toStringTag"),l="Arguments"==a(function(){return arguments}()),c=function(e,t){try{return e[t]}catch(n){}};e.exports=r?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=c(t=Object(e),i))?n:l?a(t):"Object"==(r=a(t))&&"function"==typeof t.callee?"Arguments":r}},em2R:function(e,t,n){var r=n("OOCw"),a=n("1Sp3"),o=n("sErw"),i=a.toKey,l=a.getMap,c=a.store;r({target:"Reflect",stat:!0},{deleteMetadata:function(e,t){var n=arguments.length<3?void 0:i(arguments[2]),r=l(o(t),n,!1);if(void 0===r||!r["delete"](e))return!1;if(r.size)return!0;var a=c.get(t);return a["delete"](n),!!a.size||c["delete"](t)}})},eoSM:function(e,t){var n=Array.isArray;e.exports=n},erIx:function(e,t,n){var r=n("ANLo"),a=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?a(n+t,0):o(n,t)}},eyaU:function(e,t,n){var r=n("4uZn"),a=n("6SQG"),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(a[e]):r[e]&&r[e][t]||a[e]&&a[e][t]}},eyew:function(e,t,n){"use strict";var r=n("OOCw"),a=n("r+6h"),o=n("THzI"),i=n("OdMF"),l=n("JSMs"),c=n("zesz"),u=n("6ssM").f;a&&r({target:"Object",proto:!0,forced:o},{__lookupSetter__:function(e){var t,n=i(this),r=l(e,!0);do{if(t=u(n,r))return t.set}while(n=c(n))}})},f2HW:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.r(t),n.d(t,"default",(function(){return r}))},"f4/9":function(e,t,n){"use strict";e.exports=n("VnN1")},fVxY:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,"a",(function(){return r}))},fXIi:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["debounce-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"debounce"},a.a.createElement(o["AnchorLink"],{to:"#debounce","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"debounce"),a.a.createElement("p",null,"\u9632\u6296\u51fd\u6570\u3002\u89e6\u53d1\u9ad8\u9891\u4e8b\u4ef6\u540e n \u6beb\u79d2\u5185\u51fd\u6570\u53ea\u4f1a\u6267\u884c\u4e00\u6b21\uff0c\u5982\u679c n \u6beb\u79d2\u5185\u9ad8\u9891\u4e8b\u4ef6\u518d\u6b21\u88ab\u89e6\u53d1\uff0c\u5219\u91cd\u65b0\u8ba1\u7b97\u65f6\u95f4\u3002"),a.a.createElement("h3",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"declare type AnyFunction = (...args: any[]) => any\n/**\n * [\u9632\u6296]\n * @param {Function} func \u6267\u884c\u51fd\u6570\n * @param {Number} wait \u591a\u5c11\u6beb\u79d2\u540e\u8fd0\u884c\u4e00\u6b21\n */\ndeclare const debounce: (\n func: T,\n wait?: number\n) => (...args: any[]) => void | ReturnType",lang:"ts"}),a.a.createElement("h3",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"func \u6267\u884c\u51fd\u6570"),a.a.createElement("li",null,"wait \u591a\u4e45\u540e\u8fd0\u884c\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2(ms)")),a.a.createElement("h3",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u8fd4\u56de\u65b0\u7684 debounced\uff08\u9632\u6296\u52a8\uff09\u51fd\u6570\u3002")),a.a.createElement("h3",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["debounce-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},fkhx:function(e,t){function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},fuK4:function(e,t,n){},"fx/t":function(e,t,n){"use strict";(function(e){var n=()=>"undefined"!==typeof window?window:"undefined"!==typeof self?self:"undefined"!==typeof e?e:Function("return this")(),r=n(),a=()=>"object"===typeof e&&e&&e.Math===Math&&e.Array===Array?e:r,o=a();t["a"]=o}).call(this,n("bQdJ"))},g0aX:function(e,t,n){var r=n("kk5s");e.exports=Array.isArray||function(e){return"Array"==r(e)}},g0pg:function(e,t,n){"use strict";var r,a=n("78S/"),o=n("r+6h"),i=n("6SQG"),l=n("x+sk"),c=n("oEsY"),u=n("elB0"),s=n("MZA9"),f=n("uF/W"),d=n("0JbB").f,p=n("zesz"),m=n("d8EH"),h=n("3Hes"),v=n("KgcE"),g=i.Int8Array,y=g&&g.prototype,b=i.Uint8ClampedArray,E=b&&b.prototype,w=g&&p(g),x=y&&p(y),k=Object.prototype,S=k.isPrototypeOf,O=h("toStringTag"),A=v("TYPED_ARRAY_TAG"),j=a&&!!m&&"Opera"!==u(i.opera),C=!1,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},T=function(e){var t=u(e);return"DataView"===t||c(N,t)},P=function(e){return l(e)&&c(N,u(e))},_=function(e){if(P(e))return e;throw TypeError("Target is not a typed array")},D=function(e){if(m){if(S.call(w,e))return e}else for(var t in N)if(c(N,r)){var n=i[t];if(n&&(e===n||S.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},I=function(e,t,n){if(o){if(n)for(var r in N){var a=i[r];a&&c(a.prototype,e)&&delete a.prototype[e]}x[e]&&!n||f(x,e,n?t:j&&y[e]||t)}},F=function(e,t,n){var r,a;if(o){if(m){if(n)for(r in N)a=i[r],a&&c(a,e)&&delete a[e];if(w[e]&&!n)return;try{return f(w,e,n?t:j&&g[e]||t)}catch(l){}}for(r in N)a=i[r],!a||a[e]&&!n||f(a,e,t)}};for(r in N)i[r]||(j=!1);if((!j||"function"!=typeof w||w===Function.prototype)&&(w=function(){throw TypeError("Incorrect invocation")},j))for(r in N)i[r]&&m(i[r],w);if((!j||!x||x===k)&&(x=w.prototype,j))for(r in N)i[r]&&m(i[r].prototype,x);if(j&&p(E)!==x&&m(E,x),o&&!c(x,O))for(r in C=!0,d(x,O,{get:function(){return l(this)?this[A]:void 0}}),N)i[r]&&s(i[r],A,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:j,TYPED_ARRAY_TAG:C&&A,aTypedArray:_,aTypedArrayConstructor:D,exportTypedArrayMethod:I,exportTypedArrayStaticMethod:F,isView:T,isTypedArray:P,TypedArray:w,TypedArrayPrototype:x}},gArs:function(e,t,n){var r=n("Y3cF"),a=n("x+sk"),o=n("oEsY"),i=n("0JbB").f,l=n("KgcE"),c=n("Y4d4"),u=l("meta"),s=0,f=Object.isExtensible||function(){return!0},d=function(e){i(e,u,{value:{objectID:"O"+ ++s,weakData:{}}})},p=function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,u)){if(!f(e))return"F";if(!t)return"E";d(e)}return e[u].objectID},m=function(e,t){if(!o(e,u)){if(!f(e))return!0;if(!t)return!1;d(e)}return e[u].weakData},h=function(e){return c&&v.REQUIRED&&f(e)&&!o(e,u)&&d(e),e},v=e.exports={REQUIRED:!1,fastKey:p,getWeakData:m,onFreeze:h};r[u]=!0},gGOj:function(e,t,n){"use strict";var r=n("8Yqn")["default"],a=n("gGwC")["default"],o=n("SDiR")["default"],i=n("1uVM"),l=n("/sHi"),c=n("mDdX"),u=n("jrV3"),s=function(e){return null===e||void 0===e};function f(e){switch(e.arrayFormat){case"index":return function(t){return function(n,r){var a=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(o(n),null===r?[[m(t,e),"[",a,"]"].join("")]:[[m(t,e),"[",m(a,e),"]=",m(r,e)].join("")])}};case"bracket":return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(o(n),null===r?[[m(t,e),"[]"].join("")]:[[m(t,e),"[]=",m(r,e)].join("")])}};case"comma":case"separator":return function(t){return function(n,r){return null===r||void 0===r||0===r.length?n:0===n.length?[[m(t,e),"=",m(r,e)].join("")]:[[n,m(r,e)].join(e.arrayFormatSeparator)]}};default:return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(o(n),null===r?[m(t,e)]:[[m(t,e),"=",m(r,e)].join("")])}}}}function d(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return function(t,n,r){var a="string"===typeof n&&n.includes(e.arrayFormatSeparator),o="string"===typeof n&&!a&&h(n,e).includes(e.arrayFormatSeparator);n=o?h(n,e):n;var i=a||o?n.split(e.arrayFormatSeparator).map((function(t){return h(t,e)})):null===n?n:h(n,e);r[t]=i};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}function p(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function m(e,t){return t.encode?t.strict?i(e):encodeURIComponent(e):e}function h(e,t){return t.decode?l(e):e}function v(e){return Array.isArray(e)?e.sort():"object"===typeof e?v(Object.keys(e)).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e[t]})):e}function g(e){var t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function y(e){var t="",n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}function b(e){e=g(e);var t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function E(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function w(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),p(t.arrayFormatSeparator);var n=d(t),o=Object.create(null);if("string"!==typeof e)return o;if(e=e.trim().replace(/^[?#&]/,""),!e)return o;var i,l=a(e.split("&"));try{for(l.s();!(i=l.n()).done;){var u=i.value;if(""!==u){var s=c(t.decode?u.replace(/\+/g," "):u,"="),f=r(s,2),m=f[0],g=f[1];g=void 0===g?null:["comma","separator"].includes(t.arrayFormat)?g:h(g,t),n(h(m,t),g,o)}}}catch(A){l.e(A)}finally{l.f()}for(var y=0,b=Object.keys(o);y0})).join("&")},t.parseUrl=function(e,t){t=Object.assign({decode:!0},t);var n=c(e,"#"),a=r(n,2),o=a[0],i=a[1];return Object.assign({url:o.split("?")[0]||"",query:w(b(e),t)},t&&t.parseFragmentIdentifier&&i?{fragmentIdentifier:h(i,t)}:{})},t.stringifyUrl=function(e,n){n=Object.assign({encode:!0,strict:!0},n);var r=g(e.url).split("?")[0]||"",a=t.extract(e.url),o=t.parse(a,{sort:!1}),i=Object.assign(o,e.query),l=t.stringify(i,n);l&&(l="?".concat(l));var c=y(e.url);return e.fragmentIdentifier&&(c="#".concat(m(e.fragmentIdentifier,n))),"".concat(r).concat(l).concat(c)},t.pick=function(e,n,r){r=Object.assign({parseFragmentIdentifier:!0},r);var a=t.parseUrl(e,r),o=a.url,i=a.query,l=a.fragmentIdentifier;return t.stringifyUrl({url:o,query:u(i,n),fragmentIdentifier:l},r)},t.exclude=function(e,n,r){var a=Array.isArray(n)?function(e){return!n.includes(e)}:function(e,t){return!n(e,t)};return t.pick(e,a,r)}},gGwC:function(e,t,n){var r=n("dtr2");function a(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,i=e},f:function(){try{l||null==n["return"]||n["return"]()}finally{if(c)throw i}}}}e.exports=a,e.exports.__esModule=!0,e.exports["default"]=e.exports},gIQF:function(e,t,n){"use strict";var r=n("6SQG"),a=n("g0pg"),o=n("0pkz"),i=n("3Hes"),l=i("iterator"),c=r.Uint8Array,u=o.values,s=o.keys,f=o.entries,d=a.aTypedArray,p=a.exportTypedArrayMethod,m=c&&c.prototype[l],h=!!m&&("values"==m.name||void 0==m.name),v=function(){return u.call(d(this))};p("entries",(function(){return f.call(d(this))})),p("keys",(function(){return s.call(d(this))})),p("values",v,!h),p(l,v,!h)},gTJW:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("2fm6");r({target:"Set",proto:!0,real:!0,forced:a},{deleteAll:function(){return o.apply(this,arguments)}})},gmW1:function(e,t,n){"use strict";function r(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}n.d(t,"a",(function(){return r}))},"h+/6":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},h9Wi:function(e,t,n){var r=n("OOCw"),a=n("2hel"),o=Math.acosh,i=Math.log,l=Math.sqrt,c=Math.LN2,u=!o||710!=Math.floor(o(Number.MAX_VALUE))||o(1/0)!=1/0;r({target:"Math",stat:!0,forced:u},{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?i(e)+c:a(e-1+l(e-1)*l(e+1))}})},hWwf:function(e,t,n){"use strict";var r=n("x+sk"),a=n("0JbB"),o=n("zesz"),i=n("3Hes"),l=i("hasInstance"),c=Function.prototype;l in c||a.f(c,l,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;while(e=o(e))if(this.prototype===e)return!0;return!1}})},hpYE:function(e,t,n){"use strict";var r=n("684d"),a=n("ANLo"),o=n("upgS"),i=n("rUEg"),l=n("7/pz"),c=Math.min,u=[].lastIndexOf,s=!!u&&1/[1].lastIndexOf(1,-0)<0,f=i("lastIndexOf"),d=l("indexOf",{ACCESSORS:!0,1:0}),p=s||!f||!d;e.exports=p?function(e){if(s)return u.apply(this,arguments)||0;var t=r(this),n=o(t.length),i=n-1;for(arguments.length>1&&(i=c(i,a(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in t&&t[i]===e)return i||0;return-1}:u},i0LQ:function(e,t,n){"use strict";n.r(t),n.d(t,"ApplyPluginsType",(function(){return W})),n.d(t,"Plugin",(function(){return J})),n.d(t,"dynamic",(function(){return M})),n.d(t,"isBrowser",(function(){return B}));var r=n("DBVu"),a=n("ptaF");n.d(t,"createBrowserHistory",(function(){return a["a"]})),n.d(t,"createHashHistory",(function(){return a["b"]})),n.d(t,"createMemoryHistory",(function(){return a["d"]}));var o=n("Bm2L");n.d(t,"__RouterContext",(function(){return o["h"]}));var i=n("QwZf");n.d(t,"Link",(function(){return i["a"]})),n.d(t,"MemoryRouter",(function(){return o["a"]})),n.d(t,"NavLink",(function(){return i["b"]})),n.d(t,"Prompt",(function(){return o["b"]})),n.d(t,"Redirect",(function(){return o["c"]})),n.d(t,"Route",(function(){return o["d"]})),n.d(t,"Router",(function(){return o["e"]})),n.d(t,"StaticRouter",(function(){return o["f"]})),n.d(t,"Switch",(function(){return o["g"]})),n.d(t,"matchPath",(function(){return o["i"]})),n.d(t,"useHistory",(function(){return o["j"]})),n.d(t,"useLocation",(function(){return o["k"]})),n.d(t,"useParams",(function(){return o["l"]})),n.d(t,"useRouteMatch",(function(){return o["m"]})),n.d(t,"withRouter",(function(){return o["n"]}));var l=n("nNWW"),c=n("rVbH");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n["return"]||n["return"]()}finally{if(l)throw o}}}}var O=Object(l["createContext"])(null),A=[],j=[],C=!1;function N(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e}))["catch"]((function(e){throw n.loading=!1,n.error=e,e})),n}function T(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var a=N(e[r]);a.loading?t.loading=!0:(t.loaded[r]=a.loaded,t.error=a.error),n.push(a.promise),a.promise.then((function(e){t.loaded[r]=e}))["catch"]((function(e){t.error=e}))}))}catch(r){t.error=r}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e}))["catch"]((function(e){throw t.loading=!1,e})),t}function P(e){return e&&e.__esModule?e["default"]:e}function _(e,t){return Object(l["createElement"])(P(e),t)}function D(e,t){var n=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:_,webpack:null,modules:null},t),r=null;function a(){if(!r){var t=new I(e,n);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if("undefined"===typeof window&&A.push(a),!C&&"undefined"!==typeof window&&"function"===typeof n.webpack){var o=n.webpack();j.push((function(e){var t,n=S(o);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(-1!==e.indexOf(r))return a()}}catch(i){n.e(i)}finally{n.f()}}))}var i=function(e,t){a();var o=Object(l["useContext"])(O),i=Object(c["useSubscription"])(r);return Object(l["useImperativeHandle"])(t,(function(){return{retry:r.retry}})),o&&Array.isArray(n.modules)&&n.modules.forEach((function(e){o(e)})),i.loading||i.error?Object(l["createElement"])(n.loading,{isLoading:i.loading,pastDelay:i.pastDelay,timedOut:i.timedOut,error:i.error,retry:r.retry}):i.loaded?n.render(i.loaded,e):null},u=Object(l["forwardRef"])(i);return u.preload=function(){return a()},u.displayName="LoadableComponent",u}var I=function(){function e(t,n){m(this,e),this._loadFn=t,this._opts=n,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return v(e,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var t=this._res,n=this._opts;t.loading&&("number"===typeof n.delay&&(0===n.delay?this._state.pastDelay=!0:this._delay=setTimeout((function(){e._update({pastDelay:!0})}),n.delay)),"number"===typeof n.timeout&&(this._timeout=setTimeout((function(){e._update({timedOut:!0})}),n.timeout))),this._res.promise.then((function(){e._update(),e._clearTimeouts()}))["catch"]((function(t){e._update(),e._clearTimeouts()})),this._update({})}},{key:"_update",value:function(e){this._state=s(s({},this._state),e),this._callbacks.forEach((function(e){return e()}))}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return s(s({},this._state),{},{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading})}},{key:"subscribe",value:function(e){var t=this;return this._callbacks.add(e),function(){t._callbacks["delete"](e)}}}]),e}();function F(e){return D(N,e)}function L(e){if("function"!==typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return D(T,e)}function R(e,t){var n=[];while(e.length){var r=e.pop();n.push(r(t))}return Promise.all(n).then((function(){if(e.length)return R(e,t)}))}function M(e){var t=F,n={loading:function(e){e.error,e.isLoading;return Object(l["createElement"])("p",null,"loading...")}};if("function"===typeof e)n.loader=e;else{if("object"!==f(e))throw new Error("Unexpect arguments ".concat(e));n=s(s({},n),e)}return t(n)}function z(e,t){if(!e)throw new Error(t)}F.Map=L,F.preloadAll=function(){return new Promise((function(e,t){R(A).then(e,t)}))},F.preloadReady=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(t){var n=function(){return C=!0,t()};R(j,e).then(n,n)}))},"undefined"!==typeof window&&(window.__NEXT_PRELOADREADY=F.preloadReady);var W,B=function(){return"undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement};function U(e){var t=e.fns,n=e.args;if(1===t.length)return t[0];var r=t.pop();return t.reduce((function(e,t){return function(){return t(e,n)}}),r)}function G(e){return!!e&&"object"===f(e)&&"function"===typeof e.then}(function(e){e["compose"]="compose",e["modify"]="modify",e["event"]="event"})(W||(W={}));var J=function(){function e(t){m(this,e),this.validKeys=void 0,this.hooks={},this.validKeys=(null===t||void 0===t?void 0:t.validKeys)||[]}return v(e,[{key:"register",value:function(e){var t=this;z(!!e.apply,"register failed, plugin.apply must supplied"),z(!!e.path,"register failed, plugin.path must supplied"),Object.keys(e.apply).forEach((function(n){z(t.validKeys.indexOf(n)>-1,"register failed, invalid key ".concat(n," from plugin ").concat(e.path,".")),t.hooks[n]||(t.hooks[n]=[]),t.hooks[n]=t.hooks[n].concat(e.apply[n])}))}},{key:"getHooks",value:function(e){var t=e.split("."),n=y(t),r=n[0],a=n.slice(1),o=this.hooks[r]||[];return a.length&&(o=o.map((function(e){try{var t,n=e,r=S(a);try{for(r.s();!(t=r.n()).done;){var o=t.value;n=n[o]}}catch(i){r.e(i)}finally{r.f()}return n}catch(l){return null}})).filter(Boolean)),o}},{key:"applyPlugins",value:function(e){var t=e.key,n=e.type,a=e.initialValue,o=e.args,i=e.async,l=this.getHooks(t)||[];switch(o&&z("object"===f(o),"applyPlugins failed, args must be plain object."),n){case W.modify:return i?l.reduce(function(){var e=p(Object(r["default"])().mark((function e(n,a){var i;return Object(r["default"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(z("function"===typeof a||"object"===f(a)||G(a),"applyPlugins failed, all hooks for key ".concat(t," must be function, plain object or Promise.")),!G(n)){e.next=5;break}return e.next=4,n;case 4:n=e.sent;case 5:if("function"!==typeof a){e.next=16;break}if(i=a(n,o),!G(i)){e.next=13;break}return e.next=10,i;case 10:return e.abrupt("return",e.sent);case 13:return e.abrupt("return",i);case 14:e.next=21;break;case 16:if(!G(a)){e.next=20;break}return e.next=19,a;case 19:a=e.sent;case 20:return e.abrupt("return",s(s({},n),a));case 21:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),G(a)?a:Promise.resolve(a)):l.reduce((function(e,n){return z("function"===typeof n||"object"===f(n),"applyPlugins failed, all hooks for key ".concat(t," must be function or plain object.")),"function"===typeof n?n(e,o):s(s({},e),n)}),a);case W.event:return l.forEach((function(e){z("function"===typeof e,"applyPlugins failed, all hooks for key ".concat(t," must be function.")),e(o)}));case W.compose:return function(){return U({fns:l.concat(a),args:o})()}}}}]),e}()},i3On:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("2fm6");r({target:"WeakSet",proto:!0,real:!0,forced:a},{deleteAll:function(){return o.apply(this,arguments)}})},iBNQ:function(e,t,n){var r=n("OOCw");r({target:"Math",stat:!0},{RAD_PER_DEG:180/Math.PI})},iIWa:function(e,t,n){var r=n("OOCw"),a=n("HRbj");r({target:"WeakSet",stat:!0},{from:a})},iJ36:function(e,t,n){var r=n("GXoa");r("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},iLo9:function(e,t,n){"use strict";var r=n("r+6h"),a=n("ZGY3"),o=n("OdMF"),i=n("upgS"),l=n("0JbB").f;r&&!("lastIndex"in[])&&(l(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=o(this),t=i(e.length);return 0==t?0:t-1}}),a("lastIndex"))},"iS+J":function(e,t,n){var r=n("OOCw"),a=n("N+aw").values;r({target:"Object",stat:!0},{values:function(e){return a(e)}})},ig3D:function(e,t,n){"use strict";var r=n("OOCw"),a=n("6ssM").f,o=n("upgS"),i=n("SD1J"),l=n("z43i"),c=n("TxDi"),u=n("qyeh"),s="".startsWith,f=Math.min,d=c("startsWith"),p=!u&&!d&&!!function(){var e=a(String.prototype,"startsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!p&&!d},{startsWith:function(e){var t=String(l(this));i(e);var n=o(f(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return s?s.call(t,r,n):t.slice(n,n+r.length)===r}})},"io+V":function(e,t,n){"use strict";var r=n("OOCw"),a=n("r+6h"),o=n("zesz"),i=n("d8EH"),l=n("QWtl"),c=n("0JbB"),u=n("ZVkV"),s=n("uZx/"),f=n("MZA9"),d=n("uJNS"),p=d.set,m=d.getterFor("AggregateError"),h=function(e,t){var n=this;if(!(n instanceof h))return new h(e,t);i&&(n=i(new Error(t),o(n)));var r=[];return s(e,r.push,r),a?p(n,{errors:r,type:"AggregateError"}):n.errors=r,void 0!==t&&f(n,"message",String(t)),n};h.prototype=l(Error.prototype,{constructor:u(5,h),message:u(5,""),name:u(5,"AggregateError")}),a&&c.f(h.prototype,"errors",{get:function(){return m(this).errors},configurable:!0}),r({global:!0},{AggregateError:h})},iojd:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return l}));var r=n("Ef+f");function a(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done);i=!0)if(o.push(r.value),t&&o.length===t)break}catch(c){l=!0,a=c}finally{try{i||null==n["return"]||n["return"]()}finally{if(l)throw a}}return o}}var o=n("NDrN"),i=n("jl5J");function l(e,t){return Object(r["a"])(e)||a(e,t)||Object(o["a"])(e,t)||Object(i["a"])()}},itOZ:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["isDate-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"isdate"},a.a.createElement(o["AnchorLink"],{to:"#isdate","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isDate"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a Date \u7c7b\u578b\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isDate: (value: any) => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"(value: any) => boolean;")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u662f Date \u7c7b\u578b"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u4e0d\u662f Date \u7c7b\u578b")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isDate-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},iwOu:function(e,t,n){"use strict";var r=n("OOCw"),a=n("jssG").left,o=n("rUEg"),i=n("7/pz"),l=o("reduce"),c=i("reduce",{1:0});r({target:"Array",proto:!0,forced:!l||!c},{reduce:function(e){return a(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"j/ks":function(e,t,n){"use strict";var r=n("g0aX"),a=n("upgS"),o=n("v3z7"),i=function(e,t,n,l,c,u,s,f){var d,p=c,m=0,h=!!s&&o(s,f,3);while(m0&&r(d))p=i(e,t,d,a(d.length),p,u-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[p]=d}p++}m++}return p};e.exports=i},j2YP:function(e,t,n){"use strict";var r=n("OOCw"),a=n("j/ks"),o=n("OdMF"),i=n("upgS"),l=n("ANLo"),c=n("63eO");r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=o(this),n=i(t.length),r=c(t,0);return r.length=a(r,t,t,n,0,void 0===e?1:l(e)),r}})},jBBt:function(e,t){function n(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done);i=!0)if(o.push(r.value),t&&o.length===t)break}catch(c){l=!0,a=c}finally{try{i||null==n["return"]||n["return"]()}finally{if(l)throw a}}return o}}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},jETf:function(e,t,n){"use strict";var r=n("TxBV"),a=n("gArs").getWeakData,o=n("sErw"),i=n("x+sk"),l=n("CZSf"),c=n("uZx/"),u=n("M+Sl"),s=n("oEsY"),f=n("uJNS"),d=f.set,p=f.getterFor,m=u.find,h=u.findIndex,v=0,g=function(e){return e.frozen||(e.frozen=new y)},y=function(){this.entries=[]},b=function(e,t){return m(e.entries,(function(e){return e[0]===t}))};y.prototype={get:function(e){var t=b(this,e);if(t)return t[1]},has:function(e){return!!b(this,e)},set:function(e,t){var n=b(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=h(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,u){var f=e((function(e,r){l(e,f,t),d(e,{type:t,id:v++,frozen:void 0}),void 0!=r&&c(r,e[u],e,n)})),m=p(t),h=function(e,t,n){var r=m(e),i=a(o(t),!0);return!0===i?g(r).set(t,n):i[r.id]=n,e};return r(f.prototype,{delete:function(e){var t=m(this);if(!i(e))return!1;var n=a(e);return!0===n?g(t)["delete"](e):n&&s(n,t.id)&&delete n[t.id]},has:function(e){var t=m(this);if(!i(e))return!1;var n=a(e);return!0===n?g(t).has(e):n&&s(n,t.id)}}),r(f.prototype,n?{get:function(e){var t=m(this);if(i(e)){var n=a(e);return!0===n?g(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return h(this,e,t)}}:{add:function(e){return h(this,e,!0)}}),f}}},jHOP:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("sErw"),i=n("v3z7"),l=n("QHn5"),c=n("uZx/");r({target:"Map",proto:!0,real:!0,forced:a},{findKey:function(e){var t=o(this),n=l(t),r=i(e,arguments.length>1?arguments[1]:void 0,3);return c(n,(function(e,n){if(r(n,e,t))return c.stop(e)}),void 0,!0,!0).result}})},jMas:function(e,t,n){"use strict";var r=n("973d"),a=n("nNWW"),o=n("NuOa"),i=(n("8rlb"),n("V6CC")),l=n("8DO7"),c=n("sgiM"),u=n("QQXB"),s=new Map;function f(e){e.forEach((function(e){var t,n=e.target;null===(t=s.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}var d=new u["a"](f);function p(e,t){s.has(e)||(s.set(e,new Set),d.observe(e)),s.get(e).add(t)}function m(e,t){s.has(e)&&(s.get(e)["delete"](t),s.get(e).size||(d.unobserve(e),s["delete"](e)))}var h=n("p4sU"),v=n("asw4"),g=n("sLj8"),y=n("qAhB"),b=function(e){Object(g["a"])(n,e);var t=Object(y["a"])(n);function n(){return Object(h["a"])(this,n),t.apply(this,arguments)}return Object(v["a"])(n,[{key:"render",value:function(){return this.props.children}}]),n}(a["Component"]),E=a["createContext"](null);function w(e){var t=e.children,n=e.onBatchResize,r=a["useRef"](0),o=a["useRef"]([]),i=a["useContext"](E),l=a["useCallback"]((function(e,t,a){r.current+=1;var l=r.current;o.current.push({size:e,element:t,data:a}),Promise.resolve().then((function(){l===r.current&&(null===n||void 0===n||n(o.current),o.current=[])})),null===i||void 0===i||i(e,t,a)}),[n,i]);return a["createElement"](E.Provider,{value:l},t)}function x(e){var t=e.children,n=e.disabled,r=a["useRef"](null),o=a["useRef"](null),u=a["useContext"](E),s="function"===typeof t,f=s?t(r):t,d=a["useRef"]({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),h=!s&&a["isValidElement"](f)&&Object(l["c"])(f),v=h?f.ref:null,g=a["useMemo"]((function(){return Object(l["a"])(v,r)}),[v,r]),y=a["useRef"](e);y.current=e;var w=a["useCallback"]((function(e){var t=y.current,n=t.onResize,r=t.data,a=e.getBoundingClientRect(),o=a.width,l=a.height,c=e.offsetWidth,s=e.offsetHeight,f=Math.floor(o),p=Math.floor(l);if(d.current.width!==f||d.current.height!==p||d.current.offsetWidth!==c||d.current.offsetHeight!==s){var m={width:f,height:p,offsetWidth:c,offsetHeight:s};d.current=m;var h=c===Math.round(o)?o:c,v=s===Math.round(l)?l:s,g=Object(i["a"])(Object(i["a"])({},m),{},{offsetWidth:h,offsetHeight:v});null===u||void 0===u||u(g,e,r),n&&Promise.resolve().then((function(){n(g,e)}))}}),[]);return a["useEffect"]((function(){var e=Object(c["a"])(r.current)||Object(c["a"])(o.current);return e&&!n&&p(e,w),function(){return m(e,w)}}),[r.current,n]),a["createElement"](b,{ref:o},h?a["cloneElement"](f,{ref:g}):f)}var k="rc-observer-key";function S(e){var t=e.children,n="function"===typeof t?[t]:Object(o["a"])(t);return n.map((function(t,n){var o=(null===t||void 0===t?void 0:t.key)||"".concat(k,"-").concat(n);return a["createElement"](x,Object(r["a"])({},e,{key:o}),t)}))}S.Collection=w;t["a"]=S},jUhn:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=function(e){return+setTimeout(e,16)},a=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},a=function(e){return window.cancelAnimationFrame(e)});var o=0,i=new Map;function l(e){i["delete"](e)}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;o+=1;var n=o;function a(t){if(0===t)l(n),e();else{var o=r((function(){a(t-1)}));i.set(n,o)}}return a(t),n}c.cancel=function(e){var t=i.get(e);return l(t),a(t)}},jYqw:function(e,t,n){"use strict";var r=n("OOCw"),a=n("A2zS");r({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},jax1:function(e,t,n){"use strict";var r=n("ANLo"),a=n("z43i");e.exports="".repeat||function(e){var t=String(a(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},"jht+":function(e,t,n){var r=n("OOCw");r({target:"Math",stat:!0},{DEG_PER_RAD:Math.PI/180})},jl5J:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},jrV3:function(e,t,n){"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),a=Array.isArray(t),o=0;o=0:f>d;d+=p)d in s&&(c=n(c,s[d],d,u));return c}};e.exports={left:l(!1),right:l(!0)}},jtnu:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("dl1G");function a(e,t){if(null==e)return{};var n,a,o=Object(r["a"])(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},jukf:function(e,t,n){var r=n("6SQG"),a=n("MZA9");e.exports=function(e,t){try{a(r,e,t)}catch(n){r[e]=t}return t}},"k/Nc":function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var r=n("nNWW"),a=n("gmW1"),o=Object(a["a"])()?r["useLayoutEffect"]:r["useEffect"];t["a"]=o;var i=function(e,t){var n=r["useRef"](!0);o((function(){if(!n.current)return e()}),t),o((function(){return n.current=!1,function(){n.current=!0}}),[])}},kMjI:function(e,t,n){var r=n("5yEw"),a=n("uF/W"),o=n("QiOl");r||a(Object.prototype,"toString",o,{unsafe:!0})},kNKa:function(e,t,n){"use strict";var r=n("8Yqn")["default"];function a(){var e=n("nNWW");return a=function(){return e},e}function o(){var e=n("2mBG");return o=function(){return e},e}function i(e,t){return f(e)||s(e,t)||c(e,t)||l()}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){if(e){if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n,\n document.getElementById('root'),\n);"):"react-dom/client"===e?"/**\n* This is an auto-generated demo by dumi\n* if you think it is not working as expected,\n* please report the issue at\n* https://github.com/umijs/dumi/issues\n**/\nimport React from 'react';\nimport { createRoot } from \"react-dom/client\";\n".concat(t,'\nimport App from "./App";\n\nconst rootElement = document.getElementById("root");\nconst root = createRoot(rootElement);\n\nroot.render();'):void 0};function m(e){var t=document.createElement("span");t.innerHTML=e;var n=t.textContent;return t.remove(),n}function h(e){var t,n=Boolean(e.sources._.tsx),a=n?".tsx":".jsx",i={},l={},c=Object.values(e.dependencies).filter((function(e){return e.css})),u="App".concat(a),s="index".concat(a);return Object.entries(e.dependencies).forEach((function(e){var t=r(e,2),n=t[0],a=t[1].version;l[n]=a})),l["react-dom"]||(l["react-dom"]=l.react||"latest"),i["sandbox.config.json"]={content:JSON.stringify({template:n?"create-react-app-typescript":"create-react-app"},null,2),isBinary:!1},i["package.json"]={content:JSON.stringify({name:e.title,description:m(e.description||"An auto-generated demo by dumi"),main:s,dependencies:l,devDependencies:n?{typescript:"^3"}:{}},null,2),isBinary:!1},i["index.html"]={content:'
',isBinary:!1},i[s]={content:p((null===l||void 0===l||null===(t=l["react-dom"])||void 0===t?void 0:t.startsWith("18."))||"latest"===l.react?"react-dom/client":"react-dom",c.map((function(e){var t=e.css;return"import '".concat(t,"';")})).join("\n")),isBinary:!1},Object.entries(e.sources).forEach((function(e){var t=r(e,2),n=t[0],a=t[1],o=a.tsx,l=a.jsx,c=a.content;i["_"===n?u:n]={content:o||l||c,isBinary:!1}})),(0,o().getParameters)({files:i})}var v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d,n=(0,a().useState)(),r=i(n,2),o=r[0],l=r[1];return(0,a().useEffect)((function(){if(e){var n=document.createElement("form"),r=document.createElement("input"),a=h(e);return n.method="POST",n.target="_blank",n.style.display="none",n.action=t,n.appendChild(r),n.setAttribute("data-demo",e.title||""),r.name="parameters",r.value=a,document.body.appendChild(n),l((function(){return function(){return n.submit()}})),function(){return n.remove()}}}),[e]),o};t["default"]=v},kXTd:function(e,t,n){var r=n("6SQG"),a=r.isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&a(e)}},"kZ+D":function(e,t,n){var r=n("OOCw"),a=n("SuUP"),o=n("eyaU");r({global:!0},{compositeSymbol:function(){return 1===arguments.length&&"string"===typeof arguments[0]?o("Symbol")["for"](arguments[0]):a.apply(null,arguments).get("symbol",o("Symbol"))}})},kccB:function(e,t,n){var r=n("OOCw"),a=n("dmWW");r({target:"Number",stat:!0,forced:Number.parseFloat!=a},{parseFloat:a})},kj2u:function(e,t,n){"use strict";var r=n("h+/6");function a(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=a("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=a("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},kk5s:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},klMd:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=t.LinkWrapper=void 0;var r=i(n("nNWW")),a=n("75i3"),o=["to"];function i(e){return e&&e.__esModule?e:{default:e}}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function u(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a}var s=function(e){return function(t){var n=t.to,a=c(t,o),i=/^(\w+:)?\/\/|^(mailto|tel):/.test(n)||!n,u=r["default"].isValidElement(a.children);return r["default"].createElement(e,l({to:n||"",component:i?function(){return r["default"].createElement("a",{target:"_blank",rel:"noopener noreferrer",href:n},a.children,n&&!u&&r["default"].createElement("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",x:"0px",y:"0px",viewBox:"0 0 100 100",width:"15",height:"15",className:"__dumi-default-external-link-icon"},r["default"].createElement("path",{fill:"currentColor",d:"M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"}),r["default"].createElement("polygon",{fill:"currentColor",points:"45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"})))}:void 0},a,i?{}:{onClick:function(){var e;window.scrollTo({top:0});for(var t=arguments.length,n=new Array(t),r=0;r{var t=e.demos,n=t["classnames-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"classnames"},a.a.createElement(o["AnchorLink"],{to:"#classnames","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"classnames"),a.a.createElement("p",null,"\u7528\u4e8e\u6709\u6761\u4ef6\u5730\u5c06 ",a.a.createElement("code",null,"className")," \u8fde\u63a5\u5728\u4e00\u8d77\u3002"),a.a.createElement("p",null,"\u53ef\u53c2\u8003 ",a.a.createElement(o["Link"],{to:"https://www.npmjs.com/package/classnames"},"https://www.npmjs.com/package/classnames")),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"classnames(word: any): string;",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u8981\u62fc\u5408\u7684\u7c7b\u540d")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u62fc\u63a5\u597d\u6240\u6709\u7b26\u5408\u6761\u4ef6\u7684\u7c7b\u540d\u7684\u5b57\u7b26\u4e32")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["classnames-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},l3mM:function(e,t){function n(e,t){return e.has(t)}e.exports=n},l4Xg:function(e,t,n){"use strict";var r=n("nNWW"),a=n.n(r),o=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=f.reach)break;var S=x.value;if(t.length>e.length)return;if(!(S instanceof a)){var O,A=1;if(y){if(O=o(w,k,e,g),!O||O.index>=e.length)break;var j=O.index,C=O.index+O[0].length,N=k;N+=x.value.length;while(j>=N)x=x.next,N+=x.value.length;if(N-=x.value.length,k=N,x.value instanceof a)continue;for(var T=x;T!==t.tail&&(Nf.reach&&(f.reach=I);var F=x.prev;_&&(F=c(t,F,_),k+=_.length),u(t,F,A);var L=new a(d,v?r.tokenize(P,v):P,b,P);if(x=c(t,F,L),D&&c(t,x,D),A>1){var R={cause:d+","+m,reach:I};i(e,t,n,x.prev,k,R),f&&R.reach>f.reach&&(f.reach=R.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function u(e,t,n){for(var r=t.next,a=0;a"+o.content+""},r}(),i=o;o["default"]=o,i.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},i.languages.markup["tag"].inside["attr-value"].inside["entity"]=i.languages.markup["entity"],i.languages.markup["doctype"].inside["internal-subset"].inside=i.languages.markup,i.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes["title"]=e.content.replace(/&/,"&"))})),Object.defineProperty(i.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:i.languages[t]},n["cdata"]=/^$/i;var r={"included-cdata":{pattern://i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:i.languages[t]};var a={};a[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},i.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(i.languages.markup.tag,"addAttribute",{value:function(e,t){i.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:i.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),i.languages.html=i.languages.markup,i.languages.mathml=i.languages.markup,i.languages.svg=i.languages.markup,i.languages.xml=i.languages.extend("markup",{}),i.languages.ssml=i.languages.xml,i.languages.atom=i.languages.xml,i.languages.rss=i.languages.xml,function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,i=0;i]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},i.languages.c=i.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),i.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),i.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},i.languages.c["string"]],char:i.languages.c["char"],comment:i.languages.c["comment"],"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:i.languages.c}}}}),i.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete i.languages.c["boolean"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(i),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css["atrule"].inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(i),function(e){var t,n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css["atrule"].inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var r={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:a})}(i),i.languages.javascript=i.languages.extend("clike",{"class-name":[i.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),i.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,i.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:i.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:i.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:i.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:i.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:i.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),i.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:i.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),i.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),i.languages.markup&&(i.languages.markup.tag.addInlined("script","javascript"),i.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),i.languages.js=i.languages.javascript,function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(i),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,(function(){return r})).replace(/<>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,(function(){return r})).replace(/<>/g,(function(){return"(?:"+a+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(o),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(i),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(//g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+o+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+o+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){function t(e){if(e&&"string"!==typeof e)for(var n=0,r=e.length;n",quot:'"'},c=String.fromCodePoint||String.fromCharCode;function u(e){var t=e.replace(i,"");return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if(t=t.toLowerCase(),"#"===t[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),c(n);var r=l[t];return r||e})),t}e.languages.md=e.languages.markdown}(i),i.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:i.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},i.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!==typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n0)){var l=d(/^\{$/,/^\}$/);if(-1===l)continue;for(var c=n;c=0&&p(u,"variable-input")}}}}function s(e){return t[n+e]}function f(e,t){t=t||0;for(var n=0;n?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside["interpolation"],a=r.inside["interpolation-punctuation"],o=r.pattern.source;function i(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function l(e,t){return"___"+t.toUpperCase()+"_"+e+"___"}function c(t,n,r){var a={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",a),a.tokens=e.tokenize(a.code,a.grammar),e.hooks.run("after-tokenize",a),a.tokens}function u(t){var n={};n["interpolation-punctuation"]=a;var o=e.tokenize(t,n);if(3===o.length){var i=[1,1];i.push.apply(i,c(o[1],e.languages.javascript,"javascript")),o.splice.apply(o,i)}return new e.Token("interpolation",o,r.alias,t)}function s(t,n,r){var a=e.tokenize(t,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),i=0,s={},f=a.map((function(e){if("string"===typeof e)return e;var n,a=e.content;while(-1!==t.indexOf(n=l(i++,r)));return s[n]=a,n})).join(""),d=c(f,n,r),p=Object.keys(s);function m(e){for(var t=0;t=p.length)return;var n=e[t];if("string"===typeof n||"string"===typeof n.content){var r=p[i],a="string"===typeof n?n:n.content,o=a.indexOf(r);if(-1!==o){++i;var l=a.substring(0,o),c=u(s[r]),f=a.substring(o+r.length),d=[];if(l&&d.push(l),d.push(c),f){var h=[f];m(h),d.push.apply(d,h)}"string"===typeof n?(e.splice.apply(e,[t,1].concat(d)),t+=d.length-1):n.content=d}}else{var v=n.content;Array.isArray(v)?m(v):m([v])}}}return i=0,m(d),new e.Token(r,d,"language-"+r,t)}e.languages.javascript["template-string"]=[i("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),i("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),i("svg",/\bsvg/.source),i("markdown",/\b(?:markdown|md)/.source),i("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),i("sql",/\bsql/.source),t].filter(Boolean);var f={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function d(e){return"string"===typeof e?e:Array.isArray(e)?e.map(d).join(""):d(e.content)}e.hooks.add("after-tokenize",(function(t){function n(t){for(var r=0,a=t.length;r]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript["parameter"],delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(i),function(e){function t(e,t){return RegExp(e.replace(//g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function"].source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript["keyword"].unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r*\.{3}(?:[^{}]|)*\})/.source;function o(e,t){return e=e.replace(//g,(function(){return n})).replace(//g,(function(){return r})).replace(//g,(function(){return a})),RegExp(e,t)}a=o(a).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),e.languages.jsx.tag.inside["tag"].pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside["tag"].inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside["comment"]=t["comment"],e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(//.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var i=function e(t){return t?"string"===typeof t?t:"string"===typeof t.content?t.content:t.content.map(e).join(""):""},l=function t(n){for(var r=[],a=0;a0&&r[r.length-1].tagName===i(o.content[0].content[1])&&r.pop():"/>"===o.content[o.content.length-1].content||r.push({tagName:i(o.content[0].content[1]),openedBraces:0}):r.length>0&&"punctuation"===o.type&&"{"===o.content?r[r.length-1].openedBraces++:r.length>0&&r[r.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?r[r.length-1].openedBraces--:l=!0),(l||"string"===typeof o)&&r.length>0&&0===r[r.length-1].openedBraces){var c=i(o);a0&&("string"===typeof n[a-1]||"plain-text"===n[a-1].type)&&(c=i(n[a-1])+c,n.splice(a-1,1),a--),n[a]=new e.Token("plain-text",c,null,c)}o.content&&"string"!==typeof o.content&&t(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||l(e.tokens)}))}(i),function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],a=[];/^\w+$/.test(n)||a.push(/\w+/.exec(n)[0]),"diff"===n&&a.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:a,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(i),i.languages.git={comment:/^#.*/m,deleted:/^[-\u2013].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m},i.languages.go=i.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),i.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete i.languages.go["class-name"],function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,a,o){if(n.language===r){var i=n.tokenStack=[];n.code=n.code.replace(a,(function(e){if("function"===typeof o&&!o(e))return e;var a,l=i.length;while(-1!==n.code.indexOf(a=t(r,l)))++l;return i[l]=e,a})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var a=0,o=Object.keys(n.tokenStack);i(n.tokens)}function i(l){for(var c=0;c=o.length)break;var u=l[c];if("string"===typeof u||u.content&&"string"===typeof u.content){var s=o[a],f=n.tokenStack[s],d="string"===typeof u?u:u.content,p=t(r,s),m=d.indexOf(p);if(m>-1){++a;var h=d.substring(0,m),v=new e.Token(r,e.tokenize(f,n.grammar),"language-"+r,f),g=d.substring(m+p.length),y=[];h&&y.push.apply(y,i([h])),y.push(v),g&&y.push.apply(y,i([g])),"string"===typeof u?l.splice.apply(l,[c,1].concat(y)):u.content=y}}else u.content&&i(u.content)}return l}}}})}(i),function(e){e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",(function(t){var n=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;e.languages["markup-templating"].buildPlaceholders(t,"handlebars",n)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"handlebars")})),e.languages.hbs=e.languages.handlebars}(i),i.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},i.languages.webmanifest=i.languages.json,i.languages.less=i.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),i.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),i.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/},i.languages.objectivec=i.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete i.languages.objectivec["class-name"],i.languages.objc=i.languages.objectivec,i.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/},i.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},i.languages.python["string-interpolation"].inside["interpolation"].inside.rest=i.languages.python,i.languages.py=i.languages.python,i.languages.reason=i.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),i.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete i.languages.reason["function"],function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(i),i.languages.scss=i.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),i.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),i.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),i.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),i.languages.scss["atrule"].inside.rest=i.languages.scss,function(e){var t={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},r={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:n,punctuation:/[{}()\[\];:,]/};r["interpolation"]={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:r}},r["func"]={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:r}},e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:r}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:r}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:r}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:r.interpolation}},rest:r}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:r.interpolation,comment:r.comment,punctuation:/[{},]/}},func:r.func,string:r.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:r.interpolation,punctuation:/[{}()\[\];:.]/}}(i),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx["parameter"],delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(i),i.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/};var l=i,c={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},u=c,s={Prism:l,theme:u};function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(){return d=Object.assign||function(e){for(var t=1;t0&&e[n-1]===t?e:e.concat(t)},v=function(e){var t=[[]],n=[e],r=[0],a=[e.length],o=0,i=0,l=[],c=[l];while(i>-1){while((o=r[i]++)0?s:["plain"],u=d):(s=h(s,d.type),d.alias&&(s=h(s,d.alias)),u=d.content),"string"===typeof u){var v=u.split(p),g=v.length;l.push({types:s,content:v[0]});for(var y=1;ye.length)&&(t=e.length);for(var n=0,r=new Array(t);n{var t=e.demos,n=t["getFormatter-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"getformatter"},a.a.createElement(o["AnchorLink"],{to:"#getformatter","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"getFormatter"),a.a.createElement("p",null,"\u683c\u5f0f\u5316\u5de5\u5177\u3002\u53ef\u901a\u8fc7\u914d\u7f6e\u83b7\u5f97\u7b26\u5408\u8981\u6c42\u7684\u5207\u5272\u51fd\u6570\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"getFormatter: ({\n separator,\n length,\n reverse,\n isNumber: isNumberFormat,\n}?: {\n separator?: string\n length?: number\n reverse?: boolean\n isNumber?: boolean\n}) => (text: any) => string",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("p",null,"\u53c2\u6570\u4e3a\u4e00\u4e2a\u914d\u7f6e ",a.a.createElement("code",null,"\u5bf9\u8c61")," \uff0c\u5bf9\u8c61\u91cc\u7684\u5c5e\u6027\u5e94\u4e3a\uff1a"),a.a.createElement("ul",null,a.a.createElement("li",null,"separator\uff0c\u95f4\u9694\u7b26"),a.a.createElement("li",null,"length\uff0c\u5207\u5272\u957f\u5ea6"),a.a.createElement("li",null,"reverse\uff0c\u662f\u5426\u53cd\u8f6c\u4e3a\u4ece\u540e\u5f80\u524d\u5207\u5272"),a.a.createElement("li",null,"isNumber\uff0c \u662f\u5426\u4e3a\u6570\u5b57")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u8fd4\u56de\u4e00\u4e2a\u683c\u5f0f\u5316\u51fd\u6570")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"const a = getFormatter({\n separator: '--',\n length: 2,\n reverse: true,\n isNumber: false,\n})\na('abcdefghigklmn') // ab--cd--ef--gh--ig--kl--mn",lang:"js"})),a.a.createElement(i["default"],t["getFormatter-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},mnt4:function(e,t,n){"use strict";var r=n("OOCw"),a=n("uZx/"),o=n("lkgX");r({target:"Map",stat:!0},{groupBy:function(e,t){var n=new this;o(t);var r=o(n.has),i=o(n.get),l=o(n.set);return a(e,(function(e){var a=t(e);r.call(n,a)?i.call(n,a).push(e):l.call(n,a,[e])})),n}})},muZu:function(e,t){function n(e,t){var n=-1,r=t.length,a=e.length;while(++n1?arguments[1]:void 0,1),n=this.length,r=i(e),l=a(r.length),u=0;if(l+t>n)throw RangeError("Wrong length");while(u]*>)/g,h=/\$([$&'`]|\d\d?)/g,v=function(e){return void 0===e?e:String(e)};r("replace",2,(function(e,t,n,r){var g=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,y=r.REPLACE_KEEPS_$0,b=g?"$":"$0";return[function(n,r){var a=c(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,a,r):t.call(String(a),n,r)},function(e,r){if(!g&&y||"string"===typeof r&&-1===r.indexOf(b)){var o=n(t,e,this,r);if(o.done)return o.value}var c=a(e),p=String(this),m="function"===typeof r;m||(r=String(r));var h=c.global;if(h){var w=c.unicode;c.lastIndex=0}var x=[];while(1){var k=s(c,p);if(null===k)break;if(x.push(k),!h)break;var S=String(k[0]);""===S&&(c.lastIndex=u(p,i(c.lastIndex),w))}for(var O="",A=0,j=0;j=A&&(O+=p.slice(A,N)+I,A=N+C.length)}return O+p.slice(A)}];function E(e,n,r,a,i,l){var c=r+e.length,u=a.length,s=h;return void 0!==i&&(i=o(i),s=m),t.call(l,s,(function(t,o){var l;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":l=i[o.slice(1,-1)];break;default:var s=+o;if(0===s)return t;if(s>u){var f=p(s/10);return 0===f?t:f<=u?void 0===a[f-1]?o.charAt(1):a[f-1]+o.charAt(1):t}l=a[s-1]}return void 0===l?"":l}))}}))},nXRf:function(e,t){function n(e){return this.__data__.get(e)}e.exports=n},nZVm:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=a.a.memo((e=>{e.demos;return a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"\u7a7a"},a.a.createElement(o["AnchorLink"],{to:"#\u7a7a","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u7a7a")))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(i,{demos:n})}},niw9:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["copy-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"copy"},a.a.createElement(o["AnchorLink"],{to:"#copy","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"copy"),a.a.createElement("p",null,"\u5c1d\u8bd5\u901a\u8fc7 web \u672c\u8eab\u5b9e\u73b0\u590d\u5236\u529f\u80fd\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"declare const copy: (value: string | number) => void\nexport default copy",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value\uff0c\u8981\u590d\u5236\u7684\u503c")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"undefined")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["copy-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},nndC:function(e,t,n){var r=n("OOCw"),a=n("CBsr");r({target:"WeakMap",stat:!0},{of:a})},o1x9:function(e,t,n){"use strict";var r=n("vfR7").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},oA63:function(e,t,n){var r=n("58gk"),a=n("eKcC"),o=Object.prototype,i=o.propertyIsEnumerable,l=Object.getOwnPropertySymbols,c=l?function(e){return null==e?[]:(e=Object(e),r(l(e),(function(t){return i.call(e,t)})))}:a;e.exports=c},oEsY:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},oGfY:function(e,t,n){"use strict";var r=n("SHha"),a=n("nNWW");t.useSubscription=function(e){var t=e.getCurrentValue,n=e.subscribe,o=a.useState((function(){return{getCurrentValue:t,subscribe:n,value:t()}}));e=o[0];var i=o[1];return o=e.value,e.getCurrentValue===t&&e.subscribe===n||(o=t(),i({getCurrentValue:t,subscribe:n,value:o})),a.useDebugValue(o),a.useEffect((function(){function e(){if(!a){var e=t();i((function(a){return a.getCurrentValue!==t||a.subscribe!==n||a.value===e?a:r({},a,{value:e})}))}}var a=!1,o=n(e);return e(),function(){a=!0,o()}}),[t,n]),o}},oSdA:function(e,t,n){var r=n("KZF9");r("toPrimitive")},ohzl:function(e,t){var n=Object.prototype,r=n.toString;function a(e){return r.call(e)}e.exports=a},opL2:function(e,t,n){var r=n("r+6h"),a=n("0JbB"),o=n("rfqm"),i=n("kj2u").UNSUPPORTED_Y;r&&("g"!=/./g.flags||i)&&a.f(RegExp.prototype,"flags",{configurable:!0,get:o})},orhk:function(e,t){var n="__lodash_hash_undefined__";function r(e){return this.__data__.set(e,n),this}e.exports=r},ou61:function(e,t){function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n>>0,o=t>>>0,i=n>>>0;return o+(r>>>0)+((a&i|(a|i)&~(a+i>>>0))>>>31)|0}})},p1yP:function(e,t,n){"use strict";var r=n("OOCw"),a=n("r+6h"),o=n("THzI"),i=n("OdMF"),l=n("JSMs"),c=n("zesz"),u=n("6ssM").f;a&&r({target:"Object",proto:!0,forced:o},{__lookupGetter__:function(e){var t,n=i(this),r=l(e,!0);do{if(t=u(n,r))return t.get}while(n=c(n))}})},p3eN:function(e,t,n){var r=n("r+6h"),a=n("h+/6"),o=n("73fw");e.exports=!r&&!a((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},p4sU:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},pADs:function(e,t){function n(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=n},pDCl:function(e,t,n){var r=n("OOCw"),a=n("HRbj");r({target:"Map",stat:!0},{from:a})},pKuQ:function(e,t,n){var r=n("sErw");e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(i){var o=e["return"];throw void 0!==o&&r(o.call(e)),i}}},pS8w:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("9kvl"),l=(n("fuK4"),function(e){var t=e.location,n=Object(r["useContext"])(o["context"]),l=n.base,c=n.locale,u=n.config.locales,s=u.find((function(e){var t=e.name;return t!==c}));function f(e){var n=l.replace("/".concat(c),""),r=t.pathname.replace(new RegExp("^".concat(l,"(/|$)")),"".concat(n,"$1"))||"/";if(e!==u[0].name){var a="".concat(n,"/").concat(e).replace(/\/\//,"/"),o=t.pathname.replace(l.replace(/^\/$/,"//"),"");return"".concat(a).concat(o).replace(/\/$/,"")}return r}return s?a.a.createElement("div",{className:"__dumi-default-locale-select","data-locale-count":u.length},u.length>2?a.a.createElement("select",{value:c,onChange:function(e){return i["a"].push(f(e.target.value))}},u.map((function(e){return a.a.createElement("option",{value:e.name,key:e.name},e.label)}))):a.a.createElement(o["Link"],{to:f(s.name)},s.label)):null}),c=l,u=(n("OGs1"),function(e){var t=e.onMobileMenuClick,n=e.navPrefix,i=e.location,l=e.darkPrefix,u=Object(r["useContext"])(o["context"]),s=u.base,f=u.config,d=f.mode,p=f.title,m=f.logo,h=u.nav;return a.a.createElement("div",{className:"__dumi-default-navbar","data-mode":d},a.a.createElement("button",{className:"__dumi-default-navbar-toggle",onClick:t}),a.a.createElement(o["Link"],{className:"__dumi-default-navbar-logo",style:{backgroundImage:m&&"url('".concat(m,"')")},to:s,"data-plaintext":!1===m||void 0},p),a.a.createElement("nav",null,n,h.map((function(e){var t,n=Boolean(null===(t=e.children)||void 0===t?void 0:t.length)&&a.a.createElement("ul",null,e.children.map((function(e){return a.a.createElement("li",{key:e.path},a.a.createElement(o["NavLink"],{to:e.path},e.title))})));return a.a.createElement("span",{key:e.title||e.path},e.path?a.a.createElement(o["NavLink"],{to:e.path,key:e.path},e.title):e.title,n)})),a.a.createElement("div",{className:"__dumi-default-navbar-tool"},a.a.createElement(c,{location:i}),l)))}),s=u,f=(n("4BIg"),["slugs"]);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function m(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a}var h=function(e){var t=e.slugs,n=p(e,f);return a.a.createElement("ul",d({role:"slug-list"},n),t.filter((function(e){var t=e.depth;return t>1&&t<4})).map((function(e){return a.a.createElement("li",{key:e.heading,title:e.value,"data-depth":e.depth},a.a.createElement(o["AnchorLink"],{to:"#".concat(e.heading)},a.a.createElement("span",null,e.value)))})))},v=h,g=(n("Sr6Q"),function(e){var t=e.mobileMenuCollapsed,n=e.location,i=e.darkPrefix,l=Object(r["useContext"])(o["context"]),u=l.config,s=u.logo,f=u.title,d=u.description,p=u.mode,m=u.repository.url,h=l.menu,g=l.nav,y=l.base,b=l.meta,E=Boolean((b.hero||b.features||b.gapless)&&"site"===p)||!1===b.sidemenu||void 0;return a.a.createElement("div",{className:"__dumi-default-menu","data-mode":p,"data-hidden":E,"data-mobile-show":!t||void 0},a.a.createElement("div",{className:"__dumi-default-menu-inner"},a.a.createElement("div",{className:"__dumi-default-menu-header"},a.a.createElement(o["Link"],{to:y,className:"__dumi-default-menu-logo",style:{backgroundImage:s&&"url('".concat(s,"')")}}),a.a.createElement("h1",null,f),a.a.createElement("p",null,d),/github\.com/.test(m)&&"doc"===p&&a.a.createElement("p",null,a.a.createElement("object",{type:"image/svg+xml",data:"https://img.shields.io/github/stars".concat(m.match(/((\/[^\/]+){2})$/)[1],"?style=social")}))),a.a.createElement("div",{className:"__dumi-default-menu-mobile-area"},!!g.length&&a.a.createElement("ul",{className:"__dumi-default-menu-nav-list"},g.map((function(e){var t,n=Boolean(null===(t=e.children)||void 0===t?void 0:t.length)&&a.a.createElement("ul",null,e.children.map((function(e){return a.a.createElement("li",{key:e.path||e.title},a.a.createElement(o["NavLink"],{to:e.path},e.title))})));return a.a.createElement("li",{key:e.path||e.title},e.path?a.a.createElement(o["NavLink"],{to:e.path},e.title):e.title,n)}))),a.a.createElement(c,{location:n}),i),a.a.createElement("ul",{className:"__dumi-default-menu-list"},!E&&h.map((function(e){var t,r=Boolean(null===(t=b.slugs)||void 0===t?void 0:t.length),i=e.children&&Boolean(e.children.length),l="menu"===b.toc&&!i&&r&&e.path===n.pathname.replace(/([^^])\/$/,"$1"),c=i?e.children.map((function(e){return e.path})):[e.path,n.pathname.startsWith("".concat(e.path,"/"))&&b.title===e.title?n.pathname:null];return a.a.createElement("li",{key:e.path||e.title},a.a.createElement(o["NavLink"],{to:e.path,isActive:function(){return c.includes(n.pathname)}},e.title),Boolean(e.children&&e.children.length)&&a.a.createElement("ul",null,e.children.map((function(e){return a.a.createElement("li",{key:e.path},a.a.createElement(o["NavLink"],{to:e.path,exact:!0},a.a.createElement("span",null,e.title)),Boolean("menu"===b.toc&&"undefined"!==typeof window&&e.path===n.pathname&&r)&&a.a.createElement(v,{slugs:b.slugs}))}))),l&&a.a.createElement(v,{slugs:b.slugs}))})))))}),y=g;n("AM8P");function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&u.map((function(e){var t;return a.a.createElement("li",{key:e.path,onClick:function(){return i("")}},a.a.createElement(o["AnchorLink"],{to:e.path},(null===(t=e.parent)||void 0===t?void 0:t.title)&&a.a.createElement("span",null,e.parent.title),A(n,e.title)))})),0===u.length&&n&&a.a.createElement("li",{style:{textAlign:"center"}},p)))};n("/0hc");function C(e,t){return D(e)||_(e,t)||T(e,t)||N()}function N(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(e,t){if(e){if("string"===typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;d--){var p=i[d];"."===p?o(i,d):".."===p?(o(i,d),f++):f&&(o(i,d),f--)}if(!u)for(;f--;f)i.unshift("..");!u||""===i[0]||i[0]&&a(i[0])||i.unshift("");var m=i.join("/");return n&&"/"!==m.substr(-1)&&(m+="/"),m}var l=i;function c(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}function u(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every((function(e,n){return u(e,t[n])}));if("object"===typeof e||"object"===typeof t){var n=c(e),r=c(t);return n!==e||r!==t?u(n,r):Object.keys(Object.assign({},e,t)).every((function(n){return u(e[n],t[n])}))}return!1}var s=u,f=n("gGOj"),d=n.n(f),p=n("rfn3");function m(e){return"/"===e.charAt(0)?e:"/"+e}function h(e){return"/"===e.charAt(0)?e.substr(1):e}function v(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}function g(e,t){return v(e,t)?e.substr(t.length):e}function y(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function b(e){var t=e||"/",n="",r="",a=t.indexOf("#");-1!==a&&(r=t.substr(a),t=t.substr(0,a));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}function E(e){var t=e.pathname,n=e.search,r=e.hash,a=t||"/";return n&&"?"!==n&&(a+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(a+="#"===r.charAt(0)?r:"#"+r),a}function w(e,t,n,a){var o;"string"===typeof e?(o=b(e),o.query=o.search?d.a.parse(o.search):{},o.state=t):(o=Object(r["a"])({},e),void 0===o.pathname&&(o.pathname=""),o.search?("?"!==o.search.charAt(0)&&(o.search="?"+o.search),o.query=d.a.parse(o.search)):(o.search=o.query?d.a.stringify(o.query):"",o.query=o.query||{}),o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(i){throw i instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):i}return n&&(o.key=n),a?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=l(o.pathname,a.pathname)):o.pathname=a.pathname:o.pathname||(o.pathname="/"),o}function x(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&s(e.state,t.state)}function k(){var e=null;function t(t){return e=t,function(){e===t&&(e=null)}}function n(t,n,r,a){if(null!=e){var o="function"===typeof e?e(t,n):e;"string"===typeof o?"function"===typeof r?r(o,a):a(!0):a(!1!==o)}else a(!0)}var r=[];function a(e){var t=!0;function n(){t&&e.apply(void 0,arguments)}return r.push(n),function(){t=!1,r=r.filter((function(e){return e!==n}))}}function o(){for(var e=arguments.length,t=new Array(e),n=0;nn?o.splice(n,o.length-n,a):o.push(a),f({action:r,location:a,index:n,entries:o})}}))}function g(e,t){var r="REPLACE",a=w(e,t,d(),j.location);s.confirmTransitionTo(a,r,n,(function(e){e&&(j.entries[j.index]=a,f({action:r,location:a}))}))}function y(e){var t=B(j.index+e,0,j.entries.length-1),r="POP",a=j.entries[t];s.confirmTransitionTo(a,r,n,(function(e){e?f({action:r,location:a,index:t}):f()}))}function b(){y(-1)}function x(){y(1)}function S(e){var t=j.index+e;return t>=0&&t{var t=e.demos,n=t["preloadImage-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"preloadimage"},a.a.createElement(o["AnchorLink"],{to:"#preloadimage","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"preloadImage"),a.a.createElement("p",null,"\u9884\u6e32\u67d3\u6307\u5b9a\u56fe\u7247\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"preloadImage: (srcList: string[]) => void;",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"srcList \u9884\u6e32\u67d3\u56fe\u7247\u5730\u5740\u6570\u7ec4")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"undefined")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"preloadImage(['url.jpg'])",lang:"javascript"})),a.a.createElement(i["default"],t["preloadImage-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},rHUP:function(e,t,n){"use strict";var r=n("OOCw"),a=n("jssG").right,o=n("rUEg"),i=n("7/pz"),l=o("reduceRight"),c=i("reduce",{1:0});r({target:"Array",proto:!0,forced:!l||!c},{reduceRight:function(e){return a(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},rUEg:function(e,t,n){"use strict";var r=n("h+/6");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},rVbH:function(e,t,n){"use strict";e.exports=n("BZ8O")},rfn3:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=!0,a="Invariant failed";function o(e,t){if(!e){if(r)throw new Error(a);var n="function"===typeof t?t():t,o=n?"".concat(a,": ").concat(n):a;throw new Error(o)}}},rfqm:function(e,t,n){"use strict";var r=n("sErw");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},rjd2:function(e,t,n){"use strict";var r=n("OOCw"),a=n("uZx/"),o=n("lkgX");r({target:"Map",stat:!0},{keyBy:function(e,t){var n=new this;o(t);var r=o(n.set);return a(e,(function(e){r.call(n,t(e),e)})),n}})},rjqm:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["pipe-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"pipe"},a.a.createElement(o["AnchorLink"],{to:"#pipe","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"pipe"),a.a.createElement("p",null,"\u7ba1\u9053\u51fd\u6570\u3002\u9002\u5408\u628a\u524d\u4e00\u4e2a\u51fd\u6570\u7684 ",a.a.createElement("code",null,"\u8fd4\u56de\u7ed3\u679c")," \u4f5c\u4e3a\u540e\u4e00\u4e2a\u51fd\u6570\u7684 ",a.a.createElement("code",null,"\u8f93\u5165")," \u7684\u573a\u666f\u3002"),a.a.createElement("h3",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"pipe: (...handlers: Function[]) => (arg: any) => T;",lang:"unknown"}),a.a.createElement("h3",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"handlers \u51fd\u6570\u4eec")),a.a.createElement("h3",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u628a\u201c\u7ba1\u9053\u201d\u62fc\u63a5\u597d\u7684\u65b0\u51fd\u6570\u3002")),a.a.createElement("h3",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"import React, { useState } from 'react'\nimport { pipe } from '@fexd/tools'\n\n// \u4f8b\u5b50\u4e00\uff1a\u60f3\u5f97\u5230\u67d0\u4e2a\u6570\u5b57 +1 +3 +5 \u7684\u503c\nconst plusOne = (num) => num + 1\nconst plusThree = (num) => num + 3\nconst plusFive = (num) => num + 5\n\nconsole.log(plusFive(plusThree(plusOne(666)))) // 675\nconsole.log(plusFive(plusThree(plusOne(996)))) // 1005\n// \u4f7f\u7528\u7ba1\u9053\u51fd\u6570\nconst pipePlus = pipe(plusOne, plusThree, plusFive)\nconsole.log(pipePlus(666)) // 675\nconsole.log(pipePlus(996)) // 1005\n\n// \u4f8b\u5b50\u4e8c\uff1a\u83b7\u5f97\u5f53\u524d\u65f6\u95f4\u7684\u6628\u5929\u65e5\u671f\n// \u83b7\u53d6\u65e5\u671f\u7684\u5f53\u5929\u7684\u96f6\u65f6\u523b\nconst h0 = (date) => {\n date.setHours(0)\n date.setMinutes(0)\n date.setSeconds(0)\n date.setMilliseconds(0)\n return date\n}\n// \u83b7\u53d6\u65e5\u671f\u7684\u6628\u5929\nconst getLastday = (date) => {\n date.setDate(date.getDate() - 1)\n return date\n}\n// \u5c06\u65e5\u671f\u5bf9\u8c61\u8f6c\u5316\u4e3a\u5b57\u7b26\u4e32\nconst getString = (date) => {\n const year = date.getFullYear()\n const month = date.getMonth() + 1\n const day = date.getDate()\n return `${year}\u5e74${month}\u6708${day}\u65e5`\n}\n\nconsole.log(getString(getLastday(h0(new Date())))) // 2020\u5e7411\u670822\u65e5\nconsole.log(getString(getLastday(h0(new Date('2020-02-01'))))) // 2020\u5e741\u670831\u65e5\n// \u4f7f\u7528\u7ba1\u9053\u51fd\u6570\nconst pipeDateStr = pipe(h0, getLastday, getString)\nconsole.log(pipeDateStr(new Date())) // 2020\u5e7411\u670822\u65e5\nconsole.log(pipeDateStr(new Date('2020-02-01'))) // 2020\u5e741\u670831\u65e5",lang:"javascript"})),a.a.createElement(i["default"],t["pipe-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},rkJ6:function(e,t,n){var r=n("fkhx");function a(e,t){var n=e.length;while(n--)if(r(e[n][0],t))return n;return-1}e.exports=a},rmH6:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},"rp+D":function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["lock-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"lock"},a.a.createElement(o["AnchorLink"],{to:"#lock","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"lock"),a.a.createElement("p",null,"\u7ed9\u51fd\u6570\u52a0\u9501\uff1a\u51fd\u6570\u6267\u884c\u4e00\u6b21\u540e\u81ea\u52a8\u9501\u5b9a\uff0c\u9664\u975e\u89e3\u9501\uff0c\u5426\u5219\u4e0d\u4f1a\u518d\u6267\u884c\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"lock(func: Function)",lang:"unknown"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"func \u6267\u884c\u7684\u51fd\u6570")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u9501\u5b9a\u7684\u51fd\u6570")),a.a.createElement("h2",{id:"\u5e38\u7528\u5b50\u65b9\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u5e38\u7528\u5b50\u65b9\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u5e38\u7528\u5b50\u65b9\u6cd5"),a.a.createElement("h3",{id:"1-islocked"},a.a.createElement(o["AnchorLink"],{to:"#1-islocked","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"1. isLocked()"),a.a.createElement("p",null,"\u67e5\u770b\u662f\u5426\u5df2\u7ecf\u9501\u5b9a\u3002"),a.a.createElement(l["a"],{code:"import { lock } from '@fexd/tools'\n\nconst lockFunc = lock(function get(a1) {\n console.log(a1)\n})\n\nlockFunc.isLocked() // false\nlockFunc(1) // 1\nlockFunc.isLocked() // true",lang:"js"}),a.a.createElement("h3",{id:"2-unlock"},a.a.createElement(o["AnchorLink"],{to:"#2-unlock","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"2. unlock()"),a.a.createElement("p",null,"\u89e3\u9501\u51fd\u6570\u3002"),a.a.createElement(l["a"],{code:"import { lock } from '@fexd/tools'\n\nconst lockFunc = lock(function get(a1) {\n console.log(a1)\n})\n\nlockFunc(1) // 1\nlockFunc(1) // \u6ca1\u6267\u884c\uff0c\u6ca1\u8f93\u51fa\nlockFun.unlock()\nlockFunc(1) // 1\nlockFunc(1) // \u6ca1\u6267\u884c\uff0c\u6ca1\u8f93\u51fa",lang:"js"}),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["lock-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},rwnW:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["SAS-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"sas"},a.a.createElement(o["AnchorLink"],{to:"#sas","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"SAS"),a.a.createElement("p",null,"[\u5355\u54a8\u8be2\u670d\u52a1] Single Advisory Service \u540c\u4e00\u65f6\u523b\u5bf9\u540c\u4e00\u5f02\u6b65\u8bf7\u6c42\u8fdb\u884c\u7edf\u4e00\u7b49\u5f85\uff0c\u4e0d\u91cd\u590d\u53d1\u8d77\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"SAS: (query: () => Promise) => () => Promise;",lang:"unknown"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"query \u5f02\u6b65\u67e5\u8be2\u51fd\u6570\uff0c\u9700\u8981\u8fd4\u56de Promise")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,'"\u4e0a\u9501"\u4e86\u7684\u65b0\u51fd\u6570')),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["SAS-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},ry2H:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("sErw"),i=n("lkgX"),l=n("R8Xy"),c=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:a},{reduce:function(e){var t=o(this),n=l(t),r=arguments.length<2,a=r?void 0:arguments[1];if(i(e),c(n,(function(n){r?(r=!1,a=n):a=e(a,n,n,t)}),void 0,!1,!0),r)throw TypeError("Reduce of empty set with no initial value");return a}})},ry6q:function(e,t,n){var r=n("7HYU"),a=n("Oax0"),o=n("1DF2"),i=n("UtSM"),l=n("TDWY");function c(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t{var t=e.demos,n=t["flatten-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"flatten"},a.a.createElement(o["AnchorLink"],{to:"#flatten","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"flatten"),a.a.createElement("p",null,"\u6570\u7ec4\u62cd\u5e73\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"flatten: (array: any[]) => T[];",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u9700\u8981\u62cd\u5e73\u7684\u6570\u7ec4")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u62cd\u5e73\u7684\u6570\u7ec4")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["flatten-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},sErw:function(e,t,n){var r=n("x+sk");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},sLj8:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("fVxY");function a(e,t){if("function"!==typeof t&&null!==t)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&&Object(r["a"])(e,t)}},sgiM:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("yh5g"),a=n.n(r);function o(e){return e instanceof HTMLElement?e:a.a.findDOMNode(e)}},sq0Y:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["isNumber-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"isnumber"},a.a.createElement(o["AnchorLink"],{to:"#isnumber","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isNumber"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a Number \u7c7b\u578b\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isNumber: (value: any) => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value \uff0c\u8981\u5224\u65ad\u7684\u6570\u636e")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u662f Number \u7c7b\u578b"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u4e0d\u662f Number \u7c7b\u578b")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"isNumber(null) //false\n\nisNumber(1) //true",lang:"javascript"})),a.a.createElement(i["default"],t["isNumber-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},sr0c:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["promiseGuess-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"promiseguess"},a.a.createElement(o["AnchorLink"],{to:"#promiseguess","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"promiseGuess"),a.a.createElement("p",null,"\u731c\u6d4b\u662f\u5426\u4e3a\u5f02\u6b65\u51fd\u6570\uff0c\u7528\u6765\u667a\u80fd\u5904\u7406 Promise \u7c7b\u578b\u8fd4\u56de\u503c\u3002"),a.a.createElement("p",null,"\u5982\u679c\u7b2c\u4e00\u4e2a\u53c2\u6570\uff0c\u662f\u4e00\u4e2a\u5f02\u6b65\u51fd\u6570\uff0c\u5c06\u5f97\u5230 promise \u7c7b\u578b\u8fd4\u56de\u503c\uff0c\u6309\u7ea6\u5b9a resolve \u6700\u7ec8\u503c\u3002"),a.a.createElement("p",null,"\u5982\u679c\u7b2c\u4e00\u4e2a\u53c2\u6570\uff0c\u4e0d\u662f\u4e00\u4e2a\u5f02\u6b65\u51fd\u6570\uff0c\u5c06\u76f4\u63a5\u8c03\u7528\u51fd\u6570\uff0c\u8fd4\u56de\u6700\u7ec8\u503c\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"promiseGuess: (executor: Function, valuer: Function) => (...args: any[]) => T",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"executor \u51fd\u6570\uff0c\u6267\u884c\u8fc7\u7a0b\u83b7\u53d6\u3002\u53ef\u4ee5\u662f\u5f02\u6b65\u51fd\u6570\u4e5f\u53ef\u4ee5\u4e0d\u662f\u5f02\u6b65\u51fd\u6570\u3002"),a.a.createElement("li",null,"valuer \u51fd\u6570\uff0c\u503c\u5904\u7406\u8fc7\u7a0b\u3002")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"executor \u4e3a\u5f02\u6b65\u51fd\u6570\uff0c\u8fd4\u56de\u503c\u4e3a\u5f02\u6b65\u51fd\u6570\u3002"),a.a.createElement("li",null,"executor \u4e0d\u4e3a\u5f02\u6b65\u51fd\u6570\uff0c\u8fd4\u56de\u503c\u4e3a\u666e\u901a\u51fd\u6570\u3002")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"import React, { useState } from 'react'\nimport { promiseGuess, delay } from '@fexd/tools'\n\nconst person = {\n name: 'Amy',\n age: 18,\n}\n\nconst asyncGreet = promiseGuess(\n async ({ name, age }) => {\n console.log(name, age) // Amy 18\n await delay(1000)\n return name\n },\n (error, value, args) => {\n console.log(error, value, args) // [null, \"Amy\", {name: \"Amy\", age: 18}]\n return `Hello.I'm ${value}`\n }\n)\n\nconst greet = promiseGuess(\n ({ name, age }) => {\n console.log(name, age) // Amy 18\n return name\n },\n (error, value, args) => {\n console.log(error, value, args) // [null, \"Amy\", {name: \"Amy\", age: 18}]\n return `Hello.I'm ${value}`\n }\n)\n\nconsole.log(asyncGreet(person)) // Promise{}\nconsole.log(greet(person)) // Hello.I'm Amy",lang:"javascript"})),a.a.createElement(i["default"],t["promiseGuess-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},"t+GO":function(e,t,n){var r=n("t+TA"),a=n("O4yA"),o=r(a,"DataView");e.exports=o},"t+TA":function(e,t,n){var r=n("bK3N"),a=n("HU7W");function o(e,t){var n=a(e,t);return r(n)?n:void 0}e.exports=o},"t+pk":function(e,t,n){"use strict";var r=n("QkOx"),a=n("q43B"),o=n("sErw"),i=n("z43i"),l=n("ZT9G"),c=n("o1x9"),u=n("upgS"),s=n("OR72"),f=n("A2zS"),d=n("h+/6"),p=[].push,m=Math.min,h=4294967295,v=!d((function(){return!RegExp(h,"y")}));r("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(i(this)),o=void 0===n?h:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!a(e))return t.call(r,e,o);var l,c,u,s=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,v=new RegExp(e.source,d+"g");while(l=f.call(v,r)){if(c=v.lastIndex,c>m&&(s.push(r.slice(m,l.index)),l.length>1&&l.index=o))break;v.lastIndex===l.index&&v.lastIndex++}return m===r.length?!u&&v.test("")||s.push(""):s.push(r.slice(m)),s.length>o?s.slice(0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var a=i(this),o=void 0==t?void 0:t[e];return void 0!==o?o.call(t,a,n):r.call(String(a),t,n)},function(e,a){var i=n(r,e,this,a,r!==t);if(i.done)return i.value;var f=o(e),d=String(this),p=l(f,RegExp),g=f.unicode,y=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(v?"y":"g"),b=new p(v?f:"^(?:"+f.source+")",y),E=void 0===a?h:a>>>0;if(0===E)return[];if(0===d.length)return null===s(b,d)?[d]:[];var w=0,x=0,k=[];while(x{var t=n("nNWW"),r=n("u6Sb"),a=r.default,o=n("JsrE"),i=o.default,c=n("Gdey"),u=c.usePrefersColor,s=c.context,f=t.useContext(s),d=f.demos,p=t.useState([]),m=Object(l["default"])(p,2),h=m[0],v=m[1];switch(t.useLayoutEffect((()=>{v(a(e,d))}),[e.match.params.uuid,e.location.query.wrapper,e.location.query.capture]),u(),h.length){case 1:return h[0];case 2:return t.createElement(i,h[0],h[1]);default:return"Demo ".concat(e.match.params.uuid," not found :(")}}},{path:"/_demos/:uuid",redirect:"/~demos/:uuid"},{__dumiRoot:!0,layout:!1,path:"/",wrappers:[n("afA6").default,n("pS8w").default],routes:[{path:"/",component:n("wVcw").default,exact:!0,meta:{filePath:"documents/index.md",updatedTime:1700622704e3,sidemenu:!1,slugs:[{depth:1,value:"\u8f85\u52a9\u5de5\u5177\u5e93",heading:"\u8f85\u52a9\u5de5\u5177\u5e93"},{depth:2,value:"\u5b89\u88c5",heading:"\u5b89\u88c5"},{depth:2,value:"\u7528\u6cd5\u793a\u4f8b",heading:"\u7528\u6cd5\u793a\u4f8b"},{depth:2,value:"\u6309\u9700\u52a0\u8f7d",heading:"\u6309\u9700\u52a0\u8f7d"},{depth:2,value:"\u5bfc\u51fa\u7684\u65b9\u6cd5\u6709\u4ee5\u4e0b",heading:"\u5bfc\u51fa\u7684\u65b9\u6cd5\u6709\u4ee5\u4e0b"}],title:"\u8f85\u52a9\u5de5\u5177\u5e93"},title:"\u8f85\u52a9\u5de5\u5177\u5e93 - Fexd Tools"},{path:"/\u6587\u6863/\u4e8b\u4ef6\u5904\u7406/event-bus",component:n("Edy/").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u4e8b\u4ef6\u5904\u7406/EventBus.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"EventBus",heading:"eventbus"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u5b9e\u4f8b\u5c5e\u6027",heading:"\u5b9e\u4f8b\u5c5e\u6027"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"EventBus",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u4e8b\u4ef6\u5904\u7406",title:"\u4e8b\u4ef6\u5904\u7406"}},title:"EventBus - Fexd Tools"},{path:"/\u6587\u6863/\u51fd\u6570/delay",component:n("ZEG/").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u51fd\u6570/delay.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"delay",heading:"delay"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:3,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"delay",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u51fd\u6570",title:"\u51fd\u6570"}},title:"delay - Fexd Tools"},{path:"/\u6587\u6863/\u51fd\u6570/lock",component:n("rp+D").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u51fd\u6570/lock.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"lock",heading:"lock"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u5e38\u7528\u5b50\u65b9\u6cd5",heading:"\u5e38\u7528\u5b50\u65b9\u6cd5"},{depth:3,value:"1. isLocked()",heading:"1-islocked"},{depth:3,value:"2. unlock()",heading:"2-unlock"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"lock",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u51fd\u6570",title:"\u51fd\u6570"}},title:"lock - Fexd Tools"},{path:"/\u6587\u6863/\u51fd\u6570/memoize",component:n("7JKi").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u51fd\u6570/memoize.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"memoize",heading:"memoize"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4f7f\u7528\u65b9\u6cd5",heading:"\u4f7f\u7528\u65b9\u6cd5"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"memoize",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u51fd\u6570",title:"\u51fd\u6570"}},title:"memoize - Fexd Tools"},{path:"/\u6587\u6863/\u51fd\u6570/next-tick",component:n("dOaE").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u51fd\u6570/nextTick.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"nextTick",heading:"nexttick"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"nextTick",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u51fd\u6570",title:"\u51fd\u6570"}},title:"nextTick - Fexd Tools"},{path:"/\u6587\u6863/\u51fd\u6570/pick",component:n("/AzE").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u51fd\u6570/pick.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"pick",heading:"pick"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"pick",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u51fd\u6570",title:"\u51fd\u6570"}},title:"pick - Fexd Tools"},{path:"/\u6587\u6863/\u51fd\u6570/pick-by",component:n("/ZDR").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u51fd\u6570/pickBy.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"pickBy",heading:"pickby"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"pickBy",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u51fd\u6570",title:"\u51fd\u6570"}},title:"pickBy - Fexd Tools"},{path:"/\u6587\u6863/\u51fd\u6570/pipe",component:n("rjqm").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u51fd\u6570/pipe.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"pipe",heading:"pipe"},{depth:3,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:3,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:3,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:3,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"pipe",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u51fd\u6570",title:"\u51fd\u6570"}},title:"pipe - Fexd Tools"},{path:"/\u6587\u6863/\u51fd\u6570/promise-guess",component:n("sr0c").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u51fd\u6570/promiseGuess.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"promiseGuess",heading:"promiseguess"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"promiseGuess",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u51fd\u6570",title:"\u51fd\u6570"}},title:"promiseGuess - Fexd Tools"},{path:"/\u6587\u6863/\u51fd\u6570/random",component:n("0G8B").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u51fd\u6570/random.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"random",heading:"random"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"random",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u51fd\u6570",title:"\u51fd\u6570"}},title:"random - Fexd Tools"},{path:"/\u6587\u6863/\u51fd\u6570/sample",component:n("31cE").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u51fd\u6570/sample.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"sample",heading:"sample"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"sample",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u51fd\u6570",title:"\u51fd\u6570"}},title:"sample - Fexd Tools"},{path:"/\u6587\u6863/\u51fd\u6570/tween",component:n("PE3m").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u51fd\u6570/Tween.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"Tween",heading:"tween"},{depth:2,value:"\u8be6\u7ec6 demo",heading:"\u8be6\u7ec6-demo"},{depth:2,value:"\u7b80\u964b\u4e3e\u4f8b",heading:"\u7b80\u964b\u4e3e\u4f8b"}],title:"Tween",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u51fd\u6570",title:"\u51fd\u6570"}},title:"Tween - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-android",component:n("d9X2").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isAndroid.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isAndroid",heading:"isandroid"},{depth:3,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isAndroid",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isAndroid - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-array",component:n("YUzc").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isArray.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isArray",heading:"isarray"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isArray",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isArray - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-boolean",component:n("NNlK").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isBoolean.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isBoolean",heading:"isboolean"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isBoolean",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isBoolean - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-date",component:n("itOZ").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isDate.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isDate",heading:"isdate"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isDate",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isDate - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-desktop",component:n("PyMO").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isDesktop.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isDesktop",heading:"isdesktop"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isDesktop",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isDesktop - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-error",component:n("b/MS").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isError.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isError",heading:"iserror"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isError",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isError - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-exist",component:n("GE8o").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isExist.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isExist",heading:"isexist"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isExist",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isExist - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-function",component:n("xEA5").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isFunction.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isFunction",heading:"isfunction"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isFunction",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isFunction - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-ios",component:n("4D/p").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isIOS.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isIOS",heading:"isios"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isIOS",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isIOS - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-mobile",component:n("KH8A").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isMobile.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isMobile",heading:"ismobile"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isMobile",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isMobile - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-na-n",component:n("M48M").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isNaN.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isNaN",heading:"isnan"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isNaN",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isNaN - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-null",component:n("PewQ").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isNull.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isNull",heading:"isnull"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isNull",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isNull - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-number",component:n("sq0Y").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isNumber.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isNumber",heading:"isnumber"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isNumber",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isNumber - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-object",component:n("TEI5").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isObject.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isObject",heading:"isobject"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isObject",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isObject - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-promise-like",component:n("vmLw").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isPromiseLike.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isPromiseLike",heading:"ispromiselike"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isPromiseLike",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isPromiseLike - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-string",component:n("UBRp").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isString.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isString",heading:"isstring"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isString",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isString - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-undefined",component:n("yA6K").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isUndefined.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isUndefined",heading:"isundefined"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isUndefined",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isUndefined - Fexd Tools"},{path:"/\u6587\u6863/\u5224\u65ad/is-wkwebview",component:n("0EOe").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5224\u65ad/isWKWebview.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"isWKWebview",heading:"iswkwebview"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"isWKWebview",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5224\u65ad",title:"\u5224\u65ad"}},title:"isWKWebview - Fexd Tools"},{path:"/\u6587\u6863/\u56fd\u9645\u5316/i18n",component:n("Q7Q6").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u56fd\u9645\u5316/I18n.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"I18n",heading:"i18n"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"I18n",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u56fd\u9645\u5316",title:"\u56fd\u9645\u5316"}},title:"I18n - Fexd Tools"},{path:"/\u6587\u6863/\u5b58\u53d6/storage",component:n("Wm87").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5b58\u53d6/storage.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"storage",heading:"storage"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"storage \u5bf9\u8c61\u91cc\u7684\u5c5e\u6027",heading:"storage-\u5bf9\u8c61\u91cc\u7684\u5c5e\u6027"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"storage",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5b58\u53d6",title:"\u5b58\u53d6"}},title:"storage - Fexd Tools"},{path:"/\u6587\u6863/\u5de5\u5177/capitalize",component:n("J4oQ").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5de5\u5177/capitalize.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"capitalize",heading:"capitalize"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"capitalize",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5de5\u5177",title:"\u5de5\u5177"}},title:"capitalize - Fexd Tools"},{path:"/\u6587\u6863/\u5de5\u5177/copy",component:n("niw9").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5de5\u5177/copy.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"copy",heading:"copy"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"copy",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5de5\u5177",title:"\u5de5\u5177"}},title:"copy - Fexd Tools"},{path:"/\u6587\u6863/\u5de5\u5177/first",component:n("uEBc").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5de5\u5177/first.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"first",heading:"first"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"first",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5de5\u5177",title:"\u5de5\u5177"}},title:"first - Fexd Tools"},{path:"/\u6587\u6863/\u5de5\u5177/get",component:n("UWO6").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5de5\u5177/get.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"get",heading:"get"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"get",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5de5\u5177",title:"\u5de5\u5177"}},title:"get - Fexd Tools"},{path:"/\u6587\u6863/\u5de5\u5177/get-formatter",component:n("miY2").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5de5\u5177/getFormatter.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"getFormatter",heading:"getformatter"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"getFormatter",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5de5\u5177",title:"\u5de5\u5177"}},title:"getFormatter - Fexd Tools"},{path:"/\u6587\u6863/\u5de5\u5177/intersection",component:n("dh0R").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5de5\u5177/intersection.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"intersection",heading:"intersection"},{depth:3,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:3,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:3,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:3,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"intersection",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5de5\u5177",title:"\u5de5\u5177"}},title:"intersection - Fexd Tools"},{path:"/\u6587\u6863/\u5de5\u5177/last",component:n("XLmh").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5de5\u5177/last.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"last",heading:"last"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"last",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5de5\u5177",title:"\u5de5\u5177"}},title:"last - Fexd Tools"},{path:"/\u6587\u6863/\u5de5\u5177/run",component:n("SgJx").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5de5\u5177/run.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"run",heading:"run"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"run",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5de5\u5177",title:"\u5de5\u5177"}},title:"run - Fexd Tools"},{path:"/\u6587\u6863/\u5de5\u5177/set",component:n("6qLJ").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5de5\u5177/set.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"set",heading:"set"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"set",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5de5\u5177",title:"\u5de5\u5177"}},title:"set - Fexd Tools"},{path:"/\u6587\u6863/\u5de5\u5177/uniq-by-key",component:n("I0FN").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5de5\u5177/uniqByKey.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"uniqByKey",heading:"uniqbykey"},{depth:3,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"uniqByKey",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5de5\u5177",title:"\u5de5\u5177"}},title:"uniqByKey - Fexd Tools"},{path:"/\u6587\u6863/\u5de5\u5177/value",component:n("BNr0").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5de5\u5177/value.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"value",heading:"value"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"value",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5de5\u5177",title:"\u5de5\u5177"}},title:"value - Fexd Tools"},{path:"/\u6587\u6863/\u5e8f\u5217\u5316/qs",component:n("bOH8").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u5e8f\u5217\u5316/qs.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"qs",heading:"qs"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:3,value:"qs.parse",heading:"qsparse"},{depth:4,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5-1"},{depth:4,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:4,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:4,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"},{depth:3,value:"qs.stringify",heading:"qsstringify"},{depth:4,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5-2"},{depth:4,value:"\u53c2\u6570",heading:"\u53c2\u6570-1"},{depth:4,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c-1"},{depth:4,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b-1"}],title:"qs",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u5e8f\u5217\u5316",title:"\u5e8f\u5217\u5316"}},title:"qs - Fexd Tools"},{path:"/\u6587\u6863/\u6269\u5c55/classnames",component:n("l1UK").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u6269\u5c55/classnames.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"classnames",heading:"classnames"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"classnames",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u6269\u5c55",title:"\u6269\u5c55"}},title:"classnames - Fexd Tools"},{path:"/\u6587\u6863/\u6269\u5c55/comb-judge",component:n("trcp").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u6269\u5c55/CombJudge.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"CombJudge",heading:"combjudge"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u8fd4\u56de\u7684\u5b9e\u4f8b\u7684\u5c5e\u6027",heading:"\u8fd4\u56de\u7684\u5b9e\u4f8b\u7684\u5c5e\u6027"},{depth:3,value:"list",heading:"list"},{depth:3,value:"attrKey",heading:"attrkey"},{depth:3,value:"attr",heading:"attr"},{depth:3,value:"have()",heading:"have"},{depth:3,value:"find()",heading:"find"},{depth:3,value:"adaptedAttr()",heading:"adaptedattr"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"CombJudge",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u6269\u5c55",title:"\u6269\u5c55"}},title:"CombJudge - Fexd Tools"},{path:"/\u6587\u6863/\u6269\u5c55/global-this",component:n("W5+R").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u6269\u5c55/globalThis.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"globalThis",heading:"globalthis"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"globalThis",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u6269\u5c55",title:"\u6269\u5c55"}},title:"globalThis - Fexd Tools"},{path:"/\u6587\u6863/\u6570\u5b57/clamp",component:n("PPg0").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u6570\u5b57/clamp.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"clamp",heading:"clamp"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"clamp",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u6570\u5b57",title:"\u6570\u5b57"}},title:"clamp - Fexd Tools"},{path:"/\u6587\u6863/\u6570\u7ec4/flatten",component:n("s9xe").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u6570\u7ec4/flatten.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"flatten",heading:"flatten"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"flatten",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u6570\u7ec4",title:"\u6570\u7ec4"}},title:"flatten - Fexd Tools"},{path:"/\u6587\u6863/\u6570\u7ec4/group-by",component:n("1623").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u6570\u7ec4/groupBy.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"groupBy",heading:"groupby"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"groupBy",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u6570\u7ec4",title:"\u6570\u7ec4"}},title:"groupBy - Fexd Tools"},{path:"/\u6587\u6863/\u67ef\u91cc\u5316/curry",component:n("TwAS").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u67ef\u91cc\u5316/curry.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"curry",heading:"curry"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"curry",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u67ef\u91cc\u5316",title:"\u67ef\u91cc\u5316"}},title:"curry - Fexd Tools"},{path:"/\u6587\u6863/\u67ef\u91cc\u5316/\u4e0b\u5212\u7ebf",component:n("T39T").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u67ef\u91cc\u5316/\u4e0b\u5212\u7ebf.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"__",heading:"__"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"__",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u67ef\u91cc\u5316",title:"\u67ef\u91cc\u5316"}},title:"__ - Fexd Tools"},{path:"/\u6587\u6863/\u6e32\u67d3/default-frame-process",component:n("nZVm").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u6e32\u67d3/defaultFrameProcess.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"\u7a7a",heading:"\u7a7a"}],title:"\u7a7a",nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u6e32\u67d3",title:"\u6e32\u67d3"}},title:"\u7a7a - Fexd Tools"},{path:"/\u6587\u6863/\u6e32\u67d3/frame-process",component:n("Xu7U").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u6e32\u67d3/FrameProcess.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"FrameProcess",heading:"frameprocess"},{depth:2,value:"FrameProcess \u5e27\u8fdb\u7a0b\uff0c\u7528\u4e8e\u5236\u4f5c\u52a8\u753b",heading:"frameprocess-\u5e27\u8fdb\u7a0b\u7528\u4e8e\u5236\u4f5c\u52a8\u753b"},{depth:3,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:3,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:3,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:3,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"FrameProcess",nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u6e32\u67d3",title:"\u6e32\u67d3"}},title:"FrameProcess - Fexd Tools"},{path:"/\u6587\u6863/\u6e32\u67d3/preload-image",component:n("rG9Z").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u6e32\u67d3/preloadImage.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"preloadImage",heading:"preloadimage"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"preloadImage",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u6e32\u67d3",title:"\u6e32\u67d3"}},title:"preloadImage - Fexd Tools"},{path:"/\u6587\u6863/\u76d1\u542c/scroll-listener",component:n("cO67").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u76d1\u542c/ScrollListener.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"ScrollListener",heading:"scrolllistener"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"ScrollListener",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u76d1\u542c",title:"\u76d1\u542c"}},title:"ScrollListener - Fexd Tools"},{path:"/\u6587\u6863/\u8282\u6d41/debounce",component:n("fXIi").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u8282\u6d41/debounce.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"debounce",heading:"debounce"},{depth:3,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:3,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:3,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:3,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"debounce",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u8282\u6d41",title:"\u8282\u6d41"}},title:"debounce - Fexd Tools"},{path:"/\u6587\u6863/\u8282\u6d41/throttle",component:n("X7eB").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u8282\u6d41/throttle.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"throttle",heading:"throttle"},{depth:3,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:3,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:3,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:3,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"throttle",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u8282\u6d41",title:"\u8282\u6d41"}},title:"throttle - Fexd Tools"},{path:"/\u6587\u6863/\u8bf7\u6c42/sas",component:n("rwnW").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u8bf7\u6c42/SAS.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"SAS",heading:"sas"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"\u53c2\u6570",heading:"\u53c2\u6570"},{depth:2,value:"\u8fd4\u56de\u503c",heading:"\u8fd4\u56de\u503c"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"SAS",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u8bf7\u6c42",title:"\u8bf7\u6c42"}},title:"SAS - Fexd Tools"},{path:"/\u6587\u6863/\u8bf7\u6c42/source",component:n("1B1/").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u8bf7\u6c42/source.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"source",heading:"source"},{depth:2,value:"\u8bed\u6cd5",heading:"\u8bed\u6cd5"},{depth:2,value:"source \u5bf9\u8c61\u5c5e\u6027",heading:"source-\u5bf9\u8c61\u5c5e\u6027"},{depth:2,value:"\u4e3e\u4f8b",heading:"\u4e3e\u4f8b"}],title:"source",nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u8bf7\u6c42",title:"\u8bf7\u6c42"}},title:"source - Fexd Tools"},{path:"/\u6587\u6863/\u8bf7\u6c42/url",component:n("/383").default,exact:!0,meta:{filePath:"documents/\u6587\u6863/\u8bf7\u6c42/url.md",updatedTime:1700622704e3,slugs:[{depth:1,value:"url",heading:"url"},{depth:2,value:"url \u91cc\u7684\u53c2\u6570",heading:"url-\u91cc\u7684\u53c2\u6570"},{depth:2,value:"\u793a\u4f8b",heading:"\u793a\u4f8b"},{depth:3,value:"url.allParam()",heading:"urlallparam"},{depth:3,value:"url.param(name)",heading:"urlparamname"},{depth:3,value:"url.generateParamStr(paramObj)",heading:"urlgenerateparamstrparamobj"},{depth:3,value:"url.paramEscape() \u548c url.allParamEscape()",heading:"urlparamescape-\u548c-urlallparamescape"}],title:"url",hasPreviewer:!0,nav:{path:"/\u6587\u6863",title:"\u6587\u6863"},group:{path:"/\u6587\u6863/\u8bf7\u6c42",title:"\u8bf7\u6c42"}},title:"url - Fexd Tools"},{path:"/\u6587\u6863/\u4e8b\u4ef6\u5904\u7406",meta:{},exact:!0,redirect:"/\u6587\u6863/\u4e8b\u4ef6\u5904\u7406/event-bus"},{path:"/\u6587\u6863",meta:{},exact:!0,redirect:"/\u6587\u6863/\u4e8b\u4ef6\u5904\u7406"},{path:"/\u6587\u6863/\u51fd\u6570",meta:{},exact:!0,redirect:"/\u6587\u6863/\u51fd\u6570/delay"},{path:"/\u6587\u6863/\u5224\u65ad",meta:{},exact:!0,redirect:"/\u6587\u6863/\u5224\u65ad/is-android"},{path:"/\u6587\u6863/\u56fd\u9645\u5316",meta:{},exact:!0,redirect:"/\u6587\u6863/\u56fd\u9645\u5316/i18n"},{path:"/\u6587\u6863/\u5b58\u53d6",meta:{},exact:!0,redirect:"/\u6587\u6863/\u5b58\u53d6/storage"},{path:"/\u6587\u6863/\u5de5\u5177",meta:{},exact:!0,redirect:"/\u6587\u6863/\u5de5\u5177/capitalize"},{path:"/\u6587\u6863/\u5e8f\u5217\u5316",meta:{},exact:!0,redirect:"/\u6587\u6863/\u5e8f\u5217\u5316/qs"},{path:"/\u6587\u6863/\u6269\u5c55",meta:{},exact:!0,redirect:"/\u6587\u6863/\u6269\u5c55/classnames"},{path:"/\u6587\u6863/\u6570\u5b57",meta:{},exact:!0,redirect:"/\u6587\u6863/\u6570\u5b57/clamp"},{path:"/\u6587\u6863/\u6570\u7ec4",meta:{},exact:!0,redirect:"/\u6587\u6863/\u6570\u7ec4/flatten"},{path:"/\u6587\u6863/\u67ef\u91cc\u5316",meta:{},exact:!0,redirect:"/\u6587\u6863/\u67ef\u91cc\u5316/curry"},{path:"/\u6587\u6863/\u6e32\u67d3",meta:{},exact:!0,redirect:"/\u6587\u6863/\u6e32\u67d3/default-frame-process"},{path:"/\u6587\u6863/\u76d1\u542c",meta:{},exact:!0,redirect:"/\u6587\u6863/\u76d1\u542c/scroll-listener"},{path:"/\u6587\u6863/\u8282\u6d41",meta:{},exact:!0,redirect:"/\u6587\u6863/\u8282\u6d41/debounce"},{path:"/\u6587\u6863/\u8bf7\u6c42",meta:{},exact:!0,redirect:"/\u6587\u6863/\u8bf7\u6c42/sas"}],title:"Fexd Tools",component:e=>e.children}];return r["a"].applyPlugins({key:"patchRoutes",type:o["ApplyPluginsType"].event,args:{routes:e}}),e}var u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r["a"].applyPlugins({key:"render",type:o["ApplyPluginsType"].compose,initialValue:()=>{var t=r["a"].applyPlugins({key:"modifyClientRenderOpts",type:o["ApplyPluginsType"].modify,initialValue:{routes:e.routes||c(),plugin:r["a"],history:Object(a["a"])(e.hot),isServer:Object({NODE_ENV:"production"}).__IS_SERVER,rootElement:"root",defaultTitle:"Fexd Tools"}});return Object(i["renderClient"])(t)},args:e})},s=u();t["default"]=s();window.g_umi={version:"3.5.35"}},tDGd:function(e,t,n){var r,a,o=n("6SQG"),i=n("7EYs"),l=o.process,c=l&&l.versions,u=c&&c.v8;u?(r=u.split("."),a=r[0]+r[1]):i&&(r=i.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/),r&&(a=r[1]))),e.exports=a&&+a},tOwT:function(e,t,n){"use strict";var r=n("BUyj"),a=n("jETf");r("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),a)},tSbI:function(e,t,n){"use strict";e.exports=n("Swb/")},tSnU:function(e,t,n){var r=n("h+/6"),a=n("Vg85"),o="\u200b\x85\u180e";e.exports=function(e){return r((function(){return!!a[e]()||o[e]()!=o||a[e].name!==e}))}},tZ8k:function(e,t,n){"use strict";var r=n("g0pg"),a=n("5ilB"),o=r.aTypedArray,i=r.exportTypedArrayMethod;i("fill",(function(e){return a.apply(o(this),arguments)}))},tmip:function(e,t,n){"use strict";var r=n("JSMs"),a=n("0JbB"),o=n("ZVkV");e.exports=function(e,t,n){var i=r(t);i in e?a.f(e,i,o(0,n)):e[i]=n}},trcp:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["CombJudge-demo"].component,r=t["CombJudge-demo-1"].component,c=t["CombJudge-demo-2"].component,u=t["CombJudge-demo-3"].component,s=t["CombJudge-demo-4"].component,f=t["CombJudge-demo-5"].component,d=t["CombJudge-demo-6"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"combjudge"},a.a.createElement(o["AnchorLink"],{to:"#combjudge","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"CombJudge"),a.a.createElement("p",null,"\u7ec4\u5408\u5224\u65ad\u5668\u3002\u53ef\u7528\u4e8e SKU \u7b97\u6cd5\uff08\u5546\u54c1\u591a\u89c4\u683c\u9009\u62e9\uff09\u573a\u666f\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"interface Attr {\n [key: string]: any[]\n}\nclass CombJubge {\n list: Object | any[]\n attr: Attr\n attrKey: string[]\n constructor(list: Object | any[])\n private have\n adaptedAttr: (activeAttr: Object) => Object\n find: (activeAttr: Object) => string | undefined\n}",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u5546\u54c1\u5217\u8868\u6570\u7ec4\uff0c\u683c\u5f0f\u5e94\u8be5\u4e3a:")),a.a.createElement(l["a"],{code:"const product = [\n {\n // \"\u5546\u54c1\u89c4\u683c\u540d\u79f0\": \"\u8be5\u5546\u54c1\u6b64\u89c4\u683c\u7684\u503c\",\n name: 'iPhone X',\n color: '\u9ed1\u8272',\n storage: '64g',\n },\n {\n color: '\u9ed1\u8272',\n name: 'iPhone XS',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '64g',\n },\n {\n color: '\u767d\u8272',\n name: 'iPhone X',\n storage: '256g',\n },\n]",lang:"js"}),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"CombJudge \u7684\u5b9e\u4f8b")),a.a.createElement("h2",{id:"\u8fd4\u56de\u7684\u5b9e\u4f8b\u7684\u5c5e\u6027"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u7684\u5b9e\u4f8b\u7684\u5c5e\u6027","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u7684\u5b9e\u4f8b\u7684\u5c5e\u6027"),a.a.createElement("h3",{id:"list"},a.a.createElement(o["AnchorLink"],{to:"#list","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"list"),a.a.createElement("p",null,"\u5546\u54c1\u89c4\u683c\u6570\u7ec4\u3002")),a.a.createElement(i["default"],t["CombJudge-demo"].previewerProps,a.a.createElement(n,null)),a.a.createElement("div",{className:"markdown"},a.a.createElement("h3",{id:"attrkey"},a.a.createElement(o["AnchorLink"],{to:"#attrkey","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"attrKey"),a.a.createElement("p",null,"\u7531\u6240\u6709\u5546\u54c1\u7684\u89c4\u683c key \u7ec4\u6210\u7684\u6570\u7ec4\u3002")),a.a.createElement(i["default"],t["CombJudge-demo-1"].previewerProps,a.a.createElement(r,null)),a.a.createElement("div",{className:"markdown"},a.a.createElement("h3",{id:"attr"},a.a.createElement(o["AnchorLink"],{to:"#attr","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"attr"),a.a.createElement("p",null,"\u5546\u54c1\u5168\u90e8\u5c5e\u6027\u9009\u9879\u5bf9\u8c61\u3002\u6b64\u5bf9\u8c61\u7684\u6210\u5458\u7684 ",a.a.createElement("code",null,"key")," \u4e3a\u67d0\u89c4\u683c\u7684 key\uff0c",a.a.createElement("code",null,"value")," \u4e3a \u8fd9\u89c4\u683c\u7684\u6240\u6709\u9009\u9879\u6570\u7ec4\u3002")),a.a.createElement(i["default"],t["CombJudge-demo-2"].previewerProps,a.a.createElement(c,null)),a.a.createElement("div",{className:"markdown"},a.a.createElement("h3",{id:"have"},a.a.createElement(o["AnchorLink"],{to:"#have","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"have()"),a.a.createElement("p",null,"\u5224\u65ad\u6709\u6ca1\u6709\u8fd9\u4e2a\u89c4\u683c\u7684\u5546\u54c1\uff0c\u8fd4\u56de\u5e03\u5c14\u503c\u3002")),a.a.createElement(i["default"],t["CombJudge-demo-3"].previewerProps,a.a.createElement(u,null)),a.a.createElement("div",{className:"markdown"},a.a.createElement("h3",{id:"find"},a.a.createElement(o["AnchorLink"],{to:"#find","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"find()"),a.a.createElement("p",null,"\u67e5\u627e\u5339\u914d\u5546\u54c1\u3002\u5982\u679c\u627e\u5230\u4e86\uff0c\u5c31\u8fd4\u56de\u5546\u54c1\u6807\u8bc6\uff08\u5546\u54c1\u4e3a\u6570\u7ec4\u5219\u8fd4\u56de\u6570\u7ec4\u7d22\u5f15 index\uff09\uff1b\u5982\u679c\u6ca1\u627e\u5230\uff0c\u5219\u8fd4\u56de undefined \u3002")),a.a.createElement(i["default"],t["CombJudge-demo-4"].previewerProps,a.a.createElement(s,null)),a.a.createElement("div",{className:"markdown"},a.a.createElement("h3",{id:"adaptedattr"},a.a.createElement(o["AnchorLink"],{to:"#adaptedattr","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"adaptedAttr()"),a.a.createElement("p",null,"\u5224\u65ad\u5c5e\u6027\u53ef\u7528\u6027")),a.a.createElement(i["default"],t["CombJudge-demo-5"].previewerProps,a.a.createElement(f,null)),a.a.createElement("div",{className:"markdown"},a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["CombJudge-demo-6"].previewerProps,a.a.createElement(d,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},u6Sb:function(e,t,n){"use strict";function r(){var e=o(n("nNWW"));return r=function(){return e},e}function a(){var e=n("Gdey");return a=function(){return e},e}function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n3&&void 0!==arguments[3]?arguments[3]:0;if(o{var t=e.demos,n=t["first-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"first"},a.a.createElement(o["AnchorLink"],{to:"#first","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"first"),a.a.createElement("p",null,"\u53d6\u9996\u4e2a\u503c\uff0c\u53ef\u7528\u4e8e\u5bf9\u8c61\u6216\u6570\u7ec4\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"const first: (value: any[] | Object) => T",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value \u6e90\u96c6\u5408")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u5982\u679c ",a.a.createElement("code",null,"value \u6e90\u96c6\u5408")," \u4e3a\u6570\u7ec4\uff0c\u8fd4\u56de\u6570\u7ec4\u7684\u7b2c\u4e00\u4e2a\u5143\u7d20\u3002"),a.a.createElement("li",null,"\u5982\u679c ",a.a.createElement("code",null,"value \u6e90\u96c6\u5408")," \u4e3a\u5bf9\u8c61\uff0c\u8fd4\u56de\u5bf9\u8c61\u7684\u7b2c\u4e00\u4e2a\u5c5e\u6027\u7684\u503c\u3002")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b"),a.a.createElement(l["a"],{code:"const a = [1, 2, 3, 4]\n\nfirst(a) // 1",lang:"javascript"})),a.a.createElement(i["default"],t["first-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},"uF/W":function(e,t,n){var r=n("6SQG"),a=n("MZA9"),o=n("oEsY"),i=n("jukf"),l=n("piBM"),c=n("uJNS"),u=c.get,s=c.enforce,f=String(String).split("String");(e.exports=function(e,t,n,l){var c=!!l&&!!l.unsafe,u=!!l&&!!l.enumerable,d=!!l&&!!l.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||a(n,"name",t),s(n).source=f.join("string"==typeof t?t:"")),e!==r?(c?!d&&e[t]&&(u=!0):delete e[t],u?e[t]=n:a(e,t,n)):u?e[t]=n:i(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||l(this)}))},uJNS:function(e,t,n){var r,a,o,i=n("qbEc"),l=n("6SQG"),c=n("x+sk"),u=n("MZA9"),s=n("oEsY"),f=n("8i6t"),d=n("Y3cF"),p=l.WeakMap,m=function(e){return o(e)?a(e):r(e,{})},h=function(e){return function(t){var n;if(!c(t)||(n=a(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(i){var v=new p,g=v.get,y=v.has,b=v.set;r=function(e,t){return b.call(v,e,t),t},a=function(e){return g.call(v,e)||{}},o=function(e){return y.call(v,e)}}else{var E=f("state");d[E]=!0,r=function(e,t){return u(e,E,t),t},a=function(e){return s(e,E)?e[E]:{}},o=function(e){return s(e,E)}}e.exports={set:r,get:a,has:o,enforce:m,getterFor:h}},uKmp:function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"uZx/":function(e,t,n){var r=n("sErw"),a=n("dwb6"),o=n("upgS"),i=n("v3z7"),l=n("MI4T"),c=n("pKuQ"),u=function(e,t){this.stopped=e,this.result=t},s=e.exports=function(e,t,n,s,f){var d,p,m,h,v,g,y,b=i(t,n,s?2:1);if(f)d=e;else{if(p=l(e),"function"!=typeof p)throw TypeError("Target is not iterable");if(a(p)){for(m=0,h=o(e.length);h>m;m++)if(v=s?b(r(y=e[m])[0],y[1]):b(e[m]),v&&v instanceof u)return v;return new u(!1)}d=p.call(e)}g=d.next;while(!(y=g.call(d)).done)if(v=c(d,b,y.value,s),"object"==typeof v&&v&&v instanceof u)return v;return new u(!1)};s.stop=function(e){return new u(!0,e)}},ukK5:function(e,t,n){var r=n("OOCw"),a=n("VqGX");r({global:!0,forced:parseInt!=a},{parseInt:a})},upgS:function(e,t,n){var r=n("ANLo"),a=Math.min;e.exports=function(e){return e>0?a(r(e),9007199254740991):0}},v1go:function(e,t,n){"use strict";var r=n("OOCw"),a=n("6ssM").f,o=n("upgS"),i=n("SD1J"),l=n("z43i"),c=n("TxDi"),u=n("qyeh"),s="".endsWith,f=Math.min,d=c("endsWith"),p=!u&&!d&&!!function(){var e=a(String.prototype,"endsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!p&&!d},{endsWith:function(e){var t=String(l(this));i(e);var n=arguments.length>1?arguments[1]:void 0,r=o(t.length),a=void 0===n?r:f(o(n),r),c=String(e);return s?s.call(t,c,a):t.slice(a-c.length,a)===c}})},v3z7:function(e,t,n){var r=n("lkgX");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)}}return function(){return e.apply(t,arguments)}}},vEbx:function(e,t,n){var r=n("oEsY"),a=n("684d"),o=n("YfbA").indexOf,i=n("Y3cF");e.exports=function(e,t){var n,l=a(e),c=0,u=[];for(n in l)!r(i,n)&&r(l,n)&&u.push(n);while(t.length>c)r(l,n=t[c++])&&(~o(u,n)||u.push(n));return u}},vMeL:function(e,t,n){var r=n("6SQG"),a=n("h+/6"),o=n("eW2S"),i=n("g0pg").NATIVE_ARRAY_BUFFER_VIEWS,l=r.ArrayBuffer,c=r.Int8Array;e.exports=!i||!a((function(){c(1)}))||!a((function(){new c(-1)}))||!o((function(e){new c,new c(null),new c(1.5),new c(e)}),!0)||a((function(){return 1!==new c(new l(2),1,void 0).length}))},vRqM:function(e,t,n){"use strict";var r=n("OOCw"),a=n("CsJM").trim,o=n("tSnU");r({target:"String",proto:!0,forced:o("trim")},{trim:function(){return a(this)}})},vSpU:function(e,t,n){"use strict";var r=n("OOCw"),a=n("dz2h"),o=n("zesz"),i=n("d8EH"),l=n("nBeg"),c=n("MZA9"),u=n("uF/W"),s=n("3Hes"),f=n("qyeh"),d=n("AnAv"),p=n("WkS0"),m=p.IteratorPrototype,h=p.BUGGY_SAFARI_ITERATORS,v=s("iterator"),g="keys",y="values",b="entries",E=function(){return this};e.exports=function(e,t,n,s,p,w,x){a(n,t,s);var k,S,O,A=function(e){if(e===p&&P)return P;if(!h&&e in N)return N[e];switch(e){case g:return function(){return new n(this,e)};case y:return function(){return new n(this,e)};case b:return function(){return new n(this,e)}}return function(){return new n(this)}},j=t+" Iterator",C=!1,N=e.prototype,T=N[v]||N["@@iterator"]||p&&N[p],P=!h&&T||A(p),_="Array"==t&&N.entries||T;if(_&&(k=o(_.call(new e)),m!==Object.prototype&&k.next&&(f||o(k)===m||(i?i(k,m):"function"!=typeof k[v]&&c(k,v,E)),l(k,j,!0,!0),f&&(d[j]=E))),p==y&&T&&T.name!==y&&(C=!0,P=function(){return T.call(this)}),f&&!x||N[v]===P||c(N,v,P),d[t]=P,p)if(S={values:A(y),keys:w?P:A(g),entries:A(b)},x)for(O in S)(h||C||!(O in N))&&u(N,O,S[O]);else r({target:t,proto:!0,forced:h||C},S);return S}},vViN:function(e,t,n){var r=n("//kW");e.exports=function(e,t){var n=r(e);if(n%t)throw RangeError("Wrong offset");return n}},vfR7:function(e,t,n){var r=n("ANLo"),a=n("z43i"),o=function(e){return function(t,n){var o,i,l=String(a(t)),c=r(n),u=l.length;return c<0||c>=u?e?"":void 0:(o=l.charCodeAt(c),o<55296||o>56319||c+1===u||(i=l.charCodeAt(c+1))<56320||i>57343?e?l.charAt(c):o:e?l.slice(c,c+2):i-56320+(o-55296<<10)+65536)}};e.exports={codeAt:o(!1),charAt:o(!0)}},"vh/W":function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},vhgi:function(e,t){(function(t){e.exports=function(){var e={311:function(e){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}}},n={};function r(t){if(n[t])return n[t].exports;var a=n[t]={exports:{}},o=!0;try{e[t](a,a.exports,r),o=!1}finally{o&&delete n[t]}return a.exports}return r.ab=t+"/",r(311)}()}).call(this,"/")},vmLw:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["isPromiseLike-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"ispromiselike"},a.a.createElement(o["AnchorLink"],{to:"#ispromiselike","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isPromiseLike"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a Promise \u5bf9\u8c61\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isPromiseLike: (value: any) => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value \uff0c\u8981\u5224\u65ad\u7684\u6570\u636e")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u662f Promise \u5bf9\u8c61"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u4e0d\u662f Promise \u5bf9\u8c61")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isPromiseLike-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},vqhe:function(e,t,n){"use strict";var r=n("OOCw"),a=n("YfbA").indexOf,o=n("rUEg"),i=n("7/pz"),l=[].indexOf,c=!!l&&1/[1].indexOf(1,-0)<0,u=o("indexOf"),s=i("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:c||!u||!s},{indexOf:function(e){return c?l.apply(this,arguments)||0:a(this,e,arguments.length>1?arguments[1]:void 0)}})},vzSZ:function(e,t,n){"use strict";var r=n("vh/W"),a=n("V6CC"),o=n("2E/K"),i=n("ME80"),l=n("nNWW"),c=n("sgiM"),u=n("8DO7"),s=n("BRxd"),f=n.n(s),d=n("gmW1");function p(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function m(e,t){var n={animationend:p("Animation","AnimationEnd"),transitionend:p("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var h=m(Object(d["a"])(),"undefined"!==typeof window?window:{}),v={};if(Object(d["a"])()){var g=document.createElement("div");v=g.style}var y={};function b(e){if(y[e])return y[e];var t=h[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a1&&void 0!==arguments[1]?arguments[1]:2;t();var o=Object(L["a"])((function(){a<=1?r({isCanceled:function(){return o!==e.current}}):n(r,a-1)}));e.current=o}return l["useEffect"]((function(){return function(){t()}}),[]),[n,t]},M=Object(d["a"])()?l["useLayoutEffect"]:l["useEffect"],z=M,W=[P,_,D,I],B=!1,U=!0;function G(e){return e===D||e===I}var J=function(e,t){var n=Object(F["a"])(T),r=Object(o["a"])(n,2),a=r[0],i=r[1],c=R(),u=Object(o["a"])(c,2),s=u[0],f=u[1];function d(){i(P,!0)}return z((function(){if(a!==T&&a!==I){var e=W.indexOf(a),n=W[e+1],r=t(a);r===B?i(n,!0):s((function(e){function t(){e.isCanceled()||i(n,!0)}!0===r?t():Promise.resolve(r).then(t)}))}}),[e,a]),l["useEffect"]((function(){return function(){f()}}),[]),[d,a]},H=function(e){var t=Object(l["useRef"])(),n=Object(l["useRef"])(e);n.current=e;var r=l["useCallback"]((function(e){n.current(e)}),[]);function a(e){e&&(e.removeEventListener(S,r),e.removeEventListener(k,r))}function o(e){t.current&&t.current!==e&&a(t.current),e&&e!==t.current&&(e.addEventListener(S,r),e.addEventListener(k,r),t.current=e)}return l["useEffect"]((function(){return function(){a(t.current)}}),[]),[o,a]};function K(e,t,n,i){var c=i.motionEnter,u=void 0===c||c,s=i.motionAppear,f=void 0===s||s,d=i.motionLeave,p=void 0===d||d,m=i.motionDeadline,h=i.motionLeaveImmediately,v=i.onAppearPrepare,g=i.onEnterPrepare,y=i.onLeavePrepare,b=i.onAppearStart,E=i.onEnterStart,w=i.onLeaveStart,x=i.onAppearActive,k=i.onEnterActive,S=i.onLeaveActive,O=i.onAppearEnd,T=i.onEnterEnd,I=i.onLeaveEnd,L=i.onVisibleChanged,R=Object(F["a"])(),M=Object(o["a"])(R,2),W=M[0],K=M[1],V=Object(F["a"])(A),q=Object(o["a"])(V,2),$=q[0],X=q[1],Q=Object(F["a"])(null),Y=Object(o["a"])(Q,2),Z=Y[0],ee=Y[1],te=Object(l["useRef"])(!1),ne=Object(l["useRef"])(null);function re(){return n()}var ae=Object(l["useRef"])(!1);function oe(e){var t=re();if(!e||e.deadline||e.target===t){var n,r=ae.current;$===j&&r?n=null===O||void 0===O?void 0:O(t,e):$===C&&r?n=null===T||void 0===T?void 0:T(t,e):$===N&&r&&(n=null===I||void 0===I?void 0:I(t,e)),$!==A&&r&&!1!==n&&(X(A,!0),ee(null,!0))}}var ie=H(oe),le=Object(o["a"])(ie,1),ce=le[0],ue=l["useMemo"]((function(){var e,t,n;switch($){case j:return e={},Object(r["a"])(e,P,v),Object(r["a"])(e,_,b),Object(r["a"])(e,D,x),e;case C:return t={},Object(r["a"])(t,P,g),Object(r["a"])(t,_,E),Object(r["a"])(t,D,k),t;case N:return n={},Object(r["a"])(n,P,y),Object(r["a"])(n,_,w),Object(r["a"])(n,D,S),n;default:return{}}}),[$]),se=J($,(function(e){if(e===P){var t=ue[P];return t?t(re()):B}var n;pe in ue&&ee((null===(n=ue[pe])||void 0===n?void 0:n.call(ue,re(),null))||null);return pe===D&&(ce(re()),m>0&&(clearTimeout(ne.current),ne.current=setTimeout((function(){oe({deadline:!0})}),m))),U})),fe=Object(o["a"])(se,2),de=fe[0],pe=fe[1],me=G(pe);ae.current=me,z((function(){K(t);var n,r=te.current;(te.current=!0,e)&&(!r&&t&&f&&(n=j),r&&t&&u&&(n=C),(r&&!t&&p||!r&&h&&!t&&p)&&(n=N),n&&(X(n),de()))}),[t]),Object(l["useEffect"])((function(){($===j&&!f||$===C&&!u||$===N&&!p)&&X(A)}),[f,u,p]),Object(l["useEffect"])((function(){return function(){te.current=!1,clearTimeout(ne.current)}}),[]);var he=l["useRef"](!1);Object(l["useEffect"])((function(){W&&(he.current=!0),void 0!==W&&$===A&&((he.current||W)&&(null===L||void 0===L||L(W)),he.current=!0)}),[W,$]);var ve=Z;return ue[P]&&pe===_&&(ve=Object(a["a"])({transition:"none"},ve)),[$,pe,ve,null!==W&&void 0!==W?W:t]}var V=n("p4sU"),q=n("asw4"),$=n("sLj8"),X=n("qAhB"),Q=function(e){Object($["a"])(n,e);var t=Object(X["a"])(n);function n(){return Object(V["a"])(this,n),t.apply(this,arguments)}return Object(q["a"])(n,[{key:"render",value:function(){return this.props.children}}]),n}(l["Component"]),Y=Q;function Z(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===Object(i["a"])(e)&&(t=e.transitionSupport);var s=l["forwardRef"]((function(e,t){var i=e.visible,s=void 0===i||i,d=e.removeOnLeave,p=void 0===d||d,m=e.forceRender,h=e.children,v=e.motionName,g=e.leavedClassName,y=e.eventProps,b=n(e),E=Object(l["useRef"])(),w=Object(l["useRef"])();function x(){try{return E.current instanceof HTMLElement?E.current:Object(c["a"])(w.current)}catch(e){return null}}var k=K(b,s,x,e),S=Object(o["a"])(k,4),j=S[0],C=S[1],N=S[2],T=S[3],D=l["useRef"](T);T&&(D.current=!0);var I,F=l["useCallback"]((function(e){E.current=e,Object(u["b"])(t,e)}),[t]),L=Object(a["a"])(Object(a["a"])({},y),{},{visible:s});if(h)if(j!==A&&n(e)){var R,M;C===P?M="prepare":G(C)?M="active":C===_&&(M="start"),I=h(Object(a["a"])(Object(a["a"])({},L),{},{className:f()(O(v,j),(R={},Object(r["a"])(R,O(v,"".concat(j,"-").concat(M)),M),Object(r["a"])(R,v,"string"===typeof v),R)),style:N}),F)}else I=T?h(Object(a["a"])({},L),F):!p&&D.current?h(Object(a["a"])(Object(a["a"])({},L),{},{className:g}),F):m?h(Object(a["a"])(Object(a["a"])({},L),{},{style:{display:"none"}}),F):null;else I=null;if(l["isValidElement"](I)&&Object(u["c"])(I)){var z=I,W=z.ref;W||(I=l["cloneElement"](I,{ref:F}))}return l["createElement"](Y,{ref:w},I)}));return s.displayName="CSSMotion",s}var ee=Z(x),te=n("973d"),ne=n("jtnu"),re="add",ae="keep",oe="remove",ie="removed";function le(e){var t;return t=e&&"object"===Object(i["a"])(e)&&"key"in e?e:{key:e},Object(a["a"])(Object(a["a"])({},t),{},{key:String(t.key)})}function ce(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(le)}function ue(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=ce(e),l=ce(t);i.forEach((function(e){for(var t=!1,i=r;i1}));return u.forEach((function(e){n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==oe})),n.forEach((function(t){t.key===e&&(t.status=ae)}))})),n}var se=["component","children","onVisibleChanged","onAllRemoved"],fe=["status"],de=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function pe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ee,n=function(e){Object($["a"])(r,e);var n=Object(X["a"])(r);function r(){var e;Object(V["a"])(this,r);for(var t=arguments.length,o=new Array(t),i=0;i{e.demos;return a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"\u8f85\u52a9\u5de5\u5177\u5e93"},a.a.createElement(o["AnchorLink"],{to:"#\u8f85\u52a9\u5de5\u5177\u5e93","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8f85\u52a9\u5de5\u5177\u5e93"),a.a.createElement("h2",{id:"\u5b89\u88c5"},a.a.createElement(o["AnchorLink"],{to:"#\u5b89\u88c5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u5b89\u88c5"),a.a.createElement(i["a"],{code:"pnpm add @fexd/tools\n# or\nyarn add @fexd/tools\n# or\nnpm install @fexd/tools",lang:"bash"}),a.a.createElement("h2",{id:"\u7528\u6cd5\u793a\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u7528\u6cd5\u793a\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u7528\u6cd5\u793a\u4f8b"),a.a.createElement(i["a"],{code:"import { isArray } from '@fexd/tools'",lang:"js"}),a.a.createElement("h2",{id:"\u6309\u9700\u52a0\u8f7d"},a.a.createElement(o["AnchorLink"],{to:"#\u6309\u9700\u52a0\u8f7d","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u6309\u9700\u52a0\u8f7d"),a.a.createElement("p",null,"\u914d\u5408 ",a.a.createElement(o["Link"],{to:"https://github.com/ant-design/babel-plugin-import"},"babel-plugin-import")," \u5b9e\u73b0\u6309\u9700\u52a0\u8f7d\uff0c\u9700\u5c06 ",a.a.createElement("code",null,"camel2DashComponentName")," \u914d\u7f6e\u5173\u95ed"),a.a.createElement(i["a"],{code:"// babel.config.js\nmodule.exports = {\n plugins: [\n [\n 'babel-plugin-import',\n {\n libraryName: '@fexd/tools',\n camel2DashComponentName: false,\n },\n ],\n ],\n}",lang:"js"}),a.a.createElement("h2",{id:"\u5bfc\u51fa\u7684\u65b9\u6cd5\u6709\u4ee5\u4e0b"},a.a.createElement(o["AnchorLink"],{to:"#\u5bfc\u51fa\u7684\u65b9\u6cd5\u6709\u4ee5\u4e0b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u5bfc\u51fa\u7684\u65b9\u6cd5\u6709\u4ee5\u4e0b"),a.a.createElement(i["a"],{code:"export {\n CombJudge, // \u7ec4\u5408\u5224\u65ad\u5668\n EventBus, // EventBus\n FrameProcess, // \u5e27\u8fdb\u7a0b\uff0c\u7528\u4e8e\u5236\u4f5c\u52a8\u753b\n I18n, // i18nshell \u5de5\u5177\u539f\u578b\uff0c\u591a\u8bed\u8a00\u5de5\u5177\u5305\n SAS, // [\u5355\u54a8\u8be2\u670d\u52a1] Single Advisory Service \u540c\u4e00\u65f6\u523b\u5bf9\u540c\u4e00\u5f02\u6b65\u8bf7\u6c42\u8fdb\u884c\u7edf\u4e00\u7b49\u5f85\uff0c\u4e0d\u91cd\u590d\u53d1\u8d77\n ScrollListener, // \u6eda\u52a8\u76d1\u542c\n Tween, // \u7f13\u52a8\u51fd\u6570\u5de5\u5177\n __, // \u81ea\u7531\u67ef\u91cc\u5316\n capitalize, // \u9996\u5b57\u6bcd\u5927\u5199\n clamp, // \u6570\u503c\u8303\u56f4\u9650\u5b9a\n classnames, // classnames \u5e93\u7684\u81ea\u5b9e\u73b0\n copy, // \u590d\u5236\u7c98\u8d34\n curry, // \u67ef\u91cc\u5316\n debounce, // \u9632\u6296\n defaultFrameProcess, // \u9ed8\u8ba4\u5e27\u8fdb\u7a0b\n delay, // \u5ef6\u65f6 Promise\n first, // \u53d6\u9996\u4e2a\u503c\uff0c\u53ef\u7528\u4e8e\u5bf9\u8c61\u6216\u6570\u7ec4\n flatten, // \u6570\u7ec4\u62cd\u5e73\n get, // \u65e0\u75db\u53d6\u503c\uff0c\u540c ?. \u7b97\u7b26\n getFormatter, // \u683c\u5f0f\u5316\u5de5\u5177\n globalThis, // globalThis\n groupBy, // \u5bf9\u6570\u7ec4\u8fdb\u884c\u5f52\u7c7b\u5904\u7406\n intersection, // \u4ea4\u96c6\n isAndroid, // \u662f\u5426\u5b89\u5353\u73af\u5883\n isArray, // \u662f\u5426\u6570\u7ec4\n isBoolean, // \u662f\u5426 Boolean\n isDate, // \u662f\u5426\u65e5\u671f\u7c7b\u578b\n isDesktop, // \u662f\u5426\u684c\u9762\u7aef\uff08PC\uff09\n isError, // \u662f\u5426\u9519\u8bef\u7c7b\u578b\n isExist, // \u662f\u5426\u5b58\u5728\uff08\u975e undefined / null\uff09\n isFunction, // \u662f\u5426\u51fd\u6570\u7c7b\u578b\n isIOS, // \u662f\u5426 iOS \u73af\u5883\n isMobile, // \u662f\u5426\u79fb\u52a8\u7aef\n isNaN, // \u662f\u5426 NaN\n isNull, // \u662f\u5426 Null\n isNumber, // \u662f\u5426\u6570\u5b57\u7c7b\u578b\n isObject, // \u662f\u5426\u5bf9\u8c61\uff08Array \u4e0d\u7b97\uff09\n isPromiseLike, // \u662f\u5426 PromiseLike\n isString, // \u662f\u5426\u5b57\u7b26\u4e32\n isUndefined, // \u662f\u5426 undefined\n isWKWebview, // \u662f\u5426 WKWebview \u73af\u5883\n last, // \u53d6\u9996\u672b\u5c3e\uff0c\u53ef\u7528\u4e8e\u5bf9\u8c61\u6216\u6570\u7ec4\n lock, // \u81ea\u9501\u51fd\u6570\n memoize, // \u8bb0\u5fc6\u51fd\u6570\n nextTick, // nextTick \u7684\u5ba2\u6237\u7aef\u5b9e\u73b0\n pick, // \u9009\u503c\u51fd\u6570\n pickBy, // \u81ea\u5b9a\u4e49\u9009\u503c\u51fd\u6570\n pipe, // \u7ba1\u9053\u51fd\u6570\uff0c\u540c |> \u7b97\u7b26\n preloadImage, // \u9884\u6e32\u67d3\u6307\u5b9a\u56fe\u7247\n promiseGuess, // \u667a\u80fd\u5904\u7406 Promise \u7c7b\u578b\u8fd4\u56de\u503c\n qs, // qs \u5e93\u7b80\u6613\u5b9e\u73b0\n random, // \u968f\u673a\u51fd\u6570\n run, // \u65e0\u75db\u8fd0\u884c\n sample, // \u6837\u672c\u51fd\u6570\n set, // \u65e0\u75db\u5c5e\u6027\u8bbe\u7f6e\n source, // \u5728\u7ebf\u8d44\u6e90\u52a0\u8f7d\n storage, // storage \u5b58\u53d6\n throttle, // \u8282\u6d41\n uniqByKey, // \u53bb\u91cd\n url, // url \u53c2\u6570\u53d6\u503c\n value, // \u503c\u9009\u62e9\uff0c\u540c ?? \u7b97\u7b26\n}",lang:"js"}),a.a.createElement(i["a"],{code:"import './layout.less'",lang:"js"})))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(l,{demos:n})}},wWVk:function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}e.exports=n},"x+sk":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},x1LQ:function(e,t,n){"use strict";var r=n("g0pg").exportTypedArrayMethod,a=n("h+/6"),o=n("6SQG"),i=o.Uint8Array,l=i&&i.prototype||{},c=[].toString,u=[].join;a((function(){c.call({})}))&&(c=function(){return u.call(this)});var s=l.toString!=c;r("toString",c,s)},x1fj:function(e,t,n){var r=n("290e")["default"];function a(){"use strict";e.exports=a=function(){return t},e.exports.__esModule=!0,e.exports["default"]=e.exports;var t={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},l=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(N){s=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var a=t&&t.prototype instanceof m?t:m,o=Object.create(a.prototype),i=new A(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return C()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var l=k(i,n);if(l){if(l===p)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=d(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,i),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(N){return{type:"throw",arg:N}}}t.wrap=f;var p={};function m(){}function h(){}function v(){}var g={};s(g,l,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(j([])));b&&b!==n&&o.call(b,l)&&(g=b);var E=v.prototype=m.prototype=Object.create(g);function w(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,i,l,c){var u=d(e[a],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==r(f)&&o.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,l,c)}),(function(e){n("throw",e,l,c)})):t.resolve(f).then((function(e){s.value=e,l(s)}),(function(e){return n("throw",e,l,c)}))}c(u.arg)}var a;this._invoke=function(e,r){function o(){return new t((function(t,a){n(e,r,t,a)}))}return a=a?a.then(o,o):o()}}function k(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=d(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function j(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n=0;--r){var a=this.tryEntries[r],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;O(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:j(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},t}e.exports=a,e.exports.__esModule=!0,e.exports["default"]=e.exports},x2v5:function(e){e.exports=JSON.parse("{}")},xEA5:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["isFunction-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"isfunction"},a.a.createElement(o["AnchorLink"],{to:"#isfunction","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isFunction"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a\u51fd\u6570\u7c7b\u578b\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isFunction: (value: any) => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value \uff0c\u8981\u5224\u65ad\u7684\u6570\u636e")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u662f\u51fd\u6570\u7c7b\u578b"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u4e0d\u662f\u51fd\u6570\u7c7b\u578b")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isFunction-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},xMG8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=n("75i3"),a=n("klMd"),o=(0,a.LinkWrapper)(r.NavLink);t["default"]=o},xTvi:function(e,t,n){"use strict";var r=n("OOCw"),a=n("qyeh"),o=n("sErw"),i=n("v3z7"),l=n("R8Xy"),c=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:a},{some:function(e){var t=o(this),n=l(t),r=i(e,arguments.length>1?arguments[1]:void 0,3);return c(n,(function(e){if(r(e,e,t))return c.stop()}),void 0,!1,!0).stopped}})},xUjK:function(e,t,n){},xiuu:function(e,t,n){"use strict";var r=n("vMeL"),a=n("g0pg").exportTypedArrayStaticMethod,o=n("N0ls");a("from",o,r)},xuOn:function(e,t,n){var r=n("QzCP"),a="__lodash_hash_undefined__",o=Object.prototype,i=o.hasOwnProperty;function l(e){var t=this.__data__;if(r){var n=t[e];return n===a?void 0:n}return i.call(t,e)?t[e]:void 0}e.exports=l},xut5:function(e,t,n){var r=n("OOCw"),a=n("VqGX");r({target:"Number",stat:!0,forced:Number.parseInt!=a},{parseInt:a})},"xy/A":function(e,t,n){"use strict";var r=n("6SQG"),a=n("r+6h"),o=n("78S/"),i=n("MZA9"),l=n("TxBV"),c=n("h+/6"),u=n("CZSf"),s=n("ANLo"),f=n("upgS"),d=n("G2F8"),p=n("/fpf"),m=n("zesz"),h=n("d8EH"),v=n("lFeU").f,g=n("0JbB").f,y=n("5ilB"),b=n("nBeg"),E=n("uJNS"),w=E.get,x=E.set,k="ArrayBuffer",S="DataView",O="prototype",A="Wrong length",j="Wrong index",C=r[k],N=C,T=r[S],P=T&&T[O],_=Object.prototype,D=r.RangeError,I=p.pack,F=p.unpack,L=function(e){return[255&e]},R=function(e){return[255&e,e>>8&255]},M=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},z=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},W=function(e){return I(e,23,4)},B=function(e){return I(e,52,8)},U=function(e,t){g(e[O],t,{get:function(){return w(this)[t]}})},G=function(e,t,n,r){var a=d(n),o=w(e);if(a+t>o.byteLength)throw D(j);var i=w(o.buffer).bytes,l=a+o.byteOffset,c=i.slice(l,l+t);return r?c:c.reverse()},J=function(e,t,n,r,a,o){var i=d(n),l=w(e);if(i+t>l.byteLength)throw D(j);for(var c=w(l.buffer).bytes,u=i+l.byteOffset,s=r(+a),f=0;fq;)(H=V[q++])in N||i(N,H,C[H]);K.constructor=N}h&&m(P)!==_&&h(P,_);var $=new T(new N(2)),X=P.setInt8;$.setInt8(0,2147483648),$.setInt8(1,2147483649),!$.getInt8(0)&&$.getInt8(1)||l(P,{setInt8:function(e,t){X.call(this,e,t<<24>>24)},setUint8:function(e,t){X.call(this,e,t<<24>>24)}},{unsafe:!0})}else N=function(e){u(this,N,k);var t=d(e);x(this,{bytes:y.call(new Array(t),0),byteLength:t}),a||(this.byteLength=t)},T=function(e,t,n){u(this,T,S),u(e,N,S);var r=w(e).byteLength,o=s(t);if(o<0||o>r)throw D("Wrong offset");if(n=void 0===n?r-o:f(n),o+n>r)throw D(A);x(this,{buffer:e,byteLength:n,byteOffset:o}),a||(this.buffer=e,this.byteLength=n,this.byteOffset=o)},a&&(U(N,"byteLength"),U(T,"buffer"),U(T,"byteLength"),U(T,"byteOffset")),l(T[O],{getInt8:function(e){return G(this,1,e)[0]<<24>>24},getUint8:function(e){return G(this,1,e)[0]},getInt16:function(e){var t=G(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=G(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return z(G(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return z(G(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return F(G(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return F(G(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){J(this,1,e,L,t)},setUint8:function(e,t){J(this,1,e,L,t)},setInt16:function(e,t){J(this,2,e,R,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){J(this,2,e,R,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){J(this,4,e,M,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){J(this,4,e,M,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){J(this,4,e,W,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){J(this,8,e,B,t,arguments.length>2?arguments[2]:void 0)}});b(N,k),b(T,S),e.exports={ArrayBuffer:N,DataView:T}},"y2+G":function(e,t,n){var r=n("684d"),a=n("lFeU").f,o={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return a(e)}catch(t){return i.slice()}};e.exports.f=function(e){return i&&"[object Window]"==o.call(e)?l(e):a(r(e))}},y3he:function(e,t,n){"use strict";var r=n("OOCw"),a=n("CsJM").end,o=n("tSnU"),i=o("trimEnd"),l=i?function(){return a(this)}:"".trimEnd;r({target:"String",proto:!0,forced:i},{trimEnd:l,trimRight:l})},yA6K:function(e,t,n){"use strict";n.r(t);var r=n("nNWW"),a=n.n(r),o=n("Gdey"),i=n("JsrE"),l=n("l4Xg"),c=a.a.memo((e=>{var t=e.demos,n=t["isUndefined-demo"].component;return a.a.createElement(a.a.Fragment,null,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"isundefined"},a.a.createElement(o["AnchorLink"],{to:"#isundefined","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"isUndefined"),a.a.createElement("p",null,"\u5224\u65ad\u662f\u5426\u4e3a undefined \u7c7b\u578b\u3002"),a.a.createElement("h2",{id:"\u8bed\u6cd5"},a.a.createElement(o["AnchorLink"],{to:"#\u8bed\u6cd5","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bed\u6cd5"),a.a.createElement(l["a"],{code:"isUndefined: (value: any) => boolean",lang:"ts"}),a.a.createElement("h2",{id:"\u53c2\u6570"},a.a.createElement(o["AnchorLink"],{to:"#\u53c2\u6570","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53c2\u6570"),a.a.createElement("ul",null,a.a.createElement("li",null,"value \uff0c\u8981\u5224\u65ad\u7684\u6570\u636e")),a.a.createElement("h2",{id:"\u8fd4\u56de\u503c"},a.a.createElement(o["AnchorLink"],{to:"#\u8fd4\u56de\u503c","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8fd4\u56de\u503c"),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("code",null,"true")," \u662f NaN \u7c7b\u578b"),a.a.createElement("li",null,a.a.createElement("code",null,"false")," \u4e0d\u662f NaN \u7c7b\u578b")),a.a.createElement("h2",{id:"\u4e3e\u4f8b"},a.a.createElement(o["AnchorLink"],{to:"#\u4e3e\u4f8b","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u4e3e\u4f8b")),a.a.createElement(i["default"],t["isUndefined-demo"].previewerProps,a.a.createElement(n,null))))}));t["default"]=e=>{var t=a.a.useContext(o["context"]),n=t.demos;return a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(c,{demos:n})}},yFoN:function(e,t,n){var r=n("OOCw");r({target:"Math",stat:!0},{signbit:function(e){return(e=+e)==e&&0==e?1/e==-1/0:e<0}})},yJKb:function(e,t,n){var r=n("eyaU"),a=n("lFeU"),o=n("AG0a"),i=n("sErw");e.exports=r("Reflect","ownKeys")||function(e){var t=a.f(i(e)),n=o.f;return n?t.concat(n(e)):t}},yh5g:function(e,t,n){"use strict";function r(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}}r(),e.exports=n("Z4n3")},yh5m:function(e,t,n){var r=n("OOCw"),a=n("eyaU"),o=n("lkgX"),i=n("sErw"),l=n("x+sk"),c=n("QWtl"),u=n("Wldj"),s=n("h+/6"),f=a("Reflect","construct"),d=s((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),p=!s((function(){f((function(){}))})),m=d||p;r({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(e,t){o(e),i(t);var n=arguments.length<3?e:o(arguments[2]);if(p&&!d)return f(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(u.apply(e,r))}var a=n.prototype,s=c(l(a)?a:Object.prototype),m=Function.apply.call(e,s,t);return l(m)?m:s}})},ylpK:function(e,t,n){"use strict";function r(){var e=n("nNWW");return r=function(){return e},e}function a(){var e=o(n("Qkfr"));return a=function(){return e},e}function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){return f(e)||s(e,t)||c(e,t)||l()}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){if(e){if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?arguments[1]:void 0,3);return c(n,(function(e,n){if(r(n,e,t))return c.stop()}),void 0,!0,!0).stopped}})},zyZy:function(e,t,n){"use strict";var r=n("tSbI"),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function u(e){return r.isMemo(e)?l:c[e["$$typeof"]]||a}c[r.ForwardRef]=i,c[r.Memo]=l;var s=Object.defineProperty,f=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,h=Object.prototype;function v(e,t,n){if("string"!==typeof t){if(h){var r=m(t);r&&r!==h&&v(e,r,n)}var a=f(t);d&&(a=a.concat(d(t)));for(var i=u(e),l=u(t),c=0;c