@para-ui/core 2.2.2 → 2.2.5
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/AutoBox/index.js +1 -1
- package/Breadcrumbs/index.js +1 -1
- package/Checkbox/index.js +1 -1
- package/CheckboxGroup/index.js +1 -1
- package/ComboSelect/index.js +1 -1
- package/ComboSelect/interface.d.ts +2 -0
- package/ComboSelect/utils.d.ts +2 -3
- package/Form/index.js +1 -1
- package/FormItem/index.js +2 -2
- package/InputLang/index.js +1 -1
- package/OperateBtn/index.js +1 -1
- package/Pagination/index.js +1 -1
- package/Popover/index.js +1 -1
- package/README.md +14 -0
- package/Radio/index.js +1 -1
- package/RadioGroup/index.js +1 -1
- package/Select/index.js +1 -1
- package/SelectInput/index.js +1 -1
- package/Table/index.js +1 -1
- package/Transfer/index.js +1 -1
- package/Tree/index.js +1 -1
- package/cdn/AutoBox/index.js +1 -1
- package/cdn/Breadcrumbs/index.js +1 -1
- package/cdn/Checkbox/index.js +1 -1
- package/cdn/CheckboxGroup/index.js +1 -1
- package/cdn/ComboSelect/index.js +1 -1
- package/cdn/Form/index.js +1 -1
- package/cdn/FormItem/index.js +1 -1
- package/cdn/InputLang/index.js +1 -1
- package/cdn/OperateBtn/index.js +1 -1
- package/cdn/Pagination/index.js +1 -1
- package/cdn/Popover/index.js +1 -1
- package/cdn/Radio/index.js +1 -1
- package/cdn/RadioGroup/index.js +1 -1
- package/cdn/Select/index.js +1 -1
- package/cdn/SelectInput/index.js +1 -1
- package/cdn/Table/index.js +1 -1
- package/cdn/Transfer/index.js +1 -1
- package/cdn/Tree/index.js +1 -1
- package/index.js +1 -1
- package/package.json +2 -2
package/cdn/InputLang/index.js
CHANGED
|
@@ -141,4 +141,4 @@ object-assign
|
|
|
141
141
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
142
142
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
143
143
|
* SOFTWARE.
|
|
144
|
-
*/var r="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,i=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(r&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var o=r&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),i))}};function a(e){return e&&"[object Function]"==={}.toString.call(e)}function s(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function u(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function c(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=s(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:c(u(e))}function l(e){return e&&e.referenceNode?e.referenceNode:e}var f=r&&!(!window.MSInputMethodContext||!document.documentMode),d=r&&/MSIE 10/.test(navigator.userAgent);function p(e){return 11===e?f:10===e?d:f||d}function h(e){if(!e)return document.documentElement;for(var t=p(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===s(n,"position")?h(n):n:e?e.ownerDocument.documentElement:document.documentElement}function m(e){return null!==e.parentNode?m(e.parentNode):e}function v(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a,s,u=o.commonAncestorContainer;if(e!==u&&t!==u||r.contains(i))return"BODY"===(s=(a=u).nodeName)||"HTML"!==s&&h(a.firstElementChild)!==a?h(u):u;var c=m(e);return c.host?v(c.host,t):v(e,m(t).host)}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function g(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=y(t,"top"),i=y(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function b(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function x(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],p(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function w(e){var t=e.body,n=e.documentElement,r=p(10)&&getComputedStyle(n);return{height:x("Height",t,n,r),width:x("Width",t,n,r)}}var O=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},S=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),j=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function k(e){return E({},e,{right:e.left+e.width,bottom:e.top+e.height})}function C(e){var t={};try{if(p(10)){t=e.getBoundingClientRect();var n=y(e,"top"),r=y(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?w(e.ownerDocument):{},a=o.width||e.clientWidth||i.width,u=o.height||e.clientHeight||i.height,c=e.offsetWidth-a,l=e.offsetHeight-u;if(c||l){var f=s(e);c-=b(f,"x"),l-=b(f,"y"),i.width-=c,i.height-=l}return k(i)}function P(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=p(10),i="HTML"===t.nodeName,o=C(e),a=C(t),u=c(e),l=s(t),f=parseFloat(l.borderTopWidth),d=parseFloat(l.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var h=k({top:o.top-a.top-f,left:o.left-a.left-d,width:o.width,height:o.height});if(h.marginTop=0,h.marginLeft=0,!r&&i){var m=parseFloat(l.marginTop),v=parseFloat(l.marginLeft);h.top-=f-m,h.bottom-=f-m,h.left-=d-v,h.right-=d-v,h.marginTop=m,h.marginLeft=v}return(r&&!n?t.contains(u):t===u&&"BODY"!==u.nodeName)&&(h=g(h,t)),h}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=P(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:y(n),s=t?0:y(n,"left"),u={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return k(u)}function N(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===s(e,"position"))return!0;var n=u(e);return!!n&&N(n)}function T(e){if(!e||!e.parentElement||p())return document.documentElement;for(var t=e.parentElement;t&&"none"===s(t,"transform");)t=t.parentElement;return t||document.documentElement}function R(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?T(e):v(e,l(t));if("viewport"===r)o=Z(a,i);else{var s=void 0;"scrollParent"===r?"BODY"===(s=c(u(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var f=P(s,a,i);if("HTML"!==s.nodeName||N(a))o=f;else{var d=w(e.ownerDocument),p=d.height,h=d.width;o.top+=f.top-f.marginTop,o.bottom=p+f.top,o.left+=f.left-f.marginLeft,o.right=h+f.left}}var m="number"==typeof(n=n||0);return o.left+=m?n:n.left||0,o.top+=m?n:n.top||0,o.right-=m?n:n.right||0,o.bottom-=m?n:n.bottom||0,o}function M(e){return e.width*e.height}function A(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=R(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},u=Object.keys(s).map((function(e){return E({key:e},s[e],{area:M(s[e])})})).sort((function(e,t){return t.area-e.area})),c=u.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),l=c.length>0?c[0].key:u[0].key,f=e.split("-")[1];return l+(f?"-"+f:"")}function _(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?T(t):v(t,l(n));return P(n,i,r)}function L(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function I(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function z(e,t,n){n=n.split("-")[0];var r=L(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",u=o?"height":"width",c=o?"width":"height";return i[a]=t[a]+t[u]/2-r[u]/2,i[s]=n===s?t[s]-r[c]:t[I(s)],i}function F(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function D(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=F(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&a(n)&&(t.offsets.popper=k(t.offsets.popper),t.offsets.reference=k(t.offsets.reference),t=n(t,e))})),t}function B(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=_(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=A(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=z(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=D(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function H(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function U(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if(void 0!==document.body.style[o])return o}return null}function W(){return this.state.isDestroyed=!0,H(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[U("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function q(e){var t=e.ownerDocument;return t?t.defaultView:window}function $(e,t,n,r){var i="BODY"===e.nodeName,o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||$(c(o.parentNode),t,n,r),r.push(o)}function V(e,t,n,r){n.updateBound=r,q(e).addEventListener("resize",n.updateBound,{passive:!0});var i=c(e);return $(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function J(){this.state.eventsEnabled||(this.state=V(this.reference,this.options,this.state,this.scheduleUpdate))}function Y(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,q(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function K(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function G(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&K(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var X=r&&/Firefox/i.test(navigator.userAgent);function Q(e,t,n){var r=F(e,(function(e){return e.name===t})),i=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}var ee=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],te=ee.slice(3);function ne(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=te.indexOf(e),r=te.slice(n+1).concat(te.slice(0,n));return t?r.reverse():r}var re="flip",ie="clockwise",oe="counterclockwise";function ae(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(F(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(u)[0]]),[a[s].split(u)[1]].concat(a.slice(s+1))]:[a];return c=c.map((function(e,r){var i=(1===r?!o:o)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0===a.indexOf("%")){return k("%p"===a?n:r)[t]/100*o}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(e,i,t,n)}))})),c.forEach((function(e,t){e.forEach((function(n,r){K(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))}))})),i}var se={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",c=s?"width":"height",l={start:j({},u,o[u]),end:j({},u,o[u]+o[c]-a[c])};e.offsets.popper=E({},a,l[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],u=void 0;return u=K(+n)?[+n,0]:ae(n,o,a,s),"left"===s?(o.top+=u[0],o.left-=u[1]):"right"===s?(o.top+=u[0],o.left+=u[1]):"top"===s?(o.left+=u[0],o.top-=u[1]):"bottom"===s&&(o.left+=u[0],o.top+=u[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||h(e.instance.popper);e.instance.reference===n&&(n=h(n));var r=U("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var u=R(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=u;var c=t.priority,l=e.offsets.popper,f={primary:function(e){var n=l[e];return l[e]<u[e]&&!t.escapeWithReference&&(n=Math.max(l[e],u[e])),j({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=l[n];return l[e]>u[e]&&!t.escapeWithReference&&(r=Math.min(l[n],u[e]-("right"===e?l.width:l.height))),j({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=E({},l,f[t](e))})),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",u=a?"left":"top",c=a?"width":"height";return n[s]<o(r[u])&&(e.offsets.popper[u]=o(r[u])-n[c]),n[u]>o(r[s])&&(e.offsets.popper[u]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Q(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,u=o.reference,c=-1!==["left","right"].indexOf(i),l=c?"height":"width",f=c?"Top":"Left",d=f.toLowerCase(),p=c?"left":"top",h=c?"bottom":"right",m=L(r)[l];u[h]-m<a[d]&&(e.offsets.popper[d]-=a[d]-(u[h]-m)),u[d]+m>a[h]&&(e.offsets.popper[d]+=u[d]+m-a[h]),e.offsets.popper=k(e.offsets.popper);var v=u[d]+u[l]/2-m/2,y=s(e.instance.popper),g=parseFloat(y["margin"+f]),b=parseFloat(y["border"+f+"Width"]),x=v-e.offsets.popper[d]-g-b;return x=Math.max(Math.min(a[l]-m,x),0),e.arrowElement=r,e.offsets.arrow=(j(n={},d,Math.round(x)),j(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(H(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=R(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=I(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case re:a=[r,i];break;case ie:a=ne(r);break;case oe:a=ne(r,!0);break;default:a=t.behavior}return a.forEach((function(s,u){if(r!==s||a.length===u+1)return e;r=e.placement.split("-")[0],i=I(r);var c=e.offsets.popper,l=e.offsets.reference,f=Math.floor,d="left"===r&&f(c.right)>f(l.left)||"right"===r&&f(c.left)<f(l.right)||"top"===r&&f(c.bottom)>f(l.top)||"bottom"===r&&f(c.top)<f(l.bottom),p=f(c.left)<f(n.left),h=f(c.right)>f(n.right),m=f(c.top)<f(n.top),v=f(c.bottom)>f(n.bottom),y="left"===r&&p||"right"===r&&h||"top"===r&&m||"bottom"===r&&v,g=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(g&&"start"===o&&p||g&&"end"===o&&h||!g&&"start"===o&&m||!g&&"end"===o&&v),x=!!t.flipVariationsByContent&&(g&&"start"===o&&h||g&&"end"===o&&p||!g&&"start"===o&&v||!g&&"end"===o&&m),w=b||x;(d||y||w)&&(e.flipped=!0,(d||y)&&(r=a[u+1]),w&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=E({},e.offsets.popper,z(e.instance.popper,e.offsets.reference,e.placement)),e=D(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=I(t),e.offsets.popper=k(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Q(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=F(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=F(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:t.gpuAcceleration,s=h(e.instance.popper),u=C(s),c={position:i.position},l=function(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(e){return e},u=o(i.width),c=o(r.width),l=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),d=t?l||f||u%2==c%2?o:a:s,p=t?o:s;return{left:d(u%2==1&&c%2==1&&!f&&t?r.left-1:r.left),top:p(r.top),bottom:p(r.bottom),right:d(r.right)}}(e,window.devicePixelRatio<2||!X),f="bottom"===n?"top":"bottom",d="right"===r?"left":"right",p=U("transform"),m=void 0,v=void 0;if(v="bottom"===f?"HTML"===s.nodeName?-s.clientHeight+l.bottom:-u.height+l.bottom:l.top,m="right"===d?"HTML"===s.nodeName?-s.clientWidth+l.right:-u.width+l.right:l.left,a&&p)c[p]="translate3d("+m+"px, "+v+"px, 0)",c[f]=0,c[d]=0,c.willChange="transform";else{var y="bottom"===f?-1:1,g="right"===d?-1:1;c[f]=v*y,c[d]=m*g,c.willChange=f+", "+d}var b={"x-placement":e.placement};return e.attributes=E({},b,e.attributes),e.styles=E({},c,e.styles),e.arrowStyles=E({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return G(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&G(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,i){var o=_(i,t,e,n.positionFixed),a=A(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),G(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},ue={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:se},ce=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};O(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=o(this.update.bind(this)),this.options=E({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(E({},e.Defaults.modifiers,i.modifiers)).forEach((function(t){r.options.modifiers[t]=E({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return E({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&a(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return S(e,[{key:"update",value:function(){return B.call(this)}},{key:"destroy",value:function(){return W.call(this)}},{key:"enableEventListeners",value:function(){return J.call(this)}},{key:"disableEventListeners",value:function(){return Y.call(this)}}]),e}();ce.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,ce.placements=ee,ce.Defaults=ue,t.Z=ce},96630:function(e,t,n){"use strict";var r=n(63366),i=n(94578),o=n(8156),a=n.n(o),s=n(47111),u=n.n(s),c=n(6035),l=n(220),f="unmounted",d="exited",p="entering",h="entered",m="exiting",v=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=d,r.appearStatus=p):i=h:i=t.unmountOnExit||t.mountOnEnter?f:d,r.state={status:i},r.nextCallback=null,r}(0,i.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===f?{status:d}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==p&&n!==h&&(t=p):n!==p&&n!==h||(t=m)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===p?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===d&&this.setState({status:f})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[u().findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||c.Z.disabled?this.safeSetState({status:h},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:p},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:h},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:u().findDOMNode(this);t&&!c.Z.disabled?(this.props.onExit(r),this.safeSetState({status:m},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:d},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:d},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:u().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===f)return null;var t=this.props,n=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a().createElement(l.Z.Provider,{value:null},"function"==typeof n?n(e,i):a().cloneElement(a().Children.only(n),i))},t}(a().Component);function y(){}v.contextType=l.Z,v.propTypes={},v.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:y,onEntering:y,onEntered:y,onExit:y,onExiting:y,onExited:y},v.UNMOUNTED=f,v.EXITED=d,v.ENTERING=p,v.ENTERED=h,v.EXITING=m,t.ZP=v},220:function(e,t,n){"use strict";var r=n(8156),i=n.n(r);t.Z=i().createContext(null)},6035:function(e,t){"use strict";t.Z={disabled:!1}},89034:function(e,t,n){var r=n(93379),i=n(2565);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},62195:function(e,t,n){var r=n(93379),i=n(7381);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},2026:function(e,t,n){var r=n(93379),i=n(19916);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},13957:function(e,t,n){var r=n(93379),i=n(93603);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},80666:function(e,t,n){var r=n(93379),i=n(84928);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},13267:function(e,t,n){var r=n(93379),i=n(5714);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},61104:function(e,t,n){var r=n(93379),i=n(17843);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},24895:function(e,t,n){var r=n(93379),i=n(95845);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},98632:function(e,t,n){var r=n(93379),i=n(43637);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},42560:function(e,t,n){var r=n(93379),i=n(9929);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},93379:function(e,t,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},r=[],i=0;i<e.length;i++){var o=e[i],u=t.base?o[0]+t.base:o[0],c=n[u]||0,l="".concat(u," ").concat(c);n[u]=c+1;var f=s(l),d={css:o[1],media:o[2],sourceMap:o[3]};-1!==f?(a[f].references++,a[f].updater(d)):a.push({identifier:l,updater:v(d,t),references:1}),r.push(l)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=o(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,f=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function d(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function p(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,m=0;function v(e,t){var n,r,i;if(t.singleton){var o=m++;n=h||(h=c(t)),r=d.bind(null,n,o,!1),i=d.bind(null,n,o,!0)}else n=c(t),r=p.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var n=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=s(n[r]);a[i].references--}for(var o=u(e,t),c=0;c<n.length;c++){var l=s(n[c]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=o}}}},92796:function(e,t,n){"use strict";var r=n(8156),i=n.n(r),o=n(8398);n(89034);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e,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.")}()}t.default=function(e){var t=e.children,n=e.arrow,a=void 0!==n&&n,u=e.placement,c=void 0===u?"bottom-start":u,l=e.tips,f=void 0===l?"":l,d=e.className,p=void 0===d?"":d,h=e.beyondText,m=void 0===h||h,v=e.interactive,y=void 0===v||v,g=e.style,b=(0,r.useRef)(),x=s((0,r.useState)(""),2),w=x[0],O=x[1];(0,r.useEffect)((function(){O(f)}),[f]);var S;return i().createElement("div",{ref:b,className:(S="paraui-auto-tips",p&&(S+=" "+p),S),onMouseOver:function(){var e="";b.current&&b.current.scrollWidth>b.current.offsetWidth&&(e=f||(m?b.current.innerText:t)),O(e)},style:g},i().createElement(o.default,{arrow:a,title:w,placement:c,interactive:y,boundariesElement:"viewport",className:"paraui-auto-tips-tooltip"},i().createElement("div",{className:"auto-tips-content"},t)))}},68525:function(e,t,n){"use strict";var r=n(8156),i=n.n(r),o=n(8398),a=n(95670),s=n.n(a),u=n(86010);n(62195);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function l(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}t.default=function(e){var t=e.title,n=void 0===t?"":t,r=e.children,a=e.arrow,f=void 0===a||a,d=e.interactive,p=void 0===d||d,h=e.className,m=e.placement,v=void 0===m?"top-start":m,y=l(e,["title","children","arrow","interactive","className","placement"]);return i().createElement(o.default,c({title:n,arrow:f,interactive:p,placement:v},y),i().createElement("span",{className:(0,u.Z)("paraui-help",h)},r||i().createElement(s(),null)))}},18799:function(e,t,n){"use strict";var r=n(8156),i=n.n(r);n(2026);t.default=function(e){var t,n=e.className,r=e.style,o=e.error,a=void 0!==o&&o,s=e.helperText;return i().createElement("p",{className:(t="paraui-helper-text",n&&(t+=" "+n),a&&(t+=" paraui-helper-text-error"),t),style:r},s)}},17115:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(8156),i=n.n(r),o=n(65395),a=n.n(o);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){var n=i().useContext(a()).componentsProps;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}({},n&&n[t],e)}},50134:function(e,t,n){"use strict";var r=n(8156),i=n.n(r),o=n(68525);n(80666);t.default=function(e){var t=e.className,n=e.style,r=e.label,a=e.labelSign,s=e.required,u=void 0!==s&&s,c=e.tooltip,l=e.tooltipType,f=void 0===l?"icon":l,d=e.placement,p=e.arrow,h=e.tooltipIcon,m=function(){var e="paraui-label";return f&&(e+=" paraui-label-"+f),c&&(e+=" paraui-label-tooltip"),t&&(e+=" "+t),e};return i().createElement(i().Fragment,null,"icon"===f&&i().createElement("label",{className:m(),style:n},i().createElement(i().Fragment,null,r),u&&i().createElement("span",{className:"paraui-label-required"},"*"),a&&i().createElement("span",null,a),c&&i().createElement(o.default,{title:c,placement:d,arrow:p},h)),"line"===f&&i().createElement(o.default,{title:c||"",placement:d,arrow:p},i().createElement("label",{className:m(),style:n},i().createElement(i().Fragment,null,r),u&&i().createElement("span",{className:"paraui-label-required"},"*"),a&&i().createElement("span",null,a))))}},5927:function(e,t,n){"use strict";var r=n(8156),i=n.n(r),o=n(61217),a=n.n(o);n(13267);t.default=function(e){var t=e.className,n=e.style,o=e.opacity,s=void 0===o?.7:o,u=(0,r.useRef)(null);(0,r.useEffect)((function(){u&&u.current&&u.current.parentNode&&(u.current.parentNode.style.position||(u.current.parentNode.style.position="relative"))}),[]);var c;return i().createElement("div",{className:(c="paraui-loading",t&&(c+=" "+t),c),style:n,ref:u},i().createElement("div",{className:"paraui-loading-box"},i().createElement(a(),null)),i().createElement("div",{className:"paraui-loading-mask",style:{opacity:s}}))}},38219:function(e,t,n){"use strict";var r=n(8156),i=n.n(r),o=n(10758),a=n(50134),s=n(18799),u=n(54271),c=n.n(u),l=n(8344),f=n.n(l);n(61104);function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||y(e,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 v(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||y(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}t.default=function(e){var t=e.className,n=e.style,u=e.size,l=void 0===u?"large":u,d=e.placeholderKey,y=void 0===d?"":d,g=e.placeholderValue,b=void 0===g?"":g,x=e.label,w=void 0===x?"":x,O=e.labelTooltip,S=e.labelSign,j=e.disabled,E=void 0!==j&&j,k=e.required,C=void 0!==k&&k,P=e.error,Z=void 0!==P&&P,N=e.helperText,T=void 0===N?"":N,R=e.value,M=e.replaceFields,A=e.onChange,_=e.fetchSuggestionsKey,L=e.fetchSuggestionsValue,I=m((0,r.useState)([]),2),z=I[0],F=I[1],D=m((0,r.useState)({key:"label",value:"value"}),2),B=D[0],H=D[1];(0,r.useEffect)((function(){void 0!==e.defaultValue&&F(v(e.defaultValue))}),[]),(0,r.useEffect)((function(){void 0!==R&&F(v(R))}),[R]),(0,r.useEffect)((function(){if(M){var e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){p(e,t,n[t])}))}return e}({},B,M);H(e)}}),[M]);var U,W=function(t){return function(){E||(z.splice(t,1),void 0===e.value&&F(v(z)),A&&A(z))}},q=function(t,n){return function(r){z[n][t]=r.target.value,void 0===e.value&&F(v(z)),A&&A(z)}},$=function(e){return function(t,n){"key"===e?_&&_(t,n):L&&L(t,n)}},V=function(t,n){return function(r){z[n][t]=r,"object"==typeof r&&null!==r&&(z[n][t]=r.value),void 0===e.value&&F(v(z)),A&&A(z)}};return i().createElement("div",{className:(U="paraui-multi-box multi-box",t&&(U+=" "+t),l&&(U+=" multi-box-"+l),Z&&(U+=" multi-box-error"),E&&(U+=" multi-box-disabled"),U),style:n},function(){if(!w&&!S)return null;var e;return i().createElement(a.default,h({label:w,required:C,labelSign:S},O,{className:(e="multi-box-label",O&&O.className&&(e+=" "+O.className),e)}))}(),i().createElement("div",{className:"multi-box-content"},z.map((function(e,t){return i().createElement("div",{className:"multi-box-content-item",key:t},i().createElement("div",{className:"multi-box-content-item-input"},i().createElement(o.default,{size:l,disabled:E,placeholder:y,value:e[B.key||""],onChange:q(B.key||"",t),fetchSuggestions:_?$("key"):void 0,onSelect:V(B.key||"",t)}),i().createElement("span",null,":"),i().createElement(o.default,{size:l,disabled:E,placeholder:b,value:e[B.value||""],onChange:q(B.value||"",t),fetchSuggestions:L?$("value"):void 0,onSelect:V(B.value||"",t)})),i().createElement("span",{className:"single-box-content-item-svg"},i().createElement(f(),{onClick:W(t)})))}))),i().createElement("div",{className:"multi-box-add",onClick:function(){E||(z.push({}),void 0===e.value&&F(v(z)),A&&A(z))}},i().createElement(c(),null)),i().createElement(s.default,{className:"multi-box-error-text",error:Z,helperText:T}))}},36413:function(e,t,n){"use strict";n.d(t,{default:function(){return V}});var r=n(8156),i=n.n(r),o=n(87462),a=n(45987),s=n(47111),u=n(79437),c=n(86010),l=n(30626),f=n(80713),d=n(82568),p=n(52543),h=n(159),m=n(93869),v=n(76234),y=n(17294),g=n(55192),b=n(92781),x=n(15671),w=n(43144),O=n(89062);function S(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function j(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function E(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=[t,n].concat((0,O.Z)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===a.indexOf(e.tagName)&&S(e,i)}))}function k(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function C(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,l.Z)(e);return t.body===e?(0,f.Z)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=function(){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 t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(j(o)+a,"px"),n=(0,l.Z)(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(j(e)+a,"px")}))}var s=o.parentElement,u="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:u.style.overflow,key:"overflow",el:u}),u.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var P=function(){function e(){(0,x.Z)(this,e),this.modals=[],this.containers=[]}return(0,w.Z)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&S(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);E(t,e.mountNode,e.modalRef,r,!0);var i=k(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=k(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=C(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=k(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&S(e.modalRef,!0),E(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&S(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var Z=function(e){var t=e.children,n=e.disableAutoFocus,i=void 0!==n&&n,o=e.disableEnforceFocus,a=void 0!==o&&o,u=e.disableRestoreFocus,c=void 0!==u&&u,f=e.getDoc,d=e.isEnabled,p=e.open,h=r.useRef(),m=r.useRef(null),v=r.useRef(null),g=r.useRef(),b=r.useRef(null),x=r.useCallback((function(e){b.current=s.findDOMNode(e)}),[]),w=(0,y.Z)(t.ref,x),O=r.useRef();return r.useEffect((function(){O.current=p}),[p]),!O.current&&p&&"undefined"!=typeof window&&(g.current=f().activeElement),r.useEffect((function(){if(p){var e=(0,l.Z)(b.current);i||!b.current||b.current.contains(e.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex",-1),b.current.focus());var t=function(){null!==b.current&&(e.hasFocus()&&!a&&d()&&!h.current?b.current&&!b.current.contains(e.activeElement)&&b.current.focus():h.current=!1)},n=function(t){!a&&d()&&9===t.keyCode&&e.activeElement===b.current&&(h.current=!0,t.shiftKey?v.current.focus():m.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var r=setInterval((function(){t()}),50);return function(){clearInterval(r),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),c||(g.current&&g.current.focus&&g.current.focus(),g.current=null)}}}),[i,a,c,d,p]),r.createElement(r.Fragment,null,r.createElement("div",{tabIndex:0,ref:m,"data-test":"sentinelStart"}),r.cloneElement(t,{ref:w}),r.createElement("div",{tabIndex:0,ref:v,"data-test":"sentinelEnd"}))},N={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"}},T=r.forwardRef((function(e,t){var n=e.invisible,i=void 0!==n&&n,s=e.open,u=(0,a.Z)(e,["invisible","open"]);return s?r.createElement("div",(0,o.Z)({"aria-hidden":!0,ref:t},u,{style:(0,o.Z)({},N.root,i?N.invisible:{},u.style)})):null}));var R=new P,M=r.forwardRef((function(e,t){var n=(0,h.Z)(),i=(0,m.Z)({name:"MuiModal",props:(0,o.Z)({},e),theme:n}),u=i.BackdropComponent,c=void 0===u?T:u,f=i.BackdropProps,p=i.children,x=i.closeAfterTransition,w=void 0!==x&&x,O=i.container,j=i.disableAutoFocus,E=void 0!==j&&j,k=i.disableBackdropClick,C=void 0!==k&&k,P=i.disableEnforceFocus,N=void 0!==P&&P,M=i.disableEscapeKeyDown,A=void 0!==M&&M,_=i.disablePortal,L=void 0!==_&&_,I=i.disableRestoreFocus,z=void 0!==I&&I,F=i.disableScrollLock,D=void 0!==F&&F,B=i.hideBackdrop,H=void 0!==B&&B,U=i.keepMounted,W=void 0!==U&&U,q=i.manager,$=void 0===q?R:q,V=i.onBackdropClick,J=i.onClose,Y=i.onEscapeKeyDown,K=i.onRendered,G=i.open,X=(0,a.Z)(i,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),Q=r.useState(!0),ee=Q[0],te=Q[1],ne=r.useRef({}),re=r.useRef(null),ie=r.useRef(null),oe=(0,y.Z)(ie,t),ae=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(i),se=function(){return(0,l.Z)(re.current)},ue=function(){return ne.current.modalRef=ie.current,ne.current.mountNode=re.current,ne.current},ce=function(){$.mount(ue(),{disableScrollLock:D}),ie.current.scrollTop=0},le=(0,g.Z)((function(){var e=function(e){return e="function"==typeof e?e():e,s.findDOMNode(e)}(O)||se().body;$.add(ue(),e),ie.current&&ce()})),fe=r.useCallback((function(){return $.isTopModal(ue())}),[$]),de=(0,g.Z)((function(e){re.current=e,e&&(K&&K(),G&&fe()?ce():S(ie.current,!0))})),pe=r.useCallback((function(){$.remove(ue())}),[$]);if(r.useEffect((function(){return function(){pe()}}),[pe]),r.useEffect((function(){G?le():ae&&w||pe()}),[G,pe,ae,w,le]),!W&&!G&&(!ae||ee))return null;var he=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:b.Z}),me={};return void 0===p.props.tabIndex&&(me.tabIndex=p.props.tabIndex||"-1"),ae&&(me.onEnter=(0,d.Z)((function(){te(!1)}),p.props.onEnter),me.onExited=(0,d.Z)((function(){te(!0),w&&pe()}),p.props.onExited)),r.createElement(v.Z,{ref:de,container:O,disablePortal:L},r.createElement("div",(0,o.Z)({ref:oe,onKeyDown:function(e){"Escape"===e.key&&fe()&&(Y&&Y(e),A||(e.stopPropagation(),J&&J(e,"escapeKeyDown")))},role:"presentation"},X,{style:(0,o.Z)({},he.root,!G&&ee?he.hidden:{},X.style)}),H?null:r.createElement(c,(0,o.Z)({open:G,onClick:function(e){e.target===e.currentTarget&&(V&&V(e),!C&&J&&J(e,"backdropClick"))}},f)),r.createElement(Z,{disableEnforceFocus:N,disableAutoFocus:E,disableRestoreFocus:z,getDoc:se,isEnabled:fe,open:G},r.cloneElement(p,me))))})),A=n(20170),_=r.forwardRef((function(e,t){var n=e.classes,i=e.className,s=e.component,u=void 0===s?"div":s,l=e.square,f=void 0!==l&&l,d=e.elevation,p=void 0===d?1:d,h=e.variant,m=void 0===h?"elevation":h,v=(0,a.Z)(e,["classes","className","component","square","elevation","variant"]);return r.createElement(u,(0,o.Z)({className:(0,c.Z)(n.root,i,"outlined"===m?n.outlined:n["elevation".concat(p)],!f&&n.rounded),ref:t},v))})),L=(0,p.Z)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),(0,o.Z)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(_);function I(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function z(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function F(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function D(e){return"function"==typeof e?e():e}var B=r.forwardRef((function(e,t){var n=e.action,i=e.anchorEl,p=e.anchorOrigin,h=void 0===p?{vertical:"top",horizontal:"left"}:p,m=e.anchorPosition,v=e.anchorReference,y=void 0===v?"anchorEl":v,g=e.children,b=e.classes,x=e.className,w=e.container,O=e.elevation,S=void 0===O?8:O,j=e.getContentAnchorEl,E=e.marginThreshold,k=void 0===E?16:E,C=e.onEnter,P=e.onEntered,Z=e.onEntering,N=e.onExit,T=e.onExited,R=e.onExiting,_=e.open,B=e.PaperProps,H=void 0===B?{}:B,U=e.transformOrigin,W=void 0===U?{vertical:"top",horizontal:"left"}:U,q=e.TransitionComponent,$=void 0===q?A.Z:q,V=e.transitionDuration,J=void 0===V?"auto":V,Y=e.TransitionProps,K=void 0===Y?{}:Y,G=(0,a.Z)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),X=r.useRef(),Q=r.useCallback((function(e){if("anchorPosition"===y)return m;var t=D(i),n=(t&&1===t.nodeType?t:(0,l.Z)(X.current).body).getBoundingClientRect(),r=0===e?h.vertical:"center";return{top:n.top+I(n,r),left:n.left+z(n,h.horizontal)}}),[i,h.horizontal,h.vertical,m,y]),ee=r.useCallback((function(e){var t=0;if(j&&"anchorEl"===y){var n=j(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[h.vertical,y,j]),te=r.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:I(e,W.vertical)+t,horizontal:z(e,W.horizontal)}}),[W.horizontal,W.vertical]),ne=r.useCallback((function(e){var t=ee(e),n={width:e.offsetWidth,height:e.offsetHeight},r=te(n,t);if("none"===y)return{top:null,left:null,transformOrigin:F(r)};var o=Q(t),a=o.top-r.vertical,s=o.left-r.horizontal,u=a+n.height,c=s+n.width,l=(0,f.Z)(D(i)),d=l.innerHeight-k,p=l.innerWidth-k;if(a<k){var h=a-k;a-=h,r.vertical+=h}else if(u>d){var m=u-d;a-=m,r.vertical+=m}if(s<k){var v=s-k;s-=v,r.horizontal+=v}else if(c>p){var g=c-p;s-=g,r.horizontal+=g}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:F(r)}}),[i,y,Q,ee,te,k]),re=r.useCallback((function(){var e=X.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]),ie=r.useCallback((function(e){X.current=s.findDOMNode(e)}),[]);r.useEffect((function(){_&&re()})),r.useImperativeHandle(n,(function(){return _?{updatePosition:function(){re()}}:null}),[_,re]),r.useEffect((function(){if(_){var e=(0,u.Z)((function(){re()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[_,re]);var oe=J;"auto"!==J||$.muiSupportAuto||(oe=void 0);var ae=w||(i?(0,l.Z)(D(i)).body:void 0);return r.createElement(M,(0,o.Z)({container:ae,open:_,ref:t,BackdropProps:{invisible:!0},className:(0,c.Z)(b.root,x)},G),r.createElement($,(0,o.Z)({appear:!0,in:_,onEnter:C,onEntered:P,onExit:N,onExited:T,onExiting:R,timeout:oe},K,{onEntering:(0,d.Z)((function(e,t){Z&&Z(e,t),re()}),K.onEntering)}),r.createElement(L,(0,o.Z)({elevation:S,ref:ie},H,{className:(0,c.Z)(b.paper,H.className)}),g)))})),H=(0,p.Z)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(B);n(24895);function U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W(){return W=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W.apply(this,arguments)}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){U(e,t,n[t])}))}return e}function $(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var V=function(e){var t,n=e.className,r=e.children,o=e.classes,a=e.style,s=$(e,["className","children","classes","style"]);return i().createElement(H,W({style:q({zIndex:1500},a),className:(t="paraui-popover",n&&(t+=" "+n),t),classes:{paper:o?"paraui-popover-paper ".concat(o):"paraui-popover-paper"}},s),r)}},10758:function(e,t,n){"use strict";var r=n(8156),i=n.n(r),o=n(50134),a=n(58543),s=n(68926),u=n.n(s),c=n(20987),l=n.n(c),f=n(73730),d=n.n(f),p=n(92796),h=n(5927),m=n(8398),v=n(18799),y=n(17115);n(98632);function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}function x(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}(e,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.")}()}var O=function(e){return"number"==typeof e&&!isNaN(e)};t.default=function(e){var t=(0,y.Z)(e,"TextField"),n=t.className,s=t.style,c=t.size,f=void 0===c?"large":c,g=t.labelMode,S=void 0===g?"outside":g,j=t.placeholder,E=void 0===j?"":j,k=t.label,C=void 0===k?"":k,P=t.labelTooltip,Z=t.disabled,N=void 0!==Z&&Z,T=t.multiline,R=void 0!==T&&T,M=t.required,A=void 0!==M&&M,_=t.labelSign,L=t.rows,I=void 0===L?2:L,z=t.error,F=void 0!==z&&z,D=t.helperText,B=void 0===D?"":D,H=t.addonBefore,U=void 0===H?"":H,W=t.addonAfter,q=void 0===W?"":W,$=(t.defaultValue,t.value),V=t.autoFocus,J=void 0!==V&&V,Y=t.type,K=void 0===Y?"text":Y,G=t.onClickIcon,X=t.rightIcon,Q=t.showRightIcon,ee=void 0===Q||Q,te=t.allowClear,ne=void 0!==te&&te,re=t.limitLength,ie=t.fetchSuggestions,oe=t.selectPopoverClass,ae=t.renderSelectItem,se=t.showSelectName,ue=void 0===se?"value":se,ce=t.resize,le=void 0===ce||ce,fe=t.onBlur,de=t.onFocus,pe=t.onChange,he=t.onKeydown,me=t.onKeyUp,ve=t.onEnter,ye=t.onClickAddonBefore,ge=t.onClickAddonAfter,be=t.onSelect,xe=t.onClear,we=x(t,["className","style","size","labelMode","placeholder","label","labelTooltip","disabled","multiline","required","labelSign","rows","error","helperText","addonBefore","addonAfter","defaultValue","value","autoFocus","type","onClickIcon","rightIcon","showRightIcon","allowClear","limitLength","fetchSuggestions","selectPopoverClass","renderSelectItem","showSelectName","resize","onBlur","onFocus","onChange","onKeydown","onKeyUp","onEnter","onClickAddonBefore","onClickAddonAfter","onSelect","onClear"]),Oe=w((0,r.useState)("text-field-select-content-"+(0,a.UUID)()),1)[0],Se=w((0,r.useState)(!0),2),je=Se[0],Ee=Se[1],ke=w((0,r.useState)(""),2),Ce=ke[0],Pe=ke[1],Ze=w((0,r.useState)(!1),2),Ne=Ze[0],Te=Ze[1],Re=w((0,r.useState)("text"),2),Me=Re[0],Ae=Re[1],_e=w((0,r.useState)(!1),2),Le=_e[0],Ie=_e[1],ze=w((0,r.useState)(!1),2),Fe=ze[0],De=ze[1],Be=w((0,r.useState)([]),2),He=Be[0],Ue=Be[1],We=(0,r.useRef)(null),qe=(0,r.useRef)(null);(0,r.useEffect)((function(){void 0!==e.defaultValue&&Pe(e.defaultValue)}),[]),(0,r.useEffect)((function(){K!==Me&&Ae(K)}),[K]),(0,r.useEffect)((function(){void 0!==$&&Pe($)}),[$]),(0,r.useEffect)((function(){Ee(""===Ce||void 0===Ce)}),[Ce]),(0,r.useEffect)((function(){ie&&Ie(Ne)}),[Ne,ie]),(0,r.useEffect)((function(){return Le?window.addEventListener("keydown",Ge):window.removeEventListener("keydown",Ge),function(){window.removeEventListener("keydown",Ge)}}),[Le]),(0,r.useEffect)((function(){if(!Ne&&Ce){var t=Ve(Ce);if(t!==Ce){var n={};n.target=We.current,n.target.value=t,void 0===e.value&&Pe(t),e.onChange&&e.onChange(n)}}}),[Ce,Ne]);var $e,Ve=function(t){var n=t;return O(e.limitLength)&&t.toString().length>Number(e.limitLength)&&(n=n.toString().substr(0,e.limitLength)),n},Je=function(){N||(Ee(!1),(We&&We.current).focus())},Ye=function(e){var t=e.selectDom,n=e.keyCode,r=e.currentDom,i="nextSibling",o=".text-field-select-content-item";38===n&&(i="previousSibling",o=".text-field-select-content-item:last-child"),r?(r=r[i])||(r=t.querySelector(o)):r=t.querySelector(".text-field-select-content-item"),r&&(r.classList.add("text-field-select-content-item-keydown"),Ke(r,t))},Ke=function(e,t){var n=t.clientHeight,r=e.offsetTop+e.clientHeight-n;t.scrollTop=r>0?r:0},Ge=function(e){var t=document.querySelector("."+Oe),n=null,r=t.querySelector(".text-field-select-content-item-keydown");if(13===e.keyCode&&r){var i=r.dataset.val;st(JSON.parse(i))(e),(We&&We.current).blur()}r&&(n=r,r.classList.remove("text-field-select-content-item-keydown")),40===e.keyCode&&Ye({selectDom:t,keyCode:e.keyCode,currentDom:n}),38===e.keyCode&&Ye({selectDom:t,keyCode:e.keyCode,currentDom:n})},Xe=function(e){Te(!1),""===e.target.value&&Ee(!0),fe&&fe(e)},Qe=function(e){ie&&(De(!0),ie(e,(function(e){Ue(e||[]),De(!1)})))},et=function(e){Te(!0),de&&de(e),Qe(e.target.value)},tt=function(t){var n=t.target.value;n&&Ee(!1),void 0===e.value&&Pe(n),pe&&pe(t),Qe(t.target.value)},nt=function(e){13===e.keyCode&&ve&&ve(e),he&&he(e)},rt=function(e){me&&me(e)},it=function(e){"password"===K&&("text"===Me&&Ae("password"),"password"===Me&&Ae("text")),G&&G(e)},ot=function(){return void 0===e.value?Ce:$},at=function(){Ie(!1)},st=function(e){return function(t){be&&be(e)}},ut=(0,r.useMemo)((function(){return i().createElement(i().Fragment,null,O(re)&&i().createElement("span",{className:"length-limit"},(Ce?Ce.toString().length:0)+"/"+re))}),[re,Ce]),ct=(0,r.useMemo)((function(){var e=X||("password"===K?"password"===Me?i().createElement(u(),null):i().createElement(l(),null):null);return i().createElement(i().Fragment,null,ee&&e&&i().createElement("span",{className:"password"===K?"right-icon right-icon-password":"right-icon",onClick:it},e))}),[ee,X,K,Me,G]),lt=function(){var t=We.current;t.value="",void 0===e.value&&Pe(""),pe&&pe({target:t}),Qe(""),xe&&xe()},ft=(0,r.useMemo)((function(){return i().createElement("div",{className:"text-field-content-within",ref:qe},i().createElement("div",{className:"text-field-content-within-input"},R?i().createElement("textarea",b({ref:We,rows:I,value:ot(),onBlur:Xe,onFocus:et,onChange:tt,onKeyDown:nt,onKeyUp:rt,disabled:N},we)):i().createElement("input",b({ref:We,type:Me,value:ot(),onBlur:Xe,onFocus:et,onChange:tt,onKeyDown:nt,onKeyUp:rt,disabled:N},we)),je&&!Ne&&i().createElement("span",{className:"text-field-label-placeholder",onClick:Je},"outside"===S?E:i().createElement(i().Fragment,null,C||E,A&&i().createElement("span",{className:"text-field-required"},"*"),_&&i().createElement("span",null,_)))),function(){if(ot()&&!N&&ne)return i().createElement("span",{className:"clean-up-icon",onClick:lt},i().createElement(d(),null))}(),ut,ct)}),[je,Ne,J,Me,Ce,ut,ct,S,E,C,N,R,I,we,pe,ie,G,ne,xe]),dt=(0,r.useMemo)((function(){var e;return i().createElement("div",{className:(e="text-field-select-content",Fe&&(e+=" text-field-select-content-loading"),Oe&&(e+=" "+Oe),e),style:{width:(qe&&qe.current?qe.current.offsetWidth:0)+"px"}},He&&He.map((function(e,t){return i().createElement("div",{className:"text-field-select-content-item",key:t,onMouseDown:st(e),"data-val":JSON.stringify(e)},ae?ae(e):i().createElement(p.default,null,function(e){return"object"==typeof e&&null!==e?e[ue]:e}(e)))})),Fe&&i().createElement(h.default,null))}),[qe,Le,He,ae,ue,be,Fe,Oe]),pt=(0,r.useMemo)((function(){return i().createElement(m.default,{open:Le,title:dt,onClose:at,arrow:!1,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,placement:"bottom-start",classes:{popper:(e="paraui-text-field-select paraui-scrollbar-small",f&&(e+=" paraui-text-field-select-"+f),oe&&(e+=" "+oe),He.length>0&&(e+=" paraui-text-field-select-data"),e)}},ft);var e}),[je,Ne,J,Me,Ce,ut,ct,S,E,C,N,R,I,we,pe,ie,be,qe,Le,oe,f,G,He,ne,xe]),ht=(0,r.useMemo)((function(){var e,t=Boolean(A||_||C);if("outside"===S&&t){return i().createElement(o.default,b({label:C,required:A,labelSign:_},P,{className:(e="text-field-label",P&&P.className&&(e+=" "+P.className),e)}))}return null}),[S,C,_,A,P]);return i().createElement("div",{className:($e="paraui-text-field",$e+=" text-field",f&&!R&&($e+=" text-field-"+f),n&&($e+=" "+n),F&&($e+=" text-field-error"),Ne&&($e+=" text-field-focus"),N&&($e+=" text-field-disabled"),R&&($e+=" text-field-multiline"),O(e.limitLength)&&($e+=" text-field-limit-length"),O(e.limitLength)&&Ce&&Ce.toString().length>Number(e.limitLength)&&($e+=" text-field-limit"),le&&($e+=" text-field-resize"),ot()&&($e+=" text-field-value"),ne&&($e+=" text-field-allow-clear"),$e),style:s},ht,i().createElement("div",{className:"text-field-content"},U&&i().createElement("div",{className:"text-field-content-before",onClick:function(e){ye&&ye(e)}},U),ie?pt:ft,q&&i().createElement("div",{className:"text-field-content-after",onClick:function(e){ge&&ge(e)}},q)),i().createElement(v.default,{className:"text-field-error-text",error:F,helperText:B}))}},8398:function(e,t,n){"use strict";n.d(t,{default:function(){return T}});var r=n(8156),i=n.n(r),o=n(87462),a=n(93324),s=n(45987),u=n(4942),c=n(47111),l=n(86010),f=n(35953),d=n(59693),p=n(52543),h=n(93871),m=n(20170),v=n(43606),y=n(17294);var g=n(34236),b=n(24896);var x=n(8920);function w(e){return Math.round(1e5*e)/1e5}var O=!1,S=null;var j=r.forwardRef((function(e,t){var n=e.arrow,i=void 0!==n&&n,u=e.children,d=e.classes,p=e.disableFocusListener,w=void 0!==p&&p,j=e.disableHoverListener,E=void 0!==j&&j,k=e.disableTouchListener,C=void 0!==k&&k,P=e.enterDelay,Z=void 0===P?100:P,N=e.enterNextDelay,T=void 0===N?0:N,R=e.enterTouchDelay,M=void 0===R?700:R,A=e.id,_=e.interactive,L=void 0!==_&&_,I=e.leaveDelay,z=void 0===I?0:I,F=e.leaveTouchDelay,D=void 0===F?1500:F,B=e.onClose,H=e.onOpen,U=e.open,W=e.placement,q=void 0===W?"bottom":W,$=e.PopperComponent,V=void 0===$?v.Z:$,J=e.PopperProps,Y=e.title,K=e.TransitionComponent,G=void 0===K?m.Z:K,X=e.TransitionProps,Q=(0,s.Z)(e,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"]),ee=(0,x.Z)(),te=r.useState(),ne=te[0],re=te[1],ie=r.useState(null),oe=ie[0],ae=ie[1],se=r.useRef(!1),ue=r.useRef(),ce=r.useRef(),le=r.useRef(),fe=r.useRef(),de=function(e){var t=e.controlled,n=e.default,i=(e.name,e.state,r.useRef(void 0!==t).current),o=r.useState(n),a=o[0],s=o[1];return[i?t:a,r.useCallback((function(e){i||s(e)}),[])]}({controlled:U,default:!1,name:"Tooltip",state:"open"}),pe=(0,a.Z)(de,2),he=pe[0],me=pe[1],ve=he,ye=function(e){var t=r.useState(e),n=t[0],i=t[1],o=e||n;return r.useEffect((function(){null==n&&i("mui-".concat(Math.round(1e5*Math.random())))}),[n]),o}(A);r.useEffect((function(){return function(){clearTimeout(ue.current),clearTimeout(ce.current),clearTimeout(le.current),clearTimeout(fe.current)}}),[]);var ge=function(e){clearTimeout(S),O=!0,me(!0),H&&H(e)},be=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=u.props;"mouseover"===t.type&&n.onMouseOver&&e&&n.onMouseOver(t),se.current&&"touchstart"!==t.type||(ne&&ne.removeAttribute("title"),clearTimeout(ce.current),clearTimeout(le.current),Z||O&&T?(t.persist(),ce.current=setTimeout((function(){ge(t)}),O?T:Z)):ge(t))}},xe=(0,b.Z)(),we=xe.isFocusVisible,Oe=xe.onBlurVisible,Se=xe.ref,je=r.useState(!1),Ee=je[0],ke=je[1],Ce=function(){Ee&&(ke(!1),Oe())},Pe=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){ne||re(t.currentTarget),we(t)&&(ke(!0),be()(t));var n=u.props;n.onFocus&&e&&n.onFocus(t)}},Ze=function(e){clearTimeout(S),S=setTimeout((function(){O=!1}),800+z),me(!1),B&&B(e),clearTimeout(ue.current),ue.current=setTimeout((function(){se.current=!1}),ee.transitions.duration.shortest)},Ne=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=u.props;"blur"===t.type&&(n.onBlur&&e&&n.onBlur(t),Ce()),"mouseleave"===t.type&&n.onMouseLeave&&t.currentTarget===ne&&n.onMouseLeave(t),clearTimeout(ce.current),clearTimeout(le.current),t.persist(),le.current=setTimeout((function(){Ze(t)}),z)}},Te=function(e){se.current=!0;var t=u.props;t.onTouchStart&&t.onTouchStart(e)},Re=(0,y.Z)(re,t),Me=(0,y.Z)(Se,Re),Ae=r.useCallback((function(e){(0,g.Z)(Me,c.findDOMNode(e))}),[Me]),_e=(0,y.Z)(u.ref,Ae);""===Y&&(ve=!1);var Le=!ve&&!E,Ie=(0,o.Z)({"aria-describedby":ve?ye:null,title:Le&&"string"==typeof Y?Y:null},Q,u.props,{className:(0,l.Z)(Q.className,u.props.className),onTouchStart:Te,ref:_e}),ze={};C||(Ie.onTouchStart=function(e){Te(e),clearTimeout(le.current),clearTimeout(ue.current),clearTimeout(fe.current),e.persist(),fe.current=setTimeout((function(){be()(e)}),M)},Ie.onTouchEnd=function(e){u.props.onTouchEnd&&u.props.onTouchEnd(e),clearTimeout(fe.current),clearTimeout(le.current),e.persist(),le.current=setTimeout((function(){Ze(e)}),D)}),E||(Ie.onMouseOver=be(),Ie.onMouseLeave=Ne(),L&&(ze.onMouseOver=be(!1),ze.onMouseLeave=Ne(!1))),w||(Ie.onFocus=Pe(),Ie.onBlur=Ne(),L&&(ze.onFocus=Pe(!1),ze.onBlur=Ne(!1)));var Fe=r.useMemo((function(){return(0,f.Z)({popperOptions:{modifiers:{arrow:{enabled:Boolean(oe),element:oe}}}},J)}),[oe,J]);return r.createElement(r.Fragment,null,r.cloneElement(u,Ie),r.createElement(V,(0,o.Z)({className:(0,l.Z)(d.popper,L&&d.popperInteractive,i&&d.popperArrow),placement:q,anchorEl:ne,open:!!ne&&ve,id:Ie["aria-describedby"],transition:!0},ze,Fe),(function(e){var t=e.placement,n=e.TransitionProps;return r.createElement(G,(0,o.Z)({timeout:ee.transitions.duration.shorter},n,X),r.createElement("div",{className:(0,l.Z)(d.tooltip,d["tooltipPlacement".concat((0,h.Z)(t.split("-")[0]))],se.current&&d.touch,i&&d.tooltipArrow)},Y,i?r.createElement("span",{className:d.arrow,ref:ae}):null))})))})),E=(0,p.Z)((function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none"},popperInteractive:{pointerEvents:"auto"},popperArrow:{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}},tooltip:{backgroundColor:(0,d.U1)(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(w(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},tooltipArrow:{position:"relative",margin:"0"},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:(0,d.U1)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(w(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:(0,u.Z)({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:(0,u.Z)({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:(0,u.Z)({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:(0,u.Z)({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip",flip:!1})(j);n(42560);function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(){return C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C.apply(this,arguments)}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){k(e,t,n[t])}))}return e}function Z(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function N(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var T=function(e){var t,n=e.placement,r=void 0===n?"top-start":n,o=e.className,a=e.arrow,s=void 0===a||a,u=e.PopperProps,c=e.boundariesElement,f=void 0===c?"scrollParent":c,d=N(e,["placement","className","arrow","PopperProps","boundariesElement"]),p=Z(P({},e.classes),{popper:(0,l.Z)("paraui-tooltip",o,null===(t=e.classes)||void 0===t?void 0:t.popper,{"paraui-tooltip-left-right":(null==r?void 0:r.includes("left"))||(null==r?void 0:r.includes("right")),"paraui-tooltip-top-bottom":(null==r?void 0:r.includes("top"))||(null==r?void 0:r.includes("bottom"))})});return i().createElement(E,C({},d,{enterTouchDelay:0,arrow:s,placement:r,classes:p,PopperProps:Z(P({},u),{modifiers:{preventOverflow:{boundariesElement:f}}})}))}},65395:function(e){"use strict";e.exports=r},58543:function(e){"use strict";e.exports=n},8156:function(t){"use strict";t.exports=e},47111:function(e){"use strict";e.exports=t},30907:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},83878:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:function(){return r}})},45057:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(30907);function i(e){if(Array.isArray(e))return(0,r.Z)(e)}},97326:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},15671:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},43144:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:function(){return i}})},4942:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},87462:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:function(){return r}})},94578:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(89611);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},59199:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return r}})},31902:function(e,t,n){"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}n.d(t,{Z:function(){return r}})},25267:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},42786:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},45987:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(63366);function i(e,t){if(null==e)return{};var n,i,o=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},63366:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{Z:function(){return r}})},89611:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},93324:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(83878),i=n(31902),o=n(40181),a=n(25267);function s(e,t){return(0,r.Z)(e)||(0,i.Z)(e,t)||(0,o.Z)(e,t)||(0,a.Z)()}},89062:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(45057),i=n(59199),o=n(40181),a=n(42786);function s(e){return(0,r.Z)(e)||(0,i.Z)(e)||(0,o.Z)(e)||(0,a.Z)()}},71002:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},40181:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(30907);function i(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,exports:{}};return i[e](n,n.exports,a),n.exports}a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nc=void 0;var s={};return function(){"use strict";a.r(s),a.d(s,{InputLang:function(){return v}});var e=a(8156),t=a.n(e),n=a(10758),r=a(38219),i=a(36413),o=a(21512),u=a.n(o),c=a(58543);a(13957);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){f(e,t,n[t])}))}return e}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||m(e,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 h(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}var v=function(o){var a=o.className,s=void 0===a?"":a,l=o.style,f=o.label,m=void 0===f?"":f,v=o.labelTooltip,y=o.size,g=void 0===y?"large":y,b=o.placeholder,x=void 0===b?"":b,w=o.placeholderKey,O=void 0===w?"":w,S=o.placeholderValue,j=void 0===S?"":S,E=o.error,k=void 0!==E&&E,C=o.helperText,P=void 0===C?"":C,Z=o.required,N=void 0!==Z&&Z,T=o.popoverClassName,R=o.value,M=o.onChange,A=o.langList,_=void 0===A?["zh","en"]:A,L=o.disabled,I=void 0!==L&&L,z=p((0,e.useState)(!1),2),F=z[0],D=z[1],B=p((0,e.useState)(null),2),H=B[0],U=B[1],W=p((0,e.useState)("input-lang-"+(0,c.UUID)()),1)[0],q=p((0,e.useState)((0,c.GetLanguage)()||"zh"),1)[0],$=p((0,e.useState)({}),2),V=$[0],J=$[1],Y=p((0,e.useState)([]),2),K=Y[0],G=Y[1];(0,e.useEffect)((function(){void 0!==o.defaultValue&&Q(o.defaultValue)}),[]),(0,e.useEffect)((function(){void 0!==R&&Q(R)}),[R]);var X,Q=function(e){var t=d({},e);void 0===t[q]&&(t[q]="");for(var n=Object.keys(t),r=[],i=0,o=n.length;i<o;i++){var a=n[i],s=t[a];a!==q&&r.push({label:a,value:s})}G(r),J(t)},ee=function(e){G(h(e))},te=function(e,t){for(var n=[],r=(0,c.ArrayToObject)("label",K),i=0,o=_.length;i<o;i++){var a=_[i];r[a]||a===q||n.push({label:a,value:a})}t(n)},ne=function(){U(null),D(!1);var e={};e[q]=V[q];for(var t=0,n=K.length;t<n;t++){var r=K[t];r.label&&(e[r.label]=r.value||"")}void 0===o.value&&J(d({},e)),M&&M(d({},e))},re=(0,e.useMemo)((function(){return t().createElement("div",null,q)}),[q]),ie=(0,e.useMemo)((function(){return t().createElement("div",{className:"lang-list-icon"},t().createElement(u(),null))}),[]),oe=(0,e.useMemo)((function(){return t().createElement(i.default,{open:F,anchorEl:H,onClose:ne,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},className:(e="paraui-input-lang-popover",T&&(e+=" "+T),e)},t().createElement("div",{className:"input-lang-list"},t().createElement(r.default,{size:g,disabled:I,value:K,onChange:ee,fetchSuggestionsKey:te,placeholderKey:O,placeholderValue:j})));var e}),[F,T,K,O,j,q,_,g,I]);return t().createElement("div",{className:(X="paraui-input-lang input-lang",X+=" "+W,g&&(X+=" input-lang-"+g),s&&(X+=" "+s),X),style:l},t().createElement(n.default,{size:g,error:k,disabled:I,required:N,helperText:P,label:m,labelTooltip:v,placeholder:x,value:V[q],addonAfter:ie,addonBefore:re,onClickAddonAfter:function(){var e=document.querySelector("."+W+" .text-field-content-after");U(e),D(!0)},onChange:function(e){V[q]=e.target.value;var t=d({},V);void 0===o.value&&J(t),M&&M(t)}}),oe)};s.default=v}(),s}()}));
|
|
144
|
+
*/var r="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,i=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(r&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var o=r&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),i))}};function a(e){return e&&"[object Function]"==={}.toString.call(e)}function s(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function u(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function c(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=s(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:c(u(e))}function l(e){return e&&e.referenceNode?e.referenceNode:e}var f=r&&!(!window.MSInputMethodContext||!document.documentMode),d=r&&/MSIE 10/.test(navigator.userAgent);function p(e){return 11===e?f:10===e?d:f||d}function h(e){if(!e)return document.documentElement;for(var t=p(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===s(n,"position")?h(n):n:e?e.ownerDocument.documentElement:document.documentElement}function m(e){return null!==e.parentNode?m(e.parentNode):e}function v(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a,s,u=o.commonAncestorContainer;if(e!==u&&t!==u||r.contains(i))return"BODY"===(s=(a=u).nodeName)||"HTML"!==s&&h(a.firstElementChild)!==a?h(u):u;var c=m(e);return c.host?v(c.host,t):v(e,m(t).host)}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function g(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=y(t,"top"),i=y(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function b(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function x(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],p(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function w(e){var t=e.body,n=e.documentElement,r=p(10)&&getComputedStyle(n);return{height:x("Height",t,n,r),width:x("Width",t,n,r)}}var O=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},S=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),j=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function k(e){return E({},e,{right:e.left+e.width,bottom:e.top+e.height})}function C(e){var t={};try{if(p(10)){t=e.getBoundingClientRect();var n=y(e,"top"),r=y(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?w(e.ownerDocument):{},a=o.width||e.clientWidth||i.width,u=o.height||e.clientHeight||i.height,c=e.offsetWidth-a,l=e.offsetHeight-u;if(c||l){var f=s(e);c-=b(f,"x"),l-=b(f,"y"),i.width-=c,i.height-=l}return k(i)}function P(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=p(10),i="HTML"===t.nodeName,o=C(e),a=C(t),u=c(e),l=s(t),f=parseFloat(l.borderTopWidth),d=parseFloat(l.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var h=k({top:o.top-a.top-f,left:o.left-a.left-d,width:o.width,height:o.height});if(h.marginTop=0,h.marginLeft=0,!r&&i){var m=parseFloat(l.marginTop),v=parseFloat(l.marginLeft);h.top-=f-m,h.bottom-=f-m,h.left-=d-v,h.right-=d-v,h.marginTop=m,h.marginLeft=v}return(r&&!n?t.contains(u):t===u&&"BODY"!==u.nodeName)&&(h=g(h,t)),h}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=P(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:y(n),s=t?0:y(n,"left"),u={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return k(u)}function N(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===s(e,"position"))return!0;var n=u(e);return!!n&&N(n)}function T(e){if(!e||!e.parentElement||p())return document.documentElement;for(var t=e.parentElement;t&&"none"===s(t,"transform");)t=t.parentElement;return t||document.documentElement}function R(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?T(e):v(e,l(t));if("viewport"===r)o=Z(a,i);else{var s=void 0;"scrollParent"===r?"BODY"===(s=c(u(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var f=P(s,a,i);if("HTML"!==s.nodeName||N(a))o=f;else{var d=w(e.ownerDocument),p=d.height,h=d.width;o.top+=f.top-f.marginTop,o.bottom=p+f.top,o.left+=f.left-f.marginLeft,o.right=h+f.left}}var m="number"==typeof(n=n||0);return o.left+=m?n:n.left||0,o.top+=m?n:n.top||0,o.right-=m?n:n.right||0,o.bottom-=m?n:n.bottom||0,o}function M(e){return e.width*e.height}function A(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=R(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},u=Object.keys(s).map((function(e){return E({key:e},s[e],{area:M(s[e])})})).sort((function(e,t){return t.area-e.area})),c=u.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),l=c.length>0?c[0].key:u[0].key,f=e.split("-")[1];return l+(f?"-"+f:"")}function _(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?T(t):v(t,l(n));return P(n,i,r)}function L(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function I(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function z(e,t,n){n=n.split("-")[0];var r=L(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",u=o?"height":"width",c=o?"width":"height";return i[a]=t[a]+t[u]/2-r[u]/2,i[s]=n===s?t[s]-r[c]:t[I(s)],i}function F(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function D(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=F(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&a(n)&&(t.offsets.popper=k(t.offsets.popper),t.offsets.reference=k(t.offsets.reference),t=n(t,e))})),t}function B(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=_(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=A(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=z(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=D(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function H(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function U(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if(void 0!==document.body.style[o])return o}return null}function W(){return this.state.isDestroyed=!0,H(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[U("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function q(e){var t=e.ownerDocument;return t?t.defaultView:window}function $(e,t,n,r){var i="BODY"===e.nodeName,o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||$(c(o.parentNode),t,n,r),r.push(o)}function V(e,t,n,r){n.updateBound=r,q(e).addEventListener("resize",n.updateBound,{passive:!0});var i=c(e);return $(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function J(){this.state.eventsEnabled||(this.state=V(this.reference,this.options,this.state,this.scheduleUpdate))}function Y(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,q(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function K(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function G(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&K(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var X=r&&/Firefox/i.test(navigator.userAgent);function Q(e,t,n){var r=F(e,(function(e){return e.name===t})),i=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}var ee=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],te=ee.slice(3);function ne(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=te.indexOf(e),r=te.slice(n+1).concat(te.slice(0,n));return t?r.reverse():r}var re="flip",ie="clockwise",oe="counterclockwise";function ae(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(F(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(u)[0]]),[a[s].split(u)[1]].concat(a.slice(s+1))]:[a];return c=c.map((function(e,r){var i=(1===r?!o:o)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0===a.indexOf("%")){return k("%p"===a?n:r)[t]/100*o}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(e,i,t,n)}))})),c.forEach((function(e,t){e.forEach((function(n,r){K(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))}))})),i}var se={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",c=s?"width":"height",l={start:j({},u,o[u]),end:j({},u,o[u]+o[c]-a[c])};e.offsets.popper=E({},a,l[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],u=void 0;return u=K(+n)?[+n,0]:ae(n,o,a,s),"left"===s?(o.top+=u[0],o.left-=u[1]):"right"===s?(o.top+=u[0],o.left+=u[1]):"top"===s?(o.left+=u[0],o.top-=u[1]):"bottom"===s&&(o.left+=u[0],o.top+=u[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||h(e.instance.popper);e.instance.reference===n&&(n=h(n));var r=U("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var u=R(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=u;var c=t.priority,l=e.offsets.popper,f={primary:function(e){var n=l[e];return l[e]<u[e]&&!t.escapeWithReference&&(n=Math.max(l[e],u[e])),j({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=l[n];return l[e]>u[e]&&!t.escapeWithReference&&(r=Math.min(l[n],u[e]-("right"===e?l.width:l.height))),j({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=E({},l,f[t](e))})),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",u=a?"left":"top",c=a?"width":"height";return n[s]<o(r[u])&&(e.offsets.popper[u]=o(r[u])-n[c]),n[u]>o(r[s])&&(e.offsets.popper[u]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Q(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,u=o.reference,c=-1!==["left","right"].indexOf(i),l=c?"height":"width",f=c?"Top":"Left",d=f.toLowerCase(),p=c?"left":"top",h=c?"bottom":"right",m=L(r)[l];u[h]-m<a[d]&&(e.offsets.popper[d]-=a[d]-(u[h]-m)),u[d]+m>a[h]&&(e.offsets.popper[d]+=u[d]+m-a[h]),e.offsets.popper=k(e.offsets.popper);var v=u[d]+u[l]/2-m/2,y=s(e.instance.popper),g=parseFloat(y["margin"+f]),b=parseFloat(y["border"+f+"Width"]),x=v-e.offsets.popper[d]-g-b;return x=Math.max(Math.min(a[l]-m,x),0),e.arrowElement=r,e.offsets.arrow=(j(n={},d,Math.round(x)),j(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(H(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=R(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=I(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case re:a=[r,i];break;case ie:a=ne(r);break;case oe:a=ne(r,!0);break;default:a=t.behavior}return a.forEach((function(s,u){if(r!==s||a.length===u+1)return e;r=e.placement.split("-")[0],i=I(r);var c=e.offsets.popper,l=e.offsets.reference,f=Math.floor,d="left"===r&&f(c.right)>f(l.left)||"right"===r&&f(c.left)<f(l.right)||"top"===r&&f(c.bottom)>f(l.top)||"bottom"===r&&f(c.top)<f(l.bottom),p=f(c.left)<f(n.left),h=f(c.right)>f(n.right),m=f(c.top)<f(n.top),v=f(c.bottom)>f(n.bottom),y="left"===r&&p||"right"===r&&h||"top"===r&&m||"bottom"===r&&v,g=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(g&&"start"===o&&p||g&&"end"===o&&h||!g&&"start"===o&&m||!g&&"end"===o&&v),x=!!t.flipVariationsByContent&&(g&&"start"===o&&h||g&&"end"===o&&p||!g&&"start"===o&&v||!g&&"end"===o&&m),w=b||x;(d||y||w)&&(e.flipped=!0,(d||y)&&(r=a[u+1]),w&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=E({},e.offsets.popper,z(e.instance.popper,e.offsets.reference,e.placement)),e=D(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=I(t),e.offsets.popper=k(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Q(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=F(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=F(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:t.gpuAcceleration,s=h(e.instance.popper),u=C(s),c={position:i.position},l=function(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(e){return e},u=o(i.width),c=o(r.width),l=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),d=t?l||f||u%2==c%2?o:a:s,p=t?o:s;return{left:d(u%2==1&&c%2==1&&!f&&t?r.left-1:r.left),top:p(r.top),bottom:p(r.bottom),right:d(r.right)}}(e,window.devicePixelRatio<2||!X),f="bottom"===n?"top":"bottom",d="right"===r?"left":"right",p=U("transform"),m=void 0,v=void 0;if(v="bottom"===f?"HTML"===s.nodeName?-s.clientHeight+l.bottom:-u.height+l.bottom:l.top,m="right"===d?"HTML"===s.nodeName?-s.clientWidth+l.right:-u.width+l.right:l.left,a&&p)c[p]="translate3d("+m+"px, "+v+"px, 0)",c[f]=0,c[d]=0,c.willChange="transform";else{var y="bottom"===f?-1:1,g="right"===d?-1:1;c[f]=v*y,c[d]=m*g,c.willChange=f+", "+d}var b={"x-placement":e.placement};return e.attributes=E({},b,e.attributes),e.styles=E({},c,e.styles),e.arrowStyles=E({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return G(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&G(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,i){var o=_(i,t,e,n.positionFixed),a=A(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),G(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},ue={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:se},ce=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};O(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=o(this.update.bind(this)),this.options=E({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(E({},e.Defaults.modifiers,i.modifiers)).forEach((function(t){r.options.modifiers[t]=E({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return E({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&a(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return S(e,[{key:"update",value:function(){return B.call(this)}},{key:"destroy",value:function(){return W.call(this)}},{key:"enableEventListeners",value:function(){return J.call(this)}},{key:"disableEventListeners",value:function(){return Y.call(this)}}]),e}();ce.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,ce.placements=ee,ce.Defaults=ue,t.Z=ce},96630:function(e,t,n){"use strict";var r=n(63366),i=n(94578),o=n(8156),a=n.n(o),s=n(47111),u=n.n(s),c=n(6035),l=n(220),f="unmounted",d="exited",p="entering",h="entered",m="exiting",v=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=d,r.appearStatus=p):i=h:i=t.unmountOnExit||t.mountOnEnter?f:d,r.state={status:i},r.nextCallback=null,r}(0,i.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===f?{status:d}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==p&&n!==h&&(t=p):n!==p&&n!==h||(t=m)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===p?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===d&&this.setState({status:f})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[u().findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||c.Z.disabled?this.safeSetState({status:h},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:p},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:h},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:u().findDOMNode(this);t&&!c.Z.disabled?(this.props.onExit(r),this.safeSetState({status:m},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:d},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:d},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:u().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===f)return null;var t=this.props,n=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a().createElement(l.Z.Provider,{value:null},"function"==typeof n?n(e,i):a().cloneElement(a().Children.only(n),i))},t}(a().Component);function y(){}v.contextType=l.Z,v.propTypes={},v.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:y,onEntering:y,onEntered:y,onExit:y,onExiting:y,onExited:y},v.UNMOUNTED=f,v.EXITED=d,v.ENTERING=p,v.ENTERED=h,v.EXITING=m,t.ZP=v},220:function(e,t,n){"use strict";var r=n(8156),i=n.n(r);t.Z=i().createContext(null)},6035:function(e,t){"use strict";t.Z={disabled:!1}},89034:function(e,t,n){var r=n(93379),i=n(2565);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},62195:function(e,t,n){var r=n(93379),i=n(7381);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},2026:function(e,t,n){var r=n(93379),i=n(19916);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},13957:function(e,t,n){var r=n(93379),i=n(93603);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},80666:function(e,t,n){var r=n(93379),i=n(84928);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},13267:function(e,t,n){var r=n(93379),i=n(5714);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},61104:function(e,t,n){var r=n(93379),i=n(17843);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},24895:function(e,t,n){var r=n(93379),i=n(95845);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},98632:function(e,t,n){var r=n(93379),i=n(43637);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},42560:function(e,t,n){var r=n(93379),i=n(9929);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},93379:function(e,t,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},r=[],i=0;i<e.length;i++){var o=e[i],u=t.base?o[0]+t.base:o[0],c=n[u]||0,l="".concat(u," ").concat(c);n[u]=c+1;var f=s(l),d={css:o[1],media:o[2],sourceMap:o[3]};-1!==f?(a[f].references++,a[f].updater(d)):a.push({identifier:l,updater:v(d,t),references:1}),r.push(l)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=o(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,f=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function d(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function p(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,m=0;function v(e,t){var n,r,i;if(t.singleton){var o=m++;n=h||(h=c(t)),r=d.bind(null,n,o,!1),i=d.bind(null,n,o,!0)}else n=c(t),r=p.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var n=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=s(n[r]);a[i].references--}for(var o=u(e,t),c=0;c<n.length;c++){var l=s(n[c]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=o}}}},92796:function(e,t,n){"use strict";var r=n(8156),i=n.n(r),o=n(8398);n(89034);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e,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.")}()}t.default=function(e){var t=e.children,n=e.arrow,a=void 0!==n&&n,u=e.placement,c=void 0===u?"bottom-start":u,l=e.tips,f=void 0===l?"":l,d=e.className,p=void 0===d?"":d,h=e.beyondText,m=void 0===h||h,v=e.interactive,y=void 0===v||v,g=e.style,b=(0,r.useRef)(),x=s((0,r.useState)(""),2),w=x[0],O=x[1];(0,r.useEffect)((function(){O(f)}),[f]);var S;return i().createElement("div",{ref:b,className:(S="paraui-auto-tips",p&&(S+=" "+p),S),onMouseOver:function(){var e="";b.current&&b.current.scrollWidth>b.current.offsetWidth&&(e=f||(m?b.current.innerText:t)),O(e)},style:g},i().createElement(o.default,{arrow:a,title:w,placement:c,interactive:y,boundariesElement:"viewport",className:"paraui-auto-tips-tooltip"},i().createElement("div",{className:"auto-tips-content"},t)))}},68525:function(e,t,n){"use strict";var r=n(8156),i=n.n(r),o=n(8398),a=n(95670),s=n.n(a),u=n(86010);n(62195);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function l(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}t.default=function(e){var t=e.title,n=void 0===t?"":t,r=e.children,a=e.arrow,f=void 0===a||a,d=e.interactive,p=void 0===d||d,h=e.className,m=e.placement,v=void 0===m?"top-start":m,y=l(e,["title","children","arrow","interactive","className","placement"]);return i().createElement(o.default,c({title:n,arrow:f,interactive:p,placement:v},y),i().createElement("span",{className:(0,u.Z)("paraui-help",h)},r||i().createElement(s(),null)))}},18799:function(e,t,n){"use strict";var r=n(8156),i=n.n(r);n(2026);t.default=function(e){var t,n=e.className,r=e.style,o=e.error,a=void 0!==o&&o,s=e.helperText;return i().createElement("p",{className:(t="paraui-helper-text",n&&(t+=" "+n),a&&(t+=" paraui-helper-text-error"),t),style:r},s)}},17115:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(8156),i=n.n(r),o=n(65395),a=n.n(o);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){var n=i().useContext(a()).componentsProps;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}({},n&&n[t],e)}},50134:function(e,t,n){"use strict";var r=n(8156),i=n.n(r),o=n(68525);n(80666);t.default=function(e){var t=e.className,n=e.style,r=e.label,a=e.labelSign,s=e.required,u=void 0!==s&&s,c=e.tooltip,l=e.tooltipType,f=void 0===l?"icon":l,d=e.placement,p=e.arrow,h=e.tooltipIcon,m=function(){var e="paraui-label";return f&&(e+=" paraui-label-"+f),c&&(e+=" paraui-label-tooltip"),t&&(e+=" "+t),e};return i().createElement(i().Fragment,null,"icon"===f&&i().createElement("label",{className:m(),style:n},i().createElement(i().Fragment,null,r),u&&i().createElement("span",{className:"paraui-label-required"},"*"),a&&i().createElement("span",null,a),c&&i().createElement(o.default,{title:c,placement:d,arrow:p},h)),"line"===f&&i().createElement(o.default,{title:c||"",placement:d,arrow:p},i().createElement("label",{className:m(),style:n},i().createElement(i().Fragment,null,r),u&&i().createElement("span",{className:"paraui-label-required"},"*"),a&&i().createElement("span",null,a))))}},5927:function(e,t,n){"use strict";var r=n(8156),i=n.n(r),o=n(61217),a=n.n(o);n(13267);t.default=function(e){var t=e.className,n=e.style,o=e.opacity,s=void 0===o?.7:o,u=(0,r.useRef)(null);(0,r.useEffect)((function(){u&&u.current&&u.current.parentNode&&(u.current.parentNode.style.position||(u.current.parentNode.style.position="relative"))}),[]);var c;return i().createElement("div",{className:(c="paraui-loading",t&&(c+=" "+t),c),style:n,ref:u},i().createElement("div",{className:"paraui-loading-box"},i().createElement(a(),null)),i().createElement("div",{className:"paraui-loading-mask",style:{opacity:s}}))}},38219:function(e,t,n){"use strict";var r=n(8156),i=n.n(r),o=n(10758),a=n(50134),s=n(18799),u=n(54271),c=n.n(u),l=n(8344),f=n.n(l);n(61104);function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||y(e,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 v(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||y(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}t.default=function(e){var t=e.className,n=e.style,u=e.size,l=void 0===u?"large":u,d=e.placeholderKey,y=void 0===d?"":d,g=e.placeholderValue,b=void 0===g?"":g,x=e.label,w=void 0===x?"":x,O=e.labelTooltip,S=e.labelSign,j=e.disabled,E=void 0!==j&&j,k=e.required,C=void 0!==k&&k,P=e.error,Z=void 0!==P&&P,N=e.helperText,T=void 0===N?"":N,R=e.value,M=e.replaceFields,A=e.onChange,_=e.fetchSuggestionsKey,L=e.fetchSuggestionsValue,I=m((0,r.useState)([]),2),z=I[0],F=I[1],D=m((0,r.useState)({key:"label",value:"value"}),2),B=D[0],H=D[1];(0,r.useEffect)((function(){void 0!==e.defaultValue&&F(v(e.defaultValue))}),[]),(0,r.useEffect)((function(){void 0!==R&&F(v(R))}),[R]),(0,r.useEffect)((function(){if(M){var e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){p(e,t,n[t])}))}return e}({},B,M);H(e)}}),[M]);var U,W=function(t){return function(){E||(z.splice(t,1),void 0===e.value&&F(v(z)),A&&A(z))}},q=function(t,n){return function(r){z[n][t]=r.target.value,void 0===e.value&&F(v(z)),A&&A(z)}},$=function(e){return function(t,n){"key"===e?_&&_(t,n):L&&L(t,n)}},V=function(t,n){return function(r){z[n][t]=r,"object"==typeof r&&null!==r&&(z[n][t]=r.value),void 0===e.value&&F(v(z)),A&&A(z)}};return i().createElement("div",{className:(U="paraui-multi-box multi-box",t&&(U+=" "+t),l&&(U+=" multi-box-"+l),Z&&(U+=" multi-box-error"),E&&(U+=" multi-box-disabled"),U),style:n},function(){if(!w&&!S)return null;var e;return i().createElement(a.default,h({label:w,required:C,labelSign:S},O,{className:(e="multi-box-label",O&&O.className&&(e+=" "+O.className),e)}))}(),i().createElement("div",{className:"multi-box-content"},z.map((function(e,t){return i().createElement("div",{className:"multi-box-content-item",key:t},i().createElement("div",{className:"multi-box-content-item-input"},i().createElement(o.default,{size:l,disabled:E,placeholder:y,value:e[B.key||""],onChange:q(B.key||"",t),fetchSuggestions:_?$("key"):void 0,onSelect:V(B.key||"",t)}),i().createElement("span",null,":"),i().createElement(o.default,{size:l,disabled:E,placeholder:b,value:e[B.value||""],onChange:q(B.value||"",t),fetchSuggestions:L?$("value"):void 0,onSelect:V(B.value||"",t)})),i().createElement("span",{className:"single-box-content-item-svg"},i().createElement(f(),{onClick:W(t)})))}))),i().createElement("div",{className:"multi-box-add",onClick:function(){E||(z.push({}),void 0===e.value&&F(v(z)),A&&A(z))}},i().createElement(c(),null)),i().createElement(s.default,{className:"multi-box-error-text",error:Z,helperText:T}))}},36413:function(e,t,n){"use strict";n.d(t,{default:function(){return V}});var r=n(8156),i=n.n(r),o=n(87462),a=n(45987),s=n(47111),u=n(79437),c=n(86010),l=n(30626),f=n(80713),d=n(82568),p=n(52543),h=n(159),m=n(93869),v=n(76234),y=n(17294),g=n(55192),b=n(92781),x=n(15671),w=n(43144),O=n(89062);function S(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function j(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function E(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=[t,n].concat((0,O.Z)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===a.indexOf(e.tagName)&&S(e,i)}))}function k(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function C(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,l.Z)(e);return t.body===e?(0,f.Z)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=function(){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 t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(j(o)+a,"px"),n=(0,l.Z)(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(j(e)+a,"px")}))}var s=o.parentElement,u="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:u.style.overflow,key:"overflow",el:u}),u.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var P=function(){function e(){(0,x.Z)(this,e),this.modals=[],this.containers=[]}return(0,w.Z)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&S(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);E(t,e.mountNode,e.modalRef,r,!0);var i=k(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=k(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=C(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=k(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&S(e.modalRef,!0),E(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&S(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var Z=function(e){var t=e.children,n=e.disableAutoFocus,i=void 0!==n&&n,o=e.disableEnforceFocus,a=void 0!==o&&o,u=e.disableRestoreFocus,c=void 0!==u&&u,f=e.getDoc,d=e.isEnabled,p=e.open,h=r.useRef(),m=r.useRef(null),v=r.useRef(null),g=r.useRef(),b=r.useRef(null),x=r.useCallback((function(e){b.current=s.findDOMNode(e)}),[]),w=(0,y.Z)(t.ref,x),O=r.useRef();return r.useEffect((function(){O.current=p}),[p]),!O.current&&p&&"undefined"!=typeof window&&(g.current=f().activeElement),r.useEffect((function(){if(p){var e=(0,l.Z)(b.current);i||!b.current||b.current.contains(e.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex",-1),b.current.focus());var t=function(){null!==b.current&&(e.hasFocus()&&!a&&d()&&!h.current?b.current&&!b.current.contains(e.activeElement)&&b.current.focus():h.current=!1)},n=function(t){!a&&d()&&9===t.keyCode&&e.activeElement===b.current&&(h.current=!0,t.shiftKey?v.current.focus():m.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var r=setInterval((function(){t()}),50);return function(){clearInterval(r),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),c||(g.current&&g.current.focus&&g.current.focus(),g.current=null)}}}),[i,a,c,d,p]),r.createElement(r.Fragment,null,r.createElement("div",{tabIndex:0,ref:m,"data-test":"sentinelStart"}),r.cloneElement(t,{ref:w}),r.createElement("div",{tabIndex:0,ref:v,"data-test":"sentinelEnd"}))},N={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"}},T=r.forwardRef((function(e,t){var n=e.invisible,i=void 0!==n&&n,s=e.open,u=(0,a.Z)(e,["invisible","open"]);return s?r.createElement("div",(0,o.Z)({"aria-hidden":!0,ref:t},u,{style:(0,o.Z)({},N.root,i?N.invisible:{},u.style)})):null}));var R=new P,M=r.forwardRef((function(e,t){var n=(0,h.Z)(),i=(0,m.Z)({name:"MuiModal",props:(0,o.Z)({},e),theme:n}),u=i.BackdropComponent,c=void 0===u?T:u,f=i.BackdropProps,p=i.children,x=i.closeAfterTransition,w=void 0!==x&&x,O=i.container,j=i.disableAutoFocus,E=void 0!==j&&j,k=i.disableBackdropClick,C=void 0!==k&&k,P=i.disableEnforceFocus,N=void 0!==P&&P,M=i.disableEscapeKeyDown,A=void 0!==M&&M,_=i.disablePortal,L=void 0!==_&&_,I=i.disableRestoreFocus,z=void 0!==I&&I,F=i.disableScrollLock,D=void 0!==F&&F,B=i.hideBackdrop,H=void 0!==B&&B,U=i.keepMounted,W=void 0!==U&&U,q=i.manager,$=void 0===q?R:q,V=i.onBackdropClick,J=i.onClose,Y=i.onEscapeKeyDown,K=i.onRendered,G=i.open,X=(0,a.Z)(i,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),Q=r.useState(!0),ee=Q[0],te=Q[1],ne=r.useRef({}),re=r.useRef(null),ie=r.useRef(null),oe=(0,y.Z)(ie,t),ae=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(i),se=function(){return(0,l.Z)(re.current)},ue=function(){return ne.current.modalRef=ie.current,ne.current.mountNode=re.current,ne.current},ce=function(){$.mount(ue(),{disableScrollLock:D}),ie.current.scrollTop=0},le=(0,g.Z)((function(){var e=function(e){return e="function"==typeof e?e():e,s.findDOMNode(e)}(O)||se().body;$.add(ue(),e),ie.current&&ce()})),fe=r.useCallback((function(){return $.isTopModal(ue())}),[$]),de=(0,g.Z)((function(e){re.current=e,e&&(K&&K(),G&&fe()?ce():S(ie.current,!0))})),pe=r.useCallback((function(){$.remove(ue())}),[$]);if(r.useEffect((function(){return function(){pe()}}),[pe]),r.useEffect((function(){G?le():ae&&w||pe()}),[G,pe,ae,w,le]),!W&&!G&&(!ae||ee))return null;var he=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:b.Z}),me={};return void 0===p.props.tabIndex&&(me.tabIndex=p.props.tabIndex||"-1"),ae&&(me.onEnter=(0,d.Z)((function(){te(!1)}),p.props.onEnter),me.onExited=(0,d.Z)((function(){te(!0),w&&pe()}),p.props.onExited)),r.createElement(v.Z,{ref:de,container:O,disablePortal:L},r.createElement("div",(0,o.Z)({ref:oe,onKeyDown:function(e){"Escape"===e.key&&fe()&&(Y&&Y(e),A||(e.stopPropagation(),J&&J(e,"escapeKeyDown")))},role:"presentation"},X,{style:(0,o.Z)({},he.root,!G&&ee?he.hidden:{},X.style)}),H?null:r.createElement(c,(0,o.Z)({open:G,onClick:function(e){e.target===e.currentTarget&&(V&&V(e),!C&&J&&J(e,"backdropClick"))}},f)),r.createElement(Z,{disableEnforceFocus:N,disableAutoFocus:E,disableRestoreFocus:z,getDoc:se,isEnabled:fe,open:G},r.cloneElement(p,me))))})),A=n(20170),_=r.forwardRef((function(e,t){var n=e.classes,i=e.className,s=e.component,u=void 0===s?"div":s,l=e.square,f=void 0!==l&&l,d=e.elevation,p=void 0===d?1:d,h=e.variant,m=void 0===h?"elevation":h,v=(0,a.Z)(e,["classes","className","component","square","elevation","variant"]);return r.createElement(u,(0,o.Z)({className:(0,c.Z)(n.root,i,"outlined"===m?n.outlined:n["elevation".concat(p)],!f&&n.rounded),ref:t},v))})),L=(0,p.Z)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),(0,o.Z)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(_);function I(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function z(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function F(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function D(e){return"function"==typeof e?e():e}var B=r.forwardRef((function(e,t){var n=e.action,i=e.anchorEl,p=e.anchorOrigin,h=void 0===p?{vertical:"top",horizontal:"left"}:p,m=e.anchorPosition,v=e.anchorReference,y=void 0===v?"anchorEl":v,g=e.children,b=e.classes,x=e.className,w=e.container,O=e.elevation,S=void 0===O?8:O,j=e.getContentAnchorEl,E=e.marginThreshold,k=void 0===E?16:E,C=e.onEnter,P=e.onEntered,Z=e.onEntering,N=e.onExit,T=e.onExited,R=e.onExiting,_=e.open,B=e.PaperProps,H=void 0===B?{}:B,U=e.transformOrigin,W=void 0===U?{vertical:"top",horizontal:"left"}:U,q=e.TransitionComponent,$=void 0===q?A.Z:q,V=e.transitionDuration,J=void 0===V?"auto":V,Y=e.TransitionProps,K=void 0===Y?{}:Y,G=(0,a.Z)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),X=r.useRef(),Q=r.useCallback((function(e){if("anchorPosition"===y)return m;var t=D(i),n=(t&&1===t.nodeType?t:(0,l.Z)(X.current).body).getBoundingClientRect(),r=0===e?h.vertical:"center";return{top:n.top+I(n,r),left:n.left+z(n,h.horizontal)}}),[i,h.horizontal,h.vertical,m,y]),ee=r.useCallback((function(e){var t=0;if(j&&"anchorEl"===y){var n=j(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[h.vertical,y,j]),te=r.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:I(e,W.vertical)+t,horizontal:z(e,W.horizontal)}}),[W.horizontal,W.vertical]),ne=r.useCallback((function(e){var t=ee(e),n={width:e.offsetWidth,height:e.offsetHeight},r=te(n,t);if("none"===y)return{top:null,left:null,transformOrigin:F(r)};var o=Q(t),a=o.top-r.vertical,s=o.left-r.horizontal,u=a+n.height,c=s+n.width,l=(0,f.Z)(D(i)),d=l.innerHeight-k,p=l.innerWidth-k;if(a<k){var h=a-k;a-=h,r.vertical+=h}else if(u>d){var m=u-d;a-=m,r.vertical+=m}if(s<k){var v=s-k;s-=v,r.horizontal+=v}else if(c>p){var g=c-p;s-=g,r.horizontal+=g}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:F(r)}}),[i,y,Q,ee,te,k]),re=r.useCallback((function(){var e=X.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]),ie=r.useCallback((function(e){X.current=s.findDOMNode(e)}),[]);r.useEffect((function(){_&&re()})),r.useImperativeHandle(n,(function(){return _?{updatePosition:function(){re()}}:null}),[_,re]),r.useEffect((function(){if(_){var e=(0,u.Z)((function(){re()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[_,re]);var oe=J;"auto"!==J||$.muiSupportAuto||(oe=void 0);var ae=w||(i?(0,l.Z)(D(i)).body:void 0);return r.createElement(M,(0,o.Z)({container:ae,open:_,ref:t,BackdropProps:{invisible:!0},className:(0,c.Z)(b.root,x)},G),r.createElement($,(0,o.Z)({appear:!0,in:_,onEnter:C,onEntered:P,onExit:N,onExited:T,onExiting:R,timeout:oe},K,{onEntering:(0,d.Z)((function(e,t){Z&&Z(e,t),re()}),K.onEntering)}),r.createElement(L,(0,o.Z)({elevation:S,ref:ie},H,{className:(0,c.Z)(b.paper,H.className)}),g)))})),H=(0,p.Z)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(B);n(24895);function U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W(){return W=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W.apply(this,arguments)}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){U(e,t,n[t])}))}return e}function $(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var V=function(e){var t,n=e.className,r=e.children,o=e.classes,a=e.style,s=$(e,["className","children","classes","style"]);return i().createElement(H,W({style:q({zIndex:1300},a),className:(t="paraui-popover",n&&(t+=" "+n),t),classes:{paper:o?"paraui-popover-paper ".concat(o):"paraui-popover-paper"}},s),r)}},10758:function(e,t,n){"use strict";var r=n(8156),i=n.n(r),o=n(50134),a=n(58543),s=n(68926),u=n.n(s),c=n(20987),l=n.n(c),f=n(73730),d=n.n(f),p=n(92796),h=n(5927),m=n(8398),v=n(18799),y=n(17115);n(98632);function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}function x(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}(e,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.")}()}var O=function(e){return"number"==typeof e&&!isNaN(e)};t.default=function(e){var t=(0,y.Z)(e,"TextField"),n=t.className,s=t.style,c=t.size,f=void 0===c?"large":c,g=t.labelMode,S=void 0===g?"outside":g,j=t.placeholder,E=void 0===j?"":j,k=t.label,C=void 0===k?"":k,P=t.labelTooltip,Z=t.disabled,N=void 0!==Z&&Z,T=t.multiline,R=void 0!==T&&T,M=t.required,A=void 0!==M&&M,_=t.labelSign,L=t.rows,I=void 0===L?2:L,z=t.error,F=void 0!==z&&z,D=t.helperText,B=void 0===D?"":D,H=t.addonBefore,U=void 0===H?"":H,W=t.addonAfter,q=void 0===W?"":W,$=(t.defaultValue,t.value),V=t.autoFocus,J=void 0!==V&&V,Y=t.type,K=void 0===Y?"text":Y,G=t.onClickIcon,X=t.rightIcon,Q=t.showRightIcon,ee=void 0===Q||Q,te=t.allowClear,ne=void 0!==te&&te,re=t.limitLength,ie=t.fetchSuggestions,oe=t.selectPopoverClass,ae=t.renderSelectItem,se=t.showSelectName,ue=void 0===se?"value":se,ce=t.resize,le=void 0===ce||ce,fe=t.onBlur,de=t.onFocus,pe=t.onChange,he=t.onKeydown,me=t.onKeyUp,ve=t.onEnter,ye=t.onClickAddonBefore,ge=t.onClickAddonAfter,be=t.onSelect,xe=t.onClear,we=x(t,["className","style","size","labelMode","placeholder","label","labelTooltip","disabled","multiline","required","labelSign","rows","error","helperText","addonBefore","addonAfter","defaultValue","value","autoFocus","type","onClickIcon","rightIcon","showRightIcon","allowClear","limitLength","fetchSuggestions","selectPopoverClass","renderSelectItem","showSelectName","resize","onBlur","onFocus","onChange","onKeydown","onKeyUp","onEnter","onClickAddonBefore","onClickAddonAfter","onSelect","onClear"]),Oe=w((0,r.useState)("text-field-select-content-"+(0,a.UUID)()),1)[0],Se=w((0,r.useState)(!0),2),je=Se[0],Ee=Se[1],ke=w((0,r.useState)(""),2),Ce=ke[0],Pe=ke[1],Ze=w((0,r.useState)(!1),2),Ne=Ze[0],Te=Ze[1],Re=w((0,r.useState)("text"),2),Me=Re[0],Ae=Re[1],_e=w((0,r.useState)(!1),2),Le=_e[0],Ie=_e[1],ze=w((0,r.useState)(!1),2),Fe=ze[0],De=ze[1],Be=w((0,r.useState)([]),2),He=Be[0],Ue=Be[1],We=(0,r.useRef)(null),qe=(0,r.useRef)(null);(0,r.useEffect)((function(){void 0!==e.defaultValue&&Pe(e.defaultValue)}),[]),(0,r.useEffect)((function(){K!==Me&&Ae(K)}),[K]),(0,r.useEffect)((function(){void 0!==$&&Pe($)}),[$]),(0,r.useEffect)((function(){Ee(""===Ce||void 0===Ce)}),[Ce]),(0,r.useEffect)((function(){ie&&Ie(Ne)}),[Ne,ie]),(0,r.useEffect)((function(){return Le?window.addEventListener("keydown",Ge):window.removeEventListener("keydown",Ge),function(){window.removeEventListener("keydown",Ge)}}),[Le]),(0,r.useEffect)((function(){if(!Ne&&Ce){var t=Ve(Ce);if(t!==Ce){var n={};n.target=We.current,n.target.value=t,void 0===e.value&&Pe(t),e.onChange&&e.onChange(n)}}}),[Ce,Ne]);var $e,Ve=function(t){var n=t;return O(e.limitLength)&&t.toString().length>Number(e.limitLength)&&(n=n.toString().substr(0,e.limitLength)),n},Je=function(){N||(Ee(!1),(We&&We.current).focus())},Ye=function(e){var t=e.selectDom,n=e.keyCode,r=e.currentDom,i="nextSibling",o=".text-field-select-content-item";38===n&&(i="previousSibling",o=".text-field-select-content-item:last-child"),r?(r=r[i])||(r=t.querySelector(o)):r=t.querySelector(".text-field-select-content-item"),r&&(r.classList.add("text-field-select-content-item-keydown"),Ke(r,t))},Ke=function(e,t){var n=t.clientHeight,r=e.offsetTop+e.clientHeight-n;t.scrollTop=r>0?r:0},Ge=function(e){var t=document.querySelector("."+Oe),n=null,r=t.querySelector(".text-field-select-content-item-keydown");if(13===e.keyCode&&r){var i=r.dataset.val;st(JSON.parse(i))(e),(We&&We.current).blur()}r&&(n=r,r.classList.remove("text-field-select-content-item-keydown")),40===e.keyCode&&Ye({selectDom:t,keyCode:e.keyCode,currentDom:n}),38===e.keyCode&&Ye({selectDom:t,keyCode:e.keyCode,currentDom:n})},Xe=function(e){Te(!1),""===e.target.value&&Ee(!0),fe&&fe(e)},Qe=function(e){ie&&(De(!0),ie(e,(function(e){Ue(e||[]),De(!1)})))},et=function(e){Te(!0),de&&de(e),Qe(e.target.value)},tt=function(t){var n=t.target.value;n&&Ee(!1),void 0===e.value&&Pe(n),pe&&pe(t),Qe(t.target.value)},nt=function(e){13===e.keyCode&&ve&&ve(e),he&&he(e)},rt=function(e){me&&me(e)},it=function(e){"password"===K&&("text"===Me&&Ae("password"),"password"===Me&&Ae("text")),G&&G(e)},ot=function(){return void 0===e.value?Ce:$},at=function(){Ie(!1)},st=function(e){return function(t){be&&be(e)}},ut=(0,r.useMemo)((function(){return i().createElement(i().Fragment,null,O(re)&&i().createElement("span",{className:"length-limit"},(Ce?Ce.toString().length:0)+"/"+re))}),[re,Ce]),ct=(0,r.useMemo)((function(){var e=X||("password"===K?"password"===Me?i().createElement(u(),null):i().createElement(l(),null):null);return i().createElement(i().Fragment,null,ee&&e&&i().createElement("span",{className:"password"===K?"right-icon right-icon-password":"right-icon",onClick:it},e))}),[ee,X,K,Me,G]),lt=function(){var t=We.current;t.value="",void 0===e.value&&Pe(""),pe&&pe({target:t}),Qe(""),xe&&xe()},ft=(0,r.useMemo)((function(){return i().createElement("div",{className:"text-field-content-within",ref:qe},i().createElement("div",{className:"text-field-content-within-input"},R?i().createElement("textarea",b({ref:We,rows:I,value:ot(),onBlur:Xe,onFocus:et,onChange:tt,onKeyDown:nt,onKeyUp:rt,disabled:N},we)):i().createElement("input",b({ref:We,type:Me,value:ot(),onBlur:Xe,onFocus:et,onChange:tt,onKeyDown:nt,onKeyUp:rt,disabled:N},we)),je&&!Ne&&i().createElement("span",{className:"text-field-label-placeholder",onClick:Je},"outside"===S?E:i().createElement(i().Fragment,null,C||E,A&&i().createElement("span",{className:"text-field-required"},"*"),_&&i().createElement("span",null,_)))),function(){if(ot()&&!N&&ne)return i().createElement("span",{className:"clean-up-icon",onClick:lt},i().createElement(d(),null))}(),ut,ct)}),[je,Ne,J,Me,Ce,ut,ct,S,E,C,N,R,I,we,pe,ie,G,ne,xe]),dt=(0,r.useMemo)((function(){var e;return i().createElement("div",{className:(e="text-field-select-content",Fe&&(e+=" text-field-select-content-loading"),Oe&&(e+=" "+Oe),e),style:{width:(qe&&qe.current?qe.current.offsetWidth:0)+"px"}},He&&He.map((function(e,t){return i().createElement("div",{className:"text-field-select-content-item",key:t,onMouseDown:st(e),"data-val":JSON.stringify(e)},ae?ae(e):i().createElement(p.default,null,function(e){return"object"==typeof e&&null!==e?e[ue]:e}(e)))})),Fe&&i().createElement(h.default,null))}),[qe,Le,He,ae,ue,be,Fe,Oe]),pt=(0,r.useMemo)((function(){return i().createElement(m.default,{open:Le,title:dt,onClose:at,arrow:!1,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,placement:"bottom-start",classes:{popper:(e="paraui-text-field-select paraui-scrollbar-small",f&&(e+=" paraui-text-field-select-"+f),oe&&(e+=" "+oe),He.length>0&&(e+=" paraui-text-field-select-data"),e)}},ft);var e}),[je,Ne,J,Me,Ce,ut,ct,S,E,C,N,R,I,we,pe,ie,be,qe,Le,oe,f,G,He,ne,xe]),ht=(0,r.useMemo)((function(){var e,t=Boolean(A||_||C);if("outside"===S&&t){return i().createElement(o.default,b({label:C,required:A,labelSign:_},P,{className:(e="text-field-label",P&&P.className&&(e+=" "+P.className),e)}))}return null}),[S,C,_,A,P]);return i().createElement("div",{className:($e="paraui-text-field",$e+=" text-field",f&&!R&&($e+=" text-field-"+f),n&&($e+=" "+n),F&&($e+=" text-field-error"),Ne&&($e+=" text-field-focus"),N&&($e+=" text-field-disabled"),R&&($e+=" text-field-multiline"),O(e.limitLength)&&($e+=" text-field-limit-length"),O(e.limitLength)&&Ce&&Ce.toString().length>Number(e.limitLength)&&($e+=" text-field-limit"),le&&($e+=" text-field-resize"),ot()&&($e+=" text-field-value"),ne&&($e+=" text-field-allow-clear"),$e),style:s},ht,i().createElement("div",{className:"text-field-content"},U&&i().createElement("div",{className:"text-field-content-before",onClick:function(e){ye&&ye(e)}},U),ie?pt:ft,q&&i().createElement("div",{className:"text-field-content-after",onClick:function(e){ge&&ge(e)}},q)),i().createElement(v.default,{className:"text-field-error-text",error:F,helperText:B}))}},8398:function(e,t,n){"use strict";n.d(t,{default:function(){return T}});var r=n(8156),i=n.n(r),o=n(87462),a=n(93324),s=n(45987),u=n(4942),c=n(47111),l=n(86010),f=n(35953),d=n(59693),p=n(52543),h=n(93871),m=n(20170),v=n(43606),y=n(17294);var g=n(34236),b=n(24896);var x=n(8920);function w(e){return Math.round(1e5*e)/1e5}var O=!1,S=null;var j=r.forwardRef((function(e,t){var n=e.arrow,i=void 0!==n&&n,u=e.children,d=e.classes,p=e.disableFocusListener,w=void 0!==p&&p,j=e.disableHoverListener,E=void 0!==j&&j,k=e.disableTouchListener,C=void 0!==k&&k,P=e.enterDelay,Z=void 0===P?100:P,N=e.enterNextDelay,T=void 0===N?0:N,R=e.enterTouchDelay,M=void 0===R?700:R,A=e.id,_=e.interactive,L=void 0!==_&&_,I=e.leaveDelay,z=void 0===I?0:I,F=e.leaveTouchDelay,D=void 0===F?1500:F,B=e.onClose,H=e.onOpen,U=e.open,W=e.placement,q=void 0===W?"bottom":W,$=e.PopperComponent,V=void 0===$?v.Z:$,J=e.PopperProps,Y=e.title,K=e.TransitionComponent,G=void 0===K?m.Z:K,X=e.TransitionProps,Q=(0,s.Z)(e,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"]),ee=(0,x.Z)(),te=r.useState(),ne=te[0],re=te[1],ie=r.useState(null),oe=ie[0],ae=ie[1],se=r.useRef(!1),ue=r.useRef(),ce=r.useRef(),le=r.useRef(),fe=r.useRef(),de=function(e){var t=e.controlled,n=e.default,i=(e.name,e.state,r.useRef(void 0!==t).current),o=r.useState(n),a=o[0],s=o[1];return[i?t:a,r.useCallback((function(e){i||s(e)}),[])]}({controlled:U,default:!1,name:"Tooltip",state:"open"}),pe=(0,a.Z)(de,2),he=pe[0],me=pe[1],ve=he,ye=function(e){var t=r.useState(e),n=t[0],i=t[1],o=e||n;return r.useEffect((function(){null==n&&i("mui-".concat(Math.round(1e5*Math.random())))}),[n]),o}(A);r.useEffect((function(){return function(){clearTimeout(ue.current),clearTimeout(ce.current),clearTimeout(le.current),clearTimeout(fe.current)}}),[]);var ge=function(e){clearTimeout(S),O=!0,me(!0),H&&H(e)},be=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=u.props;"mouseover"===t.type&&n.onMouseOver&&e&&n.onMouseOver(t),se.current&&"touchstart"!==t.type||(ne&&ne.removeAttribute("title"),clearTimeout(ce.current),clearTimeout(le.current),Z||O&&T?(t.persist(),ce.current=setTimeout((function(){ge(t)}),O?T:Z)):ge(t))}},xe=(0,b.Z)(),we=xe.isFocusVisible,Oe=xe.onBlurVisible,Se=xe.ref,je=r.useState(!1),Ee=je[0],ke=je[1],Ce=function(){Ee&&(ke(!1),Oe())},Pe=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){ne||re(t.currentTarget),we(t)&&(ke(!0),be()(t));var n=u.props;n.onFocus&&e&&n.onFocus(t)}},Ze=function(e){clearTimeout(S),S=setTimeout((function(){O=!1}),800+z),me(!1),B&&B(e),clearTimeout(ue.current),ue.current=setTimeout((function(){se.current=!1}),ee.transitions.duration.shortest)},Ne=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=u.props;"blur"===t.type&&(n.onBlur&&e&&n.onBlur(t),Ce()),"mouseleave"===t.type&&n.onMouseLeave&&t.currentTarget===ne&&n.onMouseLeave(t),clearTimeout(ce.current),clearTimeout(le.current),t.persist(),le.current=setTimeout((function(){Ze(t)}),z)}},Te=function(e){se.current=!0;var t=u.props;t.onTouchStart&&t.onTouchStart(e)},Re=(0,y.Z)(re,t),Me=(0,y.Z)(Se,Re),Ae=r.useCallback((function(e){(0,g.Z)(Me,c.findDOMNode(e))}),[Me]),_e=(0,y.Z)(u.ref,Ae);""===Y&&(ve=!1);var Le=!ve&&!E,Ie=(0,o.Z)({"aria-describedby":ve?ye:null,title:Le&&"string"==typeof Y?Y:null},Q,u.props,{className:(0,l.Z)(Q.className,u.props.className),onTouchStart:Te,ref:_e}),ze={};C||(Ie.onTouchStart=function(e){Te(e),clearTimeout(le.current),clearTimeout(ue.current),clearTimeout(fe.current),e.persist(),fe.current=setTimeout((function(){be()(e)}),M)},Ie.onTouchEnd=function(e){u.props.onTouchEnd&&u.props.onTouchEnd(e),clearTimeout(fe.current),clearTimeout(le.current),e.persist(),le.current=setTimeout((function(){Ze(e)}),D)}),E||(Ie.onMouseOver=be(),Ie.onMouseLeave=Ne(),L&&(ze.onMouseOver=be(!1),ze.onMouseLeave=Ne(!1))),w||(Ie.onFocus=Pe(),Ie.onBlur=Ne(),L&&(ze.onFocus=Pe(!1),ze.onBlur=Ne(!1)));var Fe=r.useMemo((function(){return(0,f.Z)({popperOptions:{modifiers:{arrow:{enabled:Boolean(oe),element:oe}}}},J)}),[oe,J]);return r.createElement(r.Fragment,null,r.cloneElement(u,Ie),r.createElement(V,(0,o.Z)({className:(0,l.Z)(d.popper,L&&d.popperInteractive,i&&d.popperArrow),placement:q,anchorEl:ne,open:!!ne&&ve,id:Ie["aria-describedby"],transition:!0},ze,Fe),(function(e){var t=e.placement,n=e.TransitionProps;return r.createElement(G,(0,o.Z)({timeout:ee.transitions.duration.shorter},n,X),r.createElement("div",{className:(0,l.Z)(d.tooltip,d["tooltipPlacement".concat((0,h.Z)(t.split("-")[0]))],se.current&&d.touch,i&&d.tooltipArrow)},Y,i?r.createElement("span",{className:d.arrow,ref:ae}):null))})))})),E=(0,p.Z)((function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none"},popperInteractive:{pointerEvents:"auto"},popperArrow:{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}},tooltip:{backgroundColor:(0,d.U1)(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(w(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},tooltipArrow:{position:"relative",margin:"0"},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:(0,d.U1)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(w(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:(0,u.Z)({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:(0,u.Z)({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:(0,u.Z)({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:(0,u.Z)({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip",flip:!1})(j);n(42560);function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(){return C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C.apply(this,arguments)}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){k(e,t,n[t])}))}return e}function Z(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function N(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var T=function(e){var t,n=e.placement,r=void 0===n?"top-start":n,o=e.className,a=e.arrow,s=void 0===a||a,u=e.PopperProps,c=e.boundariesElement,f=void 0===c?"scrollParent":c,d=N(e,["placement","className","arrow","PopperProps","boundariesElement"]),p=Z(P({},e.classes),{popper:(0,l.Z)("paraui-tooltip",o,null===(t=e.classes)||void 0===t?void 0:t.popper,{"paraui-tooltip-left-right":(null==r?void 0:r.includes("left"))||(null==r?void 0:r.includes("right")),"paraui-tooltip-top-bottom":(null==r?void 0:r.includes("top"))||(null==r?void 0:r.includes("bottom"))})});return i().createElement(E,C({},d,{enterTouchDelay:0,arrow:s,placement:r,classes:p,PopperProps:Z(P({},u),{modifiers:{preventOverflow:{boundariesElement:f}}})}))}},65395:function(e){"use strict";e.exports=r},58543:function(e){"use strict";e.exports=n},8156:function(t){"use strict";t.exports=e},47111:function(e){"use strict";e.exports=t},30907:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},83878:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:function(){return r}})},45057:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(30907);function i(e){if(Array.isArray(e))return(0,r.Z)(e)}},97326:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},15671:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},43144:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:function(){return i}})},4942:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},87462:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:function(){return r}})},94578:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(89611);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},59199:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return r}})},31902:function(e,t,n){"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}n.d(t,{Z:function(){return r}})},25267:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},42786:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},45987:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(63366);function i(e,t){if(null==e)return{};var n,i,o=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},63366:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{Z:function(){return r}})},89611:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},93324:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(83878),i=n(31902),o=n(40181),a=n(25267);function s(e,t){return(0,r.Z)(e)||(0,i.Z)(e,t)||(0,o.Z)(e,t)||(0,a.Z)()}},89062:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(45057),i=n(59199),o=n(40181),a=n(42786);function s(e){return(0,r.Z)(e)||(0,i.Z)(e)||(0,o.Z)(e)||(0,a.Z)()}},71002:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},40181:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(30907);function i(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,exports:{}};return i[e](n,n.exports,a),n.exports}a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nc=void 0;var s={};return function(){"use strict";a.r(s),a.d(s,{InputLang:function(){return v}});var e=a(8156),t=a.n(e),n=a(10758),r=a(38219),i=a(36413),o=a(21512),u=a.n(o),c=a(58543);a(13957);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){f(e,t,n[t])}))}return e}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||m(e,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 h(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}var v=function(o){var a=o.className,s=void 0===a?"":a,l=o.style,f=o.label,m=void 0===f?"":f,v=o.labelTooltip,y=o.size,g=void 0===y?"large":y,b=o.placeholder,x=void 0===b?"":b,w=o.placeholderKey,O=void 0===w?"":w,S=o.placeholderValue,j=void 0===S?"":S,E=o.error,k=void 0!==E&&E,C=o.helperText,P=void 0===C?"":C,Z=o.required,N=void 0!==Z&&Z,T=o.popoverClassName,R=o.value,M=o.onChange,A=o.langList,_=void 0===A?["zh","en"]:A,L=o.disabled,I=void 0!==L&&L,z=p((0,e.useState)(!1),2),F=z[0],D=z[1],B=p((0,e.useState)(null),2),H=B[0],U=B[1],W=p((0,e.useState)("input-lang-"+(0,c.UUID)()),1)[0],q=p((0,e.useState)((0,c.GetLanguage)()||"zh"),1)[0],$=p((0,e.useState)({}),2),V=$[0],J=$[1],Y=p((0,e.useState)([]),2),K=Y[0],G=Y[1];(0,e.useEffect)((function(){void 0!==o.defaultValue&&Q(o.defaultValue)}),[]),(0,e.useEffect)((function(){void 0!==R&&Q(R)}),[R]);var X,Q=function(e){var t=d({},e);void 0===t[q]&&(t[q]="");for(var n=Object.keys(t),r=[],i=0,o=n.length;i<o;i++){var a=n[i],s=t[a];a!==q&&r.push({label:a,value:s})}G(r),J(t)},ee=function(e){G(h(e))},te=function(e,t){for(var n=[],r=(0,c.ArrayToObject)("label",K),i=0,o=_.length;i<o;i++){var a=_[i];r[a]||a===q||n.push({label:a,value:a})}t(n)},ne=function(){U(null),D(!1);var e={};e[q]=V[q];for(var t=0,n=K.length;t<n;t++){var r=K[t];r.label&&(e[r.label]=r.value||"")}void 0===o.value&&J(d({},e)),M&&M(d({},e))},re=(0,e.useMemo)((function(){return t().createElement("div",null,q)}),[q]),ie=(0,e.useMemo)((function(){return t().createElement("div",{className:"lang-list-icon"},t().createElement(u(),null))}),[]),oe=(0,e.useMemo)((function(){return t().createElement(i.default,{open:F,anchorEl:H,onClose:ne,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},className:(e="paraui-input-lang-popover",T&&(e+=" "+T),e)},t().createElement("div",{className:"input-lang-list"},t().createElement(r.default,{size:g,disabled:I,value:K,onChange:ee,fetchSuggestionsKey:te,placeholderKey:O,placeholderValue:j})));var e}),[F,T,K,O,j,q,_,g,I]);return t().createElement("div",{className:(X="paraui-input-lang input-lang",X+=" "+W,g&&(X+=" input-lang-"+g),s&&(X+=" "+s),X),style:l},t().createElement(n.default,{size:g,error:k,disabled:I,required:N,helperText:P,label:m,labelTooltip:v,placeholder:x,value:V[q],addonAfter:ie,addonBefore:re,onClickAddonAfter:function(){var e=document.querySelector("."+W+" .text-field-content-after");U(e),D(!0)},onChange:function(e){V[q]=e.target.value;var t=d({},V);void 0===o.value&&J(t),M&&M(t)}}),oe)};s.default=v}(),s}()}));
|