fis-component 0.0.25 → 0.0.26

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/dist/esm/index.js CHANGED
@@ -3,7 +3,6 @@ import * as React from 'react';
3
3
  import React__default, { useContext as useContext$1, useMemo as useMemo$1, useDebugValue, createElement, useRef, forwardRef, useState, createContext as createContext$1, useCallback, useEffect, useId as useId$3, useImperativeHandle, isValidElement, version as version$2, useLayoutEffect as useLayoutEffect$2, Children, cloneElement as cloneElement$1 } from 'react';
4
4
  import * as ReactDOM from 'react-dom';
5
5
  import ReactDOM__default, { createPortal, unstable_batchedUpdates, flushSync } from 'react-dom';
6
- import { usePopper } from 'react-popper';
7
6
 
8
7
  /******************************************************************************
9
8
  Copyright (c) Microsoft Corporation.
@@ -108,7 +107,7 @@ var assign = Object.assign;
108
107
  * @param {number} length
109
108
  * @return {number}
110
109
  */
111
- function hash (value, length) {
110
+ function hash$2 (value, length) {
112
111
  return charat$1(value, 0) ^ 45 ? (((((((length << 2) ^ charat$1(value, 0)) << 2) ^ charat$1(value, 1)) << 2) ^ charat$1(value, 2)) << 2) ^ charat$1(value, 3) : 0
113
112
  }
114
113
 
@@ -640,7 +639,7 @@ function declaration$1 (value, root, parent, length, siblings) {
640
639
  * @return {string}
641
640
  */
642
641
  function prefix (value, length, children) {
643
- switch (hash(value, length)) {
642
+ switch (hash$2(value, length)) {
644
643
  // color-adjust
645
644
  case 5103:
646
645
  return WEBKIT + 'print-' + value + value
@@ -927,7 +926,7 @@ var unitlessKeys$1 = {
927
926
  strokeWidth: 1
928
927
  };
929
928
 
930
- var f="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",m="active",y="data-styled-version",v="6.1.15",g="/*!sc*/\n",S="undefined"!=typeof window&&"HTMLElement"in window,w=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),E=/invalid hook call/i,N=new Set,P=function(t,n){if("production"!==process.env.NODE_ENV){var r=n?' with the id of "'.concat(n,'"'):"",s="The component ".concat(t).concat(r," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];E.test(t)?(a=!1,N.delete(s)):i.apply(void 0,__spreadArray([t],n,!1));},useRef(),a&&!N.has(s)&&(console.warn(s),N.add(s));}catch(e){E.test(e.message)&&N.delete(s);}finally{console.error=i;}}},_=Object.freeze([]),C=Object.freeze({});function I(e,t,n){return void 0===n&&(n=C),e.theme!==n.theme&&e.theme||t||n.theme}var A=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),O=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,D=/(^-|-$)/g;function R(e){return e.replace(O,"-").replace(D,"")}var T=/(a)(d)/gi,k=52,j=function(e){return String.fromCharCode(e+(e>25?39:97))};function x(e){var t,n="";for(t=Math.abs(e);t>k;t=t/k|0)n=j(t%k)+n;return (j(t%k)+n).replace(T,"$1-$2")}var V,F=5381,M=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},z=function(e){return M(F,e)};function $(e){return x(z(e)>>>0)}function B(e){return "production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function L(e){return "string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var G="function"==typeof Symbol&&Symbol.for,Y=G?Symbol.for("react.memo"):60115,q=G?Symbol.for("react.forward_ref"):60112,W={childContextTypes:true,contextType:true,contextTypes:true,defaultProps:true,displayName:true,getDefaultProps:true,getDerivedStateFromError:true,getDerivedStateFromProps:true,mixins:true,propTypes:true,type:true},H={name:true,length:true,prototype:true,caller:true,callee:true,arguments:true,arity:true},U={$$typeof:true,compare:true,defaultProps:true,displayName:true,propTypes:true,type:true},J=((V={})[q]={$$typeof:true,render:true,defaultProps:true,displayName:true,propTypes:true},V[Y]=U,V);function X(e){return ("type"in(t=e)&&t.type.$$typeof)===Y?U:"$$typeof"in e?J[e.$$typeof]:W;var t;}var Z=Object.defineProperty,K=Object.getOwnPropertyNames,Q=Object.getOwnPropertySymbols,ee=Object.getOwnPropertyDescriptor,te=Object.getPrototypeOf,ne=Object.prototype;function re(e,t,n){if("string"!=typeof t){if(ne){var r=te(t);r&&r!==ne&&re(e,r,n);}var o=K(t);Q&&(o=o.concat(Q(t)));for(var s=X(e),i=X(t),a=0;a<o.length;++a){var c=o[a];if(!(c in H||n&&n[c]||i&&c in i||s&&c in s)){var l=ee(t,c);try{Z(e,c,l);}catch(e){}}}}return e}function oe(e){return "function"==typeof e}function se(e){return "object"==typeof e&&"styledComponentId"in e}function ie(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ae(e,t){if(0===e.length)return "";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function ce(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function le(e,t,n){if(void 0===n&&(n=false),!n&&!ce(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=le(e[r],t[r]);else if(ce(t))for(var r in t)e[r]=le(e[r],t[r]);return e}function ue(e,t){Object.defineProperty(e,"toString",{value:t});}var pe="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function de(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e);}),n}function he(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return "production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(de.apply(void 0,__spreadArray([pe[t]],n,false)).trim())}var fe=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw he(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=r;s<o;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++);},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n);}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s<o;s++)t+="".concat(this.tag.getRule(s)).concat(g);return t},e}(),me=1<<30,ye=new Map,ve=new Map,ge=1,Se=function(e){if(ye.has(e))return ye.get(e);for(;ve.has(ge);)ge++;var t=ge++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>me))throw he(16,"".concat(t));return ye.set(e,t),ve.set(t,e),t},we=function(e,t){ge=t+1,ye.set(e,t),ve.set(t,e);},be="style[".concat(f,"][").concat(y,'="').concat(v,'"]'),Ee=new RegExp("^".concat(f,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ne=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r);},Pe=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(g),o=[],s=0,i=r.length;s<i;s++){var a=r[s].trim();if(a){var c=a.match(Ee);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(we(u,l),Ne(e,u,c[3]),e.getTag().insertRules(l,o)),o.length=0;}else o.push(a);}}},_e=function(e){for(var t=document.querySelectorAll(be),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(f)!==m&&(Pe(e,o),o.parentNode&&o.parentNode.removeChild(o));}};function Ce(){return "undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Ie=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(f,"]")));return t[t.length-1]}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(f,m),r.setAttribute(y,v);var i=Ce();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},Ae=function(){function e(e){this.element=Ie(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw he(17)}(this.element),this.length=0;}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return false}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Oe=function(){function e(e){this.element=Ie(e),this.nodes=this.element.childNodes,this.length=0;}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,true}return false},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),De=function(){function e(e){this.rules=[],this.length=0;}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,true)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Re=S,Te={isServer:!S,useCSSOMInjection:!w},ke=function(){function e(e,n,r){ void 0===e&&(e=C),void 0===n&&(n={});var o=this;this.options=__assign(__assign({},Te),e),this.gs=n,this.names=new Map(r),this.server=!!e.isServer,!this.server&&S&&Re&&(Re=false,_e(this)),ue(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return ve.get(e)}(n);if(void 0===o)return "continue";var s=e.names.get(o),i=t.getGroup(n);if(void 0===s||!s.size||0===i.length)return "continue";var a="".concat(f,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","));}),r+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat(g);},s=0;s<n;s++)o(s);return r}(o)});}return e.registerId=function(e){return Se(e)},e.prototype.rehydrate=function(){!this.server&&S&&_e(this);},e.prototype.reconstructWithOptions=function(n,r){return void 0===r&&(r=true),new e(__assign(__assign({},this.options),n),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new De(n):t?new Ae(n):new Oe(n)}(this.options),new fe(e)));var e;},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Se(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Se(e),n);},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},e.prototype.clearRules=function(e){this.getTag().clearGroup(Se(e)),this.clearNames(e);},e.prototype.clearTag=function(){this.tag=void 0;},e}(),je=/&/g,xe=/^\s*\/\/.*$/gm;function Ve(e,t){return e.map(function(e){return "rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return "".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ve(e.children,t)),e})}function Fe(e){var t,n,r,o=C,s=o.options,i=void 0===s?C:s,a=o.plugins,c=void 0===a?_:a,l=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},u=c.slice();u.push(function(e){e.type===RULESET$1&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(je,n).replace(r,l));}),i.prefix&&u.push(prefixer),u.push(stringify$2);var p=function(e,o,s,a){ void 0===o&&(o=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(xe,""),l=compile$1(s||o?"".concat(s," ").concat(o," { ").concat(c," }"):c);i.namespace&&(l=Ve(l,i.namespace));var p=[];return serialize$1(l,middleware(u.concat(rulesheet(function(e){return p.push(e)})))),p};return p.hash=c.length?c.reduce(function(e,t){return t.name||he(15),M(e,t.name)},F).toString():"",p}var Me=new ke,ze=Fe(),$e=React__default.createContext({shouldForwardProp:void 0,styleSheet:Me,stylis:ze});$e.Consumer;React__default.createContext(void 0);function Ge(){return useContext$1($e)}var qe=function(){function e(e,t){var n=this;this.inject=function(e,t){ void 0===t&&(t=ze);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"));},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ue(this,function(){throw he(12,String(n.name))});}return e.prototype.getName=function(e){return void 0===e&&(e=ze),this.name+e.hash},e}(),We=function(e){return e>="A"&&e<="Z"};function He(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;We(r)?t+="-"+r.toLowerCase():t+=r;}return t.startsWith("ms-")?"-"+t:t}var Ue=function(e){return null==e||false===e||""===e},Je=function(t){var n,r,o=[];for(var s in t){var i=t[s];t.hasOwnProperty(s)&&!Ue(i)&&(Array.isArray(i)&&i.isCss||oe(i)?o.push("".concat(He(s),":"),i,";"):ce(i)?o.push.apply(o,__spreadArray(__spreadArray(["".concat(s," {")],Je(i),false),["}"],false)):o.push("".concat(He(s),": ").concat((n=s,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||n in unitlessKeys$1||n.startsWith("--")?String(r).trim():"".concat(r,"px")),";")));}return o};function Xe(e,t,n,r){if(Ue(e))return [];if(se(e))return [".".concat(e.styledComponentId)];if(oe(e)){if(!oe(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return [e];var o=e(t);return "production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof qe||ce(o)||null===o||console.error("".concat(B(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Xe(o,t,n,r)}var s;return e instanceof qe?n?(e.inject(n,r),[e.getName(r)]):[e]:ce(e)?Je(e):Array.isArray(e)?Array.prototype.concat.apply(_,e.map(function(e){return Xe(e,t,n,r)})):[e.toString()]}function Ze(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(oe(n)&&!se(n))return false}return true}var Ke=z(v),Qe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Ze(e),this.componentId=t,this.baseHash=M(Ke,t),this.baseStyle=n,ke.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=ie(r,this.staticRulesId);else {var o=ae(Xe(this.rules,e,t,n)),s=x(M(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(o,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i);}r=ie(r,s),this.staticRulesId=s;}else {for(var a=M(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u,"production"!==process.env.NODE_ENV&&(a=M(a,u));else if(u){var p=ae(Xe(u,e,t,n));a=M(a,p+l),c+=p;}}if(c){var d=x(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),r=ie(r,d);}}return r},e}(),et=React__default.createContext(void 0);et.Consumer;function nt(){var e=useContext$1(et);if(!e)throw he(18);return e}function rt(e){var n=React__default.useContext(et),o=useMemo$1(function(){return function(e,n){if(!e)throw he(14);if(oe(e)){var r=e(n);if("production"!==process.env.NODE_ENV&&(null===r||Array.isArray(r)||"object"!=typeof r))throw he(7);return r}if(Array.isArray(e)||"object"!=typeof e)throw he(8);return n?__assign(__assign({},n),e):e}(e.theme,n)},[e.theme,n]);return e.children?React__default.createElement(et.Provider,{value:o},e.children):null}var ot={},st=new Set;function it(e,o,s){var i=se(e),a=e,c=!L(e),p=o.attrs,d=void 0===p?_:p,h=o.componentId,f=void 0===h?function(e,t){var n="string"!=typeof e?"sc":R(e);ot[n]=(ot[n]||0)+1;var r="".concat(n,"-").concat($(v+n+ot[n]));return t?"".concat(t,"-").concat(r):r}(o.displayName,o.parentComponentId):h,m=o.displayName,y=void 0===m?function(e){return L(e)?"styled.".concat(e):"Styled(".concat(B(e),")")}(e):m,g=o.displayName&&o.componentId?"".concat(R(o.displayName),"-").concat(o.componentId):o.componentId||f,S=i&&a.attrs?a.attrs.concat(d).filter(Boolean):d,w=o.shouldForwardProp;if(i&&a.shouldForwardProp){var b=a.shouldForwardProp;if(o.shouldForwardProp){var E=o.shouldForwardProp;w=function(e,t){return b(e,t)&&E(e,t)};}else w=b;}var N=new Qe(s,g,i?a.componentStyle:void 0);function O(e,o){return function(e,o,s){var i=e.attrs,a=e.componentStyle,c=e.defaultProps,p=e.foldedComponentIds,d=e.styledComponentId,h=e.target,f=React__default.useContext(et),m=Ge(),y=e.shouldForwardProp||m.shouldForwardProp;"production"!==process.env.NODE_ENV&&useDebugValue(d);var v=I(o,f,c)||C,g=function(e,n,r){for(var o,s=__assign(__assign({},n),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=oe(o=e[i])?o(s):o;for(var c in a)s[c]="className"===c?ie(s[c],a[c]):"style"===c?__assign(__assign({},s[c]),a[c]):a[c];}return n.className&&(s.className=ie(s.className,n.className)),s}(i,o,v),S=g.as||h,w={};for(var b in g) void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===v||("forwardedAs"===b?w.as=g.forwardedAs:y&&!y(b,S)||(w[b]=g[b],y||"development"!==process.env.NODE_ENV||isPropValid(b)||st.has(b)||!A.has(S)||(st.add(b),console.warn('styled-components: it looks like an unknown prop "'.concat(b,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var E=function(e,t){var n=Ge(),r=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return "production"!==process.env.NODE_ENV&&useDebugValue(r),r}(a,g);"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(E);var N=ie(p,d);return E&&(N+=" "+E),g.className&&(N+=" "+g.className),w[L(S)&&!A.has(S)?"class":"className"]=N,s&&(w.ref=s),createElement(S,w)}(D,e,o)}O.displayName=y;var D=React__default.forwardRef(O);return D.attrs=S,D.componentStyle=N,D.displayName=y,D.shouldForwardProp=w,D.foldedComponentIds=i?ie(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=g,D.target=i?a.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)le(e,o[r],true);return e}({},a.defaultProps,e):e;}}),"production"!==process.env.NODE_ENV&&(P(y,g),D.warnTooManyClasses=function(e,t){var n={},r=false;return function(o){if(!r&&(n[o]=true,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=true,n={};}}}(y,g)),ue(D,function(){return ".".concat(D.styledComponentId)}),c&&re(D,e,{attrs:true,componentStyle:true,displayName:true,foldedComponentIds:true,shouldForwardProp:true,styledComponentId:true,target:true}),D}function at(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var ct=function(e){return Object.assign(e,{isCss:true})};function lt(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(oe(t)||ce(t))return ct(Xe(at(_,__spreadArray([t],n,true))));var o=t;return 0===n.length&&1===o.length&&"string"==typeof o[0]?Xe(o):ct(Xe(at(o,n)))}function ut(n,r,o){if(void 0===o&&(o=C),!r)throw he(1,r);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(r,o,lt.apply(void 0,__spreadArray([t],s,false)))};return s.attrs=function(e){return ut(n,r,__assign(__assign({},o),{attrs:Array.prototype.concat(o.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return ut(n,r,__assign(__assign({},o),e))},s}var pt=function(e){return ut(it,e)},dt=pt;A.forEach(function(e){dt[e]=pt(e);});function mt(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var o=ae(lt.apply(void 0,__spreadArray([t],n,false))),s=$(o);return new qe(s,o)}"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var wt="__sc-".concat(f,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[wt]||(window[wt]=0),1===window[wt]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[wt]+=1);
929
+ var f="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",m="active",y="data-styled-version",v="6.1.17",g="/*!sc*/\n",S="undefined"!=typeof window&&"HTMLElement"in window,w=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),E=/invalid hook call/i,N=new Set,P=function(t,n){if("production"!==process.env.NODE_ENV){var o=n?' with the id of "'.concat(n,'"'):"",s="The component ".concat(t).concat(o," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];E.test(t)?(a=!1,N.delete(s)):i.apply(void 0,__spreadArray([t],n,!1));},useRef(),a&&!N.has(s)&&(console.warn(s),N.add(s));}catch(e){E.test(e.message)&&N.delete(s);}finally{console.error=i;}}},_=Object.freeze([]),C=Object.freeze({});function I(e,t,n){return void 0===n&&(n=C),e.theme!==n.theme&&e.theme||t||n.theme}var A=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),O=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,D=/(^-|-$)/g;function R(e){return e.replace(O,"-").replace(D,"")}var T=/(a)(d)/gi,k=52,j=function(e){return String.fromCharCode(e+(e>25?39:97))};function x(e){var t,n="";for(t=Math.abs(e);t>k;t=t/k|0)n=j(t%k)+n;return (j(t%k)+n).replace(T,"$1-$2")}var V,F=5381,M=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},z=function(e){return M(F,e)};function $(e){return x(z(e)>>>0)}function B(e){return "production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function L(e){return "string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var G="function"==typeof Symbol&&Symbol.for,Y=G?Symbol.for("react.memo"):60115,q=G?Symbol.for("react.forward_ref"):60112,W={childContextTypes:true,contextType:true,contextTypes:true,defaultProps:true,displayName:true,getDefaultProps:true,getDerivedStateFromError:true,getDerivedStateFromProps:true,mixins:true,propTypes:true,type:true},H={name:true,length:true,prototype:true,caller:true,callee:true,arguments:true,arity:true},U={$$typeof:true,compare:true,defaultProps:true,displayName:true,propTypes:true,type:true},J=((V={})[q]={$$typeof:true,render:true,defaultProps:true,displayName:true,propTypes:true},V[Y]=U,V);function X(e){return ("type"in(t=e)&&t.type.$$typeof)===Y?U:"$$typeof"in e?J[e.$$typeof]:W;var t;}var Z=Object.defineProperty,K=Object.getOwnPropertyNames,Q=Object.getOwnPropertySymbols,ee=Object.getOwnPropertyDescriptor,te=Object.getPrototypeOf,ne=Object.prototype;function oe(e,t,n){if("string"!=typeof t){if(ne){var o=te(t);o&&o!==ne&&oe(e,o,n);}var r=K(t);Q&&(r=r.concat(Q(t)));for(var s=X(e),i=X(t),a=0;a<r.length;++a){var c=r[a];if(!(c in H||n&&n[c]||i&&c in i||s&&c in s)){var l=ee(t,c);try{Z(e,c,l);}catch(e){}}}}return e}function re(e){return "function"==typeof e}function se(e){return "object"==typeof e&&"styledComponentId"in e}function ie(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ae(e,t){if(0===e.length)return "";for(var n=e[0],o=1;o<e.length;o++)n+=e[o];return n}function ce(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function le(e,t,n){if(void 0===n&&(n=false),!n&&!ce(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=le(e[o],t[o]);else if(ce(t))for(var o in t)e[o]=le(e[o],t[o]);return e}function ue(e,t){Object.defineProperty(e,"toString",{value:t});}var pe="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function de(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],o=[],r=1,s=e.length;r<s;r+=1)o.push(e[r]);return o.forEach(function(e){n=n.replace(/%[a-z]/,e);}),n}function he(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return "production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(de.apply(void 0,__spreadArray([pe[t]],n,false)).trim())}var fe=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)if((r<<=1)<0)throw he(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var s=o;s<r;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++);},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n);}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,s=o;s<r;s++)t+="".concat(this.tag.getRule(s)).concat(g);return t},e}(),me=1<<30,ye=new Map,ve=new Map,ge=1,Se=function(e){if(ye.has(e))return ye.get(e);for(;ve.has(ge);)ge++;var t=ge++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>me))throw he(16,"".concat(t));return ye.set(e,t),ve.set(t,e),t},we=function(e,t){ge=t+1,ye.set(e,t),ve.set(t,e);},be="style[".concat(f,"][").concat(y,'="').concat(v,'"]'),Ee=new RegExp("^".concat(f,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ne=function(e,t,n){for(var o,r=n.split(","),s=0,i=r.length;s<i;s++)(o=r[s])&&e.registerName(t,o);},Pe=function(e,t){for(var n,o=(null!==(n=t.textContent)&&void 0!==n?n:"").split(g),r=[],s=0,i=o.length;s<i;s++){var a=o[s].trim();if(a){var c=a.match(Ee);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(we(u,l),Ne(e,u,c[3]),e.getTag().insertRules(l,r)),r.length=0;}else r.push(a);}}},_e=function(e){for(var t=document.querySelectorAll(be),n=0,o=t.length;n<o;n++){var r=t[n];r&&r.getAttribute(f)!==m&&(Pe(e,r),r.parentNode&&r.parentNode.removeChild(r));}};function Ce(){return "undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Ie=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(f,"]")));return t[t.length-1]}(n),s=void 0!==r?r.nextSibling:null;o.setAttribute(f,m),o.setAttribute(y,v);var i=Ce();return i&&o.setAttribute("nonce",i),n.insertBefore(o,s),o},Ae=function(){function e(e){this.element=Ie(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}throw he(17)}(this.element),this.length=0;}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return false}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Oe=function(){function e(e){this.element=Ie(e),this.nodes=this.element.childNodes,this.length=0;}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,true}return false},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),De=function(){function e(e){this.rules=[],this.length=0;}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,true)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Re=S,Te={isServer:!S,useCSSOMInjection:!w},ke=function(){function e(e,n,o){ void 0===e&&(e=C),void 0===n&&(n={});var r=this;this.options=__assign(__assign({},Te),e),this.gs=n,this.names=new Map(o),this.server=!!e.isServer,!this.server&&S&&Re&&(Re=false,_e(this)),ue(this,function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=function(n){var r=function(e){return ve.get(e)}(n);if(void 0===r)return "continue";var s=e.names.get(r),i=t.getGroup(n);if(void 0===s||!s.size||0===i.length)return "continue";var a="".concat(f,".g").concat(n,'[id="').concat(r,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","));}),o+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat(g);},s=0;s<n;s++)r(s);return o}(r)});}return e.registerId=function(e){return Se(e)},e.prototype.rehydrate=function(){!this.server&&S&&_e(this);},e.prototype.reconstructWithOptions=function(n,o){return void 0===o&&(o=true),new e(__assign(__assign({},this.options),n),this.gs,o&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new De(n):t?new Ae(n):new Oe(n)}(this.options),new fe(e)));var e;},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Se(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Se(e),n);},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},e.prototype.clearRules=function(e){this.getTag().clearGroup(Se(e)),this.clearNames(e);},e.prototype.clearTag=function(){this.tag=void 0;},e}(),je=/&/g,xe=/^\s*\/\/.*$/gm;function Ve(e,t){return e.map(function(e){return "rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return "".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ve(e.children,t)),e})}function Fe(e){var t,n,o,r=C,s=r.options,i=void 0===s?C:s,a=r.plugins,c=void 0===a?_:a,l=function(e,o,r){return r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(t):e},u=c.slice();u.push(function(e){e.type===RULESET$1&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(je,n).replace(o,l));}),i.prefix&&u.push(prefixer),u.push(stringify$2);var p=function(e,r,s,a){ void 0===r&&(r=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=r,o=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(xe,""),l=compile$1(s||r?"".concat(s," ").concat(r," { ").concat(c," }"):c);i.namespace&&(l=Ve(l,i.namespace));var p=[];return serialize$1(l,middleware(u.concat(rulesheet(function(e){return p.push(e)})))),p};return p.hash=c.length?c.reduce(function(e,t){return t.name||he(15),M(e,t.name)},F).toString():"",p}var Me=new ke,ze=Fe(),$e=React__default.createContext({shouldForwardProp:void 0,styleSheet:Me,stylis:ze});$e.Consumer;React__default.createContext(void 0);function Ge(){return useContext$1($e)}var qe=function(){function e(e,t){var n=this;this.inject=function(e,t){ void 0===t&&(t=ze);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"));},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ue(this,function(){throw he(12,String(n.name))});}return e.prototype.getName=function(e){return void 0===e&&(e=ze),this.name+e.hash},e}(),We=function(e){return e>="A"&&e<="Z"};function He(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;We(o)?t+="-"+o.toLowerCase():t+=o;}return t.startsWith("ms-")?"-"+t:t}var Ue=function(e){return null==e||false===e||""===e},Je=function(t){var n,o,r=[];for(var s in t){var i=t[s];t.hasOwnProperty(s)&&!Ue(i)&&(Array.isArray(i)&&i.isCss||re(i)?r.push("".concat(He(s),":"),i,";"):ce(i)?r.push.apply(r,__spreadArray(__spreadArray(["".concat(s," {")],Je(i),false),["}"],false)):r.push("".concat(He(s),": ").concat((n=s,null==(o=i)||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in unitlessKeys$1||n.startsWith("--")?String(o).trim():"".concat(o,"px")),";")));}return r};function Xe(e,t,n,o){if(Ue(e))return [];if(se(e))return [".".concat(e.styledComponentId)];if(re(e)){if(!re(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return [e];var r=e(t);return "production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||r instanceof qe||ce(r)||null===r||console.error("".concat(B(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Xe(r,t,n,o)}var s;return e instanceof qe?n?(e.inject(n,o),[e.getName(o)]):[e]:ce(e)?Je(e):Array.isArray(e)?Array.prototype.concat.apply(_,e.map(function(e){return Xe(e,t,n,o)})):[e.toString()]}function Ze(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(re(n)&&!se(n))return false}return true}var Ke=z(v),Qe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Ze(e),this.componentId=t,this.baseHash=M(Ke,t),this.baseStyle=n,ke.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=ie(o,this.staticRulesId);else {var r=ae(Xe(this.rules,e,t,n)),s=x(M(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(r,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i);}o=ie(o,s),this.staticRulesId=s;}else {for(var a=M(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u,"production"!==process.env.NODE_ENV&&(a=M(a,u));else if(u){var p=ae(Xe(u,e,t,n));a=M(a,p+l),c+=p;}}if(c){var d=x(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),o=ie(o,d);}}return o},e}(),et=React__default.createContext(void 0);et.Consumer;function nt(){var e=useContext$1(et);if(!e)throw he(18);return e}function ot(e){var n=React__default.useContext(et),r=useMemo$1(function(){return function(e,n){if(!e)throw he(14);if(re(e)){var o=e(n);if("production"!==process.env.NODE_ENV&&(null===o||Array.isArray(o)||"object"!=typeof o))throw he(7);return o}if(Array.isArray(e)||"object"!=typeof e)throw he(8);return n?__assign(__assign({},n),e):e}(e.theme,n)},[e.theme,n]);return e.children?React__default.createElement(et.Provider,{value:r},e.children):null}var rt={},st=new Set;function it(e,r,s){var i=se(e),a=e,c=!L(e),p=r.attrs,d=void 0===p?_:p,h=r.componentId,f=void 0===h?function(e,t){var n="string"!=typeof e?"sc":R(e);rt[n]=(rt[n]||0)+1;var o="".concat(n,"-").concat($(v+n+rt[n]));return t?"".concat(t,"-").concat(o):o}(r.displayName,r.parentComponentId):h,m=r.displayName,y=void 0===m?function(e){return L(e)?"styled.".concat(e):"Styled(".concat(B(e),")")}(e):m,g=r.displayName&&r.componentId?"".concat(R(r.displayName),"-").concat(r.componentId):r.componentId||f,S=i&&a.attrs?a.attrs.concat(d).filter(Boolean):d,w=r.shouldForwardProp;if(i&&a.shouldForwardProp){var b=a.shouldForwardProp;if(r.shouldForwardProp){var E=r.shouldForwardProp;w=function(e,t){return b(e,t)&&E(e,t)};}else w=b;}var N=new Qe(s,g,i?a.componentStyle:void 0);function O(e,r){return function(e,r,s){var i=e.attrs,a=e.componentStyle,c=e.defaultProps,p=e.foldedComponentIds,d=e.styledComponentId,h=e.target,f=React__default.useContext(et),m=Ge(),y=e.shouldForwardProp||m.shouldForwardProp;"production"!==process.env.NODE_ENV&&useDebugValue(d);var v=I(r,f,c)||C,g=function(e,n,o){for(var r,s=__assign(__assign({},n),{className:void 0,theme:o}),i=0;i<e.length;i+=1){var a=re(r=e[i])?r(s):r;for(var c in a)s[c]="className"===c?ie(s[c],a[c]):"style"===c?__assign(__assign({},s[c]),a[c]):a[c];}return n.className&&(s.className=ie(s.className,n.className)),s}(i,r,v),S=g.as||h,w={};for(var b in g) void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===v||("forwardedAs"===b?w.as=g.forwardedAs:y&&!y(b,S)||(w[b]=g[b],y||"development"!==process.env.NODE_ENV||isPropValid(b)||st.has(b)||!A.has(S)||(st.add(b),console.warn('styled-components: it looks like an unknown prop "'.concat(b,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var E=function(e,t){var n=Ge(),o=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return "production"!==process.env.NODE_ENV&&useDebugValue(o),o}(a,g);"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(E);var N=ie(p,d);return E&&(N+=" "+E),g.className&&(N+=" "+g.className),w[L(S)&&!A.has(S)?"class":"className"]=N,s&&(w.ref=s),createElement(S,w)}(D,e,r)}O.displayName=y;var D=React__default.forwardRef(O);return D.attrs=S,D.componentStyle=N,D.displayName=y,D.shouldForwardProp=w,D.foldedComponentIds=i?ie(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=g,D.target=i?a.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++)le(e,r[o],true);return e}({},a.defaultProps,e):e;}}),"production"!==process.env.NODE_ENV&&(P(y,g),D.warnTooManyClasses=function(e,t){var n={},o=false;return function(r){if(!o&&(n[r]=true,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),o=true,n={};}}}(y,g)),ue(D,function(){return ".".concat(D.styledComponentId)}),c&&oe(D,e,{attrs:true,componentStyle:true,displayName:true,foldedComponentIds:true,shouldForwardProp:true,styledComponentId:true,target:true}),D}function at(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n}var ct=function(e){return Object.assign(e,{isCss:true})};function lt(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(re(t)||ce(t))return ct(Xe(at(_,__spreadArray([t],n,true))));var r=t;return 0===n.length&&1===r.length&&"string"==typeof r[0]?Xe(r):ct(Xe(at(r,n)))}function ut(n,o,r){if(void 0===r&&(r=C),!o)throw he(1,o);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(o,r,lt.apply(void 0,__spreadArray([t],s,false)))};return s.attrs=function(e){return ut(n,o,__assign(__assign({},r),{attrs:Array.prototype.concat(r.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return ut(n,o,__assign(__assign({},r),e))},s}var pt=function(e){return ut(it,e)},dt=pt;A.forEach(function(e){dt[e]=pt(e);});function mt(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=ae(lt.apply(void 0,__spreadArray([t],n,false))),s=$(r);return new qe(s,r)}"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var wt="__sc-".concat(f,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[wt]||(window[wt]=0),1===window[wt]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[wt]+=1);
931
930
 
932
931
  var theme = {
933
932
  "com/accordion/head/size-md/icon-wrap/height": "24px",
@@ -5665,7 +5664,7 @@ const ToastProvider = ({ children, }) => {
5665
5664
  return (jsxs(ToastContext.Provider, { value: { showToast }, children: [children, toasts.length > 0 && (jsx(ToastWrapper, { children: toasts.map((toast, index) => (jsx(FISToast, { ...toast }, index))) }))] }));
5666
5665
  };
5667
5666
 
5668
- const FISThemeProvider = ({ theme: theme$1 = theme, children, }) => (jsx(rt, { theme: theme$1, children: jsx(ToastProvider, { children: children }) }));
5667
+ const FISThemeProvider = ({ theme: theme$1 = theme, children, }) => (jsx(ot, { theme: theme$1, children: jsx(ToastProvider, { children: children }) }));
5669
5668
 
5670
5669
  const LinkButtonStyled = dt.button `
5671
5670
  display: flex;
@@ -11325,7 +11324,7 @@ function canUseDom() {
11325
11324
  return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
11326
11325
  }
11327
11326
 
11328
- function contains(root, n) {
11327
+ function contains$1(root, n) {
11329
11328
  if (!root) {
11330
11329
  return false;
11331
11330
  }
@@ -11451,7 +11450,7 @@ function syncRealContainer(container, option) {
11451
11450
  var cachedRealContainer = containerCache.get(container);
11452
11451
 
11453
11452
  // Find real container when not cached or cached container removed
11454
- if (!cachedRealContainer || !contains(document, cachedRealContainer)) {
11453
+ if (!cachedRealContainer || !contains$1(document, cachedRealContainer)) {
11455
11454
  var placeholderStyle = injectCSS('', option);
11456
11455
  var parentNode = placeholderStyle.parentNode;
11457
11456
  containerCache.set(container, parentNode);
@@ -11514,7 +11513,7 @@ function _objectWithoutProperties(e, t) {
11514
11513
  * @param shallow shallow compare
11515
11514
  * @returns
11516
11515
  */
11517
- function isEqual(obj1, obj2) {
11516
+ function isEqual$1(obj1, obj2) {
11518
11517
  var shallow = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
11519
11518
  // https://github.com/mapbox/mapbox-gl-js/pull/5979/files#diff-fde7145050c47cc3a306856efd5f9c3016e86e859de9afbd02c879be5067e58f
11520
11519
  var refSet = new Set();
@@ -14019,7 +14018,7 @@ const seedToken = Object.assign(Object.assign({}, defaultPresetColors), {
14019
14018
  motion: true
14020
14019
  });
14021
14020
 
14022
- const round = Math.round;
14021
+ const round$1 = Math.round;
14023
14022
 
14024
14023
  /**
14025
14024
  * Support format, alpha unit will check the % mark:
@@ -14181,7 +14180,7 @@ class FastColor {
14181
14180
  if (delta === 0) {
14182
14181
  this._h = 0;
14183
14182
  } else {
14184
- this._h = round(60 * (this.r === this.getMax() ? (this.g - this.b) / delta + (this.g < this.b ? 6 : 0) : this.g === this.getMax() ? (this.b - this.r) / delta + 2 : (this.r - this.g) / delta + 4));
14183
+ this._h = round$1(60 * (this.r === this.getMax() ? (this.g - this.b) / delta + (this.g < this.b ? 6 : 0) : this.g === this.getMax() ? (this.b - this.r) / delta + 2 : (this.r - this.g) / delta + 4));
14185
14184
  }
14186
14185
  }
14187
14186
  return this._h;
@@ -14262,10 +14261,10 @@ class FastColor {
14262
14261
  const p = amount / 100;
14263
14262
  const calc = key => (color[key] - this[key]) * p + this[key];
14264
14263
  const rgba = {
14265
- r: round(calc('r')),
14266
- g: round(calc('g')),
14267
- b: round(calc('b')),
14268
- a: round(calc('a') * 100) / 100
14264
+ r: round$1(calc('r')),
14265
+ g: round$1(calc('g')),
14266
+ b: round$1(calc('b')),
14267
+ a: round$1(calc('a') * 100) / 100
14269
14268
  };
14270
14269
  return this._c(rgba);
14271
14270
  }
@@ -14299,7 +14298,7 @@ class FastColor {
14299
14298
  const bg = this._c(background);
14300
14299
  const alpha = this.a + bg.a * (1 - this.a);
14301
14300
  const calc = key => {
14302
- return round((this[key] * this.a + bg[key] * bg.a * (1 - this.a)) / alpha);
14301
+ return round$1((this[key] * this.a + bg[key] * bg.a * (1 - this.a)) / alpha);
14303
14302
  };
14304
14303
  return this._c({
14305
14304
  r: calc('r'),
@@ -14335,7 +14334,7 @@ class FastColor {
14335
14334
  const bHex = (this.b || 0).toString(16);
14336
14335
  hex += bHex.length === 2 ? bHex : '0' + bHex;
14337
14336
  if (typeof this.a === 'number' && this.a >= 0 && this.a < 1) {
14338
- const aHex = round(this.a * 255).toString(16);
14337
+ const aHex = round$1(this.a * 255).toString(16);
14339
14338
  hex += aHex.length === 2 ? aHex : '0' + aHex;
14340
14339
  }
14341
14340
  return hex;
@@ -14354,8 +14353,8 @@ class FastColor {
14354
14353
  /** CSS support color pattern */
14355
14354
  toHslString() {
14356
14355
  const h = this.getHue();
14357
- const s = round(this.getSaturation() * 100);
14358
- const l = round(this.getLightness() * 100);
14356
+ const s = round$1(this.getSaturation() * 100);
14357
+ const l = round$1(this.getLightness() * 100);
14359
14358
  return this.a !== 1 ? `hsla(${h},${s}%,${l}%,${this.a})` : `hsl(${h},${s}%,${l}%)`;
14360
14359
  }
14361
14360
 
@@ -14435,7 +14434,7 @@ class FastColor {
14435
14434
  this._l = l;
14436
14435
  this.a = typeof a === 'number' ? a : 1;
14437
14436
  if (s <= 0) {
14438
- const rgb = round(l * 255);
14437
+ const rgb = round$1(l * 255);
14439
14438
  this.r = rgb;
14440
14439
  this.g = rgb;
14441
14440
  this.b = rgb;
@@ -14466,9 +14465,9 @@ class FastColor {
14466
14465
  b = secondComponent;
14467
14466
  }
14468
14467
  const lightnessModification = l - chroma / 2;
14469
- this.r = round((r + lightnessModification) * 255);
14470
- this.g = round((g + lightnessModification) * 255);
14471
- this.b = round((b + lightnessModification) * 255);
14468
+ this.r = round$1((r + lightnessModification) * 255);
14469
+ this.g = round$1((g + lightnessModification) * 255);
14470
+ this.b = round$1((b + lightnessModification) * 255);
14472
14471
  }
14473
14472
  fromHsv({
14474
14473
  h,
@@ -14480,7 +14479,7 @@ class FastColor {
14480
14479
  this._s = s;
14481
14480
  this._v = v;
14482
14481
  this.a = typeof a === 'number' ? a : 1;
14483
- const vv = round(v * 255);
14482
+ const vv = round$1(v * 255);
14484
14483
  this.r = vv;
14485
14484
  this.g = vv;
14486
14485
  this.b = vv;
@@ -14490,9 +14489,9 @@ class FastColor {
14490
14489
  const hh = h / 60;
14491
14490
  const i = Math.floor(hh);
14492
14491
  const ff = hh - i;
14493
- const p = round(v * (1.0 - s) * 255);
14494
- const q = round(v * (1.0 - s * ff) * 255);
14495
- const t = round(v * (1.0 - s * (1.0 - ff)) * 255);
14492
+ const p = round$1(v * (1.0 - s) * 255);
14493
+ const q = round$1(v * (1.0 - s * ff) * 255);
14494
+ const t = round$1(v * (1.0 - s * (1.0 - ff)) * 255);
14496
14495
  switch (i) {
14497
14496
  case 0:
14498
14497
  this.g = t;
@@ -14542,7 +14541,7 @@ class FastColor {
14542
14541
  fromRgbString(trimStr) {
14543
14542
  const cells = splitColorStr(trimStr, (num, txt) =>
14544
14543
  // Convert percentage to number. e.g. 50% -> 128
14545
- txt.includes('%') ? round(num / 100 * 255) : num);
14544
+ txt.includes('%') ? round$1(num / 100 * 255) : num);
14546
14545
  this.r = cells[0];
14547
14546
  this.g = cells[1];
14548
14547
  this.b = cells[2];
@@ -15973,7 +15972,7 @@ function genStyleUtils(config) {
15973
15972
 
15974
15973
  const PresetColors = ['blue', 'purple', 'cyan', 'green', 'magenta', 'pink', 'red', 'orange', 'yellow', 'volcano', 'geekblue', 'lime', 'gold'];
15975
15974
 
15976
- var version$1 = '5.24.3';
15975
+ var version$1 = '5.24.6';
15977
15976
 
15978
15977
  function isStableColor(color) {
15979
15978
  return color >= 0 && color <= 255;
@@ -16566,7 +16565,7 @@ function useTheme(theme, parentTheme, config) {
16566
16565
  });
16567
16566
  }, [themeConfig, parentThemeConfig], (prev, next) => prev.some((prevTheme, index) => {
16568
16567
  const nextTheme = next[index];
16569
- return !isEqual(prevTheme, nextTheme, true);
16568
+ return !isEqual$1(prevTheme, nextTheme, true);
16570
16569
  }));
16571
16570
  }
16572
16571
 
@@ -16735,7 +16734,7 @@ var useDomMotionEvents = (function (onInternalMotionEnd) {
16735
16734
  });
16736
16735
 
16737
16736
  // It's safe to use `useLayoutEffect` but the warning is annoying
16738
- var useIsomorphicLayoutEffect = canUseDom() ? useLayoutEffect$2 : useEffect;
16737
+ var useIsomorphicLayoutEffect$1 = canUseDom() ? useLayoutEffect$2 : useEffect;
16739
16738
 
16740
16739
  var useNextFrame = (function () {
16741
16740
  var nextFrameRef = React.useRef(null);
@@ -16789,7 +16788,7 @@ var useStepQueue = (function (status, prepareOnly, callback) {
16789
16788
  setStep(STEP_PREPARE, true);
16790
16789
  }
16791
16790
  var STEP_QUEUE = prepareOnly ? SIMPLE_STEP_QUEUE : FULL_STEP_QUEUE;
16792
- useIsomorphicLayoutEffect(function () {
16791
+ useIsomorphicLayoutEffect$1(function () {
16793
16792
  if (step !== STEP_NONE && step !== STEP_ACTIVATED) {
16794
16793
  var index = STEP_QUEUE.indexOf(step);
16795
16794
  var nextStep = STEP_QUEUE[index + 1];
@@ -16968,7 +16967,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
16968
16967
  var visibleRef = useRef(null);
16969
16968
 
16970
16969
  // Update with new status
16971
- useIsomorphicLayoutEffect(function () {
16970
+ useIsomorphicLayoutEffect$1(function () {
16972
16971
  // When use Suspense, the `visible` will repeat trigger,
16973
16972
  // But not real change of the `visible`, we need to skip it.
16974
16973
  // https://github.com/ant-design/ant-design/issues/44379
@@ -19240,7 +19239,7 @@ const useSize = customSize => {
19240
19239
  if (typeof customSize === 'string') {
19241
19240
  return customSize !== null && customSize !== void 0 ? customSize : size;
19242
19241
  }
19243
- if (customSize instanceof Function) {
19242
+ if (typeof customSize === 'function') {
19244
19243
  return customSize(size);
19245
19244
  }
19246
19245
  return size;
@@ -23928,7 +23927,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
23928
23927
  var _meta = _objectSpread2(_objectSpread2({}, _this.getMeta()), {}, {
23929
23928
  destroy: destroy
23930
23929
  });
23931
- if (!isEqual(_this.metaCache, _meta)) {
23930
+ if (!isEqual$1(_this.metaCache, _meta)) {
23932
23931
  onMetaChange(_meta);
23933
23932
  }
23934
23933
  _this.metaCache = _meta;
@@ -23951,7 +23950,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
23951
23950
  var namePathMatch = namePathList && containsNamePath(namePathList, namePath);
23952
23951
 
23953
23952
  // `setFieldsValue` is a quick access to update related status
23954
- if (info.type === 'valueUpdate' && info.source === 'external' && !isEqual(prevValue, curValue)) {
23953
+ if (info.type === 'valueUpdate' && info.source === 'external' && !isEqual$1(prevValue, curValue)) {
23955
23954
  _this.touched = true;
23956
23955
  _this.dirty = true;
23957
23956
  _this.validatePromise = null;
@@ -30368,7 +30367,7 @@ function useScrollDrag(inVirtual, componentRef, onScrollOffset) {
30368
30367
  };
30369
30368
  var onMouseDown = function onMouseDown(e) {
30370
30369
  // Skip if element set draggable
30371
- if (e.target.draggable) {
30370
+ if (e.target.draggable || e.button !== 0) {
30372
30371
  return;
30373
30372
  }
30374
30373
  // Skip if nest List has handled this event
@@ -33807,7 +33806,7 @@ const getSearchInputWithoutBorderStyle = token => {
33807
33806
  fontFamily: 'inherit',
33808
33807
  '&::-webkit-search-cancel-button': {
33809
33808
  display: 'none',
33810
- '-webkit-appearance': 'none'
33809
+ appearance: 'none'
33811
33810
  }
33812
33811
  }
33813
33812
  };
@@ -34368,7 +34367,7 @@ const validateBreakpoints = token => {
34368
34367
  });
34369
34368
  return token;
34370
34369
  };
34371
- function useResponsiveObserver() {
34370
+ const useResponsiveObserver = () => {
34372
34371
  const [, token] = useToken();
34373
34372
  const responsiveMap = getResponsiveMap(validateBreakpoints(token));
34374
34373
  // To avoid repeat create instance, we add `useMemo` here.
@@ -34377,6 +34376,7 @@ function useResponsiveObserver() {
34377
34376
  let subUid = -1;
34378
34377
  let screens = {};
34379
34378
  return {
34379
+ responsiveMap,
34380
34380
  matchHandlers: {},
34381
34381
  dispatch(pointMap) {
34382
34382
  screens = pointMap;
@@ -34398,14 +34398,6 @@ function useResponsiveObserver() {
34398
34398
  this.unregister();
34399
34399
  }
34400
34400
  },
34401
- unregister() {
34402
- Object.keys(responsiveMap).forEach(screen => {
34403
- const matchMediaQuery = responsiveMap[screen];
34404
- const handler = this.matchHandlers[matchMediaQuery];
34405
- handler === null || handler === void 0 ? void 0 : handler.mql.removeListener(handler === null || handler === void 0 ? void 0 : handler.listener);
34406
- });
34407
- subscribers.clear();
34408
- },
34409
34401
  register() {
34410
34402
  Object.keys(responsiveMap).forEach(screen => {
34411
34403
  const matchMediaQuery = responsiveMap[screen];
@@ -34426,10 +34418,17 @@ function useResponsiveObserver() {
34426
34418
  listener(mql);
34427
34419
  });
34428
34420
  },
34429
- responsiveMap
34421
+ unregister() {
34422
+ Object.keys(responsiveMap).forEach(screen => {
34423
+ const matchMediaQuery = responsiveMap[screen];
34424
+ const handler = this.matchHandlers[matchMediaQuery];
34425
+ handler === null || handler === void 0 ? void 0 : handler.mql.removeListener(handler === null || handler === void 0 ? void 0 : handler.listener);
34426
+ });
34427
+ subscribers.clear();
34428
+ }
34430
34429
  };
34431
34430
  }, [token]);
34432
- }
34431
+ };
34433
34432
 
34434
34433
  function useForceUpdate() {
34435
34434
  const [, forceUpdate] = React.useReducer(x => x + 1, 0);
@@ -34482,7 +34481,7 @@ var autoAdjustOverflowLeftRight = {
34482
34481
  shiftY: true
34483
34482
  };
34484
34483
  var targetOffset$1 = [0, 0];
34485
- var placements$2 = {
34484
+ var placements$3 = {
34486
34485
  left: {
34487
34486
  points: ['cr', 'cl'],
34488
34487
  overflow: autoAdjustOverflowLeftRight,
@@ -34623,7 +34622,7 @@ var Tooltip$1 = function Tooltip(props, ref) {
34623
34622
  prefixCls: prefixCls,
34624
34623
  popup: getPopupElement,
34625
34624
  action: trigger,
34626
- builtinPlacements: placements$2,
34625
+ builtinPlacements: placements$3,
34627
34626
  popupPlacement: placement,
34628
34627
  ref: triggerRef,
34629
34628
  popupAlign: align,
@@ -35533,7 +35532,7 @@ var autoAdjustOverflow$1 = {
35533
35532
  adjustY: 1
35534
35533
  };
35535
35534
  var targetOffset = [0, 0];
35536
- var placements$1 = {
35535
+ var placements$2 = {
35537
35536
  topLeft: {
35538
35537
  points: ['bl', 'tl'],
35539
35538
  overflow: autoAdjustOverflow$1,
@@ -35585,7 +35584,7 @@ function Dropdown$2(props, ref) {
35585
35584
  _props$placement = props.placement,
35586
35585
  placement = _props$placement === void 0 ? 'bottomLeft' : _props$placement,
35587
35586
  _props$placements = props.placements,
35588
- placements = _props$placements === void 0 ? placements$1 : _props$placements,
35587
+ placements = _props$placements === void 0 ? placements$2 : _props$placements,
35589
35588
  getPopupContainer = props.getPopupContainer,
35590
35589
  showAction = props.showAction,
35591
35590
  hideAction = props.hideAction,
@@ -35727,7 +35726,7 @@ function InheritableContextProvider(_ref) {
35727
35726
  var inheritableContext = useMemo(function () {
35728
35727
  return mergeProps(context, restProps);
35729
35728
  }, [context, restProps], function (prev, next) {
35730
- return !locked && (prev[0] !== next[0] || !isEqual(prev[1], next[1], true));
35729
+ return !locked && (prev[0] !== next[0] || !isEqual$1(prev[1], next[1], true));
35731
35730
  });
35732
35731
  return /*#__PURE__*/React.createElement(MenuContext$1.Provider, {
35733
35732
  value: inheritableContext
@@ -36529,7 +36528,7 @@ var autoAdjustOverflow = {
36529
36528
  adjustX: 1,
36530
36529
  adjustY: 1
36531
36530
  };
36532
- var placements = {
36531
+ var placements$1 = {
36533
36532
  topLeft: {
36534
36533
  points: ['bl', 'tl'],
36535
36534
  overflow: autoAdjustOverflow
@@ -36640,7 +36639,7 @@ function PopupTrigger(_ref) {
36640
36639
  _React$useState2 = _slicedToArray(_React$useState, 2),
36641
36640
  innerVisible = _React$useState2[0],
36642
36641
  setInnerVisible = _React$useState2[1];
36643
- var placement = rtl ? _objectSpread2(_objectSpread2({}, placementsRtl), builtinPlacements) : _objectSpread2(_objectSpread2({}, placements), builtinPlacements);
36642
+ var placement = rtl ? _objectSpread2(_objectSpread2({}, placementsRtl), builtinPlacements) : _objectSpread2(_objectSpread2({}, placements$1), builtinPlacements);
36644
36643
  var popupPlacement = popupPlacementMap[mode];
36645
36644
  var targetMotion = getMotion(mode, motion, defaultMotions);
36646
36645
  var targetMotionRef = React.useRef(targetMotion);
@@ -37487,7 +37486,7 @@ var Menu$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
37487
37486
  return !subPathKeys.has(k);
37488
37487
  });
37489
37488
  }
37490
- if (!isEqual(mergedOpenKeys, newOpenKeys, true)) {
37489
+ if (!isEqual$1(mergedOpenKeys, newOpenKeys, true)) {
37491
37490
  triggerOpenKeys(newOpenKeys, true);
37492
37491
  }
37493
37492
  });
@@ -47270,23 +47269,26 @@ const genBorderlessStyle = (token, extraStyles) => {
47270
47269
  };
47271
47270
  };
47272
47271
  /* ============== Filled ============== */
47273
- const genBaseFilledStyle = (token, options) => ({
47274
- background: options.bg,
47275
- borderWidth: token.lineWidth,
47276
- borderStyle: token.lineType,
47277
- borderColor: 'transparent',
47278
- 'input&, & input, textarea&, & textarea': {
47279
- color: options === null || options === void 0 ? void 0 : options.inputColor
47280
- },
47281
- '&:hover': {
47282
- background: options.hoverBg
47283
- },
47284
- '&:focus, &:focus-within': {
47285
- outline: 0,
47286
- borderColor: options.activeBorderColor,
47287
- backgroundColor: token.activeBg
47288
- }
47289
- });
47272
+ const genBaseFilledStyle = (token, options) => {
47273
+ var _a;
47274
+ return {
47275
+ background: options.bg,
47276
+ borderWidth: token.lineWidth,
47277
+ borderStyle: token.lineType,
47278
+ borderColor: 'transparent',
47279
+ 'input&, & input, textarea&, & textarea': {
47280
+ color: (_a = options === null || options === void 0 ? void 0 : options.inputColor) !== null && _a !== void 0 ? _a : 'unset'
47281
+ },
47282
+ '&:hover': {
47283
+ background: options.hoverBg
47284
+ },
47285
+ '&:focus, &:focus-within': {
47286
+ outline: 0,
47287
+ borderColor: options.activeBorderColor,
47288
+ backgroundColor: token.activeBg
47289
+ }
47290
+ };
47291
+ };
47290
47292
  const genFilledStatusStyle = (token, options) => ({
47291
47293
  [`&${token.componentCls}-status-${options.status}:not(${token.componentCls}-disabled)`]: Object.assign(Object.assign({}, genBaseFilledStyle(token, options)), {
47292
47294
  [`${token.componentCls}-prefix, ${token.componentCls}-suffix`]: {
@@ -47477,17 +47479,6 @@ const genBasicInputStyle = token => Object.assign(Object.assign({
47477
47479
  borderRadius: token.borderRadius,
47478
47480
  transition: `all ${token.motionDurationMid}`
47479
47481
  }, genPlaceholderStyle(token.colorTextPlaceholder)), {
47480
- // Reset height for `textarea`s
47481
- 'textarea&': {
47482
- maxWidth: '100%',
47483
- // prevent textarea resize from coming out of its container
47484
- height: 'auto',
47485
- minHeight: token.controlHeight,
47486
- lineHeight: token.lineHeight,
47487
- verticalAlign: 'bottom',
47488
- transition: `all ${token.motionDurationSlow}, height 0s`,
47489
- resize: 'vertical'
47490
- },
47491
47482
  // Size
47492
47483
  '&-lg': Object.assign({}, genInputLargeStyle(token)),
47493
47484
  '&-sm': Object.assign({}, genInputSmallStyle(token)),
@@ -47751,7 +47742,7 @@ const genInputStyle = token => {
47751
47742
  }
47752
47743
  },
47753
47744
  '&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration': {
47754
- '-webkit-appearance': 'none'
47745
+ appearance: 'none'
47755
47746
  }
47756
47747
  })
47757
47748
  };
@@ -48462,8 +48453,8 @@ const genPanelStyle = token => {
48462
48453
  width: pickerControlIconSize,
48463
48454
  height: pickerControlIconSize,
48464
48455
  border: `0 solid currentcolor`,
48465
- borderBlockWidth: `${unit$1(pickerControlIconBorderWidth)} 0`,
48466
- borderInlineWidth: `${unit$1(pickerControlIconBorderWidth)} 0`,
48456
+ borderBlockStartWidth: pickerControlIconBorderWidth,
48457
+ borderInlineStartWidth: pickerControlIconBorderWidth,
48467
48458
  content: '""'
48468
48459
  }
48469
48460
  },
@@ -48477,8 +48468,8 @@ const genPanelStyle = token => {
48477
48468
  width: pickerControlIconSize,
48478
48469
  height: pickerControlIconSize,
48479
48470
  border: '0 solid currentcolor',
48480
- borderBlockWidth: `${unit$1(pickerControlIconBorderWidth)} 0`,
48481
- borderInlineWidth: `${unit$1(pickerControlIconBorderWidth)} 0`,
48471
+ borderBlockStartWidth: pickerControlIconBorderWidth,
48472
+ borderInlineStartWidth: pickerControlIconBorderWidth,
48482
48473
  content: '""'
48483
48474
  }
48484
48475
  },
@@ -49466,7 +49457,7 @@ function throttle (delay, callback, options) {
49466
49457
  *
49467
49458
  * @returns {Function} A new, debounced function.
49468
49459
  */
49469
- function debounce (delay, callback, options) {
49460
+ function debounce$1 (delay, callback, options) {
49470
49461
  var _ref = {},
49471
49462
  _ref$atBegin = _ref.atBegin,
49472
49463
  atBegin = _ref$atBegin === void 0 ? false : _ref$atBegin;
@@ -52556,6 +52547,7 @@ const genPaginationDisabledStyle = token => {
52556
52547
  cursor: 'not-allowed',
52557
52548
  [`${componentCls}-item`]: {
52558
52549
  cursor: 'not-allowed',
52550
+ backgroundColor: 'transparent',
52559
52551
  '&:hover, &:active': {
52560
52552
  backgroundColor: 'transparent'
52561
52553
  },
@@ -52627,16 +52619,6 @@ const genPaginationMiniStyle = token => {
52627
52619
  margin: 0,
52628
52620
  lineHeight: unit$1(token.calc(token.itemSizeSM).sub(2).equal())
52629
52621
  },
52630
- [`&${componentCls}-mini:not(${componentCls}-disabled) ${componentCls}-item:not(${componentCls}-item-active)`]: {
52631
- backgroundColor: 'transparent',
52632
- borderColor: 'transparent',
52633
- '&:hover': {
52634
- backgroundColor: token.colorBgTextHover
52635
- },
52636
- '&:active': {
52637
- backgroundColor: token.colorBgTextActive
52638
- }
52639
- },
52640
52622
  [`&${componentCls}-mini ${componentCls}-prev, &${componentCls}-mini ${componentCls}-next`]: {
52641
52623
  minWidth: token.itemSizeSM,
52642
52624
  height: token.itemSizeSM,
@@ -53772,7 +53754,7 @@ const Spin = props => {
53772
53754
  const mergedPercent = usePercent(spinning, percent);
53773
53755
  React.useEffect(() => {
53774
53756
  if (customSpinning) {
53775
- const showSpinning = debounce(delay, () => {
53757
+ const showSpinning = debounce$1(delay, () => {
53776
53758
  setSpinning(true);
53777
53759
  });
53778
53760
  showSpinning();
@@ -54073,7 +54055,7 @@ function useContext(holder, selector) {
54073
54055
  }
54074
54056
  function trigger(nextValue) {
54075
54057
  var nextSelectorValue = eventSelector(nextValue);
54076
- if (!isEqual(valueRef.current, nextSelectorValue, true)) {
54058
+ if (!isEqual$1(valueRef.current, nextSelectorValue, true)) {
54077
54059
  forceUpdate({});
54078
54060
  }
54079
54061
  }
@@ -54291,7 +54273,7 @@ function useCellRender(record, dataIndex, renderIndex, children, render, shouldC
54291
54273
  if (perfRecord.renderWithProps) {
54292
54274
  return true;
54293
54275
  }
54294
- return !isEqual(prev, next, true);
54276
+ return !isEqual$1(prev, next, true);
54295
54277
  });
54296
54278
  return retData;
54297
54279
  }
@@ -55817,7 +55799,7 @@ function useFixedInfo(flattenColumns, stickyOffsets, direction) {
55817
55799
  return useMemo(function () {
55818
55800
  return fixedInfoList;
55819
55801
  }, [fixedInfoList], function (prev, next) {
55820
- return !isEqual(prev, next);
55802
+ return !isEqual$1(prev, next);
55821
55803
  });
55822
55804
  }
55823
55805
 
@@ -56098,7 +56080,7 @@ var StickyScrollBar = function StickyScrollBar(_ref, ref) {
56098
56080
  React.useEffect(function () {
56099
56081
  if (!scrollBodyRef.current) return;
56100
56082
  var scrollParents = [];
56101
- var parent = scrollBodyRef.current;
56083
+ var parent = getDOM(scrollBodyRef.current);
56102
56084
  while (parent) {
56103
56085
  scrollParents.push(parent);
56104
56086
  parent = parent.parentElement;
@@ -60628,7 +60610,8 @@ const genBaseStyle$1 = (prefixCls, token) => {
60628
60610
  };
60629
60611
  };
60630
60612
  // ============================== Merged ==============================
60631
- const genTreeStyle = (prefixCls, token) => {
60613
+ const genTreeStyle = function (prefixCls, token) {
60614
+ let enableDirectory = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
60632
60615
  const treeCls = `.${prefixCls}`;
60633
60616
  const treeNodeCls = `${treeCls}-treenode`;
60634
60617
  const treeNodePadding = token.calc(token.paddingXS).div(2).equal();
@@ -60641,7 +60624,7 @@ const genTreeStyle = (prefixCls, token) => {
60641
60624
  // Basic
60642
60625
  genBaseStyle$1(prefixCls, treeToken),
60643
60626
  // Directory
60644
- genDirectoryStyle(treeToken)];
60627
+ enableDirectory && genDirectoryStyle(treeToken)].filter(Boolean);
60645
60628
  };
60646
60629
  const initComponentToken = token => {
60647
60630
  const {
@@ -60678,7 +60661,7 @@ var useStyle$2 = genStyleHooks('Tree', (token, _ref) => {
60678
60661
  }, genTreeStyle(prefixCls, token), genCollapseMotion(token)];
60679
60662
  }, prepareComponentToken$2);
60680
60663
 
60681
- const offset = 4;
60664
+ const offset$2 = 4;
60682
60665
  function dropIndicatorRender(props) {
60683
60666
  const {
60684
60667
  dropPosition,
@@ -60690,7 +60673,7 @@ function dropIndicatorRender(props) {
60690
60673
  const startPosition = direction === 'ltr' ? 'left' : 'right';
60691
60674
  const endPosition = direction === 'ltr' ? 'right' : 'left';
60692
60675
  const style = {
60693
- [startPosition]: -dropLevelOffset * indent + offset,
60676
+ [startPosition]: -dropLevelOffset * indent + offset$2,
60694
60677
  [endPosition]: 0
60695
60678
  };
60696
60679
  switch (dropPosition) {
@@ -60703,7 +60686,7 @@ function dropIndicatorRender(props) {
60703
60686
  default:
60704
60687
  // dropPosition === 0
60705
60688
  style.bottom = -3;
60706
- style[startPosition] = indent + offset;
60689
+ style[startPosition] = indent + offset$2;
60707
60690
  break;
60708
60691
  }
60709
60692
  return /*#__PURE__*/React__default.createElement("div", {
@@ -61330,7 +61313,7 @@ const FilterDropdown = props => {
61330
61313
  if (mergedKeys === null && (!filterState || !filterState.filteredKeys)) {
61331
61314
  return null;
61332
61315
  }
61333
- if (isEqual(mergedKeys, filterState === null || filterState === void 0 ? void 0 : filterState.filteredKeys, true)) {
61316
+ if (isEqual$1(mergedKeys, filterState === null || filterState === void 0 ? void 0 : filterState.filteredKeys, true)) {
61334
61317
  return null;
61335
61318
  }
61336
61319
  triggerFilter({
@@ -61536,7 +61519,7 @@ const FilterDropdown = props => {
61536
61519
  };
61537
61520
  const getResetDisabled = () => {
61538
61521
  if (filterResetToDefaultFilteredValue) {
61539
- return isEqual((defaultFilteredValue || []).map(key => String(key)), selectedKeys, true);
61522
+ return isEqual$1((defaultFilteredValue || []).map(key => String(key)), selectedKeys, true);
61540
61523
  }
61541
61524
  return selectedKeys.length === 0;
61542
61525
  };
@@ -63289,7 +63272,7 @@ const genStickyStyle = token => {
63289
63272
  height: tableScrollThumbSize,
63290
63273
  backgroundColor: tableScrollThumbBg,
63291
63274
  borderRadius: stickyScrollBarBorderRadius,
63292
- transition: `all ${token.motionDurationSlow}, transform none`,
63275
+ transition: `all ${token.motionDurationSlow}, transform 0s`,
63293
63276
  position: 'absolute',
63294
63277
  bottom: 0,
63295
63278
  '&:hover, &-active': {
@@ -65130,6 +65113,2053 @@ const FISBadge = ({ className, icon, label, size = "sm", color, status, type = "
65130
65113
  };
65131
65114
  FISBadge.displayName = "FISBadge";
65132
65115
 
65116
+ /**
65117
+ * Simple ponyfill for Object.fromEntries
65118
+ */
65119
+
65120
+ var fromEntries = function fromEntries(entries) {
65121
+ return entries.reduce(function (acc, _ref) {
65122
+ var key = _ref[0],
65123
+ value = _ref[1];
65124
+ acc[key] = value;
65125
+ return acc;
65126
+ }, {});
65127
+ };
65128
+ /**
65129
+ * Small wrapper around `useLayoutEffect` to get rid of the warning on SSR envs
65130
+ */
65131
+
65132
+ var useIsomorphicLayoutEffect = typeof window !== 'undefined' && window.document && window.document.createElement ? React.useLayoutEffect : React.useEffect;
65133
+
65134
+ var top = 'top';
65135
+ var bottom = 'bottom';
65136
+ var right = 'right';
65137
+ var left = 'left';
65138
+ var auto = 'auto';
65139
+ var basePlacements = [top, bottom, right, left];
65140
+ var start = 'start';
65141
+ var end = 'end';
65142
+ var clippingParents = 'clippingParents';
65143
+ var viewport = 'viewport';
65144
+ var popper = 'popper';
65145
+ var reference = 'reference';
65146
+ var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {
65147
+ return acc.concat([placement + "-" + start, placement + "-" + end]);
65148
+ }, []);
65149
+ var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {
65150
+ return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
65151
+ }, []); // modifiers that need to read the DOM
65152
+
65153
+ var beforeRead = 'beforeRead';
65154
+ var read = 'read';
65155
+ var afterRead = 'afterRead'; // pure-logic modifiers
65156
+
65157
+ var beforeMain = 'beforeMain';
65158
+ var main = 'main';
65159
+ var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)
65160
+
65161
+ var beforeWrite = 'beforeWrite';
65162
+ var write = 'write';
65163
+ var afterWrite = 'afterWrite';
65164
+ var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
65165
+
65166
+ function getNodeName(element) {
65167
+ return element ? (element.nodeName || '').toLowerCase() : null;
65168
+ }
65169
+
65170
+ function getWindow(node) {
65171
+ if (node == null) {
65172
+ return window;
65173
+ }
65174
+
65175
+ if (node.toString() !== '[object Window]') {
65176
+ var ownerDocument = node.ownerDocument;
65177
+ return ownerDocument ? ownerDocument.defaultView || window : window;
65178
+ }
65179
+
65180
+ return node;
65181
+ }
65182
+
65183
+ function isElement(node) {
65184
+ var OwnElement = getWindow(node).Element;
65185
+ return node instanceof OwnElement || node instanceof Element;
65186
+ }
65187
+
65188
+ function isHTMLElement(node) {
65189
+ var OwnElement = getWindow(node).HTMLElement;
65190
+ return node instanceof OwnElement || node instanceof HTMLElement;
65191
+ }
65192
+
65193
+ function isShadowRoot(node) {
65194
+ // IE 11 has no ShadowRoot
65195
+ if (typeof ShadowRoot === 'undefined') {
65196
+ return false;
65197
+ }
65198
+
65199
+ var OwnElement = getWindow(node).ShadowRoot;
65200
+ return node instanceof OwnElement || node instanceof ShadowRoot;
65201
+ }
65202
+
65203
+ // and applies them to the HTMLElements such as popper and arrow
65204
+
65205
+ function applyStyles(_ref) {
65206
+ var state = _ref.state;
65207
+ Object.keys(state.elements).forEach(function (name) {
65208
+ var style = state.styles[name] || {};
65209
+ var attributes = state.attributes[name] || {};
65210
+ var element = state.elements[name]; // arrow is optional + virtual elements
65211
+
65212
+ if (!isHTMLElement(element) || !getNodeName(element)) {
65213
+ return;
65214
+ } // Flow doesn't support to extend this property, but it's the most
65215
+ // effective way to apply styles to an HTMLElement
65216
+ // $FlowFixMe[cannot-write]
65217
+
65218
+
65219
+ Object.assign(element.style, style);
65220
+ Object.keys(attributes).forEach(function (name) {
65221
+ var value = attributes[name];
65222
+
65223
+ if (value === false) {
65224
+ element.removeAttribute(name);
65225
+ } else {
65226
+ element.setAttribute(name, value === true ? '' : value);
65227
+ }
65228
+ });
65229
+ });
65230
+ }
65231
+
65232
+ function effect$2(_ref2) {
65233
+ var state = _ref2.state;
65234
+ var initialStyles = {
65235
+ popper: {
65236
+ position: state.options.strategy,
65237
+ left: '0',
65238
+ top: '0',
65239
+ margin: '0'
65240
+ },
65241
+ arrow: {
65242
+ position: 'absolute'
65243
+ },
65244
+ reference: {}
65245
+ };
65246
+ Object.assign(state.elements.popper.style, initialStyles.popper);
65247
+ state.styles = initialStyles;
65248
+
65249
+ if (state.elements.arrow) {
65250
+ Object.assign(state.elements.arrow.style, initialStyles.arrow);
65251
+ }
65252
+
65253
+ return function () {
65254
+ Object.keys(state.elements).forEach(function (name) {
65255
+ var element = state.elements[name];
65256
+ var attributes = state.attributes[name] || {};
65257
+ var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them
65258
+
65259
+ var style = styleProperties.reduce(function (style, property) {
65260
+ style[property] = '';
65261
+ return style;
65262
+ }, {}); // arrow is optional + virtual elements
65263
+
65264
+ if (!isHTMLElement(element) || !getNodeName(element)) {
65265
+ return;
65266
+ }
65267
+
65268
+ Object.assign(element.style, style);
65269
+ Object.keys(attributes).forEach(function (attribute) {
65270
+ element.removeAttribute(attribute);
65271
+ });
65272
+ });
65273
+ };
65274
+ } // eslint-disable-next-line import/no-unused-modules
65275
+
65276
+
65277
+ var applyStyles$1 = {
65278
+ name: 'applyStyles',
65279
+ enabled: true,
65280
+ phase: 'write',
65281
+ fn: applyStyles,
65282
+ effect: effect$2,
65283
+ requires: ['computeStyles']
65284
+ };
65285
+
65286
+ function getBasePlacement(placement) {
65287
+ return placement.split('-')[0];
65288
+ }
65289
+
65290
+ var max = Math.max;
65291
+ var min = Math.min;
65292
+ var round = Math.round;
65293
+
65294
+ function getUAString() {
65295
+ var uaData = navigator.userAgentData;
65296
+
65297
+ if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {
65298
+ return uaData.brands.map(function (item) {
65299
+ return item.brand + "/" + item.version;
65300
+ }).join(' ');
65301
+ }
65302
+
65303
+ return navigator.userAgent;
65304
+ }
65305
+
65306
+ function isLayoutViewport() {
65307
+ return !/^((?!chrome|android).)*safari/i.test(getUAString());
65308
+ }
65309
+
65310
+ function getBoundingClientRect(element, includeScale, isFixedStrategy) {
65311
+ if (includeScale === void 0) {
65312
+ includeScale = false;
65313
+ }
65314
+
65315
+ if (isFixedStrategy === void 0) {
65316
+ isFixedStrategy = false;
65317
+ }
65318
+
65319
+ var clientRect = element.getBoundingClientRect();
65320
+ var scaleX = 1;
65321
+ var scaleY = 1;
65322
+
65323
+ if (includeScale && isHTMLElement(element)) {
65324
+ scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
65325
+ scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
65326
+ }
65327
+
65328
+ var _ref = isElement(element) ? getWindow(element) : window,
65329
+ visualViewport = _ref.visualViewport;
65330
+
65331
+ var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
65332
+ var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
65333
+ var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
65334
+ var width = clientRect.width / scaleX;
65335
+ var height = clientRect.height / scaleY;
65336
+ return {
65337
+ width: width,
65338
+ height: height,
65339
+ top: y,
65340
+ right: x + width,
65341
+ bottom: y + height,
65342
+ left: x,
65343
+ x: x,
65344
+ y: y
65345
+ };
65346
+ }
65347
+
65348
+ // means it doesn't take into account transforms.
65349
+
65350
+ function getLayoutRect(element) {
65351
+ var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
65352
+ // Fixes https://github.com/popperjs/popper-core/issues/1223
65353
+
65354
+ var width = element.offsetWidth;
65355
+ var height = element.offsetHeight;
65356
+
65357
+ if (Math.abs(clientRect.width - width) <= 1) {
65358
+ width = clientRect.width;
65359
+ }
65360
+
65361
+ if (Math.abs(clientRect.height - height) <= 1) {
65362
+ height = clientRect.height;
65363
+ }
65364
+
65365
+ return {
65366
+ x: element.offsetLeft,
65367
+ y: element.offsetTop,
65368
+ width: width,
65369
+ height: height
65370
+ };
65371
+ }
65372
+
65373
+ function contains(parent, child) {
65374
+ var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
65375
+
65376
+ if (parent.contains(child)) {
65377
+ return true;
65378
+ } // then fallback to custom implementation with Shadow DOM support
65379
+ else if (rootNode && isShadowRoot(rootNode)) {
65380
+ var next = child;
65381
+
65382
+ do {
65383
+ if (next && parent.isSameNode(next)) {
65384
+ return true;
65385
+ } // $FlowFixMe[prop-missing]: need a better way to handle this...
65386
+
65387
+
65388
+ next = next.parentNode || next.host;
65389
+ } while (next);
65390
+ } // Give up, the result is false
65391
+
65392
+
65393
+ return false;
65394
+ }
65395
+
65396
+ function getComputedStyle$1(element) {
65397
+ return getWindow(element).getComputedStyle(element);
65398
+ }
65399
+
65400
+ function isTableElement(element) {
65401
+ return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;
65402
+ }
65403
+
65404
+ function getDocumentElement(element) {
65405
+ // $FlowFixMe[incompatible-return]: assume body is always available
65406
+ return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
65407
+ element.document) || window.document).documentElement;
65408
+ }
65409
+
65410
+ function getParentNode(element) {
65411
+ if (getNodeName(element) === 'html') {
65412
+ return element;
65413
+ }
65414
+
65415
+ return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
65416
+ // $FlowFixMe[incompatible-return]
65417
+ // $FlowFixMe[prop-missing]
65418
+ element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
65419
+ element.parentNode || ( // DOM Element detected
65420
+ isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
65421
+ // $FlowFixMe[incompatible-call]: HTMLElement is a Node
65422
+ getDocumentElement(element) // fallback
65423
+
65424
+ );
65425
+ }
65426
+
65427
+ function getTrueOffsetParent(element) {
65428
+ if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
65429
+ getComputedStyle$1(element).position === 'fixed') {
65430
+ return null;
65431
+ }
65432
+
65433
+ return element.offsetParent;
65434
+ } // `.offsetParent` reports `null` for fixed elements, while absolute elements
65435
+ // return the containing block
65436
+
65437
+
65438
+ function getContainingBlock(element) {
65439
+ var isFirefox = /firefox/i.test(getUAString());
65440
+ var isIE = /Trident/i.test(getUAString());
65441
+
65442
+ if (isIE && isHTMLElement(element)) {
65443
+ // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
65444
+ var elementCss = getComputedStyle$1(element);
65445
+
65446
+ if (elementCss.position === 'fixed') {
65447
+ return null;
65448
+ }
65449
+ }
65450
+
65451
+ var currentNode = getParentNode(element);
65452
+
65453
+ if (isShadowRoot(currentNode)) {
65454
+ currentNode = currentNode.host;
65455
+ }
65456
+
65457
+ while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
65458
+ var css = getComputedStyle$1(currentNode); // This is non-exhaustive but covers the most common CSS properties that
65459
+ // create a containing block.
65460
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
65461
+
65462
+ if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {
65463
+ return currentNode;
65464
+ } else {
65465
+ currentNode = currentNode.parentNode;
65466
+ }
65467
+ }
65468
+
65469
+ return null;
65470
+ } // Gets the closest ancestor positioned element. Handles some edge cases,
65471
+ // such as table ancestors and cross browser bugs.
65472
+
65473
+
65474
+ function getOffsetParent(element) {
65475
+ var window = getWindow(element);
65476
+ var offsetParent = getTrueOffsetParent(element);
65477
+
65478
+ while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {
65479
+ offsetParent = getTrueOffsetParent(offsetParent);
65480
+ }
65481
+
65482
+ if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static')) {
65483
+ return window;
65484
+ }
65485
+
65486
+ return offsetParent || getContainingBlock(element) || window;
65487
+ }
65488
+
65489
+ function getMainAxisFromPlacement(placement) {
65490
+ return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
65491
+ }
65492
+
65493
+ function within(min$1, value, max$1) {
65494
+ return max(min$1, min(value, max$1));
65495
+ }
65496
+ function withinMaxClamp(min, value, max) {
65497
+ var v = within(min, value, max);
65498
+ return v > max ? max : v;
65499
+ }
65500
+
65501
+ function getFreshSideObject() {
65502
+ return {
65503
+ top: 0,
65504
+ right: 0,
65505
+ bottom: 0,
65506
+ left: 0
65507
+ };
65508
+ }
65509
+
65510
+ function mergePaddingObject(paddingObject) {
65511
+ return Object.assign({}, getFreshSideObject(), paddingObject);
65512
+ }
65513
+
65514
+ function expandToHashMap(value, keys) {
65515
+ return keys.reduce(function (hashMap, key) {
65516
+ hashMap[key] = value;
65517
+ return hashMap;
65518
+ }, {});
65519
+ }
65520
+
65521
+ var toPaddingObject = function toPaddingObject(padding, state) {
65522
+ padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
65523
+ placement: state.placement
65524
+ })) : padding;
65525
+ return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
65526
+ };
65527
+
65528
+ function arrow(_ref) {
65529
+ var _state$modifiersData$;
65530
+
65531
+ var state = _ref.state,
65532
+ name = _ref.name,
65533
+ options = _ref.options;
65534
+ var arrowElement = state.elements.arrow;
65535
+ var popperOffsets = state.modifiersData.popperOffsets;
65536
+ var basePlacement = getBasePlacement(state.placement);
65537
+ var axis = getMainAxisFromPlacement(basePlacement);
65538
+ var isVertical = [left, right].indexOf(basePlacement) >= 0;
65539
+ var len = isVertical ? 'height' : 'width';
65540
+
65541
+ if (!arrowElement || !popperOffsets) {
65542
+ return;
65543
+ }
65544
+
65545
+ var paddingObject = toPaddingObject(options.padding, state);
65546
+ var arrowRect = getLayoutRect(arrowElement);
65547
+ var minProp = axis === 'y' ? top : left;
65548
+ var maxProp = axis === 'y' ? bottom : right;
65549
+ var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];
65550
+ var startDiff = popperOffsets[axis] - state.rects.reference[axis];
65551
+ var arrowOffsetParent = getOffsetParent(arrowElement);
65552
+ var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
65553
+ var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is
65554
+ // outside of the popper bounds
65555
+
65556
+ var min = paddingObject[minProp];
65557
+ var max = clientSize - arrowRect[len] - paddingObject[maxProp];
65558
+ var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;
65559
+ var offset = within(min, center, max); // Prevents breaking syntax highlighting...
65560
+
65561
+ var axisProp = axis;
65562
+ state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
65563
+ }
65564
+
65565
+ function effect$1(_ref2) {
65566
+ var state = _ref2.state,
65567
+ options = _ref2.options;
65568
+ var _options$element = options.element,
65569
+ arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
65570
+
65571
+ if (arrowElement == null) {
65572
+ return;
65573
+ } // CSS selector
65574
+
65575
+
65576
+ if (typeof arrowElement === 'string') {
65577
+ arrowElement = state.elements.popper.querySelector(arrowElement);
65578
+
65579
+ if (!arrowElement) {
65580
+ return;
65581
+ }
65582
+ }
65583
+
65584
+ if (!contains(state.elements.popper, arrowElement)) {
65585
+ return;
65586
+ }
65587
+
65588
+ state.elements.arrow = arrowElement;
65589
+ } // eslint-disable-next-line import/no-unused-modules
65590
+
65591
+
65592
+ var arrow$1 = {
65593
+ name: 'arrow',
65594
+ enabled: true,
65595
+ phase: 'main',
65596
+ fn: arrow,
65597
+ effect: effect$1,
65598
+ requires: ['popperOffsets'],
65599
+ requiresIfExists: ['preventOverflow']
65600
+ };
65601
+
65602
+ function getVariation(placement) {
65603
+ return placement.split('-')[1];
65604
+ }
65605
+
65606
+ var unsetSides = {
65607
+ top: 'auto',
65608
+ right: 'auto',
65609
+ bottom: 'auto',
65610
+ left: 'auto'
65611
+ }; // Round the offsets to the nearest suitable subpixel based on the DPR.
65612
+ // Zooming can change the DPR, but it seems to report a value that will
65613
+ // cleanly divide the values into the appropriate subpixels.
65614
+
65615
+ function roundOffsetsByDPR(_ref, win) {
65616
+ var x = _ref.x,
65617
+ y = _ref.y;
65618
+ var dpr = win.devicePixelRatio || 1;
65619
+ return {
65620
+ x: round(x * dpr) / dpr || 0,
65621
+ y: round(y * dpr) / dpr || 0
65622
+ };
65623
+ }
65624
+
65625
+ function mapToStyles(_ref2) {
65626
+ var _Object$assign2;
65627
+
65628
+ var popper = _ref2.popper,
65629
+ popperRect = _ref2.popperRect,
65630
+ placement = _ref2.placement,
65631
+ variation = _ref2.variation,
65632
+ offsets = _ref2.offsets,
65633
+ position = _ref2.position,
65634
+ gpuAcceleration = _ref2.gpuAcceleration,
65635
+ adaptive = _ref2.adaptive,
65636
+ roundOffsets = _ref2.roundOffsets,
65637
+ isFixed = _ref2.isFixed;
65638
+ var _offsets$x = offsets.x,
65639
+ x = _offsets$x === void 0 ? 0 : _offsets$x,
65640
+ _offsets$y = offsets.y,
65641
+ y = _offsets$y === void 0 ? 0 : _offsets$y;
65642
+
65643
+ var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({
65644
+ x: x,
65645
+ y: y
65646
+ }) : {
65647
+ x: x,
65648
+ y: y
65649
+ };
65650
+
65651
+ x = _ref3.x;
65652
+ y = _ref3.y;
65653
+ var hasX = offsets.hasOwnProperty('x');
65654
+ var hasY = offsets.hasOwnProperty('y');
65655
+ var sideX = left;
65656
+ var sideY = top;
65657
+ var win = window;
65658
+
65659
+ if (adaptive) {
65660
+ var offsetParent = getOffsetParent(popper);
65661
+ var heightProp = 'clientHeight';
65662
+ var widthProp = 'clientWidth';
65663
+
65664
+ if (offsetParent === getWindow(popper)) {
65665
+ offsetParent = getDocumentElement(popper);
65666
+
65667
+ if (getComputedStyle$1(offsetParent).position !== 'static' && position === 'absolute') {
65668
+ heightProp = 'scrollHeight';
65669
+ widthProp = 'scrollWidth';
65670
+ }
65671
+ } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
65672
+
65673
+
65674
+ offsetParent = offsetParent;
65675
+
65676
+ if (placement === top || (placement === left || placement === right) && variation === end) {
65677
+ sideY = bottom;
65678
+ var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]
65679
+ offsetParent[heightProp];
65680
+ y -= offsetY - popperRect.height;
65681
+ y *= gpuAcceleration ? 1 : -1;
65682
+ }
65683
+
65684
+ if (placement === left || (placement === top || placement === bottom) && variation === end) {
65685
+ sideX = right;
65686
+ var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]
65687
+ offsetParent[widthProp];
65688
+ x -= offsetX - popperRect.width;
65689
+ x *= gpuAcceleration ? 1 : -1;
65690
+ }
65691
+ }
65692
+
65693
+ var commonStyles = Object.assign({
65694
+ position: position
65695
+ }, adaptive && unsetSides);
65696
+
65697
+ var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
65698
+ x: x,
65699
+ y: y
65700
+ }, getWindow(popper)) : {
65701
+ x: x,
65702
+ y: y
65703
+ };
65704
+
65705
+ x = _ref4.x;
65706
+ y = _ref4.y;
65707
+
65708
+ if (gpuAcceleration) {
65709
+ var _Object$assign;
65710
+
65711
+ return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
65712
+ }
65713
+
65714
+ return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
65715
+ }
65716
+
65717
+ function computeStyles(_ref5) {
65718
+ var state = _ref5.state,
65719
+ options = _ref5.options;
65720
+ var _options$gpuAccelerat = options.gpuAcceleration,
65721
+ gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
65722
+ _options$adaptive = options.adaptive,
65723
+ adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
65724
+ _options$roundOffsets = options.roundOffsets,
65725
+ roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
65726
+ var commonStyles = {
65727
+ placement: getBasePlacement(state.placement),
65728
+ variation: getVariation(state.placement),
65729
+ popper: state.elements.popper,
65730
+ popperRect: state.rects.popper,
65731
+ gpuAcceleration: gpuAcceleration,
65732
+ isFixed: state.options.strategy === 'fixed'
65733
+ };
65734
+
65735
+ if (state.modifiersData.popperOffsets != null) {
65736
+ state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
65737
+ offsets: state.modifiersData.popperOffsets,
65738
+ position: state.options.strategy,
65739
+ adaptive: adaptive,
65740
+ roundOffsets: roundOffsets
65741
+ })));
65742
+ }
65743
+
65744
+ if (state.modifiersData.arrow != null) {
65745
+ state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
65746
+ offsets: state.modifiersData.arrow,
65747
+ position: 'absolute',
65748
+ adaptive: false,
65749
+ roundOffsets: roundOffsets
65750
+ })));
65751
+ }
65752
+
65753
+ state.attributes.popper = Object.assign({}, state.attributes.popper, {
65754
+ 'data-popper-placement': state.placement
65755
+ });
65756
+ } // eslint-disable-next-line import/no-unused-modules
65757
+
65758
+
65759
+ var computeStyles$1 = {
65760
+ name: 'computeStyles',
65761
+ enabled: true,
65762
+ phase: 'beforeWrite',
65763
+ fn: computeStyles,
65764
+ data: {}
65765
+ };
65766
+
65767
+ var passive = {
65768
+ passive: true
65769
+ };
65770
+
65771
+ function effect(_ref) {
65772
+ var state = _ref.state,
65773
+ instance = _ref.instance,
65774
+ options = _ref.options;
65775
+ var _options$scroll = options.scroll,
65776
+ scroll = _options$scroll === void 0 ? true : _options$scroll,
65777
+ _options$resize = options.resize,
65778
+ resize = _options$resize === void 0 ? true : _options$resize;
65779
+ var window = getWindow(state.elements.popper);
65780
+ var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
65781
+
65782
+ if (scroll) {
65783
+ scrollParents.forEach(function (scrollParent) {
65784
+ scrollParent.addEventListener('scroll', instance.update, passive);
65785
+ });
65786
+ }
65787
+
65788
+ if (resize) {
65789
+ window.addEventListener('resize', instance.update, passive);
65790
+ }
65791
+
65792
+ return function () {
65793
+ if (scroll) {
65794
+ scrollParents.forEach(function (scrollParent) {
65795
+ scrollParent.removeEventListener('scroll', instance.update, passive);
65796
+ });
65797
+ }
65798
+
65799
+ if (resize) {
65800
+ window.removeEventListener('resize', instance.update, passive);
65801
+ }
65802
+ };
65803
+ } // eslint-disable-next-line import/no-unused-modules
65804
+
65805
+
65806
+ var eventListeners = {
65807
+ name: 'eventListeners',
65808
+ enabled: true,
65809
+ phase: 'write',
65810
+ fn: function fn() {},
65811
+ effect: effect,
65812
+ data: {}
65813
+ };
65814
+
65815
+ var hash$1 = {
65816
+ left: 'right',
65817
+ right: 'left',
65818
+ bottom: 'top',
65819
+ top: 'bottom'
65820
+ };
65821
+ function getOppositePlacement(placement) {
65822
+ return placement.replace(/left|right|bottom|top/g, function (matched) {
65823
+ return hash$1[matched];
65824
+ });
65825
+ }
65826
+
65827
+ var hash = {
65828
+ start: 'end',
65829
+ end: 'start'
65830
+ };
65831
+ function getOppositeVariationPlacement(placement) {
65832
+ return placement.replace(/start|end/g, function (matched) {
65833
+ return hash[matched];
65834
+ });
65835
+ }
65836
+
65837
+ function getWindowScroll(node) {
65838
+ var win = getWindow(node);
65839
+ var scrollLeft = win.pageXOffset;
65840
+ var scrollTop = win.pageYOffset;
65841
+ return {
65842
+ scrollLeft: scrollLeft,
65843
+ scrollTop: scrollTop
65844
+ };
65845
+ }
65846
+
65847
+ function getWindowScrollBarX(element) {
65848
+ // If <html> has a CSS width greater than the viewport, then this will be
65849
+ // incorrect for RTL.
65850
+ // Popper 1 is broken in this case and never had a bug report so let's assume
65851
+ // it's not an issue. I don't think anyone ever specifies width on <html>
65852
+ // anyway.
65853
+ // Browsers where the left scrollbar doesn't cause an issue report `0` for
65854
+ // this (e.g. Edge 2019, IE11, Safari)
65855
+ return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
65856
+ }
65857
+
65858
+ function getViewportRect(element, strategy) {
65859
+ var win = getWindow(element);
65860
+ var html = getDocumentElement(element);
65861
+ var visualViewport = win.visualViewport;
65862
+ var width = html.clientWidth;
65863
+ var height = html.clientHeight;
65864
+ var x = 0;
65865
+ var y = 0;
65866
+
65867
+ if (visualViewport) {
65868
+ width = visualViewport.width;
65869
+ height = visualViewport.height;
65870
+ var layoutViewport = isLayoutViewport();
65871
+
65872
+ if (layoutViewport || !layoutViewport && strategy === 'fixed') {
65873
+ x = visualViewport.offsetLeft;
65874
+ y = visualViewport.offsetTop;
65875
+ }
65876
+ }
65877
+
65878
+ return {
65879
+ width: width,
65880
+ height: height,
65881
+ x: x + getWindowScrollBarX(element),
65882
+ y: y
65883
+ };
65884
+ }
65885
+
65886
+ // of the `<html>` and `<body>` rect bounds if horizontally scrollable
65887
+
65888
+ function getDocumentRect(element) {
65889
+ var _element$ownerDocumen;
65890
+
65891
+ var html = getDocumentElement(element);
65892
+ var winScroll = getWindowScroll(element);
65893
+ var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
65894
+ var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
65895
+ var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
65896
+ var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
65897
+ var y = -winScroll.scrollTop;
65898
+
65899
+ if (getComputedStyle$1(body || html).direction === 'rtl') {
65900
+ x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
65901
+ }
65902
+
65903
+ return {
65904
+ width: width,
65905
+ height: height,
65906
+ x: x,
65907
+ y: y
65908
+ };
65909
+ }
65910
+
65911
+ function isScrollParent(element) {
65912
+ // Firefox wants us to check `-x` and `-y` variations as well
65913
+ var _getComputedStyle = getComputedStyle$1(element),
65914
+ overflow = _getComputedStyle.overflow,
65915
+ overflowX = _getComputedStyle.overflowX,
65916
+ overflowY = _getComputedStyle.overflowY;
65917
+
65918
+ return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
65919
+ }
65920
+
65921
+ function getScrollParent(node) {
65922
+ if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
65923
+ // $FlowFixMe[incompatible-return]: assume body is always available
65924
+ return node.ownerDocument.body;
65925
+ }
65926
+
65927
+ if (isHTMLElement(node) && isScrollParent(node)) {
65928
+ return node;
65929
+ }
65930
+
65931
+ return getScrollParent(getParentNode(node));
65932
+ }
65933
+
65934
+ /*
65935
+ given a DOM element, return the list of all scroll parents, up the list of ancesors
65936
+ until we get to the top window object. This list is what we attach scroll listeners
65937
+ to, because if any of these parent elements scroll, we'll need to re-calculate the
65938
+ reference element's position.
65939
+ */
65940
+
65941
+ function listScrollParents(element, list) {
65942
+ var _element$ownerDocumen;
65943
+
65944
+ if (list === void 0) {
65945
+ list = [];
65946
+ }
65947
+
65948
+ var scrollParent = getScrollParent(element);
65949
+ var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
65950
+ var win = getWindow(scrollParent);
65951
+ var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
65952
+ var updatedList = list.concat(target);
65953
+ return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
65954
+ updatedList.concat(listScrollParents(getParentNode(target)));
65955
+ }
65956
+
65957
+ function rectToClientRect(rect) {
65958
+ return Object.assign({}, rect, {
65959
+ left: rect.x,
65960
+ top: rect.y,
65961
+ right: rect.x + rect.width,
65962
+ bottom: rect.y + rect.height
65963
+ });
65964
+ }
65965
+
65966
+ function getInnerBoundingClientRect(element, strategy) {
65967
+ var rect = getBoundingClientRect(element, false, strategy === 'fixed');
65968
+ rect.top = rect.top + element.clientTop;
65969
+ rect.left = rect.left + element.clientLeft;
65970
+ rect.bottom = rect.top + element.clientHeight;
65971
+ rect.right = rect.left + element.clientWidth;
65972
+ rect.width = element.clientWidth;
65973
+ rect.height = element.clientHeight;
65974
+ rect.x = rect.left;
65975
+ rect.y = rect.top;
65976
+ return rect;
65977
+ }
65978
+
65979
+ function getClientRectFromMixedType(element, clippingParent, strategy) {
65980
+ return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
65981
+ } // A "clipping parent" is an overflowable container with the characteristic of
65982
+ // clipping (or hiding) overflowing elements with a position different from
65983
+ // `initial`
65984
+
65985
+
65986
+ function getClippingParents(element) {
65987
+ var clippingParents = listScrollParents(getParentNode(element));
65988
+ var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$1(element).position) >= 0;
65989
+ var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
65990
+
65991
+ if (!isElement(clipperElement)) {
65992
+ return [];
65993
+ } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
65994
+
65995
+
65996
+ return clippingParents.filter(function (clippingParent) {
65997
+ return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
65998
+ });
65999
+ } // Gets the maximum area that the element is visible in due to any number of
66000
+ // clipping parents
66001
+
66002
+
66003
+ function getClippingRect(element, boundary, rootBoundary, strategy) {
66004
+ var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
66005
+ var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
66006
+ var firstClippingParent = clippingParents[0];
66007
+ var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
66008
+ var rect = getClientRectFromMixedType(element, clippingParent, strategy);
66009
+ accRect.top = max(rect.top, accRect.top);
66010
+ accRect.right = min(rect.right, accRect.right);
66011
+ accRect.bottom = min(rect.bottom, accRect.bottom);
66012
+ accRect.left = max(rect.left, accRect.left);
66013
+ return accRect;
66014
+ }, getClientRectFromMixedType(element, firstClippingParent, strategy));
66015
+ clippingRect.width = clippingRect.right - clippingRect.left;
66016
+ clippingRect.height = clippingRect.bottom - clippingRect.top;
66017
+ clippingRect.x = clippingRect.left;
66018
+ clippingRect.y = clippingRect.top;
66019
+ return clippingRect;
66020
+ }
66021
+
66022
+ function computeOffsets(_ref) {
66023
+ var reference = _ref.reference,
66024
+ element = _ref.element,
66025
+ placement = _ref.placement;
66026
+ var basePlacement = placement ? getBasePlacement(placement) : null;
66027
+ var variation = placement ? getVariation(placement) : null;
66028
+ var commonX = reference.x + reference.width / 2 - element.width / 2;
66029
+ var commonY = reference.y + reference.height / 2 - element.height / 2;
66030
+ var offsets;
66031
+
66032
+ switch (basePlacement) {
66033
+ case top:
66034
+ offsets = {
66035
+ x: commonX,
66036
+ y: reference.y - element.height
66037
+ };
66038
+ break;
66039
+
66040
+ case bottom:
66041
+ offsets = {
66042
+ x: commonX,
66043
+ y: reference.y + reference.height
66044
+ };
66045
+ break;
66046
+
66047
+ case right:
66048
+ offsets = {
66049
+ x: reference.x + reference.width,
66050
+ y: commonY
66051
+ };
66052
+ break;
66053
+
66054
+ case left:
66055
+ offsets = {
66056
+ x: reference.x - element.width,
66057
+ y: commonY
66058
+ };
66059
+ break;
66060
+
66061
+ default:
66062
+ offsets = {
66063
+ x: reference.x,
66064
+ y: reference.y
66065
+ };
66066
+ }
66067
+
66068
+ var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;
66069
+
66070
+ if (mainAxis != null) {
66071
+ var len = mainAxis === 'y' ? 'height' : 'width';
66072
+
66073
+ switch (variation) {
66074
+ case start:
66075
+ offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
66076
+ break;
66077
+
66078
+ case end:
66079
+ offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
66080
+ break;
66081
+ }
66082
+ }
66083
+
66084
+ return offsets;
66085
+ }
66086
+
66087
+ function detectOverflow(state, options) {
66088
+ if (options === void 0) {
66089
+ options = {};
66090
+ }
66091
+
66092
+ var _options = options,
66093
+ _options$placement = _options.placement,
66094
+ placement = _options$placement === void 0 ? state.placement : _options$placement,
66095
+ _options$strategy = _options.strategy,
66096
+ strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,
66097
+ _options$boundary = _options.boundary,
66098
+ boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,
66099
+ _options$rootBoundary = _options.rootBoundary,
66100
+ rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,
66101
+ _options$elementConte = _options.elementContext,
66102
+ elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,
66103
+ _options$altBoundary = _options.altBoundary,
66104
+ altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,
66105
+ _options$padding = _options.padding,
66106
+ padding = _options$padding === void 0 ? 0 : _options$padding;
66107
+ var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
66108
+ var altContext = elementContext === popper ? reference : popper;
66109
+ var popperRect = state.rects.popper;
66110
+ var element = state.elements[altBoundary ? altContext : elementContext];
66111
+ var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);
66112
+ var referenceClientRect = getBoundingClientRect(state.elements.reference);
66113
+ var popperOffsets = computeOffsets({
66114
+ reference: referenceClientRect,
66115
+ element: popperRect,
66116
+ placement: placement
66117
+ });
66118
+ var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
66119
+ var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
66120
+ // 0 or negative = within the clipping rect
66121
+
66122
+ var overflowOffsets = {
66123
+ top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
66124
+ bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
66125
+ left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
66126
+ right: elementClientRect.right - clippingClientRect.right + paddingObject.right
66127
+ };
66128
+ var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element
66129
+
66130
+ if (elementContext === popper && offsetData) {
66131
+ var offset = offsetData[placement];
66132
+ Object.keys(overflowOffsets).forEach(function (key) {
66133
+ var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;
66134
+ var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';
66135
+ overflowOffsets[key] += offset[axis] * multiply;
66136
+ });
66137
+ }
66138
+
66139
+ return overflowOffsets;
66140
+ }
66141
+
66142
+ function computeAutoPlacement(state, options) {
66143
+ if (options === void 0) {
66144
+ options = {};
66145
+ }
66146
+
66147
+ var _options = options,
66148
+ placement = _options.placement,
66149
+ boundary = _options.boundary,
66150
+ rootBoundary = _options.rootBoundary,
66151
+ padding = _options.padding,
66152
+ flipVariations = _options.flipVariations,
66153
+ _options$allowedAutoP = _options.allowedAutoPlacements,
66154
+ allowedAutoPlacements = _options$allowedAutoP === void 0 ? placements : _options$allowedAutoP;
66155
+ var variation = getVariation(placement);
66156
+ var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
66157
+ return getVariation(placement) === variation;
66158
+ }) : basePlacements;
66159
+ var allowedPlacements = placements$1.filter(function (placement) {
66160
+ return allowedAutoPlacements.indexOf(placement) >= 0;
66161
+ });
66162
+
66163
+ if (allowedPlacements.length === 0) {
66164
+ allowedPlacements = placements$1;
66165
+ } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
66166
+
66167
+
66168
+ var overflows = allowedPlacements.reduce(function (acc, placement) {
66169
+ acc[placement] = detectOverflow(state, {
66170
+ placement: placement,
66171
+ boundary: boundary,
66172
+ rootBoundary: rootBoundary,
66173
+ padding: padding
66174
+ })[getBasePlacement(placement)];
66175
+ return acc;
66176
+ }, {});
66177
+ return Object.keys(overflows).sort(function (a, b) {
66178
+ return overflows[a] - overflows[b];
66179
+ });
66180
+ }
66181
+
66182
+ function getExpandedFallbackPlacements(placement) {
66183
+ if (getBasePlacement(placement) === auto) {
66184
+ return [];
66185
+ }
66186
+
66187
+ var oppositePlacement = getOppositePlacement(placement);
66188
+ return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];
66189
+ }
66190
+
66191
+ function flip(_ref) {
66192
+ var state = _ref.state,
66193
+ options = _ref.options,
66194
+ name = _ref.name;
66195
+
66196
+ if (state.modifiersData[name]._skip) {
66197
+ return;
66198
+ }
66199
+
66200
+ var _options$mainAxis = options.mainAxis,
66201
+ checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
66202
+ _options$altAxis = options.altAxis,
66203
+ checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,
66204
+ specifiedFallbackPlacements = options.fallbackPlacements,
66205
+ padding = options.padding,
66206
+ boundary = options.boundary,
66207
+ rootBoundary = options.rootBoundary,
66208
+ altBoundary = options.altBoundary,
66209
+ _options$flipVariatio = options.flipVariations,
66210
+ flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,
66211
+ allowedAutoPlacements = options.allowedAutoPlacements;
66212
+ var preferredPlacement = state.options.placement;
66213
+ var basePlacement = getBasePlacement(preferredPlacement);
66214
+ var isBasePlacement = basePlacement === preferredPlacement;
66215
+ var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));
66216
+ var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {
66217
+ return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {
66218
+ placement: placement,
66219
+ boundary: boundary,
66220
+ rootBoundary: rootBoundary,
66221
+ padding: padding,
66222
+ flipVariations: flipVariations,
66223
+ allowedAutoPlacements: allowedAutoPlacements
66224
+ }) : placement);
66225
+ }, []);
66226
+ var referenceRect = state.rects.reference;
66227
+ var popperRect = state.rects.popper;
66228
+ var checksMap = new Map();
66229
+ var makeFallbackChecks = true;
66230
+ var firstFittingPlacement = placements[0];
66231
+
66232
+ for (var i = 0; i < placements.length; i++) {
66233
+ var placement = placements[i];
66234
+
66235
+ var _basePlacement = getBasePlacement(placement);
66236
+
66237
+ var isStartVariation = getVariation(placement) === start;
66238
+ var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;
66239
+ var len = isVertical ? 'width' : 'height';
66240
+ var overflow = detectOverflow(state, {
66241
+ placement: placement,
66242
+ boundary: boundary,
66243
+ rootBoundary: rootBoundary,
66244
+ altBoundary: altBoundary,
66245
+ padding: padding
66246
+ });
66247
+ var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;
66248
+
66249
+ if (referenceRect[len] > popperRect[len]) {
66250
+ mainVariationSide = getOppositePlacement(mainVariationSide);
66251
+ }
66252
+
66253
+ var altVariationSide = getOppositePlacement(mainVariationSide);
66254
+ var checks = [];
66255
+
66256
+ if (checkMainAxis) {
66257
+ checks.push(overflow[_basePlacement] <= 0);
66258
+ }
66259
+
66260
+ if (checkAltAxis) {
66261
+ checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);
66262
+ }
66263
+
66264
+ if (checks.every(function (check) {
66265
+ return check;
66266
+ })) {
66267
+ firstFittingPlacement = placement;
66268
+ makeFallbackChecks = false;
66269
+ break;
66270
+ }
66271
+
66272
+ checksMap.set(placement, checks);
66273
+ }
66274
+
66275
+ if (makeFallbackChecks) {
66276
+ // `2` may be desired in some cases – research later
66277
+ var numberOfChecks = flipVariations ? 3 : 1;
66278
+
66279
+ var _loop = function _loop(_i) {
66280
+ var fittingPlacement = placements.find(function (placement) {
66281
+ var checks = checksMap.get(placement);
66282
+
66283
+ if (checks) {
66284
+ return checks.slice(0, _i).every(function (check) {
66285
+ return check;
66286
+ });
66287
+ }
66288
+ });
66289
+
66290
+ if (fittingPlacement) {
66291
+ firstFittingPlacement = fittingPlacement;
66292
+ return "break";
66293
+ }
66294
+ };
66295
+
66296
+ for (var _i = numberOfChecks; _i > 0; _i--) {
66297
+ var _ret = _loop(_i);
66298
+
66299
+ if (_ret === "break") break;
66300
+ }
66301
+ }
66302
+
66303
+ if (state.placement !== firstFittingPlacement) {
66304
+ state.modifiersData[name]._skip = true;
66305
+ state.placement = firstFittingPlacement;
66306
+ state.reset = true;
66307
+ }
66308
+ } // eslint-disable-next-line import/no-unused-modules
66309
+
66310
+
66311
+ var flip$1 = {
66312
+ name: 'flip',
66313
+ enabled: true,
66314
+ phase: 'main',
66315
+ fn: flip,
66316
+ requiresIfExists: ['offset'],
66317
+ data: {
66318
+ _skip: false
66319
+ }
66320
+ };
66321
+
66322
+ function getSideOffsets(overflow, rect, preventedOffsets) {
66323
+ if (preventedOffsets === void 0) {
66324
+ preventedOffsets = {
66325
+ x: 0,
66326
+ y: 0
66327
+ };
66328
+ }
66329
+
66330
+ return {
66331
+ top: overflow.top - rect.height - preventedOffsets.y,
66332
+ right: overflow.right - rect.width + preventedOffsets.x,
66333
+ bottom: overflow.bottom - rect.height + preventedOffsets.y,
66334
+ left: overflow.left - rect.width - preventedOffsets.x
66335
+ };
66336
+ }
66337
+
66338
+ function isAnySideFullyClipped(overflow) {
66339
+ return [top, right, bottom, left].some(function (side) {
66340
+ return overflow[side] >= 0;
66341
+ });
66342
+ }
66343
+
66344
+ function hide(_ref) {
66345
+ var state = _ref.state,
66346
+ name = _ref.name;
66347
+ var referenceRect = state.rects.reference;
66348
+ var popperRect = state.rects.popper;
66349
+ var preventedOffsets = state.modifiersData.preventOverflow;
66350
+ var referenceOverflow = detectOverflow(state, {
66351
+ elementContext: 'reference'
66352
+ });
66353
+ var popperAltOverflow = detectOverflow(state, {
66354
+ altBoundary: true
66355
+ });
66356
+ var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);
66357
+ var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);
66358
+ var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);
66359
+ var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);
66360
+ state.modifiersData[name] = {
66361
+ referenceClippingOffsets: referenceClippingOffsets,
66362
+ popperEscapeOffsets: popperEscapeOffsets,
66363
+ isReferenceHidden: isReferenceHidden,
66364
+ hasPopperEscaped: hasPopperEscaped
66365
+ };
66366
+ state.attributes.popper = Object.assign({}, state.attributes.popper, {
66367
+ 'data-popper-reference-hidden': isReferenceHidden,
66368
+ 'data-popper-escaped': hasPopperEscaped
66369
+ });
66370
+ } // eslint-disable-next-line import/no-unused-modules
66371
+
66372
+
66373
+ var hide$1 = {
66374
+ name: 'hide',
66375
+ enabled: true,
66376
+ phase: 'main',
66377
+ requiresIfExists: ['preventOverflow'],
66378
+ fn: hide
66379
+ };
66380
+
66381
+ function distanceAndSkiddingToXY(placement, rects, offset) {
66382
+ var basePlacement = getBasePlacement(placement);
66383
+ var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
66384
+
66385
+ var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
66386
+ placement: placement
66387
+ })) : offset,
66388
+ skidding = _ref[0],
66389
+ distance = _ref[1];
66390
+
66391
+ skidding = skidding || 0;
66392
+ distance = (distance || 0) * invertDistance;
66393
+ return [left, right].indexOf(basePlacement) >= 0 ? {
66394
+ x: distance,
66395
+ y: skidding
66396
+ } : {
66397
+ x: skidding,
66398
+ y: distance
66399
+ };
66400
+ }
66401
+
66402
+ function offset(_ref2) {
66403
+ var state = _ref2.state,
66404
+ options = _ref2.options,
66405
+ name = _ref2.name;
66406
+ var _options$offset = options.offset,
66407
+ offset = _options$offset === void 0 ? [0, 0] : _options$offset;
66408
+ var data = placements.reduce(function (acc, placement) {
66409
+ acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);
66410
+ return acc;
66411
+ }, {});
66412
+ var _data$state$placement = data[state.placement],
66413
+ x = _data$state$placement.x,
66414
+ y = _data$state$placement.y;
66415
+
66416
+ if (state.modifiersData.popperOffsets != null) {
66417
+ state.modifiersData.popperOffsets.x += x;
66418
+ state.modifiersData.popperOffsets.y += y;
66419
+ }
66420
+
66421
+ state.modifiersData[name] = data;
66422
+ } // eslint-disable-next-line import/no-unused-modules
66423
+
66424
+
66425
+ var offset$1 = {
66426
+ name: 'offset',
66427
+ enabled: true,
66428
+ phase: 'main',
66429
+ requires: ['popperOffsets'],
66430
+ fn: offset
66431
+ };
66432
+
66433
+ function popperOffsets(_ref) {
66434
+ var state = _ref.state,
66435
+ name = _ref.name;
66436
+ // Offsets are the actual position the popper needs to have to be
66437
+ // properly positioned near its reference element
66438
+ // This is the most basic placement, and will be adjusted by
66439
+ // the modifiers in the next step
66440
+ state.modifiersData[name] = computeOffsets({
66441
+ reference: state.rects.reference,
66442
+ element: state.rects.popper,
66443
+ placement: state.placement
66444
+ });
66445
+ } // eslint-disable-next-line import/no-unused-modules
66446
+
66447
+
66448
+ var popperOffsets$1 = {
66449
+ name: 'popperOffsets',
66450
+ enabled: true,
66451
+ phase: 'read',
66452
+ fn: popperOffsets,
66453
+ data: {}
66454
+ };
66455
+
66456
+ function getAltAxis(axis) {
66457
+ return axis === 'x' ? 'y' : 'x';
66458
+ }
66459
+
66460
+ function preventOverflow(_ref) {
66461
+ var state = _ref.state,
66462
+ options = _ref.options,
66463
+ name = _ref.name;
66464
+ var _options$mainAxis = options.mainAxis,
66465
+ checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
66466
+ _options$altAxis = options.altAxis,
66467
+ checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,
66468
+ boundary = options.boundary,
66469
+ rootBoundary = options.rootBoundary,
66470
+ altBoundary = options.altBoundary,
66471
+ padding = options.padding,
66472
+ _options$tether = options.tether,
66473
+ tether = _options$tether === void 0 ? true : _options$tether,
66474
+ _options$tetherOffset = options.tetherOffset,
66475
+ tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;
66476
+ var overflow = detectOverflow(state, {
66477
+ boundary: boundary,
66478
+ rootBoundary: rootBoundary,
66479
+ padding: padding,
66480
+ altBoundary: altBoundary
66481
+ });
66482
+ var basePlacement = getBasePlacement(state.placement);
66483
+ var variation = getVariation(state.placement);
66484
+ var isBasePlacement = !variation;
66485
+ var mainAxis = getMainAxisFromPlacement(basePlacement);
66486
+ var altAxis = getAltAxis(mainAxis);
66487
+ var popperOffsets = state.modifiersData.popperOffsets;
66488
+ var referenceRect = state.rects.reference;
66489
+ var popperRect = state.rects.popper;
66490
+ var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
66491
+ placement: state.placement
66492
+ })) : tetherOffset;
66493
+ var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {
66494
+ mainAxis: tetherOffsetValue,
66495
+ altAxis: tetherOffsetValue
66496
+ } : Object.assign({
66497
+ mainAxis: 0,
66498
+ altAxis: 0
66499
+ }, tetherOffsetValue);
66500
+ var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;
66501
+ var data = {
66502
+ x: 0,
66503
+ y: 0
66504
+ };
66505
+
66506
+ if (!popperOffsets) {
66507
+ return;
66508
+ }
66509
+
66510
+ if (checkMainAxis) {
66511
+ var _offsetModifierState$;
66512
+
66513
+ var mainSide = mainAxis === 'y' ? top : left;
66514
+ var altSide = mainAxis === 'y' ? bottom : right;
66515
+ var len = mainAxis === 'y' ? 'height' : 'width';
66516
+ var offset = popperOffsets[mainAxis];
66517
+ var min$1 = offset + overflow[mainSide];
66518
+ var max$1 = offset - overflow[altSide];
66519
+ var additive = tether ? -popperRect[len] / 2 : 0;
66520
+ var minLen = variation === start ? referenceRect[len] : popperRect[len];
66521
+ var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
66522
+ // outside the reference bounds
66523
+
66524
+ var arrowElement = state.elements.arrow;
66525
+ var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {
66526
+ width: 0,
66527
+ height: 0
66528
+ };
66529
+ var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();
66530
+ var arrowPaddingMin = arrowPaddingObject[mainSide];
66531
+ var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want
66532
+ // to include its full size in the calculation. If the reference is small
66533
+ // and near the edge of a boundary, the popper can overflow even if the
66534
+ // reference is not overflowing as well (e.g. virtual elements with no
66535
+ // width or height)
66536
+
66537
+ var arrowLen = within(0, referenceRect[len], arrowRect[len]);
66538
+ var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;
66539
+ var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;
66540
+ var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
66541
+ var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
66542
+ var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;
66543
+ var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;
66544
+ var tetherMax = offset + maxOffset - offsetModifierValue;
66545
+ var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
66546
+ popperOffsets[mainAxis] = preventedOffset;
66547
+ data[mainAxis] = preventedOffset - offset;
66548
+ }
66549
+
66550
+ if (checkAltAxis) {
66551
+ var _offsetModifierState$2;
66552
+
66553
+ var _mainSide = mainAxis === 'x' ? top : left;
66554
+
66555
+ var _altSide = mainAxis === 'x' ? bottom : right;
66556
+
66557
+ var _offset = popperOffsets[altAxis];
66558
+
66559
+ var _len = altAxis === 'y' ? 'height' : 'width';
66560
+
66561
+ var _min = _offset + overflow[_mainSide];
66562
+
66563
+ var _max = _offset - overflow[_altSide];
66564
+
66565
+ var isOriginSide = [top, left].indexOf(basePlacement) !== -1;
66566
+
66567
+ var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;
66568
+
66569
+ var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;
66570
+
66571
+ var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;
66572
+
66573
+ var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);
66574
+
66575
+ popperOffsets[altAxis] = _preventedOffset;
66576
+ data[altAxis] = _preventedOffset - _offset;
66577
+ }
66578
+
66579
+ state.modifiersData[name] = data;
66580
+ } // eslint-disable-next-line import/no-unused-modules
66581
+
66582
+
66583
+ var preventOverflow$1 = {
66584
+ name: 'preventOverflow',
66585
+ enabled: true,
66586
+ phase: 'main',
66587
+ fn: preventOverflow,
66588
+ requiresIfExists: ['offset']
66589
+ };
66590
+
66591
+ function getHTMLElementScroll(element) {
66592
+ return {
66593
+ scrollLeft: element.scrollLeft,
66594
+ scrollTop: element.scrollTop
66595
+ };
66596
+ }
66597
+
66598
+ function getNodeScroll(node) {
66599
+ if (node === getWindow(node) || !isHTMLElement(node)) {
66600
+ return getWindowScroll(node);
66601
+ } else {
66602
+ return getHTMLElementScroll(node);
66603
+ }
66604
+ }
66605
+
66606
+ function isElementScaled(element) {
66607
+ var rect = element.getBoundingClientRect();
66608
+ var scaleX = round(rect.width) / element.offsetWidth || 1;
66609
+ var scaleY = round(rect.height) / element.offsetHeight || 1;
66610
+ return scaleX !== 1 || scaleY !== 1;
66611
+ } // Returns the composite rect of an element relative to its offsetParent.
66612
+ // Composite means it takes into account transforms as well as layout.
66613
+
66614
+
66615
+ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
66616
+ if (isFixed === void 0) {
66617
+ isFixed = false;
66618
+ }
66619
+
66620
+ var isOffsetParentAnElement = isHTMLElement(offsetParent);
66621
+ var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
66622
+ var documentElement = getDocumentElement(offsetParent);
66623
+ var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);
66624
+ var scroll = {
66625
+ scrollLeft: 0,
66626
+ scrollTop: 0
66627
+ };
66628
+ var offsets = {
66629
+ x: 0,
66630
+ y: 0
66631
+ };
66632
+
66633
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
66634
+ if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078
66635
+ isScrollParent(documentElement)) {
66636
+ scroll = getNodeScroll(offsetParent);
66637
+ }
66638
+
66639
+ if (isHTMLElement(offsetParent)) {
66640
+ offsets = getBoundingClientRect(offsetParent, true);
66641
+ offsets.x += offsetParent.clientLeft;
66642
+ offsets.y += offsetParent.clientTop;
66643
+ } else if (documentElement) {
66644
+ offsets.x = getWindowScrollBarX(documentElement);
66645
+ }
66646
+ }
66647
+
66648
+ return {
66649
+ x: rect.left + scroll.scrollLeft - offsets.x,
66650
+ y: rect.top + scroll.scrollTop - offsets.y,
66651
+ width: rect.width,
66652
+ height: rect.height
66653
+ };
66654
+ }
66655
+
66656
+ function order(modifiers) {
66657
+ var map = new Map();
66658
+ var visited = new Set();
66659
+ var result = [];
66660
+ modifiers.forEach(function (modifier) {
66661
+ map.set(modifier.name, modifier);
66662
+ }); // On visiting object, check for its dependencies and visit them recursively
66663
+
66664
+ function sort(modifier) {
66665
+ visited.add(modifier.name);
66666
+ var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);
66667
+ requires.forEach(function (dep) {
66668
+ if (!visited.has(dep)) {
66669
+ var depModifier = map.get(dep);
66670
+
66671
+ if (depModifier) {
66672
+ sort(depModifier);
66673
+ }
66674
+ }
66675
+ });
66676
+ result.push(modifier);
66677
+ }
66678
+
66679
+ modifiers.forEach(function (modifier) {
66680
+ if (!visited.has(modifier.name)) {
66681
+ // check for visited object
66682
+ sort(modifier);
66683
+ }
66684
+ });
66685
+ return result;
66686
+ }
66687
+
66688
+ function orderModifiers(modifiers) {
66689
+ // order based on dependencies
66690
+ var orderedModifiers = order(modifiers); // order based on phase
66691
+
66692
+ return modifierPhases.reduce(function (acc, phase) {
66693
+ return acc.concat(orderedModifiers.filter(function (modifier) {
66694
+ return modifier.phase === phase;
66695
+ }));
66696
+ }, []);
66697
+ }
66698
+
66699
+ function debounce(fn) {
66700
+ var pending;
66701
+ return function () {
66702
+ if (!pending) {
66703
+ pending = new Promise(function (resolve) {
66704
+ Promise.resolve().then(function () {
66705
+ pending = undefined;
66706
+ resolve(fn());
66707
+ });
66708
+ });
66709
+ }
66710
+
66711
+ return pending;
66712
+ };
66713
+ }
66714
+
66715
+ function mergeByName(modifiers) {
66716
+ var merged = modifiers.reduce(function (merged, current) {
66717
+ var existing = merged[current.name];
66718
+ merged[current.name] = existing ? Object.assign({}, existing, current, {
66719
+ options: Object.assign({}, existing.options, current.options),
66720
+ data: Object.assign({}, existing.data, current.data)
66721
+ }) : current;
66722
+ return merged;
66723
+ }, {}); // IE11 does not support Object.values
66724
+
66725
+ return Object.keys(merged).map(function (key) {
66726
+ return merged[key];
66727
+ });
66728
+ }
66729
+
66730
+ var DEFAULT_OPTIONS = {
66731
+ placement: 'bottom',
66732
+ modifiers: [],
66733
+ strategy: 'absolute'
66734
+ };
66735
+
66736
+ function areValidElements() {
66737
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
66738
+ args[_key] = arguments[_key];
66739
+ }
66740
+
66741
+ return !args.some(function (element) {
66742
+ return !(element && typeof element.getBoundingClientRect === 'function');
66743
+ });
66744
+ }
66745
+
66746
+ function popperGenerator(generatorOptions) {
66747
+ if (generatorOptions === void 0) {
66748
+ generatorOptions = {};
66749
+ }
66750
+
66751
+ var _generatorOptions = generatorOptions,
66752
+ _generatorOptions$def = _generatorOptions.defaultModifiers,
66753
+ defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,
66754
+ _generatorOptions$def2 = _generatorOptions.defaultOptions,
66755
+ defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;
66756
+ return function createPopper(reference, popper, options) {
66757
+ if (options === void 0) {
66758
+ options = defaultOptions;
66759
+ }
66760
+
66761
+ var state = {
66762
+ placement: 'bottom',
66763
+ orderedModifiers: [],
66764
+ options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
66765
+ modifiersData: {},
66766
+ elements: {
66767
+ reference: reference,
66768
+ popper: popper
66769
+ },
66770
+ attributes: {},
66771
+ styles: {}
66772
+ };
66773
+ var effectCleanupFns = [];
66774
+ var isDestroyed = false;
66775
+ var instance = {
66776
+ state: state,
66777
+ setOptions: function setOptions(setOptionsAction) {
66778
+ var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;
66779
+ cleanupModifierEffects();
66780
+ state.options = Object.assign({}, defaultOptions, state.options, options);
66781
+ state.scrollParents = {
66782
+ reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
66783
+ popper: listScrollParents(popper)
66784
+ }; // Orders the modifiers based on their dependencies and `phase`
66785
+ // properties
66786
+
66787
+ var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers
66788
+
66789
+ state.orderedModifiers = orderedModifiers.filter(function (m) {
66790
+ return m.enabled;
66791
+ });
66792
+ runModifierEffects();
66793
+ return instance.update();
66794
+ },
66795
+ // Sync update – it will always be executed, even if not necessary. This
66796
+ // is useful for low frequency updates where sync behavior simplifies the
66797
+ // logic.
66798
+ // For high frequency updates (e.g. `resize` and `scroll` events), always
66799
+ // prefer the async Popper#update method
66800
+ forceUpdate: function forceUpdate() {
66801
+ if (isDestroyed) {
66802
+ return;
66803
+ }
66804
+
66805
+ var _state$elements = state.elements,
66806
+ reference = _state$elements.reference,
66807
+ popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements
66808
+ // anymore
66809
+
66810
+ if (!areValidElements(reference, popper)) {
66811
+ return;
66812
+ } // Store the reference and popper rects to be read by modifiers
66813
+
66814
+
66815
+ state.rects = {
66816
+ reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),
66817
+ popper: getLayoutRect(popper)
66818
+ }; // Modifiers have the ability to reset the current update cycle. The
66819
+ // most common use case for this is the `flip` modifier changing the
66820
+ // placement, which then needs to re-run all the modifiers, because the
66821
+ // logic was previously ran for the previous placement and is therefore
66822
+ // stale/incorrect
66823
+
66824
+ state.reset = false;
66825
+ state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier
66826
+ // is filled with the initial data specified by the modifier. This means
66827
+ // it doesn't persist and is fresh on each update.
66828
+ // To ensure persistent data, use `${name}#persistent`
66829
+
66830
+ state.orderedModifiers.forEach(function (modifier) {
66831
+ return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
66832
+ });
66833
+
66834
+ for (var index = 0; index < state.orderedModifiers.length; index++) {
66835
+ if (state.reset === true) {
66836
+ state.reset = false;
66837
+ index = -1;
66838
+ continue;
66839
+ }
66840
+
66841
+ var _state$orderedModifie = state.orderedModifiers[index],
66842
+ fn = _state$orderedModifie.fn,
66843
+ _state$orderedModifie2 = _state$orderedModifie.options,
66844
+ _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,
66845
+ name = _state$orderedModifie.name;
66846
+
66847
+ if (typeof fn === 'function') {
66848
+ state = fn({
66849
+ state: state,
66850
+ options: _options,
66851
+ name: name,
66852
+ instance: instance
66853
+ }) || state;
66854
+ }
66855
+ }
66856
+ },
66857
+ // Async and optimistically optimized update – it will not be executed if
66858
+ // not necessary (debounced to run at most once-per-tick)
66859
+ update: debounce(function () {
66860
+ return new Promise(function (resolve) {
66861
+ instance.forceUpdate();
66862
+ resolve(state);
66863
+ });
66864
+ }),
66865
+ destroy: function destroy() {
66866
+ cleanupModifierEffects();
66867
+ isDestroyed = true;
66868
+ }
66869
+ };
66870
+
66871
+ if (!areValidElements(reference, popper)) {
66872
+ return instance;
66873
+ }
66874
+
66875
+ instance.setOptions(options).then(function (state) {
66876
+ if (!isDestroyed && options.onFirstUpdate) {
66877
+ options.onFirstUpdate(state);
66878
+ }
66879
+ }); // Modifiers have the ability to execute arbitrary code before the first
66880
+ // update cycle runs. They will be executed in the same order as the update
66881
+ // cycle. This is useful when a modifier adds some persistent data that
66882
+ // other modifiers need to use, but the modifier is run after the dependent
66883
+ // one.
66884
+
66885
+ function runModifierEffects() {
66886
+ state.orderedModifiers.forEach(function (_ref) {
66887
+ var name = _ref.name,
66888
+ _ref$options = _ref.options,
66889
+ options = _ref$options === void 0 ? {} : _ref$options,
66890
+ effect = _ref.effect;
66891
+
66892
+ if (typeof effect === 'function') {
66893
+ var cleanupFn = effect({
66894
+ state: state,
66895
+ name: name,
66896
+ instance: instance,
66897
+ options: options
66898
+ });
66899
+
66900
+ var noopFn = function noopFn() {};
66901
+
66902
+ effectCleanupFns.push(cleanupFn || noopFn);
66903
+ }
66904
+ });
66905
+ }
66906
+
66907
+ function cleanupModifierEffects() {
66908
+ effectCleanupFns.forEach(function (fn) {
66909
+ return fn();
66910
+ });
66911
+ effectCleanupFns = [];
66912
+ }
66913
+
66914
+ return instance;
66915
+ };
66916
+ }
66917
+
66918
+ var defaultModifiers = [eventListeners, popperOffsets$1, computeStyles$1, applyStyles$1, offset$1, flip$1, preventOverflow$1, arrow$1, hide$1];
66919
+ var createPopper = /*#__PURE__*/popperGenerator({
66920
+ defaultModifiers: defaultModifiers
66921
+ }); // eslint-disable-next-line import/no-unused-modules
66922
+
66923
+ /* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
66924
+
66925
+ var hasElementType = typeof Element !== 'undefined';
66926
+ var hasMap = typeof Map === 'function';
66927
+ var hasSet = typeof Set === 'function';
66928
+ var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
66929
+
66930
+ // Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
66931
+
66932
+ function equal(a, b) {
66933
+ // START: fast-deep-equal es6/index.js 3.1.3
66934
+ if (a === b) return true;
66935
+
66936
+ if (a && b && typeof a == 'object' && typeof b == 'object') {
66937
+ if (a.constructor !== b.constructor) return false;
66938
+
66939
+ var length, i, keys;
66940
+ if (Array.isArray(a)) {
66941
+ length = a.length;
66942
+ if (length != b.length) return false;
66943
+ for (i = length; i-- !== 0;)
66944
+ if (!equal(a[i], b[i])) return false;
66945
+ return true;
66946
+ }
66947
+
66948
+ // START: Modifications:
66949
+ // 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
66950
+ // to co-exist with es5.
66951
+ // 2. Replace `for of` with es5 compliant iteration using `for`.
66952
+ // Basically, take:
66953
+ //
66954
+ // ```js
66955
+ // for (i of a.entries())
66956
+ // if (!b.has(i[0])) return false;
66957
+ // ```
66958
+ //
66959
+ // ... and convert to:
66960
+ //
66961
+ // ```js
66962
+ // it = a.entries();
66963
+ // while (!(i = it.next()).done)
66964
+ // if (!b.has(i.value[0])) return false;
66965
+ // ```
66966
+ //
66967
+ // **Note**: `i` access switches to `i.value`.
66968
+ var it;
66969
+ if (hasMap && (a instanceof Map) && (b instanceof Map)) {
66970
+ if (a.size !== b.size) return false;
66971
+ it = a.entries();
66972
+ while (!(i = it.next()).done)
66973
+ if (!b.has(i.value[0])) return false;
66974
+ it = a.entries();
66975
+ while (!(i = it.next()).done)
66976
+ if (!equal(i.value[1], b.get(i.value[0]))) return false;
66977
+ return true;
66978
+ }
66979
+
66980
+ if (hasSet && (a instanceof Set) && (b instanceof Set)) {
66981
+ if (a.size !== b.size) return false;
66982
+ it = a.entries();
66983
+ while (!(i = it.next()).done)
66984
+ if (!b.has(i.value[0])) return false;
66985
+ return true;
66986
+ }
66987
+ // END: Modifications
66988
+
66989
+ if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
66990
+ length = a.length;
66991
+ if (length != b.length) return false;
66992
+ for (i = length; i-- !== 0;)
66993
+ if (a[i] !== b[i]) return false;
66994
+ return true;
66995
+ }
66996
+
66997
+ if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
66998
+ // START: Modifications:
66999
+ // Apply guards for `Object.create(null)` handling. See:
67000
+ // - https://github.com/FormidableLabs/react-fast-compare/issues/64
67001
+ // - https://github.com/epoberezkin/fast-deep-equal/issues/49
67002
+ if (a.valueOf !== Object.prototype.valueOf && typeof a.valueOf === 'function' && typeof b.valueOf === 'function') return a.valueOf() === b.valueOf();
67003
+ if (a.toString !== Object.prototype.toString && typeof a.toString === 'function' && typeof b.toString === 'function') return a.toString() === b.toString();
67004
+ // END: Modifications
67005
+
67006
+ keys = Object.keys(a);
67007
+ length = keys.length;
67008
+ if (length !== Object.keys(b).length) return false;
67009
+
67010
+ for (i = length; i-- !== 0;)
67011
+ if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
67012
+ // END: fast-deep-equal
67013
+
67014
+ // START: react-fast-compare
67015
+ // custom handling for DOM elements
67016
+ if (hasElementType && a instanceof Element) return false;
67017
+
67018
+ // custom handling for React/Preact
67019
+ for (i = length; i-- !== 0;) {
67020
+ if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
67021
+ // React-specific: avoid traversing React elements' _owner
67022
+ // Preact-specific: avoid traversing Preact elements' __v and __o
67023
+ // __v = $_original / $_vnode
67024
+ // __o = $_owner
67025
+ // These properties contain circular references and are not needed when
67026
+ // comparing the actual elements (and not their owners)
67027
+ // .$$typeof and ._store on just reasonable markers of elements
67028
+
67029
+ continue;
67030
+ }
67031
+
67032
+ // all other properties should be traversed as usual
67033
+ if (!equal(a[keys[i]], b[keys[i]])) return false;
67034
+ }
67035
+ // END: react-fast-compare
67036
+
67037
+ // START: fast-deep-equal
67038
+ return true;
67039
+ }
67040
+
67041
+ return a !== a && b !== b;
67042
+ }
67043
+ // end fast-deep-equal
67044
+
67045
+ var reactFastCompare = function isEqual(a, b) {
67046
+ try {
67047
+ return equal(a, b);
67048
+ } catch (error) {
67049
+ if (((error.message || '').match(/stack|recursion/i))) {
67050
+ // warn on circular references, don't crash
67051
+ // browsers give this different errors name and messages:
67052
+ // chrome/safari: "RangeError", "Maximum call stack size exceeded"
67053
+ // firefox: "InternalError", too much recursion"
67054
+ // edge: "Error", "Out of stack space"
67055
+ console.warn('react-fast-compare cannot handle circular refs');
67056
+ return false;
67057
+ }
67058
+ // some other error. we should definitely know about these
67059
+ throw error;
67060
+ }
67061
+ };
67062
+
67063
+ var isEqual = /*@__PURE__*/getDefaultExportFromCjs(reactFastCompare);
67064
+
67065
+ var EMPTY_MODIFIERS = [];
67066
+ var usePopper = function usePopper(referenceElement, popperElement, options) {
67067
+ if (options === void 0) {
67068
+ options = {};
67069
+ }
67070
+
67071
+ var prevOptions = React.useRef(null);
67072
+ var optionsWithDefaults = {
67073
+ onFirstUpdate: options.onFirstUpdate,
67074
+ placement: options.placement || 'bottom',
67075
+ strategy: options.strategy || 'absolute',
67076
+ modifiers: options.modifiers || EMPTY_MODIFIERS
67077
+ };
67078
+
67079
+ var _React$useState = React.useState({
67080
+ styles: {
67081
+ popper: {
67082
+ position: optionsWithDefaults.strategy,
67083
+ left: '0',
67084
+ top: '0'
67085
+ },
67086
+ arrow: {
67087
+ position: 'absolute'
67088
+ }
67089
+ },
67090
+ attributes: {}
67091
+ }),
67092
+ state = _React$useState[0],
67093
+ setState = _React$useState[1];
67094
+
67095
+ var updateStateModifier = React.useMemo(function () {
67096
+ return {
67097
+ name: 'updateState',
67098
+ enabled: true,
67099
+ phase: 'write',
67100
+ fn: function fn(_ref) {
67101
+ var state = _ref.state;
67102
+ var elements = Object.keys(state.elements);
67103
+ ReactDOM.flushSync(function () {
67104
+ setState({
67105
+ styles: fromEntries(elements.map(function (element) {
67106
+ return [element, state.styles[element] || {}];
67107
+ })),
67108
+ attributes: fromEntries(elements.map(function (element) {
67109
+ return [element, state.attributes[element]];
67110
+ }))
67111
+ });
67112
+ });
67113
+ },
67114
+ requires: ['computeStyles']
67115
+ };
67116
+ }, []);
67117
+ var popperOptions = React.useMemo(function () {
67118
+ var newOptions = {
67119
+ onFirstUpdate: optionsWithDefaults.onFirstUpdate,
67120
+ placement: optionsWithDefaults.placement,
67121
+ strategy: optionsWithDefaults.strategy,
67122
+ modifiers: [].concat(optionsWithDefaults.modifiers, [updateStateModifier, {
67123
+ name: 'applyStyles',
67124
+ enabled: false
67125
+ }])
67126
+ };
67127
+
67128
+ if (isEqual(prevOptions.current, newOptions)) {
67129
+ return prevOptions.current || newOptions;
67130
+ } else {
67131
+ prevOptions.current = newOptions;
67132
+ return newOptions;
67133
+ }
67134
+ }, [optionsWithDefaults.onFirstUpdate, optionsWithDefaults.placement, optionsWithDefaults.strategy, optionsWithDefaults.modifiers, updateStateModifier]);
67135
+ var popperInstanceRef = React.useRef();
67136
+ useIsomorphicLayoutEffect(function () {
67137
+ if (popperInstanceRef.current) {
67138
+ popperInstanceRef.current.setOptions(popperOptions);
67139
+ }
67140
+ }, [popperOptions]);
67141
+ useIsomorphicLayoutEffect(function () {
67142
+ if (referenceElement == null || popperElement == null) {
67143
+ return;
67144
+ }
67145
+
67146
+ var createPopper$1 = options.createPopper || createPopper;
67147
+ var popperInstance = createPopper$1(referenceElement, popperElement, popperOptions);
67148
+ popperInstanceRef.current = popperInstance;
67149
+ return function () {
67150
+ popperInstance.destroy();
67151
+ popperInstanceRef.current = null;
67152
+ };
67153
+ }, [referenceElement, popperElement, options.createPopper]);
67154
+ return {
67155
+ state: popperInstanceRef.current ? popperInstanceRef.current.state : null,
67156
+ styles: state.styles,
67157
+ attributes: state.attributes,
67158
+ update: popperInstanceRef.current ? popperInstanceRef.current.update : null,
67159
+ forceUpdate: popperInstanceRef.current ? popperInstanceRef.current.forceUpdate : null
67160
+ };
67161
+ };
67162
+
65133
67163
  const rootId = "portal-fis-component";
65134
67164
  function getDefaultContainer() {
65135
67165
  let rootPortal = document.getElementById(rootId);