@docthub.frontend/app 0.1.17 → 0.1.18
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/build/index.js
CHANGED
|
@@ -292,7 +292,7 @@ function Mo(e,t){const n=Co(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
292
292
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
293
293
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
294
294
|
* SOFTWARE.
|
|
295
|
-
*/var Pj=Tj&&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()},Dj))}};function Aj(e){return e&&"[object Function]"==={}.toString.call(e)}function Fj(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Rj(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function jj(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Fj(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:jj(Rj(e))}function Ij(e){return e&&e.referenceNode?e.referenceNode:e}var Vj=Tj&&!(!window.MSInputMethodContext||!document.documentMode),Lj=Tj&&/MSIE 10/.test(navigator.userAgent);function Hj(e){return 11===e?Vj:10===e?Lj:Vj||Lj}function _j(e){if(!e)return document.documentElement;for(var t=Hj(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"===Fj(n,"position")?_j(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Bj(e){return null!==e.parentNode?Bj(e.parentNode):e}function Uj(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,o=n?t:e,a=document.createRange();a.setStart(r,0),a.setEnd(o,0);var i,s,l=a.commonAncestorContainer;if(e!==l&&t!==l||r.contains(o))return"BODY"===(s=(i=l).nodeName)||"HTML"!==s&&_j(i.firstElementChild)!==i?_j(l):l;var c=Bj(e);return c.host?Uj(c.host,t):Uj(e,Bj(t).host)}function $j(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function zj(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 Wj(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Hj(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function Zj(e){var t=e.body,n=e.documentElement,r=Hj(10)&&getComputedStyle(n);return{height:Wj("Height",t,n,r),width:Wj("Width",t,n,r)}}var Yj=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}}(),qj=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Gj=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 Kj(e){return Gj({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Xj(e){var t={};try{if(Hj(10)){t=e.getBoundingClientRect();var n=$j(e,"top"),r=$j(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===e.nodeName?Zj(e.ownerDocument):{},i=a.width||e.clientWidth||o.width,s=a.height||e.clientHeight||o.height,l=e.offsetWidth-i,c=e.offsetHeight-s;if(l||c){var u=Fj(e);l-=zj(u,"x"),c-=zj(u,"y"),o.width-=l,o.height-=c}return Kj(o)}function Qj(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Hj(10),o="HTML"===t.nodeName,a=Xj(e),i=Xj(t),s=jj(e),l=Fj(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&o&&(i.top=Math.max(i.top,0),i.left=Math.max(i.left,0));var d=Kj({top:a.top-i.top-c,left:a.left-i.left-u,width:a.width,height:a.height});if(d.marginTop=0,d.marginLeft=0,!r&&o){var p=parseFloat(l.marginTop),m=parseFloat(l.marginLeft);d.top-=c-p,d.bottom-=c-p,d.left-=u-m,d.right-=u-m,d.marginTop=p,d.marginLeft=m}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=$j(t,"top"),o=$j(t,"left"),a=n?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=o*a,e.right+=o*a,e}(d,t)),d}function Jj(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===Fj(e,"position"))return!0;var n=Rj(e);return!!n&&Jj(n)}function eI(e){if(!e||!e.parentElement||Hj())return document.documentElement;for(var t=e.parentElement;t&&"none"===Fj(t,"transform");)t=t.parentElement;return t||document.documentElement}function tI(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a={top:0,left:0},i=o?eI(e):Uj(e,Ij(t));if("viewport"===r)a=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=Qj(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),i=t?0:$j(n),s=t?0:$j(n,"left");return Kj({top:i-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:a})}(i,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=jj(Rj(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=Qj(s,i,o);if("HTML"!==s.nodeName||Jj(i))a=l;else{var c=Zj(e.ownerDocument),u=c.height,d=c.width;a.top+=l.top-l.marginTop,a.bottom=u+l.top,a.left+=l.left-l.marginLeft,a.right=d+l.left}}var p="number"==typeof(n=n||0);return a.left+=p?n:n.left||0,a.top+=p?n:n.top||0,a.right-=p?n:n.right||0,a.bottom-=p?n:n.bottom||0,a}function nI(e){return e.width*e.height}function rI(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var i=tI(n,r,a,o),s={top:{width:i.width,height:t.top-i.top},right:{width:i.right-t.right,height:i.height},bottom:{width:i.width,height:i.bottom-t.bottom},left:{width:t.left-i.left,height:i.height}},l=Object.keys(s).map(function(e){return Gj({key:e},s[e],{area:nI(s[e])})}).sort(function(e,t){return t.area-e.area}),c=l.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function oI(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Qj(n,r?eI(t):Uj(t,Ij(n)),r)}function aI(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 iI(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 sI(e,t,n){n=n.split("-")[0];var r=aI(e),o={width:r.width,height:r.height},a=-1!==["right","left"].indexOf(n),i=a?"top":"left",s=a?"left":"top",l=a?"height":"width",c=a?"width":"height";return o[i]=t[i]+t[l]/2-r[l]/2,o[s]=n===s?t[s]-r[c]:t[iI(s)],o}function lI(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function cI(e,t,n){var r=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=lI(e,function(e){return e[t]===n});return e.indexOf(r)}(e,"name",n));return r.forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&Aj(n)&&(t.offsets.popper=Kj(t.offsets.popper),t.offsets.reference=Kj(t.offsets.reference),t=n(t,e))}),t}function uI(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=oI(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=rI(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=sI(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=cI(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function dI(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function pI(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],a=o?""+o+n:e;if(void 0!==document.body.style[a])return a}return null}function mI(){return this.state.isDestroyed=!0,dI(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[pI("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function fI(e){var t=e.ownerDocument;return t?t.defaultView:window}function hI(e,t,n,r){var o="BODY"===e.nodeName,a=o?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),o||hI(jj(a.parentNode),t,n,r),r.push(a)}function gI(e,t,n,r){n.updateBound=r,fI(e).addEventListener("resize",n.updateBound,{passive:!0});var o=jj(e);return hI(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function bI(){this.state.eventsEnabled||(this.state=gI(this.reference,this.options,this.state,this.scheduleUpdate))}function vI(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(e,t){return fI(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}(this.reference,this.state))}function yI(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function xI(e,t){Object.keys(t).forEach(function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&yI(t[n])&&(r="px"),e.style[n]=t[n]+r})}var wI=Tj&&/Firefox/i.test(navigator.userAgent);function EI(e,t,n){var r=lI(e,function(e){return e.name===t}),o=!!r&&e.some(function(e){return e.name===n&&e.enabled&&e.order<r.order});if(!o){var a="`"+t+"`",i="`"+n+"`";console.warn(i+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return o}var CI=["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"],kI=CI.slice(3);function SI(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=kI.indexOf(e),r=kI.slice(n+1).concat(kI.slice(0,n));return t?r.reverse():r}var NI="flip",MI="clockwise",OI="counterclockwise";function TI(e,t,n,r){var o=[0,0],a=-1!==["right","left"].indexOf(r),i=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=i.indexOf(lI(i,function(e){return-1!==e.search(/,|\s/)}));i[s]&&-1===i[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[i.slice(0,s).concat([i[s].split(l)[0]]),[i[s].split(l)[1]].concat(i.slice(s+1))]:[i];return c=c.map(function(e,r){var o=(1===r?!a:a)?"height":"width",i=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,i=!0,e):i?(e[e.length-1]+=t,i=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+o[1],i=o[2];if(!a)return e;if(0===i.indexOf("%")){return Kj("%p"===i?n:r)[t]/100*a}if("vh"===i||"vw"===i)return("vh"===i?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*a;return a}(e,o,t,n)})}),c.forEach(function(e,t){e.forEach(function(n,r){yI(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))})}),o}var DI={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,a=o.reference,i=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:qj({},l,a[l]),end:qj({},l,a[l]+a[c]-i[c])};e.offsets.popper=Gj({},i,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,a=o.popper,i=o.reference,s=r.split("-")[0],l=void 0;return l=yI(+n)?[+n,0]:TI(n,a,i,s),"left"===s?(a.top+=l[0],a.left-=l[1]):"right"===s?(a.top+=l[0],a.left+=l[1]):"top"===s?(a.left+=l[0],a.top-=l[1]):"bottom"===s&&(a.left+=l[0],a.top+=l[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||_j(e.instance.popper);e.instance.reference===n&&(n=_j(n));var r=pI("transform"),o=e.instance.popper.style,a=o.top,i=o.left,s=o[r];o.top="",o.left="",o[r]="";var l=tI(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=a,o.left=i,o[r]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),qj({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),qj({},n,r)}};return c.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=Gj({},u,d[t](e))}),e.offsets.popper=u,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,o=e.placement.split("-")[0],a=Math.floor,i=-1!==["top","bottom"].indexOf(o),s=i?"right":"bottom",l=i?"left":"top",c=i?"width":"height";return n[s]<a(r[l])&&(e.offsets.popper[l]=a(r[l])-n[c]),n[l]>a(r[s])&&(e.offsets.popper[l]=a(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!EI(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 o=e.placement.split("-")[0],a=e.offsets,i=a.popper,s=a.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),p=l?"left":"top",m=l?"bottom":"right",f=aI(r)[c];s[m]-f<i[d]&&(e.offsets.popper[d]-=i[d]-(s[m]-f)),s[d]+f>i[m]&&(e.offsets.popper[d]+=s[d]+f-i[m]),e.offsets.popper=Kj(e.offsets.popper);var h=s[d]+s[c]/2-f/2,g=Fj(e.instance.popper),b=parseFloat(g["margin"+u]),v=parseFloat(g["border"+u+"Width"]),y=h-e.offsets.popper[d]-b-v;return y=Math.max(Math.min(i[c]-f,y),0),e.arrowElement=r,e.offsets.arrow=(qj(n={},d,Math.round(y)),qj(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(dI(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=tI(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=iI(r),a=e.placement.split("-")[1]||"",i=[];switch(t.behavior){case NI:i=[r,o];break;case MI:i=SI(r);break;case OI:i=SI(r,!0);break;default:i=t.behavior}return i.forEach(function(s,l){if(r!==s||i.length===l+1)return e;r=e.placement.split("-")[0],o=iI(r);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,p="left"===r&&d(c.right)>d(u.left)||"right"===r&&d(c.left)<d(u.right)||"top"===r&&d(c.bottom)>d(u.top)||"bottom"===r&&d(c.top)<d(u.bottom),m=d(c.left)<d(n.left),f=d(c.right)>d(n.right),h=d(c.top)<d(n.top),g=d(c.bottom)>d(n.bottom),b="left"===r&&m||"right"===r&&f||"top"===r&&h||"bottom"===r&&g,v=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(v&&"start"===a&&m||v&&"end"===a&&f||!v&&"start"===a&&h||!v&&"end"===a&&g),x=!!t.flipVariationsByContent&&(v&&"start"===a&&f||v&&"end"===a&&m||!v&&"start"===a&&g||!v&&"end"===a&&h),w=y||x;(p||b||w)&&(e.flipped=!0,(p||b)&&(r=i[l+1]),w&&(a=function(e){return"end"===e?"start":"start"===e?"end":e}(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=Gj({},e.offsets.popper,sI(e.instance.popper,e.offsets.reference,e.placement)),e=cI(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,o=r.popper,a=r.reference,i=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[i?"left":"top"]=a[n]-(s?o[i?"width":"height"]:0),e.placement=iI(t),e.offsets.popper=Kj(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!EI(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=lI(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,o=e.offsets.popper,a=lI(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==a&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var i=void 0!==a?a:t.gpuAcceleration,s=_j(e.instance.popper),l=Xj(s),c={position:o.position},u=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,a=Math.round,i=Math.floor,s=function(e){return e},l=a(o.width),c=a(r.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),p=t?u||d||l%2==c%2?a:i:s,m=t?a:s;return{left:p(l%2==1&&c%2==1&&!d&&t?r.left-1:r.left),top:m(r.top),bottom:m(r.bottom),right:p(r.right)}}(e,window.devicePixelRatio<2||!wI),d="bottom"===n?"top":"bottom",p="right"===r?"left":"right",m=pI("transform"),f=void 0,h=void 0;if(h="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,f="right"===p?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,i&&m)c[m]="translate3d("+f+"px, "+h+"px, 0)",c[d]=0,c[p]=0,c.willChange="transform";else{var g="bottom"===d?-1:1,b="right"===p?-1:1;c[d]=h*g,c[p]=f*b,c.willChange=d+", "+p}var v={"x-placement":e.placement};return e.attributes=Gj({},v,e.attributes),e.styles=Gj({},c,e.styles),e.arrowStyles=Gj({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return xI(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&&xI(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var a=oI(o,t,e,n.positionFixed),i=rI(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",i),xI(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},PI={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:DI},AI=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Pj(this.update.bind(this)),this.options=Gj({},e.Defaults,o),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(Gj({},e.Defaults.modifiers,o.modifiers)).forEach(function(t){r.options.modifiers[t]=Gj({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return Gj({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&Aj(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return Yj(e,[{key:"update",value:function(){return uI.call(this)}},{key:"destroy",value:function(){return mI.call(this)}},{key:"enableEventListeners",value:function(){return bI.call(this)}},{key:"disableEventListeners",value:function(){return vI.call(this)}}]),e}();AI.Utils=("undefined"!=typeof window?window:global).PopperUtils,AI.placements=CI,AI.Defaults=PI;var FI=AI;var RI="undefined"!=typeof window?s.useLayoutEffect:s.useEffect,jI=s.forwardRef(function(e,t){var n=e.children,r=e.container,o=e.disablePortal,a=void 0!==o&&o,i=e.onRendered,l=s.useState(null),u=l[0],d=l[1],p=UR(s.isValidElement(n)?n.ref:null,t);return RI(function(){a||d(function(e){return e="function"==typeof e?e():e,c.findDOMNode(e)}(r)||document.body)},[r,a]),RI(function(){if(u&&!a)return LR(t,u),function(){LR(t,null)}},[t,u,a]),RI(function(){i&&(u||a)&&i()},[i,u,a]),a?s.isValidElement(n)?s.cloneElement(n,{ref:p}):n:u?c.createPortal(n,u):u});"production"!==process.env.NODE_ENV&&(jI.propTypes={children:L.exports.node,container:L.exports.oneOfType([gF,L.exports.instanceOf(s.Component),L.exports.func]),disablePortal:L.exports.bool,onRendered:RR(L.exports.func,"Use the ref instead.")}),"production"!==process.env.NODE_ENV&&(jI.propTypes=aF(jI.propTypes));var II=jI;function VI(e){return"function"==typeof e?e():e}var LI="undefined"!=typeof window?s.useLayoutEffect:s.useEffect,HI={},_I=s.forwardRef(function(e,t){var n=e.anchorEl,r=e.children,o=e.container,a=e.disablePortal,i=void 0!==a&&a,l=e.keepMounted,c=void 0!==l&&l,u=e.modifiers,d=e.open,p=e.placement,m=void 0===p?"bottom":p,f=e.popperOptions,h=void 0===f?HI:f,g=e.popperRef,b=e.style,v=e.transition,y=void 0!==v&&v,x=xF(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),w=s.useRef(null),E=UR(w,t),C=s.useRef(null),k=UR(C,g),S=s.useRef(k);LI(function(){S.current=k},[k]),s.useImperativeHandle(g,function(){return C.current},[]);var N=s.useState(!0),M=N[0],O=N[1],T=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(m,DF()),D=s.useState(T),P=D[0],A=D[1];s.useEffect(function(){C.current&&C.current.update()});var R=s.useCallback(function(){if(w.current&&n&&d){C.current&&(C.current.destroy(),S.current(null));var e=function(e){A(e.placement)},t=VI(n);if("production"!==process.env.NODE_ENV&&t&&1===t.nodeType){var r=t.getBoundingClientRect();"test"!==process.env.NODE_ENV&&0===r.top&&0===r.left&&0===r.right&&0===r.bottom&&console.warn(["Material-UI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join("\n"))}var o=new FI(VI(n),w.current,F({placement:T},h,{modifiers:F({},i?{}:{preventOverflow:{boundariesElement:"window"}},u,h.modifiers),onCreate:yF(e,h.onCreate),onUpdate:yF(e,h.onUpdate)}));S.current(o)}},[n,i,u,d,T,h]),j=s.useCallback(function(e){LR(E,e),R()},[E,R]),I=function(){C.current&&(C.current.destroy(),S.current(null))};if(s.useEffect(function(){return function(){I()}},[]),s.useEffect(function(){d||y||I()},[d,y]),!c&&!d&&(!y||M))return null;var V={placement:P};return y&&(V.TransitionProps={in:d,onEnter:function(){O(!1)},onExited:function(){O(!0),I()}}),s.createElement(II,{disablePortal:i,container:o},s.createElement("div",F({ref:j,role:"tooltip"},x,{style:F({position:"fixed",top:0,left:0,display:d||!c||y?null:"none"},b)}),"function"==typeof r?r(V):r))});"production"!==process.env.NODE_ENV&&(_I.propTypes={anchorEl:XA(L.exports.oneOfType([gF,L.exports.object,L.exports.func]),function(e){if(e.open){var t=VI(e.anchorEl);if(t&&1===t.nodeType){var n=t.getBoundingClientRect();if("test"!==process.env.NODE_ENV&&0===n.top&&0===n.left&&0===n.right&&0===n.bottom)return new Error(["Material-UI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join("\n"))}else if(!t||"number"!=typeof t.clientWidth||"number"!=typeof t.clientHeight||"function"!=typeof t.getBoundingClientRect)return new Error(["Material-UI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a referenceObject ","(https://popper.js.org/docs/v1/#referenceObject)."].join("\n"))}return null}),children:L.exports.oneOfType([L.exports.node,L.exports.func]).isRequired,container:L.exports.oneOfType([gF,L.exports.instanceOf(s.Component),L.exports.func]),disablePortal:L.exports.bool,keepMounted:L.exports.bool,modifiers:L.exports.object,open:L.exports.bool.isRequired,placement:L.exports.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:L.exports.object,popperRef:bF,style:L.exports.object,transition:L.exports.bool});var BI=_I;function UI(e){return Math.round(1e5*e)/1e5}var $I=!1,zI=null,WI=s.forwardRef(function(e,t){var n=e.arrow,r=void 0!==n&&n,o=e.children,a=e.classes,i=e.disableFocusListener,l=void 0!==i&&i,u=e.disableHoverListener,d=void 0!==u&&u,p=e.disableTouchListener,m=void 0!==p&&p,f=e.enterDelay,h=void 0===f?100:f,g=e.enterNextDelay,b=void 0===g?0:g,v=e.enterTouchDelay,y=void 0===v?700:v,x=e.id,w=e.interactive,E=void 0!==w&&w,C=e.leaveDelay,k=void 0===C?0:C,S=e.leaveTouchDelay,N=void 0===S?1500:S,M=e.onClose,O=e.onOpen,T=e.open,D=e.placement,P=void 0===D?"bottom":D,A=e.PopperComponent,R=void 0===A?BI:A,j=e.PopperProps,I=e.title,V=e.TransitionComponent,L=void 0===V?Oj:V,H=e.TransitionProps,_=xF(e,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"]),B=Ej(),U=s.useState(),$=U[0],z=U[1],W=s.useState(null),Z=W[0],Y=W[1],q=s.useRef(!1),G=s.useRef(),K=s.useRef(),X=s.useRef(),Q=s.useRef(),J=yR(HR({controlled:T,default:!1,name:"Tooltip",state:"open"}),2),ee=J[0],te=J[1],ne=ee;if("production"!==process.env.NODE_ENV){var re=s.useRef(void 0!==T).current;s.useEffect(function(){$&&$.disabled&&!re&&""!==I&&"button"===$.tagName.toLowerCase()&&console.error(["Material-UI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join("\n"))},[I,$,re])}var oe=$R(x);s.useEffect(function(){return function(){clearTimeout(G.current),clearTimeout(K.current),clearTimeout(X.current),clearTimeout(Q.current)}},[]);var ae=function(e){clearTimeout(zI),$I=!0,te(!0),O&&O(e)},ie=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=o.props;"mouseover"===t.type&&n.onMouseOver&&e&&n.onMouseOver(t),q.current&&"touchstart"!==t.type||($&&$.removeAttribute("title"),clearTimeout(K.current),clearTimeout(X.current),h||$I&&b?(t.persist(),K.current=setTimeout(function(){ae(t)},$I?b:h)):ae(t))}},se=JR(),le=se.isFocusVisible,ce=se.onBlurVisible,ue=se.ref,de=s.useState(!1),pe=de[0],me=de[1],fe=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){$||z(t.currentTarget),le(t)&&(me(!0),ie()(t));var n=o.props;n.onFocus&&e&&n.onFocus(t)}},he=function(e){clearTimeout(zI),zI=setTimeout(function(){$I=!1},800+k),te(!1),M&&M(e),clearTimeout(G.current),G.current=setTimeout(function(){q.current=!1},B.transitions.duration.shortest)},ge=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=o.props;"blur"===t.type&&(n.onBlur&&e&&n.onBlur(t),pe&&(me(!1),ce())),"mouseleave"===t.type&&n.onMouseLeave&&t.currentTarget===$&&n.onMouseLeave(t),clearTimeout(K.current),clearTimeout(X.current),t.persist(),X.current=setTimeout(function(){he(t)},k)}},be=function(e){q.current=!0;var t=o.props;t.onTouchStart&&t.onTouchStart(e)},ve=UR(z,t),ye=UR(ue,ve),xe=s.useCallback(function(e){LR(ye,c.findDOMNode(e))},[ye]),we=UR(o.ref,xe);""===I&&(ne=!1);var Ee=F({"aria-describedby":ne?oe:null,title:!ne&&!d&&"string"==typeof I?I:null},_,o.props,{className:pA(_.className,o.props.className),onTouchStart:be,ref:we}),Ce={};m||(Ee.onTouchStart=function(e){be(e),clearTimeout(X.current),clearTimeout(G.current),clearTimeout(Q.current),e.persist(),Q.current=setTimeout(function(){ie()(e)},y)},Ee.onTouchEnd=function(e){o.props.onTouchEnd&&o.props.onTouchEnd(e),clearTimeout(Q.current),clearTimeout(X.current),e.persist(),X.current=setTimeout(function(){he(e)},N)}),d||(Ee.onMouseOver=ie(),Ee.onMouseLeave=ge(),E&&(Ce.onMouseOver=ie(!1),Ce.onMouseLeave=ge(!1))),l||(Ee.onFocus=fe(),Ee.onBlur=ge(),E&&(Ce.onFocus=fe(!1),Ce.onBlur=ge(!1))),"production"!==process.env.NODE_ENV&&o.props.title&&console.error(["Material-UI: You have provided a `title` prop to the child of <Tooltip />.","Remove this title prop `".concat(o.props.title,"` or the Tooltip component.")].join("\n"));var ke=s.useMemo(function(){return JA({popperOptions:{modifiers:{arrow:{enabled:Boolean(Z),element:Z}}}},j)},[Z,j]);return s.createElement(s.Fragment,null,s.cloneElement(o,Ee),s.createElement(R,F({className:pA(a.popper,E&&a.popperInteractive,r&&a.popperArrow),placement:P,anchorEl:$,open:!!$&&ne,id:Ee["aria-describedby"],transition:!0},Ce,ke),function(e){var t=e.placement,n=e.TransitionProps;return s.createElement(L,F({timeout:B.transitions.duration.shorter},n,H),s.createElement("div",{className:pA(a.tooltip,a["tooltipPlacement".concat(vF(t.split("-")[0]))],q.current&&a.touch,r&&a.tooltipArrow)},I,r?s.createElement("span",{className:a.arrow,ref:Y}):null))}))});"production"!==process.env.NODE_ENV&&(WI.propTypes={arrow:L.exports.bool,children:nF.isRequired,classes:L.exports.object,className:L.exports.string,disableFocusListener:L.exports.bool,disableHoverListener:L.exports.bool,disableTouchListener:L.exports.bool,enterDelay:L.exports.number,enterNextDelay:L.exports.number,enterTouchDelay:L.exports.number,id:L.exports.string,interactive:L.exports.bool,leaveDelay:L.exports.number,leaveTouchDelay:L.exports.number,onClose:L.exports.func,onOpen:L.exports.func,open:L.exports.bool,placement:L.exports.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:L.exports.elementType,PopperProps:L.exports.object,title:L.exports.node.isRequired,TransitionComponent:L.exports.elementType,TransitionProps:L.exports.object});var ZI=TR(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:aR(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(UI(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:aR(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(UI(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:oF({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:oF({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:oF({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:oF({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}},{name:"MuiTooltip",flip:!1})(WI);Sc(".social-share-list-wrapper-class {\n z-index: 1;\n}\n.social-share-list-wrapper-class .MuiIconButton-root {\n color: #afafaf !important;\n}\n.social-share-list-wrapper-class .social-share-list {\n top: 42px;\n left: 50%;\n transform: translateX(-50%);\n box-shadow: 0px 2px 13px -8px rgba(0, 0, 0, 0.5);\n transition: 0.3s all;\n height: 0;\n overflow: hidden;\n background: #ffffff;\n z-index: 999999999;\n}\n.social-share-list-wrapper-class .social-share-list li {\n padding: 4px 8px;\n}\n.social-share-list-wrapper-class .social-share-list li:first-child {\n padding-top: 8px;\n}\n.social-share-list-wrapper-class .social-share-list li:last-child {\n padding-bottom: 8px;\n}\n.social-share-list-wrapper-class .social-share-list button,\n.social-share-list-wrapper-class .social-share-list svg {\n width: 32px;\n height: 32px;\n}\n.social-share-list-wrapper-class .social-share-list svg {\n border-radius: 4px;\n}\n\n.social-share-list-bakcdrop {\n z-index: 0 !important;\n}");var YI=function(t){var n=t.redirectUrl,r=void 0===n?window.location.href:n,o=t.className,a=t.menuProps,s=e.useState(0),l=s[0],c=s[1],u=i.default.useState(null),d=u[0],p=u[1];e.useEffect(function(){var e=document.querySelector(".social-share-list").scrollHeight;c(e)},[]);var m=Boolean(d),f={height:"".concat(m?l:0,"px")};return i.default.createElement("div",{className:"position-relative social-share-list-wrapper-class"},i.default.createElement(ZI,{title:"".concat(m?"Close Share":"Open Share"),placement:"top"},i.default.createElement(wj,{className:"".concat(m&&"active-btn"),"aria-label":"delete",size:"small",onClick:function(e){p(d?null:e.currentTarget)}},m?i.default.createElement(dj,null):i.default.createElement(aj,null))),i.default.createElement("ul",{className:"social-share-list",style:f},i.default.createElement(OE,Dc({anchorEl:d,id:"account-menu",open:m,className:o?"".concat(o," social-share-list-bakcdrop"):"social-share-list-bakcdrop",PaperProps:{elevation:0,sx:{boxShadow:"none",border:"1px solid #00000014",mt:1.5,mb:0}},transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"}},a),i.default.createElement("li",null,i.default.createElement(_A,{url:r},i.default.createElement(jA,{size:34}))),i.default.createElement("li",null,i.default.createElement(zA,{url:r},i.default.createElement($A,{size:34}))),i.default.createElement("li",null,i.default.createElement(ZA,{url:r},i.default.createElement(WA,{size:34}))),i.default.createElement("li",null,i.default.createElement(UA,{url:r},i.default.createElement(BA,{size:34}))),i.default.createElement("li",null,i.default.createElement(RA,{url:r},i.default.createElement(wA,{size:34}))))))},qI=function(t){var n=t.error,r=t.verifiedMessage,o=t.onResendClick,a=t.setOtpValues,s=t.otpValues,l=t.isResendDisable,c=t.countDownTime,u=void 0===c?60:c,d=e.useState(u),p=d[0],m=d[1],f=e.useState(!1);f[0];var h=f[1],g=[e.useRef(),e.useRef(),e.useRef(),e.useRef(),e.useRef(),e.useRef()];return e.useEffect(function(){if(0!==p){var e=setInterval(function(){m(function(e){return e-1})},1e3);return function(){return clearInterval(e)}}},[p]),e.useEffect(function(){m(u)},[u]),e.useEffect(function(){var e=s.findIndex(function(e){return""===e});-1!==e&&g[e].current.focus()},[s]),i.default.createElement(i.default.Fragment,null,i.default.createElement("div",{className:"d-flex justify-content-center align-items-center"},s.map(function(e,t){return i.default.createElement("input",{key:t,ref:g[t],value:e,onChange:function(e){return function(e,t){var n=e.target,r=n.value,o=n.keyCode;/^\d*$/.test(r)&&(a(function(e){return e.map(function(e,n){return n===t?r:e})}),8!==o&&""!==r||0===t||g[t-1].current.focus(),8!==o&&t!==s.length-1&&1===r.length&&g[t+1].current.focus())}(e,t)},onPaste:function(e){return function(e){var t=e.clipboardData.getData("text").trim();t.length===s.length&&/^\d*$/.test(t)&&(a(t.split("")),g[s.length-1].current.focus())}(e)},onKeyDown:function(n){8===n.keyCode&&""===e&&0!==t&&g[t-1].current.focus()},onKeyPress:function(e){var t=e.which?e.which:e.keyCode;(t<48||t>57)&&e.preventDefault()},onInput:function(e){var t=e.target.value;e.target.value=t.replace(/[^0-9]/g,"")},onCut:function(e){e.preventDefault()},onCopy:function(e){e.preventDefault()},onDrag:function(e){e.preventDefault()},onDrop:function(e){e.preventDefault()},className:"otp-input text-center box-shadow",type:"text",inputMode:"numeric",maxLength:1})})),n&&i.default.createElement(O,{variant:"textLabel2",className:"text-danger font-italic text-center"},"Incorrect OTP, Please enter correct code."),r&&i.default.createElement(O,{variant:"textLabel2",className:"text-danger font-italic text-center"},r),i.default.createElement(O,{variant:"textLabel2",className:"text-center text-grey-600"},"If OTP doesn’t arrive, you can get a new one in ",p," seconds"),i.default.createElement("div",{className:"d-flex justify-content-center align-items-center"},i.default.createElement(T,{text:"Resend",variant:"text",type:"inverse",size:"medium",disabled:0!=p||l,onButtonClickHandler:function(){h(function(e){return e}),o()}})))};Sc(".otp-input {\n width: 46px !important;\n height: 46px !important;\n margin: 0 6px;\n border-radius: 3px;\n border: 1px;\n}\n\n.otp-verification-modal.doct-modal .doct-modal-content-wrapper .doct-modal-header p {\n font-size: 14px !important;\n}\n.otp-verification-modal.doct-modal .doct-modal-content-wrapper .doct-modal-header svg {\n display: none !important;\n}\n.otp-verification-modal .MuiBackdrop-root {\n pointer-events: none !important;\n}\n\ninput[type=number] {\n appearance: textfield;\n -moz-appearance: textfield;\n -webkit-appearance: textfield;\n}\ninput[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button {\n appearance: none;\n -moz-appearance: none;\n -webkit-appearance: none;\n margin: 0;\n}");var GI=function(t){var n=t.handleClose,r=t.error,o=t.verifiedMessage,a=t.open,s=t.onResendClick,l=t.onButtonSubmit,c=t.isOTPValue,u=t.isResendDisable,d=t.countDownTime,p=t.variant,m=t.phoneNumber,f=e.useState(["","","","","",""]),h=f[0],g=f[1],b=e.useState(""),v=b[0],y=b[1],x=e.useState("OTP Verification for Change Number"),w=x[0],E=x[1];e.useEffect(function(){g(["","","","","",""])},[c]),e.useEffect(function(){"mobile"===p?(y("We have sent you an OTP to this mobile number,<br/> to verify that it’s you.<br/> Please check your phone. If you do not receive in a 60 seconds, try to resend."),E("OTP Verification for change Number")):"password"===p?(y("We have sent you an OTP to your registered<br/> email address, to verify that it’s you.<br/> Please check your email inbox. If you do not receive in a 60 seconds, Try Resend."),E("OTP Verification for Change Password")):"email"===p?(y("We have sent you an OTP to your registered<br/> email address, to verify that it’s you.<br/> Please check your email inbox. If you do not receive in a 60 seconds, Try Resend."),E("OTP Verification for Change Email")):"newMobile"===p?(y('We have sent you an OTP to your<br/> new mobile number,<br/> <span class="font-weight-bold"> +91 '.concat(m,"<br/> </span> Please check your phone. If you do not receive in a 60 seconds, try to resend, or check your number.")),E("OTP Verification for New Mobile Number")):(y("We have sent you an OTP to this mobile number,<br/> to verify that it’s you.<br/> Please check your phone, If do not receive in a 60 <br/> seconds, Try Resend."),E("OTP Verification of Mobile Number"))},[p]);return i.default.createElement(i.default.Fragment,null,i.default.createElement(iA,{open:a,title:w,width:360,iconName:"",primaryBtnText:"Submit",className:"otp-verification-modal",handleClose:n,handlePrimaryButtonClick:function(){var e=null==h?void 0:h.join("");l(e)},disableBackdropClick:!0},i.default.createElement("div",{className:"text-label-1 mb-3 text-center",dangerouslySetInnerHTML:{__html:v}}),i.default.createElement(qI,{error:r,verifiedMessage:o,onResendClick:s,setOtpValues:g,otpValues:h,isResendDisable:u,countDownTime:d})))},KI=e=>e instanceof HTMLElement;const XI="blur",QI="change",JI="input",eV="onBlur",tV="onChange",nV="onSubmit",rV="onTouched",oV="all",aV="select",iV="undefined",sV="max",lV="min",cV="maxLength",uV="minLength",dV="pattern",pV="required",mV="validate";var fV=e=>null==e;const hV=e=>"object"==typeof e;var gV=e=>!fV(e)&&!Array.isArray(e)&&hV(e)&&!(e instanceof Date),bV=e=>/^\w*$/.test(e),vV=e=>e.filter(Boolean),yV=e=>vV(e.replace(/["|']/g,"").replace(/\[/g,".").replace(/\]/g,"").split("."));function xV(e,t,n){let r=-1;const o=bV(t)?[t]:yV(t),a=o.length,i=a-1;for(;++r<a;){const t=o[r];let a=n;if(r!==i){const n=e[t];a=gV(n)||Array.isArray(n)?n:isNaN(+o[r+1])?{}:[]}e[t]=a,e=e[t]}return e}var wV=(e,t={})=>{for(const n in e)bV(n)?t[n]=e[n]:xV(t,n,e[n]);return t},EV=e=>void 0===e,CV=(e={},t,n)=>{const r=vV(t.split(/[,[\].]+?/)).reduce((e,t)=>fV(e)?e:e[t],e);return EV(r)||r===e?EV(e[t])?n:e[t]:r},kV=(e,t)=>{KI(e)&&e.removeEventListener&&(e.removeEventListener(JI,t),e.removeEventListener(QI,t),e.removeEventListener(XI,t))};const SV={isValid:!1,value:null};var NV=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.ref.checked?{isValid:!0,value:t.ref.value}:e,SV):SV,MV=e=>"radio"===e.type,OV=e=>"file"===e.type,TV=e=>"checkbox"===e.type,DV=e=>e.type===`${aV}-multiple`;const PV={value:!1,isValid:!1},AV={value:!0,isValid:!0};var FV=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(e=>e&&e.ref.checked).map(({ref:{value:e}})=>e);return{value:t,isValid:!!t.length}}const{checked:t,value:n,attributes:r}=e[0].ref;return t?r&&!EV(r.value)?EV(n)||""===n?AV:{value:n,isValid:!0}:AV:PV}return PV};function RV(e,t,n,r,o){const a=e.current[t];if(a){const{ref:{value:e,disabled:t},ref:n,valueAsNumber:s,valueAsDate:l,setValueAs:c}=a;if(t&&r)return;return OV(n)?n.files:MV(n)?NV(a.options).value:DV(n)?(i=n.options,[...i].filter(({selected:e})=>e).map(({value:e})=>e)):TV(n)?FV(a.options).value:o?e:s?""===e?NaN:+e:l?n.valueAsDate:c?c(e):e}var i;if(n)return CV(n.current,t)}function jV(e){return!e||e instanceof HTMLElement&&e.nodeType!==Node.DOCUMENT_NODE&&jV(e.parentNode)}var IV=e=>gV(e)&&!Object.keys(e).length,VV=e=>"boolean"==typeof e;function LV(e,t){const n=bV(t)?[t]:yV(t),r=1==n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=EV(e)?r++:e[t[r++]];return e}(e,n),o=n[n.length-1];let a;r&&delete r[o];for(let t=0;t<n.slice(0,-1).length;t++){let r,o=-1;const i=n.slice(0,-(t+1)),s=i.length-1;for(t>0&&(a=e);++o<i.length;){const t=i[o];r=r?r[t]:e[t],s===o&&(gV(r)&&IV(r)||Array.isArray(r)&&!r.filter(e=>gV(e)&&!IV(e)||VV(e)).length)&&(a?delete a[t]:delete e[t]),a=r}}return e}const HV=(e,t)=>e&&e.ref===t;var _V=e=>fV(e)||!hV(e);function BV(e,t){if(_V(e)||_V(t))return t;for(const n in t){const r=e[n],o=t[n];try{e[n]=gV(r)&&gV(o)||Array.isArray(r)&&Array.isArray(o)?BV(r,o):o}catch(e){}}return e}function UV(t,n,r){if(_V(t)||_V(n)||t instanceof Date||n instanceof Date)return t===n;if(!e.isValidElement(t)){const e=Object.keys(t),o=Object.keys(n);if(e.length!==o.length)return!1;for(const o of e){const e=t[o];if(!r||"ref"!==o){const t=n[o];if((gV(e)||Array.isArray(e))&&(gV(t)||Array.isArray(t))?!UV(e,t,r):e!==t)return!1}}}return!0}function $V(e,t,n,r,o){let a=-1;for(;++a<e.length;){for(const r in e[a])Array.isArray(e[a][r])?(!n[a]&&(n[a]={}),n[a][r]=[],$V(e[a][r],CV(t[a]||{},r,[]),n[a][r],n[a],r)):UV(CV(t[a]||{},r),e[a][r])?xV(n[a]||{},r):n[a]=Object.assign(Object.assign({},n[a]),{[r]:!0});r&&!n.length&&delete r[o]}return n}var zV=e=>"string"==typeof e,WV=(e,t,n,r,o)=>{const a={};for(const t in e.current)(EV(o)||(zV(o)?t.startsWith(o):Array.isArray(o)&&o.find(e=>t.startsWith(e))))&&(a[t]=RV(e,t,void 0,r));return n?wV(a):BV(t,wV(a))},ZV=e=>e instanceof RegExp,YV=e=>gV(e)&&!ZV(e)?e:{value:e,message:""},qV=e=>"function"==typeof e,GV=t=>zV(t)||e.isValidElement(t);function KV(e,t,n="validate"){if(GV(e)||VV(e)&&!e)return{type:n,message:GV(e)?e:"",ref:t}}var XV=(e,t,n,r,o)=>t?Object.assign(Object.assign({},n[e]),{types:Object.assign(Object.assign({},n[e]&&n[e].types?n[e].types:{}),{[r]:o||!0})}):{},QV=async(e,t,{ref:n,ref:{value:r},options:o,required:a,maxLength:i,minLength:s,min:l,max:c,pattern:u,validate:d},p)=>{const m=n.name,f={},h=MV(n),g=TV(n),b=h||g,v=""===r,y=XV.bind(null,m,t,f),x=(e,t,r,o=cV,a=uV)=>{const i=e?t:r;f[m]=Object.assign({type:e?o:a,message:i,ref:n},y(e?o:a,i))};if(a&&(!h&&!g&&(v||fV(r))||VV(r)&&!r||g&&!FV(o).isValid||h&&!NV(o).isValid)){const{value:r,message:o}=GV(a)?{value:!!a,message:a}:YV(a);if(r&&(f[m]=Object.assign({type:pV,message:o,ref:b?((e.current[m].options||[])[0]||{}).ref:n},y(pV,o)),!t))return f}if(!(fV(l)&&fV(c)||""===r)){let e,o;const a=YV(c),i=YV(l);if(isNaN(r)){const t=n.valueAsDate||new Date(r);zV(a.value)&&(e=t>new Date(a.value)),zV(i.value)&&(o=t<new Date(i.value))}else{const t=n.valueAsNumber||parseFloat(r);fV(a.value)||(e=t>a.value),fV(i.value)||(o=t<i.value)}if((e||o)&&(x(!!e,a.message,i.message,sV,lV),!t))return f}if(zV(r)&&!v&&(i||s)){const e=YV(i),n=YV(s),o=!fV(e.value)&&r.length>e.value,a=!fV(n.value)&&r.length<n.value;if((o||a)&&(x(o,e.message,n.message),!t))return f}if(zV(r)&&u&&!v){const{value:e,message:o}=YV(u);if(ZV(e)&&!e.test(r)&&(f[m]=Object.assign({type:dV,message:o,ref:n},y(dV,o)),!t))return f}if(d){const r=RV(e,m,p,!1,!0),a=b&&o?o[0].ref:n;if(qV(d)){const e=KV(await d(r),a);if(e&&(f[m]=Object.assign(Object.assign({},e),y(mV,e.message)),!t))return f}else if(gV(d)){let e={};for(const[n,o]of Object.entries(d)){if(!IV(e)&&!t)break;const i=KV(await o(r),a,n);i&&(e=Object.assign(Object.assign({},i),y(n,i.message)),t&&(f[m]=e))}if(!IV(e)&&(f[m]=Object.assign({ref:a},e),!t))return f}}return f};const JV=(e,t,n=[])=>{for(const r in t){const o=e+(gV(t)?`.${r}`:`[${r}]`);_V(t[r])?n.push(o):JV(o,t[r],n)}return n};var eL=(e,t,n,r,o)=>{let a;return n.add(t),IV(e)||(a=CV(e,t),(gV(a)||Array.isArray(a))&&JV(t,a).forEach(e=>n.add(e))),EV(a)?o?r:CV(r,t):a},tL=({isOnBlur:e,isOnChange:t,isOnTouch:n,isTouched:r,isReValidateOnBlur:o,isReValidateOnChange:a,isBlurEvent:i,isSubmitted:s,isOnAll:l})=>!l&&(!s&&n?!(r||i):(s?o:e)?!i:!(s?a:t)||i),nL=e=>e.substring(0,e.indexOf("["));var rL=(e,t)=>[...e].some(e=>((e,t)=>RegExp(`^${t}([|.)\\d+`.replace(/\[/g,"\\[").replace(/\]/g,"\\]")).test(e))(t,e));var oL=typeof window!==iV&&typeof document!==iV;function aL(e){var t;let n;if(_V(e)||oL&&(e instanceof File||KI(e)))return e;if(!["Set","Map","Object","Date","Array"].includes(null===(t=e.constructor)||void 0===t?void 0:t.name))return e;if(e instanceof Date)return n=new Date(e.getTime()),n;if(e instanceof Set){n=new Set;for(const t of e)n.add(t);return n}if(e instanceof Map){n=new Map;for(const t of e.keys())n.set(t,aL(e.get(t)));return n}n=Array.isArray(e)?[]:{};for(const t in e)n[t]=aL(e[t]);return n}var iL=e=>({isOnSubmit:!e||e===nV,isOnBlur:e===eV,isOnChange:e===tV,isOnAll:e===oV,isOnTouch:e===rV}),sL=e=>MV(e)||TV(e);const lL=typeof window===iV,cL=oL?"Proxy"in window:typeof Proxy!==iV;function uL({mode:t=nV,reValidateMode:n=tV,resolver:r,context:o,defaultValues:a={},shouldFocusError:i=!0,shouldUnregister:s=!0,criteriaMode:l}={}){const c=e.useRef({}),u=e.useRef({}),d=e.useRef({}),p=e.useRef(new Set),m=e.useRef({}),f=e.useRef({}),h=e.useRef({}),g=e.useRef({}),b=e.useRef(a),v=e.useRef(!1),y=e.useRef(!1),x=e.useRef(),w=e.useRef({}),E=e.useRef({}),C=e.useRef(o),k=e.useRef(r),S=e.useRef(new Set),N=e.useRef(iL(t)),{isOnSubmit:M,isOnTouch:O}=N.current,T=l===oV,[D,P]=e.useState({isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touched:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!M,errors:{}}),A=e.useRef({isDirty:!cL,dirtyFields:!cL,touched:!cL||O,isValidating:!cL,isSubmitting:!cL,isValid:!cL}),F=e.useRef(D),R=e.useRef(),{isOnBlur:j,isOnChange:I}=e.useRef(iL(n)).current;C.current=o,k.current=r,F.current=D,w.current=s?{}:IV(w.current)?aL(a):w.current;const V=e.useCallback((e={})=>{v.current||(F.current=Object.assign(Object.assign({},F.current),e),P(F.current))},[]),L=()=>A.current.isValidating&&V({isValidating:!0}),H=e.useCallback((e,t,n=!1,r={},o)=>{let a=n||(({errors:e,name:t,error:n,validFields:r,fieldsWithValidation:o})=>{const a=EV(n),i=CV(e,t);return a&&!!i||!a&&!UV(i,n,!0)||a&&CV(o,t)&&!CV(r,t)})({errors:F.current.errors,error:t,name:e,validFields:g.current,fieldsWithValidation:h.current});const i=CV(F.current.errors,e);t?(LV(g.current,e),a=a||!i||!UV(i,t,!0),xV(F.current.errors,e,t)):((CV(h.current,e)||k.current)&&(xV(g.current,e,!0),a=a||i),LV(F.current.errors,e)),(a&&!fV(n)||!IV(r)||A.current.isValidating)&&V(Object.assign(Object.assign(Object.assign({},r),k.current?{isValid:!!o}:{}),{isValidating:!1}))},[]),_=e.useCallback((e,t)=>{const{ref:n,options:r}=c.current[e],o=oL&&KI(n)&&fV(t)?"":t;MV(n)?(r||[]).forEach(({ref:e})=>e.checked=e.value===o):OV(n)&&!zV(o)?n.files=o:DV(n)?[...n.options].forEach(e=>e.selected=o.includes(e.value)):TV(n)&&r?r.length>1?r.forEach(({ref:e})=>e.checked=Array.isArray(o)?!!o.find(t=>t===e.value):o===e.value):r[0].ref.checked=!!o:n.value=o},[]),B=e.useCallback((e,t)=>{if(A.current.isDirty){const n=X();return e&&t&&xV(n,e,t),!UV(n,b.current)}return!1},[]),U=e.useCallback((e,t=!0)=>{if(A.current.isDirty||A.current.dirtyFields){const n=!UV(CV(b.current,e),RV(c,e,w)),r=CV(F.current.dirtyFields,e),o=F.current.isDirty;n?xV(F.current.dirtyFields,e,!0):LV(F.current.dirtyFields,e);const a={isDirty:B(),dirtyFields:F.current.dirtyFields},i=A.current.isDirty&&o!==a.isDirty||A.current.dirtyFields&&r!==CV(F.current.dirtyFields,e);return i&&t&&V(a),i?a:{}}return{}},[]),$=e.useCallback(async(e,t)=>{if("production"!==process.env.NODE_ENV&&!c.current[e])return console.warn("📋 Field is missing with `name` attribute: ",e),!1;const n=(await QV(c,T,c.current[e],w))[e];return H(e,n,t),EV(n)},[H,T]),z=e.useCallback(async e=>{const{errors:t}=await k.current(X(),C.current,T),n=F.current.isValid;if(Array.isArray(e)){const n=e.map(e=>{const n=CV(t,e);return n?xV(F.current.errors,e,n):LV(F.current.errors,e),!n}).every(Boolean);return V({isValid:IV(t),isValidating:!1}),n}{const r=CV(t,e);return H(e,r,n!==IV(t),{},IV(t)),!r}},[H,T]),W=e.useCallback(async e=>{const t=e||Object.keys(c.current);if(L(),k.current)return z(t);if(Array.isArray(t)){!e&&(F.current.errors={});const n=await Promise.all(t.map(async e=>await $(e,null)));return V({isValidating:!1}),n.every(Boolean)}return await $(t)},[z,$]),Z=e.useCallback((e,t,{shouldDirty:n,shouldValidate:r})=>{const o={};xV(o,e,t);for(const a of JV(e,t))c.current[a]&&(_(a,CV(o,a)),n&&U(a),r&&W(a))},[W,_,U]),Y=e.useCallback((e,t,n)=>{if(!s&&!_V(t)&&xV(w.current,e,Array.isArray(t)?[...t]:Object.assign({},t)),c.current[e])_(e,t),n.shouldDirty&&U(e),n.shouldValidate&&W(e);else if(!_V(t)&&(Z(e,t,n),S.current.has(e))){const r=nL(e)||e;xV(u.current,e,t),E.current[r]({[r]:CV(u.current,r)}),(A.current.isDirty||A.current.dirtyFields)&&n.shouldDirty&&(xV(F.current.dirtyFields,e,((e,t,n)=>BV($V(e,t,n.slice(0,e.length)),$V(t,e,n.slice(0,e.length))))(t,CV(b.current,e,[]),CV(F.current.dirtyFields,e,[]))),V({isDirty:!UV(Object.assign(Object.assign({},X()),{[e]:t}),b.current)}))}!s&&xV(w.current,e,t)},[U,_,Z]),q=e=>y.current||p.current.has(e)||p.current.has((e.match(/\w+/)||[])[0]),G=e=>{let t=!0;if(!IV(m.current))for(const n in m.current)e&&m.current[n].size&&!m.current[n].has(e)&&!m.current[n].has(nL(e))||(f.current[n](),t=!1);return t};function K(e){if(!s){let t=aL(e);for(const e of S.current)bV(e)&&!t[e]&&(t=Object.assign(Object.assign({},t),{[e]:[]}));return t}return e}function X(e){if(zV(e))return RV(c,e,w);if(Array.isArray(e)){const t={};for(const n of e)xV(t,n,RV(c,n,w));return t}return K(WV(c,aL(w.current),s))}x.current=x.current?x.current:async({type:e,target:t})=>{let n=t.name;const r=c.current[n];let o,a;if(r){const i=e===XI,l=tL(Object.assign({isBlurEvent:i,isReValidateOnChange:I,isReValidateOnBlur:j,isTouched:!!CV(F.current.touched,n),isSubmitted:F.current.isSubmitted},N.current));let u=U(n,!1),d=!IV(u)||!i&&q(n);if(i&&!CV(F.current.touched,n)&&A.current.touched&&(xV(F.current.touched,n,!0),u=Object.assign(Object.assign({},u),{touched:F.current.touched})),!s&&TV(t)&&xV(w.current,n,RV(c,n)),l)return!i&&G(n),(!IV(u)||d&&IV(u))&&V(u);if(L(),k.current){const{errors:e}=await k.current(X(),C.current,T),r=F.current.isValid;if(o=CV(e,n),TV(t)&&!o&&k.current){const t=nL(n),r=CV(e,t,{});r.type&&r.message&&(o=r),t&&(r||CV(F.current.errors,t))&&(n=t)}a=IV(e),r!==a&&(d=!0)}else o=(await QV(c,T,r,w))[n];!i&&G(n),H(n,o,d,u,a)}};const Q=e.useCallback(async(e={})=>{const t=IV(c.current)?b.current:{},{errors:n}=await k.current(Object.assign(Object.assign(Object.assign({},t),X()),e),C.current,T)||{},r=IV(n);F.current.isValid!==r&&V({isValid:r})},[T]),J=e.useCallback((e,t)=>{!function(e,t,n,r,o,a){const{ref:i,ref:{name:s}}=n,l=e.current[s];if(!o){const t=RV(e,s,r);!EV(t)&&xV(r.current,s,t)}i.type&&l?MV(i)||TV(i)?Array.isArray(l.options)&&l.options.length?(vV(l.options).forEach((e={},n)=>{(jV(e.ref)&&HV(e,e.ref)||a)&&(kV(e.ref,t),LV(l.options,`[${n}]`))}),l.options&&!vV(l.options).length&&delete e.current[s]):delete e.current[s]:(jV(i)&&HV(l,i)||a)&&(kV(i,t),delete e.current[s]):delete e.current[s]}(c,x.current,e,w,s,t),s&&(LV(g.current,e.ref.name),LV(h.current,e.ref.name))},[s]),ee=e.useCallback(e=>{if(y.current)V();else{for(const t of p.current)if(t.startsWith(e)){V();break}G(e)}},[]),te=e.useCallback((e,t)=>{e&&(J(e,t),s&&!vV(e.options||[]).length&&(LV(F.current.errors,e.ref.name),xV(F.current.dirtyFields,e.ref.name,!0),V({isDirty:B()}),A.current.isValid&&k.current&&Q(),ee(e.ref.name)))},[Q,J]);const ne=e.useCallback((e,t,n)=>{const r=n?m.current[n]:p.current;let o=WV(c,aL(w.current),s,!1,e);if(zV(e)){const n=nL(e)||e;return S.current.has(n)&&(o=Object.assign(Object.assign({},d.current),o)),eL(o,e,r,EV(CV(b.current,e))?t:CV(b.current,e),!0)}const a=EV(t)?b.current:t;return Array.isArray(e)?e.reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:eL(o,t,r,a)}),{}):(y.current=EV(n),wV(!IV(o)&&o||a))},[]);function re(e,t={}){if("production"!==process.env.NODE_ENV){if(!e.name)return console.warn("📋 Field is missing `name` attribute",e,"https://react-hook-form.com/api#useForm");if(S.current.has(e.name.split(/\[\d+\]$/)[0])&&!RegExp(`^${e.name.split(/\[\d+\]$/)[0]}[\\d+].\\w+`.replace(/\[/g,"\\[").replace(/\]/g,"\\]")).test(e.name))return console.warn('📋 `name` prop should be in object shape: name="test[index].name"',e,"https://react-hook-form.com/api#useFieldArray")}const{name:n,type:r,value:o}=e,a=Object.assign({ref:e},t),i=c.current,l=sL(e),u=rL(S.current,n),d=t=>oL&&(!KI(e)||t===e);let p,m=i[n],f=!0;if(m&&(l?Array.isArray(m.options)&&vV(m.options).find(e=>o===e.ref.value&&d(e.ref)):d(m.ref)))return void(i[n]=Object.assign(Object.assign({},m),t));m=r?l?Object.assign({options:[...vV(m&&m.options||[]),{ref:e}],ref:{type:r,name:n}},t):Object.assign({},a):a,i[n]=m;const v=EV(CV(w.current,n));IV(b.current)&&v||(p=CV(v?b.current:w.current,n),f=EV(p),f||u||_(n,p)),IV(t)||(xV(h.current,n,!0),!M&&A.current.isValid&&QV(c,T,m,w).then(e=>{const t=F.current.isValid;IV(e)?xV(g.current,n,!0):LV(g.current,n),t!==IV(e)&&V()})),!s||u&&f||!u&&LV(F.current.dirtyFields,n),r&&function({ref:e},t,n){KI(e)&&n&&(e.addEventListener(t?QI:JI,n),e.addEventListener(XI,n))}(l&&m.options?m.options[m.options.length-1]:m,l||e.type===`${aV}-one`,x.current)}const oe=e.useCallback((e,t)=>async n=>{n&&n.preventDefault&&(n.preventDefault(),n.persist());let r={},o=K(WV(c,aL(w.current),s,!0));A.current.isSubmitting&&V({isSubmitting:!0});try{if(k.current){const{errors:e,values:t}=await k.current(o,C.current,T);F.current.errors=r=e,o=t}else for(const e of Object.values(c.current))if(e){const{name:t}=e.ref,n=await QV(c,T,e,w);n[t]?(xV(r,t,n[t]),LV(g.current,t)):CV(h.current,t)&&(LV(F.current.errors,t),xV(g.current,t,!0))}IV(r)&&Object.keys(F.current.errors).every(e=>e in c.current)?(V({errors:{},isSubmitting:!0}),await e(o,n)):(F.current.errors=Object.assign(Object.assign({},F.current.errors),r),t&&await t(F.current.errors,n),i&&((e,t)=>{for(const n in e)if(CV(t,n)){const t=e[n];if(t){if(t.ref.focus&&EV(t.ref.focus()))break;if(t.options){t.options[0].ref.focus();break}}}})(c.current,F.current.errors))}finally{F.current.isSubmitting=!1,V({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:IV(F.current.errors),submitCount:F.current.submitCount+1})}},[i,T]);e.useEffect(()=>{r&&A.current.isValid&&Q(),R.current=R.current||!oL?R.current:function(e,t){const n=new MutationObserver(()=>{for(const n of Object.values(e.current))if(n&&n.options)for(const e of n.options)e&&e.ref&&jV(e.ref)&&t(n);else n&&jV(n.ref)&&t(n)});return n.observe(window.document,{childList:!0,subtree:!0}),n}(c,te)},[te,b.current]),e.useEffect(()=>()=>{R.current&&R.current.disconnect(),v.current=!0,"production"===process.env.NODE_ENV&&Object.values(c.current).forEach(e=>te(e,!0))},[]),!r&&A.current.isValid&&(D.isValid=UV(g.current,h.current)&&IV(F.current.errors));const ae={trigger:W,setValue:e.useCallback(function(e,t,n){Y(e,t,n||{}),q(e)&&V(),G(e)},[Y,W]),getValues:e.useCallback(X,[]),register:e.useCallback(function(e,t){if(!lL)if(zV(e))re({name:e},t);else{if(!gV(e)||!("name"in e))return t=>t&&re(t,e);re(e,t)}},[b.current]),unregister:e.useCallback(function(e){for(const t of Array.isArray(e)?e:[e])te(c.current[t],!0)},[]),formState:cL?new Proxy(D,{get:(e,t)=>{if("production"!==process.env.NODE_ENV&&"isValid"===t&&M&&console.warn("📋 `formState.isValid` is applicable with `onTouched`, `onChange` or `onBlur` mode. https://react-hook-form.com/api#formState"),t in e)return A.current[t]=!0,e[t]}}):D},ie=e.useMemo(()=>Object.assign({isFormDirty:B,updateWatchedValue:ee,shouldUnregister:s,updateFormState:V,removeFieldEventListener:J,watchInternal:ne,mode:N.current,reValidateMode:{isReValidateOnBlur:j,isReValidateOnChange:I},validateResolver:r?Q:void 0,fieldsRef:c,resetFieldArrayFunctionRef:E,useWatchFieldsRef:m,useWatchRenderFunctionsRef:f,fieldArrayDefaultValuesRef:u,validFieldsRef:g,fieldsWithValidationRef:h,fieldArrayNamesRef:S,readFormStateRef:A,formStateRef:F,defaultValuesRef:b,shallowFieldsStateRef:w,fieldArrayValuesRef:d},ae),[b.current,ee,s,J,ne]);return Object.assign({watch:function(e,t){return ne(e,t)},control:ie,handleSubmit:oe,reset:e.useCallback((e,t={})=>{if(oL)for(const e of Object.values(c.current))if(e){const{ref:t,options:n}=e,r=sL(t)&&Array.isArray(n)?n[0].ref:t;if(KI(r))try{r.closest("form").reset();break}catch(e){}}c.current={},b.current=Object.assign({},e||b.current),e&&G(""),Object.values(E.current).forEach(e=>qV(e)&&e()),w.current=s?{}:aL(e||b.current),(({errors:e,isDirty:t,isSubmitted:n,touched:r,isValid:o,submitCount:a,dirtyFields:i})=>{o||(g.current={},h.current={}),u.current={},p.current=new Set,y.current=!1,V({submitCount:a?F.current.submitCount:0,isDirty:!!t&&F.current.isDirty,isSubmitted:!!n&&F.current.isSubmitted,isValid:!!o&&F.current.isValid,dirtyFields:i?F.current.dirtyFields:{},touched:r?F.current.touched:{},errors:e?F.current.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})})(t)},[]),clearErrors:e.useCallback(function(e){e&&(Array.isArray(e)?e:[e]).forEach(e=>c.current[e]&&bV(e)?delete F.current.errors[e]:LV(F.current.errors,e)),V({errors:e?F.current.errors:{}})},[]),setError:e.useCallback(function(e,t){const n=(c.current[e]||{}).ref;xV(F.current.errors,e,Object.assign(Object.assign({},t),{ref:n})),V({isValid:!1}),t.shouldFocus&&n&&n.focus&&n.focus()},[]),errors:D.errors},ae)}
|
|
295
|
+
*/var Pj=Tj&&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()},Dj))}};function Aj(e){return e&&"[object Function]"==={}.toString.call(e)}function Fj(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Rj(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function jj(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Fj(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:jj(Rj(e))}function Ij(e){return e&&e.referenceNode?e.referenceNode:e}var Vj=Tj&&!(!window.MSInputMethodContext||!document.documentMode),Lj=Tj&&/MSIE 10/.test(navigator.userAgent);function Hj(e){return 11===e?Vj:10===e?Lj:Vj||Lj}function _j(e){if(!e)return document.documentElement;for(var t=Hj(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"===Fj(n,"position")?_j(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Bj(e){return null!==e.parentNode?Bj(e.parentNode):e}function Uj(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,o=n?t:e,a=document.createRange();a.setStart(r,0),a.setEnd(o,0);var i,s,l=a.commonAncestorContainer;if(e!==l&&t!==l||r.contains(o))return"BODY"===(s=(i=l).nodeName)||"HTML"!==s&&_j(i.firstElementChild)!==i?_j(l):l;var c=Bj(e);return c.host?Uj(c.host,t):Uj(e,Bj(t).host)}function $j(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function zj(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 Wj(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Hj(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function Zj(e){var t=e.body,n=e.documentElement,r=Hj(10)&&getComputedStyle(n);return{height:Wj("Height",t,n,r),width:Wj("Width",t,n,r)}}var Yj=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}}(),qj=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Gj=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 Kj(e){return Gj({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Xj(e){var t={};try{if(Hj(10)){t=e.getBoundingClientRect();var n=$j(e,"top"),r=$j(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===e.nodeName?Zj(e.ownerDocument):{},i=a.width||e.clientWidth||o.width,s=a.height||e.clientHeight||o.height,l=e.offsetWidth-i,c=e.offsetHeight-s;if(l||c){var u=Fj(e);l-=zj(u,"x"),c-=zj(u,"y"),o.width-=l,o.height-=c}return Kj(o)}function Qj(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Hj(10),o="HTML"===t.nodeName,a=Xj(e),i=Xj(t),s=jj(e),l=Fj(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&o&&(i.top=Math.max(i.top,0),i.left=Math.max(i.left,0));var d=Kj({top:a.top-i.top-c,left:a.left-i.left-u,width:a.width,height:a.height});if(d.marginTop=0,d.marginLeft=0,!r&&o){var p=parseFloat(l.marginTop),m=parseFloat(l.marginLeft);d.top-=c-p,d.bottom-=c-p,d.left-=u-m,d.right-=u-m,d.marginTop=p,d.marginLeft=m}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=$j(t,"top"),o=$j(t,"left"),a=n?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=o*a,e.right+=o*a,e}(d,t)),d}function Jj(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===Fj(e,"position"))return!0;var n=Rj(e);return!!n&&Jj(n)}function eI(e){if(!e||!e.parentElement||Hj())return document.documentElement;for(var t=e.parentElement;t&&"none"===Fj(t,"transform");)t=t.parentElement;return t||document.documentElement}function tI(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a={top:0,left:0},i=o?eI(e):Uj(e,Ij(t));if("viewport"===r)a=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=Qj(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),i=t?0:$j(n),s=t?0:$j(n,"left");return Kj({top:i-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:a})}(i,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=jj(Rj(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=Qj(s,i,o);if("HTML"!==s.nodeName||Jj(i))a=l;else{var c=Zj(e.ownerDocument),u=c.height,d=c.width;a.top+=l.top-l.marginTop,a.bottom=u+l.top,a.left+=l.left-l.marginLeft,a.right=d+l.left}}var p="number"==typeof(n=n||0);return a.left+=p?n:n.left||0,a.top+=p?n:n.top||0,a.right-=p?n:n.right||0,a.bottom-=p?n:n.bottom||0,a}function nI(e){return e.width*e.height}function rI(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var i=tI(n,r,a,o),s={top:{width:i.width,height:t.top-i.top},right:{width:i.right-t.right,height:i.height},bottom:{width:i.width,height:i.bottom-t.bottom},left:{width:t.left-i.left,height:i.height}},l=Object.keys(s).map(function(e){return Gj({key:e},s[e],{area:nI(s[e])})}).sort(function(e,t){return t.area-e.area}),c=l.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function oI(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Qj(n,r?eI(t):Uj(t,Ij(n)),r)}function aI(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 iI(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 sI(e,t,n){n=n.split("-")[0];var r=aI(e),o={width:r.width,height:r.height},a=-1!==["right","left"].indexOf(n),i=a?"top":"left",s=a?"left":"top",l=a?"height":"width",c=a?"width":"height";return o[i]=t[i]+t[l]/2-r[l]/2,o[s]=n===s?t[s]-r[c]:t[iI(s)],o}function lI(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function cI(e,t,n){var r=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=lI(e,function(e){return e[t]===n});return e.indexOf(r)}(e,"name",n));return r.forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&Aj(n)&&(t.offsets.popper=Kj(t.offsets.popper),t.offsets.reference=Kj(t.offsets.reference),t=n(t,e))}),t}function uI(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=oI(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=rI(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=sI(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=cI(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function dI(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function pI(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],a=o?""+o+n:e;if(void 0!==document.body.style[a])return a}return null}function mI(){return this.state.isDestroyed=!0,dI(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[pI("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function fI(e){var t=e.ownerDocument;return t?t.defaultView:window}function hI(e,t,n,r){var o="BODY"===e.nodeName,a=o?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),o||hI(jj(a.parentNode),t,n,r),r.push(a)}function gI(e,t,n,r){n.updateBound=r,fI(e).addEventListener("resize",n.updateBound,{passive:!0});var o=jj(e);return hI(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function bI(){this.state.eventsEnabled||(this.state=gI(this.reference,this.options,this.state,this.scheduleUpdate))}function vI(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(e,t){return fI(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}(this.reference,this.state))}function yI(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function xI(e,t){Object.keys(t).forEach(function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&yI(t[n])&&(r="px"),e.style[n]=t[n]+r})}var wI=Tj&&/Firefox/i.test(navigator.userAgent);function EI(e,t,n){var r=lI(e,function(e){return e.name===t}),o=!!r&&e.some(function(e){return e.name===n&&e.enabled&&e.order<r.order});if(!o){var a="`"+t+"`",i="`"+n+"`";console.warn(i+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return o}var CI=["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"],kI=CI.slice(3);function SI(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=kI.indexOf(e),r=kI.slice(n+1).concat(kI.slice(0,n));return t?r.reverse():r}var NI="flip",MI="clockwise",OI="counterclockwise";function TI(e,t,n,r){var o=[0,0],a=-1!==["right","left"].indexOf(r),i=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=i.indexOf(lI(i,function(e){return-1!==e.search(/,|\s/)}));i[s]&&-1===i[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[i.slice(0,s).concat([i[s].split(l)[0]]),[i[s].split(l)[1]].concat(i.slice(s+1))]:[i];return c=c.map(function(e,r){var o=(1===r?!a:a)?"height":"width",i=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,i=!0,e):i?(e[e.length-1]+=t,i=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+o[1],i=o[2];if(!a)return e;if(0===i.indexOf("%")){return Kj("%p"===i?n:r)[t]/100*a}if("vh"===i||"vw"===i)return("vh"===i?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*a;return a}(e,o,t,n)})}),c.forEach(function(e,t){e.forEach(function(n,r){yI(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))})}),o}var DI={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,a=o.reference,i=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:qj({},l,a[l]),end:qj({},l,a[l]+a[c]-i[c])};e.offsets.popper=Gj({},i,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,a=o.popper,i=o.reference,s=r.split("-")[0],l=void 0;return l=yI(+n)?[+n,0]:TI(n,a,i,s),"left"===s?(a.top+=l[0],a.left-=l[1]):"right"===s?(a.top+=l[0],a.left+=l[1]):"top"===s?(a.left+=l[0],a.top-=l[1]):"bottom"===s&&(a.left+=l[0],a.top+=l[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||_j(e.instance.popper);e.instance.reference===n&&(n=_j(n));var r=pI("transform"),o=e.instance.popper.style,a=o.top,i=o.left,s=o[r];o.top="",o.left="",o[r]="";var l=tI(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=a,o.left=i,o[r]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),qj({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),qj({},n,r)}};return c.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=Gj({},u,d[t](e))}),e.offsets.popper=u,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,o=e.placement.split("-")[0],a=Math.floor,i=-1!==["top","bottom"].indexOf(o),s=i?"right":"bottom",l=i?"left":"top",c=i?"width":"height";return n[s]<a(r[l])&&(e.offsets.popper[l]=a(r[l])-n[c]),n[l]>a(r[s])&&(e.offsets.popper[l]=a(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!EI(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 o=e.placement.split("-")[0],a=e.offsets,i=a.popper,s=a.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),p=l?"left":"top",m=l?"bottom":"right",f=aI(r)[c];s[m]-f<i[d]&&(e.offsets.popper[d]-=i[d]-(s[m]-f)),s[d]+f>i[m]&&(e.offsets.popper[d]+=s[d]+f-i[m]),e.offsets.popper=Kj(e.offsets.popper);var h=s[d]+s[c]/2-f/2,g=Fj(e.instance.popper),b=parseFloat(g["margin"+u]),v=parseFloat(g["border"+u+"Width"]),y=h-e.offsets.popper[d]-b-v;return y=Math.max(Math.min(i[c]-f,y),0),e.arrowElement=r,e.offsets.arrow=(qj(n={},d,Math.round(y)),qj(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(dI(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=tI(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=iI(r),a=e.placement.split("-")[1]||"",i=[];switch(t.behavior){case NI:i=[r,o];break;case MI:i=SI(r);break;case OI:i=SI(r,!0);break;default:i=t.behavior}return i.forEach(function(s,l){if(r!==s||i.length===l+1)return e;r=e.placement.split("-")[0],o=iI(r);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,p="left"===r&&d(c.right)>d(u.left)||"right"===r&&d(c.left)<d(u.right)||"top"===r&&d(c.bottom)>d(u.top)||"bottom"===r&&d(c.top)<d(u.bottom),m=d(c.left)<d(n.left),f=d(c.right)>d(n.right),h=d(c.top)<d(n.top),g=d(c.bottom)>d(n.bottom),b="left"===r&&m||"right"===r&&f||"top"===r&&h||"bottom"===r&&g,v=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(v&&"start"===a&&m||v&&"end"===a&&f||!v&&"start"===a&&h||!v&&"end"===a&&g),x=!!t.flipVariationsByContent&&(v&&"start"===a&&f||v&&"end"===a&&m||!v&&"start"===a&&g||!v&&"end"===a&&h),w=y||x;(p||b||w)&&(e.flipped=!0,(p||b)&&(r=i[l+1]),w&&(a=function(e){return"end"===e?"start":"start"===e?"end":e}(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=Gj({},e.offsets.popper,sI(e.instance.popper,e.offsets.reference,e.placement)),e=cI(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,o=r.popper,a=r.reference,i=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[i?"left":"top"]=a[n]-(s?o[i?"width":"height"]:0),e.placement=iI(t),e.offsets.popper=Kj(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!EI(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=lI(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,o=e.offsets.popper,a=lI(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==a&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var i=void 0!==a?a:t.gpuAcceleration,s=_j(e.instance.popper),l=Xj(s),c={position:o.position},u=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,a=Math.round,i=Math.floor,s=function(e){return e},l=a(o.width),c=a(r.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),p=t?u||d||l%2==c%2?a:i:s,m=t?a:s;return{left:p(l%2==1&&c%2==1&&!d&&t?r.left-1:r.left),top:m(r.top),bottom:m(r.bottom),right:p(r.right)}}(e,window.devicePixelRatio<2||!wI),d="bottom"===n?"top":"bottom",p="right"===r?"left":"right",m=pI("transform"),f=void 0,h=void 0;if(h="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,f="right"===p?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,i&&m)c[m]="translate3d("+f+"px, "+h+"px, 0)",c[d]=0,c[p]=0,c.willChange="transform";else{var g="bottom"===d?-1:1,b="right"===p?-1:1;c[d]=h*g,c[p]=f*b,c.willChange=d+", "+p}var v={"x-placement":e.placement};return e.attributes=Gj({},v,e.attributes),e.styles=Gj({},c,e.styles),e.arrowStyles=Gj({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return xI(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&&xI(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var a=oI(o,t,e,n.positionFixed),i=rI(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",i),xI(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},PI={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:DI},AI=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Pj(this.update.bind(this)),this.options=Gj({},e.Defaults,o),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(Gj({},e.Defaults.modifiers,o.modifiers)).forEach(function(t){r.options.modifiers[t]=Gj({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return Gj({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&Aj(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return Yj(e,[{key:"update",value:function(){return uI.call(this)}},{key:"destroy",value:function(){return mI.call(this)}},{key:"enableEventListeners",value:function(){return bI.call(this)}},{key:"disableEventListeners",value:function(){return vI.call(this)}}]),e}();AI.Utils=("undefined"!=typeof window?window:global).PopperUtils,AI.placements=CI,AI.Defaults=PI;var FI=AI;var RI="undefined"!=typeof window?s.useLayoutEffect:s.useEffect,jI=s.forwardRef(function(e,t){var n=e.children,r=e.container,o=e.disablePortal,a=void 0!==o&&o,i=e.onRendered,l=s.useState(null),u=l[0],d=l[1],p=UR(s.isValidElement(n)?n.ref:null,t);return RI(function(){a||d(function(e){return e="function"==typeof e?e():e,c.findDOMNode(e)}(r)||document.body)},[r,a]),RI(function(){if(u&&!a)return LR(t,u),function(){LR(t,null)}},[t,u,a]),RI(function(){i&&(u||a)&&i()},[i,u,a]),a?s.isValidElement(n)?s.cloneElement(n,{ref:p}):n:u?c.createPortal(n,u):u});"production"!==process.env.NODE_ENV&&(jI.propTypes={children:L.exports.node,container:L.exports.oneOfType([gF,L.exports.instanceOf(s.Component),L.exports.func]),disablePortal:L.exports.bool,onRendered:RR(L.exports.func,"Use the ref instead.")}),"production"!==process.env.NODE_ENV&&(jI.propTypes=aF(jI.propTypes));var II=jI;function VI(e){return"function"==typeof e?e():e}var LI="undefined"!=typeof window?s.useLayoutEffect:s.useEffect,HI={},_I=s.forwardRef(function(e,t){var n=e.anchorEl,r=e.children,o=e.container,a=e.disablePortal,i=void 0!==a&&a,l=e.keepMounted,c=void 0!==l&&l,u=e.modifiers,d=e.open,p=e.placement,m=void 0===p?"bottom":p,f=e.popperOptions,h=void 0===f?HI:f,g=e.popperRef,b=e.style,v=e.transition,y=void 0!==v&&v,x=xF(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),w=s.useRef(null),E=UR(w,t),C=s.useRef(null),k=UR(C,g),S=s.useRef(k);LI(function(){S.current=k},[k]),s.useImperativeHandle(g,function(){return C.current},[]);var N=s.useState(!0),M=N[0],O=N[1],T=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(m,DF()),D=s.useState(T),P=D[0],A=D[1];s.useEffect(function(){C.current&&C.current.update()});var R=s.useCallback(function(){if(w.current&&n&&d){C.current&&(C.current.destroy(),S.current(null));var e=function(e){A(e.placement)},t=VI(n);if("production"!==process.env.NODE_ENV&&t&&1===t.nodeType){var r=t.getBoundingClientRect();"test"!==process.env.NODE_ENV&&0===r.top&&0===r.left&&0===r.right&&0===r.bottom&&console.warn(["Material-UI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join("\n"))}var o=new FI(VI(n),w.current,F({placement:T},h,{modifiers:F({},i?{}:{preventOverflow:{boundariesElement:"window"}},u,h.modifiers),onCreate:yF(e,h.onCreate),onUpdate:yF(e,h.onUpdate)}));S.current(o)}},[n,i,u,d,T,h]),j=s.useCallback(function(e){LR(E,e),R()},[E,R]),I=function(){C.current&&(C.current.destroy(),S.current(null))};if(s.useEffect(function(){return function(){I()}},[]),s.useEffect(function(){d||y||I()},[d,y]),!c&&!d&&(!y||M))return null;var V={placement:P};return y&&(V.TransitionProps={in:d,onEnter:function(){O(!1)},onExited:function(){O(!0),I()}}),s.createElement(II,{disablePortal:i,container:o},s.createElement("div",F({ref:j,role:"tooltip"},x,{style:F({position:"fixed",top:0,left:0,display:d||!c||y?null:"none"},b)}),"function"==typeof r?r(V):r))});"production"!==process.env.NODE_ENV&&(_I.propTypes={anchorEl:XA(L.exports.oneOfType([gF,L.exports.object,L.exports.func]),function(e){if(e.open){var t=VI(e.anchorEl);if(t&&1===t.nodeType){var n=t.getBoundingClientRect();if("test"!==process.env.NODE_ENV&&0===n.top&&0===n.left&&0===n.right&&0===n.bottom)return new Error(["Material-UI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join("\n"))}else if(!t||"number"!=typeof t.clientWidth||"number"!=typeof t.clientHeight||"function"!=typeof t.getBoundingClientRect)return new Error(["Material-UI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a referenceObject ","(https://popper.js.org/docs/v1/#referenceObject)."].join("\n"))}return null}),children:L.exports.oneOfType([L.exports.node,L.exports.func]).isRequired,container:L.exports.oneOfType([gF,L.exports.instanceOf(s.Component),L.exports.func]),disablePortal:L.exports.bool,keepMounted:L.exports.bool,modifiers:L.exports.object,open:L.exports.bool.isRequired,placement:L.exports.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:L.exports.object,popperRef:bF,style:L.exports.object,transition:L.exports.bool});var BI=_I;function UI(e){return Math.round(1e5*e)/1e5}var $I=!1,zI=null,WI=s.forwardRef(function(e,t){var n=e.arrow,r=void 0!==n&&n,o=e.children,a=e.classes,i=e.disableFocusListener,l=void 0!==i&&i,u=e.disableHoverListener,d=void 0!==u&&u,p=e.disableTouchListener,m=void 0!==p&&p,f=e.enterDelay,h=void 0===f?100:f,g=e.enterNextDelay,b=void 0===g?0:g,v=e.enterTouchDelay,y=void 0===v?700:v,x=e.id,w=e.interactive,E=void 0!==w&&w,C=e.leaveDelay,k=void 0===C?0:C,S=e.leaveTouchDelay,N=void 0===S?1500:S,M=e.onClose,O=e.onOpen,T=e.open,D=e.placement,P=void 0===D?"bottom":D,A=e.PopperComponent,R=void 0===A?BI:A,j=e.PopperProps,I=e.title,V=e.TransitionComponent,L=void 0===V?Oj:V,H=e.TransitionProps,_=xF(e,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"]),B=Ej(),U=s.useState(),$=U[0],z=U[1],W=s.useState(null),Z=W[0],Y=W[1],q=s.useRef(!1),G=s.useRef(),K=s.useRef(),X=s.useRef(),Q=s.useRef(),J=yR(HR({controlled:T,default:!1,name:"Tooltip",state:"open"}),2),ee=J[0],te=J[1],ne=ee;if("production"!==process.env.NODE_ENV){var re=s.useRef(void 0!==T).current;s.useEffect(function(){$&&$.disabled&&!re&&""!==I&&"button"===$.tagName.toLowerCase()&&console.error(["Material-UI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join("\n"))},[I,$,re])}var oe=$R(x);s.useEffect(function(){return function(){clearTimeout(G.current),clearTimeout(K.current),clearTimeout(X.current),clearTimeout(Q.current)}},[]);var ae=function(e){clearTimeout(zI),$I=!0,te(!0),O&&O(e)},ie=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=o.props;"mouseover"===t.type&&n.onMouseOver&&e&&n.onMouseOver(t),q.current&&"touchstart"!==t.type||($&&$.removeAttribute("title"),clearTimeout(K.current),clearTimeout(X.current),h||$I&&b?(t.persist(),K.current=setTimeout(function(){ae(t)},$I?b:h)):ae(t))}},se=JR(),le=se.isFocusVisible,ce=se.onBlurVisible,ue=se.ref,de=s.useState(!1),pe=de[0],me=de[1],fe=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){$||z(t.currentTarget),le(t)&&(me(!0),ie()(t));var n=o.props;n.onFocus&&e&&n.onFocus(t)}},he=function(e){clearTimeout(zI),zI=setTimeout(function(){$I=!1},800+k),te(!1),M&&M(e),clearTimeout(G.current),G.current=setTimeout(function(){q.current=!1},B.transitions.duration.shortest)},ge=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=o.props;"blur"===t.type&&(n.onBlur&&e&&n.onBlur(t),pe&&(me(!1),ce())),"mouseleave"===t.type&&n.onMouseLeave&&t.currentTarget===$&&n.onMouseLeave(t),clearTimeout(K.current),clearTimeout(X.current),t.persist(),X.current=setTimeout(function(){he(t)},k)}},be=function(e){q.current=!0;var t=o.props;t.onTouchStart&&t.onTouchStart(e)},ve=UR(z,t),ye=UR(ue,ve),xe=s.useCallback(function(e){LR(ye,c.findDOMNode(e))},[ye]),we=UR(o.ref,xe);""===I&&(ne=!1);var Ee=F({"aria-describedby":ne?oe:null,title:!ne&&!d&&"string"==typeof I?I:null},_,o.props,{className:pA(_.className,o.props.className),onTouchStart:be,ref:we}),Ce={};m||(Ee.onTouchStart=function(e){be(e),clearTimeout(X.current),clearTimeout(G.current),clearTimeout(Q.current),e.persist(),Q.current=setTimeout(function(){ie()(e)},y)},Ee.onTouchEnd=function(e){o.props.onTouchEnd&&o.props.onTouchEnd(e),clearTimeout(Q.current),clearTimeout(X.current),e.persist(),X.current=setTimeout(function(){he(e)},N)}),d||(Ee.onMouseOver=ie(),Ee.onMouseLeave=ge(),E&&(Ce.onMouseOver=ie(!1),Ce.onMouseLeave=ge(!1))),l||(Ee.onFocus=fe(),Ee.onBlur=ge(),E&&(Ce.onFocus=fe(!1),Ce.onBlur=ge(!1))),"production"!==process.env.NODE_ENV&&o.props.title&&console.error(["Material-UI: You have provided a `title` prop to the child of <Tooltip />.","Remove this title prop `".concat(o.props.title,"` or the Tooltip component.")].join("\n"));var ke=s.useMemo(function(){return JA({popperOptions:{modifiers:{arrow:{enabled:Boolean(Z),element:Z}}}},j)},[Z,j]);return s.createElement(s.Fragment,null,s.cloneElement(o,Ee),s.createElement(R,F({className:pA(a.popper,E&&a.popperInteractive,r&&a.popperArrow),placement:P,anchorEl:$,open:!!$&&ne,id:Ee["aria-describedby"],transition:!0},Ce,ke),function(e){var t=e.placement,n=e.TransitionProps;return s.createElement(L,F({timeout:B.transitions.duration.shorter},n,H),s.createElement("div",{className:pA(a.tooltip,a["tooltipPlacement".concat(vF(t.split("-")[0]))],q.current&&a.touch,r&&a.tooltipArrow)},I,r?s.createElement("span",{className:a.arrow,ref:Y}):null))}))});"production"!==process.env.NODE_ENV&&(WI.propTypes={arrow:L.exports.bool,children:nF.isRequired,classes:L.exports.object,className:L.exports.string,disableFocusListener:L.exports.bool,disableHoverListener:L.exports.bool,disableTouchListener:L.exports.bool,enterDelay:L.exports.number,enterNextDelay:L.exports.number,enterTouchDelay:L.exports.number,id:L.exports.string,interactive:L.exports.bool,leaveDelay:L.exports.number,leaveTouchDelay:L.exports.number,onClose:L.exports.func,onOpen:L.exports.func,open:L.exports.bool,placement:L.exports.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:L.exports.elementType,PopperProps:L.exports.object,title:L.exports.node.isRequired,TransitionComponent:L.exports.elementType,TransitionProps:L.exports.object});var ZI=TR(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:aR(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(UI(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:aR(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(UI(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:oF({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:oF({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:oF({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:oF({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}},{name:"MuiTooltip",flip:!1})(WI);Sc(".social-share-list-wrapper-class {\n z-index: 1;\n}\n.social-share-list-wrapper-class .MuiIconButton-root {\n color: #afafaf !important;\n}\n.social-share-list-wrapper-class .social-share-list {\n top: 42px;\n left: 50%;\n transform: translateX(-50%);\n box-shadow: 0px 2px 13px -8px rgba(0, 0, 0, 0.5);\n transition: 0.3s all;\n height: 0;\n overflow: hidden;\n background: #ffffff;\n z-index: 999999999;\n}\n.social-share-list-wrapper-class .social-share-list li {\n padding: 4px 8px;\n}\n.social-share-list-wrapper-class .social-share-list li:first-child {\n padding-top: 8px;\n}\n.social-share-list-wrapper-class .social-share-list li:last-child {\n padding-bottom: 8px;\n}\n.social-share-list-wrapper-class .social-share-list button,\n.social-share-list-wrapper-class .social-share-list svg {\n width: 32px;\n height: 32px;\n}\n.social-share-list-wrapper-class .social-share-list svg {\n border-radius: 4px;\n}\n\n.social-share-list-bakcdrop {\n z-index: 0 !important;\n}");var YI=function(t){var n=t.redirectUrl,r=void 0===n?window.location.href:n,o=t.className,a=t.menuProps,s=e.useState(0),l=s[0],c=s[1],u=i.default.useState(null),d=u[0],p=u[1];e.useEffect(function(){var e=document.querySelector(".social-share-list").scrollHeight;c(e)},[]);var m=Boolean(d),f={height:"".concat(m?l:0,"px")};return i.default.createElement("div",{className:"position-relative social-share-list-wrapper-class"},i.default.createElement(ZI,{title:"".concat(m?"Close Share":"Open Share"),placement:"top"},i.default.createElement(wj,{className:"".concat(m&&"active-btn"),"aria-label":"delete",size:"small",onClick:function(e){p(d?null:e.currentTarget)}},m?i.default.createElement(dj,null):i.default.createElement(aj,null))),i.default.createElement("ul",{className:"social-share-list",style:f},i.default.createElement(OE,Dc({anchorEl:d,id:"account-menu",open:m,className:o?"".concat(o," social-share-list-bakcdrop"):"social-share-list-bakcdrop",PaperProps:{elevation:0,sx:{boxShadow:"none",border:"1px solid #00000014",mt:1.5,mb:0}},transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"}},a),i.default.createElement("li",null,i.default.createElement(_A,{url:r},i.default.createElement(jA,{size:34}))),i.default.createElement("li",null,i.default.createElement(zA,{url:r},i.default.createElement($A,{size:34}))),i.default.createElement("li",null,i.default.createElement(ZA,{url:r},i.default.createElement(WA,{size:34}))),i.default.createElement("li",null,i.default.createElement(UA,{url:r},i.default.createElement(BA,{size:34}))),i.default.createElement("li",null,i.default.createElement(RA,{url:r},i.default.createElement(wA,{size:34}))))))},qI=function(t){var n=t.error,r=t.verifiedMessage,o=t.onResendClick,a=t.setOtpValues,s=t.otpValues,l=t.isResendDisable,c=t.countDownTime,u=void 0===c?60:c,d=e.useState(u),p=d[0],m=d[1],f=e.useState(!1);f[0];var h=f[1],g=[e.useRef(),e.useRef(),e.useRef(),e.useRef(),e.useRef(),e.useRef()];return e.useEffect(function(){if(0!==p){var e=setInterval(function(){m(function(e){return e-1})},1e3);return function(){return clearInterval(e)}}},[p]),e.useEffect(function(){m(u)},[u]),e.useEffect(function(){var e=s.findIndex(function(e){return""===e});-1!==e&&g[e].current.focus()},[s]),i.default.createElement(i.default.Fragment,null,i.default.createElement("div",{className:"d-flex justify-content-center align-items-center"},s.map(function(e,t){return i.default.createElement("input",{key:t,ref:g[t],value:e,onChange:function(e){return function(e,t){var n=e.target,r=n.value,o=n.keyCode;/^\d*$/.test(r)&&(a(function(e){return e.map(function(e,n){return n===t?r:e})}),8!==o&&""!==r||0===t||g[t-1].current.focus(),8!==o&&t!==s.length-1&&1===r.length&&g[t+1].current.focus())}(e,t)},onPaste:function(e){return function(e){var t=e.clipboardData.getData("text").trim();t.length===s.length&&/^\d*$/.test(t)&&(a(t.split("")),g[s.length-1].current.focus())}(e)},onKeyDown:function(n){8===n.keyCode&&""===e&&0!==t&&g[t-1].current.focus()},onKeyPress:function(e){var t=e.which?e.which:e.keyCode;(t<48||t>57)&&e.preventDefault()},onInput:function(e){var t=e.target.value;e.target.value=t.replace(/[^0-9]/g,"")},onCut:function(e){e.preventDefault()},onCopy:function(e){e.preventDefault()},onDrag:function(e){e.preventDefault()},onDrop:function(e){e.preventDefault()},className:"otp-input text-center box-shadow",type:"text",inputMode:"numeric",maxLength:1})})),n&&i.default.createElement(O,{variant:"textLabel2",className:"text-danger font-italic text-center"},"Incorrect OTP, Please enter correct code."),r&&i.default.createElement(O,{variant:"textLabel2",className:"text-danger font-italic text-center"},r),i.default.createElement(O,{variant:"textLabel2",className:"text-center text-grey-600"},p>0?"If OTP doesn't received, you can get a new one in ".concat(p," seconds."):"Didn’t receive the OTP? You can resend it now"),i.default.createElement("div",{className:"d-flex justify-content-center align-items-center"},i.default.createElement(T,{text:"Resend",variant:"text",type:"inverse",size:"medium",disabled:0!=p||l,onButtonClickHandler:function(){h(function(e){return e}),o()}})))};Sc(".otp-input {\n width: 46px !important;\n height: 46px !important;\n margin: 0 6px;\n border-radius: 3px;\n border: 1px;\n}\n\n.otp-verification-modal.doct-modal .doct-modal-content-wrapper .doct-modal-header p {\n font-size: 14px !important;\n}\n.otp-verification-modal.doct-modal .doct-modal-content-wrapper .doct-modal-header svg {\n display: none !important;\n}\n.otp-verification-modal .MuiBackdrop-root {\n pointer-events: none !important;\n}\n\ninput[type=number] {\n appearance: textfield;\n -moz-appearance: textfield;\n -webkit-appearance: textfield;\n}\ninput[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button {\n appearance: none;\n -moz-appearance: none;\n -webkit-appearance: none;\n margin: 0;\n}");var GI=function(t){var n=t.handleClose,r=t.error,o=t.verifiedMessage,a=t.open,s=t.onResendClick,l=t.onButtonSubmit,c=t.isOTPValue,u=t.isResendDisable,d=t.countDownTime,p=t.variant,m=t.phoneNumber,f=t.title,h=void 0===f?"":f,g=e.useState(["","","","","",""]),b=g[0],v=g[1],y=e.useState(""),x=y[0],w=y[1],E=e.useState("OTP Verification for Change Number"),C=E[0],k=E[1];e.useEffect(function(){v(["","","","","",""])},[c]),e.useEffect(function(){"mobile"===p?(w("We have sent you an OTP to this mobile number,<br/> to verify that it’s you.<br/> Please check your phone. If you do not receive in a 60 seconds, try to resend."),k("OTP Verification for change Number")):"password"===p?(w("We have sent you an OTP to your registered<br/> email address, to verify that it’s you.<br/> Please check your email inbox. If you do not receive in a 60 seconds, Try Resend."),k("OTP Verification for Change Password")):"email"===p?(w("We have sent you an OTP to your registered<br/> email address, to verify that it’s you.<br/> Please check your email inbox. If you do not receive in a 60 seconds, Try Resend."),k("OTP Verification for Change Email")):"newMobile"===p?(w('We have sent you an OTP to your<br/> new mobile number,<br/> <span class="font-weight-bold"> +91 '.concat(m,"<br/> </span> Please check your phone. If you do not receive in a 60 seconds, try to resend, or check your number.")),k("OTP Verification for New Mobile Number")):(w("We have sent you an OTP to this mobile number,<br/> to verify that it’s you.<br/> Please check your phone, If do not receive in a 60 <br/> seconds, Try Resend."),k("OTP Verification of Mobile Number"))},[p]);return i.default.createElement(i.default.Fragment,null,i.default.createElement(iA,{open:a,title:h||C,width:360,iconName:"",primaryBtnText:"Submit",className:"otp-verification-modal",handleClose:n,handlePrimaryButtonClick:function(){var e=null==b?void 0:b.join("");l(e)},disableBackdropClick:!0},i.default.createElement("div",{className:"text-label-1 mb-3 text-center",dangerouslySetInnerHTML:{__html:x}}),i.default.createElement(qI,{error:r,verifiedMessage:o,onResendClick:s,setOtpValues:v,otpValues:b,isResendDisable:u,countDownTime:d})))},KI=e=>e instanceof HTMLElement;const XI="blur",QI="change",JI="input",eV="onBlur",tV="onChange",nV="onSubmit",rV="onTouched",oV="all",aV="select",iV="undefined",sV="max",lV="min",cV="maxLength",uV="minLength",dV="pattern",pV="required",mV="validate";var fV=e=>null==e;const hV=e=>"object"==typeof e;var gV=e=>!fV(e)&&!Array.isArray(e)&&hV(e)&&!(e instanceof Date),bV=e=>/^\w*$/.test(e),vV=e=>e.filter(Boolean),yV=e=>vV(e.replace(/["|']/g,"").replace(/\[/g,".").replace(/\]/g,"").split("."));function xV(e,t,n){let r=-1;const o=bV(t)?[t]:yV(t),a=o.length,i=a-1;for(;++r<a;){const t=o[r];let a=n;if(r!==i){const n=e[t];a=gV(n)||Array.isArray(n)?n:isNaN(+o[r+1])?{}:[]}e[t]=a,e=e[t]}return e}var wV=(e,t={})=>{for(const n in e)bV(n)?t[n]=e[n]:xV(t,n,e[n]);return t},EV=e=>void 0===e,CV=(e={},t,n)=>{const r=vV(t.split(/[,[\].]+?/)).reduce((e,t)=>fV(e)?e:e[t],e);return EV(r)||r===e?EV(e[t])?n:e[t]:r},kV=(e,t)=>{KI(e)&&e.removeEventListener&&(e.removeEventListener(JI,t),e.removeEventListener(QI,t),e.removeEventListener(XI,t))};const SV={isValid:!1,value:null};var NV=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.ref.checked?{isValid:!0,value:t.ref.value}:e,SV):SV,MV=e=>"radio"===e.type,OV=e=>"file"===e.type,TV=e=>"checkbox"===e.type,DV=e=>e.type===`${aV}-multiple`;const PV={value:!1,isValid:!1},AV={value:!0,isValid:!0};var FV=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(e=>e&&e.ref.checked).map(({ref:{value:e}})=>e);return{value:t,isValid:!!t.length}}const{checked:t,value:n,attributes:r}=e[0].ref;return t?r&&!EV(r.value)?EV(n)||""===n?AV:{value:n,isValid:!0}:AV:PV}return PV};function RV(e,t,n,r,o){const a=e.current[t];if(a){const{ref:{value:e,disabled:t},ref:n,valueAsNumber:s,valueAsDate:l,setValueAs:c}=a;if(t&&r)return;return OV(n)?n.files:MV(n)?NV(a.options).value:DV(n)?(i=n.options,[...i].filter(({selected:e})=>e).map(({value:e})=>e)):TV(n)?FV(a.options).value:o?e:s?""===e?NaN:+e:l?n.valueAsDate:c?c(e):e}var i;if(n)return CV(n.current,t)}function jV(e){return!e||e instanceof HTMLElement&&e.nodeType!==Node.DOCUMENT_NODE&&jV(e.parentNode)}var IV=e=>gV(e)&&!Object.keys(e).length,VV=e=>"boolean"==typeof e;function LV(e,t){const n=bV(t)?[t]:yV(t),r=1==n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=EV(e)?r++:e[t[r++]];return e}(e,n),o=n[n.length-1];let a;r&&delete r[o];for(let t=0;t<n.slice(0,-1).length;t++){let r,o=-1;const i=n.slice(0,-(t+1)),s=i.length-1;for(t>0&&(a=e);++o<i.length;){const t=i[o];r=r?r[t]:e[t],s===o&&(gV(r)&&IV(r)||Array.isArray(r)&&!r.filter(e=>gV(e)&&!IV(e)||VV(e)).length)&&(a?delete a[t]:delete e[t]),a=r}}return e}const HV=(e,t)=>e&&e.ref===t;var _V=e=>fV(e)||!hV(e);function BV(e,t){if(_V(e)||_V(t))return t;for(const n in t){const r=e[n],o=t[n];try{e[n]=gV(r)&&gV(o)||Array.isArray(r)&&Array.isArray(o)?BV(r,o):o}catch(e){}}return e}function UV(t,n,r){if(_V(t)||_V(n)||t instanceof Date||n instanceof Date)return t===n;if(!e.isValidElement(t)){const e=Object.keys(t),o=Object.keys(n);if(e.length!==o.length)return!1;for(const o of e){const e=t[o];if(!r||"ref"!==o){const t=n[o];if((gV(e)||Array.isArray(e))&&(gV(t)||Array.isArray(t))?!UV(e,t,r):e!==t)return!1}}}return!0}function $V(e,t,n,r,o){let a=-1;for(;++a<e.length;){for(const r in e[a])Array.isArray(e[a][r])?(!n[a]&&(n[a]={}),n[a][r]=[],$V(e[a][r],CV(t[a]||{},r,[]),n[a][r],n[a],r)):UV(CV(t[a]||{},r),e[a][r])?xV(n[a]||{},r):n[a]=Object.assign(Object.assign({},n[a]),{[r]:!0});r&&!n.length&&delete r[o]}return n}var zV=e=>"string"==typeof e,WV=(e,t,n,r,o)=>{const a={};for(const t in e.current)(EV(o)||(zV(o)?t.startsWith(o):Array.isArray(o)&&o.find(e=>t.startsWith(e))))&&(a[t]=RV(e,t,void 0,r));return n?wV(a):BV(t,wV(a))},ZV=e=>e instanceof RegExp,YV=e=>gV(e)&&!ZV(e)?e:{value:e,message:""},qV=e=>"function"==typeof e,GV=t=>zV(t)||e.isValidElement(t);function KV(e,t,n="validate"){if(GV(e)||VV(e)&&!e)return{type:n,message:GV(e)?e:"",ref:t}}var XV=(e,t,n,r,o)=>t?Object.assign(Object.assign({},n[e]),{types:Object.assign(Object.assign({},n[e]&&n[e].types?n[e].types:{}),{[r]:o||!0})}):{},QV=async(e,t,{ref:n,ref:{value:r},options:o,required:a,maxLength:i,minLength:s,min:l,max:c,pattern:u,validate:d},p)=>{const m=n.name,f={},h=MV(n),g=TV(n),b=h||g,v=""===r,y=XV.bind(null,m,t,f),x=(e,t,r,o=cV,a=uV)=>{const i=e?t:r;f[m]=Object.assign({type:e?o:a,message:i,ref:n},y(e?o:a,i))};if(a&&(!h&&!g&&(v||fV(r))||VV(r)&&!r||g&&!FV(o).isValid||h&&!NV(o).isValid)){const{value:r,message:o}=GV(a)?{value:!!a,message:a}:YV(a);if(r&&(f[m]=Object.assign({type:pV,message:o,ref:b?((e.current[m].options||[])[0]||{}).ref:n},y(pV,o)),!t))return f}if(!(fV(l)&&fV(c)||""===r)){let e,o;const a=YV(c),i=YV(l);if(isNaN(r)){const t=n.valueAsDate||new Date(r);zV(a.value)&&(e=t>new Date(a.value)),zV(i.value)&&(o=t<new Date(i.value))}else{const t=n.valueAsNumber||parseFloat(r);fV(a.value)||(e=t>a.value),fV(i.value)||(o=t<i.value)}if((e||o)&&(x(!!e,a.message,i.message,sV,lV),!t))return f}if(zV(r)&&!v&&(i||s)){const e=YV(i),n=YV(s),o=!fV(e.value)&&r.length>e.value,a=!fV(n.value)&&r.length<n.value;if((o||a)&&(x(o,e.message,n.message),!t))return f}if(zV(r)&&u&&!v){const{value:e,message:o}=YV(u);if(ZV(e)&&!e.test(r)&&(f[m]=Object.assign({type:dV,message:o,ref:n},y(dV,o)),!t))return f}if(d){const r=RV(e,m,p,!1,!0),a=b&&o?o[0].ref:n;if(qV(d)){const e=KV(await d(r),a);if(e&&(f[m]=Object.assign(Object.assign({},e),y(mV,e.message)),!t))return f}else if(gV(d)){let e={};for(const[n,o]of Object.entries(d)){if(!IV(e)&&!t)break;const i=KV(await o(r),a,n);i&&(e=Object.assign(Object.assign({},i),y(n,i.message)),t&&(f[m]=e))}if(!IV(e)&&(f[m]=Object.assign({ref:a},e),!t))return f}}return f};const JV=(e,t,n=[])=>{for(const r in t){const o=e+(gV(t)?`.${r}`:`[${r}]`);_V(t[r])?n.push(o):JV(o,t[r],n)}return n};var eL=(e,t,n,r,o)=>{let a;return n.add(t),IV(e)||(a=CV(e,t),(gV(a)||Array.isArray(a))&&JV(t,a).forEach(e=>n.add(e))),EV(a)?o?r:CV(r,t):a},tL=({isOnBlur:e,isOnChange:t,isOnTouch:n,isTouched:r,isReValidateOnBlur:o,isReValidateOnChange:a,isBlurEvent:i,isSubmitted:s,isOnAll:l})=>!l&&(!s&&n?!(r||i):(s?o:e)?!i:!(s?a:t)||i),nL=e=>e.substring(0,e.indexOf("["));var rL=(e,t)=>[...e].some(e=>((e,t)=>RegExp(`^${t}([|.)\\d+`.replace(/\[/g,"\\[").replace(/\]/g,"\\]")).test(e))(t,e));var oL=typeof window!==iV&&typeof document!==iV;function aL(e){var t;let n;if(_V(e)||oL&&(e instanceof File||KI(e)))return e;if(!["Set","Map","Object","Date","Array"].includes(null===(t=e.constructor)||void 0===t?void 0:t.name))return e;if(e instanceof Date)return n=new Date(e.getTime()),n;if(e instanceof Set){n=new Set;for(const t of e)n.add(t);return n}if(e instanceof Map){n=new Map;for(const t of e.keys())n.set(t,aL(e.get(t)));return n}n=Array.isArray(e)?[]:{};for(const t in e)n[t]=aL(e[t]);return n}var iL=e=>({isOnSubmit:!e||e===nV,isOnBlur:e===eV,isOnChange:e===tV,isOnAll:e===oV,isOnTouch:e===rV}),sL=e=>MV(e)||TV(e);const lL=typeof window===iV,cL=oL?"Proxy"in window:typeof Proxy!==iV;function uL({mode:t=nV,reValidateMode:n=tV,resolver:r,context:o,defaultValues:a={},shouldFocusError:i=!0,shouldUnregister:s=!0,criteriaMode:l}={}){const c=e.useRef({}),u=e.useRef({}),d=e.useRef({}),p=e.useRef(new Set),m=e.useRef({}),f=e.useRef({}),h=e.useRef({}),g=e.useRef({}),b=e.useRef(a),v=e.useRef(!1),y=e.useRef(!1),x=e.useRef(),w=e.useRef({}),E=e.useRef({}),C=e.useRef(o),k=e.useRef(r),S=e.useRef(new Set),N=e.useRef(iL(t)),{isOnSubmit:M,isOnTouch:O}=N.current,T=l===oV,[D,P]=e.useState({isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touched:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!M,errors:{}}),A=e.useRef({isDirty:!cL,dirtyFields:!cL,touched:!cL||O,isValidating:!cL,isSubmitting:!cL,isValid:!cL}),F=e.useRef(D),R=e.useRef(),{isOnBlur:j,isOnChange:I}=e.useRef(iL(n)).current;C.current=o,k.current=r,F.current=D,w.current=s?{}:IV(w.current)?aL(a):w.current;const V=e.useCallback((e={})=>{v.current||(F.current=Object.assign(Object.assign({},F.current),e),P(F.current))},[]),L=()=>A.current.isValidating&&V({isValidating:!0}),H=e.useCallback((e,t,n=!1,r={},o)=>{let a=n||(({errors:e,name:t,error:n,validFields:r,fieldsWithValidation:o})=>{const a=EV(n),i=CV(e,t);return a&&!!i||!a&&!UV(i,n,!0)||a&&CV(o,t)&&!CV(r,t)})({errors:F.current.errors,error:t,name:e,validFields:g.current,fieldsWithValidation:h.current});const i=CV(F.current.errors,e);t?(LV(g.current,e),a=a||!i||!UV(i,t,!0),xV(F.current.errors,e,t)):((CV(h.current,e)||k.current)&&(xV(g.current,e,!0),a=a||i),LV(F.current.errors,e)),(a&&!fV(n)||!IV(r)||A.current.isValidating)&&V(Object.assign(Object.assign(Object.assign({},r),k.current?{isValid:!!o}:{}),{isValidating:!1}))},[]),_=e.useCallback((e,t)=>{const{ref:n,options:r}=c.current[e],o=oL&&KI(n)&&fV(t)?"":t;MV(n)?(r||[]).forEach(({ref:e})=>e.checked=e.value===o):OV(n)&&!zV(o)?n.files=o:DV(n)?[...n.options].forEach(e=>e.selected=o.includes(e.value)):TV(n)&&r?r.length>1?r.forEach(({ref:e})=>e.checked=Array.isArray(o)?!!o.find(t=>t===e.value):o===e.value):r[0].ref.checked=!!o:n.value=o},[]),B=e.useCallback((e,t)=>{if(A.current.isDirty){const n=X();return e&&t&&xV(n,e,t),!UV(n,b.current)}return!1},[]),U=e.useCallback((e,t=!0)=>{if(A.current.isDirty||A.current.dirtyFields){const n=!UV(CV(b.current,e),RV(c,e,w)),r=CV(F.current.dirtyFields,e),o=F.current.isDirty;n?xV(F.current.dirtyFields,e,!0):LV(F.current.dirtyFields,e);const a={isDirty:B(),dirtyFields:F.current.dirtyFields},i=A.current.isDirty&&o!==a.isDirty||A.current.dirtyFields&&r!==CV(F.current.dirtyFields,e);return i&&t&&V(a),i?a:{}}return{}},[]),$=e.useCallback(async(e,t)=>{if("production"!==process.env.NODE_ENV&&!c.current[e])return console.warn("📋 Field is missing with `name` attribute: ",e),!1;const n=(await QV(c,T,c.current[e],w))[e];return H(e,n,t),EV(n)},[H,T]),z=e.useCallback(async e=>{const{errors:t}=await k.current(X(),C.current,T),n=F.current.isValid;if(Array.isArray(e)){const n=e.map(e=>{const n=CV(t,e);return n?xV(F.current.errors,e,n):LV(F.current.errors,e),!n}).every(Boolean);return V({isValid:IV(t),isValidating:!1}),n}{const r=CV(t,e);return H(e,r,n!==IV(t),{},IV(t)),!r}},[H,T]),W=e.useCallback(async e=>{const t=e||Object.keys(c.current);if(L(),k.current)return z(t);if(Array.isArray(t)){!e&&(F.current.errors={});const n=await Promise.all(t.map(async e=>await $(e,null)));return V({isValidating:!1}),n.every(Boolean)}return await $(t)},[z,$]),Z=e.useCallback((e,t,{shouldDirty:n,shouldValidate:r})=>{const o={};xV(o,e,t);for(const a of JV(e,t))c.current[a]&&(_(a,CV(o,a)),n&&U(a),r&&W(a))},[W,_,U]),Y=e.useCallback((e,t,n)=>{if(!s&&!_V(t)&&xV(w.current,e,Array.isArray(t)?[...t]:Object.assign({},t)),c.current[e])_(e,t),n.shouldDirty&&U(e),n.shouldValidate&&W(e);else if(!_V(t)&&(Z(e,t,n),S.current.has(e))){const r=nL(e)||e;xV(u.current,e,t),E.current[r]({[r]:CV(u.current,r)}),(A.current.isDirty||A.current.dirtyFields)&&n.shouldDirty&&(xV(F.current.dirtyFields,e,((e,t,n)=>BV($V(e,t,n.slice(0,e.length)),$V(t,e,n.slice(0,e.length))))(t,CV(b.current,e,[]),CV(F.current.dirtyFields,e,[]))),V({isDirty:!UV(Object.assign(Object.assign({},X()),{[e]:t}),b.current)}))}!s&&xV(w.current,e,t)},[U,_,Z]),q=e=>y.current||p.current.has(e)||p.current.has((e.match(/\w+/)||[])[0]),G=e=>{let t=!0;if(!IV(m.current))for(const n in m.current)e&&m.current[n].size&&!m.current[n].has(e)&&!m.current[n].has(nL(e))||(f.current[n](),t=!1);return t};function K(e){if(!s){let t=aL(e);for(const e of S.current)bV(e)&&!t[e]&&(t=Object.assign(Object.assign({},t),{[e]:[]}));return t}return e}function X(e){if(zV(e))return RV(c,e,w);if(Array.isArray(e)){const t={};for(const n of e)xV(t,n,RV(c,n,w));return t}return K(WV(c,aL(w.current),s))}x.current=x.current?x.current:async({type:e,target:t})=>{let n=t.name;const r=c.current[n];let o,a;if(r){const i=e===XI,l=tL(Object.assign({isBlurEvent:i,isReValidateOnChange:I,isReValidateOnBlur:j,isTouched:!!CV(F.current.touched,n),isSubmitted:F.current.isSubmitted},N.current));let u=U(n,!1),d=!IV(u)||!i&&q(n);if(i&&!CV(F.current.touched,n)&&A.current.touched&&(xV(F.current.touched,n,!0),u=Object.assign(Object.assign({},u),{touched:F.current.touched})),!s&&TV(t)&&xV(w.current,n,RV(c,n)),l)return!i&&G(n),(!IV(u)||d&&IV(u))&&V(u);if(L(),k.current){const{errors:e}=await k.current(X(),C.current,T),r=F.current.isValid;if(o=CV(e,n),TV(t)&&!o&&k.current){const t=nL(n),r=CV(e,t,{});r.type&&r.message&&(o=r),t&&(r||CV(F.current.errors,t))&&(n=t)}a=IV(e),r!==a&&(d=!0)}else o=(await QV(c,T,r,w))[n];!i&&G(n),H(n,o,d,u,a)}};const Q=e.useCallback(async(e={})=>{const t=IV(c.current)?b.current:{},{errors:n}=await k.current(Object.assign(Object.assign(Object.assign({},t),X()),e),C.current,T)||{},r=IV(n);F.current.isValid!==r&&V({isValid:r})},[T]),J=e.useCallback((e,t)=>{!function(e,t,n,r,o,a){const{ref:i,ref:{name:s}}=n,l=e.current[s];if(!o){const t=RV(e,s,r);!EV(t)&&xV(r.current,s,t)}i.type&&l?MV(i)||TV(i)?Array.isArray(l.options)&&l.options.length?(vV(l.options).forEach((e={},n)=>{(jV(e.ref)&&HV(e,e.ref)||a)&&(kV(e.ref,t),LV(l.options,`[${n}]`))}),l.options&&!vV(l.options).length&&delete e.current[s]):delete e.current[s]:(jV(i)&&HV(l,i)||a)&&(kV(i,t),delete e.current[s]):delete e.current[s]}(c,x.current,e,w,s,t),s&&(LV(g.current,e.ref.name),LV(h.current,e.ref.name))},[s]),ee=e.useCallback(e=>{if(y.current)V();else{for(const t of p.current)if(t.startsWith(e)){V();break}G(e)}},[]),te=e.useCallback((e,t)=>{e&&(J(e,t),s&&!vV(e.options||[]).length&&(LV(F.current.errors,e.ref.name),xV(F.current.dirtyFields,e.ref.name,!0),V({isDirty:B()}),A.current.isValid&&k.current&&Q(),ee(e.ref.name)))},[Q,J]);const ne=e.useCallback((e,t,n)=>{const r=n?m.current[n]:p.current;let o=WV(c,aL(w.current),s,!1,e);if(zV(e)){const n=nL(e)||e;return S.current.has(n)&&(o=Object.assign(Object.assign({},d.current),o)),eL(o,e,r,EV(CV(b.current,e))?t:CV(b.current,e),!0)}const a=EV(t)?b.current:t;return Array.isArray(e)?e.reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:eL(o,t,r,a)}),{}):(y.current=EV(n),wV(!IV(o)&&o||a))},[]);function re(e,t={}){if("production"!==process.env.NODE_ENV){if(!e.name)return console.warn("📋 Field is missing `name` attribute",e,"https://react-hook-form.com/api#useForm");if(S.current.has(e.name.split(/\[\d+\]$/)[0])&&!RegExp(`^${e.name.split(/\[\d+\]$/)[0]}[\\d+].\\w+`.replace(/\[/g,"\\[").replace(/\]/g,"\\]")).test(e.name))return console.warn('📋 `name` prop should be in object shape: name="test[index].name"',e,"https://react-hook-form.com/api#useFieldArray")}const{name:n,type:r,value:o}=e,a=Object.assign({ref:e},t),i=c.current,l=sL(e),u=rL(S.current,n),d=t=>oL&&(!KI(e)||t===e);let p,m=i[n],f=!0;if(m&&(l?Array.isArray(m.options)&&vV(m.options).find(e=>o===e.ref.value&&d(e.ref)):d(m.ref)))return void(i[n]=Object.assign(Object.assign({},m),t));m=r?l?Object.assign({options:[...vV(m&&m.options||[]),{ref:e}],ref:{type:r,name:n}},t):Object.assign({},a):a,i[n]=m;const v=EV(CV(w.current,n));IV(b.current)&&v||(p=CV(v?b.current:w.current,n),f=EV(p),f||u||_(n,p)),IV(t)||(xV(h.current,n,!0),!M&&A.current.isValid&&QV(c,T,m,w).then(e=>{const t=F.current.isValid;IV(e)?xV(g.current,n,!0):LV(g.current,n),t!==IV(e)&&V()})),!s||u&&f||!u&&LV(F.current.dirtyFields,n),r&&function({ref:e},t,n){KI(e)&&n&&(e.addEventListener(t?QI:JI,n),e.addEventListener(XI,n))}(l&&m.options?m.options[m.options.length-1]:m,l||e.type===`${aV}-one`,x.current)}const oe=e.useCallback((e,t)=>async n=>{n&&n.preventDefault&&(n.preventDefault(),n.persist());let r={},o=K(WV(c,aL(w.current),s,!0));A.current.isSubmitting&&V({isSubmitting:!0});try{if(k.current){const{errors:e,values:t}=await k.current(o,C.current,T);F.current.errors=r=e,o=t}else for(const e of Object.values(c.current))if(e){const{name:t}=e.ref,n=await QV(c,T,e,w);n[t]?(xV(r,t,n[t]),LV(g.current,t)):CV(h.current,t)&&(LV(F.current.errors,t),xV(g.current,t,!0))}IV(r)&&Object.keys(F.current.errors).every(e=>e in c.current)?(V({errors:{},isSubmitting:!0}),await e(o,n)):(F.current.errors=Object.assign(Object.assign({},F.current.errors),r),t&&await t(F.current.errors,n),i&&((e,t)=>{for(const n in e)if(CV(t,n)){const t=e[n];if(t){if(t.ref.focus&&EV(t.ref.focus()))break;if(t.options){t.options[0].ref.focus();break}}}})(c.current,F.current.errors))}finally{F.current.isSubmitting=!1,V({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:IV(F.current.errors),submitCount:F.current.submitCount+1})}},[i,T]);e.useEffect(()=>{r&&A.current.isValid&&Q(),R.current=R.current||!oL?R.current:function(e,t){const n=new MutationObserver(()=>{for(const n of Object.values(e.current))if(n&&n.options)for(const e of n.options)e&&e.ref&&jV(e.ref)&&t(n);else n&&jV(n.ref)&&t(n)});return n.observe(window.document,{childList:!0,subtree:!0}),n}(c,te)},[te,b.current]),e.useEffect(()=>()=>{R.current&&R.current.disconnect(),v.current=!0,"production"===process.env.NODE_ENV&&Object.values(c.current).forEach(e=>te(e,!0))},[]),!r&&A.current.isValid&&(D.isValid=UV(g.current,h.current)&&IV(F.current.errors));const ae={trigger:W,setValue:e.useCallback(function(e,t,n){Y(e,t,n||{}),q(e)&&V(),G(e)},[Y,W]),getValues:e.useCallback(X,[]),register:e.useCallback(function(e,t){if(!lL)if(zV(e))re({name:e},t);else{if(!gV(e)||!("name"in e))return t=>t&&re(t,e);re(e,t)}},[b.current]),unregister:e.useCallback(function(e){for(const t of Array.isArray(e)?e:[e])te(c.current[t],!0)},[]),formState:cL?new Proxy(D,{get:(e,t)=>{if("production"!==process.env.NODE_ENV&&"isValid"===t&&M&&console.warn("📋 `formState.isValid` is applicable with `onTouched`, `onChange` or `onBlur` mode. https://react-hook-form.com/api#formState"),t in e)return A.current[t]=!0,e[t]}}):D},ie=e.useMemo(()=>Object.assign({isFormDirty:B,updateWatchedValue:ee,shouldUnregister:s,updateFormState:V,removeFieldEventListener:J,watchInternal:ne,mode:N.current,reValidateMode:{isReValidateOnBlur:j,isReValidateOnChange:I},validateResolver:r?Q:void 0,fieldsRef:c,resetFieldArrayFunctionRef:E,useWatchFieldsRef:m,useWatchRenderFunctionsRef:f,fieldArrayDefaultValuesRef:u,validFieldsRef:g,fieldsWithValidationRef:h,fieldArrayNamesRef:S,readFormStateRef:A,formStateRef:F,defaultValuesRef:b,shallowFieldsStateRef:w,fieldArrayValuesRef:d},ae),[b.current,ee,s,J,ne]);return Object.assign({watch:function(e,t){return ne(e,t)},control:ie,handleSubmit:oe,reset:e.useCallback((e,t={})=>{if(oL)for(const e of Object.values(c.current))if(e){const{ref:t,options:n}=e,r=sL(t)&&Array.isArray(n)?n[0].ref:t;if(KI(r))try{r.closest("form").reset();break}catch(e){}}c.current={},b.current=Object.assign({},e||b.current),e&&G(""),Object.values(E.current).forEach(e=>qV(e)&&e()),w.current=s?{}:aL(e||b.current),(({errors:e,isDirty:t,isSubmitted:n,touched:r,isValid:o,submitCount:a,dirtyFields:i})=>{o||(g.current={},h.current={}),u.current={},p.current=new Set,y.current=!1,V({submitCount:a?F.current.submitCount:0,isDirty:!!t&&F.current.isDirty,isSubmitted:!!n&&F.current.isSubmitted,isValid:!!o&&F.current.isValid,dirtyFields:i?F.current.dirtyFields:{},touched:r?F.current.touched:{},errors:e?F.current.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})})(t)},[]),clearErrors:e.useCallback(function(e){e&&(Array.isArray(e)?e:[e]).forEach(e=>c.current[e]&&bV(e)?delete F.current.errors[e]:LV(F.current.errors,e)),V({errors:e?F.current.errors:{}})},[]),setError:e.useCallback(function(e,t){const n=(c.current[e]||{}).ref;xV(F.current.errors,e,Object.assign(Object.assign({},t),{ref:n})),V({isValid:!1}),t.shouldFocus&&n&&n.focus&&n.focus()},[]),errors:D.errors},ae)}
|
|
296
296
|
/*! *****************************************************************************
|
|
297
297
|
Copyright (c) Microsoft Corporation.
|
|
298
298
|
|