@daoyi/nmtl-ui 1.1.24 → 1.1.26-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/Autocomplete.js +1 -1
- package/lib/components/Avatar.js +1 -1
- package/lib/components/BackTop.js +1 -1
- package/lib/components/Backdrop-0c72d47e.js +1 -0
- package/lib/components/Button-706e83ea.js +1 -0
- package/lib/components/Button.js +1 -1
- package/lib/components/ButtonBase-54fbcc3c.js +1 -0
- package/lib/components/Carousel.js +1 -1
- package/lib/components/Checkbox.js +1 -1
- package/lib/components/CircularProgress-8332110b.js +1 -0
- package/lib/components/ContactModal.js +17 -2
- package/lib/components/DialogTitle-826d8a28.js +1 -0
- package/lib/components/Drawer-bf4b1bef.js +1 -0
- package/lib/components/Drawer.js +1 -1
- package/lib/components/Empty.js +1 -1
- package/lib/components/Fade-edb8e7af.js +1 -0
- package/lib/components/FormControlLabel-b4f37c46.js +1 -0
- package/lib/components/Grow-e28280cd.js +1 -0
- package/lib/components/Header.js +1 -1
- package/lib/components/IconButton-f380331f.js +1 -0
- package/lib/components/InputMethod.js +3 -3
- package/lib/components/Loading.js +1 -1
- package/lib/components/MUITheme.js +1 -1
- package/lib/components/Modal-03889d3e.js +1 -0
- package/lib/components/Modal.js +1 -1
- package/lib/components/Paper-8eaa8df4.js +1 -0
- package/lib/components/{Popper-31c1ad7c.js → Popper-c6919a40.js} +2 -2
- package/lib/components/Portal-1b30ccbc.js +1 -0
- package/lib/components/Radio.js +1 -1
- package/lib/components/RadioGroup-d4f26bdf.js +1 -0
- package/lib/components/Select-22e8ba5e.js +1 -0
- package/lib/components/Select-e12cb52b.js +1 -0
- package/lib/components/Select.js +1 -1
- package/lib/components/Spin.js +1 -1
- package/lib/components/Table.js +1 -1
- package/lib/components/TextField-bb4fe7f3.js +1 -0
- package/lib/components/Tooltip.js +1 -1
- package/lib/components/TransitionGroupContext-2cd2fcd6.js +1 -0
- package/lib/components/Typography-fe7cdaf3.js +1 -0
- package/lib/components/_commonjsHelpers-ae1b5db5.js +1 -0
- package/lib/components/capitalize-017d2500.js +1 -0
- package/lib/components/createSvgIcon-3b1a21b0.js +1 -0
- package/lib/components/createSvgIcon-d9ed438f.js +1 -0
- package/lib/components/{debounce-a740abfa.js → debounce-4916cd99.js} +1 -1
- package/lib/components/index-d90e1489.js +7 -0
- package/lib/components/isMuiElement-3726d123.js +1 -0
- package/lib/components/isObjectLike-fbff54e4.js +1 -0
- package/lib/components/ownerWindow-ba2c31bc.js +1 -0
- package/lib/components/utils-7954d1aa.js +1 -0
- package/lib/components/withStyles-43125883.js +8 -0
- package/lib/index.d.ts +1 -2
- package/lib/index.js +1 -2
- package/package.json +3 -2
- package/lib/components/Backdrop-3c472376.js +0 -1
- package/lib/components/Button-6271d361.js +0 -1
- package/lib/components/ButtonBase-cfca0fe1.js +0 -1
- package/lib/components/CircularProgress-537ad812.js +0 -1
- package/lib/components/DialogTitle-e0e78621.js +0 -1
- package/lib/components/Drawer-da2ddeed.js +0 -1
- package/lib/components/Fade-4a3713bb.js +0 -1
- package/lib/components/FormControlLabel-6578b588.js +0 -1
- package/lib/components/Grow-f6a8f6bf.js +0 -1
- package/lib/components/IconButton-19970f38.js +0 -1
- package/lib/components/Modal-2e8b3262.js +0 -1
- package/lib/components/Paper-f4cc750c.js +0 -1
- package/lib/components/Portal-edb523c5.js +0 -1
- package/lib/components/RadioGroup-ebfc5e6d.js +0 -1
- package/lib/components/Select-3cea2ac2.js +0 -1
- package/lib/components/Select-812280cf.js +0 -1
- package/lib/components/Slide-ef2f2933.js +0 -1
- package/lib/components/SvgIcon-ae419ec7.js +0 -1
- package/lib/components/TextField-62bea25d.js +0 -1
- package/lib/components/Typography-8814c5aa.js +0 -1
- package/lib/components/capitalize-e92d0507.js +0 -8
- package/lib/components/createSvgIcon-ba256905.js +0 -1
- package/lib/components/createSvgIcon-c92a409c.js +0 -1
- package/lib/components/debounce-65582d84.js +0 -1
- package/lib/components/index-767b2843.js +0 -7
- package/lib/components/isMuiElement-64ad493a.js +0 -1
- package/lib/components/isObjectLike-4a391d5d.js +0 -1
- package/lib/components/muiNotifcationReducer-75669c4f.js +0 -15
- package/lib/components/ownerDocument-e276d08d.js +0 -1
- package/lib/components/ownerWindow-19cabe15.js +0 -1
- package/lib/components/react-router-dom-6469c1df.js +0 -1
- package/lib/components/useForkRef-58783e4b.js +0 -1
- package/lib/components/utils-256c7d92.js +0 -1
- package/lib/utils/notification.js +0 -1
|
@@ -1,15 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function n(n){return n&&n.ownerDocument||document}export{n as o};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o}from"./ownerDocument-e276d08d.js";function e(e){return o(e).defaultView||window}export{e as o};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|