@daoyi/nmtl-ui 1.1.21 → 1.1.25

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 (84) hide show
  1. package/lib/components/Autocomplete.js +1 -1
  2. package/lib/components/Avatar.js +1 -1
  3. package/lib/components/BackTop.js +1 -1
  4. package/lib/components/Backdrop-3c472376.js +1 -0
  5. package/lib/components/Button-6271d361.js +1 -0
  6. package/lib/components/Button.js +1 -1
  7. package/lib/components/ButtonBase-cfca0fe1.js +1 -0
  8. package/lib/components/Carousel.js +1 -1
  9. package/lib/components/Checkbox.js +1 -1
  10. package/lib/components/CircularProgress-537ad812.js +1 -0
  11. package/lib/components/ContactModal.js +3 -0
  12. package/lib/components/DialogTitle-e0e78621.js +1 -0
  13. package/lib/components/Drawer-da2ddeed.js +1 -0
  14. package/lib/components/Drawer.js +1 -1
  15. package/lib/components/Empty.js +1 -1
  16. package/lib/components/Fade-4a3713bb.js +1 -0
  17. package/lib/components/FormControlLabel-6578b588.js +1 -0
  18. package/lib/components/Grow-f6a8f6bf.js +1 -0
  19. package/lib/components/Header.js +1 -1
  20. package/lib/components/IconButton-19970f38.js +1 -0
  21. package/lib/components/InputMethod.js +3 -3
  22. package/lib/components/Loading.js +1 -0
  23. package/lib/components/MUITheme.js +1 -1
  24. package/lib/components/Modal-2e8b3262.js +1 -0
  25. package/lib/components/Modal.js +1 -1
  26. package/lib/components/Paper-f4cc750c.js +1 -0
  27. package/lib/components/{Popper-c6919a40.js → Popper-31c1ad7c.js} +2 -2
  28. package/lib/components/Portal-edb523c5.js +1 -0
  29. package/lib/components/Radio.js +1 -1
  30. package/lib/components/RadioGroup-ebfc5e6d.js +1 -0
  31. package/lib/components/Select-3cea2ac2.js +1 -0
  32. package/lib/components/Select-812280cf.js +1 -0
  33. package/lib/components/Select.js +1 -1
  34. package/lib/components/Slide-ef2f2933.js +1 -0
  35. package/lib/components/Spin.js +1 -1
  36. package/lib/components/SvgIcon-ae419ec7.js +1 -0
  37. package/lib/components/Table.js +1 -1
  38. package/lib/components/TextField-62bea25d.js +1 -0
  39. package/lib/components/Tooltip.js +1 -1
  40. package/lib/components/Typography-8814c5aa.js +1 -0
  41. package/lib/components/_rollupPluginBabelHelpers-9a98782c.js +1 -0
  42. package/lib/components/capitalize-e92d0507.js +8 -0
  43. package/lib/components/createSvgIcon-ba256905.js +1 -0
  44. package/lib/components/createSvgIcon-c92a409c.js +1 -0
  45. package/lib/components/debounce-65582d84.js +1 -0
  46. package/lib/components/{debounce-7df508de.js → debounce-a740abfa.js} +1 -1
  47. package/lib/components/index-767b2843.js +7 -0
  48. package/lib/components/isMuiElement-64ad493a.js +1 -0
  49. package/lib/components/isObjectLike-4a391d5d.js +1 -0
  50. package/lib/components/muiNotifcationReducer-75669c4f.js +15 -0
  51. package/lib/components/ownerDocument-e276d08d.js +1 -0
  52. package/lib/components/ownerWindow-19cabe15.js +1 -0
  53. package/lib/components/react-router-dom-6469c1df.js +1 -0
  54. package/lib/components/useForkRef-58783e4b.js +1 -0
  55. package/lib/components/utils-256c7d92.js +1 -0
  56. package/lib/index.d.ts +4 -1
  57. package/lib/index.js +4 -1
  58. package/lib/utils/notification.js +1 -0
  59. package/package.json +15 -3
  60. package/lib/components/Backdrop-0c72d47e.js +0 -1
  61. package/lib/components/ButtonBase-54fbcc3c.js +0 -1
  62. package/lib/components/CircularProgress-8332110b.js +0 -1
  63. package/lib/components/Drawer-f0659547.js +0 -1
  64. package/lib/components/Fade-edb8e7af.js +0 -1
  65. package/lib/components/FormControlLabel-b4f37c46.js +0 -1
  66. package/lib/components/Grow-e28280cd.js +0 -1
  67. package/lib/components/IconButton-f380331f.js +0 -1
  68. package/lib/components/Modal-03889d3e.js +0 -1
  69. package/lib/components/Paper-8eaa8df4.js +0 -1
  70. package/lib/components/Portal-1b30ccbc.js +0 -1
  71. package/lib/components/Select-51559a92.js +0 -1
  72. package/lib/components/Select-5609df88.js +0 -1
  73. package/lib/components/TransitionGroupContext-2cd2fcd6.js +0 -1
  74. package/lib/components/Typography-fe7cdaf3.js +0 -1
  75. package/lib/components/_commonjsHelpers-97e6d7b1.js +0 -1
  76. package/lib/components/_rollupPluginBabelHelpers-4234c275.js +0 -1
  77. package/lib/components/capitalize-017d2500.js +0 -1
  78. package/lib/components/createSvgIcon-3b1a21b0.js +0 -1
  79. package/lib/components/index-ec2d0bbb.js +0 -7
  80. package/lib/components/isMuiElement-3726d123.js +0 -1
  81. package/lib/components/isObjectLike-ec3f35a3.js +0 -1
  82. package/lib/components/ownerWindow-ba2c31bc.js +0 -1
  83. package/lib/components/utils-7954d1aa.js +0 -1
  84. package/lib/components/withStyles-43125883.js +0 -8
