saagie-ui
Version:
Saagie UI from Saagie Design System
31 lines • 870 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("prop-types"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","prop-types","react-dom"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["saagie-ui"]={},e.React,e.PropTypes,e.ReactDOM)}(this,(function(e,t,n,a){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var l=r(t),i=o(t),c=r(n),s=r(a),u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function f(){return p=f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},f.apply(this,arguments)}var p=f,m=p;var g=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r},h=g;var v=function(e,t){if(null==e)return{};var n,a,r=h(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r},b={exports:{}};
/*!
Copyright (c) 2016 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],a=0;a<arguments.length;a++){var r=arguments[a];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r))e.push(n.apply(null,r));else if("object"===o)for(var l in r)t.call(r,l)&&r[l]&&e.push(l)}}return e.join(" ")}e.exports?e.exports=n:window.classNames=n}()}(b);var y=b.exports,w={children:c.default.node.isRequired,tag:c.default.elementType,defaultClassName:c.default.oneOfType([c.default.string,c.default.arrayOf(c.default.string)]),className:c.default.string},C=function(e){var t=e.tag,n=e.defaultClassName,a=e.className,r=v(e,["tag","defaultClassName","className"]),o=y(n,a);return l.default.createElement(t,m({},r,{className:o}))};C.propTypes=w,C.defaultProps={tag:"div",defaultClassName:"sui-o-accordion",className:""};var N={children:c.default.node.isRequired,tag:c.default.elementType,defaultClassName:c.default.oneOfType([c.default.string,c.default.arrayOf(c.default.string)]),className:c.default.string},x=function(e){var t=e.tag,n=e.defaultClassName,a=e.className,r=v(e,["tag","defaultClassName","className"]),o=y(n,a);return l.default.createElement(t,m({},r,{className:o}))};x.propTypes=N,x.defaultProps={tag:"div",defaultClassName:"sui-o-accordion__body",className:""};var E=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a},I=E;var O=function(e,t){if(e){if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}};var z=function(e){if(Array.isArray(e))return e},D=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],a=!0,r=!1,o=void 0;try{for(var l,i=e[Symbol.iterator]();!(a=(l=i.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(r)throw o}}return n}},A=O,M=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var T=function(e,t){return z(e)||D(e,t)||A(e,t)||M()},P=E;var S=function(e){if(Array.isArray(e))return P(e)},B=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)},V=O,L=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var k=function(e){return S(e)||B(e)||V(e)||L()};var G=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t};var F=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e};var R=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},_="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,H=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(_&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();
/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.16.1
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/var j=_&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),H))}};function W(e){return e&&"[object Function]"==={}.toString.call(e)}function X(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Y(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function Z(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=X(e),n=t.overflow,a=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(n+r+a)?e:Z(Y(e))}function U(e){return e&&e.referenceNode?e.referenceNode:e}var J=_&&!(!window.MSInputMethodContext||!document.documentMode),Q=_&&/MSIE 10/.test(navigator.userAgent);function q(e){return 11===e?J:10===e?Q:J||Q}function $(e){if(!e)return document.documentElement;for(var t=q(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var a=n&&n.nodeName;return a&&"BODY"!==a&&"HTML"!==a?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===X(n,"position")?$(n):n:e?e.ownerDocument.documentElement:document.documentElement}function K(e){return null!==e.parentNode?K(e.parentNode):e}function ee(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,a=n?e:t,r=n?t:e,o=document.createRange();o.setStart(a,0),o.setEnd(r,0);var l,i,c=o.commonAncestorContainer;if(e!==c&&t!==c||a.contains(r))return"BODY"===(i=(l=c).nodeName)||"HTML"!==i&&$(l.firstElementChild)!==l?$(c):c;var s=K(e);return s.host?ee(s.host,t):ee(e,K(t).host)}function te(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",a=e.nodeName;if("BODY"===a||"HTML"===a){var r=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||r;return o[n]}return e[n]}function ne(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=te(t,"top"),r=te(t,"left"),o=n?-1:1;return e.top+=a*o,e.bottom+=a*o,e.left+=r*o,e.right+=r*o,e}function ae(e,t){var n="x"===t?"Left":"Top",a="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+a+"Width"])}function re(e,t,n,a){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],q(10)?parseInt(n["offset"+e])+parseInt(a["margin"+("Height"===e?"Top":"Left")])+parseInt(a["margin"+("Height"===e?"Bottom":"Right")]):0)}function oe(e){var t=e.body,n=e.documentElement,a=q(10)&&getComputedStyle(n);return{height:re("Height",t,n,a),width:re("Width",t,n,a)}}var le=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ie=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),ce=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},se=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e};function ue(e){return se({},e,{right:e.left+e.width,bottom:e.top+e.height})}function de(e){var t={};try{if(q(10)){t=e.getBoundingClientRect();var n=te(e,"top"),a=te(e,"left");t.top+=n,t.left+=a,t.bottom+=n,t.right+=a}else t=e.getBoundingClientRect()}catch(e){}var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?oe(e.ownerDocument):{},l=o.width||e.clientWidth||r.width,i=o.height||e.clientHeight||r.height,c=e.offsetWidth-l,s=e.offsetHeight-i;if(c||s){var u=X(e);c-=ae(u,"x"),s-=ae(u,"y"),r.width-=c,r.height-=s}return ue(r)}function fe(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=q(10),r="HTML"===t.nodeName,o=de(e),l=de(t),i=Z(e),c=X(t),s=parseFloat(c.borderTopWidth),u=parseFloat(c.borderLeftWidth);n&&r&&(l.top=Math.max(l.top,0),l.left=Math.max(l.left,0));var d=ue({top:o.top-l.top-s,left:o.left-l.left-u,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!a&&r){var f=parseFloat(c.marginTop),p=parseFloat(c.marginLeft);d.top-=s-f,d.bottom-=s-f,d.left-=u-p,d.right-=u-p,d.marginTop=f,d.marginLeft=p}return(a&&!n?t.contains(i):t===i&&"BODY"!==i.nodeName)&&(d=ne(d,t)),d}function pe(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,a=fe(e,n),r=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),l=t?0:te(n),i=t?0:te(n,"left"),c={top:l-a.top+a.marginTop,left:i-a.left+a.marginLeft,width:r,height:o};return ue(c)}function me(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===X(e,"position"))return!0;var n=Y(e);return!!n&&me(n)}function ge(e){if(!e||!e.parentElement||q())return document.documentElement;for(var t=e.parentElement;t&&"none"===X(t,"transform");)t=t.parentElement;return t||document.documentElement}function he(e,t,n,a){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},l=r?ge(e):ee(e,U(t));if("viewport"===a)o=pe(l,r);else{var i=void 0;"scrollParent"===a?"BODY"===(i=Z(Y(t))).nodeName&&(i=e.ownerDocument.documentElement):i="window"===a?e.ownerDocument.documentElement:a;var c=fe(i,l,r);if("HTML"!==i.nodeName||me(l))o=c;else{var s=oe(e.ownerDocument),u=s.height,d=s.width;o.top+=c.top-c.marginTop,o.bottom=u+c.top,o.left+=c.left-c.marginLeft,o.right=d+c.left}}var f="number"==typeof(n=n||0);return o.left+=f?n:n.left||0,o.top+=f?n:n.top||0,o.right-=f?n:n.right||0,o.bottom-=f?n:n.bottom||0,o}function ve(e){return e.width*e.height}function be(e,t,n,a,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var l=he(n,a,o,r),i={top:{width:l.width,height:t.top-l.top},right:{width:l.right-t.right,height:l.height},bottom:{width:l.width,height:l.bottom-t.bottom},left:{width:t.left-l.left,height:l.height}},c=Object.keys(i).map((function(e){return se({key:e},i[e],{area:ve(i[e])})})).sort((function(e,t){return t.area-e.area})),s=c.filter((function(e){var t=e.width,a=e.height;return t>=n.clientWidth&&a>=n.clientHeight})),u=s.length>0?s[0].key:c[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function ye(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=a?ge(t):ee(t,U(n));return fe(n,r,a)}function we(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),a=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+a,height:e.offsetHeight+n}}function Ce(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function Ne(e,t,n){n=n.split("-")[0];var a=we(e),r={width:a.width,height:a.height},o=-1!==["right","left"].indexOf(n),l=o?"top":"left",i=o?"left":"top",c=o?"height":"width",s=o?"width":"height";return r[l]=t[l]+t[c]/2-a[c]/2,r[i]=n===i?t[i]-a[s]:t[Ce(i)],r}function xe(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Ee(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var a=xe(e,(function(e){return e[t]===n}));return e.indexOf(a)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&W(n)&&(t.offsets.popper=ue(t.offsets.popper),t.offsets.reference=ue(t.offsets.reference),t=n(t,e))})),t}function Ie(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=ye(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=be(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=Ne(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Ee(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Oe(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function ze(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),a=0;a<t.length;a++){var r=t[a],o=r?""+r+n:e;if(void 0!==document.body.style[o])return o}return null}function De(){return this.state.isDestroyed=!0,Oe(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[ze("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Ae(e){var t=e.ownerDocument;return t?t.defaultView:window}function Me(e,t,n,a){n.updateBound=a,Ae(e).addEventListener("resize",n.updateBound,{passive:!0});var r=Z(e);return function e(t,n,a,r){var o="BODY"===t.nodeName,l=o?t.ownerDocument.defaultView:t;l.addEventListener(n,a,{passive:!0}),o||e(Z(l.parentNode),n,a,r),r.push(l)}(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function Te(){this.state.eventsEnabled||(this.state=Me(this.reference,this.options,this.state,this.scheduleUpdate))}function Pe(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,Ae(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function Se(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Be(e,t){Object.keys(t).forEach((function(n){var a="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Se(t[n])&&(a="px"),e.style[n]=t[n]+a}))}var Ve=_&&/Firefox/i.test(navigator.userAgent);function Le(e,t,n){var a=xe(e,(function(e){return e.name===t})),r=!!a&&e.some((function(e){return e.name===n&&e.enabled&&e.order<a.order}));if(!r){var o="`"+t+"`",l="`"+n+"`";console.warn(l+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return r}var ke=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Ge=ke.slice(3);function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ge.indexOf(e),a=Ge.slice(n+1).concat(Ge.slice(0,n));return t?a.reverse():a}var Re="flip",_e="clockwise",He="counterclockwise";function je(e,t,n,a){var r=[0,0],o=-1!==["right","left"].indexOf(a),l=e.split(/(\+|\-)/).map((function(e){return e.trim()})),i=l.indexOf(xe(l,(function(e){return-1!==e.search(/,|\s/)})));l[i]&&-1===l[i].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,s=-1!==i?[l.slice(0,i).concat([l[i].split(c)[0]]),[l[i].split(c)[1]].concat(l.slice(i+1))]:[l];return(s=s.map((function(e,a){var r=(1===a?!o:o)?"height":"width",l=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,l=!0,e):l?(e[e.length-1]+=t,l=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,a){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],l=r[2];if(!o)return e;if(0===l.indexOf("%")){var i=void 0;switch(l){case"%p":i=n;break;case"%":case"%r":default:i=a}return ue(i)[t]/100*o}if("vh"===l||"vw"===l)return("vh"===l?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(e,r,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,a){Se(n)&&(r[t]+=n*("-"===e[a-1]?-1:1))}))})),r}var We={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],a=t.split("-")[1];if(a){var r=e.offsets,o=r.reference,l=r.popper,i=-1!==["bottom","top"].indexOf(n),c=i?"left":"top",s=i?"width":"height",u={start:ce({},c,o[c]),end:ce({},c,o[c]+o[s]-l[s])};e.offsets.popper=se({},l,u[a])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,a=e.placement,r=e.offsets,o=r.popper,l=r.reference,i=a.split("-")[0],c=void 0;return c=Se(+n)?[+n,0]:je(n,o,l,i),"left"===i?(o.top+=c[0],o.left-=c[1]):"right"===i?(o.top+=c[0],o.left+=c[1]):"top"===i?(o.left+=c[0],o.top-=c[1]):"bottom"===i&&(o.left+=c[0],o.top+=c[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||$(e.instance.popper);e.instance.reference===n&&(n=$(n));var a=ze("transform"),r=e.instance.popper.style,o=r.top,l=r.left,i=r[a];r.top="",r.left="",r[a]="";var c=he(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);r.top=o,r.left=l,r[a]=i,t.boundaries=c;var s=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<c[e]&&!t.escapeWithReference&&(n=Math.max(u[e],c[e])),ce({},e,n)},secondary:function(e){var n="right"===e?"left":"top",a=u[n];return u[e]>c[e]&&!t.escapeWithReference&&(a=Math.min(u[n],c[e]-("right"===e?u.width:u.height))),ce({},n,a)}};return s.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=se({},u,d[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,a=t.reference,r=e.placement.split("-")[0],o=Math.floor,l=-1!==["top","bottom"].indexOf(r),i=l?"right":"bottom",c=l?"left":"top",s=l?"width":"height";return n[i]<o(a[c])&&(e.offsets.popper[c]=o(a[c])-n[s]),n[c]>o(a[i])&&(e.offsets.popper[c]=o(a[i])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Le(e.instance.modifiers,"arrow","keepTogether"))return e;var a=t.element;if("string"==typeof a){if(!(a=e.instance.popper.querySelector(a)))return e}else if(!e.instance.popper.contains(a))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],o=e.offsets,l=o.popper,i=o.reference,c=-1!==["left","right"].indexOf(r),s=c?"height":"width",u=c?"Top":"Left",d=u.toLowerCase(),f=c?"left":"top",p=c?"bottom":"right",m=we(a)[s];i[p]-m<l[d]&&(e.offsets.popper[d]-=l[d]-(i[p]-m)),i[d]+m>l[p]&&(e.offsets.popper[d]+=i[d]+m-l[p]),e.offsets.popper=ue(e.offsets.popper);var g=i[d]+i[s]/2-m/2,h=X(e.instance.popper),v=parseFloat(h["margin"+u]),b=parseFloat(h["border"+u+"Width"]),y=g-e.offsets.popper[d]-v-b;return y=Math.max(Math.min(l[s]-m,y),0),e.arrowElement=a,e.offsets.arrow=(ce(n={},d,Math.round(y)),ce(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(Oe(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=he(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),a=e.placement.split("-")[0],r=Ce(a),o=e.placement.split("-")[1]||"",l=[];switch(t.behavior){case Re:l=[a,r];break;case _e:l=Fe(a);break;case He:l=Fe(a,!0);break;default:l=t.behavior}return l.forEach((function(i,c){if(a!==i||l.length===c+1)return e;a=e.placement.split("-")[0],r=Ce(a);var s=e.offsets.popper,u=e.offsets.reference,d=Math.floor,f="left"===a&&d(s.right)>d(u.left)||"right"===a&&d(s.left)<d(u.right)||"top"===a&&d(s.bottom)>d(u.top)||"bottom"===a&&d(s.top)<d(u.bottom),p=d(s.left)<d(n.left),m=d(s.right)>d(n.right),g=d(s.top)<d(n.top),h=d(s.bottom)>d(n.bottom),v="left"===a&&p||"right"===a&&m||"top"===a&&g||"bottom"===a&&h,b=-1!==["top","bottom"].indexOf(a),y=!!t.flipVariations&&(b&&"start"===o&&p||b&&"end"===o&&m||!b&&"start"===o&&g||!b&&"end"===o&&h),w=!!t.flipVariationsByContent&&(b&&"start"===o&&m||b&&"end"===o&&p||!b&&"start"===o&&h||!b&&"end"===o&&g),C=y||w;(f||v||C)&&(e.flipped=!0,(f||v)&&(a=l[c+1]),C&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=a+(o?"-"+o:""),e.offsets.popper=se({},e.offsets.popper,Ne(e.instance.popper,e.offsets.reference,e.placement)),e=Ee(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],a=e.offsets,r=a.popper,o=a.reference,l=-1!==["left","right"].indexOf(n),i=-1===["top","left"].indexOf(n);return r[l?"left":"top"]=o[n]-(i?r[l?"width":"height"]:0),e.placement=Ce(t),e.offsets.popper=ue(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Le(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=xe(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,a=t.y,r=e.offsets.popper,o=xe(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var l=void 0!==o?o:t.gpuAcceleration,i=$(e.instance.popper),c=de(i),s={position:r.position},u=function(e,t){var n=e.offsets,a=n.popper,r=n.reference,o=Math.round,l=Math.floor,i=function(e){return e},c=o(r.width),s=o(a.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),f=t?u||d||c%2==s%2?o:l:i,p=t?o:i;return{left:f(c%2==1&&s%2==1&&!d&&t?a.left-1:a.left),top:p(a.top),bottom:p(a.bottom),right:f(a.right)}}(e,window.devicePixelRatio<2||!Ve),d="bottom"===n?"top":"bottom",f="right"===a?"left":"right",p=ze("transform"),m=void 0,g=void 0;if(g="bottom"===d?"HTML"===i.nodeName?-i.clientHeight+u.bottom:-c.height+u.bottom:u.top,m="right"===f?"HTML"===i.nodeName?-i.clientWidth+u.right:-c.width+u.right:u.left,l&&p)s[p]="translate3d("+m+"px, "+g+"px, 0)",s[d]=0,s[f]=0,s.willChange="transform";else{var h="bottom"===d?-1:1,v="right"===f?-1:1;s[d]=g*h,s[f]=m*v,s.willChange=d+", "+f}var b={"x-placement":e.placement};return e.attributes=se({},b,e.attributes),e.styles=se({},s,e.styles),e.arrowStyles=se({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return Be(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&Be(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,a,r){var o=ye(r,t,e,n.positionFixed),l=be(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",l),Be(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},Xe=function(){function e(t,n){var a=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};le(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(a.update)},this.update=j(this.update.bind(this)),this.options=se({},e.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(se({},e.Defaults.modifiers,r.modifiers)).forEach((function(t){a.options.modifiers[t]=se({},e.Defaults.modifiers[t]||{},r.modifiers?r.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return se({name:e},a.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&W(e.onLoad)&&e.onLoad(a.reference,a.popper,a.options,e,a.state)})),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return ie(e,[{key:"update",value:function(){return Ie.call(this)}},{key:"destroy",value:function(){return De.call(this)}},{key:"enableEventListeners",value:function(){return Te.call(this)}},{key:"disableEventListeners",value:function(){return Pe.call(this)}}]),e}();Xe.Utils=("undefined"!=typeof window?window:global).PopperUtils,Xe.placements=ke,Xe.Defaults=We;var Ye={exports:{}},Ze={exports:{}},Ue="__global_unique_id__",Je=function(){return u[Ue]=(u[Ue]||0)+1};function Qe(e){return function(){return e}}var qe=function(){};qe.thatReturns=Qe,qe.thatReturnsFalse=Qe(!1),qe.thatReturnsTrue=Qe(!0),qe.thatReturnsNull=Qe(null),qe.thatReturnsThis=function(){return this},qe.thatReturnsArgument=function(e){return e};var $e=qe;if("production"!==process.env.NODE_ENV){var Ke=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];var r=0,o="Warning: "+e.replace(/%s/g,(function(){return n[r++]}));"undefined"!=typeof console&&console.error(o);try{throw new Error(o)}catch(e){}};$e=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,a=Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];Ke.apply(void 0,[t].concat(a))}}}var et=$e;!function(e,t){t.__esModule=!0;var n=l.default;i(n);var a=i(c.default),r=i(Je),o=i(et);function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=1073741823;function p(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,a){e=n,t.forEach((function(t){return t(e,a)}))}}}t.default=function(e,t){var l,i,c="__create-react-context-"+(0,r.default)()+"__",m=function(e){function n(){var t,a;s(this,n);for(var r=arguments.length,o=Array(r),l=0;l<r;l++)o[l]=arguments[l];return t=a=u(this,e.call.apply(e,[this].concat(o))),a.emitter=p(a.props.value),u(a,t)}return d(n,e),n.prototype.getChildContext=function(){var e;return(e={})[c]=this.emitter,e},n.prototype.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n=this.props.value,a=e.value,r=void 0;((l=n)===(i=a)?0!==l||1/l==1/i:l!=l&&i!=i)?r=0:(r="function"==typeof t?t(n,a):f,"production"!==process.env.NODE_ENV&&(0,o.default)((r&f)===r,"calculateChangedBits: Expected the return value to be a 31-bit integer. Instead received: %s",r),0!==(r|=0)&&this.emitter.set(e.value,r))}var l,i},n.prototype.render=function(){return this.props.children},n}(n.Component);m.childContextTypes=((l={})[c]=a.default.object.isRequired,l);var g=function(t){function n(){var e,a;s(this,n);for(var r=arguments.length,o=Array(r),l=0;l<r;l++)o[l]=arguments[l];return e=a=u(this,t.call.apply(t,[this].concat(o))),a.state={value:a.getValue()},a.onUpdate=function(e,t){0!=((0|a.observedBits)&t)&&a.setState({value:a.getValue()})},u(a,e)}return d(n,t),n.prototype.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?f:t},n.prototype.componentDidMount=function(){this.context[c]&&this.context[c].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?f:e},n.prototype.componentWillUnmount=function(){this.context[c]&&this.context[c].off(this.onUpdate)},n.prototype.getValue=function(){return this.context[c]?this.context[c].get():e},n.prototype.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(n.Component);return g.contextTypes=((i={})[c]=a.default.object,i),{Provider:m,Consumer:g}},e.exports=t.default}(Ze,Ze.exports),function(e,t){t.__esModule=!0;var n=r(l.default),a=r(Ze.exports);function r(e){return e&&e.__esModule?e:{default:e}}t.default=n.default.createContext||a.default,e.exports=t.default}(Ye,Ye.exports);var tt=d(Ye.exports)({setReferenceNode:void 0,referenceNode:void 0}),nt=function(e){function t(){var t;return t=e.call(this)||this,R(F(F(t)),"setReferenceNode",(function(e){e&&t.state.context.referenceNode!==e&&t.setState((function(t){var n=t.context;return{context:m({},n,{referenceNode:e})}}))})),t.state={context:{setReferenceNode:t.setReferenceNode,referenceNode:void 0}},t}return G(t,e),t.prototype.render=function(){return i.createElement(tt.Provider,{value:this.state.context},this.props.children)},t}(i.Component),at=function(e){return Array.isArray(e)?e[0]:e},rt=function(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return e.apply(void 0,n)}},ot={position:"absolute",top:0,left:0,opacity:0,pointerEvents:"none"},lt={},it=function(e){function t(){for(var t,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return t=e.call.apply(e,[this].concat(a))||this,R(F(F(t)),"state",{data:void 0,placement:void 0}),R(F(F(t)),"popperInstance",void 0),R(F(F(t)),"popperNode",null),R(F(F(t)),"arrowNode",null),R(F(F(t)),"setPopperNode",(function(e){e&&t.popperNode!==e&&(rt(t.props.innerRef,e),t.popperNode=e,t.updatePopperInstance())})),R(F(F(t)),"setArrowNode",(function(e){t.arrowNode=e})),R(F(F(t)),"updateStateModifier",{enabled:!0,order:900,fn:function(e){var n=e.placement;return t.setState({data:e,placement:n}),e}}),R(F(F(t)),"getOptions",(function(){return{placement:t.props.placement,eventsEnabled:t.props.eventsEnabled,positionFixed:t.props.positionFixed,modifiers:m({},t.props.modifiers,{arrow:m({},t.props.modifiers&&t.props.modifiers.arrow,{enabled:!!t.arrowNode,element:t.arrowNode}),applyStyle:{enabled:!1},updateStateModifier:t.updateStateModifier})}})),R(F(F(t)),"getPopperStyle",(function(){return t.popperNode&&t.state.data?m({position:t.state.data.offsets.popper.position},t.state.data.styles):ot})),R(F(F(t)),"getPopperPlacement",(function(){return t.state.data?t.state.placement:void 0})),R(F(F(t)),"getArrowStyle",(function(){return t.arrowNode&&t.state.data?t.state.data.arrowStyles:lt})),R(F(F(t)),"getOutOfBoundariesState",(function(){return t.state.data?t.state.data.hide:void 0})),R(F(F(t)),"destroyPopperInstance",(function(){t.popperInstance&&(t.popperInstance.destroy(),t.popperInstance=null)})),R(F(F(t)),"updatePopperInstance",(function(){t.destroyPopperInstance();var e=F(F(t)).popperNode,n=t.props.referenceElement;n&&e&&(t.popperInstance=new Xe(n,e,t.getOptions()))})),R(F(F(t)),"scheduleUpdate",(function(){t.popperInstance&&t.popperInstance.scheduleUpdate()})),t}G(t,e);var n=t.prototype;return n.componentDidUpdate=function(e,t){this.props.placement!==e.placement||this.props.referenceElement!==e.referenceElement||this.props.positionFixed!==e.positionFixed?this.updatePopperInstance():this.props.eventsEnabled!==e.eventsEnabled&&this.popperInstance&&(this.props.eventsEnabled?this.popperInstance.enableEventListeners():this.popperInstance.disableEventListeners()),t.placement!==this.state.placement&&this.scheduleUpdate()},n.componentWillUnmount=function(){rt(this.props.innerRef,null),this.destroyPopperInstance()},n.render=function(){return at(this.props.children)({ref:this.setPopperNode,style:this.getPopperStyle(),placement:this.getPopperPlacement(),outOfBoundaries:this.getOutOfBoundariesState(),scheduleUpdate:this.scheduleUpdate,arrowProps:{ref:this.setArrowNode,style:this.getArrowStyle()}})},t}(i.Component);function ct(e){var t=e.referenceElement,n=g(e,["referenceElement"]);return i.createElement(tt.Consumer,null,(function(e){var a=e.referenceNode;return i.createElement(it,m({referenceElement:void 0!==t?t:a},n))}))}R(it,"defaultProps",{placement:"bottom",eventsEnabled:!0,referenceElement:void 0,positionFixed:!1}),Xe.placements;var st=function(){};if("production"!==process.env.NODE_ENV){var ut=function(e,t){var n=arguments.length;t=new Array(n>1?n-1:0);for(var a=1;a<n;a++)t[a-1]=arguments[a];var r=0,o="Warning: "+e.replace(/%s/g,(function(){return t[r++]}));"undefined"!=typeof console&&console.error(o);try{throw new Error(o)}catch(e){}};st=function(e,t,n){var a=arguments.length;n=new Array(a>2?a-2:0);for(var r=2;r<a;r++)n[r-2]=arguments[r];if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||ut.apply(null,[t].concat(n))}}var dt=st,ft=function(e){function t(){for(var t,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return t=e.call.apply(e,[this].concat(a))||this,R(F(F(t)),"refHandler",(function(e){rt(t.props.innerRef,e),rt(t.props.setReferenceNode,e)})),t}return G(t,e),t.prototype.render=function(){return dt(Boolean(this.props.setReferenceNode),"`Reference` should not be used outside of a `Manager` component."),at(this.props.children)({ref:this.refHandler})},t}(i.Component);function pt(e){return i.createElement(tt.Consumer,null,(function(t){var n=t.setReferenceNode;return i.createElement(ft,m({setReferenceNode:n},e))}))}var mt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{target:document.body,isDisabled:!1},n=function(n){var a=l.default.createElement(ct,{placement:e,modifiers:{preventOverflow:{enabled:!1},hide:{enabled:!1}}},n);return t.isDisabled?a:s.default.createPortal(a,t.target)};return{mountPopperNode:n}},gt=function(e,t){return e?"as--".concat(t?"".concat(t,"-"):"").concat(e):""},ht=function(e){var t=e.value,n=e.prefix,a=void 0===n?"":n,r=e.isResponsive,o=void 0!==r&&r,l=e.allowed,i=void 0===l?[]:l;if(!t||!0===t)return"";var c=["","xxs","xs","sm","md","lg","xl","xxl"],s=o?i.reduce((function(e,t){return[].concat(k(e),k(c.map((function(e){return e?"".concat(t,"@").concat(e):t}))))}),[]):i;return t.toString().split(" ").filter((function(e){return!s.length||s.includes(e)})).map((function(e){return gt(e,a)}))},vt=27,bt=9,yt=function(e,t){var n={};return Object.keys(e).forEach((function(a){-1===t.indexOf(a)&&(n[a]=e[a])})),n};var wt={children:c.default.node,className:c.default.string,defaultClassName:c.default.oneOfType([c.default.string,c.default.arrayOf(c.default.string)]),isOpen:c.default.bool,onToggle:c.default.func,size:c.default.oneOf(["","sm","lg"]),tag:c.default.elementType},Ct=l.default.createContext((function(){})),Nt=t.forwardRef((function(e,n){var a=e.children,r=e.isOpen,o=e.onToggle,i=e.tag,c=e.defaultClassName,s=e.className,u=e.size,d=v(e,["children","isOpen","onToggle","tag","defaultClassName","className","size"]),f=t.useState(r),p=T(f,2),g=p[0],h=p[1],b=y(c,s,gt(u),{"as--open":g});return l.default.createElement(Ct.Provider,{value:function(){h((function(e){return o(!e),!e}))}},l.default.createElement(i,m({className:b,ref:n},d),a))}));Nt.propTypes=wt,Nt.defaultProps={children:"",className:"",defaultClassName:"sui-o-accordion__item",isOpen:!1,onToggle:function(){},size:"",tag:"div"};var xt={children:c.default.node.isRequired,tag:c.default.elementType,defaultClassName:c.default.oneOfType([c.default.string,c.default.arrayOf(c.default.string)]),className:c.default.string,onClick:c.default.func},Et=function(e){var t=e.tag,n=e.defaultClassName,a=e.className,r=e.onClick,o=v(e,["tag","defaultClassName","className","onClick"]),i=l.default.useContext(Ct),c=y(n,a);return l.default.createElement(t,m({onClick:function(e){i(e),r&&r()},className:c},o))};Et.propTypes=xt,Et.defaultProps={tag:"div",defaultClassName:"sui-o-accordion__title",className:"",onClick:function(){}};var It=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};function Ot(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var zt=function(e,t,n){return t&&Ot(e.prototype,t),n&&Ot(e,n),e};function Dt(e,t){return At=Dt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Dt(e,t)}var At=Dt,Mt=At;var Tt=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mt(e,t)};function Pt(e){return St=Pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pt(e)}var St=Pt,Bt=St,Vt=F;var Lt=function(e,t){return!t||"object"!==Bt(t)&&"function"!=typeof t?Vt(e):t};function kt(e){return Gt=kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},kt(e)}var Gt=kt,Ft=Gt;function Rt(){return(Rt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var _t=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if("production"!==process.env.NODE_ENV){var n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n}if(this.isSpeedy){var a=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{a.insertRule(e,a.cssRules.length)}catch(t){"production"===process.env.NODE_ENV||/:(-moz-placeholder|-ms-input-placeholder|-moz-read-write|-moz-read-only){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),Ht="-ms-",jt="-moz-",Wt="-webkit-",Xt="comm",Yt="rule",Zt="decl",Ut=Math.abs,Jt=String.fromCharCode;function Qt(e){return e.trim()}function qt(e,t,n){return e.replace(t,n)}function $t(e,t){return e.indexOf(t)}function Kt(e,t){return 0|e.charCodeAt(t)}function en(e,t,n){return e.slice(t,n)}function tn(e){return e.length}function nn(e){return e.length}function an(e,t){return t.push(e),e}var rn=1,on=1,ln=0,cn=0,sn=0,un="";function dn(e,t,n,a,r,o,l){return{value:e,root:t,parent:n,type:a,props:r,children:o,line:rn,column:on,length:l,return:""}}function fn(e,t,n){return dn(e,t.root,t.parent,n,t.props,t.children,0)}function pn(){return sn=cn>0?Kt(un,--cn):0,on--,10===sn&&(on=1,rn--),sn}function mn(){return sn=cn<ln?Kt(un,cn++):0,on++,10===sn&&(on=1,rn++),sn}function gn(){return Kt(un,cn)}function hn(){return cn}function vn(e,t){return en(un,e,t)}function bn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function yn(e){return rn=on=1,ln=tn(un=e),cn=0,[]}function wn(e){return un="",e}function Cn(e){return Qt(vn(cn-1,function e(t){for(;mn();)switch(sn){case t:return cn;case 34:case 39:return e(34===t||39===t?t:sn);case 40:41===t&&e(t);break;case 92:mn()}return cn}(91===e?e+2:40===e?e+1:e)))}function Nn(e){for(;(sn=gn())&&sn<33;)mn();return bn(e)>2||bn(sn)>3?"":" "}function xn(e,t){for(;--t&&mn()&&!(sn<48||sn>102||sn>57&&sn<65||sn>70&&sn<97););return vn(e,hn()+(t<6&&32==gn()&&32==mn()))}function En(e,t){for(;mn()&&e+sn!==57&&(e+sn!==84||47!==gn()););return"/*"+vn(t,cn-1)+"*"+Jt(47===e?e:mn())}function In(e){for(;!bn(gn());)mn();return vn(e,cn)}function On(e){return wn(function e(t,n,a,r,o,l,i,c,s){var u=0,d=0,f=i,p=0,m=0,g=0,h=1,v=1,b=1,y=0,w="",C=o,N=l,x=r,E=w;for(;v;)switch(g=y,y=mn()){case 34:case 39:case 91:case 40:E+=Cn(y);break;case 9:case 10:case 13:case 32:E+=Nn(g);break;case 92:E+=xn(hn()-1,7);continue;case 47:switch(gn()){case 42:case 47:an(Dn(En(mn(),hn()),n,a),s);break;default:E+="/"}break;case 123*h:c[u++]=tn(E)*b;case 125*h:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+d:m>0&&tn(E)-f&&an(m>32?An(E+";",r,a,f-1):An(qt(E," ","")+";",r,a,f-2),s);break;case 59:E+=";";default:if(an(x=zn(E,n,a,u,d,o,c,w,C=[],N=[],f),l),123===y)if(0===d)e(E,n,x,x,C,l,f,c,N);else switch(p){case 100:case 109:case 115:e(t,x,x,r&&an(zn(t,x,x,0,0,o,c,w,o,C=[],f),N),o,N,f,c,r?C:N);break;default:e(E,x,x,x,[""],N,f,c,N)}}u=d=m=0,h=b=1,w=E="",f=i;break;case 58:f=1+tn(E),m=g;default:if(h<1)if(123==y)--h;else if(125==y&&0==h++&&125==pn())continue;switch(E+=Jt(y),y*h){case 38:b=d>0?1:(E+="\f",-1);break;case 44:c[u++]=(tn(E)-1)*b,b=1;break;case 64:45===gn()&&(E+=Cn(mn())),p=gn(),d=tn(w=E+=In(hn())),y++;break;case 45:45===g&&2==tn(E)&&(h=0)}}return l}("",null,null,null,[""],e=yn(e),0,[0],e))}function zn(e,t,n,a,r,o,l,i,c,s,u){for(var d=r-1,f=0===r?o:[""],p=nn(f),m=0,g=0,h=0;m<a;++m)for(var v=0,b=en(e,d+1,d=Ut(g=l[m])),y=e;v<p;++v)(y=Qt(g>0?f[v]+" "+b:qt(b,/&\f/g,f[v])))&&(c[h++]=y);return dn(e,t,n,0===r?Yt:i,c,s,u)}function Dn(e,t,n){return dn(e,t,n,Xt,Jt(sn),en(e,2,-2),0)}function An(e,t,n,a){return dn(e,t,n,Zt,en(e,0,a),en(e,a+1,-1),a)}function Mn(e,t){switch(function(e,t){return(((t<<2^Kt(e,0))<<2^Kt(e,1))<<2^Kt(e,2))<<2^Kt(e,3)}(e,t)){case 5103:return Wt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Wt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Wt+e+jt+e+Ht+e+e;case 6828:case 4268:return Wt+e+Ht+e+e;case 6165:return Wt+e+Ht+"flex-"+e+e;case 5187:return Wt+e+qt(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return Wt+e+Ht+"flex-item-"+qt(e,/flex-|-self/,"")+e;case 4675:return Wt+e+Ht+"flex-line-pack"+qt(e,/align-content|flex-|-self/,"")+e;case 5548:return Wt+e+Ht+qt(e,"shrink","negative")+e;case 5292:return Wt+e+Ht+qt(e,"basis","preferred-size")+e;case 6060:return Wt+"box-"+qt(e,"-grow","")+Wt+e+Ht+qt(e,"grow","positive")+e;case 4554:return Wt+qt(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return qt(qt(qt(e,/(zoom-|grab)/,Wt+"$1"),/(image-set)/,Wt+"$1"),e,"")+e;case 5495:case 3959:return qt(e,/(image-set\([^]*)/,Wt+"$1$`$1");case 4968:return qt(qt(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+Wt+e+e;case 4095:case 3583:case 4068:case 2532:return qt(e,/(.+)-inline(.+)/,Wt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(tn(e)-1-t>6)switch(Kt(e,t+1)){case 109:if(45!==Kt(e,t+4))break;case 102:return qt(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+jt+(108==Kt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~$t(e,"stretch")?Mn(qt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Kt(e,t+1))break;case 6444:switch(Kt(e,tn(e)-3-(~$t(e,"!important")&&10))){case 107:return qt(e,":",":"+Wt)+e;case 101:return qt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Wt+(45===Kt(e,14)?"inline-":"")+"box$3$1"+Wt+"$2$3$1"+Ht+"$2box$3")+e}break;case 5936:switch(Kt(e,t+11)){case 114:return Wt+e+Ht+qt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Wt+e+Ht+qt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Wt+e+Ht+qt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Wt+e+Ht+e+e}return e}function Tn(e,t){for(var n="",a=nn(e),r=0;r<a;r++)n+=t(e[r],r,e,t)||"";return n}function Pn(e,t,n,a){switch(e.type){case"@import":case Zt:return e.return=e.return||e.value;case Xt:return"";case Yt:e.value=e.props.join(",")}return tn(n=Tn(e.children,a))?e.return=e.value+"{"+n+"}":""}function Sn(e){var t=nn(e);return function(n,a,r,o){for(var l="",i=0;i<t;i++)l+=e[i](n,a,r,o)||"";return l}}function Bn(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Vn,Ln,kn=function(e,t){return wn(function(e,t){var n=-1,a=44;do{switch(bn(a)){case 0:38===a&&12===gn()&&(t[n]=1),e[n]+=In(cn-1);break;case 2:e[n]+=Cn(a);break;case 4:if(44===a){e[++n]=58===gn()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Jt(a)}}while(a=mn());return e}(yn(e),t))},Gn=new WeakMap,Fn=function(e){if("rule"===e.type&&e.parent&&e.length){for(var t=e.value,n=e.parent,a=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Gn.get(n))&&!a){Gn.set(e,!0);for(var r=[],o=kn(t,r),l=n.props,i=0,c=0;i<o.length;i++)for(var s=0;s<l.length;s++,c++)e.props[c]=r[i]?o[i].replace(/&\f/g,l[s]):l[s]+" "+o[i]}}},Rn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},_n=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},Hn=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},jn=function(e,t,n){_n(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Hn(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!_n(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Hn(e)))},Wn="undefined"!=typeof document,Xn=Wn?void 0:(Vn=function(){return Bn((function(){var e={};return function(t){return e[t]}}))},Ln=new WeakMap,function(e){if(Ln.has(e))return Ln.get(e);var t=Vn(e);return Ln.set(e,t),t}),Yn=[function(e,t,n,a){if(!e.return)switch(e.type){case Zt:e.return=Mn(e.value,e.length);break;case"@keyframes":return Tn([fn(qt(e.value,"@","@"+Wt),e,"")],a);case Yt:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Tn([fn(qt(t,/:(read-\w+)/,":-moz-$1"),e,"")],a);case"::placeholder":return Tn([fn(qt(t,/:(plac\w+)/,":-webkit-input-$1"),e,""),fn(qt(t,/:(plac\w+)/,":-moz-$1"),e,""),fn(qt(t,/:(plac\w+)/,Ht+"input-$1"),e,"")],a)}return""}))}}],Zn=function(e){var t=e.key;if("production"!==process.env.NODE_ENV&&!t)throw new Error("You h