@daoyi/nmtl-ui 2.0.1-beta.7 → 2.0.1-beta.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/lib/components/Autocomplete-e62927dc.js +334 -0
  2. package/lib/components/Autocomplete.js +13 -1
  3. package/lib/components/Avatar.js +53 -1
  4. package/lib/components/BackTop.js +109 -1
  5. package/lib/components/BarChart.js +762 -1
  6. package/lib/components/Breadcrumbs.js +122 -1
  7. package/lib/components/Button-4fddcd2f.js +92 -0
  8. package/lib/components/Button.js +6 -1
  9. package/lib/components/Carousel.js +4654 -1
  10. package/lib/components/Checkbox.js +37 -1
  11. package/lib/components/CollapseContent.js +179 -1
  12. package/lib/components/ContactModal-33f4e605.js +12020 -0
  13. package/lib/components/ContactModal.js +22 -3
  14. package/lib/components/Drawer-fb5bc1ec.js +157 -0
  15. package/lib/components/Drawer.js +11 -1
  16. package/lib/components/Dropdown.js +134 -1
  17. package/lib/components/Empty-e50b760e.js +45 -0
  18. package/lib/components/Empty.js +5 -1
  19. package/lib/components/ExportButton.js +112 -1
  20. package/lib/components/ExtraTools-a49a1d2f.js +3537 -0
  21. package/lib/components/ExtraTools.js +10 -22
  22. package/lib/components/Filter.js +782 -12
  23. package/lib/components/Footer.js +271 -1
  24. package/lib/components/ForwardLink-6a82c19d.js +106 -0
  25. package/lib/components/ForwardLink.js +8 -0
  26. package/lib/components/Header.js +187 -1
  27. package/lib/components/Image.js +61 -1
  28. package/lib/components/Input.js +82 -1
  29. package/lib/components/InputMethod.js +33949 -12
  30. package/lib/components/KeywordSearch-3af0c402.js +140 -0
  31. package/lib/components/KeywordSearch.js +15 -1
  32. package/lib/components/KeywordTicker.js +190 -1
  33. package/lib/components/Keywords.js +317 -1
  34. package/lib/components/Loading.js +28 -1
  35. package/lib/components/MUITheme.js +2624 -1
  36. package/lib/components/Modal-2c39d5b8.js +108 -0
  37. package/lib/components/Modal.js +9 -1
  38. package/lib/components/MoreButton-6b323fe4.js +110 -0
  39. package/lib/components/MoreButton.js +6 -1
  40. package/lib/components/Pagination.js +3706 -0
  41. package/lib/components/Radio.js +78 -1
  42. package/lib/components/SNA.js +1691 -22
  43. package/lib/components/Select-0f131640.js +115 -0
  44. package/lib/components/Select.js +8 -1
  45. package/lib/components/Spin-1741f625.js +75 -0
  46. package/lib/components/Spin.js +6 -1
  47. package/lib/components/Table.js +51 -1
  48. package/lib/components/Tooltip-65a21a86.js +70 -0
  49. package/lib/components/Tooltip.js +7 -1
  50. package/lib/components/_commonjsHelpers-70de2c37.js +28 -0
  51. package/lib/components/_rollupPluginBabelHelpers-a52356f6.js +142 -0
  52. package/lib/components/createSvgIcon-d9801fb7.js +576 -0
  53. package/lib/components/dataExport-d55d6fa3.js +92 -0
  54. package/lib/components/debounce-127da66c.js +355 -0
  55. package/lib/components/defaultTheme-5839b9b3.js +1505 -0
  56. package/lib/components/globalConfig.js +175 -0
  57. package/lib/components/hoist-non-react-statics.cjs-3f408ad2.js +105 -0
  58. package/lib/components/index-0be0afec.js +481 -0
  59. package/lib/components/index-ef96775f.js +61 -0
  60. package/lib/components/isObjectLike-e111475d.js +190 -0
  61. package/lib/components/style-inject.es-1f59c1d0.js +28 -1
  62. package/lib/components/transform-3a04288b.js +5475 -0
  63. package/lib/components/withTheme-4417822c.js +6 -0
  64. package/lib/index.d.ts +2 -0
  65. package/lib/index.js +2 -0
  66. package/lib/utils/_rollupPluginBabelHelpers-8dd26e1a.js +121 -0
  67. package/lib/utils/arrayMerge.js +4953 -1
  68. package/lib/utils/chunkArray.js +15 -1
  69. package/lib/utils/convert2HtmlEntities.js +42 -1
  70. package/lib/utils/domToImage.js +802 -1
  71. package/lib/utils/downloadGephi.js +106 -1
  72. package/lib/utils/exportXlsx.js +219 -1
  73. package/lib/utils/historyAppendSearch.js +502 -1
  74. package/lib/utils/isDevelopMode.js +5 -1
  75. package/lib/utils/parseYMD.js +36 -1
  76. package/lib/utils/removeDuplicateItem.js +11 -1
  77. package/lib/utils/sendEmail.js +39 -1
  78. package/lib/utils/snaDefine-6a2bcd94.js +5 -0
  79. package/lib/utils/snaDefine.js +1 -1
  80. package/lib/utils/snaPreProcess.js +84 -1
  81. package/package.json +17 -21
  82. package/lib/components/Empty-54b79907.js +0 -1
  83. package/lib/components/KeywordSearch-5a393f12.js +0 -1
  84. package/lib/components/Select-f2441b83.js +0 -1
  85. package/lib/components/_rollupPluginBabelHelpers-1b8c042f.js +0 -1
  86. package/lib/components/_rollupPluginBabelHelpers-ec4e2a53.js +0 -1
  87. package/lib/components/createSvgIcon-62b64929.js +0 -1
  88. package/lib/components/createSvgIcon-e24792d4.js +0 -1
  89. package/lib/components/createTheme-7fffa109.js +0 -1
  90. package/lib/components/dataExport-9fccd4f0.js +0 -1
  91. package/lib/components/debounce-c993109b.js +0 -1
  92. package/lib/components/hoist-non-react-statics.cjs-d6a9befd.js +0 -1
  93. package/lib/components/index-11391ca3.js +0 -7
  94. package/lib/components/index-b2745105.js +0 -7
  95. package/lib/components/isObjectLike-2f1983fe.js +0 -1
  96. package/lib/components/style-inject.es-c875d022.js +0 -1
  97. package/lib/components/transform-0eb2d36e.js +0 -1
  98. package/lib/utils/_commonjsHelpers-e2cda605.js +0 -1
  99. package/lib/utils/_rollupPluginBabelHelpers-928a52ce.js +0 -1