@@ -0,0 +1,15 @@
1
+ import*as e from"react";import t,{useContext as r}from"react";import"./capitalize-e92d0507.js";import"prop-types";import"react-is";import{unstable_batchedUpdates as n}from"react-dom";function i(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)};function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var a,u,c,l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},l.apply(this,arguments)};function h(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}))}function f(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function p(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(p(arguments[t]));return e}function E(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function g(e){return e.type===u.literal}function y(e){return e.type===u.argument}function v(e){return e.type===u.number}function T(e){return e.type===u.date}function d(e){return e.type===u.time}function _(e){return e.type===u.select}function A(e){return e.type===u.plural}function b(e){return e.type===u.pound}function S(e){return e.type===u.tag}function N(e){return!(!e||"object"!=typeof e||e.type!==c.number)}function P(e){return!(!e||"object"!=typeof e||e.type!==c.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(a||(a={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(u||(u={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(c||(c={}));var L=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,R=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function I(e){var t={};return e.replace(R,(function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var O=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var C,w=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,U=/^(@+)?(\+|#+)?$/g,M=/(\*)(0+)|(#+)(0+)|(0+)/g,D=/^(0+)$/;function G(e){var t={};return e.replace(U,(function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function F(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function k(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!D.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function x(e){var t=F(e);return t||{}}function V(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=l(l(l({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return l(l({},e),x(t))}),{}));continue;case"engineering":t=l(l(l({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return l(l({},e),x(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(M,(function(e,r,n,i,o,s){if(r)t.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(D.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(w.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(w,(function(e,r,n,i,o,s){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&s?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+s.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""})),i.options.length&&(t=l(l({},t),G(i.options[0])))}else if(U.test(i.stem))t=l(l({},t),G(i.stem));else{var o=F(i.stem);o&&(t=l(l({},t),o));var s=k(i.stem);s&&(t=l(l({},t),s))}}return t}var X=new RegExp("^"+L.source+"*"),j=new RegExp(L.source+"*$");function B(e,t){return{start:e,end:t}}var K=!!String.prototype.startsWith,Y=!!String.fromCodePoint,q=!!Object.fromEntries,z=!!String.prototype.codePointAt,H=!!String.prototype.trimStart,W=!!String.prototype.trimEnd,Z=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Q=!0;try{Q="a"===(null===(C=oe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===C?void 0:C[0])}catch(e){Q=!1}var $,J=K?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},ee=Y?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;i>o;){if((r=e[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},te=q?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],s=i[1];t[o]=s}return t},re=z?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},ne=H?function(e){return e.trimStart()}:function(e){return e.replace(X,"")},ie=W?function(e){return e.trimEnd()}:function(e){return e.replace(j,"")};function oe(e,t){return new RegExp(e,t)}if(Q){var se=oe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$=function(e,t){var r;return se.lastIndex=t,null!==(r=se.exec(e)[1])&&void 0!==r?r:""}}else $=function(e,t){for(var r=[];;){var n=re(e,t);if(void 0===n||ce(n)||le(n))break;r.push(n),t+=n>=65536?2:1}return ee.apply(void 0,r)};var ae=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(a.UNMATCHED_CLOSING_TAG,B(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&ue(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:u.pound,location:B(s,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:u.literal,value:"<"+n+"/>",location:B(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ue(this.char()))return this.error(a.INVALID_TAG,B(s,this.clonePosition()));var c=this.clonePosition();return n!==this.parseTagName()?this.error(a.UNMATCHED_CLOSING_TAG,B(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:u.tag,value:n,children:o,location:B(r,this.clonePosition())},err:null}:this.error(a.INVALID_TAG,B(s,this.clonePosition())))}return this.error(a.UNCLOSED_TAG,B(r,this.clonePosition()))}return this.error(a.INVALID_TAG,B(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{var o=this.tryParseUnquoted(e,t);if(o)n+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var a=B(r,this.clonePosition());return{val:{type:u.literal,value:n,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ue(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return ee.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),ee(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(a.EXPECT_ARGUMENT_CLOSING_BRACE,B(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(a.EMPTY_ARGUMENT,B(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(a.MALFORMED_ARGUMENT,B(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(a.EXPECT_ARGUMENT_CLOSING_BRACE,B(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:u.argument,value:n,location:B(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(a.EXPECT_ARGUMENT_CLOSING_BRACE,B(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(a.MALFORMED_ARGUMENT,B(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=$(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:B(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,h=this.clonePosition();switch(s){case"":return this.error(a.EXPECT_ARGUMENT_TYPE,B(o,h));case"number":case"date":case"time":this.bumpSpace();var f=null;if(this.bumpIf(",")){this.bumpSpace();var p=this.clonePosition();if((d=this.parseSimpleArgStyleIfPossible()).err)return d;if(0===(g=ie(d.val)).length)return this.error(a.EXPECT_ARGUMENT_STYLE,B(this.clonePosition(),this.clonePosition()));f={style:g,styleLocation:B(p,this.clonePosition())}}if((_=this.tryParseArgumentClose(n)).err)return _;var m=B(n,this.clonePosition());if(f&&J(null==f?void 0:f.style,"::",0)){var E=ne(f.style.slice(2));if("number"===s)return(d=this.parseNumberSkeletonFromString(E,f.styleLocation)).err?d:{val:{type:u.number,value:r,location:m,style:d.val},err:null};if(0===E.length)return this.error(a.EXPECT_DATE_TIME_SKELETON,m);var g={type:c.dateTime,pattern:E,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?I(E):{}};return{val:{type:"date"===s?u.date:u.time,value:r,location:m,style:g},err:null}}return{val:{type:"number"===s?u.number:"date"===s?u.date:u.time,value:r,location:m,style:null!==(i=null==f?void 0:f.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(a.EXPECT_SELECT_ARGUMENT_OPTIONS,B(y,l({},y)));this.bumpSpace();var v=this.parseIdentifierIfPossible(),T=0;if("select"!==s&&"offset"===v.value){if(!this.bumpIf(":"))return this.error(a.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,B(this.clonePosition(),this.clonePosition()));var d;if(this.bumpSpace(),(d=this.tryParseDecimalInteger(a.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,a.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return d;this.bumpSpace(),v=this.parseIdentifierIfPossible(),T=d.val}var _,A=this.tryParsePluralOrSelectOptions(e,s,t,v);if(A.err)return A;if((_=this.tryParseArgumentClose(n)).err)return _;var b=B(n,this.clonePosition());return"select"===s?{val:{type:u.select,value:r,options:te(A.val),location:b},err:null}:{val:{type:u.plural,value:r,options:te(A.val),offset:T,pluralType:"plural"===s?"cardinal":"ordinal",location:b},err:null};default:return this.error(a.INVALID_ARGUMENT_TYPE,B(o,h))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(a.EXPECT_ARGUMENT_CLOSING_BRACE,B(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(a.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,B(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(O).filter((function(e){return e.length>0}));r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],s=i.slice(1),a=0,u=s;a<u.length;a++)if(0===u[a].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:s})}return t}(e)}catch(e){return this.error(a.INVALID_NUMBER_SKELETON,t)}return{val:{type:c.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?V(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i,o=!1,s=[],u=new Set,c=n.value,l=n.location;;){if(0===c.length){var h=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var f=this.tryParseDecimalInteger(a.EXPECT_PLURAL_ARGUMENT_SELECTOR,a.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;l=B(h,this.clonePosition()),c=this.message.slice(h.offset,this.offset())}if(u.has(c))return this.error("select"===t?a.DUPLICATE_SELECT_ARGUMENT_SELECTOR:a.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===c&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?a.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:a.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,B(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(e+1,t,r);if(m.err)return m;var E=this.tryParseArgumentClose(p);if(E.err)return E;s.push([c,{value:m.val,location:B(p,this.clonePosition())}]),u.add(c),this.bumpSpace(),c=(i=this.parseIdentifierIfPossible()).value,l=i.location}return 0===s.length?this.error("select"===t?a.EXPECT_SELECT_ARGUMENT_SELECTOR:a.EXPECT_PLURAL_ARGUMENT_SELECTOR,B(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(a.MISSING_OTHER_CLAUSE,B(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(s>=48&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}var a=B(n,this.clonePosition());return i?Z(o*=r)?{val:o,err:null}:this.error(t,a):this.error(e,a)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=re(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(J(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ce(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function ue(e){return e>=97&&e<=122||e>=65&&e<=90}function ce(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function le(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function he(e){e.forEach((function(e){if(delete e.location,_(e)||A(e))for(var t in e.options)delete e.options[t].location,he(e.options[t].value);else v(e)&&N(e.style)||(T(e)||d(e))&&P(e.style)?delete e.style.location:S(e)&&he(e.children)}))}function fe(e,t){void 0===t&&(t={}),t=l({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new ae(e,t).parse();if(r.err){var n=SyntaxError(a[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||he(r.val),r.val}function pe(e,t){var r=t&&t.cache?t.cache:_e,n=t&&t.serializer?t.serializer:ve;return(t&&t.strategy?t.strategy:ye)(e,{cache:r,serializer:n})}function me(e,t,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),s=t.get(o);return void 0===s&&(s=e.call(this,n),t.set(o,s)),s}function Ee(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}function ge(e,t,r,n,i){return r.bind(t,e,n,i)}function ye(e,t){return ge(e,this,1===e.length?me:Ee,t.cache.create(),t.serializer)}var ve=function(){return JSON.stringify(arguments)};function Te(){this.cache=Object.create(null)}Te.prototype.get=function(e){return this.cache[e]},Te.prototype.set=function(e,t){this.cache[e]=t};var de,_e={create:function(){return new Te}},Ae={variadic:function(e,t){return ge(e,this,Ee,t.cache.create(),t.serializer)},monadic:function(e,t){return ge(e,this,me,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(de||(de={}));var be,Se=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return s(t,e),t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t}(Error),Ne=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'+t+'": "'+r+'". Options are "'+Object.keys(n).join('", "')+'"',de.INVALID_VALUE,i)||this}return s(t,e),t}(Se),Pe=function(e){function t(t,r,n){return e.call(this,'Value for "'+t+'" must be of type '+r,de.INVALID_VALUE,n)||this}return s(t,e),t}(Se),Le=function(e){function t(t,r){return e.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+r+'"',de.MISSING_VALUE,r)||this}return s(t,e),t}(Se);function Re(e){return"function"==typeof e}function Ie(e,t,r,n,i,o,s){if(1===e.length&&g(e[0]))return[{type:be.literal,value:e[0].value}];for(var a=[],u=0,c=e;u<c.length;u++){var l=c[u];if(g(l))a.push({type:be.literal,value:l.value});else if(b(l))"number"==typeof o&&a.push({type:be.literal,value:r.getNumberFormat(t).format(o)});else{var h=l.value;if(!i||!(h in i))throw new Le(h,s);var f=i[h];if(y(l))f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?be.literal:be.object,value:f});else if(T(l)){var p="string"==typeof l.style?n.date[l.style]:P(l.style)?l.style.parsedOptions:void 0;a.push({type:be.literal,value:r.getDateTimeFormat(t,p).format(f)})}else if(d(l)){p="string"==typeof l.style?n.time[l.style]:P(l.style)?l.style.parsedOptions:void 0;a.push({type:be.literal,value:r.getDateTimeFormat(t,p).format(f)})}else if(v(l)){(p="string"==typeof l.style?n.number[l.style]:N(l.style)?l.style.parsedOptions:void 0)&&p.scale&&(f*=p.scale||1),a.push({type:be.literal,value:r.getNumberFormat(t,p).format(f)})}else{if(S(l)){var m=l.children,E=l.value,L=i[E];if(!Re(L))throw new Pe(E,"function",s);var R=L(Ie(m,t,r,n,i,o).map((function(e){return e.value})));Array.isArray(R)||(R=[R]),a.push.apply(a,R.map((function(e){return{type:"string"==typeof e?be.literal:be.object,value:e}})))}if(_(l)){if(!(I=l.options[f]||l.options.other))throw new Ne(l.value,f,Object.keys(l.options),s);a.push.apply(a,Ie(I.value,t,r,n,i))}else if(A(l)){var I;if(!(I=l.options["="+f])){if(!Intl.PluralRules)throw new Se('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',de.MISSING_INTL_API,s);var O=r.getPluralRules(t,{type:l.pluralType}).select(f-(l.offset||0));I=l.options[O]||l.options.other}if(!I)throw new Ne(l.value,f,Object.keys(l.options),s);a.push.apply(a,Ie(I.value,t,r,n,i,f-(l.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===be.literal&&t.type===be.literal?r.value+=t.value:e.push(t),e}),[])}(a)}function Oe(e,t){return t?Object.keys(e).reduce((function(r,n){var i,o;return r[n]=(i=e[n],(o=t[n])?l(l(l({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=l(l({},i[t]),o[t]||{}),e}),{})):i),r}),l({},e)):e}function Ce(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(be||(be={}));var we,Ue=function(){function e(t,r,n,i){var o,s=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===be.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return Ie(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==i?void 0:i.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Oe(e.formats,n),this.locales=r,this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:pe((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,E([void 0],t)))}),{cache:Ce(o.number),strategy:Ae.variadic}),getDateTimeFormat:pe((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,E([void 0],t)))}),{cache:Ce(o.dateTime),strategy:Ae.variadic}),getPluralRules:pe((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,E([void 0],t)))}),{cache:Ce(o.pluralRules),strategy:Ae.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.__parse=fe,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(we||(we={}));var Me=function(e){function t(r,n,i){var o=e.call(this,"[@formatjs/intl Error "+r+"] "+n+" \n"+(i?"\n"+i.message+"\n"+i.stack:""))||this;return o.code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return s(t,e),t}(Error),De=function(e){function t(t,r){return e.call(this,we.UNSUPPORTED_FORMATTER,t,r)||this}return s(t,e),t}(Me),Ge=function(e){function t(t,r){return e.call(this,we.INVALID_CONFIG,t,r)||this}return s(t,e),t}(Me),Fe=function(e){function t(t,r){return e.call(this,we.MISSING_DATA,t,r)||this}return s(t,e),t}(Me),ke=function(e){function t(t,r,n,i){var o=e.call(this,we.FORMAT_ERROR,t+" \nLocale: "+r+"\nMessageID: "+(null==n?void 0:n.id)+"\nDefault Message: "+(null==n?void 0:n.defaultMessage)+"\nDescription: "+(null==n?void 0:n.description)+" \n",i)||this;return o.descriptor=n,o}return s(t,e),t}(Me),xe=function(e){function t(t,r){var n=e.call(this,we.MISSING_TRANSLATION,'Missing message: "'+t.id+'" for locale "'+r+'", using '+(t.defaultMessage?"default message":"id")+" as fallback.")||this;return n.descriptor=t,n}return s(t,e),t}(Me);function Ve(e,t,r){return void 0===r&&(r={}),t.reduce((function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t}),{})}var Xe={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},onError:function(e){}};function je(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Be(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Ke(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,i=pe((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,E([void 0],t)))}),{cache:Be(e.dateTime),strategy:Ae.variadic}),o=pe((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,E([void 0],t)))}),{cache:Be(e.number),strategy:Ae.variadic}),s=pe((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,E([void 0],t)))}),{cache:Be(e.pluralRules),strategy:Ae.variadic});return{getDateTimeFormat:i,getNumberFormat:o,getMessageFormat:pe((function(e,t,r,n){return new Ue(e,t,r,l({formatters:{getNumberFormat:o,getDateTimeFormat:i,getPluralRules:s}},n||{}))}),{cache:Be(e.message),strategy:Ae.variadic}),getRelativeTimeFormat:pe((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,E([void 0],e)))}),{cache:Be(e.relativeTime),strategy:Ae.variadic}),getPluralRules:s,getListFormat:pe((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,E([void 0],e)))}),{cache:Be(e.list),strategy:Ae.variadic}),getDisplayNames:pe((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,E([void 0],e)))}),{cache:Be(e.displayNames),strategy:Ae.variadic})}}function Ye(e,t,r,n){var i,o=e&&e[t];if(o&&(i=o[r]),i)return i;n(new De("No "+t+" format named: "+r))}var qe=function(){return qe=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},qe.apply(this,arguments)};function ze(e){i(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var He=qe(qe({},Xe),{textComponent:e.Fragment});function We(t){return function(r){return t(e.Children.toArray(r))}}var Ze=e.createContext(null);Ze.Consumer;var Qe=Ze.Provider,$e=Ze;var Je=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),i=r.length;if(n.length!==i)return!1;for(var o=0;o<i;o++){var s=r[o];if(e[s]!==t[s]||!Object.prototype.hasOwnProperty.call(t,s))return!1}return!0},et=Object.freeze({__proto__:null,default:Je,__moduleExports:Je}),tt=t.createContext(null);var rt=function(e){e()},nt=function(){return rt};function it(){return r(tt)}function ot(e){void 0===e&&(e=tt);var t=e===tt?it:function(){return r(e)};return function(){return t().store}}var st=ot();function at(e){void 0===e&&(e=tt);var t=e===tt?st:ot(e);return function(){return t().dispatch}}var ut=at();rt=n;const ct="LOAD_SNACK_BAR",lt="SHOW_SNACK_BAR",ht={enqueueSnackbar:()=>{}},ft=(e=ht,t)=>{switch(t.type){case"LOAD_SNACK_BAR":{const{enqueueSnackbar:r,closeSnackbar:n}=t;return r&&n?{...e,enqueueSnackbar:r,closeSnackbar:n}:{...e}}case"SHOW_SNACK_BAR":{const{enqueueSnackbar:r,closeSnackbar:n}=e;let{message:i,variant:o,duration:s=4e3}=t;const{error:a,...u}=t;if(a){const{statusText:e}=a.response;i=a&&a.response?a.response.data&&a.response.data.message?a.response.data.message:e:JSON.stringify(a.response),o="error",s=6e4}const c=r(i,{autoHideDuration:s,variant:o,onClick:a?()=>n(c):()=>{},...u});return e}default:return e}};export{$e as C,Xe as D,de as E,Se as F,Ue as I,ct as L,xe as M,Qe as P,tt as R,lt as S,u as T,l as _,ke as a,Me as b,we as c,Ke as d,Ge as e,Ve as f,Ye as g,Fe as h,i,je as j,ze as k,He as l,Re as m,We as n,Je as o,nt as p,ft as q,h as r,et as s,f as t,ut as u,m as v};
@@ -0,0 +1 @@
1
+ function n(n){return n&&n.ownerDocument||document}export{n as o};
@@ -0,0 +1 @@
1
+ import{o}from"./ownerDocument-e276d08d.js";function e(e){return o(e).defaultView||window}export{e as o};
@@ -0,0 +1 @@
1
+ import{Router as n,__RouterContext as t,matchPath as e}from"react-router";import{_ as r,i,j as a}from"./capitalize-e92d0507.js";import o from"react";import"prop-types";function c(n){return"/"===n.charAt(0)}function f(n,t){for(var e=t,r=e+1,i=n.length;r<i;e+=1,r+=1)n[e]=n[r];n.pop()}function u(n,t){if(!n)throw new Error("Invariant failed")}function s(n){return"/"===n.charAt(0)?n:"/"+n}function l(n,t){return function(n,t){return 0===n.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(n.charAt(t.length))}(n,t)?n.substr(t.length):n}function h(n){return"/"===n.charAt(n.length-1)?n.slice(0,-1):n}function v(n){var t=n.pathname,e=n.search,r=n.hash,i=t||"/";return e&&"?"!==e&&(i+="?"===e.charAt(0)?e:"?"+e),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function d(n,t,e,i){var a;"string"==typeof n?(a=function(n){var t=n||"/",e="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var a=t.indexOf("?");return-1!==a&&(e=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===e?"":e,hash:"#"===r?"":r}}(n),a.state=t):(void 0===(a=r({},n)).pathname&&(a.pathname=""),a.search?"?"!==a.search.charAt(0)&&(a.search="?"+a.search):a.search="",a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(n){throw n instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):n}return e&&(a.key=e),i?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=function(n,t){void 0===t&&(t="");var e,r=n&&n.split("/")||[],i=t&&t.split("/")||[],a=n&&c(n),o=t&&c(t),u=a||o;if(n&&c(n)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var s=i[i.length-1];e="."===s||".."===s||""===s}else e=!1;for(var l=0,h=i.length;h>=0;h--){var v=i[h];"."===v?f(i,h):".."===v?(f(i,h),l++):l&&(f(i,h),l--)}if(!u)for(;l--;l)i.unshift("..");!u||""===i[0]||i[0]&&c(i[0])||i.unshift("");var d=i.join("/");return e&&"/"!==d.substr(-1)&&(d+="/"),d}(a.pathname,i.pathname)):a.pathname=i.pathname:a.pathname||(a.pathname="/"),a}function p(){var n=null;var t=[];return{setPrompt:function(t){return n=t,function(){n===t&&(n=null)}},confirmTransitionTo:function(t,e,r,i){if(null!=n){var a="function"==typeof n?n(t,e):n;"string"==typeof a?"function"==typeof r?r(a,i):i(!0):i(!1!==a)}else i(!0)},appendListener:function(n){var e=!0;function r(){e&&n.apply(void 0,arguments)}return t.push(r),function(){e=!1,t=t.filter((function(n){return n!==r}))}},notifyListeners:function(){for(var n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];t.forEach((function(n){return n.apply(void 0,e)}))}}}var m=!("undefined"==typeof window||!window.document||!window.document.createElement);function y(n,t){t(window.confirm(n))}function w(){try{return window.history.state||{}}catch(n){return{}}}function g(n){void 0===n&&(n={}),m||u(!1);var t,e=window.history,i=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,a=!(-1===window.navigator.userAgent.indexOf("Trident")),o=n,c=o.forceRefresh,f=void 0!==c&&c,g=o.getUserConfirmation,k=void 0===g?y:g,A=o.keyLength,x=void 0===A?6:A,O=n.basename?h(s(n.basename)):"";function E(n){var t=n||{},e=t.key,r=t.state,i=window.location,a=i.pathname+i.search+i.hash;return O&&(a=l(a,O)),d(a,r,e)}function C(){return Math.random().toString(36).substr(2,x)}var R=p();function b(n){r(D,n),D.length=e.length,R.notifyListeners(D.location,D.action)}function P(n){(function(n){return void 0===n.state&&-1===navigator.userAgent.indexOf("CriOS")})(n)||S(E(n.state))}function L(){S(E(w()))}var T=!1;function S(n){if(T)T=!1,b();else{R.confirmTransitionTo(n,"POP",k,(function(t){t?b({action:"POP",location:n}):function(n){var t=D.location,e=U.indexOf(t.key);-1===e&&(e=0);var r=U.indexOf(n.key);-1===r&&(r=0);var i=e-r;i&&(T=!0,I(i))}(n)}))}}var N=E(w()),U=[N.key];function j(n){return O+v(n)}function I(n){e.go(n)}var K=0;function H(n){1===(K+=n)&&1===n?(window.addEventListener("popstate",P),a&&window.addEventListener("hashchange",L)):0===K&&(window.removeEventListener("popstate",P),a&&window.removeEventListener("hashchange",L))}var B=!1;var D={length:e.length,action:"POP",location:N,createHref:j,push:function(n,t){var r="PUSH",a=d(n,t,C(),D.location);R.confirmTransitionTo(a,r,k,(function(n){if(n){var t=j(a),o=a.key,c=a.state;if(i)if(e.pushState({key:o,state:c},null,t),f)window.location.href=t;else{var u=U.indexOf(D.location.key),s=U.slice(0,u+1);s.push(a.key),U=s,b({action:r,location:a})}else window.location.href=t}}))},replace:function(n,t){var r="REPLACE",a=d(n,t,C(),D.location);R.confirmTransitionTo(a,r,k,(function(n){if(n){var t=j(a),o=a.key,c=a.state;if(i)if(e.replaceState({key:o,state:c},null,t),f)window.location.replace(t);else{var u=U.indexOf(D.location.key);-1!==u&&(U[u]=a.key),b({action:r,location:a})}else window.location.replace(t)}}))},go:I,goBack:function(){I(-1)},goForward:function(){I(1)},block:function(n){void 0===n&&(n=!1);var t=R.setPrompt(n);return B||(H(1),B=!0),function(){return B&&(B=!1,H(-1)),t()}},listen:function(n){var t=R.appendListener(n);return H(1),function(){H(-1),t()}}};return D}var k=function(t){function e(){for(var n,e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return(n=t.call.apply(t,[this].concat(r))||this).history=g(n.props),n}return i(e,t),e.prototype.render=function(){return o.createElement(n,{history:this.history,children:this.props.children})},e}(o.Component);o.Component;var A=function(n,t){return"function"==typeof n?n(t):n},x=function(n,t){return"string"==typeof n?d(n,null,null,t):n},O=function(n){return n},E=o.forwardRef;void 0===E&&(E=O);var C=E((function(n,t){var e=n.innerRef,i=n.navigate,c=n.onClick,f=a(n,["innerRef","navigate","onClick"]),u=f.target,s=r({},f,{onClick:function(n){try{c&&c(n)}catch(t){throw n.preventDefault(),t}n.defaultPrevented||0!==n.button||u&&"_self"!==u||function(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}(n)||(n.preventDefault(),i())}});return s.ref=O!==E&&t||e,o.createElement("a",s)})),R=E((function(n,e){var i=n.component,c=void 0===i?C:i,f=n.replace,s=n.to,l=n.innerRef,h=a(n,["component","replace","to","innerRef"]);return o.createElement(t.Consumer,null,(function(n){n||u(!1);var t=n.history,i=x(A(s,n.location),n.location),a=i?t.createHref(i):"",v=r({},h,{href:a,navigate:function(){var e=A(s,n.location);(f?t.replace:t.push)(e)}});return O!==E?v.ref=e||l:v.innerRef=l,o.createElement(c,v)}))})),b=function(n){return n},P=o.forwardRef;void 0===P&&(P=b);var L=P((function(n,i){var c=n["aria-current"],f=void 0===c?"page":c,s=n.activeClassName,l=void 0===s?"active":s,h=n.activeStyle,v=n.className,d=n.exact,p=n.isActive,m=n.location,y=n.sensitive,w=n.strict,g=n.style,k=n.to,O=n.innerRef,E=a(n,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return o.createElement(t.Consumer,null,(function(n){n||u(!1);var t=m||n.location,a=x(A(k,t),t),c=a.pathname,s=c&&c.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),C=s?e(t.pathname,{path:s,exact:d,sensitive:y,strict:w}):null,L=!!(p?p(C,t):C),T=L?function(){for(var n=arguments.length,t=new Array(n),e=0;e<n;e++)t[e]=arguments[e];return t.filter((function(n){return n})).join(" ")}(v,l):v,S=L?r({},g,{},h):g,N=r({"aria-current":L&&f||null,className:T,style:S,to:a},E);return b!==P?N.ref=i||O:N.innerRef=O,o.createElement(R,N)}))}));export{k as B,L as N};
@@ -0,0 +1 @@
1
+ import*as n from"react";import t from"react";var r=t.createContext(null);function u(n,t){"function"==typeof n?n(t):n&&(n.current=t)}function o(t,r){return n.useMemo((function(){return null==t&&null==r?null:function(n){u(t,n),u(r,n)}}),[t,r])}export{r as T,u as s,o as u};
@@ -0,0 +1 @@
1
+ import t from"react";import{u as n,d as e,i,j as o}from"./capitalize-e92d0507.js";import"prop-types";import r from"react-dom";import{T as s}from"./useForkRef-58783e4b.js";function a(){return n()||e}var u=!1,p=function(n){function e(t,e){var i;i=n.call(this,t,e)||this;var o,r=e&&!e.isMounting?t.enter:t.appear;return i.appearStatus=null,t.in?r?(o="exited",i.appearStatus="entering"):o="entered":o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",i.state={status:o},i.nextCallback=null,i}i(e,n),e.getDerivedStateFromProps=function(t,n){return t.in&&"unmounted"===n.status?{status:"exited"}:null};var a=e.prototype;return a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(t){var n=null;if(t!==this.props){var e=this.state.status;this.props.in?"entering"!==e&&"entered"!==e&&(n="entering"):"entering"!==e&&"entered"!==e||(n="exiting")}this.updateStatus(!1,n)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var t,n,e,i=this.props.timeout;return t=n=e=i,null!=i&&"number"!=typeof i&&(t=i.exit,n=i.enter,e=void 0!==i.appear?i.appear:n),{exit:t,enter:n,appear:e}},a.updateStatus=function(t,n){void 0===t&&(t=!1),null!==n?(this.cancelNextCallback(),"entering"===n?this.performEnter(t):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},a.performEnter=function(t){var n=this,e=this.props.enter,i=this.context?this.context.isMounting:t,o=this.props.nodeRef?[i]:[r.findDOMNode(this),i],s=o[0],a=o[1],p=this.getTimeouts(),l=i?p.appear:p.enter;!t&&!e||u?this.safeSetState({status:"entered"},(function(){n.props.onEntered(s)})):(this.props.onEnter(s,a),this.safeSetState({status:"entering"},(function(){n.props.onEntering(s,a),n.onTransitionEnd(l,(function(){n.safeSetState({status:"entered"},(function(){n.props.onEntered(s,a)}))}))})))},a.performExit=function(){var t=this,n=this.props.exit,e=this.getTimeouts(),i=this.props.nodeRef?void 0:r.findDOMNode(this);n&&!u?(this.props.onExit(i),this.safeSetState({status:"exiting"},(function(){t.props.onExiting(i),t.onTransitionEnd(e.exit,(function(){t.safeSetState({status:"exited"},(function(){t.props.onExited(i)}))}))}))):this.safeSetState({status:"exited"},(function(){t.props.onExited(i)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(t,n){n=this.setNextCallback(n),this.setState(t,n)},a.setNextCallback=function(t){var n=this,e=!0;return this.nextCallback=function(i){e&&(e=!1,n.nextCallback=null,t(i))},this.nextCallback.cancel=function(){e=!1},this.nextCallback},a.onTransitionEnd=function(t,n){this.setNextCallback(n);var e=this.props.nodeRef?this.props.nodeRef.current:r.findDOMNode(this),i=null==t&&!this.props.addEndListener;if(e&&!i){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[e,this.nextCallback],s=o[0],a=o[1];this.props.addEndListener(s,a)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},a.render=function(){var n=this.state.status;if("unmounted"===n)return null;var e=this.props,i=e.children;e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef;var r=o(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return t.createElement(s.Provider,{value:null},"function"==typeof i?i(n,r):t.cloneElement(t.Children.only(i),r))},e}(t.Component);function l(){}p.contextType=s,p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:l,onEntering:l,onEntered:l,onExit:l,onExiting:l,onExited:l},p.UNMOUNTED="unmounted",p.EXITED="exited",p.ENTERING="entering",p.ENTERED="entered",p.EXITING="exiting";var d=p,c=function(t){return t.scrollTop};function f(t,n){var e=t.timeout,i=t.style,o=void 0===i?{}:i;return{duration:o.transitionDuration||"number"==typeof e?e:e[n.mode]||0,delay:o.transitionDelay}}export{d as T,f as g,c as r,a as u};
package/lib/index.d.ts CHANGED
@@ -15,6 +15,9 @@ export { default as Carousel } from './components/Carousel';
15
15
  export { default as Tooltip } from './components/Tooltip';
16
16
  export { default as Modal } from './components/Modal';
17
17
  export { default as Avatar } from './components/Avatar';
18
+ export { default as ContactModal } from './components/ContactModal';
19
+ export { default as Loading } from './components/Loading';
18
20
 
19
21
  export { default as isDevelopMode } from './utils/isDevelopMode';
20
- export { default as removeDuplicateItem } from './utils/removeDuplicateItem';
22
+ export { default as removeDuplicateItem } from './utils/removeDuplicateItem';
23
+ export { default as notification } from './utils/notification';
package/lib/index.js CHANGED
@@ -15,6 +15,9 @@ export { default as Carousel } from './components/Carousel';
15
15
  export { default as Tooltip } from './components/Tooltip';
16
16
  export { default as Modal } from './components/Modal';
17
17
  export { default as Avatar } from './components/Avatar';
18
+ export { default as ContactModal } from './components/ContactModal';
19
+ export { default as Loading } from './components/Loading';
18
20
 
19
21
  export { default as isDevelopMode } from './utils/isDevelopMode';
20
- export { default as removeDuplicateItem } from './utils/removeDuplicateItem';
22
+ export { default as removeDuplicateItem } from './utils/removeDuplicateItem';
23
+ export { default as notification } from './utils/notification';
@@ -0,0 +1 @@
1
+ var e=function(e){var s=e.dispatch,r=e.type,a=void 0===r?"success":r,t=e.message;s&&t&&s({type:"SHOW_SNACK_BAR",message:t,variant:a})},s=function(e){var s=e.dispatch,r=e.type,a=void 0===r?"error":r,t=e.error,o=(t.response||"Error").statusText;s&&t&&s({type:"SHOW_SNACK_BAR",message:t&&t.response?t.response.data&&t.response.data.message?t.response.data.message:o:JSON.stringify(t.response),variant:a})};export{e as openNotify,s as openNotifyError};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daoyi/nmtl-ui",
3
- "version": "1.1.21",
3
+ "version": "1.1.25",
4
4
  "description": "This project is to be used as a starter kit for building React component using Storybook and Rollup",
5
5
  "author": "daoyi",
6
6
  "main": "lib/index.js",
@@ -16,17 +16,29 @@
16
16
  "@material-ui/core": "4.12.3",
17
17
  "@material-ui/icons": "4.11.2",
18
18
  "@material-ui/lab": "4.0.0-alpha.60",
19
+ "@rollup/plugin-json": "4.1.0",
20
+ "axios": "0.21.1",
19
21
  "classnames": "2.3.1",
22
+ "emailjs-com": "2.6.4",
23
+ "formik": "2.2.9",
20
24
  "jquery": "3.6.0",
21
25
  "lodash": "4.17.21",
26
+ "moment": "2.29.1",
22
27
  "node-sass": "4.14.1",
28
+ "notistack": "1.0.10",
23
29
  "prop-types": "15.7.2",
24
30
  "react": "16.14.0",
25
31
  "react-dom": "16.14.0",
32
+ "react-dropzone": "11.3.2",
33
+ "react-facebook-login": "4.1.1",
34
+ "react-google-login": "5.2.2",
35
+ "react-intl": "5.8.0",
36
+ "react-redux": "7.2.5",
26
37
  "react-router-dom": "5.2.0",
27
38
  "react-slick": "^0.28.1",
28
- "sass": "1.41.1",
29
- "slick-carousel": "^1.8.1"
39
+ "redux": "4.1.0",
40
+ "slick-carousel": "^1.8.1",
41
+ "sass": "1.41.1"
30
42
  },
31
43
  "devDependencies": {
32
44
  "@babel/core": "7.15.5",
@@ -1 +0,0 @@
1
- import{w as i,b as e,_ as t}from"./withStyles-43125883.js";import*as o from"react";import"prop-types";import{c as r}from"./capitalize-017d2500.js";import{F as a}from"./Fade-edb8e7af.js";var n=o.forwardRef((function(i,n){var s=i.children,l=i.classes,p=i.className,m=i.invisible,c=void 0!==m&&m,d=i.open,f=i.transitionDuration,b=i.TransitionComponent,u=void 0===b?a:b,v=e(i,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return o.createElement(u,t({in:d,timeout:f},v),o.createElement("div",{className:r(l.root,p,c&&l.invisible),"aria-hidden":!0,ref:n},s))})),s=i({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(n);export{s as B};
@@ -1 +0,0 @@
1
- import{d as e,e as t,_ as n,h as r,w as o,b as i,i as a}from"./withStyles-43125883.js";import*as u from"react";import c,{Children as s,isValidElement as l,cloneElement as p}from"react";import"prop-types";import*as f from"react-dom";import{c as d}from"./capitalize-017d2500.js";import{T as h,u as m}from"./TransitionGroupContext-2cd2fcd6.js";import{u as v}from"./useEventCallback-8817ed1c.js";import{u as b}from"./useIsFocusVisible-217260c3.js";function y(e,t){var n=Object.create(null);return e&&s.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&l(e)?t(e):e}(e)})),n}function g(e,t,n){return null!=n[t]?n[t]:e.props[t]}function E(e,t,n){var r=y(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var u={};for(var c in t){if(o[c])for(r=0;r<o[c].length;r++){var s=o[c][r];u[o[c][r]]=n(s)}u[c]=n(c)}for(r=0;r<i.length;r++)u[i[r]]=n(i[r]);return u}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(l(a)){var u=i in t,c=i in r,s=t[i],f=l(s)&&!s.props.in;!c||u&&!f?c||!u||f?c&&u&&l(s)&&(o[i]=p(a,{onExited:n.bind(null,a),in:s.props.in,exit:g(a,"exit",e),enter:g(a,"enter",e)})):o[i]=p(a,{in:!1}):o[i]=p(a,{onExited:n.bind(null,a),in:!0,exit:g(a,"exit",e),enter:g(a,"enter",e)})}})),o}var x=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},M=function(o){function i(e,n){var r,i=(r=o.call(this,e,n)||this).handleExited.bind(t(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}e(i,o);var a=i.prototype;return a.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},a.componentWillUnmount=function(){this.mounted=!1},i.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,y(n.children,(function(e){return p(e,{onExited:r.bind(null,e),in:!0,appear:g(e,"appear",n),enter:g(e,"enter",n),exit:g(e,"exit",n)})}))):E(e,o,i),firstRender:!1}},a.handleExited=function(e,t){var r=y(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=n({},t.children);return delete r[e.key],{children:r}})))},a.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=r(e,["component","childFactory"]),i=this.state.contextValue,a=x(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?c.createElement(h.Provider,{value:i},a):c.createElement(h.Provider,{value:i},c.createElement(t,o,a))},i}(c.Component);M.propTypes={},M.defaultProps={component:"div",childFactory:function(e){return e}};var R=M,k="undefined"==typeof window?u.useEffect:u.useLayoutEffect;function T(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,o=e.rippleX,i=e.rippleY,a=e.rippleSize,c=e.in,s=e.onExited,l=void 0===s?function(){}:s,p=e.timeout,f=u.useState(!1),h=f[0],m=f[1],b=d(t.ripple,t.rippleVisible,r&&t.ripplePulsate),y={width:a,height:a,top:-a/2+i,left:-a/2+o},g=d(t.child,h&&t.childLeaving,r&&t.childPulsate),E=v(l);return k((function(){if(!c){m(!0);var e=setTimeout(E,p);return function(){clearTimeout(e)}}}),[E,c,p]),u.createElement("span",{className:b,style:y},u.createElement("span",{className:g}))}var w=u.forwardRef((function(e,t){var r=e.center,o=void 0!==r&&r,c=e.classes,s=e.className,l=i(e,["center","classes","className"]),p=u.useState([]),f=p[0],h=p[1],m=u.useRef(0),v=u.useRef(null);u.useEffect((function(){v.current&&(v.current(),v.current=null)}),[f]);var b=u.useRef(!1),y=u.useRef(null),g=u.useRef(null),E=u.useRef(null);u.useEffect((function(){return function(){clearTimeout(y.current)}}),[]);var x=u.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,i=e.cb;h((function(e){return[].concat(a(e),[u.createElement(T,{key:m.current,classes:c,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),m.current+=1,v.current=i}),[c]),M=u.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,i=void 0!==r&&r,a=t.center,u=void 0===a?o||t.pulsate:a,c=t.fakeElement,s=void 0!==c&&c;if("mousedown"===e.type&&b.current)b.current=!1;else{"touchstart"===e.type&&(b.current=!0);var l,p,f,d=s?null:E.current,h=d?d.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(u||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)l=Math.round(h.width/2),p=Math.round(h.height/2);else{var m=e.touches?e.touches[0]:e,v=m.clientX,M=m.clientY;l=Math.round(v-h.left),p=Math.round(M-h.top)}if(u)(f=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2==0&&(f+=1);else{var R=2*Math.max(Math.abs((d?d.clientWidth:0)-l),l)+2,k=2*Math.max(Math.abs((d?d.clientHeight:0)-p),p)+2;f=Math.sqrt(Math.pow(R,2)+Math.pow(k,2))}e.touches?null===g.current&&(g.current=function(){x({pulsate:i,rippleX:l,rippleY:p,rippleSize:f,cb:n})},y.current=setTimeout((function(){g.current&&(g.current(),g.current=null)}),80)):x({pulsate:i,rippleX:l,rippleY:p,rippleSize:f,cb:n})}}),[o,x]),k=u.useCallback((function(){M({},{pulsate:!0})}),[M]),w=u.useCallback((function(e,t){if(clearTimeout(y.current),"touchend"===e.type&&g.current)return e.persist(),g.current(),g.current=null,void(y.current=setTimeout((function(){w(e,t)})));g.current=null,h((function(e){return e.length>0?e.slice(1):e})),v.current=t}),[]);return u.useImperativeHandle(t,(function(){return{pulsate:k,start:M,stop:w}}),[k,M,w]),u.createElement("span",n({className:d(c.root,s),ref:E},l),u.createElement(R,{component:null,exit:!0},f))})),C=o((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(u.memo(w)),S=u.forwardRef((function(e,t){var r=e.action,o=e.buttonRef,a=e.centerRipple,c=void 0!==a&&a,s=e.children,l=e.classes,p=e.className,h=e.component,y=void 0===h?"button":h,g=e.disabled,E=void 0!==g&&g,x=e.disableRipple,M=void 0!==x&&x,R=e.disableTouchRipple,k=void 0!==R&&R,T=e.focusRipple,w=void 0!==T&&T,S=e.focusVisibleClassName,D=e.onBlur,V=e.onClick,j=e.onFocus,N=e.onFocusVisible,P=e.onKeyDown,F=e.onKeyUp,I=e.onMouseDown,z=e.onMouseLeave,L=e.onMouseUp,O=e.onTouchEnd,B=e.onTouchMove,X=e.onTouchStart,U=e.onDragLeave,Y=e.tabIndex,K=void 0===Y?0:Y,H=e.TouchRippleProps,$=e.type,A=void 0===$?"button":$,W=i(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),q=u.useRef(null);var G=u.useRef(null),_=u.useState(!1),J=_[0],Q=_[1];E&&J&&Q(!1);var Z=b(),ee=Z.isFocusVisible,te=Z.onBlurVisible,ne=Z.ref;function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:k;return v((function(r){return t&&t(r),!n&&G.current&&G.current[e](r),!0}))}u.useImperativeHandle(r,(function(){return{focusVisible:function(){Q(!0),q.current.focus()}}}),[]),u.useEffect((function(){J&&w&&!M&&G.current.pulsate()}),[M,w,J]);var oe=re("start",I),ie=re("stop",U),ae=re("stop",L),ue=re("stop",(function(e){J&&e.preventDefault(),z&&z(e)})),ce=re("start",X),se=re("stop",O),le=re("stop",B),pe=re("stop",(function(e){J&&(te(e),Q(!1)),D&&D(e)}),!1),fe=v((function(e){q.current||(q.current=e.currentTarget),ee(e)&&(Q(!0),N&&N(e)),j&&j(e)})),de=function(){var e=f.findDOMNode(q.current);return y&&"button"!==y&&!("A"===e.tagName&&e.href)},he=u.useRef(!1),me=v((function(e){w&&!he.current&&J&&G.current&&" "===e.key&&(he.current=!0,e.persist(),G.current.stop(e,(function(){G.current.start(e)}))),e.target===e.currentTarget&&de()&&" "===e.key&&e.preventDefault(),P&&P(e),e.target===e.currentTarget&&de()&&"Enter"===e.key&&!E&&(e.preventDefault(),V&&V(e))})),ve=v((function(e){w&&" "===e.key&&G.current&&J&&!e.defaultPrevented&&(he.current=!1,e.persist(),G.current.stop(e,(function(){G.current.pulsate(e)}))),F&&F(e),V&&e.target===e.currentTarget&&de()&&" "===e.key&&!e.defaultPrevented&&V(e)})),be=y;"button"===be&&W.href&&(be="a");var ye={};"button"===be?(ye.type=A,ye.disabled=E):("a"===be&&W.href||(ye.role="button"),ye["aria-disabled"]=E);var ge=m(o,t),Ee=m(ne,q),xe=m(ge,Ee),Me=u.useState(!1),Re=Me[0],ke=Me[1];u.useEffect((function(){ke(!0)}),[]);var Te=Re&&!M&&!E;return u.createElement(be,n({className:d(l.root,p,J&&[l.focusVisible,S],E&&l.disabled),onBlur:pe,onClick:V,onFocus:fe,onKeyDown:me,onKeyUp:ve,onMouseDown:oe,onMouseLeave:ue,onMouseUp:ae,onDragLeave:ie,onTouchEnd:se,onTouchMove:le,onTouchStart:ce,ref:xe,tabIndex:E?-1:K},ye,W),s,Te?u.createElement(C,n({ref:G,center:c},H)):null)})),D=o({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(S);export{D as B};
@@ -1 +0,0 @@
1
- import{w as e,b as t,_ as r}from"./withStyles-43125883.js";import*as a from"react";import"prop-types";import{c as i,a as s}from"./capitalize-017d2500.js";var o=a.forwardRef((function(e,o){var n=e.classes,c=e.className,l=e.color,m=void 0===l?"primary":l,d=e.disableShrink,f=void 0!==d&&d,p=e.size,h=void 0===p?40:p,k=e.style,y=e.thickness,v=void 0===y?3.6:y,x=e.value,u=void 0===x?0:x,D=e.variant,g=void 0===D?"indeterminate":D,b=t(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),S={},w={},N={};if("determinate"===g||"static"===g){var z=2*Math.PI*((44-v)/2);S.strokeDasharray=z.toFixed(3),N["aria-valuenow"]=Math.round(u),S.strokeDashoffset="".concat(((100-u)/100*z).toFixed(3),"px"),w.transform="rotate(-90deg)"}return a.createElement("div",r({className:i(n.root,c,"inherit"!==m&&n["color".concat(s(m))],{determinate:n.determinate,indeterminate:n.indeterminate,static:n.static}[g]),style:r({width:h,height:h},w,k),ref:o,role:"progressbar"},N,b),a.createElement("svg",{className:n.svg,viewBox:"".concat(22," ").concat(22," ").concat(44," ").concat(44)},a.createElement("circle",{className:i(n.circle,f&&n.circleDisableShrink,{determinate:n.circleDeterminate,indeterminate:n.circleIndeterminate,static:n.circleStatic}[g]),style:S,cx:44,cy:44,r:(44-v)/2,fill:"none",strokeWidth:v})))})),n=e((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:e.transitions.create("transform")},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:e.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(o);export{n as C};
@@ -1 +0,0 @@
1
- import{c as e}from"./_rollupPluginBabelHelpers-4234c275.js";import*as t from"react";import r,{useState as n}from"react";import a from"prop-types";import{L as o,S as i}from"./Select-5609df88.js";import{L as s,a as l}from"./Select-51559a92.js";import{w as c,a as d,b as p,_ as m,q as u}from"./withStyles-43125883.js";import{c as f,a as g}from"./capitalize-017d2500.js";import{T as h}from"./Typography-fe7cdaf3.js";import{useHistory as v}from"react-router";import{s as y}from"./style-inject.es-1f59c1d0.js";import{I as x}from"./IconButton-f380331f.js";import{c as w}from"./createSvgIcon-3b1a21b0.js";import{u as E,T as b,g as k,r as T}from"./utils-7954d1aa.js";import{P as _}from"./Paper-8eaa8df4.js";import{M as L}from"./Modal-03889d3e.js";import{B as N}from"./Backdrop-0c72d47e.js";import*as C from"react-dom";import{d as P}from"./isMuiElement-3726d123.js";import{u as S}from"./TransitionGroupContext-2cd2fcd6.js";var I=t.forwardRef((function(e,r){var n=e.absolute,a=void 0!==n&&n,o=e.classes,i=e.className,s=e.component,l=void 0===s?"hr":s,c=e.flexItem,d=void 0!==c&&c,u=e.light,g=void 0!==u&&u,h=e.orientation,v=void 0===h?"horizontal":h,y=e.role,x=void 0===y?"hr"!==l?"separator":void 0:y,w=e.variant,E=void 0===w?"fullWidth":w,b=p(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return t.createElement(l,m({className:f(o.root,i,"fullWidth"!==E&&o[E],a&&o.absolute,d&&o.flexItem,g&&o.light,"vertical"===v&&o.vertical),role:x,ref:r},b))})),j=c((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:d(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(I);function B(e,t){var r=function(e,t){var r,n=t.getBoundingClientRect();if(t.fakeTransform)r=t.fakeTransform;else{var a=window.getComputedStyle(t);r=a.getPropertyValue("-webkit-transform")||a.getPropertyValue("transform")}var o=0,i=0;if(r&&"none"!==r&&"string"==typeof r){var s=r.split("(")[1].split(")")[0].split(",");o=parseInt(s[4],10),i=parseInt(s[5],10)}return"left"===e?"translateX(".concat(window.innerWidth,"px) translateX(").concat(o-n.left,"px)"):"right"===e?"translateX(-".concat(n.left+n.width-o,"px)"):"up"===e?"translateY(".concat(window.innerHeight,"px) translateY(").concat(i-n.top,"px)"):"translateY(-".concat(n.top+n.height-i,"px)")}(e,t);r&&(t.style.webkitTransform=r,t.style.transform=r)}var R={enter:u.enteringScreen,exit:u.leavingScreen},A=t.forwardRef((function(e,r){var n=e.children,a=e.direction,o=void 0===a?"down":a,i=e.in,s=e.onEnter,l=e.onEntered,c=e.onEntering,d=e.onExit,u=e.onExited,f=e.onExiting,g=e.style,h=e.timeout,v=void 0===h?R:h,y=e.TransitionComponent,x=void 0===y?b:y,w=p(e,["children","direction","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),_=E(),L=t.useRef(null),N=t.useCallback((function(e){L.current=C.findDOMNode(e)}),[]),I=S(n.ref,N),j=S(I,r),A=function(e){return function(t){e&&(void 0===t?e(L.current):e(L.current,t))}},D=A((function(e,t){B(o,e),T(e),s&&s(e,t)})),z=A((function(e,t){var r=k({timeout:v,style:g},{mode:"enter"});e.style.webkitTransition=_.transitions.create("-webkit-transform",m({},r,{easing:_.transitions.easing.easeOut})),e.style.transition=_.transitions.create("transform",m({},r,{easing:_.transitions.easing.easeOut})),e.style.webkitTransform="none",e.style.transform="none",c&&c(e,t)})),M=A(l),O=A(f),H=A((function(e){var t=k({timeout:v,style:g},{mode:"exit"});e.style.webkitTransition=_.transitions.create("-webkit-transform",m({},t,{easing:_.transitions.easing.sharp})),e.style.transition=_.transitions.create("transform",m({},t,{easing:_.transitions.easing.sharp})),B(o,e),d&&d(e)})),W=A((function(e){e.style.webkitTransition="",e.style.transition="",u&&u(e)})),q=t.useCallback((function(){L.current&&B(o,L.current)}),[o]);return t.useEffect((function(){if(!i&&"down"!==o&&"right"!==o){var e=P((function(){L.current&&B(o,L.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[o,i]),t.useEffect((function(){i||q()}),[i,q]),t.createElement(x,m({nodeRef:L,onEnter:D,onEntered:M,onEntering:z,onExit:H,onExited:W,onExiting:O,appear:!0,in:i,timeout:v},w),(function(e,r){return t.cloneElement(n,m({ref:j,style:m({visibility:"exited"!==e||i?void 0:"hidden"},g,n.props.style)},r))}))})),D={left:"right",right:"left",top:"down",bottom:"up"};var z={enter:u.enteringScreen,exit:u.leavingScreen},M=t.forwardRef((function(e,r){var n=e.anchor,a=void 0===n?"left":n,o=e.BackdropProps,i=e.children,s=e.classes,l=e.className,c=e.elevation,d=void 0===c?16:c,u=e.ModalProps,h=(u=void 0===u?{}:u).BackdropProps,v=p(u,["BackdropProps"]),y=e.onClose,x=e.open,w=void 0!==x&&x,b=e.PaperProps,k=void 0===b?{}:b,T=e.SlideProps,C=e.TransitionComponent,P=void 0===C?A:C,S=e.transitionDuration,I=void 0===S?z:S,j=e.variant,B=void 0===j?"temporary":j,R=p(e,["anchor","BackdropProps","children","classes","className","elevation","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"]),M=E(),O=t.useRef(!1);t.useEffect((function(){O.current=!0}),[]);var H=function(e,t){return"rtl"===e.direction&&function(e){return-1!==["left","right"].indexOf(e)}(t)?D[t]:t}(M,a),W=t.createElement(_,m({elevation:"temporary"===B?d:0,square:!0},k,{className:f(s.paper,s["paperAnchor".concat(g(H))],k.className,"temporary"!==B&&s["paperAnchorDocked".concat(g(H))])}),i);if("permanent"===B)return t.createElement("div",m({className:f(s.root,s.docked,l),ref:r},R),W);var q=t.createElement(P,m({in:w,direction:D[H],timeout:I,appear:O.current},T),W);return"persistent"===B?t.createElement("div",m({className:f(s.root,s.docked,l),ref:r},R),q):t.createElement(L,m({BackdropProps:m({},o,h,{transitionDuration:I}),BackdropComponent:N,className:f(s.root,s.modal,l),open:w,onClose:y,ref:r},R,v),q)})),O=c((function(e){return{root:{},docked:{flex:"0 0 auto"},paper:{overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:e.zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},paperAnchorLeft:{left:0,right:"auto"},paperAnchorRight:{left:"auto",right:0},paperAnchorTop:{top:0,left:0,bottom:"auto",right:0,height:"auto",maxHeight:"100%"},paperAnchorBottom:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},paperAnchorDockedLeft:{borderRight:"1px solid ".concat(e.palette.divider)},paperAnchorDockedTop:{borderBottom:"1px solid ".concat(e.palette.divider)},paperAnchorDockedRight:{borderLeft:"1px solid ".concat(e.palette.divider)},paperAnchorDockedBottom:{borderTop:"1px solid ".concat(e.palette.divider)},modal:{}}}),{name:"MuiDrawer",flip:!1})(M),H=t.forwardRef((function(e,r){var n=e.classes,a=e.className,o=p(e,["classes","className"]),i=t.useContext(s);return t.createElement("div",m({className:f(n.root,a,"flex-start"===i.alignItems&&n.alignItemsFlexStart),ref:r},o))})),W=c((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(H),q=t.forwardRef((function(e,r){var n=e.children,a=e.classes,o=e.className,i=e.disableTypography,l=void 0!==i&&i,c=e.inset,d=void 0!==c&&c,u=e.primary,g=e.primaryTypographyProps,v=e.secondary,y=e.secondaryTypographyProps,x=p(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),w=t.useContext(s).dense,E=null!=u?u:n;null==E||E.type===h||l||(E=t.createElement(h,m({variant:w?"body2":"body1",className:a.primary,component:"span",display:"block"},g),E));var b=v;return null==b||b.type===h||l||(b=t.createElement(h,m({variant:"body2",className:a.secondary,color:"textSecondary",display:"block"},y),b)),t.createElement("div",m({className:f(a.root,o,w&&a.dense,d&&a.inset,E&&b&&a.multiline),ref:r},x),E,b)})),Y=c({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(q),V=w(t.createElement("path",{d:"M2 17c0 .55.45 1 1 1h18c.55 0 1-.45 1-1s-.45-1-1-1H3c-.55 0-1 .45-1 1zm0-5c0 .55.45 1 1 1h18c.55 0 1-.45 1-1s-.45-1-1-1H3c-.55 0-1 .45-1 1zm0-5c0 .55.45 1 1 1h18c.55 0 1-.45 1-1s-.45-1-1-1H3c-.55 0-1 .45-1 1z"})),X=function(e){var t=e.language,r=e.supportLanguages;return r.some((function(e){return e.value===t}))?t:r[0].value};const F=({locale:e,drawerList:t,setOpen:n})=>{const a=v();return r.createElement(l,{className:"drawer__list"},Array.isArray(t)&&t.map((({name:t,icon:i,path:s},l)=>r.createElement(o,{button:!0,key:l.toString(),onClick:()=>{a.push({pathname:`/${e}${s}`}),n(!1)}},i&&r.createElement(W,null,i),r.createElement(Y,{primary:t})))))};F.defaultProps={locale:"zh-tw"},F.propTypes={locale:a.string,drawerList:a.arrayOf(a.any).isRequired,setOpen:a.func.isRequired};y(".drawer__icon {\n display: none !important;\n margin-left: 10px; }\n\n.drawer__header {\n display: flex;\n align-items: center;\n padding: 20px; }\n .drawer__header-title {\n font-size: 18px;\n font-weight: bold; }\n\n.drawer__list {\n padding: 10px !important; }\n .drawer__list .MuiSvgIcon-root {\n margin-left: 8px; }\n\n.drawer__lang {\n margin: 16px; }\n\n@media screen and (max-width: 600px) {\n .drawer {\n flex: 1;\n display: flex;\n justify-content: flex-end; }\n .drawer__icon {\n display: flex !important; } }\n");var $=function(t){var a=t.title,o=t.logo,s=t.locale,l=t.supportLanguages,c=t.drawerList,d=t.onLanguageChange,p=n(!1),m=e(p,2),u=m[0],f=m[1];return r.createElement("div",{className:"drawer"},r.createElement(x,{className:"drawer__icon",onClick:function(){return f(!0)}},r.createElement(V,null)),r.createElement(O,{anchor:"right",open:u,onClose:function(){return f(!1)},onKeyDown:function(){return f(!1)}},(o||a)&&r.createElement("div",{className:"drawer__header"},r.createElement("div",{className:"drawer__header-logo"},o),r.createElement("div",{className:"drawer__header-title"},a)),r.createElement(j,null),r.createElement(F,{locale:s,drawerList:(Array.isArray(c)?c:[]).filter((function(e){return e.showInHeader})),setOpen:f}),r.createElement(j,null),r.createElement(i,{className:"drawer__lang",defaultValue:X({language:s,supportLanguages:l}),onChange:function(e){return d(e)},options:l})))};$.defaultProps={title:void 0,logo:void 0,locale:void 0,supportLanguages:[{value:"en",label:"English"},{value:"zh-tw",label:"繁體中文"},{value:"zh-cn",label:"簡體中文"}],drawerList:void 0,onLanguageChange:function(){}},$.propTypes={title:a.string,logo:a.node,locale:a.string,supportLanguages:a.arrayOf(a.any),drawerList:a.arrayOf(a.any),onLanguageChange:a.func};export{$ as D,X as c};
@@ -1 +0,0 @@
1
- import{q as t,b as n,_ as e,k as i}from"./withStyles-43125883.js";import*as o from"react";import"prop-types";import{u as r,T as a,r as s,g as d}from"./utils-7954d1aa.js";import{u as c}from"./TransitionGroupContext-2cd2fcd6.js";var p={entering:{opacity:1},entered:{opacity:1}},l={enter:t.enteringScreen,exit:t.leavingScreen},m=o.forwardRef((function(t,m){var u=t.children,y=t.disableStrictModeCompat,E=void 0!==y&&y,f=t.in,v=t.onEnter,x=t.onEntered,g=t.onEntering,b=t.onExit,T=t.onExited,C=t.onExiting,S=t.style,h=t.TransitionComponent,w=void 0===h?a:h,j=t.timeout,k=void 0===j?l:j,M=n(t,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),R=r(),_=R.unstable_strictMode&&!E,q=o.useRef(null),F=c(u.ref,m),G=c(_?q:void 0,F),z=function(t){return function(n,e){if(t){var o=_?[q.current,n]:[n,e],r=i(o,2),a=r[0],s=r[1];void 0===s?t(a):t(a,s)}}},A=z(g),B=z((function(t,n){s(t);var e=d({style:S,timeout:k},{mode:"enter"});t.style.webkitTransition=R.transitions.create("opacity",e),t.style.transition=R.transitions.create("opacity",e),v&&v(t,n)})),D=z(x),H=z(C),I=z((function(t){var n=d({style:S,timeout:k},{mode:"exit"});t.style.webkitTransition=R.transitions.create("opacity",n),t.style.transition=R.transitions.create("opacity",n),b&&b(t)})),J=z(T);return o.createElement(w,e({appear:!0,in:f,nodeRef:_?q:void 0,onEnter:B,onEntered:D,onEntering:A,onExit:I,onExited:J,onExiting:H,timeout:k},M),(function(t,n){return o.cloneElement(u,e({style:e({opacity:0,visibility:"exited"!==t||f?void 0:"hidden"},p[t],S,u.props.style),ref:G},n))}))}));export{m as F};
@@ -1 +0,0 @@
1
- import{w as e,b as a,k as o,_ as n}from"./withStyles-43125883.js";import*as t from"react";import"prop-types";import{c as l,a as r}from"./capitalize-017d2500.js";import{u as i}from"./useControlled-b5d6fb94.js";import{a as c}from"./useFormControl-479b5455.js";import{I as d}from"./IconButton-f380331f.js";import{T as s}from"./Typography-fe7cdaf3.js";var u=t.forwardRef((function(e,r){var s=e.autoFocus,u=e.checked,m=e.checkedIcon,p=e.classes,f=e.className,b=e.defaultChecked,h=e.disabled,v=e.icon,g=e.id,k=e.inputProps,C=e.inputRef,x=e.name,y=e.onBlur,F=e.onChange,B=e.onFocus,I=e.readOnly,P=e.required,R=e.tabIndex,w=e.type,N=e.value,j=a(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),E=i({controlled:u,default:Boolean(b),name:"SwitchBase",state:"checked"}),L=o(E,2),S=L[0],T=L[1],q=c(),D=h;q&&void 0===D&&(D=q.disabled);var O="checkbox"===w||"radio"===w;return t.createElement(d,n({component:"span",className:l(p.root,f,S&&p.checked,D&&p.disabled),disabled:D,tabIndex:null,role:void 0,onFocus:function(e){B&&B(e),q&&q.onFocus&&q.onFocus(e)},onBlur:function(e){y&&y(e),q&&q.onBlur&&q.onBlur(e)},ref:r},j),t.createElement("input",n({autoFocus:s,checked:u,defaultChecked:b,className:p.input,disabled:D,id:O&&g,name:x,onChange:function(e){var a=e.target.checked;T(a),F&&F(e,a)},readOnly:I,ref:C,required:P,tabIndex:R,type:w,value:N},k)),S?m:v)})),m=e({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(u),p=t.forwardRef((function(e,o){e.checked;var i=e.classes,d=e.className,u=e.control,m=e.disabled;e.inputRef;var p=e.label,f=e.labelPlacement,b=void 0===f?"end":f;e.name,e.onChange,e.value;var h=a(e,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"]),v=c(),g=m;void 0===g&&void 0!==u.props.disabled&&(g=u.props.disabled),void 0===g&&v&&(g=v.disabled);var k={disabled:g};return["checked","name","onChange","value","inputRef"].forEach((function(a){void 0===u.props[a]&&void 0!==e[a]&&(k[a]=e[a])})),t.createElement("label",n({className:l(i.root,d,"end"!==b&&i["labelPlacement".concat(r(b))],g&&i.disabled),ref:o},h),t.cloneElement(u,k),t.createElement(s,{component:"span",className:l(i.label,g&&i.disabled)},p))})),f=e((function(e){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:e.palette.text.disabled}}}}),{name:"MuiFormControlLabel"})(p);export{f as F,m as S};
@@ -1 +0,0 @@
1
- import{b as t,_ as n,k as e}from"./withStyles-43125883.js";import*as o from"react";import"prop-types";import{u as i,T as r,r as a,g as s}from"./utils-7954d1aa.js";import{u}from"./TransitionGroupContext-2cd2fcd6.js";function d(t){return"scale(".concat(t,", ").concat(Math.pow(t,2),")")}var c={entering:{opacity:1,transform:d(1)},entered:{opacity:1,transform:"none"}},l=o.forwardRef((function(l,f){var m=l.children,p=l.disableStrictModeCompat,y=void 0!==p&&p,E=l.in,v=l.onEnter,g=l.onEntered,x=l.onEntering,h=l.onExit,T=l.onExited,b=l.onExiting,j=l.style,C=l.timeout,R=void 0===C?"auto":C,H=l.TransitionComponent,M=void 0===H?r:H,S=t(l,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),w=o.useRef(),A=o.useRef(),D=i(),G=D.unstable_strictMode&&!y,_=o.useRef(null),k=u(m.ref,f),L=u(G?_:void 0,k),q=function(t){return function(n,o){if(t){var i=G?[_.current,n]:[n,o],r=e(i,2),a=r[0],s=r[1];void 0===s?t(a):t(a,s)}}},z=q(x),B=q((function(t,n){a(t);var e,o=s({style:j,timeout:R},{mode:"enter"}),i=o.duration,r=o.delay;"auto"===R?(e=D.transitions.getAutoHeightDuration(t.clientHeight),A.current=e):e=i,t.style.transition=[D.transitions.create("opacity",{duration:e,delay:r}),D.transitions.create("transform",{duration:.666*e,delay:r})].join(","),v&&v(t,n)})),F=q(g),I=q(b),J=q((function(t){var n,e=s({style:j,timeout:R},{mode:"exit"}),o=e.duration,i=e.delay;"auto"===R?(n=D.transitions.getAutoHeightDuration(t.clientHeight),A.current=n):n=o,t.style.transition=[D.transitions.create("opacity",{duration:n,delay:i}),D.transitions.create("transform",{duration:.666*n,delay:i||.333*n})].join(","),t.style.opacity="0",t.style.transform=d(.75),h&&h(t)})),K=q(T);return o.useEffect((function(){return function(){clearTimeout(w.current)}}),[]),o.createElement(M,n({appear:!0,in:E,nodeRef:G?_:void 0,onEnter:B,onEntered:F,onEntering:z,onExit:J,onExited:K,onExiting:I,addEndListener:function(t,n){var e=G?t:n;"auto"===R&&(w.current=setTimeout(e,A.current||0))},timeout:"auto"===R?null:R},S),(function(t,e){return o.cloneElement(m,n({style:n({opacity:0,transform:d(.75),visibility:"exited"!==t||E?void 0:"hidden"},c[t],j,m.props.style),ref:L},e))}))}));l.muiSupportAuto=!0;var f=l;export{f as G};
@@ -1 +0,0 @@
1
- import{w as e,a,b as o,_ as t}from"./withStyles-43125883.js";import*as r from"react";import"prop-types";import{c as i,a as n}from"./capitalize-017d2500.js";import{B as l}from"./ButtonBase-54fbcc3c.js";var s=r.forwardRef((function(e,a){var s=e.edge,c=void 0!==s&&s,d=e.children,p=e.classes,m=e.className,g=e.color,u=void 0===g?"default":g,b=e.disabled,h=void 0!==b&&b,f=e.disableFocusRipple,v=void 0!==f&&f,y=e.size,R=void 0===y?"medium":y,z=o(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return r.createElement(l,t({className:i(p.root,m,"default"!==u&&p["color".concat(n(u))],h&&p.disabled,"small"===R&&p["size".concat(n(R))],{start:p.edgeStart,end:p.edgeEnd}[c]),centerRipple:!0,focusRipple:!v,disabled:h,ref:a},z),r.createElement("span",{className:p.label},d))})),c=e((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:a(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:a(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:a(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(s);export{c as I};
@@ -1 +0,0 @@
1
- import{p as e,i as n,b as t,_ as o,u as r,g as i,z as a}from"./withStyles-43125883.js";import*as c from"react";import*as s from"react-dom";import"prop-types";import{o as l,a as d}from"./ownerWindow-ba2c31bc.js";import{c as u}from"./createChainedFunction-8d6683d4.js";import{u as f}from"./TransitionGroupContext-2cd2fcd6.js";import{u as p}from"./useEventCallback-8817ed1c.js";import{P as m}from"./Portal-1b30ccbc.js";function h(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var n=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),n}function v(e,n){n?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function b(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function y(e,t,o){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,a=[t,o].concat(n(r)),c=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===a.indexOf(e)&&-1===c.indexOf(e.tagName)&&v(e,i)}))}function E(e,n){var t=-1;return e.some((function(e,o){return!!n(e)&&(t=o,!0)})),t}function g(e,n){var t,o=[],r=[],i=e.container;if(!n.disableScrollLock){if(function(e){var n=l(e);return n.body===e?d(n).innerWidth>n.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var a=h();o.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(b(i)+a,"px"),t=l(i).querySelectorAll(".mui-fixed"),[].forEach.call(t,(function(e){r.push(e.style.paddingRight),e.style.paddingRight="".concat(b(e)+a,"px")}))}var c=i.parentElement,s="HTML"===c.nodeName&&"scroll"===window.getComputedStyle(c)["overflow-y"]?c:i;o.push({value:s.style.overflow,key:"overflow",el:s}),s.style.overflow="hidden"}return function(){t&&[].forEach.call(t,(function(e,n){r[n]?e.style.paddingRight=r[n]:e.style.removeProperty("padding-right")})),o.forEach((function(e){var n=e.value,t=e.el,o=e.key;n?t.style.setProperty(o,n):t.style.removeProperty(o)}))}}var k=function(){function n(){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),this.modals=[],this.containers=[]}return e(n,[{key:"add",value:function(e,n){var t=this.modals.indexOf(e);if(-1!==t)return t;t=this.modals.length,this.modals.push(e),e.modalRef&&v(e.modalRef,!1);var o=function(e){var n=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&n.push(e)})),n}(n);y(n,e.mountNode,e.modalRef,o,!0);var r=E(this.containers,(function(e){return e.container===n}));return-1!==r?(this.containers[r].modals.push(e),t):(this.containers.push({modals:[e],container:n,restore:null,hiddenSiblingNodes:o}),t)}},{key:"mount",value:function(e,n){var t=E(this.containers,(function(n){return-1!==n.modals.indexOf(e)})),o=this.containers[t];o.restore||(o.restore=g(o,n))}},{key:"remove",value:function(e){var n=this.modals.indexOf(e);if(-1===n)return n;var t=E(this.containers,(function(n){return-1!==n.modals.indexOf(e)})),o=this.containers[t];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&v(e.modalRef,!0),y(o.container,e.mountNode,e.modalRef,o.hiddenSiblingNodes,!1),this.containers.splice(t,1);else{var r=o.modals[o.modals.length-1];r.modalRef&&v(r.modalRef,!1)}return n}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),n}();function R(e){var n=e.children,t=e.disableAutoFocus,o=void 0!==t&&t,r=e.disableEnforceFocus,i=void 0!==r&&r,a=e.disableRestoreFocus,d=void 0!==a&&a,u=e.getDoc,p=e.isEnabled,m=e.open,h=c.useRef(),v=c.useRef(null),b=c.useRef(null),y=c.useRef(),E=c.useRef(null),g=c.useCallback((function(e){E.current=s.findDOMNode(e)}),[]),k=f(n.ref,g),R=c.useRef();return c.useEffect((function(){R.current=m}),[m]),!R.current&&m&&"undefined"!=typeof window&&(y.current=u().activeElement),c.useEffect((function(){if(m){var e=l(E.current);o||!E.current||E.current.contains(e.activeElement)||(E.current.hasAttribute("tabIndex")||E.current.setAttribute("tabIndex",-1),E.current.focus());var n=function(){null!==E.current&&(e.hasFocus()&&!i&&p()&&!h.current?E.current&&!E.current.contains(e.activeElement)&&E.current.focus():h.current=!1)},t=function(n){!i&&p()&&9===n.keyCode&&e.activeElement===E.current&&(h.current=!0,n.shiftKey?b.current.focus():v.current.focus())};e.addEventListener("focus",n,!0),e.addEventListener("keydown",t,!0);var r=setInterval((function(){n()}),50);return function(){clearInterval(r),e.removeEventListener("focus",n,!0),e.removeEventListener("keydown",t,!0),d||(y.current&&y.current.focus&&y.current.focus(),y.current=null)}}}),[o,i,d,p,m]),c.createElement(c.Fragment,null,c.createElement("div",{tabIndex:0,ref:v,"data-test":"sentinelStart"}),c.cloneElement(n,{ref:k}),c.createElement("div",{tabIndex:0,ref:b,"data-test":"sentinelEnd"}))}var x={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},w=c.forwardRef((function(e,n){var r=e.invisible,i=void 0!==r&&r,a=e.open,s=t(e,["invisible","open"]);return a?c.createElement("div",o({"aria-hidden":!0,ref:n},s,{style:o({},x.root,i?x.invisible:{},s.style)})):null}));var C=new k,F=c.forwardRef((function(e,n){var d=r(),h=i({name:"MuiModal",props:o({},e),theme:d}),b=h.BackdropComponent,y=void 0===b?w:b,E=h.BackdropProps,g=h.children,k=h.closeAfterTransition,x=void 0!==k&&k,F=h.container,I=h.disableAutoFocus,T=void 0!==I&&I,A=h.disableBackdropClick,P=void 0!==A&&A,S=h.disableEnforceFocus,L=void 0!==S&&S,M=h.disableEscapeKeyDown,B=void 0!==M&&M,D=h.disablePortal,O=void 0!==D&&D,N=h.disableRestoreFocus,K=void 0!==N&&N,j=h.disableScrollLock,W=void 0!==j&&j,z=h.hideBackdrop,H=void 0!==z&&z,q=h.keepMounted,G=void 0!==q&&q,Y=h.manager,_=void 0===Y?C:Y,J=h.onBackdropClick,Q=h.onClose,U=h.onEscapeKeyDown,V=h.onRendered,X=h.open,Z=t(h,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),$=c.useState(!0),ee=$[0],ne=$[1],te=c.useRef({}),oe=c.useRef(null),re=c.useRef(null),ie=f(re,n),ae=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(h),ce=function(){return l(oe.current)},se=function(){return te.current.modalRef=re.current,te.current.mountNode=oe.current,te.current},le=function(){_.mount(se(),{disableScrollLock:W}),re.current.scrollTop=0},de=p((function(){var e=function(e){return e="function"==typeof e?e():e,s.findDOMNode(e)}(F)||ce().body;_.add(se(),e),re.current&&le()})),ue=c.useCallback((function(){return _.isTopModal(se())}),[_]),fe=p((function(e){oe.current=e,e&&(V&&V(),X&&ue()?le():v(re.current,!0))})),pe=c.useCallback((function(){_.remove(se())}),[_]);if(c.useEffect((function(){return function(){pe()}}),[pe]),c.useEffect((function(){X?de():ae&&x||pe()}),[X,pe,ae,x,de]),!G&&!X&&(!ae||ee))return null;var me=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(d||{zIndex:a}),he={};return void 0===g.props.tabIndex&&(he.tabIndex=g.props.tabIndex||"-1"),ae&&(he.onEnter=u((function(){ne(!1)}),g.props.onEnter),he.onExited=u((function(){ne(!0),x&&pe()}),g.props.onExited)),c.createElement(m,{ref:fe,container:F,disablePortal:O},c.createElement("div",o({ref:ie,onKeyDown:function(e){"Escape"===e.key&&ue()&&(U&&U(e),B||(e.stopPropagation(),Q&&Q(e,"escapeKeyDown")))},role:"presentation"},Z,{style:o({},me.root,!X&&ee?me.hidden:{},Z.style)}),H?null:c.createElement(y,o({open:X,onClick:function(e){e.target===e.currentTarget&&(J&&J(e),!P&&Q&&Q(e,"backdropClick"))}},E)),c.createElement(R,{disableEnforceFocus:L,disableAutoFocus:T,disableRestoreFocus:K,getDoc:ce,isEnabled:ue,open:X},c.cloneElement(g,he))))}));export{F as M,h as g};
@@ -1 +0,0 @@
1
- import{w as o,_ as a,b as e}from"./withStyles-43125883.js";import*as r from"react";import"prop-types";import{c as t}from"./capitalize-017d2500.js";var i=r.forwardRef((function(o,i){var n=o.classes,s=o.className,d=o.component,c=void 0===d?"div":d,l=o.square,p=void 0!==l&&l,u=o.elevation,v=void 0===u?1:u,m=o.variant,f=void 0===m?"elevation":m,b=e(o,["classes","className","component","square","elevation","variant"]);return r.createElement(c,a({className:t(n.root,s,"outlined"===f?n.outlined:n["elevation".concat(v)],!p&&n.rounded),ref:i},b))})),n=o((function(o){var e={};return o.shadows.forEach((function(o,a){e["elevation".concat(a)]={boxShadow:o}})),a({root:{backgroundColor:o.palette.background.paper,color:o.palette.text.primary,transition:o.transitions.create("box-shadow")},rounded:{borderRadius:o.shape.borderRadius},outlined:{border:"1px solid ".concat(o.palette.divider)}},e)}),{name:"MuiPaper"})(i);export{n as P};
@@ -1 +0,0 @@
1
- import*as e from"react";import*as n from"react-dom";import"prop-types";import{u as t,s as o}from"./TransitionGroupContext-2cd2fcd6.js";var r="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,i=e.forwardRef((function(i,f){var u=i.children,a=i.container,c=i.disablePortal,d=void 0!==c&&c,l=i.onRendered,s=e.useState(null),m=s[0],p=s[1],y=t(e.isValidElement(u)?u.ref:null,f);return r((function(){d||p(function(e){return e="function"==typeof e?e():e,n.findDOMNode(e)}(a)||document.body)}),[a,d]),r((function(){if(m&&!d)return o(f,m),function(){o(f,null)}}),[f,m,d]),r((function(){l&&(m||d)&&l()}),[l,m,d]),d?e.isValidElement(u)?e.cloneElement(u,{ref:y}):u:m?n.createPortal(u,m):m}));export{i as P};
@@ -1 +0,0 @@
1
- import{b as e,_ as t,w as n,f as o,j as r,k as i,l as a,m as l}from"./withStyles-43125883.js";import*as s from"react";import"prop-types";import{c as d,a as u}from"./capitalize-017d2500.js";import{d as c,i as p}from"./isMuiElement-3726d123.js";import{u as f,F as m,a as v}from"./useFormControl-479b5455.js";import"react-is";import{o as h,a as b}from"./ownerWindow-ba2c31bc.js";import*as g from"react-dom";import{u as y,s as E}from"./TransitionGroupContext-2cd2fcd6.js";import{u as w}from"./utils-7954d1aa.js";import{c as C}from"./createChainedFunction-8d6683d4.js";import{M as x,g as S}from"./Modal-03889d3e.js";import{P as R}from"./Paper-8eaa8df4.js";import{G as M}from"./Grow-e28280cd.js";import{u as P}from"./useControlled-b5d6fb94.js";import{c as k}from"./createSvgIcon-3b1a21b0.js";function N(e){var t=e.props,n=e.states,o=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],o&&void 0===t[n]&&(e[n]=o[n]),e}),{})}function W(e,t){return parseInt(e[t],10)||0}var O="undefined"!=typeof window?s.useLayoutEffect:s.useEffect,D={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},I=s.forwardRef((function(n,o){var r=n.onChange,i=n.rows,a=n.rowsMax,l=n.rowsMin,d=n.maxRows,u=n.minRows,p=void 0===u?1:u,f=n.style,m=n.value,v=e(n,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),h=d||a,b=i||l||p,g=s.useRef(null!=m).current,E=s.useRef(null),w=y(o,E),C=s.useRef(null),x=s.useRef(0),S=s.useState({}),R=S[0],M=S[1],P=s.useCallback((function(){var e=E.current,t=window.getComputedStyle(e),o=C.current;o.style.width=t.width,o.value=e.value||n.placeholder||"x","\n"===o.value.slice(-1)&&(o.value+=" ");var r=t["box-sizing"],i=W(t,"padding-bottom")+W(t,"padding-top"),a=W(t,"border-bottom-width")+W(t,"border-top-width"),l=o.scrollHeight-i;o.value="x";var s=o.scrollHeight-i,d=l;b&&(d=Math.max(Number(b)*s,d)),h&&(d=Math.min(Number(h)*s,d));var u=(d=Math.max(d,s))+("border-box"===r?i+a:0),c=Math.abs(d-l)<=1;M((function(e){return x.current<20&&(u>0&&Math.abs((e.outerHeightStyle||0)-u)>1||e.overflow!==c)?(x.current+=1,{overflow:c,outerHeightStyle:u}):e}))}),[h,b,n.placeholder]);s.useEffect((function(){var e=c((function(){x.current=0,P()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[P]),O((function(){P()})),s.useEffect((function(){x.current=0}),[m]);return s.createElement(s.Fragment,null,s.createElement("textarea",t({value:m,onChange:function(e){x.current=0,g||P(),r&&r(e)},ref:w,rows:b,style:t({height:R.outerHeightStyle,overflow:R.overflow?"hidden":null},f)},v)),s.createElement("textarea",{"aria-hidden":!0,className:n.className,readOnly:!0,ref:C,tabIndex:-1,style:t({},D,f)}))}));function F(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function T(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(F(e.value)&&""!==e.value||t&&F(e.defaultValue)&&""!==e.defaultValue)}var A="undefined"==typeof window?s.useEffect:s.useLayoutEffect,B=s.forwardRef((function(n,r){var i=n["aria-describedby"],a=n.autoComplete,l=n.autoFocus,c=n.classes,p=n.className;n.color;var v=n.defaultValue,h=n.disabled,b=n.endAdornment;n.error;var g=n.fullWidth,E=void 0!==g&&g,w=n.id,C=n.inputComponent,x=void 0===C?"input":C,S=n.inputProps,R=void 0===S?{}:S,M=n.inputRef;n.margin;var P=n.multiline,k=void 0!==P&&P,W=n.name,O=n.onBlur,D=n.onChange,F=n.onClick,B=n.onFocus,L=n.onKeyDown,z=n.onKeyUp,$=n.placeholder,H=n.readOnly,j=n.renderSuffix,K=n.rows,V=n.rowsMax,U=n.rowsMin,X=n.maxRows,_=n.minRows,q=n.startAdornment,G=n.type,Y=void 0===G?"text":G,Z=n.value,J=e(n,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),Q=null!=R.value?R.value:Z,ee=s.useRef(null!=Q).current,te=s.useRef(),ne=s.useCallback((function(e){}),[]),oe=y(R.ref,ne),re=y(M,oe),ie=y(te,re),ae=s.useState(!1),le=ae[0],se=ae[1],de=f(),ue=N({props:n,muiFormControl:de,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});ue.focused=de?de.focused:le,s.useEffect((function(){!de&&h&&le&&(se(!1),O&&O())}),[de,h,le,O]);var ce=de&&de.onFilled,pe=de&&de.onEmpty,fe=s.useCallback((function(e){T(e)?ce&&ce():pe&&pe()}),[ce,pe]);A((function(){ee&&fe({value:Q})}),[Q,fe,ee]);s.useEffect((function(){fe(te.current)}),[]);var me=x,ve=t({},R,{ref:ie});"string"!=typeof me?ve=t({inputRef:ie,type:Y},ve,{ref:null}):k?!K||X||_||V||U?(ve=t({minRows:K||_,rowsMax:V,maxRows:X},ve),me=I):me="textarea":ve=t({type:Y},ve);return s.useEffect((function(){de&&de.setAdornedStart(Boolean(q))}),[de,q]),s.createElement("div",t({className:d(c.root,c["color".concat(u(ue.color||"primary"))],p,ue.disabled&&c.disabled,ue.error&&c.error,E&&c.fullWidth,ue.focused&&c.focused,de&&c.formControl,k&&c.multiline,q&&c.adornedStart,b&&c.adornedEnd,"dense"===ue.margin&&c.marginDense),onClick:function(e){te.current&&e.currentTarget===e.target&&te.current.focus(),F&&F(e)},ref:r},J),q,s.createElement(m.Provider,{value:null},s.createElement(me,t({"aria-invalid":ue.error,"aria-describedby":i,autoComplete:a,autoFocus:l,defaultValue:v,disabled:ue.disabled,id:w,onAnimationStart:function(e){fe("mui-auto-fill-cancel"===e.animationName?te.current:{value:"x"})},name:W,placeholder:$,readOnly:H,required:ue.required,rows:K,value:Q,onKeyDown:L,onKeyUp:z},ve,{className:d(c.input,R.className,ue.disabled&&c.disabled,k&&c.inputMultiline,ue.hiddenLabel&&c.inputHiddenLabel,q&&c.inputAdornedStart,b&&c.inputAdornedEnd,"search"===Y&&c.inputTypeSearch,"dense"===ue.margin&&c.inputMarginDense),onBlur:function(e){O&&O(e),R.onBlur&&R.onBlur(e),de&&de.onBlur?de.onBlur(e):se(!1)},onChange:function(e){if(!ee){var t=e.target||te.current;if(null==t)throw new Error(o(1));fe({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];R.onChange&&R.onChange.apply(R,[e].concat(r)),D&&D.apply(void 0,[e].concat(r))},onFocus:function(e){ue.disabled?e.stopPropagation():(B&&B(e),R.onFocus&&R.onFocus(e),de&&de.onFocus?de.onFocus(e):se(!0))}}))),b,j?j(t({},ue,{startAdornment:q})):null)})),L=n((function(e){var n="light"===e.palette.type,o={color:"currentColor",opacity:n?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i={opacity:n?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:t({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(B),z=s.forwardRef((function(n,o){var r=n.disableUnderline,i=n.classes,a=n.fullWidth,l=void 0!==a&&a,u=n.inputComponent,c=void 0===u?"input":u,p=n.multiline,f=void 0!==p&&p,m=n.type,v=void 0===m?"text":m,h=e(n,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return s.createElement(L,t({classes:t({},i,{root:d(i.root,!r&&i.underline),underline:null}),fullWidth:l,inputComponent:c,multiline:f,ref:o,type:v},h))}));z.muiName="Input";var $=n((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:o,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:o}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(z),H=s.forwardRef((function(n,o){var r=n.children,i=n.classes,a=n.className,l=n.color,c=void 0===l?"primary":l,f=n.component,v=void 0===f?"div":f,h=n.disabled,b=void 0!==h&&h,g=n.error,y=void 0!==g&&g,E=n.fullWidth,w=void 0!==E&&E,C=n.focused,x=n.hiddenLabel,S=void 0!==x&&x,R=n.margin,M=void 0===R?"none":R,P=n.required,k=void 0!==P&&P,N=n.size,W=n.variant,O=void 0===W?"standard":W,D=e(n,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),I=s.useState((function(){var e=!1;return r&&s.Children.forEach(r,(function(t){if(p(t,["Input","Select"])){var n=p(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}})),e})),F=I[0],A=I[1],B=s.useState((function(){var e=!1;return r&&s.Children.forEach(r,(function(t){p(t,["Input","Select"])&&T(t.props,!0)&&(e=!0)})),e})),L=B[0],z=B[1],$=s.useState(!1),H=$[0],j=$[1],K=void 0!==C?C:H;b&&K&&j(!1);var V=s.useCallback((function(){z(!0)}),[]),U={adornedStart:F,setAdornedStart:A,color:c,disabled:b,error:y,filled:L,focused:K,fullWidth:w,hiddenLabel:S,margin:("small"===N?"dense":void 0)||M,onBlur:function(){j(!1)},onEmpty:s.useCallback((function(){z(!1)}),[]),onFilled:V,onFocus:function(){j(!0)},registerEffect:undefined,required:k,variant:O};return s.createElement(m.Provider,{value:U},s.createElement(v,t({className:d(i.root,a,"none"!==M&&i["margin".concat(u(M))],w&&i.fullWidth),ref:o},D),r))})),j=n({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(H),K=s.forwardRef((function(n,o){var r=n.disableUnderline,i=n.classes,a=n.fullWidth,l=void 0!==a&&a,u=n.inputComponent,c=void 0===u?"input":u,p=n.multiline,f=void 0!==p&&p,m=n.type,v=void 0===m?"text":m,h=e(n,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return s.createElement(L,t({classes:t({},i,{root:d(i.root,!r&&i.underline),underline:null}),fullWidth:l,inputComponent:c,multiline:f,ref:o,type:v},h))}));K.muiName="Input";var V=n((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(K),U=s.createContext({}),X=s.forwardRef((function(n,o){var r=n.children,i=n.classes,a=n.className,l=n.component,u=void 0===l?"ul":l,c=n.dense,p=void 0!==c&&c,f=n.disablePadding,m=void 0!==f&&f,v=n.subheader,h=e(n,["children","classes","className","component","dense","disablePadding","subheader"]),b=s.useMemo((function(){return{dense:p}}),[p]);return s.createElement(U.Provider,{value:b},s.createElement(u,t({className:d(i.root,a,p&&i.dense,!m&&i.padding,v&&i.subheader),ref:o},h),v,r))})),_=n({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(X);function q(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function G(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Y(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function Z(e){return"function"==typeof e?e():e}var J=s.forwardRef((function(n,o){var r=n.action,i=n.anchorEl,a=n.anchorOrigin,l=void 0===a?{vertical:"top",horizontal:"left"}:a,u=n.anchorPosition,p=n.anchorReference,f=void 0===p?"anchorEl":p,m=n.children,v=n.classes,y=n.className,E=n.container,w=n.elevation,S=void 0===w?8:w,P=n.getContentAnchorEl,k=n.marginThreshold,N=void 0===k?16:k,W=n.onEnter,O=n.onEntered,D=n.onEntering,I=n.onExit,F=n.onExited,T=n.onExiting,A=n.open,B=n.PaperProps,L=void 0===B?{}:B,z=n.transformOrigin,$=void 0===z?{vertical:"top",horizontal:"left"}:z,H=n.TransitionComponent,j=void 0===H?M:H,K=n.transitionDuration,V=void 0===K?"auto":K,U=n.TransitionProps,X=void 0===U?{}:U,_=e(n,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),J=s.useRef(),Q=s.useCallback((function(e){if("anchorPosition"===f)return u;var t=Z(i),n=(t&&1===t.nodeType?t:h(J.current).body).getBoundingClientRect(),o=0===e?l.vertical:"center";return{top:n.top+q(n,o),left:n.left+G(n,l.horizontal)}}),[i,l.horizontal,l.vertical,u,f]),ee=s.useCallback((function(e){var t=0;if(P&&"anchorEl"===f){var n=P(e);if(n&&e.contains(n)){var o=function(e,t){for(var n=t,o=0;n&&n!==e;)o+=(n=n.parentElement).scrollTop;return o}(e,n);t=n.offsetTop+n.clientHeight/2-o||0}}return t}),[l.vertical,f,P]),te=s.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:q(e,$.vertical)+t,horizontal:G(e,$.horizontal)}}),[$.horizontal,$.vertical]),ne=s.useCallback((function(e){var t=ee(e),n={width:e.offsetWidth,height:e.offsetHeight},o=te(n,t);if("none"===f)return{top:null,left:null,transformOrigin:Y(o)};var r=Q(t),a=r.top-o.vertical,l=r.left-o.horizontal,s=a+n.height,d=l+n.width,u=b(Z(i)),c=u.innerHeight-N,p=u.innerWidth-N;if(a<N){var m=a-N;a-=m,o.vertical+=m}else if(s>c){var v=s-c;a-=v,o.vertical+=v}if(l<N){var h=l-N;l-=h,o.horizontal+=h}else if(d>p){var g=d-p;l-=g,o.horizontal+=g}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(l),"px"),transformOrigin:Y(o)}}),[i,f,Q,ee,te,N]),oe=s.useCallback((function(){var e=J.current;if(e){var t=ne(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[ne]),re=s.useCallback((function(e){J.current=g.findDOMNode(e)}),[]);s.useEffect((function(){A&&oe()})),s.useImperativeHandle(r,(function(){return A?{updatePosition:function(){oe()}}:null}),[A,oe]),s.useEffect((function(){if(A){var e=c((function(){oe()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[A,oe]);var ie=V;"auto"!==V||j.muiSupportAuto||(ie=void 0);var ae=E||(i?h(Z(i)).body:void 0);return s.createElement(x,t({container:ae,open:A,ref:o,BackdropProps:{invisible:!0},className:d(v.root,y)},_),s.createElement(j,t({appear:!0,in:A,onEnter:W,onEntered:O,onExit:I,onExited:F,onExiting:T,timeout:ie},X,{onEntering:C((function(e,t){D&&D(e,t),oe()}),X.onEntering)}),s.createElement(R,t({elevation:S,ref:re},L,{className:d(v.paper,L.className)}),m)))})),Q=n({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(J);function ee(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function te(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function ne(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function oe(e,t,n,o,r,i){for(var a=!1,l=r(e,t,!!t&&n);l;){if(l===e.firstChild){if(a)return;a=!0}var s=!o&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&ne(l,i)&&!s)return void l.focus();l=r(e,l,n)}}var re="undefined"==typeof window?s.useEffect:s.useLayoutEffect,ie=s.forwardRef((function(n,o){var r=n.actions,i=n.autoFocus,a=void 0!==i&&i,l=n.autoFocusItem,d=void 0!==l&&l,u=n.children,c=n.className,p=n.disabledItemsFocusable,f=void 0!==p&&p,m=n.disableListWrap,v=void 0!==m&&m,b=n.onKeyDown,E=n.variant,w=void 0===E?"selectedMenu":E,C=e(n,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),x=s.useRef(null),R=s.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});re((function(){a&&x.current.focus()}),[a]),s.useImperativeHandle(r,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!x.current.style.width;if(e.clientHeight<x.current.clientHeight&&n){var o="".concat(S(),"px");x.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=o,x.current.style.width="calc(100% + ".concat(o,")")}return x.current}}}),[]);var M=s.useCallback((function(e){x.current=g.findDOMNode(e)}),[]),P=y(M,o),k=-1;s.Children.forEach(u,(function(e,t){s.isValidElement(e)&&(e.props.disabled||("selectedMenu"===w&&e.props.selected||-1===k)&&(k=t))}));var N=s.Children.map(u,(function(e,t){if(t===k){var n={};return d&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===w&&(n.tabIndex=0),s.cloneElement(e,n)}return e}));return s.createElement(_,t({role:"menu",ref:P,className:c,onKeyDown:function(e){var t=x.current,n=e.key,o=h(t).activeElement;if("ArrowDown"===n)e.preventDefault(),oe(t,o,v,f,ee);else if("ArrowUp"===n)e.preventDefault(),oe(t,o,v,f,te);else if("Home"===n)e.preventDefault(),oe(t,null,v,f,ee);else if("End"===n)e.preventDefault(),oe(t,null,v,f,te);else if(1===n.length){var r=R.current,i=n.toLowerCase(),a=performance.now();r.keys.length>0&&(a-r.lastTime>500?(r.keys=[],r.repeating=!0,r.previousKeyMatched=!0):r.repeating&&i!==r.keys[0]&&(r.repeating=!1)),r.lastTime=a,r.keys.push(i);var l=o&&!r.repeating&&ne(o,r);r.previousKeyMatched&&(l||oe(t,o,!1,f,ee,r))?e.preventDefault():r.previousKeyMatched=!1}b&&b(e)},tabIndex:a?0:-1},C),N)})),ae={vertical:"top",horizontal:"right"},le={vertical:"top",horizontal:"left"},se=s.forwardRef((function(n,o){var r=n.autoFocus,i=void 0===r||r,a=n.children,l=n.classes,u=n.disableAutoFocusItem,c=void 0!==u&&u,p=n.MenuListProps,f=void 0===p?{}:p,m=n.onClose,v=n.onEntering,h=n.open,b=n.PaperProps,y=void 0===b?{}:b,C=n.PopoverClasses,x=n.transitionDuration,S=void 0===x?"auto":x,R=n.TransitionProps,M=(R=void 0===R?{}:R).onEntering,P=e(R,["onEntering"]),k=n.variant,N=void 0===k?"selectedMenu":k,W=e(n,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),O=w(),D=i&&!c&&h,I=s.useRef(null),F=s.useRef(null),T=-1;s.Children.map(a,(function(e,t){s.isValidElement(e)&&(e.props.disabled||("menu"!==N&&e.props.selected||-1===T)&&(T=t))}));var A=s.Children.map(a,(function(e,t){return t===T?s.cloneElement(e,{ref:function(t){F.current=g.findDOMNode(t),E(e.ref,t)}}):e}));return s.createElement(Q,t({getContentAnchorEl:function(){return F.current},classes:C,onClose:m,TransitionProps:t({onEntering:function(e,t){I.current&&I.current.adjustStyleForScrollbar(e,O),v&&v(e,t),M&&M(e,t)}},P),anchorOrigin:"rtl"===O.direction?ae:le,transformOrigin:"rtl"===O.direction?ae:le,PaperProps:t({},y,{classes:t({},y.classes,{root:l.paper})}),open:h,ref:o,transitionDuration:S},W),s.createElement(ie,t({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),m&&m(e,"tabKeyDown"))},actions:I,autoFocus:i&&(-1===T||c),autoFocusItem:D,variant:N},f,{className:d(l.list,f.className)}),A))})),de=n({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(se),ue=s.forwardRef((function(n,o){var r=n.classes,i=n.className,a=n.disabled,l=n.IconComponent,c=n.inputRef,p=n.variant,f=void 0===p?"standard":p,m=e(n,["classes","className","disabled","IconComponent","inputRef","variant"]);return s.createElement(s.Fragment,null,s.createElement("select",t({className:d(r.root,r.select,r[f],i,a&&r.disabled),disabled:a,ref:c||o},m)),n.multiple?null:s.createElement(l,{className:d(r.icon,r["icon".concat(u(f))],a&&r.disabled)}))})),ce=k(s.createElement("path",{d:"M7 10l5 5 5-5z"})),pe=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},fe=s.createElement(V,null),me=s.forwardRef((function(n,o){var r=n.children,i=n.classes,a=n.IconComponent,l=void 0===a?ce:a,d=n.input,u=void 0===d?fe:d,c=n.inputProps;n.variant;var p=e(n,["children","classes","IconComponent","input","inputProps","variant"]),f=N({props:n,muiFormControl:v(),states:["variant"]});return s.cloneElement(u,t({inputComponent:ue,inputProps:t({children:r,classes:i,IconComponent:l,variant:f.variant,type:void 0},c,u?u.props.inputProps:{}),ref:o},p))}));me.muiName="Select",n(pe,{name:"MuiNativeSelect"})(me);var ve=s.forwardRef((function(n,o){n.children;var i=n.classes,a=n.className,l=n.label,c=n.labelWidth,p=n.notched,f=n.style,m=e(n,["children","classes","className","label","labelWidth","notched","style"]),v="rtl"===w().direction?"right":"left";if(void 0!==l)return s.createElement("fieldset",t({"aria-hidden":!0,className:d(i.root,a),ref:o,style:f},m),s.createElement("legend",{className:d(i.legendLabelled,p&&i.legendNotched)},l?s.createElement("span",null,l):s.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})));var h=c>0?.75*c+8:.01;return s.createElement("fieldset",t({"aria-hidden":!0,style:t(r({},"padding".concat(u(v)),8),f),className:d(i.root,a),ref:o},m),s.createElement("legend",{className:i.legend,style:{width:p?h:.01}},s.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})))})),he=n((function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(ve),be=s.forwardRef((function(n,o){var r=n.classes,i=n.fullWidth,a=void 0!==i&&i,l=n.inputComponent,u=void 0===l?"input":l,c=n.label,p=n.labelWidth,f=void 0===p?0:p,m=n.multiline,v=void 0!==m&&m,h=n.notched,b=n.type,g=void 0===b?"text":b,y=e(n,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return s.createElement(L,t({renderSuffix:function(e){return s.createElement(he,{className:r.notchedOutline,label:c,labelWidth:f,notched:void 0!==h?h:Boolean(e.startAdornment||e.filled||e.focused)})},classes:t({},r,{root:d(r.root,r.underline),notchedOutline:null}),fullWidth:a,inputComponent:u,multiline:v,ref:o,type:g},y))}));be.muiName="Input";var ge=n((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(be);function ye(e,t){return"object"===a(t)&&null!==t?e===t:String(e)===String(t)}var Ee=s.forwardRef((function(n,r){var a=n["aria-label"],l=n.autoFocus,c=n.autoWidth,p=n.children,f=n.classes,m=n.className,v=n.defaultValue,b=n.disabled,g=n.displayEmpty,E=n.IconComponent,w=n.inputRef,C=n.labelId,x=n.MenuProps,S=void 0===x?{}:x,R=n.multiple,M=n.name,k=n.onBlur,N=n.onChange,W=n.onClose,O=n.onFocus,D=n.onOpen,I=n.open,F=n.readOnly,A=n.renderValue,B=n.SelectDisplayProps,L=void 0===B?{}:B,z=n.tabIndex;n.type;var $=n.value,H=n.variant,j=void 0===H?"standard":H,K=e(n,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),V=P({controlled:$,default:v,name:"Select"}),U=i(V,2),X=U[0],_=U[1],q=s.useRef(null),G=s.useState(null),Y=G[0],Z=G[1],J=s.useRef(null!=I).current,Q=s.useState(),ee=Q[0],te=Q[1],ne=s.useState(!1),oe=ne[0],re=ne[1],ie=y(r,w);s.useImperativeHandle(ie,(function(){return{focus:function(){Y.focus()},node:q.current,value:X}}),[Y,X]),s.useEffect((function(){l&&Y&&Y.focus()}),[l,Y]),s.useEffect((function(){if(Y){var e=h(Y).getElementById(C);if(e){var t=function(){getSelection().isCollapsed&&Y.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[C,Y]);var ae,le,se=function(e,t){e?D&&D(t):W&&W(t),J||(te(c?null:Y.clientWidth),re(e))},ue=s.Children.toArray(p),ce=function(e){return function(t){var n;if(R||se(!1,t),R){n=Array.isArray(X)?X.slice():[];var o=X.indexOf(e.props.value);-1===o?n.push(e.props.value):n.splice(o,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),X!==n&&(_(n),N&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:M}}),N(t,e)))}},pe=null!==Y&&(J?I:oe);delete K["aria-invalid"];var fe=[],me=!1;(T({value:X})||g)&&(A?ae=A(X):me=!0);var ve=ue.map((function(e){if(!s.isValidElement(e))return null;var t;if(R){if(!Array.isArray(X))throw new Error(o(2));(t=X.some((function(t){return ye(t,e.props.value)})))&&me&&fe.push(e.props.children)}else(t=ye(X,e.props.value))&&me&&(le=e.props.children);return s.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:ce(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));me&&(ae=R?fe.join(", "):le);var he,be=ee;!c&&J&&Y&&(be=Y.clientWidth),he=void 0!==z?z:b?null:0;var ge=L.id||(M?"mui-component-select-".concat(M):void 0);return s.createElement(s.Fragment,null,s.createElement("div",t({className:d(f.root,f.select,f.selectMenu,f[j],m,b&&f.disabled),ref:Z,tabIndex:he,role:"button","aria-disabled":b?"true":void 0,"aria-expanded":pe?"true":void 0,"aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[C,ge].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){if(!F){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),se(!0,e))}},onMouseDown:b||F?null:function(e){0===e.button&&(e.preventDefault(),Y.focus(),se(!0,e))},onBlur:function(e){!pe&&k&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:X,name:M}}),k(e))},onFocus:O},L,{id:ge}),function(e){return null==e||"string"==typeof e&&!e.trim()}(ae)?s.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):ae),s.createElement("input",t({value:Array.isArray(X)?X.join(","):X,name:M,ref:q,"aria-hidden":!0,onChange:function(e){var t=ue.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=ue[t];_(n.props.value),N&&N(e,n)}},tabIndex:-1,className:f.nativeInput,autoFocus:l},K)),s.createElement(E,{className:d(f.icon,f["icon".concat(u(j))],pe&&f.iconOpen,b&&f.disabled)}),s.createElement(de,t({id:"menu-".concat(M||""),anchorEl:Y,open:pe,onClose:function(e){se(!1,e)}},S,{MenuListProps:t({"aria-labelledby":C,role:"listbox",disableListWrap:!0},S.MenuListProps),PaperProps:t({},S.PaperProps,{style:t({minWidth:be},null!=S.PaperProps?S.PaperProps.style:null)})}),ve))})),we=pe,Ce=s.createElement(V,null),xe=s.createElement($,null),Se=s.forwardRef((function n(o,r){var i=o.autoWidth,a=void 0!==i&&i,d=o.children,u=o.classes,c=o.displayEmpty,p=void 0!==c&&c,f=o.IconComponent,m=void 0===f?ce:f,h=o.id,b=o.input,g=o.inputProps,y=o.label,E=o.labelId,w=o.labelWidth,C=void 0===w?0:w,x=o.MenuProps,S=o.multiple,R=void 0!==S&&S,M=o.native,P=void 0!==M&&M,k=o.onClose,W=o.onOpen,O=o.open,D=o.renderValue,I=o.SelectDisplayProps,F=o.variant,T=void 0===F?"standard":F,A=e(o,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),B=P?ue:Ee,L=N({props:o,muiFormControl:v(),states:["variant"]}).variant||T,z=b||{standard:Ce,outlined:s.createElement(ge,{label:y,labelWidth:C}),filled:xe}[L];return s.cloneElement(z,t({inputComponent:B,inputProps:t({children:d,IconComponent:m,variant:L,type:void 0,multiple:R},P?{id:h}:{autoWidth:a,displayEmpty:p,labelId:E,MenuProps:x,onClose:k,onOpen:W,open:O,renderValue:D,SelectDisplayProps:t({id:h},I)},g,{classes:g?l({baseClasses:u,newClasses:g.classes,Component:n}):u},b?b.props.inputProps:{}),ref:r},A))}));Se.muiName="Select";var Re=n(we,{name:"MuiSelect"})(Se);export{j as F,V as I,U as L,Re as M,ge as O,_ as a,$ as b,N as f};
@@ -1 +0,0 @@
1
- import{_ as e}from"./_rollupPluginBabelHelpers-4234c275.js";import*as t from"react";import o from"react";import a from"prop-types";import{c as n}from"./index-ec2d0bbb.js";import s from"./Empty.js";import{s as i}from"./style-inject.es-1f59c1d0.js";import{L as r,F as l,M as d}from"./Select-51559a92.js";import{C as c}from"./CircularProgress-8332110b.js";import{w as u,b as m,_ as p,j as f}from"./withStyles-43125883.js";import{c as b}from"./capitalize-017d2500.js";import{i as g}from"./isMuiElement-3726d123.js";import{u as v}from"./TransitionGroupContext-2cd2fcd6.js";import*as h from"react-dom";import{B as y}from"./ButtonBase-54fbcc3c.js";var C="undefined"==typeof window?t.useEffect:t.useLayoutEffect,x=t.forwardRef((function(e,o){var a=e.alignItems,n=void 0===a?"center":a,s=e.autoFocus,i=void 0!==s&&s,l=e.button,d=void 0!==l&&l,c=e.children,u=e.classes,f=e.className,x=e.component,j=e.ContainerComponent,E=void 0===j?"li":j,I=e.ContainerProps,N=(I=void 0===I?{}:I).className,V=m(I,["className"]),w=e.dense,k=void 0!==w&&w,L=e.disabled,S=void 0!==L&&L,B=e.disableGutters,P=void 0!==B&&B,A=e.divider,_=void 0!==A&&A,F=e.focusVisibleClassName,G=e.selected,M=void 0!==G&&G,R=m(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),T=t.useContext(r),z={dense:k||T.dense||!1,alignItems:n},H=t.useRef(null);C((function(){i&&H.current&&H.current.focus()}),[i]);var $=t.Children.toArray(c),D=$.length&&g($[$.length-1],["ListItemSecondaryAction"]),O=t.useCallback((function(e){H.current=h.findDOMNode(e)}),[]),q=v(O,o),J=p({className:b(u.root,f,z.dense&&u.dense,!P&&u.gutters,_&&u.divider,S&&u.disabled,d&&u.button,"center"!==n&&u.alignItemsFlexStart,D&&u.secondaryAction,M&&u.selected),disabled:S},R),K=x||"li";return d&&(J.component=x||"div",J.focusVisibleClassName=b(u.focusVisible,F),K=y),D?(K=J.component||x?K:"div","li"===E&&("li"===K?K="div":"li"===J.component&&(J.component="div")),t.createElement(r.Provider,{value:z},t.createElement(E,p({className:b(u.container,N),ref:q},V),t.createElement(K,J,$),$.pop()))):t.createElement(r.Provider,{value:z},t.createElement(K,p({ref:q},J),$))})),j=u((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(x),E=t.forwardRef((function(e,o){var a,n=e.classes,s=e.className,i=e.component,r=void 0===i?"li":i,l=e.disableGutters,d=void 0!==l&&l,c=e.ListItemClasses,u=e.role,f=void 0===u?"menuitem":u,g=e.selected,v=e.tabIndex,h=m(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(a=void 0!==v?v:-1),t.createElement(j,p({button:!0,role:f,tabIndex:a,component:r,selected:g,disableGutters:d,classes:p({dense:n.dense},c),className:b(n.root,s,g&&n.selected,!d&&n.gutters),ref:o},h))})),I=u((function(e){return{root:p({},e.typography.body1,f({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:p({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(E);i(".select__placeholder {\n color: #999; }\n");var N=function(t){var a=t.style,i=t.className,r=t.options,u=t.labelInValue,m=t.disabled,p=t.loading,f=t.defaultValue,b=t.placeholder,g=t.onChange,v=function(t){return(r||[]).find((function(o){return"object"===e(o)?t===o.value:t===o}))||t};return o.createElement(l,{variant:"outlined"},o.createElement(d,{style:a,className:n("select",i),displayEmpty:!0,disabled:m||p,renderValue:function(t){var a=v(t),n="object"===e(a)?a.label:a;return t&&0!==t.length||(n=o.createElement("span",{className:"select__placeholder"},b)),o.createElement(o.Fragment,null,n,p&&o.createElement(c,{size:16,style:{marginLeft:8,marginRight:4}}))},defaultValue:f,onChange:function(e){return g(u?v(e.target.value):e.target.value)}},Array.isArray(r)&&r.length>0?r.map((function(t){var a="object"===e(t)?t.value:t,n="object"===e(t)?t.label:t;return o.createElement(I,{key:a,value:a},n)})):o.createElement(s,null)))};N.defaultProps={style:void 0,className:void 0,defaultValue:void 0,options:void 0,labelInValue:void 0,disabled:void 0,loading:void 0,placeholder:"Please select...",onChange:function(){}},N.propTypes={style:a.objectOf(a.any),className:a.string,defaultValue:a.string,options:a.arrayOf(a.any),labelInValue:a.bool,disabled:a.bool,loading:a.bool,placeholder:a.string,onChange:a.func};export{j as L,N as S};
@@ -1 +0,0 @@
1
- import*as n from"react";import t from"react";function r(n,t){"function"==typeof n?n(t):n&&(n.current=t)}function u(t,u){return n.useMemo((function(){return null==t&&null==u?null:function(n){r(t,n),r(u,n)}}),[t,u])}var o=t.createContext(null);export{o as T,r as s,u};
@@ -1 +0,0 @@
1
- import{w as t,b as o,_ as a}from"./withStyles-43125883.js";import*as r from"react";import"prop-types";import{c as i,a as e}from"./capitalize-017d2500.js";var p={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},n=r.forwardRef((function(t,n){var l=t.align,h=void 0===l?"inherit":l,y=t.classes,s=t.className,c=t.color,g=void 0===c?"initial":c,d=t.component,m=t.display,u=void 0===m?"initial":m,v=t.gutterBottom,b=void 0!==v&&v,f=t.noWrap,x=void 0!==f&&f,w=t.paragraph,B=void 0!==w&&w,A=t.variant,S=void 0===A?"body1":A,T=t.variantMapping,W=void 0===T?p:T,j=o(t,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),M=d||(B?"p":W[S]||p[S])||"span";return r.createElement(M,a({className:i(y.root,s,"inherit"!==S&&y[S],"initial"!==g&&y["color".concat(e(g))],x&&y.noWrap,b&&y.gutterBottom,B&&y.paragraph,"inherit"!==h&&y["align".concat(e(h))],"initial"!==u&&y["display".concat(e(u))]),ref:n},j))})),l=t((function(t){return{root:{margin:0},body2:t.typography.body2,body1:t.typography.body1,caption:t.typography.caption,button:t.typography.button,h1:t.typography.h1,h2:t.typography.h2,h3:t.typography.h3,h4:t.typography.h4,h5:t.typography.h5,h6:t.typography.h6,subtitle1:t.typography.subtitle1,subtitle2:t.typography.subtitle2,overline:t.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:t.palette.primary.main},colorSecondary:{color:t.palette.secondary.main},colorTextPrimary:{color:t.palette.text.primary},colorTextSecondary:{color:t.palette.text.secondary},colorError:{color:t.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(n);export{l as T};
@@ -1 +0,0 @@
1
- var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function t(e,o){return e(o={exports:{}},o.exports),o.exports}export{e as a,t as c,o as u};
@@ -1 +0,0 @@
1
- function r(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),e.push.apply(e,n)}return e}function t(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?r(Object(o),!0).forEach((function(r){n(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))}))}return t}function e(r){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}function n(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function o(){return(o=Object.assign||function(r){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n])}return r}).apply(this,arguments)}function u(r,t){if(null==r)return{};var e,n,o=function(r,t){if(null==r)return{};var e,n,o={},u=Object.keys(r);for(n=0;n<u.length;n++)e=u[n],t.indexOf(e)>=0||(o[e]=r[e]);return o}(r,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);for(n=0;n<u.length;n++)e=u[n],t.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(r,e)&&(o[e]=r[e])}return o}function c(r,t){return function(r){if(Array.isArray(r))return r}(r)||function(r,t){var e=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null==e)return;var n,o,u=[],c=!0,i=!1;try{for(e=e.call(r);!(c=(n=e.next()).done)&&(u.push(n.value),!t||u.length!==t);c=!0);}catch(r){i=!0,o=r}finally{try{c||null==e.return||e.return()}finally{if(i)throw o}}return u}(r,t)||function(r,t){if(!r)return;if("string"==typeof r)return i(r,t);var e=Object.prototype.toString.call(r).slice(8,-1);"Object"===e&&r.constructor&&(e=r.constructor.name);if("Map"===e||"Set"===e)return Array.from(r);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return i(r,t)}(r,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(r,t){(null==t||t>r.length)&&(t=r.length);for(var e=0,n=new Array(t);e<t;e++)n[e]=r[e];return n}export{e as _,u as a,o as b,c,t as d};
@@ -1 +0,0 @@
1
- import{f as r}from"./withStyles-43125883.js";function t(r){var e,o,f="";if("string"==typeof r||"number"==typeof r)f+=r;else if("object"==typeof r)if(Array.isArray(r))for(e=0;e<r.length;e++)r[e]&&(o=t(r[e]))&&(f&&(f+=" "),f+=o);else for(e in r)r[e]&&(f&&(f+=" "),f+=e);return f}function e(){for(var r,e,o=0,f="";o<arguments.length;)(r=arguments[o++])&&(e=t(r))&&(f&&(f+=" "),f+=e);return f}function o(t){if("string"!=typeof t)throw new Error(r(7));return t.charAt(0).toUpperCase()+t.slice(1)}export{o as a,e as c};
@@ -1 +0,0 @@
1
- import{w as o,b as e,_ as r}from"./withStyles-43125883.js";import*as t from"react";import i from"react";import"prop-types";import{c as a,a as n}from"./capitalize-017d2500.js";var l=t.forwardRef((function(o,i){var l=o.children,c=o.classes,m=o.className,s=o.color,f=void 0===s?"inherit":s,p=o.component,d=void 0===p?"svg":p,u=o.fontSize,h=void 0===u?"medium":u,v=o.htmlColor,S=o.titleAccess,y=o.viewBox,z=void 0===y?"0 0 24 24":y,g=e(o,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return t.createElement(d,r({className:a(c.root,m,"inherit"!==f&&c["color".concat(n(f))],"default"!==h&&"medium"!==h&&c["fontSize".concat(n(h))]),focusable:"false",viewBox:z,color:v,"aria-hidden":!S||void 0,role:S?"img":void 0,ref:i},g),l,S?t.createElement("title",null,S):null)}));l.muiName="SvgIcon";var c=o((function(o){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:o.typography.pxToRem(24),transition:o.transitions.create("fill",{duration:o.transitions.duration.shorter})},colorPrimary:{color:o.palette.primary.main},colorSecondary:{color:o.palette.secondary.main},colorAction:{color:o.palette.action.active},colorError:{color:o.palette.error.main},colorDisabled:{color:o.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:o.typography.pxToRem(20)},fontSizeLarge:{fontSize:o.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(l);function m(o,e){var t=function(e,t){return i.createElement(c,r({ref:t},e),o)};return t.muiName=c.muiName,i.memo(i.forwardRef(t))}export{m as c};
@@ -1,7 +0,0 @@
1
- import{c as r}from"./_commonjsHelpers-97e6d7b1.js";var t=r((function(r){
2
- /*!
3
- Copyright (c) 2018 Jed Watson.
4
- Licensed under the MIT License (MIT), see
5
- http://jedwatson.github.io/classnames
6
- */
7
- !function(){var t={}.hasOwnProperty;function e(){for(var r=[],o=0;o<arguments.length;o++){var n=arguments[o];if(n){var s=typeof n;if("string"===s||"number"===s)r.push(n);else if(Array.isArray(n)){if(n.length){var i=e.apply(null,n);i&&r.push(i)}}else if("object"===s)if(n.toString===Object.prototype.toString)for(var a in n)t.call(n,a)&&n[a]&&r.push(a);else r.push(n.toString())}}return r.join(" ")}r.exports?(e.default=e,r.exports=e):window.classNames=e}()}));export{t as c};
@@ -1 +0,0 @@
1
- import*as e from"react";function t(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=this,u=function(){e.apply(o,i)};clearTimeout(t),t=setTimeout(u,n)}return r.clear=function(){clearTimeout(t)},r}function n(t,n){return e.isValidElement(t)&&-1!==n.indexOf(t.type.muiName)}export{t as d,n as i};
@@ -1 +0,0 @@
1
- import{a as t}from"./_commonjsHelpers-97e6d7b1.js";var e="object"==typeof t&&t&&t.Object===Object&&t,o="object"==typeof self&&self&&self.Object===Object&&self,r=e||o||Function("return this")(),n=r.Symbol,c=Object.prototype,a=c.hasOwnProperty,l=c.toString,i=n?n.toStringTag:void 0;var u=function(t){var e=a.call(t,i),o=t[i];try{t[i]=void 0;var r=!0}catch(t){}var n=l.call(t);return r&&(e?t[i]=o:delete t[i]),n},b=Object.prototype.toString;var f=function(t){return b.call(t)},j=n?n.toStringTag:void 0;var s=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":j&&j in Object(t)?u(t):f(t)};var v=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var p=function(t){return null!=t&&"object"==typeof t};export{s as _,r as a,p as b,e as c,v as i};
@@ -1 +0,0 @@
1
- function n(n){return n&&n.ownerDocument||document}function e(e){return n(e).defaultView||window}export{e as a,n as o};
@@ -1 +0,0 @@
1
- import t from"react";import{u as n,o as e,d as i,h as o}from"./withStyles-43125883.js";import"prop-types";import r from"react-dom";import{T as s}from"./TransitionGroupContext-2cd2fcd6.js";function a(){return n()||e}var u=!1,p=function(n){function e(t,e){var i;i=n.call(this,t,e)||this;var o,r=e&&!e.isMounting?t.enter:t.appear;return i.appearStatus=null,t.in?r?(o="exited",i.appearStatus="entering"):o="entered":o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",i.state={status:o},i.nextCallback=null,i}i(e,n),e.getDerivedStateFromProps=function(t,n){return t.in&&"unmounted"===n.status?{status:"exited"}:null};var a=e.prototype;return a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(t){var n=null;if(t!==this.props){var e=this.state.status;this.props.in?"entering"!==e&&"entered"!==e&&(n="entering"):"entering"!==e&&"entered"!==e||(n="exiting")}this.updateStatus(!1,n)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var t,n,e,i=this.props.timeout;return t=n=e=i,null!=i&&"number"!=typeof i&&(t=i.exit,n=i.enter,e=void 0!==i.appear?i.appear:n),{exit:t,enter:n,appear:e}},a.updateStatus=function(t,n){void 0===t&&(t=!1),null!==n?(this.cancelNextCallback(),"entering"===n?this.performEnter(t):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},a.performEnter=function(t){var n=this,e=this.props.enter,i=this.context?this.context.isMounting:t,o=this.props.nodeRef?[i]:[r.findDOMNode(this),i],s=o[0],a=o[1],p=this.getTimeouts(),l=i?p.appear:p.enter;!t&&!e||u?this.safeSetState({status:"entered"},(function(){n.props.onEntered(s)})):(this.props.onEnter(s,a),this.safeSetState({status:"entering"},(function(){n.props.onEntering(s,a),n.onTransitionEnd(l,(function(){n.safeSetState({status:"entered"},(function(){n.props.onEntered(s,a)}))}))})))},a.performExit=function(){var t=this,n=this.props.exit,e=this.getTimeouts(),i=this.props.nodeRef?void 0:r.findDOMNode(this);n&&!u?(this.props.onExit(i),this.safeSetState({status:"exiting"},(function(){t.props.onExiting(i),t.onTransitionEnd(e.exit,(function(){t.safeSetState({status:"exited"},(function(){t.props.onExited(i)}))}))}))):this.safeSetState({status:"exited"},(function(){t.props.onExited(i)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(t,n){n=this.setNextCallback(n),this.setState(t,n)},a.setNextCallback=function(t){var n=this,e=!0;return this.nextCallback=function(i){e&&(e=!1,n.nextCallback=null,t(i))},this.nextCallback.cancel=function(){e=!1},this.nextCallback},a.onTransitionEnd=function(t,n){this.setNextCallback(n);var e=this.props.nodeRef?this.props.nodeRef.current:r.findDOMNode(this),i=null==t&&!this.props.addEndListener;if(e&&!i){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[e,this.nextCallback],s=o[0],a=o[1];this.props.addEndListener(s,a)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},a.render=function(){var n=this.state.status;if("unmounted"===n)return null;var e=this.props,i=e.children;e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef;var r=o(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return t.createElement(s.Provider,{value:null},"function"==typeof i?i(n,r):t.cloneElement(t.Children.only(i),r))},e}(t.Component);function l(){}p.contextType=s,p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:l,onEntering:l,onEntered:l,onExit:l,onExiting:l,onExited:l},p.UNMOUNTED="unmounted",p.EXITED="exited",p.ENTERING="entering",p.ENTERED="entered",p.EXITING="exiting";var d=p,c=function(t){return t.scrollTop};function f(t,n){var e=t.timeout,i=t.style,o=void 0===i?{}:i;return{duration:o.transitionDuration||"number"==typeof e?e:e[n.mode]||0,delay:o.transitionDelay}}export{d as T,f as g,c as r,a as u};