@@ -1 +1,2624 @@
1
- import t from"react";import r from"prop-types";import{b as e,a as o,_ as n,i,c as a}from"./isObjectLike-2f1983fe.js";import{c as u,s as c}from"./style-inject.es-c875d022.js";import{CssBaseline as s}from"@material-ui/core";import{c as p}from"./createTheme-7fffa109.js";import{ThemeProvider as f}from"@material-ui/styles";var l=function(){this.__data__=[],this.size=0};var d=function(t,r){return t===r||t!=t&&r!=r};var v=function(t,r){for(var e=t.length;e--;)if(d(t[e][0],r))return e;return-1},h=Array.prototype.splice;var y=function(t){var r=this.__data__,e=v(r,t);return!(e<0)&&(e==r.length-1?r.pop():h.call(r,e,1),--this.size,!0)};var b=function(t){var r=this.__data__,e=v(r,t);return e<0?void 0:r[e][1]};var _=function(t){return v(this.__data__,t)>-1};var g=function(t,r){var e=this.__data__,o=v(e,t);return o<0?(++this.size,e.push([t,r])):e[o][1]=r,this};function m(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var o=t[r];this.set(o[0],o[1])}}m.prototype.clear=l,m.prototype.delete=y,m.prototype.get=b,m.prototype.has=_,m.prototype.set=g;var j=m;var O=function(){this.__data__=new j,this.size=0};var w=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e};var x=function(t){return this.__data__.get(t)};var M=function(t){return this.__data__.has(t)};var A,z=function(t){if(!e(t))return!1;var r=o(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r},S=n["__core-js_shared__"],C=(A=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||""))?"Symbol(src)_1."+A:"";var k=function(t){return!!C&&C in t},T=Function.prototype.toString;var I=function(t){if(null!=t){try{return T.call(t)}catch(t){}try{return t+""}catch(t){}}return""},P=/^\[object .+?Constructor\]$/,F=Function.prototype,B=Object.prototype,E=F.toString,$=B.hasOwnProperty,R=RegExp("^"+E.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var U=function(t){return!(!e(t)||k(t))&&(z(t)?R:P).test(I(t))};var D=function(t,r){return null==t?void 0:t[r]};var H=function(t,r){var e=D(t,r);return U(e)?e:void 0},L=H(n,"Map"),N=H(Object,"create");var W=function(){this.__data__=N?N(null):{},this.size=0};var q=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},G=Object.prototype.hasOwnProperty;var J=function(t){var r=this.__data__;if(N){var e=r[t];return"__lodash_hash_undefined__"===e?void 0:e}return G.call(r,t)?r[t]:void 0},V=Object.prototype.hasOwnProperty;var K=function(t){var r=this.__data__;return N?void 0!==r[t]:V.call(r,t)};var Q=function(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=N&&void 0===r?"__lodash_hash_undefined__":r,this};function X(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var o=t[r];this.set(o[0],o[1])}}X.prototype.clear=W,X.prototype.delete=q,X.prototype.get=J,X.prototype.has=K,X.prototype.set=Q;var Y=X;var Z=function(){this.size=0,this.__data__={hash:new Y,map:new(L||j),string:new Y}};var tt=function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t};var rt=function(t,r){var e=t.__data__;return tt(r)?e["string"==typeof r?"string":"hash"]:e.map};var et=function(t){var r=rt(this,t).delete(t);return this.size-=r?1:0,r};var ot=function(t){return rt(this,t).get(t)};var nt=function(t){return rt(this,t).has(t)};var it=function(t,r){var e=rt(this,t),o=e.size;return e.set(t,r),this.size+=e.size==o?0:1,this};function at(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var o=t[r];this.set(o[0],o[1])}}at.prototype.clear=Z,at.prototype.delete=et,at.prototype.get=ot,at.prototype.has=nt,at.prototype.set=it;var ut=at;var ct=function(t,r){var e=this.__data__;if(e instanceof j){var o=e.__data__;if(!L||o.length<199)return o.push([t,r]),this.size=++e.size,this;e=this.__data__=new ut(o)}return e.set(t,r),this.size=e.size,this};function st(t){var r=this.__data__=new j(t);this.size=r.size}st.prototype.clear=O,st.prototype.delete=w,st.prototype.get=x,st.prototype.has=M,st.prototype.set=ct;var pt=st,ft=function(){try{var t=H(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();var lt=function(t,r,e){"__proto__"==r&&ft?ft(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e};var dt=function(t,r,e){(void 0!==e&&!d(t[r],e)||void 0===e&&!(r in t))&&lt(t,r,e)};var vt=function(t){return function(r,e,o){for(var n=-1,i=Object(r),a=o(r),u=a.length;u--;){var c=a[t?u:++n];if(!1===e(i[c],c,i))break}return r}}(),ht=u((function(t,r){var e=r&&!r.nodeType&&r,o=e&&t&&!t.nodeType&&t,i=o&&o.exports===e?n.Buffer:void 0,a=i?i.allocUnsafe:void 0;t.exports=function(t,r){if(r)return t.slice();var e=t.length,o=a?a(e):new t.constructor(e);return t.copy(o),o}})),yt=n.Uint8Array;var bt=function(t){var r=new t.constructor(t.byteLength);return new yt(r).set(new yt(t)),r};var _t=function(t,r){var e=r?bt(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)};var gt=function(t,r){var e=-1,o=t.length;for(r||(r=Array(o));++e<o;)r[e]=t[e];return r},mt=Object.create,jt=function(){function t(){}return function(r){if(!e(r))return{};if(mt)return mt(r);t.prototype=r;var o=new t;return t.prototype=void 0,o}}();var Ot=function(t,r){return function(e){return t(r(e))}}(Object.getPrototypeOf,Object),wt=Object.prototype;var xt=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||wt)};var Mt=function(t){return"function"!=typeof t.constructor||xt(t)?{}:jt(Ot(t))};var At=function(t){return i(t)&&"[object Arguments]"==o(t)},zt=Object.prototype,St=zt.hasOwnProperty,Ct=zt.propertyIsEnumerable,kt=At(function(){return arguments}())?At:function(t){return i(t)&&St.call(t,"callee")&&!Ct.call(t,"callee")},Tt=Array.isArray;var It=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Pt=function(t){return null!=t&&It(t.length)&&!z(t)};var Ft=function(t){return i(t)&&Pt(t)};var Bt=function(){return!1},Et=u((function(t,r){var e=r&&!r.nodeType&&r,o=e&&t&&!t.nodeType&&t,i=o&&o.exports===e?n.Buffer:void 0,a=(i?i.isBuffer:void 0)||Bt;t.exports=a})),$t=Function.prototype,Rt=Object.prototype,Ut=$t.toString,Dt=Rt.hasOwnProperty,Ht=Ut.call(Object);var Lt=function(t){if(!i(t)||"[object Object]"!=o(t))return!1;var r=Ot(t);if(null===r)return!0;var e=Dt.call(r,"constructor")&&r.constructor;return"function"==typeof e&&e instanceof e&&Ut.call(e)==Ht},Nt={};Nt["[object Float32Array]"]=Nt["[object Float64Array]"]=Nt["[object Int8Array]"]=Nt["[object Int16Array]"]=Nt["[object Int32Array]"]=Nt["[object Uint8Array]"]=Nt["[object Uint8ClampedArray]"]=Nt["[object Uint16Array]"]=Nt["[object Uint32Array]"]=!0,Nt["[object Arguments]"]=Nt["[object Array]"]=Nt["[object ArrayBuffer]"]=Nt["[object Boolean]"]=Nt["[object DataView]"]=Nt["[object Date]"]=Nt["[object Error]"]=Nt["[object Function]"]=Nt["[object Map]"]=Nt["[object Number]"]=Nt["[object Object]"]=Nt["[object RegExp]"]=Nt["[object Set]"]=Nt["[object String]"]=Nt["[object WeakMap]"]=!1;var Wt=function(t){return i(t)&&It(t.length)&&!!Nt[o(t)]};var qt=function(t){return function(r){return t(r)}},Gt=u((function(t,r){var e=r&&!r.nodeType&&r,o=e&&t&&!t.nodeType&&t,n=o&&o.exports===e&&a.process,i=function(){try{var t=o&&o.require&&o.require("util").types;return t||n&&n.binding&&n.binding("util")}catch(t){}}();t.exports=i})),Jt=Gt&&Gt.isTypedArray,Vt=Jt?qt(Jt):Wt;var Kt=function(t,r){if(("constructor"!==r||"function"!=typeof t[r])&&"__proto__"!=r)return t[r]},Qt=Object.prototype.hasOwnProperty;var Xt=function(t,r,e){var o=t[r];Qt.call(t,r)&&d(o,e)&&(void 0!==e||r in t)||lt(t,r,e)};var Yt=function(t,r,e,o){var n=!e;e||(e={});for(var i=-1,a=r.length;++i<a;){var u=r[i],c=o?o(e[u],t[u],u,e,t):void 0;void 0===c&&(c=t[u]),n?lt(e,u,c):Xt(e,u,c)}return e};var Zt=function(t,r){for(var e=-1,o=Array(t);++e<t;)o[e]=r(e);return o},tr=/^(?:0|[1-9]\d*)$/;var rr=function(t,r){var e=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==e||"symbol"!=e&&tr.test(t))&&t>-1&&t%1==0&&t<r},er=Object.prototype.hasOwnProperty;var or=function(t,r){var e=Tt(t),o=!e&&kt(t),n=!e&&!o&&Et(t),i=!e&&!o&&!n&&Vt(t),a=e||o||n||i,u=a?Zt(t.length,String):[],c=u.length;for(var s in t)!r&&!er.call(t,s)||a&&("length"==s||n&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||rr(s,c))||u.push(s);return u};var nr=function(t){var r=[];if(null!=t)for(var e in Object(t))r.push(e);return r},ir=Object.prototype.hasOwnProperty;var ar=function(t){if(!e(t))return nr(t);var r=xt(t),o=[];for(var n in t)("constructor"!=n||!r&&ir.call(t,n))&&o.push(n);return o};var ur=function(t){return Pt(t)?or(t,!0):ar(t)};var cr=function(t){return Yt(t,ur(t))};var sr=function(t,r,o,n,i,a,u){var c=Kt(t,o),s=Kt(r,o),p=u.get(s);if(p)dt(t,o,p);else{var f=a?a(c,s,o+"",t,r,u):void 0,l=void 0===f;if(l){var d=Tt(s),v=!d&&Et(s),h=!d&&!v&&Vt(s);f=s,d||v||h?Tt(c)?f=c:Ft(c)?f=gt(c):v?(l=!1,f=ht(s,!0)):h?(l=!1,f=_t(s,!0)):f=[]:Lt(s)||kt(s)?(f=c,kt(c)?f=cr(c):e(c)&&!z(c)||(f=Mt(s))):l=!1}l&&(u.set(s,f),i(f,s,n,a,u),u.delete(s)),dt(t,o,f)}};var pr=function t(r,o,n,i,a){r!==o&&vt(o,(function(u,c){if(a||(a=new pt),e(u))sr(r,o,c,n,t,i,a);else{var s=i?i(Kt(r,c),u,c+"",r,o,a):void 0;void 0===s&&(s=u),dt(r,c,s)}}),ur)};var fr=function(t){return t};var lr=function(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)},dr=Math.max;var vr=function(t,r,e){return r=dr(void 0===r?t.length-1:r,0),function(){for(var o=arguments,n=-1,i=dr(o.length-r,0),a=Array(i);++n<i;)a[n]=o[r+n];n=-1;for(var u=Array(r+1);++n<r;)u[n]=o[n];return u[r]=e(a),lr(t,this,u)}};var hr=function(t){return function(){return t}},yr=ft?function(t,r){return ft(t,"toString",{configurable:!0,enumerable:!1,value:hr(r),writable:!0})}:fr,br=Date.now;var _r=function(t){var r=0,e=0;return function(){var o=br(),n=16-(o-e);if(e=o,n>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}(yr);var gr=function(t,r){return _r(vr(t,r,fr),t+"")};var mr=function(t,r,o){if(!e(o))return!1;var n=typeof r;return!!("number"==n?Pt(o)&&rr(r,o.length):"string"==n&&r in o)&&d(o[r],t)};var jr=function(t){return gr((function(r,e){var o=-1,n=e.length,i=n>1?e[n-1]:void 0,a=n>2?e[2]:void 0;for(i=t.length>3&&"function"==typeof i?(n--,i):void 0,a&&mr(e[0],e[1],a)&&(i=n<3?void 0:i,n=1),r=Object(r);++o<n;){var u=e[o];u&&t(r,u,o,i)}return r}))}((function(t,r,e){pr(t,r,e)})),Or=["Noto Sans TC","Microsoft JhengHei","sans-serif","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'];c('@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;300;400;500;700;900&display=swap");\n');const wr={primaryColor:"#0087dc",primaryColorFocus:"#339fe3",secondaryColor:"#ffc400"},xr=r=>{let{children:e,themes:o,colors:n,darkMode:i}=r;const a=jr((t=>{let{darkMode:r,colors:e}=t;const{primaryColor:o,secondaryColor:n}=e||wr,i=r?"#8c8c8c":"#d9d9d9";return p({typography:{button:{textTransform:"none"},fontFamily:(Or||[]).join(",")},palette:{type:r?"dark":"light",primary:{main:o},secondary:{main:n}},shape:{borderRadius:3},props:{MuiButton:{variant:"contained",color:"primary"},MuiSelect:{MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},getContentAnchorEl:null}},MuiTypography:{component:"span"}},overrides:{MuiPaper:{root:{background:"white",minWidth:300}},MuiSelect:{root:{padding:8}},MuiButton:{root:{padding:"4px 8px","&$outlined":{padding:"4px 8px"}}},MuiIconButton:{root:{padding:8}},MuiInput:{root:{width:"100%",border:`1px solid ${i}`,borderRadius:3,padding:"2px 8px 0"},underline:{"&::before":{display:"none"},"&::after":{display:"none"}}},MuiAutocomplete:{inputRoot:{paddingRight:"4px !important",backgroundColor:r?"#303030":"#fff","&:hover .MuiOutlinedInput-notchedOutline":{borderColor:o}},option:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",display:"block",minHeight:"initial"},endAdornment:{display:"none"}},MuiChip:{root:{height:"28px",borderRadius:"2px",backgroundColor:r?"#595959":"#f5f5f5",border:"1px solid",borderColor:i}},MuiOutlinedInput:{root:{borderColor:i,"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderWidth:"1px",boxShadow:"0 0 0 2px rgb(24 144 255 / 20%)"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#40a9ff"}},input:{padding:"4px 11px",fontSize:"14px",height:"24px",color:r?"#fff":"rgba(0, 0, 0, 0.85)"}},MuiListItemIcon:{root:{minWidth:"32px"}},MuiTableHead:{root:{background:"#fafafa"}},MuiTableContainer:{root:{boxShadow:"initial",border:"1px solid #e0e0e0",borderBottom:0}},MuiDialogTitle:{root:{padding:"0 4px 0 12px",background:o,color:"white"}},MuiDialogContent:{root:{padding:12,"&:first-child":"initial"}},MuiDialogActions:{root:{padding:12,borderTop:`1px solid ${i}`}}}})})({darkMode:i,colors:n}),o);return t.createElement(f,{theme:a},t.createElement(s,null),e)};xr.defaultProps={children:void 0,themes:void 0,colors:void 0,darkMode:void 0},xr.propTypes={children:r.node,themes:r.objectOf(r.any),colors:r.objectOf(r.any),darkMode:r.bool};export{xr as default};
1
+ import React__default from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import { a as _baseGetTag, b as isObject_1, _ as _root, i as isObjectLike_1, c as _freeGlobal } from './isObjectLike-e111475d.js';
4
+ import { CssBaseline } from '@material-ui/core';
5
+ import { e as createTheme } from './defaultTheme-5839b9b3.js';
6
+ import 'react-is';
7
+ import { ThemeProvider } from '@material-ui/styles';
8
+ import './withTheme-4417822c.js';
9
+ import { s as styleInject } from './style-inject.es-1f59c1d0.js';
10
+ import './_commonjsHelpers-70de2c37.js';
11
+
12
+ /**
13
+ * Removes all key-value entries from the list cache.
14
+ *
15
+ * @private
16
+ * @name clear
17
+ * @memberOf ListCache
18
+ */
19
+
20
+ function listCacheClear$1() {
21
+ this.__data__ = [];
22
+ this.size = 0;
23
+ }
24
+
25
+ var _listCacheClear = listCacheClear$1;
26
+
27
+ /**
28
+ * Performs a
29
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
30
+ * comparison between two values to determine if they are equivalent.
31
+ *
32
+ * @static
33
+ * @memberOf _
34
+ * @since 4.0.0
35
+ * @category Lang
36
+ * @param {*} value The value to compare.
37
+ * @param {*} other The other value to compare.
38
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
39
+ * @example
40
+ *
41
+ * var object = { 'a': 1 };
42
+ * var other = { 'a': 1 };
43
+ *
44
+ * _.eq(object, object);
45
+ * // => true
46
+ *
47
+ * _.eq(object, other);
48
+ * // => false
49
+ *
50
+ * _.eq('a', 'a');
51
+ * // => true
52
+ *
53
+ * _.eq('a', Object('a'));
54
+ * // => false
55
+ *
56
+ * _.eq(NaN, NaN);
57
+ * // => true
58
+ */
59
+
60
+ function eq$4(value, other) {
61
+ return value === other || (value !== value && other !== other);
62
+ }
63
+
64
+ var eq_1 = eq$4;
65
+
66
+ var eq$3 = eq_1;
67
+
68
+ /**
69
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
70
+ *
71
+ * @private
72
+ * @param {Array} array The array to inspect.
73
+ * @param {*} key The key to search for.
74
+ * @returns {number} Returns the index of the matched value, else `-1`.
75
+ */
76
+ function assocIndexOf$4(array, key) {
77
+ var length = array.length;
78
+ while (length--) {
79
+ if (eq$3(array[length][0], key)) {
80
+ return length;
81
+ }
82
+ }
83
+ return -1;
84
+ }
85
+
86
+ var _assocIndexOf = assocIndexOf$4;
87
+
88
+ var assocIndexOf$3 = _assocIndexOf;
89
+
90
+ /** Used for built-in method references. */
91
+ var arrayProto = Array.prototype;
92
+
93
+ /** Built-in value references. */
94
+ var splice = arrayProto.splice;
95
+
96
+ /**
97
+ * Removes `key` and its value from the list cache.
98
+ *
99
+ * @private
100
+ * @name delete
101
+ * @memberOf ListCache
102
+ * @param {string} key The key of the value to remove.
103
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
104
+ */
105
+ function listCacheDelete$1(key) {
106
+ var data = this.__data__,
107
+ index = assocIndexOf$3(data, key);
108
+
109
+ if (index < 0) {
110
+ return false;
111
+ }
112
+ var lastIndex = data.length - 1;
113
+ if (index == lastIndex) {
114
+ data.pop();
115
+ } else {
116
+ splice.call(data, index, 1);
117
+ }
118
+ --this.size;
119
+ return true;
120
+ }
121
+
122
+ var _listCacheDelete = listCacheDelete$1;
123
+
124
+ var assocIndexOf$2 = _assocIndexOf;
125
+
126
+ /**
127
+ * Gets the list cache value for `key`.
128
+ *
129
+ * @private
130
+ * @name get
131
+ * @memberOf ListCache
132
+ * @param {string} key The key of the value to get.
133
+ * @returns {*} Returns the entry value.
134
+ */
135
+ function listCacheGet$1(key) {
136
+ var data = this.__data__,
137
+ index = assocIndexOf$2(data, key);
138
+
139
+ return index < 0 ? undefined : data[index][1];
140
+ }
141
+
142
+ var _listCacheGet = listCacheGet$1;
143
+
144
+ var assocIndexOf$1 = _assocIndexOf;
145
+
146
+ /**
147
+ * Checks if a list cache value for `key` exists.
148
+ *
149
+ * @private
150
+ * @name has
151
+ * @memberOf ListCache
152
+ * @param {string} key The key of the entry to check.
153
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
154
+ */
155
+ function listCacheHas$1(key) {
156
+ return assocIndexOf$1(this.__data__, key) > -1;
157
+ }
158
+
159
+ var _listCacheHas = listCacheHas$1;
160
+
161
+ var assocIndexOf = _assocIndexOf;
162
+
163
+ /**
164
+ * Sets the list cache `key` to `value`.
165
+ *
166
+ * @private
167
+ * @name set
168
+ * @memberOf ListCache
169
+ * @param {string} key The key of the value to set.
170
+ * @param {*} value The value to set.
171
+ * @returns {Object} Returns the list cache instance.
172
+ */
173
+ function listCacheSet$1(key, value) {
174
+ var data = this.__data__,
175
+ index = assocIndexOf(data, key);
176
+
177
+ if (index < 0) {
178
+ ++this.size;
179
+ data.push([key, value]);
180
+ } else {
181
+ data[index][1] = value;
182
+ }
183
+ return this;
184
+ }
185
+
186
+ var _listCacheSet = listCacheSet$1;
187
+
188
+ var listCacheClear = _listCacheClear,
189
+ listCacheDelete = _listCacheDelete,
190
+ listCacheGet = _listCacheGet,
191
+ listCacheHas = _listCacheHas,
192
+ listCacheSet = _listCacheSet;
193
+
194
+ /**
195
+ * Creates an list cache object.
196
+ *
197
+ * @private
198
+ * @constructor
199
+ * @param {Array} [entries] The key-value pairs to cache.
200
+ */
201
+ function ListCache$4(entries) {
202
+ var index = -1,
203
+ length = entries == null ? 0 : entries.length;
204
+
205
+ this.clear();
206
+ while (++index < length) {
207
+ var entry = entries[index];
208
+ this.set(entry[0], entry[1]);
209
+ }
210
+ }
211
+
212
+ // Add methods to `ListCache`.
213
+ ListCache$4.prototype.clear = listCacheClear;
214
+ ListCache$4.prototype['delete'] = listCacheDelete;
215
+ ListCache$4.prototype.get = listCacheGet;
216
+ ListCache$4.prototype.has = listCacheHas;
217
+ ListCache$4.prototype.set = listCacheSet;
218
+
219
+ var _ListCache = ListCache$4;
220
+
221
+ var ListCache$3 = _ListCache;
222
+
223
+ /**
224
+ * Removes all key-value entries from the stack.
225
+ *
226
+ * @private
227
+ * @name clear
228
+ * @memberOf Stack
229
+ */
230
+ function stackClear$1() {
231
+ this.__data__ = new ListCache$3;
232
+ this.size = 0;
233
+ }
234
+
235
+ var _stackClear = stackClear$1;
236
+
237
+ /**
238
+ * Removes `key` and its value from the stack.
239
+ *
240
+ * @private
241
+ * @name delete
242
+ * @memberOf Stack
243
+ * @param {string} key The key of the value to remove.
244
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
245
+ */
246
+
247
+ function stackDelete$1(key) {
248
+ var data = this.__data__,
249
+ result = data['delete'](key);
250
+
251
+ this.size = data.size;
252
+ return result;
253
+ }
254
+
255
+ var _stackDelete = stackDelete$1;
256
+
257
+ /**
258
+ * Gets the stack value for `key`.
259
+ *
260
+ * @private
261
+ * @name get
262
+ * @memberOf Stack
263
+ * @param {string} key The key of the value to get.
264
+ * @returns {*} Returns the entry value.
265
+ */
266
+
267
+ function stackGet$1(key) {
268
+ return this.__data__.get(key);
269
+ }
270
+
271
+ var _stackGet = stackGet$1;
272
+
273
+ /**
274
+ * Checks if a stack value for `key` exists.
275
+ *
276
+ * @private
277
+ * @name has
278
+ * @memberOf Stack
279
+ * @param {string} key The key of the entry to check.
280
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
281
+ */
282
+
283
+ function stackHas$1(key) {
284
+ return this.__data__.has(key);
285
+ }
286
+
287
+ var _stackHas = stackHas$1;
288
+
289
+ var baseGetTag$3 = _baseGetTag,
290
+ isObject$6 = isObject_1;
291
+
292
+ /** `Object#toString` result references. */
293
+ var asyncTag = '[object AsyncFunction]',
294
+ funcTag$1 = '[object Function]',
295
+ genTag = '[object GeneratorFunction]',
296
+ proxyTag = '[object Proxy]';
297
+
298
+ /**
299
+ * Checks if `value` is classified as a `Function` object.
300
+ *
301
+ * @static
302
+ * @memberOf _
303
+ * @since 0.1.0
304
+ * @category Lang
305
+ * @param {*} value The value to check.
306
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
307
+ * @example
308
+ *
309
+ * _.isFunction(_);
310
+ * // => true
311
+ *
312
+ * _.isFunction(/abc/);
313
+ * // => false
314
+ */
315
+ function isFunction$3(value) {
316
+ if (!isObject$6(value)) {
317
+ return false;
318
+ }
319
+ // The use of `Object#toString` avoids issues with the `typeof` operator
320
+ // in Safari 9 which returns 'object' for typed arrays and other constructors.
321
+ var tag = baseGetTag$3(value);
322
+ return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
323
+ }
324
+
325
+ var isFunction_1 = isFunction$3;
326
+
327
+ var root$2 = _root;
328
+
329
+ /** Used to detect overreaching core-js shims. */
330
+ var coreJsData$1 = root$2['__core-js_shared__'];
331
+
332
+ var _coreJsData = coreJsData$1;
333
+
334
+ var coreJsData = _coreJsData;
335
+
336
+ /** Used to detect methods masquerading as native. */
337
+ var maskSrcKey = (function() {
338
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
339
+ return uid ? ('Symbol(src)_1.' + uid) : '';
340
+ }());
341
+
342
+ /**
343
+ * Checks if `func` has its source masked.
344
+ *
345
+ * @private
346
+ * @param {Function} func The function to check.
347
+ * @returns {boolean} Returns `true` if `func` is masked, else `false`.
348
+ */
349
+ function isMasked$1(func) {
350
+ return !!maskSrcKey && (maskSrcKey in func);
351
+ }
352
+
353
+ var _isMasked = isMasked$1;
354
+
355
+ /** Used for built-in method references. */
356
+
357
+ var funcProto$2 = Function.prototype;
358
+
359
+ /** Used to resolve the decompiled source of functions. */
360
+ var funcToString$2 = funcProto$2.toString;
361
+
362
+ /**
363
+ * Converts `func` to its source code.
364
+ *
365
+ * @private
366
+ * @param {Function} func The function to convert.
367
+ * @returns {string} Returns the source code.
368
+ */
369
+ function toSource$1(func) {
370
+ if (func != null) {
371
+ try {
372
+ return funcToString$2.call(func);
373
+ } catch (e) {}
374
+ try {
375
+ return (func + '');
376
+ } catch (e) {}
377
+ }
378
+ return '';
379
+ }
380
+
381
+ var _toSource = toSource$1;
382
+
383
+ var isFunction$2 = isFunction_1,
384
+ isMasked = _isMasked,
385
+ isObject$5 = isObject_1,
386
+ toSource = _toSource;
387
+
388
+ /**
389
+ * Used to match `RegExp`
390
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
391
+ */
392
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
393
+
394
+ /** Used to detect host constructors (Safari). */
395
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
396
+
397
+ /** Used for built-in method references. */
398
+ var funcProto$1 = Function.prototype,
399
+ objectProto$8 = Object.prototype;
400
+
401
+ /** Used to resolve the decompiled source of functions. */
402
+ var funcToString$1 = funcProto$1.toString;
403
+
404
+ /** Used to check objects for own properties. */
405
+ var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
406
+
407
+ /** Used to detect if a method is native. */
408
+ var reIsNative = RegExp('^' +
409
+ funcToString$1.call(hasOwnProperty$7).replace(reRegExpChar, '\\$&')
410
+ .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
411
+ );
412
+
413
+ /**
414
+ * The base implementation of `_.isNative` without bad shim checks.
415
+ *
416
+ * @private
417
+ * @param {*} value The value to check.
418
+ * @returns {boolean} Returns `true` if `value` is a native function,
419
+ * else `false`.
420
+ */
421
+ function baseIsNative$1(value) {
422
+ if (!isObject$5(value) || isMasked(value)) {
423
+ return false;
424
+ }
425
+ var pattern = isFunction$2(value) ? reIsNative : reIsHostCtor;
426
+ return pattern.test(toSource(value));
427
+ }
428
+
429
+ var _baseIsNative = baseIsNative$1;
430
+
431
+ /**
432
+ * Gets the value at `key` of `object`.
433
+ *
434
+ * @private
435
+ * @param {Object} [object] The object to query.
436
+ * @param {string} key The key of the property to get.
437
+ * @returns {*} Returns the property value.
438
+ */
439
+
440
+ function getValue$1(object, key) {
441
+ return object == null ? undefined : object[key];
442
+ }
443
+
444
+ var _getValue = getValue$1;
445
+
446
+ var baseIsNative = _baseIsNative,
447
+ getValue = _getValue;
448
+
449
+ /**
450
+ * Gets the native function at `key` of `object`.
451
+ *
452
+ * @private
453
+ * @param {Object} object The object to query.
454
+ * @param {string} key The key of the method to get.
455
+ * @returns {*} Returns the function if it's native, else `undefined`.
456
+ */
457
+ function getNative$3(object, key) {
458
+ var value = getValue(object, key);
459
+ return baseIsNative(value) ? value : undefined;
460
+ }
461
+
462
+ var _getNative = getNative$3;
463
+
464
+ var getNative$2 = _getNative,
465
+ root$1 = _root;
466
+
467
+ /* Built-in method references that are verified to be native. */
468
+ var Map$2 = getNative$2(root$1, 'Map');
469
+
470
+ var _Map = Map$2;
471
+
472
+ var getNative$1 = _getNative;
473
+
474
+ /* Built-in method references that are verified to be native. */
475
+ var nativeCreate$4 = getNative$1(Object, 'create');
476
+
477
+ var _nativeCreate = nativeCreate$4;
478
+
479
+ var nativeCreate$3 = _nativeCreate;
480
+
481
+ /**
482
+ * Removes all key-value entries from the hash.
483
+ *
484
+ * @private
485
+ * @name clear
486
+ * @memberOf Hash
487
+ */
488
+ function hashClear$1() {
489
+ this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
490
+ this.size = 0;
491
+ }
492
+
493
+ var _hashClear = hashClear$1;
494
+
495
+ /**
496
+ * Removes `key` and its value from the hash.
497
+ *
498
+ * @private
499
+ * @name delete
500
+ * @memberOf Hash
501
+ * @param {Object} hash The hash to modify.
502
+ * @param {string} key The key of the value to remove.
503
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
504
+ */
505
+
506
+ function hashDelete$1(key) {
507
+ var result = this.has(key) && delete this.__data__[key];
508
+ this.size -= result ? 1 : 0;
509
+ return result;
510
+ }
511
+
512
+ var _hashDelete = hashDelete$1;
513
+
514
+ var nativeCreate$2 = _nativeCreate;
515
+
516
+ /** Used to stand-in for `undefined` hash values. */
517
+ var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
518
+
519
+ /** Used for built-in method references. */
520
+ var objectProto$7 = Object.prototype;
521
+
522
+ /** Used to check objects for own properties. */
523
+ var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
524
+
525
+ /**
526
+ * Gets the hash value for `key`.
527
+ *
528
+ * @private
529
+ * @name get
530
+ * @memberOf Hash
531
+ * @param {string} key The key of the value to get.
532
+ * @returns {*} Returns the entry value.
533
+ */
534
+ function hashGet$1(key) {
535
+ var data = this.__data__;
536
+ if (nativeCreate$2) {
537
+ var result = data[key];
538
+ return result === HASH_UNDEFINED$1 ? undefined : result;
539
+ }
540
+ return hasOwnProperty$6.call(data, key) ? data[key] : undefined;
541
+ }
542
+
543
+ var _hashGet = hashGet$1;
544
+
545
+ var nativeCreate$1 = _nativeCreate;
546
+
547
+ /** Used for built-in method references. */
548
+ var objectProto$6 = Object.prototype;
549
+
550
+ /** Used to check objects for own properties. */
551
+ var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
552
+
553
+ /**
554
+ * Checks if a hash value for `key` exists.
555
+ *
556
+ * @private
557
+ * @name has
558
+ * @memberOf Hash
559
+ * @param {string} key The key of the entry to check.
560
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
561
+ */
562
+ function hashHas$1(key) {
563
+ var data = this.__data__;
564
+ return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$5.call(data, key);
565
+ }
566
+
567
+ var _hashHas = hashHas$1;
568
+
569
+ var nativeCreate = _nativeCreate;
570
+
571
+ /** Used to stand-in for `undefined` hash values. */
572
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
573
+
574
+ /**
575
+ * Sets the hash `key` to `value`.
576
+ *
577
+ * @private
578
+ * @name set
579
+ * @memberOf Hash
580
+ * @param {string} key The key of the value to set.
581
+ * @param {*} value The value to set.
582
+ * @returns {Object} Returns the hash instance.
583
+ */
584
+ function hashSet$1(key, value) {
585
+ var data = this.__data__;
586
+ this.size += this.has(key) ? 0 : 1;
587
+ data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
588
+ return this;
589
+ }
590
+
591
+ var _hashSet = hashSet$1;
592
+
593
+ var hashClear = _hashClear,
594
+ hashDelete = _hashDelete,
595
+ hashGet = _hashGet,
596
+ hashHas = _hashHas,
597
+ hashSet = _hashSet;
598
+
599
+ /**
600
+ * Creates a hash object.
601
+ *
602
+ * @private
603
+ * @constructor
604
+ * @param {Array} [entries] The key-value pairs to cache.
605
+ */
606
+ function Hash$1(entries) {
607
+ var index = -1,
608
+ length = entries == null ? 0 : entries.length;
609
+
610
+ this.clear();
611
+ while (++index < length) {
612
+ var entry = entries[index];
613
+ this.set(entry[0], entry[1]);
614
+ }
615
+ }
616
+
617
+ // Add methods to `Hash`.
618
+ Hash$1.prototype.clear = hashClear;
619
+ Hash$1.prototype['delete'] = hashDelete;
620
+ Hash$1.prototype.get = hashGet;
621
+ Hash$1.prototype.has = hashHas;
622
+ Hash$1.prototype.set = hashSet;
623
+
624
+ var _Hash = Hash$1;
625
+
626
+ var Hash = _Hash,
627
+ ListCache$2 = _ListCache,
628
+ Map$1 = _Map;
629
+
630
+ /**
631
+ * Removes all key-value entries from the map.
632
+ *
633
+ * @private
634
+ * @name clear
635
+ * @memberOf MapCache
636
+ */
637
+ function mapCacheClear$1() {
638
+ this.size = 0;
639
+ this.__data__ = {
640
+ 'hash': new Hash,
641
+ 'map': new (Map$1 || ListCache$2),
642
+ 'string': new Hash
643
+ };
644
+ }
645
+
646
+ var _mapCacheClear = mapCacheClear$1;
647
+
648
+ /**
649
+ * Checks if `value` is suitable for use as unique object key.
650
+ *
651
+ * @private
652
+ * @param {*} value The value to check.
653
+ * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
654
+ */
655
+
656
+ function isKeyable$1(value) {
657
+ var type = typeof value;
658
+ return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
659
+ ? (value !== '__proto__')
660
+ : (value === null);
661
+ }
662
+
663
+ var _isKeyable = isKeyable$1;
664
+
665
+ var isKeyable = _isKeyable;
666
+
667
+ /**
668
+ * Gets the data for `map`.
669
+ *
670
+ * @private
671
+ * @param {Object} map The map to query.
672
+ * @param {string} key The reference key.
673
+ * @returns {*} Returns the map data.
674
+ */
675
+ function getMapData$4(map, key) {
676
+ var data = map.__data__;
677
+ return isKeyable(key)
678
+ ? data[typeof key == 'string' ? 'string' : 'hash']
679
+ : data.map;
680
+ }
681
+
682
+ var _getMapData = getMapData$4;
683
+
684
+ var getMapData$3 = _getMapData;
685
+
686
+ /**
687
+ * Removes `key` and its value from the map.
688
+ *
689
+ * @private
690
+ * @name delete
691
+ * @memberOf MapCache
692
+ * @param {string} key The key of the value to remove.
693
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
694
+ */
695
+ function mapCacheDelete$1(key) {
696
+ var result = getMapData$3(this, key)['delete'](key);
697
+ this.size -= result ? 1 : 0;
698
+ return result;
699
+ }
700
+
701
+ var _mapCacheDelete = mapCacheDelete$1;
702
+
703
+ var getMapData$2 = _getMapData;
704
+
705
+ /**
706
+ * Gets the map value for `key`.
707
+ *
708
+ * @private
709
+ * @name get
710
+ * @memberOf MapCache
711
+ * @param {string} key The key of the value to get.
712
+ * @returns {*} Returns the entry value.
713
+ */
714
+ function mapCacheGet$1(key) {
715
+ return getMapData$2(this, key).get(key);
716
+ }
717
+
718
+ var _mapCacheGet = mapCacheGet$1;
719
+
720
+ var getMapData$1 = _getMapData;
721
+
722
+ /**
723
+ * Checks if a map value for `key` exists.
724
+ *
725
+ * @private
726
+ * @name has
727
+ * @memberOf MapCache
728
+ * @param {string} key The key of the entry to check.
729
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
730
+ */
731
+ function mapCacheHas$1(key) {
732
+ return getMapData$1(this, key).has(key);
733
+ }
734
+
735
+ var _mapCacheHas = mapCacheHas$1;
736
+
737
+ var getMapData = _getMapData;
738
+
739
+ /**
740
+ * Sets the map `key` to `value`.
741
+ *
742
+ * @private
743
+ * @name set
744
+ * @memberOf MapCache
745
+ * @param {string} key The key of the value to set.
746
+ * @param {*} value The value to set.
747
+ * @returns {Object} Returns the map cache instance.
748
+ */
749
+ function mapCacheSet$1(key, value) {
750
+ var data = getMapData(this, key),
751
+ size = data.size;
752
+
753
+ data.set(key, value);
754
+ this.size += data.size == size ? 0 : 1;
755
+ return this;
756
+ }
757
+
758
+ var _mapCacheSet = mapCacheSet$1;
759
+
760
+ var mapCacheClear = _mapCacheClear,
761
+ mapCacheDelete = _mapCacheDelete,
762
+ mapCacheGet = _mapCacheGet,
763
+ mapCacheHas = _mapCacheHas,
764
+ mapCacheSet = _mapCacheSet;
765
+
766
+ /**
767
+ * Creates a map cache object to store key-value pairs.
768
+ *
769
+ * @private
770
+ * @constructor
771
+ * @param {Array} [entries] The key-value pairs to cache.
772
+ */
773
+ function MapCache$1(entries) {
774
+ var index = -1,
775
+ length = entries == null ? 0 : entries.length;
776
+
777
+ this.clear();
778
+ while (++index < length) {
779
+ var entry = entries[index];
780
+ this.set(entry[0], entry[1]);
781
+ }
782
+ }
783
+
784
+ // Add methods to `MapCache`.
785
+ MapCache$1.prototype.clear = mapCacheClear;
786
+ MapCache$1.prototype['delete'] = mapCacheDelete;
787
+ MapCache$1.prototype.get = mapCacheGet;
788
+ MapCache$1.prototype.has = mapCacheHas;
789
+ MapCache$1.prototype.set = mapCacheSet;
790
+
791
+ var _MapCache = MapCache$1;
792
+
793
+ var ListCache$1 = _ListCache,
794
+ Map = _Map,
795
+ MapCache = _MapCache;
796
+
797
+ /** Used as the size to enable large array optimizations. */
798
+ var LARGE_ARRAY_SIZE = 200;
799
+
800
+ /**
801
+ * Sets the stack `key` to `value`.
802
+ *
803
+ * @private
804
+ * @name set
805
+ * @memberOf Stack
806
+ * @param {string} key The key of the value to set.
807
+ * @param {*} value The value to set.
808
+ * @returns {Object} Returns the stack cache instance.
809
+ */
810
+ function stackSet$1(key, value) {
811
+ var data = this.__data__;
812
+ if (data instanceof ListCache$1) {
813
+ var pairs = data.__data__;
814
+ if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
815
+ pairs.push([key, value]);
816
+ this.size = ++data.size;
817
+ return this;
818
+ }
819
+ data = this.__data__ = new MapCache(pairs);
820
+ }
821
+ data.set(key, value);
822
+ this.size = data.size;
823
+ return this;
824
+ }
825
+
826
+ var _stackSet = stackSet$1;
827
+
828
+ var ListCache = _ListCache,
829
+ stackClear = _stackClear,
830
+ stackDelete = _stackDelete,
831
+ stackGet = _stackGet,
832
+ stackHas = _stackHas,
833
+ stackSet = _stackSet;
834
+
835
+ /**
836
+ * Creates a stack cache object to store key-value pairs.
837
+ *
838
+ * @private
839
+ * @constructor
840
+ * @param {Array} [entries] The key-value pairs to cache.
841
+ */
842
+ function Stack$1(entries) {
843
+ var data = this.__data__ = new ListCache(entries);
844
+ this.size = data.size;
845
+ }
846
+
847
+ // Add methods to `Stack`.
848
+ Stack$1.prototype.clear = stackClear;
849
+ Stack$1.prototype['delete'] = stackDelete;
850
+ Stack$1.prototype.get = stackGet;
851
+ Stack$1.prototype.has = stackHas;
852
+ Stack$1.prototype.set = stackSet;
853
+
854
+ var _Stack = Stack$1;
855
+
856
+ var getNative = _getNative;
857
+
858
+ var defineProperty$2 = (function() {
859
+ try {
860
+ var func = getNative(Object, 'defineProperty');
861
+ func({}, '', {});
862
+ return func;
863
+ } catch (e) {}
864
+ }());
865
+
866
+ var _defineProperty = defineProperty$2;
867
+
868
+ var defineProperty$1 = _defineProperty;
869
+
870
+ /**
871
+ * The base implementation of `assignValue` and `assignMergeValue` without
872
+ * value checks.
873
+ *
874
+ * @private
875
+ * @param {Object} object The object to modify.
876
+ * @param {string} key The key of the property to assign.
877
+ * @param {*} value The value to assign.
878
+ */
879
+ function baseAssignValue$3(object, key, value) {
880
+ if (key == '__proto__' && defineProperty$1) {
881
+ defineProperty$1(object, key, {
882
+ 'configurable': true,
883
+ 'enumerable': true,
884
+ 'value': value,
885
+ 'writable': true
886
+ });
887
+ } else {
888
+ object[key] = value;
889
+ }
890
+ }
891
+
892
+ var _baseAssignValue = baseAssignValue$3;
893
+
894
+ var baseAssignValue$2 = _baseAssignValue,
895
+ eq$2 = eq_1;
896
+
897
+ /**
898
+ * This function is like `assignValue` except that it doesn't assign
899
+ * `undefined` values.
900
+ *
901
+ * @private
902
+ * @param {Object} object The object to modify.
903
+ * @param {string} key The key of the property to assign.
904
+ * @param {*} value The value to assign.
905
+ */
906
+ function assignMergeValue$2(object, key, value) {
907
+ if ((value !== undefined && !eq$2(object[key], value)) ||
908
+ (value === undefined && !(key in object))) {
909
+ baseAssignValue$2(object, key, value);
910
+ }
911
+ }
912
+
913
+ var _assignMergeValue = assignMergeValue$2;
914
+
915
+ /**
916
+ * Creates a base function for methods like `_.forIn` and `_.forOwn`.
917
+ *
918
+ * @private
919
+ * @param {boolean} [fromRight] Specify iterating from right to left.
920
+ * @returns {Function} Returns the new base function.
921
+ */
922
+
923
+ function createBaseFor$1(fromRight) {
924
+ return function(object, iteratee, keysFunc) {
925
+ var index = -1,
926
+ iterable = Object(object),
927
+ props = keysFunc(object),
928
+ length = props.length;
929
+
930
+ while (length--) {
931
+ var key = props[fromRight ? length : ++index];
932
+ if (iteratee(iterable[key], key, iterable) === false) {
933
+ break;
934
+ }
935
+ }
936
+ return object;
937
+ };
938
+ }
939
+
940
+ var _createBaseFor = createBaseFor$1;
941
+
942
+ var createBaseFor = _createBaseFor;
943
+
944
+ /**
945
+ * The base implementation of `baseForOwn` which iterates over `object`
946
+ * properties returned by `keysFunc` and invokes `iteratee` for each property.
947
+ * Iteratee functions may exit iteration early by explicitly returning `false`.
948
+ *
949
+ * @private
950
+ * @param {Object} object The object to iterate over.
951
+ * @param {Function} iteratee The function invoked per iteration.
952
+ * @param {Function} keysFunc The function to get the keys of `object`.
953
+ * @returns {Object} Returns `object`.
954
+ */
955
+ var baseFor$1 = createBaseFor();
956
+
957
+ var _baseFor = baseFor$1;
958
+
959
+ var _cloneBuffer = {exports: {}};
960
+
961
+ (function (module, exports) {
962
+ var root = _root;
963
+
964
+ /** Detect free variable `exports`. */
965
+ var freeExports = exports && !exports.nodeType && exports;
966
+
967
+ /** Detect free variable `module`. */
968
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
969
+
970
+ /** Detect the popular CommonJS extension `module.exports`. */
971
+ var moduleExports = freeModule && freeModule.exports === freeExports;
972
+
973
+ /** Built-in value references. */
974
+ var Buffer = moduleExports ? root.Buffer : undefined,
975
+ allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
976
+
977
+ /**
978
+ * Creates a clone of `buffer`.
979
+ *
980
+ * @private
981
+ * @param {Buffer} buffer The buffer to clone.
982
+ * @param {boolean} [isDeep] Specify a deep clone.
983
+ * @returns {Buffer} Returns the cloned buffer.
984
+ */
985
+ function cloneBuffer(buffer, isDeep) {
986
+ if (isDeep) {
987
+ return buffer.slice();
988
+ }
989
+ var length = buffer.length,
990
+ result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
991
+
992
+ buffer.copy(result);
993
+ return result;
994
+ }
995
+
996
+ module.exports = cloneBuffer;
997
+ } (_cloneBuffer, _cloneBuffer.exports));
998
+
999
+ var root = _root;
1000
+
1001
+ /** Built-in value references. */
1002
+ var Uint8Array$1 = root.Uint8Array;
1003
+
1004
+ var _Uint8Array = Uint8Array$1;
1005
+
1006
+ var Uint8Array = _Uint8Array;
1007
+
1008
+ /**
1009
+ * Creates a clone of `arrayBuffer`.
1010
+ *
1011
+ * @private
1012
+ * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
1013
+ * @returns {ArrayBuffer} Returns the cloned array buffer.
1014
+ */
1015
+ function cloneArrayBuffer$1(arrayBuffer) {
1016
+ var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
1017
+ new Uint8Array(result).set(new Uint8Array(arrayBuffer));
1018
+ return result;
1019
+ }
1020
+
1021
+ var _cloneArrayBuffer = cloneArrayBuffer$1;
1022
+
1023
+ var cloneArrayBuffer = _cloneArrayBuffer;
1024
+
1025
+ /**
1026
+ * Creates a clone of `typedArray`.
1027
+ *
1028
+ * @private
1029
+ * @param {Object} typedArray The typed array to clone.
1030
+ * @param {boolean} [isDeep] Specify a deep clone.
1031
+ * @returns {Object} Returns the cloned typed array.
1032
+ */
1033
+ function cloneTypedArray$1(typedArray, isDeep) {
1034
+ var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
1035
+ return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
1036
+ }
1037
+
1038
+ var _cloneTypedArray = cloneTypedArray$1;
1039
+
1040
+ /**
1041
+ * Copies the values of `source` to `array`.
1042
+ *
1043
+ * @private
1044
+ * @param {Array} source The array to copy values from.
1045
+ * @param {Array} [array=[]] The array to copy values to.
1046
+ * @returns {Array} Returns `array`.
1047
+ */
1048
+
1049
+ function copyArray$1(source, array) {
1050
+ var index = -1,
1051
+ length = source.length;
1052
+
1053
+ array || (array = Array(length));
1054
+ while (++index < length) {
1055
+ array[index] = source[index];
1056
+ }
1057
+ return array;
1058
+ }
1059
+
1060
+ var _copyArray = copyArray$1;
1061
+
1062
+ var isObject$4 = isObject_1;
1063
+
1064
+ /** Built-in value references. */
1065
+ var objectCreate = Object.create;
1066
+
1067
+ /**
1068
+ * The base implementation of `_.create` without support for assigning
1069
+ * properties to the created object.
1070
+ *
1071
+ * @private
1072
+ * @param {Object} proto The object to inherit from.
1073
+ * @returns {Object} Returns the new object.
1074
+ */
1075
+ var baseCreate$1 = (function() {
1076
+ function object() {}
1077
+ return function(proto) {
1078
+ if (!isObject$4(proto)) {
1079
+ return {};
1080
+ }
1081
+ if (objectCreate) {
1082
+ return objectCreate(proto);
1083
+ }
1084
+ object.prototype = proto;
1085
+ var result = new object;
1086
+ object.prototype = undefined;
1087
+ return result;
1088
+ };
1089
+ }());
1090
+
1091
+ var _baseCreate = baseCreate$1;
1092
+
1093
+ /**
1094
+ * Creates a unary function that invokes `func` with its argument transformed.
1095
+ *
1096
+ * @private
1097
+ * @param {Function} func The function to wrap.
1098
+ * @param {Function} transform The argument transform.
1099
+ * @returns {Function} Returns the new function.
1100
+ */
1101
+
1102
+ function overArg$1(func, transform) {
1103
+ return function(arg) {
1104
+ return func(transform(arg));
1105
+ };
1106
+ }
1107
+
1108
+ var _overArg = overArg$1;
1109
+
1110
+ var overArg = _overArg;
1111
+
1112
+ /** Built-in value references. */
1113
+ var getPrototype$2 = overArg(Object.getPrototypeOf, Object);
1114
+
1115
+ var _getPrototype = getPrototype$2;
1116
+
1117
+ /** Used for built-in method references. */
1118
+
1119
+ var objectProto$5 = Object.prototype;
1120
+
1121
+ /**
1122
+ * Checks if `value` is likely a prototype object.
1123
+ *
1124
+ * @private
1125
+ * @param {*} value The value to check.
1126
+ * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
1127
+ */
1128
+ function isPrototype$2(value) {
1129
+ var Ctor = value && value.constructor,
1130
+ proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$5;
1131
+
1132
+ return value === proto;
1133
+ }
1134
+
1135
+ var _isPrototype = isPrototype$2;
1136
+
1137
+ var baseCreate = _baseCreate,
1138
+ getPrototype$1 = _getPrototype,
1139
+ isPrototype$1 = _isPrototype;
1140
+
1141
+ /**
1142
+ * Initializes an object clone.
1143
+ *
1144
+ * @private
1145
+ * @param {Object} object The object to clone.
1146
+ * @returns {Object} Returns the initialized clone.
1147
+ */
1148
+ function initCloneObject$1(object) {
1149
+ return (typeof object.constructor == 'function' && !isPrototype$1(object))
1150
+ ? baseCreate(getPrototype$1(object))
1151
+ : {};
1152
+ }
1153
+
1154
+ var _initCloneObject = initCloneObject$1;
1155
+
1156
+ var baseGetTag$2 = _baseGetTag,
1157
+ isObjectLike$4 = isObjectLike_1;
1158
+
1159
+ /** `Object#toString` result references. */
1160
+ var argsTag$1 = '[object Arguments]';
1161
+
1162
+ /**
1163
+ * The base implementation of `_.isArguments`.
1164
+ *
1165
+ * @private
1166
+ * @param {*} value The value to check.
1167
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
1168
+ */
1169
+ function baseIsArguments$1(value) {
1170
+ return isObjectLike$4(value) && baseGetTag$2(value) == argsTag$1;
1171
+ }
1172
+
1173
+ var _baseIsArguments = baseIsArguments$1;
1174
+
1175
+ var baseIsArguments = _baseIsArguments,
1176
+ isObjectLike$3 = isObjectLike_1;
1177
+
1178
+ /** Used for built-in method references. */
1179
+ var objectProto$4 = Object.prototype;
1180
+
1181
+ /** Used to check objects for own properties. */
1182
+ var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
1183
+
1184
+ /** Built-in value references. */
1185
+ var propertyIsEnumerable = objectProto$4.propertyIsEnumerable;
1186
+
1187
+ /**
1188
+ * Checks if `value` is likely an `arguments` object.
1189
+ *
1190
+ * @static
1191
+ * @memberOf _
1192
+ * @since 0.1.0
1193
+ * @category Lang
1194
+ * @param {*} value The value to check.
1195
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
1196
+ * else `false`.
1197
+ * @example
1198
+ *
1199
+ * _.isArguments(function() { return arguments; }());
1200
+ * // => true
1201
+ *
1202
+ * _.isArguments([1, 2, 3]);
1203
+ * // => false
1204
+ */
1205
+ var isArguments$2 = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
1206
+ return isObjectLike$3(value) && hasOwnProperty$4.call(value, 'callee') &&
1207
+ !propertyIsEnumerable.call(value, 'callee');
1208
+ };
1209
+
1210
+ var isArguments_1 = isArguments$2;
1211
+
1212
+ /**
1213
+ * Checks if `value` is classified as an `Array` object.
1214
+ *
1215
+ * @static
1216
+ * @memberOf _
1217
+ * @since 0.1.0
1218
+ * @category Lang
1219
+ * @param {*} value The value to check.
1220
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
1221
+ * @example
1222
+ *
1223
+ * _.isArray([1, 2, 3]);
1224
+ * // => true
1225
+ *
1226
+ * _.isArray(document.body.children);
1227
+ * // => false
1228
+ *
1229
+ * _.isArray('abc');
1230
+ * // => false
1231
+ *
1232
+ * _.isArray(_.noop);
1233
+ * // => false
1234
+ */
1235
+
1236
+ var isArray$2 = Array.isArray;
1237
+
1238
+ var isArray_1 = isArray$2;
1239
+
1240
+ /** Used as references for various `Number` constants. */
1241
+
1242
+ var MAX_SAFE_INTEGER$1 = 9007199254740991;
1243
+
1244
+ /**
1245
+ * Checks if `value` is a valid array-like length.
1246
+ *
1247
+ * **Note:** This method is loosely based on
1248
+ * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
1249
+ *
1250
+ * @static
1251
+ * @memberOf _
1252
+ * @since 4.0.0
1253
+ * @category Lang
1254
+ * @param {*} value The value to check.
1255
+ * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
1256
+ * @example
1257
+ *
1258
+ * _.isLength(3);
1259
+ * // => true
1260
+ *
1261
+ * _.isLength(Number.MIN_VALUE);
1262
+ * // => false
1263
+ *
1264
+ * _.isLength(Infinity);
1265
+ * // => false
1266
+ *
1267
+ * _.isLength('3');
1268
+ * // => false
1269
+ */
1270
+ function isLength$2(value) {
1271
+ return typeof value == 'number' &&
1272
+ value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$1;
1273
+ }
1274
+
1275
+ var isLength_1 = isLength$2;
1276
+
1277
+ var isFunction$1 = isFunction_1,
1278
+ isLength$1 = isLength_1;
1279
+
1280
+ /**
1281
+ * Checks if `value` is array-like. A value is considered array-like if it's
1282
+ * not a function and has a `value.length` that's an integer greater than or
1283
+ * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
1284
+ *
1285
+ * @static
1286
+ * @memberOf _
1287
+ * @since 4.0.0
1288
+ * @category Lang
1289
+ * @param {*} value The value to check.
1290
+ * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
1291
+ * @example
1292
+ *
1293
+ * _.isArrayLike([1, 2, 3]);
1294
+ * // => true
1295
+ *
1296
+ * _.isArrayLike(document.body.children);
1297
+ * // => true
1298
+ *
1299
+ * _.isArrayLike('abc');
1300
+ * // => true
1301
+ *
1302
+ * _.isArrayLike(_.noop);
1303
+ * // => false
1304
+ */
1305
+ function isArrayLike$3(value) {
1306
+ return value != null && isLength$1(value.length) && !isFunction$1(value);
1307
+ }
1308
+
1309
+ var isArrayLike_1 = isArrayLike$3;
1310
+
1311
+ var isArrayLike$2 = isArrayLike_1,
1312
+ isObjectLike$2 = isObjectLike_1;
1313
+
1314
+ /**
1315
+ * This method is like `_.isArrayLike` except that it also checks if `value`
1316
+ * is an object.
1317
+ *
1318
+ * @static
1319
+ * @memberOf _
1320
+ * @since 4.0.0
1321
+ * @category Lang
1322
+ * @param {*} value The value to check.
1323
+ * @returns {boolean} Returns `true` if `value` is an array-like object,
1324
+ * else `false`.
1325
+ * @example
1326
+ *
1327
+ * _.isArrayLikeObject([1, 2, 3]);
1328
+ * // => true
1329
+ *
1330
+ * _.isArrayLikeObject(document.body.children);
1331
+ * // => true
1332
+ *
1333
+ * _.isArrayLikeObject('abc');
1334
+ * // => false
1335
+ *
1336
+ * _.isArrayLikeObject(_.noop);
1337
+ * // => false
1338
+ */
1339
+ function isArrayLikeObject$1(value) {
1340
+ return isObjectLike$2(value) && isArrayLike$2(value);
1341
+ }
1342
+
1343
+ var isArrayLikeObject_1 = isArrayLikeObject$1;
1344
+
1345
+ var isBuffer$2 = {exports: {}};
1346
+
1347
+ /**
1348
+ * This method returns `false`.
1349
+ *
1350
+ * @static
1351
+ * @memberOf _
1352
+ * @since 4.13.0
1353
+ * @category Util
1354
+ * @returns {boolean} Returns `false`.
1355
+ * @example
1356
+ *
1357
+ * _.times(2, _.stubFalse);
1358
+ * // => [false, false]
1359
+ */
1360
+
1361
+ function stubFalse() {
1362
+ return false;
1363
+ }
1364
+
1365
+ var stubFalse_1 = stubFalse;
1366
+
1367
+ (function (module, exports) {
1368
+ var root = _root,
1369
+ stubFalse = stubFalse_1;
1370
+
1371
+ /** Detect free variable `exports`. */
1372
+ var freeExports = exports && !exports.nodeType && exports;
1373
+
1374
+ /** Detect free variable `module`. */
1375
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
1376
+
1377
+ /** Detect the popular CommonJS extension `module.exports`. */
1378
+ var moduleExports = freeModule && freeModule.exports === freeExports;
1379
+
1380
+ /** Built-in value references. */
1381
+ var Buffer = moduleExports ? root.Buffer : undefined;
1382
+
1383
+ /* Built-in method references for those with the same name as other `lodash` methods. */
1384
+ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
1385
+
1386
+ /**
1387
+ * Checks if `value` is a buffer.
1388
+ *
1389
+ * @static
1390
+ * @memberOf _
1391
+ * @since 4.3.0
1392
+ * @category Lang
1393
+ * @param {*} value The value to check.
1394
+ * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
1395
+ * @example
1396
+ *
1397
+ * _.isBuffer(new Buffer(2));
1398
+ * // => true
1399
+ *
1400
+ * _.isBuffer(new Uint8Array(2));
1401
+ * // => false
1402
+ */
1403
+ var isBuffer = nativeIsBuffer || stubFalse;
1404
+
1405
+ module.exports = isBuffer;
1406
+ } (isBuffer$2, isBuffer$2.exports));
1407
+
1408
+ var baseGetTag$1 = _baseGetTag,
1409
+ getPrototype = _getPrototype,
1410
+ isObjectLike$1 = isObjectLike_1;
1411
+
1412
+ /** `Object#toString` result references. */
1413
+ var objectTag$1 = '[object Object]';
1414
+
1415
+ /** Used for built-in method references. */
1416
+ var funcProto = Function.prototype,
1417
+ objectProto$3 = Object.prototype;
1418
+
1419
+ /** Used to resolve the decompiled source of functions. */
1420
+ var funcToString = funcProto.toString;
1421
+
1422
+ /** Used to check objects for own properties. */
1423
+ var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
1424
+
1425
+ /** Used to infer the `Object` constructor. */
1426
+ var objectCtorString = funcToString.call(Object);
1427
+
1428
+ /**
1429
+ * Checks if `value` is a plain object, that is, an object created by the
1430
+ * `Object` constructor or one with a `[[Prototype]]` of `null`.
1431
+ *
1432
+ * @static
1433
+ * @memberOf _
1434
+ * @since 0.8.0
1435
+ * @category Lang
1436
+ * @param {*} value The value to check.
1437
+ * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
1438
+ * @example
1439
+ *
1440
+ * function Foo() {
1441
+ * this.a = 1;
1442
+ * }
1443
+ *
1444
+ * _.isPlainObject(new Foo);
1445
+ * // => false
1446
+ *
1447
+ * _.isPlainObject([1, 2, 3]);
1448
+ * // => false
1449
+ *
1450
+ * _.isPlainObject({ 'x': 0, 'y': 0 });
1451
+ * // => true
1452
+ *
1453
+ * _.isPlainObject(Object.create(null));
1454
+ * // => true
1455
+ */
1456
+ function isPlainObject$1(value) {
1457
+ if (!isObjectLike$1(value) || baseGetTag$1(value) != objectTag$1) {
1458
+ return false;
1459
+ }
1460
+ var proto = getPrototype(value);
1461
+ if (proto === null) {
1462
+ return true;
1463
+ }
1464
+ var Ctor = hasOwnProperty$3.call(proto, 'constructor') && proto.constructor;
1465
+ return typeof Ctor == 'function' && Ctor instanceof Ctor &&
1466
+ funcToString.call(Ctor) == objectCtorString;
1467
+ }
1468
+
1469
+ var isPlainObject_1 = isPlainObject$1;
1470
+
1471
+ var baseGetTag = _baseGetTag,
1472
+ isLength = isLength_1,
1473
+ isObjectLike = isObjectLike_1;
1474
+
1475
+ /** `Object#toString` result references. */
1476
+ var argsTag = '[object Arguments]',
1477
+ arrayTag = '[object Array]',
1478
+ boolTag = '[object Boolean]',
1479
+ dateTag = '[object Date]',
1480
+ errorTag = '[object Error]',
1481
+ funcTag = '[object Function]',
1482
+ mapTag = '[object Map]',
1483
+ numberTag = '[object Number]',
1484
+ objectTag = '[object Object]',
1485
+ regexpTag = '[object RegExp]',
1486
+ setTag = '[object Set]',
1487
+ stringTag = '[object String]',
1488
+ weakMapTag = '[object WeakMap]';
1489
+
1490
+ var arrayBufferTag = '[object ArrayBuffer]',
1491
+ dataViewTag = '[object DataView]',
1492
+ float32Tag = '[object Float32Array]',
1493
+ float64Tag = '[object Float64Array]',
1494
+ int8Tag = '[object Int8Array]',
1495
+ int16Tag = '[object Int16Array]',
1496
+ int32Tag = '[object Int32Array]',
1497
+ uint8Tag = '[object Uint8Array]',
1498
+ uint8ClampedTag = '[object Uint8ClampedArray]',
1499
+ uint16Tag = '[object Uint16Array]',
1500
+ uint32Tag = '[object Uint32Array]';
1501
+
1502
+ /** Used to identify `toStringTag` values of typed arrays. */
1503
+ var typedArrayTags = {};
1504
+ typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
1505
+ typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
1506
+ typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
1507
+ typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
1508
+ typedArrayTags[uint32Tag] = true;
1509
+ typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
1510
+ typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
1511
+ typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
1512
+ typedArrayTags[errorTag] = typedArrayTags[funcTag] =
1513
+ typedArrayTags[mapTag] = typedArrayTags[numberTag] =
1514
+ typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
1515
+ typedArrayTags[setTag] = typedArrayTags[stringTag] =
1516
+ typedArrayTags[weakMapTag] = false;
1517
+
1518
+ /**
1519
+ * The base implementation of `_.isTypedArray` without Node.js optimizations.
1520
+ *
1521
+ * @private
1522
+ * @param {*} value The value to check.
1523
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
1524
+ */
1525
+ function baseIsTypedArray$1(value) {
1526
+ return isObjectLike(value) &&
1527
+ isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
1528
+ }
1529
+
1530
+ var _baseIsTypedArray = baseIsTypedArray$1;
1531
+
1532
+ /**
1533
+ * The base implementation of `_.unary` without support for storing metadata.
1534
+ *
1535
+ * @private
1536
+ * @param {Function} func The function to cap arguments for.
1537
+ * @returns {Function} Returns the new capped function.
1538
+ */
1539
+
1540
+ function baseUnary$1(func) {
1541
+ return function(value) {
1542
+ return func(value);
1543
+ };
1544
+ }
1545
+
1546
+ var _baseUnary = baseUnary$1;
1547
+
1548
+ var _nodeUtil = {exports: {}};
1549
+
1550
+ (function (module, exports) {
1551
+ var freeGlobal = _freeGlobal;
1552
+
1553
+ /** Detect free variable `exports`. */
1554
+ var freeExports = exports && !exports.nodeType && exports;
1555
+
1556
+ /** Detect free variable `module`. */
1557
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
1558
+
1559
+ /** Detect the popular CommonJS extension `module.exports`. */
1560
+ var moduleExports = freeModule && freeModule.exports === freeExports;
1561
+
1562
+ /** Detect free variable `process` from Node.js. */
1563
+ var freeProcess = moduleExports && freeGlobal.process;
1564
+
1565
+ /** Used to access faster Node.js helpers. */
1566
+ var nodeUtil = (function() {
1567
+ try {
1568
+ // Use `util.types` for Node.js 10+.
1569
+ var types = freeModule && freeModule.require && freeModule.require('util').types;
1570
+
1571
+ if (types) {
1572
+ return types;
1573
+ }
1574
+
1575
+ // Legacy `process.binding('util')` for Node.js < 10.
1576
+ return freeProcess && freeProcess.binding && freeProcess.binding('util');
1577
+ } catch (e) {}
1578
+ }());
1579
+
1580
+ module.exports = nodeUtil;
1581
+ } (_nodeUtil, _nodeUtil.exports));
1582
+
1583
+ var baseIsTypedArray = _baseIsTypedArray,
1584
+ baseUnary = _baseUnary,
1585
+ nodeUtil = _nodeUtil.exports;
1586
+
1587
+ /* Node.js helper references. */
1588
+ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
1589
+
1590
+ /**
1591
+ * Checks if `value` is classified as a typed array.
1592
+ *
1593
+ * @static
1594
+ * @memberOf _
1595
+ * @since 3.0.0
1596
+ * @category Lang
1597
+ * @param {*} value The value to check.
1598
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
1599
+ * @example
1600
+ *
1601
+ * _.isTypedArray(new Uint8Array);
1602
+ * // => true
1603
+ *
1604
+ * _.isTypedArray([]);
1605
+ * // => false
1606
+ */
1607
+ var isTypedArray$2 = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
1608
+
1609
+ var isTypedArray_1 = isTypedArray$2;
1610
+
1611
+ /**
1612
+ * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
1613
+ *
1614
+ * @private
1615
+ * @param {Object} object The object to query.
1616
+ * @param {string} key The key of the property to get.
1617
+ * @returns {*} Returns the property value.
1618
+ */
1619
+
1620
+ function safeGet$2(object, key) {
1621
+ if (key === 'constructor' && typeof object[key] === 'function') {
1622
+ return;
1623
+ }
1624
+
1625
+ if (key == '__proto__') {
1626
+ return;
1627
+ }
1628
+
1629
+ return object[key];
1630
+ }
1631
+
1632
+ var _safeGet = safeGet$2;
1633
+
1634
+ var baseAssignValue$1 = _baseAssignValue,
1635
+ eq$1 = eq_1;
1636
+
1637
+ /** Used for built-in method references. */
1638
+ var objectProto$2 = Object.prototype;
1639
+
1640
+ /** Used to check objects for own properties. */
1641
+ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
1642
+
1643
+ /**
1644
+ * Assigns `value` to `key` of `object` if the existing value is not equivalent
1645
+ * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
1646
+ * for equality comparisons.
1647
+ *
1648
+ * @private
1649
+ * @param {Object} object The object to modify.
1650
+ * @param {string} key The key of the property to assign.
1651
+ * @param {*} value The value to assign.
1652
+ */
1653
+ function assignValue$1(object, key, value) {
1654
+ var objValue = object[key];
1655
+ if (!(hasOwnProperty$2.call(object, key) && eq$1(objValue, value)) ||
1656
+ (value === undefined && !(key in object))) {
1657
+ baseAssignValue$1(object, key, value);
1658
+ }
1659
+ }
1660
+
1661
+ var _assignValue = assignValue$1;
1662
+
1663
+ var assignValue = _assignValue,
1664
+ baseAssignValue = _baseAssignValue;
1665
+
1666
+ /**
1667
+ * Copies properties of `source` to `object`.
1668
+ *
1669
+ * @private
1670
+ * @param {Object} source The object to copy properties from.
1671
+ * @param {Array} props The property identifiers to copy.
1672
+ * @param {Object} [object={}] The object to copy properties to.
1673
+ * @param {Function} [customizer] The function to customize copied values.
1674
+ * @returns {Object} Returns `object`.
1675
+ */
1676
+ function copyObject$1(source, props, object, customizer) {
1677
+ var isNew = !object;
1678
+ object || (object = {});
1679
+
1680
+ var index = -1,
1681
+ length = props.length;
1682
+
1683
+ while (++index < length) {
1684
+ var key = props[index];
1685
+
1686
+ var newValue = customizer
1687
+ ? customizer(object[key], source[key], key, object, source)
1688
+ : undefined;
1689
+
1690
+ if (newValue === undefined) {
1691
+ newValue = source[key];
1692
+ }
1693
+ if (isNew) {
1694
+ baseAssignValue(object, key, newValue);
1695
+ } else {
1696
+ assignValue(object, key, newValue);
1697
+ }
1698
+ }
1699
+ return object;
1700
+ }
1701
+
1702
+ var _copyObject = copyObject$1;
1703
+
1704
+ /**
1705
+ * The base implementation of `_.times` without support for iteratee shorthands
1706
+ * or max array length checks.
1707
+ *
1708
+ * @private
1709
+ * @param {number} n The number of times to invoke `iteratee`.
1710
+ * @param {Function} iteratee The function invoked per iteration.
1711
+ * @returns {Array} Returns the array of results.
1712
+ */
1713
+
1714
+ function baseTimes$1(n, iteratee) {
1715
+ var index = -1,
1716
+ result = Array(n);
1717
+
1718
+ while (++index < n) {
1719
+ result[index] = iteratee(index);
1720
+ }
1721
+ return result;
1722
+ }
1723
+
1724
+ var _baseTimes = baseTimes$1;
1725
+
1726
+ /** Used as references for various `Number` constants. */
1727
+
1728
+ var MAX_SAFE_INTEGER = 9007199254740991;
1729
+
1730
+ /** Used to detect unsigned integer values. */
1731
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
1732
+
1733
+ /**
1734
+ * Checks if `value` is a valid array-like index.
1735
+ *
1736
+ * @private
1737
+ * @param {*} value The value to check.
1738
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
1739
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
1740
+ */
1741
+ function isIndex$2(value, length) {
1742
+ var type = typeof value;
1743
+ length = length == null ? MAX_SAFE_INTEGER : length;
1744
+
1745
+ return !!length &&
1746
+ (type == 'number' ||
1747
+ (type != 'symbol' && reIsUint.test(value))) &&
1748
+ (value > -1 && value % 1 == 0 && value < length);
1749
+ }
1750
+
1751
+ var _isIndex = isIndex$2;
1752
+
1753
+ var baseTimes = _baseTimes,
1754
+ isArguments$1 = isArguments_1,
1755
+ isArray$1 = isArray_1,
1756
+ isBuffer$1 = isBuffer$2.exports,
1757
+ isIndex$1 = _isIndex,
1758
+ isTypedArray$1 = isTypedArray_1;
1759
+
1760
+ /** Used for built-in method references. */
1761
+ var objectProto$1 = Object.prototype;
1762
+
1763
+ /** Used to check objects for own properties. */
1764
+ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
1765
+
1766
+ /**
1767
+ * Creates an array of the enumerable property names of the array-like `value`.
1768
+ *
1769
+ * @private
1770
+ * @param {*} value The value to query.
1771
+ * @param {boolean} inherited Specify returning inherited property names.
1772
+ * @returns {Array} Returns the array of property names.
1773
+ */
1774
+ function arrayLikeKeys$1(value, inherited) {
1775
+ var isArr = isArray$1(value),
1776
+ isArg = !isArr && isArguments$1(value),
1777
+ isBuff = !isArr && !isArg && isBuffer$1(value),
1778
+ isType = !isArr && !isArg && !isBuff && isTypedArray$1(value),
1779
+ skipIndexes = isArr || isArg || isBuff || isType,
1780
+ result = skipIndexes ? baseTimes(value.length, String) : [],
1781
+ length = result.length;
1782
+
1783
+ for (var key in value) {
1784
+ if ((inherited || hasOwnProperty$1.call(value, key)) &&
1785
+ !(skipIndexes && (
1786
+ // Safari 9 has enumerable `arguments.length` in strict mode.
1787
+ key == 'length' ||
1788
+ // Node.js 0.10 has enumerable non-index properties on buffers.
1789
+ (isBuff && (key == 'offset' || key == 'parent')) ||
1790
+ // PhantomJS 2 has enumerable non-index properties on typed arrays.
1791
+ (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
1792
+ // Skip index properties.
1793
+ isIndex$1(key, length)
1794
+ ))) {
1795
+ result.push(key);
1796
+ }
1797
+ }
1798
+ return result;
1799
+ }
1800
+
1801
+ var _arrayLikeKeys = arrayLikeKeys$1;
1802
+
1803
+ /**
1804
+ * This function is like
1805
+ * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
1806
+ * except that it includes inherited enumerable properties.
1807
+ *
1808
+ * @private
1809
+ * @param {Object} object The object to query.
1810
+ * @returns {Array} Returns the array of property names.
1811
+ */
1812
+
1813
+ function nativeKeysIn$1(object) {
1814
+ var result = [];
1815
+ if (object != null) {
1816
+ for (var key in Object(object)) {
1817
+ result.push(key);
1818
+ }
1819
+ }
1820
+ return result;
1821
+ }
1822
+
1823
+ var _nativeKeysIn = nativeKeysIn$1;
1824
+
1825
+ var isObject$3 = isObject_1,
1826
+ isPrototype = _isPrototype,
1827
+ nativeKeysIn = _nativeKeysIn;
1828
+
1829
+ /** Used for built-in method references. */
1830
+ var objectProto = Object.prototype;
1831
+
1832
+ /** Used to check objects for own properties. */
1833
+ var hasOwnProperty = objectProto.hasOwnProperty;
1834
+
1835
+ /**
1836
+ * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
1837
+ *
1838
+ * @private
1839
+ * @param {Object} object The object to query.
1840
+ * @returns {Array} Returns the array of property names.
1841
+ */
1842
+ function baseKeysIn$1(object) {
1843
+ if (!isObject$3(object)) {
1844
+ return nativeKeysIn(object);
1845
+ }
1846
+ var isProto = isPrototype(object),
1847
+ result = [];
1848
+
1849
+ for (var key in object) {
1850
+ if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
1851
+ result.push(key);
1852
+ }
1853
+ }
1854
+ return result;
1855
+ }
1856
+
1857
+ var _baseKeysIn = baseKeysIn$1;
1858
+
1859
+ var arrayLikeKeys = _arrayLikeKeys,
1860
+ baseKeysIn = _baseKeysIn,
1861
+ isArrayLike$1 = isArrayLike_1;
1862
+
1863
+ /**
1864
+ * Creates an array of the own and inherited enumerable property names of `object`.
1865
+ *
1866
+ * **Note:** Non-object values are coerced to objects.
1867
+ *
1868
+ * @static
1869
+ * @memberOf _
1870
+ * @since 3.0.0
1871
+ * @category Object
1872
+ * @param {Object} object The object to query.
1873
+ * @returns {Array} Returns the array of property names.
1874
+ * @example
1875
+ *
1876
+ * function Foo() {
1877
+ * this.a = 1;
1878
+ * this.b = 2;
1879
+ * }
1880
+ *
1881
+ * Foo.prototype.c = 3;
1882
+ *
1883
+ * _.keysIn(new Foo);
1884
+ * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
1885
+ */
1886
+ function keysIn$2(object) {
1887
+ return isArrayLike$1(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
1888
+ }
1889
+
1890
+ var keysIn_1 = keysIn$2;
1891
+
1892
+ var copyObject = _copyObject,
1893
+ keysIn$1 = keysIn_1;
1894
+
1895
+ /**
1896
+ * Converts `value` to a plain object flattening inherited enumerable string
1897
+ * keyed properties of `value` to own properties of the plain object.
1898
+ *
1899
+ * @static
1900
+ * @memberOf _
1901
+ * @since 3.0.0
1902
+ * @category Lang
1903
+ * @param {*} value The value to convert.
1904
+ * @returns {Object} Returns the converted plain object.
1905
+ * @example
1906
+ *
1907
+ * function Foo() {
1908
+ * this.b = 2;
1909
+ * }
1910
+ *
1911
+ * Foo.prototype.c = 3;
1912
+ *
1913
+ * _.assign({ 'a': 1 }, new Foo);
1914
+ * // => { 'a': 1, 'b': 2 }
1915
+ *
1916
+ * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
1917
+ * // => { 'a': 1, 'b': 2, 'c': 3 }
1918
+ */
1919
+ function toPlainObject$1(value) {
1920
+ return copyObject(value, keysIn$1(value));
1921
+ }
1922
+
1923
+ var toPlainObject_1 = toPlainObject$1;
1924
+
1925
+ var assignMergeValue$1 = _assignMergeValue,
1926
+ cloneBuffer = _cloneBuffer.exports,
1927
+ cloneTypedArray = _cloneTypedArray,
1928
+ copyArray = _copyArray,
1929
+ initCloneObject = _initCloneObject,
1930
+ isArguments = isArguments_1,
1931
+ isArray = isArray_1,
1932
+ isArrayLikeObject = isArrayLikeObject_1,
1933
+ isBuffer = isBuffer$2.exports,
1934
+ isFunction = isFunction_1,
1935
+ isObject$2 = isObject_1,
1936
+ isPlainObject = isPlainObject_1,
1937
+ isTypedArray = isTypedArray_1,
1938
+ safeGet$1 = _safeGet,
1939
+ toPlainObject = toPlainObject_1;
1940
+
1941
+ /**
1942
+ * A specialized version of `baseMerge` for arrays and objects which performs
1943
+ * deep merges and tracks traversed objects enabling objects with circular
1944
+ * references to be merged.
1945
+ *
1946
+ * @private
1947
+ * @param {Object} object The destination object.
1948
+ * @param {Object} source The source object.
1949
+ * @param {string} key The key of the value to merge.
1950
+ * @param {number} srcIndex The index of `source`.
1951
+ * @param {Function} mergeFunc The function to merge values.
1952
+ * @param {Function} [customizer] The function to customize assigned values.
1953
+ * @param {Object} [stack] Tracks traversed source values and their merged
1954
+ * counterparts.
1955
+ */
1956
+ function baseMergeDeep$1(object, source, key, srcIndex, mergeFunc, customizer, stack) {
1957
+ var objValue = safeGet$1(object, key),
1958
+ srcValue = safeGet$1(source, key),
1959
+ stacked = stack.get(srcValue);
1960
+
1961
+ if (stacked) {
1962
+ assignMergeValue$1(object, key, stacked);
1963
+ return;
1964
+ }
1965
+ var newValue = customizer
1966
+ ? customizer(objValue, srcValue, (key + ''), object, source, stack)
1967
+ : undefined;
1968
+
1969
+ var isCommon = newValue === undefined;
1970
+
1971
+ if (isCommon) {
1972
+ var isArr = isArray(srcValue),
1973
+ isBuff = !isArr && isBuffer(srcValue),
1974
+ isTyped = !isArr && !isBuff && isTypedArray(srcValue);
1975
+
1976
+ newValue = srcValue;
1977
+ if (isArr || isBuff || isTyped) {
1978
+ if (isArray(objValue)) {
1979
+ newValue = objValue;
1980
+ }
1981
+ else if (isArrayLikeObject(objValue)) {
1982
+ newValue = copyArray(objValue);
1983
+ }
1984
+ else if (isBuff) {
1985
+ isCommon = false;
1986
+ newValue = cloneBuffer(srcValue, true);
1987
+ }
1988
+ else if (isTyped) {
1989
+ isCommon = false;
1990
+ newValue = cloneTypedArray(srcValue, true);
1991
+ }
1992
+ else {
1993
+ newValue = [];
1994
+ }
1995
+ }
1996
+ else if (isPlainObject(srcValue) || isArguments(srcValue)) {
1997
+ newValue = objValue;
1998
+ if (isArguments(objValue)) {
1999
+ newValue = toPlainObject(objValue);
2000
+ }
2001
+ else if (!isObject$2(objValue) || isFunction(objValue)) {
2002
+ newValue = initCloneObject(srcValue);
2003
+ }
2004
+ }
2005
+ else {
2006
+ isCommon = false;
2007
+ }
2008
+ }
2009
+ if (isCommon) {
2010
+ // Recursively merge objects and arrays (susceptible to call stack limits).
2011
+ stack.set(srcValue, newValue);
2012
+ mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
2013
+ stack['delete'](srcValue);
2014
+ }
2015
+ assignMergeValue$1(object, key, newValue);
2016
+ }
2017
+
2018
+ var _baseMergeDeep = baseMergeDeep$1;
2019
+
2020
+ var Stack = _Stack,
2021
+ assignMergeValue = _assignMergeValue,
2022
+ baseFor = _baseFor,
2023
+ baseMergeDeep = _baseMergeDeep,
2024
+ isObject$1 = isObject_1,
2025
+ keysIn = keysIn_1,
2026
+ safeGet = _safeGet;
2027
+
2028
+ /**
2029
+ * The base implementation of `_.merge` without support for multiple sources.
2030
+ *
2031
+ * @private
2032
+ * @param {Object} object The destination object.
2033
+ * @param {Object} source The source object.
2034
+ * @param {number} srcIndex The index of `source`.
2035
+ * @param {Function} [customizer] The function to customize merged values.
2036
+ * @param {Object} [stack] Tracks traversed source values and their merged
2037
+ * counterparts.
2038
+ */
2039
+ function baseMerge$1(object, source, srcIndex, customizer, stack) {
2040
+ if (object === source) {
2041
+ return;
2042
+ }
2043
+ baseFor(source, function(srcValue, key) {
2044
+ stack || (stack = new Stack);
2045
+ if (isObject$1(srcValue)) {
2046
+ baseMergeDeep(object, source, key, srcIndex, baseMerge$1, customizer, stack);
2047
+ }
2048
+ else {
2049
+ var newValue = customizer
2050
+ ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
2051
+ : undefined;
2052
+
2053
+ if (newValue === undefined) {
2054
+ newValue = srcValue;
2055
+ }
2056
+ assignMergeValue(object, key, newValue);
2057
+ }
2058
+ }, keysIn);
2059
+ }
2060
+
2061
+ var _baseMerge = baseMerge$1;
2062
+
2063
+ /**
2064
+ * This method returns the first argument it receives.
2065
+ *
2066
+ * @static
2067
+ * @since 0.1.0
2068
+ * @memberOf _
2069
+ * @category Util
2070
+ * @param {*} value Any value.
2071
+ * @returns {*} Returns `value`.
2072
+ * @example
2073
+ *
2074
+ * var object = { 'a': 1 };
2075
+ *
2076
+ * console.log(_.identity(object) === object);
2077
+ * // => true
2078
+ */
2079
+
2080
+ function identity$2(value) {
2081
+ return value;
2082
+ }
2083
+
2084
+ var identity_1 = identity$2;
2085
+
2086
+ /**
2087
+ * A faster alternative to `Function#apply`, this function invokes `func`
2088
+ * with the `this` binding of `thisArg` and the arguments of `args`.
2089
+ *
2090
+ * @private
2091
+ * @param {Function} func The function to invoke.
2092
+ * @param {*} thisArg The `this` binding of `func`.
2093
+ * @param {Array} args The arguments to invoke `func` with.
2094
+ * @returns {*} Returns the result of `func`.
2095
+ */
2096
+
2097
+ function apply$1(func, thisArg, args) {
2098
+ switch (args.length) {
2099
+ case 0: return func.call(thisArg);
2100
+ case 1: return func.call(thisArg, args[0]);
2101
+ case 2: return func.call(thisArg, args[0], args[1]);
2102
+ case 3: return func.call(thisArg, args[0], args[1], args[2]);
2103
+ }
2104
+ return func.apply(thisArg, args);
2105
+ }
2106
+
2107
+ var _apply = apply$1;
2108
+
2109
+ var apply = _apply;
2110
+
2111
+ /* Built-in method references for those with the same name as other `lodash` methods. */
2112
+ var nativeMax = Math.max;
2113
+
2114
+ /**
2115
+ * A specialized version of `baseRest` which transforms the rest array.
2116
+ *
2117
+ * @private
2118
+ * @param {Function} func The function to apply a rest parameter to.
2119
+ * @param {number} [start=func.length-1] The start position of the rest parameter.
2120
+ * @param {Function} transform The rest array transform.
2121
+ * @returns {Function} Returns the new function.
2122
+ */
2123
+ function overRest$1(func, start, transform) {
2124
+ start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
2125
+ return function() {
2126
+ var args = arguments,
2127
+ index = -1,
2128
+ length = nativeMax(args.length - start, 0),
2129
+ array = Array(length);
2130
+
2131
+ while (++index < length) {
2132
+ array[index] = args[start + index];
2133
+ }
2134
+ index = -1;
2135
+ var otherArgs = Array(start + 1);
2136
+ while (++index < start) {
2137
+ otherArgs[index] = args[index];
2138
+ }
2139
+ otherArgs[start] = transform(array);
2140
+ return apply(func, this, otherArgs);
2141
+ };
2142
+ }
2143
+
2144
+ var _overRest = overRest$1;
2145
+
2146
+ /**
2147
+ * Creates a function that returns `value`.
2148
+ *
2149
+ * @static
2150
+ * @memberOf _
2151
+ * @since 2.4.0
2152
+ * @category Util
2153
+ * @param {*} value The value to return from the new function.
2154
+ * @returns {Function} Returns the new constant function.
2155
+ * @example
2156
+ *
2157
+ * var objects = _.times(2, _.constant({ 'a': 1 }));
2158
+ *
2159
+ * console.log(objects);
2160
+ * // => [{ 'a': 1 }, { 'a': 1 }]
2161
+ *
2162
+ * console.log(objects[0] === objects[1]);
2163
+ * // => true
2164
+ */
2165
+
2166
+ function constant$1(value) {
2167
+ return function() {
2168
+ return value;
2169
+ };
2170
+ }
2171
+
2172
+ var constant_1 = constant$1;
2173
+
2174
+ var constant = constant_1,
2175
+ defineProperty = _defineProperty,
2176
+ identity$1 = identity_1;
2177
+
2178
+ /**
2179
+ * The base implementation of `setToString` without support for hot loop shorting.
2180
+ *
2181
+ * @private
2182
+ * @param {Function} func The function to modify.
2183
+ * @param {Function} string The `toString` result.
2184
+ * @returns {Function} Returns `func`.
2185
+ */
2186
+ var baseSetToString$1 = !defineProperty ? identity$1 : function(func, string) {
2187
+ return defineProperty(func, 'toString', {
2188
+ 'configurable': true,
2189
+ 'enumerable': false,
2190
+ 'value': constant(string),
2191
+ 'writable': true
2192
+ });
2193
+ };
2194
+
2195
+ var _baseSetToString = baseSetToString$1;
2196
+
2197
+ /** Used to detect hot functions by number of calls within a span of milliseconds. */
2198
+
2199
+ var HOT_COUNT = 800,
2200
+ HOT_SPAN = 16;
2201
+
2202
+ /* Built-in method references for those with the same name as other `lodash` methods. */
2203
+ var nativeNow = Date.now;
2204
+
2205
+ /**
2206
+ * Creates a function that'll short out and invoke `identity` instead
2207
+ * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
2208
+ * milliseconds.
2209
+ *
2210
+ * @private
2211
+ * @param {Function} func The function to restrict.
2212
+ * @returns {Function} Returns the new shortable function.
2213
+ */
2214
+ function shortOut$1(func) {
2215
+ var count = 0,
2216
+ lastCalled = 0;
2217
+
2218
+ return function() {
2219
+ var stamp = nativeNow(),
2220
+ remaining = HOT_SPAN - (stamp - lastCalled);
2221
+
2222
+ lastCalled = stamp;
2223
+ if (remaining > 0) {
2224
+ if (++count >= HOT_COUNT) {
2225
+ return arguments[0];
2226
+ }
2227
+ } else {
2228
+ count = 0;
2229
+ }
2230
+ return func.apply(undefined, arguments);
2231
+ };
2232
+ }
2233
+
2234
+ var _shortOut = shortOut$1;
2235
+
2236
+ var baseSetToString = _baseSetToString,
2237
+ shortOut = _shortOut;
2238
+
2239
+ /**
2240
+ * Sets the `toString` method of `func` to return `string`.
2241
+ *
2242
+ * @private
2243
+ * @param {Function} func The function to modify.
2244
+ * @param {Function} string The `toString` result.
2245
+ * @returns {Function} Returns `func`.
2246
+ */
2247
+ var setToString$1 = shortOut(baseSetToString);
2248
+
2249
+ var _setToString = setToString$1;
2250
+
2251
+ var identity = identity_1,
2252
+ overRest = _overRest,
2253
+ setToString = _setToString;
2254
+
2255
+ /**
2256
+ * The base implementation of `_.rest` which doesn't validate or coerce arguments.
2257
+ *
2258
+ * @private
2259
+ * @param {Function} func The function to apply a rest parameter to.
2260
+ * @param {number} [start=func.length-1] The start position of the rest parameter.
2261
+ * @returns {Function} Returns the new function.
2262
+ */
2263
+ function baseRest$1(func, start) {
2264
+ return setToString(overRest(func, start, identity), func + '');
2265
+ }
2266
+
2267
+ var _baseRest = baseRest$1;
2268
+
2269
+ var eq = eq_1,
2270
+ isArrayLike = isArrayLike_1,
2271
+ isIndex = _isIndex,
2272
+ isObject = isObject_1;
2273
+
2274
+ /**
2275
+ * Checks if the given arguments are from an iteratee call.
2276
+ *
2277
+ * @private
2278
+ * @param {*} value The potential iteratee value argument.
2279
+ * @param {*} index The potential iteratee index or key argument.
2280
+ * @param {*} object The potential iteratee object argument.
2281
+ * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
2282
+ * else `false`.
2283
+ */
2284
+ function isIterateeCall$1(value, index, object) {
2285
+ if (!isObject(object)) {
2286
+ return false;
2287
+ }
2288
+ var type = typeof index;
2289
+ if (type == 'number'
2290
+ ? (isArrayLike(object) && isIndex(index, object.length))
2291
+ : (type == 'string' && index in object)
2292
+ ) {
2293
+ return eq(object[index], value);
2294
+ }
2295
+ return false;
2296
+ }
2297
+
2298
+ var _isIterateeCall = isIterateeCall$1;
2299
+
2300
+ var baseRest = _baseRest,
2301
+ isIterateeCall = _isIterateeCall;
2302
+
2303
+ /**
2304
+ * Creates a function like `_.assign`.
2305
+ *
2306
+ * @private
2307
+ * @param {Function} assigner The function to assign values.
2308
+ * @returns {Function} Returns the new assigner function.
2309
+ */
2310
+ function createAssigner$1(assigner) {
2311
+ return baseRest(function(object, sources) {
2312
+ var index = -1,
2313
+ length = sources.length,
2314
+ customizer = length > 1 ? sources[length - 1] : undefined,
2315
+ guard = length > 2 ? sources[2] : undefined;
2316
+
2317
+ customizer = (assigner.length > 3 && typeof customizer == 'function')
2318
+ ? (length--, customizer)
2319
+ : undefined;
2320
+
2321
+ if (guard && isIterateeCall(sources[0], sources[1], guard)) {
2322
+ customizer = length < 3 ? undefined : customizer;
2323
+ length = 1;
2324
+ }
2325
+ object = Object(object);
2326
+ while (++index < length) {
2327
+ var source = sources[index];
2328
+ if (source) {
2329
+ assigner(object, source, index, customizer);
2330
+ }
2331
+ }
2332
+ return object;
2333
+ });
2334
+ }
2335
+
2336
+ var _createAssigner = createAssigner$1;
2337
+
2338
+ var baseMerge = _baseMerge,
2339
+ createAssigner = _createAssigner;
2340
+
2341
+ /**
2342
+ * This method is like `_.assign` except that it recursively merges own and
2343
+ * inherited enumerable string keyed properties of source objects into the
2344
+ * destination object. Source properties that resolve to `undefined` are
2345
+ * skipped if a destination value exists. Array and plain object properties
2346
+ * are merged recursively. Other objects and value types are overridden by
2347
+ * assignment. Source objects are applied from left to right. Subsequent
2348
+ * sources overwrite property assignments of previous sources.
2349
+ *
2350
+ * **Note:** This method mutates `object`.
2351
+ *
2352
+ * @static
2353
+ * @memberOf _
2354
+ * @since 0.5.0
2355
+ * @category Object
2356
+ * @param {Object} object The destination object.
2357
+ * @param {...Object} [sources] The source objects.
2358
+ * @returns {Object} Returns `object`.
2359
+ * @example
2360
+ *
2361
+ * var object = {
2362
+ * 'a': [{ 'b': 2 }, { 'd': 4 }]
2363
+ * };
2364
+ *
2365
+ * var other = {
2366
+ * 'a': [{ 'c': 3 }, { 'e': 5 }]
2367
+ * };
2368
+ *
2369
+ * _.merge(object, other);
2370
+ * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
2371
+ */
2372
+ var merge = createAssigner(function(object, source, srcIndex) {
2373
+ baseMerge(object, source, srcIndex);
2374
+ });
2375
+
2376
+ var merge_1 = merge;
2377
+
2378
+ var fonts = ['Noto Sans TC', 'Microsoft JhengHei', 'sans-serif', '-apple-system', 'BlinkMacSystemFont', '"Segoe UI"', 'Roboto', '"Helvetica Neue"', 'Arial', 'sans-serif', '"Apple Color Emoji"', '"Segoe UI Emoji"', '"Segoe UI Symbol"'];
2379
+
2380
+ var css_248z = "@import url(\"https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;300;400;500;700;900&display=swap\");\n";
2381
+ styleInject(css_248z);
2382
+
2383
+ const defaultColors = {
2384
+ primaryColor: '#0087dc',
2385
+ primaryColorFocus: '#339fe3',
2386
+ secondaryColor: '#ffc400'
2387
+ };
2388
+
2389
+ // export const commonThemeProps = ({ darkMode, colors }) => {
2390
+ const commonTheme = _ref => {
2391
+ let {
2392
+ darkMode,
2393
+ colors
2394
+ } = _ref;
2395
+ const {
2396
+ primaryColor,
2397
+ secondaryColor
2398
+ } = colors || defaultColors;
2399
+ const borderColor = darkMode ? '#8c8c8c' : '#d9d9d9';
2400
+ return createTheme({
2401
+ typography: {
2402
+ button: {
2403
+ textTransform: 'none'
2404
+ },
2405
+ fontFamily: (fonts || []).join(',')
2406
+ },
2407
+ palette: {
2408
+ type: darkMode ? 'dark' : 'light',
2409
+ primary: {
2410
+ main: primaryColor
2411
+ },
2412
+ secondary: {
2413
+ main: secondaryColor
2414
+ }
2415
+ },
2416
+ shape: {
2417
+ borderRadius: 3
2418
+ },
2419
+ props: {
2420
+ MuiButton: {
2421
+ variant: 'contained',
2422
+ color: 'primary'
2423
+ },
2424
+ MuiSelect: {
2425
+ // 讓下拉選單可以沿著Select下緣跳出
2426
+ MenuProps: {
2427
+ anchorOrigin: {
2428
+ vertical: 'bottom',
2429
+ horizontal: 'left'
2430
+ },
2431
+ transformOrigin: {
2432
+ vertical: 'top',
2433
+ horizontal: 'left'
2434
+ },
2435
+ getContentAnchorEl: null
2436
+ }
2437
+ },
2438
+ MuiTypography: {
2439
+ component: 'span'
2440
+ } // Typography component預設為<p>,但<p>裡面放<div>會報錯,所以Typography component統一換成<span>
2441
+ },
2442
+
2443
+ overrides: {
2444
+ MuiPaper: {
2445
+ root: {
2446
+ background: 'white',
2447
+ minWidth: 300
2448
+ }
2449
+ },
2450
+ MuiSelect: {
2451
+ root: {
2452
+ padding: 8
2453
+ }
2454
+ },
2455
+ MuiButton: {
2456
+ root: {
2457
+ padding: '4px 8px',
2458
+ '&$outlined': {
2459
+ padding: '4px 8px'
2460
+ }
2461
+ }
2462
+ },
2463
+ MuiIconButton: {
2464
+ root: {
2465
+ padding: 8
2466
+ }
2467
+ },
2468
+ // 原始12 有點太big了
2469
+ MuiInput: {
2470
+ root: {
2471
+ width: '100%',
2472
+ border: `1px solid ${borderColor}`,
2473
+ borderRadius: 3,
2474
+ padding: '2px 8px 0'
2475
+ },
2476
+ // Input 下方有一條line(MUI的) 換成border比較好看
2477
+ underline: {
2478
+ '&::before': {
2479
+ display: 'none'
2480
+ },
2481
+ '&::after': {
2482
+ display: 'none'
2483
+ }
2484
+ }
2485
+ },
2486
+ MuiAutocomplete: {
2487
+ inputRoot: {
2488
+ paddingRight: '4px !important',
2489
+ backgroundColor: darkMode ? '#303030' : '#fff',
2490
+ '&:hover .MuiOutlinedInput-notchedOutline': {
2491
+ borderColor: primaryColor
2492
+ }
2493
+ },
2494
+ option: {
2495
+ textOverflow: 'ellipsis',
2496
+ whiteSpace: 'nowrap',
2497
+ overflow: 'hidden',
2498
+ display: 'block',
2499
+ minHeight: 'initial'
2500
+ },
2501
+ endAdornment: {
2502
+ display: 'none'
2503
+ }
2504
+ },
2505
+ MuiChip: {
2506
+ root: {
2507
+ height: '28px',
2508
+ borderRadius: '2px',
2509
+ backgroundColor: darkMode ? '#595959' : '#f5f5f5',
2510
+ border: '1px solid',
2511
+ borderColor
2512
+ }
2513
+ },
2514
+ MuiOutlinedInput: {
2515
+ root: {
2516
+ borderColor,
2517
+ '&.Mui-focused .MuiOutlinedInput-notchedOutline': {
2518
+ borderWidth: '1px',
2519
+ boxShadow: '0 0 0 2px rgb(24 144 255 / 20%)'
2520
+ },
2521
+ '&:hover .MuiOutlinedInput-notchedOutline': {
2522
+ borderColor: '#40a9ff'
2523
+ }
2524
+ },
2525
+ input: {
2526
+ padding: '4px 11px',
2527
+ fontSize: '14px',
2528
+ height: '24px',
2529
+ color: darkMode ? '#fff' : 'rgba(0, 0, 0, 0.85)'
2530
+ }
2531
+ },
2532
+ // 20211011 依照MUI設計 RadioButton的顏色就是secondaryColor (若使用primaryColor有可能會造成UI不顯眼)
2533
+ // MuiRadio: {
2534
+ // root: {
2535
+ // '&.MuiIconButton-colorSecondary:hover': { backgroundColor: `${primaryColor}10 !important` },
2536
+ // '&$checked': { color: `${primaryColor} !important` },
2537
+ // },
2538
+ // },
2539
+ MuiListItemIcon: {
2540
+ root: {
2541
+ minWidth: '32px'
2542
+ }
2543
+ },
2544
+ MuiTableHead: {
2545
+ root: {
2546
+ background: '#fafafa'
2547
+ }
2548
+ },
2549
+ MuiTableContainer: {
2550
+ root: {
2551
+ boxShadow: 'initial',
2552
+ border: '1px solid #e0e0e0',
2553
+ borderBottom: 0
2554
+ }
2555
+ },
2556
+ MuiDialogTitle: {
2557
+ root: {
2558
+ padding: '0 4px 0 12px',
2559
+ background: primaryColor,
2560
+ color: 'white'
2561
+ }
2562
+ },
2563
+ MuiDialogContent: {
2564
+ root: {
2565
+ padding: 12,
2566
+ '&:first-child': 'initial'
2567
+ }
2568
+ },
2569
+ MuiDialogActions: {
2570
+ root: {
2571
+ padding: 12,
2572
+ borderTop: `1px solid ${borderColor}`
2573
+ }
2574
+ }
2575
+ }
2576
+ });
2577
+ };
2578
+
2579
+ var MUITheme = function MUITheme(_ref) {
2580
+ var children = _ref.children,
2581
+ themes = _ref.themes,
2582
+ colors = _ref.colors,
2583
+ darkMode = _ref.darkMode;
2584
+ // theme 外部可以自行再注入
2585
+ // commonTheme - 共用的主題(參考antd)
2586
+ // 兩者合一
2587
+ // const mergeTheme = createTheme(
2588
+ // merge(
2589
+ // commonThemeProps({ darkMode: darkMode === undefined ? useMediaQuery('(prefers-color-scheme: light)') : darkMode, colors }),
2590
+ // themeProps
2591
+ // )
2592
+ // );
2593
+
2594
+ var mergeTheme = merge_1(
2595
+ // commonTheme({ darkMode: darkMode === undefined ? useMediaQuery('(prefers-color-scheme: light)') : darkMode, colors }),
2596
+ commonTheme({
2597
+ darkMode: darkMode,
2598
+ colors: colors
2599
+ }), themes);
2600
+ return /*#__PURE__*/React__default.createElement(ThemeProvider, {
2601
+ theme: mergeTheme
2602
+ }, /*#__PURE__*/React__default.createElement(CssBaseline, null), children);
2603
+ };
2604
+ MUITheme.defaultProps = {
2605
+ children: undefined,
2606
+ themes: undefined,
2607
+ // themeProps: undefined,
2608
+ colors: undefined,
2609
+ darkMode: undefined
2610
+ };
2611
+ // /** 主題(請參考MUI) - Props */
2612
+ // themeProps: PropTypes.objectOf(PropTypes.any),
2613
+ MUITheme.propTypes = {
2614
+ /** 內文 */
2615
+ children: PropTypes.node,
2616
+ /** 主題(請參考MUI) */
2617
+ themes: PropTypes.objectOf(PropTypes.any),
2618
+ /** 配色主色 */
2619
+ colors: PropTypes.objectOf(PropTypes.any),
2620
+ /** 暗黑模式是否開啟 */
2621
+ darkMode: PropTypes.bool
2622
+ };
2623
+
2624
+ export { MUITheme as default };