Plugin Directory

Changeset 2894359


Ignore:
Timestamp:
04/05/2023 12:40:31 PM (3 years ago)
Author:
mauryaratan
Message:

Update to version 2.0.2 from GitHub

Location:
analogwp-templates
Files:
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • analogwp-templates/tags/2.0.2/analogwp-templates.php

    r2865003 r2894359  
    1111 * Plugin URI:  https://analogwp.com/
    1212 * Description: Style Kits extends the Elementor theme styles editor with more global styling options. Boost your design workflow in Elementor with intuitive global controls and theme style presets.
    13  * Version:     2.0.1
     13 * Version:     2.0.2
    1414 * Author:      AnalogWP
    1515 * Author URI:  https://analogwp.com/
     
    1717 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1818 * Text Domain: ang
    19  * Elementor tested up to: 3.11.0
    20  * Elementor Pro tested up to: 3.11.0
     19 * Elementor tested up to: 3.12.1
     20 * Elementor Pro tested up to: 3.12.1
    2121 */
    2222
     
    2424
    2525define( 'ANG_ELEMENTOR_MINIMUM', '3.5.0' );
    26 define( 'ANG_PHP_MINIMUM', '5.6.0' );
    27 define( 'ANG_WP_MINIMUM', '5.2' );
    28 define( 'ANG_VERSION', '2.0.1' );
     26define( 'ANG_PHP_MINIMUM', '7.0' );
     27define( 'ANG_WP_MINIMUM', '5.9' );
     28define( 'ANG_VERSION', '2.0.2' );
    2929define( 'ANG_PLUGIN_FILE', __FILE__ );
    3030define( 'ANG_PLUGIN_URL', plugin_dir_url( ANG_PLUGIN_FILE ) );
     
    4545        wp_die(
    4646            /* translators: %s: version number */
    47             esc_html( sprintf( __( 'Style Kit for Elementor requires PHP version %s', 'ang' ), '5.6.0' ) ),
     47            esc_html( sprintf( __( 'Style Kit for Elementor requires PHP version %s', 'ang' ), ANG_PHP_MINIMUM ) ),
    4848            esc_html__( 'Error Activating', 'ang' )
    4949        );
  • analogwp-templates/tags/2.0.2/assets/js/app.js

    r2859992 r2894359  
    99@license MIT
    1010*/
    11 var getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable;module.exports=function(){try{if(!Object.assign)return!1;var test1=new String("abc");if(test1[5]="de","5"===Object.getOwnPropertyNames(test1)[0])return!1;for(var test2={},i=0;i<10;i++)test2["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(test2).map(function(n){return test2[n]}).join(""))return!1;var test3={};return"abcdefghijklmnopqrst".split("").forEach(function(letter){test3[letter]=letter}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},test3)).join("")}catch(err){return!1}}()?Object.assign:function(target,source){for(var from,symbols,to=toObject(target),s=1;s<arguments.length;s++){from=Object(arguments[s]);for(var key in from)hasOwnProperty.call(from,key)&&(to[key]=from[key]);if(getOwnPropertySymbols){symbols=getOwnPropertySymbols(from);for(var i=0;i<symbols.length;i++)propIsEnumerable.call(from,symbols[i])&&(to[symbols[i]]=from[symbols[i]])}}return to}},function(module,__webpack_exports__,__webpack_require__){"use strict";var _wp$components=wp.components,__=(_wp$components.ExternalLink,_wp$components.Button,wp.i18n.__),ProModal=function(){return React.createElement("div",{className:"pro-modal-container"},React.createElement("p",null,__("Get unlimited access to the Style Kits library and features with the PRO version.","ang")),React.createElement("a",{href:"https://analogwp.com/pricing/?utm_medium=plugin&utm_source=library&utm_campaign=style+kits+pro",target:"_blank"},__("View Plans","ang")))};__webpack_exports__.a=ProModal},function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0_classnames__=__webpack_require__(5),__WEBPACK_IMPORTED_MODULE_0_classnames___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__),__WEBPACK_IMPORTED_MODULE_1__helpers_Image__=__webpack_require__(75),__WEBPACK_IMPORTED_MODULE_2__icons_star__=__webpack_require__(24),__WEBPACK_IMPORTED_MODULE_3__utils__=__webpack_require__(13),decodeEntities=wp.htmlEntities.decodeEntities,__=wp.i18n.__,_wp$components=wp.components,Button=_wp$components.Button,Card=_wp$components.Card,CardBody=_wp$components.CardBody,CardFooter=_wp$components.CardFooter,Template=function(_ref){var template=_ref.template,setModalContent=_ref.setModalContent,importLayout=_ref.importLayout,favorites=_ref.favorites,makeFavorite=_ref.makeFavorite,isValid=function(isPro){return!(isPro&&"valid"!==AGWP.license.status)},fallbackImage=AGWP.pluginURL+"assets/img/placeholder.svg";return React.createElement("li",null,React.createElement(Card,null,React.createElement(CardBody,null,Object(__WEBPACK_IMPORTED_MODULE_3__utils__.e)(template.published)>-14&&React.createElement("span",{className:"new"},__("New","ang")),React.createElement("figure",null,template.thumbnail?React.createElement(__WEBPACK_IMPORTED_MODULE_1__helpers_Image__.a,{template:template}):React.createElement("img",{src:fallbackImage}),React.createElement("div",{className:"actions"},React.createElement(Button,{isSecondary:!0,className:"black-transparent",onClick:function(){return setModalContent(template)}},__("Preview","ang")),!isValid(template.is_pro)&&React.createElement("a",{className:"ang-promo",href:"https://analogwp.com/style-kits-pro/?utm_medium=plugin&utm_source=library&utm_campaign=style+kits+pro",target:"_blank"},React.createElement(Button,{isPrimary:!0},__("Go Pro","ang"))),isValid(template.is_pro)&&React.createElement(Button,{isPrimary:!0,onClick:function(){return importLayout(template)}},__("Import","ang"))),React.createElement("button",{className:__WEBPACK_IMPORTED_MODULE_0_classnames___default()("button-plain favorite",{"is-active":template.id in favorites}),onClick:function(){return makeFavorite(template.id)}},React.createElement(__WEBPACK_IMPORTED_MODULE_2__icons_star__.a,null)))),React.createElement(CardFooter,null,React.createElement("div",{className:"content"},React.createElement("span",null,React.createElement("h3",null,decodeEntities(template.title)),template.tags&&React.createElement("div",{className:"tags"},template.tags.map(function(tag){return React.createElement("span",{key:tag},tag)}))),template.is_pro&&React.createElement("span",{className:"pro"},__("Pro","ang"))))))};__webpack_exports__.a=Template},function(module,__webpack_exports__,__webpack_require__){"use strict";function _toConsumableArray(arr){return Object(__WEBPACK_IMPORTED_MODULE_0__arrayWithoutHoles__.a)(arr)||Object(__WEBPACK_IMPORTED_MODULE_1__iterableToArray__.a)(arr)||Object(__WEBPACK_IMPORTED_MODULE_2__nonIterableSpread__.a)()}__webpack_exports__.a=_toConsumableArray;var __WEBPACK_IMPORTED_MODULE_0__arrayWithoutHoles__=__webpack_require__(89),__WEBPACK_IMPORTED_MODULE_1__iterableToArray__=__webpack_require__(90),__WEBPACK_IMPORTED_MODULE_2__nonIterableSpread__=__webpack_require__(91)},function(module,__webpack_exports__,__webpack_require__){"use strict";function areInputsEqual(newInputs,lastInputs){if(newInputs.length!==lastInputs.length)return!1;for(var i=0;i<newInputs.length;i++)if(newInputs[i]!==lastInputs[i])return!1;return!0}function memoizeOne(resultFn,isEqual){function memoized(){for(var newArgs=[],_i=0;_i<arguments.length;_i++)newArgs[_i]=arguments[_i];return calledOnce&&lastThis===this&&isEqual(newArgs,lastArgs)?lastResult:(lastResult=resultFn.apply(this,newArgs),calledOnce=!0,lastThis=this,lastArgs=newArgs,lastResult)}void 0===isEqual&&(isEqual=areInputsEqual);var lastThis,lastResult,lastArgs=[],calledOnce=!1;return memoized}__webpack_exports__.a=memoizeOne},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(process){function toSheet(block){block&&Sheet.current.insert(block+"}")}var __WEBPACK_IMPORTED_MODULE_0__emotion_sheet__=__webpack_require__(39),__WEBPACK_IMPORTED_MODULE_1__emotion_stylis__=__webpack_require__(94),Sheet=(__webpack_require__(95),{current:null}),ruleSheet=function(context,content,selectors,parents,line,column,length,ns,depth,at){switch(context){case 1:switch(content.charCodeAt(0)){case 64:return Sheet.current.insert(content+";"),"";case 108:if(98===content.charCodeAt(2))return""}break;case 2:if(0===ns)return content+"/*|*/";break;case 3:switch(ns){case 102:case 112:return Sheet.current.insert(selectors[0]+content),"";default:return content+(0===at?"/*|*/":"")}case-2:content.split("/*|*/}").forEach(toSheet)}},createCache=function(options){void 0===options&&(options={});var stylisOptions,key=options.key||"css";void 0!==options.prefix&&(stylisOptions={prefix:options.prefix});var stylis=new __WEBPACK_IMPORTED_MODULE_1__emotion_stylis__.a(stylisOptions);if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(key))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+key+'" was passed');var container,inserted={};container=options.container||document.head;var nodes=document.querySelectorAll("style[data-emotion-"+key+"]");Array.prototype.forEach.call(nodes,function(node){node.getAttribute("data-emotion-"+key).split(" ").forEach(function(id){inserted[id]=!0}),node.parentNode!==container&&container.appendChild(node)});var _insert;if(stylis.use(options.stylisPlugins)(ruleSheet),_insert=function(selector,serialized,sheet,shouldCache){var name=serialized.name;if(Sheet.current=sheet,"production"!==process.env.NODE_ENV&&void 0!==serialized.map){var map=serialized.map;Sheet.current={insert:function(rule){sheet.insert(rule+map)}}}stylis(selector,serialized.styles),shouldCache&&(cache.inserted[name]=!0)},"production"!==process.env.NODE_ENV){var commentStart=/\/\*/g,commentEnd=/\*\//g;stylis.use(function(context,content){switch(context){case-1:for(;commentStart.test(content);){commentEnd.lastIndex=commentStart.lastIndex;{if(!commentEnd.test(content))throw new Error('Your styles have an unterminated comment ("/*" without corresponding "*/").');commentStart.lastIndex=commentEnd.lastIndex}}commentStart.lastIndex=0}}),stylis.use(function(context,content,selectors){switch(context){case-1:var unsafePseudoClasses=content.match(/(:first|:nth|:nth-last)-child/g);unsafePseudoClasses&&!0!==cache.compat&&unsafePseudoClasses.forEach(function(unsafePseudoClass){var ignoreRegExp=new RegExp(unsafePseudoClass+".*\\/\\* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason \\*\\/"),ignore=ignoreRegExp.test(content);unsafePseudoClass&&!ignore&&console.error('The pseudo class "'+unsafePseudoClass+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+unsafePseudoClass.split("-child")[0]+'-of-type".')})}})}var cache={key:key,sheet:new __WEBPACK_IMPORTED_MODULE_0__emotion_sheet__.a({key:key,container:container,nonce:options.nonce,speedy:options.speedy}),nonce:options.nonce,inserted:inserted,registered:{},insert:_insert};return cache};__webpack_exports__.a=createCache}).call(__webpack_exports__,__webpack_require__(0))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(process){function sheetForTag(tag){if(tag.sheet)return tag.sheet;for(var i=0;i<document.styleSheets.length;i++)if(document.styleSheets[i].ownerNode===tag)return document.styleSheets[i]}function createStyleElement(options){var tag=document.createElement("style");return tag.setAttribute("data-emotion",options.key),void 0!==options.nonce&&tag.setAttribute("nonce",options.nonce),tag.appendChild(document.createTextNode("")),tag}__webpack_require__.d(__webpack_exports__,"a",function(){return StyleSheet});var StyleSheet=function(){function StyleSheet(options){this.isSpeedy=void 0===options.speedy?"production"===process.env.NODE_ENV:options.speedy,this.tags=[],this.ctr=0,this.nonce=options.nonce,this.key=options.key,this.container=options.container,this.before=null}var _proto=StyleSheet.prototype;return _proto.insert=function(rule){if(this.ctr%(this.isSpeedy?65e3:1)==0){var before,_tag=createStyleElement(this);before=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(_tag,before),this.tags.push(_tag)}var tag=this.tags[this.tags.length-1];if(this.isSpeedy){var sheet=sheetForTag(tag);try{var isImportRule=105===rule.charCodeAt(1)&&64===rule.charCodeAt(0);sheet.insertRule(rule,isImportRule?0:sheet.cssRules.length)}catch(e){"production"!==process.env.NODE_ENV&&console.warn('There was a problem inserting the following rule: "'+rule+'"',e)}}else tag.appendChild(document.createTextNode(rule));this.ctr++},_proto.flush=function(){this.tags.forEach(function(tag){return tag.parentNode.removeChild(tag)}),this.tags=[],this.ctr=0},StyleSheet}()}).call(__webpack_exports__,__webpack_require__(0))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(process){function handleInterpolation(mergedProps,registered,interpolation,couldBeSelectorInterpolation){if(null==interpolation)return"";if(void 0!==interpolation.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===interpolation.toString())throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");return interpolation}switch(typeof interpolation){case"boolean":return"";case"object":if(1===interpolation.anim)return cursor={name:interpolation.name,styles:interpolation.styles,next:cursor},interpolation.name;if(void 0!==interpolation.styles){var next=interpolation.next;if(void 0!==next)for(;void 0!==next;)cursor={name:next.name,styles:next.styles,next:cursor},next=next.next;var styles=interpolation.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==interpolation.map&&(styles+=interpolation.map),styles}return createStringFromObject(mergedProps,registered,interpolation);case"function":if(void 0!==mergedProps){var previousCursor=cursor,result=interpolation(mergedProps);return cursor=previousCursor,handleInterpolation(mergedProps,registered,result,couldBeSelectorInterpolation)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var matched=[],replaced=interpolation.replace(animationRegex,function(match,p1,p2){var fakeVarName="animation"+matched.length;return matched.push("const "+fakeVarName+" = keyframes`"+p2.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+fakeVarName+"}"});matched.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(matched,["`"+replaced+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+replaced+"`")}}if(null==registered)return interpolation;var cached=registered[interpolation];return"production"!==process.env.NODE_ENV&&couldBeSelectorInterpolation&&shouldWarnAboutInterpolatingClassNameFromCss&&void 0!==cached&&(console.error("Interpolating a className from css`` is not recommended and will cause problems with composition.\nInterpolating a className from css`` will be completely unsupported in a future major version of Emotion"),shouldWarnAboutInterpolatingClassNameFromCss=!1),void 0===cached||couldBeSelectorInterpolation?interpolation:cached}function createStringFromObject(mergedProps,registered,obj){var string="";if(Array.isArray(obj))for(var i=0;i<obj.length;i++)string+=handleInterpolation(mergedProps,registered,obj[i],!1);else for(var _key in obj){var value=obj[_key];if("object"!=typeof value)null!=registered&&void 0!==registered[value]?string+=_key+"{"+registered[value]+"}":isProcessableValue(value)&&(string+=processStyleName(_key)+":"+processStyleValue(_key,value)+";");else{if("NO_COMPONENT_SELECTOR"===_key&&"production"!==process.env.NODE_ENV)throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");if(!Array.isArray(value)||"string"!=typeof value[0]||null!=registered&&void 0!==registered[value[0]]){var interpolated=handleInterpolation(mergedProps,registered,value,!1);switch(_key){case"animation":case"animationName":string+=processStyleName(_key)+":"+interpolated+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===_key&&console.error(UNDEFINED_AS_OBJECT_KEY_ERROR),string+=_key+"{"+interpolated+"}"}}else for(var _i=0;_i<value.length;_i++)isProcessableValue(value[_i])&&(string+=processStyleName(_key)+":"+processStyleValue(_key,value[_i])+";")}}return string}__webpack_require__.d(__webpack_exports__,"a",function(){return serializeStyles});var __WEBPACK_IMPORTED_MODULE_0__emotion_hash__=__webpack_require__(97),__WEBPACK_IMPORTED_MODULE_1__emotion_unitless__=__webpack_require__(98),__WEBPACK_IMPORTED_MODULE_2__emotion_memoize__=__webpack_require__(99),ILLEGAL_ESCAPE_SEQUENCE_ERROR="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",UNDEFINED_AS_OBJECT_KEY_ERROR="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(property){return 45===property.charCodeAt(1)},isProcessableValue=function(value){return null!=value&&"boolean"!=typeof value},processStyleName=Object(__WEBPACK_IMPORTED_MODULE_2__emotion_memoize__.a)(function(styleName){return isCustomProperty(styleName)?styleName:styleName.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function(key,value){switch(key){case"animation":case"animationName":if("string"==typeof value)return value.replace(animationRegex,function(match,p1,p2){return cursor={name:p1,styles:p2,next:cursor},p1})}return 1===__WEBPACK_IMPORTED_MODULE_1__emotion_unitless__.a[key]||isCustomProperty(key)||"number"!=typeof value||0===value?value:value+"px"};if("production"!==process.env.NODE_ENV){var contentValuePattern=/(attr|calc|counters?|url)\(/,contentValues=["normal","none","counter","open-quote","close-quote","no-open-quote","no-close-quote","initial","inherit","unset"],oldProcessStyleValue=processStyleValue,msPattern=/^-ms-/,hyphenPattern=/-(.)/g,hyphenatedCache={};processStyleValue=function(key,value){"content"===key&&("string"!=typeof value||-1===contentValues.indexOf(value)&&!contentValuePattern.test(value)&&(value.charAt(0)!==value.charAt(value.length-1)||'"'!==value.charAt(0)&&"'"!==value.charAt(0)))&&console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+value+"\"'`");var processed=oldProcessStyleValue(key,value);return""===processed||isCustomProperty(key)||-1===key.indexOf("-")||void 0!==hyphenatedCache[key]||(hyphenatedCache[key]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+key.replace(msPattern,"ms-").replace(hyphenPattern,function(str,_char){return _char.toUpperCase()})+"?")),processed}}var sourceMapPattern,shouldWarnAboutInterpolatingClassNameFromCss=!0,labelPattern=/label:\s*([^\s;\n{]+)\s*;/g;"production"!==process.env.NODE_ENV&&(sourceMapPattern=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//);var cursor,serializeStyles=function(args,registered,mergedProps){if(1===args.length&&"object"==typeof args[0]&&null!==args[0]&&void 0!==args[0].styles)return args[0];var stringMode=!0,styles="";cursor=void 0;var strings=args[0];null==strings||void 0===strings.raw?(stringMode=!1,styles+=handleInterpolation(mergedProps,registered,strings,!1)):("production"!==process.env.NODE_ENV&&void 0===strings[0]&&console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR),styles+=strings[0]);for(var i=1;i<args.length;i++)styles+=handleInterpolation(mergedProps,registered,args[i],46===styles.charCodeAt(styles.length-1)),stringMode&&("production"!==process.env.NODE_ENV&&void 0===strings[i]&&console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR),styles+=strings[i]);var sourceMap;"production"!==process.env.NODE_ENV&&(styles=styles.replace(sourceMapPattern,function(match){return sourceMap=match,""})),labelPattern.lastIndex=0;for(var match,identifierName="";null!==(match=labelPattern.exec(styles));)identifierName+="-"+match[1];var name=Object(__WEBPACK_IMPORTED_MODULE_0__emotion_hash__.a)(styles)+identifierName;return"production"!==process.env.NODE_ENV?{name:name,styles:styles,map:sourceMap,next:cursor,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:name,styles:styles,next:cursor}}}).call(__webpack_exports__,__webpack_require__(0))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(process){function getMenuPlacement(_ref){var maxHeight=_ref.maxHeight,menuEl=_ref.menuEl,minHeight=_ref.minHeight,placement=_ref.placement,shouldScroll=_ref.shouldScroll,isFixedPosition=_ref.isFixedPosition,theme=_ref.theme,spacing=theme.spacing,scrollParent=Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.a)(menuEl),defaultState={placement:"bottom",maxHeight:maxHeight};if(!menuEl||!menuEl.offsetParent)return defaultState;var _scrollParent$getBoun=scrollParent.getBoundingClientRect(),scrollHeight=_scrollParent$getBoun.height,_menuEl$getBoundingCl=menuEl.getBoundingClientRect(),menuBottom=_menuEl$getBoundingCl.bottom,menuHeight=_menuEl$getBoundingCl.height,menuTop=_menuEl$getBoundingCl.top,_menuEl$offsetParent$=menuEl.offsetParent.getBoundingClientRect(),containerTop=_menuEl$offsetParent$.top,viewHeight=window.innerHeight,scrollTop=Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.b)(scrollParent),marginBottom=parseInt(getComputedStyle(menuEl).marginBottom,10),marginTop=parseInt(getComputedStyle(menuEl).marginTop,10),viewSpaceAbove=containerTop-marginTop,viewSpaceBelow=viewHeight-menuTop,scrollSpaceAbove=viewSpaceAbove+scrollTop,scrollSpaceBelow=scrollHeight-scrollTop-menuTop,scrollDown=menuBottom-viewHeight+scrollTop+marginBottom,scrollUp=scrollTop+menuTop-marginTop;switch(placement){case"auto":case"bottom":if(viewSpaceBelow>=menuHeight)return{placement:"bottom",maxHeight:maxHeight};if(scrollSpaceBelow>=menuHeight&&!isFixedPosition)return shouldScroll&&Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.c)(scrollParent,scrollDown,160),{placement:"bottom",maxHeight:maxHeight};if(!isFixedPosition&&scrollSpaceBelow>=minHeight||isFixedPosition&&viewSpaceBelow>=minHeight){shouldScroll&&Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.c)(scrollParent,scrollDown,160);return{placement:"bottom",maxHeight:isFixedPosition?viewSpaceBelow-marginBottom:scrollSpaceBelow-marginBottom}}if("auto"===placement||isFixedPosition){var _constrainedHeight=maxHeight,spaceAbove=isFixedPosition?viewSpaceAbove:scrollSpaceAbove;return spaceAbove>=minHeight&&(_constrainedHeight=Math.min(spaceAbove-marginBottom-spacing.controlHeight,maxHeight)),{placement:"top",maxHeight:_constrainedHeight}}if("bottom"===placement)return Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.l)(scrollParent,scrollDown),{placement:"bottom",maxHeight:maxHeight};break;case"top":if(viewSpaceAbove>=menuHeight)return{placement:"top",maxHeight:maxHeight};if(scrollSpaceAbove>=menuHeight&&!isFixedPosition)return shouldScroll&&Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.c)(scrollParent,scrollUp,160),{placement:"top",maxHeight:maxHeight};if(!isFixedPosition&&scrollSpaceAbove>=minHeight||isFixedPosition&&viewSpaceAbove>=minHeight){var _constrainedHeight2=maxHeight;return(!isFixedPosition&&scrollSpaceAbove>=minHeight||isFixedPosition&&viewSpaceAbove>=minHeight)&&(_constrainedHeight2=isFixedPosition?viewSpaceAbove-marginTop:scrollSpaceAbove-marginTop),shouldScroll&&Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.c)(scrollParent,scrollUp,160),{placement:"top",maxHeight:_constrainedHeight2}}return{placement:"bottom",maxHeight:maxHeight};default:throw new Error('Invalid placement provided "'.concat(placement,'".'))}return defaultState}function alignToControl(placement){var placementToCSSProp={bottom:"top",top:"bottom"};return placement?placementToCSSProp[placement]:"bottom"}function equal(a,b){if(a===b)return!0;if(a&&b&&"object"==Object(__WEBPACK_IMPORTED_MODULE_14__babel_runtime_helpers_esm_typeof__.a)(a)&&"object"==Object(__WEBPACK_IMPORTED_MODULE_14__babel_runtime_helpers_esm_typeof__.a)(b)){var i,length,key,arrA=isArray(a),arrB=isArray(b);if(arrA&&arrB){if((length=a.length)!=b.length)return!1;for(i=length;0!=i--;)if(!equal(a[i],b[i]))return!1;return!0}if(arrA!=arrB)return!1;var dateA=a instanceof Date,dateB=b instanceof Date;if(dateA!=dateB)return!1;if(dateA&&dateB)return a.getTime()==b.getTime();var regexpA=a instanceof RegExp,regexpB=b instanceof RegExp;if(regexpA!=regexpB)return!1;if(regexpA&&regexpB)return a.toString()==b.toString();var keys=keyList(a);if((length=keys.length)!==keyList(b).length)return!1;for(i=length;0!=i--;)if(!hasProp.call(b,keys[i]))return!1;for(i=length;0!=i--;)if(!("_owner"===(key=keys[i])&&a.$$typeof||equal(a[key],b[key])))return!1;return!0}return a!==a&&b!==b}function exportedEqual(a,b){try{return equal(a,b)}catch(error){if(error.message&&error.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",error.name,error.message),!1;throw error}}function _templateObject(){var data=Object(__WEBPACK_IMPORTED_MODULE_17__babel_runtime_helpers_esm_taggedTemplateLiteral__.a)(["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"]);return _templateObject=function(){return data},data}__webpack_require__.d(__webpack_exports__,"a",function(){return MenuPlacer}),__webpack_require__.d(__webpack_exports__,"b",function(){return containerCSS}),__webpack_require__.d(__webpack_exports__,"c",function(){return css}),__webpack_require__.d(__webpack_exports__,"d",function(){return clearIndicatorCSS}),__webpack_require__.d(__webpack_exports__,"e",function(){return dropdownIndicatorCSS}),__webpack_require__.d(__webpack_exports__,"f",function(){return groupHeadingCSS}),__webpack_require__.d(__webpack_exports__,"g",function(){return indicatorSeparatorCSS}),__webpack_require__.d(__webpack_exports__,"h",function(){return groupCSS}),__webpack_require__.d(__webpack_exports__,"i",function(){return inputCSS}),__webpack_require__.d(__webpack_exports__,"j",function(){return indicatorsContainerCSS}),__webpack_require__.d(__webpack_exports__,"k",function(){return loadingMessageCSS}),__webpack_require__.d(__webpack_exports__,"l",function(){return menuListCSS}),__webpack_require__.d(__webpack_exports__,"m",function(){return loadingIndicatorCSS}),__webpack_require__.d(__webpack_exports__,"n",function(){return menuCSS}),__webpack_require__.d(__webpack_exports__,"o",function(){return menuPortalCSS}),__webpack_require__.d(__webpack_exports__,"p",function(){return multiValueCSS}),__webpack_require__.d(__webpack_exports__,"q",function(){return multiValueLabelCSS}),__webpack_require__.d(__webpack_exports__,"r",function(){return multiValueRemoveCSS}),__webpack_require__.d(__webpack_exports__,"s",function(){return noOptionsMessageCSS}),__webpack_require__.d(__webpack_exports__,"t",function(){return optionCSS}),__webpack_require__.d(__webpack_exports__,"u",function(){return placeholderCSS}),__webpack_require__.d(__webpack_exports__,"v",function(){return css$1}),__webpack_require__.d(__webpack_exports__,"w",function(){return valueContainerCSS}),__webpack_require__.d(__webpack_exports__,"x",function(){return defaultComponents}),__webpack_require__.d(__webpack_exports__,"y",function(){return exportedEqual});var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__=__webpack_require__(14),__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__=__webpack_require__(15),__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectSpread__=__webpack_require__(30),__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__=__webpack_require__(16),__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__=__webpack_require__(17),__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_possibleConstructorReturn__=__webpack_require__(18),__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_getPrototypeOf__=__webpack_require__(20),__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_inherits__=__webpack_require__(21),__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__=__webpack_require__(8),__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__=__webpack_require__(7),__WEBPACK_IMPORTED_MODULE_10_react__=__webpack_require__(3),__WEBPACK_IMPORTED_MODULE_11__emotion_core__=(__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_react__),__webpack_require__(31)),__WEBPACK_IMPORTED_MODULE_12_react_dom__=__webpack_require__(11),__WEBPACK_IMPORTED_MODULE_13_prop_types__=(__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12_react_dom__),__webpack_require__(10)),__WEBPACK_IMPORTED_MODULE_13_prop_types___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_13_prop_types__),__WEBPACK_IMPORTED_MODULE_14__babel_runtime_helpers_esm_typeof__=__webpack_require__(19),__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__=__webpack_require__(32),__WEBPACK_IMPORTED_MODULE_16__emotion_css__=__webpack_require__(9),__WEBPACK_IMPORTED_MODULE_17__babel_runtime_helpers_esm_taggedTemplateLiteral__=__webpack_require__(42),__WEBPACK_IMPORTED_MODULE_18_react_input_autosize__=__webpack_require__(43),__WEBPACK_IMPORTED_MODULE_18_react_input_autosize___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_18_react_input_autosize__),coercePlacement=function(p){return"auto"===p?"bottom":p},menuCSS=function(_ref2){var _ref3,placement=_ref2.placement,_ref2$theme=_ref2.theme,borderRadius=_ref2$theme.borderRadius,spacing=_ref2$theme.spacing,colors=_ref2$theme.colors;return _ref3={label:"menu"},Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,alignToControl(placement),"100%"),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"backgroundColor",colors.neutral0),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"borderRadius",borderRadius),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"marginBottom",spacing.menuGutter),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"marginTop",spacing.menuGutter),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"position","absolute"),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"width","100%"),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"zIndex",1),_ref3},MenuPlacer=function(_Component){function MenuPlacer(){var _getPrototypeOf2,_this;Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__.a)(this,MenuPlacer);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return _this=Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,(_getPrototypeOf2=Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_getPrototypeOf__.a)(MenuPlacer)).call.apply(_getPrototypeOf2,[this].concat(args))),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"state",{maxHeight:_this.props.maxMenuHeight,placement:null}),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getPlacement",function(ref){var _this$props=_this.props,minMenuHeight=_this$props.minMenuHeight,maxMenuHeight=_this$props.maxMenuHeight,menuPlacement=_this$props.menuPlacement,menuPosition=_this$props.menuPosition,menuShouldScrollIntoView=_this$props.menuShouldScrollIntoView,theme=_this$props.theme,getPortalPlacement=_this.context.getPortalPlacement;if(ref){var isFixedPosition="fixed"===menuPosition,shouldScroll=menuShouldScrollIntoView&&!isFixedPosition,state=getMenuPlacement({maxHeight:maxMenuHeight,menuEl:ref,minHeight:minMenuHeight,placement:menuPlacement,shouldScroll:shouldScroll,isFixedPosition:isFixedPosition,theme:theme});getPortalPlacement&&getPortalPlacement(state),_this.setState(state)}}),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getUpdatedProps",function(){var menuPlacement=_this.props.menuPlacement,placement=_this.state.placement||coercePlacement(menuPlacement);return Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectSpread__.a)({},_this.props,{placement:placement,maxHeight:_this.state.maxHeight})}),_this}return Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_inherits__.a)(MenuPlacer,_Component),Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__.a)(MenuPlacer,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),MenuPlacer}(__WEBPACK_IMPORTED_MODULE_10_react__.Component);Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(MenuPlacer,"contextTypes",{getPortalPlacement:__WEBPACK_IMPORTED_MODULE_13_prop_types___default.a.func});var Menu=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,innerRef=props.innerRef,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("menu",props),className:cx({menu:!0},className)},innerProps,{ref:innerRef}),children)},menuListCSS=function(_ref4){var maxHeight=_ref4.maxHeight,baseUnit=_ref4.theme.spacing.baseUnit;return{maxHeight:maxHeight,overflowY:"auto",paddingBottom:baseUnit,paddingTop:baseUnit,position:"relative",WebkitOverflowScrolling:"touch"}},MenuList=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,isMulti=props.isMulti,innerRef=props.innerRef;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",{css:getStyles("menuList",props),className:cx({"menu-list":!0,"menu-list--is-multi":isMulti},className),ref:innerRef},children)},noticeCSS=function(_ref5){var _ref5$theme=_ref5.theme,baseUnit=_ref5$theme.spacing.baseUnit;return{color:_ref5$theme.colors.neutral40,padding:"".concat(2*baseUnit,"px ").concat(3*baseUnit,"px"),textAlign:"center"}},noOptionsMessageCSS=noticeCSS,loadingMessageCSS=noticeCSS,NoOptionsMessage=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("noOptionsMessage",props),className:cx({"menu-notice":!0,"menu-notice--no-options":!0},className)},innerProps),children)};NoOptionsMessage.defaultProps={children:"No options"};var LoadingMessage=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("loadingMessage",props),className:cx({"menu-notice":!0,"menu-notice--loading":!0},className)},innerProps),children)};LoadingMessage.defaultProps={children:"Loading..."};var menuPortalCSS=function(_ref6){var rect=_ref6.rect,offset=_ref6.offset,position=_ref6.position;return{left:rect.left,position:position,top:offset,width:rect.width,zIndex:1}},MenuPortal=function(_Component2){function MenuPortal(){var _getPrototypeOf3,_this2;Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__.a)(this,MenuPortal);for(var _len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++)args[_key2]=arguments[_key2];return _this2=Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,(_getPrototypeOf3=Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_getPrototypeOf__.a)(MenuPortal)).call.apply(_getPrototypeOf3,[this].concat(args))),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this2)),"state",{placement:null}),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this2)),"getPortalPlacement",function(_ref7){var placement=_ref7.placement;placement!==coercePlacement(_this2.props.menuPlacement)&&_this2.setState({placement:placement})}),_this2}return Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_inherits__.a)(MenuPortal,_Component2),Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__.a)(MenuPortal,[{key:"getChildContext",value:function(){return{getPortalPlacement:this.getPortalPlacement}}},{key:"render",value:function(){var _this$props2=this.props,appendTo=_this$props2.appendTo,children=_this$props2.children,controlElement=_this$props2.controlElement,menuPlacement=_this$props2.menuPlacement,position=_this$props2.menuPosition,getStyles=_this$props2.getStyles,isFixed="fixed"===position;if(!appendTo&&!isFixed||!controlElement)return null;var placement=this.state.placement||coercePlacement(menuPlacement),rect=Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.g)(controlElement),scrollDistance=isFixed?0:window.pageYOffset,offset=rect[placement]+scrollDistance,state={offset:offset,position:position,rect:rect},menuWrapper=Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",{css:getStyles("menuPortal",state)},children);return appendTo?Object(__WEBPACK_IMPORTED_MODULE_12_react_dom__.createPortal)(menuWrapper,appendTo):menuWrapper}}]),MenuPortal}(__WEBPACK_IMPORTED_MODULE_10_react__.Component);Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(MenuPortal,"childContextTypes",{getPortalPlacement:__WEBPACK_IMPORTED_MODULE_13_prop_types___default.a.func});var isArray=Array.isArray,keyList=Object.keys,hasProp=Object.prototype.hasOwnProperty,containerCSS=function(_ref){var isDisabled=_ref.isDisabled;return{label:"container",direction:_ref.isRtl?"rtl":null,pointerEvents:isDisabled?"none":null,position:"relative"}},SelectContainer=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps,isDisabled=props.isDisabled,isRtl=props.isRtl;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("container",props),className:cx({"--is-disabled":isDisabled,"--is-rtl":isRtl},className)},innerProps),children)},valueContainerCSS=function(_ref2){var spacing=_ref2.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(spacing.baseUnit/2,"px ").concat(2*spacing.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}},ValueContainer=function(_Component){function ValueContainer(){return Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__.a)(this,ValueContainer),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_getPrototypeOf__.a)(ValueContainer).apply(this,arguments))}return Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_inherits__.a)(ValueContainer,_Component),Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__.a)(ValueContainer,[{key:"render",value:function(){var _this$props=this.props,children=_this$props.children,className=_this$props.className,cx=_this$props.cx,isMulti=_this$props.isMulti,getStyles=_this$props.getStyles,hasValue=_this$props.hasValue;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",{css:getStyles("valueContainer",this.props),className:cx({"value-container":!0,"value-container--is-multi":isMulti,"value-container--has-value":hasValue},className)},children)}}]),ValueContainer}(__WEBPACK_IMPORTED_MODULE_10_react__.Component),indicatorsContainerCSS=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},IndicatorsContainer=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",{css:getStyles("indicatorsContainer",props),className:cx({indicators:!0},className)},children)},_ref2="production"===process.env.NODE_ENV?{name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"}:{name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0JJIiwiZmlsZSI6ImluZGljYXRvcnMuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyB0eXBlIE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuXG5pbXBvcnQgdHlwZSB7IENvbW1vblByb3BzLCBUaGVtZSB9IGZyb20gJy4uL3R5cGVzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHsgc2l6ZSwgLi4ucHJvcHMgfTogeyBzaXplOiBudW1iZXIgfSkgPT4gKFxuICA8c3ZnXG4gICAgaGVpZ2h0PXtzaXplfVxuICAgIHdpZHRoPXtzaXplfVxuICAgIHZpZXdCb3g9XCIwIDAgMjAgMjBcIlxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgZm9jdXNhYmxlPVwiZmFsc2VcIlxuICAgIGNzcz17e1xuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBmaWxsOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGxpbmVIZWlnaHQ6IDEsXG4gICAgICBzdHJva2U6ICdjdXJyZW50Q29sb3InLFxuICAgICAgc3Ryb2tlV2lkdGg6IDAsXG4gICAgfX1cbiAgICB7Li4ucHJvcHN9XG4gIC8+XG4pO1xuXG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBhbnkpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogYW55KSA9PiAoXG4gIDxTdmcgc2l6ZT17MjB9IHsuLi5wcm9wc30+XG4gICAgPHBhdGggZD1cIk00LjUxNiA3LjU0OGMwLjQzNi0wLjQ0NiAxLjA0My0wLjQ4MSAxLjU3NiAwbDMuOTA4IDMuNzQ3IDMuOTA4LTMuNzQ3YzAuNTMzLTAuNDgxIDEuMTQxLTAuNDQ2IDEuNTc0IDAgMC40MzYgMC40NDUgMC40MDggMS4xOTcgMCAxLjYxNS0wLjQwNiAwLjQxOC00LjY5NSA0LjUwMi00LjY5NSA0LjUwMi0wLjIxNyAwLjIyMy0wLjUwMiAwLjMzNS0wLjc4NyAwLjMzNXMtMC41Ny0wLjExMi0wLjc4OS0wLjMzNWMwIDAtNC4yODctNC4wODQtNC42OTUtNC41MDJzLTAuNDM2LTEuMTcgMC0xLjYxNXpcIiAvPlxuICA8L1N2Zz5cbik7XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gRHJvcGRvd24gJiBDbGVhciBCdXR0b25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IHR5cGUgSW5kaWNhdG9yUHJvcHMgPSBDb21tb25Qcm9wcyAmIHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW46IE5vZGUsXG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufTtcblxuY29uc3QgYmFzZUNTUyA9ICh7XG4gIGlzRm9jdXNlZCxcbiAgdGhlbWU6IHtcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgY29sb3JzLFxuICB9LFxufTogSW5kaWNhdG9yUHJvcHMpID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yQ29udGFpbmVyJyxcbiAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcblxuICAnOmhvdmVyJzoge1xuICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDgwIDogY29sb3JzLm5ldXRyYWw0MCxcbiAgfSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2Ryb3Bkb3duSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnZHJvcGRvd24taW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2NsZWFySW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnY2xlYXItaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG50eXBlIFNlcGFyYXRvclN0YXRlID0geyBpc0Rpc2FibGVkOiBib29sZWFuIH07XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSAoe1xuICBpc0Rpc2FibGVkLFxuICB0aGVtZToge1xuICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICBjb2xvcnMsXG4gIH0sXG59OiBDb21tb25Qcm9wcyAmIFNlcGFyYXRvclN0YXRlKSA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvclNlcGFyYXRvcicsXG4gIGFsaWduU2VsZjogJ3N0cmV0Y2gnLFxuICBiYWNrZ3JvdW5kQ29sb3I6IGlzRGlzYWJsZWQgPyBjb2xvcnMubmV1dHJhbDEwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgbWFyZ2luQm90dG9tOiBiYXNlVW5pdCAqIDIsXG4gIG1hcmdpblRvcDogYmFzZVVuaXQgKiAyLFxuICB3aWR0aDogMSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNsYXNzTmFtZSwgY3gsIGdldFN0eWxlcywgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2luZGljYXRvclNlcGFyYXRvcicsIHByb3BzKX1cbiAgICAgIGNsYXNzTmFtZT17Y3goeyAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUgfSwgY2xhc3NOYW1lKX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gKHtcbiAgaXNGb2N1c2VkLFxuICBzaXplLFxuICB0aGVtZToge1xuICAgIGNvbG9ycyxcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gIH0sXG59OiB7XG4gIGlzRm9jdXNlZDogYm9vbGVhbixcbiAgc2l6ZTogbnVtYmVyLFxuICB0aGVtZTogVGhlbWUsXG59KSA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxufSk7XG5cbnR5cGUgRG90UHJvcHMgPSB7IGRlbGF5OiBudW1iZXIsIG9mZnNldDogYm9vbGVhbiB9O1xuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogRG90UHJvcHMpID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGFuaW1hdGlvbjogYCR7bG9hZGluZ0RvdEFuaW1hdGlvbnN9IDFzIGVhc2UtaW4tb3V0ICR7ZGVsYXl9bXMgaW5maW5pdGU7YCxcbiAgICAgIGJhY2tncm91bmRDb2xvcjogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBib3JkZXJSYWRpdXM6ICcxZW0nLFxuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBtYXJnaW5MZWZ0OiBvZmZzZXQgPyAnMWVtJyA6IG51bGwsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIExvYWRpbmdJY29uUHJvcHMgPSB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufSAmIENvbW1vblByb3BzICYge1xuICAgIC8qKiBTZXQgc2l6ZSBvZiB0aGUgY29udGFpbmVyLiAqL1xuICAgIHNpemU6IG51bWJlcixcbiAgfTtcbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gKHByb3BzOiBMb2FkaW5nSWNvblByb3BzKSA9PiB7XG4gIGNvbnN0IHsgY2xhc3NOYW1lLCBjeCwgZ2V0U3R5bGVzLCBpbm5lclByb3BzLCBpc1J0bCB9ID0gcHJvcHM7XG5cbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIGNzcz17Z2V0U3R5bGVzKCdsb2FkaW5nSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnbG9hZGluZy1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgICBjbGFzc05hbWVcbiAgICAgICl9XG4gICAgPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezB9IG9mZnNldD17aXNSdGx9IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MTYwfSBvZmZzZXQgLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXszMjB9IG9mZnNldD17IWlzUnRsfSAvPlxuICAgIDwvZGl2PlxuICApO1xufTtcbkxvYWRpbmdJbmRpY2F0b3IuZGVmYXVsdFByb3BzID0geyBzaXplOiA0IH07XG4iXX0= */"},Svg=function(_ref){var size=_ref.size,props=Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__.a)(_ref,["size"]);return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("svg",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({height:size,width:size,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:_ref2},props))},CrossIcon=function(props){return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(Svg,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({size:20},props),Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},DownChevron=function(props){return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(Svg,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({size:20},props),Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},baseCSS=function(_ref3){var isFocused=_ref3.isFocused,_ref3$theme=_ref3.theme,baseUnit=_ref3$theme.spacing.baseUnit,colors=_ref3$theme.colors;return{label:"indicatorContainer",color:isFocused?colors.neutral60:colors.neutral20,display:"flex",padding:2*baseUnit,transition:"color 150ms",":hover":{color:isFocused?colors.neutral80:colors.neutral40}}},dropdownIndicatorCSS=baseCSS,DropdownIndicator=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},innerProps,{css:getStyles("dropdownIndicator",props),className:cx({indicator:!0,"dropdown-indicator":!0},className)}),children||Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(DownChevron,null))},clearIndicatorCSS=baseCSS,ClearIndicator=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},innerProps,{css:getStyles("clearIndicator",props),className:cx({indicator:!0,"clear-indicator":!0},className)}),children||Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(CrossIcon,null))},indicatorSeparatorCSS=function(_ref4){var isDisabled=_ref4.isDisabled,_ref4$theme=_ref4.theme,baseUnit=_ref4$theme.spacing.baseUnit,colors=_ref4$theme.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:isDisabled?colors.neutral10:colors.neutral20,marginBottom:2*baseUnit,marginTop:2*baseUnit,width:1}},IndicatorSeparator=function(props){var className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("span",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},innerProps,{css:getStyles("indicatorSeparator",props),className:cx({"indicator-separator":!0},className)}))},loadingDotAnimations=Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.d)(_templateObject()),loadingIndicatorCSS=function(_ref5){var isFocused=_ref5.isFocused,size=_ref5.size,_ref5$theme=_ref5.theme,colors=_ref5$theme.colors,baseUnit=_ref5$theme.spacing.baseUnit;return{label:"loadingIndicator",color:isFocused?colors.neutral60:colors.neutral20,display:"flex",padding:2*baseUnit,transition:"color 150ms",alignSelf:"center",fontSize:size,lineHeight:1,marginRight:size,textAlign:"center",verticalAlign:"middle"}},LoadingDot=function(_ref6){var delay=_ref6.delay,offset=_ref6.offset;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("span",{css:Object(__WEBPACK_IMPORTED_MODULE_16__emotion_css__.a)({animation:"".concat(loadingDotAnimations," 1s ease-in-out ").concat(delay,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:offset?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBc0xJIiwiZmlsZSI6ImluZGljYXRvcnMuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyB0eXBlIE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuXG5pbXBvcnQgdHlwZSB7IENvbW1vblByb3BzLCBUaGVtZSB9IGZyb20gJy4uL3R5cGVzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHsgc2l6ZSwgLi4ucHJvcHMgfTogeyBzaXplOiBudW1iZXIgfSkgPT4gKFxuICA8c3ZnXG4gICAgaGVpZ2h0PXtzaXplfVxuICAgIHdpZHRoPXtzaXplfVxuICAgIHZpZXdCb3g9XCIwIDAgMjAgMjBcIlxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgZm9jdXNhYmxlPVwiZmFsc2VcIlxuICAgIGNzcz17e1xuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBmaWxsOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGxpbmVIZWlnaHQ6IDEsXG4gICAgICBzdHJva2U6ICdjdXJyZW50Q29sb3InLFxuICAgICAgc3Ryb2tlV2lkdGg6IDAsXG4gICAgfX1cbiAgICB7Li4ucHJvcHN9XG4gIC8+XG4pO1xuXG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBhbnkpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogYW55KSA9PiAoXG4gIDxTdmcgc2l6ZT17MjB9IHsuLi5wcm9wc30+XG4gICAgPHBhdGggZD1cIk00LjUxNiA3LjU0OGMwLjQzNi0wLjQ0NiAxLjA0My0wLjQ4MSAxLjU3NiAwbDMuOTA4IDMuNzQ3IDMuOTA4LTMuNzQ3YzAuNTMzLTAuNDgxIDEuMTQxLTAuNDQ2IDEuNTc0IDAgMC40MzYgMC40NDUgMC40MDggMS4xOTcgMCAxLjYxNS0wLjQwNiAwLjQxOC00LjY5NSA0LjUwMi00LjY5NSA0LjUwMi0wLjIxNyAwLjIyMy0wLjUwMiAwLjMzNS0wLjc4NyAwLjMzNXMtMC41Ny0wLjExMi0wLjc4OS0wLjMzNWMwIDAtNC4yODctNC4wODQtNC42OTUtNC41MDJzLTAuNDM2LTEuMTcgMC0xLjYxNXpcIiAvPlxuICA8L1N2Zz5cbik7XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gRHJvcGRvd24gJiBDbGVhciBCdXR0b25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IHR5cGUgSW5kaWNhdG9yUHJvcHMgPSBDb21tb25Qcm9wcyAmIHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW46IE5vZGUsXG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufTtcblxuY29uc3QgYmFzZUNTUyA9ICh7XG4gIGlzRm9jdXNlZCxcbiAgdGhlbWU6IHtcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgY29sb3JzLFxuICB9LFxufTogSW5kaWNhdG9yUHJvcHMpID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yQ29udGFpbmVyJyxcbiAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcblxuICAnOmhvdmVyJzoge1xuICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDgwIDogY29sb3JzLm5ldXRyYWw0MCxcbiAgfSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2Ryb3Bkb3duSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnZHJvcGRvd24taW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2NsZWFySW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnY2xlYXItaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG50eXBlIFNlcGFyYXRvclN0YXRlID0geyBpc0Rpc2FibGVkOiBib29sZWFuIH07XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSAoe1xuICBpc0Rpc2FibGVkLFxuICB0aGVtZToge1xuICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICBjb2xvcnMsXG4gIH0sXG59OiBDb21tb25Qcm9wcyAmIFNlcGFyYXRvclN0YXRlKSA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvclNlcGFyYXRvcicsXG4gIGFsaWduU2VsZjogJ3N0cmV0Y2gnLFxuICBiYWNrZ3JvdW5kQ29sb3I6IGlzRGlzYWJsZWQgPyBjb2xvcnMubmV1dHJhbDEwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgbWFyZ2luQm90dG9tOiBiYXNlVW5pdCAqIDIsXG4gIG1hcmdpblRvcDogYmFzZVVuaXQgKiAyLFxuICB3aWR0aDogMSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNsYXNzTmFtZSwgY3gsIGdldFN0eWxlcywgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2luZGljYXRvclNlcGFyYXRvcicsIHByb3BzKX1cbiAgICAgIGNsYXNzTmFtZT17Y3goeyAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUgfSwgY2xhc3NOYW1lKX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gKHtcbiAgaXNGb2N1c2VkLFxuICBzaXplLFxuICB0aGVtZToge1xuICAgIGNvbG9ycyxcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gIH0sXG59OiB7XG4gIGlzRm9jdXNlZDogYm9vbGVhbixcbiAgc2l6ZTogbnVtYmVyLFxuICB0aGVtZTogVGhlbWUsXG59KSA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxufSk7XG5cbnR5cGUgRG90UHJvcHMgPSB7IGRlbGF5OiBudW1iZXIsIG9mZnNldDogYm9vbGVhbiB9O1xuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogRG90UHJvcHMpID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGFuaW1hdGlvbjogYCR7bG9hZGluZ0RvdEFuaW1hdGlvbnN9IDFzIGVhc2UtaW4tb3V0ICR7ZGVsYXl9bXMgaW5maW5pdGU7YCxcbiAgICAgIGJhY2tncm91bmRDb2xvcjogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBib3JkZXJSYWRpdXM6ICcxZW0nLFxuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBtYXJnaW5MZWZ0OiBvZmZzZXQgPyAnMWVtJyA6IG51bGwsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIExvYWRpbmdJY29uUHJvcHMgPSB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufSAmIENvbW1vblByb3BzICYge1xuICAgIC8qKiBTZXQgc2l6ZSBvZiB0aGUgY29udGFpbmVyLiAqL1xuICAgIHNpemU6IG51bWJlcixcbiAgfTtcbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gKHByb3BzOiBMb2FkaW5nSWNvblByb3BzKSA9PiB7XG4gIGNvbnN0IHsgY2xhc3NOYW1lLCBjeCwgZ2V0U3R5bGVzLCBpbm5lclByb3BzLCBpc1J0bCB9ID0gcHJvcHM7XG5cbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIGNzcz17Z2V0U3R5bGVzKCdsb2FkaW5nSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnbG9hZGluZy1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgICBjbGFzc05hbWVcbiAgICAgICl9XG4gICAgPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezB9IG9mZnNldD17aXNSdGx9IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MTYwfSBvZmZzZXQgLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXszMjB9IG9mZnNldD17IWlzUnRsfSAvPlxuICAgIDwvZGl2PlxuICApO1xufTtcbkxvYWRpbmdJbmRpY2F0b3IuZGVmYXVsdFByb3BzID0geyBzaXplOiA0IH07XG4iXX0= */")})},LoadingIndicator=function(props){var className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps,isRtl=props.isRtl;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},innerProps,{css:getStyles("loadingIndicator",props),className:cx({indicator:!0,"loading-indicator":!0},className)}),Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(LoadingDot,{delay:0,offset:isRtl}),Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(LoadingDot,{delay:160,offset:!0}),Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(LoadingDot,{delay:320,offset:!isRtl}))};LoadingIndicator.defaultProps={size:4};var css=function(_ref){var isDisabled=_ref.isDisabled,isFocused=_ref.isFocused,_ref$theme=_ref.theme,colors=_ref$theme.colors,borderRadius=_ref$theme.borderRadius,spacing=_ref$theme.spacing;return{label:"control",alignItems:"center",backgroundColor:isDisabled?colors.neutral5:colors.neutral0,borderColor:isDisabled?colors.neutral10:isFocused?colors.primary:colors.neutral20,borderRadius:borderRadius,borderStyle:"solid",borderWidth:1,boxShadow:isFocused?"0 0 0 1px ".concat(colors.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:isFocused?colors.primary:colors.neutral30}}},Control=function(props){var children=props.children,cx=props.cx,getStyles=props.getStyles,className=props.className,isDisabled=props.isDisabled,isFocused=props.isFocused,innerRef=props.innerRef,innerProps=props.innerProps,menuIsOpen=props.menuIsOpen;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({ref:innerRef,css:getStyles("control",props),className:cx({control:!0,"control--is-disabled":isDisabled,"control--is-focused":isFocused,"control--menu-is-open":menuIsOpen},className)},innerProps),children)},groupCSS=function(_ref){var spacing=_ref.theme.spacing;return{paddingBottom:2*spacing.baseUnit,paddingTop:2*spacing.baseUnit}},Group=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,Heading=props.Heading,headingProps=props.headingProps,label=props.label,theme=props.theme,selectProps=props.selectProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",{css:getStyles("group",props),className:cx({group:!0},className)},Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(Heading,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},headingProps,{selectProps:selectProps,theme:theme,getStyles:getStyles,cx:cx}),label),Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",null,children))},groupHeadingCSS=function(_ref2){var spacing=_ref2.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*spacing.baseUnit,paddingRight:3*spacing.baseUnit,textTransform:"uppercase"}},GroupHeading=function(props){var className=props.className,cx=props.cx,getStyles=props.getStyles,theme=props.theme,cleanProps=(props.selectProps,Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__.a)(props,["className","cx","getStyles","theme","selectProps"]));return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("groupHeading",Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectSpread__.a)({theme:theme},cleanProps)),className:cx({"group-heading":!0},className)},cleanProps))},inputCSS=function(_ref){var isDisabled=_ref.isDisabled,_ref$theme=_ref.theme,spacing=_ref$theme.spacing,colors=_ref$theme.colors;return{margin:spacing.baseUnit/2,paddingBottom:spacing.baseUnit/2,paddingTop:spacing.baseUnit/2,visibility:isDisabled?"hidden":"visible",color:colors.neutral80}},inputStyle=function(isHidden){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:isHidden?0:1,outline:0,padding:0,color:"inherit"}},Input=function(_ref2){var className=_ref2.className,cx=_ref2.cx,getStyles=_ref2.getStyles,innerRef=_ref2.innerRef,isHidden=_ref2.isHidden,isDisabled=_ref2.isDisabled,theme=_ref2.theme,props=(_ref2.selectProps,Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__.a)(_ref2,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",{css:getStyles("input",Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectSpread__.a)({theme:theme},props))},Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(__WEBPACK_IMPORTED_MODULE_18_react_input_autosize___default.a,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({className:cx({input:!0},className),inputRef:innerRef,inputStyle:inputStyle(isHidden),disabled:isDisabled},props)))},multiValueCSS=function(_ref){var _ref$theme=_ref.theme,spacing=_ref$theme.spacing,borderRadius=_ref$theme.borderRadius;return{label:"multiValue",backgroundColor:_ref$theme.colors.neutral10,borderRadius:borderRadius/2,display:"flex",margin:spacing.baseUnit/2,minWidth:0}},multiValueLabelCSS=function(_ref2){var _ref2$theme=_ref2.theme,borderRadius=_ref2$theme.borderRadius,colors=_ref2$theme.colors,cropWithEllipsis=_ref2.cropWithEllipsis;return{borderRadius:borderRadius/2,color:colors.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:cropWithEllipsis?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemoveCSS=function(_ref3){var _ref3$theme=_ref3.theme,spacing=_ref3$theme.spacing,borderRadius=_ref3$theme.borderRadius,colors=_ref3$theme.colors;return{alignItems:"center",borderRadius:borderRadius/2,backgroundColor:_ref3.isFocused&&colors.dangerLight,display:"flex",paddingLeft:spacing.baseUnit,paddingRight:spacing.baseUnit,":hover":{backgroundColor:colors.dangerLight,color:colors.danger}}},MultiValueGeneric=function(_ref4){var children=_ref4.children,innerProps=_ref4.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",innerProps,children)},MultiValueContainer=MultiValueGeneric,MultiValueLabel=MultiValueGeneric,MultiValueRemove=function(_Component){function MultiValueRemove(){return Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__.a)(this,MultiValueRemove),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_getPrototypeOf__.a)(MultiValueRemove).apply(this,arguments))}return Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_inherits__.a)(MultiValueRemove,_Component),Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__.a)(MultiValueRemove,[{key:"render",value:function(){var _this$props=this.props,children=_this$props.children,innerProps=_this$props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",innerProps,children||Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(CrossIcon,{size:14}))}}]),MultiValueRemove}(__WEBPACK_IMPORTED_MODULE_10_react__.Component),MultiValue=function(_Component2){function MultiValue(){return Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__.a)(this,MultiValue),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_getPrototypeOf__.a)(MultiValue).apply(this,arguments))}return Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_inherits__.a)(MultiValue,_Component2),Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__.a)(MultiValue,[{key:"render",value:function(){var _this=this,_this$props2=this.props,children=_this$props2.children,className=_this$props2.className,components=_this$props2.components,cx=_this$props2.cx,data=_this$props2.data,getStyles=_this$props2.getStyles,innerProps=_this$props2.innerProps,isDisabled=_this$props2.isDisabled,removeProps=_this$props2.removeProps,selectProps=_this$props2.selectProps,Container=components.Container,Label=components.Label,Remove=components.Remove;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.b,null,function(_ref5){var css=_ref5.css,emotionCx=_ref5.cx;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(Container,{data:data,innerProps:Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectSpread__.a)({},innerProps,{className:emotionCx(css(getStyles("multiValue",_this.props)),cx({"multi-value":!0,"multi-value--is-disabled":isDisabled},className))}),selectProps:selectProps},Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(Label,{data:data,innerProps:{className:emotionCx(css(getStyles("multiValueLabel",_this.props)),cx({"multi-value__label":!0},className))},selectProps:selectProps},children),Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(Remove,{data:data,innerProps:Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectSpread__.a)({className:emotionCx(css(getStyles("multiValueRemove",_this.props)),cx({"multi-value__remove":!0},className))},removeProps),selectProps:selectProps}))})}}]),MultiValue}(__WEBPACK_IMPORTED_MODULE_10_react__.Component);Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(MultiValue,"defaultProps",{cropWithEllipsis:!0});var optionCSS=function(_ref){var isDisabled=_ref.isDisabled,isFocused=_ref.isFocused,isSelected=_ref.isSelected,_ref$theme=_ref.theme,spacing=_ref$theme.spacing,colors=_ref$theme.colors;return{label:"option",backgroundColor:isSelected?colors.primary:isFocused?colors.primary25:"transparent",color:isDisabled?colors.neutral20:isSelected?colors.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*spacing.baseUnit,"px ").concat(3*spacing.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!isDisabled&&(isSelected?colors.primary:colors.primary50)}}},Option=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,isDisabled=props.isDisabled,isFocused=props.isFocused,isSelected=props.isSelected,innerRef=props.innerRef,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("option",props),className:cx({option:!0,"option--is-disabled":isDisabled,"option--is-focused":isFocused,"option--is-selected":isSelected},className),ref:innerRef},innerProps),children)},placeholderCSS=function(_ref){var _ref$theme=_ref.theme,spacing=_ref$theme.spacing;return{label:"placeholder",color:_ref$theme.colors.neutral50,marginLeft:spacing.baseUnit/2,marginRight:spacing.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},Placeholder=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("placeholder",props),className:cx({placeholder:!0},className)},innerProps),children)},css$1=function(_ref){var isDisabled=_ref.isDisabled,_ref$theme=_ref.theme,spacing=_ref$theme.spacing,colors=_ref$theme.colors;return{label:"singleValue",color:isDisabled?colors.neutral40:colors.neutral80,marginLeft:spacing.baseUnit/2,marginRight:spacing.baseUnit/2,maxWidth:"calc(100% - ".concat(2*spacing.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},SingleValue=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,isDisabled=props.isDisabled,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("singleValue",props),className:cx({"single-value":!0,"single-value--is-disabled":isDisabled},className)},innerProps),children)},components={ClearIndicator:ClearIndicator,Control:Control,DropdownIndicator:DropdownIndicator,DownChevron:DownChevron,CrossIcon:CrossIcon,Group:Group,GroupHeading:GroupHeading,IndicatorsContainer:IndicatorsContainer,IndicatorSeparator:IndicatorSeparator,Input:Input,LoadingIndicator:LoadingIndicator,Menu:Menu,MenuList:MenuList,MenuPortal:MenuPortal,LoadingMessage:LoadingMessage,NoOptionsMessage:NoOptionsMessage,MultiValue:MultiValue,MultiValueContainer:MultiValueContainer,MultiValueLabel:MultiValueLabel,MultiValueRemove:MultiValueRemove,Option:Option,Placeholder:Placeholder,SelectContainer:SelectContainer,SingleValue:SingleValue,ValueContainer:ValueContainer},defaultComponents=function(props){return Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectSpread__.a)({},components,props.components)}}).call(__webpack_exports__,__webpack_require__(0))},function(module,__webpack_exports__,__webpack_require__){"use strict";function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}__webpack_exports__.a=_taggedTemplateLiteral},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _objectWithoutProperties(obj,keys){var target={};for(var i in obj)keys.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(obj,i)&&(target[i]=obj[i]);return target}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}Object.defineProperty(exports,"__esModule",{value:!0});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_react=__webpack_require__(3),_react2=_interopRequireDefault(_react),_propTypes=__webpack_require__(10),_propTypes2=_interopRequireDefault(_propTypes),sizerStyle={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},INPUT_PROPS_BLACKLIST=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],cleanInputProps=function(inputProps){return INPUT_PROPS_BLACKLIST.forEach(function(field){return delete inputProps[field]}),inputProps},copyStyles=function(styles,node){node.style.fontSize=styles.fontSize,node.style.fontFamily=styles.fontFamily,node.style.fontWeight=styles.fontWeight,node.style.fontStyle=styles.fontStyle,node.style.letterSpacing=styles.letterSpacing,node.style.textTransform=styles.textTransform},isIE=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),generateId=function(){return isIE?"_"+Math.random().toString(36).substr(2,12):void 0},AutosizeInput=function(_Component){function AutosizeInput(props){_classCallCheck(this,AutosizeInput);var _this=_possibleConstructorReturn(this,(AutosizeInput.__proto__||Object.getPrototypeOf(AutosizeInput)).call(this,props));return _this.inputRef=function(el){_this.input=el,"function"==typeof _this.props.inputRef&&_this.props.inputRef(el)},_this.placeHolderSizerRef=function(el){_this.placeHolderSizer=el},_this.sizerRef=function(el){_this.sizer=el},_this.state={inputWidth:props.minWidth,inputId:props.id||generateId()},_this}return _inherits(AutosizeInput,_Component),_createClass(AutosizeInput,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"UNSAFE_componentWillReceiveProps",value:function(nextProps){var id=nextProps.id;id!==this.props.id&&this.setState({inputId:id||generateId()})}},{key:"componentDidUpdate",value:function(prevProps,prevState){prevState.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var inputStyles=this.input&&window.getComputedStyle(this.input);inputStyles&&(copyStyles(inputStyles,this.sizer),this.placeHolderSizer&&copyStyles(inputStyles,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var newInputWidth=void 0;newInputWidth=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2;newInputWidth+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0,newInputWidth<this.props.minWidth&&(newInputWidth=this.props.minWidth),newInputWidth!==this.state.inputWidth&&this.setState({inputWidth:newInputWidth})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var injectStyles=this.props.injectStyles;return isIE&&injectStyles?_react2.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var sizerValue=[this.props.defaultValue,this.props.value,""].reduce(function(previousValue,currentValue){return null!==previousValue&&void 0!==previousValue?previousValue:currentValue}),wrapperStyle=_extends({},this.props.style);wrapperStyle.display||(wrapperStyle.display="inline-block");var inputStyle=_extends({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),inputProps=_objectWithoutProperties(this.props,[]);return cleanInputProps(inputProps),inputProps.className=this.props.inputClassName,inputProps.id=this.state.inputId,inputProps.style=inputStyle,_react2.default.createElement("div",{className:this.props.className,style:wrapperStyle},this.renderStyles(),_react2.default.createElement("input",_extends({},inputProps,{ref:this.inputRef})),_react2.default.createElement("div",{ref:this.sizerRef,style:sizerStyle},sizerValue),this.props.placeholder?_react2.default.createElement("div",{ref:this.placeHolderSizerRef,style:sizerStyle},this.props.placeholder):null)}}]),AutosizeInput}(_react.Component);AutosizeInput.propTypes={className:_propTypes2.default.string,defaultValue:_propTypes2.default.any,extraWidth:_propTypes2.default.oneOfType([_propTypes2.default.number,_propTypes2.default.string]),id:_propTypes2.default.string,injectStyles:_propTypes2.default.bool,inputClassName:_propTypes2.default.string,inputRef:_propTypes2.default.func,inputStyle:_propTypes2.default.object,minWidth:_propTypes2.default.oneOfType([_propTypes2.default.number,_propTypes2.default.string]),onAutosize:_propTypes2.default.func,onChange:_propTypes2.default.func,placeholder:_propTypes2.default.string,placeholderIsMinWidth:_propTypes2.default.bool,style:_propTypes2.default.object,value:_propTypes2.default.any},AutosizeInput.defaultProps={minWidth:1,injectStyles:!0},exports.default=AutosizeInput},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(process){function preventTouchMove(e){e.preventDefault()}function allowTouchMove(e){e.stopPropagation()}function preventInertiaScroll(){var top=this.scrollTop,totalScroll=this.scrollHeight,currentScroll=top+this.offsetHeight;0===top?this.scrollTop=1:currentScroll===totalScroll&&(this.scrollTop=top-1)}function isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints}__webpack_require__.d(__webpack_exports__,"a",function(){return Select});var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__=__webpack_require__(14),__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__=__webpack_require__(15),__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_toConsumableArray__=__webpack_require__(36),__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectSpread__=__webpack_require__(30),__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__=__webpack_require__(16),__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__=__webpack_require__(17),__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__=__webpack_require__(18),__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__=__webpack_require__(20),__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__=__webpack_require__(21),__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__=__webpack_require__(8),__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__=__webpack_require__(7),__WEBPACK_IMPORTED_MODULE_11_react__=__webpack_require__(3),__WEBPACK_IMPORTED_MODULE_11_react___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_react__),__WEBPACK_IMPORTED_MODULE_12_memoize_one__=__webpack_require__(37),__WEBPACK_IMPORTED_MODULE_13__emotion_core__=__webpack_require__(31),__WEBPACK_IMPORTED_MODULE_14_react_dom__=__webpack_require__(11),__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__=(__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_react_dom__),__webpack_require__(32)),__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__=__webpack_require__(41),__WEBPACK_IMPORTED_MODULE_17__emotion_css__=__webpack_require__(9),diacritics=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],stripDiacritics=function(str){for(var i=0;i<diacritics.length;i++)str=str.replace(diacritics[i].letters,diacritics[i].base);return str},trimString=function(str){return str.replace(/^\s+|\s+$/g,"")},defaultStringify=function(option){return"".concat(option.label," ").concat(option.value)},_ref="production"===process.env.NODE_ENV?{name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"}:{name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVFNIiwiZmlsZSI6IkExMXlUZXh0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8gQGZsb3dcbi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgdHlwZSBFbGVtZW50Q29uZmlnIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vY29yZSc7XG5cbi8vIEFzc2lzdGl2ZSB0ZXh0IHRvIGRlc2NyaWJlIHZpc3VhbCBlbGVtZW50cy4gSGlkZGVuIGZvciBzaWdodGVkIHVzZXJzLlxuY29uc3QgQTExeVRleHQgPSAocHJvcHM6IEVsZW1lbnRDb25maWc8J3NwYW4nPikgPT4gKFxuICAgIDxzcGFuXG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdhMTF5VGV4dCcsXG4gICAgICAgIHpJbmRleDogOTk5OSxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICBjbGlwOiAncmVjdCgxcHgsIDFweCwgMXB4LCAxcHgpJyxcbiAgICAgICAgaGVpZ2h0OiAxLFxuICAgICAgICB3aWR0aDogMSxcbiAgICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICAgIG92ZXJmbG93OiAnaGlkZGVuJyxcbiAgICAgICAgcGFkZGluZzogMCxcbiAgICAgICAgd2hpdGVTcGFjZTogJ25vd3JhcCcsXG4gICAgICB9fVxuICAgICAgey4uLnByb3BzfVxuICAgIC8+XG4pO1xuXG5leHBvcnQgZGVmYXVsdCBBMTF5VGV4dDtcbiJdfQ== */"},A11yText=function(props){return Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__.c)("span",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:_ref},props))},DummyInput=function(_Component){function DummyInput(){return Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__.a)(this,DummyInput),Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__.a)(DummyInput).apply(this,arguments))}return Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__.a)(DummyInput,_Component),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__.a)(DummyInput,[{key:"render",value:function(){var _this$props=this.props,innerRef=(_this$props.in,_this$props.out,_this$props.onExited,_this$props.appear,_this$props.enter,_this$props.exit,_this$props.innerRef),props=(_this$props.emotion,Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__.a)(_this$props,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__.c)("input",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({ref:innerRef},props,{css:Object(__WEBPACK_IMPORTED_MODULE_17__emotion_css__.a)({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBWVEiLCJmaWxlIjoiRHVtbXlJbnB1dC5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vIEBmbG93XG4vKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IENvbXBvbmVudCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuXG5leHBvcnQgZGVmYXVsdCBjbGFzcyBEdW1teUlucHV0IGV4dGVuZHMgQ29tcG9uZW50PGFueT4ge1xuICByZW5kZXIgKCkge1xuICAgIGNvbnN0IHsgaW46IGluUHJvcCwgb3V0LCBvbkV4aXRlZCwgYXBwZWFyLCBlbnRlciwgZXhpdCwgaW5uZXJSZWYsIGVtb3Rpb24sIC4uLnByb3BzIH0gPSB0aGlzLnByb3BzO1xuICAgIHJldHVybihcbiAgICAgIDxpbnB1dFxuICAgICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgICB7Li4ucHJvcHN9XG4gICAgICAgIGNzcz17e1xuICAgICAgICAgIGxhYmVsOiAnZHVtbXlJbnB1dCcsXG4gICAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICAgIGJvcmRlcjogMCxcbiAgICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgICAgcGFkZGluZzogMCxcbiAgICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBkZXNrdG9wXG4gICAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgICAgbGVmdDogLTEwMCxcbiAgICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICAgIHRyYW5zZm9ybTogJ3NjYWxlKDApJyxcbiAgICAgICAgfX1cbiAgICAgIC8+XG4gICAgKTtcbiAgfVxufVxuIl19 */")}))}}]),DummyInput}(__WEBPACK_IMPORTED_MODULE_11_react__.Component),NodeResolver=function(_Component){function NodeResolver(){return Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__.a)(this,NodeResolver),Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__.a)(NodeResolver).apply(this,arguments))}return Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__.a)(NodeResolver,_Component),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__.a)(NodeResolver,[{key:"componentDidMount",value:function(){this.props.innerRef(Object(__WEBPACK_IMPORTED_MODULE_14_react_dom__.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),NodeResolver}(__WEBPACK_IMPORTED_MODULE_11_react__.Component),STYLE_KEYS=["boxSizing","height","overflow","paddingRight","position"],LOCK_STYLES={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"},canUseDOM=!(!window.document||!window.document.createElement),activeScrollLocks=0,ScrollLock=function(_Component){function ScrollLock(){var _getPrototypeOf2,_this;Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__.a)(this,ScrollLock);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return _this=Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,(_getPrototypeOf2=Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__.a)(ScrollLock)).call.apply(_getPrototypeOf2,[this].concat(args))),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"originalStyles",{}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"listenerOptions",{capture:!1,passive:!1}),_this}return Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__.a)(ScrollLock,_Component),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__.a)(ScrollLock,[{key:"componentDidMount",value:function(){var _this2=this;if(canUseDOM){var _this$props=this.props,accountForScrollbars=_this$props.accountForScrollbars,touchScrollTarget=_this$props.touchScrollTarget,target=document.body,targetStyle=target&&target.style;if(accountForScrollbars&&STYLE_KEYS.forEach(function(key){var val=targetStyle&&targetStyle[key];_this2.originalStyles[key]=val}),accountForScrollbars&&activeScrollLocks<1){var currentPadding=parseInt(this.originalStyles.paddingRight,10)||0,clientWidth=document.body?document.body.clientWidth:0,adjustedPadding=window.innerWidth-clientWidth+currentPadding||0;Object.keys(LOCK_STYLES).forEach(function(key){var val=LOCK_STYLES[key];targetStyle&&(targetStyle[key]=val)}),targetStyle&&(targetStyle.paddingRight="".concat(adjustedPadding,"px"))}target&&isTouchDevice()&&(target.addEventListener("touchmove",preventTouchMove,this.listenerOptions),touchScrollTarget&&(touchScrollTarget.addEventListener("touchstart",preventInertiaScroll,this.listenerOptions),touchScrollTarget.addEventListener("touchmove",allowTouchMove,this.listenerOptions))),activeScrollLocks+=1}}},{key:"componentWillUnmount",value:function(){var _this3=this;if(canUseDOM){var _this$props2=this.props,accountForScrollbars=_this$props2.accountForScrollbars,touchScrollTarget=_this$props2.touchScrollTarget,target=document.body,targetStyle=target&&target.style;activeScrollLocks=Math.max(activeScrollLocks-1,0),accountForScrollbars&&activeScrollLocks<1&&STYLE_KEYS.forEach(function(key){var val=_this3.originalStyles[key];targetStyle&&(targetStyle[key]=val)}),target&&isTouchDevice()&&(target.removeEventListener("touchmove",preventTouchMove,this.listenerOptions),touchScrollTarget&&(touchScrollTarget.removeEventListener("touchstart",preventInertiaScroll,this.listenerOptions),touchScrollTarget.removeEventListener("touchmove",allowTouchMove,this.listenerOptions)))}}},{key:"render",value:function(){return null}}]),ScrollLock}(__WEBPACK_IMPORTED_MODULE_11_react__.Component);Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(ScrollLock,"defaultProps",{accountForScrollbars:!0});var _ref$1="production"===process.env.NODE_ENV?{name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"}:{name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbEJsb2NrLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTZEVSIsImZpbGUiOiJTY3JvbGxCbG9jay5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vIEBmbG93XG4vKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IFB1cmVDb21wb25lbnQsIHR5cGUgRWxlbWVudCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuaW1wb3J0IE5vZGVSZXNvbHZlciBmcm9tICcuL05vZGVSZXNvbHZlcic7XG5pbXBvcnQgU2Nyb2xsTG9jayBmcm9tICcuL1Njcm9sbExvY2svaW5kZXgnO1xuXG50eXBlIFByb3BzID0ge1xuICBjaGlsZHJlbjogRWxlbWVudDwqPixcbiAgaXNFbmFibGVkOiBib29sZWFuLFxufTtcbnR5cGUgU3RhdGUgPSB7XG4gIHRvdWNoU2Nyb2xsVGFyZ2V0OiBIVE1MRWxlbWVudCB8IG51bGwsXG59O1xuXG4vLyBOT1RFOlxuLy8gV2Ugc2hvdWxkbid0IG5lZWQgdGhpcyBhZnRlciB1cGRhdGluZyB0byBSZWFjdCB2MTYuMy4wLCB3aGljaCBpbnRyb2R1Y2VzOlxuLy8gLSBjcmVhdGVSZWYoKSBodHRwczovL3JlYWN0anMub3JnL2RvY3MvcmVhY3QtYXBpLmh0bWwjcmVhY3RjcmVhdGVyZWZcbi8vIC0gZm9yd2FyZFJlZigpIGh0dHBzOi8vcmVhY3Rqcy5vcmcvZG9jcy9yZWFjdC1hcGkuaHRtbCNyZWFjdGZvcndhcmRyZWZcblxuZXhwb3J0IGRlZmF1bHQgY2xhc3MgU2Nyb2xsQmxvY2sgZXh0ZW5kcyBQdXJlQ29tcG9uZW50PFByb3BzLCBTdGF0ZT4ge1xuICBzdGF0ZSA9IHsgdG91Y2hTY3JvbGxUYXJnZXQ6IG51bGwgfTtcblxuICAvLyBtdXN0IGJlIGluIHN0YXRlIHRvIHRyaWdnZXIgYSByZS1yZW5kZXIsIG9ubHkgcnVucyBvbmNlIHBlciBpbnN0YW5jZVxuICBnZXRTY3JvbGxUYXJnZXQgPSAocmVmOiBIVE1MRWxlbWVudCkgPT4ge1xuICAgIGlmIChyZWYgPT09IHRoaXMuc3RhdGUudG91Y2hTY3JvbGxUYXJnZXQpIHJldHVybjtcbiAgICB0aGlzLnNldFN0YXRlKHsgdG91Y2hTY3JvbGxUYXJnZXQ6IHJlZiB9KTtcbiAgfTtcblxuICAvLyB0aGlzIHdpbGwgY2xvc2UgdGhlIG1lbnUgd2hlbiBhIHVzZXIgY2xpY2tzIG91dHNpZGVcbiAgYmx1clNlbGVjdElucHV0ID0gKCkgPT4ge1xuICAgIGlmIChkb2N1bWVudC5hY3RpdmVFbGVtZW50KSB7XG4gICAgICBkb2N1bWVudC5hY3RpdmVFbGVtZW50LmJsdXIoKTtcbiAgICB9XG4gIH07XG5cbiAgcmVuZGVyKCkge1xuICAgIGNvbnN0IHsgY2hpbGRyZW4sIGlzRW5hYmxlZCB9ID0gdGhpcy5wcm9wcztcbiAgICBjb25zdCB7IHRvdWNoU2Nyb2xsVGFyZ2V0IH0gPSB0aGlzLnN0YXRlO1xuXG4gICAgLy8gYmFpbCBlYXJseSBpZiBub3QgZW5hYmxlZFxuICAgIGlmICghaXNFbmFibGVkKSByZXR1cm4gY2hpbGRyZW47XG5cbiAgICAvKlxuICAgICAqIERpdlxuICAgICAqIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAqIGJsb2NrcyBzY3JvbGxpbmcgb24gbm9uLWJvZHkgZWxlbWVudHMgYmVoaW5kIHRoZSBtZW51XG5cbiAgICAgKiBOb2RlUmVzb2x2ZXJcbiAgICAgKiAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS1cbiAgICAgKiB3ZSBuZWVkIGEgcmVmZXJlbmNlIHRvIHRoZSBzY3JvbGxhYmxlIGVsZW1lbnQgdG8gXCJ1bmxvY2tcIiBzY3JvbGwgb25cbiAgICAgKiBtb2JpbGUgZGV2aWNlc1xuXG4gICAgICogU2Nyb2xsTG9ja1xuICAgICAqIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAqIGFjdHVhbGx5IGRvZXMgdGhlIHNjcm9sbCBsb2NraW5nXG4gICAgICovXG4gICAgcmV0dXJuIChcbiAgICAgIDxkaXY+XG4gICAgICAgIDxkaXZcbiAgICAgICAgICBvbkNsaWNrPXt0aGlzLmJsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgICA8Tm9kZVJlc29sdmVyIGlubmVyUmVmPXt0aGlzLmdldFNjcm9sbFRhcmdldH0+e2NoaWxkcmVufTwvTm9kZVJlc29sdmVyPlxuICAgICAgICB7dG91Y2hTY3JvbGxUYXJnZXQgPyAoXG4gICAgICAgICAgPFNjcm9sbExvY2sgdG91Y2hTY3JvbGxUYXJnZXQ9e3RvdWNoU2Nyb2xsVGFyZ2V0fSAvPlxuICAgICAgICApIDogbnVsbH1cbiAgICAgIDwvZGl2PlxuICAgICk7XG4gIH1cbn1cbiJdfQ== */"},ScrollBlock=function(_PureComponent){function ScrollBlock(){var _getPrototypeOf2,_this;Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__.a)(this,ScrollBlock);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return _this=Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,(_getPrototypeOf2=Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__.a)(ScrollBlock)).call.apply(_getPrototypeOf2,[this].concat(args))),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"state",{touchScrollTarget:null}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getScrollTarget",function(ref){ref!==_this.state.touchScrollTarget&&_this.setState({touchScrollTarget:ref})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"blurSelectInput",function(){document.activeElement&&document.activeElement.blur()}),_this}return Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__.a)(ScrollBlock,_PureComponent),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__.a)(ScrollBlock,[{key:"render",value:function(){var _this$props=this.props,children=_this$props.children,isEnabled=_this$props.isEnabled,touchScrollTarget=this.state.touchScrollTarget;return isEnabled?Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__.c)("div",null,Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__.c)("div",{onClick:this.blurSelectInput,css:_ref$1}),Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__.c)(NodeResolver,{innerRef:this.getScrollTarget},children),touchScrollTarget?Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__.c)(ScrollLock,{touchScrollTarget:touchScrollTarget}):null):children}}]),ScrollBlock}(__WEBPACK_IMPORTED_MODULE_11_react__.PureComponent),ScrollCaptor=function(_Component){function ScrollCaptor(){var _getPrototypeOf2,_this;Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__.a)(this,ScrollCaptor);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return _this=Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,(_getPrototypeOf2=Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__.a)(ScrollCaptor)).call.apply(_getPrototypeOf2,[this].concat(args))),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"isBottom",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"isTop",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"scrollTarget",void 0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"touchStart",void 0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"cancelScroll",function(event){event.preventDefault(),event.stopPropagation()}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"handleEventDelta",function(event,delta){var _this$props=_this.props,onBottomArrive=_this$props.onBottomArrive,onBottomLeave=_this$props.onBottomLeave,onTopArrive=_this$props.onTopArrive,onTopLeave=_this$props.onTopLeave,_this$scrollTarget=_this.scrollTarget,scrollTop=_this$scrollTarget.scrollTop,scrollHeight=_this$scrollTarget.scrollHeight,clientHeight=_this$scrollTarget.clientHeight,target=_this.scrollTarget,isDeltaPositive=delta>0,availableScroll=scrollHeight-clientHeight-scrollTop,shouldCancelScroll=!1;availableScroll>delta&&_this.isBottom&&(onBottomLeave&&onBottomLeave(event),_this.isBottom=!1),isDeltaPositive&&_this.isTop&&(onTopLeave&&onTopLeave(event),_this.isTop=!1),isDeltaPositive&&delta>availableScroll?(onBottomArrive&&!_this.isBottom&&onBottomArrive(event),target.scrollTop=scrollHeight,shouldCancelScroll=!0,_this.isBottom=!0):!isDeltaPositive&&-delta>scrollTop&&(onTopArrive&&!_this.isTop&&onTopArrive(event),target.scrollTop=0,shouldCancelScroll=!0,_this.isTop=!0),shouldCancelScroll&&_this.cancelScroll(event)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onWheel",function(event){_this.handleEventDelta(event,event.deltaY)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onTouchStart",function(event){_this.touchStart=event.changedTouches[0].clientY}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onTouchMove",function(event){var deltaY=_this.touchStart-event.changedTouches[0].clientY;_this.handleEventDelta(event,deltaY)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getScrollTarget",function(ref){_this.scrollTarget=ref}),_this}return Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__.a)(ScrollCaptor,_Component),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__.a)(ScrollCaptor,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(el){el&&("function"==typeof el.addEventListener&&el.addEventListener("wheel",this.onWheel,!1),"function"==typeof el.addEventListener&&el.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof el.addEventListener&&el.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(el){"function"==typeof el.removeEventListener&&el.removeEventListener("wheel",this.onWheel,!1),"function"==typeof el.removeEventListener&&el.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof el.removeEventListener&&el.removeEventListener("touchmove",this.onTouchMove,!1)}},{key:"render",value:function(){return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(NodeResolver,{innerRef:this.getScrollTarget},this.props.children)}}]),ScrollCaptor}(__WEBPACK_IMPORTED_MODULE_11_react__.Component),ScrollCaptorSwitch=function(_Component2){function ScrollCaptorSwitch(){return Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__.a)(this,ScrollCaptorSwitch),Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__.a)(ScrollCaptorSwitch).apply(this,arguments))}return Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__.a)(ScrollCaptorSwitch,_Component2),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__.a)(ScrollCaptorSwitch,[{key:"render",value:function(){var _this$props2=this.props,isEnabled=_this$props2.isEnabled,props=Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__.a)(_this$props2,["isEnabled"]);return isEnabled?__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ScrollCaptor,props):this.props.children}}]),ScrollCaptorSwitch}(__WEBPACK_IMPORTED_MODULE_11_react__.Component);Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(ScrollCaptorSwitch,"defaultProps",{isEnabled:!0});var instructionsAriaMessage=function(event){var context=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},isSearchable=context.isSearchable,isMulti=context.isMulti,label=context.label,isDisabled=context.isDisabled;switch(event){case"menu":return"Use Up and Down to choose options".concat(isDisabled?"":", press Enter to select the currently focused option",", press Escape to exit the menu, press Tab to select the option and exit the menu.");case"input":return"".concat(label||"Select"," is focused ").concat(isSearchable?",type to refine list":"",", press Down to open the menu, ").concat(isMulti?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},valueEventAriaMessage=function(event,context){var value=context.value,isDisabled=context.isDisabled;if(value)switch(event){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(value,", deselected.");case"select-option":return isDisabled?"option ".concat(value," is disabled. Select another option."):"option ".concat(value,", selected.")}},valueFocusAriaMessage=function(_ref){var focusedValue=_ref.focusedValue,getOptionLabel=_ref.getOptionLabel,selectValue=_ref.selectValue;return"value ".concat(getOptionLabel(focusedValue)," focused, ").concat(selectValue.indexOf(focusedValue)+1," of ").concat(selectValue.length,".")},optionFocusAriaMessage=function(_ref2){var focusedOption=_ref2.focusedOption,getOptionLabel=_ref2.getOptionLabel,options=_ref2.options;return"option ".concat(getOptionLabel(focusedOption)," focused").concat(focusedOption.isDisabled?" disabled":"",", ").concat(options.indexOf(focusedOption)+1," of ").concat(options.length,".")},resultsAriaMessage=function(_ref3){var inputValue=_ref3.inputValue;return"".concat(_ref3.screenReaderMessage).concat(inputValue?" for search term "+inputValue:"",".")},formatGroupLabel=function(group){return group.label},getOptionLabel=function(option){return option.label},getOptionValue=function(option){return option.value},isOptionDisabled=function(option){return!!option.isDisabled},defaultStyles={clearIndicator:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.d,container:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.b,control:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.c,dropdownIndicator:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.e,group:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.h,groupHeading:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.f,indicatorsContainer:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.j,indicatorSeparator:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.g,input:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.i,loadingIndicator:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.m,loadingMessage:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.k,menu:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.n,menuList:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.l,menuPortal:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.o,multiValue:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.p,multiValueLabel:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.q,multiValueRemove:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.r,noOptionsMessage:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.s,option:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.t,placeholder:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.u,singleValue:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.v,valueContainer:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.w},colors={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing={baseUnit:4,controlHeight:38,menuGutter:8},defaultTheme={borderRadius:4,colors:colors,spacing:spacing},defaultProps={backspaceRemovesValue:!0,blurInputOnSelect:Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.i)(),captureMenuScroll:!Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.i)(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(config){return function(option,rawInput){var _ignoreCase$ignoreAcc=Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectSpread__.a)({ignoreCase:!0,ignoreAccents:!0,stringify:defaultStringify,trim:!0,matchFrom:"any"},config),ignoreCase=_ignoreCase$ignoreAcc.ignoreCase,ignoreAccents=_ignoreCase$ignoreAcc.ignoreAccents,stringify=_ignoreCase$ignoreAcc.stringify,trim=_ignoreCase$ignoreAcc.trim,matchFrom=_ignoreCase$ignoreAcc.matchFrom,input=trim?trimString(rawInput):rawInput,candidate=trim?trimString(stringify(option)):stringify(option);return ignoreCase&&(input=input.toLowerCase(),candidate=candidate.toLowerCase()),ignoreAccents&&(input=stripDiacritics(input),candidate=stripDiacritics(candidate)),"start"===matchFrom?candidate.substr(0,input.length)===input:candidate.indexOf(input)>-1}}(),formatGroupLabel:formatGroupLabel,getOptionLabel:getOptionLabel,getOptionValue:getOptionValue,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:isOptionDisabled,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.d)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(_ref){var count=_ref.count;return"".concat(count," result").concat(1!==count?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},instanceId=1,Select=function(_Component){function Select(_props){var _this;Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__.a)(this,Select),_this=Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__.a)(Select).call(this,_props)),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"state",{ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"blockOptionHover",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"isComposing",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"clearFocusValueOnUpdate",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"commonProps",void 0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"components",void 0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"hasGroups",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"initialTouchX",0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"initialTouchY",0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"inputIsHiddenAfterUpdate",void 0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"instancePrefix",""),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"openAfterFocus",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"scrollToFocusedOptionOnUpdate",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"userIsDragging",void 0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"controlRef",null),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getControlRef",function(ref){_this.controlRef=ref}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"focusedOptionRef",null),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getFocusedOptionRef",function(ref){_this.focusedOptionRef=ref}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"menuListRef",null),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getMenuListRef",function(ref){_this.menuListRef=ref}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"inputRef",null),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getInputRef",function(ref){_this.inputRef=ref}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"cacheComponents",function(components){_this.components=Object(__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.x)({components:components})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"focus",_this.focusInput),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"blur",_this.blurInput),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onChange",function(newValue,actionMeta){var _this$props=_this.props,onChange=_this$props.onChange,name=_this$props.name;onChange(newValue,Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectSpread__.a)({},actionMeta,{name:name}))}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"setValue",function(newValue){var action=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",option=arguments.length>2?arguments[2]:void 0,_this$props2=_this.props,closeMenuOnSelect=_this$props2.closeMenuOnSelect,isMulti=_this$props2.isMulti;_this.onInputChange("",{action:"set-value"}),closeMenuOnSelect&&(_this.inputIsHiddenAfterUpdate=!isMulti,_this.onMenuClose()),_this.clearFocusValueOnUpdate=!0,_this.onChange(newValue,{action:action,option:option})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"selectOption",function(newValue){var _this$props3=_this.props,blurInputOnSelect=_this$props3.blurInputOnSelect,isMulti=_this$props3.isMulti,selectValue=_this.state.selectValue;if(isMulti)if(_this.isOptionSelected(newValue,selectValue)){var candidate=_this.getOptionValue(newValue);_this.setValue(selectValue.filter(function(i){return _this.getOptionValue(i)!==candidate}),"deselect-option",newValue),_this.announceAriaLiveSelection({event:"deselect-option",context:{value:_this.getOptionLabel(newValue)}})}else _this.isOptionDisabled(newValue,selectValue)?_this.announceAriaLiveSelection({event:"select-option",context:{value:_this.getOptionLabel(newValue),isDisabled:!0}}):(_this.setValue([].concat(Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_toConsumableArray__.a)(selectValue),[newValue]),"select-option",newValue),_this.announceAriaLiveSelection({event:"select-option",context:{value:_this.getOptionLabel(newValue)}}));else _this.isOptionDisabled(newValue,selectValue)?_this.announceAriaLiveSelection({event:"select-option",context:{value:_this.getOptionLabel(newValue),isDisabled:!0}}):(_this.setValue(newValue,"select-option"),_this.announceAriaLiveSelection({event:"select-option",context:{value:_this.getOptionLabel(newValue)}}));blurInputOnSelect&&_this.blurInput()}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"removeValue",function(removedValue){var selectValue=_this.state.selectValue,candidate=_this.getOptionValue(removedValue),newValue=selectValue.filter(function(i){return _this.getOptionValue(i)!==candidate});_this.onChange(newValue.length?newValue:null,{action:"remove-value",removedValue:removedValue}),_this.announceAriaLiveSelection({event:"remove-value",context:{value:removedValue?_this.getOptionLabel(removedValue):""}}),_this.focusInput()}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"clearValue",function(){var isMulti=_this.props.isMulti;_this.onChange(isMulti?[]:null,{action:"clear"})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"popValue",function(){var selectValue=_this.state.selectValue,lastSelectedValue=selectValue[selectValue.length-1],newValue=selectValue.slice(0,selectValue.length-1);_this.announceAriaLiveSelection({event:"pop-value",context:{value:lastSelectedValue?_this.getOptionLabel(lastSelectedValue):""}}),_this.onChange(newValue.length?newValue:null,{action:"pop-value",removedValue:lastSelectedValue})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getOptionLabel",function(data){return _this.props.getOptionLabel(data)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getOptionValue",function(data){return _this.props.getOptionValue(data)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getStyles",function(key,props){var base=defaultStyles[key](props);base.boxSizing="border-box";var custom=_this.props.styles[key];return custom?custom(base,props):base}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getElementId",function(element){return"".concat(_this.instancePrefix,"-").concat(element)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getActiveDescendentId",function(){var menuIsOpen=_this.props.menuIsOpen,_this$state=_this.state,menuOptions=_this$state.menuOptions,focusedOption=_this$state.focusedOption;if(focusedOption&&menuIsOpen){var index=menuOptions.focusable.indexOf(focusedOption),option=menuOptions.render[index];return option&&option.key}}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"announceAriaLiveSelection",function(_ref2){var event=_ref2.event,context=_ref2.context;_this.setState({ariaLiveSelection:valueEventAriaMessage(event,context)})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"announceAriaLiveContext",function(_ref3){var event=_ref3.event,context=_ref3.context;_this.setState({ariaLiveContext:instructionsAriaMessage(event,Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectSpread__.a)({},context,{label:_this.props["aria-label"]}))})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onMenuMouseDown",function(event){0===event.button&&(event.stopPropagation(),event.preventDefault(),_this.focusInput())}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onMenuMouseMove",function(event){_this.blockOptionHover=!1}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onControlMouseDown",function(event){var openMenuOnClick=_this.props.openMenuOnClick;_this.state.isFocused?_this.props.menuIsOpen?"INPUT"!==event.target.tagName&&_this.onMenuClose():openMenuOnClick&&_this.openMenu("first"):(openMenuOnClick&&(_this.openAfterFocus=!0),_this.focusInput()),"INPUT"!==event.target.tagName&&event.preventDefault()}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onDropdownIndicatorMouseDown",function(event){if(!(event&&"mousedown"===event.type&&0!==event.button||_this.props.isDisabled)){var _this$props4=_this.props,isMulti=_this$props4.isMulti,menuIsOpen=_this$props4.menuIsOpen;_this.focusInput(),menuIsOpen?(_this.inputIsHiddenAfterUpdate=!isMulti,_this.onMenuClose()):_this.openMenu("first"),event.preventDefault(),event.stopPropagation()}}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onClearIndicatorMouseDown",function(event){event&&"mousedown"===event.type&&0!==event.button||(_this.clearValue(),event.stopPropagation(),_this.openAfterFocus=!1,"touchend"===event.type?_this.focusInput():setTimeout(function(){return _this.focusInput()}))}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onScroll",function(event){"boolean"==typeof _this.props.closeMenuOnScroll?event.target instanceof HTMLElement&&Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.e)(event.target)&&_this.props.onMenuClose():"function"==typeof _this.props.closeMenuOnScroll&&_this.props.closeMenuOnScroll(event)&&_this.props.onMenuClose()}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onCompositionStart",function(){_this.isComposing=!0}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onCompositionEnd",function(){_this.isComposing=!1}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onTouchStart",function(_ref4){var touches=_ref4.touches,touch=touches.item(0);touch&&(_this.initialTouchX=touch.clientX,_this.initialTouchY=touch.clientY,_this.userIsDragging=!1)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onTouchMove",function(_ref5){var touches=_ref5.touches,touch=touches.item(0);if(touch){var deltaX=Math.abs(touch.clientX-_this.initialTouchX),deltaY=Math.abs(touch.clientY-_this.initialTouchY);_this.userIsDragging=deltaX>5||deltaY>5}}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onTouchEnd",function(event){_this.userIsDragging||(_this.controlRef&&!_this.controlRef.contains(event.target)&&_this.menuListRef&&!_this.menuListRef.contains(event.target)&&_this.blurInput(),_this.initialTouchX=0,_this.initialTouchY=0)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onControlTouchEnd",function(event){_this.userIsDragging||_this.onControlMouseDown(event)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onClearIndicatorTouchEnd",function(event){_this.userIsDragging||_this.onClearIndicatorMouseDown(event)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onDropdownIndicatorTouchEnd",function(event){_this.userIsDragging||_this.onDropdownIndicatorMouseDown(event)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"handleInputChange",function(event){var inputValue=event.currentTarget.value;_this.inputIsHiddenAfterUpdate=!1,_this.onInputChange(inputValue,{action:"input-change"}),_this.onMenuOpen()}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onInputFocus",function(event){var _this$props5=_this.props,isSearchable=_this$props5.isSearchable,isMulti=_this$props5.isMulti;_this.props.onFocus&&_this.props.onFocus(event),_this.inputIsHiddenAfterUpdate=!1,_this.announceAriaLiveContext({event:"input",context:{isSearchable:isSearchable,isMulti:isMulti}}),_this.setState({isFocused:!0}),(_this.openAfterFocus||_this.props.openMenuOnFocus)&&_this.openMenu("first"),_this.openAfterFocus=!1}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onInputBlur",function(event){if(_this.menuListRef&&_this.menuListRef.contains(document.activeElement))return void _this.inputRef.focus();_this.props.onBlur&&_this.props.onBlur(event),_this.onInputChange("",{action:"input-blur"}),_this.onMenuClose(),_this.setState({focusedValue:null,isFocused:!1})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onOptionHover",function(focusedOption){_this.blockOptionHover||_this.state.focusedOption===focusedOption||_this.setState({focusedOption:focusedOption})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"shouldHideSelectedOptions",function(){var _this$props6=_this.props,hideSelectedOptions=_this$props6.hideSelectedOptions,isMulti=_this$props6.isMulti;return void 0===hideSelectedOptions?isMulti:hideSelectedOptions}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onKeyDown",function(event){var _this$props7=_this.props,isMulti=_this$props7.isMulti,backspaceRemovesValue=_this$props7.backspaceRemovesValue,escapeClearsValue=_this$props7.escapeClearsValue,inputValue=_this$props7.inputValue,isClearable=_this$props7.isClearable,isDisabled=_this$props7.isDisabled,menuIsOpen=_this$props7.menuIsOpen,onKeyDown=_this$props7.onKeyDown,tabSelectsValue=_this$props7.tabSelectsValue,openMenuOnFocus=_this$props7.openMenuOnFocus,_this$state2=_this.state,focusedOption=_this$state2.focusedOption,focusedValue=_this$state2.focusedValue,selectValue=_this$state2.selectValue;if(!(isDisabled||"function"==typeof onKeyDown&&(onKeyDown(event),event.defaultPrevented))){switch(_this.blockOptionHover=!0,event.key){case"ArrowLeft":if(!isMulti||inputValue)return;_this.focusValue("previous");break;case"ArrowRight":if(!isMulti||inputValue)return;_this.focusValue("next");break;case"Delete":case"Backspace":if(inputValue)return;if(focusedValue)_this.removeValue(focusedValue);else{if(!backspaceRemovesValue)return;isMulti?_this.popValue():isClearable&&_this.clearValue()}break;case"Tab":if(_this.isComposing)return;if(event.shiftKey||!menuIsOpen||!tabSelectsValue||!focusedOption||openMenuOnFocus&&_this.isOptionSelected(focusedOption,selectValue))return;_this.selectOption(focusedOption);break;case"Enter":if(229===event.keyCode)break;if(menuIsOpen){if(!focusedOption)return;if(_this.isComposing)return;_this.selectOption(focusedOption);break}return;case"Escape":menuIsOpen?(_this.inputIsHiddenAfterUpdate=!1,_this.onInputChange("",{action:"menu-close"}),_this.onMenuClose()):isClearable&&escapeClearsValue&&_this.clearValue();break;case" ":if(inputValue)return;if(!menuIsOpen){_this.openMenu("first");break}if(!focusedOption)return;_this.selectOption(focusedOption);break;case"ArrowUp":menuIsOpen?_this.focusOption("up"):_this.openMenu("last");break;case"ArrowDown":menuIsOpen?_this.focusOption("down"):_this.openMenu("first");break;case"PageUp":if(!menuIsOpen)return;_this.focusOption("pageup");break;case"PageDown":if(!menuIsOpen)return;_this.focusOption("pagedown");break;case"Home":if(!menuIsOpen)return;_this.focusOption("first");break;case"End":if(!menuIsOpen)return;_this.focusOption("last");break;default:return}event.preventDefault()}});var value=_props.value;_this.cacheComponents=Object(__WEBPACK_IMPORTED_MODULE_12_memoize_one__.a)(_this.cacheComponents,__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.y).bind(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this))),_this.cacheComponents(_props.components),_this.instancePrefix="react-select-"+(_this.props.instanceId||++instanceId);var _selectValue=Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.f)(value),_menuOptions=_props.menuIsOpen?_this.buildMenuOptions(_props,_selectValue):{render:[],focusable:[]};return _this.state.menuOptions=_menuOptions,_this.state.selectValue=_selectValue,_this}return Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__.a)(Select,_Component),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__.a)(Select,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"UNSAFE_componentWillReceiveProps",value:function(nextProps){var _this$props8=this.props,options=_this$props8.options,value=_this$props8.value,menuIsOpen=_this$props8.menuIsOpen,inputValue=_this$props8.inputValue;if(this.cacheComponents(nextProps.components),nextProps.value!==value||nextProps.options!==options||nextProps.menuIsOpen!==menuIsOpen||nextProps.inputValue!==inputValue){var selectValue=Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.f)(nextProps.value),menuOptions=nextProps.menuIsOpen?this.buildMenuOptions(nextProps,selectValue):{render:[],focusable:[]},focusedValue=this.getNextFocusedValue(selectValue),focusedOption=this.getNextFocusedOption(menuOptions.focusable);this.setState({menuOptions:menuOptions,selectValue:selectValue,focusedOption:focusedOption,focusedValue:focusedValue})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(prevProps){var _this$props9=this.props,isDisabled=_this$props9.isDisabled,menuIsOpen=_this$props9.menuIsOpen,isFocused=this.state.isFocused;(isFocused&&!isDisabled&&prevProps.isDisabled||isFocused&&menuIsOpen&&!prevProps.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.h)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var _this$props10=this.props,isSearchable=_this$props10.isSearchable,isMulti=_this$props10.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:isSearchable,isMulti:isMulti}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(newValue,actionMeta){this.props.onInputChange(newValue,actionMeta)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(focusOption){var _this$state3=this.state,menuOptions=_this$state3.menuOptions,selectValue=_this$state3.selectValue,isFocused=_this$state3.isFocused,isMulti=this.props.isMulti,openAtIndex="first"===focusOption?0:menuOptions.focusable.length-1;if(!isMulti){var selectedIndex=menuOptions.focusable.indexOf(selectValue[0]);selectedIndex>-1&&(openAtIndex=selectedIndex)}this.scrollToFocusedOptionOnUpdate=!(isFocused&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.onMenuOpen(),this.setState({focusedValue:null,focusedOption:menuOptions.focusable[openAtIndex]}),this.announceAriaLiveContext({event:"menu"})}},{key:"focusValue",value:function(direction){var _this$props11=this.props,isMulti=_this$props11.isMulti,isSearchable=_this$props11.isSearchable,_this$state4=this.state,selectValue=_this$state4.selectValue,focusedValue=_this$state4.focusedValue;if(isMulti){this.setState({focusedOption:null});var focusedIndex=selectValue.indexOf(focusedValue);focusedValue||(focusedIndex=-1,this.announceAriaLiveContext({event:"value"}));var lastIndex=selectValue.length-1,nextFocus=-1;if(selectValue.length){switch(direction){case"previous":nextFocus=0===focusedIndex?0:-1===focusedIndex?lastIndex:focusedIndex-1;break;case"next":focusedIndex>-1&&focusedIndex<lastIndex&&(nextFocus=focusedIndex+1)}-1===nextFocus&&this.announceAriaLiveContext({event:"input",context:{isSearchable:isSearchable,isMulti:isMulti}}),this.setState({inputIsHidden:-1!==nextFocus,focusedValue:selectValue[nextFocus]})}}}},{key:"focusOption",value:function(){var direction=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",pageSize=this.props.pageSize,_this$state5=this.state,focusedOption=_this$state5.focusedOption,menuOptions=_this$state5.menuOptions,options=menuOptions.focusable;if(options.length){var nextFocus=0,focusedIndex=options.indexOf(focusedOption);focusedOption||(focusedIndex=-1,this.announceAriaLiveContext({event:"menu"})),"up"===direction?nextFocus=focusedIndex>0?focusedIndex-1:options.length-1:"down"===direction?nextFocus=(focusedIndex+1)%options.length:"pageup"===direction?(nextFocus=focusedIndex-pageSize)<0&&(nextFocus=0):"pagedown"===direction?(nextFocus=focusedIndex+pageSize)>options.length-1&&(nextFocus=options.length-1):"last"===direction&&(nextFocus=options.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:options[nextFocus],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:isOptionDisabled(options[nextFocus])}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(defaultTheme):Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectSpread__.a)({},defaultTheme,this.props.theme):defaultTheme}},{key:"getCommonProps",value:function(){var clearValue=this.clearValue,getStyles=this.getStyles,setValue=this.setValue,selectOption=this.selectOption,props=this.props,classNamePrefix=props.classNamePrefix,isMulti=props.isMulti,isRtl=props.isRtl,options=props.options,selectValue=this.state.selectValue,hasValue=this.hasValue(),getValue=function(){return selectValue};return{cx:__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.j.bind(null,classNamePrefix),clearValue:clearValue,getStyles:getStyles,getValue:getValue,hasValue:hasValue,isMulti:isMulti,isRtl:isRtl,options:options,selectOption:selectOption,setValue:setValue,selectProps:props,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(nextSelectValue){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var _this$state6=this.state,focusedValue=_this$state6.focusedValue,lastSelectValue=_this$state6.selectValue,lastFocusedIndex=lastSelectValue.indexOf(focusedValue);if(lastFocusedIndex>-1){if(nextSelectValue.indexOf(focusedValue)>-1)return focusedValue;if(lastFocusedIndex<nextSelectValue.length)return nextSelectValue[lastFocusedIndex]}return null}},{key:"getNextFocusedOption",value:function(options){var lastFocusedOption=this.state.focusedOption;return lastFocusedOption&&options.indexOf(lastFocusedOption)>-1?lastFocusedOption:options[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var _this$props12=this.props,isClearable=_this$props12.isClearable,isMulti=_this$props12.isMulti;return void 0===isClearable?isMulti:isClearable}},{key:"isOptionDisabled",value:function(option,selectValue){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(option,selectValue)}},{key:"isOptionSelected",value:function(option,selectValue){var _this2=this;if(selectValue.indexOf(option)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(option,selectValue);var candidate=this.getOptionValue(option);return selectValue.some(function(i){return _this2.getOptionValue(i)===candidate})}},{key:"filterOption",value:function(option,inputValue){return!this.props.filterOption||this.props.filterOption(option,inputValue)}},{key:"formatOptionLabel",value:function(data,context){if("function"==typeof this.props.formatOptionLabel){var inputValue=this.props.inputValue,selectValue=this.state.selectValue;return this.props.formatOptionLabel(data,{context:context,inputValue:inputValue,selectValue:selectValue})}return this.getOptionLabel(data)}},{key:"formatGroupLabel",value:function(data){return this.props.formatGroupLabel(data)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"buildMenuOptions",value:function(props,selectValue){var _this3=this,_props$inputValue=props.inputValue,inputValue=void 0===_props$inputValue?"":_props$inputValue,options=props.options,toOption=function(option,id){var isDisabled=_this3.isOptionDisabled(option,selectValue),isSelected=_this3.isOptionSelected(option,selectValue),label=_this3.getOptionLabel(option),value=_this3.getOptionValue(option);if(!(_this3.shouldHideSelectedOptions()&&isSelected||!_this3.filterOption({label:label,value:value,data:option},inputValue))){var onHover=isDisabled?void 0:function(){return _this3.onOptionHover(option)},onSelect=isDisabled?void 0:function(){return _this3.selectOption(option)},optionId="".concat(_this3.getElementId("option"),"-").concat(id);return{innerProps:{id:optionId,onClick:onSelect,onMouseMove:onHover,onMouseOver:onHover,tabIndex:-1},data:option,isDisabled:isDisabled,isSelected:isSelected,key:optionId,label:label,type:"option",value:value}}};return options.reduce(function(acc,item,itemIndex){if(item.options){_this3.hasGroups||(_this3.hasGroups=!0);var items=item.options,children=items.map(function(child,i){var option=toOption(child,"".concat(itemIndex,"-").concat(i));return option&&acc.focusable.push(child),option}).filter(Boolean);if(children.length){var groupId="".concat(_this3.getElementId("group"),"-").concat(itemIndex);acc.render.push({type:"group",key:groupId,data:item,options:children})}}else{var option=toOption(item,"".concat(itemIndex));option&&(acc.render.push(option),acc.focusable.push(item))}return acc},{render:[],focusable:[]})}},{key:"constructAriaLiveMessage",value:function(){var _this$state7=this.state,ariaLiveContext=_this$state7.ariaLiveContext,selectValue=_this$state7.selectValue,focusedValue=_this$state7.focusedValue,focusedOption=_this$state7.focusedOption,_this$props13=this.props,options=_this$props13.options,menuIsOpen=_this$props13.menuIsOpen,inputValue=_this$props13.inputValue,screenReaderStatus=_this$props13.screenReaderStatus,focusedValueMsg=focusedValue?valueFocusAriaMessage({focusedValue:focusedValue,getOptionLabel:this.getOptionLabel,selectValue:selectValue}):"",focusedOptionMsg=focusedOption&&menuIsOpen?optionFocusAriaMessage({focusedOption:focusedOption,getOptionLabel:this.getOptionLabel,options:options}):"",resultsMsg=resultsAriaMessage({inputValue:inputValue,screenReaderMessage:screenReaderStatus({count:this.countOptions()})});return"".concat(focusedValueMsg," ").concat(focusedOptionMsg," ").concat(resultsMsg," ").concat(ariaLiveContext)}},{key:"renderInput",value:function(){var _this$props14=this.props,isDisabled=_this$props14.isDisabled,isSearchable=_this$props14.isSearchable,inputId=_this$props14.inputId,inputValue=_this$props14.inputValue,tabIndex=_this$props14.tabIndex,Input=this.components.Input,inputIsHidden=this.state.inputIsHidden,id=inputId||this.getElementId("input");if(!isSearchable)return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(DummyInput,{id:id,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.k,onFocus:this.onInputFocus,readOnly:!0,disabled:isDisabled,tabIndex:tabIndex,value:""});var ariaAttributes={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]},_this$commonProps=this.commonProps,cx=_this$commonProps.cx,theme=_this$commonProps.theme,selectProps=_this$commonProps.selectProps;return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Input,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:cx,getStyles:this.getStyles,id:id,innerRef:this.getInputRef,isDisabled:isDisabled,isHidden:inputIsHidden,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:selectProps,spellCheck:"false",tabIndex:tabIndex,theme:theme,type:"text",value:inputValue},ariaAttributes))}},{key:"renderPlaceholderOrValue",value:function(){var _this4=this,_this$components=this.components,MultiValue=_this$components.MultiValue,MultiValueContainer=_this$components.MultiValueContainer,MultiValueLabel=_this$components.MultiValueLabel,MultiValueRemove=_this$components.MultiValueRemove,SingleValue=_this$components.SingleValue,Placeholder=_this$components.Placeholder,commonProps=this.commonProps,_this$props15=this.props,controlShouldRenderValue=_this$props15.controlShouldRenderValue,isDisabled=_this$props15.isDisabled,isMulti=_this$props15.isMulti,inputValue=_this$props15.inputValue,placeholder=_this$props15.placeholder,_this$state8=this.state,selectValue=_this$state8.selectValue,focusedValue=_this$state8.focusedValue,isFocused=_this$state8.isFocused;if(!this.hasValue()||!controlShouldRenderValue)return inputValue?null:__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Placeholder,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{key:"placeholder",isDisabled:isDisabled,isFocused:isFocused}),placeholder);if(isMulti){return selectValue.map(function(opt,index){var isOptionFocused=opt===focusedValue;return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(MultiValue,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{components:{Container:MultiValueContainer,Label:MultiValueLabel,Remove:MultiValueRemove},isFocused:isOptionFocused,isDisabled:isDisabled,key:_this4.getOptionValue(opt),index:index,removeProps:{onClick:function(){return _this4.removeValue(opt)},onTouchEnd:function(){return _this4.removeValue(opt)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:opt}),_this4.formatOptionLabel(opt,"value"))})}if(inputValue)return null;var singleValue=selectValue[0];return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(SingleValue,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{data:singleValue,isDisabled:isDisabled}),this.formatOptionLabel(singleValue,"value"))}},{key:"renderClearIndicator",value:function(){var ClearIndicator=this.components.ClearIndicator,commonProps=this.commonProps,_this$props16=this.props,isDisabled=_this$props16.isDisabled,isLoading=_this$props16.isLoading,isFocused=this.state.isFocused;if(!this.isClearable()||!ClearIndicator||isDisabled||!this.hasValue()||isLoading)return null;var innerProps={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ClearIndicator,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{innerProps:innerProps,isFocused:isFocused}))}},{key:"renderLoadingIndicator",value:function(){var LoadingIndicator=this.components.LoadingIndicator,commonProps=this.commonProps,_this$props17=this.props,isDisabled=_this$props17.isDisabled,isLoading=_this$props17.isLoading,isFocused=this.state.isFocused;if(!LoadingIndicator||!isLoading)return null;var innerProps={"aria-hidden":"true"};return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(LoadingIndicator,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{innerProps:innerProps,isDisabled:isDisabled,isFocused:isFocused}))}},{key:"renderIndicatorSeparator",value:function(){var _this$components2=this.components,DropdownIndicator=_this$components2.DropdownIndicator,IndicatorSeparator=_this$components2.IndicatorSeparator;if(!DropdownIndicator||!IndicatorSeparator)return null;var commonProps=this.commonProps,isDisabled=this.props.isDisabled,isFocused=this.state.isFocused;return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(IndicatorSeparator,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{isDisabled:isDisabled,isFocused:isFocused}))}},{key:"renderDropdownIndicator",value:function(){var DropdownIndicator=this.components.DropdownIndicator;if(!DropdownIndicator)return null;var commonProps=this.commonProps,isDisabled=this.props.isDisabled,isFocused=this.state.isFocused,innerProps={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(DropdownIndicator,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{innerProps:innerProps,isDisabled:isDisabled,isFocused:isFocused}))}},{key:"renderMenu",value:function(){var _this5=this,_this$components3=this.components,Group=_this$components3.Group,GroupHeading=_this$components3.GroupHeading,Menu=_this$components3.Menu,MenuList=_this$components3.MenuList,MenuPortal=_this$components3.MenuPortal,LoadingMessage=_this$components3.LoadingMessage,NoOptionsMessage=_this$components3.NoOptionsMessage,Option=_this$components3.Option,commonProps=this.commonProps,_this$state9=this.state,focusedOption=_this$state9.focusedOption,menuOptions=_this$state9.menuOptions,_this$props18=this.props,captureMenuScroll=_this$props18.captureMenuScroll,inputValue=_this$props18.inputValue,isLoading=_this$props18.isLoading,loadingMessage=_this$props18.loadingMessage,minMenuHeight=_this$props18.minMenuHeight,maxMenuHeight=_this$props18.maxMenuHeight,menuIsOpen=_this$props18.menuIsOpen,menuPlacement=_this$props18.menuPlacement,menuPosition=_this$props18.menuPosition,menuPortalTarget=_this$props18.menuPortalTarget,menuShouldBlockScroll=_this$props18.menuShouldBlockScroll,menuShouldScrollIntoView=_this$props18.menuShouldScrollIntoView,noOptionsMessage=_this$props18.noOptionsMessage,onMenuScrollToTop=_this$props18.onMenuScrollToTop,onMenuScrollToBottom=_this$props18.onMenuScrollToBottom;if(!menuIsOpen)return null;var menuUI,render=function(props){var isFocused=focusedOption===props.data;return props.innerRef=isFocused?_this5.getFocusedOptionRef:void 0,__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Option,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,props,{isFocused:isFocused}),_this5.formatOptionLabel(props.data,"menu"))};if(this.hasOptions())menuUI=menuOptions.render.map(function(item){if("group"===item.type){var group=(item.type,Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__.a)(item,["type"])),headingId="".concat(item.key,"-heading");return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Group,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,group,{Heading:GroupHeading,headingProps:{id:headingId},label:_this5.formatGroupLabel(item.data)}),item.options.map(function(option){return render(option)}))}if("option"===item.type)return render(item)});else if(isLoading){var message=loadingMessage({inputValue:inputValue});if(null===message)return null;menuUI=__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(LoadingMessage,commonProps,message)}else{var _message=noOptionsMessage({inputValue:inputValue});if(null===_message)return null;menuUI=__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(NoOptionsMessage,commonProps,_message)}var menuPlacementProps={minMenuHeight:minMenuHeight,maxMenuHeight:maxMenuHeight,menuPlacement:menuPlacement,menuPosition:menuPosition,menuShouldScrollIntoView:menuShouldScrollIntoView},menuElement=__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.a,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,menuPlacementProps),function(_ref6){var ref=_ref6.ref,_ref6$placerProps=_ref6.placerProps,placement=_ref6$placerProps.placement,maxHeight=_ref6$placerProps.maxHeight;return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Menu,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,menuPlacementProps,{innerRef:ref,innerProps:{onMouseDown:_this5.onMenuMouseDown,onMouseMove:_this5.onMenuMouseMove},isLoading:isLoading,placement:placement}),__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ScrollCaptorSwitch,{isEnabled:captureMenuScroll,onTopArrive:onMenuScrollToTop,onBottomArrive:onMenuScrollToBottom},__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ScrollBlock,{isEnabled:menuShouldBlockScroll},__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(MenuList,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{innerRef:_this5.getMenuListRef,isLoading:isLoading,maxHeight:maxHeight}),menuUI))))});return menuPortalTarget||"fixed"===menuPosition?__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(MenuPortal,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{appendTo:menuPortalTarget,controlElement:this.controlRef,menuPlacement:menuPlacement,menuPosition:menuPosition}),menuElement):menuElement}},{key:"renderFormField",value:function(){var _this6=this,_this$props19=this.props,delimiter=_this$props19.delimiter,isDisabled=_this$props19.isDisabled,isMulti=_this$props19.isMulti,name=_this$props19.name,selectValue=this.state.selectValue;if(name&&!isDisabled){if(isMulti){if(delimiter){var value=selectValue.map(function(opt){return _this6.getOptionValue(opt)}).join(delimiter);return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input",{name:name,type:"hidden",value:value})}var input=selectValue.length>0?selectValue.map(function(opt,i){return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input",{key:"i-".concat(i),name:name,type:"hidden",value:_this6.getOptionValue(opt)})}):__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input",{name:name,type:"hidden"});return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("div",null,input)}var _value=selectValue[0]?this.getOptionValue(selectValue[0]):"";return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input",{name:name,type:"hidden",value:_value})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(A11yText,{"aria-live":"polite"},__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("p",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("p",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var _this$components4=this.components,Control=_this$components4.Control,IndicatorsContainer=_this$components4.IndicatorsContainer,SelectContainer=_this$components4.SelectContainer,ValueContainer=_this$components4.ValueContainer,_this$props20=this.props,className=_this$props20.className,id=_this$props20.id,isDisabled=_this$props20.isDisabled,menuIsOpen=_this$props20.menuIsOpen,isFocused=this.state.isFocused,commonProps=this.commonProps=this.getCommonProps();return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(SelectContainer,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{className:className,innerProps:{id:id,onKeyDown:this.onKeyDown},isDisabled:isDisabled,isFocused:isFocused}),this.renderLiveRegion(),__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Control,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:isDisabled,isFocused:isFocused,menuIsOpen:menuIsOpen}),__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ValueContainer,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{isDisabled:isDisabled}),this.renderPlaceholderOrValue(),this.renderInput()),__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(IndicatorsContainer,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{isDisabled:isDisabled}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),Select}(__WEBPACK_IMPORTED_MODULE_11_react__.Component);Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Select,"defaultProps",defaultProps)}).call(__webpack_exports__,__webpack_require__(0))},function(module,__webpack_exports__,__webpack_require__){"use strict";Object.defineProperty(__webpack_exports__,"__esModule",{value:!0});var __WEBPACK_IMPORTED_MODULE_0__App__=__webpack_require__(46),render=wp.element.render;!function waitForEl(selector,callback){document.getElementById("analogwp-templates")?callback():setTimeout(function(){window.requestAnimationFrame(function(){waitForEl(selector,callback)})},1e3)}(document.getElementById("analogwp-templates"),function(){render(React.createElement(__WEBPACK_IMPORTED_MODULE_0__App__.a,null),document.getElementById("analogwp-templates"))})},function(module,__webpack_exports__,__webpack_require__){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(iter){if(Symbol.iterator in Object(iter)||"[object Arguments]"===Object.prototype.toString.call(iter))return Array.from(iter)}function _arrayWithoutHoles(arr){if(Array.isArray(arr)){for(var i=0,arr2=new Array(arr.length);i<arr.length;i++)arr2[i]=arr[i];return arr2}}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}var gen=fn.apply(self,args);_next(void 0)})}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _possibleConstructorReturn(self,call){return!call||"object"!==_typeof(call)&&"function"!=typeof call?_assertThisInitialized(self):call}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _templateObject(){var data=_taggedTemplateLiteral(["\n\tmargin: 0 0 0 -20px;\n\t-webkit-font-smoothing: antialiased;\n\t-moz-osx-font-smoothing: grayscale;\n\tfont-size: 13px;\n\tposition: relative;\n\n\t--ang-accent: rgb(0, 112, 167);\n\n\t.ang-notices {\n\t\tposition: fixed;\n\t\tright: 0;\n\t\ttop: 75px;\n\t\tpadding: 8px;\n\t\tz-index: 100000;\n\t}\n\n\t.components-form-toggle.is-checked .components-form-toggle__track {\n\t\tbackground-color: var(--ang-primary);\n\t}\n\n\t.components-form-toggle .components-form-toggle__input:focus + .components-form-toggle__track {\n\t\tbox-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ang-primary);\n\t}\n\n\t.ang-button {\n\t\tfont-size: 14.22px;\n\t\tfont-weight: bold;\n\t\ttext-align: center;\n\t\tborder-radius: 4px;\n\t\tcolor: #fff;\n\t\tbackground: ",";\n\t\tpadding: 12px 24px;\n\t\tdisplay: inline-flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tborder: none;\n\t\toutline: 0;\n\t\tcursor: pointer;\n\t\ttransition: all 200ms ease-in;\n\t\tmin-width: 100px;\n\t\ttext-decoration: none;\n\t\tbox-sizing: border-box;\n\t\theight: auto;\n\t\ta {\n\t\t\tcolor: #fff !important;\n\t\t\ttext-decoration: none;\n\t\t}\n\n\t\t&.secondary {\n\t\t\tbackground: #000222;\n\t\t\tborder-radius: 0;\n\t\t\ttext-transform: uppercase;\n\t\t\tfont-size: 12px;\n\t\t}\n\n\t\t&:disabled {\n\t\t\tcursor: not-allowed;\n\t\t\topacity: 0.4;\n\t\t\tfilter: grayscale(1);\n\t\t}\n\t}\n\n\ta {\n\t\toutline: 0;\n\t\tbox-shadow: none;\n\t}\n\n\t.button-plain {\n\t\tpadding: 0;\n\t\tmargin: 0;\n\t\tborder: none;\n\t\tborder-radius: 0;\n\t\tbox-shadow: none;\n\t\tcursor: pointer;\n\t\t-webkit-appearance: none;\n\t\tappearance: none;\n\t\toutline: 0;\n\t\tbackground: transparent;\n\t\tfont-weight: bold;\n\t\tcolor: #060606;\n\t\tfont-size: 14.22px;\n\t}\n\n\n\tbutton {\n\t\tfont-family: inherit;\n\t}\n\n\t.button-accent {\n\t\tbackground: var(--ang-accent);\n\t\tborder: 0;\n\t\tborder-radius: 0;\n\t\ttext-transform: uppercase;\n\t\tfont-size: 12px;\n\t\tletter-spacing: 1px;\n\t\tfont-weight: bold;\n\t\tbox-shadow: none;\n\t\ttext-shadow: none;\n\t\tcolor: #fff;\n\t\tpadding: 15px 24px;\n\t\theight: auto;\n\t\t&:focus,\n\t\t&:active {\n\t\t\tborder: none !important;\n\t\t\tbackground: rgb(255, 120, 101, 0.9) !important;\n\t\t\tbox-shadow: none !important;\n\t\t\tcolor: #fff !important;\n\t\t}\n\t\t&:hover {\n\t\t\tcolor: #fff;\n\t\t\tbackground: rgb(255, 120, 101, 0.9);\n\t\t\tborder: none;\n\t\t}\n\t}\n\n\t.components-external-link {\n\t\tfont-weight: 500;\n\t}\n\n\t.ang-link {\n\t\tcolor: var(--ang-accent);\n\t\ttext-transform: uppercase;\n\t\tborder-bottom: 1px solid var(--ang-accent);\n\t\tfont-size: 12.64px;\n\t\tletter-spacing: 1px;\n\t\ttext-decoration: none;\n\t\tfont-weight: bold;\n\t}\n\n\t.preview-active .templates-list {\n\t\tvisibility: hidden;\n\t}\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var __WEBPACK_IMPORTED_MODULE_0_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_1__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_2__api__=__webpack_require__(4),__WEBPACK_IMPORTED_MODULE_3__contexts_ThemeContext__=__webpack_require__(12),__WEBPACK_IMPORTED_MODULE_4__Header__=__webpack_require__(60),__WEBPACK_IMPORTED_MODULE_5__Notifications__=__webpack_require__(6),__WEBPACK_IMPORTED_MODULE_6__utils__=__webpack_require__(13),_wp=wp,apiFetch=_wp.apiFetch,Analog=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.div(_templateObject(),function(props){return props.theme.accent}),App=function(_React$Component){function App(){var _this;_classCallCheck(this,App),_this=_possibleConstructorReturn(this,_getPrototypeOf(App).apply(this,arguments));var initialContainerTab=AGWP.is_settings_page?"styleKits":"blocks";return _this.state={templates:[],kits:[],styleKits:[],blocks:[],count:null,isOpen:!1,syncing:!1,favorites:AGWP.favorites,blockFavorites:AGWP.blockFavorites,showing_favorites:!1,archive:[],blockArchive:[],showFree:!0,showPro:!0,group:!0,activeKit:!1,installedKits:AGWP.installed_kits||{},tab:AGWP.isContainer?initialContainerTab:"blocks",blocksTab:AGWP.isContainer?"all-patterns":"all-blocks",hasPro:!1,settings:{ang_sync_colors:!0},blocksSearchInput:"",itemFilteredWithSearchTerm:function(foundItems,searchInput){var searchTags=[];return foundItems.filter(function(single){return single.tags&&(searchTags=single.tags.filter(function(tag){return tag.toLowerCase().includes(searchInput)})),single.title.toLowerCase().includes(searchInput)||searchTags.length>=1})}},_this.refreshAPI=_this.refreshAPI.bind(_assertThisInitialized(_this)),_this.toggleFavorites=_this.toggleFavorites.bind(_assertThisInitialized(_this)),_this.handleSearch=_this.handleSearch.bind(_assertThisInitialized(_this)),_this.handleSort=_this.handleSort.bind(_assertThisInitialized(_this)),_this.handleFilter=_this.handleFilter.bind(_assertThisInitialized(_this)),_this.switchTabs=_this.switchTabs.bind(_assertThisInitialized(_this)),_this}return _inherits(App,_React$Component),_createClass(App,[{key:"switchTabs",value:function(){var hash=location.hash;["#templates","#styleKits","#blocks"].indexOf(hash)>-1&&AGWP.is_settings_page&&this.setState({tab:hash.substr(1),templates:this.state.archive,blocks:this.state.blockArchive,showing_favorites:!1})}},{key:"componentDidMount",value:function(){function componentDidMount(){return _componentDidMount.apply(this,arguments)}var _componentDidMount=_asyncToGenerator(regeneratorRuntime.mark(function _callee(){var templates,library,_this2=this;return regeneratorRuntime.wrap(function(_context){for(;;)switch(_context.prev=_context.next){case 0:return window.addEventListener("hashchange",this.switchTabs,!1),window.addEventListener("DOMContentLoaded",this.switchTabs,!1),"false"===window.localStorage.getItem("analog::show-free")&&this.setState({showFree:!1}),"false"===window.localStorage.getItem("analog::show-pro")&&this.setState({showPro:!1}),"false"===window.localStorage.getItem("analog::group-kit")&&this.setState({group:!1}),this.setState({syncing:!0}),_context.next=8,Object(__WEBPACK_IMPORTED_MODULE_2__api__.i)();case 8:templates=_context.sent,library=templates.library,this.setState({templates:library.templates,kits:library.template_kits,archive:library.templates,blockArchive:library.blocks,count:library.templates.length,timestamp:templates.timestamp,hasPro:Object(__WEBPACK_IMPORTED_MODULE_6__utils__.d)(library.templates),styleKits:library.stylekits,blocks:library.blocks,syncing:!1}),this.handleSort("latest","templates"),this.handleSort("latest","blocks"),document.addEventListener("modal-close",function(){_this2.setState({isOpen:!1,showing_favorites:!1,templates:_this2.state.archive})}),Object(__WEBPACK_IMPORTED_MODULE_2__api__.b)().then(function(settings){return _this2.setState({settings:settings})});case 15:case"end":return _context.stop()}},_callee,this)}));return componentDidMount}()},{key:"handleFilter",value:function(type){var library=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"templates",templates=_toConsumableArray(this.state.archive),blocks=_toConsumableArray(this.state.blockArchive);if("blocks"!==library){if("all"===type)return void this.setState({templates:this.state.archive});var filtered=templates.filter(function(template){return template.type===type});this.setState({templates:filtered})}else{if("all"===type)return void this.setState({blocks:this.state.blockArchive});var _filtered=blocks.filter(function(block){return block.tags[0]===type});this.setState({blocks:_filtered})}}},{key:"handleSort",value:function(value){var library=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"templates";this.setState({showing_favorites:!1});var sortData=this.state[library];if("popular"===value){var sorted=sortData.sort(function(a,b){if("popularityIndex"in a){if(parseInt(a.popularityIndex)<parseInt(b.popularityIndex))return 1;if(parseInt(a.popularityIndex)>parseInt(b.popularityIndex))return-1}return 0});this.setState(_defineProperty({},library,sorted))}if("latest"===value){var _sorted=sortData.sort(function(a,b){if("published"in a){if(parseInt(Object(__WEBPACK_IMPORTED_MODULE_6__utils__.c)(a.published))<parseInt(Object(__WEBPACK_IMPORTED_MODULE_6__utils__.c)(b.published)))return 1;if(parseInt(Object(__WEBPACK_IMPORTED_MODULE_6__utils__.c)(a.published))>parseInt(Object(__WEBPACK_IMPORTED_MODULE_6__utils__.c)(b.published)))return-1}return 0});this.setState(_defineProperty({},library,_sorted))}}},{key:"handleSearch",value:function(value){var library=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"templates",searchData=this.state.blockArchive;"templates"===library&&(searchData=this.state.archive);var filtered=[],searchTags=[];if(value&&(filtered=searchData.filter(function(single){return"patterns"===library&&single.keywords?searchTags=single.keywords.filter(function(keyword){return keyword.toLowerCase().includes(value.toLowerCase())}):single.tags&&(searchTags=single.tags.filter(function(tag){return tag.toLowerCase().includes(value.toLowerCase())})),single.title.toLowerCase().includes(value.toLowerCase())||searchTags.length>=1}),filtered.length>0))return"templates"===library?void this.setState({templates:filtered}):void this.setState({blocks:filtered,blocksSearchInput:value});"templates"===library?this.setState({templates:value?[]:this.state.archive}):this.setState({blocks:value?[]:this.state.blockArchive,blocksSearchInput:""})}},{key:"refreshAPI",value:function(){function refreshAPI(){return _refreshAPI.apply(this,arguments)}var _refreshAPI=_asyncToGenerator(regeneratorRuntime.mark(function _callee2(){var _this3=this;return regeneratorRuntime.wrap(function(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return this.setState({syncing:!0,blocksSearchInput:""}),wp.hooks.doAction("analog.refreshLibrary"),_context2.next=4,apiFetch({path:"/agwp/v1/templates/?force_update=true"}).then(function(data){var library=data.library;_this3.setState({templates:library.templates,archive:library.templates,blockArchive:library.blocks,count:library.templates.length,kits:library.template_kits,timestamp:data.timestamp,styleKits:library.stylekits,blocks:library.blocks,syncing:!1,blocksSearchInput:""})}).catch(function(){_this3.setState({syncing:!1})});case 4:return _context2.abrupt("return",_context2.sent);case 5:case"end":return _context2.stop()}},_callee2,this)}));return refreshAPI}()},{key:"toggleFavorites",value:function(){var _this4=this;this.setState({group:!1}),window.localStorage.setItem("analog::group-block",!1);var filteredTemplates=this.state.archive.filter(function(template){return template.id in _this4.state.favorites}),filteredBlocks=this.state.blockArchive.filter(function(block){return block.id in _this4.state.blockFavorites});this.setState({showing_favorites:!this.state.showing_favorites,templates:this.state.showing_favorites?this.state.archive:filteredTemplates,blocks:this.state.showing_favorites?this.state.blockArchive:filteredBlocks})}},{key:"render",value:function(){var _this5=this;return React.createElement(__WEBPACK_IMPORTED_MODULE_3__contexts_ThemeContext__.c.Provider,{value:{theme:__WEBPACK_IMPORTED_MODULE_3__contexts_ThemeContext__.a}},React.createElement(__WEBPACK_IMPORTED_MODULE_3__contexts_ThemeContext__.c.Consumer,null,function(_ref){var theme=_ref.theme;return React.createElement(Analog,{theme:theme},React.createElement(__WEBPACK_IMPORTED_MODULE_5__Notifications__.b,null,React.createElement(__WEBPACK_IMPORTED_MODULE_1__AnalogContext__.a.Provider,{value:{state:_this5.state,forceRefresh:_this5.refreshAPI,markFavorite:__WEBPACK_IMPORTED_MODULE_2__api__.c,toggleFavorites:_this5.toggleFavorites,handleSearch:_this5.handleSearch,handleSort:_this5.handleSort,handleFilter:_this5.handleFilter,dispatch:function(action){return _this5.setState(action)}}},React.createElement(__WEBPACK_IMPORTED_MODULE_4__Header__.a,null),React.createElement("div",{className:"analogwp-content"},React.createElement("div",{className:"ang-container"},Object(__WEBPACK_IMPORTED_MODULE_6__utils__.b)(_this5.state))))))}))}}]),App}(React.Component);__webpack_exports__.a=App},function(module,exports){module.exports=function(originalModule){if(!originalModule.webpackPolyfill){var module=Object.create(originalModule);module.children||(module.children=[]),Object.defineProperty(module,"loaded",{enumerable:!0,get:function(){return module.l}}),Object.defineProperty(module,"id",{enumerable:!0,get:function(){return module.i}}),Object.defineProperty(module,"exports",{enumerable:!0}),module.webpackPolyfill=1}return module}},function(module,exports,__webpack_require__){!function(e){module.exports=e(null)}(function e(a){"use strict";function He(e,a,s,t,i){for(var f,n,o=0,h=0,u=0,d=0,g=0,A=0,C=0,w=0,m=0,$=0,y=0,O=0,j=0,z=0,R=0,we=0,$e=0,Oe=0,je=0,ze=s.length,Je=ze-1,Re="",Te="",Ue="",Ve="",Xe="",Ye="";R<ze;){if(C=s.charCodeAt(R),R===Je&&h+d+u+o!==0&&(0!==h&&(C=h===Z?I:Z),d=u=o=0,ze++,Je++),h+d+u+o===0){if(R===Je&&(we>0&&(Te=Te.replace(c,"")),Te.trim().length>0)){switch(C){case M:case K:case W:case J:case I:break;default:Te+=s.charAt(R)}C=W}if(1===$e)switch(C){case B:case q:case W:case Y:case X:case D:case E:case U:$e=0;case K:case J:case I:case M:break;default:for($e=0,je=R,g=C,R--,C=W;je<ze;)switch(s.charCodeAt(je++)){case I:case J:case W:++R,C=g,je=ze;break;case V:we>0&&(++R,C=g);case B:je=ze}}switch(C){case B:for(g=(Te=Te.trim()).charCodeAt(0),y=1,je=++R;R<ze;){switch(C=s.charCodeAt(R)){case B:y++;break;case q:y--;break;case Z:switch(A=s.charCodeAt(R+1)){case T:case Z:R=Qe(A,R,Je,s)}break;case G:C++;case D:C++;case Y:case X:for(;R++<Je&&s.charCodeAt(R)!==C;);}if(0===y)break;R++}switch(Ue=s.substring(je,R),g===re&&(g=(Te=Te.replace(r,"").trim()).charCodeAt(0)),g){case L:switch(we>0&&(Te=Te.replace(c,"")),A=Te.charCodeAt(1)){case ue:case ie:case fe:case Q:f=a;break;default:f=xe}if(je=(Ue=He(a,f,Ue,A,i+1)).length,me>0&&0===je&&(je=Te.length),ye>0&&(f=Ie(xe,Te,Oe),n=Pe(We,Ue,f,a,pe,be,je,A,i,t),Te=f.join(""),void 0!==n&&0===(je=(Ue=n.trim()).length)&&(A=0,Ue="")),je>0)switch(A){case fe:Te=Te.replace(x,Me);case ue:case ie:case Q:Ue=Te+"{"+Ue+"}";break;case te:Ue=(Te=Te.replace(b,"$1 $2"+(Be>0?De:"")))+"{"+Ue+"}",Ue=1===Ae||2===Ae&&Le("@"+Ue,3)?"@"+N+Ue+"@"+Ue:"@"+Ue;break;default:Ue=Te+Ue,t===de&&(Ve+=Ue,Ue="")}else Ue="";break;default:Ue=He(a,Ie(a,Te,Oe),Ue,t,i+1)}Xe+=Ue,O=0,$e=0,z=0,we=0,Oe=0,j=0,Te="",Ue="",C=s.charCodeAt(++R);break;case q:case W:if((je=(Te=(we>0?Te.replace(c,""):Te).trim()).length)>1)switch(0===z&&((g=Te.charCodeAt(0))===Q||g>96&&g<123)&&(je=(Te=Te.replace(" ",":")).length),ye>0&&void 0!==(n=Pe(Se,Te,a,e,pe,be,Ve.length,t,i,t))&&0===(je=(Te=n.trim()).length)&&(Te="\0\0"),g=Te.charCodeAt(0),A=Te.charCodeAt(1),g){case re:break;case L:if(A===oe||A===he){Ye+=Te+s.charAt(R);break}default:if(Te.charCodeAt(je-1)===V)break;Ve+=Ke(Te,g,A,Te.charCodeAt(2))}O=0,$e=0,z=0,we=0,Oe=0,Te="",C=s.charCodeAt(++R)}}switch(C){case J:case I:if(h+d+u+o+ve===0)switch($){case E:case X:case Y:case L:case ae:case _:case T:case ee:case Z:case Q:case V:case U:case W:case B:case q:break;default:z>0&&($e=1)}h===Z?h=0:ge+O===0&&t!==te&&Te.length>0&&(we=1,Te+="\0"),ye*qe>0&&Pe(Ne,Te,a,e,pe,be,Ve.length,t,i,t),be=1,pe++;break;case W:case q:if(h+d+u+o===0){be++;break}default:switch(be++,Re=s.charAt(R),C){case K:case M:if(d+o+h===0)switch(w){case U:case V:case K:case M:Re="";break;default:C!==M&&(Re=" ")}break;case re:Re="\\0";break;case ce:Re="\\f";break;case se:Re="\\v";break;case P:d+h+o===0&&ge>0&&(Oe=1,we=1,Re="\f"+Re);break;case 108:if(d+h+o+ke===0&&z>0)switch(R-z){case 2:w===ne&&s.charCodeAt(R-3)===V&&(ke=w);case 8:m===le&&(ke=m)}break;case V:d+h+o===0&&(z=R);break;case U:h+u+d+o===0&&(we=1,Re+="\r");break;case Y:case X:0===h&&(d=d===C?0:0===d?C:d);break;case G:d+h+u===0&&o++;break;case H:d+h+u===0&&o--;break;case E:d+h+o===0&&u--;break;case D:if(d+h+o===0){if(0===O)switch(2*w+3*m){case 533:break;default:y=0,O=1}u++}break;case L:h+u+d+o+z+j===0&&(j=1);break;case T:case Z:if(d+o+u>0)break;switch(h){case 0:switch(2*C+3*s.charCodeAt(R+1)){case 235:h=Z;break;case 220:je=R,h=T}break;case T:C===Z&&w===T&&je+2!==R&&(33===s.charCodeAt(je+2)&&(Ve+=s.substring(je,R+1)),Re="",h=0)}}if(0===h){if(ge+d+o+j===0&&t!==te&&C!==W)switch(C){case U:case ae:case _:case ee:case E:case D:if(0===O){switch(w){case K:case M:case I:case J:Re+="\0";break;default:Re="\0"+Re+(C===U?"":"\0")}we=1}else switch(C){case D:z+7===R&&108===w&&(z=0),O=++y;break;case E:0==(O=--y)&&(we=1,Re+="\0")}break;case K:case M:switch(w){case re:case B:case q:case W:case U:case ce:case K:case M:case I:case J:break;default:0===O&&(we=1,Re+="\0")}}Te+=Re,C!==M&&C!==K&&($=C)}}m=w,w=C,R++}if(je=Ve.length,me>0&&0===je&&0===Xe.length&&0===a[0].length==0&&(t!==ie||1===a.length&&(ge>0?Ee:Ge)===a[0])&&(je=a.join(",").length+2),je>0){if(f=0===ge&&t!==te?function(e){for(var a,r,s=0,t=e.length,i=Array(t);s<t;++s){for(var f=e[s].split(l),n="",o=0,h=0,u=0,d=0,b=f.length;o<b;++o)if(!(0===(h=(r=f[o]).length)&&b>1)){if(u=n.charCodeAt(n.length-1),d=r.charCodeAt(0),a="",0!==o)switch(u){case T:case ae:case _:case ee:case M:case D:break;default:a=" "}switch(d){case P:r=a+Ee;case ae:case _:case ee:case M:case E:case D:break;case G:r=a+r+Ee;break;case V:switch(2*r.charCodeAt(1)+3*r.charCodeAt(2)){case 530:if(Ce>0){r=a+r.substring(8,h-1);break}default:(o<1||f[o-1].length<1)&&(r=a+Ee+r)}break;case U:a="";default:r=h>1&&r.indexOf(":")>0?a+r.replace(v,"$1"+Ee+"$2"):a+r+Ee}n+=r}i[s]=n.replace(c,"").trim()}return i}(a):a,ye>0&&void 0!==(n=Pe(Fe,Ve,f,e,pe,be,je,t,i,t))&&0===(Ve=n).length)return Ye+Ve+Xe;if(Ve=f.join(",")+"{"+Ve+"}",Ae*ke!=0){switch(2!==Ae||Le(Ve,2)||(ke=0),ke){case le:Ve=Ve.replace(k,":"+S+"$1")+Ve;break;case ne:Ve=Ve.replace(p,"::"+N+"input-$1")+Ve.replace(p,"::"+S+"$1")+Ve.replace(p,":"+F+"input-$1")+Ve}ke=0}}return Ye+Ve+Xe}function Ie(e,a,r){var c=a.trim().split(o),s=c,t=c.length,i=e.length;switch(i){case 0:case 1:for(var f=0,n=0===i?"":e[0]+" ";f<t;++f)s[f]=Je(n,s[f],r,i).trim();break;default:f=0;var l=0;for(s=[];f<t;++f)for(var h=0;h<i;++h)s[l++]=Je(e[h]+" ",c[f],r,i).trim()}return s}function Je(e,a,r,c){var s=a,t=s.charCodeAt(0);switch(t<33&&(t=(s=s.trim()).charCodeAt(0)),t){case P:switch(ge+c){case 0:case 1:if(0===e.trim().length)break;default:return s.replace(h,"$1"+e.trim())}break;case V:switch(s.charCodeAt(1)){case 103:if(Ce>0&&ge>0)return s.replace(u,"$1").replace(h,"$1"+Ge);break;default:return e.trim()+s.replace(h,"$1"+e.trim())}default:if(r*ge>0&&s.indexOf("\f")>0)return s.replace(h,(e.charCodeAt(0)===V?"":"$1")+e.trim())}return e+s}function Ke(e,a,r,c){var l,o=0,h=e+";",u=2*a+3*r+4*c;if(944===u)return function(e){var a=e.length,r=e.indexOf(":",9)+1,c=e.substring(0,r).trim(),s=e.substring(r,a-1).trim();switch(e.charCodeAt(9)*Be){case 0:break;case Q:if(110!==e.charCodeAt(10))break;default:for(var t=s.split((s="",f)),i=0,r=0,a=t.length;i<a;r=0,++i){for(var l=t[i],o=l.split(n);l=o[r];){var h=l.charCodeAt(0);if(1===Be&&(h>L&&h<90||h>96&&h<123||h===R||h===Q&&l.charCodeAt(1)!==Q))switch(isNaN(parseFloat(l))+(-1!==l.indexOf("("))){case 1:switch(l){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:l+=De}}o[r++]=l}s+=(0===i?"":",")+o.join(" ")}}return s=c+s+";",1===Ae||2===Ae&&Le(s,1)?N+s+s:s}(h);if(0===Ae||2===Ae&&!Le(h,1))return h;switch(u){case 1015:return 97===h.charCodeAt(10)?N+h+h:h;case 951:return 116===h.charCodeAt(3)?N+h+h:h;case 963:return 110===h.charCodeAt(5)?N+h+h:h;case 1009:if(100!==h.charCodeAt(4))break;case 969:case 942:return N+h+h;case 978:return N+h+S+h+h;case 1019:case 983:return N+h+S+h+F+h+h;case 883:return h.charCodeAt(8)===Q?N+h+h:h.indexOf("image-set(",11)>0?h.replace(z,"$1"+N+"$2")+h:h;case 932:if(h.charCodeAt(4)===Q)switch(h.charCodeAt(5)){case 103:return N+"box-"+h.replace("-grow","")+N+h+F+h.replace("grow","positive")+h;case 115:return N+h+F+h.replace("shrink","negative")+h;case 98:return N+h+F+h.replace("basis","preferred-size")+h}return N+h+F+h+h;case 964:return N+h+F+"flex-"+h+h;case 1023:if(99!==h.charCodeAt(8))break;return l=h.substring(h.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),N+"box-pack"+l+N+h+F+"flex-pack"+l+h;case 1005:return t.test(h)?h.replace(s,":"+N)+h.replace(s,":"+S)+h:h;case 1e3:switch(o=(l=h.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(o)){case 226:l=h.replace(m,"tb");break;case 232:l=h.replace(m,"tb-rl");break;case 220:l=h.replace(m,"lr");break;default:return h}return N+h+F+l+h;case 1017:if(-1===h.indexOf("sticky",9))return h;case 975:switch(o=(h=e).length-10,u=(l=(33===h.charCodeAt(o)?h.substring(0,o):h).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(l.charCodeAt(8)<111)break;case 115:h=h.replace(l,N+l)+";"+h;break;case 207:case 102:h=h.replace(l,N+(u>102?"inline-":"")+"box")+";"+h.replace(l,N+l)+";"+h.replace(l,F+l+"box")+";"+h}return h+";";case 938:if(h.charCodeAt(5)===Q)switch(h.charCodeAt(6)){case 105:return l=h.replace("-items",""),N+h+N+"box-"+l+F+"flex-"+l+h;case 115:return N+h+F+"flex-item-"+h.replace(y,"")+h;default:return N+h+F+"flex-line-pack"+h.replace("align-content","").replace(y,"")+h}break;case 973:case 989:if(h.charCodeAt(3)!==Q||122===h.charCodeAt(4))break;case 931:case 953:if(!0===j.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?Ke(e.replace("stretch","fill-available"),a,r,c).replace(":fill-available",":stretch"):h.replace(l,N+l)+h.replace(l,S+l.replace("fill-",""))+h;break;case 962:if(h=N+h+(102===h.charCodeAt(5)?F+h:"")+h,r+c===211&&105===h.charCodeAt(13)&&h.indexOf("transform",10)>0)return h.substring(0,h.indexOf(";",27)+1).replace(i,"$1"+N+"$2")+h}return h}function Le(e,a){var r=e.indexOf(1===a?":":"{"),c=e.substring(0,3!==a?r:10),s=e.substring(r+1,e.length-1);return Oe(2!==a?c:c.replace(O,"$1"),s,a)}function Me(e,a){var r=Ke(a,a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2));return r!==a+";"?r.replace($," or ($1)").substring(4):"("+a+")"}function Pe(e,a,r,c,s,t,i,f,n,l){for(var o,h=0,u=a;h<ye;++h)switch(o=$e[h].call(Te,e,u,r,c,s,t,i,f,n,l)){case void 0:case!1:case!0:case null:break;default:u=o}if(u!==a)return u}function Qe(e,a,r,c){for(var s=a+1;s<r;++s)switch(c.charCodeAt(s)){case Z:if(e===T&&c.charCodeAt(s-1)===T&&a+2!==s)return s+1;break;case I:if(e===Z)return s+1}return s}function Re(e){for(var a in e){var r=e[a];switch(a){case"keyframe":Be=0|r;break;case"global":Ce=0|r;break;case"cascade":ge=0|r;break;case"compress":we=0|r;break;case"semicolon":ve=0|r;break;case"preserve":me=0|r;break;case"prefix":Oe=null,r?"function"!=typeof r?Ae=1:(Ae=2,Oe=r):Ae=0}}return Re}function Te(a,r){if(void 0!==this&&this.constructor===Te)return e(a);var s=a,t=s.charCodeAt(0);t<33&&(t=(s=s.trim()).charCodeAt(0)),Be>0&&(De=s.replace(d,t===G?"":"-")),t=1,1===ge?Ge=s:Ee=s;var i,f=[Ge];ye>0&&void 0!==(i=Pe(ze,r,f,f,pe,be,0,0,0,0))&&"string"==typeof i&&(r=i);var n=He(xe,f,r,0,0);return ye>0&&void 0!==(i=Pe(je,n,f,f,pe,be,n.length,0,0,0))&&"string"!=typeof(n=i)&&(t=0),De="",Ge="",Ee="",ke=0,pe=1,be=1,we*t==0?n:n.replace(c,"").replace(g,"").replace(A,"$1").replace(C,"$1").replace(w," ")}var r=/^\0+/g,c=/[\0\r\f]/g,s=/: */g,t=/zoo|gra/,i=/([,: ])(transform)/g,f=/,+\s*(?![^(]*[)])/g,n=/ +\s*(?![^(]*[)])/g,l=/ *[\0] */g,o=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,u=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,d=/\W+/g,b=/@(k\w+)\s*(\S*)\s*/,p=/::(place)/g,k=/:(read-only)/g,g=/\s+(?=[{\];=:>])/g,A=/([[}=:>])\s+/g,C=/(\{[^{]+?);(?=\})/g,w=/\s{2,}/g,v=/([^\(])(:+) */g,m=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,$=/([\s\S]*?);/g,y=/-self|flex-/g,O=/[^]*?(:[rp][el]a[\w-]+)[^]*/,j=/stretch|:\s*\w+\-(?:conte|avail)/,z=/([^-])(image-set\()/,N="-webkit-",S="-moz-",F="-ms-",W=59,q=125,B=123,D=40,E=41,G=91,H=93,I=10,J=13,K=9,L=64,M=32,P=38,Q=45,R=95,T=42,U=44,V=58,X=39,Y=34,Z=47,_=62,ee=43,ae=126,re=0,ce=12,se=11,te=107,ie=109,fe=115,ne=112,le=111,oe=105,he=99,ue=100,de=112,be=1,pe=1,ke=0,ge=1,Ae=1,Ce=1,we=0,ve=0,me=0,xe=[],$e=[],ye=0,Oe=null,je=-2,ze=-1,Ne=0,Se=1,Fe=2,We=3,qe=0,Be=1,De="",Ee="",Ge="";return Te.use=function e(a){switch(a){case void 0:case null:ye=$e.length=0;break;default:if("function"==typeof a)$e[ye++]=a;else if("object"==typeof a)for(var r=0,c=a.length;r<c;++r)e(a[r]);else qe=0|!!a}return e},Te.set=Re,void 0!==a&&Re(a),Te})},function(module,exports,__webpack_require__){!function(factory){module.exports=factory()}(function(){"use strict";return function(insertRule){function toSheet(block){if(block)try{insertRule(block+"}")}catch(e){}}return function(context,content,selectors,parents,line,column,length,ns,depth,at){switch(context){case 1:if(0===depth&&64===content.charCodeAt(0))return insertRule(content+";"),"";break;case 2:if(0===ns)return content+"/*|*/";break;case 3:switch(ns){case 102:case 112:return insertRule(selectors[0]+content),"";default:return content+(0===at?"/*|*/":"")}case-2:content.split("/*|*/}").forEach(toSheet)}}}})},function(module,__webpack_exports__,__webpack_require__){"use strict";var unitlessKeys={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};__webpack_exports__.a=unitlessKeys},function(module,exports,__webpack_require__){"use strict";(function(process){"production"===process.env.NODE_ENV?module.exports=__webpack_require__(52):module.exports=__webpack_require__(53)}).call(exports,__webpack_require__(0))},function(module,exports,__webpack_require__){"use strict";function t(a){if("object"==typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof){case k:case n:case h:return a;default:return u}}case r:case q:case d:return u}}}function v(a){return t(a)===m}/** @license React v16.7.0
     11var getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable;module.exports=function(){try{if(!Object.assign)return!1;var test1=new String("abc");if(test1[5]="de","5"===Object.getOwnPropertyNames(test1)[0])return!1;for(var test2={},i=0;i<10;i++)test2["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(test2).map(function(n){return test2[n]}).join(""))return!1;var test3={};return"abcdefghijklmnopqrst".split("").forEach(function(letter){test3[letter]=letter}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},test3)).join("")}catch(err){return!1}}()?Object.assign:function(target,source){for(var from,symbols,to=toObject(target),s=1;s<arguments.length;s++){from=Object(arguments[s]);for(var key in from)hasOwnProperty.call(from,key)&&(to[key]=from[key]);if(getOwnPropertySymbols){symbols=getOwnPropertySymbols(from);for(var i=0;i<symbols.length;i++)propIsEnumerable.call(from,symbols[i])&&(to[symbols[i]]=from[symbols[i]])}}return to}},function(module,__webpack_exports__,__webpack_require__){"use strict";var _wp$components=wp.components,__=(_wp$components.ExternalLink,_wp$components.Button,wp.i18n.__),ProModal=function(){return React.createElement("div",{className:"pro-modal-container"},React.createElement("p",null,__("Get unlimited access to the Style Kits library and features with the PRO version.","ang")),React.createElement("a",{href:"https://analogwp.com/pricing/?utm_medium=plugin&utm_source=library&utm_campaign=style+kits+pro",target:"_blank"},__("View Plans","ang")))};__webpack_exports__.a=ProModal},function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0_classnames__=__webpack_require__(5),__WEBPACK_IMPORTED_MODULE_0_classnames___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__),__WEBPACK_IMPORTED_MODULE_1__helpers_Image__=__webpack_require__(75),__WEBPACK_IMPORTED_MODULE_2__icons_star__=__webpack_require__(24),__WEBPACK_IMPORTED_MODULE_3__utils__=__webpack_require__(13),decodeEntities=wp.htmlEntities.decodeEntities,__=wp.i18n.__,_wp$components=wp.components,Button=_wp$components.Button,Card=_wp$components.Card,CardBody=_wp$components.CardBody,CardFooter=_wp$components.CardFooter,Template=function(_ref){var template=_ref.template,setModalContent=_ref.setModalContent,importLayout=_ref.importLayout,favorites=_ref.favorites,makeFavorite=_ref.makeFavorite,isValid=function(isPro){return!(isPro&&"valid"!==AGWP.license.status)},fallbackImage=AGWP.pluginURL+"assets/img/placeholder.svg";return React.createElement("li",null,React.createElement(Card,null,React.createElement(CardBody,null,Object(__WEBPACK_IMPORTED_MODULE_3__utils__.e)(template.published)>-14&&React.createElement("span",{className:"new"},__("New","ang")),React.createElement("figure",null,template.thumbnail?React.createElement(__WEBPACK_IMPORTED_MODULE_1__helpers_Image__.a,{template:template}):React.createElement("img",{src:fallbackImage}),React.createElement("div",{className:"actions"},React.createElement(Button,{isSecondary:!0,className:"black-transparent",onClick:function(){return setModalContent(template)}},__("Preview","ang")),!isValid(template.is_pro)&&React.createElement("a",{className:"ang-promo",href:"https://analogwp.com/style-kits-pro/?utm_medium=plugin&utm_source=library&utm_campaign=style+kits+pro",target:"_blank"},React.createElement(Button,{isPrimary:!0},__("Go Pro","ang"))),isValid(template.is_pro)&&React.createElement(Button,{isPrimary:!0,onClick:function(){return importLayout(template)}},__("Import","ang"))),React.createElement("button",{className:__WEBPACK_IMPORTED_MODULE_0_classnames___default()("button-plain favorite",{"is-active":template.id in favorites}),onClick:function(){return makeFavorite(template.id)}},React.createElement(__WEBPACK_IMPORTED_MODULE_2__icons_star__.a,null)))),React.createElement(CardFooter,null,React.createElement("div",{className:"content"},React.createElement("span",null,React.createElement("h3",null,decodeEntities(template.title)),template.tags&&React.createElement("div",{className:"tags"},template.tags.map(function(tag){return React.createElement("span",{key:tag},tag)}))),template.is_pro&&React.createElement("span",{className:"pro"},__("Pro","ang"))))))};__webpack_exports__.a=Template},function(module,__webpack_exports__,__webpack_require__){"use strict";function _toConsumableArray(arr){return Object(__WEBPACK_IMPORTED_MODULE_0__arrayWithoutHoles__.a)(arr)||Object(__WEBPACK_IMPORTED_MODULE_1__iterableToArray__.a)(arr)||Object(__WEBPACK_IMPORTED_MODULE_2__nonIterableSpread__.a)()}__webpack_exports__.a=_toConsumableArray;var __WEBPACK_IMPORTED_MODULE_0__arrayWithoutHoles__=__webpack_require__(89),__WEBPACK_IMPORTED_MODULE_1__iterableToArray__=__webpack_require__(90),__WEBPACK_IMPORTED_MODULE_2__nonIterableSpread__=__webpack_require__(91)},function(module,__webpack_exports__,__webpack_require__){"use strict";function areInputsEqual(newInputs,lastInputs){if(newInputs.length!==lastInputs.length)return!1;for(var i=0;i<newInputs.length;i++)if(newInputs[i]!==lastInputs[i])return!1;return!0}function memoizeOne(resultFn,isEqual){function memoized(){for(var newArgs=[],_i=0;_i<arguments.length;_i++)newArgs[_i]=arguments[_i];return calledOnce&&lastThis===this&&isEqual(newArgs,lastArgs)?lastResult:(lastResult=resultFn.apply(this,newArgs),calledOnce=!0,lastThis=this,lastArgs=newArgs,lastResult)}void 0===isEqual&&(isEqual=areInputsEqual);var lastThis,lastResult,lastArgs=[],calledOnce=!1;return memoized}__webpack_exports__.a=memoizeOne},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(process){function toSheet(block){block&&Sheet.current.insert(block+"}")}var __WEBPACK_IMPORTED_MODULE_0__emotion_sheet__=__webpack_require__(39),__WEBPACK_IMPORTED_MODULE_1__emotion_stylis__=__webpack_require__(94),Sheet=(__webpack_require__(95),{current:null}),ruleSheet=function(context,content,selectors,parents,line,column,length,ns,depth,at){switch(context){case 1:switch(content.charCodeAt(0)){case 64:return Sheet.current.insert(content+";"),"";case 108:if(98===content.charCodeAt(2))return""}break;case 2:if(0===ns)return content+"/*|*/";break;case 3:switch(ns){case 102:case 112:return Sheet.current.insert(selectors[0]+content),"";default:return content+(0===at?"/*|*/":"")}case-2:content.split("/*|*/}").forEach(toSheet)}},createCache=function(options){void 0===options&&(options={});var stylisOptions,key=options.key||"css";void 0!==options.prefix&&(stylisOptions={prefix:options.prefix});var stylis=new __WEBPACK_IMPORTED_MODULE_1__emotion_stylis__.a(stylisOptions);if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(key))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+key+'" was passed');var container,inserted={};container=options.container||document.head;var nodes=document.querySelectorAll("style[data-emotion-"+key+"]");Array.prototype.forEach.call(nodes,function(node){node.getAttribute("data-emotion-"+key).split(" ").forEach(function(id){inserted[id]=!0}),node.parentNode!==container&&container.appendChild(node)});var _insert;if(stylis.use(options.stylisPlugins)(ruleSheet),_insert=function(selector,serialized,sheet,shouldCache){var name=serialized.name;if(Sheet.current=sheet,"production"!==process.env.NODE_ENV&&void 0!==serialized.map){var map=serialized.map;Sheet.current={insert:function(rule){sheet.insert(rule+map)}}}stylis(selector,serialized.styles),shouldCache&&(cache.inserted[name]=!0)},"production"!==process.env.NODE_ENV){var commentStart=/\/\*/g,commentEnd=/\*\//g;stylis.use(function(context,content){switch(context){case-1:for(;commentStart.test(content);){commentEnd.lastIndex=commentStart.lastIndex;{if(!commentEnd.test(content))throw new Error('Your styles have an unterminated comment ("/*" without corresponding "*/").');commentStart.lastIndex=commentEnd.lastIndex}}commentStart.lastIndex=0}}),stylis.use(function(context,content,selectors){switch(context){case-1:var unsafePseudoClasses=content.match(/(:first|:nth|:nth-last)-child/g);unsafePseudoClasses&&!0!==cache.compat&&unsafePseudoClasses.forEach(function(unsafePseudoClass){var ignoreRegExp=new RegExp(unsafePseudoClass+".*\\/\\* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason \\*\\/"),ignore=ignoreRegExp.test(content);unsafePseudoClass&&!ignore&&console.error('The pseudo class "'+unsafePseudoClass+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+unsafePseudoClass.split("-child")[0]+'-of-type".')})}})}var cache={key:key,sheet:new __WEBPACK_IMPORTED_MODULE_0__emotion_sheet__.a({key:key,container:container,nonce:options.nonce,speedy:options.speedy}),nonce:options.nonce,inserted:inserted,registered:{},insert:_insert};return cache};__webpack_exports__.a=createCache}).call(__webpack_exports__,__webpack_require__(0))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(process){function sheetForTag(tag){if(tag.sheet)return tag.sheet;for(var i=0;i<document.styleSheets.length;i++)if(document.styleSheets[i].ownerNode===tag)return document.styleSheets[i]}function createStyleElement(options){var tag=document.createElement("style");return tag.setAttribute("data-emotion",options.key),void 0!==options.nonce&&tag.setAttribute("nonce",options.nonce),tag.appendChild(document.createTextNode("")),tag}__webpack_require__.d(__webpack_exports__,"a",function(){return StyleSheet});var StyleSheet=function(){function StyleSheet(options){this.isSpeedy=void 0===options.speedy?"production"===process.env.NODE_ENV:options.speedy,this.tags=[],this.ctr=0,this.nonce=options.nonce,this.key=options.key,this.container=options.container,this.before=null}var _proto=StyleSheet.prototype;return _proto.insert=function(rule){if(this.ctr%(this.isSpeedy?65e3:1)==0){var before,_tag=createStyleElement(this);before=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(_tag,before),this.tags.push(_tag)}var tag=this.tags[this.tags.length-1];if(this.isSpeedy){var sheet=sheetForTag(tag);try{var isImportRule=105===rule.charCodeAt(1)&&64===rule.charCodeAt(0);sheet.insertRule(rule,isImportRule?0:sheet.cssRules.length)}catch(e){"production"!==process.env.NODE_ENV&&console.warn('There was a problem inserting the following rule: "'+rule+'"',e)}}else tag.appendChild(document.createTextNode(rule));this.ctr++},_proto.flush=function(){this.tags.forEach(function(tag){return tag.parentNode.removeChild(tag)}),this.tags=[],this.ctr=0},StyleSheet}()}).call(__webpack_exports__,__webpack_require__(0))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(process){function handleInterpolation(mergedProps,registered,interpolation,couldBeSelectorInterpolation){if(null==interpolation)return"";if(void 0!==interpolation.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===interpolation.toString())throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");return interpolation}switch(typeof interpolation){case"boolean":return"";case"object":if(1===interpolation.anim)return cursor={name:interpolation.name,styles:interpolation.styles,next:cursor},interpolation.name;if(void 0!==interpolation.styles){var next=interpolation.next;if(void 0!==next)for(;void 0!==next;)cursor={name:next.name,styles:next.styles,next:cursor},next=next.next;var styles=interpolation.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==interpolation.map&&(styles+=interpolation.map),styles}return createStringFromObject(mergedProps,registered,interpolation);case"function":if(void 0!==mergedProps){var previousCursor=cursor,result=interpolation(mergedProps);return cursor=previousCursor,handleInterpolation(mergedProps,registered,result,couldBeSelectorInterpolation)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var matched=[],replaced=interpolation.replace(animationRegex,function(match,p1,p2){var fakeVarName="animation"+matched.length;return matched.push("const "+fakeVarName+" = keyframes`"+p2.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+fakeVarName+"}"});matched.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(matched,["`"+replaced+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+replaced+"`")}}if(null==registered)return interpolation;var cached=registered[interpolation];return"production"!==process.env.NODE_ENV&&couldBeSelectorInterpolation&&shouldWarnAboutInterpolatingClassNameFromCss&&void 0!==cached&&(console.error("Interpolating a className from css`` is not recommended and will cause problems with composition.\nInterpolating a className from css`` will be completely unsupported in a future major version of Emotion"),shouldWarnAboutInterpolatingClassNameFromCss=!1),void 0===cached||couldBeSelectorInterpolation?interpolation:cached}function createStringFromObject(mergedProps,registered,obj){var string="";if(Array.isArray(obj))for(var i=0;i<obj.length;i++)string+=handleInterpolation(mergedProps,registered,obj[i],!1);else for(var _key in obj){var value=obj[_key];if("object"!=typeof value)null!=registered&&void 0!==registered[value]?string+=_key+"{"+registered[value]+"}":isProcessableValue(value)&&(string+=processStyleName(_key)+":"+processStyleValue(_key,value)+";");else{if("NO_COMPONENT_SELECTOR"===_key&&"production"!==process.env.NODE_ENV)throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");if(!Array.isArray(value)||"string"!=typeof value[0]||null!=registered&&void 0!==registered[value[0]]){var interpolated=handleInterpolation(mergedProps,registered,value,!1);switch(_key){case"animation":case"animationName":string+=processStyleName(_key)+":"+interpolated+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===_key&&console.error(UNDEFINED_AS_OBJECT_KEY_ERROR),string+=_key+"{"+interpolated+"}"}}else for(var _i=0;_i<value.length;_i++)isProcessableValue(value[_i])&&(string+=processStyleName(_key)+":"+processStyleValue(_key,value[_i])+";")}}return string}__webpack_require__.d(__webpack_exports__,"a",function(){return serializeStyles});var __WEBPACK_IMPORTED_MODULE_0__emotion_hash__=__webpack_require__(97),__WEBPACK_IMPORTED_MODULE_1__emotion_unitless__=__webpack_require__(98),__WEBPACK_IMPORTED_MODULE_2__emotion_memoize__=__webpack_require__(99),ILLEGAL_ESCAPE_SEQUENCE_ERROR="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",UNDEFINED_AS_OBJECT_KEY_ERROR="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(property){return 45===property.charCodeAt(1)},isProcessableValue=function(value){return null!=value&&"boolean"!=typeof value},processStyleName=Object(__WEBPACK_IMPORTED_MODULE_2__emotion_memoize__.a)(function(styleName){return isCustomProperty(styleName)?styleName:styleName.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function(key,value){switch(key){case"animation":case"animationName":if("string"==typeof value)return value.replace(animationRegex,function(match,p1,p2){return cursor={name:p1,styles:p2,next:cursor},p1})}return 1===__WEBPACK_IMPORTED_MODULE_1__emotion_unitless__.a[key]||isCustomProperty(key)||"number"!=typeof value||0===value?value:value+"px"};if("production"!==process.env.NODE_ENV){var contentValuePattern=/(attr|calc|counters?|url)\(/,contentValues=["normal","none","counter","open-quote","close-quote","no-open-quote","no-close-quote","initial","inherit","unset"],oldProcessStyleValue=processStyleValue,msPattern=/^-ms-/,hyphenPattern=/-(.)/g,hyphenatedCache={};processStyleValue=function(key,value){"content"===key&&("string"!=typeof value||-1===contentValues.indexOf(value)&&!contentValuePattern.test(value)&&(value.charAt(0)!==value.charAt(value.length-1)||'"'!==value.charAt(0)&&"'"!==value.charAt(0)))&&console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+value+"\"'`");var processed=oldProcessStyleValue(key,value);return""===processed||isCustomProperty(key)||-1===key.indexOf("-")||void 0!==hyphenatedCache[key]||(hyphenatedCache[key]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+key.replace(msPattern,"ms-").replace(hyphenPattern,function(str,_char){return _char.toUpperCase()})+"?")),processed}}var sourceMapPattern,shouldWarnAboutInterpolatingClassNameFromCss=!0,labelPattern=/label:\s*([^\s;\n{]+)\s*;/g;"production"!==process.env.NODE_ENV&&(sourceMapPattern=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//);var cursor,serializeStyles=function(args,registered,mergedProps){if(1===args.length&&"object"==typeof args[0]&&null!==args[0]&&void 0!==args[0].styles)return args[0];var stringMode=!0,styles="";cursor=void 0;var strings=args[0];null==strings||void 0===strings.raw?(stringMode=!1,styles+=handleInterpolation(mergedProps,registered,strings,!1)):("production"!==process.env.NODE_ENV&&void 0===strings[0]&&console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR),styles+=strings[0]);for(var i=1;i<args.length;i++)styles+=handleInterpolation(mergedProps,registered,args[i],46===styles.charCodeAt(styles.length-1)),stringMode&&("production"!==process.env.NODE_ENV&&void 0===strings[i]&&console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR),styles+=strings[i]);var sourceMap;"production"!==process.env.NODE_ENV&&(styles=styles.replace(sourceMapPattern,function(match){return sourceMap=match,""})),labelPattern.lastIndex=0;for(var match,identifierName="";null!==(match=labelPattern.exec(styles));)identifierName+="-"+match[1];var name=Object(__WEBPACK_IMPORTED_MODULE_0__emotion_hash__.a)(styles)+identifierName;return"production"!==process.env.NODE_ENV?{name:name,styles:styles,map:sourceMap,next:cursor,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:name,styles:styles,next:cursor}}}).call(__webpack_exports__,__webpack_require__(0))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(process){function getMenuPlacement(_ref){var maxHeight=_ref.maxHeight,menuEl=_ref.menuEl,minHeight=_ref.minHeight,placement=_ref.placement,shouldScroll=_ref.shouldScroll,isFixedPosition=_ref.isFixedPosition,theme=_ref.theme,spacing=theme.spacing,scrollParent=Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.a)(menuEl),defaultState={placement:"bottom",maxHeight:maxHeight};if(!menuEl||!menuEl.offsetParent)return defaultState;var _scrollParent$getBoun=scrollParent.getBoundingClientRect(),scrollHeight=_scrollParent$getBoun.height,_menuEl$getBoundingCl=menuEl.getBoundingClientRect(),menuBottom=_menuEl$getBoundingCl.bottom,menuHeight=_menuEl$getBoundingCl.height,menuTop=_menuEl$getBoundingCl.top,_menuEl$offsetParent$=menuEl.offsetParent.getBoundingClientRect(),containerTop=_menuEl$offsetParent$.top,viewHeight=window.innerHeight,scrollTop=Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.b)(scrollParent),marginBottom=parseInt(getComputedStyle(menuEl).marginBottom,10),marginTop=parseInt(getComputedStyle(menuEl).marginTop,10),viewSpaceAbove=containerTop-marginTop,viewSpaceBelow=viewHeight-menuTop,scrollSpaceAbove=viewSpaceAbove+scrollTop,scrollSpaceBelow=scrollHeight-scrollTop-menuTop,scrollDown=menuBottom-viewHeight+scrollTop+marginBottom,scrollUp=scrollTop+menuTop-marginTop;switch(placement){case"auto":case"bottom":if(viewSpaceBelow>=menuHeight)return{placement:"bottom",maxHeight:maxHeight};if(scrollSpaceBelow>=menuHeight&&!isFixedPosition)return shouldScroll&&Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.c)(scrollParent,scrollDown,160),{placement:"bottom",maxHeight:maxHeight};if(!isFixedPosition&&scrollSpaceBelow>=minHeight||isFixedPosition&&viewSpaceBelow>=minHeight){shouldScroll&&Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.c)(scrollParent,scrollDown,160);return{placement:"bottom",maxHeight:isFixedPosition?viewSpaceBelow-marginBottom:scrollSpaceBelow-marginBottom}}if("auto"===placement||isFixedPosition){var _constrainedHeight=maxHeight,spaceAbove=isFixedPosition?viewSpaceAbove:scrollSpaceAbove;return spaceAbove>=minHeight&&(_constrainedHeight=Math.min(spaceAbove-marginBottom-spacing.controlHeight,maxHeight)),{placement:"top",maxHeight:_constrainedHeight}}if("bottom"===placement)return Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.l)(scrollParent,scrollDown),{placement:"bottom",maxHeight:maxHeight};break;case"top":if(viewSpaceAbove>=menuHeight)return{placement:"top",maxHeight:maxHeight};if(scrollSpaceAbove>=menuHeight&&!isFixedPosition)return shouldScroll&&Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.c)(scrollParent,scrollUp,160),{placement:"top",maxHeight:maxHeight};if(!isFixedPosition&&scrollSpaceAbove>=minHeight||isFixedPosition&&viewSpaceAbove>=minHeight){var _constrainedHeight2=maxHeight;return(!isFixedPosition&&scrollSpaceAbove>=minHeight||isFixedPosition&&viewSpaceAbove>=minHeight)&&(_constrainedHeight2=isFixedPosition?viewSpaceAbove-marginTop:scrollSpaceAbove-marginTop),shouldScroll&&Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.c)(scrollParent,scrollUp,160),{placement:"top",maxHeight:_constrainedHeight2}}return{placement:"bottom",maxHeight:maxHeight};default:throw new Error('Invalid placement provided "'.concat(placement,'".'))}return defaultState}function alignToControl(placement){var placementToCSSProp={bottom:"top",top:"bottom"};return placement?placementToCSSProp[placement]:"bottom"}function equal(a,b){if(a===b)return!0;if(a&&b&&"object"==Object(__WEBPACK_IMPORTED_MODULE_14__babel_runtime_helpers_esm_typeof__.a)(a)&&"object"==Object(__WEBPACK_IMPORTED_MODULE_14__babel_runtime_helpers_esm_typeof__.a)(b)){var i,length,key,arrA=isArray(a),arrB=isArray(b);if(arrA&&arrB){if((length=a.length)!=b.length)return!1;for(i=length;0!=i--;)if(!equal(a[i],b[i]))return!1;return!0}if(arrA!=arrB)return!1;var dateA=a instanceof Date,dateB=b instanceof Date;if(dateA!=dateB)return!1;if(dateA&&dateB)return a.getTime()==b.getTime();var regexpA=a instanceof RegExp,regexpB=b instanceof RegExp;if(regexpA!=regexpB)return!1;if(regexpA&&regexpB)return a.toString()==b.toString();var keys=keyList(a);if((length=keys.length)!==keyList(b).length)return!1;for(i=length;0!=i--;)if(!hasProp.call(b,keys[i]))return!1;for(i=length;0!=i--;)if(!("_owner"===(key=keys[i])&&a.$$typeof||equal(a[key],b[key])))return!1;return!0}return a!==a&&b!==b}function exportedEqual(a,b){try{return equal(a,b)}catch(error){if(error.message&&error.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",error.name,error.message),!1;throw error}}function _templateObject(){var data=Object(__WEBPACK_IMPORTED_MODULE_17__babel_runtime_helpers_esm_taggedTemplateLiteral__.a)(["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"]);return _templateObject=function(){return data},data}__webpack_require__.d(__webpack_exports__,"a",function(){return MenuPlacer}),__webpack_require__.d(__webpack_exports__,"b",function(){return containerCSS}),__webpack_require__.d(__webpack_exports__,"c",function(){return css}),__webpack_require__.d(__webpack_exports__,"d",function(){return clearIndicatorCSS}),__webpack_require__.d(__webpack_exports__,"e",function(){return dropdownIndicatorCSS}),__webpack_require__.d(__webpack_exports__,"f",function(){return groupHeadingCSS}),__webpack_require__.d(__webpack_exports__,"g",function(){return indicatorSeparatorCSS}),__webpack_require__.d(__webpack_exports__,"h",function(){return groupCSS}),__webpack_require__.d(__webpack_exports__,"i",function(){return inputCSS}),__webpack_require__.d(__webpack_exports__,"j",function(){return indicatorsContainerCSS}),__webpack_require__.d(__webpack_exports__,"k",function(){return loadingMessageCSS}),__webpack_require__.d(__webpack_exports__,"l",function(){return menuListCSS}),__webpack_require__.d(__webpack_exports__,"m",function(){return loadingIndicatorCSS}),__webpack_require__.d(__webpack_exports__,"n",function(){return menuCSS}),__webpack_require__.d(__webpack_exports__,"o",function(){return menuPortalCSS}),__webpack_require__.d(__webpack_exports__,"p",function(){return multiValueCSS}),__webpack_require__.d(__webpack_exports__,"q",function(){return multiValueLabelCSS}),__webpack_require__.d(__webpack_exports__,"r",function(){return multiValueRemoveCSS}),__webpack_require__.d(__webpack_exports__,"s",function(){return noOptionsMessageCSS}),__webpack_require__.d(__webpack_exports__,"t",function(){return optionCSS}),__webpack_require__.d(__webpack_exports__,"u",function(){return placeholderCSS}),__webpack_require__.d(__webpack_exports__,"v",function(){return css$1}),__webpack_require__.d(__webpack_exports__,"w",function(){return valueContainerCSS}),__webpack_require__.d(__webpack_exports__,"x",function(){return defaultComponents}),__webpack_require__.d(__webpack_exports__,"y",function(){return exportedEqual});var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__=__webpack_require__(14),__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__=__webpack_require__(15),__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectSpread__=__webpack_require__(30),__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__=__webpack_require__(16),__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__=__webpack_require__(17),__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_possibleConstructorReturn__=__webpack_require__(18),__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_getPrototypeOf__=__webpack_require__(20),__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_inherits__=__webpack_require__(21),__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__=__webpack_require__(8),__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__=__webpack_require__(7),__WEBPACK_IMPORTED_MODULE_10_react__=__webpack_require__(3),__WEBPACK_IMPORTED_MODULE_11__emotion_core__=(__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_react__),__webpack_require__(31)),__WEBPACK_IMPORTED_MODULE_12_react_dom__=__webpack_require__(11),__WEBPACK_IMPORTED_MODULE_13_prop_types__=(__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12_react_dom__),__webpack_require__(10)),__WEBPACK_IMPORTED_MODULE_13_prop_types___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_13_prop_types__),__WEBPACK_IMPORTED_MODULE_14__babel_runtime_helpers_esm_typeof__=__webpack_require__(19),__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__=__webpack_require__(32),__WEBPACK_IMPORTED_MODULE_16__emotion_css__=__webpack_require__(9),__WEBPACK_IMPORTED_MODULE_17__babel_runtime_helpers_esm_taggedTemplateLiteral__=__webpack_require__(42),__WEBPACK_IMPORTED_MODULE_18_react_input_autosize__=__webpack_require__(43),__WEBPACK_IMPORTED_MODULE_18_react_input_autosize___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_18_react_input_autosize__),coercePlacement=function(p){return"auto"===p?"bottom":p},menuCSS=function(_ref2){var _ref3,placement=_ref2.placement,_ref2$theme=_ref2.theme,borderRadius=_ref2$theme.borderRadius,spacing=_ref2$theme.spacing,colors=_ref2$theme.colors;return _ref3={label:"menu"},Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,alignToControl(placement),"100%"),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"backgroundColor",colors.neutral0),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"borderRadius",borderRadius),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"marginBottom",spacing.menuGutter),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"marginTop",spacing.menuGutter),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"position","absolute"),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"width","100%"),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"zIndex",1),_ref3},MenuPlacer=function(_Component){function MenuPlacer(){var _getPrototypeOf2,_this;Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__.a)(this,MenuPlacer);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return _this=Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,(_getPrototypeOf2=Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_getPrototypeOf__.a)(MenuPlacer)).call.apply(_getPrototypeOf2,[this].concat(args))),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"state",{maxHeight:_this.props.maxMenuHeight,placement:null}),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getPlacement",function(ref){var _this$props=_this.props,minMenuHeight=_this$props.minMenuHeight,maxMenuHeight=_this$props.maxMenuHeight,menuPlacement=_this$props.menuPlacement,menuPosition=_this$props.menuPosition,menuShouldScrollIntoView=_this$props.menuShouldScrollIntoView,theme=_this$props.theme,getPortalPlacement=_this.context.getPortalPlacement;if(ref){var isFixedPosition="fixed"===menuPosition,shouldScroll=menuShouldScrollIntoView&&!isFixedPosition,state=getMenuPlacement({maxHeight:maxMenuHeight,menuEl:ref,minHeight:minMenuHeight,placement:menuPlacement,shouldScroll:shouldScroll,isFixedPosition:isFixedPosition,theme:theme});getPortalPlacement&&getPortalPlacement(state),_this.setState(state)}}),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getUpdatedProps",function(){var menuPlacement=_this.props.menuPlacement,placement=_this.state.placement||coercePlacement(menuPlacement);return Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectSpread__.a)({},_this.props,{placement:placement,maxHeight:_this.state.maxHeight})}),_this}return Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_inherits__.a)(MenuPlacer,_Component),Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__.a)(MenuPlacer,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),MenuPlacer}(__WEBPACK_IMPORTED_MODULE_10_react__.Component);Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(MenuPlacer,"contextTypes",{getPortalPlacement:__WEBPACK_IMPORTED_MODULE_13_prop_types___default.a.func});var Menu=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,innerRef=props.innerRef,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("menu",props),className:cx({menu:!0},className)},innerProps,{ref:innerRef}),children)},menuListCSS=function(_ref4){var maxHeight=_ref4.maxHeight,baseUnit=_ref4.theme.spacing.baseUnit;return{maxHeight:maxHeight,overflowY:"auto",paddingBottom:baseUnit,paddingTop:baseUnit,position:"relative",WebkitOverflowScrolling:"touch"}},MenuList=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,isMulti=props.isMulti,innerRef=props.innerRef;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",{css:getStyles("menuList",props),className:cx({"menu-list":!0,"menu-list--is-multi":isMulti},className),ref:innerRef},children)},noticeCSS=function(_ref5){var _ref5$theme=_ref5.theme,baseUnit=_ref5$theme.spacing.baseUnit;return{color:_ref5$theme.colors.neutral40,padding:"".concat(2*baseUnit,"px ").concat(3*baseUnit,"px"),textAlign:"center"}},noOptionsMessageCSS=noticeCSS,loadingMessageCSS=noticeCSS,NoOptionsMessage=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("noOptionsMessage",props),className:cx({"menu-notice":!0,"menu-notice--no-options":!0},className)},innerProps),children)};NoOptionsMessage.defaultProps={children:"No options"};var LoadingMessage=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("loadingMessage",props),className:cx({"menu-notice":!0,"menu-notice--loading":!0},className)},innerProps),children)};LoadingMessage.defaultProps={children:"Loading..."};var menuPortalCSS=function(_ref6){var rect=_ref6.rect,offset=_ref6.offset,position=_ref6.position;return{left:rect.left,position:position,top:offset,width:rect.width,zIndex:1}},MenuPortal=function(_Component2){function MenuPortal(){var _getPrototypeOf3,_this2;Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__.a)(this,MenuPortal);for(var _len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++)args[_key2]=arguments[_key2];return _this2=Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,(_getPrototypeOf3=Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_getPrototypeOf__.a)(MenuPortal)).call.apply(_getPrototypeOf3,[this].concat(args))),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this2)),"state",{placement:null}),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this2)),"getPortalPlacement",function(_ref7){var placement=_ref7.placement;placement!==coercePlacement(_this2.props.menuPlacement)&&_this2.setState({placement:placement})}),_this2}return Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_inherits__.a)(MenuPortal,_Component2),Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__.a)(MenuPortal,[{key:"getChildContext",value:function(){return{getPortalPlacement:this.getPortalPlacement}}},{key:"render",value:function(){var _this$props2=this.props,appendTo=_this$props2.appendTo,children=_this$props2.children,controlElement=_this$props2.controlElement,menuPlacement=_this$props2.menuPlacement,position=_this$props2.menuPosition,getStyles=_this$props2.getStyles,isFixed="fixed"===position;if(!appendTo&&!isFixed||!controlElement)return null;var placement=this.state.placement||coercePlacement(menuPlacement),rect=Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.g)(controlElement),scrollDistance=isFixed?0:window.pageYOffset,offset=rect[placement]+scrollDistance,state={offset:offset,position:position,rect:rect},menuWrapper=Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",{css:getStyles("menuPortal",state)},children);return appendTo?Object(__WEBPACK_IMPORTED_MODULE_12_react_dom__.createPortal)(menuWrapper,appendTo):menuWrapper}}]),MenuPortal}(__WEBPACK_IMPORTED_MODULE_10_react__.Component);Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(MenuPortal,"childContextTypes",{getPortalPlacement:__WEBPACK_IMPORTED_MODULE_13_prop_types___default.a.func});var isArray=Array.isArray,keyList=Object.keys,hasProp=Object.prototype.hasOwnProperty,containerCSS=function(_ref){var isDisabled=_ref.isDisabled;return{label:"container",direction:_ref.isRtl?"rtl":null,pointerEvents:isDisabled?"none":null,position:"relative"}},SelectContainer=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps,isDisabled=props.isDisabled,isRtl=props.isRtl;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("container",props),className:cx({"--is-disabled":isDisabled,"--is-rtl":isRtl},className)},innerProps),children)},valueContainerCSS=function(_ref2){var spacing=_ref2.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(spacing.baseUnit/2,"px ").concat(2*spacing.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}},ValueContainer=function(_Component){function ValueContainer(){return Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__.a)(this,ValueContainer),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_getPrototypeOf__.a)(ValueContainer).apply(this,arguments))}return Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_inherits__.a)(ValueContainer,_Component),Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__.a)(ValueContainer,[{key:"render",value:function(){var _this$props=this.props,children=_this$props.children,className=_this$props.className,cx=_this$props.cx,isMulti=_this$props.isMulti,getStyles=_this$props.getStyles,hasValue=_this$props.hasValue;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",{css:getStyles("valueContainer",this.props),className:cx({"value-container":!0,"value-container--is-multi":isMulti,"value-container--has-value":hasValue},className)},children)}}]),ValueContainer}(__WEBPACK_IMPORTED_MODULE_10_react__.Component),indicatorsContainerCSS=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},IndicatorsContainer=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",{css:getStyles("indicatorsContainer",props),className:cx({indicators:!0},className)},children)},_ref2="production"===process.env.NODE_ENV?{name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"}:{name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0JJIiwiZmlsZSI6ImluZGljYXRvcnMuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyB0eXBlIE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuXG5pbXBvcnQgdHlwZSB7IENvbW1vblByb3BzLCBUaGVtZSB9IGZyb20gJy4uL3R5cGVzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHsgc2l6ZSwgLi4ucHJvcHMgfTogeyBzaXplOiBudW1iZXIgfSkgPT4gKFxuICA8c3ZnXG4gICAgaGVpZ2h0PXtzaXplfVxuICAgIHdpZHRoPXtzaXplfVxuICAgIHZpZXdCb3g9XCIwIDAgMjAgMjBcIlxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgZm9jdXNhYmxlPVwiZmFsc2VcIlxuICAgIGNzcz17e1xuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBmaWxsOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGxpbmVIZWlnaHQ6IDEsXG4gICAgICBzdHJva2U6ICdjdXJyZW50Q29sb3InLFxuICAgICAgc3Ryb2tlV2lkdGg6IDAsXG4gICAgfX1cbiAgICB7Li4ucHJvcHN9XG4gIC8+XG4pO1xuXG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBhbnkpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogYW55KSA9PiAoXG4gIDxTdmcgc2l6ZT17MjB9IHsuLi5wcm9wc30+XG4gICAgPHBhdGggZD1cIk00LjUxNiA3LjU0OGMwLjQzNi0wLjQ0NiAxLjA0My0wLjQ4MSAxLjU3NiAwbDMuOTA4IDMuNzQ3IDMuOTA4LTMuNzQ3YzAuNTMzLTAuNDgxIDEuMTQxLTAuNDQ2IDEuNTc0IDAgMC40MzYgMC40NDUgMC40MDggMS4xOTcgMCAxLjYxNS0wLjQwNiAwLjQxOC00LjY5NSA0LjUwMi00LjY5NSA0LjUwMi0wLjIxNyAwLjIyMy0wLjUwMiAwLjMzNS0wLjc4NyAwLjMzNXMtMC41Ny0wLjExMi0wLjc4OS0wLjMzNWMwIDAtNC4yODctNC4wODQtNC42OTUtNC41MDJzLTAuNDM2LTEuMTcgMC0xLjYxNXpcIiAvPlxuICA8L1N2Zz5cbik7XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gRHJvcGRvd24gJiBDbGVhciBCdXR0b25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IHR5cGUgSW5kaWNhdG9yUHJvcHMgPSBDb21tb25Qcm9wcyAmIHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW46IE5vZGUsXG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufTtcblxuY29uc3QgYmFzZUNTUyA9ICh7XG4gIGlzRm9jdXNlZCxcbiAgdGhlbWU6IHtcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgY29sb3JzLFxuICB9LFxufTogSW5kaWNhdG9yUHJvcHMpID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yQ29udGFpbmVyJyxcbiAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcblxuICAnOmhvdmVyJzoge1xuICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDgwIDogY29sb3JzLm5ldXRyYWw0MCxcbiAgfSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2Ryb3Bkb3duSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnZHJvcGRvd24taW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2NsZWFySW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnY2xlYXItaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG50eXBlIFNlcGFyYXRvclN0YXRlID0geyBpc0Rpc2FibGVkOiBib29sZWFuIH07XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSAoe1xuICBpc0Rpc2FibGVkLFxuICB0aGVtZToge1xuICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICBjb2xvcnMsXG4gIH0sXG59OiBDb21tb25Qcm9wcyAmIFNlcGFyYXRvclN0YXRlKSA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvclNlcGFyYXRvcicsXG4gIGFsaWduU2VsZjogJ3N0cmV0Y2gnLFxuICBiYWNrZ3JvdW5kQ29sb3I6IGlzRGlzYWJsZWQgPyBjb2xvcnMubmV1dHJhbDEwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgbWFyZ2luQm90dG9tOiBiYXNlVW5pdCAqIDIsXG4gIG1hcmdpblRvcDogYmFzZVVuaXQgKiAyLFxuICB3aWR0aDogMSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNsYXNzTmFtZSwgY3gsIGdldFN0eWxlcywgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2luZGljYXRvclNlcGFyYXRvcicsIHByb3BzKX1cbiAgICAgIGNsYXNzTmFtZT17Y3goeyAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUgfSwgY2xhc3NOYW1lKX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gKHtcbiAgaXNGb2N1c2VkLFxuICBzaXplLFxuICB0aGVtZToge1xuICAgIGNvbG9ycyxcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gIH0sXG59OiB7XG4gIGlzRm9jdXNlZDogYm9vbGVhbixcbiAgc2l6ZTogbnVtYmVyLFxuICB0aGVtZTogVGhlbWUsXG59KSA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxufSk7XG5cbnR5cGUgRG90UHJvcHMgPSB7IGRlbGF5OiBudW1iZXIsIG9mZnNldDogYm9vbGVhbiB9O1xuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogRG90UHJvcHMpID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGFuaW1hdGlvbjogYCR7bG9hZGluZ0RvdEFuaW1hdGlvbnN9IDFzIGVhc2UtaW4tb3V0ICR7ZGVsYXl9bXMgaW5maW5pdGU7YCxcbiAgICAgIGJhY2tncm91bmRDb2xvcjogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBib3JkZXJSYWRpdXM6ICcxZW0nLFxuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBtYXJnaW5MZWZ0OiBvZmZzZXQgPyAnMWVtJyA6IG51bGwsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIExvYWRpbmdJY29uUHJvcHMgPSB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufSAmIENvbW1vblByb3BzICYge1xuICAgIC8qKiBTZXQgc2l6ZSBvZiB0aGUgY29udGFpbmVyLiAqL1xuICAgIHNpemU6IG51bWJlcixcbiAgfTtcbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gKHByb3BzOiBMb2FkaW5nSWNvblByb3BzKSA9PiB7XG4gIGNvbnN0IHsgY2xhc3NOYW1lLCBjeCwgZ2V0U3R5bGVzLCBpbm5lclByb3BzLCBpc1J0bCB9ID0gcHJvcHM7XG5cbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIGNzcz17Z2V0U3R5bGVzKCdsb2FkaW5nSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnbG9hZGluZy1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgICBjbGFzc05hbWVcbiAgICAgICl9XG4gICAgPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezB9IG9mZnNldD17aXNSdGx9IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MTYwfSBvZmZzZXQgLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXszMjB9IG9mZnNldD17IWlzUnRsfSAvPlxuICAgIDwvZGl2PlxuICApO1xufTtcbkxvYWRpbmdJbmRpY2F0b3IuZGVmYXVsdFByb3BzID0geyBzaXplOiA0IH07XG4iXX0= */"},Svg=function(_ref){var size=_ref.size,props=Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__.a)(_ref,["size"]);return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("svg",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({height:size,width:size,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:_ref2},props))},CrossIcon=function(props){return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(Svg,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({size:20},props),Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},DownChevron=function(props){return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(Svg,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({size:20},props),Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},baseCSS=function(_ref3){var isFocused=_ref3.isFocused,_ref3$theme=_ref3.theme,baseUnit=_ref3$theme.spacing.baseUnit,colors=_ref3$theme.colors;return{label:"indicatorContainer",color:isFocused?colors.neutral60:colors.neutral20,display:"flex",padding:2*baseUnit,transition:"color 150ms",":hover":{color:isFocused?colors.neutral80:colors.neutral40}}},dropdownIndicatorCSS=baseCSS,DropdownIndicator=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},innerProps,{css:getStyles("dropdownIndicator",props),className:cx({indicator:!0,"dropdown-indicator":!0},className)}),children||Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(DownChevron,null))},clearIndicatorCSS=baseCSS,ClearIndicator=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},innerProps,{css:getStyles("clearIndicator",props),className:cx({indicator:!0,"clear-indicator":!0},className)}),children||Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(CrossIcon,null))},indicatorSeparatorCSS=function(_ref4){var isDisabled=_ref4.isDisabled,_ref4$theme=_ref4.theme,baseUnit=_ref4$theme.spacing.baseUnit,colors=_ref4$theme.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:isDisabled?colors.neutral10:colors.neutral20,marginBottom:2*baseUnit,marginTop:2*baseUnit,width:1}},IndicatorSeparator=function(props){var className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("span",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},innerProps,{css:getStyles("indicatorSeparator",props),className:cx({"indicator-separator":!0},className)}))},loadingDotAnimations=Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.d)(_templateObject()),loadingIndicatorCSS=function(_ref5){var isFocused=_ref5.isFocused,size=_ref5.size,_ref5$theme=_ref5.theme,colors=_ref5$theme.colors,baseUnit=_ref5$theme.spacing.baseUnit;return{label:"loadingIndicator",color:isFocused?colors.neutral60:colors.neutral20,display:"flex",padding:2*baseUnit,transition:"color 150ms",alignSelf:"center",fontSize:size,lineHeight:1,marginRight:size,textAlign:"center",verticalAlign:"middle"}},LoadingDot=function(_ref6){var delay=_ref6.delay,offset=_ref6.offset;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("span",{css:Object(__WEBPACK_IMPORTED_MODULE_16__emotion_css__.a)({animation:"".concat(loadingDotAnimations," 1s ease-in-out ").concat(delay,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:offset?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBc0xJIiwiZmlsZSI6ImluZGljYXRvcnMuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyB0eXBlIE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuXG5pbXBvcnQgdHlwZSB7IENvbW1vblByb3BzLCBUaGVtZSB9IGZyb20gJy4uL3R5cGVzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHsgc2l6ZSwgLi4ucHJvcHMgfTogeyBzaXplOiBudW1iZXIgfSkgPT4gKFxuICA8c3ZnXG4gICAgaGVpZ2h0PXtzaXplfVxuICAgIHdpZHRoPXtzaXplfVxuICAgIHZpZXdCb3g9XCIwIDAgMjAgMjBcIlxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgZm9jdXNhYmxlPVwiZmFsc2VcIlxuICAgIGNzcz17e1xuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBmaWxsOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGxpbmVIZWlnaHQ6IDEsXG4gICAgICBzdHJva2U6ICdjdXJyZW50Q29sb3InLFxuICAgICAgc3Ryb2tlV2lkdGg6IDAsXG4gICAgfX1cbiAgICB7Li4ucHJvcHN9XG4gIC8+XG4pO1xuXG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBhbnkpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogYW55KSA9PiAoXG4gIDxTdmcgc2l6ZT17MjB9IHsuLi5wcm9wc30+XG4gICAgPHBhdGggZD1cIk00LjUxNiA3LjU0OGMwLjQzNi0wLjQ0NiAxLjA0My0wLjQ4MSAxLjU3NiAwbDMuOTA4IDMuNzQ3IDMuOTA4LTMuNzQ3YzAuNTMzLTAuNDgxIDEuMTQxLTAuNDQ2IDEuNTc0IDAgMC40MzYgMC40NDUgMC40MDggMS4xOTcgMCAxLjYxNS0wLjQwNiAwLjQxOC00LjY5NSA0LjUwMi00LjY5NSA0LjUwMi0wLjIxNyAwLjIyMy0wLjUwMiAwLjMzNS0wLjc4NyAwLjMzNXMtMC41Ny0wLjExMi0wLjc4OS0wLjMzNWMwIDAtNC4yODctNC4wODQtNC42OTUtNC41MDJzLTAuNDM2LTEuMTcgMC0xLjYxNXpcIiAvPlxuICA8L1N2Zz5cbik7XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gRHJvcGRvd24gJiBDbGVhciBCdXR0b25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IHR5cGUgSW5kaWNhdG9yUHJvcHMgPSBDb21tb25Qcm9wcyAmIHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW46IE5vZGUsXG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufTtcblxuY29uc3QgYmFzZUNTUyA9ICh7XG4gIGlzRm9jdXNlZCxcbiAgdGhlbWU6IHtcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgY29sb3JzLFxuICB9LFxufTogSW5kaWNhdG9yUHJvcHMpID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yQ29udGFpbmVyJyxcbiAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcblxuICAnOmhvdmVyJzoge1xuICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDgwIDogY29sb3JzLm5ldXRyYWw0MCxcbiAgfSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2Ryb3Bkb3duSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnZHJvcGRvd24taW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2NsZWFySW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnY2xlYXItaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG50eXBlIFNlcGFyYXRvclN0YXRlID0geyBpc0Rpc2FibGVkOiBib29sZWFuIH07XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSAoe1xuICBpc0Rpc2FibGVkLFxuICB0aGVtZToge1xuICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICBjb2xvcnMsXG4gIH0sXG59OiBDb21tb25Qcm9wcyAmIFNlcGFyYXRvclN0YXRlKSA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvclNlcGFyYXRvcicsXG4gIGFsaWduU2VsZjogJ3N0cmV0Y2gnLFxuICBiYWNrZ3JvdW5kQ29sb3I6IGlzRGlzYWJsZWQgPyBjb2xvcnMubmV1dHJhbDEwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgbWFyZ2luQm90dG9tOiBiYXNlVW5pdCAqIDIsXG4gIG1hcmdpblRvcDogYmFzZVVuaXQgKiAyLFxuICB3aWR0aDogMSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNsYXNzTmFtZSwgY3gsIGdldFN0eWxlcywgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2luZGljYXRvclNlcGFyYXRvcicsIHByb3BzKX1cbiAgICAgIGNsYXNzTmFtZT17Y3goeyAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUgfSwgY2xhc3NOYW1lKX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gKHtcbiAgaXNGb2N1c2VkLFxuICBzaXplLFxuICB0aGVtZToge1xuICAgIGNvbG9ycyxcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gIH0sXG59OiB7XG4gIGlzRm9jdXNlZDogYm9vbGVhbixcbiAgc2l6ZTogbnVtYmVyLFxuICB0aGVtZTogVGhlbWUsXG59KSA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxufSk7XG5cbnR5cGUgRG90UHJvcHMgPSB7IGRlbGF5OiBudW1iZXIsIG9mZnNldDogYm9vbGVhbiB9O1xuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogRG90UHJvcHMpID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGFuaW1hdGlvbjogYCR7bG9hZGluZ0RvdEFuaW1hdGlvbnN9IDFzIGVhc2UtaW4tb3V0ICR7ZGVsYXl9bXMgaW5maW5pdGU7YCxcbiAgICAgIGJhY2tncm91bmRDb2xvcjogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBib3JkZXJSYWRpdXM6ICcxZW0nLFxuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBtYXJnaW5MZWZ0OiBvZmZzZXQgPyAnMWVtJyA6IG51bGwsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIExvYWRpbmdJY29uUHJvcHMgPSB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufSAmIENvbW1vblByb3BzICYge1xuICAgIC8qKiBTZXQgc2l6ZSBvZiB0aGUgY29udGFpbmVyLiAqL1xuICAgIHNpemU6IG51bWJlcixcbiAgfTtcbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gKHByb3BzOiBMb2FkaW5nSWNvblByb3BzKSA9PiB7XG4gIGNvbnN0IHsgY2xhc3NOYW1lLCBjeCwgZ2V0U3R5bGVzLCBpbm5lclByb3BzLCBpc1J0bCB9ID0gcHJvcHM7XG5cbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIGNzcz17Z2V0U3R5bGVzKCdsb2FkaW5nSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnbG9hZGluZy1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgICBjbGFzc05hbWVcbiAgICAgICl9XG4gICAgPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezB9IG9mZnNldD17aXNSdGx9IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MTYwfSBvZmZzZXQgLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXszMjB9IG9mZnNldD17IWlzUnRsfSAvPlxuICAgIDwvZGl2PlxuICApO1xufTtcbkxvYWRpbmdJbmRpY2F0b3IuZGVmYXVsdFByb3BzID0geyBzaXplOiA0IH07XG4iXX0= */")})},LoadingIndicator=function(props){var className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps,isRtl=props.isRtl;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},innerProps,{css:getStyles("loadingIndicator",props),className:cx({indicator:!0,"loading-indicator":!0},className)}),Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(LoadingDot,{delay:0,offset:isRtl}),Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(LoadingDot,{delay:160,offset:!0}),Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(LoadingDot,{delay:320,offset:!isRtl}))};LoadingIndicator.defaultProps={size:4};var css=function(_ref){var isDisabled=_ref.isDisabled,isFocused=_ref.isFocused,_ref$theme=_ref.theme,colors=_ref$theme.colors,borderRadius=_ref$theme.borderRadius,spacing=_ref$theme.spacing;return{label:"control",alignItems:"center",backgroundColor:isDisabled?colors.neutral5:colors.neutral0,borderColor:isDisabled?colors.neutral10:isFocused?colors.primary:colors.neutral20,borderRadius:borderRadius,borderStyle:"solid",borderWidth:1,boxShadow:isFocused?"0 0 0 1px ".concat(colors.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:isFocused?colors.primary:colors.neutral30}}},Control=function(props){var children=props.children,cx=props.cx,getStyles=props.getStyles,className=props.className,isDisabled=props.isDisabled,isFocused=props.isFocused,innerRef=props.innerRef,innerProps=props.innerProps,menuIsOpen=props.menuIsOpen;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({ref:innerRef,css:getStyles("control",props),className:cx({control:!0,"control--is-disabled":isDisabled,"control--is-focused":isFocused,"control--menu-is-open":menuIsOpen},className)},innerProps),children)},groupCSS=function(_ref){var spacing=_ref.theme.spacing;return{paddingBottom:2*spacing.baseUnit,paddingTop:2*spacing.baseUnit}},Group=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,Heading=props.Heading,headingProps=props.headingProps,label=props.label,theme=props.theme,selectProps=props.selectProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",{css:getStyles("group",props),className:cx({group:!0},className)},Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(Heading,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},headingProps,{selectProps:selectProps,theme:theme,getStyles:getStyles,cx:cx}),label),Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",null,children))},groupHeadingCSS=function(_ref2){var spacing=_ref2.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*spacing.baseUnit,paddingRight:3*spacing.baseUnit,textTransform:"uppercase"}},GroupHeading=function(props){var className=props.className,cx=props.cx,getStyles=props.getStyles,theme=props.theme,cleanProps=(props.selectProps,Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__.a)(props,["className","cx","getStyles","theme","selectProps"]));return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("groupHeading",Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectSpread__.a)({theme:theme},cleanProps)),className:cx({"group-heading":!0},className)},cleanProps))},inputCSS=function(_ref){var isDisabled=_ref.isDisabled,_ref$theme=_ref.theme,spacing=_ref$theme.spacing,colors=_ref$theme.colors;return{margin:spacing.baseUnit/2,paddingBottom:spacing.baseUnit/2,paddingTop:spacing.baseUnit/2,visibility:isDisabled?"hidden":"visible",color:colors.neutral80}},inputStyle=function(isHidden){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:isHidden?0:1,outline:0,padding:0,color:"inherit"}},Input=function(_ref2){var className=_ref2.className,cx=_ref2.cx,getStyles=_ref2.getStyles,innerRef=_ref2.innerRef,isHidden=_ref2.isHidden,isDisabled=_ref2.isDisabled,theme=_ref2.theme,props=(_ref2.selectProps,Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__.a)(_ref2,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",{css:getStyles("input",Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectSpread__.a)({theme:theme},props))},Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(__WEBPACK_IMPORTED_MODULE_18_react_input_autosize___default.a,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({className:cx({input:!0},className),inputRef:innerRef,inputStyle:inputStyle(isHidden),disabled:isDisabled},props)))},multiValueCSS=function(_ref){var _ref$theme=_ref.theme,spacing=_ref$theme.spacing,borderRadius=_ref$theme.borderRadius;return{label:"multiValue",backgroundColor:_ref$theme.colors.neutral10,borderRadius:borderRadius/2,display:"flex",margin:spacing.baseUnit/2,minWidth:0}},multiValueLabelCSS=function(_ref2){var _ref2$theme=_ref2.theme,borderRadius=_ref2$theme.borderRadius,colors=_ref2$theme.colors,cropWithEllipsis=_ref2.cropWithEllipsis;return{borderRadius:borderRadius/2,color:colors.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:cropWithEllipsis?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemoveCSS=function(_ref3){var _ref3$theme=_ref3.theme,spacing=_ref3$theme.spacing,borderRadius=_ref3$theme.borderRadius,colors=_ref3$theme.colors;return{alignItems:"center",borderRadius:borderRadius/2,backgroundColor:_ref3.isFocused&&colors.dangerLight,display:"flex",paddingLeft:spacing.baseUnit,paddingRight:spacing.baseUnit,":hover":{backgroundColor:colors.dangerLight,color:colors.danger}}},MultiValueGeneric=function(_ref4){var children=_ref4.children,innerProps=_ref4.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",innerProps,children)},MultiValueContainer=MultiValueGeneric,MultiValueLabel=MultiValueGeneric,MultiValueRemove=function(_Component){function MultiValueRemove(){return Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__.a)(this,MultiValueRemove),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_getPrototypeOf__.a)(MultiValueRemove).apply(this,arguments))}return Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_inherits__.a)(MultiValueRemove,_Component),Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__.a)(MultiValueRemove,[{key:"render",value:function(){var _this$props=this.props,children=_this$props.children,innerProps=_this$props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",innerProps,children||Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(CrossIcon,{size:14}))}}]),MultiValueRemove}(__WEBPACK_IMPORTED_MODULE_10_react__.Component),MultiValue=function(_Component2){function MultiValue(){return Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__.a)(this,MultiValue),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_getPrototypeOf__.a)(MultiValue).apply(this,arguments))}return Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_inherits__.a)(MultiValue,_Component2),Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__.a)(MultiValue,[{key:"render",value:function(){var _this=this,_this$props2=this.props,children=_this$props2.children,className=_this$props2.className,components=_this$props2.components,cx=_this$props2.cx,data=_this$props2.data,getStyles=_this$props2.getStyles,innerProps=_this$props2.innerProps,isDisabled=_this$props2.isDisabled,removeProps=_this$props2.removeProps,selectProps=_this$props2.selectProps,Container=components.Container,Label=components.Label,Remove=components.Remove;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.b,null,function(_ref5){var css=_ref5.css,emotionCx=_ref5.cx;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(Container,{data:data,innerProps:Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectSpread__.a)({},innerProps,{className:emotionCx(css(getStyles("multiValue",_this.props)),cx({"multi-value":!0,"multi-value--is-disabled":isDisabled},className))}),selectProps:selectProps},Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(Label,{data:data,innerProps:{className:emotionCx(css(getStyles("multiValueLabel",_this.props)),cx({"multi-value__label":!0},className))},selectProps:selectProps},children),Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(Remove,{data:data,innerProps:Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectSpread__.a)({className:emotionCx(css(getStyles("multiValueRemove",_this.props)),cx({"multi-value__remove":!0},className))},removeProps),selectProps:selectProps}))})}}]),MultiValue}(__WEBPACK_IMPORTED_MODULE_10_react__.Component);Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(MultiValue,"defaultProps",{cropWithEllipsis:!0});var optionCSS=function(_ref){var isDisabled=_ref.isDisabled,isFocused=_ref.isFocused,isSelected=_ref.isSelected,_ref$theme=_ref.theme,spacing=_ref$theme.spacing,colors=_ref$theme.colors;return{label:"option",backgroundColor:isSelected?colors.primary:isFocused?colors.primary25:"transparent",color:isDisabled?colors.neutral20:isSelected?colors.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*spacing.baseUnit,"px ").concat(3*spacing.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!isDisabled&&(isSelected?colors.primary:colors.primary50)}}},Option=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,isDisabled=props.isDisabled,isFocused=props.isFocused,isSelected=props.isSelected,innerRef=props.innerRef,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("option",props),className:cx({option:!0,"option--is-disabled":isDisabled,"option--is-focused":isFocused,"option--is-selected":isSelected},className),ref:innerRef},innerProps),children)},placeholderCSS=function(_ref){var _ref$theme=_ref.theme,spacing=_ref$theme.spacing;return{label:"placeholder",color:_ref$theme.colors.neutral50,marginLeft:spacing.baseUnit/2,marginRight:spacing.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},Placeholder=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("placeholder",props),className:cx({placeholder:!0},className)},innerProps),children)},css$1=function(_ref){var isDisabled=_ref.isDisabled,_ref$theme=_ref.theme,spacing=_ref$theme.spacing,colors=_ref$theme.colors;return{label:"singleValue",color:isDisabled?colors.neutral40:colors.neutral80,marginLeft:spacing.baseUnit/2,marginRight:spacing.baseUnit/2,maxWidth:"calc(100% - ".concat(2*spacing.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},SingleValue=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,isDisabled=props.isDisabled,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("singleValue",props),className:cx({"single-value":!0,"single-value--is-disabled":isDisabled},className)},innerProps),children)},components={ClearIndicator:ClearIndicator,Control:Control,DropdownIndicator:DropdownIndicator,DownChevron:DownChevron,CrossIcon:CrossIcon,Group:Group,GroupHeading:GroupHeading,IndicatorsContainer:IndicatorsContainer,IndicatorSeparator:IndicatorSeparator,Input:Input,LoadingIndicator:LoadingIndicator,Menu:Menu,MenuList:MenuList,MenuPortal:MenuPortal,LoadingMessage:LoadingMessage,NoOptionsMessage:NoOptionsMessage,MultiValue:MultiValue,MultiValueContainer:MultiValueContainer,MultiValueLabel:MultiValueLabel,MultiValueRemove:MultiValueRemove,Option:Option,Placeholder:Placeholder,SelectContainer:SelectContainer,SingleValue:SingleValue,ValueContainer:ValueContainer},defaultComponents=function(props){return Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectSpread__.a)({},components,props.components)}}).call(__webpack_exports__,__webpack_require__(0))},function(module,__webpack_exports__,__webpack_require__){"use strict";function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}__webpack_exports__.a=_taggedTemplateLiteral},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _objectWithoutProperties(obj,keys){var target={};for(var i in obj)keys.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(obj,i)&&(target[i]=obj[i]);return target}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}Object.defineProperty(exports,"__esModule",{value:!0});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_react=__webpack_require__(3),_react2=_interopRequireDefault(_react),_propTypes=__webpack_require__(10),_propTypes2=_interopRequireDefault(_propTypes),sizerStyle={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},INPUT_PROPS_BLACKLIST=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],cleanInputProps=function(inputProps){return INPUT_PROPS_BLACKLIST.forEach(function(field){return delete inputProps[field]}),inputProps},copyStyles=function(styles,node){node.style.fontSize=styles.fontSize,node.style.fontFamily=styles.fontFamily,node.style.fontWeight=styles.fontWeight,node.style.fontStyle=styles.fontStyle,node.style.letterSpacing=styles.letterSpacing,node.style.textTransform=styles.textTransform},isIE=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),generateId=function(){return isIE?"_"+Math.random().toString(36).substr(2,12):void 0},AutosizeInput=function(_Component){function AutosizeInput(props){_classCallCheck(this,AutosizeInput);var _this=_possibleConstructorReturn(this,(AutosizeInput.__proto__||Object.getPrototypeOf(AutosizeInput)).call(this,props));return _this.inputRef=function(el){_this.input=el,"function"==typeof _this.props.inputRef&&_this.props.inputRef(el)},_this.placeHolderSizerRef=function(el){_this.placeHolderSizer=el},_this.sizerRef=function(el){_this.sizer=el},_this.state={inputWidth:props.minWidth,inputId:props.id||generateId()},_this}return _inherits(AutosizeInput,_Component),_createClass(AutosizeInput,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"UNSAFE_componentWillReceiveProps",value:function(nextProps){var id=nextProps.id;id!==this.props.id&&this.setState({inputId:id||generateId()})}},{key:"componentDidUpdate",value:function(prevProps,prevState){prevState.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var inputStyles=this.input&&window.getComputedStyle(this.input);inputStyles&&(copyStyles(inputStyles,this.sizer),this.placeHolderSizer&&copyStyles(inputStyles,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var newInputWidth=void 0;newInputWidth=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2;newInputWidth+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0,newInputWidth<this.props.minWidth&&(newInputWidth=this.props.minWidth),newInputWidth!==this.state.inputWidth&&this.setState({inputWidth:newInputWidth})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var injectStyles=this.props.injectStyles;return isIE&&injectStyles?_react2.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var sizerValue=[this.props.defaultValue,this.props.value,""].reduce(function(previousValue,currentValue){return null!==previousValue&&void 0!==previousValue?previousValue:currentValue}),wrapperStyle=_extends({},this.props.style);wrapperStyle.display||(wrapperStyle.display="inline-block");var inputStyle=_extends({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),inputProps=_objectWithoutProperties(this.props,[]);return cleanInputProps(inputProps),inputProps.className=this.props.inputClassName,inputProps.id=this.state.inputId,inputProps.style=inputStyle,_react2.default.createElement("div",{className:this.props.className,style:wrapperStyle},this.renderStyles(),_react2.default.createElement("input",_extends({},inputProps,{ref:this.inputRef})),_react2.default.createElement("div",{ref:this.sizerRef,style:sizerStyle},sizerValue),this.props.placeholder?_react2.default.createElement("div",{ref:this.placeHolderSizerRef,style:sizerStyle},this.props.placeholder):null)}}]),AutosizeInput}(_react.Component);AutosizeInput.propTypes={className:_propTypes2.default.string,defaultValue:_propTypes2.default.any,extraWidth:_propTypes2.default.oneOfType([_propTypes2.default.number,_propTypes2.default.string]),id:_propTypes2.default.string,injectStyles:_propTypes2.default.bool,inputClassName:_propTypes2.default.string,inputRef:_propTypes2.default.func,inputStyle:_propTypes2.default.object,minWidth:_propTypes2.default.oneOfType([_propTypes2.default.number,_propTypes2.default.string]),onAutosize:_propTypes2.default.func,onChange:_propTypes2.default.func,placeholder:_propTypes2.default.string,placeholderIsMinWidth:_propTypes2.default.bool,style:_propTypes2.default.object,value:_propTypes2.default.any},AutosizeInput.defaultProps={minWidth:1,injectStyles:!0},exports.default=AutosizeInput},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(process){function preventTouchMove(e){e.preventDefault()}function allowTouchMove(e){e.stopPropagation()}function preventInertiaScroll(){var top=this.scrollTop,totalScroll=this.scrollHeight,currentScroll=top+this.offsetHeight;0===top?this.scrollTop=1:currentScroll===totalScroll&&(this.scrollTop=top-1)}function isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints}__webpack_require__.d(__webpack_exports__,"a",function(){return Select});var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__=__webpack_require__(14),__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__=__webpack_require__(15),__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_toConsumableArray__=__webpack_require__(36),__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectSpread__=__webpack_require__(30),__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__=__webpack_require__(16),__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__=__webpack_require__(17),__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__=__webpack_require__(18),__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__=__webpack_require__(20),__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__=__webpack_require__(21),__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__=__webpack_require__(8),__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__=__webpack_require__(7),__WEBPACK_IMPORTED_MODULE_11_react__=__webpack_require__(3),__WEBPACK_IMPORTED_MODULE_11_react___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_react__),__WEBPACK_IMPORTED_MODULE_12_memoize_one__=__webpack_require__(37),__WEBPACK_IMPORTED_MODULE_13__emotion_core__=__webpack_require__(31),__WEBPACK_IMPORTED_MODULE_14_react_dom__=__webpack_require__(11),__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__=(__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_react_dom__),__webpack_require__(32)),__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__=__webpack_require__(41),__WEBPACK_IMPORTED_MODULE_17__emotion_css__=__webpack_require__(9),diacritics=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],stripDiacritics=function(str){for(var i=0;i<diacritics.length;i++)str=str.replace(diacritics[i].letters,diacritics[i].base);return str},trimString=function(str){return str.replace(/^\s+|\s+$/g,"")},defaultStringify=function(option){return"".concat(option.label," ").concat(option.value)},_ref="production"===process.env.NODE_ENV?{name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"}:{name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVFNIiwiZmlsZSI6IkExMXlUZXh0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8gQGZsb3dcbi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgdHlwZSBFbGVtZW50Q29uZmlnIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vY29yZSc7XG5cbi8vIEFzc2lzdGl2ZSB0ZXh0IHRvIGRlc2NyaWJlIHZpc3VhbCBlbGVtZW50cy4gSGlkZGVuIGZvciBzaWdodGVkIHVzZXJzLlxuY29uc3QgQTExeVRleHQgPSAocHJvcHM6IEVsZW1lbnRDb25maWc8J3NwYW4nPikgPT4gKFxuICAgIDxzcGFuXG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdhMTF5VGV4dCcsXG4gICAgICAgIHpJbmRleDogOTk5OSxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICBjbGlwOiAncmVjdCgxcHgsIDFweCwgMXB4LCAxcHgpJyxcbiAgICAgICAgaGVpZ2h0OiAxLFxuICAgICAgICB3aWR0aDogMSxcbiAgICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICAgIG92ZXJmbG93OiAnaGlkZGVuJyxcbiAgICAgICAgcGFkZGluZzogMCxcbiAgICAgICAgd2hpdGVTcGFjZTogJ25vd3JhcCcsXG4gICAgICB9fVxuICAgICAgey4uLnByb3BzfVxuICAgIC8+XG4pO1xuXG5leHBvcnQgZGVmYXVsdCBBMTF5VGV4dDtcbiJdfQ== */"},A11yText=function(props){return Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__.c)("span",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:_ref},props))},DummyInput=function(_Component){function DummyInput(){return Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__.a)(this,DummyInput),Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__.a)(DummyInput).apply(this,arguments))}return Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__.a)(DummyInput,_Component),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__.a)(DummyInput,[{key:"render",value:function(){var _this$props=this.props,innerRef=(_this$props.in,_this$props.out,_this$props.onExited,_this$props.appear,_this$props.enter,_this$props.exit,_this$props.innerRef),props=(_this$props.emotion,Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__.a)(_this$props,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__.c)("input",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({ref:innerRef},props,{css:Object(__WEBPACK_IMPORTED_MODULE_17__emotion_css__.a)({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBWVEiLCJmaWxlIjoiRHVtbXlJbnB1dC5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vIEBmbG93XG4vKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IENvbXBvbmVudCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuXG5leHBvcnQgZGVmYXVsdCBjbGFzcyBEdW1teUlucHV0IGV4dGVuZHMgQ29tcG9uZW50PGFueT4ge1xuICByZW5kZXIgKCkge1xuICAgIGNvbnN0IHsgaW46IGluUHJvcCwgb3V0LCBvbkV4aXRlZCwgYXBwZWFyLCBlbnRlciwgZXhpdCwgaW5uZXJSZWYsIGVtb3Rpb24sIC4uLnByb3BzIH0gPSB0aGlzLnByb3BzO1xuICAgIHJldHVybihcbiAgICAgIDxpbnB1dFxuICAgICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgICB7Li4ucHJvcHN9XG4gICAgICAgIGNzcz17e1xuICAgICAgICAgIGxhYmVsOiAnZHVtbXlJbnB1dCcsXG4gICAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICAgIGJvcmRlcjogMCxcbiAgICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgICAgcGFkZGluZzogMCxcbiAgICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBkZXNrdG9wXG4gICAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgICAgbGVmdDogLTEwMCxcbiAgICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICAgIHRyYW5zZm9ybTogJ3NjYWxlKDApJyxcbiAgICAgICAgfX1cbiAgICAgIC8+XG4gICAgKTtcbiAgfVxufVxuIl19 */")}))}}]),DummyInput}(__WEBPACK_IMPORTED_MODULE_11_react__.Component),NodeResolver=function(_Component){function NodeResolver(){return Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__.a)(this,NodeResolver),Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__.a)(NodeResolver).apply(this,arguments))}return Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__.a)(NodeResolver,_Component),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__.a)(NodeResolver,[{key:"componentDidMount",value:function(){this.props.innerRef(Object(__WEBPACK_IMPORTED_MODULE_14_react_dom__.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),NodeResolver}(__WEBPACK_IMPORTED_MODULE_11_react__.Component),STYLE_KEYS=["boxSizing","height","overflow","paddingRight","position"],LOCK_STYLES={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"},canUseDOM=!(!window.document||!window.document.createElement),activeScrollLocks=0,ScrollLock=function(_Component){function ScrollLock(){var _getPrototypeOf2,_this;Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__.a)(this,ScrollLock);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return _this=Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,(_getPrototypeOf2=Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__.a)(ScrollLock)).call.apply(_getPrototypeOf2,[this].concat(args))),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"originalStyles",{}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"listenerOptions",{capture:!1,passive:!1}),_this}return Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__.a)(ScrollLock,_Component),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__.a)(ScrollLock,[{key:"componentDidMount",value:function(){var _this2=this;if(canUseDOM){var _this$props=this.props,accountForScrollbars=_this$props.accountForScrollbars,touchScrollTarget=_this$props.touchScrollTarget,target=document.body,targetStyle=target&&target.style;if(accountForScrollbars&&STYLE_KEYS.forEach(function(key){var val=targetStyle&&targetStyle[key];_this2.originalStyles[key]=val}),accountForScrollbars&&activeScrollLocks<1){var currentPadding=parseInt(this.originalStyles.paddingRight,10)||0,clientWidth=document.body?document.body.clientWidth:0,adjustedPadding=window.innerWidth-clientWidth+currentPadding||0;Object.keys(LOCK_STYLES).forEach(function(key){var val=LOCK_STYLES[key];targetStyle&&(targetStyle[key]=val)}),targetStyle&&(targetStyle.paddingRight="".concat(adjustedPadding,"px"))}target&&isTouchDevice()&&(target.addEventListener("touchmove",preventTouchMove,this.listenerOptions),touchScrollTarget&&(touchScrollTarget.addEventListener("touchstart",preventInertiaScroll,this.listenerOptions),touchScrollTarget.addEventListener("touchmove",allowTouchMove,this.listenerOptions))),activeScrollLocks+=1}}},{key:"componentWillUnmount",value:function(){var _this3=this;if(canUseDOM){var _this$props2=this.props,accountForScrollbars=_this$props2.accountForScrollbars,touchScrollTarget=_this$props2.touchScrollTarget,target=document.body,targetStyle=target&&target.style;activeScrollLocks=Math.max(activeScrollLocks-1,0),accountForScrollbars&&activeScrollLocks<1&&STYLE_KEYS.forEach(function(key){var val=_this3.originalStyles[key];targetStyle&&(targetStyle[key]=val)}),target&&isTouchDevice()&&(target.removeEventListener("touchmove",preventTouchMove,this.listenerOptions),touchScrollTarget&&(touchScrollTarget.removeEventListener("touchstart",preventInertiaScroll,this.listenerOptions),touchScrollTarget.removeEventListener("touchmove",allowTouchMove,this.listenerOptions)))}}},{key:"render",value:function(){return null}}]),ScrollLock}(__WEBPACK_IMPORTED_MODULE_11_react__.Component);Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(ScrollLock,"defaultProps",{accountForScrollbars:!0});var _ref$1="production"===process.env.NODE_ENV?{name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"}:{name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbEJsb2NrLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTZEVSIsImZpbGUiOiJTY3JvbGxCbG9jay5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vIEBmbG93XG4vKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IFB1cmVDb21wb25lbnQsIHR5cGUgRWxlbWVudCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuaW1wb3J0IE5vZGVSZXNvbHZlciBmcm9tICcuL05vZGVSZXNvbHZlcic7XG5pbXBvcnQgU2Nyb2xsTG9jayBmcm9tICcuL1Njcm9sbExvY2svaW5kZXgnO1xuXG50eXBlIFByb3BzID0ge1xuICBjaGlsZHJlbjogRWxlbWVudDwqPixcbiAgaXNFbmFibGVkOiBib29sZWFuLFxufTtcbnR5cGUgU3RhdGUgPSB7XG4gIHRvdWNoU2Nyb2xsVGFyZ2V0OiBIVE1MRWxlbWVudCB8IG51bGwsXG59O1xuXG4vLyBOT1RFOlxuLy8gV2Ugc2hvdWxkbid0IG5lZWQgdGhpcyBhZnRlciB1cGRhdGluZyB0byBSZWFjdCB2MTYuMy4wLCB3aGljaCBpbnRyb2R1Y2VzOlxuLy8gLSBjcmVhdGVSZWYoKSBodHRwczovL3JlYWN0anMub3JnL2RvY3MvcmVhY3QtYXBpLmh0bWwjcmVhY3RjcmVhdGVyZWZcbi8vIC0gZm9yd2FyZFJlZigpIGh0dHBzOi8vcmVhY3Rqcy5vcmcvZG9jcy9yZWFjdC1hcGkuaHRtbCNyZWFjdGZvcndhcmRyZWZcblxuZXhwb3J0IGRlZmF1bHQgY2xhc3MgU2Nyb2xsQmxvY2sgZXh0ZW5kcyBQdXJlQ29tcG9uZW50PFByb3BzLCBTdGF0ZT4ge1xuICBzdGF0ZSA9IHsgdG91Y2hTY3JvbGxUYXJnZXQ6IG51bGwgfTtcblxuICAvLyBtdXN0IGJlIGluIHN0YXRlIHRvIHRyaWdnZXIgYSByZS1yZW5kZXIsIG9ubHkgcnVucyBvbmNlIHBlciBpbnN0YW5jZVxuICBnZXRTY3JvbGxUYXJnZXQgPSAocmVmOiBIVE1MRWxlbWVudCkgPT4ge1xuICAgIGlmIChyZWYgPT09IHRoaXMuc3RhdGUudG91Y2hTY3JvbGxUYXJnZXQpIHJldHVybjtcbiAgICB0aGlzLnNldFN0YXRlKHsgdG91Y2hTY3JvbGxUYXJnZXQ6IHJlZiB9KTtcbiAgfTtcblxuICAvLyB0aGlzIHdpbGwgY2xvc2UgdGhlIG1lbnUgd2hlbiBhIHVzZXIgY2xpY2tzIG91dHNpZGVcbiAgYmx1clNlbGVjdElucHV0ID0gKCkgPT4ge1xuICAgIGlmIChkb2N1bWVudC5hY3RpdmVFbGVtZW50KSB7XG4gICAgICBkb2N1bWVudC5hY3RpdmVFbGVtZW50LmJsdXIoKTtcbiAgICB9XG4gIH07XG5cbiAgcmVuZGVyKCkge1xuICAgIGNvbnN0IHsgY2hpbGRyZW4sIGlzRW5hYmxlZCB9ID0gdGhpcy5wcm9wcztcbiAgICBjb25zdCB7IHRvdWNoU2Nyb2xsVGFyZ2V0IH0gPSB0aGlzLnN0YXRlO1xuXG4gICAgLy8gYmFpbCBlYXJseSBpZiBub3QgZW5hYmxlZFxuICAgIGlmICghaXNFbmFibGVkKSByZXR1cm4gY2hpbGRyZW47XG5cbiAgICAvKlxuICAgICAqIERpdlxuICAgICAqIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAqIGJsb2NrcyBzY3JvbGxpbmcgb24gbm9uLWJvZHkgZWxlbWVudHMgYmVoaW5kIHRoZSBtZW51XG5cbiAgICAgKiBOb2RlUmVzb2x2ZXJcbiAgICAgKiAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS1cbiAgICAgKiB3ZSBuZWVkIGEgcmVmZXJlbmNlIHRvIHRoZSBzY3JvbGxhYmxlIGVsZW1lbnQgdG8gXCJ1bmxvY2tcIiBzY3JvbGwgb25cbiAgICAgKiBtb2JpbGUgZGV2aWNlc1xuXG4gICAgICogU2Nyb2xsTG9ja1xuICAgICAqIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAqIGFjdHVhbGx5IGRvZXMgdGhlIHNjcm9sbCBsb2NraW5nXG4gICAgICovXG4gICAgcmV0dXJuIChcbiAgICAgIDxkaXY+XG4gICAgICAgIDxkaXZcbiAgICAgICAgICBvbkNsaWNrPXt0aGlzLmJsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgICA8Tm9kZVJlc29sdmVyIGlubmVyUmVmPXt0aGlzLmdldFNjcm9sbFRhcmdldH0+e2NoaWxkcmVufTwvTm9kZVJlc29sdmVyPlxuICAgICAgICB7dG91Y2hTY3JvbGxUYXJnZXQgPyAoXG4gICAgICAgICAgPFNjcm9sbExvY2sgdG91Y2hTY3JvbGxUYXJnZXQ9e3RvdWNoU2Nyb2xsVGFyZ2V0fSAvPlxuICAgICAgICApIDogbnVsbH1cbiAgICAgIDwvZGl2PlxuICAgICk7XG4gIH1cbn1cbiJdfQ== */"},ScrollBlock=function(_PureComponent){function ScrollBlock(){var _getPrototypeOf2,_this;Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__.a)(this,ScrollBlock);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return _this=Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,(_getPrototypeOf2=Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__.a)(ScrollBlock)).call.apply(_getPrototypeOf2,[this].concat(args))),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"state",{touchScrollTarget:null}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getScrollTarget",function(ref){ref!==_this.state.touchScrollTarget&&_this.setState({touchScrollTarget:ref})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"blurSelectInput",function(){document.activeElement&&document.activeElement.blur()}),_this}return Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__.a)(ScrollBlock,_PureComponent),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__.a)(ScrollBlock,[{key:"render",value:function(){var _this$props=this.props,children=_this$props.children,isEnabled=_this$props.isEnabled,touchScrollTarget=this.state.touchScrollTarget;return isEnabled?Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__.c)("div",null,Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__.c)("div",{onClick:this.blurSelectInput,css:_ref$1}),Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__.c)(NodeResolver,{innerRef:this.getScrollTarget},children),touchScrollTarget?Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__.c)(ScrollLock,{touchScrollTarget:touchScrollTarget}):null):children}}]),ScrollBlock}(__WEBPACK_IMPORTED_MODULE_11_react__.PureComponent),ScrollCaptor=function(_Component){function ScrollCaptor(){var _getPrototypeOf2,_this;Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__.a)(this,ScrollCaptor);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return _this=Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,(_getPrototypeOf2=Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__.a)(ScrollCaptor)).call.apply(_getPrototypeOf2,[this].concat(args))),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"isBottom",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"isTop",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"scrollTarget",void 0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"touchStart",void 0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"cancelScroll",function(event){event.preventDefault(),event.stopPropagation()}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"handleEventDelta",function(event,delta){var _this$props=_this.props,onBottomArrive=_this$props.onBottomArrive,onBottomLeave=_this$props.onBottomLeave,onTopArrive=_this$props.onTopArrive,onTopLeave=_this$props.onTopLeave,_this$scrollTarget=_this.scrollTarget,scrollTop=_this$scrollTarget.scrollTop,scrollHeight=_this$scrollTarget.scrollHeight,clientHeight=_this$scrollTarget.clientHeight,target=_this.scrollTarget,isDeltaPositive=delta>0,availableScroll=scrollHeight-clientHeight-scrollTop,shouldCancelScroll=!1;availableScroll>delta&&_this.isBottom&&(onBottomLeave&&onBottomLeave(event),_this.isBottom=!1),isDeltaPositive&&_this.isTop&&(onTopLeave&&onTopLeave(event),_this.isTop=!1),isDeltaPositive&&delta>availableScroll?(onBottomArrive&&!_this.isBottom&&onBottomArrive(event),target.scrollTop=scrollHeight,shouldCancelScroll=!0,_this.isBottom=!0):!isDeltaPositive&&-delta>scrollTop&&(onTopArrive&&!_this.isTop&&onTopArrive(event),target.scrollTop=0,shouldCancelScroll=!0,_this.isTop=!0),shouldCancelScroll&&_this.cancelScroll(event)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onWheel",function(event){_this.handleEventDelta(event,event.deltaY)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onTouchStart",function(event){_this.touchStart=event.changedTouches[0].clientY}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onTouchMove",function(event){var deltaY=_this.touchStart-event.changedTouches[0].clientY;_this.handleEventDelta(event,deltaY)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getScrollTarget",function(ref){_this.scrollTarget=ref}),_this}return Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__.a)(ScrollCaptor,_Component),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__.a)(ScrollCaptor,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(el){el&&("function"==typeof el.addEventListener&&el.addEventListener("wheel",this.onWheel,!1),"function"==typeof el.addEventListener&&el.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof el.addEventListener&&el.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(el){"function"==typeof el.removeEventListener&&el.removeEventListener("wheel",this.onWheel,!1),"function"==typeof el.removeEventListener&&el.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof el.removeEventListener&&el.removeEventListener("touchmove",this.onTouchMove,!1)}},{key:"render",value:function(){return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(NodeResolver,{innerRef:this.getScrollTarget},this.props.children)}}]),ScrollCaptor}(__WEBPACK_IMPORTED_MODULE_11_react__.Component),ScrollCaptorSwitch=function(_Component2){function ScrollCaptorSwitch(){return Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__.a)(this,ScrollCaptorSwitch),Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__.a)(ScrollCaptorSwitch).apply(this,arguments))}return Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__.a)(ScrollCaptorSwitch,_Component2),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__.a)(ScrollCaptorSwitch,[{key:"render",value:function(){var _this$props2=this.props,isEnabled=_this$props2.isEnabled,props=Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__.a)(_this$props2,["isEnabled"]);return isEnabled?__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ScrollCaptor,props):this.props.children}}]),ScrollCaptorSwitch}(__WEBPACK_IMPORTED_MODULE_11_react__.Component);Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(ScrollCaptorSwitch,"defaultProps",{isEnabled:!0});var instructionsAriaMessage=function(event){var context=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},isSearchable=context.isSearchable,isMulti=context.isMulti,label=context.label,isDisabled=context.isDisabled;switch(event){case"menu":return"Use Up and Down to choose options".concat(isDisabled?"":", press Enter to select the currently focused option",", press Escape to exit the menu, press Tab to select the option and exit the menu.");case"input":return"".concat(label||"Select"," is focused ").concat(isSearchable?",type to refine list":"",", press Down to open the menu, ").concat(isMulti?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},valueEventAriaMessage=function(event,context){var value=context.value,isDisabled=context.isDisabled;if(value)switch(event){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(value,", deselected.");case"select-option":return isDisabled?"option ".concat(value," is disabled. Select another option."):"option ".concat(value,", selected.")}},valueFocusAriaMessage=function(_ref){var focusedValue=_ref.focusedValue,getOptionLabel=_ref.getOptionLabel,selectValue=_ref.selectValue;return"value ".concat(getOptionLabel(focusedValue)," focused, ").concat(selectValue.indexOf(focusedValue)+1," of ").concat(selectValue.length,".")},optionFocusAriaMessage=function(_ref2){var focusedOption=_ref2.focusedOption,getOptionLabel=_ref2.getOptionLabel,options=_ref2.options;return"option ".concat(getOptionLabel(focusedOption)," focused").concat(focusedOption.isDisabled?" disabled":"",", ").concat(options.indexOf(focusedOption)+1," of ").concat(options.length,".")},resultsAriaMessage=function(_ref3){var inputValue=_ref3.inputValue;return"".concat(_ref3.screenReaderMessage).concat(inputValue?" for search term "+inputValue:"",".")},formatGroupLabel=function(group){return group.label},getOptionLabel=function(option){return option.label},getOptionValue=function(option){return option.value},isOptionDisabled=function(option){return!!option.isDisabled},defaultStyles={clearIndicator:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.d,container:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.b,control:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.c,dropdownIndicator:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.e,group:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.h,groupHeading:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.f,indicatorsContainer:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.j,indicatorSeparator:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.g,input:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.i,loadingIndicator:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.m,loadingMessage:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.k,menu:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.n,menuList:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.l,menuPortal:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.o,multiValue:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.p,multiValueLabel:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.q,multiValueRemove:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.r,noOptionsMessage:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.s,option:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.t,placeholder:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.u,singleValue:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.v,valueContainer:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.w},colors={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing={baseUnit:4,controlHeight:38,menuGutter:8},defaultTheme={borderRadius:4,colors:colors,spacing:spacing},defaultProps={backspaceRemovesValue:!0,blurInputOnSelect:Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.i)(),captureMenuScroll:!Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.i)(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(config){return function(option,rawInput){var _ignoreCase$ignoreAcc=Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectSpread__.a)({ignoreCase:!0,ignoreAccents:!0,stringify:defaultStringify,trim:!0,matchFrom:"any"},config),ignoreCase=_ignoreCase$ignoreAcc.ignoreCase,ignoreAccents=_ignoreCase$ignoreAcc.ignoreAccents,stringify=_ignoreCase$ignoreAcc.stringify,trim=_ignoreCase$ignoreAcc.trim,matchFrom=_ignoreCase$ignoreAcc.matchFrom,input=trim?trimString(rawInput):rawInput,candidate=trim?trimString(stringify(option)):stringify(option);return ignoreCase&&(input=input.toLowerCase(),candidate=candidate.toLowerCase()),ignoreAccents&&(input=stripDiacritics(input),candidate=stripDiacritics(candidate)),"start"===matchFrom?candidate.substr(0,input.length)===input:candidate.indexOf(input)>-1}}(),formatGroupLabel:formatGroupLabel,getOptionLabel:getOptionLabel,getOptionValue:getOptionValue,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:isOptionDisabled,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.d)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(_ref){var count=_ref.count;return"".concat(count," result").concat(1!==count?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},instanceId=1,Select=function(_Component){function Select(_props){var _this;Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__.a)(this,Select),_this=Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__.a)(Select).call(this,_props)),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"state",{ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"blockOptionHover",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"isComposing",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"clearFocusValueOnUpdate",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"commonProps",void 0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"components",void 0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"hasGroups",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"initialTouchX",0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"initialTouchY",0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"inputIsHiddenAfterUpdate",void 0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"instancePrefix",""),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"openAfterFocus",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"scrollToFocusedOptionOnUpdate",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"userIsDragging",void 0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"controlRef",null),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getControlRef",function(ref){_this.controlRef=ref}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"focusedOptionRef",null),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getFocusedOptionRef",function(ref){_this.focusedOptionRef=ref}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"menuListRef",null),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getMenuListRef",function(ref){_this.menuListRef=ref}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"inputRef",null),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getInputRef",function(ref){_this.inputRef=ref}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"cacheComponents",function(components){_this.components=Object(__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.x)({components:components})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"focus",_this.focusInput),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"blur",_this.blurInput),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onChange",function(newValue,actionMeta){var _this$props=_this.props,onChange=_this$props.onChange,name=_this$props.name;onChange(newValue,Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectSpread__.a)({},actionMeta,{name:name}))}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"setValue",function(newValue){var action=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",option=arguments.length>2?arguments[2]:void 0,_this$props2=_this.props,closeMenuOnSelect=_this$props2.closeMenuOnSelect,isMulti=_this$props2.isMulti;_this.onInputChange("",{action:"set-value"}),closeMenuOnSelect&&(_this.inputIsHiddenAfterUpdate=!isMulti,_this.onMenuClose()),_this.clearFocusValueOnUpdate=!0,_this.onChange(newValue,{action:action,option:option})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"selectOption",function(newValue){var _this$props3=_this.props,blurInputOnSelect=_this$props3.blurInputOnSelect,isMulti=_this$props3.isMulti,selectValue=_this.state.selectValue;if(isMulti)if(_this.isOptionSelected(newValue,selectValue)){var candidate=_this.getOptionValue(newValue);_this.setValue(selectValue.filter(function(i){return _this.getOptionValue(i)!==candidate}),"deselect-option",newValue),_this.announceAriaLiveSelection({event:"deselect-option",context:{value:_this.getOptionLabel(newValue)}})}else _this.isOptionDisabled(newValue,selectValue)?_this.announceAriaLiveSelection({event:"select-option",context:{value:_this.getOptionLabel(newValue),isDisabled:!0}}):(_this.setValue([].concat(Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_toConsumableArray__.a)(selectValue),[newValue]),"select-option",newValue),_this.announceAriaLiveSelection({event:"select-option",context:{value:_this.getOptionLabel(newValue)}}));else _this.isOptionDisabled(newValue,selectValue)?_this.announceAriaLiveSelection({event:"select-option",context:{value:_this.getOptionLabel(newValue),isDisabled:!0}}):(_this.setValue(newValue,"select-option"),_this.announceAriaLiveSelection({event:"select-option",context:{value:_this.getOptionLabel(newValue)}}));blurInputOnSelect&&_this.blurInput()}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"removeValue",function(removedValue){var selectValue=_this.state.selectValue,candidate=_this.getOptionValue(removedValue),newValue=selectValue.filter(function(i){return _this.getOptionValue(i)!==candidate});_this.onChange(newValue.length?newValue:null,{action:"remove-value",removedValue:removedValue}),_this.announceAriaLiveSelection({event:"remove-value",context:{value:removedValue?_this.getOptionLabel(removedValue):""}}),_this.focusInput()}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"clearValue",function(){var isMulti=_this.props.isMulti;_this.onChange(isMulti?[]:null,{action:"clear"})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"popValue",function(){var selectValue=_this.state.selectValue,lastSelectedValue=selectValue[selectValue.length-1],newValue=selectValue.slice(0,selectValue.length-1);_this.announceAriaLiveSelection({event:"pop-value",context:{value:lastSelectedValue?_this.getOptionLabel(lastSelectedValue):""}}),_this.onChange(newValue.length?newValue:null,{action:"pop-value",removedValue:lastSelectedValue})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getOptionLabel",function(data){return _this.props.getOptionLabel(data)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getOptionValue",function(data){return _this.props.getOptionValue(data)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getStyles",function(key,props){var base=defaultStyles[key](props);base.boxSizing="border-box";var custom=_this.props.styles[key];return custom?custom(base,props):base}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getElementId",function(element){return"".concat(_this.instancePrefix,"-").concat(element)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getActiveDescendentId",function(){var menuIsOpen=_this.props.menuIsOpen,_this$state=_this.state,menuOptions=_this$state.menuOptions,focusedOption=_this$state.focusedOption;if(focusedOption&&menuIsOpen){var index=menuOptions.focusable.indexOf(focusedOption),option=menuOptions.render[index];return option&&option.key}}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"announceAriaLiveSelection",function(_ref2){var event=_ref2.event,context=_ref2.context;_this.setState({ariaLiveSelection:valueEventAriaMessage(event,context)})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"announceAriaLiveContext",function(_ref3){var event=_ref3.event,context=_ref3.context;_this.setState({ariaLiveContext:instructionsAriaMessage(event,Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectSpread__.a)({},context,{label:_this.props["aria-label"]}))})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onMenuMouseDown",function(event){0===event.button&&(event.stopPropagation(),event.preventDefault(),_this.focusInput())}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onMenuMouseMove",function(event){_this.blockOptionHover=!1}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onControlMouseDown",function(event){var openMenuOnClick=_this.props.openMenuOnClick;_this.state.isFocused?_this.props.menuIsOpen?"INPUT"!==event.target.tagName&&_this.onMenuClose():openMenuOnClick&&_this.openMenu("first"):(openMenuOnClick&&(_this.openAfterFocus=!0),_this.focusInput()),"INPUT"!==event.target.tagName&&event.preventDefault()}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onDropdownIndicatorMouseDown",function(event){if(!(event&&"mousedown"===event.type&&0!==event.button||_this.props.isDisabled)){var _this$props4=_this.props,isMulti=_this$props4.isMulti,menuIsOpen=_this$props4.menuIsOpen;_this.focusInput(),menuIsOpen?(_this.inputIsHiddenAfterUpdate=!isMulti,_this.onMenuClose()):_this.openMenu("first"),event.preventDefault(),event.stopPropagation()}}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onClearIndicatorMouseDown",function(event){event&&"mousedown"===event.type&&0!==event.button||(_this.clearValue(),event.stopPropagation(),_this.openAfterFocus=!1,"touchend"===event.type?_this.focusInput():setTimeout(function(){return _this.focusInput()}))}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onScroll",function(event){"boolean"==typeof _this.props.closeMenuOnScroll?event.target instanceof HTMLElement&&Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.e)(event.target)&&_this.props.onMenuClose():"function"==typeof _this.props.closeMenuOnScroll&&_this.props.closeMenuOnScroll(event)&&_this.props.onMenuClose()}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onCompositionStart",function(){_this.isComposing=!0}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onCompositionEnd",function(){_this.isComposing=!1}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onTouchStart",function(_ref4){var touches=_ref4.touches,touch=touches.item(0);touch&&(_this.initialTouchX=touch.clientX,_this.initialTouchY=touch.clientY,_this.userIsDragging=!1)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onTouchMove",function(_ref5){var touches=_ref5.touches,touch=touches.item(0);if(touch){var deltaX=Math.abs(touch.clientX-_this.initialTouchX),deltaY=Math.abs(touch.clientY-_this.initialTouchY);_this.userIsDragging=deltaX>5||deltaY>5}}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onTouchEnd",function(event){_this.userIsDragging||(_this.controlRef&&!_this.controlRef.contains(event.target)&&_this.menuListRef&&!_this.menuListRef.contains(event.target)&&_this.blurInput(),_this.initialTouchX=0,_this.initialTouchY=0)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onControlTouchEnd",function(event){_this.userIsDragging||_this.onControlMouseDown(event)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onClearIndicatorTouchEnd",function(event){_this.userIsDragging||_this.onClearIndicatorMouseDown(event)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onDropdownIndicatorTouchEnd",function(event){_this.userIsDragging||_this.onDropdownIndicatorMouseDown(event)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"handleInputChange",function(event){var inputValue=event.currentTarget.value;_this.inputIsHiddenAfterUpdate=!1,_this.onInputChange(inputValue,{action:"input-change"}),_this.onMenuOpen()}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onInputFocus",function(event){var _this$props5=_this.props,isSearchable=_this$props5.isSearchable,isMulti=_this$props5.isMulti;_this.props.onFocus&&_this.props.onFocus(event),_this.inputIsHiddenAfterUpdate=!1,_this.announceAriaLiveContext({event:"input",context:{isSearchable:isSearchable,isMulti:isMulti}}),_this.setState({isFocused:!0}),(_this.openAfterFocus||_this.props.openMenuOnFocus)&&_this.openMenu("first"),_this.openAfterFocus=!1}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onInputBlur",function(event){if(_this.menuListRef&&_this.menuListRef.contains(document.activeElement))return void _this.inputRef.focus();_this.props.onBlur&&_this.props.onBlur(event),_this.onInputChange("",{action:"input-blur"}),_this.onMenuClose(),_this.setState({focusedValue:null,isFocused:!1})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onOptionHover",function(focusedOption){_this.blockOptionHover||_this.state.focusedOption===focusedOption||_this.setState({focusedOption:focusedOption})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"shouldHideSelectedOptions",function(){var _this$props6=_this.props,hideSelectedOptions=_this$props6.hideSelectedOptions,isMulti=_this$props6.isMulti;return void 0===hideSelectedOptions?isMulti:hideSelectedOptions}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onKeyDown",function(event){var _this$props7=_this.props,isMulti=_this$props7.isMulti,backspaceRemovesValue=_this$props7.backspaceRemovesValue,escapeClearsValue=_this$props7.escapeClearsValue,inputValue=_this$props7.inputValue,isClearable=_this$props7.isClearable,isDisabled=_this$props7.isDisabled,menuIsOpen=_this$props7.menuIsOpen,onKeyDown=_this$props7.onKeyDown,tabSelectsValue=_this$props7.tabSelectsValue,openMenuOnFocus=_this$props7.openMenuOnFocus,_this$state2=_this.state,focusedOption=_this$state2.focusedOption,focusedValue=_this$state2.focusedValue,selectValue=_this$state2.selectValue;if(!(isDisabled||"function"==typeof onKeyDown&&(onKeyDown(event),event.defaultPrevented))){switch(_this.blockOptionHover=!0,event.key){case"ArrowLeft":if(!isMulti||inputValue)return;_this.focusValue("previous");break;case"ArrowRight":if(!isMulti||inputValue)return;_this.focusValue("next");break;case"Delete":case"Backspace":if(inputValue)return;if(focusedValue)_this.removeValue(focusedValue);else{if(!backspaceRemovesValue)return;isMulti?_this.popValue():isClearable&&_this.clearValue()}break;case"Tab":if(_this.isComposing)return;if(event.shiftKey||!menuIsOpen||!tabSelectsValue||!focusedOption||openMenuOnFocus&&_this.isOptionSelected(focusedOption,selectValue))return;_this.selectOption(focusedOption);break;case"Enter":if(229===event.keyCode)break;if(menuIsOpen){if(!focusedOption)return;if(_this.isComposing)return;_this.selectOption(focusedOption);break}return;case"Escape":menuIsOpen?(_this.inputIsHiddenAfterUpdate=!1,_this.onInputChange("",{action:"menu-close"}),_this.onMenuClose()):isClearable&&escapeClearsValue&&_this.clearValue();break;case" ":if(inputValue)return;if(!menuIsOpen){_this.openMenu("first");break}if(!focusedOption)return;_this.selectOption(focusedOption);break;case"ArrowUp":menuIsOpen?_this.focusOption("up"):_this.openMenu("last");break;case"ArrowDown":menuIsOpen?_this.focusOption("down"):_this.openMenu("first");break;case"PageUp":if(!menuIsOpen)return;_this.focusOption("pageup");break;case"PageDown":if(!menuIsOpen)return;_this.focusOption("pagedown");break;case"Home":if(!menuIsOpen)return;_this.focusOption("first");break;case"End":if(!menuIsOpen)return;_this.focusOption("last");break;default:return}event.preventDefault()}});var value=_props.value;_this.cacheComponents=Object(__WEBPACK_IMPORTED_MODULE_12_memoize_one__.a)(_this.cacheComponents,__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.y).bind(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this))),_this.cacheComponents(_props.components),_this.instancePrefix="react-select-"+(_this.props.instanceId||++instanceId);var _selectValue=Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.f)(value),_menuOptions=_props.menuIsOpen?_this.buildMenuOptions(_props,_selectValue):{render:[],focusable:[]};return _this.state.menuOptions=_menuOptions,_this.state.selectValue=_selectValue,_this}return Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__.a)(Select,_Component),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__.a)(Select,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"UNSAFE_componentWillReceiveProps",value:function(nextProps){var _this$props8=this.props,options=_this$props8.options,value=_this$props8.value,menuIsOpen=_this$props8.menuIsOpen,inputValue=_this$props8.inputValue;if(this.cacheComponents(nextProps.components),nextProps.value!==value||nextProps.options!==options||nextProps.menuIsOpen!==menuIsOpen||nextProps.inputValue!==inputValue){var selectValue=Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.f)(nextProps.value),menuOptions=nextProps.menuIsOpen?this.buildMenuOptions(nextProps,selectValue):{render:[],focusable:[]},focusedValue=this.getNextFocusedValue(selectValue),focusedOption=this.getNextFocusedOption(menuOptions.focusable);this.setState({menuOptions:menuOptions,selectValue:selectValue,focusedOption:focusedOption,focusedValue:focusedValue})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(prevProps){var _this$props9=this.props,isDisabled=_this$props9.isDisabled,menuIsOpen=_this$props9.menuIsOpen,isFocused=this.state.isFocused;(isFocused&&!isDisabled&&prevProps.isDisabled||isFocused&&menuIsOpen&&!prevProps.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.h)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var _this$props10=this.props,isSearchable=_this$props10.isSearchable,isMulti=_this$props10.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:isSearchable,isMulti:isMulti}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(newValue,actionMeta){this.props.onInputChange(newValue,actionMeta)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(focusOption){var _this$state3=this.state,menuOptions=_this$state3.menuOptions,selectValue=_this$state3.selectValue,isFocused=_this$state3.isFocused,isMulti=this.props.isMulti,openAtIndex="first"===focusOption?0:menuOptions.focusable.length-1;if(!isMulti){var selectedIndex=menuOptions.focusable.indexOf(selectValue[0]);selectedIndex>-1&&(openAtIndex=selectedIndex)}this.scrollToFocusedOptionOnUpdate=!(isFocused&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.onMenuOpen(),this.setState({focusedValue:null,focusedOption:menuOptions.focusable[openAtIndex]}),this.announceAriaLiveContext({event:"menu"})}},{key:"focusValue",value:function(direction){var _this$props11=this.props,isMulti=_this$props11.isMulti,isSearchable=_this$props11.isSearchable,_this$state4=this.state,selectValue=_this$state4.selectValue,focusedValue=_this$state4.focusedValue;if(isMulti){this.setState({focusedOption:null});var focusedIndex=selectValue.indexOf(focusedValue);focusedValue||(focusedIndex=-1,this.announceAriaLiveContext({event:"value"}));var lastIndex=selectValue.length-1,nextFocus=-1;if(selectValue.length){switch(direction){case"previous":nextFocus=0===focusedIndex?0:-1===focusedIndex?lastIndex:focusedIndex-1;break;case"next":focusedIndex>-1&&focusedIndex<lastIndex&&(nextFocus=focusedIndex+1)}-1===nextFocus&&this.announceAriaLiveContext({event:"input",context:{isSearchable:isSearchable,isMulti:isMulti}}),this.setState({inputIsHidden:-1!==nextFocus,focusedValue:selectValue[nextFocus]})}}}},{key:"focusOption",value:function(){var direction=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",pageSize=this.props.pageSize,_this$state5=this.state,focusedOption=_this$state5.focusedOption,menuOptions=_this$state5.menuOptions,options=menuOptions.focusable;if(options.length){var nextFocus=0,focusedIndex=options.indexOf(focusedOption);focusedOption||(focusedIndex=-1,this.announceAriaLiveContext({event:"menu"})),"up"===direction?nextFocus=focusedIndex>0?focusedIndex-1:options.length-1:"down"===direction?nextFocus=(focusedIndex+1)%options.length:"pageup"===direction?(nextFocus=focusedIndex-pageSize)<0&&(nextFocus=0):"pagedown"===direction?(nextFocus=focusedIndex+pageSize)>options.length-1&&(nextFocus=options.length-1):"last"===direction&&(nextFocus=options.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:options[nextFocus],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:isOptionDisabled(options[nextFocus])}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(defaultTheme):Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectSpread__.a)({},defaultTheme,this.props.theme):defaultTheme}},{key:"getCommonProps",value:function(){var clearValue=this.clearValue,getStyles=this.getStyles,setValue=this.setValue,selectOption=this.selectOption,props=this.props,classNamePrefix=props.classNamePrefix,isMulti=props.isMulti,isRtl=props.isRtl,options=props.options,selectValue=this.state.selectValue,hasValue=this.hasValue(),getValue=function(){return selectValue};return{cx:__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.j.bind(null,classNamePrefix),clearValue:clearValue,getStyles:getStyles,getValue:getValue,hasValue:hasValue,isMulti:isMulti,isRtl:isRtl,options:options,selectOption:selectOption,setValue:setValue,selectProps:props,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(nextSelectValue){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var _this$state6=this.state,focusedValue=_this$state6.focusedValue,lastSelectValue=_this$state6.selectValue,lastFocusedIndex=lastSelectValue.indexOf(focusedValue);if(lastFocusedIndex>-1){if(nextSelectValue.indexOf(focusedValue)>-1)return focusedValue;if(lastFocusedIndex<nextSelectValue.length)return nextSelectValue[lastFocusedIndex]}return null}},{key:"getNextFocusedOption",value:function(options){var lastFocusedOption=this.state.focusedOption;return lastFocusedOption&&options.indexOf(lastFocusedOption)>-1?lastFocusedOption:options[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var _this$props12=this.props,isClearable=_this$props12.isClearable,isMulti=_this$props12.isMulti;return void 0===isClearable?isMulti:isClearable}},{key:"isOptionDisabled",value:function(option,selectValue){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(option,selectValue)}},{key:"isOptionSelected",value:function(option,selectValue){var _this2=this;if(selectValue.indexOf(option)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(option,selectValue);var candidate=this.getOptionValue(option);return selectValue.some(function(i){return _this2.getOptionValue(i)===candidate})}},{key:"filterOption",value:function(option,inputValue){return!this.props.filterOption||this.props.filterOption(option,inputValue)}},{key:"formatOptionLabel",value:function(data,context){if("function"==typeof this.props.formatOptionLabel){var inputValue=this.props.inputValue,selectValue=this.state.selectValue;return this.props.formatOptionLabel(data,{context:context,inputValue:inputValue,selectValue:selectValue})}return this.getOptionLabel(data)}},{key:"formatGroupLabel",value:function(data){return this.props.formatGroupLabel(data)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"buildMenuOptions",value:function(props,selectValue){var _this3=this,_props$inputValue=props.inputValue,inputValue=void 0===_props$inputValue?"":_props$inputValue,options=props.options,toOption=function(option,id){var isDisabled=_this3.isOptionDisabled(option,selectValue),isSelected=_this3.isOptionSelected(option,selectValue),label=_this3.getOptionLabel(option),value=_this3.getOptionValue(option);if(!(_this3.shouldHideSelectedOptions()&&isSelected||!_this3.filterOption({label:label,value:value,data:option},inputValue))){var onHover=isDisabled?void 0:function(){return _this3.onOptionHover(option)},onSelect=isDisabled?void 0:function(){return _this3.selectOption(option)},optionId="".concat(_this3.getElementId("option"),"-").concat(id);return{innerProps:{id:optionId,onClick:onSelect,onMouseMove:onHover,onMouseOver:onHover,tabIndex:-1},data:option,isDisabled:isDisabled,isSelected:isSelected,key:optionId,label:label,type:"option",value:value}}};return options.reduce(function(acc,item,itemIndex){if(item.options){_this3.hasGroups||(_this3.hasGroups=!0);var items=item.options,children=items.map(function(child,i){var option=toOption(child,"".concat(itemIndex,"-").concat(i));return option&&acc.focusable.push(child),option}).filter(Boolean);if(children.length){var groupId="".concat(_this3.getElementId("group"),"-").concat(itemIndex);acc.render.push({type:"group",key:groupId,data:item,options:children})}}else{var option=toOption(item,"".concat(itemIndex));option&&(acc.render.push(option),acc.focusable.push(item))}return acc},{render:[],focusable:[]})}},{key:"constructAriaLiveMessage",value:function(){var _this$state7=this.state,ariaLiveContext=_this$state7.ariaLiveContext,selectValue=_this$state7.selectValue,focusedValue=_this$state7.focusedValue,focusedOption=_this$state7.focusedOption,_this$props13=this.props,options=_this$props13.options,menuIsOpen=_this$props13.menuIsOpen,inputValue=_this$props13.inputValue,screenReaderStatus=_this$props13.screenReaderStatus,focusedValueMsg=focusedValue?valueFocusAriaMessage({focusedValue:focusedValue,getOptionLabel:this.getOptionLabel,selectValue:selectValue}):"",focusedOptionMsg=focusedOption&&menuIsOpen?optionFocusAriaMessage({focusedOption:focusedOption,getOptionLabel:this.getOptionLabel,options:options}):"",resultsMsg=resultsAriaMessage({inputValue:inputValue,screenReaderMessage:screenReaderStatus({count:this.countOptions()})});return"".concat(focusedValueMsg," ").concat(focusedOptionMsg," ").concat(resultsMsg," ").concat(ariaLiveContext)}},{key:"renderInput",value:function(){var _this$props14=this.props,isDisabled=_this$props14.isDisabled,isSearchable=_this$props14.isSearchable,inputId=_this$props14.inputId,inputValue=_this$props14.inputValue,tabIndex=_this$props14.tabIndex,Input=this.components.Input,inputIsHidden=this.state.inputIsHidden,id=inputId||this.getElementId("input");if(!isSearchable)return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(DummyInput,{id:id,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.k,onFocus:this.onInputFocus,readOnly:!0,disabled:isDisabled,tabIndex:tabIndex,value:""});var ariaAttributes={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]},_this$commonProps=this.commonProps,cx=_this$commonProps.cx,theme=_this$commonProps.theme,selectProps=_this$commonProps.selectProps;return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Input,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:cx,getStyles:this.getStyles,id:id,innerRef:this.getInputRef,isDisabled:isDisabled,isHidden:inputIsHidden,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:selectProps,spellCheck:"false",tabIndex:tabIndex,theme:theme,type:"text",value:inputValue},ariaAttributes))}},{key:"renderPlaceholderOrValue",value:function(){var _this4=this,_this$components=this.components,MultiValue=_this$components.MultiValue,MultiValueContainer=_this$components.MultiValueContainer,MultiValueLabel=_this$components.MultiValueLabel,MultiValueRemove=_this$components.MultiValueRemove,SingleValue=_this$components.SingleValue,Placeholder=_this$components.Placeholder,commonProps=this.commonProps,_this$props15=this.props,controlShouldRenderValue=_this$props15.controlShouldRenderValue,isDisabled=_this$props15.isDisabled,isMulti=_this$props15.isMulti,inputValue=_this$props15.inputValue,placeholder=_this$props15.placeholder,_this$state8=this.state,selectValue=_this$state8.selectValue,focusedValue=_this$state8.focusedValue,isFocused=_this$state8.isFocused;if(!this.hasValue()||!controlShouldRenderValue)return inputValue?null:__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Placeholder,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{key:"placeholder",isDisabled:isDisabled,isFocused:isFocused}),placeholder);if(isMulti){return selectValue.map(function(opt,index){var isOptionFocused=opt===focusedValue;return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(MultiValue,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{components:{Container:MultiValueContainer,Label:MultiValueLabel,Remove:MultiValueRemove},isFocused:isOptionFocused,isDisabled:isDisabled,key:_this4.getOptionValue(opt),index:index,removeProps:{onClick:function(){return _this4.removeValue(opt)},onTouchEnd:function(){return _this4.removeValue(opt)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:opt}),_this4.formatOptionLabel(opt,"value"))})}if(inputValue)return null;var singleValue=selectValue[0];return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(SingleValue,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{data:singleValue,isDisabled:isDisabled}),this.formatOptionLabel(singleValue,"value"))}},{key:"renderClearIndicator",value:function(){var ClearIndicator=this.components.ClearIndicator,commonProps=this.commonProps,_this$props16=this.props,isDisabled=_this$props16.isDisabled,isLoading=_this$props16.isLoading,isFocused=this.state.isFocused;if(!this.isClearable()||!ClearIndicator||isDisabled||!this.hasValue()||isLoading)return null;var innerProps={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ClearIndicator,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{innerProps:innerProps,isFocused:isFocused}))}},{key:"renderLoadingIndicator",value:function(){var LoadingIndicator=this.components.LoadingIndicator,commonProps=this.commonProps,_this$props17=this.props,isDisabled=_this$props17.isDisabled,isLoading=_this$props17.isLoading,isFocused=this.state.isFocused;if(!LoadingIndicator||!isLoading)return null;var innerProps={"aria-hidden":"true"};return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(LoadingIndicator,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{innerProps:innerProps,isDisabled:isDisabled,isFocused:isFocused}))}},{key:"renderIndicatorSeparator",value:function(){var _this$components2=this.components,DropdownIndicator=_this$components2.DropdownIndicator,IndicatorSeparator=_this$components2.IndicatorSeparator;if(!DropdownIndicator||!IndicatorSeparator)return null;var commonProps=this.commonProps,isDisabled=this.props.isDisabled,isFocused=this.state.isFocused;return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(IndicatorSeparator,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{isDisabled:isDisabled,isFocused:isFocused}))}},{key:"renderDropdownIndicator",value:function(){var DropdownIndicator=this.components.DropdownIndicator;if(!DropdownIndicator)return null;var commonProps=this.commonProps,isDisabled=this.props.isDisabled,isFocused=this.state.isFocused,innerProps={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(DropdownIndicator,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{innerProps:innerProps,isDisabled:isDisabled,isFocused:isFocused}))}},{key:"renderMenu",value:function(){var _this5=this,_this$components3=this.components,Group=_this$components3.Group,GroupHeading=_this$components3.GroupHeading,Menu=_this$components3.Menu,MenuList=_this$components3.MenuList,MenuPortal=_this$components3.MenuPortal,LoadingMessage=_this$components3.LoadingMessage,NoOptionsMessage=_this$components3.NoOptionsMessage,Option=_this$components3.Option,commonProps=this.commonProps,_this$state9=this.state,focusedOption=_this$state9.focusedOption,menuOptions=_this$state9.menuOptions,_this$props18=this.props,captureMenuScroll=_this$props18.captureMenuScroll,inputValue=_this$props18.inputValue,isLoading=_this$props18.isLoading,loadingMessage=_this$props18.loadingMessage,minMenuHeight=_this$props18.minMenuHeight,maxMenuHeight=_this$props18.maxMenuHeight,menuIsOpen=_this$props18.menuIsOpen,menuPlacement=_this$props18.menuPlacement,menuPosition=_this$props18.menuPosition,menuPortalTarget=_this$props18.menuPortalTarget,menuShouldBlockScroll=_this$props18.menuShouldBlockScroll,menuShouldScrollIntoView=_this$props18.menuShouldScrollIntoView,noOptionsMessage=_this$props18.noOptionsMessage,onMenuScrollToTop=_this$props18.onMenuScrollToTop,onMenuScrollToBottom=_this$props18.onMenuScrollToBottom;if(!menuIsOpen)return null;var menuUI,render=function(props){var isFocused=focusedOption===props.data;return props.innerRef=isFocused?_this5.getFocusedOptionRef:void 0,__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Option,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,props,{isFocused:isFocused}),_this5.formatOptionLabel(props.data,"menu"))};if(this.hasOptions())menuUI=menuOptions.render.map(function(item){if("group"===item.type){var group=(item.type,Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__.a)(item,["type"])),headingId="".concat(item.key,"-heading");return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Group,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,group,{Heading:GroupHeading,headingProps:{id:headingId},label:_this5.formatGroupLabel(item.data)}),item.options.map(function(option){return render(option)}))}if("option"===item.type)return render(item)});else if(isLoading){var message=loadingMessage({inputValue:inputValue});if(null===message)return null;menuUI=__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(LoadingMessage,commonProps,message)}else{var _message=noOptionsMessage({inputValue:inputValue});if(null===_message)return null;menuUI=__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(NoOptionsMessage,commonProps,_message)}var menuPlacementProps={minMenuHeight:minMenuHeight,maxMenuHeight:maxMenuHeight,menuPlacement:menuPlacement,menuPosition:menuPosition,menuShouldScrollIntoView:menuShouldScrollIntoView},menuElement=__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.a,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,menuPlacementProps),function(_ref6){var ref=_ref6.ref,_ref6$placerProps=_ref6.placerProps,placement=_ref6$placerProps.placement,maxHeight=_ref6$placerProps.maxHeight;return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Menu,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,menuPlacementProps,{innerRef:ref,innerProps:{onMouseDown:_this5.onMenuMouseDown,onMouseMove:_this5.onMenuMouseMove},isLoading:isLoading,placement:placement}),__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ScrollCaptorSwitch,{isEnabled:captureMenuScroll,onTopArrive:onMenuScrollToTop,onBottomArrive:onMenuScrollToBottom},__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ScrollBlock,{isEnabled:menuShouldBlockScroll},__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(MenuList,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{innerRef:_this5.getMenuListRef,isLoading:isLoading,maxHeight:maxHeight}),menuUI))))});return menuPortalTarget||"fixed"===menuPosition?__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(MenuPortal,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{appendTo:menuPortalTarget,controlElement:this.controlRef,menuPlacement:menuPlacement,menuPosition:menuPosition}),menuElement):menuElement}},{key:"renderFormField",value:function(){var _this6=this,_this$props19=this.props,delimiter=_this$props19.delimiter,isDisabled=_this$props19.isDisabled,isMulti=_this$props19.isMulti,name=_this$props19.name,selectValue=this.state.selectValue;if(name&&!isDisabled){if(isMulti){if(delimiter){var value=selectValue.map(function(opt){return _this6.getOptionValue(opt)}).join(delimiter);return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input",{name:name,type:"hidden",value:value})}var input=selectValue.length>0?selectValue.map(function(opt,i){return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input",{key:"i-".concat(i),name:name,type:"hidden",value:_this6.getOptionValue(opt)})}):__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input",{name:name,type:"hidden"});return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("div",null,input)}var _value=selectValue[0]?this.getOptionValue(selectValue[0]):"";return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input",{name:name,type:"hidden",value:_value})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(A11yText,{"aria-live":"polite"},__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("p",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("p",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var _this$components4=this.components,Control=_this$components4.Control,IndicatorsContainer=_this$components4.IndicatorsContainer,SelectContainer=_this$components4.SelectContainer,ValueContainer=_this$components4.ValueContainer,_this$props20=this.props,className=_this$props20.className,id=_this$props20.id,isDisabled=_this$props20.isDisabled,menuIsOpen=_this$props20.menuIsOpen,isFocused=this.state.isFocused,commonProps=this.commonProps=this.getCommonProps();return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(SelectContainer,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{className:className,innerProps:{id:id,onKeyDown:this.onKeyDown},isDisabled:isDisabled,isFocused:isFocused}),this.renderLiveRegion(),__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Control,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:isDisabled,isFocused:isFocused,menuIsOpen:menuIsOpen}),__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ValueContainer,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{isDisabled:isDisabled}),this.renderPlaceholderOrValue(),this.renderInput()),__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(IndicatorsContainer,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{isDisabled:isDisabled}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),Select}(__WEBPACK_IMPORTED_MODULE_11_react__.Component);Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Select,"defaultProps",defaultProps)}).call(__webpack_exports__,__webpack_require__(0))},function(module,__webpack_exports__,__webpack_require__){"use strict";Object.defineProperty(__webpack_exports__,"__esModule",{value:!0});var __WEBPACK_IMPORTED_MODULE_0__App__=__webpack_require__(46);!function waitForEl(selector,callback){document.getElementById("analogwp-templates")?callback():setTimeout(function(){window.requestAnimationFrame(function(){waitForEl(selector,callback)})},1e3)}(document.getElementById("analogwp-templates"),function(){if(window.AGWP&&window.AGWP.wp_version&&window.AGWP.wp_version>="6.2"){(0,wp.element.createRoot)(document.getElementById("analogwp-templates")).render(React.createElement(__WEBPACK_IMPORTED_MODULE_0__App__.a,null))}else{(0,wp.element.render)(React.createElement(__WEBPACK_IMPORTED_MODULE_0__App__.a,null),document.getElementById("analogwp-templates"))}})},function(module,__webpack_exports__,__webpack_require__){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(iter){if(Symbol.iterator in Object(iter)||"[object Arguments]"===Object.prototype.toString.call(iter))return Array.from(iter)}function _arrayWithoutHoles(arr){if(Array.isArray(arr)){for(var i=0,arr2=new Array(arr.length);i<arr.length;i++)arr2[i]=arr[i];return arr2}}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}var gen=fn.apply(self,args);_next(void 0)})}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _possibleConstructorReturn(self,call){return!call||"object"!==_typeof(call)&&"function"!=typeof call?_assertThisInitialized(self):call}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _templateObject(){var data=_taggedTemplateLiteral(["\n\tmargin: 0 0 0 -20px;\n\t-webkit-font-smoothing: antialiased;\n\t-moz-osx-font-smoothing: grayscale;\n\tfont-size: 13px;\n\tposition: relative;\n\n\t--ang-accent: rgb(0, 112, 167);\n\n\t.ang-notices {\n\t\tposition: fixed;\n\t\tright: 0;\n\t\ttop: 75px;\n\t\tpadding: 8px;\n\t\tz-index: 100000;\n\t}\n\n\t.components-form-toggle.is-checked .components-form-toggle__track {\n\t\tbackground-color: var(--ang-primary);\n\t}\n\n\t.components-form-toggle .components-form-toggle__input:focus + .components-form-toggle__track {\n\t\tbox-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ang-primary);\n\t}\n\n\t.ang-button {\n\t\tfont-size: 14.22px;\n\t\tfont-weight: bold;\n\t\ttext-align: center;\n\t\tborder-radius: 4px;\n\t\tcolor: #fff;\n\t\tbackground: ",";\n\t\tpadding: 12px 24px;\n\t\tdisplay: inline-flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tborder: none;\n\t\toutline: 0;\n\t\tcursor: pointer;\n\t\ttransition: all 200ms ease-in;\n\t\tmin-width: 100px;\n\t\ttext-decoration: none;\n\t\tbox-sizing: border-box;\n\t\theight: auto;\n\t\ta {\n\t\t\tcolor: #fff !important;\n\t\t\ttext-decoration: none;\n\t\t}\n\n\t\t&.secondary {\n\t\t\tbackground: #000222;\n\t\t\tborder-radius: 0;\n\t\t\ttext-transform: uppercase;\n\t\t\tfont-size: 12px;\n\t\t}\n\n\t\t&:disabled {\n\t\t\tcursor: not-allowed;\n\t\t\topacity: 0.4;\n\t\t\tfilter: grayscale(1);\n\t\t}\n\t}\n\n\ta {\n\t\toutline: 0;\n\t\tbox-shadow: none;\n\t}\n\n\t.button-plain {\n\t\tpadding: 0;\n\t\tmargin: 0;\n\t\tborder: none;\n\t\tborder-radius: 0;\n\t\tbox-shadow: none;\n\t\tcursor: pointer;\n\t\t-webkit-appearance: none;\n\t\tappearance: none;\n\t\toutline: 0;\n\t\tbackground: transparent;\n\t\tfont-weight: bold;\n\t\tcolor: #060606;\n\t\tfont-size: 14.22px;\n\t}\n\n\n\tbutton {\n\t\tfont-family: inherit;\n\t}\n\n\t.button-accent {\n\t\tbackground: var(--ang-accent);\n\t\tborder: 0;\n\t\tborder-radius: 0;\n\t\ttext-transform: uppercase;\n\t\tfont-size: 12px;\n\t\tletter-spacing: 1px;\n\t\tfont-weight: bold;\n\t\tbox-shadow: none;\n\t\ttext-shadow: none;\n\t\tcolor: #fff;\n\t\tpadding: 15px 24px;\n\t\theight: auto;\n\t\t&:focus,\n\t\t&:active {\n\t\t\tborder: none !important;\n\t\t\tbackground: rgb(255, 120, 101, 0.9) !important;\n\t\t\tbox-shadow: none !important;\n\t\t\tcolor: #fff !important;\n\t\t}\n\t\t&:hover {\n\t\t\tcolor: #fff;\n\t\t\tbackground: rgb(255, 120, 101, 0.9);\n\t\t\tborder: none;\n\t\t}\n\t}\n\n\t.components-external-link {\n\t\tfont-weight: 500;\n\t}\n\n\t.ang-link {\n\t\tcolor: var(--ang-accent);\n\t\ttext-transform: uppercase;\n\t\tborder-bottom: 1px solid var(--ang-accent);\n\t\tfont-size: 12.64px;\n\t\tletter-spacing: 1px;\n\t\ttext-decoration: none;\n\t\tfont-weight: bold;\n\t}\n\n\t.preview-active .templates-list {\n\t\tvisibility: hidden;\n\t}\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var __WEBPACK_IMPORTED_MODULE_0_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_1__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_2__api__=__webpack_require__(4),__WEBPACK_IMPORTED_MODULE_3__contexts_ThemeContext__=__webpack_require__(12),__WEBPACK_IMPORTED_MODULE_4__Header__=__webpack_require__(60),__WEBPACK_IMPORTED_MODULE_5__Notifications__=__webpack_require__(6),__WEBPACK_IMPORTED_MODULE_6__utils__=__webpack_require__(13),_wp=wp,apiFetch=_wp.apiFetch,Analog=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.div(_templateObject(),function(props){return props.theme.accent}),App=function(_React$Component){function App(){var _this;_classCallCheck(this,App),_this=_possibleConstructorReturn(this,_getPrototypeOf(App).apply(this,arguments));var initialContainerTab=AGWP.is_settings_page?"styleKits":"blocks";return _this.state={templates:[],kits:[],styleKits:[],blocks:[],count:null,isOpen:!1,syncing:!1,favorites:AGWP.favorites,blockFavorites:AGWP.blockFavorites,showing_favorites:!1,archive:[],blockArchive:[],showFree:!0,showPro:!0,group:!0,activeKit:!1,installedKits:AGWP.installed_kits||{},tab:AGWP.isContainer?initialContainerTab:"blocks",blocksTab:AGWP.isContainer?"all-patterns":"all-blocks",hasPro:!1,settings:{ang_sync_colors:!0},blocksSearchInput:"",itemFilteredWithSearchTerm:function(foundItems,searchInput){var searchTags=[];return foundItems.filter(function(single){return single.tags&&(searchTags=single.tags.filter(function(tag){return tag.toLowerCase().includes(searchInput)})),single.title.toLowerCase().includes(searchInput)||searchTags.length>=1})}},_this.refreshAPI=_this.refreshAPI.bind(_assertThisInitialized(_this)),_this.toggleFavorites=_this.toggleFavorites.bind(_assertThisInitialized(_this)),_this.handleSearch=_this.handleSearch.bind(_assertThisInitialized(_this)),_this.handleSort=_this.handleSort.bind(_assertThisInitialized(_this)),_this.handleFilter=_this.handleFilter.bind(_assertThisInitialized(_this)),_this.switchTabs=_this.switchTabs.bind(_assertThisInitialized(_this)),_this}return _inherits(App,_React$Component),_createClass(App,[{key:"switchTabs",value:function(){var hash=location.hash;["#templates","#styleKits","#blocks"].indexOf(hash)>-1&&AGWP.is_settings_page&&this.setState({tab:hash.substr(1),templates:this.state.archive,blocks:this.state.blockArchive,showing_favorites:!1})}},{key:"componentDidMount",value:function(){function componentDidMount(){return _componentDidMount.apply(this,arguments)}var _componentDidMount=_asyncToGenerator(regeneratorRuntime.mark(function _callee(){var templates,library,_this2=this;return regeneratorRuntime.wrap(function(_context){for(;;)switch(_context.prev=_context.next){case 0:return window.addEventListener("hashchange",this.switchTabs,!1),window.addEventListener("DOMContentLoaded",this.switchTabs,!1),"false"===window.localStorage.getItem("analog::show-free")&&this.setState({showFree:!1}),"false"===window.localStorage.getItem("analog::show-pro")&&this.setState({showPro:!1}),"false"===window.localStorage.getItem("analog::group-kit")&&this.setState({group:!1}),this.setState({syncing:!0}),_context.next=8,Object(__WEBPACK_IMPORTED_MODULE_2__api__.i)();case 8:templates=_context.sent,library=templates.library,this.setState({templates:library.templates,kits:library.template_kits,archive:library.templates,blockArchive:library.blocks,count:library.templates.length,timestamp:templates.timestamp,hasPro:Object(__WEBPACK_IMPORTED_MODULE_6__utils__.d)(library.templates),styleKits:library.stylekits,blocks:library.blocks,syncing:!1}),this.handleSort("latest","templates"),this.handleSort("latest","blocks"),document.addEventListener("modal-close",function(){_this2.setState({isOpen:!1,showing_favorites:!1,templates:_this2.state.archive})}),Object(__WEBPACK_IMPORTED_MODULE_2__api__.b)().then(function(settings){return _this2.setState({settings:settings})});case 15:case"end":return _context.stop()}},_callee,this)}));return componentDidMount}()},{key:"handleFilter",value:function(type){var library=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"templates",templates=_toConsumableArray(this.state.archive),blocks=_toConsumableArray(this.state.blockArchive);if("blocks"!==library){if("all"===type)return void this.setState({templates:this.state.archive});var filtered=templates.filter(function(template){return template.type===type});this.setState({templates:filtered})}else{if("all"===type)return void this.setState({blocks:this.state.blockArchive});var _filtered=blocks.filter(function(block){return block.tags[0]===type});this.setState({blocks:_filtered})}}},{key:"handleSort",value:function(value){var library=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"templates";this.setState({showing_favorites:!1});var sortData=this.state[library];if("popular"===value){var sorted=sortData.sort(function(a,b){if("popularityIndex"in a){if(parseInt(a.popularityIndex)<parseInt(b.popularityIndex))return 1;if(parseInt(a.popularityIndex)>parseInt(b.popularityIndex))return-1}return 0});this.setState(_defineProperty({},library,sorted))}if("latest"===value){var _sorted=sortData.sort(function(a,b){if("published"in a){if(parseInt(Object(__WEBPACK_IMPORTED_MODULE_6__utils__.c)(a.published))<parseInt(Object(__WEBPACK_IMPORTED_MODULE_6__utils__.c)(b.published)))return 1;if(parseInt(Object(__WEBPACK_IMPORTED_MODULE_6__utils__.c)(a.published))>parseInt(Object(__WEBPACK_IMPORTED_MODULE_6__utils__.c)(b.published)))return-1}return 0});this.setState(_defineProperty({},library,_sorted))}}},{key:"handleSearch",value:function(value){var library=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"templates",searchData=this.state.blockArchive;"templates"===library&&(searchData=this.state.archive);var filtered=[],searchTags=[];if(value&&(filtered=searchData.filter(function(single){return"patterns"===library&&single.keywords?searchTags=single.keywords.filter(function(keyword){return keyword.toLowerCase().includes(value.toLowerCase())}):single.tags&&(searchTags=single.tags.filter(function(tag){return tag.toLowerCase().includes(value.toLowerCase())})),single.title.toLowerCase().includes(value.toLowerCase())||searchTags.length>=1}),filtered.length>0))return"templates"===library?void this.setState({templates:filtered}):void this.setState({blocks:filtered,blocksSearchInput:value});"templates"===library?this.setState({templates:value?[]:this.state.archive}):this.setState({blocks:value?[]:this.state.blockArchive,blocksSearchInput:""})}},{key:"refreshAPI",value:function(){function refreshAPI(){return _refreshAPI.apply(this,arguments)}var _refreshAPI=_asyncToGenerator(regeneratorRuntime.mark(function _callee2(){var _this3=this;return regeneratorRuntime.wrap(function(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return this.setState({syncing:!0,blocksSearchInput:""}),wp.hooks.doAction("analog.refreshLibrary"),_context2.next=4,apiFetch({path:"/agwp/v1/templates/?force_update=true"}).then(function(data){var library=data.library;_this3.setState({templates:library.templates,archive:library.templates,blockArchive:library.blocks,count:library.templates.length,kits:library.template_kits,timestamp:data.timestamp,styleKits:library.stylekits,blocks:library.blocks,syncing:!1,blocksSearchInput:""})}).catch(function(){_this3.setState({syncing:!1})});case 4:return _context2.abrupt("return",_context2.sent);case 5:case"end":return _context2.stop()}},_callee2,this)}));return refreshAPI}()},{key:"toggleFavorites",value:function(){var _this4=this;this.setState({group:!1}),window.localStorage.setItem("analog::group-block",!1);var filteredTemplates=this.state.archive.filter(function(template){return template.id in _this4.state.favorites}),filteredBlocks=this.state.blockArchive.filter(function(block){return block.id in _this4.state.blockFavorites});this.setState({showing_favorites:!this.state.showing_favorites,templates:this.state.showing_favorites?this.state.archive:filteredTemplates,blocks:this.state.showing_favorites?this.state.blockArchive:filteredBlocks})}},{key:"render",value:function(){var _this5=this;return React.createElement(__WEBPACK_IMPORTED_MODULE_3__contexts_ThemeContext__.c.Provider,{value:{theme:__WEBPACK_IMPORTED_MODULE_3__contexts_ThemeContext__.a}},React.createElement(__WEBPACK_IMPORTED_MODULE_3__contexts_ThemeContext__.c.Consumer,null,function(_ref){var theme=_ref.theme;return React.createElement(Analog,{theme:theme},React.createElement(__WEBPACK_IMPORTED_MODULE_5__Notifications__.b,null,React.createElement(__WEBPACK_IMPORTED_MODULE_1__AnalogContext__.a.Provider,{value:{state:_this5.state,forceRefresh:_this5.refreshAPI,markFavorite:__WEBPACK_IMPORTED_MODULE_2__api__.c,toggleFavorites:_this5.toggleFavorites,handleSearch:_this5.handleSearch,handleSort:_this5.handleSort,handleFilter:_this5.handleFilter,dispatch:function(action){return _this5.setState(action)}}},React.createElement(__WEBPACK_IMPORTED_MODULE_4__Header__.a,null),React.createElement("div",{className:"analogwp-content"},React.createElement("div",{className:"ang-container"},Object(__WEBPACK_IMPORTED_MODULE_6__utils__.b)(_this5.state))))))}))}}]),App}(React.Component);__webpack_exports__.a=App},function(module,exports){module.exports=function(originalModule){if(!originalModule.webpackPolyfill){var module=Object.create(originalModule);module.children||(module.children=[]),Object.defineProperty(module,"loaded",{enumerable:!0,get:function(){return module.l}}),Object.defineProperty(module,"id",{enumerable:!0,get:function(){return module.i}}),Object.defineProperty(module,"exports",{enumerable:!0}),module.webpackPolyfill=1}return module}},function(module,exports,__webpack_require__){!function(e){module.exports=e(null)}(function e(a){"use strict";function He(e,a,s,t,i){for(var f,n,o=0,h=0,u=0,d=0,g=0,A=0,C=0,w=0,m=0,$=0,y=0,O=0,j=0,z=0,R=0,we=0,$e=0,Oe=0,je=0,ze=s.length,Je=ze-1,Re="",Te="",Ue="",Ve="",Xe="",Ye="";R<ze;){if(C=s.charCodeAt(R),R===Je&&h+d+u+o!==0&&(0!==h&&(C=h===Z?I:Z),d=u=o=0,ze++,Je++),h+d+u+o===0){if(R===Je&&(we>0&&(Te=Te.replace(c,"")),Te.trim().length>0)){switch(C){case M:case K:case W:case J:case I:break;default:Te+=s.charAt(R)}C=W}if(1===$e)switch(C){case B:case q:case W:case Y:case X:case D:case E:case U:$e=0;case K:case J:case I:case M:break;default:for($e=0,je=R,g=C,R--,C=W;je<ze;)switch(s.charCodeAt(je++)){case I:case J:case W:++R,C=g,je=ze;break;case V:we>0&&(++R,C=g);case B:je=ze}}switch(C){case B:for(g=(Te=Te.trim()).charCodeAt(0),y=1,je=++R;R<ze;){switch(C=s.charCodeAt(R)){case B:y++;break;case q:y--;break;case Z:switch(A=s.charCodeAt(R+1)){case T:case Z:R=Qe(A,R,Je,s)}break;case G:C++;case D:C++;case Y:case X:for(;R++<Je&&s.charCodeAt(R)!==C;);}if(0===y)break;R++}switch(Ue=s.substring(je,R),g===re&&(g=(Te=Te.replace(r,"").trim()).charCodeAt(0)),g){case L:switch(we>0&&(Te=Te.replace(c,"")),A=Te.charCodeAt(1)){case ue:case ie:case fe:case Q:f=a;break;default:f=xe}if(je=(Ue=He(a,f,Ue,A,i+1)).length,me>0&&0===je&&(je=Te.length),ye>0&&(f=Ie(xe,Te,Oe),n=Pe(We,Ue,f,a,pe,be,je,A,i,t),Te=f.join(""),void 0!==n&&0===(je=(Ue=n.trim()).length)&&(A=0,Ue="")),je>0)switch(A){case fe:Te=Te.replace(x,Me);case ue:case ie:case Q:Ue=Te+"{"+Ue+"}";break;case te:Ue=(Te=Te.replace(b,"$1 $2"+(Be>0?De:"")))+"{"+Ue+"}",Ue=1===Ae||2===Ae&&Le("@"+Ue,3)?"@"+N+Ue+"@"+Ue:"@"+Ue;break;default:Ue=Te+Ue,t===de&&(Ve+=Ue,Ue="")}else Ue="";break;default:Ue=He(a,Ie(a,Te,Oe),Ue,t,i+1)}Xe+=Ue,O=0,$e=0,z=0,we=0,Oe=0,j=0,Te="",Ue="",C=s.charCodeAt(++R);break;case q:case W:if((je=(Te=(we>0?Te.replace(c,""):Te).trim()).length)>1)switch(0===z&&((g=Te.charCodeAt(0))===Q||g>96&&g<123)&&(je=(Te=Te.replace(" ",":")).length),ye>0&&void 0!==(n=Pe(Se,Te,a,e,pe,be,Ve.length,t,i,t))&&0===(je=(Te=n.trim()).length)&&(Te="\0\0"),g=Te.charCodeAt(0),A=Te.charCodeAt(1),g){case re:break;case L:if(A===oe||A===he){Ye+=Te+s.charAt(R);break}default:if(Te.charCodeAt(je-1)===V)break;Ve+=Ke(Te,g,A,Te.charCodeAt(2))}O=0,$e=0,z=0,we=0,Oe=0,Te="",C=s.charCodeAt(++R)}}switch(C){case J:case I:if(h+d+u+o+ve===0)switch($){case E:case X:case Y:case L:case ae:case _:case T:case ee:case Z:case Q:case V:case U:case W:case B:case q:break;default:z>0&&($e=1)}h===Z?h=0:ge+O===0&&t!==te&&Te.length>0&&(we=1,Te+="\0"),ye*qe>0&&Pe(Ne,Te,a,e,pe,be,Ve.length,t,i,t),be=1,pe++;break;case W:case q:if(h+d+u+o===0){be++;break}default:switch(be++,Re=s.charAt(R),C){case K:case M:if(d+o+h===0)switch(w){case U:case V:case K:case M:Re="";break;default:C!==M&&(Re=" ")}break;case re:Re="\\0";break;case ce:Re="\\f";break;case se:Re="\\v";break;case P:d+h+o===0&&ge>0&&(Oe=1,we=1,Re="\f"+Re);break;case 108:if(d+h+o+ke===0&&z>0)switch(R-z){case 2:w===ne&&s.charCodeAt(R-3)===V&&(ke=w);case 8:m===le&&(ke=m)}break;case V:d+h+o===0&&(z=R);break;case U:h+u+d+o===0&&(we=1,Re+="\r");break;case Y:case X:0===h&&(d=d===C?0:0===d?C:d);break;case G:d+h+u===0&&o++;break;case H:d+h+u===0&&o--;break;case E:d+h+o===0&&u--;break;case D:if(d+h+o===0){if(0===O)switch(2*w+3*m){case 533:break;default:y=0,O=1}u++}break;case L:h+u+d+o+z+j===0&&(j=1);break;case T:case Z:if(d+o+u>0)break;switch(h){case 0:switch(2*C+3*s.charCodeAt(R+1)){case 235:h=Z;break;case 220:je=R,h=T}break;case T:C===Z&&w===T&&je+2!==R&&(33===s.charCodeAt(je+2)&&(Ve+=s.substring(je,R+1)),Re="",h=0)}}if(0===h){if(ge+d+o+j===0&&t!==te&&C!==W)switch(C){case U:case ae:case _:case ee:case E:case D:if(0===O){switch(w){case K:case M:case I:case J:Re+="\0";break;default:Re="\0"+Re+(C===U?"":"\0")}we=1}else switch(C){case D:z+7===R&&108===w&&(z=0),O=++y;break;case E:0==(O=--y)&&(we=1,Re+="\0")}break;case K:case M:switch(w){case re:case B:case q:case W:case U:case ce:case K:case M:case I:case J:break;default:0===O&&(we=1,Re+="\0")}}Te+=Re,C!==M&&C!==K&&($=C)}}m=w,w=C,R++}if(je=Ve.length,me>0&&0===je&&0===Xe.length&&0===a[0].length==0&&(t!==ie||1===a.length&&(ge>0?Ee:Ge)===a[0])&&(je=a.join(",").length+2),je>0){if(f=0===ge&&t!==te?function(e){for(var a,r,s=0,t=e.length,i=Array(t);s<t;++s){for(var f=e[s].split(l),n="",o=0,h=0,u=0,d=0,b=f.length;o<b;++o)if(!(0===(h=(r=f[o]).length)&&b>1)){if(u=n.charCodeAt(n.length-1),d=r.charCodeAt(0),a="",0!==o)switch(u){case T:case ae:case _:case ee:case M:case D:break;default:a=" "}switch(d){case P:r=a+Ee;case ae:case _:case ee:case M:case E:case D:break;case G:r=a+r+Ee;break;case V:switch(2*r.charCodeAt(1)+3*r.charCodeAt(2)){case 530:if(Ce>0){r=a+r.substring(8,h-1);break}default:(o<1||f[o-1].length<1)&&(r=a+Ee+r)}break;case U:a="";default:r=h>1&&r.indexOf(":")>0?a+r.replace(v,"$1"+Ee+"$2"):a+r+Ee}n+=r}i[s]=n.replace(c,"").trim()}return i}(a):a,ye>0&&void 0!==(n=Pe(Fe,Ve,f,e,pe,be,je,t,i,t))&&0===(Ve=n).length)return Ye+Ve+Xe;if(Ve=f.join(",")+"{"+Ve+"}",Ae*ke!=0){switch(2!==Ae||Le(Ve,2)||(ke=0),ke){case le:Ve=Ve.replace(k,":"+S+"$1")+Ve;break;case ne:Ve=Ve.replace(p,"::"+N+"input-$1")+Ve.replace(p,"::"+S+"$1")+Ve.replace(p,":"+F+"input-$1")+Ve}ke=0}}return Ye+Ve+Xe}function Ie(e,a,r){var c=a.trim().split(o),s=c,t=c.length,i=e.length;switch(i){case 0:case 1:for(var f=0,n=0===i?"":e[0]+" ";f<t;++f)s[f]=Je(n,s[f],r,i).trim();break;default:f=0;var l=0;for(s=[];f<t;++f)for(var h=0;h<i;++h)s[l++]=Je(e[h]+" ",c[f],r,i).trim()}return s}function Je(e,a,r,c){var s=a,t=s.charCodeAt(0);switch(t<33&&(t=(s=s.trim()).charCodeAt(0)),t){case P:switch(ge+c){case 0:case 1:if(0===e.trim().length)break;default:return s.replace(h,"$1"+e.trim())}break;case V:switch(s.charCodeAt(1)){case 103:if(Ce>0&&ge>0)return s.replace(u,"$1").replace(h,"$1"+Ge);break;default:return e.trim()+s.replace(h,"$1"+e.trim())}default:if(r*ge>0&&s.indexOf("\f")>0)return s.replace(h,(e.charCodeAt(0)===V?"":"$1")+e.trim())}return e+s}function Ke(e,a,r,c){var l,o=0,h=e+";",u=2*a+3*r+4*c;if(944===u)return function(e){var a=e.length,r=e.indexOf(":",9)+1,c=e.substring(0,r).trim(),s=e.substring(r,a-1).trim();switch(e.charCodeAt(9)*Be){case 0:break;case Q:if(110!==e.charCodeAt(10))break;default:for(var t=s.split((s="",f)),i=0,r=0,a=t.length;i<a;r=0,++i){for(var l=t[i],o=l.split(n);l=o[r];){var h=l.charCodeAt(0);if(1===Be&&(h>L&&h<90||h>96&&h<123||h===R||h===Q&&l.charCodeAt(1)!==Q))switch(isNaN(parseFloat(l))+(-1!==l.indexOf("("))){case 1:switch(l){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:l+=De}}o[r++]=l}s+=(0===i?"":",")+o.join(" ")}}return s=c+s+";",1===Ae||2===Ae&&Le(s,1)?N+s+s:s}(h);if(0===Ae||2===Ae&&!Le(h,1))return h;switch(u){case 1015:return 97===h.charCodeAt(10)?N+h+h:h;case 951:return 116===h.charCodeAt(3)?N+h+h:h;case 963:return 110===h.charCodeAt(5)?N+h+h:h;case 1009:if(100!==h.charCodeAt(4))break;case 969:case 942:return N+h+h;case 978:return N+h+S+h+h;case 1019:case 983:return N+h+S+h+F+h+h;case 883:return h.charCodeAt(8)===Q?N+h+h:h.indexOf("image-set(",11)>0?h.replace(z,"$1"+N+"$2")+h:h;case 932:if(h.charCodeAt(4)===Q)switch(h.charCodeAt(5)){case 103:return N+"box-"+h.replace("-grow","")+N+h+F+h.replace("grow","positive")+h;case 115:return N+h+F+h.replace("shrink","negative")+h;case 98:return N+h+F+h.replace("basis","preferred-size")+h}return N+h+F+h+h;case 964:return N+h+F+"flex-"+h+h;case 1023:if(99!==h.charCodeAt(8))break;return l=h.substring(h.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),N+"box-pack"+l+N+h+F+"flex-pack"+l+h;case 1005:return t.test(h)?h.replace(s,":"+N)+h.replace(s,":"+S)+h:h;case 1e3:switch(o=(l=h.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(o)){case 226:l=h.replace(m,"tb");break;case 232:l=h.replace(m,"tb-rl");break;case 220:l=h.replace(m,"lr");break;default:return h}return N+h+F+l+h;case 1017:if(-1===h.indexOf("sticky",9))return h;case 975:switch(o=(h=e).length-10,u=(l=(33===h.charCodeAt(o)?h.substring(0,o):h).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(l.charCodeAt(8)<111)break;case 115:h=h.replace(l,N+l)+";"+h;break;case 207:case 102:h=h.replace(l,N+(u>102?"inline-":"")+"box")+";"+h.replace(l,N+l)+";"+h.replace(l,F+l+"box")+";"+h}return h+";";case 938:if(h.charCodeAt(5)===Q)switch(h.charCodeAt(6)){case 105:return l=h.replace("-items",""),N+h+N+"box-"+l+F+"flex-"+l+h;case 115:return N+h+F+"flex-item-"+h.replace(y,"")+h;default:return N+h+F+"flex-line-pack"+h.replace("align-content","").replace(y,"")+h}break;case 973:case 989:if(h.charCodeAt(3)!==Q||122===h.charCodeAt(4))break;case 931:case 953:if(!0===j.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?Ke(e.replace("stretch","fill-available"),a,r,c).replace(":fill-available",":stretch"):h.replace(l,N+l)+h.replace(l,S+l.replace("fill-",""))+h;break;case 962:if(h=N+h+(102===h.charCodeAt(5)?F+h:"")+h,r+c===211&&105===h.charCodeAt(13)&&h.indexOf("transform",10)>0)return h.substring(0,h.indexOf(";",27)+1).replace(i,"$1"+N+"$2")+h}return h}function Le(e,a){var r=e.indexOf(1===a?":":"{"),c=e.substring(0,3!==a?r:10),s=e.substring(r+1,e.length-1);return Oe(2!==a?c:c.replace(O,"$1"),s,a)}function Me(e,a){var r=Ke(a,a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2));return r!==a+";"?r.replace($," or ($1)").substring(4):"("+a+")"}function Pe(e,a,r,c,s,t,i,f,n,l){for(var o,h=0,u=a;h<ye;++h)switch(o=$e[h].call(Te,e,u,r,c,s,t,i,f,n,l)){case void 0:case!1:case!0:case null:break;default:u=o}if(u!==a)return u}function Qe(e,a,r,c){for(var s=a+1;s<r;++s)switch(c.charCodeAt(s)){case Z:if(e===T&&c.charCodeAt(s-1)===T&&a+2!==s)return s+1;break;case I:if(e===Z)return s+1}return s}function Re(e){for(var a in e){var r=e[a];switch(a){case"keyframe":Be=0|r;break;case"global":Ce=0|r;break;case"cascade":ge=0|r;break;case"compress":we=0|r;break;case"semicolon":ve=0|r;break;case"preserve":me=0|r;break;case"prefix":Oe=null,r?"function"!=typeof r?Ae=1:(Ae=2,Oe=r):Ae=0}}return Re}function Te(a,r){if(void 0!==this&&this.constructor===Te)return e(a);var s=a,t=s.charCodeAt(0);t<33&&(t=(s=s.trim()).charCodeAt(0)),Be>0&&(De=s.replace(d,t===G?"":"-")),t=1,1===ge?Ge=s:Ee=s;var i,f=[Ge];ye>0&&void 0!==(i=Pe(ze,r,f,f,pe,be,0,0,0,0))&&"string"==typeof i&&(r=i);var n=He(xe,f,r,0,0);return ye>0&&void 0!==(i=Pe(je,n,f,f,pe,be,n.length,0,0,0))&&"string"!=typeof(n=i)&&(t=0),De="",Ge="",Ee="",ke=0,pe=1,be=1,we*t==0?n:n.replace(c,"").replace(g,"").replace(A,"$1").replace(C,"$1").replace(w," ")}var r=/^\0+/g,c=/[\0\r\f]/g,s=/: */g,t=/zoo|gra/,i=/([,: ])(transform)/g,f=/,+\s*(?![^(]*[)])/g,n=/ +\s*(?![^(]*[)])/g,l=/ *[\0] */g,o=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,u=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,d=/\W+/g,b=/@(k\w+)\s*(\S*)\s*/,p=/::(place)/g,k=/:(read-only)/g,g=/\s+(?=[{\];=:>])/g,A=/([[}=:>])\s+/g,C=/(\{[^{]+?);(?=\})/g,w=/\s{2,}/g,v=/([^\(])(:+) */g,m=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,$=/([\s\S]*?);/g,y=/-self|flex-/g,O=/[^]*?(:[rp][el]a[\w-]+)[^]*/,j=/stretch|:\s*\w+\-(?:conte|avail)/,z=/([^-])(image-set\()/,N="-webkit-",S="-moz-",F="-ms-",W=59,q=125,B=123,D=40,E=41,G=91,H=93,I=10,J=13,K=9,L=64,M=32,P=38,Q=45,R=95,T=42,U=44,V=58,X=39,Y=34,Z=47,_=62,ee=43,ae=126,re=0,ce=12,se=11,te=107,ie=109,fe=115,ne=112,le=111,oe=105,he=99,ue=100,de=112,be=1,pe=1,ke=0,ge=1,Ae=1,Ce=1,we=0,ve=0,me=0,xe=[],$e=[],ye=0,Oe=null,je=-2,ze=-1,Ne=0,Se=1,Fe=2,We=3,qe=0,Be=1,De="",Ee="",Ge="";return Te.use=function e(a){switch(a){case void 0:case null:ye=$e.length=0;break;default:if("function"==typeof a)$e[ye++]=a;else if("object"==typeof a)for(var r=0,c=a.length;r<c;++r)e(a[r]);else qe=0|!!a}return e},Te.set=Re,void 0!==a&&Re(a),Te})},function(module,exports,__webpack_require__){!function(factory){module.exports=factory()}(function(){"use strict";return function(insertRule){function toSheet(block){if(block)try{insertRule(block+"}")}catch(e){}}return function(context,content,selectors,parents,line,column,length,ns,depth,at){switch(context){case 1:if(0===depth&&64===content.charCodeAt(0))return insertRule(content+";"),"";break;case 2:if(0===ns)return content+"/*|*/";break;case 3:switch(ns){case 102:case 112:return insertRule(selectors[0]+content),"";default:return content+(0===at?"/*|*/":"")}case-2:content.split("/*|*/}").forEach(toSheet)}}}})},function(module,__webpack_exports__,__webpack_require__){"use strict";var unitlessKeys={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};__webpack_exports__.a=unitlessKeys},function(module,exports,__webpack_require__){"use strict";(function(process){"production"===process.env.NODE_ENV?module.exports=__webpack_require__(52):module.exports=__webpack_require__(53)}).call(exports,__webpack_require__(0))},function(module,exports,__webpack_require__){"use strict";function t(a){if("object"==typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof){case k:case n:case h:return a;default:return u}}case r:case q:case d:return u}}}function v(a){return t(a)===m}/** @license React v16.7.0
    1212 * react-is.production.min.js
    1313 *
     
    2525 * LICENSE file in the root directory of this source tree.
    2626 */
    27 "production"!==process.env.NODE_ENV&&function(){function isValidElementType(type){return"string"==typeof type||"function"==typeof type||type===REACT_FRAGMENT_TYPE||type===REACT_CONCURRENT_MODE_TYPE||type===REACT_PROFILER_TYPE||type===REACT_STRICT_MODE_TYPE||type===REACT_SUSPENSE_TYPE||"object"==typeof type&&null!==type&&(type.$$typeof===REACT_LAZY_TYPE||type.$$typeof===REACT_MEMO_TYPE||type.$$typeof===REACT_PROVIDER_TYPE||type.$$typeof===REACT_CONTEXT_TYPE||type.$$typeof===REACT_FORWARD_REF_TYPE)}function typeOf(object){if("object"==typeof object&&null!==object){var $$typeof=object.$$typeof;switch($$typeof){case REACT_ELEMENT_TYPE:var type=object.type;switch(type){case REACT_ASYNC_MODE_TYPE:case REACT_CONCURRENT_MODE_TYPE:case REACT_FRAGMENT_TYPE:case REACT_PROFILER_TYPE:case REACT_STRICT_MODE_TYPE:case REACT_SUSPENSE_TYPE:return type;default:var $$typeofType=type&&type.$$typeof;switch($$typeofType){case REACT_CONTEXT_TYPE:case REACT_FORWARD_REF_TYPE:case REACT_PROVIDER_TYPE:return $$typeofType;default:return $$typeof}}case REACT_LAZY_TYPE:case REACT_MEMO_TYPE:case REACT_PORTAL_TYPE:return $$typeof}}}function isAsyncMode(object){return hasWarnedAboutDeprecatedIsAsyncMode||(hasWarnedAboutDeprecatedIsAsyncMode=!0,lowPriorityWarning$1(!1,"The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),isConcurrentMode(object)||typeOf(object)===REACT_ASYNC_MODE_TYPE}function isConcurrentMode(object){return typeOf(object)===REACT_CONCURRENT_MODE_TYPE}function isContextConsumer(object){return typeOf(object)===REACT_CONTEXT_TYPE}function isContextProvider(object){return typeOf(object)===REACT_PROVIDER_TYPE}function isElement(object){return"object"==typeof object&&null!==object&&object.$$typeof===REACT_ELEMENT_TYPE}function isForwardRef(object){return typeOf(object)===REACT_FORWARD_REF_TYPE}function isFragment(object){return typeOf(object)===REACT_FRAGMENT_TYPE}function isLazy(object){return typeOf(object)===REACT_LAZY_TYPE}function isMemo(object){return typeOf(object)===REACT_MEMO_TYPE}function isPortal(object){return typeOf(object)===REACT_PORTAL_TYPE}function isProfiler(object){return typeOf(object)===REACT_PROFILER_TYPE}function isStrictMode(object){return typeOf(object)===REACT_STRICT_MODE_TYPE}function isSuspense(object){return typeOf(object)===REACT_SUSPENSE_TYPE}Object.defineProperty(exports,"__esModule",{value:!0});var hasSymbol="function"==typeof Symbol&&Symbol.for,REACT_ELEMENT_TYPE=hasSymbol?Symbol.for("react.element"):60103,REACT_PORTAL_TYPE=hasSymbol?Symbol.for("react.portal"):60106,REACT_FRAGMENT_TYPE=hasSymbol?Symbol.for("react.fragment"):60107,REACT_STRICT_MODE_TYPE=hasSymbol?Symbol.for("react.strict_mode"):60108,REACT_PROFILER_TYPE=hasSymbol?Symbol.for("react.profiler"):60114,REACT_PROVIDER_TYPE=hasSymbol?Symbol.for("react.provider"):60109,REACT_CONTEXT_TYPE=hasSymbol?Symbol.for("react.context"):60110,REACT_ASYNC_MODE_TYPE=hasSymbol?Symbol.for("react.async_mode"):60111,REACT_CONCURRENT_MODE_TYPE=hasSymbol?Symbol.for("react.concurrent_mode"):60111,REACT_FORWARD_REF_TYPE=hasSymbol?Symbol.for("react.forward_ref"):60112,REACT_SUSPENSE_TYPE=hasSymbol?Symbol.for("react.suspense"):60113,REACT_MEMO_TYPE=hasSymbol?Symbol.for("react.memo"):60115,REACT_LAZY_TYPE=hasSymbol?Symbol.for("react.lazy"):60116,lowPriorityWarning=function(){},printWarning=function(format){for(var _len=arguments.length,args=Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];var argIndex=0,message="Warning: "+format.replace(/%s/g,function(){return args[argIndex++]});"undefined"!=typeof console&&console.warn(message);try{throw new Error(message)}catch(x){}};lowPriorityWarning=function(condition,format){if(void 0===format)throw new Error("`lowPriorityWarning(condition, format, ...args)` requires a warning message argument");if(!condition){for(var _len2=arguments.length,args=Array(_len2>2?_len2-2:0),_key2=2;_key2<_len2;_key2++)args[_key2-2]=arguments[_key2];printWarning.apply(void 0,[format].concat(args))}};var lowPriorityWarning$1=lowPriorityWarning,AsyncMode=REACT_ASYNC_MODE_TYPE,ConcurrentMode=REACT_CONCURRENT_MODE_TYPE,ContextConsumer=REACT_CONTEXT_TYPE,ContextProvider=REACT_PROVIDER_TYPE,Element=REACT_ELEMENT_TYPE,ForwardRef=REACT_FORWARD_REF_TYPE,Fragment=REACT_FRAGMENT_TYPE,Lazy=REACT_LAZY_TYPE,Memo=REACT_MEMO_TYPE,Portal=REACT_PORTAL_TYPE,Profiler=REACT_PROFILER_TYPE,StrictMode=REACT_STRICT_MODE_TYPE,Suspense=REACT_SUSPENSE_TYPE,hasWarnedAboutDeprecatedIsAsyncMode=!1;exports.typeOf=typeOf,exports.AsyncMode=AsyncMode,exports.ConcurrentMode=ConcurrentMode,exports.ContextConsumer=ContextConsumer,exports.ContextProvider=ContextProvider,exports.Element=Element,exports.ForwardRef=ForwardRef,exports.Fragment=Fragment,exports.Lazy=Lazy,exports.Memo=Memo,exports.Portal=Portal,exports.Profiler=Profiler,exports.StrictMode=StrictMode,exports.Suspense=Suspense,exports.isValidElementType=isValidElementType,exports.isAsyncMode=isAsyncMode,exports.isConcurrentMode=isConcurrentMode,exports.isContextConsumer=isContextConsumer,exports.isContextProvider=isContextProvider,exports.isElement=isElement,exports.isForwardRef=isForwardRef,exports.isFragment=isFragment,exports.isLazy=isLazy,exports.isMemo=isMemo,exports.isPortal=isPortal,exports.isProfiler=isProfiler,exports.isStrictMode=isStrictMode,exports.isSuspense=isSuspense}()}).call(exports,__webpack_require__(0))},function(module,__webpack_exports__,__webpack_require__){"use strict";function index(resultFn,isEqual){void 0===isEqual&&(isEqual=simpleIsEqual);var lastThis,lastResult,lastArgs=[],calledOnce=!1,isNewArgEqualToLast=function(newArg,index){return isEqual(newArg,lastArgs[index],index)};return function(){for(var _len=arguments.length,newArgs=new Array(_len),_key=0;_key<_len;_key++)newArgs[_key]=arguments[_key];return calledOnce&&lastThis===this&&newArgs.length===lastArgs.length&&newArgs.every(isNewArgEqualToLast)?lastResult:(lastResult=resultFn.apply(this,newArgs),calledOnce=!0,lastThis=this,lastArgs=newArgs,lastResult)}}var simpleIsEqual=function(a,b){return a===b};__webpack_exports__.a=index},function(module,exports,__webpack_require__){"use strict";(function(process){function emptyFunctionThatReturnsNull(){return null}var assign=__webpack_require__(33),ReactPropTypesSecret=__webpack_require__(22),checkPropTypes=__webpack_require__(56),printWarning=function(){};"production"!==process.env.NODE_ENV&&(printWarning=function(text){var message="Warning: "+text;"undefined"!=typeof console&&console.error(message);try{throw new Error(message)}catch(x){}}),module.exports=function(isValidElement,throwOnDirectAccess){function getIteratorFn(maybeIterable){var iteratorFn=maybeIterable&&(ITERATOR_SYMBOL&&maybeIterable[ITERATOR_SYMBOL]||maybeIterable[FAUX_ITERATOR_SYMBOL]);if("function"==typeof iteratorFn)return iteratorFn}function is(x,y){return x===y?0!==x||1/x==1/y:x!==x&&y!==y}function PropTypeError(message){this.message=message,this.stack=""}function createChainableTypeChecker(validate){function checkType(isRequired,props,propName,componentName,location,propFullName,secret){if(componentName=componentName||ANONYMOUS,propFullName=propFullName||propName,secret!==ReactPropTypesSecret){if(throwOnDirectAccess){var err=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw err.name="Invariant Violation",err}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var cacheKey=componentName+":"+propName;!manualPropTypeCallCache[cacheKey]&&manualPropTypeWarningCount<3&&(printWarning("You are manually calling a React.PropTypes validation function for the `"+propFullName+"` prop on `"+componentName+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),manualPropTypeCallCache[cacheKey]=!0,manualPropTypeWarningCount++)}}return null==props[propName]?isRequired?new PropTypeError(null===props[propName]?"The "+location+" `"+propFullName+"` is marked as required in `"+componentName+"`, but its value is `null`.":"The "+location+" `"+propFullName+"` is marked as required in `"+componentName+"`, but its value is `undefined`."):null:validate(props,propName,componentName,location,propFullName)}if("production"!==process.env.NODE_ENV)var manualPropTypeCallCache={},manualPropTypeWarningCount=0;var chainedCheckType=checkType.bind(null,!1);return chainedCheckType.isRequired=checkType.bind(null,!0),chainedCheckType}function createPrimitiveTypeChecker(expectedType){function validate(props,propName,componentName,location,propFullName,secret){var propValue=props[propName];if(getPropType(propValue)!==expectedType)return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+getPreciseType(propValue)+"` supplied to `"+componentName+"`, expected `"+expectedType+"`.");return null}return createChainableTypeChecker(validate)}function createArrayOfTypeChecker(typeChecker){function validate(props,propName,componentName,location,propFullName){if("function"!=typeof typeChecker)return new PropTypeError("Property `"+propFullName+"` of component `"+componentName+"` has invalid PropType notation inside arrayOf.");var propValue=props[propName];if(!Array.isArray(propValue)){return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+getPropType(propValue)+"` supplied to `"+componentName+"`, expected an array.")}for(var i=0;i<propValue.length;i++){var error=typeChecker(propValue,i,componentName,location,propFullName+"["+i+"]",ReactPropTypesSecret);if(error instanceof Error)return error}return null}return createChainableTypeChecker(validate)}function createInstanceTypeChecker(expectedClass){function validate(props,propName,componentName,location,propFullName){if(!(props[propName]instanceof expectedClass)){var expectedClassName=expectedClass.name||ANONYMOUS;return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+getClassName(props[propName])+"` supplied to `"+componentName+"`, expected instance of `"+expectedClassName+"`.")}return null}return createChainableTypeChecker(validate)}function createEnumTypeChecker(expectedValues){function validate(props,propName,componentName,location,propFullName){for(var propValue=props[propName],i=0;i<expectedValues.length;i++)if(is(propValue,expectedValues[i]))return null;return new PropTypeError("Invalid "+location+" `"+propFullName+"` of value `"+propValue+"` supplied to `"+componentName+"`, expected one of "+JSON.stringify(expectedValues)+".")}return Array.isArray(expectedValues)?createChainableTypeChecker(validate):("production"!==process.env.NODE_ENV&&printWarning("Invalid argument supplied to oneOf, expected an instance of array."),emptyFunctionThatReturnsNull)}function createObjectOfTypeChecker(typeChecker){function validate(props,propName,componentName,location,propFullName){if("function"!=typeof typeChecker)return new PropTypeError("Property `"+propFullName+"` of component `"+componentName+"` has invalid PropType notation inside objectOf.");var propValue=props[propName],propType=getPropType(propValue);if("object"!==propType)return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+propType+"` supplied to `"+componentName+"`, expected an object.");for(var key in propValue)if(propValue.hasOwnProperty(key)){var error=typeChecker(propValue,key,componentName,location,propFullName+"."+key,ReactPropTypesSecret);if(error instanceof Error)return error}return null}return createChainableTypeChecker(validate)}function createUnionTypeChecker(arrayOfTypeCheckers){function validate(props,propName,componentName,location,propFullName){for(var i=0;i<arrayOfTypeCheckers.length;i++){if(null==(0,arrayOfTypeCheckers[i])(props,propName,componentName,location,propFullName,ReactPropTypesSecret))return null}return new PropTypeError("Invalid "+location+" `"+propFullName+"` supplied to `"+componentName+"`.")}if(!Array.isArray(arrayOfTypeCheckers))return"production"!==process.env.NODE_ENV&&printWarning("Invalid argument supplied to oneOfType, expected an instance of array."),emptyFunctionThatReturnsNull;for(var i=0;i<arrayOfTypeCheckers.length;i++){var checker=arrayOfTypeCheckers[i];if("function"!=typeof checker)return printWarning("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+getPostfixForTypeWarning(checker)+" at index "+i+"."),emptyFunctionThatReturnsNull}return createChainableTypeChecker(validate)}function createShapeTypeChecker(shapeTypes){function validate(props,propName,componentName,location,propFullName){var propValue=props[propName],propType=getPropType(propValue);if("object"!==propType)return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+propType+"` supplied to `"+componentName+"`, expected `object`.");for(var key in shapeTypes){var checker=shapeTypes[key];if(checker){var error=checker(propValue,key,componentName,location,propFullName+"."+key,ReactPropTypesSecret);if(error)return error}}return null}return createChainableTypeChecker(validate)}function createStrictShapeTypeChecker(shapeTypes){function validate(props,propName,componentName,location,propFullName){var propValue=props[propName],propType=getPropType(propValue);if("object"!==propType)return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+propType+"` supplied to `"+componentName+"`, expected `object`.");var allKeys=assign({},props[propName],shapeTypes);for(var key in allKeys){var checker=shapeTypes[key];if(!checker)return new PropTypeError("Invalid "+location+" `"+propFullName+"` key `"+key+"` supplied to `"+componentName+"`.\nBad object: "+JSON.stringify(props[propName],null,"  ")+"\nValid keys: "+JSON.stringify(Object.keys(shapeTypes),null,"  "));var error=checker(propValue,key,componentName,location,propFullName+"."+key,ReactPropTypesSecret);if(error)return error}return null}return createChainableTypeChecker(validate)}function isNode(propValue){switch(typeof propValue){case"number":case"string":case"undefined":return!0;case"boolean":return!propValue;case"object":if(Array.isArray(propValue))return propValue.every(isNode);if(null===propValue||isValidElement(propValue))return!0;var iteratorFn=getIteratorFn(propValue);if(!iteratorFn)return!1;var step,iterator=iteratorFn.call(propValue);if(iteratorFn!==propValue.entries){for(;!(step=iterator.next()).done;)if(!isNode(step.value))return!1}else for(;!(step=iterator.next()).done;){var entry=step.value;if(entry&&!isNode(entry[1]))return!1}return!0;default:return!1}}function isSymbol(propType,propValue){return"symbol"===propType||("Symbol"===propValue["@@toStringTag"]||"function"==typeof Symbol&&propValue instanceof Symbol)}function getPropType(propValue){var propType=typeof propValue;return Array.isArray(propValue)?"array":propValue instanceof RegExp?"object":isSymbol(propType,propValue)?"symbol":propType}function getPreciseType(propValue){if(void 0===propValue||null===propValue)return""+propValue;var propType=getPropType(propValue);if("object"===propType){if(propValue instanceof Date)return"date";if(propValue instanceof RegExp)return"regexp"}return propType}function getPostfixForTypeWarning(value){var type=getPreciseType(value);switch(type){case"array":case"object":return"an "+type;case"boolean":case"date":case"regexp":return"a "+type;default:return type}}function getClassName(propValue){return propValue.constructor&&propValue.constructor.name?propValue.constructor.name:ANONYMOUS}var ITERATOR_SYMBOL="function"==typeof Symbol&&Symbol.iterator,FAUX_ITERATOR_SYMBOL="@@iterator",ANONYMOUS="<<anonymous>>",ReactPropTypes={array:createPrimitiveTypeChecker("array"),bool:createPrimitiveTypeChecker("boolean"),func:createPrimitiveTypeChecker("function"),number:createPrimitiveTypeChecker("number"),object:createPrimitiveTypeChecker("object"),string:createPrimitiveTypeChecker("string"),symbol:createPrimitiveTypeChecker("symbol"),any:function(){return createChainableTypeChecker(emptyFunctionThatReturnsNull)}(),arrayOf:createArrayOfTypeChecker,element:function(){function validate(props,propName,componentName,location,propFullName){var propValue=props[propName];if(!isValidElement(propValue)){return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+getPropType(propValue)+"` supplied to `"+componentName+"`, expected a single ReactElement.")}return null}return createChainableTypeChecker(validate)}(),instanceOf:createInstanceTypeChecker,node:function(){function validate(props,propName,componentName,location,propFullName){return isNode(props[propName])?null:new PropTypeError("Invalid "+location+" `"+propFullName+"` supplied to `"+componentName+"`, expected a ReactNode.")}return createChainableTypeChecker(validate)}(),objectOf:createObjectOfTypeChecker,oneOf:createEnumTypeChecker,oneOfType:createUnionTypeChecker,shape:createShapeTypeChecker,exact:createStrictShapeTypeChecker};return PropTypeError.prototype=Error.prototype,ReactPropTypes.checkPropTypes=checkPropTypes,ReactPropTypes.PropTypes=ReactPropTypes,ReactPropTypes}}).call(exports,__webpack_require__(0))},function(module,exports,__webpack_require__){"use strict";(function(process){function checkPropTypes(typeSpecs,values,location,componentName,getStack){if("production"!==process.env.NODE_ENV)for(var typeSpecName in typeSpecs)if(typeSpecs.hasOwnProperty(typeSpecName)){var error;try{if("function"!=typeof typeSpecs[typeSpecName]){var err=Error((componentName||"React class")+": "+location+" type `"+typeSpecName+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof typeSpecs[typeSpecName]+"`.");throw err.name="Invariant Violation",err}error=typeSpecs[typeSpecName](values,typeSpecName,componentName,location,null,ReactPropTypesSecret)}catch(ex){error=ex}if(!error||error instanceof Error||printWarning((componentName||"React class")+": type specification of "+location+" `"+typeSpecName+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof error+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),error instanceof Error&&!(error.message in loggedTypeFailures)){loggedTypeFailures[error.message]=!0;var stack=getStack?getStack():"";printWarning("Failed "+location+" type: "+error.message+(null!=stack?stack:""))}}}var printWarning=function(){};if("production"!==process.env.NODE_ENV){var ReactPropTypesSecret=__webpack_require__(22),loggedTypeFailures={};printWarning=function(text){var message="Warning: "+text;"undefined"!=typeof console&&console.error(message);try{throw new Error(message)}catch(x){}}}module.exports=checkPropTypes}).call(exports,__webpack_require__(0))},function(module,exports,__webpack_require__){"use strict";function emptyFunction(){}var ReactPropTypesSecret=__webpack_require__(22);module.exports=function(){function shim(props,propName,componentName,location,propFullName,secret){if(secret!==ReactPropTypesSecret){var err=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw err.name="Invariant Violation",err}}function getShim(){return shim}shim.isRequired=shim;var ReactPropTypes={array:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim};return ReactPropTypes.checkPropTypes=emptyFunction,ReactPropTypes.PropTypes=ReactPropTypes,ReactPropTypes}},function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0__emotion_memoize__=__webpack_require__(59),reactPropsRegex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,index=Object(__WEBPACK_IMPORTED_MODULE_0__emotion_memoize__.a)(function(prop){return reactPropsRegex.test(prop)||111===prop.charCodeAt(0)&&110===prop.charCodeAt(1)&&prop.charCodeAt(2)<91});__webpack_exports__.a=index},function(module,__webpack_exports__,__webpack_require__){"use strict";function memoize(fn){var cache={};return function(arg){return void 0===cache[arg]&&(cache[arg]=fn(arg)),cache[arg]}}__webpack_exports__.a=memoize},function(module,__webpack_exports__,__webpack_require__){"use strict";function _templateObject2(){var data=_taggedTemplateLiteral(["\n\tpadding: 8px 24px;\n\tmargin-bottom: 30px;\n\tbackground: #fff;\n\tborder-bottom: 1px solid #DFDFDF;\n\n\t.ang-container {\n\t\tdisplay: flex;\n\t    justify-content: space-between;\n\t    align-items: center;\n\t}\n\n\t.logo img {\n\t\tmax-width: 42px;\n\t\tmax-height: 42px;\n\t}\n\n\ta {\n\t\tcolor: #fff;\n\t}\n\n\tsvg {\n\t\tvertical-align: bottom;\n\t}\n\n\t.button-plain {\n\t\tcolor: #fff !important;\n\t\tfont-weight: bold;\n\t\ttext-decoration: none;\n\t\tdisplay: inline-flex;\n\t\talign-items: center;\n\n\t\t&.is-active {\n\t\t\tpointer-events: none;\n\t\t\tsvg {\n\t\t\t\tanimation: "," 2s linear infinite;\n\t\t\t}\n\t\t}\n\n\t\tsvg {\n\t\t\tmargin-left: 10px;\n\t\t}\n\n\t\t&:first-of-type {\n\t\t\tmargin-left: auto;\n\t\t}\n\t\t+ .button-plain {\n\t\t\tposition: relative;\n\t\t\tmargin-left: 30px;\n\t\t}\n\t}\n\n\t.sync {\n\t\ttext-transform: uppercase;\n\t\tfont-size: 12.64px !important;\n\t\tletter-spacing: 1px;\n\t}\n"]);return _templateObject2=function(){return data},data}function _templateObject(){var data=_taggedTemplateLiteral(["\n  from {\n    transform: rotate(0deg);\n  }\n\n  to {\n    transform: rotate(360deg);\n  }\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var __WEBPACK_IMPORTED_MODULE_0_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_1__contexts_ThemeContext__=__webpack_require__(12),__WEBPACK_IMPORTED_MODULE_2__Nav__=__webpack_require__(61),__WEBPACK_IMPORTED_MODULE_3__Synchronization__=__webpack_require__(62),rotate=Object(__WEBPACK_IMPORTED_MODULE_0_styled_components__.b)(_templateObject()),Container=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.div(_templateObject2(),rotate),Header=function(){var _React$useContext=React.useContext(__WEBPACK_IMPORTED_MODULE_1__contexts_ThemeContext__.c),theme=_React$useContext.theme;return React.createElement(Container,{theme:theme},React.createElement("div",{className:"ang-container"},React.createElement("div",{className:"logo"},React.createElement("img",{src:AGWP.pluginURL+"/assets/img/analog.svg",alt:""})),!AGWP.isContainer&&React.createElement(__WEBPACK_IMPORTED_MODULE_2__Nav__.a,null),React.createElement(__WEBPACK_IMPORTED_MODULE_3__Synchronization__.a,null)))};__webpack_exports__.a=Header},function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0__AnalogContext__=__webpack_require__(2),__=wp.i18n.__,TabPanel=wp.components.TabPanel,ITEMS=[{key:"blocks",label:AGWP.isContainer?__("Patterns","ang"):__("Blocks","ang")},{key:"templates",label:__("Templates","ang")},{key:"styleKits",label:__("Styles","ang")}],Nav=function(){var context=React.useContext(__WEBPACK_IMPORTED_MODULE_0__AnalogContext__.a),getCount=function(tab){var items=context.state[tab];return"templates"===tab&&(items=context.state.archive),"blocks"===tab&&(items=context.state.blockArchive),!!items&&items.length},titleGenerator=function(titleObject){var count=getCount(titleObject.key),countTemplate=count>0?"("+count+")":"";return"".concat(titleObject.label," ").concat(countTemplate)},onSelect=function(tabName){context.dispatch({tab:tabName})};return React.createElement("span",{id:"sk-library-tab"},React.createElement(TabPanel,{className:"ang-nav",onSelect:onSelect,tabs:function(tabsArray){return tabsArray.map(function(item){return{name:item.key,title:titleGenerator(item),className:"tab-".concat(item.key)}})}(ITEMS)},function(tab){return null}))};__webpack_exports__.a=Nav},function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0_classnames__=__webpack_require__(5),__WEBPACK_IMPORTED_MODULE_0_classnames___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__),__WEBPACK_IMPORTED_MODULE_1__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_2__Notifications__=__webpack_require__(6),__WEBPACK_IMPORTED_MODULE_3__icons_close__=__webpack_require__(23),__=wp.i18n.__,Button=wp.components.Button,Synchronization=function(){return React.createElement("div",null,React.createElement(__WEBPACK_IMPORTED_MODULE_1__AnalogContext__.a.Consumer,null,function(context){return React.createElement(__WEBPACK_IMPORTED_MODULE_2__Notifications__.a,null,function(_ref){var add=_ref.add;return React.createElement(Button,{isPrimary:!0,className:__WEBPACK_IMPORTED_MODULE_0_classnames___default()("ang-sync",{"is-active":context.state.syncing}),onClick:function(e){e.preventDefault(),context.forceRefresh().then(function(){return add(__("Library is now synced","ang"))}).catch(function(){return add(__("Something is not right, please try again.","ang"),"error")})}},context.state.syncing?__("Syncing...","ang"):__("Sync Library","ang"))})}),!AGWP.is_settings_page&&React.createElement(Button,{isSecondary:!0,className:"close-modal"},__("Close","ang")," ",React.createElement(__WEBPACK_IMPORTED_MODULE_3__icons_close__.a,null)))};__webpack_exports__.a=Synchronization},function(module,__webpack_exports__,__webpack_require__){"use strict";var Error=function(){return React.createElement("svg",{height:"16",width:"12",viewBox:"0 0 12 16"},React.createElement("path",{fillRule:"evenodd",d:"M5.05.01c.81 2.17.41 3.38-.52 4.31C3.55 5.37 1.98 6.15.9 7.68c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.01 8.68 2.15 5.05.02L5.03 0l.02.01z"}))};__webpack_exports__.a=Error},function(module,__webpack_exports__,__webpack_require__){"use strict";var Notice=function(){return React.createElement("svg",{height:"16",width:"16",viewBox:"0 0 16 16"},React.createElement("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"}))};__webpack_exports__.a=Notice},function(module,__webpack_exports__,__webpack_require__){"use strict";var Success=function(){return React.createElement("svg",{height:"16",width:"12",viewBox:"0 0 12 16"},React.createElement("path",{fillRule:"evenodd",d:"M12 5.5l-8 8-4-4L1.5 8 4 10.5 10.5 4 12 5.5z"}))};__webpack_exports__.a=Success},function(module,__webpack_exports__,__webpack_require__){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(iter){if(Symbol.iterator in Object(iter)||"[object Arguments]"===Object.prototype.toString.call(iter))return Array.from(iter)}function _arrayWithoutHoles(arr){if(Array.isArray(arr)){for(var i=0,arr2=new Array(arr.length);i<arr.length;i++)arr2[i]=arr[i];return arr2}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _possibleConstructorReturn(self,call){return!call||"object"!==_typeof(call)&&"function"!=typeof call?_assertThisInitialized(self):call}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _templateObject(){var data=_taggedTemplateLiteral(["\n\tcolor: ",";\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var __WEBPACK_IMPORTED_MODULE_0_classnames__=__webpack_require__(5),__WEBPACK_IMPORTED_MODULE_0_classnames___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__),__WEBPACK_IMPORTED_MODULE_1_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_2__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_3__contexts_ThemeContext__=__webpack_require__(12),__WEBPACK_IMPORTED_MODULE_4__icons_star__=__webpack_require__(24),__=wp.i18n.__,_wp$components=wp.components,ToggleControl=_wp$components.ToggleControl,SelectControl=_wp$components.SelectControl,TextControl=_wp$components.TextControl,Button=_wp$components.Button,FiltersContainer=__WEBPACK_IMPORTED_MODULE_1_styled_components__.a.div(_templateObject(),function(props){return props.theme.textDark}),Filters=function(_React$Component){function Filters(){var _this;return _classCallCheck(this,Filters),_this=_possibleConstructorReturn(this,_getPrototypeOf(Filters).apply(this,arguments)),_this.searchInput=React.createRef(),_this}return _inherits(Filters,_React$Component),_createClass(Filters,[{key:"render",value:function(){var _this2=this,filters=_toConsumableArray(new Set(this.context.state.archive.map(function(f){return f.type}))),filterTypes=_toConsumableArray(filters).map(function(filter){return{value:"".concat(filter),label:"".concat(filter)}}),filterOptions=[{value:"all",label:__("All template types","ang")}].concat(_toConsumableArray(filterTypes)),sortOptions=[{value:"latest",label:__("Newest first","ang")},{value:"popular",label:__("Popular","ang")}],productTypeOptions=[{value:"all",label:__("Both Free and Pro","ang")},{value:"pro",label:__("Pro","ang")},{value:"free",label:__("Free","ang")}],showingKit=this.context.state.group&&this.context.state.activeKit;return React.createElement(__WEBPACK_IMPORTED_MODULE_3__contexts_ThemeContext__.b,null,function(_ref){var theme=_ref.theme;return React.createElement(FiltersContainer,{theme:theme,className:"template-filter"},React.createElement("div",{className:"top"},showingKit&&React.createElement(React.Fragment,null,React.createElement("h2",{className:"kit-title"},__("Template Kit","ang"),": ",_this2.context.state.activeKit.title),React.createElement(Button,{className:"kit-back",isSecondary:!0,onClick:function(){_this2.context.dispatch({activeKit:!1})}},__("Back to all Kits","ang"))),!showingKit&&React.createElement("button",{onClick:_this2.context.toggleFavorites,className:__WEBPACK_IMPORTED_MODULE_0_classnames___default()("favorites button-plain",{"is-active":_this2.context.state.showing_favorites})},React.createElement(__WEBPACK_IMPORTED_MODULE_4__icons_star__.a,null)," ",_this2.context.state.showing_favorites?__("Back to all","ang"):__("Favorites","ang")),!showingKit&&!_this2.context.state.showing_favorites&&React.createElement(ToggleControl,{className:"group-by",label:__("Group by Template Kit"),checked:_this2.context.state.group,onChange:function(){_this2.context.dispatch({group:!_this2.context.state.group,templates:_this2.context.state.archive}),window.localStorage.setItem("analog::group-kit",!_this2.context.state.group)}})),(!_this2.context.state.group||showingKit)&&!_this2.context.state.showing_favorites&&React.createElement("div",{className:"bottom "+(showingKit?"to-top-right":"")},React.createElement("span",null,!showingKit&&filters.length>1&&React.createElement(SelectControl,{id:"filter",options:filterOptions,onChange:function(value){_this2.context.handleFilter(value)}}),"valid"!==AGWP.license.status&&React.createElement(SelectControl,{id:"product-type",options:productTypeOptions,onChange:function(value){var pro=!1,free=!1;"all"===value?(pro=!0,free=!0):"pro"===value?(pro=!0,free=!1):"free"===value&&(pro=!1,free=!0),_this2.context.dispatch({showFree:free,showPro:pro}),window.localStorage.setItem("analog::show-free",free),window.localStorage.setItem("analog::show-pro",pro)}}),React.createElement(SelectControl,{id:"sort",options:sortOptions,onChange:function(value){return _this2.context.handleSort(value)}})),React.createElement("span",null,!showingKit&&React.createElement(TextControl,{type:"search",placeholder:__("Search templates...","ang"),onChange:function(value){return _this2.context.handleSearch(value.toLowerCase())}}))))})}}]),Filters}(React.Component);Filters.contextType=__WEBPACK_IMPORTED_MODULE_2__AnalogContext__.a,__webpack_exports__.a=Filters},function(module,__webpack_exports__,__webpack_require__){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function _extends(){return _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_extends.apply(this,arguments)}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(iter){if(Symbol.iterator in Object(iter)||"[object Arguments]"===Object.prototype.toString.call(iter))return Array.from(iter)}function _arrayWithoutHoles(arr){if(Array.isArray(arr)){for(var i=0,arr2=new Array(arr.length);i<arr.length;i++)arr2[i]=arr[i];return arr2}}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(source,!0).forEach(function(key){_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(source).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _possibleConstructorReturn(self,call){return!call||"object"!==_typeof(call)&&"function"!=typeof call?_assertThisInitialized(self):call}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _templateObject2(){var data=_taggedTemplateLiteral(["\n    > li {\n    \tborder-radius: 4px;\n    \tbackground: #fff;\n    }\n\n    figure {\n    \tmargin: 0;\n\t\tposition: relative;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\timg {\n\t\t\twidth: 100%;\n\t\t\theight: auto;\n\t\t}\n\n\t\t&:hover {\n\t\t\t.preview {\n\t\t\t\topacity: 1;\n\t\t\t\tbutton {\n\t\t\t\t\ttransform: none;\n\t\t\t\t\topacity: 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t .preview {\n\t\tbutton {\n\t\t\ttransform: translateY(20px);\n\t\t\topacity: 0;\n\n\t\t\t+ button, + .ang-promo {\n\t\t\t\tmargin-top: 10px;\n\t\t\t\ttext-decoration: none;\n\t\t\t}\n\t\t}\n\t\timg {\n\t\t\twidth: 100%;\n\t\t\theight: auto;\n\t\t}\n    }\n"]);return _templateObject2=function(){return data},data}function _templateObject(){var data=_taggedTemplateLiteral(["\n\t> p {\n\t\tfont-size: 16px;\n\t\tline-height: 24px;\n\t}\n\th3 {\n\t\tmargin: 0;\n\t\tfont-size: 14.2px;\n\t}\n\t.inner {\n    \ttext-align: center;\n    }\n    .error {\n    \tcolor: indianred;\n    \ttext-align: left;\n    }\n    a {\n    \tcolor: var(--ang-primary);\n    }\n    .tab-description {\n\t\tfont-size: 14px;\n\t\tline-height: 1.5;\n\t\tmargin: 12px 0 40px;\n\t    padding: 16px;\n\t    background-color: #F9F9F8;\n\t    border-radius: 6px;\n\t    box-shadow: rgb(0 0 0 / 10%) 0px 0px 0px 1px;\n    }\n    .popup-description {\n        text-align: left;\n\t\tfont-size: 14px;\n\t\tline-height: 1.5;\n\t\tcolor: var(--ang-main-text);\n\t\tpadding-bottom: 10px;\n\n\t\ta {\n\t\t\ttext-decoration: underline !important;\n\t\t}\n    }\n\n\t.gap {\n\t\tdisplay: flex;\n        gap: 10px;\n\n        & > button {\n            margin-left: 0 !important;\n        }\n\t}\n\n    .success-buttons {\n        button {\n            margin-left: 0 !important;\n        }\n    }\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}__webpack_require__.d(__webpack_exports__,"a",function(){return StyleKits});var __WEBPACK_IMPORTED_MODULE_0_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_1__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_2__api__=__webpack_require__(4),__WEBPACK_IMPORTED_MODULE_3__icons_loader__=__webpack_require__(25),__WEBPACK_IMPORTED_MODULE_4__Notifications__=__webpack_require__(6),__WEBPACK_IMPORTED_MODULE_5__popup__=__webpack_require__(26),__WEBPACK_IMPORTED_MODULE_6__modal_Preview__=__webpack_require__(68),_wp$components=wp.components,TextControl=_wp$components.TextControl,Button=_wp$components.Button,Card=(_wp$components.Dashicon,_wp$components.Card),CardBody=_wp$components.CardBody,CardFooter=_wp$components.CardFooter,decodeEntities=wp.htmlEntities.decodeEntities,_wp$i18n=wp.i18n,__=_wp$i18n.__,sprintf=_wp$i18n.sprintf,addQueryArgs=wp.url.addQueryArgs,Container=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.section(_templateObject()),ChildContainer=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.ul(_templateObject2()),initialState={modalActive:!1,importing:!1,activeKit:[],importedKit:!1,hasError:!1,kitname:"",previewing:null},footer=sprintf(__('%s <span class="footer-text">in WordPress dashboard.</span>',"ang"),sprintf('<a href="'.concat(addQueryArgs("admin.php",{page:"style-kits"}),'" target="_blank" rel="noopener noreferer">%s</a>'),__("Manage your Style Kits","ang"))),StyleKits=function(_React$Component){function StyleKits(){var _this;return _classCallCheck(this,StyleKits),_this=_possibleConstructorReturn(this,_getPrototypeOf(StyleKits).apply(this,arguments)),_this.state=_objectSpread({},initialState),_this}return _inherits(StyleKits,_React$Component),_createClass(StyleKits,[{key:"resetState",value:function(){this.setState(initialState)}},{key:"handleImport",value:function(kit,add){var _this2=this,checkKitStatus=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.setState({activeKit:kit,modalActive:!0}),checkKitStatus){if(this.context.state.installedKits.indexOf(this.state.kitname||kit.title)>-1)return void this.setState({hasError:!0})}Object(__WEBPACK_IMPORTED_MODULE_2__api__.h)(kit).then(function(response){if(response.errors){var message=Object.values(response.errors)[0];return add(message,"error","kit-error",!1),void _this2.resetState()}var kits=_toConsumableArray(_this2.context.state.installedKits);if(kits.push(kit.title),_this2.setState({importedKit:!0}),_this2.context.dispatch({installedKits:kits}),add(response.message),!AGWP.is_settings_page&&elementor){var options=elementor.settings.page.model.controls.ang_action_tokens.options;0===options.length&&(options={}),options[response.id]=kit.title,elementor.settings.page.model.controls.ang_action_tokens.options=options,elementor.reloadPreview(),analog.redirectToSection()}}).catch(function(error){add(error.message,"error","kit-error",!1),_this2.resetState()})}},{key:"getPopupTitle",value:function(title,hasImported,hasError){return hasImported&&!hasError?decodeEntities(title)+__(" Imported!","ang"):decodeEntities(title)}},{key:"render",value:function(){var _this3=this,successButtonProps={rel:"noopener noreferrer",href:addQueryArgs("admin.php",{page:"style-kits"})},isValid=function(isPro){return!(isPro&&"valid"!==AGWP.license.status)},fallbackImage=AGWP.pluginURL+"assets/img/placeholder.svg";return React.createElement(Container,null,React.createElement("p",{className:"tab-description"},__("Style Kits are ready-made configurations of theme styles. When you import a Style Kit, it will be available in the","ang")," ",React.createElement("a",{href:addQueryArgs("admin.php",{page:"style-kits"})},__("Local Style Kits","ang"))," ",__("page","ang"),".  ",__("You will then be able apply it globally, or on any page.","ang")," ",React.createElement("a",{href:"https://analogwp.com/docs/importing-global-style-presets/",target:"_blank",rel:"noopener noreferrer"},__("Learn more","ang")),"."),this.state.previewing&&this.state.previewing.preview&&React.createElement(__WEBPACK_IMPORTED_MODULE_4__Notifications__.a,null,function(_ref){var add=_ref.add;return React.createElement(__WEBPACK_IMPORTED_MODULE_6__modal_Preview__.a,{template:_this3.state.previewing,onRequestClose:function(){return _this3.resetState()},onRequestImport:function(){return _this3.handleImport(_this3.state.previewing,add,!0)},insertText:__("Import Style Kit","ang"),style:{padding:"20px",boxSizing:"border-box"}})}),React.createElement(ChildContainer,{className:"stylekit-list"},this.context.state.styleKits.length>0&&this.context.state.styleKits.map(function(kit){return React.createElement("li",{key:kit.id+"-"+kit.site_id},React.createElement(Card,null,React.createElement(CardBody,null,kit.is_pro&&React.createElement("span",{className:"pro"},__("Pro","ang")),React.createElement("figure",null,React.createElement("img",{src:kit.image||fallbackImage,alt:kit.title}),React.createElement("div",{className:"preview"},kit.preview&&React.createElement(Button,{isSecondary:!0,className:"black-transparent",onClick:function(){window.scrollTo(0,0),_this3.setState({previewing:kit})}},__("Preview","ang")),!isValid(kit.is_pro)&&React.createElement("a",{className:"ang-promo",href:"https://analogwp.com/style-kits-pro/?utm_medium=plugin&utm_source=library&utm_campaign=style+kits+pro",target:"_blank"},React.createElement(Button,{isPrimary:!0},__("Go Pro","ang"))),isValid(kit.is_pro)&&React.createElement(__WEBPACK_IMPORTED_MODULE_4__Notifications__.a,null,function(_ref2){var add=_ref2.add;return React.createElement(Button,{isPrimary:!0,onClick:function(){return _this3.handleImport(kit,add,!0)}},__("Import","ang"))})))),React.createElement(CardFooter,null,React.createElement("div",{className:"content"},React.createElement("h3",null,kit.title)))))})),this.state.modalActive&&React.createElement(__WEBPACK_IMPORTED_MODULE_5__popup__.a,{title:this.getPopupTitle(this.state.activeKit.title,this.state.importedKit,this.state.hasError),onRequestClose:function(){return _this3.resetState()}},this.state.hasError&&React.createElement("div",{className:"stylekit-popup-content"},React.createElement("p",{className:"popup-description"},__("A Style Kit named ","ang")+decodeEntities(this.state.activeKit.title)+__(" already exists in your website. To import it again please use a different name.","ang")),this.context.state.installedKits.indexOf(this.state.kitname)>-1&&React.createElement("p",{className:"error"},__("Please try a different as a Style Kit with same name already exists.","ang")),React.createElement("div",{className:"form-row gap"},React.createElement(TextControl,{placeholder:__("Enter a Style Kit Name","ang"),onChange:function(val){return _this3.setState({kitname:val})},className:"kit-name"}),React.createElement(__WEBPACK_IMPORTED_MODULE_4__Notifications__.a,null,function(_ref3){var add=_ref3.add;return React.createElement(Button,{isPrimary:!0,disabled:!_this3.state.kitname||_this3.context.state.installedKits.indexOf(_this3.state.kitname)>-1,style:{marginLeft:"15px"},onClick:function(){_this3.setState({hasError:!1});var kit=_objectSpread({},_this3.state.activeKit,{title:_this3.state.kitname});_this3.handleImport(kit,add)}},__("Import","ang"))}))),!this.state.hasError&&!this.state.importedKit&&React.createElement(__WEBPACK_IMPORTED_MODULE_3__icons_loader__.a,null),!this.state.hasError&&this.state.importedKit&&React.createElement("div",{className:"stylekit-popup-content"},React.createElement("p",{className:"popup-description"},decodeEntities(this.state.activeKit.title)+__(" has been successfully imported. You can now find it in the ","ang"),React.createElement("a",{href:AGWP.globalSkAlwaysEnableURL},__("list of your Local Style Kits")),"."),React.createElement("p",{className:"success-buttons gap"},React.createElement("a",{onClick:function(e){_this3.resetState(),Boolean(AGWP.is_settings_page)||(e.preventDefault(),window.analogModal.hide(),analog.redirectToSection())}},React.createElement(Button,{isPrimary:!0},__("Stay on this page","ang"))),React.createElement("a",_extends({onClick:function(e){_this3.resetState(),Boolean(AGWP.is_settings_page)||(e.preventDefault(),window.analogModal.hide(),analog.redirectToSection())}},successButtonProps),React.createElement(Button,{isSecondary:!0},__("View local Style Kits","ang")))),!Boolean(AGWP.is_settings_page)&&React.createElement("footer",{className:"style-kit-footer",dangerouslySetInnerHTML:{__html:footer}})),!this.state.hasError&&!this.state.importedKit&&React.createElement("p",null,__("Importing ","ang")," ",decodeEntities(this.state.activeKit.title))))}}]),StyleKits}(React.Component);_defineProperty(StyleKits,"contextType",__WEBPACK_IMPORTED_MODULE_1__AnalogContext__.a)},function(module,__webpack_exports__,__webpack_require__){"use strict";function _extends(){return _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_extends.apply(this,arguments)}function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=_objectWithoutPropertiesLoose(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++)key=sourceSymbolKeys[i],excluded.indexOf(key)>=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],excluded.indexOf(key)>=0||(target[key]=source[key]);return target}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit(arr,i){if(Symbol.iterator in Object(arr)||"[object Arguments]"===Object.prototype.toString.call(arr)){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}function _templateObject3(){var data=_taggedTemplateLiteral(["\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n\toverflow: hidden;\n\toverflow: -moz-scrollbars-none;\n\tbackground: #F1F1F1;\n\tz-index: 999;\n\ttext-align: center;\n\n\tiframe {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tdisplay: ",";\n\t}\n\n\t.frame-header {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\talign-items: center;\n\t\tmargin-bottom: 25px;\n\n\t\ta {\n\t\t\tmargin-left: auto;\n\t\t\tmargin-right: 20px;\n\t\t\tcolor: currentColor;\n\t\t\ttext-decoration: none;\n\t\t}\n\n\t\t.dashicons {\n\t\t\tfont-size: 25px;\n\t\t}\n\t}\n\n\t.button--accent {\n\t\tfont-size: 12px;\n\t\tfont-weight: bold;\n\t\tcolor: #fff;\n\t\tborder-radius: 0;\n\t\tborder: none;\n\t\tbackground: var(--ang-accent);\n\t\toutline: 0;\n\t\tbox-shadow: none;\n\t\tpadding: 15px 30px;\n\t\tcursor: pointer;\n\t}\n"]);return _templateObject3=function(){return data},data}function _templateObject2(){var data=_taggedTemplateLiteral(["\n\topacity: 0.5;\n\ttransition: all 200ms ease-in-out;\n\tanimation: "," 2s linear infinite;\n"]);return _templateObject2=function(){return data},data}function _templateObject(){var data=_taggedTemplateLiteral(["\n  0% {\n    opacity: 0.5;\n  }\n\n  50% {\n    opacity: 0.1;\n  }\n\n  100% {\n    opacity: 0.5;\n  }\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var __WEBPACK_IMPORTED_MODULE_0_styled_components__=__webpack_require__(1),_wp$components=wp.components,FocusableIframe=_wp$components.FocusableIframe,Button=_wp$components.Button,__=wp.i18n.__,rotateOpacity=Object(__WEBPACK_IMPORTED_MODULE_0_styled_components__.b)(_templateObject()),Img=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.img(_templateObject2(),rotateOpacity),Container=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.div(_templateObject3(),function(props){return props.loading?"none":"block"}),Preview=function(props){var _React$useState=React.useState(!0),_React$useState2=_slicedToArray(_React$useState,2),loading=_React$useState2[0],setLoading=_React$useState2[1],onRequestClose=props.onRequestClose,onRequestImport=props.onRequestImport,rest=_objectWithoutProperties(props,["onRequestClose","onRequestImport"]),previewURL=props.template.url||props.template.preview;return React.createElement(Container,_extends({loading:loading},rest),React.createElement("div",{className:"frame-header"},React.createElement(Button,{isSecondary:!0,onClick:onRequestClose},__("Back to Library","ang")),React.createElement("a",{href:previewURL,rel:"noopener noreferrer",target:"_blank"},React.createElement(Button,{isSecondary:!0},__("Open in new tab","ang"))),!(props.template.is_pro&&"valid"!==AGWP.license.status)&&React.createElement(Button,{isPrimary:!0,onClick:onRequestImport},props.insertText||__("Import Template","ang"))),loading&&React.createElement(Img,{src:"".concat(AGWP.pluginURL,"assets/img/placeholder.svg"),alt:__("Loading icon","ang")}),React.createElement(FocusableIframe,{src:previewURL,onLoad:function(){return setLoading(!1)}}))};__webpack_exports__.a=Preview},function(module,__webpack_exports__,__webpack_require__){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(source,!0).forEach(function(key){_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(source).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _possibleConstructorReturn(self,call){return!call||"object"!==_typeof(call)&&"function"!=typeof call?_assertThisInitialized(self):call}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _templateObject(){var data=_taggedTemplateLiteral(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tposition: relative;\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}__webpack_require__.d(__webpack_exports__,"a",function(){return Blocks});var __WEBPACK_IMPORTED_MODULE_0_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_1__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_2__api__=__webpack_require__(4),__WEBPACK_IMPORTED_MODULE_4__BlockList__=(__webpack_require__(27),__webpack_require__(70)),__WEBPACK_IMPORTED_MODULE_5__Sidebar__=__webpack_require__(72),_wp$element=(wp.i18n.__,wp.element),Component=_wp$element.Component,Fragment=_wp$element.Fragment,LibraryWrapper=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.div(_templateObject()),initialState={blocks:[],activeBlock:!1,blockImported:!1,modalActive:!1},Blocks=function(_Component){function Blocks(){var _this;return _classCallCheck(this,Blocks),_this=_possibleConstructorReturn(this,_getPrototypeOf(Blocks).apply(this,arguments)),_defineProperty(_assertThisInitialized(_this),"makeFavorite",function(id){var blockFavorites=_this.context.state.blockFavorites;if(_this.context.markFavorite(id,!(id in blockFavorites),"block"),id in blockFavorites?delete blockFavorites[id]:blockFavorites[id]=!(id in blockFavorites),_this.context.dispatch({blockFavorites:blockFavorites}),_this.context.state.showing_favorites){var filteredBlocks=_this.context.state.blocks.filter(function(t){return t.id in blockFavorites});_this.context.dispatch({blocks:filteredBlocks})}}),_this.state=_objectSpread({},initialState),_this.importBlock=_this.importBlock.bind(_assertThisInitialized(_this)),_this.handleImport=_this.handleImport.bind(_assertThisInitialized(_this)),_this}return _inherits(Blocks,_Component),_createClass(Blocks,[{key:"importBlock",value:function(block,add){this.setState({modalActive:!0,activeBlock:block}),this.handleImport(block,add)}},{key:"handleImport",value:function(block,add){var _this2=this,method=Boolean(AGWP.is_settings_page)?"library":"elementor";Object(__WEBPACK_IMPORTED_MODULE_2__api__.d)(block,method).then(function(response){if("elementor"===method){var parsedTemplate=response.data;Object(__WEBPACK_IMPORTED_MODULE_2__api__.a)(parsedTemplate.content,"block"),_this2.setState({modalActive:!1,activeBlock:!1}),window.analogModal.hide()}else _this2.setState({blockImported:!0})}).catch(function(error){add(error.message,"error","import-error",!1),_this2.setState({modalActive:!1,activeBlock:!1})})}},{key:"getItemCount",value:function(category){var blocks=this.context.state.blocks,foundItems=blocks.filter(function(block){return block.tags.indexOf(category)>-1});return!!foundItems&&foundItems.length}},{key:"render",value:function(){var _this3=this,dataSet={state:this.state,dispatch:function(action){return _this3.setState(action)}};return React.createElement(Fragment,null,React.createElement(LibraryWrapper,null,React.createElement(__WEBPACK_IMPORTED_MODULE_5__Sidebar__.a,{state:dataSet}),React.createElement(__WEBPACK_IMPORTED_MODULE_4__BlockList__.a,{state:dataSet,importBlock:this.importBlock,favorites:this.context.state.blockFavorites,makeFavorite:this.makeFavorite})))}}]),Blocks}(Component);_defineProperty(Blocks,"contextType",__WEBPACK_IMPORTED_MODULE_1__AnalogContext__.a)},function(module,__webpack_exports__,__webpack_require__){"use strict";function _templateObject3(){var data=_taggedTemplateLiteral(['\n\tflex: 1;\n\tmargin-left: 25px;\n\n\t.grid {\n\t\tdisplay: flex;\n\t\tmargin-left: -25px; /* gutter size offset */\n\t\twidth: auto;\n\t}\n\n\t.grid-item {\n\t\tpadding-left: 25px;\n\t\tbackground-clip: padding-box;\n\n\t\t&:empty {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t> div {\n\t\t\tbackground: #fff;\n\t\t\tbox-shadow: 0px 5px 20px rgba(0, 0, 0, 0.05);\n\t\t\tposition: relative;\n\t\t\tmargin-bottom: 25px;\n\t\t}\n\t}\n\n\tfigure {\n\t\tposition: relative;\n\t\toverflow: hidden;\n\t\tmargin: 0;\n\t\tmin-height: 150px;\n\t\tdisplay: flex;\n\n\t\t&:hover {\n\t\t\t.actions {\n\t\t\t\topacity: 1;\n\t\t\t\tbutton {\n\t\t\t\t\ttransform: none;\n\t\t\t\t\topacity: 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t.favorite {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\n\t\t.pattern-title {\n\t\t\tposition: absolute;\n\t\t\tbottom: 10px;\n\t\t\ttext-align: center;\n\t\t\twidth: 100%;\n\t\t\tfont-size: 14px !important;\n\t\t\ttext-transform: capitalize;\n\t\t}\n\n\t\t.actions {\n\t\t\tbutton {\n\t\t\t\ttransform: translateY(20px);\n\t\t\t\topacity: 0;\n\t\t\t}\n\t\t\t.ang-promo {\n\t\t\t\ttext-decoration: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t.favorite {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tz-index: 200;\n\t\tdisplay: inline-flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\twidth: 25px;\n\t\theight: 25px;\n\t\tbox-shadow: none !important;\n\t\toutline: none !important;\n\n\t\t&:not(.is-active) {\n\t\t\topacity: 0;\n\t\t}\n\n\t\t&:before {\n\t\t\tcontent: \'\';\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder-style: solid;\n\t\t\tborder-width: 42px 42px 0 0;\n\t\t\tborder-color: var(--ang-dark-bg) transparent transparent transparent;\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tz-index: 190;\n\t\t}\n\n\t\tsvg {\n\t\t\tfill: #fff;\n\t\t\tposition: relative;\n\t\t\tz-index: 195;\n\t\t\twidth: 17px;\n\t\t\theight: 17px;\n\t\t}\n\t\t&.is-active svg {\n\t\t\tfill: #FFB443;\n\t\t}\n\t}\n\n\timg {\n\t\tmax-width: 100%;\n\t\theight: auto;\n\t\talign-self: center;\n\t}\n\n\timg[src$="svg"] {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tobject-fit: cover;\n\t\tmax-height: 150px;\n\t}\n\n\th3 {\n\t\tmargin: 0;\n\t\tfont-weight: normal;\n\t\tfont-size: 16px;\n\t\tline-height: 21px;\n\t}\n\n\t .content {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\talign-items: center;\n\t}\n\n\t .components-base-control {\n\t\tmargin-bottom: 30px;\n\t}\n\n\t.components-text-control__input, .components-text-control__input[type="text"] {\n\t\tbackground-color: #fff;\n\t\tcolor: #060606;\n\t\tfont-size: 16px;\n\t}\n\n\t.button-plain {\n\t\tpadding: 0;\n\t\tmargin: 0;\n\t\tborder: none;\n\t\tborder-radius: 0;\n\t\tbox-shadow: none;\n\t\tcursor: pointer;\n\t\tappearance: none;\n\t\toutline: 0;\n\t\tbackground: transparent;\n\t\tfont-weight: bold;\n\t\tcolor: #060606;\n\t\tfont-size: 14.22px;\n\t}\n\t.inner-popup-header {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\talign-items: center;\n\t\tposition: sticky;\n\t\tbackground: #fff;\n\t}\n\t.inner-popup-header h1 {\n\t\tfont-size: 16px;\n\t\tfont-weight: bold;\n\t\tcolor: #000000;\n\t\tmargin: 0;\n\t}\n\t.inner-popup-content p {\n\t\tfont-size: 13px;\n\t\tline-height: 18px;\n\t\tcolor: #565d65;\n\t}\n']);return _templateObject3=function(){return data},data}function _templateObject2(){var data=_taggedTemplateLiteral(['\n\tdisplay: flex;\n\tmargin-left: -25px;\n\twidth: auto;\n\n\timg[src$="svg"].thumb {\n\t\twidth: 33.3333%;\n\t\tpadding-left: 25px;\n\t\tbackground-clip: padding-box;\n\t\tmax-height: 300px;\n\t\tobject-fit: cover;\n\t\tobject-position: top;\n\t\topacity: 0.7;\n\t\ttransition: all 200ms ease-in-out;\n\t\tanimation: '," 2s linear infinite;\n\t}\n"]);return _templateObject2=function(){return data},data}function _templateObject(){var data=_taggedTemplateLiteral(["\n  0% {\n    opacity: 0.7;\n  }\n\n  50% {\n    opacity: 0.1;\n  }\n\n  100% {\n    opacity: 0.7;\n  }\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var __WEBPACK_IMPORTED_MODULE_0_classnames__=__webpack_require__(5),__WEBPACK_IMPORTED_MODULE_0_classnames___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__),__WEBPACK_IMPORTED_MODULE_1_react_masonry_css__=__webpack_require__(71),__WEBPACK_IMPORTED_MODULE_1_react_masonry_css___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_masonry_css__),__WEBPACK_IMPORTED_MODULE_2_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_3__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_5__Notifications__=(__webpack_require__(13),__webpack_require__(6)),__WEBPACK_IMPORTED_MODULE_6__icons_star__=__webpack_require__(24),__WEBPACK_IMPORTED_MODULE_7__popup__=__webpack_require__(26),__WEBPACK_IMPORTED_MODULE_8__icons_loader__=__webpack_require__(25),__WEBPACK_IMPORTED_MODULE_9__ProModal__=__webpack_require__(34),__WEBPACK_IMPORTED_MODULE_10__helpers_Empty__=__webpack_require__(27),decodeEntities=wp.htmlEntities.decodeEntities,_wp$i18n=wp.i18n,__=_wp$i18n.__,sprintf=_wp$i18n.sprintf,_wp$components=wp.components,Dashicon=_wp$components.Dashicon,Button=_wp$components.Button,Card=_wp$components.Card,CardBody=_wp$components.CardBody,CardFooter=_wp$components.CardFooter,addQueryArgs=wp.url.addQueryArgs,rotateOpacity=Object(__WEBPACK_IMPORTED_MODULE_2_styled_components__.b)(_templateObject()),Container=(__WEBPACK_IMPORTED_MODULE_2_styled_components__.a.div(_templateObject2(),rotateOpacity),__WEBPACK_IMPORTED_MODULE_2_styled_components__.a.div(_templateObject3())),BlockList=function(_ref){var state=_ref.state,importBlock=_ref.importBlock,favorites=_ref.favorites,makeFavorite=_ref.makeFavorite,context=React.useContext(__WEBPACK_IMPORTED_MODULE_3__AnalogContext__.a),filteredBlocks=context.state.blocks.filter(function(block){return!("valid"!==AGWP.license.status&&context.state.showFree&&Boolean(block.is_pro))}),isValid=(AGWP.pluginURL,function(isPro){return!(isPro&&"valid"!==AGWP.license.status)}),breakpointColumnsObj={default:5,2e3:4,1600:3,1300:2,900:1},getScreenshot=function(block){return AGWP.isContainer?block.thumbnail||AGWP.blockMediaURL+"patterns/".concat(block.id,".webp?modified=").concat(block.modified):AGWP.blockMediaURL+block.id+".jpg"};return React.createElement(React.Fragment,null,state.state.modalActive&&React.createElement(__WEBPACK_IMPORTED_MODULE_7__popup__.a,{title:decodeEntities(state.state.activeBlock.title),style:{textAlign:"center"},onRequestClose:function(){state.dispatch({activeBlock:!1,modalActive:!1,blockImported:!1})}},!state.state.blockImported&&React.createElement(__WEBPACK_IMPORTED_MODULE_8__icons_loader__.a,null),state.state.blockImported&&React.createElement(React.Fragment,null,React.createElement("p",null,sprintf(__("The %s has been imported and is now available in the","ang"),AGWP.isContainer?"container":"section")," ",React.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:addQueryArgs("edit.php",{post_type:"elementor_library",tabs_group:!0,elementor_library_type:AGWP.isContainer?"container":"section"})},sprintf(__("Elementor %s library","ang"),AGWP.isContainer?"container":"section")),"."),React.createElement("p",null,React.createElement(Button,{isPrimary:!0,onClick:function(){state.dispatch({activeBlock:!1,modalActive:!1,blockImported:!1})}},__("Ok, thanks","ang")," ",React.createElement(Dashicon,{icon:"yes"}))))),React.createElement(Container,{className:"blocks-area"},"valid"!==AGWP.license.status&&React.createElement(__WEBPACK_IMPORTED_MODULE_9__ProModal__.a,null),!context.state.syncing&&context.state.blocks.length<1&&React.createElement(__WEBPACK_IMPORTED_MODULE_10__helpers_Empty__.a,{text:AGWP.isContainer?__("No patterns found","ang"):__("No blocks found","ang")}),context.state.syncing&&context.state.blocks.length<1&&React.createElement(__WEBPACK_IMPORTED_MODULE_10__helpers_Empty__.a,{text:AGWP.isContainer?__("Loading Patterns...","ang"):__("Loading Blocks...","ang")}),React.createElement(__WEBPACK_IMPORTED_MODULE_1_react_masonry_css___default.a,{breakpointCols:Boolean(AGWP.is_settings_page)?breakpointColumnsObj:3,className:"grid",columnClassName:"grid-item block-list"},filteredBlocks.length>=1&&filteredBlocks.map(function(block){var requiresElementorPro=!1;if(block.requiredPlugins&&block.requiredPlugins.length>0){var unresolvedPlugins=block.requiredPlugins.filter(function(plugin){return""!==plugin&&!AGWP.activePlugins.includes(plugin)});if(unresolvedPlugins.length>0&&!unresolvedPlugins.includes("elementor-pro"))return null;requiresElementorPro=unresolvedPlugins&&unresolvedPlugins.includes("elementor-pro")}return React.createElement("div",{key:block.id},React.createElement(Card,null,React.createElement(CardBody,null,block.is_pro&&React.createElement("span",{className:"pro"},__("Pro","ang")),React.createElement("figure",null,React.createElement("img",{src:getScreenshot(block),loading:"lazy",width:"720",height:"100",alt:block.title}),React.createElement("div",{className:"actions"},!isValid(block.is_pro)&&React.createElement("a",{className:"ang-promo",href:"https://analogwp.com/style-kits-pro/?utm_medium=plugin&utm_source=library&utm_campaign=style+kits+pro",target:"_blank"},React.createElement(Button,{isPrimary:!0},__("Go Pro","ang"))),isValid(block.is_pro)&&requiresElementorPro&&React.createElement("a",{className:"ang-requirements",href:"https://analogwp.com/style-kits-pro/?utm_medium=plugin&utm_source=library&utm_campaign=style+kits+pro",target:"_blank"},React.createElement("img",{className:"required-logo",src:AGWP.pluginURL+"/assets/img/elementor.svg"}),React.createElement("h4",{className:"title"},"Elementor PRO"),React.createElement("p",{className:"description"},"This pattern is using Elementor PRO widgets.")),React.createElement(__WEBPACK_IMPORTED_MODULE_5__Notifications__.a,null,function(_ref2){var add=_ref2.add;return!requiresElementorPro&&isValid(block.is_pro)&&React.createElement(Button,{isPrimary:!0,onClick:function(){return importBlock(block,add)}},__("Import","ang"))}),AGWP.isContainer&&React.createElement("div",{className:"pattern-title"},React.createElement("h3",null,decodeEntities(block.title)))),React.createElement("button",{className:__WEBPACK_IMPORTED_MODULE_0_classnames___default()("button-plain favorite",{"is-active":block.id in favorites}),onClick:function(){return makeFavorite(block.id)}},React.createElement(__WEBPACK_IMPORTED_MODULE_6__icons_star__.a,null)))),!AGWP.isContainer&&React.createElement(CardFooter,null,React.createElement("div",{className:"content"},React.createElement("h3",null,decodeEntities(block.title)),block.is_pro&&React.createElement("span",{className:"pro"},__("Pro","ang"))))))}))))};__webpack_exports__.a=BlockList},function(module,exports,__webpack_require__){"use strict";function _objectWithoutProperties(obj,keys){var target={};for(var i in obj)keys.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(obj,i)&&(target[i]=obj[i]);return target}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}Object.defineProperty(exports,"__esModule",{value:!0});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_react=__webpack_require__(3),_react2=function(obj){return obj&&obj.__esModule?obj:{default:obj}}(_react),defaultProps={breakpointCols:void 0,className:void 0,columnClassName:void 0,children:void 0,columnAttrs:void 0,column:void 0},DEFAULT_COLUMNS=2,Masonry=function(_React$Component){function Masonry(props){_classCallCheck(this,Masonry);var _this=_possibleConstructorReturn(this,(Masonry.__proto__||Object.getPrototypeOf(Masonry)).call(this,props));_this.reCalculateColumnCount=_this.reCalculateColumnCount.bind(_this),_this.reCalculateColumnCountDebounce=_this.reCalculateColumnCountDebounce.bind(_this);var columnCount=void 0;return columnCount=_this.props.breakpointCols&&_this.props.breakpointCols.default?_this.props.breakpointCols.default:parseInt(_this.props.breakpointCols)||DEFAULT_COLUMNS,_this.state={columnCount:columnCount},_this}return _inherits(Masonry,_React$Component),_createClass(Masonry,[{key:"componentDidMount",value:function(){this.reCalculateColumnCount(),window&&window.addEventListener("resize",this.reCalculateColumnCountDebounce)}},{key:"componentDidUpdate",value:function(){this.reCalculateColumnCount()}},{key:"componentWillUnmount",value:function(){window&&window.removeEventListener("resize",this.reCalculateColumnCountDebounce)}},{key:"reCalculateColumnCountDebounce",value:function(){var _this2=this;if(!window||!window.requestAnimationFrame)return void this.reCalculateColumnCount();window.cancelAnimationFrame&&window.cancelAnimationFrame(this._lastRecalculateAnimationFrame),this._lastRecalculateAnimationFrame=window.requestAnimationFrame(function(){_this2.reCalculateColumnCount()})}},{key:"reCalculateColumnCount",value:function(){var windowWidth=window&&window.innerWidth||1/0,breakpointColsObject=this.props.breakpointCols;"object"!==(void 0===breakpointColsObject?"undefined":_typeof(breakpointColsObject))&&(breakpointColsObject={default:parseInt(breakpointColsObject)||DEFAULT_COLUMNS});var matchedBreakpoint=1/0,columns=breakpointColsObject.default||DEFAULT_COLUMNS;for(var breakpoint in breakpointColsObject){var optBreakpoint=parseInt(breakpoint);optBreakpoint>0&&windowWidth<=optBreakpoint&&optBreakpoint<matchedBreakpoint&&(matchedBreakpoint=optBreakpoint,columns=breakpointColsObject[breakpoint])}columns=Math.max(1,parseInt(columns)||1),this.state.columnCount!==columns&&this.setState({columnCount:columns})}},{key:"itemsInColumns",value:function(){for(var currentColumnCount=this.state.columnCount,itemsInColumns=new Array(currentColumnCount),items=[].concat(this.props.children||[]),i=0;i<items.length;i++){var columnIndex=i%currentColumnCount;itemsInColumns[columnIndex]||(itemsInColumns[columnIndex]=[]),itemsInColumns[columnIndex].push(items[i])}return itemsInColumns}},{key:"renderColumns",value:function(){var _props=this.props,column=_props.column,_props$columnAttrs=_props.columnAttrs,columnAttrs=void 0===_props$columnAttrs?{}:_props$columnAttrs,columnClassName=_props.columnClassName,childrenInColumns=this.itemsInColumns(),columnWidth=100/childrenInColumns.length+"%",className=columnClassName;"string"!=typeof className&&(this.logDeprecated('The property "columnClassName" requires a string'),void 0===className&&(className="my-masonry-grid_column"));var columnAttributes=_extends({},column,columnAttrs,{style:_extends({},columnAttrs.style,{width:columnWidth}),className:className});return childrenInColumns.map(function(items,i){return _react2.default.createElement("div",_extends({},columnAttributes,{key:i}),items)})}},{key:"logDeprecated",value:function(message){console.error("[Masonry]",message)}},{key:"render",value:function(){var _props2=this.props,className=(_props2.children,_props2.breakpointCols,_props2.columnClassName,_props2.columnAttrs,_props2.column,_props2.className),rest=_objectWithoutProperties(_props2,["children","breakpointCols","columnClassName","columnAttrs","column","className"]),classNameOutput=className;return"string"!=typeof className&&(this.logDeprecated('The property "className" requires a string'),void 0===className&&(classNameOutput="my-masonry-grid")),_react2.default.createElement("div",_extends({},rest,{className:classNameOutput}),this.renderColumns())}}]),Masonry}(_react2.default.Component);Masonry.defaultProps=defaultProps,exports.default=Masonry},function(module,__webpack_exports__,__webpack_require__){"use strict";function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(iter){if(Symbol.iterator in Object(iter)||"[object Arguments]"===Object.prototype.toString.call(iter))return Array.from(iter)}function _arrayWithoutHoles(arr){if(Array.isArray(arr)){for(var i=0,arr2=new Array(arr.length);i<arr.length;i++)arr2[i]=arr[i];return arr2}}function _templateObject(){var data=_taggedTemplateLiteral(['\n\twidth: 100%;\n\tmax-width: 220px;\n\theight: 100vh;\n\tposition: sticky;\n\tposition: -webkit-sticky;\n\ttop: 35px;\n\n\t.components-tab-panel__tabs {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t}\n\n\t.components-tab-panel__tabs > .components-button {\n\t\ttext-transform: capitalize;\n\t}\n\n\t.components-toggle-control\n\t.components-base-control__field {\n\t\tflex-direction: row-reverse;\n\t\tjustify-content: space-between;\n\t}\n\n\t.components-toggle-control\n\t.components-base-control__field\n\t.components-form-toggle {\n\t\tmargin-right: 0;\n\t}\n\n\t.components-toggle-control\n\t.components-base-control__field\n\t.components-toggle-control__label {\n\t\tpadding: 8px 0 10px;\n\t}\n\n\t.components-base-control.components-toggle-control {\n\t\tborder-bottom: 1px solid var(--ang-border);\n\t}\n\n\t.block-categories-tabs .components-button {\n\t\tborder-radius: 0;\n\t\tpadding: 10px 0;\n\t\tfont-size: 16px;\n\t\tcolor: #060606;\n\t\tjustify-content: space-between;\n\t}\n\n\t.block-categories-tabs .components-button > span {\n\t\tcolor: rgba(0, 0, 0, 0.44);\n\t\tfont-size: 14.22px;\n\t\tfont-weight: normal;\n\t}\n\n\t.block-categories-tabs .components-button.active-tab {\n\t\tbox-shadow: none;\n\t\tfont-weight: bold;\n\t\tcolor: var(--ang-primary) !important;\n\t}\n\n\t.block-categories-tabs\n\t.components-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link):hover,\n\t.components-button:focus:not(:disabled) {\n\t\tbackground-color: transparent;\n\t\toutline: none;\n\t\tbox-shadow: none;\n\t}\n\n\t.block-categories-tabs .components-button:not([aria-disabled=true]):active {\n\t\tcolor: var(--ang-primary) !important;\n\t}\n\n\t.block-categories-tabs label,\n\t.components-toggle-control\n\t.components-base-control__field\n\t.components-toggle-control__label {\n\t\tfont-size: 16px;\n\t\tcolor: #060606;\n\t}\n\n\t.block-categories-tabs {\n\t\tpadding-right: 10px;\n\t}\n']);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var __WEBPACK_IMPORTED_MODULE_0_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_1__AnalogContext__=__webpack_require__(2),__=wp.i18n.__,_wp$components=wp.components,TextControl=_wp$components.TextControl,TabPanel=_wp$components.TabPanel,ToggleControl=_wp$components.ToggleControl,blockIdentifier=(_wp$components.Button,AGWP.isContainer?"all-patterns":"all-blocks"),defaultTabs=["favorites",blockIdentifier],SidebarWrapper=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.div(_templateObject()),Sidebar=function(_ref){var context=(_ref.state,React.useContext(__WEBPACK_IMPORTED_MODULE_1__AnalogContext__.a)),categories=_toConsumableArray(new Set(context.state.blockArchive.map(function(block){return block.tags[0]}))),filteredBlocks=context.state.blockArchive,favoriteBlocks=filteredBlocks.filter(function(t){return t.id in context.state.blockFavorites}),onSelect=function(tab){context.dispatch({blocksTab:tab});var selectFilteredBlocks=filteredBlocks;"favorites"===tab&&(selectFilteredBlocks=favoriteBlocks),"favorites"!==tab&&tab!==blockIdentifier&&(selectFilteredBlocks=context.state.blockArchive.filter(function(block){return block.tags.indexOf(tab)>-1}));var blocksSearchInput=context.state.blocksSearchInput;blocksSearchInput&&(selectFilteredBlocks=context.state.itemFilteredWithSearchTerm(selectFilteredBlocks,blocksSearchInput)),context.dispatch({blocks:selectFilteredBlocks})},getItemCount=function(tab){var blocks=context.state.blockArchive,blocksSearchInput=context.state.blocksSearchInput,foundItems=[];return tab===blockIdentifier&&(foundItems=context.state.blockArchive),"favorites"===tab&&(foundItems=favoriteBlocks),tab!==blockIdentifier&&"favorites"!==tab&&(foundItems=blocks.filter(function(block){return block.tags.indexOf(tab)>-1})),"valid"!==AGWP.license.status&&context.state.showFree&&(foundItems=foundItems.filter(function(block){return!block.is_pro})),blocksSearchInput&&(foundItems=context.state.itemFilteredWithSearchTerm(foundItems,blocksSearchInput)),!!foundItems&&foundItems.length},categoriesData=function(){return defaultTabs.concat(categories.sort())},titleGenerator=function(title){var count=getItemCount(title),countTemplate=count>0?count:0;return["".concat(title.replace(/-/g," ")," "),React.createElement("span",{key:title},countTemplate)]},tabGenerator=function(tabsArray){return tabsArray.filter(function(tab){return getItemCount(tab)>0}).map(function(item){return{name:item,title:titleGenerator(item),className:"tab-".concat(item)}})};return React.createElement(SidebarWrapper,{className:"sidebar"},React.createElement(TextControl,{placeholder:AGWP.isContainer?__("Search Patterns","ang"):__("Search Blocks","ang"),value:context.state.blocksSearchInput,onChange:function(value){context.handleSearch(value,"patterns"),context.dispatch({blocksSearchInput:value})}}),"valid"!==AGWP.license.status&&React.createElement(ToggleControl,{label:AGWP.isContainer?__("Show Pro Patterns","ang"):__("Show Pro Blocks","ang"),checked:!context.state.showFree,onChange:function(){context.dispatch({showFree:!context.state.showFree}),window.localStorage.setItem("analog::show-free",!context.state.showFree)}}),tabGenerator(categoriesData()).length>=1&&React.createElement(TabPanel,{className:"block-categories-tabs",activeClass:"active-tab",initialTabName:context.state.blocksTab,onSelect:onSelect,tabs:tabGenerator(categoriesData())},function(tab){return null}))};__webpack_exports__.a=Sidebar},function(module,__webpack_exports__,__webpack_require__){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}var gen=fn.apply(self,args);_next(void 0)})}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _possibleConstructorReturn(self,call){return!call||"object"!==_typeof(call)&&"function"!=typeof call?_assertThisInitialized(self):call}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _templateObject(){var data=_taggedTemplateLiteral(["\n\t.templates-list {\n\t\t&.hide {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\tli {\n\t\t\tbackground: #fff;\n\t\t\tposition: relative;\n\t\t\tborder-radius: 4px;\n\t\t}\n\n\t\t.new {\n\t\t\tposition: absolute;\n\t\t\ttop: -8px;\n\t\t\tright: -8px;\n\t\t\tbackground: var(--ang-primary);\n\t\t\tcolor: #fff;\n\t\t\tz-index: 110;\n\t\t\tfont-weight: bold;\n\t\t\tpadding: 8px 10px;\n\t\t\tline-height: 1;\n\t\t\tborder-radius: 4px;\n\t\t\ttext-transform: uppercase;\n\t\t\tfont-size: 14.22px;\n\t\t\tletter-spacing: .5px;\n\t\t}\n\n\t\t.new {\n\t\t\tbackground: ",";\n\t\t}\n\n\t\tp {\n\t\t\tcolor: #939393;\n\t\t\tfont-size: 10px;\n\t\t\tmargin: 0;\n\t\t\tfont-weight: 500;\n\t\t}\n\n\t\t.content {\n\t\t\tsvg {\n\t\t\t\tfill: #d0d0d0;\n\t\t\t\ttransition: all 100ms ease-in;\n\t\t\t}\n\n\t\t\tbutton:hover,\n\t\t\tbutton.is-active {\n\t\t\t\tsvg {\n\t\t\t\t\tfill: #FFB443;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\th3 {\n\t\t\tfont-size: inherit;\n\t\t\ttext-transform: capitalize;\n\t\t\tmargin: 0;\n\t\t\tfont-weight: bold;\n\t\t}\n\n\t\timg {\n\t\t\twidth: 100%;\n\t\t\theight: auto;\n\t\t\tborder-top-left-radius: 4px;\n\t\t\tborder-top-right-radius: 4px;\n\t\t\tvertical-align: middle;\n\t\t}\n\n\t\tfigure {\n\t\t\tmargin: 0;\n\t\t\tposition: relative;\n\t\t\tmin-height: 100px;\n\n\t\t\t&:hover {\n\t\t\t\t.actions {\n\t\t\t\t\topacity: 1;\n\t\t\t\t\tbutton {\n\t\t\t\t\t\ttransform: none;\n\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t.favorite {\n\t\t\t\t\topacity: 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.actions button {\n\t\t\topacity: 0;\n\n\t\t\t&:nth-child(1) {\n\t\t\t\ttransform: translateX(-20px);\n\t\t\t}\n\t\t\t&:nth-child(2) {\n\t\t\t\ttransform: translateX(20px);\n\t\t\t}\n\n\t\t\t+ button, + .ang-promo {\n\t\t\t\tmargin-top: 10px;\n\t\t\t\ttext-decoration: none;\n\t\t\t}\n\t\t}\n\n\t\t.favorite {\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tz-index: 200;\n\t\t\tdisplay: inline-flex;\n\t\t\tjustify-content: center;\n\t\t\talign-items: center;\n\t\t\twidth: 25px;\n\t\t\theight: 25px;\n\n\t\t\t&:not(.is-active) {\n\t\t\t\topacity: 0;\n\t\t\t}\n\n\t\t\t&:before {\n\t\t\t\tcontent: '';\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\t\t\t\tborder-style: solid;\n\t\t\t\tborder-width: 42px 42px 0 0;\n\t\t\t\tborder-color: var(--ang-dark-bg) transparent transparent transparent;\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\tz-index: 190;\n\t\t\t}\n\n\t\t\tsvg {\n\t\t\t\tfill: #fff;\n\t\t\t\tposition: relative;\n\t\t\t\tz-index: 195;\n\t\t\t}\n\t\t\t&.is-active svg {\n\t\t\t\tfill: #FFB443;\n\t\t\t}\n\t\t}\n\t}\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var __WEBPACK_IMPORTED_MODULE_0_classnames__=__webpack_require__(5),__WEBPACK_IMPORTED_MODULE_0_classnames___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__),__WEBPACK_IMPORTED_MODULE_1_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_2__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_3__api__=__webpack_require__(4),__WEBPACK_IMPORTED_MODULE_4__collection_Collection__=__webpack_require__(74),__WEBPACK_IMPORTED_MODULE_5__contexts_ThemeContext__=__webpack_require__(12),__WEBPACK_IMPORTED_MODULE_6__helpers_Empty__=__webpack_require__(27),__WEBPACK_IMPORTED_MODULE_7__Modal__=__webpack_require__(85),__WEBPACK_IMPORTED_MODULE_8__popups_ImportTemplate__=__webpack_require__(86),__WEBPACK_IMPORTED_MODULE_9__Template__=__webpack_require__(35),__WEBPACK_IMPORTED_MODULE_10__ProModal__=__webpack_require__(34),__=wp.i18n.__,TemplatesContainer=__WEBPACK_IMPORTED_MODULE_1_styled_components__.a.div(_templateObject(),__WEBPACK_IMPORTED_MODULE_5__contexts_ThemeContext__.a.accent),initialState={template:null,pageName:null,showingModal:!1,importing:!1,importedPage:!1,importingElementor:!1,kit:!1},Templates=function(_React$Component){function Templates(){var _this;return _classCallCheck(this,Templates),_this=_possibleConstructorReturn(this,_getPrototypeOf(Templates).apply(this,arguments)),_defineProperty(_assertThisInitialized(_this),"closeOnEsc",function(event){27===event.keyCode&&_this.resetState()}),_defineProperty(_assertThisInitialized(_this),"setModalContent",function(template){window.scrollTo(0,0),_this.context.dispatch({isOpen:!_this.context.state.isOpen}),_this.setState({template:template})}),_defineProperty(_assertThisInitialized(_this),"makeFavorite",function(id){var favorites=_this.context.state.favorites;if(_this.context.markFavorite(id,!(id in favorites)),id in favorites?delete favorites[id]:favorites[id]=!(id in favorites),_this.context.dispatch({favorites:favorites}),_this.context.state.showing_favorites){var filteredTemplates=_this.context.state.templates.filter(function(t){return t.id in favorites});_this.context.dispatch({templates:filteredTemplates})}}),_defineProperty(_assertThisInitialized(_this),"handleImport",function(){var _ref=_asyncToGenerator(regeneratorRuntime.mark(function _callee(add){var withPage,kit,version,_args=arguments;return regeneratorRuntime.wrap(function(_context){for(;;)switch(_context.prev=_context.next){case 0:if(withPage=_args.length>1&&void 0!==_args[1]&&_args[1],_this.setState({importing:!0}),kit=_this.getStyleKitInfo(),!((version=_this.state.template.version)&&parseFloat(AGWP.version)<parseFloat(version))){_context.next=8;break}return _this.resetState(),add(__("This template requires an updated version, please update your plugin to latest version.","ang"),"error","ang","import-error",!1),_context.abrupt("return");case 8:return _context.next=10,Object(__WEBPACK_IMPORTED_MODULE_3__api__.e)(_this.state.template,withPage,kit).then(function(response){_this.setState({importedPage:response.page})}).catch(function(error){_this.resetState(),error.data&&error.data.errors?add(error.data.errors[Object.keys(error.data.errors)[0]],"error","import-error",!1):add(error.message,"error","import-error",!1)});case 10:case"end":return _context.stop()}},_callee)}));return function(_x){return _ref.apply(this,arguments)}}()),_defineProperty(_assertThisInitialized(_this),"canImportTemplate",function(template){return template||(template=_this.state.template),!template.is_pro||!(!template.is_pro||"valid"!==AGWP.license.status)}),_defineProperty(_assertThisInitialized(_this),"importLayout",function(template){template?_this.setState({template:template}):template=_this.state.template,_this.setState({showingModal:!0})}),_this.state=initialState,_this.handler=_this.handler.bind(_assertThisInitialized(_this)),_this.handleImport=_this.handleImport.bind(_assertThisInitialized(_this)),_this.getStyleKitInfo=_this.getStyleKitInfo.bind(_assertThisInitialized(_this)),_this}return _inherits(Templates,_React$Component),_createClass(Templates,[{key:"resetState",value:function(){this.context.dispatch({isOpen:!1}),this.setState(initialState)}},{key:"handler",value:function(value){this.setState(value)}},{key:"componentDidMount",value:function(){AGWP.isGlobalSkEnabled&&this.setState({kit:AGWP.globalKit[0].value}),window.addEventListener("keyup",this.closeOnEsc)}},{key:"componentWillUnmount",value:function(){this.resetState(),window.removeEventListener("keyup",this.closeOnEsc)}},{key:"getStyleKitInfo",value:function(){var _this2=this,isKitInstalled=this.context.state.installedKits.filter(function(k){return _this2.state.kit===k}),method=isKitInstalled.length>0?"insert":"import",data="insert"===method?this.state.kit:this.context.state.styleKits.find(function(k){return k.title===_this2.state.kit});return void 0===data&&(data=!1),{method:method,data:data}}},{key:"render",value:function(){var _this3=this;return React.createElement(TemplatesContainer,{className:__WEBPACK_IMPORTED_MODULE_0_classnames___default()({hide:this.state.template&&this.state.showingModal&&!this.canImportTemplate(),"preview-active":this.context.state.isOpen})},this.context.state.isOpen&&React.createElement(__WEBPACK_IMPORTED_MODULE_7__Modal__.a,{template:this.state.template,onRequestClose:function(){return _this3.context.dispatch({isOpen:!1})},onRequestImport:function(){return _this3.importLayout()}}),null!==this.state.template&&this.canImportTemplate()&&this.state.showingModal&&React.createElement(__WEBPACK_IMPORTED_MODULE_8__popups_ImportTemplate__.a,{onRequestClose:function(){return _this3.resetState()},state:this.state,handleImport:this.handleImport,handler:this.handler,getStyleKitInfo:this.getStyleKitInfo}),"valid"!==AGWP.license.status&&React.createElement(__WEBPACK_IMPORTED_MODULE_10__ProModal__.a,null),!this.context.state.isOpen&&this.context.state.templates.length<1&&React.createElement(__WEBPACK_IMPORTED_MODULE_6__helpers_Empty__.a,null),this.context.state.group?React.createElement(__WEBPACK_IMPORTED_MODULE_4__collection_Collection__.a,{setModalContent:this.setModalContent,importLayout:this.importLayout,makeFavorite:this.makeFavorite}):React.createElement("ul",{className:__WEBPACK_IMPORTED_MODULE_0_classnames___default()("templates-list",{hide:this.state.template&&this.state.showingModal&&!this.canImportTemplate()})},!this.context.state.isOpen&&this.context.state.count>=1&&this.context.state.templates.map(function(template){if("valid"!==AGWP.license.status){var isPro=!1===_this3.context.state.showFree&&!0===_this3.context.state.showPro&&!0===Boolean(template.is_pro),isFree=!0===_this3.context.state.showFree&&!1===_this3.context.state.showPro&&!1===Boolean(template.is_pro),isAll=!0===_this3.context.state.showFree&&!0===_this3.context.state.showPro;if(!(isPro||isFree||isAll))return}return React.createElement(__WEBPACK_IMPORTED_MODULE_9__Template__.a,{key:"".concat(template.id,"-").concat(template.site_id),template:template,favorites:_this3.context.state.favorites,setModalContent:_this3.setModalContent,importLayout:_this3.importLayout,makeFavorite:_this3.makeFavorite})})))}}]),Templates}(React.Component);Templates.contextType=__WEBPACK_IMPORTED_MODULE_2__AnalogContext__.a,__webpack_exports__.a=Templates},function(module,__webpack_exports__,__webpack_require__){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _possibleConstructorReturn(self,call){return!call||"object"!==_typeof(call)&&"function"!=typeof call?_assertThisInitialized(self):call}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _templateObject(){var data=_taggedTemplateLiteral(["\n\tli {\n\t\tbackground: #fff;\n\t\tposition: relative;\n\t\tborder-radius: 4px;\n\t\tposition: relative;\n\t}\n\tfigure {\n\t\tmargin: 0;\n\t\tposition: relative;\n\t\tmin-height: 100px;\n\t\t&:hover .actions {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\timg {\n\t\twidth: 100%;\n\t\theight: auto;\n\t\tborder-top-left-radius: 4px;\n\t\tborder-top-right-radius: 4px;\n\t\tvertical-align: middle;\n\t}\n\n\t.actions {\n\t\tbutton.is-large {\n\t\t\tfont-size: 24px;\n\t\t\theight: 48px;\n\t\t}\n\t}\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}__webpack_require__.d(__webpack_exports__,"a",function(){return Collection});var __WEBPACK_IMPORTED_MODULE_0_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_1__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_2__Template__=__webpack_require__(35),__=wp.i18n.__,_wp$components=wp.components,Button=_wp$components.Button,Card=_wp$components.Card,CardBody=_wp$components.CardBody,CardFooter=_wp$components.CardFooter,List=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.ul(_templateObject()),Collection=function(_React$Component){function Collection(){var _this;return _classCallCheck(this,Collection),_this=_possibleConstructorReturn(this,_getPrototypeOf(Collection).apply(this,arguments)),_this.getCollectionCount=_this.getCollectionCount.bind(_assertThisInitialized(_this)),_this.getGroupedCollection=_this.getGroupedCollection.bind(_assertThisInitialized(_this)),_this.getActiveKit=_this.getActiveKit.bind(_assertThisInitialized(_this)),_this}return _inherits(Collection,_React$Component),_createClass(Collection,[{key:"getGroupedCollection",value:function(){if(this.context.state.templates)return this.context.state.templates.reduce(function(accumulator,currentValue){return accumulator[currentValue.site_id]||(accumulator[currentValue.site_id]=[]),accumulator[currentValue.site_id].push(currentValue),accumulator},{})}},{key:"getCollectionCount",value:function(id){var collection=this.getGroupedCollection(),count=!1;if(collection[id]){var kit=collection[id];count=Object.keys(kit).length}return count}},{key:"getActiveKit",value:function(){var groupedCollection=this.getGroupedCollection(),activeKit=this.context.state.activeKit;return!!(activeKit&&activeKit.site_id in groupedCollection)&&groupedCollection[activeKit.site_id]}},{key:"render",value:function(){var _this2=this;return React.createElement("div",{className:"collection"},!this.context.state.activeKit&&React.createElement(List,{className:"templates-collection"},this.context.state.kits&&this.context.state.kits.map(function(kit){if(_this2.getCollectionCount(kit.site_id))return React.createElement("li",{key:kit.site_id},React.createElement(Card,null,React.createElement(CardBody,null,React.createElement("figure",null,React.createElement("img",{src:kit.thumbnail||AGWP.pluginURL+"assets/img/placeholder.svg",loading:"lazy",alt:kit.title}),React.createElement("div",{className:"actions"},React.createElement(Button,{isSecondary:!0,className:"black-transparent",onClick:function(){_this2.context.dispatch({activeKit:kit})}},__("View Templates","ang"))))),React.createElement(CardFooter,null,React.createElement("div",{className:"content"},React.createElement("h3",null,kit.title),React.createElement("span",null,_this2.getCollectionCount(kit.site_id))))))})),this.getActiveKit()&&React.createElement("ul",{className:"templates-list"},this.getActiveKit().map(function(template){if("valid"!==AGWP.license.status){var isPro=!1===_this2.context.state.showFree&&!0===_this2.context.state.showPro&&!0===Boolean(template.is_pro),isFree=!0===_this2.context.state.showFree&&!1===_this2.context.state.showPro&&!1===Boolean(template.is_pro),isAll=!0===_this2.context.state.showFree&&!0===_this2.context.state.showPro;if(!(isPro||isFree||isAll))return}return React.createElement(__WEBPACK_IMPORTED_MODULE_2__Template__.a,{key:template.id,template:template,favorites:_this2.context.state.favorites,setModalContent:_this2.props.setModalContent,importLayout:_this2.props.importLayout,makeFavorite:_this2.props.makeFavorite})})))}}]),Collection}(React.Component);Collection.contextType=__WEBPACK_IMPORTED_MODULE_1__AnalogContext__.a},function(module,__webpack_exports__,__webpack_require__){"use strict";function _extends(){return _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_extends.apply(this,arguments)}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit(arr,i){if(Symbol.iterator in Object(arr)||"[object Arguments]"===Object.prototype.toString.call(arr)){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=_objectWithoutPropertiesLoose(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++)key=sourceSymbolKeys[i],excluded.indexOf(key)>=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],excluded.indexOf(key)>=0||(target[key]=source[key]);return target}var __WEBPACK_IMPORTED_MODULE_0_react_waypoint__=__webpack_require__(76),Image=function(_ref){var template=_ref.template,attributes=_objectWithoutProperties(_ref,["template"]),thumbnail=template.thumbnail,title=template.title,_React$useState=React.useState(AGWP.pluginURL+"assets/img/placeholder.svg"),_React$useState2=_slicedToArray(_React$useState,2),image=_React$useState2[0],setImage=_React$useState2[1];return React.createElement(__WEBPACK_IMPORTED_MODULE_0_react_waypoint__.a,{onEnter:function(){setImage(thumbnail)}},React.createElement("img",_extends({src:image,loading:"lazy",width:"280",height:"390",alt:title},attributes)))};__webpack_exports__.a=Image},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(process,global){function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _possibleConstructorReturn(self,call){return!call||"object"!=typeof call&&"function"!=typeof call?_assertThisInitialized(self):call}function parseOffsetAsPercentage(str){if("%"===str.slice(-1))return parseFloat(str.slice(0,-1))/100}function parseOffsetAsPixels(str){return!isNaN(parseFloat(str))&&isFinite(str)?parseFloat(str):"px"===str.slice(-2)?parseFloat(str.slice(0,-2)):void 0}function computeOffsetPixels(offset,contextHeight){var pixelOffset=parseOffsetAsPixels(offset);if("number"==typeof pixelOffset)return pixelOffset;var percentOffset=parseOffsetAsPercentage(offset);return"number"==typeof percentOffset?percentOffset*contextHeight:void 0}function debugLog(){if("production"!==process.env.NODE_ENV){var _console;(_console=console).log.apply(_console,arguments)}}function isDOMElement(Component){return"string"==typeof Component.type}function ensureRefIsProvidedByChild(children,ref){if(children&&!isDOMElement(children)&&!ref)throw new Error(errorMessage)}function getCurrentPosition(bounds){return bounds.viewportBottom-bounds.viewportTop==0?INVISIBLE:bounds.viewportTop<=bounds.waypointTop&&bounds.waypointTop<=bounds.viewportBottom?INSIDE:bounds.viewportTop<=bounds.waypointBottom&&bounds.waypointBottom<=bounds.viewportBottom?INSIDE:bounds.waypointTop<=bounds.viewportTop&&bounds.viewportBottom<=bounds.waypointBottom?INSIDE:bounds.viewportBottom<bounds.waypointTop?BELOW:bounds.waypointTop<bounds.viewportTop?ABOVE:INVISIBLE}function onNextTick(cb){timeoutQueue.push(cb),timeout||(timeout=setTimeout(function(){timeout=null;for(var item;item=timeoutQueue.shift();)item()},0));var isSubscribed=!0;return function(){if(isSubscribed){isSubscribed=!1;var index=timeoutQueue.indexOf(cb);-1!==index&&(timeoutQueue.splice(index,1),!timeoutQueue.length&&timeout&&(clearTimeout(timeout),timeout=null))}}}function resolveScrollableAncestorProp(scrollableAncestor){return"window"===scrollableAncestor?global.window:scrollableAncestor}__webpack_require__.d(__webpack_exports__,"a",function(){return Waypoint});var timeout,__WEBPACK_IMPORTED_MODULE_0_consolidated_events__=__webpack_require__(78),__WEBPACK_IMPORTED_MODULE_1_prop_types__=__webpack_require__(79),__WEBPACK_IMPORTED_MODULE_1_prop_types___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__),__WEBPACK_IMPORTED_MODULE_2_react__=__webpack_require__(3),__WEBPACK_IMPORTED_MODULE_2_react___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__),__WEBPACK_IMPORTED_MODULE_3_react_is__=__webpack_require__(28),ABOVE=(__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react_is__),"above"),INSIDE="inside",BELOW="below",INVISIBLE="invisible",errorMessage="<Waypoint> needs a DOM element to compute boundaries. The child you passed is neither a DOM element (e.g. <div>) nor does it use the innerRef prop.\n\nSee https://goo.gl/LrBNgw for more info.",timeoutQueue=[],defaultProps={debug:!1,scrollableAncestor:void 0,children:void 0,topOffset:"0px",bottomOffset:"0px",horizontal:!1,onEnter:function(){},onLeave:function(){},onPositionChange:function(){},fireOnRapidScroll:!0},Waypoint=function(_React$PureComponent){function Waypoint(props){var _this;return _classCallCheck(this,Waypoint),_this=_possibleConstructorReturn(this,_getPrototypeOf(Waypoint).call(this,props)),_this.refElement=function(e){_this._ref=e},_this}return _inherits(Waypoint,_React$PureComponent),_createClass(Waypoint,[{key:"componentDidMount",value:function(){var _this2=this;Waypoint.getWindow()&&(this.cancelOnNextTick=onNextTick(function(){_this2.cancelOnNextTick=null;var _this2$props=_this2.props,children=_this2$props.children,debug=_this2$props.debug;ensureRefIsProvidedByChild(children,_this2._ref),_this2._handleScroll=_this2._handleScroll.bind(_this2),_this2.scrollableAncestor=_this2._findScrollableAncestor(),"production"!==process.env.NODE_ENV&&debug&&debugLog("scrollableAncestor",_this2.scrollableAncestor),_this2.scrollEventListenerUnsubscribe=Object(__WEBPACK_IMPORTED_MODULE_0_consolidated_events__.a)(_this2.scrollableAncestor,"scroll",_this2._handleScroll,{passive:!0}),_this2.resizeEventListenerUnsubscribe=Object(__WEBPACK_IMPORTED_MODULE_0_consolidated_events__.a)(window,"resize",_this2._handleScroll,{passive:!0}),_this2._handleScroll(null)}))}},{key:"componentDidUpdate",value:function(){var _this3=this;Waypoint.getWindow()&&this.scrollableAncestor&&(this.cancelOnNextTick||(this.cancelOnNextTick=onNextTick(function(){_this3.cancelOnNextTick=null,_this3._handleScroll(null)})))}},{key:"componentWillUnmount",value:function(){Waypoint.getWindow()&&(this.scrollEventListenerUnsubscribe&&this.scrollEventListenerUnsubscribe(),this.resizeEventListenerUnsubscribe&&this.resizeEventListenerUnsubscribe(),this.cancelOnNextTick&&this.cancelOnNextTick())}},{key:"_findScrollableAncestor",value:function(){var _this$props=this.props,horizontal=_this$props.horizontal,scrollableAncestor=_this$props.scrollableAncestor;if(scrollableAncestor)return resolveScrollableAncestorProp(scrollableAncestor);for(var node=this._ref;node.parentNode;){if((node=node.parentNode)===document.body)return window;var style=window.getComputedStyle(node),overflowDirec=horizontal?style.getPropertyValue("overflow-x"):style.getPropertyValue("overflow-y"),overflow=overflowDirec||style.getPropertyValue("overflow");if("auto"===overflow||"scroll"===overflow)return node}return window}},{key:"_handleScroll",value:function(event){if(this._ref){var bounds=this._getBounds(),currentPosition=getCurrentPosition(bounds),previousPosition=this._previousPosition,_this$props2=this.props,debug=_this$props2.debug,onPositionChange=_this$props2.onPositionChange,onEnter=_this$props2.onEnter,onLeave=_this$props2.onLeave,fireOnRapidScroll=_this$props2.fireOnRapidScroll;if("production"!==process.env.NODE_ENV&&debug&&(debugLog("currentPosition",currentPosition),debugLog("previousPosition",previousPosition)),this._previousPosition=currentPosition,previousPosition!==currentPosition){var callbackArg={currentPosition:currentPosition,previousPosition:previousPosition,event:event,waypointTop:bounds.waypointTop,waypointBottom:bounds.waypointBottom,viewportTop:bounds.viewportTop,viewportBottom:bounds.viewportBottom};onPositionChange.call(this,callbackArg),currentPosition===INSIDE?onEnter.call(this,callbackArg):previousPosition===INSIDE&&onLeave.call(this,callbackArg);var isRapidScrollDown=previousPosition===BELOW&&currentPosition===ABOVE,isRapidScrollUp=previousPosition===ABOVE&&currentPosition===BELOW;fireOnRapidScroll&&(isRapidScrollDown||isRapidScrollUp)&&(onEnter.call(this,{currentPosition:INSIDE,previousPosition:previousPosition,event:event,waypointTop:bounds.waypointTop,waypointBottom:bounds.waypointBottom,viewportTop:bounds.viewportTop,viewportBottom:bounds.viewportBottom}),onLeave.call(this,{currentPosition:currentPosition,previousPosition:INSIDE,event:event,waypointTop:bounds.waypointTop,waypointBottom:bounds.waypointBottom,viewportTop:bounds.viewportTop,viewportBottom:bounds.viewportBottom}))}}}},{key:"_getBounds",value:function(){var contextHeight,contextScrollTop,_this$props3=this.props,horizontal=_this$props3.horizontal,debug=_this$props3.debug,_this$_ref$getBoundin=this._ref.getBoundingClientRect(),left=_this$_ref$getBoundin.left,top=_this$_ref$getBoundin.top,right=_this$_ref$getBoundin.right,bottom=_this$_ref$getBoundin.bottom,waypointTop=horizontal?left:top,waypointBottom=horizontal?right:bottom;this.scrollableAncestor===window?(contextHeight=horizontal?window.innerWidth:window.innerHeight,contextScrollTop=0):(contextHeight=horizontal?this.scrollableAncestor.offsetWidth:this.scrollableAncestor.offsetHeight,contextScrollTop=horizontal?this.scrollableAncestor.getBoundingClientRect().left:this.scrollableAncestor.getBoundingClientRect().top),"production"!==process.env.NODE_ENV&&debug&&(debugLog("waypoint top",waypointTop),debugLog("waypoint bottom",waypointBottom),debugLog("scrollableAncestor height",contextHeight),debugLog("scrollableAncestor scrollTop",contextScrollTop));var _this$props4=this.props,bottomOffset=_this$props4.bottomOffset;return{waypointTop:waypointTop,waypointBottom:waypointBottom,viewportTop:contextScrollTop+computeOffsetPixels(_this$props4.topOffset,contextHeight),viewportBottom:contextScrollTop+contextHeight-computeOffsetPixels(bottomOffset,contextHeight)}}},{key:"render",value:function(){var _this4=this,children=this.props.children;if(!children)return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("span",{ref:this.refElement,style:{fontSize:0}});if(isDOMElement(children)||Object(__WEBPACK_IMPORTED_MODULE_3_react_is__.isForwardRef)(children)){var ref=function(node){_this4.refElement(node),children.ref&&("function"==typeof children.ref?children.ref(node):children.ref.current=node)};return __WEBPACK_IMPORTED_MODULE_2_react___default.a.cloneElement(children,{ref:ref})}return __WEBPACK_IMPORTED_MODULE_2_react___default.a.cloneElement(children,{innerRef:this.refElement})}}]),Waypoint}(__WEBPACK_IMPORTED_MODULE_2_react___default.a.PureComponent);"production"!==process.env.NODE_ENV&&(Waypoint.propTypes={children:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.element,debug:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,onEnter:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,onLeave:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,onPositionChange:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,fireOnRapidScroll:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,scrollableAncestor:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.any,horizontal:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,topOffset:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number]),bottomOffset:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number])}),Waypoint.above=ABOVE,Waypoint.below=BELOW,Waypoint.inside=INSIDE,Waypoint.invisible=INVISIBLE,Waypoint.getWindow=function(){if("undefined"!=typeof window)return window},Waypoint.defaultProps=defaultProps,Waypoint.displayName="Waypoint"}).call(__webpack_exports__,__webpack_require__(0),__webpack_require__(77))},function(module,exports){var g;g=function(){return this}();try{g=g||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(g=window)}module.exports=g},function(module,__webpack_exports__,__webpack_require__){"use strict";function testPassiveEventListeners(){if(!CAN_USE_DOM)return!1;if(!window.addEventListener||!window.removeEventListener||!Object.defineProperty)return!1;var supportsPassiveOption=!1;try{var opts=Object.defineProperty({},"passive",{get:function(){function get(){supportsPassiveOption=!0}return get}()}),noop=function(){};window.addEventListener("testPassiveEventSupport",noop,opts),window.removeEventListener("testPassiveEventSupport",noop,opts)}catch(e){}return supportsPassiveOption}function canUsePassiveEventListeners(){return void 0===memoized&&(memoized=testPassiveEventListeners()),memoized}function normalizeEventOptions(eventOptions){if(eventOptions)return canUsePassiveEventListeners()?eventOptions:!!eventOptions.capture}function eventOptionsKey(normalizedEventOptions){return normalizedEventOptions?!0===normalizedEventOptions?100:(normalizedEventOptions.capture<<0)+(normalizedEventOptions.passive<<1)+(normalizedEventOptions.once<<2):0}function ensureCanMutateNextEventHandlers(eventHandlers){eventHandlers.handlers===eventHandlers.nextHandlers&&(eventHandlers.nextHandlers=eventHandlers.handlers.slice())}function TargetEventHandlers(target){this.target=target,this.events={}}function addEventListener(target,eventName,listener,options){target[EVENT_HANDLERS_KEY]||(target[EVENT_HANDLERS_KEY]=new TargetEventHandlers(target));var normalizedEventOptions=normalizeEventOptions(options);return target[EVENT_HANDLERS_KEY].add(eventName,listener,normalizedEventOptions)}__webpack_require__.d(__webpack_exports__,"a",function(){return addEventListener});var CAN_USE_DOM=!("undefined"==typeof window||!window.document||!window.document.createElement),memoized=void 0;TargetEventHandlers.prototype.getEventHandlers=function(){function getEventHandlers(eventName,options){var key=String(eventName)+" "+String(eventOptionsKey(options));return this.events[key]||(this.events[key]={handlers:[],handleEvent:void 0},this.events[key].nextHandlers=this.events[key].handlers),this.events[key]}return getEventHandlers}(),TargetEventHandlers.prototype.handleEvent=function(){function handleEvent(eventName,options,event){var eventHandlers=this.getEventHandlers(eventName,options);eventHandlers.handlers=eventHandlers.nextHandlers,eventHandlers.handlers.forEach(function(handler){handler&&handler(event)})}return handleEvent}(),TargetEventHandlers.prototype.add=function(){function add(eventName,listener,options){var _this=this,eventHandlers=this.getEventHandlers(eventName,options);ensureCanMutateNextEventHandlers(eventHandlers),0===eventHandlers.nextHandlers.length&&(eventHandlers.handleEvent=this.handleEvent.bind(this,eventName,options),this.target.addEventListener(eventName,eventHandlers.handleEvent,options)),eventHandlers.nextHandlers.push(listener);var isSubscribed=!0;return function(){function unsubscribe(){if(isSubscribed){isSubscribed=!1,ensureCanMutateNextEventHandlers(eventHandlers);var index=eventHandlers.nextHandlers.indexOf(listener);eventHandlers.nextHandlers.splice(index,1),0===eventHandlers.nextHandlers.length&&(_this.target&&_this.target.removeEventListener(eventName,eventHandlers.handleEvent,options),eventHandlers.handleEvent=void 0)}}return unsubscribe}()}return add}();var EVENT_HANDLERS_KEY="__consolidated_events_handlers__"},function(module,exports,__webpack_require__){(function(process){if("production"!==process.env.NODE_ENV){var ReactIs=__webpack_require__(28);module.exports=__webpack_require__(82)(ReactIs.isElement,!0)}else module.exports=__webpack_require__(84)()}).call(exports,__webpack_require__(0))},function(module,exports,__webpack_require__){"use strict";function z(a){if("object"==typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}/** @license React v16.13.1
     27"production"!==process.env.NODE_ENV&&function(){function isValidElementType(type){return"string"==typeof type||"function"==typeof type||type===REACT_FRAGMENT_TYPE||type===REACT_CONCURRENT_MODE_TYPE||type===REACT_PROFILER_TYPE||type===REACT_STRICT_MODE_TYPE||type===REACT_SUSPENSE_TYPE||"object"==typeof type&&null!==type&&(type.$$typeof===REACT_LAZY_TYPE||type.$$typeof===REACT_MEMO_TYPE||type.$$typeof===REACT_PROVIDER_TYPE||type.$$typeof===REACT_CONTEXT_TYPE||type.$$typeof===REACT_FORWARD_REF_TYPE)}function typeOf(object){if("object"==typeof object&&null!==object){var $$typeof=object.$$typeof;switch($$typeof){case REACT_ELEMENT_TYPE:var type=object.type;switch(type){case REACT_ASYNC_MODE_TYPE:case REACT_CONCURRENT_MODE_TYPE:case REACT_FRAGMENT_TYPE:case REACT_PROFILER_TYPE:case REACT_STRICT_MODE_TYPE:case REACT_SUSPENSE_TYPE:return type;default:var $$typeofType=type&&type.$$typeof;switch($$typeofType){case REACT_CONTEXT_TYPE:case REACT_FORWARD_REF_TYPE:case REACT_PROVIDER_TYPE:return $$typeofType;default:return $$typeof}}case REACT_LAZY_TYPE:case REACT_MEMO_TYPE:case REACT_PORTAL_TYPE:return $$typeof}}}function isAsyncMode(object){return hasWarnedAboutDeprecatedIsAsyncMode||(hasWarnedAboutDeprecatedIsAsyncMode=!0,lowPriorityWarning$1(!1,"The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),isConcurrentMode(object)||typeOf(object)===REACT_ASYNC_MODE_TYPE}function isConcurrentMode(object){return typeOf(object)===REACT_CONCURRENT_MODE_TYPE}function isContextConsumer(object){return typeOf(object)===REACT_CONTEXT_TYPE}function isContextProvider(object){return typeOf(object)===REACT_PROVIDER_TYPE}function isElement(object){return"object"==typeof object&&null!==object&&object.$$typeof===REACT_ELEMENT_TYPE}function isForwardRef(object){return typeOf(object)===REACT_FORWARD_REF_TYPE}function isFragment(object){return typeOf(object)===REACT_FRAGMENT_TYPE}function isLazy(object){return typeOf(object)===REACT_LAZY_TYPE}function isMemo(object){return typeOf(object)===REACT_MEMO_TYPE}function isPortal(object){return typeOf(object)===REACT_PORTAL_TYPE}function isProfiler(object){return typeOf(object)===REACT_PROFILER_TYPE}function isStrictMode(object){return typeOf(object)===REACT_STRICT_MODE_TYPE}function isSuspense(object){return typeOf(object)===REACT_SUSPENSE_TYPE}Object.defineProperty(exports,"__esModule",{value:!0});var hasSymbol="function"==typeof Symbol&&Symbol.for,REACT_ELEMENT_TYPE=hasSymbol?Symbol.for("react.element"):60103,REACT_PORTAL_TYPE=hasSymbol?Symbol.for("react.portal"):60106,REACT_FRAGMENT_TYPE=hasSymbol?Symbol.for("react.fragment"):60107,REACT_STRICT_MODE_TYPE=hasSymbol?Symbol.for("react.strict_mode"):60108,REACT_PROFILER_TYPE=hasSymbol?Symbol.for("react.profiler"):60114,REACT_PROVIDER_TYPE=hasSymbol?Symbol.for("react.provider"):60109,REACT_CONTEXT_TYPE=hasSymbol?Symbol.for("react.context"):60110,REACT_ASYNC_MODE_TYPE=hasSymbol?Symbol.for("react.async_mode"):60111,REACT_CONCURRENT_MODE_TYPE=hasSymbol?Symbol.for("react.concurrent_mode"):60111,REACT_FORWARD_REF_TYPE=hasSymbol?Symbol.for("react.forward_ref"):60112,REACT_SUSPENSE_TYPE=hasSymbol?Symbol.for("react.suspense"):60113,REACT_MEMO_TYPE=hasSymbol?Symbol.for("react.memo"):60115,REACT_LAZY_TYPE=hasSymbol?Symbol.for("react.lazy"):60116,lowPriorityWarning=function(){},printWarning=function(format){for(var _len=arguments.length,args=Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];var argIndex=0,message="Warning: "+format.replace(/%s/g,function(){return args[argIndex++]});"undefined"!=typeof console&&console.warn(message);try{throw new Error(message)}catch(x){}};lowPriorityWarning=function(condition,format){if(void 0===format)throw new Error("`lowPriorityWarning(condition, format, ...args)` requires a warning message argument");if(!condition){for(var _len2=arguments.length,args=Array(_len2>2?_len2-2:0),_key2=2;_key2<_len2;_key2++)args[_key2-2]=arguments[_key2];printWarning.apply(void 0,[format].concat(args))}};var lowPriorityWarning$1=lowPriorityWarning,AsyncMode=REACT_ASYNC_MODE_TYPE,ConcurrentMode=REACT_CONCURRENT_MODE_TYPE,ContextConsumer=REACT_CONTEXT_TYPE,ContextProvider=REACT_PROVIDER_TYPE,Element=REACT_ELEMENT_TYPE,ForwardRef=REACT_FORWARD_REF_TYPE,Fragment=REACT_FRAGMENT_TYPE,Lazy=REACT_LAZY_TYPE,Memo=REACT_MEMO_TYPE,Portal=REACT_PORTAL_TYPE,Profiler=REACT_PROFILER_TYPE,StrictMode=REACT_STRICT_MODE_TYPE,Suspense=REACT_SUSPENSE_TYPE,hasWarnedAboutDeprecatedIsAsyncMode=!1;exports.typeOf=typeOf,exports.AsyncMode=AsyncMode,exports.ConcurrentMode=ConcurrentMode,exports.ContextConsumer=ContextConsumer,exports.ContextProvider=ContextProvider,exports.Element=Element,exports.ForwardRef=ForwardRef,exports.Fragment=Fragment,exports.Lazy=Lazy,exports.Memo=Memo,exports.Portal=Portal,exports.Profiler=Profiler,exports.StrictMode=StrictMode,exports.Suspense=Suspense,exports.isValidElementType=isValidElementType,exports.isAsyncMode=isAsyncMode,exports.isConcurrentMode=isConcurrentMode,exports.isContextConsumer=isContextConsumer,exports.isContextProvider=isContextProvider,exports.isElement=isElement,exports.isForwardRef=isForwardRef,exports.isFragment=isFragment,exports.isLazy=isLazy,exports.isMemo=isMemo,exports.isPortal=isPortal,exports.isProfiler=isProfiler,exports.isStrictMode=isStrictMode,exports.isSuspense=isSuspense}()}).call(exports,__webpack_require__(0))},function(module,__webpack_exports__,__webpack_require__){"use strict";function index(resultFn,isEqual){void 0===isEqual&&(isEqual=simpleIsEqual);var lastThis,lastResult,lastArgs=[],calledOnce=!1,isNewArgEqualToLast=function(newArg,index){return isEqual(newArg,lastArgs[index],index)};return function(){for(var _len=arguments.length,newArgs=new Array(_len),_key=0;_key<_len;_key++)newArgs[_key]=arguments[_key];return calledOnce&&lastThis===this&&newArgs.length===lastArgs.length&&newArgs.every(isNewArgEqualToLast)?lastResult:(lastResult=resultFn.apply(this,newArgs),calledOnce=!0,lastThis=this,lastArgs=newArgs,lastResult)}}var simpleIsEqual=function(a,b){return a===b};__webpack_exports__.a=index},function(module,exports,__webpack_require__){"use strict";(function(process){function emptyFunctionThatReturnsNull(){return null}var assign=__webpack_require__(33),ReactPropTypesSecret=__webpack_require__(22),checkPropTypes=__webpack_require__(56),printWarning=function(){};"production"!==process.env.NODE_ENV&&(printWarning=function(text){var message="Warning: "+text;"undefined"!=typeof console&&console.error(message);try{throw new Error(message)}catch(x){}}),module.exports=function(isValidElement,throwOnDirectAccess){function getIteratorFn(maybeIterable){var iteratorFn=maybeIterable&&(ITERATOR_SYMBOL&&maybeIterable[ITERATOR_SYMBOL]||maybeIterable[FAUX_ITERATOR_SYMBOL]);if("function"==typeof iteratorFn)return iteratorFn}function is(x,y){return x===y?0!==x||1/x==1/y:x!==x&&y!==y}function PropTypeError(message){this.message=message,this.stack=""}function createChainableTypeChecker(validate){function checkType(isRequired,props,propName,componentName,location,propFullName,secret){if(componentName=componentName||ANONYMOUS,propFullName=propFullName||propName,secret!==ReactPropTypesSecret){if(throwOnDirectAccess){var err=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw err.name="Invariant Violation",err}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var cacheKey=componentName+":"+propName;!manualPropTypeCallCache[cacheKey]&&manualPropTypeWarningCount<3&&(printWarning("You are manually calling a React.PropTypes validation function for the `"+propFullName+"` prop on `"+componentName+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),manualPropTypeCallCache[cacheKey]=!0,manualPropTypeWarningCount++)}}return null==props[propName]?isRequired?new PropTypeError(null===props[propName]?"The "+location+" `"+propFullName+"` is marked as required in `"+componentName+"`, but its value is `null`.":"The "+location+" `"+propFullName+"` is marked as required in `"+componentName+"`, but its value is `undefined`."):null:validate(props,propName,componentName,location,propFullName)}if("production"!==process.env.NODE_ENV)var manualPropTypeCallCache={},manualPropTypeWarningCount=0;var chainedCheckType=checkType.bind(null,!1);return chainedCheckType.isRequired=checkType.bind(null,!0),chainedCheckType}function createPrimitiveTypeChecker(expectedType){function validate(props,propName,componentName,location,propFullName,secret){var propValue=props[propName];if(getPropType(propValue)!==expectedType)return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+getPreciseType(propValue)+"` supplied to `"+componentName+"`, expected `"+expectedType+"`.");return null}return createChainableTypeChecker(validate)}function createArrayOfTypeChecker(typeChecker){function validate(props,propName,componentName,location,propFullName){if("function"!=typeof typeChecker)return new PropTypeError("Property `"+propFullName+"` of component `"+componentName+"` has invalid PropType notation inside arrayOf.");var propValue=props[propName];if(!Array.isArray(propValue)){return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+getPropType(propValue)+"` supplied to `"+componentName+"`, expected an array.")}for(var i=0;i<propValue.length;i++){var error=typeChecker(propValue,i,componentName,location,propFullName+"["+i+"]",ReactPropTypesSecret);if(error instanceof Error)return error}return null}return createChainableTypeChecker(validate)}function createInstanceTypeChecker(expectedClass){function validate(props,propName,componentName,location,propFullName){if(!(props[propName]instanceof expectedClass)){var expectedClassName=expectedClass.name||ANONYMOUS;return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+getClassName(props[propName])+"` supplied to `"+componentName+"`, expected instance of `"+expectedClassName+"`.")}return null}return createChainableTypeChecker(validate)}function createEnumTypeChecker(expectedValues){function validate(props,propName,componentName,location,propFullName){for(var propValue=props[propName],i=0;i<expectedValues.length;i++)if(is(propValue,expectedValues[i]))return null;return new PropTypeError("Invalid "+location+" `"+propFullName+"` of value `"+propValue+"` supplied to `"+componentName+"`, expected one of "+JSON.stringify(expectedValues)+".")}return Array.isArray(expectedValues)?createChainableTypeChecker(validate):("production"!==process.env.NODE_ENV&&printWarning("Invalid argument supplied to oneOf, expected an instance of array."),emptyFunctionThatReturnsNull)}function createObjectOfTypeChecker(typeChecker){function validate(props,propName,componentName,location,propFullName){if("function"!=typeof typeChecker)return new PropTypeError("Property `"+propFullName+"` of component `"+componentName+"` has invalid PropType notation inside objectOf.");var propValue=props[propName],propType=getPropType(propValue);if("object"!==propType)return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+propType+"` supplied to `"+componentName+"`, expected an object.");for(var key in propValue)if(propValue.hasOwnProperty(key)){var error=typeChecker(propValue,key,componentName,location,propFullName+"."+key,ReactPropTypesSecret);if(error instanceof Error)return error}return null}return createChainableTypeChecker(validate)}function createUnionTypeChecker(arrayOfTypeCheckers){function validate(props,propName,componentName,location,propFullName){for(var i=0;i<arrayOfTypeCheckers.length;i++){if(null==(0,arrayOfTypeCheckers[i])(props,propName,componentName,location,propFullName,ReactPropTypesSecret))return null}return new PropTypeError("Invalid "+location+" `"+propFullName+"` supplied to `"+componentName+"`.")}if(!Array.isArray(arrayOfTypeCheckers))return"production"!==process.env.NODE_ENV&&printWarning("Invalid argument supplied to oneOfType, expected an instance of array."),emptyFunctionThatReturnsNull;for(var i=0;i<arrayOfTypeCheckers.length;i++){var checker=arrayOfTypeCheckers[i];if("function"!=typeof checker)return printWarning("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+getPostfixForTypeWarning(checker)+" at index "+i+"."),emptyFunctionThatReturnsNull}return createChainableTypeChecker(validate)}function createShapeTypeChecker(shapeTypes){function validate(props,propName,componentName,location,propFullName){var propValue=props[propName],propType=getPropType(propValue);if("object"!==propType)return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+propType+"` supplied to `"+componentName+"`, expected `object`.");for(var key in shapeTypes){var checker=shapeTypes[key];if(checker){var error=checker(propValue,key,componentName,location,propFullName+"."+key,ReactPropTypesSecret);if(error)return error}}return null}return createChainableTypeChecker(validate)}function createStrictShapeTypeChecker(shapeTypes){function validate(props,propName,componentName,location,propFullName){var propValue=props[propName],propType=getPropType(propValue);if("object"!==propType)return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+propType+"` supplied to `"+componentName+"`, expected `object`.");var allKeys=assign({},props[propName],shapeTypes);for(var key in allKeys){var checker=shapeTypes[key];if(!checker)return new PropTypeError("Invalid "+location+" `"+propFullName+"` key `"+key+"` supplied to `"+componentName+"`.\nBad object: "+JSON.stringify(props[propName],null,"  ")+"\nValid keys: "+JSON.stringify(Object.keys(shapeTypes),null,"  "));var error=checker(propValue,key,componentName,location,propFullName+"."+key,ReactPropTypesSecret);if(error)return error}return null}return createChainableTypeChecker(validate)}function isNode(propValue){switch(typeof propValue){case"number":case"string":case"undefined":return!0;case"boolean":return!propValue;case"object":if(Array.isArray(propValue))return propValue.every(isNode);if(null===propValue||isValidElement(propValue))return!0;var iteratorFn=getIteratorFn(propValue);if(!iteratorFn)return!1;var step,iterator=iteratorFn.call(propValue);if(iteratorFn!==propValue.entries){for(;!(step=iterator.next()).done;)if(!isNode(step.value))return!1}else for(;!(step=iterator.next()).done;){var entry=step.value;if(entry&&!isNode(entry[1]))return!1}return!0;default:return!1}}function isSymbol(propType,propValue){return"symbol"===propType||("Symbol"===propValue["@@toStringTag"]||"function"==typeof Symbol&&propValue instanceof Symbol)}function getPropType(propValue){var propType=typeof propValue;return Array.isArray(propValue)?"array":propValue instanceof RegExp?"object":isSymbol(propType,propValue)?"symbol":propType}function getPreciseType(propValue){if(void 0===propValue||null===propValue)return""+propValue;var propType=getPropType(propValue);if("object"===propType){if(propValue instanceof Date)return"date";if(propValue instanceof RegExp)return"regexp"}return propType}function getPostfixForTypeWarning(value){var type=getPreciseType(value);switch(type){case"array":case"object":return"an "+type;case"boolean":case"date":case"regexp":return"a "+type;default:return type}}function getClassName(propValue){return propValue.constructor&&propValue.constructor.name?propValue.constructor.name:ANONYMOUS}var ITERATOR_SYMBOL="function"==typeof Symbol&&Symbol.iterator,FAUX_ITERATOR_SYMBOL="@@iterator",ANONYMOUS="<<anonymous>>",ReactPropTypes={array:createPrimitiveTypeChecker("array"),bool:createPrimitiveTypeChecker("boolean"),func:createPrimitiveTypeChecker("function"),number:createPrimitiveTypeChecker("number"),object:createPrimitiveTypeChecker("object"),string:createPrimitiveTypeChecker("string"),symbol:createPrimitiveTypeChecker("symbol"),any:function(){return createChainableTypeChecker(emptyFunctionThatReturnsNull)}(),arrayOf:createArrayOfTypeChecker,element:function(){function validate(props,propName,componentName,location,propFullName){var propValue=props[propName];if(!isValidElement(propValue)){return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+getPropType(propValue)+"` supplied to `"+componentName+"`, expected a single ReactElement.")}return null}return createChainableTypeChecker(validate)}(),instanceOf:createInstanceTypeChecker,node:function(){function validate(props,propName,componentName,location,propFullName){return isNode(props[propName])?null:new PropTypeError("Invalid "+location+" `"+propFullName+"` supplied to `"+componentName+"`, expected a ReactNode.")}return createChainableTypeChecker(validate)}(),objectOf:createObjectOfTypeChecker,oneOf:createEnumTypeChecker,oneOfType:createUnionTypeChecker,shape:createShapeTypeChecker,exact:createStrictShapeTypeChecker};return PropTypeError.prototype=Error.prototype,ReactPropTypes.checkPropTypes=checkPropTypes,ReactPropTypes.PropTypes=ReactPropTypes,ReactPropTypes}}).call(exports,__webpack_require__(0))},function(module,exports,__webpack_require__){"use strict";(function(process){function checkPropTypes(typeSpecs,values,location,componentName,getStack){if("production"!==process.env.NODE_ENV)for(var typeSpecName in typeSpecs)if(typeSpecs.hasOwnProperty(typeSpecName)){var error;try{if("function"!=typeof typeSpecs[typeSpecName]){var err=Error((componentName||"React class")+": "+location+" type `"+typeSpecName+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof typeSpecs[typeSpecName]+"`.");throw err.name="Invariant Violation",err}error=typeSpecs[typeSpecName](values,typeSpecName,componentName,location,null,ReactPropTypesSecret)}catch(ex){error=ex}if(!error||error instanceof Error||printWarning((componentName||"React class")+": type specification of "+location+" `"+typeSpecName+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof error+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),error instanceof Error&&!(error.message in loggedTypeFailures)){loggedTypeFailures[error.message]=!0;var stack=getStack?getStack():"";printWarning("Failed "+location+" type: "+error.message+(null!=stack?stack:""))}}}var printWarning=function(){};if("production"!==process.env.NODE_ENV){var ReactPropTypesSecret=__webpack_require__(22),loggedTypeFailures={};printWarning=function(text){var message="Warning: "+text;"undefined"!=typeof console&&console.error(message);try{throw new Error(message)}catch(x){}}}module.exports=checkPropTypes}).call(exports,__webpack_require__(0))},function(module,exports,__webpack_require__){"use strict";function emptyFunction(){}var ReactPropTypesSecret=__webpack_require__(22);module.exports=function(){function shim(props,propName,componentName,location,propFullName,secret){if(secret!==ReactPropTypesSecret){var err=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw err.name="Invariant Violation",err}}function getShim(){return shim}shim.isRequired=shim;var ReactPropTypes={array:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim};return ReactPropTypes.checkPropTypes=emptyFunction,ReactPropTypes.PropTypes=ReactPropTypes,ReactPropTypes}},function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0__emotion_memoize__=__webpack_require__(59),reactPropsRegex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,index=Object(__WEBPACK_IMPORTED_MODULE_0__emotion_memoize__.a)(function(prop){return reactPropsRegex.test(prop)||111===prop.charCodeAt(0)&&110===prop.charCodeAt(1)&&prop.charCodeAt(2)<91});__webpack_exports__.a=index},function(module,__webpack_exports__,__webpack_require__){"use strict";function memoize(fn){var cache={};return function(arg){return void 0===cache[arg]&&(cache[arg]=fn(arg)),cache[arg]}}__webpack_exports__.a=memoize},function(module,__webpack_exports__,__webpack_require__){"use strict";function _templateObject2(){var data=_taggedTemplateLiteral(["\n\tpadding: 8px 24px;\n\tmargin-bottom: 30px;\n\tbackground: #fff;\n\tborder-bottom: 1px solid #DFDFDF;\n\n\t.ang-container {\n\t\tdisplay: flex;\n\t    justify-content: space-between;\n\t    align-items: center;\n\t}\n\n\t.logo img {\n\t\tmax-width: 42px;\n\t\tmax-height: 42px;\n\t}\n\n\ta {\n\t\tcolor: #fff;\n\t}\n\n\tsvg {\n\t\tvertical-align: bottom;\n\t}\n\n\t.button-plain {\n\t\tcolor: #fff !important;\n\t\tfont-weight: bold;\n\t\ttext-decoration: none;\n\t\tdisplay: inline-flex;\n\t\talign-items: center;\n\n\t\t&.is-active {\n\t\t\tpointer-events: none;\n\t\t\tsvg {\n\t\t\t\tanimation: "," 2s linear infinite;\n\t\t\t}\n\t\t}\n\n\t\tsvg {\n\t\t\tmargin-left: 10px;\n\t\t}\n\n\t\t&:first-of-type {\n\t\t\tmargin-left: auto;\n\t\t}\n\t\t+ .button-plain {\n\t\t\tposition: relative;\n\t\t\tmargin-left: 30px;\n\t\t}\n\t}\n\n\t.sync {\n\t\ttext-transform: uppercase;\n\t\tfont-size: 12.64px !important;\n\t\tletter-spacing: 1px;\n\t}\n"]);return _templateObject2=function(){return data},data}function _templateObject(){var data=_taggedTemplateLiteral(["\n  from {\n    transform: rotate(0deg);\n  }\n\n  to {\n    transform: rotate(360deg);\n  }\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var __WEBPACK_IMPORTED_MODULE_0_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_1__contexts_ThemeContext__=__webpack_require__(12),__WEBPACK_IMPORTED_MODULE_2__Nav__=__webpack_require__(61),__WEBPACK_IMPORTED_MODULE_3__Synchronization__=__webpack_require__(62),rotate=Object(__WEBPACK_IMPORTED_MODULE_0_styled_components__.b)(_templateObject()),Container=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.div(_templateObject2(),rotate),Header=function(){var _React$useContext=React.useContext(__WEBPACK_IMPORTED_MODULE_1__contexts_ThemeContext__.c),theme=_React$useContext.theme;return React.createElement(Container,{theme:theme},React.createElement("div",{className:"ang-container"},React.createElement("div",{className:"logo"},React.createElement("img",{src:AGWP.pluginURL+"/assets/img/analog.svg",alt:""})),!AGWP.isContainer&&React.createElement(__WEBPACK_IMPORTED_MODULE_2__Nav__.a,null),React.createElement(__WEBPACK_IMPORTED_MODULE_3__Synchronization__.a,null)))};__webpack_exports__.a=Header},function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0__AnalogContext__=__webpack_require__(2),__=wp.i18n.__,TabPanel=wp.components.TabPanel,ITEMS=[{key:"blocks",label:AGWP.isContainer?__("Patterns","ang"):__("Blocks","ang")},{key:"templates",label:__("Templates","ang")},{key:"styleKits",label:__("Styles","ang")}],Nav=function(){var context=React.useContext(__WEBPACK_IMPORTED_MODULE_0__AnalogContext__.a),getCount=function(tab){var items=context.state[tab];return"templates"===tab&&(items=context.state.archive),"blocks"===tab&&(items=context.state.blockArchive),!!items&&items.length},titleGenerator=function(titleObject){var count=getCount(titleObject.key),countTemplate=count>0?"("+count+")":"";return"".concat(titleObject.label," ").concat(countTemplate)},onSelect=function(tabName){context.dispatch({tab:tabName})};return React.createElement("span",{id:"sk-library-tab"},React.createElement(TabPanel,{className:"ang-nav",onSelect:onSelect,tabs:function(tabsArray){return tabsArray.map(function(item){return{name:item.key,title:titleGenerator(item),className:"tab-".concat(item.key)}})}(ITEMS)},function(tab){return null}))};__webpack_exports__.a=Nav},function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0_classnames__=__webpack_require__(5),__WEBPACK_IMPORTED_MODULE_0_classnames___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__),__WEBPACK_IMPORTED_MODULE_1__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_2__Notifications__=__webpack_require__(6),__WEBPACK_IMPORTED_MODULE_3__icons_close__=__webpack_require__(23),__=wp.i18n.__,Button=wp.components.Button,Synchronization=function(){return React.createElement("div",null,React.createElement(__WEBPACK_IMPORTED_MODULE_1__AnalogContext__.a.Consumer,null,function(context){return React.createElement(__WEBPACK_IMPORTED_MODULE_2__Notifications__.a,null,function(_ref){var add=_ref.add;return React.createElement(Button,{isPrimary:!0,className:__WEBPACK_IMPORTED_MODULE_0_classnames___default()("ang-sync",{"is-active":context.state.syncing}),onClick:function(e){e.preventDefault(),context.forceRefresh().then(function(){return add(__("Library is now synced","ang"))}).catch(function(){return add(__("Something is not right, please try again.","ang"),"error")})}},context.state.syncing?__("Syncing...","ang"):__("Sync Library","ang"))})}),!AGWP.is_settings_page&&React.createElement(Button,{isSecondary:!0,className:"close-modal"},__("Close","ang")," ",React.createElement(__WEBPACK_IMPORTED_MODULE_3__icons_close__.a,null)))};__webpack_exports__.a=Synchronization},function(module,__webpack_exports__,__webpack_require__){"use strict";var Error=function(){return React.createElement("svg",{height:"16",width:"12",viewBox:"0 0 12 16"},React.createElement("path",{fillRule:"evenodd",d:"M5.05.01c.81 2.17.41 3.38-.52 4.31C3.55 5.37 1.98 6.15.9 7.68c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.01 8.68 2.15 5.05.02L5.03 0l.02.01z"}))};__webpack_exports__.a=Error},function(module,__webpack_exports__,__webpack_require__){"use strict";var Notice=function(){return React.createElement("svg",{height:"16",width:"16",viewBox:"0 0 16 16"},React.createElement("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"}))};__webpack_exports__.a=Notice},function(module,__webpack_exports__,__webpack_require__){"use strict";var Success=function(){return React.createElement("svg",{height:"16",width:"12",viewBox:"0 0 12 16"},React.createElement("path",{fillRule:"evenodd",d:"M12 5.5l-8 8-4-4L1.5 8 4 10.5 10.5 4 12 5.5z"}))};__webpack_exports__.a=Success},function(module,__webpack_exports__,__webpack_require__){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(iter){if(Symbol.iterator in Object(iter)||"[object Arguments]"===Object.prototype.toString.call(iter))return Array.from(iter)}function _arrayWithoutHoles(arr){if(Array.isArray(arr)){for(var i=0,arr2=new Array(arr.length);i<arr.length;i++)arr2[i]=arr[i];return arr2}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _possibleConstructorReturn(self,call){return!call||"object"!==_typeof(call)&&"function"!=typeof call?_assertThisInitialized(self):call}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _templateObject(){var data=_taggedTemplateLiteral(["\n\tcolor: ",";\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var __WEBPACK_IMPORTED_MODULE_0_classnames__=__webpack_require__(5),__WEBPACK_IMPORTED_MODULE_0_classnames___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__),__WEBPACK_IMPORTED_MODULE_1_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_2__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_3__contexts_ThemeContext__=__webpack_require__(12),__WEBPACK_IMPORTED_MODULE_4__icons_star__=__webpack_require__(24),__=wp.i18n.__,_wp$components=wp.components,ToggleControl=_wp$components.ToggleControl,SelectControl=_wp$components.SelectControl,TextControl=_wp$components.TextControl,Button=_wp$components.Button,FiltersContainer=__WEBPACK_IMPORTED_MODULE_1_styled_components__.a.div(_templateObject(),function(props){return props.theme.textDark}),Filters=function(_React$Component){function Filters(){var _this;return _classCallCheck(this,Filters),_this=_possibleConstructorReturn(this,_getPrototypeOf(Filters).apply(this,arguments)),_this.searchInput=React.createRef(),_this}return _inherits(Filters,_React$Component),_createClass(Filters,[{key:"render",value:function(){var _this2=this,filters=_toConsumableArray(new Set(this.context.state.archive.map(function(f){return f.type}))),filterTypes=_toConsumableArray(filters).map(function(filter){return{value:"".concat(filter),label:"".concat(filter)}}),filterOptions=[{value:"all",label:__("All template types","ang")}].concat(_toConsumableArray(filterTypes)),sortOptions=[{value:"latest",label:__("Newest first","ang")},{value:"popular",label:__("Popular","ang")}],productTypeOptions=[{value:"all",label:__("Both Free and Pro","ang")},{value:"pro",label:__("Pro","ang")},{value:"free",label:__("Free","ang")}],showingKit=this.context.state.group&&this.context.state.activeKit;return React.createElement(__WEBPACK_IMPORTED_MODULE_3__contexts_ThemeContext__.b,null,function(_ref){var theme=_ref.theme;return React.createElement(FiltersContainer,{theme:theme,className:"template-filter"},React.createElement("div",{className:"top"},showingKit&&React.createElement(React.Fragment,null,React.createElement("h2",{className:"kit-title"},__("Template Kit","ang"),": ",_this2.context.state.activeKit.title),React.createElement(Button,{className:"kit-back",isSecondary:!0,onClick:function(){_this2.context.dispatch({activeKit:!1})}},__("Back to all Kits","ang"))),!showingKit&&React.createElement("button",{onClick:_this2.context.toggleFavorites,className:__WEBPACK_IMPORTED_MODULE_0_classnames___default()("favorites button-plain",{"is-active":_this2.context.state.showing_favorites})},React.createElement(__WEBPACK_IMPORTED_MODULE_4__icons_star__.a,null)," ",_this2.context.state.showing_favorites?__("Back to all","ang"):__("Favorites","ang")),!showingKit&&!_this2.context.state.showing_favorites&&React.createElement(ToggleControl,{className:"group-by",label:__("Group by Template Kit"),checked:_this2.context.state.group,onChange:function(){_this2.context.dispatch({group:!_this2.context.state.group,templates:_this2.context.state.archive}),window.localStorage.setItem("analog::group-kit",!_this2.context.state.group)}})),(!_this2.context.state.group||showingKit)&&!_this2.context.state.showing_favorites&&React.createElement("div",{className:"bottom "+(showingKit?"to-top-right":"")},React.createElement("span",null,!showingKit&&filters.length>1&&React.createElement(SelectControl,{id:"filter",options:filterOptions,onChange:function(value){_this2.context.handleFilter(value)}}),"valid"!==AGWP.license.status&&React.createElement(SelectControl,{id:"product-type",options:productTypeOptions,onChange:function(value){var pro=!1,free=!1;"all"===value?(pro=!0,free=!0):"pro"===value?(pro=!0,free=!1):"free"===value&&(pro=!1,free=!0),_this2.context.dispatch({showFree:free,showPro:pro}),window.localStorage.setItem("analog::show-free",free),window.localStorage.setItem("analog::show-pro",pro)}}),React.createElement(SelectControl,{id:"sort",options:sortOptions,onChange:function(value){return _this2.context.handleSort(value)}})),React.createElement("span",null,!showingKit&&React.createElement(TextControl,{type:"search",placeholder:__("Search templates...","ang"),onChange:function(value){return _this2.context.handleSearch(value.toLowerCase())}}))))})}}]),Filters}(React.Component);Filters.contextType=__WEBPACK_IMPORTED_MODULE_2__AnalogContext__.a,__webpack_exports__.a=Filters},function(module,__webpack_exports__,__webpack_require__){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function _extends(){return _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_extends.apply(this,arguments)}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(iter){if(Symbol.iterator in Object(iter)||"[object Arguments]"===Object.prototype.toString.call(iter))return Array.from(iter)}function _arrayWithoutHoles(arr){if(Array.isArray(arr)){for(var i=0,arr2=new Array(arr.length);i<arr.length;i++)arr2[i]=arr[i];return arr2}}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(source,!0).forEach(function(key){_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(source).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _possibleConstructorReturn(self,call){return!call||"object"!==_typeof(call)&&"function"!=typeof call?_assertThisInitialized(self):call}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _templateObject2(){var data=_taggedTemplateLiteral(["\n    > li {\n    \tborder-radius: 4px;\n    \tbackground: #fff;\n    }\n\n    figure {\n    \tmargin: 0;\n\t\tposition: relative;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\timg {\n\t\t\twidth: 100%;\n\t\t\theight: auto;\n\t\t}\n\n\t\t&:hover {\n\t\t\t.preview {\n\t\t\t\topacity: 1;\n\t\t\t\tbutton {\n\t\t\t\t\ttransform: none;\n\t\t\t\t\topacity: 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t .preview {\n\t\tbutton {\n\t\t\ttransform: translateY(20px);\n\t\t\topacity: 0;\n\n\t\t\t+ button, + .ang-promo {\n\t\t\t\tmargin-top: 10px;\n\t\t\t\ttext-decoration: none;\n\t\t\t}\n\t\t}\n\t\timg {\n\t\t\twidth: 100%;\n\t\t\theight: auto;\n\t\t}\n    }\n"]);return _templateObject2=function(){return data},data}function _templateObject(){var data=_taggedTemplateLiteral(["\n\t> p {\n\t\tfont-size: 16px;\n\t\tline-height: 24px;\n\t}\n\th3 {\n\t\tmargin: 0;\n\t\tfont-size: 14.2px;\n\t}\n\t.inner {\n    \ttext-align: center;\n    }\n    .error {\n    \tcolor: indianred;\n    \ttext-align: left;\n    }\n    a {\n    \tcolor: var(--ang-primary);\n    }\n    .tab-description {\n\t\tfont-size: 14px;\n\t\tline-height: 1.5;\n\t\tmargin: 12px 0 40px;\n\t    padding: 16px;\n\t    background-color: #F9F9F8;\n\t    border-radius: 6px;\n\t    box-shadow: rgb(0 0 0 / 10%) 0px 0px 0px 1px;\n    }\n    .popup-description {\n        text-align: left;\n\t\tfont-size: 14px;\n\t\tline-height: 1.5;\n\t\tcolor: var(--ang-main-text);\n\t\tpadding-bottom: 10px;\n\n\t\ta {\n\t\t\ttext-decoration: underline !important;\n\t\t}\n    }\n\n\t.gap {\n\t\tdisplay: flex;\n        gap: 10px;\n\n        & > button {\n            margin-left: 0 !important;\n        }\n\t}\n\n    .success-buttons {\n        button {\n            margin-left: 0 !important;\n        }\n    }\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}__webpack_require__.d(__webpack_exports__,"a",function(){return StyleKits});var __WEBPACK_IMPORTED_MODULE_0_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_1__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_2__api__=__webpack_require__(4),__WEBPACK_IMPORTED_MODULE_3__icons_loader__=__webpack_require__(25),__WEBPACK_IMPORTED_MODULE_4__Notifications__=__webpack_require__(6),__WEBPACK_IMPORTED_MODULE_5__popup__=__webpack_require__(26),__WEBPACK_IMPORTED_MODULE_6__modal_Preview__=__webpack_require__(68),_wp$components=wp.components,TextControl=_wp$components.TextControl,Button=_wp$components.Button,Card=(_wp$components.Dashicon,_wp$components.Card),CardBody=_wp$components.CardBody,CardFooter=_wp$components.CardFooter,decodeEntities=wp.htmlEntities.decodeEntities,_wp$i18n=wp.i18n,__=_wp$i18n.__,sprintf=_wp$i18n.sprintf,addQueryArgs=wp.url.addQueryArgs,Container=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.section(_templateObject()),ChildContainer=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.ul(_templateObject2()),initialState={modalActive:!1,importing:!1,activeKit:[],importedKit:!1,hasError:!1,kitname:"",previewing:null},footer=sprintf(__('%s <span class="footer-text">in WordPress dashboard.</span>',"ang"),sprintf('<a href="'.concat(addQueryArgs("admin.php",{page:"style-kits"}),'" target="_blank" rel="noopener noreferer">%s</a>'),__("Manage your Style Kits","ang"))),StyleKits=function(_React$Component){function StyleKits(){var _this;return _classCallCheck(this,StyleKits),_this=_possibleConstructorReturn(this,_getPrototypeOf(StyleKits).apply(this,arguments)),_this.state=_objectSpread({},initialState),_this}return _inherits(StyleKits,_React$Component),_createClass(StyleKits,[{key:"resetState",value:function(){this.setState(initialState)}},{key:"handleImport",value:function(kit,add){var _this2=this,checkKitStatus=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.setState({activeKit:kit,modalActive:!0}),checkKitStatus){if(this.context.state.installedKits.indexOf(this.state.kitname||kit.title)>-1)return void this.setState({hasError:!0})}Object(__WEBPACK_IMPORTED_MODULE_2__api__.h)(kit).then(function(response){if(response.errors){var message=Object.values(response.errors)[0];return add(message,"error","kit-error",!1),void _this2.resetState()}var kits=_toConsumableArray(_this2.context.state.installedKits);if(kits.push(kit.title),_this2.setState({importedKit:!0}),_this2.context.dispatch({installedKits:kits}),add(response.message),!AGWP.is_settings_page&&elementor){var options=elementor.settings.page.model.controls.ang_action_tokens.options;0===options.length&&(options={}),options[response.id]=kit.title,elementor.settings.page.model.controls.ang_action_tokens.options=options,elementor.reloadPreview(),analog.redirectToSection()}}).catch(function(error){add(error.message,"error","kit-error",!1),_this2.resetState()})}},{key:"getPopupTitle",value:function(title,hasImported,hasError){return hasImported&&!hasError?decodeEntities(title)+__(" Imported!","ang"):decodeEntities(title)}},{key:"render",value:function(){var _this3=this,successButtonProps={rel:"noopener noreferrer",href:addQueryArgs("admin.php",{page:"style-kits"})},isValid=function(isPro){return!(isPro&&"valid"!==AGWP.license.status)},fallbackImage=AGWP.pluginURL+"assets/img/placeholder.svg";return React.createElement(Container,null,React.createElement("p",{className:"tab-description"},__("Style Kits are ready-made configurations of theme styles. When you import a Style Kit, it will be available in the","ang")," ",React.createElement("a",{href:addQueryArgs("admin.php",{page:"style-kits"})},__("Local Style Kits","ang"))," ",__("page","ang"),".  ",__("You will then be able apply it globally, or on any page.","ang")," ",React.createElement("a",{href:"https://analogwp.com/docs/importing-global-style-presets/",target:"_blank",rel:"noopener noreferrer"},__("Learn more","ang")),"."),this.state.previewing&&this.state.previewing.preview&&React.createElement(__WEBPACK_IMPORTED_MODULE_4__Notifications__.a,null,function(_ref){var add=_ref.add;return React.createElement(__WEBPACK_IMPORTED_MODULE_6__modal_Preview__.a,{template:_this3.state.previewing,onRequestClose:function(){return _this3.resetState()},onRequestImport:function(){return _this3.handleImport(_this3.state.previewing,add,!0)},insertText:__("Import Style Kit","ang"),style:{padding:"20px",boxSizing:"border-box"}})}),React.createElement(ChildContainer,{className:"stylekit-list"},this.context.state.styleKits.length>0&&this.context.state.styleKits.map(function(kit){return React.createElement("li",{key:kit.id+"-"+kit.site_id},React.createElement(Card,null,React.createElement(CardBody,null,kit.is_pro&&React.createElement("span",{className:"pro"},__("Pro","ang")),React.createElement("figure",null,React.createElement("img",{src:kit.image||fallbackImage,alt:kit.title}),React.createElement("div",{className:"preview"},kit.preview&&React.createElement(Button,{isSecondary:!0,className:"black-transparent",onClick:function(){window.scrollTo(0,0),_this3.setState({previewing:kit})}},__("Preview","ang")),!isValid(kit.is_pro)&&React.createElement("a",{className:"ang-promo",href:"https://analogwp.com/style-kits-pro/?utm_medium=plugin&utm_source=library&utm_campaign=style+kits+pro",target:"_blank"},React.createElement(Button,{isPrimary:!0},__("Go Pro","ang"))),isValid(kit.is_pro)&&React.createElement(__WEBPACK_IMPORTED_MODULE_4__Notifications__.a,null,function(_ref2){var add=_ref2.add;return React.createElement(Button,{isPrimary:!0,onClick:function(){return _this3.handleImport(kit,add,!0)}},__("Import","ang"))})))),React.createElement(CardFooter,null,React.createElement("div",{className:"content"},React.createElement("h3",null,kit.title)))))})),this.state.modalActive&&React.createElement(__WEBPACK_IMPORTED_MODULE_5__popup__.a,{title:this.getPopupTitle(this.state.activeKit.title,this.state.importedKit,this.state.hasError),onRequestClose:function(){return _this3.resetState()}},this.state.hasError&&React.createElement("div",{className:"stylekit-popup-content"},React.createElement("p",{className:"popup-description"},__("A Style Kit named ","ang")+decodeEntities(this.state.activeKit.title)+__(" already exists in your website. To import it again please use a different name.","ang")),this.context.state.installedKits.indexOf(this.state.kitname)>-1&&React.createElement("p",{className:"error"},__("Please try a different as a Style Kit with same name already exists.","ang")),React.createElement("div",{className:"form-row gap"},React.createElement(TextControl,{placeholder:__("Enter a Style Kit Name","ang"),onChange:function(val){return _this3.setState({kitname:val})},className:"kit-name"}),React.createElement(__WEBPACK_IMPORTED_MODULE_4__Notifications__.a,null,function(_ref3){var add=_ref3.add;return React.createElement(Button,{isPrimary:!0,disabled:!_this3.state.kitname||_this3.context.state.installedKits.indexOf(_this3.state.kitname)>-1,style:{marginLeft:"15px"},onClick:function(){_this3.setState({hasError:!1});var kit=_objectSpread({},_this3.state.activeKit,{title:_this3.state.kitname});_this3.handleImport(kit,add)}},__("Import","ang"))}))),!this.state.hasError&&!this.state.importedKit&&React.createElement(__WEBPACK_IMPORTED_MODULE_3__icons_loader__.a,null),!this.state.hasError&&this.state.importedKit&&React.createElement("div",{className:"stylekit-popup-content"},React.createElement("p",{className:"popup-description"},decodeEntities(this.state.activeKit.title)+__(" has been successfully imported. You can now find it in the ","ang"),React.createElement("a",{href:AGWP.globalSkAlwaysEnableURL},__("list of your Local Style Kits")),"."),React.createElement("p",{className:"success-buttons gap"},React.createElement("a",{onClick:function(e){_this3.resetState(),Boolean(AGWP.is_settings_page)||(e.preventDefault(),window.analogModal.hide(),analog.redirectToSection())}},React.createElement(Button,{isPrimary:!0},__("Stay on this page","ang"))),React.createElement("a",_extends({onClick:function(e){_this3.resetState(),Boolean(AGWP.is_settings_page)||(e.preventDefault(),window.analogModal.hide(),analog.redirectToSection())}},successButtonProps),React.createElement(Button,{isSecondary:!0},__("View local Style Kits","ang")))),!Boolean(AGWP.is_settings_page)&&React.createElement("footer",{className:"style-kit-footer",dangerouslySetInnerHTML:{__html:footer}})),!this.state.hasError&&!this.state.importedKit&&React.createElement("p",null,__("Importing ","ang")," ",decodeEntities(this.state.activeKit.title))))}}]),StyleKits}(React.Component);_defineProperty(StyleKits,"contextType",__WEBPACK_IMPORTED_MODULE_1__AnalogContext__.a)},function(module,__webpack_exports__,__webpack_require__){"use strict";function _extends(){return _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_extends.apply(this,arguments)}function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=_objectWithoutPropertiesLoose(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++)key=sourceSymbolKeys[i],excluded.indexOf(key)>=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],excluded.indexOf(key)>=0||(target[key]=source[key]);return target}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit(arr,i){if(Symbol.iterator in Object(arr)||"[object Arguments]"===Object.prototype.toString.call(arr)){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}function _templateObject3(){var data=_taggedTemplateLiteral(["\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n\toverflow: hidden;\n\toverflow: -moz-scrollbars-none;\n\tbackground: #F1F1F1;\n\tz-index: 999;\n\ttext-align: center;\n\n\tiframe {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tdisplay: ",";\n\t}\n\n\t.frame-header {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\talign-items: center;\n\t\tmargin-bottom: 25px;\n\n\t\ta {\n\t\t\tmargin-left: auto;\n\t\t\tmargin-right: 20px;\n\t\t\tcolor: currentColor;\n\t\t\ttext-decoration: none;\n\t\t}\n\n\t\t.dashicons {\n\t\t\tfont-size: 25px;\n\t\t}\n\t}\n\n\t.button--accent {\n\t\tfont-size: 12px;\n\t\tfont-weight: bold;\n\t\tcolor: #fff;\n\t\tborder-radius: 0;\n\t\tborder: none;\n\t\tbackground: var(--ang-accent);\n\t\toutline: 0;\n\t\tbox-shadow: none;\n\t\tpadding: 15px 30px;\n\t\tcursor: pointer;\n\t}\n"]);return _templateObject3=function(){return data},data}function _templateObject2(){var data=_taggedTemplateLiteral(["\n\topacity: 0.5;\n\ttransition: all 200ms ease-in-out;\n\tanimation: "," 2s linear infinite;\n"]);return _templateObject2=function(){return data},data}function _templateObject(){var data=_taggedTemplateLiteral(["\n  0% {\n    opacity: 0.5;\n  }\n\n  50% {\n    opacity: 0.1;\n  }\n\n  100% {\n    opacity: 0.5;\n  }\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var __WEBPACK_IMPORTED_MODULE_0_styled_components__=__webpack_require__(1),_wp$components=wp.components,FocusableIframe=_wp$components.FocusableIframe,Button=_wp$components.Button,__=wp.i18n.__,rotateOpacity=Object(__WEBPACK_IMPORTED_MODULE_0_styled_components__.b)(_templateObject()),Img=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.img(_templateObject2(),rotateOpacity),Container=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.div(_templateObject3(),function(props){return props.loading?"none":"block"}),Preview=function(props){var _React$useState=React.useState(!0),_React$useState2=_slicedToArray(_React$useState,2),loading=_React$useState2[0],setLoading=_React$useState2[1],onRequestClose=props.onRequestClose,onRequestImport=props.onRequestImport,rest=_objectWithoutProperties(props,["onRequestClose","onRequestImport"]),previewURL=props.template.url||props.template.preview;return React.createElement(Container,_extends({loading:loading},rest),React.createElement("div",{className:"frame-header"},React.createElement(Button,{isSecondary:!0,onClick:onRequestClose},__("Back to Library","ang")),React.createElement("a",{href:previewURL,rel:"noopener noreferrer",target:"_blank"},React.createElement(Button,{isSecondary:!0},__("Open in new tab","ang"))),!(props.template.is_pro&&"valid"!==AGWP.license.status)&&React.createElement(Button,{isPrimary:!0,onClick:onRequestImport},props.insertText||__("Import Template","ang"))),loading&&React.createElement(Img,{src:"".concat(AGWP.pluginURL,"assets/img/placeholder.svg"),alt:__("Loading icon","ang")}),React.createElement(FocusableIframe,{src:previewURL,onLoad:function(){return setLoading(!1)}}))};__webpack_exports__.a=Preview},function(module,__webpack_exports__,__webpack_require__){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(source,!0).forEach(function(key){_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(source).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _possibleConstructorReturn(self,call){return!call||"object"!==_typeof(call)&&"function"!=typeof call?_assertThisInitialized(self):call}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _templateObject(){var data=_taggedTemplateLiteral(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tposition: relative;\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}__webpack_require__.d(__webpack_exports__,"a",function(){return Blocks});var __WEBPACK_IMPORTED_MODULE_0_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_1__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_2__api__=__webpack_require__(4),__WEBPACK_IMPORTED_MODULE_4__BlockList__=(__webpack_require__(27),__webpack_require__(70)),__WEBPACK_IMPORTED_MODULE_5__Sidebar__=__webpack_require__(72),_wp$element=(wp.i18n.__,wp.element),Component=_wp$element.Component,Fragment=_wp$element.Fragment,LibraryWrapper=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.div(_templateObject()),initialState={blocks:[],activeBlock:!1,blockImported:!1,modalActive:!1},Blocks=function(_Component){function Blocks(){var _this;return _classCallCheck(this,Blocks),_this=_possibleConstructorReturn(this,_getPrototypeOf(Blocks).apply(this,arguments)),_defineProperty(_assertThisInitialized(_this),"makeFavorite",function(id){var blockFavorites=_this.context.state.blockFavorites;if(_this.context.markFavorite(id,!(id in blockFavorites),"block"),id in blockFavorites?delete blockFavorites[id]:blockFavorites[id]=!(id in blockFavorites),_this.context.dispatch({blockFavorites:blockFavorites}),_this.context.state.showing_favorites){var filteredBlocks=_this.context.state.blocks.filter(function(t){return t.id in blockFavorites});_this.context.dispatch({blocks:filteredBlocks})}}),_this.state=_objectSpread({},initialState),_this.importBlock=_this.importBlock.bind(_assertThisInitialized(_this)),_this.handleImport=_this.handleImport.bind(_assertThisInitialized(_this)),_this}return _inherits(Blocks,_Component),_createClass(Blocks,[{key:"importBlock",value:function(block,add){this.setState({modalActive:!0,activeBlock:block}),this.handleImport(block,add)}},{key:"handleImport",value:function(block,add){var _this2=this,method=Boolean(AGWP.is_settings_page)?"library":"elementor";Object(__WEBPACK_IMPORTED_MODULE_2__api__.d)(block,method).then(function(response){if("elementor"===method){var parsedTemplate=response.data;Object(__WEBPACK_IMPORTED_MODULE_2__api__.a)(parsedTemplate.content,"block"),_this2.setState({modalActive:!1,activeBlock:!1}),window.analogModal.hide()}else _this2.setState({blockImported:!0})}).catch(function(error){add(error.message,"error","import-error",!1),_this2.setState({modalActive:!1,activeBlock:!1})})}},{key:"getItemCount",value:function(category){var blocks=this.context.state.blocks,foundItems=blocks.filter(function(block){return block.tags.indexOf(category)>-1});return!!foundItems&&foundItems.length}},{key:"render",value:function(){var _this3=this,dataSet={state:this.state,dispatch:function(action){return _this3.setState(action)}};return React.createElement(Fragment,null,React.createElement(LibraryWrapper,null,React.createElement(__WEBPACK_IMPORTED_MODULE_5__Sidebar__.a,{state:dataSet}),React.createElement(__WEBPACK_IMPORTED_MODULE_4__BlockList__.a,{state:dataSet,importBlock:this.importBlock,favorites:this.context.state.blockFavorites,makeFavorite:this.makeFavorite})))}}]),Blocks}(Component);_defineProperty(Blocks,"contextType",__WEBPACK_IMPORTED_MODULE_1__AnalogContext__.a)},function(module,__webpack_exports__,__webpack_require__){"use strict";function _templateObject3(){var data=_taggedTemplateLiteral(['\n\tflex: 1;\n\tmargin-left: 25px;\n\n\t.grid {\n\t\tdisplay: flex;\n\t\tmargin-left: -25px; /* gutter size offset */\n\t\twidth: auto;\n\t}\n\n\t.grid-item {\n\t\tpadding-left: 25px;\n\t\tbackground-clip: padding-box;\n\n\t\t&:empty {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t> div {\n\t\t\tbackground: #fff;\n\t\t\tbox-shadow: 0px 5px 20px rgba(0, 0, 0, 0.05);\n\t\t\tposition: relative;\n\t\t\tmargin-bottom: 25px;\n\t\t}\n\t}\n\n\tfigure {\n\t\tposition: relative;\n\t\toverflow: hidden;\n\t\tmargin: 0;\n\t\tmin-height: 150px;\n\t\tdisplay: flex;\n\n\t\t&:hover {\n\t\t\t.actions {\n\t\t\t\topacity: 1;\n\t\t\t\tbutton {\n\t\t\t\t\ttransform: none;\n\t\t\t\t\topacity: 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t.favorite {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\n\t\t.pattern-title {\n\t\t\tposition: absolute;\n\t\t\tbottom: 10px;\n\t\t\ttext-align: center;\n\t\t\twidth: 100%;\n\t\t\tfont-size: 14px !important;\n\t\t\ttext-transform: capitalize;\n\t\t}\n\n\t\t.actions {\n\t\t\tbutton {\n\t\t\t\ttransform: translateY(20px);\n\t\t\t\topacity: 0;\n\t\t\t}\n\t\t\t.ang-promo {\n\t\t\t\ttext-decoration: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t.favorite {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tz-index: 200;\n\t\tdisplay: inline-flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\twidth: 25px;\n\t\theight: 25px;\n\t\tbox-shadow: none !important;\n\t\toutline: none !important;\n\n\t\t&:not(.is-active) {\n\t\t\topacity: 0;\n\t\t}\n\n\t\t&:before {\n\t\t\tcontent: \'\';\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder-style: solid;\n\t\t\tborder-width: 42px 42px 0 0;\n\t\t\tborder-color: var(--ang-dark-bg) transparent transparent transparent;\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tz-index: 190;\n\t\t}\n\n\t\tsvg {\n\t\t\tfill: #fff;\n\t\t\tposition: relative;\n\t\t\tz-index: 195;\n\t\t\twidth: 17px;\n\t\t\theight: 17px;\n\t\t}\n\t\t&.is-active svg {\n\t\t\tfill: #FFB443;\n\t\t}\n\t}\n\n\timg {\n\t\tmax-width: 100%;\n\t\theight: auto;\n\t\talign-self: center;\n\t}\n\n\timg[src$="svg"] {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tobject-fit: cover;\n\t\tmax-height: 150px;\n\t}\n\n\th3 {\n\t\tmargin: 0;\n\t\tfont-weight: normal;\n\t\tfont-size: 16px;\n\t\tline-height: 21px;\n\t}\n\n\t .content {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\talign-items: center;\n\t}\n\n\t .components-base-control {\n\t\tmargin-bottom: 30px;\n\t}\n\n\t.components-text-control__input, .components-text-control__input[type="text"] {\n\t\tbackground-color: #fff;\n\t\tcolor: #060606;\n\t\tfont-size: 16px;\n\t}\n\n\t.button-plain {\n\t\tpadding: 0;\n\t\tmargin: 0;\n\t\tborder: none;\n\t\tborder-radius: 0;\n\t\tbox-shadow: none;\n\t\tcursor: pointer;\n\t\tappearance: none;\n\t\toutline: 0;\n\t\tbackground: transparent;\n\t\tfont-weight: bold;\n\t\tcolor: #060606;\n\t\tfont-size: 14.22px;\n\t}\n\t.inner-popup-header {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\talign-items: center;\n\t\tposition: sticky;\n\t\tbackground: #fff;\n\t}\n\t.inner-popup-header h1 {\n\t\tfont-size: 16px;\n\t\tfont-weight: bold;\n\t\tcolor: #000000;\n\t\tmargin: 0;\n\t}\n\t.inner-popup-content p {\n\t\tfont-size: 13px;\n\t\tline-height: 18px;\n\t\tcolor: #565d65;\n\t}\n']);return _templateObject3=function(){return data},data}function _templateObject2(){var data=_taggedTemplateLiteral(['\n\tdisplay: flex;\n\tmargin-left: -25px;\n\twidth: auto;\n\n\timg[src$="svg"].thumb {\n\t\twidth: 33.3333%;\n\t\tpadding-left: 25px;\n\t\tbackground-clip: padding-box;\n\t\tmax-height: 300px;\n\t\tobject-fit: cover;\n\t\tobject-position: top;\n\t\topacity: 0.7;\n\t\ttransition: all 200ms ease-in-out;\n\t\tanimation: '," 2s linear infinite;\n\t}\n"]);return _templateObject2=function(){return data},data}function _templateObject(){var data=_taggedTemplateLiteral(["\n  0% {\n    opacity: 0.7;\n  }\n\n  50% {\n    opacity: 0.1;\n  }\n\n  100% {\n    opacity: 0.7;\n  }\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var __WEBPACK_IMPORTED_MODULE_0_classnames__=__webpack_require__(5),__WEBPACK_IMPORTED_MODULE_0_classnames___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__),__WEBPACK_IMPORTED_MODULE_1_react_masonry_css__=__webpack_require__(71),__WEBPACK_IMPORTED_MODULE_1_react_masonry_css___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_masonry_css__),__WEBPACK_IMPORTED_MODULE_2_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_3__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_5__Notifications__=(__webpack_require__(13),__webpack_require__(6)),__WEBPACK_IMPORTED_MODULE_6__icons_star__=__webpack_require__(24),__WEBPACK_IMPORTED_MODULE_7__popup__=__webpack_require__(26),__WEBPACK_IMPORTED_MODULE_8__icons_loader__=__webpack_require__(25),__WEBPACK_IMPORTED_MODULE_9__ProModal__=__webpack_require__(34),__WEBPACK_IMPORTED_MODULE_10__helpers_Empty__=__webpack_require__(27),decodeEntities=wp.htmlEntities.decodeEntities,_wp$i18n=wp.i18n,__=_wp$i18n.__,sprintf=_wp$i18n.sprintf,_wp$components=wp.components,Dashicon=_wp$components.Dashicon,Button=_wp$components.Button,Card=_wp$components.Card,CardBody=_wp$components.CardBody,CardFooter=_wp$components.CardFooter,addQueryArgs=wp.url.addQueryArgs,rotateOpacity=Object(__WEBPACK_IMPORTED_MODULE_2_styled_components__.b)(_templateObject()),Container=(__WEBPACK_IMPORTED_MODULE_2_styled_components__.a.div(_templateObject2(),rotateOpacity),__WEBPACK_IMPORTED_MODULE_2_styled_components__.a.div(_templateObject3())),BlockList=function(_ref){var state=_ref.state,importBlock=_ref.importBlock,favorites=_ref.favorites,makeFavorite=_ref.makeFavorite,context=React.useContext(__WEBPACK_IMPORTED_MODULE_3__AnalogContext__.a),filteredBlocks=context.state.blocks.filter(function(block){return!("valid"!==AGWP.license.status&&context.state.showFree&&Boolean(block.is_pro))}),isValid=(AGWP.pluginURL,function(isPro){return!(isPro&&"valid"!==AGWP.license.status)}),breakpointColumnsObj={default:5,2e3:4,1600:3,1300:2,900:1},getScreenshot=function(block){return AGWP.isContainer?block.thumbnail||AGWP.blockMediaURL+"patterns/".concat(block.id,".webp?modified=").concat(block.modified):AGWP.blockMediaURL+block.id+".jpg"};return React.createElement(React.Fragment,null,state.state.modalActive&&React.createElement(__WEBPACK_IMPORTED_MODULE_7__popup__.a,{title:decodeEntities(state.state.activeBlock.title),style:{textAlign:"center"},onRequestClose:function(){state.dispatch({activeBlock:!1,modalActive:!1,blockImported:!1})}},!state.state.blockImported&&React.createElement(__WEBPACK_IMPORTED_MODULE_8__icons_loader__.a,null),state.state.blockImported&&React.createElement(React.Fragment,null,React.createElement("p",null,sprintf(__("The %s has been imported and is now available in the","ang"),AGWP.isContainer?"container":"section")," ",React.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:addQueryArgs("edit.php",{post_type:"elementor_library",tabs_group:!0,elementor_library_type:AGWP.isContainer?"container":"section"})},sprintf(__("Elementor %s library","ang"),AGWP.isContainer?"container":"section")),"."),React.createElement("p",null,React.createElement(Button,{isPrimary:!0,onClick:function(){state.dispatch({activeBlock:!1,modalActive:!1,blockImported:!1})}},__("Ok, thanks","ang")," ",React.createElement(Dashicon,{icon:"yes"}))))),React.createElement(Container,{className:"blocks-area"},"valid"!==AGWP.license.status&&React.createElement(__WEBPACK_IMPORTED_MODULE_9__ProModal__.a,null),!context.state.syncing&&context.state.blocks.length<1&&React.createElement(__WEBPACK_IMPORTED_MODULE_10__helpers_Empty__.a,{text:AGWP.isContainer?__("No patterns found","ang"):__("No blocks found","ang")}),context.state.syncing&&context.state.blocks.length<1&&React.createElement(__WEBPACK_IMPORTED_MODULE_10__helpers_Empty__.a,{text:AGWP.isContainer?__("Loading Patterns...","ang"):__("Loading Blocks...","ang")}),React.createElement(__WEBPACK_IMPORTED_MODULE_1_react_masonry_css___default.a,{breakpointCols:Boolean(AGWP.is_settings_page)?breakpointColumnsObj:3,className:"grid",columnClassName:"grid-item block-list"},filteredBlocks.length>=1&&filteredBlocks.map(function(block){var requiresElementorPro=!1;if(block.requiredPlugins&&block.requiredPlugins.length>0){var unresolvedPlugins=block.requiredPlugins.filter(function(plugin){return""!==plugin&&!AGWP.activePlugins.includes(plugin)});if(unresolvedPlugins.length>0&&!unresolvedPlugins.includes("elementor-pro"))return null;requiresElementorPro=unresolvedPlugins&&unresolvedPlugins.includes("elementor-pro")}return React.createElement("div",{key:block.id},React.createElement(Card,null,React.createElement(CardBody,null,block.is_pro&&React.createElement("span",{className:"pro"},__("Pro","ang")),React.createElement("figure",null,React.createElement("img",{src:getScreenshot(block),loading:"lazy",width:"720",height:"100",alt:block.title}),React.createElement("div",{className:"actions"},!isValid(block.is_pro)&&React.createElement("a",{className:"ang-promo",href:"https://analogwp.com/style-kits-pro/?utm_medium=plugin&utm_source=library&utm_campaign=style+kits+pro",target:"_blank"},React.createElement(Button,{isPrimary:!0},__("Go Pro","ang"))),isValid(block.is_pro)&&requiresElementorPro&&React.createElement("a",{className:"ang-requirements",href:"https://analogwp.com/style-kits-pro/?utm_medium=plugin&utm_source=library&utm_campaign=style+kits+pro",target:"_blank"},React.createElement("img",{className:"required-logo",src:AGWP.pluginURL+"/assets/img/elementor.svg"}),React.createElement("h4",{className:"title"},"Elementor PRO"),React.createElement("p",{className:"description"},"This pattern is using Elementor PRO widgets.")),React.createElement(__WEBPACK_IMPORTED_MODULE_5__Notifications__.a,null,function(_ref2){var add=_ref2.add;return!requiresElementorPro&&isValid(block.is_pro)&&React.createElement(Button,{isPrimary:!0,onClick:function(){return importBlock(block,add)}},__("Import","ang"))}),AGWP.isContainer&&React.createElement("div",{className:"pattern-title"},React.createElement("h3",null,decodeEntities(block.title)))),React.createElement("button",{className:__WEBPACK_IMPORTED_MODULE_0_classnames___default()("button-plain favorite",{"is-active":block.id in favorites}),onClick:function(){return makeFavorite(block.id)}},React.createElement(__WEBPACK_IMPORTED_MODULE_6__icons_star__.a,null)))),!AGWP.isContainer&&React.createElement(CardFooter,null,React.createElement("div",{className:"content"},React.createElement("h3",null,decodeEntities(block.title)),block.is_pro&&React.createElement("span",{className:"pro"},__("Pro","ang"))))))}))))};__webpack_exports__.a=BlockList},function(module,exports,__webpack_require__){"use strict";function _objectWithoutProperties(obj,keys){var target={};for(var i in obj)keys.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(obj,i)&&(target[i]=obj[i]);return target}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}Object.defineProperty(exports,"__esModule",{value:!0});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_react=__webpack_require__(3),_react2=function(obj){return obj&&obj.__esModule?obj:{default:obj}}(_react),defaultProps={breakpointCols:void 0,className:void 0,columnClassName:void 0,children:void 0,columnAttrs:void 0,column:void 0},DEFAULT_COLUMNS=2,Masonry=function(_React$Component){function Masonry(props){_classCallCheck(this,Masonry);var _this=_possibleConstructorReturn(this,(Masonry.__proto__||Object.getPrototypeOf(Masonry)).call(this,props));_this.reCalculateColumnCount=_this.reCalculateColumnCount.bind(_this),_this.reCalculateColumnCountDebounce=_this.reCalculateColumnCountDebounce.bind(_this);var columnCount=void 0;return columnCount=_this.props.breakpointCols&&_this.props.breakpointCols.default?_this.props.breakpointCols.default:parseInt(_this.props.breakpointCols)||DEFAULT_COLUMNS,_this.state={columnCount:columnCount},_this}return _inherits(Masonry,_React$Component),_createClass(Masonry,[{key:"componentDidMount",value:function(){this.reCalculateColumnCount(),window&&window.addEventListener("resize",this.reCalculateColumnCountDebounce)}},{key:"componentDidUpdate",value:function(){this.reCalculateColumnCount()}},{key:"componentWillUnmount",value:function(){window&&window.removeEventListener("resize",this.reCalculateColumnCountDebounce)}},{key:"reCalculateColumnCountDebounce",value:function(){var _this2=this;if(!window||!window.requestAnimationFrame)return void this.reCalculateColumnCount();window.cancelAnimationFrame&&window.cancelAnimationFrame(this._lastRecalculateAnimationFrame),this._lastRecalculateAnimationFrame=window.requestAnimationFrame(function(){_this2.reCalculateColumnCount()})}},{key:"reCalculateColumnCount",value:function(){var windowWidth=window&&window.innerWidth||1/0,breakpointColsObject=this.props.breakpointCols;"object"!==(void 0===breakpointColsObject?"undefined":_typeof(breakpointColsObject))&&(breakpointColsObject={default:parseInt(breakpointColsObject)||DEFAULT_COLUMNS});var matchedBreakpoint=1/0,columns=breakpointColsObject.default||DEFAULT_COLUMNS;for(var breakpoint in breakpointColsObject){var optBreakpoint=parseInt(breakpoint);optBreakpoint>0&&windowWidth<=optBreakpoint&&optBreakpoint<matchedBreakpoint&&(matchedBreakpoint=optBreakpoint,columns=breakpointColsObject[breakpoint])}columns=Math.max(1,parseInt(columns)||1),this.state.columnCount!==columns&&this.setState({columnCount:columns})}},{key:"itemsInColumns",value:function(){for(var currentColumnCount=this.state.columnCount,itemsInColumns=new Array(currentColumnCount),items=[].concat(this.props.children||[]),i=0;i<items.length;i++){var columnIndex=i%currentColumnCount;itemsInColumns[columnIndex]||(itemsInColumns[columnIndex]=[]),itemsInColumns[columnIndex].push(items[i])}return itemsInColumns}},{key:"renderColumns",value:function(){var _props=this.props,column=_props.column,_props$columnAttrs=_props.columnAttrs,columnAttrs=void 0===_props$columnAttrs?{}:_props$columnAttrs,columnClassName=_props.columnClassName,childrenInColumns=this.itemsInColumns(),columnWidth=100/childrenInColumns.length+"%",className=columnClassName;"string"!=typeof className&&(this.logDeprecated('The property "columnClassName" requires a string'),void 0===className&&(className="my-masonry-grid_column"));var columnAttributes=_extends({},column,columnAttrs,{style:_extends({},columnAttrs.style,{width:columnWidth}),className:className});return childrenInColumns.map(function(items,i){return _react2.default.createElement("div",_extends({},columnAttributes,{key:i}),items)})}},{key:"logDeprecated",value:function(message){console.error("[Masonry]",message)}},{key:"render",value:function(){var _props2=this.props,className=(_props2.children,_props2.breakpointCols,_props2.columnClassName,_props2.columnAttrs,_props2.column,_props2.className),rest=_objectWithoutProperties(_props2,["children","breakpointCols","columnClassName","columnAttrs","column","className"]),classNameOutput=className;return"string"!=typeof className&&(this.logDeprecated('The property "className" requires a string'),void 0===className&&(classNameOutput="my-masonry-grid")),_react2.default.createElement("div",_extends({},rest,{className:classNameOutput}),this.renderColumns())}}]),Masonry}(_react2.default.Component);Masonry.defaultProps=defaultProps,exports.default=Masonry},function(module,__webpack_exports__,__webpack_require__){"use strict";function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(iter){if(Symbol.iterator in Object(iter)||"[object Arguments]"===Object.prototype.toString.call(iter))return Array.from(iter)}function _arrayWithoutHoles(arr){if(Array.isArray(arr)){for(var i=0,arr2=new Array(arr.length);i<arr.length;i++)arr2[i]=arr[i];return arr2}}function _templateObject(){var data=_taggedTemplateLiteral(['\n\twidth: 100%;\n\tmax-width: 220px;\n\theight: 100vh;\n\tposition: sticky;\n\tposition: -webkit-sticky;\n\ttop: 35px;\n\n\t.components-tab-panel__tabs {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t}\n\n\t.components-tab-panel__tabs > .components-button {\n\t\ttext-transform: capitalize;\n\t}\n\n\t.components-toggle-control\n\t.components-base-control__field {\n\t\tflex-direction: row-reverse;\n\t\tjustify-content: space-between;\n\t}\n\n\t.components-toggle-control\n\t.components-base-control__field\n\t.components-form-toggle {\n\t\tmargin-right: 0;\n\t}\n\n\t.components-toggle-control\n\t.components-base-control__field\n\t.components-toggle-control__label {\n\t\tpadding: 8px 0 10px;\n\t}\n\n\t.components-base-control.components-toggle-control {\n\t\tborder-bottom: 1px solid var(--ang-border);\n\t}\n\n\t.block-categories-tabs .components-button {\n\t\tborder-radius: 0;\n\t\tpadding: 10px 0;\n\t\tfont-size: 16px;\n\t\tcolor: #060606;\n\t\tjustify-content: space-between;\n\t}\n\n\t.block-categories-tabs .components-button > span {\n\t\tcolor: rgba(0, 0, 0, 0.44);\n\t\tfont-size: 14.22px;\n\t\tfont-weight: normal;\n\t}\n\n\t.block-categories-tabs .components-button.active-tab {\n\t\tbox-shadow: none;\n\t\tfont-weight: bold;\n\t\tcolor: var(--ang-primary) !important;\n\t}\n\n\t.block-categories-tabs\n\t.components-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link):hover,\n\t.components-button:focus:not(:disabled) {\n\t\tbackground-color: transparent;\n\t\toutline: none;\n\t\tbox-shadow: none;\n\t}\n\n\t.block-categories-tabs .components-button:not([aria-disabled=true]):active {\n\t\tcolor: var(--ang-primary) !important;\n\t}\n\n\t.block-categories-tabs label,\n\t.components-toggle-control\n\t.components-base-control__field\n\t.components-toggle-control__label {\n\t\tfont-size: 16px;\n\t\tcolor: #060606;\n\t}\n\n\t.block-categories-tabs {\n\t\tpadding-right: 10px;\n\t}\n']);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var __WEBPACK_IMPORTED_MODULE_0_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_1__AnalogContext__=__webpack_require__(2),__=wp.i18n.__,_wp$components=wp.components,TextControl=_wp$components.TextControl,TabPanel=_wp$components.TabPanel,ToggleControl=_wp$components.ToggleControl,blockIdentifier=(_wp$components.Button,AGWP.isContainer?"all-patterns":"all-blocks"),defaultTabs=["favorites",blockIdentifier],SidebarWrapper=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.div(_templateObject()),Sidebar=function(_ref){var context=(_ref.state,React.useContext(__WEBPACK_IMPORTED_MODULE_1__AnalogContext__.a)),categories=_toConsumableArray(new Set(context.state.blockArchive.map(function(block){return block.tags[0]}))),filteredBlocks=context.state.blockArchive,favoriteBlocks=filteredBlocks.filter(function(t){return t.id in context.state.blockFavorites}),onSelect=function(tab){context.dispatch({blocksTab:tab});var selectFilteredBlocks=filteredBlocks;"favorites"===tab&&(selectFilteredBlocks=favoriteBlocks),"favorites"!==tab&&tab!==blockIdentifier&&(selectFilteredBlocks=context.state.blockArchive.filter(function(block){return block.tags.indexOf(tab)>-1}));var blocksSearchInput=context.state.blocksSearchInput;blocksSearchInput&&(selectFilteredBlocks=context.state.itemFilteredWithSearchTerm(selectFilteredBlocks,blocksSearchInput)),context.dispatch({blocks:selectFilteredBlocks})},getItemCount=function(tab){var blocks=context.state.blockArchive,blocksSearchInput=context.state.blocksSearchInput,foundItems=[];return tab===blockIdentifier&&(foundItems=context.state.blockArchive),"favorites"===tab&&(foundItems=favoriteBlocks),tab!==blockIdentifier&&"favorites"!==tab&&(foundItems=blocks.filter(function(block){return block.tags.indexOf(tab)>-1})),"valid"!==AGWP.license.status&&context.state.showFree&&(foundItems=foundItems.filter(function(block){return!block.is_pro})),blocksSearchInput&&(foundItems=context.state.itemFilteredWithSearchTerm(foundItems,blocksSearchInput)),!!foundItems&&foundItems.length},categoriesData=function(){return defaultTabs.concat(categories.sort())},titleGenerator=function(title){var count=getItemCount(title),countTemplate=count>0?count:0;return["".concat(title.replace(/-/g," ")," "),React.createElement("span",{key:title},countTemplate)]},tabGenerator=function(tabsArray){return tabsArray.filter(function(tab){return getItemCount(tab)>0}).map(function(item){return{name:item,title:titleGenerator(item),className:"tab-".concat(item)}})},toggleProBlocks=function(){context.dispatch({showFree:!context.state.showFree}),window.localStorage.setItem("analog::show-free",!context.state.showFree)};return React.createElement(SidebarWrapper,{className:"sidebar"},React.createElement(TextControl,{placeholder:AGWP.isContainer?__("Search Patterns","ang"):__("Search Blocks","ang"),value:context.state.blocksSearchInput,onChange:function(value){context.handleSearch(value,"patterns"),context.dispatch({blocksSearchInput:value})}}),"valid"!==AGWP.license.status&&React.createElement(ToggleControl,{label:AGWP.isContainer?__("Show Pro Patterns","ang"):__("Show Pro Blocks","ang"),checked:!context.state.showFree,onChange:toggleProBlocks}),tabGenerator(categoriesData()).length>=1&&React.createElement(TabPanel,{className:"block-categories-tabs",activeClass:"active-tab",initialTabName:function(defaultTab){var initialTab=defaultTab||context.state.blocksTab;if("undefined"!=typeof elementor&&elementor&&elementor.config){var type=elementor.config.document.type,_categories=categoriesData();if(context.state.showFree&&"valid"!==AGWP.license.status)return initialTab;switch(type){case"header":initialTab=_categories.includes("Headers")?"Headers":defaultTab;break;case"footer":initialTab=_categories.includes("Footers")?"Footers":defaultTab;break;case"single-page":case"single-post":case"page":initialTab=_categories.includes("Post Templates")?"Post Templates":defaultTab}}return initialTab}(context.state.blocksTab),onSelect:onSelect,tabs:tabGenerator(categoriesData())},function(tab){return null}))};__webpack_exports__.a=Sidebar},function(module,__webpack_exports__,__webpack_require__){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}var gen=fn.apply(self,args);_next(void 0)})}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _possibleConstructorReturn(self,call){return!call||"object"!==_typeof(call)&&"function"!=typeof call?_assertThisInitialized(self):call}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _templateObject(){var data=_taggedTemplateLiteral(["\n\t.templates-list {\n\t\t&.hide {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\tli {\n\t\t\tbackground: #fff;\n\t\t\tposition: relative;\n\t\t\tborder-radius: 4px;\n\t\t}\n\n\t\t.new {\n\t\t\tposition: absolute;\n\t\t\ttop: -8px;\n\t\t\tright: -8px;\n\t\t\tbackground: var(--ang-primary);\n\t\t\tcolor: #fff;\n\t\t\tz-index: 110;\n\t\t\tfont-weight: bold;\n\t\t\tpadding: 8px 10px;\n\t\t\tline-height: 1;\n\t\t\tborder-radius: 4px;\n\t\t\ttext-transform: uppercase;\n\t\t\tfont-size: 14.22px;\n\t\t\tletter-spacing: .5px;\n\t\t}\n\n\t\t.new {\n\t\t\tbackground: ",";\n\t\t}\n\n\t\tp {\n\t\t\tcolor: #939393;\n\t\t\tfont-size: 10px;\n\t\t\tmargin: 0;\n\t\t\tfont-weight: 500;\n\t\t}\n\n\t\t.content {\n\t\t\tsvg {\n\t\t\t\tfill: #d0d0d0;\n\t\t\t\ttransition: all 100ms ease-in;\n\t\t\t}\n\n\t\t\tbutton:hover,\n\t\t\tbutton.is-active {\n\t\t\t\tsvg {\n\t\t\t\t\tfill: #FFB443;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\th3 {\n\t\t\tfont-size: inherit;\n\t\t\ttext-transform: capitalize;\n\t\t\tmargin: 0;\n\t\t\tfont-weight: bold;\n\t\t}\n\n\t\timg {\n\t\t\twidth: 100%;\n\t\t\theight: auto;\n\t\t\tborder-top-left-radius: 4px;\n\t\t\tborder-top-right-radius: 4px;\n\t\t\tvertical-align: middle;\n\t\t}\n\n\t\tfigure {\n\t\t\tmargin: 0;\n\t\t\tposition: relative;\n\t\t\tmin-height: 100px;\n\n\t\t\t&:hover {\n\t\t\t\t.actions {\n\t\t\t\t\topacity: 1;\n\t\t\t\t\tbutton {\n\t\t\t\t\t\ttransform: none;\n\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t.favorite {\n\t\t\t\t\topacity: 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.actions button {\n\t\t\topacity: 0;\n\n\t\t\t&:nth-child(1) {\n\t\t\t\ttransform: translateX(-20px);\n\t\t\t}\n\t\t\t&:nth-child(2) {\n\t\t\t\ttransform: translateX(20px);\n\t\t\t}\n\n\t\t\t+ button, + .ang-promo {\n\t\t\t\tmargin-top: 10px;\n\t\t\t\ttext-decoration: none;\n\t\t\t}\n\t\t}\n\n\t\t.favorite {\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tz-index: 200;\n\t\t\tdisplay: inline-flex;\n\t\t\tjustify-content: center;\n\t\t\talign-items: center;\n\t\t\twidth: 25px;\n\t\t\theight: 25px;\n\n\t\t\t&:not(.is-active) {\n\t\t\t\topacity: 0;\n\t\t\t}\n\n\t\t\t&:before {\n\t\t\t\tcontent: '';\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\t\t\t\tborder-style: solid;\n\t\t\t\tborder-width: 42px 42px 0 0;\n\t\t\t\tborder-color: var(--ang-dark-bg) transparent transparent transparent;\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\tz-index: 190;\n\t\t\t}\n\n\t\t\tsvg {\n\t\t\t\tfill: #fff;\n\t\t\t\tposition: relative;\n\t\t\t\tz-index: 195;\n\t\t\t}\n\t\t\t&.is-active svg {\n\t\t\t\tfill: #FFB443;\n\t\t\t}\n\t\t}\n\t}\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var __WEBPACK_IMPORTED_MODULE_0_classnames__=__webpack_require__(5),__WEBPACK_IMPORTED_MODULE_0_classnames___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__),__WEBPACK_IMPORTED_MODULE_1_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_2__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_3__api__=__webpack_require__(4),__WEBPACK_IMPORTED_MODULE_4__collection_Collection__=__webpack_require__(74),__WEBPACK_IMPORTED_MODULE_5__contexts_ThemeContext__=__webpack_require__(12),__WEBPACK_IMPORTED_MODULE_6__helpers_Empty__=__webpack_require__(27),__WEBPACK_IMPORTED_MODULE_7__Modal__=__webpack_require__(85),__WEBPACK_IMPORTED_MODULE_8__popups_ImportTemplate__=__webpack_require__(86),__WEBPACK_IMPORTED_MODULE_9__Template__=__webpack_require__(35),__WEBPACK_IMPORTED_MODULE_10__ProModal__=__webpack_require__(34),__=wp.i18n.__,TemplatesContainer=__WEBPACK_IMPORTED_MODULE_1_styled_components__.a.div(_templateObject(),__WEBPACK_IMPORTED_MODULE_5__contexts_ThemeContext__.a.accent),initialState={template:null,pageName:null,showingModal:!1,importing:!1,importedPage:!1,importingElementor:!1,kit:!1},Templates=function(_React$Component){function Templates(){var _this;return _classCallCheck(this,Templates),_this=_possibleConstructorReturn(this,_getPrototypeOf(Templates).apply(this,arguments)),_defineProperty(_assertThisInitialized(_this),"closeOnEsc",function(event){27===event.keyCode&&_this.resetState()}),_defineProperty(_assertThisInitialized(_this),"setModalContent",function(template){window.scrollTo(0,0),_this.context.dispatch({isOpen:!_this.context.state.isOpen}),_this.setState({template:template})}),_defineProperty(_assertThisInitialized(_this),"makeFavorite",function(id){var favorites=_this.context.state.favorites;if(_this.context.markFavorite(id,!(id in favorites)),id in favorites?delete favorites[id]:favorites[id]=!(id in favorites),_this.context.dispatch({favorites:favorites}),_this.context.state.showing_favorites){var filteredTemplates=_this.context.state.templates.filter(function(t){return t.id in favorites});_this.context.dispatch({templates:filteredTemplates})}}),_defineProperty(_assertThisInitialized(_this),"handleImport",function(){var _ref=_asyncToGenerator(regeneratorRuntime.mark(function _callee(add){var withPage,kit,version,_args=arguments;return regeneratorRuntime.wrap(function(_context){for(;;)switch(_context.prev=_context.next){case 0:if(withPage=_args.length>1&&void 0!==_args[1]&&_args[1],_this.setState({importing:!0}),kit=_this.getStyleKitInfo(),!((version=_this.state.template.version)&&parseFloat(AGWP.version)<parseFloat(version))){_context.next=8;break}return _this.resetState(),add(__("This template requires an updated version, please update your plugin to latest version.","ang"),"error","ang","import-error",!1),_context.abrupt("return");case 8:return _context.next=10,Object(__WEBPACK_IMPORTED_MODULE_3__api__.e)(_this.state.template,withPage,kit).then(function(response){_this.setState({importedPage:response.page})}).catch(function(error){_this.resetState(),error.data&&error.data.errors?add(error.data.errors[Object.keys(error.data.errors)[0]],"error","import-error",!1):add(error.message,"error","import-error",!1)});case 10:case"end":return _context.stop()}},_callee)}));return function(_x){return _ref.apply(this,arguments)}}()),_defineProperty(_assertThisInitialized(_this),"canImportTemplate",function(template){return template||(template=_this.state.template),!template.is_pro||!(!template.is_pro||"valid"!==AGWP.license.status)}),_defineProperty(_assertThisInitialized(_this),"importLayout",function(template){template?_this.setState({template:template}):template=_this.state.template,_this.setState({showingModal:!0})}),_this.state=initialState,_this.handler=_this.handler.bind(_assertThisInitialized(_this)),_this.handleImport=_this.handleImport.bind(_assertThisInitialized(_this)),_this.getStyleKitInfo=_this.getStyleKitInfo.bind(_assertThisInitialized(_this)),_this}return _inherits(Templates,_React$Component),_createClass(Templates,[{key:"resetState",value:function(){this.context.dispatch({isOpen:!1}),this.setState(initialState)}},{key:"handler",value:function(value){this.setState(value)}},{key:"componentDidMount",value:function(){AGWP.isGlobalSkEnabled&&this.setState({kit:AGWP.globalKit[0].value}),window.addEventListener("keyup",this.closeOnEsc)}},{key:"componentWillUnmount",value:function(){this.resetState(),window.removeEventListener("keyup",this.closeOnEsc)}},{key:"getStyleKitInfo",value:function(){var _this2=this,isKitInstalled=this.context.state.installedKits.filter(function(k){return _this2.state.kit===k}),method=isKitInstalled.length>0?"insert":"import",data="insert"===method?this.state.kit:this.context.state.styleKits.find(function(k){return k.title===_this2.state.kit});return void 0===data&&(data=!1),{method:method,data:data}}},{key:"render",value:function(){var _this3=this;return React.createElement(TemplatesContainer,{className:__WEBPACK_IMPORTED_MODULE_0_classnames___default()({hide:this.state.template&&this.state.showingModal&&!this.canImportTemplate(),"preview-active":this.context.state.isOpen})},this.context.state.isOpen&&React.createElement(__WEBPACK_IMPORTED_MODULE_7__Modal__.a,{template:this.state.template,onRequestClose:function(){return _this3.context.dispatch({isOpen:!1})},onRequestImport:function(){return _this3.importLayout()}}),null!==this.state.template&&this.canImportTemplate()&&this.state.showingModal&&React.createElement(__WEBPACK_IMPORTED_MODULE_8__popups_ImportTemplate__.a,{onRequestClose:function(){return _this3.resetState()},state:this.state,handleImport:this.handleImport,handler:this.handler,getStyleKitInfo:this.getStyleKitInfo}),"valid"!==AGWP.license.status&&React.createElement(__WEBPACK_IMPORTED_MODULE_10__ProModal__.a,null),!this.context.state.isOpen&&this.context.state.templates.length<1&&React.createElement(__WEBPACK_IMPORTED_MODULE_6__helpers_Empty__.a,null),this.context.state.group?React.createElement(__WEBPACK_IMPORTED_MODULE_4__collection_Collection__.a,{setModalContent:this.setModalContent,importLayout:this.importLayout,makeFavorite:this.makeFavorite}):React.createElement("ul",{className:__WEBPACK_IMPORTED_MODULE_0_classnames___default()("templates-list",{hide:this.state.template&&this.state.showingModal&&!this.canImportTemplate()})},!this.context.state.isOpen&&this.context.state.count>=1&&this.context.state.templates.map(function(template){if("valid"!==AGWP.license.status){var isPro=!1===_this3.context.state.showFree&&!0===_this3.context.state.showPro&&!0===Boolean(template.is_pro),isFree=!0===_this3.context.state.showFree&&!1===_this3.context.state.showPro&&!1===Boolean(template.is_pro),isAll=!0===_this3.context.state.showFree&&!0===_this3.context.state.showPro;if(!(isPro||isFree||isAll))return}return React.createElement(__WEBPACK_IMPORTED_MODULE_9__Template__.a,{key:"".concat(template.id,"-").concat(template.site_id),template:template,favorites:_this3.context.state.favorites,setModalContent:_this3.setModalContent,importLayout:_this3.importLayout,makeFavorite:_this3.makeFavorite})})))}}]),Templates}(React.Component);Templates.contextType=__WEBPACK_IMPORTED_MODULE_2__AnalogContext__.a,__webpack_exports__.a=Templates},function(module,__webpack_exports__,__webpack_require__){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _possibleConstructorReturn(self,call){return!call||"object"!==_typeof(call)&&"function"!=typeof call?_assertThisInitialized(self):call}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _templateObject(){var data=_taggedTemplateLiteral(["\n\tli {\n\t\tbackground: #fff;\n\t\tposition: relative;\n\t\tborder-radius: 4px;\n\t\tposition: relative;\n\t}\n\tfigure {\n\t\tmargin: 0;\n\t\tposition: relative;\n\t\tmin-height: 100px;\n\t\t&:hover .actions {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\timg {\n\t\twidth: 100%;\n\t\theight: auto;\n\t\tborder-top-left-radius: 4px;\n\t\tborder-top-right-radius: 4px;\n\t\tvertical-align: middle;\n\t}\n\n\t.actions {\n\t\tbutton.is-large {\n\t\t\tfont-size: 24px;\n\t\t\theight: 48px;\n\t\t}\n\t}\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}__webpack_require__.d(__webpack_exports__,"a",function(){return Collection});var __WEBPACK_IMPORTED_MODULE_0_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_1__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_2__Template__=__webpack_require__(35),__=wp.i18n.__,_wp$components=wp.components,Button=_wp$components.Button,Card=_wp$components.Card,CardBody=_wp$components.CardBody,CardFooter=_wp$components.CardFooter,List=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.ul(_templateObject()),Collection=function(_React$Component){function Collection(){var _this;return _classCallCheck(this,Collection),_this=_possibleConstructorReturn(this,_getPrototypeOf(Collection).apply(this,arguments)),_this.getCollectionCount=_this.getCollectionCount.bind(_assertThisInitialized(_this)),_this.getGroupedCollection=_this.getGroupedCollection.bind(_assertThisInitialized(_this)),_this.getActiveKit=_this.getActiveKit.bind(_assertThisInitialized(_this)),_this}return _inherits(Collection,_React$Component),_createClass(Collection,[{key:"getGroupedCollection",value:function(){if(this.context.state.templates)return this.context.state.templates.reduce(function(accumulator,currentValue){return accumulator[currentValue.site_id]||(accumulator[currentValue.site_id]=[]),accumulator[currentValue.site_id].push(currentValue),accumulator},{})}},{key:"getCollectionCount",value:function(id){var collection=this.getGroupedCollection(),count=!1;if(collection[id]){var kit=collection[id];count=Object.keys(kit).length}return count}},{key:"getActiveKit",value:function(){var groupedCollection=this.getGroupedCollection(),activeKit=this.context.state.activeKit;return!!(activeKit&&activeKit.site_id in groupedCollection)&&groupedCollection[activeKit.site_id]}},{key:"render",value:function(){var _this2=this;return React.createElement("div",{className:"collection"},!this.context.state.activeKit&&React.createElement(List,{className:"templates-collection"},this.context.state.kits&&this.context.state.kits.map(function(kit){if(_this2.getCollectionCount(kit.site_id))return React.createElement("li",{key:kit.site_id},React.createElement(Card,null,React.createElement(CardBody,null,React.createElement("figure",null,React.createElement("img",{src:kit.thumbnail||AGWP.pluginURL+"assets/img/placeholder.svg",loading:"lazy",alt:kit.title}),React.createElement("div",{className:"actions"},React.createElement(Button,{isSecondary:!0,className:"black-transparent",onClick:function(){_this2.context.dispatch({activeKit:kit})}},__("View Templates","ang"))))),React.createElement(CardFooter,null,React.createElement("div",{className:"content"},React.createElement("h3",null,kit.title),React.createElement("span",null,_this2.getCollectionCount(kit.site_id))))))})),this.getActiveKit()&&React.createElement("ul",{className:"templates-list"},this.getActiveKit().map(function(template){if("valid"!==AGWP.license.status){var isPro=!1===_this2.context.state.showFree&&!0===_this2.context.state.showPro&&!0===Boolean(template.is_pro),isFree=!0===_this2.context.state.showFree&&!1===_this2.context.state.showPro&&!1===Boolean(template.is_pro),isAll=!0===_this2.context.state.showFree&&!0===_this2.context.state.showPro;if(!(isPro||isFree||isAll))return}return React.createElement(__WEBPACK_IMPORTED_MODULE_2__Template__.a,{key:template.id,template:template,favorites:_this2.context.state.favorites,setModalContent:_this2.props.setModalContent,importLayout:_this2.props.importLayout,makeFavorite:_this2.props.makeFavorite})})))}}]),Collection}(React.Component);Collection.contextType=__WEBPACK_IMPORTED_MODULE_1__AnalogContext__.a},function(module,__webpack_exports__,__webpack_require__){"use strict";function _extends(){return _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_extends.apply(this,arguments)}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit(arr,i){if(Symbol.iterator in Object(arr)||"[object Arguments]"===Object.prototype.toString.call(arr)){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=_objectWithoutPropertiesLoose(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++)key=sourceSymbolKeys[i],excluded.indexOf(key)>=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],excluded.indexOf(key)>=0||(target[key]=source[key]);return target}var __WEBPACK_IMPORTED_MODULE_0_react_waypoint__=__webpack_require__(76),Image=function(_ref){var template=_ref.template,attributes=_objectWithoutProperties(_ref,["template"]),thumbnail=template.thumbnail,title=template.title,_React$useState=React.useState(AGWP.pluginURL+"assets/img/placeholder.svg"),_React$useState2=_slicedToArray(_React$useState,2),image=_React$useState2[0],setImage=_React$useState2[1];return React.createElement(__WEBPACK_IMPORTED_MODULE_0_react_waypoint__.a,{onEnter:function(){setImage(thumbnail)}},React.createElement("img",_extends({src:image,loading:"lazy",width:"280",height:"390",alt:title},attributes)))};__webpack_exports__.a=Image},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(process,global){function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _possibleConstructorReturn(self,call){return!call||"object"!=typeof call&&"function"!=typeof call?_assertThisInitialized(self):call}function parseOffsetAsPercentage(str){if("%"===str.slice(-1))return parseFloat(str.slice(0,-1))/100}function parseOffsetAsPixels(str){return!isNaN(parseFloat(str))&&isFinite(str)?parseFloat(str):"px"===str.slice(-2)?parseFloat(str.slice(0,-2)):void 0}function computeOffsetPixels(offset,contextHeight){var pixelOffset=parseOffsetAsPixels(offset);if("number"==typeof pixelOffset)return pixelOffset;var percentOffset=parseOffsetAsPercentage(offset);return"number"==typeof percentOffset?percentOffset*contextHeight:void 0}function debugLog(){if("production"!==process.env.NODE_ENV){var _console;(_console=console).log.apply(_console,arguments)}}function isDOMElement(Component){return"string"==typeof Component.type}function ensureRefIsProvidedByChild(children,ref){if(children&&!isDOMElement(children)&&!ref)throw new Error(errorMessage)}function getCurrentPosition(bounds){return bounds.viewportBottom-bounds.viewportTop==0?INVISIBLE:bounds.viewportTop<=bounds.waypointTop&&bounds.waypointTop<=bounds.viewportBottom?INSIDE:bounds.viewportTop<=bounds.waypointBottom&&bounds.waypointBottom<=bounds.viewportBottom?INSIDE:bounds.waypointTop<=bounds.viewportTop&&bounds.viewportBottom<=bounds.waypointBottom?INSIDE:bounds.viewportBottom<bounds.waypointTop?BELOW:bounds.waypointTop<bounds.viewportTop?ABOVE:INVISIBLE}function onNextTick(cb){timeoutQueue.push(cb),timeout||(timeout=setTimeout(function(){timeout=null;for(var item;item=timeoutQueue.shift();)item()},0));var isSubscribed=!0;return function(){if(isSubscribed){isSubscribed=!1;var index=timeoutQueue.indexOf(cb);-1!==index&&(timeoutQueue.splice(index,1),!timeoutQueue.length&&timeout&&(clearTimeout(timeout),timeout=null))}}}function resolveScrollableAncestorProp(scrollableAncestor){return"window"===scrollableAncestor?global.window:scrollableAncestor}__webpack_require__.d(__webpack_exports__,"a",function(){return Waypoint});var timeout,__WEBPACK_IMPORTED_MODULE_0_consolidated_events__=__webpack_require__(78),__WEBPACK_IMPORTED_MODULE_1_prop_types__=__webpack_require__(79),__WEBPACK_IMPORTED_MODULE_1_prop_types___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__),__WEBPACK_IMPORTED_MODULE_2_react__=__webpack_require__(3),__WEBPACK_IMPORTED_MODULE_2_react___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__),__WEBPACK_IMPORTED_MODULE_3_react_is__=__webpack_require__(28),ABOVE=(__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react_is__),"above"),INSIDE="inside",BELOW="below",INVISIBLE="invisible",errorMessage="<Waypoint> needs a DOM element to compute boundaries. The child you passed is neither a DOM element (e.g. <div>) nor does it use the innerRef prop.\n\nSee https://goo.gl/LrBNgw for more info.",timeoutQueue=[],defaultProps={debug:!1,scrollableAncestor:void 0,children:void 0,topOffset:"0px",bottomOffset:"0px",horizontal:!1,onEnter:function(){},onLeave:function(){},onPositionChange:function(){},fireOnRapidScroll:!0},Waypoint=function(_React$PureComponent){function Waypoint(props){var _this;return _classCallCheck(this,Waypoint),_this=_possibleConstructorReturn(this,_getPrototypeOf(Waypoint).call(this,props)),_this.refElement=function(e){_this._ref=e},_this}return _inherits(Waypoint,_React$PureComponent),_createClass(Waypoint,[{key:"componentDidMount",value:function(){var _this2=this;Waypoint.getWindow()&&(this.cancelOnNextTick=onNextTick(function(){_this2.cancelOnNextTick=null;var _this2$props=_this2.props,children=_this2$props.children,debug=_this2$props.debug;ensureRefIsProvidedByChild(children,_this2._ref),_this2._handleScroll=_this2._handleScroll.bind(_this2),_this2.scrollableAncestor=_this2._findScrollableAncestor(),"production"!==process.env.NODE_ENV&&debug&&debugLog("scrollableAncestor",_this2.scrollableAncestor),_this2.scrollEventListenerUnsubscribe=Object(__WEBPACK_IMPORTED_MODULE_0_consolidated_events__.a)(_this2.scrollableAncestor,"scroll",_this2._handleScroll,{passive:!0}),_this2.resizeEventListenerUnsubscribe=Object(__WEBPACK_IMPORTED_MODULE_0_consolidated_events__.a)(window,"resize",_this2._handleScroll,{passive:!0}),_this2._handleScroll(null)}))}},{key:"componentDidUpdate",value:function(){var _this3=this;Waypoint.getWindow()&&this.scrollableAncestor&&(this.cancelOnNextTick||(this.cancelOnNextTick=onNextTick(function(){_this3.cancelOnNextTick=null,_this3._handleScroll(null)})))}},{key:"componentWillUnmount",value:function(){Waypoint.getWindow()&&(this.scrollEventListenerUnsubscribe&&this.scrollEventListenerUnsubscribe(),this.resizeEventListenerUnsubscribe&&this.resizeEventListenerUnsubscribe(),this.cancelOnNextTick&&this.cancelOnNextTick())}},{key:"_findScrollableAncestor",value:function(){var _this$props=this.props,horizontal=_this$props.horizontal,scrollableAncestor=_this$props.scrollableAncestor;if(scrollableAncestor)return resolveScrollableAncestorProp(scrollableAncestor);for(var node=this._ref;node.parentNode;){if((node=node.parentNode)===document.body)return window;var style=window.getComputedStyle(node),overflowDirec=horizontal?style.getPropertyValue("overflow-x"):style.getPropertyValue("overflow-y"),overflow=overflowDirec||style.getPropertyValue("overflow");if("auto"===overflow||"scroll"===overflow)return node}return window}},{key:"_handleScroll",value:function(event){if(this._ref){var bounds=this._getBounds(),currentPosition=getCurrentPosition(bounds),previousPosition=this._previousPosition,_this$props2=this.props,debug=_this$props2.debug,onPositionChange=_this$props2.onPositionChange,onEnter=_this$props2.onEnter,onLeave=_this$props2.onLeave,fireOnRapidScroll=_this$props2.fireOnRapidScroll;if("production"!==process.env.NODE_ENV&&debug&&(debugLog("currentPosition",currentPosition),debugLog("previousPosition",previousPosition)),this._previousPosition=currentPosition,previousPosition!==currentPosition){var callbackArg={currentPosition:currentPosition,previousPosition:previousPosition,event:event,waypointTop:bounds.waypointTop,waypointBottom:bounds.waypointBottom,viewportTop:bounds.viewportTop,viewportBottom:bounds.viewportBottom};onPositionChange.call(this,callbackArg),currentPosition===INSIDE?onEnter.call(this,callbackArg):previousPosition===INSIDE&&onLeave.call(this,callbackArg);var isRapidScrollDown=previousPosition===BELOW&&currentPosition===ABOVE,isRapidScrollUp=previousPosition===ABOVE&&currentPosition===BELOW;fireOnRapidScroll&&(isRapidScrollDown||isRapidScrollUp)&&(onEnter.call(this,{currentPosition:INSIDE,previousPosition:previousPosition,event:event,waypointTop:bounds.waypointTop,waypointBottom:bounds.waypointBottom,viewportTop:bounds.viewportTop,viewportBottom:bounds.viewportBottom}),onLeave.call(this,{currentPosition:currentPosition,previousPosition:INSIDE,event:event,waypointTop:bounds.waypointTop,waypointBottom:bounds.waypointBottom,viewportTop:bounds.viewportTop,viewportBottom:bounds.viewportBottom}))}}}},{key:"_getBounds",value:function(){var contextHeight,contextScrollTop,_this$props3=this.props,horizontal=_this$props3.horizontal,debug=_this$props3.debug,_this$_ref$getBoundin=this._ref.getBoundingClientRect(),left=_this$_ref$getBoundin.left,top=_this$_ref$getBoundin.top,right=_this$_ref$getBoundin.right,bottom=_this$_ref$getBoundin.bottom,waypointTop=horizontal?left:top,waypointBottom=horizontal?right:bottom;this.scrollableAncestor===window?(contextHeight=horizontal?window.innerWidth:window.innerHeight,contextScrollTop=0):(contextHeight=horizontal?this.scrollableAncestor.offsetWidth:this.scrollableAncestor.offsetHeight,contextScrollTop=horizontal?this.scrollableAncestor.getBoundingClientRect().left:this.scrollableAncestor.getBoundingClientRect().top),"production"!==process.env.NODE_ENV&&debug&&(debugLog("waypoint top",waypointTop),debugLog("waypoint bottom",waypointBottom),debugLog("scrollableAncestor height",contextHeight),debugLog("scrollableAncestor scrollTop",contextScrollTop));var _this$props4=this.props,bottomOffset=_this$props4.bottomOffset;return{waypointTop:waypointTop,waypointBottom:waypointBottom,viewportTop:contextScrollTop+computeOffsetPixels(_this$props4.topOffset,contextHeight),viewportBottom:contextScrollTop+contextHeight-computeOffsetPixels(bottomOffset,contextHeight)}}},{key:"render",value:function(){var _this4=this,children=this.props.children;if(!children)return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("span",{ref:this.refElement,style:{fontSize:0}});if(isDOMElement(children)||Object(__WEBPACK_IMPORTED_MODULE_3_react_is__.isForwardRef)(children)){var ref=function(node){_this4.refElement(node),children.ref&&("function"==typeof children.ref?children.ref(node):children.ref.current=node)};return __WEBPACK_IMPORTED_MODULE_2_react___default.a.cloneElement(children,{ref:ref})}return __WEBPACK_IMPORTED_MODULE_2_react___default.a.cloneElement(children,{innerRef:this.refElement})}}]),Waypoint}(__WEBPACK_IMPORTED_MODULE_2_react___default.a.PureComponent);"production"!==process.env.NODE_ENV&&(Waypoint.propTypes={children:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.element,debug:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,onEnter:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,onLeave:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,onPositionChange:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,fireOnRapidScroll:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,scrollableAncestor:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.any,horizontal:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,topOffset:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number]),bottomOffset:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number])}),Waypoint.above=ABOVE,Waypoint.below=BELOW,Waypoint.inside=INSIDE,Waypoint.invisible=INVISIBLE,Waypoint.getWindow=function(){if("undefined"!=typeof window)return window},Waypoint.defaultProps=defaultProps,Waypoint.displayName="Waypoint"}).call(__webpack_exports__,__webpack_require__(0),__webpack_require__(77))},function(module,exports){var g;g=function(){return this}();try{g=g||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(g=window)}module.exports=g},function(module,__webpack_exports__,__webpack_require__){"use strict";function testPassiveEventListeners(){if(!CAN_USE_DOM)return!1;if(!window.addEventListener||!window.removeEventListener||!Object.defineProperty)return!1;var supportsPassiveOption=!1;try{var opts=Object.defineProperty({},"passive",{get:function(){function get(){supportsPassiveOption=!0}return get}()}),noop=function(){};window.addEventListener("testPassiveEventSupport",noop,opts),window.removeEventListener("testPassiveEventSupport",noop,opts)}catch(e){}return supportsPassiveOption}function canUsePassiveEventListeners(){return void 0===memoized&&(memoized=testPassiveEventListeners()),memoized}function normalizeEventOptions(eventOptions){if(eventOptions)return canUsePassiveEventListeners()?eventOptions:!!eventOptions.capture}function eventOptionsKey(normalizedEventOptions){return normalizedEventOptions?!0===normalizedEventOptions?100:(normalizedEventOptions.capture<<0)+(normalizedEventOptions.passive<<1)+(normalizedEventOptions.once<<2):0}function ensureCanMutateNextEventHandlers(eventHandlers){eventHandlers.handlers===eventHandlers.nextHandlers&&(eventHandlers.nextHandlers=eventHandlers.handlers.slice())}function TargetEventHandlers(target){this.target=target,this.events={}}function addEventListener(target,eventName,listener,options){target[EVENT_HANDLERS_KEY]||(target[EVENT_HANDLERS_KEY]=new TargetEventHandlers(target));var normalizedEventOptions=normalizeEventOptions(options);return target[EVENT_HANDLERS_KEY].add(eventName,listener,normalizedEventOptions)}__webpack_require__.d(__webpack_exports__,"a",function(){return addEventListener});var CAN_USE_DOM=!("undefined"==typeof window||!window.document||!window.document.createElement),memoized=void 0;TargetEventHandlers.prototype.getEventHandlers=function(){function getEventHandlers(eventName,options){var key=String(eventName)+" "+String(eventOptionsKey(options));return this.events[key]||(this.events[key]={handlers:[],handleEvent:void 0},this.events[key].nextHandlers=this.events[key].handlers),this.events[key]}return getEventHandlers}(),TargetEventHandlers.prototype.handleEvent=function(){function handleEvent(eventName,options,event){var eventHandlers=this.getEventHandlers(eventName,options);eventHandlers.handlers=eventHandlers.nextHandlers,eventHandlers.handlers.forEach(function(handler){handler&&handler(event)})}return handleEvent}(),TargetEventHandlers.prototype.add=function(){function add(eventName,listener,options){var _this=this,eventHandlers=this.getEventHandlers(eventName,options);ensureCanMutateNextEventHandlers(eventHandlers),0===eventHandlers.nextHandlers.length&&(eventHandlers.handleEvent=this.handleEvent.bind(this,eventName,options),this.target.addEventListener(eventName,eventHandlers.handleEvent,options)),eventHandlers.nextHandlers.push(listener);var isSubscribed=!0;return function(){function unsubscribe(){if(isSubscribed){isSubscribed=!1,ensureCanMutateNextEventHandlers(eventHandlers);var index=eventHandlers.nextHandlers.indexOf(listener);eventHandlers.nextHandlers.splice(index,1),0===eventHandlers.nextHandlers.length&&(_this.target&&_this.target.removeEventListener(eventName,eventHandlers.handleEvent,options),eventHandlers.handleEvent=void 0)}}return unsubscribe}()}return add}();var EVENT_HANDLERS_KEY="__consolidated_events_handlers__"},function(module,exports,__webpack_require__){(function(process){if("production"!==process.env.NODE_ENV){var ReactIs=__webpack_require__(28);module.exports=__webpack_require__(82)(ReactIs.isElement,!0)}else module.exports=__webpack_require__(84)()}).call(exports,__webpack_require__(0))},function(module,exports,__webpack_require__){"use strict";function z(a){if("object"==typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}/** @license React v16.13.1
    2828 * react-is.production.min.js
    2929 *
  • analogwp-templates/tags/2.0.2/inc/Plugin.php

    r2859992 r2894359  
    180180            'isContainer'             => Utils::is_container(),
    181181            'activePlugins'           => array_values( $plugins ),
     182            'wp_version'              => get_bloginfo( 'version' ),
    182183        );
    183184
  • analogwp-templates/tags/2.0.2/inc/elementor/class-typography.php

    r2859992 r2894359  
    580580                    'unit' => 'px',
    581581                ),
    582                 'size_units'  => array( 'px', 'em', '%' ),
     582                'size_units'  => array( 'px', 'em', '%', 'rem', 'vw', 'custom' ),
    583583                'selectors'   => array(
    584584                    '{{WRAPPER}} {{CURRENT_ITEM}}.elementor-element' => '--padding-top: {{TOP}}{{UNIT}}; --padding-right: {{RIGHT}}{{UNIT}}; --padding-bottom: {{BOTTOM}}{{UNIT}}; --padding-left: {{LEFT}}{{UNIT}}',
     
    708708                        'unit' => 'em',
    709709                    ),
    710                     'size_units' => array( 'px', 'em', '%' ),
     710                    'size_units' => array( 'px', 'em', '%', 'rem', 'vw', 'custom' ),
    711711                    'selectors'  => array(
    712712                        "{{WRAPPER}} .ang-section-padding-{$key}.elementor-top-section" =>
     
    771771                    'label'      => $label,
    772772                    'type'       => Controls_Manager::DIMENSIONS,
    773                     'size_units' => array( 'px', 'em', '%' ),
     773                    'size_units' => array( 'px', 'em', '%', 'rem', 'vw', 'custom' ),
    774774                    'selectors'  => array(
    775775                        "{{WRAPPER}} .elementor-column-gap-{$key} {$elementor_row} > .elementor-column > .elementor-element-populated"
     
    902902                    'label'      => __( 'Border Radius', 'ang' ),
    903903                    'type'       => Controls_Manager::DIMENSIONS,
    904                     'size_units' => array( 'px', '%' ),
     904                    'size_units' => array( 'px', 'em', '%', 'rem', 'custom' ),
    905905                    'selectors'  => array(
    906906                        "{{WRAPPER}} a.elementor-button.elementor-size-{$size}, {{WRAPPER}} .elementor-button.elementor-size-{$size}" => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     
    961961                    'label'      => __( 'Border Radius', 'ang' ),
    962962                    'type'       => Controls_Manager::DIMENSIONS,
    963                     'size_units' => array( 'px', '%' ),
     963                    'size_units' => array( 'px', 'em', '%', 'rem', 'custom' ),
    964964                    'selectors'  => array(
    965965                        "{{WRAPPER}} a.elementor-button.elementor-size-{$size}:hover, {{WRAPPER}} .elementor-button.elementor-size-{$size}:hover" => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     
    974974                    'label'      => __( 'Padding', 'ang' ),
    975975                    'type'       => Controls_Manager::DIMENSIONS,
    976                     'size_units' => array( 'px', 'em', '%' ),
     976                    'size_units' => array( 'px', 'em', '%', 'rem', 'vw', 'custom' ),
    977977                    'selectors'  => array(
    978978                        "{{WRAPPER}} a.elementor-button.elementor-size-{$size}, {{WRAPPER}} .elementor-button.elementor-size-{$size}" => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
  • analogwp-templates/tags/2.0.2/languages/ang.pot

    r2865003 r2894359  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Style Kits for Elementor 2.0.1\n"
     5"Project-Id-Version: Style Kits for Elementor 2.0.2\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/analogwp-templates\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2023-02-14T06:57:50+00:00\n"
     12"POT-Creation-Date: 2023-04-05T11:55:10+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.6.0\n"
     
    659659
    660660#: inc/elementor/class-finder-shortcuts.php:53
    661 #: inc/Plugin.php:215
     661#: inc/Plugin.php:216
    662662#: inc/register-settings.php:47
    663663msgid "Settings"
     
    14061406#. translators: %1$s: Link to Style Kits Pro. %2$s: Go Pro text.
    14071407#: inc/elementor/Promotions.php:154
    1408 #: inc/Plugin.php:221
     1408#: inc/Plugin.php:222
    14091409#: inc/register-settings.php:78
    14101410#: assets/js/app.js:11
     
    20942094
    20952095#: assets/js/app.js:27
    2096 #: client/blocks/Sidebar.js:185
     2096#: client/blocks/Sidebar.js:224
    20972097msgid "Search Patterns"
    20982098msgstr ""
    20992099
    21002100#: assets/js/app.js:27
    2101 #: client/blocks/Sidebar.js:185
     2101#: client/blocks/Sidebar.js:224
    21022102msgid "Search Blocks"
    21032103msgstr ""
    21042104
    21052105#: assets/js/app.js:27
    2106 #: client/blocks/Sidebar.js:195
     2106#: client/blocks/Sidebar.js:234
    21072107msgid "Show Pro Patterns"
    21082108msgstr ""
    21092109
    21102110#: assets/js/app.js:27
    2111 #: client/blocks/Sidebar.js:195
     2111#: client/blocks/Sidebar.js:234
    21122112msgid "Show Pro Blocks"
    21132113msgstr ""
  • analogwp-templates/tags/2.0.2/third-party/vendor/autoload.php

    r2865003 r2894359  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInitc2ed251493a72e92c1c744620e15a488::getLoader();
     25return ComposerAutoloaderInit718c68caf57a0c1d92bd7ef550dffcbf::getLoader();
  • analogwp-templates/tags/2.0.2/third-party/vendor/composer/autoload_real.php

    r2865003 r2894359  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitc2ed251493a72e92c1c744620e15a488
     5class ComposerAutoloaderInit718c68caf57a0c1d92bd7ef550dffcbf
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInitc2ed251493a72e92c1c744620e15a488', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInit718c68caf57a0c1d92bd7ef550dffcbf', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    27         spl_autoload_unregister(array('ComposerAutoloaderInitc2ed251493a72e92c1c744620e15a488', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInit718c68caf57a0c1d92bd7ef550dffcbf', 'loadClassLoader'));
    2828
    2929        require __DIR__ . '/autoload_static.php';
    30         call_user_func(\Composer\Autoload\ComposerStaticInitc2ed251493a72e92c1c744620e15a488::getInitializer($loader));
     30        call_user_func(\Composer\Autoload\ComposerStaticInit718c68caf57a0c1d92bd7ef550dffcbf::getInitializer($loader));
    3131
    3232        $loader->setClassMapAuthoritative(true);
  • analogwp-templates/tags/2.0.2/third-party/vendor/composer/autoload_static.php

    r2865003 r2894359  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitc2ed251493a72e92c1c744620e15a488
     7class ComposerStaticInit718c68caf57a0c1d92bd7ef550dffcbf
    88{
    99    public static $classMap = array (
     
    2525    {
    2626        return \Closure::bind(function () use ($loader) {
    27             $loader->classMap = ComposerStaticInitc2ed251493a72e92c1c744620e15a488::$classMap;
     27            $loader->classMap = ComposerStaticInit718c68caf57a0c1d92bd7ef550dffcbf::$classMap;
    2828
    2929        }, null, ClassLoader::class);
  • analogwp-templates/trunk/analogwp-templates.php

    r2865003 r2894359  
    1111 * Plugin URI:  https://analogwp.com/
    1212 * Description: Style Kits extends the Elementor theme styles editor with more global styling options. Boost your design workflow in Elementor with intuitive global controls and theme style presets.
    13  * Version:     2.0.1
     13 * Version:     2.0.2
    1414 * Author:      AnalogWP
    1515 * Author URI:  https://analogwp.com/
     
    1717 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1818 * Text Domain: ang
    19  * Elementor tested up to: 3.11.0
    20  * Elementor Pro tested up to: 3.11.0
     19 * Elementor tested up to: 3.12.1
     20 * Elementor Pro tested up to: 3.12.1
    2121 */
    2222
     
    2424
    2525define( 'ANG_ELEMENTOR_MINIMUM', '3.5.0' );
    26 define( 'ANG_PHP_MINIMUM', '5.6.0' );
    27 define( 'ANG_WP_MINIMUM', '5.2' );
    28 define( 'ANG_VERSION', '2.0.1' );
     26define( 'ANG_PHP_MINIMUM', '7.0' );
     27define( 'ANG_WP_MINIMUM', '5.9' );
     28define( 'ANG_VERSION', '2.0.2' );
    2929define( 'ANG_PLUGIN_FILE', __FILE__ );
    3030define( 'ANG_PLUGIN_URL', plugin_dir_url( ANG_PLUGIN_FILE ) );
     
    4545        wp_die(
    4646            /* translators: %s: version number */
    47             esc_html( sprintf( __( 'Style Kit for Elementor requires PHP version %s', 'ang' ), '5.6.0' ) ),
     47            esc_html( sprintf( __( 'Style Kit for Elementor requires PHP version %s', 'ang' ), ANG_PHP_MINIMUM ) ),
    4848            esc_html__( 'Error Activating', 'ang' )
    4949        );
  • analogwp-templates/trunk/assets/js/app.js

    r2859992 r2894359  
    99@license MIT
    1010*/
    11 var getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable;module.exports=function(){try{if(!Object.assign)return!1;var test1=new String("abc");if(test1[5]="de","5"===Object.getOwnPropertyNames(test1)[0])return!1;for(var test2={},i=0;i<10;i++)test2["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(test2).map(function(n){return test2[n]}).join(""))return!1;var test3={};return"abcdefghijklmnopqrst".split("").forEach(function(letter){test3[letter]=letter}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},test3)).join("")}catch(err){return!1}}()?Object.assign:function(target,source){for(var from,symbols,to=toObject(target),s=1;s<arguments.length;s++){from=Object(arguments[s]);for(var key in from)hasOwnProperty.call(from,key)&&(to[key]=from[key]);if(getOwnPropertySymbols){symbols=getOwnPropertySymbols(from);for(var i=0;i<symbols.length;i++)propIsEnumerable.call(from,symbols[i])&&(to[symbols[i]]=from[symbols[i]])}}return to}},function(module,__webpack_exports__,__webpack_require__){"use strict";var _wp$components=wp.components,__=(_wp$components.ExternalLink,_wp$components.Button,wp.i18n.__),ProModal=function(){return React.createElement("div",{className:"pro-modal-container"},React.createElement("p",null,__("Get unlimited access to the Style Kits library and features with the PRO version.","ang")),React.createElement("a",{href:"https://analogwp.com/pricing/?utm_medium=plugin&utm_source=library&utm_campaign=style+kits+pro",target:"_blank"},__("View Plans","ang")))};__webpack_exports__.a=ProModal},function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0_classnames__=__webpack_require__(5),__WEBPACK_IMPORTED_MODULE_0_classnames___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__),__WEBPACK_IMPORTED_MODULE_1__helpers_Image__=__webpack_require__(75),__WEBPACK_IMPORTED_MODULE_2__icons_star__=__webpack_require__(24),__WEBPACK_IMPORTED_MODULE_3__utils__=__webpack_require__(13),decodeEntities=wp.htmlEntities.decodeEntities,__=wp.i18n.__,_wp$components=wp.components,Button=_wp$components.Button,Card=_wp$components.Card,CardBody=_wp$components.CardBody,CardFooter=_wp$components.CardFooter,Template=function(_ref){var template=_ref.template,setModalContent=_ref.setModalContent,importLayout=_ref.importLayout,favorites=_ref.favorites,makeFavorite=_ref.makeFavorite,isValid=function(isPro){return!(isPro&&"valid"!==AGWP.license.status)},fallbackImage=AGWP.pluginURL+"assets/img/placeholder.svg";return React.createElement("li",null,React.createElement(Card,null,React.createElement(CardBody,null,Object(__WEBPACK_IMPORTED_MODULE_3__utils__.e)(template.published)>-14&&React.createElement("span",{className:"new"},__("New","ang")),React.createElement("figure",null,template.thumbnail?React.createElement(__WEBPACK_IMPORTED_MODULE_1__helpers_Image__.a,{template:template}):React.createElement("img",{src:fallbackImage}),React.createElement("div",{className:"actions"},React.createElement(Button,{isSecondary:!0,className:"black-transparent",onClick:function(){return setModalContent(template)}},__("Preview","ang")),!isValid(template.is_pro)&&React.createElement("a",{className:"ang-promo",href:"https://analogwp.com/style-kits-pro/?utm_medium=plugin&utm_source=library&utm_campaign=style+kits+pro",target:"_blank"},React.createElement(Button,{isPrimary:!0},__("Go Pro","ang"))),isValid(template.is_pro)&&React.createElement(Button,{isPrimary:!0,onClick:function(){return importLayout(template)}},__("Import","ang"))),React.createElement("button",{className:__WEBPACK_IMPORTED_MODULE_0_classnames___default()("button-plain favorite",{"is-active":template.id in favorites}),onClick:function(){return makeFavorite(template.id)}},React.createElement(__WEBPACK_IMPORTED_MODULE_2__icons_star__.a,null)))),React.createElement(CardFooter,null,React.createElement("div",{className:"content"},React.createElement("span",null,React.createElement("h3",null,decodeEntities(template.title)),template.tags&&React.createElement("div",{className:"tags"},template.tags.map(function(tag){return React.createElement("span",{key:tag},tag)}))),template.is_pro&&React.createElement("span",{className:"pro"},__("Pro","ang"))))))};__webpack_exports__.a=Template},function(module,__webpack_exports__,__webpack_require__){"use strict";function _toConsumableArray(arr){return Object(__WEBPACK_IMPORTED_MODULE_0__arrayWithoutHoles__.a)(arr)||Object(__WEBPACK_IMPORTED_MODULE_1__iterableToArray__.a)(arr)||Object(__WEBPACK_IMPORTED_MODULE_2__nonIterableSpread__.a)()}__webpack_exports__.a=_toConsumableArray;var __WEBPACK_IMPORTED_MODULE_0__arrayWithoutHoles__=__webpack_require__(89),__WEBPACK_IMPORTED_MODULE_1__iterableToArray__=__webpack_require__(90),__WEBPACK_IMPORTED_MODULE_2__nonIterableSpread__=__webpack_require__(91)},function(module,__webpack_exports__,__webpack_require__){"use strict";function areInputsEqual(newInputs,lastInputs){if(newInputs.length!==lastInputs.length)return!1;for(var i=0;i<newInputs.length;i++)if(newInputs[i]!==lastInputs[i])return!1;return!0}function memoizeOne(resultFn,isEqual){function memoized(){for(var newArgs=[],_i=0;_i<arguments.length;_i++)newArgs[_i]=arguments[_i];return calledOnce&&lastThis===this&&isEqual(newArgs,lastArgs)?lastResult:(lastResult=resultFn.apply(this,newArgs),calledOnce=!0,lastThis=this,lastArgs=newArgs,lastResult)}void 0===isEqual&&(isEqual=areInputsEqual);var lastThis,lastResult,lastArgs=[],calledOnce=!1;return memoized}__webpack_exports__.a=memoizeOne},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(process){function toSheet(block){block&&Sheet.current.insert(block+"}")}var __WEBPACK_IMPORTED_MODULE_0__emotion_sheet__=__webpack_require__(39),__WEBPACK_IMPORTED_MODULE_1__emotion_stylis__=__webpack_require__(94),Sheet=(__webpack_require__(95),{current:null}),ruleSheet=function(context,content,selectors,parents,line,column,length,ns,depth,at){switch(context){case 1:switch(content.charCodeAt(0)){case 64:return Sheet.current.insert(content+";"),"";case 108:if(98===content.charCodeAt(2))return""}break;case 2:if(0===ns)return content+"/*|*/";break;case 3:switch(ns){case 102:case 112:return Sheet.current.insert(selectors[0]+content),"";default:return content+(0===at?"/*|*/":"")}case-2:content.split("/*|*/}").forEach(toSheet)}},createCache=function(options){void 0===options&&(options={});var stylisOptions,key=options.key||"css";void 0!==options.prefix&&(stylisOptions={prefix:options.prefix});var stylis=new __WEBPACK_IMPORTED_MODULE_1__emotion_stylis__.a(stylisOptions);if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(key))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+key+'" was passed');var container,inserted={};container=options.container||document.head;var nodes=document.querySelectorAll("style[data-emotion-"+key+"]");Array.prototype.forEach.call(nodes,function(node){node.getAttribute("data-emotion-"+key).split(" ").forEach(function(id){inserted[id]=!0}),node.parentNode!==container&&container.appendChild(node)});var _insert;if(stylis.use(options.stylisPlugins)(ruleSheet),_insert=function(selector,serialized,sheet,shouldCache){var name=serialized.name;if(Sheet.current=sheet,"production"!==process.env.NODE_ENV&&void 0!==serialized.map){var map=serialized.map;Sheet.current={insert:function(rule){sheet.insert(rule+map)}}}stylis(selector,serialized.styles),shouldCache&&(cache.inserted[name]=!0)},"production"!==process.env.NODE_ENV){var commentStart=/\/\*/g,commentEnd=/\*\//g;stylis.use(function(context,content){switch(context){case-1:for(;commentStart.test(content);){commentEnd.lastIndex=commentStart.lastIndex;{if(!commentEnd.test(content))throw new Error('Your styles have an unterminated comment ("/*" without corresponding "*/").');commentStart.lastIndex=commentEnd.lastIndex}}commentStart.lastIndex=0}}),stylis.use(function(context,content,selectors){switch(context){case-1:var unsafePseudoClasses=content.match(/(:first|:nth|:nth-last)-child/g);unsafePseudoClasses&&!0!==cache.compat&&unsafePseudoClasses.forEach(function(unsafePseudoClass){var ignoreRegExp=new RegExp(unsafePseudoClass+".*\\/\\* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason \\*\\/"),ignore=ignoreRegExp.test(content);unsafePseudoClass&&!ignore&&console.error('The pseudo class "'+unsafePseudoClass+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+unsafePseudoClass.split("-child")[0]+'-of-type".')})}})}var cache={key:key,sheet:new __WEBPACK_IMPORTED_MODULE_0__emotion_sheet__.a({key:key,container:container,nonce:options.nonce,speedy:options.speedy}),nonce:options.nonce,inserted:inserted,registered:{},insert:_insert};return cache};__webpack_exports__.a=createCache}).call(__webpack_exports__,__webpack_require__(0))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(process){function sheetForTag(tag){if(tag.sheet)return tag.sheet;for(var i=0;i<document.styleSheets.length;i++)if(document.styleSheets[i].ownerNode===tag)return document.styleSheets[i]}function createStyleElement(options){var tag=document.createElement("style");return tag.setAttribute("data-emotion",options.key),void 0!==options.nonce&&tag.setAttribute("nonce",options.nonce),tag.appendChild(document.createTextNode("")),tag}__webpack_require__.d(__webpack_exports__,"a",function(){return StyleSheet});var StyleSheet=function(){function StyleSheet(options){this.isSpeedy=void 0===options.speedy?"production"===process.env.NODE_ENV:options.speedy,this.tags=[],this.ctr=0,this.nonce=options.nonce,this.key=options.key,this.container=options.container,this.before=null}var _proto=StyleSheet.prototype;return _proto.insert=function(rule){if(this.ctr%(this.isSpeedy?65e3:1)==0){var before,_tag=createStyleElement(this);before=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(_tag,before),this.tags.push(_tag)}var tag=this.tags[this.tags.length-1];if(this.isSpeedy){var sheet=sheetForTag(tag);try{var isImportRule=105===rule.charCodeAt(1)&&64===rule.charCodeAt(0);sheet.insertRule(rule,isImportRule?0:sheet.cssRules.length)}catch(e){"production"!==process.env.NODE_ENV&&console.warn('There was a problem inserting the following rule: "'+rule+'"',e)}}else tag.appendChild(document.createTextNode(rule));this.ctr++},_proto.flush=function(){this.tags.forEach(function(tag){return tag.parentNode.removeChild(tag)}),this.tags=[],this.ctr=0},StyleSheet}()}).call(__webpack_exports__,__webpack_require__(0))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(process){function handleInterpolation(mergedProps,registered,interpolation,couldBeSelectorInterpolation){if(null==interpolation)return"";if(void 0!==interpolation.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===interpolation.toString())throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");return interpolation}switch(typeof interpolation){case"boolean":return"";case"object":if(1===interpolation.anim)return cursor={name:interpolation.name,styles:interpolation.styles,next:cursor},interpolation.name;if(void 0!==interpolation.styles){var next=interpolation.next;if(void 0!==next)for(;void 0!==next;)cursor={name:next.name,styles:next.styles,next:cursor},next=next.next;var styles=interpolation.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==interpolation.map&&(styles+=interpolation.map),styles}return createStringFromObject(mergedProps,registered,interpolation);case"function":if(void 0!==mergedProps){var previousCursor=cursor,result=interpolation(mergedProps);return cursor=previousCursor,handleInterpolation(mergedProps,registered,result,couldBeSelectorInterpolation)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var matched=[],replaced=interpolation.replace(animationRegex,function(match,p1,p2){var fakeVarName="animation"+matched.length;return matched.push("const "+fakeVarName+" = keyframes`"+p2.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+fakeVarName+"}"});matched.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(matched,["`"+replaced+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+replaced+"`")}}if(null==registered)return interpolation;var cached=registered[interpolation];return"production"!==process.env.NODE_ENV&&couldBeSelectorInterpolation&&shouldWarnAboutInterpolatingClassNameFromCss&&void 0!==cached&&(console.error("Interpolating a className from css`` is not recommended and will cause problems with composition.\nInterpolating a className from css`` will be completely unsupported in a future major version of Emotion"),shouldWarnAboutInterpolatingClassNameFromCss=!1),void 0===cached||couldBeSelectorInterpolation?interpolation:cached}function createStringFromObject(mergedProps,registered,obj){var string="";if(Array.isArray(obj))for(var i=0;i<obj.length;i++)string+=handleInterpolation(mergedProps,registered,obj[i],!1);else for(var _key in obj){var value=obj[_key];if("object"!=typeof value)null!=registered&&void 0!==registered[value]?string+=_key+"{"+registered[value]+"}":isProcessableValue(value)&&(string+=processStyleName(_key)+":"+processStyleValue(_key,value)+";");else{if("NO_COMPONENT_SELECTOR"===_key&&"production"!==process.env.NODE_ENV)throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");if(!Array.isArray(value)||"string"!=typeof value[0]||null!=registered&&void 0!==registered[value[0]]){var interpolated=handleInterpolation(mergedProps,registered,value,!1);switch(_key){case"animation":case"animationName":string+=processStyleName(_key)+":"+interpolated+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===_key&&console.error(UNDEFINED_AS_OBJECT_KEY_ERROR),string+=_key+"{"+interpolated+"}"}}else for(var _i=0;_i<value.length;_i++)isProcessableValue(value[_i])&&(string+=processStyleName(_key)+":"+processStyleValue(_key,value[_i])+";")}}return string}__webpack_require__.d(__webpack_exports__,"a",function(){return serializeStyles});var __WEBPACK_IMPORTED_MODULE_0__emotion_hash__=__webpack_require__(97),__WEBPACK_IMPORTED_MODULE_1__emotion_unitless__=__webpack_require__(98),__WEBPACK_IMPORTED_MODULE_2__emotion_memoize__=__webpack_require__(99),ILLEGAL_ESCAPE_SEQUENCE_ERROR="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",UNDEFINED_AS_OBJECT_KEY_ERROR="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(property){return 45===property.charCodeAt(1)},isProcessableValue=function(value){return null!=value&&"boolean"!=typeof value},processStyleName=Object(__WEBPACK_IMPORTED_MODULE_2__emotion_memoize__.a)(function(styleName){return isCustomProperty(styleName)?styleName:styleName.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function(key,value){switch(key){case"animation":case"animationName":if("string"==typeof value)return value.replace(animationRegex,function(match,p1,p2){return cursor={name:p1,styles:p2,next:cursor},p1})}return 1===__WEBPACK_IMPORTED_MODULE_1__emotion_unitless__.a[key]||isCustomProperty(key)||"number"!=typeof value||0===value?value:value+"px"};if("production"!==process.env.NODE_ENV){var contentValuePattern=/(attr|calc|counters?|url)\(/,contentValues=["normal","none","counter","open-quote","close-quote","no-open-quote","no-close-quote","initial","inherit","unset"],oldProcessStyleValue=processStyleValue,msPattern=/^-ms-/,hyphenPattern=/-(.)/g,hyphenatedCache={};processStyleValue=function(key,value){"content"===key&&("string"!=typeof value||-1===contentValues.indexOf(value)&&!contentValuePattern.test(value)&&(value.charAt(0)!==value.charAt(value.length-1)||'"'!==value.charAt(0)&&"'"!==value.charAt(0)))&&console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+value+"\"'`");var processed=oldProcessStyleValue(key,value);return""===processed||isCustomProperty(key)||-1===key.indexOf("-")||void 0!==hyphenatedCache[key]||(hyphenatedCache[key]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+key.replace(msPattern,"ms-").replace(hyphenPattern,function(str,_char){return _char.toUpperCase()})+"?")),processed}}var sourceMapPattern,shouldWarnAboutInterpolatingClassNameFromCss=!0,labelPattern=/label:\s*([^\s;\n{]+)\s*;/g;"production"!==process.env.NODE_ENV&&(sourceMapPattern=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//);var cursor,serializeStyles=function(args,registered,mergedProps){if(1===args.length&&"object"==typeof args[0]&&null!==args[0]&&void 0!==args[0].styles)return args[0];var stringMode=!0,styles="";cursor=void 0;var strings=args[0];null==strings||void 0===strings.raw?(stringMode=!1,styles+=handleInterpolation(mergedProps,registered,strings,!1)):("production"!==process.env.NODE_ENV&&void 0===strings[0]&&console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR),styles+=strings[0]);for(var i=1;i<args.length;i++)styles+=handleInterpolation(mergedProps,registered,args[i],46===styles.charCodeAt(styles.length-1)),stringMode&&("production"!==process.env.NODE_ENV&&void 0===strings[i]&&console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR),styles+=strings[i]);var sourceMap;"production"!==process.env.NODE_ENV&&(styles=styles.replace(sourceMapPattern,function(match){return sourceMap=match,""})),labelPattern.lastIndex=0;for(var match,identifierName="";null!==(match=labelPattern.exec(styles));)identifierName+="-"+match[1];var name=Object(__WEBPACK_IMPORTED_MODULE_0__emotion_hash__.a)(styles)+identifierName;return"production"!==process.env.NODE_ENV?{name:name,styles:styles,map:sourceMap,next:cursor,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:name,styles:styles,next:cursor}}}).call(__webpack_exports__,__webpack_require__(0))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(process){function getMenuPlacement(_ref){var maxHeight=_ref.maxHeight,menuEl=_ref.menuEl,minHeight=_ref.minHeight,placement=_ref.placement,shouldScroll=_ref.shouldScroll,isFixedPosition=_ref.isFixedPosition,theme=_ref.theme,spacing=theme.spacing,scrollParent=Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.a)(menuEl),defaultState={placement:"bottom",maxHeight:maxHeight};if(!menuEl||!menuEl.offsetParent)return defaultState;var _scrollParent$getBoun=scrollParent.getBoundingClientRect(),scrollHeight=_scrollParent$getBoun.height,_menuEl$getBoundingCl=menuEl.getBoundingClientRect(),menuBottom=_menuEl$getBoundingCl.bottom,menuHeight=_menuEl$getBoundingCl.height,menuTop=_menuEl$getBoundingCl.top,_menuEl$offsetParent$=menuEl.offsetParent.getBoundingClientRect(),containerTop=_menuEl$offsetParent$.top,viewHeight=window.innerHeight,scrollTop=Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.b)(scrollParent),marginBottom=parseInt(getComputedStyle(menuEl).marginBottom,10),marginTop=parseInt(getComputedStyle(menuEl).marginTop,10),viewSpaceAbove=containerTop-marginTop,viewSpaceBelow=viewHeight-menuTop,scrollSpaceAbove=viewSpaceAbove+scrollTop,scrollSpaceBelow=scrollHeight-scrollTop-menuTop,scrollDown=menuBottom-viewHeight+scrollTop+marginBottom,scrollUp=scrollTop+menuTop-marginTop;switch(placement){case"auto":case"bottom":if(viewSpaceBelow>=menuHeight)return{placement:"bottom",maxHeight:maxHeight};if(scrollSpaceBelow>=menuHeight&&!isFixedPosition)return shouldScroll&&Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.c)(scrollParent,scrollDown,160),{placement:"bottom",maxHeight:maxHeight};if(!isFixedPosition&&scrollSpaceBelow>=minHeight||isFixedPosition&&viewSpaceBelow>=minHeight){shouldScroll&&Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.c)(scrollParent,scrollDown,160);return{placement:"bottom",maxHeight:isFixedPosition?viewSpaceBelow-marginBottom:scrollSpaceBelow-marginBottom}}if("auto"===placement||isFixedPosition){var _constrainedHeight=maxHeight,spaceAbove=isFixedPosition?viewSpaceAbove:scrollSpaceAbove;return spaceAbove>=minHeight&&(_constrainedHeight=Math.min(spaceAbove-marginBottom-spacing.controlHeight,maxHeight)),{placement:"top",maxHeight:_constrainedHeight}}if("bottom"===placement)return Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.l)(scrollParent,scrollDown),{placement:"bottom",maxHeight:maxHeight};break;case"top":if(viewSpaceAbove>=menuHeight)return{placement:"top",maxHeight:maxHeight};if(scrollSpaceAbove>=menuHeight&&!isFixedPosition)return shouldScroll&&Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.c)(scrollParent,scrollUp,160),{placement:"top",maxHeight:maxHeight};if(!isFixedPosition&&scrollSpaceAbove>=minHeight||isFixedPosition&&viewSpaceAbove>=minHeight){var _constrainedHeight2=maxHeight;return(!isFixedPosition&&scrollSpaceAbove>=minHeight||isFixedPosition&&viewSpaceAbove>=minHeight)&&(_constrainedHeight2=isFixedPosition?viewSpaceAbove-marginTop:scrollSpaceAbove-marginTop),shouldScroll&&Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.c)(scrollParent,scrollUp,160),{placement:"top",maxHeight:_constrainedHeight2}}return{placement:"bottom",maxHeight:maxHeight};default:throw new Error('Invalid placement provided "'.concat(placement,'".'))}return defaultState}function alignToControl(placement){var placementToCSSProp={bottom:"top",top:"bottom"};return placement?placementToCSSProp[placement]:"bottom"}function equal(a,b){if(a===b)return!0;if(a&&b&&"object"==Object(__WEBPACK_IMPORTED_MODULE_14__babel_runtime_helpers_esm_typeof__.a)(a)&&"object"==Object(__WEBPACK_IMPORTED_MODULE_14__babel_runtime_helpers_esm_typeof__.a)(b)){var i,length,key,arrA=isArray(a),arrB=isArray(b);if(arrA&&arrB){if((length=a.length)!=b.length)return!1;for(i=length;0!=i--;)if(!equal(a[i],b[i]))return!1;return!0}if(arrA!=arrB)return!1;var dateA=a instanceof Date,dateB=b instanceof Date;if(dateA!=dateB)return!1;if(dateA&&dateB)return a.getTime()==b.getTime();var regexpA=a instanceof RegExp,regexpB=b instanceof RegExp;if(regexpA!=regexpB)return!1;if(regexpA&&regexpB)return a.toString()==b.toString();var keys=keyList(a);if((length=keys.length)!==keyList(b).length)return!1;for(i=length;0!=i--;)if(!hasProp.call(b,keys[i]))return!1;for(i=length;0!=i--;)if(!("_owner"===(key=keys[i])&&a.$$typeof||equal(a[key],b[key])))return!1;return!0}return a!==a&&b!==b}function exportedEqual(a,b){try{return equal(a,b)}catch(error){if(error.message&&error.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",error.name,error.message),!1;throw error}}function _templateObject(){var data=Object(__WEBPACK_IMPORTED_MODULE_17__babel_runtime_helpers_esm_taggedTemplateLiteral__.a)(["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"]);return _templateObject=function(){return data},data}__webpack_require__.d(__webpack_exports__,"a",function(){return MenuPlacer}),__webpack_require__.d(__webpack_exports__,"b",function(){return containerCSS}),__webpack_require__.d(__webpack_exports__,"c",function(){return css}),__webpack_require__.d(__webpack_exports__,"d",function(){return clearIndicatorCSS}),__webpack_require__.d(__webpack_exports__,"e",function(){return dropdownIndicatorCSS}),__webpack_require__.d(__webpack_exports__,"f",function(){return groupHeadingCSS}),__webpack_require__.d(__webpack_exports__,"g",function(){return indicatorSeparatorCSS}),__webpack_require__.d(__webpack_exports__,"h",function(){return groupCSS}),__webpack_require__.d(__webpack_exports__,"i",function(){return inputCSS}),__webpack_require__.d(__webpack_exports__,"j",function(){return indicatorsContainerCSS}),__webpack_require__.d(__webpack_exports__,"k",function(){return loadingMessageCSS}),__webpack_require__.d(__webpack_exports__,"l",function(){return menuListCSS}),__webpack_require__.d(__webpack_exports__,"m",function(){return loadingIndicatorCSS}),__webpack_require__.d(__webpack_exports__,"n",function(){return menuCSS}),__webpack_require__.d(__webpack_exports__,"o",function(){return menuPortalCSS}),__webpack_require__.d(__webpack_exports__,"p",function(){return multiValueCSS}),__webpack_require__.d(__webpack_exports__,"q",function(){return multiValueLabelCSS}),__webpack_require__.d(__webpack_exports__,"r",function(){return multiValueRemoveCSS}),__webpack_require__.d(__webpack_exports__,"s",function(){return noOptionsMessageCSS}),__webpack_require__.d(__webpack_exports__,"t",function(){return optionCSS}),__webpack_require__.d(__webpack_exports__,"u",function(){return placeholderCSS}),__webpack_require__.d(__webpack_exports__,"v",function(){return css$1}),__webpack_require__.d(__webpack_exports__,"w",function(){return valueContainerCSS}),__webpack_require__.d(__webpack_exports__,"x",function(){return defaultComponents}),__webpack_require__.d(__webpack_exports__,"y",function(){return exportedEqual});var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__=__webpack_require__(14),__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__=__webpack_require__(15),__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectSpread__=__webpack_require__(30),__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__=__webpack_require__(16),__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__=__webpack_require__(17),__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_possibleConstructorReturn__=__webpack_require__(18),__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_getPrototypeOf__=__webpack_require__(20),__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_inherits__=__webpack_require__(21),__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__=__webpack_require__(8),__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__=__webpack_require__(7),__WEBPACK_IMPORTED_MODULE_10_react__=__webpack_require__(3),__WEBPACK_IMPORTED_MODULE_11__emotion_core__=(__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_react__),__webpack_require__(31)),__WEBPACK_IMPORTED_MODULE_12_react_dom__=__webpack_require__(11),__WEBPACK_IMPORTED_MODULE_13_prop_types__=(__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12_react_dom__),__webpack_require__(10)),__WEBPACK_IMPORTED_MODULE_13_prop_types___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_13_prop_types__),__WEBPACK_IMPORTED_MODULE_14__babel_runtime_helpers_esm_typeof__=__webpack_require__(19),__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__=__webpack_require__(32),__WEBPACK_IMPORTED_MODULE_16__emotion_css__=__webpack_require__(9),__WEBPACK_IMPORTED_MODULE_17__babel_runtime_helpers_esm_taggedTemplateLiteral__=__webpack_require__(42),__WEBPACK_IMPORTED_MODULE_18_react_input_autosize__=__webpack_require__(43),__WEBPACK_IMPORTED_MODULE_18_react_input_autosize___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_18_react_input_autosize__),coercePlacement=function(p){return"auto"===p?"bottom":p},menuCSS=function(_ref2){var _ref3,placement=_ref2.placement,_ref2$theme=_ref2.theme,borderRadius=_ref2$theme.borderRadius,spacing=_ref2$theme.spacing,colors=_ref2$theme.colors;return _ref3={label:"menu"},Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,alignToControl(placement),"100%"),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"backgroundColor",colors.neutral0),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"borderRadius",borderRadius),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"marginBottom",spacing.menuGutter),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"marginTop",spacing.menuGutter),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"position","absolute"),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"width","100%"),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"zIndex",1),_ref3},MenuPlacer=function(_Component){function MenuPlacer(){var _getPrototypeOf2,_this;Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__.a)(this,MenuPlacer);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return _this=Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,(_getPrototypeOf2=Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_getPrototypeOf__.a)(MenuPlacer)).call.apply(_getPrototypeOf2,[this].concat(args))),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"state",{maxHeight:_this.props.maxMenuHeight,placement:null}),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getPlacement",function(ref){var _this$props=_this.props,minMenuHeight=_this$props.minMenuHeight,maxMenuHeight=_this$props.maxMenuHeight,menuPlacement=_this$props.menuPlacement,menuPosition=_this$props.menuPosition,menuShouldScrollIntoView=_this$props.menuShouldScrollIntoView,theme=_this$props.theme,getPortalPlacement=_this.context.getPortalPlacement;if(ref){var isFixedPosition="fixed"===menuPosition,shouldScroll=menuShouldScrollIntoView&&!isFixedPosition,state=getMenuPlacement({maxHeight:maxMenuHeight,menuEl:ref,minHeight:minMenuHeight,placement:menuPlacement,shouldScroll:shouldScroll,isFixedPosition:isFixedPosition,theme:theme});getPortalPlacement&&getPortalPlacement(state),_this.setState(state)}}),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getUpdatedProps",function(){var menuPlacement=_this.props.menuPlacement,placement=_this.state.placement||coercePlacement(menuPlacement);return Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectSpread__.a)({},_this.props,{placement:placement,maxHeight:_this.state.maxHeight})}),_this}return Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_inherits__.a)(MenuPlacer,_Component),Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__.a)(MenuPlacer,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),MenuPlacer}(__WEBPACK_IMPORTED_MODULE_10_react__.Component);Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(MenuPlacer,"contextTypes",{getPortalPlacement:__WEBPACK_IMPORTED_MODULE_13_prop_types___default.a.func});var Menu=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,innerRef=props.innerRef,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("menu",props),className:cx({menu:!0},className)},innerProps,{ref:innerRef}),children)},menuListCSS=function(_ref4){var maxHeight=_ref4.maxHeight,baseUnit=_ref4.theme.spacing.baseUnit;return{maxHeight:maxHeight,overflowY:"auto",paddingBottom:baseUnit,paddingTop:baseUnit,position:"relative",WebkitOverflowScrolling:"touch"}},MenuList=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,isMulti=props.isMulti,innerRef=props.innerRef;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",{css:getStyles("menuList",props),className:cx({"menu-list":!0,"menu-list--is-multi":isMulti},className),ref:innerRef},children)},noticeCSS=function(_ref5){var _ref5$theme=_ref5.theme,baseUnit=_ref5$theme.spacing.baseUnit;return{color:_ref5$theme.colors.neutral40,padding:"".concat(2*baseUnit,"px ").concat(3*baseUnit,"px"),textAlign:"center"}},noOptionsMessageCSS=noticeCSS,loadingMessageCSS=noticeCSS,NoOptionsMessage=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("noOptionsMessage",props),className:cx({"menu-notice":!0,"menu-notice--no-options":!0},className)},innerProps),children)};NoOptionsMessage.defaultProps={children:"No options"};var LoadingMessage=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("loadingMessage",props),className:cx({"menu-notice":!0,"menu-notice--loading":!0},className)},innerProps),children)};LoadingMessage.defaultProps={children:"Loading..."};var menuPortalCSS=function(_ref6){var rect=_ref6.rect,offset=_ref6.offset,position=_ref6.position;return{left:rect.left,position:position,top:offset,width:rect.width,zIndex:1}},MenuPortal=function(_Component2){function MenuPortal(){var _getPrototypeOf3,_this2;Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__.a)(this,MenuPortal);for(var _len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++)args[_key2]=arguments[_key2];return _this2=Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,(_getPrototypeOf3=Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_getPrototypeOf__.a)(MenuPortal)).call.apply(_getPrototypeOf3,[this].concat(args))),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this2)),"state",{placement:null}),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this2)),"getPortalPlacement",function(_ref7){var placement=_ref7.placement;placement!==coercePlacement(_this2.props.menuPlacement)&&_this2.setState({placement:placement})}),_this2}return Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_inherits__.a)(MenuPortal,_Component2),Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__.a)(MenuPortal,[{key:"getChildContext",value:function(){return{getPortalPlacement:this.getPortalPlacement}}},{key:"render",value:function(){var _this$props2=this.props,appendTo=_this$props2.appendTo,children=_this$props2.children,controlElement=_this$props2.controlElement,menuPlacement=_this$props2.menuPlacement,position=_this$props2.menuPosition,getStyles=_this$props2.getStyles,isFixed="fixed"===position;if(!appendTo&&!isFixed||!controlElement)return null;var placement=this.state.placement||coercePlacement(menuPlacement),rect=Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.g)(controlElement),scrollDistance=isFixed?0:window.pageYOffset,offset=rect[placement]+scrollDistance,state={offset:offset,position:position,rect:rect},menuWrapper=Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",{css:getStyles("menuPortal",state)},children);return appendTo?Object(__WEBPACK_IMPORTED_MODULE_12_react_dom__.createPortal)(menuWrapper,appendTo):menuWrapper}}]),MenuPortal}(__WEBPACK_IMPORTED_MODULE_10_react__.Component);Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(MenuPortal,"childContextTypes",{getPortalPlacement:__WEBPACK_IMPORTED_MODULE_13_prop_types___default.a.func});var isArray=Array.isArray,keyList=Object.keys,hasProp=Object.prototype.hasOwnProperty,containerCSS=function(_ref){var isDisabled=_ref.isDisabled;return{label:"container",direction:_ref.isRtl?"rtl":null,pointerEvents:isDisabled?"none":null,position:"relative"}},SelectContainer=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps,isDisabled=props.isDisabled,isRtl=props.isRtl;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("container",props),className:cx({"--is-disabled":isDisabled,"--is-rtl":isRtl},className)},innerProps),children)},valueContainerCSS=function(_ref2){var spacing=_ref2.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(spacing.baseUnit/2,"px ").concat(2*spacing.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}},ValueContainer=function(_Component){function ValueContainer(){return Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__.a)(this,ValueContainer),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_getPrototypeOf__.a)(ValueContainer).apply(this,arguments))}return Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_inherits__.a)(ValueContainer,_Component),Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__.a)(ValueContainer,[{key:"render",value:function(){var _this$props=this.props,children=_this$props.children,className=_this$props.className,cx=_this$props.cx,isMulti=_this$props.isMulti,getStyles=_this$props.getStyles,hasValue=_this$props.hasValue;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",{css:getStyles("valueContainer",this.props),className:cx({"value-container":!0,"value-container--is-multi":isMulti,"value-container--has-value":hasValue},className)},children)}}]),ValueContainer}(__WEBPACK_IMPORTED_MODULE_10_react__.Component),indicatorsContainerCSS=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},IndicatorsContainer=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",{css:getStyles("indicatorsContainer",props),className:cx({indicators:!0},className)},children)},_ref2="production"===process.env.NODE_ENV?{name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"}:{name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0JJIiwiZmlsZSI6ImluZGljYXRvcnMuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyB0eXBlIE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuXG5pbXBvcnQgdHlwZSB7IENvbW1vblByb3BzLCBUaGVtZSB9IGZyb20gJy4uL3R5cGVzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHsgc2l6ZSwgLi4ucHJvcHMgfTogeyBzaXplOiBudW1iZXIgfSkgPT4gKFxuICA8c3ZnXG4gICAgaGVpZ2h0PXtzaXplfVxuICAgIHdpZHRoPXtzaXplfVxuICAgIHZpZXdCb3g9XCIwIDAgMjAgMjBcIlxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgZm9jdXNhYmxlPVwiZmFsc2VcIlxuICAgIGNzcz17e1xuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBmaWxsOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGxpbmVIZWlnaHQ6IDEsXG4gICAgICBzdHJva2U6ICdjdXJyZW50Q29sb3InLFxuICAgICAgc3Ryb2tlV2lkdGg6IDAsXG4gICAgfX1cbiAgICB7Li4ucHJvcHN9XG4gIC8+XG4pO1xuXG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBhbnkpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogYW55KSA9PiAoXG4gIDxTdmcgc2l6ZT17MjB9IHsuLi5wcm9wc30+XG4gICAgPHBhdGggZD1cIk00LjUxNiA3LjU0OGMwLjQzNi0wLjQ0NiAxLjA0My0wLjQ4MSAxLjU3NiAwbDMuOTA4IDMuNzQ3IDMuOTA4LTMuNzQ3YzAuNTMzLTAuNDgxIDEuMTQxLTAuNDQ2IDEuNTc0IDAgMC40MzYgMC40NDUgMC40MDggMS4xOTcgMCAxLjYxNS0wLjQwNiAwLjQxOC00LjY5NSA0LjUwMi00LjY5NSA0LjUwMi0wLjIxNyAwLjIyMy0wLjUwMiAwLjMzNS0wLjc4NyAwLjMzNXMtMC41Ny0wLjExMi0wLjc4OS0wLjMzNWMwIDAtNC4yODctNC4wODQtNC42OTUtNC41MDJzLTAuNDM2LTEuMTcgMC0xLjYxNXpcIiAvPlxuICA8L1N2Zz5cbik7XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gRHJvcGRvd24gJiBDbGVhciBCdXR0b25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IHR5cGUgSW5kaWNhdG9yUHJvcHMgPSBDb21tb25Qcm9wcyAmIHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW46IE5vZGUsXG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufTtcblxuY29uc3QgYmFzZUNTUyA9ICh7XG4gIGlzRm9jdXNlZCxcbiAgdGhlbWU6IHtcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgY29sb3JzLFxuICB9LFxufTogSW5kaWNhdG9yUHJvcHMpID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yQ29udGFpbmVyJyxcbiAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcblxuICAnOmhvdmVyJzoge1xuICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDgwIDogY29sb3JzLm5ldXRyYWw0MCxcbiAgfSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2Ryb3Bkb3duSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnZHJvcGRvd24taW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2NsZWFySW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnY2xlYXItaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG50eXBlIFNlcGFyYXRvclN0YXRlID0geyBpc0Rpc2FibGVkOiBib29sZWFuIH07XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSAoe1xuICBpc0Rpc2FibGVkLFxuICB0aGVtZToge1xuICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICBjb2xvcnMsXG4gIH0sXG59OiBDb21tb25Qcm9wcyAmIFNlcGFyYXRvclN0YXRlKSA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvclNlcGFyYXRvcicsXG4gIGFsaWduU2VsZjogJ3N0cmV0Y2gnLFxuICBiYWNrZ3JvdW5kQ29sb3I6IGlzRGlzYWJsZWQgPyBjb2xvcnMubmV1dHJhbDEwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgbWFyZ2luQm90dG9tOiBiYXNlVW5pdCAqIDIsXG4gIG1hcmdpblRvcDogYmFzZVVuaXQgKiAyLFxuICB3aWR0aDogMSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNsYXNzTmFtZSwgY3gsIGdldFN0eWxlcywgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2luZGljYXRvclNlcGFyYXRvcicsIHByb3BzKX1cbiAgICAgIGNsYXNzTmFtZT17Y3goeyAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUgfSwgY2xhc3NOYW1lKX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gKHtcbiAgaXNGb2N1c2VkLFxuICBzaXplLFxuICB0aGVtZToge1xuICAgIGNvbG9ycyxcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gIH0sXG59OiB7XG4gIGlzRm9jdXNlZDogYm9vbGVhbixcbiAgc2l6ZTogbnVtYmVyLFxuICB0aGVtZTogVGhlbWUsXG59KSA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxufSk7XG5cbnR5cGUgRG90UHJvcHMgPSB7IGRlbGF5OiBudW1iZXIsIG9mZnNldDogYm9vbGVhbiB9O1xuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogRG90UHJvcHMpID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGFuaW1hdGlvbjogYCR7bG9hZGluZ0RvdEFuaW1hdGlvbnN9IDFzIGVhc2UtaW4tb3V0ICR7ZGVsYXl9bXMgaW5maW5pdGU7YCxcbiAgICAgIGJhY2tncm91bmRDb2xvcjogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBib3JkZXJSYWRpdXM6ICcxZW0nLFxuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBtYXJnaW5MZWZ0OiBvZmZzZXQgPyAnMWVtJyA6IG51bGwsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIExvYWRpbmdJY29uUHJvcHMgPSB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufSAmIENvbW1vblByb3BzICYge1xuICAgIC8qKiBTZXQgc2l6ZSBvZiB0aGUgY29udGFpbmVyLiAqL1xuICAgIHNpemU6IG51bWJlcixcbiAgfTtcbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gKHByb3BzOiBMb2FkaW5nSWNvblByb3BzKSA9PiB7XG4gIGNvbnN0IHsgY2xhc3NOYW1lLCBjeCwgZ2V0U3R5bGVzLCBpbm5lclByb3BzLCBpc1J0bCB9ID0gcHJvcHM7XG5cbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIGNzcz17Z2V0U3R5bGVzKCdsb2FkaW5nSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnbG9hZGluZy1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgICBjbGFzc05hbWVcbiAgICAgICl9XG4gICAgPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezB9IG9mZnNldD17aXNSdGx9IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MTYwfSBvZmZzZXQgLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXszMjB9IG9mZnNldD17IWlzUnRsfSAvPlxuICAgIDwvZGl2PlxuICApO1xufTtcbkxvYWRpbmdJbmRpY2F0b3IuZGVmYXVsdFByb3BzID0geyBzaXplOiA0IH07XG4iXX0= */"},Svg=function(_ref){var size=_ref.size,props=Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__.a)(_ref,["size"]);return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("svg",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({height:size,width:size,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:_ref2},props))},CrossIcon=function(props){return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(Svg,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({size:20},props),Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},DownChevron=function(props){return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(Svg,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({size:20},props),Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},baseCSS=function(_ref3){var isFocused=_ref3.isFocused,_ref3$theme=_ref3.theme,baseUnit=_ref3$theme.spacing.baseUnit,colors=_ref3$theme.colors;return{label:"indicatorContainer",color:isFocused?colors.neutral60:colors.neutral20,display:"flex",padding:2*baseUnit,transition:"color 150ms",":hover":{color:isFocused?colors.neutral80:colors.neutral40}}},dropdownIndicatorCSS=baseCSS,DropdownIndicator=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},innerProps,{css:getStyles("dropdownIndicator",props),className:cx({indicator:!0,"dropdown-indicator":!0},className)}),children||Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(DownChevron,null))},clearIndicatorCSS=baseCSS,ClearIndicator=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},innerProps,{css:getStyles("clearIndicator",props),className:cx({indicator:!0,"clear-indicator":!0},className)}),children||Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(CrossIcon,null))},indicatorSeparatorCSS=function(_ref4){var isDisabled=_ref4.isDisabled,_ref4$theme=_ref4.theme,baseUnit=_ref4$theme.spacing.baseUnit,colors=_ref4$theme.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:isDisabled?colors.neutral10:colors.neutral20,marginBottom:2*baseUnit,marginTop:2*baseUnit,width:1}},IndicatorSeparator=function(props){var className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("span",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},innerProps,{css:getStyles("indicatorSeparator",props),className:cx({"indicator-separator":!0},className)}))},loadingDotAnimations=Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.d)(_templateObject()),loadingIndicatorCSS=function(_ref5){var isFocused=_ref5.isFocused,size=_ref5.size,_ref5$theme=_ref5.theme,colors=_ref5$theme.colors,baseUnit=_ref5$theme.spacing.baseUnit;return{label:"loadingIndicator",color:isFocused?colors.neutral60:colors.neutral20,display:"flex",padding:2*baseUnit,transition:"color 150ms",alignSelf:"center",fontSize:size,lineHeight:1,marginRight:size,textAlign:"center",verticalAlign:"middle"}},LoadingDot=function(_ref6){var delay=_ref6.delay,offset=_ref6.offset;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("span",{css:Object(__WEBPACK_IMPORTED_MODULE_16__emotion_css__.a)({animation:"".concat(loadingDotAnimations," 1s ease-in-out ").concat(delay,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:offset?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBc0xJIiwiZmlsZSI6ImluZGljYXRvcnMuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyB0eXBlIE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuXG5pbXBvcnQgdHlwZSB7IENvbW1vblByb3BzLCBUaGVtZSB9IGZyb20gJy4uL3R5cGVzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHsgc2l6ZSwgLi4ucHJvcHMgfTogeyBzaXplOiBudW1iZXIgfSkgPT4gKFxuICA8c3ZnXG4gICAgaGVpZ2h0PXtzaXplfVxuICAgIHdpZHRoPXtzaXplfVxuICAgIHZpZXdCb3g9XCIwIDAgMjAgMjBcIlxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgZm9jdXNhYmxlPVwiZmFsc2VcIlxuICAgIGNzcz17e1xuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBmaWxsOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGxpbmVIZWlnaHQ6IDEsXG4gICAgICBzdHJva2U6ICdjdXJyZW50Q29sb3InLFxuICAgICAgc3Ryb2tlV2lkdGg6IDAsXG4gICAgfX1cbiAgICB7Li4ucHJvcHN9XG4gIC8+XG4pO1xuXG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBhbnkpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogYW55KSA9PiAoXG4gIDxTdmcgc2l6ZT17MjB9IHsuLi5wcm9wc30+XG4gICAgPHBhdGggZD1cIk00LjUxNiA3LjU0OGMwLjQzNi0wLjQ0NiAxLjA0My0wLjQ4MSAxLjU3NiAwbDMuOTA4IDMuNzQ3IDMuOTA4LTMuNzQ3YzAuNTMzLTAuNDgxIDEuMTQxLTAuNDQ2IDEuNTc0IDAgMC40MzYgMC40NDUgMC40MDggMS4xOTcgMCAxLjYxNS0wLjQwNiAwLjQxOC00LjY5NSA0LjUwMi00LjY5NSA0LjUwMi0wLjIxNyAwLjIyMy0wLjUwMiAwLjMzNS0wLjc4NyAwLjMzNXMtMC41Ny0wLjExMi0wLjc4OS0wLjMzNWMwIDAtNC4yODctNC4wODQtNC42OTUtNC41MDJzLTAuNDM2LTEuMTcgMC0xLjYxNXpcIiAvPlxuICA8L1N2Zz5cbik7XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gRHJvcGRvd24gJiBDbGVhciBCdXR0b25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IHR5cGUgSW5kaWNhdG9yUHJvcHMgPSBDb21tb25Qcm9wcyAmIHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW46IE5vZGUsXG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufTtcblxuY29uc3QgYmFzZUNTUyA9ICh7XG4gIGlzRm9jdXNlZCxcbiAgdGhlbWU6IHtcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgY29sb3JzLFxuICB9LFxufTogSW5kaWNhdG9yUHJvcHMpID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yQ29udGFpbmVyJyxcbiAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcblxuICAnOmhvdmVyJzoge1xuICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDgwIDogY29sb3JzLm5ldXRyYWw0MCxcbiAgfSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2Ryb3Bkb3duSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnZHJvcGRvd24taW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2NsZWFySW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnY2xlYXItaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG50eXBlIFNlcGFyYXRvclN0YXRlID0geyBpc0Rpc2FibGVkOiBib29sZWFuIH07XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSAoe1xuICBpc0Rpc2FibGVkLFxuICB0aGVtZToge1xuICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICBjb2xvcnMsXG4gIH0sXG59OiBDb21tb25Qcm9wcyAmIFNlcGFyYXRvclN0YXRlKSA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvclNlcGFyYXRvcicsXG4gIGFsaWduU2VsZjogJ3N0cmV0Y2gnLFxuICBiYWNrZ3JvdW5kQ29sb3I6IGlzRGlzYWJsZWQgPyBjb2xvcnMubmV1dHJhbDEwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgbWFyZ2luQm90dG9tOiBiYXNlVW5pdCAqIDIsXG4gIG1hcmdpblRvcDogYmFzZVVuaXQgKiAyLFxuICB3aWR0aDogMSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNsYXNzTmFtZSwgY3gsIGdldFN0eWxlcywgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2luZGljYXRvclNlcGFyYXRvcicsIHByb3BzKX1cbiAgICAgIGNsYXNzTmFtZT17Y3goeyAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUgfSwgY2xhc3NOYW1lKX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gKHtcbiAgaXNGb2N1c2VkLFxuICBzaXplLFxuICB0aGVtZToge1xuICAgIGNvbG9ycyxcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gIH0sXG59OiB7XG4gIGlzRm9jdXNlZDogYm9vbGVhbixcbiAgc2l6ZTogbnVtYmVyLFxuICB0aGVtZTogVGhlbWUsXG59KSA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxufSk7XG5cbnR5cGUgRG90UHJvcHMgPSB7IGRlbGF5OiBudW1iZXIsIG9mZnNldDogYm9vbGVhbiB9O1xuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogRG90UHJvcHMpID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGFuaW1hdGlvbjogYCR7bG9hZGluZ0RvdEFuaW1hdGlvbnN9IDFzIGVhc2UtaW4tb3V0ICR7ZGVsYXl9bXMgaW5maW5pdGU7YCxcbiAgICAgIGJhY2tncm91bmRDb2xvcjogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBib3JkZXJSYWRpdXM6ICcxZW0nLFxuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBtYXJnaW5MZWZ0OiBvZmZzZXQgPyAnMWVtJyA6IG51bGwsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIExvYWRpbmdJY29uUHJvcHMgPSB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufSAmIENvbW1vblByb3BzICYge1xuICAgIC8qKiBTZXQgc2l6ZSBvZiB0aGUgY29udGFpbmVyLiAqL1xuICAgIHNpemU6IG51bWJlcixcbiAgfTtcbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gKHByb3BzOiBMb2FkaW5nSWNvblByb3BzKSA9PiB7XG4gIGNvbnN0IHsgY2xhc3NOYW1lLCBjeCwgZ2V0U3R5bGVzLCBpbm5lclByb3BzLCBpc1J0bCB9ID0gcHJvcHM7XG5cbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIGNzcz17Z2V0U3R5bGVzKCdsb2FkaW5nSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnbG9hZGluZy1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgICBjbGFzc05hbWVcbiAgICAgICl9XG4gICAgPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezB9IG9mZnNldD17aXNSdGx9IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MTYwfSBvZmZzZXQgLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXszMjB9IG9mZnNldD17IWlzUnRsfSAvPlxuICAgIDwvZGl2PlxuICApO1xufTtcbkxvYWRpbmdJbmRpY2F0b3IuZGVmYXVsdFByb3BzID0geyBzaXplOiA0IH07XG4iXX0= */")})},LoadingIndicator=function(props){var className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps,isRtl=props.isRtl;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},innerProps,{css:getStyles("loadingIndicator",props),className:cx({indicator:!0,"loading-indicator":!0},className)}),Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(LoadingDot,{delay:0,offset:isRtl}),Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(LoadingDot,{delay:160,offset:!0}),Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(LoadingDot,{delay:320,offset:!isRtl}))};LoadingIndicator.defaultProps={size:4};var css=function(_ref){var isDisabled=_ref.isDisabled,isFocused=_ref.isFocused,_ref$theme=_ref.theme,colors=_ref$theme.colors,borderRadius=_ref$theme.borderRadius,spacing=_ref$theme.spacing;return{label:"control",alignItems:"center",backgroundColor:isDisabled?colors.neutral5:colors.neutral0,borderColor:isDisabled?colors.neutral10:isFocused?colors.primary:colors.neutral20,borderRadius:borderRadius,borderStyle:"solid",borderWidth:1,boxShadow:isFocused?"0 0 0 1px ".concat(colors.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:isFocused?colors.primary:colors.neutral30}}},Control=function(props){var children=props.children,cx=props.cx,getStyles=props.getStyles,className=props.className,isDisabled=props.isDisabled,isFocused=props.isFocused,innerRef=props.innerRef,innerProps=props.innerProps,menuIsOpen=props.menuIsOpen;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({ref:innerRef,css:getStyles("control",props),className:cx({control:!0,"control--is-disabled":isDisabled,"control--is-focused":isFocused,"control--menu-is-open":menuIsOpen},className)},innerProps),children)},groupCSS=function(_ref){var spacing=_ref.theme.spacing;return{paddingBottom:2*spacing.baseUnit,paddingTop:2*spacing.baseUnit}},Group=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,Heading=props.Heading,headingProps=props.headingProps,label=props.label,theme=props.theme,selectProps=props.selectProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",{css:getStyles("group",props),className:cx({group:!0},className)},Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(Heading,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},headingProps,{selectProps:selectProps,theme:theme,getStyles:getStyles,cx:cx}),label),Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",null,children))},groupHeadingCSS=function(_ref2){var spacing=_ref2.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*spacing.baseUnit,paddingRight:3*spacing.baseUnit,textTransform:"uppercase"}},GroupHeading=function(props){var className=props.className,cx=props.cx,getStyles=props.getStyles,theme=props.theme,cleanProps=(props.selectProps,Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__.a)(props,["className","cx","getStyles","theme","selectProps"]));return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("groupHeading",Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectSpread__.a)({theme:theme},cleanProps)),className:cx({"group-heading":!0},className)},cleanProps))},inputCSS=function(_ref){var isDisabled=_ref.isDisabled,_ref$theme=_ref.theme,spacing=_ref$theme.spacing,colors=_ref$theme.colors;return{margin:spacing.baseUnit/2,paddingBottom:spacing.baseUnit/2,paddingTop:spacing.baseUnit/2,visibility:isDisabled?"hidden":"visible",color:colors.neutral80}},inputStyle=function(isHidden){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:isHidden?0:1,outline:0,padding:0,color:"inherit"}},Input=function(_ref2){var className=_ref2.className,cx=_ref2.cx,getStyles=_ref2.getStyles,innerRef=_ref2.innerRef,isHidden=_ref2.isHidden,isDisabled=_ref2.isDisabled,theme=_ref2.theme,props=(_ref2.selectProps,Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__.a)(_ref2,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",{css:getStyles("input",Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectSpread__.a)({theme:theme},props))},Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(__WEBPACK_IMPORTED_MODULE_18_react_input_autosize___default.a,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({className:cx({input:!0},className),inputRef:innerRef,inputStyle:inputStyle(isHidden),disabled:isDisabled},props)))},multiValueCSS=function(_ref){var _ref$theme=_ref.theme,spacing=_ref$theme.spacing,borderRadius=_ref$theme.borderRadius;return{label:"multiValue",backgroundColor:_ref$theme.colors.neutral10,borderRadius:borderRadius/2,display:"flex",margin:spacing.baseUnit/2,minWidth:0}},multiValueLabelCSS=function(_ref2){var _ref2$theme=_ref2.theme,borderRadius=_ref2$theme.borderRadius,colors=_ref2$theme.colors,cropWithEllipsis=_ref2.cropWithEllipsis;return{borderRadius:borderRadius/2,color:colors.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:cropWithEllipsis?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemoveCSS=function(_ref3){var _ref3$theme=_ref3.theme,spacing=_ref3$theme.spacing,borderRadius=_ref3$theme.borderRadius,colors=_ref3$theme.colors;return{alignItems:"center",borderRadius:borderRadius/2,backgroundColor:_ref3.isFocused&&colors.dangerLight,display:"flex",paddingLeft:spacing.baseUnit,paddingRight:spacing.baseUnit,":hover":{backgroundColor:colors.dangerLight,color:colors.danger}}},MultiValueGeneric=function(_ref4){var children=_ref4.children,innerProps=_ref4.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",innerProps,children)},MultiValueContainer=MultiValueGeneric,MultiValueLabel=MultiValueGeneric,MultiValueRemove=function(_Component){function MultiValueRemove(){return Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__.a)(this,MultiValueRemove),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_getPrototypeOf__.a)(MultiValueRemove).apply(this,arguments))}return Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_inherits__.a)(MultiValueRemove,_Component),Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__.a)(MultiValueRemove,[{key:"render",value:function(){var _this$props=this.props,children=_this$props.children,innerProps=_this$props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",innerProps,children||Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(CrossIcon,{size:14}))}}]),MultiValueRemove}(__WEBPACK_IMPORTED_MODULE_10_react__.Component),MultiValue=function(_Component2){function MultiValue(){return Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__.a)(this,MultiValue),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_getPrototypeOf__.a)(MultiValue).apply(this,arguments))}return Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_inherits__.a)(MultiValue,_Component2),Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__.a)(MultiValue,[{key:"render",value:function(){var _this=this,_this$props2=this.props,children=_this$props2.children,className=_this$props2.className,components=_this$props2.components,cx=_this$props2.cx,data=_this$props2.data,getStyles=_this$props2.getStyles,innerProps=_this$props2.innerProps,isDisabled=_this$props2.isDisabled,removeProps=_this$props2.removeProps,selectProps=_this$props2.selectProps,Container=components.Container,Label=components.Label,Remove=components.Remove;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.b,null,function(_ref5){var css=_ref5.css,emotionCx=_ref5.cx;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(Container,{data:data,innerProps:Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectSpread__.a)({},innerProps,{className:emotionCx(css(getStyles("multiValue",_this.props)),cx({"multi-value":!0,"multi-value--is-disabled":isDisabled},className))}),selectProps:selectProps},Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(Label,{data:data,innerProps:{className:emotionCx(css(getStyles("multiValueLabel",_this.props)),cx({"multi-value__label":!0},className))},selectProps:selectProps},children),Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(Remove,{data:data,innerProps:Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectSpread__.a)({className:emotionCx(css(getStyles("multiValueRemove",_this.props)),cx({"multi-value__remove":!0},className))},removeProps),selectProps:selectProps}))})}}]),MultiValue}(__WEBPACK_IMPORTED_MODULE_10_react__.Component);Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(MultiValue,"defaultProps",{cropWithEllipsis:!0});var optionCSS=function(_ref){var isDisabled=_ref.isDisabled,isFocused=_ref.isFocused,isSelected=_ref.isSelected,_ref$theme=_ref.theme,spacing=_ref$theme.spacing,colors=_ref$theme.colors;return{label:"option",backgroundColor:isSelected?colors.primary:isFocused?colors.primary25:"transparent",color:isDisabled?colors.neutral20:isSelected?colors.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*spacing.baseUnit,"px ").concat(3*spacing.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!isDisabled&&(isSelected?colors.primary:colors.primary50)}}},Option=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,isDisabled=props.isDisabled,isFocused=props.isFocused,isSelected=props.isSelected,innerRef=props.innerRef,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("option",props),className:cx({option:!0,"option--is-disabled":isDisabled,"option--is-focused":isFocused,"option--is-selected":isSelected},className),ref:innerRef},innerProps),children)},placeholderCSS=function(_ref){var _ref$theme=_ref.theme,spacing=_ref$theme.spacing;return{label:"placeholder",color:_ref$theme.colors.neutral50,marginLeft:spacing.baseUnit/2,marginRight:spacing.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},Placeholder=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("placeholder",props),className:cx({placeholder:!0},className)},innerProps),children)},css$1=function(_ref){var isDisabled=_ref.isDisabled,_ref$theme=_ref.theme,spacing=_ref$theme.spacing,colors=_ref$theme.colors;return{label:"singleValue",color:isDisabled?colors.neutral40:colors.neutral80,marginLeft:spacing.baseUnit/2,marginRight:spacing.baseUnit/2,maxWidth:"calc(100% - ".concat(2*spacing.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},SingleValue=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,isDisabled=props.isDisabled,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("singleValue",props),className:cx({"single-value":!0,"single-value--is-disabled":isDisabled},className)},innerProps),children)},components={ClearIndicator:ClearIndicator,Control:Control,DropdownIndicator:DropdownIndicator,DownChevron:DownChevron,CrossIcon:CrossIcon,Group:Group,GroupHeading:GroupHeading,IndicatorsContainer:IndicatorsContainer,IndicatorSeparator:IndicatorSeparator,Input:Input,LoadingIndicator:LoadingIndicator,Menu:Menu,MenuList:MenuList,MenuPortal:MenuPortal,LoadingMessage:LoadingMessage,NoOptionsMessage:NoOptionsMessage,MultiValue:MultiValue,MultiValueContainer:MultiValueContainer,MultiValueLabel:MultiValueLabel,MultiValueRemove:MultiValueRemove,Option:Option,Placeholder:Placeholder,SelectContainer:SelectContainer,SingleValue:SingleValue,ValueContainer:ValueContainer},defaultComponents=function(props){return Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectSpread__.a)({},components,props.components)}}).call(__webpack_exports__,__webpack_require__(0))},function(module,__webpack_exports__,__webpack_require__){"use strict";function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}__webpack_exports__.a=_taggedTemplateLiteral},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _objectWithoutProperties(obj,keys){var target={};for(var i in obj)keys.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(obj,i)&&(target[i]=obj[i]);return target}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}Object.defineProperty(exports,"__esModule",{value:!0});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_react=__webpack_require__(3),_react2=_interopRequireDefault(_react),_propTypes=__webpack_require__(10),_propTypes2=_interopRequireDefault(_propTypes),sizerStyle={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},INPUT_PROPS_BLACKLIST=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],cleanInputProps=function(inputProps){return INPUT_PROPS_BLACKLIST.forEach(function(field){return delete inputProps[field]}),inputProps},copyStyles=function(styles,node){node.style.fontSize=styles.fontSize,node.style.fontFamily=styles.fontFamily,node.style.fontWeight=styles.fontWeight,node.style.fontStyle=styles.fontStyle,node.style.letterSpacing=styles.letterSpacing,node.style.textTransform=styles.textTransform},isIE=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),generateId=function(){return isIE?"_"+Math.random().toString(36).substr(2,12):void 0},AutosizeInput=function(_Component){function AutosizeInput(props){_classCallCheck(this,AutosizeInput);var _this=_possibleConstructorReturn(this,(AutosizeInput.__proto__||Object.getPrototypeOf(AutosizeInput)).call(this,props));return _this.inputRef=function(el){_this.input=el,"function"==typeof _this.props.inputRef&&_this.props.inputRef(el)},_this.placeHolderSizerRef=function(el){_this.placeHolderSizer=el},_this.sizerRef=function(el){_this.sizer=el},_this.state={inputWidth:props.minWidth,inputId:props.id||generateId()},_this}return _inherits(AutosizeInput,_Component),_createClass(AutosizeInput,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"UNSAFE_componentWillReceiveProps",value:function(nextProps){var id=nextProps.id;id!==this.props.id&&this.setState({inputId:id||generateId()})}},{key:"componentDidUpdate",value:function(prevProps,prevState){prevState.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var inputStyles=this.input&&window.getComputedStyle(this.input);inputStyles&&(copyStyles(inputStyles,this.sizer),this.placeHolderSizer&&copyStyles(inputStyles,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var newInputWidth=void 0;newInputWidth=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2;newInputWidth+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0,newInputWidth<this.props.minWidth&&(newInputWidth=this.props.minWidth),newInputWidth!==this.state.inputWidth&&this.setState({inputWidth:newInputWidth})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var injectStyles=this.props.injectStyles;return isIE&&injectStyles?_react2.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var sizerValue=[this.props.defaultValue,this.props.value,""].reduce(function(previousValue,currentValue){return null!==previousValue&&void 0!==previousValue?previousValue:currentValue}),wrapperStyle=_extends({},this.props.style);wrapperStyle.display||(wrapperStyle.display="inline-block");var inputStyle=_extends({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),inputProps=_objectWithoutProperties(this.props,[]);return cleanInputProps(inputProps),inputProps.className=this.props.inputClassName,inputProps.id=this.state.inputId,inputProps.style=inputStyle,_react2.default.createElement("div",{className:this.props.className,style:wrapperStyle},this.renderStyles(),_react2.default.createElement("input",_extends({},inputProps,{ref:this.inputRef})),_react2.default.createElement("div",{ref:this.sizerRef,style:sizerStyle},sizerValue),this.props.placeholder?_react2.default.createElement("div",{ref:this.placeHolderSizerRef,style:sizerStyle},this.props.placeholder):null)}}]),AutosizeInput}(_react.Component);AutosizeInput.propTypes={className:_propTypes2.default.string,defaultValue:_propTypes2.default.any,extraWidth:_propTypes2.default.oneOfType([_propTypes2.default.number,_propTypes2.default.string]),id:_propTypes2.default.string,injectStyles:_propTypes2.default.bool,inputClassName:_propTypes2.default.string,inputRef:_propTypes2.default.func,inputStyle:_propTypes2.default.object,minWidth:_propTypes2.default.oneOfType([_propTypes2.default.number,_propTypes2.default.string]),onAutosize:_propTypes2.default.func,onChange:_propTypes2.default.func,placeholder:_propTypes2.default.string,placeholderIsMinWidth:_propTypes2.default.bool,style:_propTypes2.default.object,value:_propTypes2.default.any},AutosizeInput.defaultProps={minWidth:1,injectStyles:!0},exports.default=AutosizeInput},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(process){function preventTouchMove(e){e.preventDefault()}function allowTouchMove(e){e.stopPropagation()}function preventInertiaScroll(){var top=this.scrollTop,totalScroll=this.scrollHeight,currentScroll=top+this.offsetHeight;0===top?this.scrollTop=1:currentScroll===totalScroll&&(this.scrollTop=top-1)}function isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints}__webpack_require__.d(__webpack_exports__,"a",function(){return Select});var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__=__webpack_require__(14),__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__=__webpack_require__(15),__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_toConsumableArray__=__webpack_require__(36),__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectSpread__=__webpack_require__(30),__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__=__webpack_require__(16),__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__=__webpack_require__(17),__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__=__webpack_require__(18),__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__=__webpack_require__(20),__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__=__webpack_require__(21),__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__=__webpack_require__(8),__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__=__webpack_require__(7),__WEBPACK_IMPORTED_MODULE_11_react__=__webpack_require__(3),__WEBPACK_IMPORTED_MODULE_11_react___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_react__),__WEBPACK_IMPORTED_MODULE_12_memoize_one__=__webpack_require__(37),__WEBPACK_IMPORTED_MODULE_13__emotion_core__=__webpack_require__(31),__WEBPACK_IMPORTED_MODULE_14_react_dom__=__webpack_require__(11),__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__=(__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_react_dom__),__webpack_require__(32)),__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__=__webpack_require__(41),__WEBPACK_IMPORTED_MODULE_17__emotion_css__=__webpack_require__(9),diacritics=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],stripDiacritics=function(str){for(var i=0;i<diacritics.length;i++)str=str.replace(diacritics[i].letters,diacritics[i].base);return str},trimString=function(str){return str.replace(/^\s+|\s+$/g,"")},defaultStringify=function(option){return"".concat(option.label," ").concat(option.value)},_ref="production"===process.env.NODE_ENV?{name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"}:{name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVFNIiwiZmlsZSI6IkExMXlUZXh0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8gQGZsb3dcbi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgdHlwZSBFbGVtZW50Q29uZmlnIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vY29yZSc7XG5cbi8vIEFzc2lzdGl2ZSB0ZXh0IHRvIGRlc2NyaWJlIHZpc3VhbCBlbGVtZW50cy4gSGlkZGVuIGZvciBzaWdodGVkIHVzZXJzLlxuY29uc3QgQTExeVRleHQgPSAocHJvcHM6IEVsZW1lbnRDb25maWc8J3NwYW4nPikgPT4gKFxuICAgIDxzcGFuXG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdhMTF5VGV4dCcsXG4gICAgICAgIHpJbmRleDogOTk5OSxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICBjbGlwOiAncmVjdCgxcHgsIDFweCwgMXB4LCAxcHgpJyxcbiAgICAgICAgaGVpZ2h0OiAxLFxuICAgICAgICB3aWR0aDogMSxcbiAgICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICAgIG92ZXJmbG93OiAnaGlkZGVuJyxcbiAgICAgICAgcGFkZGluZzogMCxcbiAgICAgICAgd2hpdGVTcGFjZTogJ25vd3JhcCcsXG4gICAgICB9fVxuICAgICAgey4uLnByb3BzfVxuICAgIC8+XG4pO1xuXG5leHBvcnQgZGVmYXVsdCBBMTF5VGV4dDtcbiJdfQ== */"},A11yText=function(props){return Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__.c)("span",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:_ref},props))},DummyInput=function(_Component){function DummyInput(){return Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__.a)(this,DummyInput),Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__.a)(DummyInput).apply(this,arguments))}return Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__.a)(DummyInput,_Component),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__.a)(DummyInput,[{key:"render",value:function(){var _this$props=this.props,innerRef=(_this$props.in,_this$props.out,_this$props.onExited,_this$props.appear,_this$props.enter,_this$props.exit,_this$props.innerRef),props=(_this$props.emotion,Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__.a)(_this$props,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__.c)("input",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({ref:innerRef},props,{css:Object(__WEBPACK_IMPORTED_MODULE_17__emotion_css__.a)({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBWVEiLCJmaWxlIjoiRHVtbXlJbnB1dC5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vIEBmbG93XG4vKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IENvbXBvbmVudCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuXG5leHBvcnQgZGVmYXVsdCBjbGFzcyBEdW1teUlucHV0IGV4dGVuZHMgQ29tcG9uZW50PGFueT4ge1xuICByZW5kZXIgKCkge1xuICAgIGNvbnN0IHsgaW46IGluUHJvcCwgb3V0LCBvbkV4aXRlZCwgYXBwZWFyLCBlbnRlciwgZXhpdCwgaW5uZXJSZWYsIGVtb3Rpb24sIC4uLnByb3BzIH0gPSB0aGlzLnByb3BzO1xuICAgIHJldHVybihcbiAgICAgIDxpbnB1dFxuICAgICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgICB7Li4ucHJvcHN9XG4gICAgICAgIGNzcz17e1xuICAgICAgICAgIGxhYmVsOiAnZHVtbXlJbnB1dCcsXG4gICAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICAgIGJvcmRlcjogMCxcbiAgICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgICAgcGFkZGluZzogMCxcbiAgICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBkZXNrdG9wXG4gICAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgICAgbGVmdDogLTEwMCxcbiAgICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICAgIHRyYW5zZm9ybTogJ3NjYWxlKDApJyxcbiAgICAgICAgfX1cbiAgICAgIC8+XG4gICAgKTtcbiAgfVxufVxuIl19 */")}))}}]),DummyInput}(__WEBPACK_IMPORTED_MODULE_11_react__.Component),NodeResolver=function(_Component){function NodeResolver(){return Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__.a)(this,NodeResolver),Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__.a)(NodeResolver).apply(this,arguments))}return Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__.a)(NodeResolver,_Component),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__.a)(NodeResolver,[{key:"componentDidMount",value:function(){this.props.innerRef(Object(__WEBPACK_IMPORTED_MODULE_14_react_dom__.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),NodeResolver}(__WEBPACK_IMPORTED_MODULE_11_react__.Component),STYLE_KEYS=["boxSizing","height","overflow","paddingRight","position"],LOCK_STYLES={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"},canUseDOM=!(!window.document||!window.document.createElement),activeScrollLocks=0,ScrollLock=function(_Component){function ScrollLock(){var _getPrototypeOf2,_this;Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__.a)(this,ScrollLock);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return _this=Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,(_getPrototypeOf2=Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__.a)(ScrollLock)).call.apply(_getPrototypeOf2,[this].concat(args))),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"originalStyles",{}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"listenerOptions",{capture:!1,passive:!1}),_this}return Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__.a)(ScrollLock,_Component),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__.a)(ScrollLock,[{key:"componentDidMount",value:function(){var _this2=this;if(canUseDOM){var _this$props=this.props,accountForScrollbars=_this$props.accountForScrollbars,touchScrollTarget=_this$props.touchScrollTarget,target=document.body,targetStyle=target&&target.style;if(accountForScrollbars&&STYLE_KEYS.forEach(function(key){var val=targetStyle&&targetStyle[key];_this2.originalStyles[key]=val}),accountForScrollbars&&activeScrollLocks<1){var currentPadding=parseInt(this.originalStyles.paddingRight,10)||0,clientWidth=document.body?document.body.clientWidth:0,adjustedPadding=window.innerWidth-clientWidth+currentPadding||0;Object.keys(LOCK_STYLES).forEach(function(key){var val=LOCK_STYLES[key];targetStyle&&(targetStyle[key]=val)}),targetStyle&&(targetStyle.paddingRight="".concat(adjustedPadding,"px"))}target&&isTouchDevice()&&(target.addEventListener("touchmove",preventTouchMove,this.listenerOptions),touchScrollTarget&&(touchScrollTarget.addEventListener("touchstart",preventInertiaScroll,this.listenerOptions),touchScrollTarget.addEventListener("touchmove",allowTouchMove,this.listenerOptions))),activeScrollLocks+=1}}},{key:"componentWillUnmount",value:function(){var _this3=this;if(canUseDOM){var _this$props2=this.props,accountForScrollbars=_this$props2.accountForScrollbars,touchScrollTarget=_this$props2.touchScrollTarget,target=document.body,targetStyle=target&&target.style;activeScrollLocks=Math.max(activeScrollLocks-1,0),accountForScrollbars&&activeScrollLocks<1&&STYLE_KEYS.forEach(function(key){var val=_this3.originalStyles[key];targetStyle&&(targetStyle[key]=val)}),target&&isTouchDevice()&&(target.removeEventListener("touchmove",preventTouchMove,this.listenerOptions),touchScrollTarget&&(touchScrollTarget.removeEventListener("touchstart",preventInertiaScroll,this.listenerOptions),touchScrollTarget.removeEventListener("touchmove",allowTouchMove,this.listenerOptions)))}}},{key:"render",value:function(){return null}}]),ScrollLock}(__WEBPACK_IMPORTED_MODULE_11_react__.Component);Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(ScrollLock,"defaultProps",{accountForScrollbars:!0});var _ref$1="production"===process.env.NODE_ENV?{name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"}:{name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbEJsb2NrLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTZEVSIsImZpbGUiOiJTY3JvbGxCbG9jay5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vIEBmbG93XG4vKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IFB1cmVDb21wb25lbnQsIHR5cGUgRWxlbWVudCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuaW1wb3J0IE5vZGVSZXNvbHZlciBmcm9tICcuL05vZGVSZXNvbHZlcic7XG5pbXBvcnQgU2Nyb2xsTG9jayBmcm9tICcuL1Njcm9sbExvY2svaW5kZXgnO1xuXG50eXBlIFByb3BzID0ge1xuICBjaGlsZHJlbjogRWxlbWVudDwqPixcbiAgaXNFbmFibGVkOiBib29sZWFuLFxufTtcbnR5cGUgU3RhdGUgPSB7XG4gIHRvdWNoU2Nyb2xsVGFyZ2V0OiBIVE1MRWxlbWVudCB8IG51bGwsXG59O1xuXG4vLyBOT1RFOlxuLy8gV2Ugc2hvdWxkbid0IG5lZWQgdGhpcyBhZnRlciB1cGRhdGluZyB0byBSZWFjdCB2MTYuMy4wLCB3aGljaCBpbnRyb2R1Y2VzOlxuLy8gLSBjcmVhdGVSZWYoKSBodHRwczovL3JlYWN0anMub3JnL2RvY3MvcmVhY3QtYXBpLmh0bWwjcmVhY3RjcmVhdGVyZWZcbi8vIC0gZm9yd2FyZFJlZigpIGh0dHBzOi8vcmVhY3Rqcy5vcmcvZG9jcy9yZWFjdC1hcGkuaHRtbCNyZWFjdGZvcndhcmRyZWZcblxuZXhwb3J0IGRlZmF1bHQgY2xhc3MgU2Nyb2xsQmxvY2sgZXh0ZW5kcyBQdXJlQ29tcG9uZW50PFByb3BzLCBTdGF0ZT4ge1xuICBzdGF0ZSA9IHsgdG91Y2hTY3JvbGxUYXJnZXQ6IG51bGwgfTtcblxuICAvLyBtdXN0IGJlIGluIHN0YXRlIHRvIHRyaWdnZXIgYSByZS1yZW5kZXIsIG9ubHkgcnVucyBvbmNlIHBlciBpbnN0YW5jZVxuICBnZXRTY3JvbGxUYXJnZXQgPSAocmVmOiBIVE1MRWxlbWVudCkgPT4ge1xuICAgIGlmIChyZWYgPT09IHRoaXMuc3RhdGUudG91Y2hTY3JvbGxUYXJnZXQpIHJldHVybjtcbiAgICB0aGlzLnNldFN0YXRlKHsgdG91Y2hTY3JvbGxUYXJnZXQ6IHJlZiB9KTtcbiAgfTtcblxuICAvLyB0aGlzIHdpbGwgY2xvc2UgdGhlIG1lbnUgd2hlbiBhIHVzZXIgY2xpY2tzIG91dHNpZGVcbiAgYmx1clNlbGVjdElucHV0ID0gKCkgPT4ge1xuICAgIGlmIChkb2N1bWVudC5hY3RpdmVFbGVtZW50KSB7XG4gICAgICBkb2N1bWVudC5hY3RpdmVFbGVtZW50LmJsdXIoKTtcbiAgICB9XG4gIH07XG5cbiAgcmVuZGVyKCkge1xuICAgIGNvbnN0IHsgY2hpbGRyZW4sIGlzRW5hYmxlZCB9ID0gdGhpcy5wcm9wcztcbiAgICBjb25zdCB7IHRvdWNoU2Nyb2xsVGFyZ2V0IH0gPSB0aGlzLnN0YXRlO1xuXG4gICAgLy8gYmFpbCBlYXJseSBpZiBub3QgZW5hYmxlZFxuICAgIGlmICghaXNFbmFibGVkKSByZXR1cm4gY2hpbGRyZW47XG5cbiAgICAvKlxuICAgICAqIERpdlxuICAgICAqIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAqIGJsb2NrcyBzY3JvbGxpbmcgb24gbm9uLWJvZHkgZWxlbWVudHMgYmVoaW5kIHRoZSBtZW51XG5cbiAgICAgKiBOb2RlUmVzb2x2ZXJcbiAgICAgKiAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS1cbiAgICAgKiB3ZSBuZWVkIGEgcmVmZXJlbmNlIHRvIHRoZSBzY3JvbGxhYmxlIGVsZW1lbnQgdG8gXCJ1bmxvY2tcIiBzY3JvbGwgb25cbiAgICAgKiBtb2JpbGUgZGV2aWNlc1xuXG4gICAgICogU2Nyb2xsTG9ja1xuICAgICAqIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAqIGFjdHVhbGx5IGRvZXMgdGhlIHNjcm9sbCBsb2NraW5nXG4gICAgICovXG4gICAgcmV0dXJuIChcbiAgICAgIDxkaXY+XG4gICAgICAgIDxkaXZcbiAgICAgICAgICBvbkNsaWNrPXt0aGlzLmJsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgICA8Tm9kZVJlc29sdmVyIGlubmVyUmVmPXt0aGlzLmdldFNjcm9sbFRhcmdldH0+e2NoaWxkcmVufTwvTm9kZVJlc29sdmVyPlxuICAgICAgICB7dG91Y2hTY3JvbGxUYXJnZXQgPyAoXG4gICAgICAgICAgPFNjcm9sbExvY2sgdG91Y2hTY3JvbGxUYXJnZXQ9e3RvdWNoU2Nyb2xsVGFyZ2V0fSAvPlxuICAgICAgICApIDogbnVsbH1cbiAgICAgIDwvZGl2PlxuICAgICk7XG4gIH1cbn1cbiJdfQ== */"},ScrollBlock=function(_PureComponent){function ScrollBlock(){var _getPrototypeOf2,_this;Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__.a)(this,ScrollBlock);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return _this=Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,(_getPrototypeOf2=Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__.a)(ScrollBlock)).call.apply(_getPrototypeOf2,[this].concat(args))),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"state",{touchScrollTarget:null}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getScrollTarget",function(ref){ref!==_this.state.touchScrollTarget&&_this.setState({touchScrollTarget:ref})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"blurSelectInput",function(){document.activeElement&&document.activeElement.blur()}),_this}return Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__.a)(ScrollBlock,_PureComponent),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__.a)(ScrollBlock,[{key:"render",value:function(){var _this$props=this.props,children=_this$props.children,isEnabled=_this$props.isEnabled,touchScrollTarget=this.state.touchScrollTarget;return isEnabled?Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__.c)("div",null,Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__.c)("div",{onClick:this.blurSelectInput,css:_ref$1}),Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__.c)(NodeResolver,{innerRef:this.getScrollTarget},children),touchScrollTarget?Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__.c)(ScrollLock,{touchScrollTarget:touchScrollTarget}):null):children}}]),ScrollBlock}(__WEBPACK_IMPORTED_MODULE_11_react__.PureComponent),ScrollCaptor=function(_Component){function ScrollCaptor(){var _getPrototypeOf2,_this;Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__.a)(this,ScrollCaptor);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return _this=Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,(_getPrototypeOf2=Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__.a)(ScrollCaptor)).call.apply(_getPrototypeOf2,[this].concat(args))),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"isBottom",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"isTop",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"scrollTarget",void 0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"touchStart",void 0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"cancelScroll",function(event){event.preventDefault(),event.stopPropagation()}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"handleEventDelta",function(event,delta){var _this$props=_this.props,onBottomArrive=_this$props.onBottomArrive,onBottomLeave=_this$props.onBottomLeave,onTopArrive=_this$props.onTopArrive,onTopLeave=_this$props.onTopLeave,_this$scrollTarget=_this.scrollTarget,scrollTop=_this$scrollTarget.scrollTop,scrollHeight=_this$scrollTarget.scrollHeight,clientHeight=_this$scrollTarget.clientHeight,target=_this.scrollTarget,isDeltaPositive=delta>0,availableScroll=scrollHeight-clientHeight-scrollTop,shouldCancelScroll=!1;availableScroll>delta&&_this.isBottom&&(onBottomLeave&&onBottomLeave(event),_this.isBottom=!1),isDeltaPositive&&_this.isTop&&(onTopLeave&&onTopLeave(event),_this.isTop=!1),isDeltaPositive&&delta>availableScroll?(onBottomArrive&&!_this.isBottom&&onBottomArrive(event),target.scrollTop=scrollHeight,shouldCancelScroll=!0,_this.isBottom=!0):!isDeltaPositive&&-delta>scrollTop&&(onTopArrive&&!_this.isTop&&onTopArrive(event),target.scrollTop=0,shouldCancelScroll=!0,_this.isTop=!0),shouldCancelScroll&&_this.cancelScroll(event)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onWheel",function(event){_this.handleEventDelta(event,event.deltaY)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onTouchStart",function(event){_this.touchStart=event.changedTouches[0].clientY}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onTouchMove",function(event){var deltaY=_this.touchStart-event.changedTouches[0].clientY;_this.handleEventDelta(event,deltaY)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getScrollTarget",function(ref){_this.scrollTarget=ref}),_this}return Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__.a)(ScrollCaptor,_Component),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__.a)(ScrollCaptor,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(el){el&&("function"==typeof el.addEventListener&&el.addEventListener("wheel",this.onWheel,!1),"function"==typeof el.addEventListener&&el.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof el.addEventListener&&el.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(el){"function"==typeof el.removeEventListener&&el.removeEventListener("wheel",this.onWheel,!1),"function"==typeof el.removeEventListener&&el.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof el.removeEventListener&&el.removeEventListener("touchmove",this.onTouchMove,!1)}},{key:"render",value:function(){return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(NodeResolver,{innerRef:this.getScrollTarget},this.props.children)}}]),ScrollCaptor}(__WEBPACK_IMPORTED_MODULE_11_react__.Component),ScrollCaptorSwitch=function(_Component2){function ScrollCaptorSwitch(){return Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__.a)(this,ScrollCaptorSwitch),Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__.a)(ScrollCaptorSwitch).apply(this,arguments))}return Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__.a)(ScrollCaptorSwitch,_Component2),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__.a)(ScrollCaptorSwitch,[{key:"render",value:function(){var _this$props2=this.props,isEnabled=_this$props2.isEnabled,props=Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__.a)(_this$props2,["isEnabled"]);return isEnabled?__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ScrollCaptor,props):this.props.children}}]),ScrollCaptorSwitch}(__WEBPACK_IMPORTED_MODULE_11_react__.Component);Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(ScrollCaptorSwitch,"defaultProps",{isEnabled:!0});var instructionsAriaMessage=function(event){var context=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},isSearchable=context.isSearchable,isMulti=context.isMulti,label=context.label,isDisabled=context.isDisabled;switch(event){case"menu":return"Use Up and Down to choose options".concat(isDisabled?"":", press Enter to select the currently focused option",", press Escape to exit the menu, press Tab to select the option and exit the menu.");case"input":return"".concat(label||"Select"," is focused ").concat(isSearchable?",type to refine list":"",", press Down to open the menu, ").concat(isMulti?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},valueEventAriaMessage=function(event,context){var value=context.value,isDisabled=context.isDisabled;if(value)switch(event){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(value,", deselected.");case"select-option":return isDisabled?"option ".concat(value," is disabled. Select another option."):"option ".concat(value,", selected.")}},valueFocusAriaMessage=function(_ref){var focusedValue=_ref.focusedValue,getOptionLabel=_ref.getOptionLabel,selectValue=_ref.selectValue;return"value ".concat(getOptionLabel(focusedValue)," focused, ").concat(selectValue.indexOf(focusedValue)+1," of ").concat(selectValue.length,".")},optionFocusAriaMessage=function(_ref2){var focusedOption=_ref2.focusedOption,getOptionLabel=_ref2.getOptionLabel,options=_ref2.options;return"option ".concat(getOptionLabel(focusedOption)," focused").concat(focusedOption.isDisabled?" disabled":"",", ").concat(options.indexOf(focusedOption)+1," of ").concat(options.length,".")},resultsAriaMessage=function(_ref3){var inputValue=_ref3.inputValue;return"".concat(_ref3.screenReaderMessage).concat(inputValue?" for search term "+inputValue:"",".")},formatGroupLabel=function(group){return group.label},getOptionLabel=function(option){return option.label},getOptionValue=function(option){return option.value},isOptionDisabled=function(option){return!!option.isDisabled},defaultStyles={clearIndicator:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.d,container:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.b,control:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.c,dropdownIndicator:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.e,group:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.h,groupHeading:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.f,indicatorsContainer:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.j,indicatorSeparator:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.g,input:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.i,loadingIndicator:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.m,loadingMessage:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.k,menu:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.n,menuList:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.l,menuPortal:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.o,multiValue:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.p,multiValueLabel:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.q,multiValueRemove:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.r,noOptionsMessage:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.s,option:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.t,placeholder:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.u,singleValue:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.v,valueContainer:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.w},colors={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing={baseUnit:4,controlHeight:38,menuGutter:8},defaultTheme={borderRadius:4,colors:colors,spacing:spacing},defaultProps={backspaceRemovesValue:!0,blurInputOnSelect:Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.i)(),captureMenuScroll:!Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.i)(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(config){return function(option,rawInput){var _ignoreCase$ignoreAcc=Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectSpread__.a)({ignoreCase:!0,ignoreAccents:!0,stringify:defaultStringify,trim:!0,matchFrom:"any"},config),ignoreCase=_ignoreCase$ignoreAcc.ignoreCase,ignoreAccents=_ignoreCase$ignoreAcc.ignoreAccents,stringify=_ignoreCase$ignoreAcc.stringify,trim=_ignoreCase$ignoreAcc.trim,matchFrom=_ignoreCase$ignoreAcc.matchFrom,input=trim?trimString(rawInput):rawInput,candidate=trim?trimString(stringify(option)):stringify(option);return ignoreCase&&(input=input.toLowerCase(),candidate=candidate.toLowerCase()),ignoreAccents&&(input=stripDiacritics(input),candidate=stripDiacritics(candidate)),"start"===matchFrom?candidate.substr(0,input.length)===input:candidate.indexOf(input)>-1}}(),formatGroupLabel:formatGroupLabel,getOptionLabel:getOptionLabel,getOptionValue:getOptionValue,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:isOptionDisabled,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.d)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(_ref){var count=_ref.count;return"".concat(count," result").concat(1!==count?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},instanceId=1,Select=function(_Component){function Select(_props){var _this;Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__.a)(this,Select),_this=Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__.a)(Select).call(this,_props)),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"state",{ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"blockOptionHover",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"isComposing",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"clearFocusValueOnUpdate",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"commonProps",void 0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"components",void 0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"hasGroups",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"initialTouchX",0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"initialTouchY",0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"inputIsHiddenAfterUpdate",void 0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"instancePrefix",""),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"openAfterFocus",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"scrollToFocusedOptionOnUpdate",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"userIsDragging",void 0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"controlRef",null),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getControlRef",function(ref){_this.controlRef=ref}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"focusedOptionRef",null),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getFocusedOptionRef",function(ref){_this.focusedOptionRef=ref}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"menuListRef",null),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getMenuListRef",function(ref){_this.menuListRef=ref}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"inputRef",null),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getInputRef",function(ref){_this.inputRef=ref}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"cacheComponents",function(components){_this.components=Object(__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.x)({components:components})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"focus",_this.focusInput),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"blur",_this.blurInput),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onChange",function(newValue,actionMeta){var _this$props=_this.props,onChange=_this$props.onChange,name=_this$props.name;onChange(newValue,Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectSpread__.a)({},actionMeta,{name:name}))}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"setValue",function(newValue){var action=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",option=arguments.length>2?arguments[2]:void 0,_this$props2=_this.props,closeMenuOnSelect=_this$props2.closeMenuOnSelect,isMulti=_this$props2.isMulti;_this.onInputChange("",{action:"set-value"}),closeMenuOnSelect&&(_this.inputIsHiddenAfterUpdate=!isMulti,_this.onMenuClose()),_this.clearFocusValueOnUpdate=!0,_this.onChange(newValue,{action:action,option:option})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"selectOption",function(newValue){var _this$props3=_this.props,blurInputOnSelect=_this$props3.blurInputOnSelect,isMulti=_this$props3.isMulti,selectValue=_this.state.selectValue;if(isMulti)if(_this.isOptionSelected(newValue,selectValue)){var candidate=_this.getOptionValue(newValue);_this.setValue(selectValue.filter(function(i){return _this.getOptionValue(i)!==candidate}),"deselect-option",newValue),_this.announceAriaLiveSelection({event:"deselect-option",context:{value:_this.getOptionLabel(newValue)}})}else _this.isOptionDisabled(newValue,selectValue)?_this.announceAriaLiveSelection({event:"select-option",context:{value:_this.getOptionLabel(newValue),isDisabled:!0}}):(_this.setValue([].concat(Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_toConsumableArray__.a)(selectValue),[newValue]),"select-option",newValue),_this.announceAriaLiveSelection({event:"select-option",context:{value:_this.getOptionLabel(newValue)}}));else _this.isOptionDisabled(newValue,selectValue)?_this.announceAriaLiveSelection({event:"select-option",context:{value:_this.getOptionLabel(newValue),isDisabled:!0}}):(_this.setValue(newValue,"select-option"),_this.announceAriaLiveSelection({event:"select-option",context:{value:_this.getOptionLabel(newValue)}}));blurInputOnSelect&&_this.blurInput()}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"removeValue",function(removedValue){var selectValue=_this.state.selectValue,candidate=_this.getOptionValue(removedValue),newValue=selectValue.filter(function(i){return _this.getOptionValue(i)!==candidate});_this.onChange(newValue.length?newValue:null,{action:"remove-value",removedValue:removedValue}),_this.announceAriaLiveSelection({event:"remove-value",context:{value:removedValue?_this.getOptionLabel(removedValue):""}}),_this.focusInput()}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"clearValue",function(){var isMulti=_this.props.isMulti;_this.onChange(isMulti?[]:null,{action:"clear"})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"popValue",function(){var selectValue=_this.state.selectValue,lastSelectedValue=selectValue[selectValue.length-1],newValue=selectValue.slice(0,selectValue.length-1);_this.announceAriaLiveSelection({event:"pop-value",context:{value:lastSelectedValue?_this.getOptionLabel(lastSelectedValue):""}}),_this.onChange(newValue.length?newValue:null,{action:"pop-value",removedValue:lastSelectedValue})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getOptionLabel",function(data){return _this.props.getOptionLabel(data)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getOptionValue",function(data){return _this.props.getOptionValue(data)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getStyles",function(key,props){var base=defaultStyles[key](props);base.boxSizing="border-box";var custom=_this.props.styles[key];return custom?custom(base,props):base}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getElementId",function(element){return"".concat(_this.instancePrefix,"-").concat(element)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getActiveDescendentId",function(){var menuIsOpen=_this.props.menuIsOpen,_this$state=_this.state,menuOptions=_this$state.menuOptions,focusedOption=_this$state.focusedOption;if(focusedOption&&menuIsOpen){var index=menuOptions.focusable.indexOf(focusedOption),option=menuOptions.render[index];return option&&option.key}}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"announceAriaLiveSelection",function(_ref2){var event=_ref2.event,context=_ref2.context;_this.setState({ariaLiveSelection:valueEventAriaMessage(event,context)})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"announceAriaLiveContext",function(_ref3){var event=_ref3.event,context=_ref3.context;_this.setState({ariaLiveContext:instructionsAriaMessage(event,Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectSpread__.a)({},context,{label:_this.props["aria-label"]}))})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onMenuMouseDown",function(event){0===event.button&&(event.stopPropagation(),event.preventDefault(),_this.focusInput())}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onMenuMouseMove",function(event){_this.blockOptionHover=!1}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onControlMouseDown",function(event){var openMenuOnClick=_this.props.openMenuOnClick;_this.state.isFocused?_this.props.menuIsOpen?"INPUT"!==event.target.tagName&&_this.onMenuClose():openMenuOnClick&&_this.openMenu("first"):(openMenuOnClick&&(_this.openAfterFocus=!0),_this.focusInput()),"INPUT"!==event.target.tagName&&event.preventDefault()}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onDropdownIndicatorMouseDown",function(event){if(!(event&&"mousedown"===event.type&&0!==event.button||_this.props.isDisabled)){var _this$props4=_this.props,isMulti=_this$props4.isMulti,menuIsOpen=_this$props4.menuIsOpen;_this.focusInput(),menuIsOpen?(_this.inputIsHiddenAfterUpdate=!isMulti,_this.onMenuClose()):_this.openMenu("first"),event.preventDefault(),event.stopPropagation()}}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onClearIndicatorMouseDown",function(event){event&&"mousedown"===event.type&&0!==event.button||(_this.clearValue(),event.stopPropagation(),_this.openAfterFocus=!1,"touchend"===event.type?_this.focusInput():setTimeout(function(){return _this.focusInput()}))}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onScroll",function(event){"boolean"==typeof _this.props.closeMenuOnScroll?event.target instanceof HTMLElement&&Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.e)(event.target)&&_this.props.onMenuClose():"function"==typeof _this.props.closeMenuOnScroll&&_this.props.closeMenuOnScroll(event)&&_this.props.onMenuClose()}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onCompositionStart",function(){_this.isComposing=!0}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onCompositionEnd",function(){_this.isComposing=!1}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onTouchStart",function(_ref4){var touches=_ref4.touches,touch=touches.item(0);touch&&(_this.initialTouchX=touch.clientX,_this.initialTouchY=touch.clientY,_this.userIsDragging=!1)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onTouchMove",function(_ref5){var touches=_ref5.touches,touch=touches.item(0);if(touch){var deltaX=Math.abs(touch.clientX-_this.initialTouchX),deltaY=Math.abs(touch.clientY-_this.initialTouchY);_this.userIsDragging=deltaX>5||deltaY>5}}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onTouchEnd",function(event){_this.userIsDragging||(_this.controlRef&&!_this.controlRef.contains(event.target)&&_this.menuListRef&&!_this.menuListRef.contains(event.target)&&_this.blurInput(),_this.initialTouchX=0,_this.initialTouchY=0)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onControlTouchEnd",function(event){_this.userIsDragging||_this.onControlMouseDown(event)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onClearIndicatorTouchEnd",function(event){_this.userIsDragging||_this.onClearIndicatorMouseDown(event)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onDropdownIndicatorTouchEnd",function(event){_this.userIsDragging||_this.onDropdownIndicatorMouseDown(event)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"handleInputChange",function(event){var inputValue=event.currentTarget.value;_this.inputIsHiddenAfterUpdate=!1,_this.onInputChange(inputValue,{action:"input-change"}),_this.onMenuOpen()}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onInputFocus",function(event){var _this$props5=_this.props,isSearchable=_this$props5.isSearchable,isMulti=_this$props5.isMulti;_this.props.onFocus&&_this.props.onFocus(event),_this.inputIsHiddenAfterUpdate=!1,_this.announceAriaLiveContext({event:"input",context:{isSearchable:isSearchable,isMulti:isMulti}}),_this.setState({isFocused:!0}),(_this.openAfterFocus||_this.props.openMenuOnFocus)&&_this.openMenu("first"),_this.openAfterFocus=!1}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onInputBlur",function(event){if(_this.menuListRef&&_this.menuListRef.contains(document.activeElement))return void _this.inputRef.focus();_this.props.onBlur&&_this.props.onBlur(event),_this.onInputChange("",{action:"input-blur"}),_this.onMenuClose(),_this.setState({focusedValue:null,isFocused:!1})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onOptionHover",function(focusedOption){_this.blockOptionHover||_this.state.focusedOption===focusedOption||_this.setState({focusedOption:focusedOption})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"shouldHideSelectedOptions",function(){var _this$props6=_this.props,hideSelectedOptions=_this$props6.hideSelectedOptions,isMulti=_this$props6.isMulti;return void 0===hideSelectedOptions?isMulti:hideSelectedOptions}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onKeyDown",function(event){var _this$props7=_this.props,isMulti=_this$props7.isMulti,backspaceRemovesValue=_this$props7.backspaceRemovesValue,escapeClearsValue=_this$props7.escapeClearsValue,inputValue=_this$props7.inputValue,isClearable=_this$props7.isClearable,isDisabled=_this$props7.isDisabled,menuIsOpen=_this$props7.menuIsOpen,onKeyDown=_this$props7.onKeyDown,tabSelectsValue=_this$props7.tabSelectsValue,openMenuOnFocus=_this$props7.openMenuOnFocus,_this$state2=_this.state,focusedOption=_this$state2.focusedOption,focusedValue=_this$state2.focusedValue,selectValue=_this$state2.selectValue;if(!(isDisabled||"function"==typeof onKeyDown&&(onKeyDown(event),event.defaultPrevented))){switch(_this.blockOptionHover=!0,event.key){case"ArrowLeft":if(!isMulti||inputValue)return;_this.focusValue("previous");break;case"ArrowRight":if(!isMulti||inputValue)return;_this.focusValue("next");break;case"Delete":case"Backspace":if(inputValue)return;if(focusedValue)_this.removeValue(focusedValue);else{if(!backspaceRemovesValue)return;isMulti?_this.popValue():isClearable&&_this.clearValue()}break;case"Tab":if(_this.isComposing)return;if(event.shiftKey||!menuIsOpen||!tabSelectsValue||!focusedOption||openMenuOnFocus&&_this.isOptionSelected(focusedOption,selectValue))return;_this.selectOption(focusedOption);break;case"Enter":if(229===event.keyCode)break;if(menuIsOpen){if(!focusedOption)return;if(_this.isComposing)return;_this.selectOption(focusedOption);break}return;case"Escape":menuIsOpen?(_this.inputIsHiddenAfterUpdate=!1,_this.onInputChange("",{action:"menu-close"}),_this.onMenuClose()):isClearable&&escapeClearsValue&&_this.clearValue();break;case" ":if(inputValue)return;if(!menuIsOpen){_this.openMenu("first");break}if(!focusedOption)return;_this.selectOption(focusedOption);break;case"ArrowUp":menuIsOpen?_this.focusOption("up"):_this.openMenu("last");break;case"ArrowDown":menuIsOpen?_this.focusOption("down"):_this.openMenu("first");break;case"PageUp":if(!menuIsOpen)return;_this.focusOption("pageup");break;case"PageDown":if(!menuIsOpen)return;_this.focusOption("pagedown");break;case"Home":if(!menuIsOpen)return;_this.focusOption("first");break;case"End":if(!menuIsOpen)return;_this.focusOption("last");break;default:return}event.preventDefault()}});var value=_props.value;_this.cacheComponents=Object(__WEBPACK_IMPORTED_MODULE_12_memoize_one__.a)(_this.cacheComponents,__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.y).bind(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this))),_this.cacheComponents(_props.components),_this.instancePrefix="react-select-"+(_this.props.instanceId||++instanceId);var _selectValue=Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.f)(value),_menuOptions=_props.menuIsOpen?_this.buildMenuOptions(_props,_selectValue):{render:[],focusable:[]};return _this.state.menuOptions=_menuOptions,_this.state.selectValue=_selectValue,_this}return Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__.a)(Select,_Component),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__.a)(Select,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"UNSAFE_componentWillReceiveProps",value:function(nextProps){var _this$props8=this.props,options=_this$props8.options,value=_this$props8.value,menuIsOpen=_this$props8.menuIsOpen,inputValue=_this$props8.inputValue;if(this.cacheComponents(nextProps.components),nextProps.value!==value||nextProps.options!==options||nextProps.menuIsOpen!==menuIsOpen||nextProps.inputValue!==inputValue){var selectValue=Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.f)(nextProps.value),menuOptions=nextProps.menuIsOpen?this.buildMenuOptions(nextProps,selectValue):{render:[],focusable:[]},focusedValue=this.getNextFocusedValue(selectValue),focusedOption=this.getNextFocusedOption(menuOptions.focusable);this.setState({menuOptions:menuOptions,selectValue:selectValue,focusedOption:focusedOption,focusedValue:focusedValue})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(prevProps){var _this$props9=this.props,isDisabled=_this$props9.isDisabled,menuIsOpen=_this$props9.menuIsOpen,isFocused=this.state.isFocused;(isFocused&&!isDisabled&&prevProps.isDisabled||isFocused&&menuIsOpen&&!prevProps.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.h)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var _this$props10=this.props,isSearchable=_this$props10.isSearchable,isMulti=_this$props10.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:isSearchable,isMulti:isMulti}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(newValue,actionMeta){this.props.onInputChange(newValue,actionMeta)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(focusOption){var _this$state3=this.state,menuOptions=_this$state3.menuOptions,selectValue=_this$state3.selectValue,isFocused=_this$state3.isFocused,isMulti=this.props.isMulti,openAtIndex="first"===focusOption?0:menuOptions.focusable.length-1;if(!isMulti){var selectedIndex=menuOptions.focusable.indexOf(selectValue[0]);selectedIndex>-1&&(openAtIndex=selectedIndex)}this.scrollToFocusedOptionOnUpdate=!(isFocused&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.onMenuOpen(),this.setState({focusedValue:null,focusedOption:menuOptions.focusable[openAtIndex]}),this.announceAriaLiveContext({event:"menu"})}},{key:"focusValue",value:function(direction){var _this$props11=this.props,isMulti=_this$props11.isMulti,isSearchable=_this$props11.isSearchable,_this$state4=this.state,selectValue=_this$state4.selectValue,focusedValue=_this$state4.focusedValue;if(isMulti){this.setState({focusedOption:null});var focusedIndex=selectValue.indexOf(focusedValue);focusedValue||(focusedIndex=-1,this.announceAriaLiveContext({event:"value"}));var lastIndex=selectValue.length-1,nextFocus=-1;if(selectValue.length){switch(direction){case"previous":nextFocus=0===focusedIndex?0:-1===focusedIndex?lastIndex:focusedIndex-1;break;case"next":focusedIndex>-1&&focusedIndex<lastIndex&&(nextFocus=focusedIndex+1)}-1===nextFocus&&this.announceAriaLiveContext({event:"input",context:{isSearchable:isSearchable,isMulti:isMulti}}),this.setState({inputIsHidden:-1!==nextFocus,focusedValue:selectValue[nextFocus]})}}}},{key:"focusOption",value:function(){var direction=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",pageSize=this.props.pageSize,_this$state5=this.state,focusedOption=_this$state5.focusedOption,menuOptions=_this$state5.menuOptions,options=menuOptions.focusable;if(options.length){var nextFocus=0,focusedIndex=options.indexOf(focusedOption);focusedOption||(focusedIndex=-1,this.announceAriaLiveContext({event:"menu"})),"up"===direction?nextFocus=focusedIndex>0?focusedIndex-1:options.length-1:"down"===direction?nextFocus=(focusedIndex+1)%options.length:"pageup"===direction?(nextFocus=focusedIndex-pageSize)<0&&(nextFocus=0):"pagedown"===direction?(nextFocus=focusedIndex+pageSize)>options.length-1&&(nextFocus=options.length-1):"last"===direction&&(nextFocus=options.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:options[nextFocus],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:isOptionDisabled(options[nextFocus])}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(defaultTheme):Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectSpread__.a)({},defaultTheme,this.props.theme):defaultTheme}},{key:"getCommonProps",value:function(){var clearValue=this.clearValue,getStyles=this.getStyles,setValue=this.setValue,selectOption=this.selectOption,props=this.props,classNamePrefix=props.classNamePrefix,isMulti=props.isMulti,isRtl=props.isRtl,options=props.options,selectValue=this.state.selectValue,hasValue=this.hasValue(),getValue=function(){return selectValue};return{cx:__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.j.bind(null,classNamePrefix),clearValue:clearValue,getStyles:getStyles,getValue:getValue,hasValue:hasValue,isMulti:isMulti,isRtl:isRtl,options:options,selectOption:selectOption,setValue:setValue,selectProps:props,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(nextSelectValue){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var _this$state6=this.state,focusedValue=_this$state6.focusedValue,lastSelectValue=_this$state6.selectValue,lastFocusedIndex=lastSelectValue.indexOf(focusedValue);if(lastFocusedIndex>-1){if(nextSelectValue.indexOf(focusedValue)>-1)return focusedValue;if(lastFocusedIndex<nextSelectValue.length)return nextSelectValue[lastFocusedIndex]}return null}},{key:"getNextFocusedOption",value:function(options){var lastFocusedOption=this.state.focusedOption;return lastFocusedOption&&options.indexOf(lastFocusedOption)>-1?lastFocusedOption:options[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var _this$props12=this.props,isClearable=_this$props12.isClearable,isMulti=_this$props12.isMulti;return void 0===isClearable?isMulti:isClearable}},{key:"isOptionDisabled",value:function(option,selectValue){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(option,selectValue)}},{key:"isOptionSelected",value:function(option,selectValue){var _this2=this;if(selectValue.indexOf(option)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(option,selectValue);var candidate=this.getOptionValue(option);return selectValue.some(function(i){return _this2.getOptionValue(i)===candidate})}},{key:"filterOption",value:function(option,inputValue){return!this.props.filterOption||this.props.filterOption(option,inputValue)}},{key:"formatOptionLabel",value:function(data,context){if("function"==typeof this.props.formatOptionLabel){var inputValue=this.props.inputValue,selectValue=this.state.selectValue;return this.props.formatOptionLabel(data,{context:context,inputValue:inputValue,selectValue:selectValue})}return this.getOptionLabel(data)}},{key:"formatGroupLabel",value:function(data){return this.props.formatGroupLabel(data)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"buildMenuOptions",value:function(props,selectValue){var _this3=this,_props$inputValue=props.inputValue,inputValue=void 0===_props$inputValue?"":_props$inputValue,options=props.options,toOption=function(option,id){var isDisabled=_this3.isOptionDisabled(option,selectValue),isSelected=_this3.isOptionSelected(option,selectValue),label=_this3.getOptionLabel(option),value=_this3.getOptionValue(option);if(!(_this3.shouldHideSelectedOptions()&&isSelected||!_this3.filterOption({label:label,value:value,data:option},inputValue))){var onHover=isDisabled?void 0:function(){return _this3.onOptionHover(option)},onSelect=isDisabled?void 0:function(){return _this3.selectOption(option)},optionId="".concat(_this3.getElementId("option"),"-").concat(id);return{innerProps:{id:optionId,onClick:onSelect,onMouseMove:onHover,onMouseOver:onHover,tabIndex:-1},data:option,isDisabled:isDisabled,isSelected:isSelected,key:optionId,label:label,type:"option",value:value}}};return options.reduce(function(acc,item,itemIndex){if(item.options){_this3.hasGroups||(_this3.hasGroups=!0);var items=item.options,children=items.map(function(child,i){var option=toOption(child,"".concat(itemIndex,"-").concat(i));return option&&acc.focusable.push(child),option}).filter(Boolean);if(children.length){var groupId="".concat(_this3.getElementId("group"),"-").concat(itemIndex);acc.render.push({type:"group",key:groupId,data:item,options:children})}}else{var option=toOption(item,"".concat(itemIndex));option&&(acc.render.push(option),acc.focusable.push(item))}return acc},{render:[],focusable:[]})}},{key:"constructAriaLiveMessage",value:function(){var _this$state7=this.state,ariaLiveContext=_this$state7.ariaLiveContext,selectValue=_this$state7.selectValue,focusedValue=_this$state7.focusedValue,focusedOption=_this$state7.focusedOption,_this$props13=this.props,options=_this$props13.options,menuIsOpen=_this$props13.menuIsOpen,inputValue=_this$props13.inputValue,screenReaderStatus=_this$props13.screenReaderStatus,focusedValueMsg=focusedValue?valueFocusAriaMessage({focusedValue:focusedValue,getOptionLabel:this.getOptionLabel,selectValue:selectValue}):"",focusedOptionMsg=focusedOption&&menuIsOpen?optionFocusAriaMessage({focusedOption:focusedOption,getOptionLabel:this.getOptionLabel,options:options}):"",resultsMsg=resultsAriaMessage({inputValue:inputValue,screenReaderMessage:screenReaderStatus({count:this.countOptions()})});return"".concat(focusedValueMsg," ").concat(focusedOptionMsg," ").concat(resultsMsg," ").concat(ariaLiveContext)}},{key:"renderInput",value:function(){var _this$props14=this.props,isDisabled=_this$props14.isDisabled,isSearchable=_this$props14.isSearchable,inputId=_this$props14.inputId,inputValue=_this$props14.inputValue,tabIndex=_this$props14.tabIndex,Input=this.components.Input,inputIsHidden=this.state.inputIsHidden,id=inputId||this.getElementId("input");if(!isSearchable)return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(DummyInput,{id:id,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.k,onFocus:this.onInputFocus,readOnly:!0,disabled:isDisabled,tabIndex:tabIndex,value:""});var ariaAttributes={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]},_this$commonProps=this.commonProps,cx=_this$commonProps.cx,theme=_this$commonProps.theme,selectProps=_this$commonProps.selectProps;return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Input,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:cx,getStyles:this.getStyles,id:id,innerRef:this.getInputRef,isDisabled:isDisabled,isHidden:inputIsHidden,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:selectProps,spellCheck:"false",tabIndex:tabIndex,theme:theme,type:"text",value:inputValue},ariaAttributes))}},{key:"renderPlaceholderOrValue",value:function(){var _this4=this,_this$components=this.components,MultiValue=_this$components.MultiValue,MultiValueContainer=_this$components.MultiValueContainer,MultiValueLabel=_this$components.MultiValueLabel,MultiValueRemove=_this$components.MultiValueRemove,SingleValue=_this$components.SingleValue,Placeholder=_this$components.Placeholder,commonProps=this.commonProps,_this$props15=this.props,controlShouldRenderValue=_this$props15.controlShouldRenderValue,isDisabled=_this$props15.isDisabled,isMulti=_this$props15.isMulti,inputValue=_this$props15.inputValue,placeholder=_this$props15.placeholder,_this$state8=this.state,selectValue=_this$state8.selectValue,focusedValue=_this$state8.focusedValue,isFocused=_this$state8.isFocused;if(!this.hasValue()||!controlShouldRenderValue)return inputValue?null:__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Placeholder,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{key:"placeholder",isDisabled:isDisabled,isFocused:isFocused}),placeholder);if(isMulti){return selectValue.map(function(opt,index){var isOptionFocused=opt===focusedValue;return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(MultiValue,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{components:{Container:MultiValueContainer,Label:MultiValueLabel,Remove:MultiValueRemove},isFocused:isOptionFocused,isDisabled:isDisabled,key:_this4.getOptionValue(opt),index:index,removeProps:{onClick:function(){return _this4.removeValue(opt)},onTouchEnd:function(){return _this4.removeValue(opt)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:opt}),_this4.formatOptionLabel(opt,"value"))})}if(inputValue)return null;var singleValue=selectValue[0];return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(SingleValue,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{data:singleValue,isDisabled:isDisabled}),this.formatOptionLabel(singleValue,"value"))}},{key:"renderClearIndicator",value:function(){var ClearIndicator=this.components.ClearIndicator,commonProps=this.commonProps,_this$props16=this.props,isDisabled=_this$props16.isDisabled,isLoading=_this$props16.isLoading,isFocused=this.state.isFocused;if(!this.isClearable()||!ClearIndicator||isDisabled||!this.hasValue()||isLoading)return null;var innerProps={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ClearIndicator,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{innerProps:innerProps,isFocused:isFocused}))}},{key:"renderLoadingIndicator",value:function(){var LoadingIndicator=this.components.LoadingIndicator,commonProps=this.commonProps,_this$props17=this.props,isDisabled=_this$props17.isDisabled,isLoading=_this$props17.isLoading,isFocused=this.state.isFocused;if(!LoadingIndicator||!isLoading)return null;var innerProps={"aria-hidden":"true"};return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(LoadingIndicator,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{innerProps:innerProps,isDisabled:isDisabled,isFocused:isFocused}))}},{key:"renderIndicatorSeparator",value:function(){var _this$components2=this.components,DropdownIndicator=_this$components2.DropdownIndicator,IndicatorSeparator=_this$components2.IndicatorSeparator;if(!DropdownIndicator||!IndicatorSeparator)return null;var commonProps=this.commonProps,isDisabled=this.props.isDisabled,isFocused=this.state.isFocused;return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(IndicatorSeparator,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{isDisabled:isDisabled,isFocused:isFocused}))}},{key:"renderDropdownIndicator",value:function(){var DropdownIndicator=this.components.DropdownIndicator;if(!DropdownIndicator)return null;var commonProps=this.commonProps,isDisabled=this.props.isDisabled,isFocused=this.state.isFocused,innerProps={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(DropdownIndicator,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{innerProps:innerProps,isDisabled:isDisabled,isFocused:isFocused}))}},{key:"renderMenu",value:function(){var _this5=this,_this$components3=this.components,Group=_this$components3.Group,GroupHeading=_this$components3.GroupHeading,Menu=_this$components3.Menu,MenuList=_this$components3.MenuList,MenuPortal=_this$components3.MenuPortal,LoadingMessage=_this$components3.LoadingMessage,NoOptionsMessage=_this$components3.NoOptionsMessage,Option=_this$components3.Option,commonProps=this.commonProps,_this$state9=this.state,focusedOption=_this$state9.focusedOption,menuOptions=_this$state9.menuOptions,_this$props18=this.props,captureMenuScroll=_this$props18.captureMenuScroll,inputValue=_this$props18.inputValue,isLoading=_this$props18.isLoading,loadingMessage=_this$props18.loadingMessage,minMenuHeight=_this$props18.minMenuHeight,maxMenuHeight=_this$props18.maxMenuHeight,menuIsOpen=_this$props18.menuIsOpen,menuPlacement=_this$props18.menuPlacement,menuPosition=_this$props18.menuPosition,menuPortalTarget=_this$props18.menuPortalTarget,menuShouldBlockScroll=_this$props18.menuShouldBlockScroll,menuShouldScrollIntoView=_this$props18.menuShouldScrollIntoView,noOptionsMessage=_this$props18.noOptionsMessage,onMenuScrollToTop=_this$props18.onMenuScrollToTop,onMenuScrollToBottom=_this$props18.onMenuScrollToBottom;if(!menuIsOpen)return null;var menuUI,render=function(props){var isFocused=focusedOption===props.data;return props.innerRef=isFocused?_this5.getFocusedOptionRef:void 0,__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Option,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,props,{isFocused:isFocused}),_this5.formatOptionLabel(props.data,"menu"))};if(this.hasOptions())menuUI=menuOptions.render.map(function(item){if("group"===item.type){var group=(item.type,Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__.a)(item,["type"])),headingId="".concat(item.key,"-heading");return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Group,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,group,{Heading:GroupHeading,headingProps:{id:headingId},label:_this5.formatGroupLabel(item.data)}),item.options.map(function(option){return render(option)}))}if("option"===item.type)return render(item)});else if(isLoading){var message=loadingMessage({inputValue:inputValue});if(null===message)return null;menuUI=__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(LoadingMessage,commonProps,message)}else{var _message=noOptionsMessage({inputValue:inputValue});if(null===_message)return null;menuUI=__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(NoOptionsMessage,commonProps,_message)}var menuPlacementProps={minMenuHeight:minMenuHeight,maxMenuHeight:maxMenuHeight,menuPlacement:menuPlacement,menuPosition:menuPosition,menuShouldScrollIntoView:menuShouldScrollIntoView},menuElement=__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.a,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,menuPlacementProps),function(_ref6){var ref=_ref6.ref,_ref6$placerProps=_ref6.placerProps,placement=_ref6$placerProps.placement,maxHeight=_ref6$placerProps.maxHeight;return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Menu,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,menuPlacementProps,{innerRef:ref,innerProps:{onMouseDown:_this5.onMenuMouseDown,onMouseMove:_this5.onMenuMouseMove},isLoading:isLoading,placement:placement}),__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ScrollCaptorSwitch,{isEnabled:captureMenuScroll,onTopArrive:onMenuScrollToTop,onBottomArrive:onMenuScrollToBottom},__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ScrollBlock,{isEnabled:menuShouldBlockScroll},__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(MenuList,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{innerRef:_this5.getMenuListRef,isLoading:isLoading,maxHeight:maxHeight}),menuUI))))});return menuPortalTarget||"fixed"===menuPosition?__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(MenuPortal,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{appendTo:menuPortalTarget,controlElement:this.controlRef,menuPlacement:menuPlacement,menuPosition:menuPosition}),menuElement):menuElement}},{key:"renderFormField",value:function(){var _this6=this,_this$props19=this.props,delimiter=_this$props19.delimiter,isDisabled=_this$props19.isDisabled,isMulti=_this$props19.isMulti,name=_this$props19.name,selectValue=this.state.selectValue;if(name&&!isDisabled){if(isMulti){if(delimiter){var value=selectValue.map(function(opt){return _this6.getOptionValue(opt)}).join(delimiter);return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input",{name:name,type:"hidden",value:value})}var input=selectValue.length>0?selectValue.map(function(opt,i){return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input",{key:"i-".concat(i),name:name,type:"hidden",value:_this6.getOptionValue(opt)})}):__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input",{name:name,type:"hidden"});return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("div",null,input)}var _value=selectValue[0]?this.getOptionValue(selectValue[0]):"";return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input",{name:name,type:"hidden",value:_value})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(A11yText,{"aria-live":"polite"},__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("p",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("p",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var _this$components4=this.components,Control=_this$components4.Control,IndicatorsContainer=_this$components4.IndicatorsContainer,SelectContainer=_this$components4.SelectContainer,ValueContainer=_this$components4.ValueContainer,_this$props20=this.props,className=_this$props20.className,id=_this$props20.id,isDisabled=_this$props20.isDisabled,menuIsOpen=_this$props20.menuIsOpen,isFocused=this.state.isFocused,commonProps=this.commonProps=this.getCommonProps();return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(SelectContainer,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{className:className,innerProps:{id:id,onKeyDown:this.onKeyDown},isDisabled:isDisabled,isFocused:isFocused}),this.renderLiveRegion(),__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Control,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:isDisabled,isFocused:isFocused,menuIsOpen:menuIsOpen}),__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ValueContainer,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{isDisabled:isDisabled}),this.renderPlaceholderOrValue(),this.renderInput()),__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(IndicatorsContainer,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{isDisabled:isDisabled}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),Select}(__WEBPACK_IMPORTED_MODULE_11_react__.Component);Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Select,"defaultProps",defaultProps)}).call(__webpack_exports__,__webpack_require__(0))},function(module,__webpack_exports__,__webpack_require__){"use strict";Object.defineProperty(__webpack_exports__,"__esModule",{value:!0});var __WEBPACK_IMPORTED_MODULE_0__App__=__webpack_require__(46),render=wp.element.render;!function waitForEl(selector,callback){document.getElementById("analogwp-templates")?callback():setTimeout(function(){window.requestAnimationFrame(function(){waitForEl(selector,callback)})},1e3)}(document.getElementById("analogwp-templates"),function(){render(React.createElement(__WEBPACK_IMPORTED_MODULE_0__App__.a,null),document.getElementById("analogwp-templates"))})},function(module,__webpack_exports__,__webpack_require__){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(iter){if(Symbol.iterator in Object(iter)||"[object Arguments]"===Object.prototype.toString.call(iter))return Array.from(iter)}function _arrayWithoutHoles(arr){if(Array.isArray(arr)){for(var i=0,arr2=new Array(arr.length);i<arr.length;i++)arr2[i]=arr[i];return arr2}}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}var gen=fn.apply(self,args);_next(void 0)})}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _possibleConstructorReturn(self,call){return!call||"object"!==_typeof(call)&&"function"!=typeof call?_assertThisInitialized(self):call}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _templateObject(){var data=_taggedTemplateLiteral(["\n\tmargin: 0 0 0 -20px;\n\t-webkit-font-smoothing: antialiased;\n\t-moz-osx-font-smoothing: grayscale;\n\tfont-size: 13px;\n\tposition: relative;\n\n\t--ang-accent: rgb(0, 112, 167);\n\n\t.ang-notices {\n\t\tposition: fixed;\n\t\tright: 0;\n\t\ttop: 75px;\n\t\tpadding: 8px;\n\t\tz-index: 100000;\n\t}\n\n\t.components-form-toggle.is-checked .components-form-toggle__track {\n\t\tbackground-color: var(--ang-primary);\n\t}\n\n\t.components-form-toggle .components-form-toggle__input:focus + .components-form-toggle__track {\n\t\tbox-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ang-primary);\n\t}\n\n\t.ang-button {\n\t\tfont-size: 14.22px;\n\t\tfont-weight: bold;\n\t\ttext-align: center;\n\t\tborder-radius: 4px;\n\t\tcolor: #fff;\n\t\tbackground: ",";\n\t\tpadding: 12px 24px;\n\t\tdisplay: inline-flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tborder: none;\n\t\toutline: 0;\n\t\tcursor: pointer;\n\t\ttransition: all 200ms ease-in;\n\t\tmin-width: 100px;\n\t\ttext-decoration: none;\n\t\tbox-sizing: border-box;\n\t\theight: auto;\n\t\ta {\n\t\t\tcolor: #fff !important;\n\t\t\ttext-decoration: none;\n\t\t}\n\n\t\t&.secondary {\n\t\t\tbackground: #000222;\n\t\t\tborder-radius: 0;\n\t\t\ttext-transform: uppercase;\n\t\t\tfont-size: 12px;\n\t\t}\n\n\t\t&:disabled {\n\t\t\tcursor: not-allowed;\n\t\t\topacity: 0.4;\n\t\t\tfilter: grayscale(1);\n\t\t}\n\t}\n\n\ta {\n\t\toutline: 0;\n\t\tbox-shadow: none;\n\t}\n\n\t.button-plain {\n\t\tpadding: 0;\n\t\tmargin: 0;\n\t\tborder: none;\n\t\tborder-radius: 0;\n\t\tbox-shadow: none;\n\t\tcursor: pointer;\n\t\t-webkit-appearance: none;\n\t\tappearance: none;\n\t\toutline: 0;\n\t\tbackground: transparent;\n\t\tfont-weight: bold;\n\t\tcolor: #060606;\n\t\tfont-size: 14.22px;\n\t}\n\n\n\tbutton {\n\t\tfont-family: inherit;\n\t}\n\n\t.button-accent {\n\t\tbackground: var(--ang-accent);\n\t\tborder: 0;\n\t\tborder-radius: 0;\n\t\ttext-transform: uppercase;\n\t\tfont-size: 12px;\n\t\tletter-spacing: 1px;\n\t\tfont-weight: bold;\n\t\tbox-shadow: none;\n\t\ttext-shadow: none;\n\t\tcolor: #fff;\n\t\tpadding: 15px 24px;\n\t\theight: auto;\n\t\t&:focus,\n\t\t&:active {\n\t\t\tborder: none !important;\n\t\t\tbackground: rgb(255, 120, 101, 0.9) !important;\n\t\t\tbox-shadow: none !important;\n\t\t\tcolor: #fff !important;\n\t\t}\n\t\t&:hover {\n\t\t\tcolor: #fff;\n\t\t\tbackground: rgb(255, 120, 101, 0.9);\n\t\t\tborder: none;\n\t\t}\n\t}\n\n\t.components-external-link {\n\t\tfont-weight: 500;\n\t}\n\n\t.ang-link {\n\t\tcolor: var(--ang-accent);\n\t\ttext-transform: uppercase;\n\t\tborder-bottom: 1px solid var(--ang-accent);\n\t\tfont-size: 12.64px;\n\t\tletter-spacing: 1px;\n\t\ttext-decoration: none;\n\t\tfont-weight: bold;\n\t}\n\n\t.preview-active .templates-list {\n\t\tvisibility: hidden;\n\t}\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var __WEBPACK_IMPORTED_MODULE_0_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_1__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_2__api__=__webpack_require__(4),__WEBPACK_IMPORTED_MODULE_3__contexts_ThemeContext__=__webpack_require__(12),__WEBPACK_IMPORTED_MODULE_4__Header__=__webpack_require__(60),__WEBPACK_IMPORTED_MODULE_5__Notifications__=__webpack_require__(6),__WEBPACK_IMPORTED_MODULE_6__utils__=__webpack_require__(13),_wp=wp,apiFetch=_wp.apiFetch,Analog=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.div(_templateObject(),function(props){return props.theme.accent}),App=function(_React$Component){function App(){var _this;_classCallCheck(this,App),_this=_possibleConstructorReturn(this,_getPrototypeOf(App).apply(this,arguments));var initialContainerTab=AGWP.is_settings_page?"styleKits":"blocks";return _this.state={templates:[],kits:[],styleKits:[],blocks:[],count:null,isOpen:!1,syncing:!1,favorites:AGWP.favorites,blockFavorites:AGWP.blockFavorites,showing_favorites:!1,archive:[],blockArchive:[],showFree:!0,showPro:!0,group:!0,activeKit:!1,installedKits:AGWP.installed_kits||{},tab:AGWP.isContainer?initialContainerTab:"blocks",blocksTab:AGWP.isContainer?"all-patterns":"all-blocks",hasPro:!1,settings:{ang_sync_colors:!0},blocksSearchInput:"",itemFilteredWithSearchTerm:function(foundItems,searchInput){var searchTags=[];return foundItems.filter(function(single){return single.tags&&(searchTags=single.tags.filter(function(tag){return tag.toLowerCase().includes(searchInput)})),single.title.toLowerCase().includes(searchInput)||searchTags.length>=1})}},_this.refreshAPI=_this.refreshAPI.bind(_assertThisInitialized(_this)),_this.toggleFavorites=_this.toggleFavorites.bind(_assertThisInitialized(_this)),_this.handleSearch=_this.handleSearch.bind(_assertThisInitialized(_this)),_this.handleSort=_this.handleSort.bind(_assertThisInitialized(_this)),_this.handleFilter=_this.handleFilter.bind(_assertThisInitialized(_this)),_this.switchTabs=_this.switchTabs.bind(_assertThisInitialized(_this)),_this}return _inherits(App,_React$Component),_createClass(App,[{key:"switchTabs",value:function(){var hash=location.hash;["#templates","#styleKits","#blocks"].indexOf(hash)>-1&&AGWP.is_settings_page&&this.setState({tab:hash.substr(1),templates:this.state.archive,blocks:this.state.blockArchive,showing_favorites:!1})}},{key:"componentDidMount",value:function(){function componentDidMount(){return _componentDidMount.apply(this,arguments)}var _componentDidMount=_asyncToGenerator(regeneratorRuntime.mark(function _callee(){var templates,library,_this2=this;return regeneratorRuntime.wrap(function(_context){for(;;)switch(_context.prev=_context.next){case 0:return window.addEventListener("hashchange",this.switchTabs,!1),window.addEventListener("DOMContentLoaded",this.switchTabs,!1),"false"===window.localStorage.getItem("analog::show-free")&&this.setState({showFree:!1}),"false"===window.localStorage.getItem("analog::show-pro")&&this.setState({showPro:!1}),"false"===window.localStorage.getItem("analog::group-kit")&&this.setState({group:!1}),this.setState({syncing:!0}),_context.next=8,Object(__WEBPACK_IMPORTED_MODULE_2__api__.i)();case 8:templates=_context.sent,library=templates.library,this.setState({templates:library.templates,kits:library.template_kits,archive:library.templates,blockArchive:library.blocks,count:library.templates.length,timestamp:templates.timestamp,hasPro:Object(__WEBPACK_IMPORTED_MODULE_6__utils__.d)(library.templates),styleKits:library.stylekits,blocks:library.blocks,syncing:!1}),this.handleSort("latest","templates"),this.handleSort("latest","blocks"),document.addEventListener("modal-close",function(){_this2.setState({isOpen:!1,showing_favorites:!1,templates:_this2.state.archive})}),Object(__WEBPACK_IMPORTED_MODULE_2__api__.b)().then(function(settings){return _this2.setState({settings:settings})});case 15:case"end":return _context.stop()}},_callee,this)}));return componentDidMount}()},{key:"handleFilter",value:function(type){var library=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"templates",templates=_toConsumableArray(this.state.archive),blocks=_toConsumableArray(this.state.blockArchive);if("blocks"!==library){if("all"===type)return void this.setState({templates:this.state.archive});var filtered=templates.filter(function(template){return template.type===type});this.setState({templates:filtered})}else{if("all"===type)return void this.setState({blocks:this.state.blockArchive});var _filtered=blocks.filter(function(block){return block.tags[0]===type});this.setState({blocks:_filtered})}}},{key:"handleSort",value:function(value){var library=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"templates";this.setState({showing_favorites:!1});var sortData=this.state[library];if("popular"===value){var sorted=sortData.sort(function(a,b){if("popularityIndex"in a){if(parseInt(a.popularityIndex)<parseInt(b.popularityIndex))return 1;if(parseInt(a.popularityIndex)>parseInt(b.popularityIndex))return-1}return 0});this.setState(_defineProperty({},library,sorted))}if("latest"===value){var _sorted=sortData.sort(function(a,b){if("published"in a){if(parseInt(Object(__WEBPACK_IMPORTED_MODULE_6__utils__.c)(a.published))<parseInt(Object(__WEBPACK_IMPORTED_MODULE_6__utils__.c)(b.published)))return 1;if(parseInt(Object(__WEBPACK_IMPORTED_MODULE_6__utils__.c)(a.published))>parseInt(Object(__WEBPACK_IMPORTED_MODULE_6__utils__.c)(b.published)))return-1}return 0});this.setState(_defineProperty({},library,_sorted))}}},{key:"handleSearch",value:function(value){var library=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"templates",searchData=this.state.blockArchive;"templates"===library&&(searchData=this.state.archive);var filtered=[],searchTags=[];if(value&&(filtered=searchData.filter(function(single){return"patterns"===library&&single.keywords?searchTags=single.keywords.filter(function(keyword){return keyword.toLowerCase().includes(value.toLowerCase())}):single.tags&&(searchTags=single.tags.filter(function(tag){return tag.toLowerCase().includes(value.toLowerCase())})),single.title.toLowerCase().includes(value.toLowerCase())||searchTags.length>=1}),filtered.length>0))return"templates"===library?void this.setState({templates:filtered}):void this.setState({blocks:filtered,blocksSearchInput:value});"templates"===library?this.setState({templates:value?[]:this.state.archive}):this.setState({blocks:value?[]:this.state.blockArchive,blocksSearchInput:""})}},{key:"refreshAPI",value:function(){function refreshAPI(){return _refreshAPI.apply(this,arguments)}var _refreshAPI=_asyncToGenerator(regeneratorRuntime.mark(function _callee2(){var _this3=this;return regeneratorRuntime.wrap(function(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return this.setState({syncing:!0,blocksSearchInput:""}),wp.hooks.doAction("analog.refreshLibrary"),_context2.next=4,apiFetch({path:"/agwp/v1/templates/?force_update=true"}).then(function(data){var library=data.library;_this3.setState({templates:library.templates,archive:library.templates,blockArchive:library.blocks,count:library.templates.length,kits:library.template_kits,timestamp:data.timestamp,styleKits:library.stylekits,blocks:library.blocks,syncing:!1,blocksSearchInput:""})}).catch(function(){_this3.setState({syncing:!1})});case 4:return _context2.abrupt("return",_context2.sent);case 5:case"end":return _context2.stop()}},_callee2,this)}));return refreshAPI}()},{key:"toggleFavorites",value:function(){var _this4=this;this.setState({group:!1}),window.localStorage.setItem("analog::group-block",!1);var filteredTemplates=this.state.archive.filter(function(template){return template.id in _this4.state.favorites}),filteredBlocks=this.state.blockArchive.filter(function(block){return block.id in _this4.state.blockFavorites});this.setState({showing_favorites:!this.state.showing_favorites,templates:this.state.showing_favorites?this.state.archive:filteredTemplates,blocks:this.state.showing_favorites?this.state.blockArchive:filteredBlocks})}},{key:"render",value:function(){var _this5=this;return React.createElement(__WEBPACK_IMPORTED_MODULE_3__contexts_ThemeContext__.c.Provider,{value:{theme:__WEBPACK_IMPORTED_MODULE_3__contexts_ThemeContext__.a}},React.createElement(__WEBPACK_IMPORTED_MODULE_3__contexts_ThemeContext__.c.Consumer,null,function(_ref){var theme=_ref.theme;return React.createElement(Analog,{theme:theme},React.createElement(__WEBPACK_IMPORTED_MODULE_5__Notifications__.b,null,React.createElement(__WEBPACK_IMPORTED_MODULE_1__AnalogContext__.a.Provider,{value:{state:_this5.state,forceRefresh:_this5.refreshAPI,markFavorite:__WEBPACK_IMPORTED_MODULE_2__api__.c,toggleFavorites:_this5.toggleFavorites,handleSearch:_this5.handleSearch,handleSort:_this5.handleSort,handleFilter:_this5.handleFilter,dispatch:function(action){return _this5.setState(action)}}},React.createElement(__WEBPACK_IMPORTED_MODULE_4__Header__.a,null),React.createElement("div",{className:"analogwp-content"},React.createElement("div",{className:"ang-container"},Object(__WEBPACK_IMPORTED_MODULE_6__utils__.b)(_this5.state))))))}))}}]),App}(React.Component);__webpack_exports__.a=App},function(module,exports){module.exports=function(originalModule){if(!originalModule.webpackPolyfill){var module=Object.create(originalModule);module.children||(module.children=[]),Object.defineProperty(module,"loaded",{enumerable:!0,get:function(){return module.l}}),Object.defineProperty(module,"id",{enumerable:!0,get:function(){return module.i}}),Object.defineProperty(module,"exports",{enumerable:!0}),module.webpackPolyfill=1}return module}},function(module,exports,__webpack_require__){!function(e){module.exports=e(null)}(function e(a){"use strict";function He(e,a,s,t,i){for(var f,n,o=0,h=0,u=0,d=0,g=0,A=0,C=0,w=0,m=0,$=0,y=0,O=0,j=0,z=0,R=0,we=0,$e=0,Oe=0,je=0,ze=s.length,Je=ze-1,Re="",Te="",Ue="",Ve="",Xe="",Ye="";R<ze;){if(C=s.charCodeAt(R),R===Je&&h+d+u+o!==0&&(0!==h&&(C=h===Z?I:Z),d=u=o=0,ze++,Je++),h+d+u+o===0){if(R===Je&&(we>0&&(Te=Te.replace(c,"")),Te.trim().length>0)){switch(C){case M:case K:case W:case J:case I:break;default:Te+=s.charAt(R)}C=W}if(1===$e)switch(C){case B:case q:case W:case Y:case X:case D:case E:case U:$e=0;case K:case J:case I:case M:break;default:for($e=0,je=R,g=C,R--,C=W;je<ze;)switch(s.charCodeAt(je++)){case I:case J:case W:++R,C=g,je=ze;break;case V:we>0&&(++R,C=g);case B:je=ze}}switch(C){case B:for(g=(Te=Te.trim()).charCodeAt(0),y=1,je=++R;R<ze;){switch(C=s.charCodeAt(R)){case B:y++;break;case q:y--;break;case Z:switch(A=s.charCodeAt(R+1)){case T:case Z:R=Qe(A,R,Je,s)}break;case G:C++;case D:C++;case Y:case X:for(;R++<Je&&s.charCodeAt(R)!==C;);}if(0===y)break;R++}switch(Ue=s.substring(je,R),g===re&&(g=(Te=Te.replace(r,"").trim()).charCodeAt(0)),g){case L:switch(we>0&&(Te=Te.replace(c,"")),A=Te.charCodeAt(1)){case ue:case ie:case fe:case Q:f=a;break;default:f=xe}if(je=(Ue=He(a,f,Ue,A,i+1)).length,me>0&&0===je&&(je=Te.length),ye>0&&(f=Ie(xe,Te,Oe),n=Pe(We,Ue,f,a,pe,be,je,A,i,t),Te=f.join(""),void 0!==n&&0===(je=(Ue=n.trim()).length)&&(A=0,Ue="")),je>0)switch(A){case fe:Te=Te.replace(x,Me);case ue:case ie:case Q:Ue=Te+"{"+Ue+"}";break;case te:Ue=(Te=Te.replace(b,"$1 $2"+(Be>0?De:"")))+"{"+Ue+"}",Ue=1===Ae||2===Ae&&Le("@"+Ue,3)?"@"+N+Ue+"@"+Ue:"@"+Ue;break;default:Ue=Te+Ue,t===de&&(Ve+=Ue,Ue="")}else Ue="";break;default:Ue=He(a,Ie(a,Te,Oe),Ue,t,i+1)}Xe+=Ue,O=0,$e=0,z=0,we=0,Oe=0,j=0,Te="",Ue="",C=s.charCodeAt(++R);break;case q:case W:if((je=(Te=(we>0?Te.replace(c,""):Te).trim()).length)>1)switch(0===z&&((g=Te.charCodeAt(0))===Q||g>96&&g<123)&&(je=(Te=Te.replace(" ",":")).length),ye>0&&void 0!==(n=Pe(Se,Te,a,e,pe,be,Ve.length,t,i,t))&&0===(je=(Te=n.trim()).length)&&(Te="\0\0"),g=Te.charCodeAt(0),A=Te.charCodeAt(1),g){case re:break;case L:if(A===oe||A===he){Ye+=Te+s.charAt(R);break}default:if(Te.charCodeAt(je-1)===V)break;Ve+=Ke(Te,g,A,Te.charCodeAt(2))}O=0,$e=0,z=0,we=0,Oe=0,Te="",C=s.charCodeAt(++R)}}switch(C){case J:case I:if(h+d+u+o+ve===0)switch($){case E:case X:case Y:case L:case ae:case _:case T:case ee:case Z:case Q:case V:case U:case W:case B:case q:break;default:z>0&&($e=1)}h===Z?h=0:ge+O===0&&t!==te&&Te.length>0&&(we=1,Te+="\0"),ye*qe>0&&Pe(Ne,Te,a,e,pe,be,Ve.length,t,i,t),be=1,pe++;break;case W:case q:if(h+d+u+o===0){be++;break}default:switch(be++,Re=s.charAt(R),C){case K:case M:if(d+o+h===0)switch(w){case U:case V:case K:case M:Re="";break;default:C!==M&&(Re=" ")}break;case re:Re="\\0";break;case ce:Re="\\f";break;case se:Re="\\v";break;case P:d+h+o===0&&ge>0&&(Oe=1,we=1,Re="\f"+Re);break;case 108:if(d+h+o+ke===0&&z>0)switch(R-z){case 2:w===ne&&s.charCodeAt(R-3)===V&&(ke=w);case 8:m===le&&(ke=m)}break;case V:d+h+o===0&&(z=R);break;case U:h+u+d+o===0&&(we=1,Re+="\r");break;case Y:case X:0===h&&(d=d===C?0:0===d?C:d);break;case G:d+h+u===0&&o++;break;case H:d+h+u===0&&o--;break;case E:d+h+o===0&&u--;break;case D:if(d+h+o===0){if(0===O)switch(2*w+3*m){case 533:break;default:y=0,O=1}u++}break;case L:h+u+d+o+z+j===0&&(j=1);break;case T:case Z:if(d+o+u>0)break;switch(h){case 0:switch(2*C+3*s.charCodeAt(R+1)){case 235:h=Z;break;case 220:je=R,h=T}break;case T:C===Z&&w===T&&je+2!==R&&(33===s.charCodeAt(je+2)&&(Ve+=s.substring(je,R+1)),Re="",h=0)}}if(0===h){if(ge+d+o+j===0&&t!==te&&C!==W)switch(C){case U:case ae:case _:case ee:case E:case D:if(0===O){switch(w){case K:case M:case I:case J:Re+="\0";break;default:Re="\0"+Re+(C===U?"":"\0")}we=1}else switch(C){case D:z+7===R&&108===w&&(z=0),O=++y;break;case E:0==(O=--y)&&(we=1,Re+="\0")}break;case K:case M:switch(w){case re:case B:case q:case W:case U:case ce:case K:case M:case I:case J:break;default:0===O&&(we=1,Re+="\0")}}Te+=Re,C!==M&&C!==K&&($=C)}}m=w,w=C,R++}if(je=Ve.length,me>0&&0===je&&0===Xe.length&&0===a[0].length==0&&(t!==ie||1===a.length&&(ge>0?Ee:Ge)===a[0])&&(je=a.join(",").length+2),je>0){if(f=0===ge&&t!==te?function(e){for(var a,r,s=0,t=e.length,i=Array(t);s<t;++s){for(var f=e[s].split(l),n="",o=0,h=0,u=0,d=0,b=f.length;o<b;++o)if(!(0===(h=(r=f[o]).length)&&b>1)){if(u=n.charCodeAt(n.length-1),d=r.charCodeAt(0),a="",0!==o)switch(u){case T:case ae:case _:case ee:case M:case D:break;default:a=" "}switch(d){case P:r=a+Ee;case ae:case _:case ee:case M:case E:case D:break;case G:r=a+r+Ee;break;case V:switch(2*r.charCodeAt(1)+3*r.charCodeAt(2)){case 530:if(Ce>0){r=a+r.substring(8,h-1);break}default:(o<1||f[o-1].length<1)&&(r=a+Ee+r)}break;case U:a="";default:r=h>1&&r.indexOf(":")>0?a+r.replace(v,"$1"+Ee+"$2"):a+r+Ee}n+=r}i[s]=n.replace(c,"").trim()}return i}(a):a,ye>0&&void 0!==(n=Pe(Fe,Ve,f,e,pe,be,je,t,i,t))&&0===(Ve=n).length)return Ye+Ve+Xe;if(Ve=f.join(",")+"{"+Ve+"}",Ae*ke!=0){switch(2!==Ae||Le(Ve,2)||(ke=0),ke){case le:Ve=Ve.replace(k,":"+S+"$1")+Ve;break;case ne:Ve=Ve.replace(p,"::"+N+"input-$1")+Ve.replace(p,"::"+S+"$1")+Ve.replace(p,":"+F+"input-$1")+Ve}ke=0}}return Ye+Ve+Xe}function Ie(e,a,r){var c=a.trim().split(o),s=c,t=c.length,i=e.length;switch(i){case 0:case 1:for(var f=0,n=0===i?"":e[0]+" ";f<t;++f)s[f]=Je(n,s[f],r,i).trim();break;default:f=0;var l=0;for(s=[];f<t;++f)for(var h=0;h<i;++h)s[l++]=Je(e[h]+" ",c[f],r,i).trim()}return s}function Je(e,a,r,c){var s=a,t=s.charCodeAt(0);switch(t<33&&(t=(s=s.trim()).charCodeAt(0)),t){case P:switch(ge+c){case 0:case 1:if(0===e.trim().length)break;default:return s.replace(h,"$1"+e.trim())}break;case V:switch(s.charCodeAt(1)){case 103:if(Ce>0&&ge>0)return s.replace(u,"$1").replace(h,"$1"+Ge);break;default:return e.trim()+s.replace(h,"$1"+e.trim())}default:if(r*ge>0&&s.indexOf("\f")>0)return s.replace(h,(e.charCodeAt(0)===V?"":"$1")+e.trim())}return e+s}function Ke(e,a,r,c){var l,o=0,h=e+";",u=2*a+3*r+4*c;if(944===u)return function(e){var a=e.length,r=e.indexOf(":",9)+1,c=e.substring(0,r).trim(),s=e.substring(r,a-1).trim();switch(e.charCodeAt(9)*Be){case 0:break;case Q:if(110!==e.charCodeAt(10))break;default:for(var t=s.split((s="",f)),i=0,r=0,a=t.length;i<a;r=0,++i){for(var l=t[i],o=l.split(n);l=o[r];){var h=l.charCodeAt(0);if(1===Be&&(h>L&&h<90||h>96&&h<123||h===R||h===Q&&l.charCodeAt(1)!==Q))switch(isNaN(parseFloat(l))+(-1!==l.indexOf("("))){case 1:switch(l){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:l+=De}}o[r++]=l}s+=(0===i?"":",")+o.join(" ")}}return s=c+s+";",1===Ae||2===Ae&&Le(s,1)?N+s+s:s}(h);if(0===Ae||2===Ae&&!Le(h,1))return h;switch(u){case 1015:return 97===h.charCodeAt(10)?N+h+h:h;case 951:return 116===h.charCodeAt(3)?N+h+h:h;case 963:return 110===h.charCodeAt(5)?N+h+h:h;case 1009:if(100!==h.charCodeAt(4))break;case 969:case 942:return N+h+h;case 978:return N+h+S+h+h;case 1019:case 983:return N+h+S+h+F+h+h;case 883:return h.charCodeAt(8)===Q?N+h+h:h.indexOf("image-set(",11)>0?h.replace(z,"$1"+N+"$2")+h:h;case 932:if(h.charCodeAt(4)===Q)switch(h.charCodeAt(5)){case 103:return N+"box-"+h.replace("-grow","")+N+h+F+h.replace("grow","positive")+h;case 115:return N+h+F+h.replace("shrink","negative")+h;case 98:return N+h+F+h.replace("basis","preferred-size")+h}return N+h+F+h+h;case 964:return N+h+F+"flex-"+h+h;case 1023:if(99!==h.charCodeAt(8))break;return l=h.substring(h.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),N+"box-pack"+l+N+h+F+"flex-pack"+l+h;case 1005:return t.test(h)?h.replace(s,":"+N)+h.replace(s,":"+S)+h:h;case 1e3:switch(o=(l=h.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(o)){case 226:l=h.replace(m,"tb");break;case 232:l=h.replace(m,"tb-rl");break;case 220:l=h.replace(m,"lr");break;default:return h}return N+h+F+l+h;case 1017:if(-1===h.indexOf("sticky",9))return h;case 975:switch(o=(h=e).length-10,u=(l=(33===h.charCodeAt(o)?h.substring(0,o):h).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(l.charCodeAt(8)<111)break;case 115:h=h.replace(l,N+l)+";"+h;break;case 207:case 102:h=h.replace(l,N+(u>102?"inline-":"")+"box")+";"+h.replace(l,N+l)+";"+h.replace(l,F+l+"box")+";"+h}return h+";";case 938:if(h.charCodeAt(5)===Q)switch(h.charCodeAt(6)){case 105:return l=h.replace("-items",""),N+h+N+"box-"+l+F+"flex-"+l+h;case 115:return N+h+F+"flex-item-"+h.replace(y,"")+h;default:return N+h+F+"flex-line-pack"+h.replace("align-content","").replace(y,"")+h}break;case 973:case 989:if(h.charCodeAt(3)!==Q||122===h.charCodeAt(4))break;case 931:case 953:if(!0===j.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?Ke(e.replace("stretch","fill-available"),a,r,c).replace(":fill-available",":stretch"):h.replace(l,N+l)+h.replace(l,S+l.replace("fill-",""))+h;break;case 962:if(h=N+h+(102===h.charCodeAt(5)?F+h:"")+h,r+c===211&&105===h.charCodeAt(13)&&h.indexOf("transform",10)>0)return h.substring(0,h.indexOf(";",27)+1).replace(i,"$1"+N+"$2")+h}return h}function Le(e,a){var r=e.indexOf(1===a?":":"{"),c=e.substring(0,3!==a?r:10),s=e.substring(r+1,e.length-1);return Oe(2!==a?c:c.replace(O,"$1"),s,a)}function Me(e,a){var r=Ke(a,a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2));return r!==a+";"?r.replace($," or ($1)").substring(4):"("+a+")"}function Pe(e,a,r,c,s,t,i,f,n,l){for(var o,h=0,u=a;h<ye;++h)switch(o=$e[h].call(Te,e,u,r,c,s,t,i,f,n,l)){case void 0:case!1:case!0:case null:break;default:u=o}if(u!==a)return u}function Qe(e,a,r,c){for(var s=a+1;s<r;++s)switch(c.charCodeAt(s)){case Z:if(e===T&&c.charCodeAt(s-1)===T&&a+2!==s)return s+1;break;case I:if(e===Z)return s+1}return s}function Re(e){for(var a in e){var r=e[a];switch(a){case"keyframe":Be=0|r;break;case"global":Ce=0|r;break;case"cascade":ge=0|r;break;case"compress":we=0|r;break;case"semicolon":ve=0|r;break;case"preserve":me=0|r;break;case"prefix":Oe=null,r?"function"!=typeof r?Ae=1:(Ae=2,Oe=r):Ae=0}}return Re}function Te(a,r){if(void 0!==this&&this.constructor===Te)return e(a);var s=a,t=s.charCodeAt(0);t<33&&(t=(s=s.trim()).charCodeAt(0)),Be>0&&(De=s.replace(d,t===G?"":"-")),t=1,1===ge?Ge=s:Ee=s;var i,f=[Ge];ye>0&&void 0!==(i=Pe(ze,r,f,f,pe,be,0,0,0,0))&&"string"==typeof i&&(r=i);var n=He(xe,f,r,0,0);return ye>0&&void 0!==(i=Pe(je,n,f,f,pe,be,n.length,0,0,0))&&"string"!=typeof(n=i)&&(t=0),De="",Ge="",Ee="",ke=0,pe=1,be=1,we*t==0?n:n.replace(c,"").replace(g,"").replace(A,"$1").replace(C,"$1").replace(w," ")}var r=/^\0+/g,c=/[\0\r\f]/g,s=/: */g,t=/zoo|gra/,i=/([,: ])(transform)/g,f=/,+\s*(?![^(]*[)])/g,n=/ +\s*(?![^(]*[)])/g,l=/ *[\0] */g,o=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,u=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,d=/\W+/g,b=/@(k\w+)\s*(\S*)\s*/,p=/::(place)/g,k=/:(read-only)/g,g=/\s+(?=[{\];=:>])/g,A=/([[}=:>])\s+/g,C=/(\{[^{]+?);(?=\})/g,w=/\s{2,}/g,v=/([^\(])(:+) */g,m=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,$=/([\s\S]*?);/g,y=/-self|flex-/g,O=/[^]*?(:[rp][el]a[\w-]+)[^]*/,j=/stretch|:\s*\w+\-(?:conte|avail)/,z=/([^-])(image-set\()/,N="-webkit-",S="-moz-",F="-ms-",W=59,q=125,B=123,D=40,E=41,G=91,H=93,I=10,J=13,K=9,L=64,M=32,P=38,Q=45,R=95,T=42,U=44,V=58,X=39,Y=34,Z=47,_=62,ee=43,ae=126,re=0,ce=12,se=11,te=107,ie=109,fe=115,ne=112,le=111,oe=105,he=99,ue=100,de=112,be=1,pe=1,ke=0,ge=1,Ae=1,Ce=1,we=0,ve=0,me=0,xe=[],$e=[],ye=0,Oe=null,je=-2,ze=-1,Ne=0,Se=1,Fe=2,We=3,qe=0,Be=1,De="",Ee="",Ge="";return Te.use=function e(a){switch(a){case void 0:case null:ye=$e.length=0;break;default:if("function"==typeof a)$e[ye++]=a;else if("object"==typeof a)for(var r=0,c=a.length;r<c;++r)e(a[r]);else qe=0|!!a}return e},Te.set=Re,void 0!==a&&Re(a),Te})},function(module,exports,__webpack_require__){!function(factory){module.exports=factory()}(function(){"use strict";return function(insertRule){function toSheet(block){if(block)try{insertRule(block+"}")}catch(e){}}return function(context,content,selectors,parents,line,column,length,ns,depth,at){switch(context){case 1:if(0===depth&&64===content.charCodeAt(0))return insertRule(content+";"),"";break;case 2:if(0===ns)return content+"/*|*/";break;case 3:switch(ns){case 102:case 112:return insertRule(selectors[0]+content),"";default:return content+(0===at?"/*|*/":"")}case-2:content.split("/*|*/}").forEach(toSheet)}}}})},function(module,__webpack_exports__,__webpack_require__){"use strict";var unitlessKeys={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};__webpack_exports__.a=unitlessKeys},function(module,exports,__webpack_require__){"use strict";(function(process){"production"===process.env.NODE_ENV?module.exports=__webpack_require__(52):module.exports=__webpack_require__(53)}).call(exports,__webpack_require__(0))},function(module,exports,__webpack_require__){"use strict";function t(a){if("object"==typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof){case k:case n:case h:return a;default:return u}}case r:case q:case d:return u}}}function v(a){return t(a)===m}/** @license React v16.7.0
     11var getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable;module.exports=function(){try{if(!Object.assign)return!1;var test1=new String("abc");if(test1[5]="de","5"===Object.getOwnPropertyNames(test1)[0])return!1;for(var test2={},i=0;i<10;i++)test2["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(test2).map(function(n){return test2[n]}).join(""))return!1;var test3={};return"abcdefghijklmnopqrst".split("").forEach(function(letter){test3[letter]=letter}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},test3)).join("")}catch(err){return!1}}()?Object.assign:function(target,source){for(var from,symbols,to=toObject(target),s=1;s<arguments.length;s++){from=Object(arguments[s]);for(var key in from)hasOwnProperty.call(from,key)&&(to[key]=from[key]);if(getOwnPropertySymbols){symbols=getOwnPropertySymbols(from);for(var i=0;i<symbols.length;i++)propIsEnumerable.call(from,symbols[i])&&(to[symbols[i]]=from[symbols[i]])}}return to}},function(module,__webpack_exports__,__webpack_require__){"use strict";var _wp$components=wp.components,__=(_wp$components.ExternalLink,_wp$components.Button,wp.i18n.__),ProModal=function(){return React.createElement("div",{className:"pro-modal-container"},React.createElement("p",null,__("Get unlimited access to the Style Kits library and features with the PRO version.","ang")),React.createElement("a",{href:"https://analogwp.com/pricing/?utm_medium=plugin&utm_source=library&utm_campaign=style+kits+pro",target:"_blank"},__("View Plans","ang")))};__webpack_exports__.a=ProModal},function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0_classnames__=__webpack_require__(5),__WEBPACK_IMPORTED_MODULE_0_classnames___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__),__WEBPACK_IMPORTED_MODULE_1__helpers_Image__=__webpack_require__(75),__WEBPACK_IMPORTED_MODULE_2__icons_star__=__webpack_require__(24),__WEBPACK_IMPORTED_MODULE_3__utils__=__webpack_require__(13),decodeEntities=wp.htmlEntities.decodeEntities,__=wp.i18n.__,_wp$components=wp.components,Button=_wp$components.Button,Card=_wp$components.Card,CardBody=_wp$components.CardBody,CardFooter=_wp$components.CardFooter,Template=function(_ref){var template=_ref.template,setModalContent=_ref.setModalContent,importLayout=_ref.importLayout,favorites=_ref.favorites,makeFavorite=_ref.makeFavorite,isValid=function(isPro){return!(isPro&&"valid"!==AGWP.license.status)},fallbackImage=AGWP.pluginURL+"assets/img/placeholder.svg";return React.createElement("li",null,React.createElement(Card,null,React.createElement(CardBody,null,Object(__WEBPACK_IMPORTED_MODULE_3__utils__.e)(template.published)>-14&&React.createElement("span",{className:"new"},__("New","ang")),React.createElement("figure",null,template.thumbnail?React.createElement(__WEBPACK_IMPORTED_MODULE_1__helpers_Image__.a,{template:template}):React.createElement("img",{src:fallbackImage}),React.createElement("div",{className:"actions"},React.createElement(Button,{isSecondary:!0,className:"black-transparent",onClick:function(){return setModalContent(template)}},__("Preview","ang")),!isValid(template.is_pro)&&React.createElement("a",{className:"ang-promo",href:"https://analogwp.com/style-kits-pro/?utm_medium=plugin&utm_source=library&utm_campaign=style+kits+pro",target:"_blank"},React.createElement(Button,{isPrimary:!0},__("Go Pro","ang"))),isValid(template.is_pro)&&React.createElement(Button,{isPrimary:!0,onClick:function(){return importLayout(template)}},__("Import","ang"))),React.createElement("button",{className:__WEBPACK_IMPORTED_MODULE_0_classnames___default()("button-plain favorite",{"is-active":template.id in favorites}),onClick:function(){return makeFavorite(template.id)}},React.createElement(__WEBPACK_IMPORTED_MODULE_2__icons_star__.a,null)))),React.createElement(CardFooter,null,React.createElement("div",{className:"content"},React.createElement("span",null,React.createElement("h3",null,decodeEntities(template.title)),template.tags&&React.createElement("div",{className:"tags"},template.tags.map(function(tag){return React.createElement("span",{key:tag},tag)}))),template.is_pro&&React.createElement("span",{className:"pro"},__("Pro","ang"))))))};__webpack_exports__.a=Template},function(module,__webpack_exports__,__webpack_require__){"use strict";function _toConsumableArray(arr){return Object(__WEBPACK_IMPORTED_MODULE_0__arrayWithoutHoles__.a)(arr)||Object(__WEBPACK_IMPORTED_MODULE_1__iterableToArray__.a)(arr)||Object(__WEBPACK_IMPORTED_MODULE_2__nonIterableSpread__.a)()}__webpack_exports__.a=_toConsumableArray;var __WEBPACK_IMPORTED_MODULE_0__arrayWithoutHoles__=__webpack_require__(89),__WEBPACK_IMPORTED_MODULE_1__iterableToArray__=__webpack_require__(90),__WEBPACK_IMPORTED_MODULE_2__nonIterableSpread__=__webpack_require__(91)},function(module,__webpack_exports__,__webpack_require__){"use strict";function areInputsEqual(newInputs,lastInputs){if(newInputs.length!==lastInputs.length)return!1;for(var i=0;i<newInputs.length;i++)if(newInputs[i]!==lastInputs[i])return!1;return!0}function memoizeOne(resultFn,isEqual){function memoized(){for(var newArgs=[],_i=0;_i<arguments.length;_i++)newArgs[_i]=arguments[_i];return calledOnce&&lastThis===this&&isEqual(newArgs,lastArgs)?lastResult:(lastResult=resultFn.apply(this,newArgs),calledOnce=!0,lastThis=this,lastArgs=newArgs,lastResult)}void 0===isEqual&&(isEqual=areInputsEqual);var lastThis,lastResult,lastArgs=[],calledOnce=!1;return memoized}__webpack_exports__.a=memoizeOne},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(process){function toSheet(block){block&&Sheet.current.insert(block+"}")}var __WEBPACK_IMPORTED_MODULE_0__emotion_sheet__=__webpack_require__(39),__WEBPACK_IMPORTED_MODULE_1__emotion_stylis__=__webpack_require__(94),Sheet=(__webpack_require__(95),{current:null}),ruleSheet=function(context,content,selectors,parents,line,column,length,ns,depth,at){switch(context){case 1:switch(content.charCodeAt(0)){case 64:return Sheet.current.insert(content+";"),"";case 108:if(98===content.charCodeAt(2))return""}break;case 2:if(0===ns)return content+"/*|*/";break;case 3:switch(ns){case 102:case 112:return Sheet.current.insert(selectors[0]+content),"";default:return content+(0===at?"/*|*/":"")}case-2:content.split("/*|*/}").forEach(toSheet)}},createCache=function(options){void 0===options&&(options={});var stylisOptions,key=options.key||"css";void 0!==options.prefix&&(stylisOptions={prefix:options.prefix});var stylis=new __WEBPACK_IMPORTED_MODULE_1__emotion_stylis__.a(stylisOptions);if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(key))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+key+'" was passed');var container,inserted={};container=options.container||document.head;var nodes=document.querySelectorAll("style[data-emotion-"+key+"]");Array.prototype.forEach.call(nodes,function(node){node.getAttribute("data-emotion-"+key).split(" ").forEach(function(id){inserted[id]=!0}),node.parentNode!==container&&container.appendChild(node)});var _insert;if(stylis.use(options.stylisPlugins)(ruleSheet),_insert=function(selector,serialized,sheet,shouldCache){var name=serialized.name;if(Sheet.current=sheet,"production"!==process.env.NODE_ENV&&void 0!==serialized.map){var map=serialized.map;Sheet.current={insert:function(rule){sheet.insert(rule+map)}}}stylis(selector,serialized.styles),shouldCache&&(cache.inserted[name]=!0)},"production"!==process.env.NODE_ENV){var commentStart=/\/\*/g,commentEnd=/\*\//g;stylis.use(function(context,content){switch(context){case-1:for(;commentStart.test(content);){commentEnd.lastIndex=commentStart.lastIndex;{if(!commentEnd.test(content))throw new Error('Your styles have an unterminated comment ("/*" without corresponding "*/").');commentStart.lastIndex=commentEnd.lastIndex}}commentStart.lastIndex=0}}),stylis.use(function(context,content,selectors){switch(context){case-1:var unsafePseudoClasses=content.match(/(:first|:nth|:nth-last)-child/g);unsafePseudoClasses&&!0!==cache.compat&&unsafePseudoClasses.forEach(function(unsafePseudoClass){var ignoreRegExp=new RegExp(unsafePseudoClass+".*\\/\\* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason \\*\\/"),ignore=ignoreRegExp.test(content);unsafePseudoClass&&!ignore&&console.error('The pseudo class "'+unsafePseudoClass+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+unsafePseudoClass.split("-child")[0]+'-of-type".')})}})}var cache={key:key,sheet:new __WEBPACK_IMPORTED_MODULE_0__emotion_sheet__.a({key:key,container:container,nonce:options.nonce,speedy:options.speedy}),nonce:options.nonce,inserted:inserted,registered:{},insert:_insert};return cache};__webpack_exports__.a=createCache}).call(__webpack_exports__,__webpack_require__(0))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(process){function sheetForTag(tag){if(tag.sheet)return tag.sheet;for(var i=0;i<document.styleSheets.length;i++)if(document.styleSheets[i].ownerNode===tag)return document.styleSheets[i]}function createStyleElement(options){var tag=document.createElement("style");return tag.setAttribute("data-emotion",options.key),void 0!==options.nonce&&tag.setAttribute("nonce",options.nonce),tag.appendChild(document.createTextNode("")),tag}__webpack_require__.d(__webpack_exports__,"a",function(){return StyleSheet});var StyleSheet=function(){function StyleSheet(options){this.isSpeedy=void 0===options.speedy?"production"===process.env.NODE_ENV:options.speedy,this.tags=[],this.ctr=0,this.nonce=options.nonce,this.key=options.key,this.container=options.container,this.before=null}var _proto=StyleSheet.prototype;return _proto.insert=function(rule){if(this.ctr%(this.isSpeedy?65e3:1)==0){var before,_tag=createStyleElement(this);before=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(_tag,before),this.tags.push(_tag)}var tag=this.tags[this.tags.length-1];if(this.isSpeedy){var sheet=sheetForTag(tag);try{var isImportRule=105===rule.charCodeAt(1)&&64===rule.charCodeAt(0);sheet.insertRule(rule,isImportRule?0:sheet.cssRules.length)}catch(e){"production"!==process.env.NODE_ENV&&console.warn('There was a problem inserting the following rule: "'+rule+'"',e)}}else tag.appendChild(document.createTextNode(rule));this.ctr++},_proto.flush=function(){this.tags.forEach(function(tag){return tag.parentNode.removeChild(tag)}),this.tags=[],this.ctr=0},StyleSheet}()}).call(__webpack_exports__,__webpack_require__(0))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(process){function handleInterpolation(mergedProps,registered,interpolation,couldBeSelectorInterpolation){if(null==interpolation)return"";if(void 0!==interpolation.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===interpolation.toString())throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");return interpolation}switch(typeof interpolation){case"boolean":return"";case"object":if(1===interpolation.anim)return cursor={name:interpolation.name,styles:interpolation.styles,next:cursor},interpolation.name;if(void 0!==interpolation.styles){var next=interpolation.next;if(void 0!==next)for(;void 0!==next;)cursor={name:next.name,styles:next.styles,next:cursor},next=next.next;var styles=interpolation.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==interpolation.map&&(styles+=interpolation.map),styles}return createStringFromObject(mergedProps,registered,interpolation);case"function":if(void 0!==mergedProps){var previousCursor=cursor,result=interpolation(mergedProps);return cursor=previousCursor,handleInterpolation(mergedProps,registered,result,couldBeSelectorInterpolation)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var matched=[],replaced=interpolation.replace(animationRegex,function(match,p1,p2){var fakeVarName="animation"+matched.length;return matched.push("const "+fakeVarName+" = keyframes`"+p2.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+fakeVarName+"}"});matched.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(matched,["`"+replaced+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+replaced+"`")}}if(null==registered)return interpolation;var cached=registered[interpolation];return"production"!==process.env.NODE_ENV&&couldBeSelectorInterpolation&&shouldWarnAboutInterpolatingClassNameFromCss&&void 0!==cached&&(console.error("Interpolating a className from css`` is not recommended and will cause problems with composition.\nInterpolating a className from css`` will be completely unsupported in a future major version of Emotion"),shouldWarnAboutInterpolatingClassNameFromCss=!1),void 0===cached||couldBeSelectorInterpolation?interpolation:cached}function createStringFromObject(mergedProps,registered,obj){var string="";if(Array.isArray(obj))for(var i=0;i<obj.length;i++)string+=handleInterpolation(mergedProps,registered,obj[i],!1);else for(var _key in obj){var value=obj[_key];if("object"!=typeof value)null!=registered&&void 0!==registered[value]?string+=_key+"{"+registered[value]+"}":isProcessableValue(value)&&(string+=processStyleName(_key)+":"+processStyleValue(_key,value)+";");else{if("NO_COMPONENT_SELECTOR"===_key&&"production"!==process.env.NODE_ENV)throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");if(!Array.isArray(value)||"string"!=typeof value[0]||null!=registered&&void 0!==registered[value[0]]){var interpolated=handleInterpolation(mergedProps,registered,value,!1);switch(_key){case"animation":case"animationName":string+=processStyleName(_key)+":"+interpolated+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===_key&&console.error(UNDEFINED_AS_OBJECT_KEY_ERROR),string+=_key+"{"+interpolated+"}"}}else for(var _i=0;_i<value.length;_i++)isProcessableValue(value[_i])&&(string+=processStyleName(_key)+":"+processStyleValue(_key,value[_i])+";")}}return string}__webpack_require__.d(__webpack_exports__,"a",function(){return serializeStyles});var __WEBPACK_IMPORTED_MODULE_0__emotion_hash__=__webpack_require__(97),__WEBPACK_IMPORTED_MODULE_1__emotion_unitless__=__webpack_require__(98),__WEBPACK_IMPORTED_MODULE_2__emotion_memoize__=__webpack_require__(99),ILLEGAL_ESCAPE_SEQUENCE_ERROR="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",UNDEFINED_AS_OBJECT_KEY_ERROR="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(property){return 45===property.charCodeAt(1)},isProcessableValue=function(value){return null!=value&&"boolean"!=typeof value},processStyleName=Object(__WEBPACK_IMPORTED_MODULE_2__emotion_memoize__.a)(function(styleName){return isCustomProperty(styleName)?styleName:styleName.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function(key,value){switch(key){case"animation":case"animationName":if("string"==typeof value)return value.replace(animationRegex,function(match,p1,p2){return cursor={name:p1,styles:p2,next:cursor},p1})}return 1===__WEBPACK_IMPORTED_MODULE_1__emotion_unitless__.a[key]||isCustomProperty(key)||"number"!=typeof value||0===value?value:value+"px"};if("production"!==process.env.NODE_ENV){var contentValuePattern=/(attr|calc|counters?|url)\(/,contentValues=["normal","none","counter","open-quote","close-quote","no-open-quote","no-close-quote","initial","inherit","unset"],oldProcessStyleValue=processStyleValue,msPattern=/^-ms-/,hyphenPattern=/-(.)/g,hyphenatedCache={};processStyleValue=function(key,value){"content"===key&&("string"!=typeof value||-1===contentValues.indexOf(value)&&!contentValuePattern.test(value)&&(value.charAt(0)!==value.charAt(value.length-1)||'"'!==value.charAt(0)&&"'"!==value.charAt(0)))&&console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+value+"\"'`");var processed=oldProcessStyleValue(key,value);return""===processed||isCustomProperty(key)||-1===key.indexOf("-")||void 0!==hyphenatedCache[key]||(hyphenatedCache[key]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+key.replace(msPattern,"ms-").replace(hyphenPattern,function(str,_char){return _char.toUpperCase()})+"?")),processed}}var sourceMapPattern,shouldWarnAboutInterpolatingClassNameFromCss=!0,labelPattern=/label:\s*([^\s;\n{]+)\s*;/g;"production"!==process.env.NODE_ENV&&(sourceMapPattern=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//);var cursor,serializeStyles=function(args,registered,mergedProps){if(1===args.length&&"object"==typeof args[0]&&null!==args[0]&&void 0!==args[0].styles)return args[0];var stringMode=!0,styles="";cursor=void 0;var strings=args[0];null==strings||void 0===strings.raw?(stringMode=!1,styles+=handleInterpolation(mergedProps,registered,strings,!1)):("production"!==process.env.NODE_ENV&&void 0===strings[0]&&console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR),styles+=strings[0]);for(var i=1;i<args.length;i++)styles+=handleInterpolation(mergedProps,registered,args[i],46===styles.charCodeAt(styles.length-1)),stringMode&&("production"!==process.env.NODE_ENV&&void 0===strings[i]&&console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR),styles+=strings[i]);var sourceMap;"production"!==process.env.NODE_ENV&&(styles=styles.replace(sourceMapPattern,function(match){return sourceMap=match,""})),labelPattern.lastIndex=0;for(var match,identifierName="";null!==(match=labelPattern.exec(styles));)identifierName+="-"+match[1];var name=Object(__WEBPACK_IMPORTED_MODULE_0__emotion_hash__.a)(styles)+identifierName;return"production"!==process.env.NODE_ENV?{name:name,styles:styles,map:sourceMap,next:cursor,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:name,styles:styles,next:cursor}}}).call(__webpack_exports__,__webpack_require__(0))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(process){function getMenuPlacement(_ref){var maxHeight=_ref.maxHeight,menuEl=_ref.menuEl,minHeight=_ref.minHeight,placement=_ref.placement,shouldScroll=_ref.shouldScroll,isFixedPosition=_ref.isFixedPosition,theme=_ref.theme,spacing=theme.spacing,scrollParent=Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.a)(menuEl),defaultState={placement:"bottom",maxHeight:maxHeight};if(!menuEl||!menuEl.offsetParent)return defaultState;var _scrollParent$getBoun=scrollParent.getBoundingClientRect(),scrollHeight=_scrollParent$getBoun.height,_menuEl$getBoundingCl=menuEl.getBoundingClientRect(),menuBottom=_menuEl$getBoundingCl.bottom,menuHeight=_menuEl$getBoundingCl.height,menuTop=_menuEl$getBoundingCl.top,_menuEl$offsetParent$=menuEl.offsetParent.getBoundingClientRect(),containerTop=_menuEl$offsetParent$.top,viewHeight=window.innerHeight,scrollTop=Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.b)(scrollParent),marginBottom=parseInt(getComputedStyle(menuEl).marginBottom,10),marginTop=parseInt(getComputedStyle(menuEl).marginTop,10),viewSpaceAbove=containerTop-marginTop,viewSpaceBelow=viewHeight-menuTop,scrollSpaceAbove=viewSpaceAbove+scrollTop,scrollSpaceBelow=scrollHeight-scrollTop-menuTop,scrollDown=menuBottom-viewHeight+scrollTop+marginBottom,scrollUp=scrollTop+menuTop-marginTop;switch(placement){case"auto":case"bottom":if(viewSpaceBelow>=menuHeight)return{placement:"bottom",maxHeight:maxHeight};if(scrollSpaceBelow>=menuHeight&&!isFixedPosition)return shouldScroll&&Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.c)(scrollParent,scrollDown,160),{placement:"bottom",maxHeight:maxHeight};if(!isFixedPosition&&scrollSpaceBelow>=minHeight||isFixedPosition&&viewSpaceBelow>=minHeight){shouldScroll&&Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.c)(scrollParent,scrollDown,160);return{placement:"bottom",maxHeight:isFixedPosition?viewSpaceBelow-marginBottom:scrollSpaceBelow-marginBottom}}if("auto"===placement||isFixedPosition){var _constrainedHeight=maxHeight,spaceAbove=isFixedPosition?viewSpaceAbove:scrollSpaceAbove;return spaceAbove>=minHeight&&(_constrainedHeight=Math.min(spaceAbove-marginBottom-spacing.controlHeight,maxHeight)),{placement:"top",maxHeight:_constrainedHeight}}if("bottom"===placement)return Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.l)(scrollParent,scrollDown),{placement:"bottom",maxHeight:maxHeight};break;case"top":if(viewSpaceAbove>=menuHeight)return{placement:"top",maxHeight:maxHeight};if(scrollSpaceAbove>=menuHeight&&!isFixedPosition)return shouldScroll&&Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.c)(scrollParent,scrollUp,160),{placement:"top",maxHeight:maxHeight};if(!isFixedPosition&&scrollSpaceAbove>=minHeight||isFixedPosition&&viewSpaceAbove>=minHeight){var _constrainedHeight2=maxHeight;return(!isFixedPosition&&scrollSpaceAbove>=minHeight||isFixedPosition&&viewSpaceAbove>=minHeight)&&(_constrainedHeight2=isFixedPosition?viewSpaceAbove-marginTop:scrollSpaceAbove-marginTop),shouldScroll&&Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.c)(scrollParent,scrollUp,160),{placement:"top",maxHeight:_constrainedHeight2}}return{placement:"bottom",maxHeight:maxHeight};default:throw new Error('Invalid placement provided "'.concat(placement,'".'))}return defaultState}function alignToControl(placement){var placementToCSSProp={bottom:"top",top:"bottom"};return placement?placementToCSSProp[placement]:"bottom"}function equal(a,b){if(a===b)return!0;if(a&&b&&"object"==Object(__WEBPACK_IMPORTED_MODULE_14__babel_runtime_helpers_esm_typeof__.a)(a)&&"object"==Object(__WEBPACK_IMPORTED_MODULE_14__babel_runtime_helpers_esm_typeof__.a)(b)){var i,length,key,arrA=isArray(a),arrB=isArray(b);if(arrA&&arrB){if((length=a.length)!=b.length)return!1;for(i=length;0!=i--;)if(!equal(a[i],b[i]))return!1;return!0}if(arrA!=arrB)return!1;var dateA=a instanceof Date,dateB=b instanceof Date;if(dateA!=dateB)return!1;if(dateA&&dateB)return a.getTime()==b.getTime();var regexpA=a instanceof RegExp,regexpB=b instanceof RegExp;if(regexpA!=regexpB)return!1;if(regexpA&&regexpB)return a.toString()==b.toString();var keys=keyList(a);if((length=keys.length)!==keyList(b).length)return!1;for(i=length;0!=i--;)if(!hasProp.call(b,keys[i]))return!1;for(i=length;0!=i--;)if(!("_owner"===(key=keys[i])&&a.$$typeof||equal(a[key],b[key])))return!1;return!0}return a!==a&&b!==b}function exportedEqual(a,b){try{return equal(a,b)}catch(error){if(error.message&&error.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",error.name,error.message),!1;throw error}}function _templateObject(){var data=Object(__WEBPACK_IMPORTED_MODULE_17__babel_runtime_helpers_esm_taggedTemplateLiteral__.a)(["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"]);return _templateObject=function(){return data},data}__webpack_require__.d(__webpack_exports__,"a",function(){return MenuPlacer}),__webpack_require__.d(__webpack_exports__,"b",function(){return containerCSS}),__webpack_require__.d(__webpack_exports__,"c",function(){return css}),__webpack_require__.d(__webpack_exports__,"d",function(){return clearIndicatorCSS}),__webpack_require__.d(__webpack_exports__,"e",function(){return dropdownIndicatorCSS}),__webpack_require__.d(__webpack_exports__,"f",function(){return groupHeadingCSS}),__webpack_require__.d(__webpack_exports__,"g",function(){return indicatorSeparatorCSS}),__webpack_require__.d(__webpack_exports__,"h",function(){return groupCSS}),__webpack_require__.d(__webpack_exports__,"i",function(){return inputCSS}),__webpack_require__.d(__webpack_exports__,"j",function(){return indicatorsContainerCSS}),__webpack_require__.d(__webpack_exports__,"k",function(){return loadingMessageCSS}),__webpack_require__.d(__webpack_exports__,"l",function(){return menuListCSS}),__webpack_require__.d(__webpack_exports__,"m",function(){return loadingIndicatorCSS}),__webpack_require__.d(__webpack_exports__,"n",function(){return menuCSS}),__webpack_require__.d(__webpack_exports__,"o",function(){return menuPortalCSS}),__webpack_require__.d(__webpack_exports__,"p",function(){return multiValueCSS}),__webpack_require__.d(__webpack_exports__,"q",function(){return multiValueLabelCSS}),__webpack_require__.d(__webpack_exports__,"r",function(){return multiValueRemoveCSS}),__webpack_require__.d(__webpack_exports__,"s",function(){return noOptionsMessageCSS}),__webpack_require__.d(__webpack_exports__,"t",function(){return optionCSS}),__webpack_require__.d(__webpack_exports__,"u",function(){return placeholderCSS}),__webpack_require__.d(__webpack_exports__,"v",function(){return css$1}),__webpack_require__.d(__webpack_exports__,"w",function(){return valueContainerCSS}),__webpack_require__.d(__webpack_exports__,"x",function(){return defaultComponents}),__webpack_require__.d(__webpack_exports__,"y",function(){return exportedEqual});var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__=__webpack_require__(14),__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__=__webpack_require__(15),__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectSpread__=__webpack_require__(30),__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__=__webpack_require__(16),__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__=__webpack_require__(17),__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_possibleConstructorReturn__=__webpack_require__(18),__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_getPrototypeOf__=__webpack_require__(20),__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_inherits__=__webpack_require__(21),__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__=__webpack_require__(8),__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__=__webpack_require__(7),__WEBPACK_IMPORTED_MODULE_10_react__=__webpack_require__(3),__WEBPACK_IMPORTED_MODULE_11__emotion_core__=(__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_react__),__webpack_require__(31)),__WEBPACK_IMPORTED_MODULE_12_react_dom__=__webpack_require__(11),__WEBPACK_IMPORTED_MODULE_13_prop_types__=(__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12_react_dom__),__webpack_require__(10)),__WEBPACK_IMPORTED_MODULE_13_prop_types___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_13_prop_types__),__WEBPACK_IMPORTED_MODULE_14__babel_runtime_helpers_esm_typeof__=__webpack_require__(19),__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__=__webpack_require__(32),__WEBPACK_IMPORTED_MODULE_16__emotion_css__=__webpack_require__(9),__WEBPACK_IMPORTED_MODULE_17__babel_runtime_helpers_esm_taggedTemplateLiteral__=__webpack_require__(42),__WEBPACK_IMPORTED_MODULE_18_react_input_autosize__=__webpack_require__(43),__WEBPACK_IMPORTED_MODULE_18_react_input_autosize___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_18_react_input_autosize__),coercePlacement=function(p){return"auto"===p?"bottom":p},menuCSS=function(_ref2){var _ref3,placement=_ref2.placement,_ref2$theme=_ref2.theme,borderRadius=_ref2$theme.borderRadius,spacing=_ref2$theme.spacing,colors=_ref2$theme.colors;return _ref3={label:"menu"},Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,alignToControl(placement),"100%"),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"backgroundColor",colors.neutral0),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"borderRadius",borderRadius),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"marginBottom",spacing.menuGutter),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"marginTop",spacing.menuGutter),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"position","absolute"),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"width","100%"),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(_ref3,"zIndex",1),_ref3},MenuPlacer=function(_Component){function MenuPlacer(){var _getPrototypeOf2,_this;Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__.a)(this,MenuPlacer);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return _this=Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,(_getPrototypeOf2=Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_getPrototypeOf__.a)(MenuPlacer)).call.apply(_getPrototypeOf2,[this].concat(args))),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"state",{maxHeight:_this.props.maxMenuHeight,placement:null}),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getPlacement",function(ref){var _this$props=_this.props,minMenuHeight=_this$props.minMenuHeight,maxMenuHeight=_this$props.maxMenuHeight,menuPlacement=_this$props.menuPlacement,menuPosition=_this$props.menuPosition,menuShouldScrollIntoView=_this$props.menuShouldScrollIntoView,theme=_this$props.theme,getPortalPlacement=_this.context.getPortalPlacement;if(ref){var isFixedPosition="fixed"===menuPosition,shouldScroll=menuShouldScrollIntoView&&!isFixedPosition,state=getMenuPlacement({maxHeight:maxMenuHeight,menuEl:ref,minHeight:minMenuHeight,placement:menuPlacement,shouldScroll:shouldScroll,isFixedPosition:isFixedPosition,theme:theme});getPortalPlacement&&getPortalPlacement(state),_this.setState(state)}}),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getUpdatedProps",function(){var menuPlacement=_this.props.menuPlacement,placement=_this.state.placement||coercePlacement(menuPlacement);return Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectSpread__.a)({},_this.props,{placement:placement,maxHeight:_this.state.maxHeight})}),_this}return Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_inherits__.a)(MenuPlacer,_Component),Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__.a)(MenuPlacer,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),MenuPlacer}(__WEBPACK_IMPORTED_MODULE_10_react__.Component);Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(MenuPlacer,"contextTypes",{getPortalPlacement:__WEBPACK_IMPORTED_MODULE_13_prop_types___default.a.func});var Menu=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,innerRef=props.innerRef,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("menu",props),className:cx({menu:!0},className)},innerProps,{ref:innerRef}),children)},menuListCSS=function(_ref4){var maxHeight=_ref4.maxHeight,baseUnit=_ref4.theme.spacing.baseUnit;return{maxHeight:maxHeight,overflowY:"auto",paddingBottom:baseUnit,paddingTop:baseUnit,position:"relative",WebkitOverflowScrolling:"touch"}},MenuList=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,isMulti=props.isMulti,innerRef=props.innerRef;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",{css:getStyles("menuList",props),className:cx({"menu-list":!0,"menu-list--is-multi":isMulti},className),ref:innerRef},children)},noticeCSS=function(_ref5){var _ref5$theme=_ref5.theme,baseUnit=_ref5$theme.spacing.baseUnit;return{color:_ref5$theme.colors.neutral40,padding:"".concat(2*baseUnit,"px ").concat(3*baseUnit,"px"),textAlign:"center"}},noOptionsMessageCSS=noticeCSS,loadingMessageCSS=noticeCSS,NoOptionsMessage=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("noOptionsMessage",props),className:cx({"menu-notice":!0,"menu-notice--no-options":!0},className)},innerProps),children)};NoOptionsMessage.defaultProps={children:"No options"};var LoadingMessage=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("loadingMessage",props),className:cx({"menu-notice":!0,"menu-notice--loading":!0},className)},innerProps),children)};LoadingMessage.defaultProps={children:"Loading..."};var menuPortalCSS=function(_ref6){var rect=_ref6.rect,offset=_ref6.offset,position=_ref6.position;return{left:rect.left,position:position,top:offset,width:rect.width,zIndex:1}},MenuPortal=function(_Component2){function MenuPortal(){var _getPrototypeOf3,_this2;Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__.a)(this,MenuPortal);for(var _len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++)args[_key2]=arguments[_key2];return _this2=Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,(_getPrototypeOf3=Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_getPrototypeOf__.a)(MenuPortal)).call.apply(_getPrototypeOf3,[this].concat(args))),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this2)),"state",{placement:null}),Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this2)),"getPortalPlacement",function(_ref7){var placement=_ref7.placement;placement!==coercePlacement(_this2.props.menuPlacement)&&_this2.setState({placement:placement})}),_this2}return Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_inherits__.a)(MenuPortal,_Component2),Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__.a)(MenuPortal,[{key:"getChildContext",value:function(){return{getPortalPlacement:this.getPortalPlacement}}},{key:"render",value:function(){var _this$props2=this.props,appendTo=_this$props2.appendTo,children=_this$props2.children,controlElement=_this$props2.controlElement,menuPlacement=_this$props2.menuPlacement,position=_this$props2.menuPosition,getStyles=_this$props2.getStyles,isFixed="fixed"===position;if(!appendTo&&!isFixed||!controlElement)return null;var placement=this.state.placement||coercePlacement(menuPlacement),rect=Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.g)(controlElement),scrollDistance=isFixed?0:window.pageYOffset,offset=rect[placement]+scrollDistance,state={offset:offset,position:position,rect:rect},menuWrapper=Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",{css:getStyles("menuPortal",state)},children);return appendTo?Object(__WEBPACK_IMPORTED_MODULE_12_react_dom__.createPortal)(menuWrapper,appendTo):menuWrapper}}]),MenuPortal}(__WEBPACK_IMPORTED_MODULE_10_react__.Component);Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(MenuPortal,"childContextTypes",{getPortalPlacement:__WEBPACK_IMPORTED_MODULE_13_prop_types___default.a.func});var isArray=Array.isArray,keyList=Object.keys,hasProp=Object.prototype.hasOwnProperty,containerCSS=function(_ref){var isDisabled=_ref.isDisabled;return{label:"container",direction:_ref.isRtl?"rtl":null,pointerEvents:isDisabled?"none":null,position:"relative"}},SelectContainer=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps,isDisabled=props.isDisabled,isRtl=props.isRtl;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("container",props),className:cx({"--is-disabled":isDisabled,"--is-rtl":isRtl},className)},innerProps),children)},valueContainerCSS=function(_ref2){var spacing=_ref2.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(spacing.baseUnit/2,"px ").concat(2*spacing.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}},ValueContainer=function(_Component){function ValueContainer(){return Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__.a)(this,ValueContainer),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_getPrototypeOf__.a)(ValueContainer).apply(this,arguments))}return Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_inherits__.a)(ValueContainer,_Component),Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__.a)(ValueContainer,[{key:"render",value:function(){var _this$props=this.props,children=_this$props.children,className=_this$props.className,cx=_this$props.cx,isMulti=_this$props.isMulti,getStyles=_this$props.getStyles,hasValue=_this$props.hasValue;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",{css:getStyles("valueContainer",this.props),className:cx({"value-container":!0,"value-container--is-multi":isMulti,"value-container--has-value":hasValue},className)},children)}}]),ValueContainer}(__WEBPACK_IMPORTED_MODULE_10_react__.Component),indicatorsContainerCSS=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},IndicatorsContainer=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",{css:getStyles("indicatorsContainer",props),className:cx({indicators:!0},className)},children)},_ref2="production"===process.env.NODE_ENV?{name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"}:{name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0JJIiwiZmlsZSI6ImluZGljYXRvcnMuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyB0eXBlIE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuXG5pbXBvcnQgdHlwZSB7IENvbW1vblByb3BzLCBUaGVtZSB9IGZyb20gJy4uL3R5cGVzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHsgc2l6ZSwgLi4ucHJvcHMgfTogeyBzaXplOiBudW1iZXIgfSkgPT4gKFxuICA8c3ZnXG4gICAgaGVpZ2h0PXtzaXplfVxuICAgIHdpZHRoPXtzaXplfVxuICAgIHZpZXdCb3g9XCIwIDAgMjAgMjBcIlxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgZm9jdXNhYmxlPVwiZmFsc2VcIlxuICAgIGNzcz17e1xuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBmaWxsOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGxpbmVIZWlnaHQ6IDEsXG4gICAgICBzdHJva2U6ICdjdXJyZW50Q29sb3InLFxuICAgICAgc3Ryb2tlV2lkdGg6IDAsXG4gICAgfX1cbiAgICB7Li4ucHJvcHN9XG4gIC8+XG4pO1xuXG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBhbnkpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogYW55KSA9PiAoXG4gIDxTdmcgc2l6ZT17MjB9IHsuLi5wcm9wc30+XG4gICAgPHBhdGggZD1cIk00LjUxNiA3LjU0OGMwLjQzNi0wLjQ0NiAxLjA0My0wLjQ4MSAxLjU3NiAwbDMuOTA4IDMuNzQ3IDMuOTA4LTMuNzQ3YzAuNTMzLTAuNDgxIDEuMTQxLTAuNDQ2IDEuNTc0IDAgMC40MzYgMC40NDUgMC40MDggMS4xOTcgMCAxLjYxNS0wLjQwNiAwLjQxOC00LjY5NSA0LjUwMi00LjY5NSA0LjUwMi0wLjIxNyAwLjIyMy0wLjUwMiAwLjMzNS0wLjc4NyAwLjMzNXMtMC41Ny0wLjExMi0wLjc4OS0wLjMzNWMwIDAtNC4yODctNC4wODQtNC42OTUtNC41MDJzLTAuNDM2LTEuMTcgMC0xLjYxNXpcIiAvPlxuICA8L1N2Zz5cbik7XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gRHJvcGRvd24gJiBDbGVhciBCdXR0b25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IHR5cGUgSW5kaWNhdG9yUHJvcHMgPSBDb21tb25Qcm9wcyAmIHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW46IE5vZGUsXG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufTtcblxuY29uc3QgYmFzZUNTUyA9ICh7XG4gIGlzRm9jdXNlZCxcbiAgdGhlbWU6IHtcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgY29sb3JzLFxuICB9LFxufTogSW5kaWNhdG9yUHJvcHMpID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yQ29udGFpbmVyJyxcbiAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcblxuICAnOmhvdmVyJzoge1xuICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDgwIDogY29sb3JzLm5ldXRyYWw0MCxcbiAgfSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2Ryb3Bkb3duSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnZHJvcGRvd24taW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2NsZWFySW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnY2xlYXItaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG50eXBlIFNlcGFyYXRvclN0YXRlID0geyBpc0Rpc2FibGVkOiBib29sZWFuIH07XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSAoe1xuICBpc0Rpc2FibGVkLFxuICB0aGVtZToge1xuICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICBjb2xvcnMsXG4gIH0sXG59OiBDb21tb25Qcm9wcyAmIFNlcGFyYXRvclN0YXRlKSA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvclNlcGFyYXRvcicsXG4gIGFsaWduU2VsZjogJ3N0cmV0Y2gnLFxuICBiYWNrZ3JvdW5kQ29sb3I6IGlzRGlzYWJsZWQgPyBjb2xvcnMubmV1dHJhbDEwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgbWFyZ2luQm90dG9tOiBiYXNlVW5pdCAqIDIsXG4gIG1hcmdpblRvcDogYmFzZVVuaXQgKiAyLFxuICB3aWR0aDogMSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNsYXNzTmFtZSwgY3gsIGdldFN0eWxlcywgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2luZGljYXRvclNlcGFyYXRvcicsIHByb3BzKX1cbiAgICAgIGNsYXNzTmFtZT17Y3goeyAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUgfSwgY2xhc3NOYW1lKX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gKHtcbiAgaXNGb2N1c2VkLFxuICBzaXplLFxuICB0aGVtZToge1xuICAgIGNvbG9ycyxcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gIH0sXG59OiB7XG4gIGlzRm9jdXNlZDogYm9vbGVhbixcbiAgc2l6ZTogbnVtYmVyLFxuICB0aGVtZTogVGhlbWUsXG59KSA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxufSk7XG5cbnR5cGUgRG90UHJvcHMgPSB7IGRlbGF5OiBudW1iZXIsIG9mZnNldDogYm9vbGVhbiB9O1xuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogRG90UHJvcHMpID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGFuaW1hdGlvbjogYCR7bG9hZGluZ0RvdEFuaW1hdGlvbnN9IDFzIGVhc2UtaW4tb3V0ICR7ZGVsYXl9bXMgaW5maW5pdGU7YCxcbiAgICAgIGJhY2tncm91bmRDb2xvcjogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBib3JkZXJSYWRpdXM6ICcxZW0nLFxuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBtYXJnaW5MZWZ0OiBvZmZzZXQgPyAnMWVtJyA6IG51bGwsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIExvYWRpbmdJY29uUHJvcHMgPSB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufSAmIENvbW1vblByb3BzICYge1xuICAgIC8qKiBTZXQgc2l6ZSBvZiB0aGUgY29udGFpbmVyLiAqL1xuICAgIHNpemU6IG51bWJlcixcbiAgfTtcbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gKHByb3BzOiBMb2FkaW5nSWNvblByb3BzKSA9PiB7XG4gIGNvbnN0IHsgY2xhc3NOYW1lLCBjeCwgZ2V0U3R5bGVzLCBpbm5lclByb3BzLCBpc1J0bCB9ID0gcHJvcHM7XG5cbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIGNzcz17Z2V0U3R5bGVzKCdsb2FkaW5nSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnbG9hZGluZy1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgICBjbGFzc05hbWVcbiAgICAgICl9XG4gICAgPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezB9IG9mZnNldD17aXNSdGx9IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MTYwfSBvZmZzZXQgLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXszMjB9IG9mZnNldD17IWlzUnRsfSAvPlxuICAgIDwvZGl2PlxuICApO1xufTtcbkxvYWRpbmdJbmRpY2F0b3IuZGVmYXVsdFByb3BzID0geyBzaXplOiA0IH07XG4iXX0= */"},Svg=function(_ref){var size=_ref.size,props=Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__.a)(_ref,["size"]);return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("svg",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({height:size,width:size,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:_ref2},props))},CrossIcon=function(props){return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(Svg,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({size:20},props),Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},DownChevron=function(props){return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(Svg,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({size:20},props),Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},baseCSS=function(_ref3){var isFocused=_ref3.isFocused,_ref3$theme=_ref3.theme,baseUnit=_ref3$theme.spacing.baseUnit,colors=_ref3$theme.colors;return{label:"indicatorContainer",color:isFocused?colors.neutral60:colors.neutral20,display:"flex",padding:2*baseUnit,transition:"color 150ms",":hover":{color:isFocused?colors.neutral80:colors.neutral40}}},dropdownIndicatorCSS=baseCSS,DropdownIndicator=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},innerProps,{css:getStyles("dropdownIndicator",props),className:cx({indicator:!0,"dropdown-indicator":!0},className)}),children||Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(DownChevron,null))},clearIndicatorCSS=baseCSS,ClearIndicator=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},innerProps,{css:getStyles("clearIndicator",props),className:cx({indicator:!0,"clear-indicator":!0},className)}),children||Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(CrossIcon,null))},indicatorSeparatorCSS=function(_ref4){var isDisabled=_ref4.isDisabled,_ref4$theme=_ref4.theme,baseUnit=_ref4$theme.spacing.baseUnit,colors=_ref4$theme.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:isDisabled?colors.neutral10:colors.neutral20,marginBottom:2*baseUnit,marginTop:2*baseUnit,width:1}},IndicatorSeparator=function(props){var className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("span",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},innerProps,{css:getStyles("indicatorSeparator",props),className:cx({"indicator-separator":!0},className)}))},loadingDotAnimations=Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.d)(_templateObject()),loadingIndicatorCSS=function(_ref5){var isFocused=_ref5.isFocused,size=_ref5.size,_ref5$theme=_ref5.theme,colors=_ref5$theme.colors,baseUnit=_ref5$theme.spacing.baseUnit;return{label:"loadingIndicator",color:isFocused?colors.neutral60:colors.neutral20,display:"flex",padding:2*baseUnit,transition:"color 150ms",alignSelf:"center",fontSize:size,lineHeight:1,marginRight:size,textAlign:"center",verticalAlign:"middle"}},LoadingDot=function(_ref6){var delay=_ref6.delay,offset=_ref6.offset;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("span",{css:Object(__WEBPACK_IMPORTED_MODULE_16__emotion_css__.a)({animation:"".concat(loadingDotAnimations," 1s ease-in-out ").concat(delay,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:offset?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBc0xJIiwiZmlsZSI6ImluZGljYXRvcnMuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyB0eXBlIE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuXG5pbXBvcnQgdHlwZSB7IENvbW1vblByb3BzLCBUaGVtZSB9IGZyb20gJy4uL3R5cGVzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHsgc2l6ZSwgLi4ucHJvcHMgfTogeyBzaXplOiBudW1iZXIgfSkgPT4gKFxuICA8c3ZnXG4gICAgaGVpZ2h0PXtzaXplfVxuICAgIHdpZHRoPXtzaXplfVxuICAgIHZpZXdCb3g9XCIwIDAgMjAgMjBcIlxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgZm9jdXNhYmxlPVwiZmFsc2VcIlxuICAgIGNzcz17e1xuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBmaWxsOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGxpbmVIZWlnaHQ6IDEsXG4gICAgICBzdHJva2U6ICdjdXJyZW50Q29sb3InLFxuICAgICAgc3Ryb2tlV2lkdGg6IDAsXG4gICAgfX1cbiAgICB7Li4ucHJvcHN9XG4gIC8+XG4pO1xuXG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBhbnkpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogYW55KSA9PiAoXG4gIDxTdmcgc2l6ZT17MjB9IHsuLi5wcm9wc30+XG4gICAgPHBhdGggZD1cIk00LjUxNiA3LjU0OGMwLjQzNi0wLjQ0NiAxLjA0My0wLjQ4MSAxLjU3NiAwbDMuOTA4IDMuNzQ3IDMuOTA4LTMuNzQ3YzAuNTMzLTAuNDgxIDEuMTQxLTAuNDQ2IDEuNTc0IDAgMC40MzYgMC40NDUgMC40MDggMS4xOTcgMCAxLjYxNS0wLjQwNiAwLjQxOC00LjY5NSA0LjUwMi00LjY5NSA0LjUwMi0wLjIxNyAwLjIyMy0wLjUwMiAwLjMzNS0wLjc4NyAwLjMzNXMtMC41Ny0wLjExMi0wLjc4OS0wLjMzNWMwIDAtNC4yODctNC4wODQtNC42OTUtNC41MDJzLTAuNDM2LTEuMTcgMC0xLjYxNXpcIiAvPlxuICA8L1N2Zz5cbik7XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gRHJvcGRvd24gJiBDbGVhciBCdXR0b25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IHR5cGUgSW5kaWNhdG9yUHJvcHMgPSBDb21tb25Qcm9wcyAmIHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW46IE5vZGUsXG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufTtcblxuY29uc3QgYmFzZUNTUyA9ICh7XG4gIGlzRm9jdXNlZCxcbiAgdGhlbWU6IHtcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgY29sb3JzLFxuICB9LFxufTogSW5kaWNhdG9yUHJvcHMpID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yQ29udGFpbmVyJyxcbiAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcblxuICAnOmhvdmVyJzoge1xuICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDgwIDogY29sb3JzLm5ldXRyYWw0MCxcbiAgfSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2Ryb3Bkb3duSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnZHJvcGRvd24taW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2NsZWFySW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnY2xlYXItaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG50eXBlIFNlcGFyYXRvclN0YXRlID0geyBpc0Rpc2FibGVkOiBib29sZWFuIH07XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSAoe1xuICBpc0Rpc2FibGVkLFxuICB0aGVtZToge1xuICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICBjb2xvcnMsXG4gIH0sXG59OiBDb21tb25Qcm9wcyAmIFNlcGFyYXRvclN0YXRlKSA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvclNlcGFyYXRvcicsXG4gIGFsaWduU2VsZjogJ3N0cmV0Y2gnLFxuICBiYWNrZ3JvdW5kQ29sb3I6IGlzRGlzYWJsZWQgPyBjb2xvcnMubmV1dHJhbDEwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgbWFyZ2luQm90dG9tOiBiYXNlVW5pdCAqIDIsXG4gIG1hcmdpblRvcDogYmFzZVVuaXQgKiAyLFxuICB3aWR0aDogMSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNsYXNzTmFtZSwgY3gsIGdldFN0eWxlcywgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2luZGljYXRvclNlcGFyYXRvcicsIHByb3BzKX1cbiAgICAgIGNsYXNzTmFtZT17Y3goeyAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUgfSwgY2xhc3NOYW1lKX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gKHtcbiAgaXNGb2N1c2VkLFxuICBzaXplLFxuICB0aGVtZToge1xuICAgIGNvbG9ycyxcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gIH0sXG59OiB7XG4gIGlzRm9jdXNlZDogYm9vbGVhbixcbiAgc2l6ZTogbnVtYmVyLFxuICB0aGVtZTogVGhlbWUsXG59KSA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxufSk7XG5cbnR5cGUgRG90UHJvcHMgPSB7IGRlbGF5OiBudW1iZXIsIG9mZnNldDogYm9vbGVhbiB9O1xuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogRG90UHJvcHMpID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGFuaW1hdGlvbjogYCR7bG9hZGluZ0RvdEFuaW1hdGlvbnN9IDFzIGVhc2UtaW4tb3V0ICR7ZGVsYXl9bXMgaW5maW5pdGU7YCxcbiAgICAgIGJhY2tncm91bmRDb2xvcjogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBib3JkZXJSYWRpdXM6ICcxZW0nLFxuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBtYXJnaW5MZWZ0OiBvZmZzZXQgPyAnMWVtJyA6IG51bGwsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIExvYWRpbmdJY29uUHJvcHMgPSB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufSAmIENvbW1vblByb3BzICYge1xuICAgIC8qKiBTZXQgc2l6ZSBvZiB0aGUgY29udGFpbmVyLiAqL1xuICAgIHNpemU6IG51bWJlcixcbiAgfTtcbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gKHByb3BzOiBMb2FkaW5nSWNvblByb3BzKSA9PiB7XG4gIGNvbnN0IHsgY2xhc3NOYW1lLCBjeCwgZ2V0U3R5bGVzLCBpbm5lclByb3BzLCBpc1J0bCB9ID0gcHJvcHM7XG5cbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIGNzcz17Z2V0U3R5bGVzKCdsb2FkaW5nSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnbG9hZGluZy1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgICBjbGFzc05hbWVcbiAgICAgICl9XG4gICAgPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezB9IG9mZnNldD17aXNSdGx9IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MTYwfSBvZmZzZXQgLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXszMjB9IG9mZnNldD17IWlzUnRsfSAvPlxuICAgIDwvZGl2PlxuICApO1xufTtcbkxvYWRpbmdJbmRpY2F0b3IuZGVmYXVsdFByb3BzID0geyBzaXplOiA0IH07XG4iXX0= */")})},LoadingIndicator=function(props){var className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps,isRtl=props.isRtl;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},innerProps,{css:getStyles("loadingIndicator",props),className:cx({indicator:!0,"loading-indicator":!0},className)}),Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(LoadingDot,{delay:0,offset:isRtl}),Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(LoadingDot,{delay:160,offset:!0}),Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(LoadingDot,{delay:320,offset:!isRtl}))};LoadingIndicator.defaultProps={size:4};var css=function(_ref){var isDisabled=_ref.isDisabled,isFocused=_ref.isFocused,_ref$theme=_ref.theme,colors=_ref$theme.colors,borderRadius=_ref$theme.borderRadius,spacing=_ref$theme.spacing;return{label:"control",alignItems:"center",backgroundColor:isDisabled?colors.neutral5:colors.neutral0,borderColor:isDisabled?colors.neutral10:isFocused?colors.primary:colors.neutral20,borderRadius:borderRadius,borderStyle:"solid",borderWidth:1,boxShadow:isFocused?"0 0 0 1px ".concat(colors.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:isFocused?colors.primary:colors.neutral30}}},Control=function(props){var children=props.children,cx=props.cx,getStyles=props.getStyles,className=props.className,isDisabled=props.isDisabled,isFocused=props.isFocused,innerRef=props.innerRef,innerProps=props.innerProps,menuIsOpen=props.menuIsOpen;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({ref:innerRef,css:getStyles("control",props),className:cx({control:!0,"control--is-disabled":isDisabled,"control--is-focused":isFocused,"control--menu-is-open":menuIsOpen},className)},innerProps),children)},groupCSS=function(_ref){var spacing=_ref.theme.spacing;return{paddingBottom:2*spacing.baseUnit,paddingTop:2*spacing.baseUnit}},Group=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,Heading=props.Heading,headingProps=props.headingProps,label=props.label,theme=props.theme,selectProps=props.selectProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",{css:getStyles("group",props),className:cx({group:!0},className)},Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(Heading,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},headingProps,{selectProps:selectProps,theme:theme,getStyles:getStyles,cx:cx}),label),Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",null,children))},groupHeadingCSS=function(_ref2){var spacing=_ref2.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*spacing.baseUnit,paddingRight:3*spacing.baseUnit,textTransform:"uppercase"}},GroupHeading=function(props){var className=props.className,cx=props.cx,getStyles=props.getStyles,theme=props.theme,cleanProps=(props.selectProps,Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__.a)(props,["className","cx","getStyles","theme","selectProps"]));return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("groupHeading",Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectSpread__.a)({theme:theme},cleanProps)),className:cx({"group-heading":!0},className)},cleanProps))},inputCSS=function(_ref){var isDisabled=_ref.isDisabled,_ref$theme=_ref.theme,spacing=_ref$theme.spacing,colors=_ref$theme.colors;return{margin:spacing.baseUnit/2,paddingBottom:spacing.baseUnit/2,paddingTop:spacing.baseUnit/2,visibility:isDisabled?"hidden":"visible",color:colors.neutral80}},inputStyle=function(isHidden){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:isHidden?0:1,outline:0,padding:0,color:"inherit"}},Input=function(_ref2){var className=_ref2.className,cx=_ref2.cx,getStyles=_ref2.getStyles,innerRef=_ref2.innerRef,isHidden=_ref2.isHidden,isDisabled=_ref2.isDisabled,theme=_ref2.theme,props=(_ref2.selectProps,Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__.a)(_ref2,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",{css:getStyles("input",Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectSpread__.a)({theme:theme},props))},Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(__WEBPACK_IMPORTED_MODULE_18_react_input_autosize___default.a,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({className:cx({input:!0},className),inputRef:innerRef,inputStyle:inputStyle(isHidden),disabled:isDisabled},props)))},multiValueCSS=function(_ref){var _ref$theme=_ref.theme,spacing=_ref$theme.spacing,borderRadius=_ref$theme.borderRadius;return{label:"multiValue",backgroundColor:_ref$theme.colors.neutral10,borderRadius:borderRadius/2,display:"flex",margin:spacing.baseUnit/2,minWidth:0}},multiValueLabelCSS=function(_ref2){var _ref2$theme=_ref2.theme,borderRadius=_ref2$theme.borderRadius,colors=_ref2$theme.colors,cropWithEllipsis=_ref2.cropWithEllipsis;return{borderRadius:borderRadius/2,color:colors.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:cropWithEllipsis?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemoveCSS=function(_ref3){var _ref3$theme=_ref3.theme,spacing=_ref3$theme.spacing,borderRadius=_ref3$theme.borderRadius,colors=_ref3$theme.colors;return{alignItems:"center",borderRadius:borderRadius/2,backgroundColor:_ref3.isFocused&&colors.dangerLight,display:"flex",paddingLeft:spacing.baseUnit,paddingRight:spacing.baseUnit,":hover":{backgroundColor:colors.dangerLight,color:colors.danger}}},MultiValueGeneric=function(_ref4){var children=_ref4.children,innerProps=_ref4.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",innerProps,children)},MultiValueContainer=MultiValueGeneric,MultiValueLabel=MultiValueGeneric,MultiValueRemove=function(_Component){function MultiValueRemove(){return Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__.a)(this,MultiValueRemove),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_getPrototypeOf__.a)(MultiValueRemove).apply(this,arguments))}return Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_inherits__.a)(MultiValueRemove,_Component),Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__.a)(MultiValueRemove,[{key:"render",value:function(){var _this$props=this.props,children=_this$props.children,innerProps=_this$props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",innerProps,children||Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(CrossIcon,{size:14}))}}]),MultiValueRemove}(__WEBPACK_IMPORTED_MODULE_10_react__.Component),MultiValue=function(_Component2){function MultiValue(){return Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__.a)(this,MultiValue),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_getPrototypeOf__.a)(MultiValue).apply(this,arguments))}return Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_inherits__.a)(MultiValue,_Component2),Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__.a)(MultiValue,[{key:"render",value:function(){var _this=this,_this$props2=this.props,children=_this$props2.children,className=_this$props2.className,components=_this$props2.components,cx=_this$props2.cx,data=_this$props2.data,getStyles=_this$props2.getStyles,innerProps=_this$props2.innerProps,isDisabled=_this$props2.isDisabled,removeProps=_this$props2.removeProps,selectProps=_this$props2.selectProps,Container=components.Container,Label=components.Label,Remove=components.Remove;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.b,null,function(_ref5){var css=_ref5.css,emotionCx=_ref5.cx;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(Container,{data:data,innerProps:Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectSpread__.a)({},innerProps,{className:emotionCx(css(getStyles("multiValue",_this.props)),cx({"multi-value":!0,"multi-value--is-disabled":isDisabled},className))}),selectProps:selectProps},Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(Label,{data:data,innerProps:{className:emotionCx(css(getStyles("multiValueLabel",_this.props)),cx({"multi-value__label":!0},className))},selectProps:selectProps},children),Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)(Remove,{data:data,innerProps:Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectSpread__.a)({className:emotionCx(css(getStyles("multiValueRemove",_this.props)),cx({"multi-value__remove":!0},className))},removeProps),selectProps:selectProps}))})}}]),MultiValue}(__WEBPACK_IMPORTED_MODULE_10_react__.Component);Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_defineProperty__.a)(MultiValue,"defaultProps",{cropWithEllipsis:!0});var optionCSS=function(_ref){var isDisabled=_ref.isDisabled,isFocused=_ref.isFocused,isSelected=_ref.isSelected,_ref$theme=_ref.theme,spacing=_ref$theme.spacing,colors=_ref$theme.colors;return{label:"option",backgroundColor:isSelected?colors.primary:isFocused?colors.primary25:"transparent",color:isDisabled?colors.neutral20:isSelected?colors.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*spacing.baseUnit,"px ").concat(3*spacing.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!isDisabled&&(isSelected?colors.primary:colors.primary50)}}},Option=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,isDisabled=props.isDisabled,isFocused=props.isFocused,isSelected=props.isSelected,innerRef=props.innerRef,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("option",props),className:cx({option:!0,"option--is-disabled":isDisabled,"option--is-focused":isFocused,"option--is-selected":isSelected},className),ref:innerRef},innerProps),children)},placeholderCSS=function(_ref){var _ref$theme=_ref.theme,spacing=_ref$theme.spacing;return{label:"placeholder",color:_ref$theme.colors.neutral50,marginLeft:spacing.baseUnit/2,marginRight:spacing.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},Placeholder=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("placeholder",props),className:cx({placeholder:!0},className)},innerProps),children)},css$1=function(_ref){var isDisabled=_ref.isDisabled,_ref$theme=_ref.theme,spacing=_ref$theme.spacing,colors=_ref$theme.colors;return{label:"singleValue",color:isDisabled?colors.neutral40:colors.neutral80,marginLeft:spacing.baseUnit/2,marginRight:spacing.baseUnit/2,maxWidth:"calc(100% - ".concat(2*spacing.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},SingleValue=function(props){var children=props.children,className=props.className,cx=props.cx,getStyles=props.getStyles,isDisabled=props.isDisabled,innerProps=props.innerProps;return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_core__.c)("div",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:getStyles("singleValue",props),className:cx({"single-value":!0,"single-value--is-disabled":isDisabled},className)},innerProps),children)},components={ClearIndicator:ClearIndicator,Control:Control,DropdownIndicator:DropdownIndicator,DownChevron:DownChevron,CrossIcon:CrossIcon,Group:Group,GroupHeading:GroupHeading,IndicatorsContainer:IndicatorsContainer,IndicatorSeparator:IndicatorSeparator,Input:Input,LoadingIndicator:LoadingIndicator,Menu:Menu,MenuList:MenuList,MenuPortal:MenuPortal,LoadingMessage:LoadingMessage,NoOptionsMessage:NoOptionsMessage,MultiValue:MultiValue,MultiValueContainer:MultiValueContainer,MultiValueLabel:MultiValueLabel,MultiValueRemove:MultiValueRemove,Option:Option,Placeholder:Placeholder,SelectContainer:SelectContainer,SingleValue:SingleValue,ValueContainer:ValueContainer},defaultComponents=function(props){return Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectSpread__.a)({},components,props.components)}}).call(__webpack_exports__,__webpack_require__(0))},function(module,__webpack_exports__,__webpack_require__){"use strict";function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}__webpack_exports__.a=_taggedTemplateLiteral},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _objectWithoutProperties(obj,keys){var target={};for(var i in obj)keys.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(obj,i)&&(target[i]=obj[i]);return target}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}Object.defineProperty(exports,"__esModule",{value:!0});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_react=__webpack_require__(3),_react2=_interopRequireDefault(_react),_propTypes=__webpack_require__(10),_propTypes2=_interopRequireDefault(_propTypes),sizerStyle={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},INPUT_PROPS_BLACKLIST=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],cleanInputProps=function(inputProps){return INPUT_PROPS_BLACKLIST.forEach(function(field){return delete inputProps[field]}),inputProps},copyStyles=function(styles,node){node.style.fontSize=styles.fontSize,node.style.fontFamily=styles.fontFamily,node.style.fontWeight=styles.fontWeight,node.style.fontStyle=styles.fontStyle,node.style.letterSpacing=styles.letterSpacing,node.style.textTransform=styles.textTransform},isIE=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),generateId=function(){return isIE?"_"+Math.random().toString(36).substr(2,12):void 0},AutosizeInput=function(_Component){function AutosizeInput(props){_classCallCheck(this,AutosizeInput);var _this=_possibleConstructorReturn(this,(AutosizeInput.__proto__||Object.getPrototypeOf(AutosizeInput)).call(this,props));return _this.inputRef=function(el){_this.input=el,"function"==typeof _this.props.inputRef&&_this.props.inputRef(el)},_this.placeHolderSizerRef=function(el){_this.placeHolderSizer=el},_this.sizerRef=function(el){_this.sizer=el},_this.state={inputWidth:props.minWidth,inputId:props.id||generateId()},_this}return _inherits(AutosizeInput,_Component),_createClass(AutosizeInput,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"UNSAFE_componentWillReceiveProps",value:function(nextProps){var id=nextProps.id;id!==this.props.id&&this.setState({inputId:id||generateId()})}},{key:"componentDidUpdate",value:function(prevProps,prevState){prevState.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var inputStyles=this.input&&window.getComputedStyle(this.input);inputStyles&&(copyStyles(inputStyles,this.sizer),this.placeHolderSizer&&copyStyles(inputStyles,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var newInputWidth=void 0;newInputWidth=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2;newInputWidth+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0,newInputWidth<this.props.minWidth&&(newInputWidth=this.props.minWidth),newInputWidth!==this.state.inputWidth&&this.setState({inputWidth:newInputWidth})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var injectStyles=this.props.injectStyles;return isIE&&injectStyles?_react2.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var sizerValue=[this.props.defaultValue,this.props.value,""].reduce(function(previousValue,currentValue){return null!==previousValue&&void 0!==previousValue?previousValue:currentValue}),wrapperStyle=_extends({},this.props.style);wrapperStyle.display||(wrapperStyle.display="inline-block");var inputStyle=_extends({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),inputProps=_objectWithoutProperties(this.props,[]);return cleanInputProps(inputProps),inputProps.className=this.props.inputClassName,inputProps.id=this.state.inputId,inputProps.style=inputStyle,_react2.default.createElement("div",{className:this.props.className,style:wrapperStyle},this.renderStyles(),_react2.default.createElement("input",_extends({},inputProps,{ref:this.inputRef})),_react2.default.createElement("div",{ref:this.sizerRef,style:sizerStyle},sizerValue),this.props.placeholder?_react2.default.createElement("div",{ref:this.placeHolderSizerRef,style:sizerStyle},this.props.placeholder):null)}}]),AutosizeInput}(_react.Component);AutosizeInput.propTypes={className:_propTypes2.default.string,defaultValue:_propTypes2.default.any,extraWidth:_propTypes2.default.oneOfType([_propTypes2.default.number,_propTypes2.default.string]),id:_propTypes2.default.string,injectStyles:_propTypes2.default.bool,inputClassName:_propTypes2.default.string,inputRef:_propTypes2.default.func,inputStyle:_propTypes2.default.object,minWidth:_propTypes2.default.oneOfType([_propTypes2.default.number,_propTypes2.default.string]),onAutosize:_propTypes2.default.func,onChange:_propTypes2.default.func,placeholder:_propTypes2.default.string,placeholderIsMinWidth:_propTypes2.default.bool,style:_propTypes2.default.object,value:_propTypes2.default.any},AutosizeInput.defaultProps={minWidth:1,injectStyles:!0},exports.default=AutosizeInput},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(process){function preventTouchMove(e){e.preventDefault()}function allowTouchMove(e){e.stopPropagation()}function preventInertiaScroll(){var top=this.scrollTop,totalScroll=this.scrollHeight,currentScroll=top+this.offsetHeight;0===top?this.scrollTop=1:currentScroll===totalScroll&&(this.scrollTop=top-1)}function isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints}__webpack_require__.d(__webpack_exports__,"a",function(){return Select});var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__=__webpack_require__(14),__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__=__webpack_require__(15),__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_toConsumableArray__=__webpack_require__(36),__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectSpread__=__webpack_require__(30),__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__=__webpack_require__(16),__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__=__webpack_require__(17),__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__=__webpack_require__(18),__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__=__webpack_require__(20),__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__=__webpack_require__(21),__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__=__webpack_require__(8),__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__=__webpack_require__(7),__WEBPACK_IMPORTED_MODULE_11_react__=__webpack_require__(3),__WEBPACK_IMPORTED_MODULE_11_react___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_react__),__WEBPACK_IMPORTED_MODULE_12_memoize_one__=__webpack_require__(37),__WEBPACK_IMPORTED_MODULE_13__emotion_core__=__webpack_require__(31),__WEBPACK_IMPORTED_MODULE_14_react_dom__=__webpack_require__(11),__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__=(__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_react_dom__),__webpack_require__(32)),__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__=__webpack_require__(41),__WEBPACK_IMPORTED_MODULE_17__emotion_css__=__webpack_require__(9),diacritics=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],stripDiacritics=function(str){for(var i=0;i<diacritics.length;i++)str=str.replace(diacritics[i].letters,diacritics[i].base);return str},trimString=function(str){return str.replace(/^\s+|\s+$/g,"")},defaultStringify=function(option){return"".concat(option.label," ").concat(option.value)},_ref="production"===process.env.NODE_ENV?{name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"}:{name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVFNIiwiZmlsZSI6IkExMXlUZXh0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8gQGZsb3dcbi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgdHlwZSBFbGVtZW50Q29uZmlnIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vY29yZSc7XG5cbi8vIEFzc2lzdGl2ZSB0ZXh0IHRvIGRlc2NyaWJlIHZpc3VhbCBlbGVtZW50cy4gSGlkZGVuIGZvciBzaWdodGVkIHVzZXJzLlxuY29uc3QgQTExeVRleHQgPSAocHJvcHM6IEVsZW1lbnRDb25maWc8J3NwYW4nPikgPT4gKFxuICAgIDxzcGFuXG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdhMTF5VGV4dCcsXG4gICAgICAgIHpJbmRleDogOTk5OSxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICBjbGlwOiAncmVjdCgxcHgsIDFweCwgMXB4LCAxcHgpJyxcbiAgICAgICAgaGVpZ2h0OiAxLFxuICAgICAgICB3aWR0aDogMSxcbiAgICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICAgIG92ZXJmbG93OiAnaGlkZGVuJyxcbiAgICAgICAgcGFkZGluZzogMCxcbiAgICAgICAgd2hpdGVTcGFjZTogJ25vd3JhcCcsXG4gICAgICB9fVxuICAgICAgey4uLnByb3BzfVxuICAgIC8+XG4pO1xuXG5leHBvcnQgZGVmYXVsdCBBMTF5VGV4dDtcbiJdfQ== */"},A11yText=function(props){return Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__.c)("span",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({css:_ref},props))},DummyInput=function(_Component){function DummyInput(){return Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__.a)(this,DummyInput),Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__.a)(DummyInput).apply(this,arguments))}return Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__.a)(DummyInput,_Component),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__.a)(DummyInput,[{key:"render",value:function(){var _this$props=this.props,innerRef=(_this$props.in,_this$props.out,_this$props.onExited,_this$props.appear,_this$props.enter,_this$props.exit,_this$props.innerRef),props=(_this$props.emotion,Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__.a)(_this$props,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__.c)("input",Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({ref:innerRef},props,{css:Object(__WEBPACK_IMPORTED_MODULE_17__emotion_css__.a)({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBWVEiLCJmaWxlIjoiRHVtbXlJbnB1dC5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vIEBmbG93XG4vKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IENvbXBvbmVudCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuXG5leHBvcnQgZGVmYXVsdCBjbGFzcyBEdW1teUlucHV0IGV4dGVuZHMgQ29tcG9uZW50PGFueT4ge1xuICByZW5kZXIgKCkge1xuICAgIGNvbnN0IHsgaW46IGluUHJvcCwgb3V0LCBvbkV4aXRlZCwgYXBwZWFyLCBlbnRlciwgZXhpdCwgaW5uZXJSZWYsIGVtb3Rpb24sIC4uLnByb3BzIH0gPSB0aGlzLnByb3BzO1xuICAgIHJldHVybihcbiAgICAgIDxpbnB1dFxuICAgICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgICB7Li4ucHJvcHN9XG4gICAgICAgIGNzcz17e1xuICAgICAgICAgIGxhYmVsOiAnZHVtbXlJbnB1dCcsXG4gICAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICAgIGJvcmRlcjogMCxcbiAgICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgICAgcGFkZGluZzogMCxcbiAgICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBkZXNrdG9wXG4gICAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgICAgbGVmdDogLTEwMCxcbiAgICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICAgIHRyYW5zZm9ybTogJ3NjYWxlKDApJyxcbiAgICAgICAgfX1cbiAgICAgIC8+XG4gICAgKTtcbiAgfVxufVxuIl19 */")}))}}]),DummyInput}(__WEBPACK_IMPORTED_MODULE_11_react__.Component),NodeResolver=function(_Component){function NodeResolver(){return Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__.a)(this,NodeResolver),Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__.a)(NodeResolver).apply(this,arguments))}return Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__.a)(NodeResolver,_Component),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__.a)(NodeResolver,[{key:"componentDidMount",value:function(){this.props.innerRef(Object(__WEBPACK_IMPORTED_MODULE_14_react_dom__.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),NodeResolver}(__WEBPACK_IMPORTED_MODULE_11_react__.Component),STYLE_KEYS=["boxSizing","height","overflow","paddingRight","position"],LOCK_STYLES={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"},canUseDOM=!(!window.document||!window.document.createElement),activeScrollLocks=0,ScrollLock=function(_Component){function ScrollLock(){var _getPrototypeOf2,_this;Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__.a)(this,ScrollLock);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return _this=Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,(_getPrototypeOf2=Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__.a)(ScrollLock)).call.apply(_getPrototypeOf2,[this].concat(args))),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"originalStyles",{}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"listenerOptions",{capture:!1,passive:!1}),_this}return Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__.a)(ScrollLock,_Component),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__.a)(ScrollLock,[{key:"componentDidMount",value:function(){var _this2=this;if(canUseDOM){var _this$props=this.props,accountForScrollbars=_this$props.accountForScrollbars,touchScrollTarget=_this$props.touchScrollTarget,target=document.body,targetStyle=target&&target.style;if(accountForScrollbars&&STYLE_KEYS.forEach(function(key){var val=targetStyle&&targetStyle[key];_this2.originalStyles[key]=val}),accountForScrollbars&&activeScrollLocks<1){var currentPadding=parseInt(this.originalStyles.paddingRight,10)||0,clientWidth=document.body?document.body.clientWidth:0,adjustedPadding=window.innerWidth-clientWidth+currentPadding||0;Object.keys(LOCK_STYLES).forEach(function(key){var val=LOCK_STYLES[key];targetStyle&&(targetStyle[key]=val)}),targetStyle&&(targetStyle.paddingRight="".concat(adjustedPadding,"px"))}target&&isTouchDevice()&&(target.addEventListener("touchmove",preventTouchMove,this.listenerOptions),touchScrollTarget&&(touchScrollTarget.addEventListener("touchstart",preventInertiaScroll,this.listenerOptions),touchScrollTarget.addEventListener("touchmove",allowTouchMove,this.listenerOptions))),activeScrollLocks+=1}}},{key:"componentWillUnmount",value:function(){var _this3=this;if(canUseDOM){var _this$props2=this.props,accountForScrollbars=_this$props2.accountForScrollbars,touchScrollTarget=_this$props2.touchScrollTarget,target=document.body,targetStyle=target&&target.style;activeScrollLocks=Math.max(activeScrollLocks-1,0),accountForScrollbars&&activeScrollLocks<1&&STYLE_KEYS.forEach(function(key){var val=_this3.originalStyles[key];targetStyle&&(targetStyle[key]=val)}),target&&isTouchDevice()&&(target.removeEventListener("touchmove",preventTouchMove,this.listenerOptions),touchScrollTarget&&(touchScrollTarget.removeEventListener("touchstart",preventInertiaScroll,this.listenerOptions),touchScrollTarget.removeEventListener("touchmove",allowTouchMove,this.listenerOptions)))}}},{key:"render",value:function(){return null}}]),ScrollLock}(__WEBPACK_IMPORTED_MODULE_11_react__.Component);Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(ScrollLock,"defaultProps",{accountForScrollbars:!0});var _ref$1="production"===process.env.NODE_ENV?{name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"}:{name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbEJsb2NrLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTZEVSIsImZpbGUiOiJTY3JvbGxCbG9jay5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vIEBmbG93XG4vKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IFB1cmVDb21wb25lbnQsIHR5cGUgRWxlbWVudCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuaW1wb3J0IE5vZGVSZXNvbHZlciBmcm9tICcuL05vZGVSZXNvbHZlcic7XG5pbXBvcnQgU2Nyb2xsTG9jayBmcm9tICcuL1Njcm9sbExvY2svaW5kZXgnO1xuXG50eXBlIFByb3BzID0ge1xuICBjaGlsZHJlbjogRWxlbWVudDwqPixcbiAgaXNFbmFibGVkOiBib29sZWFuLFxufTtcbnR5cGUgU3RhdGUgPSB7XG4gIHRvdWNoU2Nyb2xsVGFyZ2V0OiBIVE1MRWxlbWVudCB8IG51bGwsXG59O1xuXG4vLyBOT1RFOlxuLy8gV2Ugc2hvdWxkbid0IG5lZWQgdGhpcyBhZnRlciB1cGRhdGluZyB0byBSZWFjdCB2MTYuMy4wLCB3aGljaCBpbnRyb2R1Y2VzOlxuLy8gLSBjcmVhdGVSZWYoKSBodHRwczovL3JlYWN0anMub3JnL2RvY3MvcmVhY3QtYXBpLmh0bWwjcmVhY3RjcmVhdGVyZWZcbi8vIC0gZm9yd2FyZFJlZigpIGh0dHBzOi8vcmVhY3Rqcy5vcmcvZG9jcy9yZWFjdC1hcGkuaHRtbCNyZWFjdGZvcndhcmRyZWZcblxuZXhwb3J0IGRlZmF1bHQgY2xhc3MgU2Nyb2xsQmxvY2sgZXh0ZW5kcyBQdXJlQ29tcG9uZW50PFByb3BzLCBTdGF0ZT4ge1xuICBzdGF0ZSA9IHsgdG91Y2hTY3JvbGxUYXJnZXQ6IG51bGwgfTtcblxuICAvLyBtdXN0IGJlIGluIHN0YXRlIHRvIHRyaWdnZXIgYSByZS1yZW5kZXIsIG9ubHkgcnVucyBvbmNlIHBlciBpbnN0YW5jZVxuICBnZXRTY3JvbGxUYXJnZXQgPSAocmVmOiBIVE1MRWxlbWVudCkgPT4ge1xuICAgIGlmIChyZWYgPT09IHRoaXMuc3RhdGUudG91Y2hTY3JvbGxUYXJnZXQpIHJldHVybjtcbiAgICB0aGlzLnNldFN0YXRlKHsgdG91Y2hTY3JvbGxUYXJnZXQ6IHJlZiB9KTtcbiAgfTtcblxuICAvLyB0aGlzIHdpbGwgY2xvc2UgdGhlIG1lbnUgd2hlbiBhIHVzZXIgY2xpY2tzIG91dHNpZGVcbiAgYmx1clNlbGVjdElucHV0ID0gKCkgPT4ge1xuICAgIGlmIChkb2N1bWVudC5hY3RpdmVFbGVtZW50KSB7XG4gICAgICBkb2N1bWVudC5hY3RpdmVFbGVtZW50LmJsdXIoKTtcbiAgICB9XG4gIH07XG5cbiAgcmVuZGVyKCkge1xuICAgIGNvbnN0IHsgY2hpbGRyZW4sIGlzRW5hYmxlZCB9ID0gdGhpcy5wcm9wcztcbiAgICBjb25zdCB7IHRvdWNoU2Nyb2xsVGFyZ2V0IH0gPSB0aGlzLnN0YXRlO1xuXG4gICAgLy8gYmFpbCBlYXJseSBpZiBub3QgZW5hYmxlZFxuICAgIGlmICghaXNFbmFibGVkKSByZXR1cm4gY2hpbGRyZW47XG5cbiAgICAvKlxuICAgICAqIERpdlxuICAgICAqIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAqIGJsb2NrcyBzY3JvbGxpbmcgb24gbm9uLWJvZHkgZWxlbWVudHMgYmVoaW5kIHRoZSBtZW51XG5cbiAgICAgKiBOb2RlUmVzb2x2ZXJcbiAgICAgKiAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS1cbiAgICAgKiB3ZSBuZWVkIGEgcmVmZXJlbmNlIHRvIHRoZSBzY3JvbGxhYmxlIGVsZW1lbnQgdG8gXCJ1bmxvY2tcIiBzY3JvbGwgb25cbiAgICAgKiBtb2JpbGUgZGV2aWNlc1xuXG4gICAgICogU2Nyb2xsTG9ja1xuICAgICAqIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAqIGFjdHVhbGx5IGRvZXMgdGhlIHNjcm9sbCBsb2NraW5nXG4gICAgICovXG4gICAgcmV0dXJuIChcbiAgICAgIDxkaXY+XG4gICAgICAgIDxkaXZcbiAgICAgICAgICBvbkNsaWNrPXt0aGlzLmJsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgICA8Tm9kZVJlc29sdmVyIGlubmVyUmVmPXt0aGlzLmdldFNjcm9sbFRhcmdldH0+e2NoaWxkcmVufTwvTm9kZVJlc29sdmVyPlxuICAgICAgICB7dG91Y2hTY3JvbGxUYXJnZXQgPyAoXG4gICAgICAgICAgPFNjcm9sbExvY2sgdG91Y2hTY3JvbGxUYXJnZXQ9e3RvdWNoU2Nyb2xsVGFyZ2V0fSAvPlxuICAgICAgICApIDogbnVsbH1cbiAgICAgIDwvZGl2PlxuICAgICk7XG4gIH1cbn1cbiJdfQ== */"},ScrollBlock=function(_PureComponent){function ScrollBlock(){var _getPrototypeOf2,_this;Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__.a)(this,ScrollBlock);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return _this=Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,(_getPrototypeOf2=Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__.a)(ScrollBlock)).call.apply(_getPrototypeOf2,[this].concat(args))),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"state",{touchScrollTarget:null}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getScrollTarget",function(ref){ref!==_this.state.touchScrollTarget&&_this.setState({touchScrollTarget:ref})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"blurSelectInput",function(){document.activeElement&&document.activeElement.blur()}),_this}return Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__.a)(ScrollBlock,_PureComponent),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__.a)(ScrollBlock,[{key:"render",value:function(){var _this$props=this.props,children=_this$props.children,isEnabled=_this$props.isEnabled,touchScrollTarget=this.state.touchScrollTarget;return isEnabled?Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__.c)("div",null,Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__.c)("div",{onClick:this.blurSelectInput,css:_ref$1}),Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__.c)(NodeResolver,{innerRef:this.getScrollTarget},children),touchScrollTarget?Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__.c)(ScrollLock,{touchScrollTarget:touchScrollTarget}):null):children}}]),ScrollBlock}(__WEBPACK_IMPORTED_MODULE_11_react__.PureComponent),ScrollCaptor=function(_Component){function ScrollCaptor(){var _getPrototypeOf2,_this;Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__.a)(this,ScrollCaptor);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return _this=Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,(_getPrototypeOf2=Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__.a)(ScrollCaptor)).call.apply(_getPrototypeOf2,[this].concat(args))),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"isBottom",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"isTop",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"scrollTarget",void 0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"touchStart",void 0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"cancelScroll",function(event){event.preventDefault(),event.stopPropagation()}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"handleEventDelta",function(event,delta){var _this$props=_this.props,onBottomArrive=_this$props.onBottomArrive,onBottomLeave=_this$props.onBottomLeave,onTopArrive=_this$props.onTopArrive,onTopLeave=_this$props.onTopLeave,_this$scrollTarget=_this.scrollTarget,scrollTop=_this$scrollTarget.scrollTop,scrollHeight=_this$scrollTarget.scrollHeight,clientHeight=_this$scrollTarget.clientHeight,target=_this.scrollTarget,isDeltaPositive=delta>0,availableScroll=scrollHeight-clientHeight-scrollTop,shouldCancelScroll=!1;availableScroll>delta&&_this.isBottom&&(onBottomLeave&&onBottomLeave(event),_this.isBottom=!1),isDeltaPositive&&_this.isTop&&(onTopLeave&&onTopLeave(event),_this.isTop=!1),isDeltaPositive&&delta>availableScroll?(onBottomArrive&&!_this.isBottom&&onBottomArrive(event),target.scrollTop=scrollHeight,shouldCancelScroll=!0,_this.isBottom=!0):!isDeltaPositive&&-delta>scrollTop&&(onTopArrive&&!_this.isTop&&onTopArrive(event),target.scrollTop=0,shouldCancelScroll=!0,_this.isTop=!0),shouldCancelScroll&&_this.cancelScroll(event)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onWheel",function(event){_this.handleEventDelta(event,event.deltaY)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onTouchStart",function(event){_this.touchStart=event.changedTouches[0].clientY}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onTouchMove",function(event){var deltaY=_this.touchStart-event.changedTouches[0].clientY;_this.handleEventDelta(event,deltaY)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getScrollTarget",function(ref){_this.scrollTarget=ref}),_this}return Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__.a)(ScrollCaptor,_Component),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__.a)(ScrollCaptor,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(el){el&&("function"==typeof el.addEventListener&&el.addEventListener("wheel",this.onWheel,!1),"function"==typeof el.addEventListener&&el.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof el.addEventListener&&el.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(el){"function"==typeof el.removeEventListener&&el.removeEventListener("wheel",this.onWheel,!1),"function"==typeof el.removeEventListener&&el.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof el.removeEventListener&&el.removeEventListener("touchmove",this.onTouchMove,!1)}},{key:"render",value:function(){return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(NodeResolver,{innerRef:this.getScrollTarget},this.props.children)}}]),ScrollCaptor}(__WEBPACK_IMPORTED_MODULE_11_react__.Component),ScrollCaptorSwitch=function(_Component2){function ScrollCaptorSwitch(){return Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__.a)(this,ScrollCaptorSwitch),Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__.a)(ScrollCaptorSwitch).apply(this,arguments))}return Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__.a)(ScrollCaptorSwitch,_Component2),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__.a)(ScrollCaptorSwitch,[{key:"render",value:function(){var _this$props2=this.props,isEnabled=_this$props2.isEnabled,props=Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__.a)(_this$props2,["isEnabled"]);return isEnabled?__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ScrollCaptor,props):this.props.children}}]),ScrollCaptorSwitch}(__WEBPACK_IMPORTED_MODULE_11_react__.Component);Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(ScrollCaptorSwitch,"defaultProps",{isEnabled:!0});var instructionsAriaMessage=function(event){var context=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},isSearchable=context.isSearchable,isMulti=context.isMulti,label=context.label,isDisabled=context.isDisabled;switch(event){case"menu":return"Use Up and Down to choose options".concat(isDisabled?"":", press Enter to select the currently focused option",", press Escape to exit the menu, press Tab to select the option and exit the menu.");case"input":return"".concat(label||"Select"," is focused ").concat(isSearchable?",type to refine list":"",", press Down to open the menu, ").concat(isMulti?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},valueEventAriaMessage=function(event,context){var value=context.value,isDisabled=context.isDisabled;if(value)switch(event){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(value,", deselected.");case"select-option":return isDisabled?"option ".concat(value," is disabled. Select another option."):"option ".concat(value,", selected.")}},valueFocusAriaMessage=function(_ref){var focusedValue=_ref.focusedValue,getOptionLabel=_ref.getOptionLabel,selectValue=_ref.selectValue;return"value ".concat(getOptionLabel(focusedValue)," focused, ").concat(selectValue.indexOf(focusedValue)+1," of ").concat(selectValue.length,".")},optionFocusAriaMessage=function(_ref2){var focusedOption=_ref2.focusedOption,getOptionLabel=_ref2.getOptionLabel,options=_ref2.options;return"option ".concat(getOptionLabel(focusedOption)," focused").concat(focusedOption.isDisabled?" disabled":"",", ").concat(options.indexOf(focusedOption)+1," of ").concat(options.length,".")},resultsAriaMessage=function(_ref3){var inputValue=_ref3.inputValue;return"".concat(_ref3.screenReaderMessage).concat(inputValue?" for search term "+inputValue:"",".")},formatGroupLabel=function(group){return group.label},getOptionLabel=function(option){return option.label},getOptionValue=function(option){return option.value},isOptionDisabled=function(option){return!!option.isDisabled},defaultStyles={clearIndicator:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.d,container:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.b,control:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.c,dropdownIndicator:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.e,group:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.h,groupHeading:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.f,indicatorsContainer:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.j,indicatorSeparator:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.g,input:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.i,loadingIndicator:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.m,loadingMessage:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.k,menu:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.n,menuList:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.l,menuPortal:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.o,multiValue:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.p,multiValueLabel:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.q,multiValueRemove:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.r,noOptionsMessage:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.s,option:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.t,placeholder:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.u,singleValue:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.v,valueContainer:__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.w},colors={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing={baseUnit:4,controlHeight:38,menuGutter:8},defaultTheme={borderRadius:4,colors:colors,spacing:spacing},defaultProps={backspaceRemovesValue:!0,blurInputOnSelect:Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.i)(),captureMenuScroll:!Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.i)(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(config){return function(option,rawInput){var _ignoreCase$ignoreAcc=Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectSpread__.a)({ignoreCase:!0,ignoreAccents:!0,stringify:defaultStringify,trim:!0,matchFrom:"any"},config),ignoreCase=_ignoreCase$ignoreAcc.ignoreCase,ignoreAccents=_ignoreCase$ignoreAcc.ignoreAccents,stringify=_ignoreCase$ignoreAcc.stringify,trim=_ignoreCase$ignoreAcc.trim,matchFrom=_ignoreCase$ignoreAcc.matchFrom,input=trim?trimString(rawInput):rawInput,candidate=trim?trimString(stringify(option)):stringify(option);return ignoreCase&&(input=input.toLowerCase(),candidate=candidate.toLowerCase()),ignoreAccents&&(input=stripDiacritics(input),candidate=stripDiacritics(candidate)),"start"===matchFrom?candidate.substr(0,input.length)===input:candidate.indexOf(input)>-1}}(),formatGroupLabel:formatGroupLabel,getOptionLabel:getOptionLabel,getOptionValue:getOptionValue,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:isOptionDisabled,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.d)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(_ref){var count=_ref.count;return"".concat(count," result").concat(1!==count?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},instanceId=1,Select=function(_Component){function Select(_props){var _this;Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_classCallCheck__.a)(this,Select),_this=Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__.a)(this,Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__.a)(Select).call(this,_props)),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"state",{ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"blockOptionHover",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"isComposing",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"clearFocusValueOnUpdate",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"commonProps",void 0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"components",void 0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"hasGroups",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"initialTouchX",0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"initialTouchY",0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"inputIsHiddenAfterUpdate",void 0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"instancePrefix",""),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"openAfterFocus",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"scrollToFocusedOptionOnUpdate",!1),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"userIsDragging",void 0),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"controlRef",null),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getControlRef",function(ref){_this.controlRef=ref}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"focusedOptionRef",null),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getFocusedOptionRef",function(ref){_this.focusedOptionRef=ref}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"menuListRef",null),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getMenuListRef",function(ref){_this.menuListRef=ref}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"inputRef",null),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getInputRef",function(ref){_this.inputRef=ref}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"cacheComponents",function(components){_this.components=Object(__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.x)({components:components})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"focus",_this.focusInput),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"blur",_this.blurInput),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onChange",function(newValue,actionMeta){var _this$props=_this.props,onChange=_this$props.onChange,name=_this$props.name;onChange(newValue,Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectSpread__.a)({},actionMeta,{name:name}))}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"setValue",function(newValue){var action=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",option=arguments.length>2?arguments[2]:void 0,_this$props2=_this.props,closeMenuOnSelect=_this$props2.closeMenuOnSelect,isMulti=_this$props2.isMulti;_this.onInputChange("",{action:"set-value"}),closeMenuOnSelect&&(_this.inputIsHiddenAfterUpdate=!isMulti,_this.onMenuClose()),_this.clearFocusValueOnUpdate=!0,_this.onChange(newValue,{action:action,option:option})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"selectOption",function(newValue){var _this$props3=_this.props,blurInputOnSelect=_this$props3.blurInputOnSelect,isMulti=_this$props3.isMulti,selectValue=_this.state.selectValue;if(isMulti)if(_this.isOptionSelected(newValue,selectValue)){var candidate=_this.getOptionValue(newValue);_this.setValue(selectValue.filter(function(i){return _this.getOptionValue(i)!==candidate}),"deselect-option",newValue),_this.announceAriaLiveSelection({event:"deselect-option",context:{value:_this.getOptionLabel(newValue)}})}else _this.isOptionDisabled(newValue,selectValue)?_this.announceAriaLiveSelection({event:"select-option",context:{value:_this.getOptionLabel(newValue),isDisabled:!0}}):(_this.setValue([].concat(Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_toConsumableArray__.a)(selectValue),[newValue]),"select-option",newValue),_this.announceAriaLiveSelection({event:"select-option",context:{value:_this.getOptionLabel(newValue)}}));else _this.isOptionDisabled(newValue,selectValue)?_this.announceAriaLiveSelection({event:"select-option",context:{value:_this.getOptionLabel(newValue),isDisabled:!0}}):(_this.setValue(newValue,"select-option"),_this.announceAriaLiveSelection({event:"select-option",context:{value:_this.getOptionLabel(newValue)}}));blurInputOnSelect&&_this.blurInput()}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"removeValue",function(removedValue){var selectValue=_this.state.selectValue,candidate=_this.getOptionValue(removedValue),newValue=selectValue.filter(function(i){return _this.getOptionValue(i)!==candidate});_this.onChange(newValue.length?newValue:null,{action:"remove-value",removedValue:removedValue}),_this.announceAriaLiveSelection({event:"remove-value",context:{value:removedValue?_this.getOptionLabel(removedValue):""}}),_this.focusInput()}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"clearValue",function(){var isMulti=_this.props.isMulti;_this.onChange(isMulti?[]:null,{action:"clear"})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"popValue",function(){var selectValue=_this.state.selectValue,lastSelectedValue=selectValue[selectValue.length-1],newValue=selectValue.slice(0,selectValue.length-1);_this.announceAriaLiveSelection({event:"pop-value",context:{value:lastSelectedValue?_this.getOptionLabel(lastSelectedValue):""}}),_this.onChange(newValue.length?newValue:null,{action:"pop-value",removedValue:lastSelectedValue})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getOptionLabel",function(data){return _this.props.getOptionLabel(data)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getOptionValue",function(data){return _this.props.getOptionValue(data)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getStyles",function(key,props){var base=defaultStyles[key](props);base.boxSizing="border-box";var custom=_this.props.styles[key];return custom?custom(base,props):base}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getElementId",function(element){return"".concat(_this.instancePrefix,"-").concat(element)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"getActiveDescendentId",function(){var menuIsOpen=_this.props.menuIsOpen,_this$state=_this.state,menuOptions=_this$state.menuOptions,focusedOption=_this$state.focusedOption;if(focusedOption&&menuIsOpen){var index=menuOptions.focusable.indexOf(focusedOption),option=menuOptions.render[index];return option&&option.key}}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"announceAriaLiveSelection",function(_ref2){var event=_ref2.event,context=_ref2.context;_this.setState({ariaLiveSelection:valueEventAriaMessage(event,context)})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"announceAriaLiveContext",function(_ref3){var event=_ref3.event,context=_ref3.context;_this.setState({ariaLiveContext:instructionsAriaMessage(event,Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectSpread__.a)({},context,{label:_this.props["aria-label"]}))})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onMenuMouseDown",function(event){0===event.button&&(event.stopPropagation(),event.preventDefault(),_this.focusInput())}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onMenuMouseMove",function(event){_this.blockOptionHover=!1}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onControlMouseDown",function(event){var openMenuOnClick=_this.props.openMenuOnClick;_this.state.isFocused?_this.props.menuIsOpen?"INPUT"!==event.target.tagName&&_this.onMenuClose():openMenuOnClick&&_this.openMenu("first"):(openMenuOnClick&&(_this.openAfterFocus=!0),_this.focusInput()),"INPUT"!==event.target.tagName&&event.preventDefault()}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onDropdownIndicatorMouseDown",function(event){if(!(event&&"mousedown"===event.type&&0!==event.button||_this.props.isDisabled)){var _this$props4=_this.props,isMulti=_this$props4.isMulti,menuIsOpen=_this$props4.menuIsOpen;_this.focusInput(),menuIsOpen?(_this.inputIsHiddenAfterUpdate=!isMulti,_this.onMenuClose()):_this.openMenu("first"),event.preventDefault(),event.stopPropagation()}}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onClearIndicatorMouseDown",function(event){event&&"mousedown"===event.type&&0!==event.button||(_this.clearValue(),event.stopPropagation(),_this.openAfterFocus=!1,"touchend"===event.type?_this.focusInput():setTimeout(function(){return _this.focusInput()}))}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onScroll",function(event){"boolean"==typeof _this.props.closeMenuOnScroll?event.target instanceof HTMLElement&&Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.e)(event.target)&&_this.props.onMenuClose():"function"==typeof _this.props.closeMenuOnScroll&&_this.props.closeMenuOnScroll(event)&&_this.props.onMenuClose()}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onCompositionStart",function(){_this.isComposing=!0}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onCompositionEnd",function(){_this.isComposing=!1}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onTouchStart",function(_ref4){var touches=_ref4.touches,touch=touches.item(0);touch&&(_this.initialTouchX=touch.clientX,_this.initialTouchY=touch.clientY,_this.userIsDragging=!1)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onTouchMove",function(_ref5){var touches=_ref5.touches,touch=touches.item(0);if(touch){var deltaX=Math.abs(touch.clientX-_this.initialTouchX),deltaY=Math.abs(touch.clientY-_this.initialTouchY);_this.userIsDragging=deltaX>5||deltaY>5}}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onTouchEnd",function(event){_this.userIsDragging||(_this.controlRef&&!_this.controlRef.contains(event.target)&&_this.menuListRef&&!_this.menuListRef.contains(event.target)&&_this.blurInput(),_this.initialTouchX=0,_this.initialTouchY=0)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onControlTouchEnd",function(event){_this.userIsDragging||_this.onControlMouseDown(event)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onClearIndicatorTouchEnd",function(event){_this.userIsDragging||_this.onClearIndicatorMouseDown(event)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onDropdownIndicatorTouchEnd",function(event){_this.userIsDragging||_this.onDropdownIndicatorMouseDown(event)}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"handleInputChange",function(event){var inputValue=event.currentTarget.value;_this.inputIsHiddenAfterUpdate=!1,_this.onInputChange(inputValue,{action:"input-change"}),_this.onMenuOpen()}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onInputFocus",function(event){var _this$props5=_this.props,isSearchable=_this$props5.isSearchable,isMulti=_this$props5.isMulti;_this.props.onFocus&&_this.props.onFocus(event),_this.inputIsHiddenAfterUpdate=!1,_this.announceAriaLiveContext({event:"input",context:{isSearchable:isSearchable,isMulti:isMulti}}),_this.setState({isFocused:!0}),(_this.openAfterFocus||_this.props.openMenuOnFocus)&&_this.openMenu("first"),_this.openAfterFocus=!1}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onInputBlur",function(event){if(_this.menuListRef&&_this.menuListRef.contains(document.activeElement))return void _this.inputRef.focus();_this.props.onBlur&&_this.props.onBlur(event),_this.onInputChange("",{action:"input-blur"}),_this.onMenuClose(),_this.setState({focusedValue:null,isFocused:!1})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onOptionHover",function(focusedOption){_this.blockOptionHover||_this.state.focusedOption===focusedOption||_this.setState({focusedOption:focusedOption})}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"shouldHideSelectedOptions",function(){var _this$props6=_this.props,hideSelectedOptions=_this$props6.hideSelectedOptions,isMulti=_this$props6.isMulti;return void 0===hideSelectedOptions?isMulti:hideSelectedOptions}),Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this)),"onKeyDown",function(event){var _this$props7=_this.props,isMulti=_this$props7.isMulti,backspaceRemovesValue=_this$props7.backspaceRemovesValue,escapeClearsValue=_this$props7.escapeClearsValue,inputValue=_this$props7.inputValue,isClearable=_this$props7.isClearable,isDisabled=_this$props7.isDisabled,menuIsOpen=_this$props7.menuIsOpen,onKeyDown=_this$props7.onKeyDown,tabSelectsValue=_this$props7.tabSelectsValue,openMenuOnFocus=_this$props7.openMenuOnFocus,_this$state2=_this.state,focusedOption=_this$state2.focusedOption,focusedValue=_this$state2.focusedValue,selectValue=_this$state2.selectValue;if(!(isDisabled||"function"==typeof onKeyDown&&(onKeyDown(event),event.defaultPrevented))){switch(_this.blockOptionHover=!0,event.key){case"ArrowLeft":if(!isMulti||inputValue)return;_this.focusValue("previous");break;case"ArrowRight":if(!isMulti||inputValue)return;_this.focusValue("next");break;case"Delete":case"Backspace":if(inputValue)return;if(focusedValue)_this.removeValue(focusedValue);else{if(!backspaceRemovesValue)return;isMulti?_this.popValue():isClearable&&_this.clearValue()}break;case"Tab":if(_this.isComposing)return;if(event.shiftKey||!menuIsOpen||!tabSelectsValue||!focusedOption||openMenuOnFocus&&_this.isOptionSelected(focusedOption,selectValue))return;_this.selectOption(focusedOption);break;case"Enter":if(229===event.keyCode)break;if(menuIsOpen){if(!focusedOption)return;if(_this.isComposing)return;_this.selectOption(focusedOption);break}return;case"Escape":menuIsOpen?(_this.inputIsHiddenAfterUpdate=!1,_this.onInputChange("",{action:"menu-close"}),_this.onMenuClose()):isClearable&&escapeClearsValue&&_this.clearValue();break;case" ":if(inputValue)return;if(!menuIsOpen){_this.openMenu("first");break}if(!focusedOption)return;_this.selectOption(focusedOption);break;case"ArrowUp":menuIsOpen?_this.focusOption("up"):_this.openMenu("last");break;case"ArrowDown":menuIsOpen?_this.focusOption("down"):_this.openMenu("first");break;case"PageUp":if(!menuIsOpen)return;_this.focusOption("pageup");break;case"PageDown":if(!menuIsOpen)return;_this.focusOption("pagedown");break;case"Home":if(!menuIsOpen)return;_this.focusOption("first");break;case"End":if(!menuIsOpen)return;_this.focusOption("last");break;default:return}event.preventDefault()}});var value=_props.value;_this.cacheComponents=Object(__WEBPACK_IMPORTED_MODULE_12_memoize_one__.a)(_this.cacheComponents,__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.y).bind(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_assertThisInitialized__.a)(_this))),_this.cacheComponents(_props.components),_this.instancePrefix="react-select-"+(_this.props.instanceId||++instanceId);var _selectValue=Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.f)(value),_menuOptions=_props.menuIsOpen?_this.buildMenuOptions(_props,_selectValue):{render:[],focusable:[]};return _this.state.menuOptions=_menuOptions,_this.state.selectValue=_selectValue,_this}return Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__.a)(Select,_Component),Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_createClass__.a)(Select,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"UNSAFE_componentWillReceiveProps",value:function(nextProps){var _this$props8=this.props,options=_this$props8.options,value=_this$props8.value,menuIsOpen=_this$props8.menuIsOpen,inputValue=_this$props8.inputValue;if(this.cacheComponents(nextProps.components),nextProps.value!==value||nextProps.options!==options||nextProps.menuIsOpen!==menuIsOpen||nextProps.inputValue!==inputValue){var selectValue=Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.f)(nextProps.value),menuOptions=nextProps.menuIsOpen?this.buildMenuOptions(nextProps,selectValue):{render:[],focusable:[]},focusedValue=this.getNextFocusedValue(selectValue),focusedOption=this.getNextFocusedOption(menuOptions.focusable);this.setState({menuOptions:menuOptions,selectValue:selectValue,focusedOption:focusedOption,focusedValue:focusedValue})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(prevProps){var _this$props9=this.props,isDisabled=_this$props9.isDisabled,menuIsOpen=_this$props9.menuIsOpen,isFocused=this.state.isFocused;(isFocused&&!isDisabled&&prevProps.isDisabled||isFocused&&menuIsOpen&&!prevProps.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&Object(__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.h)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var _this$props10=this.props,isSearchable=_this$props10.isSearchable,isMulti=_this$props10.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:isSearchable,isMulti:isMulti}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(newValue,actionMeta){this.props.onInputChange(newValue,actionMeta)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(focusOption){var _this$state3=this.state,menuOptions=_this$state3.menuOptions,selectValue=_this$state3.selectValue,isFocused=_this$state3.isFocused,isMulti=this.props.isMulti,openAtIndex="first"===focusOption?0:menuOptions.focusable.length-1;if(!isMulti){var selectedIndex=menuOptions.focusable.indexOf(selectValue[0]);selectedIndex>-1&&(openAtIndex=selectedIndex)}this.scrollToFocusedOptionOnUpdate=!(isFocused&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.onMenuOpen(),this.setState({focusedValue:null,focusedOption:menuOptions.focusable[openAtIndex]}),this.announceAriaLiveContext({event:"menu"})}},{key:"focusValue",value:function(direction){var _this$props11=this.props,isMulti=_this$props11.isMulti,isSearchable=_this$props11.isSearchable,_this$state4=this.state,selectValue=_this$state4.selectValue,focusedValue=_this$state4.focusedValue;if(isMulti){this.setState({focusedOption:null});var focusedIndex=selectValue.indexOf(focusedValue);focusedValue||(focusedIndex=-1,this.announceAriaLiveContext({event:"value"}));var lastIndex=selectValue.length-1,nextFocus=-1;if(selectValue.length){switch(direction){case"previous":nextFocus=0===focusedIndex?0:-1===focusedIndex?lastIndex:focusedIndex-1;break;case"next":focusedIndex>-1&&focusedIndex<lastIndex&&(nextFocus=focusedIndex+1)}-1===nextFocus&&this.announceAriaLiveContext({event:"input",context:{isSearchable:isSearchable,isMulti:isMulti}}),this.setState({inputIsHidden:-1!==nextFocus,focusedValue:selectValue[nextFocus]})}}}},{key:"focusOption",value:function(){var direction=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",pageSize=this.props.pageSize,_this$state5=this.state,focusedOption=_this$state5.focusedOption,menuOptions=_this$state5.menuOptions,options=menuOptions.focusable;if(options.length){var nextFocus=0,focusedIndex=options.indexOf(focusedOption);focusedOption||(focusedIndex=-1,this.announceAriaLiveContext({event:"menu"})),"up"===direction?nextFocus=focusedIndex>0?focusedIndex-1:options.length-1:"down"===direction?nextFocus=(focusedIndex+1)%options.length:"pageup"===direction?(nextFocus=focusedIndex-pageSize)<0&&(nextFocus=0):"pagedown"===direction?(nextFocus=focusedIndex+pageSize)>options.length-1&&(nextFocus=options.length-1):"last"===direction&&(nextFocus=options.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:options[nextFocus],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:isOptionDisabled(options[nextFocus])}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(defaultTheme):Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectSpread__.a)({},defaultTheme,this.props.theme):defaultTheme}},{key:"getCommonProps",value:function(){var clearValue=this.clearValue,getStyles=this.getStyles,setValue=this.setValue,selectOption=this.selectOption,props=this.props,classNamePrefix=props.classNamePrefix,isMulti=props.isMulti,isRtl=props.isRtl,options=props.options,selectValue=this.state.selectValue,hasValue=this.hasValue(),getValue=function(){return selectValue};return{cx:__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.j.bind(null,classNamePrefix),clearValue:clearValue,getStyles:getStyles,getValue:getValue,hasValue:hasValue,isMulti:isMulti,isRtl:isRtl,options:options,selectOption:selectOption,setValue:setValue,selectProps:props,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(nextSelectValue){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var _this$state6=this.state,focusedValue=_this$state6.focusedValue,lastSelectValue=_this$state6.selectValue,lastFocusedIndex=lastSelectValue.indexOf(focusedValue);if(lastFocusedIndex>-1){if(nextSelectValue.indexOf(focusedValue)>-1)return focusedValue;if(lastFocusedIndex<nextSelectValue.length)return nextSelectValue[lastFocusedIndex]}return null}},{key:"getNextFocusedOption",value:function(options){var lastFocusedOption=this.state.focusedOption;return lastFocusedOption&&options.indexOf(lastFocusedOption)>-1?lastFocusedOption:options[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var _this$props12=this.props,isClearable=_this$props12.isClearable,isMulti=_this$props12.isMulti;return void 0===isClearable?isMulti:isClearable}},{key:"isOptionDisabled",value:function(option,selectValue){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(option,selectValue)}},{key:"isOptionSelected",value:function(option,selectValue){var _this2=this;if(selectValue.indexOf(option)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(option,selectValue);var candidate=this.getOptionValue(option);return selectValue.some(function(i){return _this2.getOptionValue(i)===candidate})}},{key:"filterOption",value:function(option,inputValue){return!this.props.filterOption||this.props.filterOption(option,inputValue)}},{key:"formatOptionLabel",value:function(data,context){if("function"==typeof this.props.formatOptionLabel){var inputValue=this.props.inputValue,selectValue=this.state.selectValue;return this.props.formatOptionLabel(data,{context:context,inputValue:inputValue,selectValue:selectValue})}return this.getOptionLabel(data)}},{key:"formatGroupLabel",value:function(data){return this.props.formatGroupLabel(data)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"buildMenuOptions",value:function(props,selectValue){var _this3=this,_props$inputValue=props.inputValue,inputValue=void 0===_props$inputValue?"":_props$inputValue,options=props.options,toOption=function(option,id){var isDisabled=_this3.isOptionDisabled(option,selectValue),isSelected=_this3.isOptionSelected(option,selectValue),label=_this3.getOptionLabel(option),value=_this3.getOptionValue(option);if(!(_this3.shouldHideSelectedOptions()&&isSelected||!_this3.filterOption({label:label,value:value,data:option},inputValue))){var onHover=isDisabled?void 0:function(){return _this3.onOptionHover(option)},onSelect=isDisabled?void 0:function(){return _this3.selectOption(option)},optionId="".concat(_this3.getElementId("option"),"-").concat(id);return{innerProps:{id:optionId,onClick:onSelect,onMouseMove:onHover,onMouseOver:onHover,tabIndex:-1},data:option,isDisabled:isDisabled,isSelected:isSelected,key:optionId,label:label,type:"option",value:value}}};return options.reduce(function(acc,item,itemIndex){if(item.options){_this3.hasGroups||(_this3.hasGroups=!0);var items=item.options,children=items.map(function(child,i){var option=toOption(child,"".concat(itemIndex,"-").concat(i));return option&&acc.focusable.push(child),option}).filter(Boolean);if(children.length){var groupId="".concat(_this3.getElementId("group"),"-").concat(itemIndex);acc.render.push({type:"group",key:groupId,data:item,options:children})}}else{var option=toOption(item,"".concat(itemIndex));option&&(acc.render.push(option),acc.focusable.push(item))}return acc},{render:[],focusable:[]})}},{key:"constructAriaLiveMessage",value:function(){var _this$state7=this.state,ariaLiveContext=_this$state7.ariaLiveContext,selectValue=_this$state7.selectValue,focusedValue=_this$state7.focusedValue,focusedOption=_this$state7.focusedOption,_this$props13=this.props,options=_this$props13.options,menuIsOpen=_this$props13.menuIsOpen,inputValue=_this$props13.inputValue,screenReaderStatus=_this$props13.screenReaderStatus,focusedValueMsg=focusedValue?valueFocusAriaMessage({focusedValue:focusedValue,getOptionLabel:this.getOptionLabel,selectValue:selectValue}):"",focusedOptionMsg=focusedOption&&menuIsOpen?optionFocusAriaMessage({focusedOption:focusedOption,getOptionLabel:this.getOptionLabel,options:options}):"",resultsMsg=resultsAriaMessage({inputValue:inputValue,screenReaderMessage:screenReaderStatus({count:this.countOptions()})});return"".concat(focusedValueMsg," ").concat(focusedOptionMsg," ").concat(resultsMsg," ").concat(ariaLiveContext)}},{key:"renderInput",value:function(){var _this$props14=this.props,isDisabled=_this$props14.isDisabled,isSearchable=_this$props14.isSearchable,inputId=_this$props14.inputId,inputValue=_this$props14.inputValue,tabIndex=_this$props14.tabIndex,Input=this.components.Input,inputIsHidden=this.state.inputIsHidden,id=inputId||this.getElementId("input");if(!isSearchable)return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(DummyInput,{id:id,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:__WEBPACK_IMPORTED_MODULE_15__chunk_39d3fda8_browser_esm_js__.k,onFocus:this.onInputFocus,readOnly:!0,disabled:isDisabled,tabIndex:tabIndex,value:""});var ariaAttributes={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]},_this$commonProps=this.commonProps,cx=_this$commonProps.cx,theme=_this$commonProps.theme,selectProps=_this$commonProps.selectProps;return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Input,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:cx,getStyles:this.getStyles,id:id,innerRef:this.getInputRef,isDisabled:isDisabled,isHidden:inputIsHidden,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:selectProps,spellCheck:"false",tabIndex:tabIndex,theme:theme,type:"text",value:inputValue},ariaAttributes))}},{key:"renderPlaceholderOrValue",value:function(){var _this4=this,_this$components=this.components,MultiValue=_this$components.MultiValue,MultiValueContainer=_this$components.MultiValueContainer,MultiValueLabel=_this$components.MultiValueLabel,MultiValueRemove=_this$components.MultiValueRemove,SingleValue=_this$components.SingleValue,Placeholder=_this$components.Placeholder,commonProps=this.commonProps,_this$props15=this.props,controlShouldRenderValue=_this$props15.controlShouldRenderValue,isDisabled=_this$props15.isDisabled,isMulti=_this$props15.isMulti,inputValue=_this$props15.inputValue,placeholder=_this$props15.placeholder,_this$state8=this.state,selectValue=_this$state8.selectValue,focusedValue=_this$state8.focusedValue,isFocused=_this$state8.isFocused;if(!this.hasValue()||!controlShouldRenderValue)return inputValue?null:__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Placeholder,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{key:"placeholder",isDisabled:isDisabled,isFocused:isFocused}),placeholder);if(isMulti){return selectValue.map(function(opt,index){var isOptionFocused=opt===focusedValue;return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(MultiValue,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{components:{Container:MultiValueContainer,Label:MultiValueLabel,Remove:MultiValueRemove},isFocused:isOptionFocused,isDisabled:isDisabled,key:_this4.getOptionValue(opt),index:index,removeProps:{onClick:function(){return _this4.removeValue(opt)},onTouchEnd:function(){return _this4.removeValue(opt)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:opt}),_this4.formatOptionLabel(opt,"value"))})}if(inputValue)return null;var singleValue=selectValue[0];return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(SingleValue,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{data:singleValue,isDisabled:isDisabled}),this.formatOptionLabel(singleValue,"value"))}},{key:"renderClearIndicator",value:function(){var ClearIndicator=this.components.ClearIndicator,commonProps=this.commonProps,_this$props16=this.props,isDisabled=_this$props16.isDisabled,isLoading=_this$props16.isLoading,isFocused=this.state.isFocused;if(!this.isClearable()||!ClearIndicator||isDisabled||!this.hasValue()||isLoading)return null;var innerProps={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ClearIndicator,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{innerProps:innerProps,isFocused:isFocused}))}},{key:"renderLoadingIndicator",value:function(){var LoadingIndicator=this.components.LoadingIndicator,commonProps=this.commonProps,_this$props17=this.props,isDisabled=_this$props17.isDisabled,isLoading=_this$props17.isLoading,isFocused=this.state.isFocused;if(!LoadingIndicator||!isLoading)return null;var innerProps={"aria-hidden":"true"};return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(LoadingIndicator,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{innerProps:innerProps,isDisabled:isDisabled,isFocused:isFocused}))}},{key:"renderIndicatorSeparator",value:function(){var _this$components2=this.components,DropdownIndicator=_this$components2.DropdownIndicator,IndicatorSeparator=_this$components2.IndicatorSeparator;if(!DropdownIndicator||!IndicatorSeparator)return null;var commonProps=this.commonProps,isDisabled=this.props.isDisabled,isFocused=this.state.isFocused;return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(IndicatorSeparator,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{isDisabled:isDisabled,isFocused:isFocused}))}},{key:"renderDropdownIndicator",value:function(){var DropdownIndicator=this.components.DropdownIndicator;if(!DropdownIndicator)return null;var commonProps=this.commonProps,isDisabled=this.props.isDisabled,isFocused=this.state.isFocused,innerProps={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(DropdownIndicator,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{innerProps:innerProps,isDisabled:isDisabled,isFocused:isFocused}))}},{key:"renderMenu",value:function(){var _this5=this,_this$components3=this.components,Group=_this$components3.Group,GroupHeading=_this$components3.GroupHeading,Menu=_this$components3.Menu,MenuList=_this$components3.MenuList,MenuPortal=_this$components3.MenuPortal,LoadingMessage=_this$components3.LoadingMessage,NoOptionsMessage=_this$components3.NoOptionsMessage,Option=_this$components3.Option,commonProps=this.commonProps,_this$state9=this.state,focusedOption=_this$state9.focusedOption,menuOptions=_this$state9.menuOptions,_this$props18=this.props,captureMenuScroll=_this$props18.captureMenuScroll,inputValue=_this$props18.inputValue,isLoading=_this$props18.isLoading,loadingMessage=_this$props18.loadingMessage,minMenuHeight=_this$props18.minMenuHeight,maxMenuHeight=_this$props18.maxMenuHeight,menuIsOpen=_this$props18.menuIsOpen,menuPlacement=_this$props18.menuPlacement,menuPosition=_this$props18.menuPosition,menuPortalTarget=_this$props18.menuPortalTarget,menuShouldBlockScroll=_this$props18.menuShouldBlockScroll,menuShouldScrollIntoView=_this$props18.menuShouldScrollIntoView,noOptionsMessage=_this$props18.noOptionsMessage,onMenuScrollToTop=_this$props18.onMenuScrollToTop,onMenuScrollToBottom=_this$props18.onMenuScrollToBottom;if(!menuIsOpen)return null;var menuUI,render=function(props){var isFocused=focusedOption===props.data;return props.innerRef=isFocused?_this5.getFocusedOptionRef:void 0,__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Option,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,props,{isFocused:isFocused}),_this5.formatOptionLabel(props.data,"menu"))};if(this.hasOptions())menuUI=menuOptions.render.map(function(item){if("group"===item.type){var group=(item.type,Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__.a)(item,["type"])),headingId="".concat(item.key,"-heading");return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Group,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,group,{Heading:GroupHeading,headingProps:{id:headingId},label:_this5.formatGroupLabel(item.data)}),item.options.map(function(option){return render(option)}))}if("option"===item.type)return render(item)});else if(isLoading){var message=loadingMessage({inputValue:inputValue});if(null===message)return null;menuUI=__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(LoadingMessage,commonProps,message)}else{var _message=noOptionsMessage({inputValue:inputValue});if(null===_message)return null;menuUI=__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(NoOptionsMessage,commonProps,_message)}var menuPlacementProps={minMenuHeight:minMenuHeight,maxMenuHeight:maxMenuHeight,menuPlacement:menuPlacement,menuPosition:menuPosition,menuShouldScrollIntoView:menuShouldScrollIntoView},menuElement=__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_16__chunk_80640036_browser_esm_js__.a,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,menuPlacementProps),function(_ref6){var ref=_ref6.ref,_ref6$placerProps=_ref6.placerProps,placement=_ref6$placerProps.placement,maxHeight=_ref6$placerProps.maxHeight;return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Menu,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,menuPlacementProps,{innerRef:ref,innerProps:{onMouseDown:_this5.onMenuMouseDown,onMouseMove:_this5.onMenuMouseMove},isLoading:isLoading,placement:placement}),__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ScrollCaptorSwitch,{isEnabled:captureMenuScroll,onTopArrive:onMenuScrollToTop,onBottomArrive:onMenuScrollToBottom},__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ScrollBlock,{isEnabled:menuShouldBlockScroll},__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(MenuList,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{innerRef:_this5.getMenuListRef,isLoading:isLoading,maxHeight:maxHeight}),menuUI))))});return menuPortalTarget||"fixed"===menuPosition?__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(MenuPortal,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{appendTo:menuPortalTarget,controlElement:this.controlRef,menuPlacement:menuPlacement,menuPosition:menuPosition}),menuElement):menuElement}},{key:"renderFormField",value:function(){var _this6=this,_this$props19=this.props,delimiter=_this$props19.delimiter,isDisabled=_this$props19.isDisabled,isMulti=_this$props19.isMulti,name=_this$props19.name,selectValue=this.state.selectValue;if(name&&!isDisabled){if(isMulti){if(delimiter){var value=selectValue.map(function(opt){return _this6.getOptionValue(opt)}).join(delimiter);return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input",{name:name,type:"hidden",value:value})}var input=selectValue.length>0?selectValue.map(function(opt,i){return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input",{key:"i-".concat(i),name:name,type:"hidden",value:_this6.getOptionValue(opt)})}):__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input",{name:name,type:"hidden"});return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("div",null,input)}var _value=selectValue[0]?this.getOptionValue(selectValue[0]):"";return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input",{name:name,type:"hidden",value:_value})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(A11yText,{"aria-live":"polite"},__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("p",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("p",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var _this$components4=this.components,Control=_this$components4.Control,IndicatorsContainer=_this$components4.IndicatorsContainer,SelectContainer=_this$components4.SelectContainer,ValueContainer=_this$components4.ValueContainer,_this$props20=this.props,className=_this$props20.className,id=_this$props20.id,isDisabled=_this$props20.isDisabled,menuIsOpen=_this$props20.menuIsOpen,isFocused=this.state.isFocused,commonProps=this.commonProps=this.getCommonProps();return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(SelectContainer,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{className:className,innerProps:{id:id,onKeyDown:this.onKeyDown},isDisabled:isDisabled,isFocused:isFocused}),this.renderLiveRegion(),__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Control,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:isDisabled,isFocused:isFocused,menuIsOpen:menuIsOpen}),__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ValueContainer,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{isDisabled:isDisabled}),this.renderPlaceholderOrValue(),this.renderInput()),__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(IndicatorsContainer,Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__.a)({},commonProps,{isDisabled:isDisabled}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),Select}(__WEBPACK_IMPORTED_MODULE_11_react__.Component);Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_defineProperty__.a)(Select,"defaultProps",defaultProps)}).call(__webpack_exports__,__webpack_require__(0))},function(module,__webpack_exports__,__webpack_require__){"use strict";Object.defineProperty(__webpack_exports__,"__esModule",{value:!0});var __WEBPACK_IMPORTED_MODULE_0__App__=__webpack_require__(46);!function waitForEl(selector,callback){document.getElementById("analogwp-templates")?callback():setTimeout(function(){window.requestAnimationFrame(function(){waitForEl(selector,callback)})},1e3)}(document.getElementById("analogwp-templates"),function(){if(window.AGWP&&window.AGWP.wp_version&&window.AGWP.wp_version>="6.2"){(0,wp.element.createRoot)(document.getElementById("analogwp-templates")).render(React.createElement(__WEBPACK_IMPORTED_MODULE_0__App__.a,null))}else{(0,wp.element.render)(React.createElement(__WEBPACK_IMPORTED_MODULE_0__App__.a,null),document.getElementById("analogwp-templates"))}})},function(module,__webpack_exports__,__webpack_require__){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(iter){if(Symbol.iterator in Object(iter)||"[object Arguments]"===Object.prototype.toString.call(iter))return Array.from(iter)}function _arrayWithoutHoles(arr){if(Array.isArray(arr)){for(var i=0,arr2=new Array(arr.length);i<arr.length;i++)arr2[i]=arr[i];return arr2}}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}var gen=fn.apply(self,args);_next(void 0)})}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _possibleConstructorReturn(self,call){return!call||"object"!==_typeof(call)&&"function"!=typeof call?_assertThisInitialized(self):call}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _templateObject(){var data=_taggedTemplateLiteral(["\n\tmargin: 0 0 0 -20px;\n\t-webkit-font-smoothing: antialiased;\n\t-moz-osx-font-smoothing: grayscale;\n\tfont-size: 13px;\n\tposition: relative;\n\n\t--ang-accent: rgb(0, 112, 167);\n\n\t.ang-notices {\n\t\tposition: fixed;\n\t\tright: 0;\n\t\ttop: 75px;\n\t\tpadding: 8px;\n\t\tz-index: 100000;\n\t}\n\n\t.components-form-toggle.is-checked .components-form-toggle__track {\n\t\tbackground-color: var(--ang-primary);\n\t}\n\n\t.components-form-toggle .components-form-toggle__input:focus + .components-form-toggle__track {\n\t\tbox-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ang-primary);\n\t}\n\n\t.ang-button {\n\t\tfont-size: 14.22px;\n\t\tfont-weight: bold;\n\t\ttext-align: center;\n\t\tborder-radius: 4px;\n\t\tcolor: #fff;\n\t\tbackground: ",";\n\t\tpadding: 12px 24px;\n\t\tdisplay: inline-flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tborder: none;\n\t\toutline: 0;\n\t\tcursor: pointer;\n\t\ttransition: all 200ms ease-in;\n\t\tmin-width: 100px;\n\t\ttext-decoration: none;\n\t\tbox-sizing: border-box;\n\t\theight: auto;\n\t\ta {\n\t\t\tcolor: #fff !important;\n\t\t\ttext-decoration: none;\n\t\t}\n\n\t\t&.secondary {\n\t\t\tbackground: #000222;\n\t\t\tborder-radius: 0;\n\t\t\ttext-transform: uppercase;\n\t\t\tfont-size: 12px;\n\t\t}\n\n\t\t&:disabled {\n\t\t\tcursor: not-allowed;\n\t\t\topacity: 0.4;\n\t\t\tfilter: grayscale(1);\n\t\t}\n\t}\n\n\ta {\n\t\toutline: 0;\n\t\tbox-shadow: none;\n\t}\n\n\t.button-plain {\n\t\tpadding: 0;\n\t\tmargin: 0;\n\t\tborder: none;\n\t\tborder-radius: 0;\n\t\tbox-shadow: none;\n\t\tcursor: pointer;\n\t\t-webkit-appearance: none;\n\t\tappearance: none;\n\t\toutline: 0;\n\t\tbackground: transparent;\n\t\tfont-weight: bold;\n\t\tcolor: #060606;\n\t\tfont-size: 14.22px;\n\t}\n\n\n\tbutton {\n\t\tfont-family: inherit;\n\t}\n\n\t.button-accent {\n\t\tbackground: var(--ang-accent);\n\t\tborder: 0;\n\t\tborder-radius: 0;\n\t\ttext-transform: uppercase;\n\t\tfont-size: 12px;\n\t\tletter-spacing: 1px;\n\t\tfont-weight: bold;\n\t\tbox-shadow: none;\n\t\ttext-shadow: none;\n\t\tcolor: #fff;\n\t\tpadding: 15px 24px;\n\t\theight: auto;\n\t\t&:focus,\n\t\t&:active {\n\t\t\tborder: none !important;\n\t\t\tbackground: rgb(255, 120, 101, 0.9) !important;\n\t\t\tbox-shadow: none !important;\n\t\t\tcolor: #fff !important;\n\t\t}\n\t\t&:hover {\n\t\t\tcolor: #fff;\n\t\t\tbackground: rgb(255, 120, 101, 0.9);\n\t\t\tborder: none;\n\t\t}\n\t}\n\n\t.components-external-link {\n\t\tfont-weight: 500;\n\t}\n\n\t.ang-link {\n\t\tcolor: var(--ang-accent);\n\t\ttext-transform: uppercase;\n\t\tborder-bottom: 1px solid var(--ang-accent);\n\t\tfont-size: 12.64px;\n\t\tletter-spacing: 1px;\n\t\ttext-decoration: none;\n\t\tfont-weight: bold;\n\t}\n\n\t.preview-active .templates-list {\n\t\tvisibility: hidden;\n\t}\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var __WEBPACK_IMPORTED_MODULE_0_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_1__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_2__api__=__webpack_require__(4),__WEBPACK_IMPORTED_MODULE_3__contexts_ThemeContext__=__webpack_require__(12),__WEBPACK_IMPORTED_MODULE_4__Header__=__webpack_require__(60),__WEBPACK_IMPORTED_MODULE_5__Notifications__=__webpack_require__(6),__WEBPACK_IMPORTED_MODULE_6__utils__=__webpack_require__(13),_wp=wp,apiFetch=_wp.apiFetch,Analog=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.div(_templateObject(),function(props){return props.theme.accent}),App=function(_React$Component){function App(){var _this;_classCallCheck(this,App),_this=_possibleConstructorReturn(this,_getPrototypeOf(App).apply(this,arguments));var initialContainerTab=AGWP.is_settings_page?"styleKits":"blocks";return _this.state={templates:[],kits:[],styleKits:[],blocks:[],count:null,isOpen:!1,syncing:!1,favorites:AGWP.favorites,blockFavorites:AGWP.blockFavorites,showing_favorites:!1,archive:[],blockArchive:[],showFree:!0,showPro:!0,group:!0,activeKit:!1,installedKits:AGWP.installed_kits||{},tab:AGWP.isContainer?initialContainerTab:"blocks",blocksTab:AGWP.isContainer?"all-patterns":"all-blocks",hasPro:!1,settings:{ang_sync_colors:!0},blocksSearchInput:"",itemFilteredWithSearchTerm:function(foundItems,searchInput){var searchTags=[];return foundItems.filter(function(single){return single.tags&&(searchTags=single.tags.filter(function(tag){return tag.toLowerCase().includes(searchInput)})),single.title.toLowerCase().includes(searchInput)||searchTags.length>=1})}},_this.refreshAPI=_this.refreshAPI.bind(_assertThisInitialized(_this)),_this.toggleFavorites=_this.toggleFavorites.bind(_assertThisInitialized(_this)),_this.handleSearch=_this.handleSearch.bind(_assertThisInitialized(_this)),_this.handleSort=_this.handleSort.bind(_assertThisInitialized(_this)),_this.handleFilter=_this.handleFilter.bind(_assertThisInitialized(_this)),_this.switchTabs=_this.switchTabs.bind(_assertThisInitialized(_this)),_this}return _inherits(App,_React$Component),_createClass(App,[{key:"switchTabs",value:function(){var hash=location.hash;["#templates","#styleKits","#blocks"].indexOf(hash)>-1&&AGWP.is_settings_page&&this.setState({tab:hash.substr(1),templates:this.state.archive,blocks:this.state.blockArchive,showing_favorites:!1})}},{key:"componentDidMount",value:function(){function componentDidMount(){return _componentDidMount.apply(this,arguments)}var _componentDidMount=_asyncToGenerator(regeneratorRuntime.mark(function _callee(){var templates,library,_this2=this;return regeneratorRuntime.wrap(function(_context){for(;;)switch(_context.prev=_context.next){case 0:return window.addEventListener("hashchange",this.switchTabs,!1),window.addEventListener("DOMContentLoaded",this.switchTabs,!1),"false"===window.localStorage.getItem("analog::show-free")&&this.setState({showFree:!1}),"false"===window.localStorage.getItem("analog::show-pro")&&this.setState({showPro:!1}),"false"===window.localStorage.getItem("analog::group-kit")&&this.setState({group:!1}),this.setState({syncing:!0}),_context.next=8,Object(__WEBPACK_IMPORTED_MODULE_2__api__.i)();case 8:templates=_context.sent,library=templates.library,this.setState({templates:library.templates,kits:library.template_kits,archive:library.templates,blockArchive:library.blocks,count:library.templates.length,timestamp:templates.timestamp,hasPro:Object(__WEBPACK_IMPORTED_MODULE_6__utils__.d)(library.templates),styleKits:library.stylekits,blocks:library.blocks,syncing:!1}),this.handleSort("latest","templates"),this.handleSort("latest","blocks"),document.addEventListener("modal-close",function(){_this2.setState({isOpen:!1,showing_favorites:!1,templates:_this2.state.archive})}),Object(__WEBPACK_IMPORTED_MODULE_2__api__.b)().then(function(settings){return _this2.setState({settings:settings})});case 15:case"end":return _context.stop()}},_callee,this)}));return componentDidMount}()},{key:"handleFilter",value:function(type){var library=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"templates",templates=_toConsumableArray(this.state.archive),blocks=_toConsumableArray(this.state.blockArchive);if("blocks"!==library){if("all"===type)return void this.setState({templates:this.state.archive});var filtered=templates.filter(function(template){return template.type===type});this.setState({templates:filtered})}else{if("all"===type)return void this.setState({blocks:this.state.blockArchive});var _filtered=blocks.filter(function(block){return block.tags[0]===type});this.setState({blocks:_filtered})}}},{key:"handleSort",value:function(value){var library=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"templates";this.setState({showing_favorites:!1});var sortData=this.state[library];if("popular"===value){var sorted=sortData.sort(function(a,b){if("popularityIndex"in a){if(parseInt(a.popularityIndex)<parseInt(b.popularityIndex))return 1;if(parseInt(a.popularityIndex)>parseInt(b.popularityIndex))return-1}return 0});this.setState(_defineProperty({},library,sorted))}if("latest"===value){var _sorted=sortData.sort(function(a,b){if("published"in a){if(parseInt(Object(__WEBPACK_IMPORTED_MODULE_6__utils__.c)(a.published))<parseInt(Object(__WEBPACK_IMPORTED_MODULE_6__utils__.c)(b.published)))return 1;if(parseInt(Object(__WEBPACK_IMPORTED_MODULE_6__utils__.c)(a.published))>parseInt(Object(__WEBPACK_IMPORTED_MODULE_6__utils__.c)(b.published)))return-1}return 0});this.setState(_defineProperty({},library,_sorted))}}},{key:"handleSearch",value:function(value){var library=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"templates",searchData=this.state.blockArchive;"templates"===library&&(searchData=this.state.archive);var filtered=[],searchTags=[];if(value&&(filtered=searchData.filter(function(single){return"patterns"===library&&single.keywords?searchTags=single.keywords.filter(function(keyword){return keyword.toLowerCase().includes(value.toLowerCase())}):single.tags&&(searchTags=single.tags.filter(function(tag){return tag.toLowerCase().includes(value.toLowerCase())})),single.title.toLowerCase().includes(value.toLowerCase())||searchTags.length>=1}),filtered.length>0))return"templates"===library?void this.setState({templates:filtered}):void this.setState({blocks:filtered,blocksSearchInput:value});"templates"===library?this.setState({templates:value?[]:this.state.archive}):this.setState({blocks:value?[]:this.state.blockArchive,blocksSearchInput:""})}},{key:"refreshAPI",value:function(){function refreshAPI(){return _refreshAPI.apply(this,arguments)}var _refreshAPI=_asyncToGenerator(regeneratorRuntime.mark(function _callee2(){var _this3=this;return regeneratorRuntime.wrap(function(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return this.setState({syncing:!0,blocksSearchInput:""}),wp.hooks.doAction("analog.refreshLibrary"),_context2.next=4,apiFetch({path:"/agwp/v1/templates/?force_update=true"}).then(function(data){var library=data.library;_this3.setState({templates:library.templates,archive:library.templates,blockArchive:library.blocks,count:library.templates.length,kits:library.template_kits,timestamp:data.timestamp,styleKits:library.stylekits,blocks:library.blocks,syncing:!1,blocksSearchInput:""})}).catch(function(){_this3.setState({syncing:!1})});case 4:return _context2.abrupt("return",_context2.sent);case 5:case"end":return _context2.stop()}},_callee2,this)}));return refreshAPI}()},{key:"toggleFavorites",value:function(){var _this4=this;this.setState({group:!1}),window.localStorage.setItem("analog::group-block",!1);var filteredTemplates=this.state.archive.filter(function(template){return template.id in _this4.state.favorites}),filteredBlocks=this.state.blockArchive.filter(function(block){return block.id in _this4.state.blockFavorites});this.setState({showing_favorites:!this.state.showing_favorites,templates:this.state.showing_favorites?this.state.archive:filteredTemplates,blocks:this.state.showing_favorites?this.state.blockArchive:filteredBlocks})}},{key:"render",value:function(){var _this5=this;return React.createElement(__WEBPACK_IMPORTED_MODULE_3__contexts_ThemeContext__.c.Provider,{value:{theme:__WEBPACK_IMPORTED_MODULE_3__contexts_ThemeContext__.a}},React.createElement(__WEBPACK_IMPORTED_MODULE_3__contexts_ThemeContext__.c.Consumer,null,function(_ref){var theme=_ref.theme;return React.createElement(Analog,{theme:theme},React.createElement(__WEBPACK_IMPORTED_MODULE_5__Notifications__.b,null,React.createElement(__WEBPACK_IMPORTED_MODULE_1__AnalogContext__.a.Provider,{value:{state:_this5.state,forceRefresh:_this5.refreshAPI,markFavorite:__WEBPACK_IMPORTED_MODULE_2__api__.c,toggleFavorites:_this5.toggleFavorites,handleSearch:_this5.handleSearch,handleSort:_this5.handleSort,handleFilter:_this5.handleFilter,dispatch:function(action){return _this5.setState(action)}}},React.createElement(__WEBPACK_IMPORTED_MODULE_4__Header__.a,null),React.createElement("div",{className:"analogwp-content"},React.createElement("div",{className:"ang-container"},Object(__WEBPACK_IMPORTED_MODULE_6__utils__.b)(_this5.state))))))}))}}]),App}(React.Component);__webpack_exports__.a=App},function(module,exports){module.exports=function(originalModule){if(!originalModule.webpackPolyfill){var module=Object.create(originalModule);module.children||(module.children=[]),Object.defineProperty(module,"loaded",{enumerable:!0,get:function(){return module.l}}),Object.defineProperty(module,"id",{enumerable:!0,get:function(){return module.i}}),Object.defineProperty(module,"exports",{enumerable:!0}),module.webpackPolyfill=1}return module}},function(module,exports,__webpack_require__){!function(e){module.exports=e(null)}(function e(a){"use strict";function He(e,a,s,t,i){for(var f,n,o=0,h=0,u=0,d=0,g=0,A=0,C=0,w=0,m=0,$=0,y=0,O=0,j=0,z=0,R=0,we=0,$e=0,Oe=0,je=0,ze=s.length,Je=ze-1,Re="",Te="",Ue="",Ve="",Xe="",Ye="";R<ze;){if(C=s.charCodeAt(R),R===Je&&h+d+u+o!==0&&(0!==h&&(C=h===Z?I:Z),d=u=o=0,ze++,Je++),h+d+u+o===0){if(R===Je&&(we>0&&(Te=Te.replace(c,"")),Te.trim().length>0)){switch(C){case M:case K:case W:case J:case I:break;default:Te+=s.charAt(R)}C=W}if(1===$e)switch(C){case B:case q:case W:case Y:case X:case D:case E:case U:$e=0;case K:case J:case I:case M:break;default:for($e=0,je=R,g=C,R--,C=W;je<ze;)switch(s.charCodeAt(je++)){case I:case J:case W:++R,C=g,je=ze;break;case V:we>0&&(++R,C=g);case B:je=ze}}switch(C){case B:for(g=(Te=Te.trim()).charCodeAt(0),y=1,je=++R;R<ze;){switch(C=s.charCodeAt(R)){case B:y++;break;case q:y--;break;case Z:switch(A=s.charCodeAt(R+1)){case T:case Z:R=Qe(A,R,Je,s)}break;case G:C++;case D:C++;case Y:case X:for(;R++<Je&&s.charCodeAt(R)!==C;);}if(0===y)break;R++}switch(Ue=s.substring(je,R),g===re&&(g=(Te=Te.replace(r,"").trim()).charCodeAt(0)),g){case L:switch(we>0&&(Te=Te.replace(c,"")),A=Te.charCodeAt(1)){case ue:case ie:case fe:case Q:f=a;break;default:f=xe}if(je=(Ue=He(a,f,Ue,A,i+1)).length,me>0&&0===je&&(je=Te.length),ye>0&&(f=Ie(xe,Te,Oe),n=Pe(We,Ue,f,a,pe,be,je,A,i,t),Te=f.join(""),void 0!==n&&0===(je=(Ue=n.trim()).length)&&(A=0,Ue="")),je>0)switch(A){case fe:Te=Te.replace(x,Me);case ue:case ie:case Q:Ue=Te+"{"+Ue+"}";break;case te:Ue=(Te=Te.replace(b,"$1 $2"+(Be>0?De:"")))+"{"+Ue+"}",Ue=1===Ae||2===Ae&&Le("@"+Ue,3)?"@"+N+Ue+"@"+Ue:"@"+Ue;break;default:Ue=Te+Ue,t===de&&(Ve+=Ue,Ue="")}else Ue="";break;default:Ue=He(a,Ie(a,Te,Oe),Ue,t,i+1)}Xe+=Ue,O=0,$e=0,z=0,we=0,Oe=0,j=0,Te="",Ue="",C=s.charCodeAt(++R);break;case q:case W:if((je=(Te=(we>0?Te.replace(c,""):Te).trim()).length)>1)switch(0===z&&((g=Te.charCodeAt(0))===Q||g>96&&g<123)&&(je=(Te=Te.replace(" ",":")).length),ye>0&&void 0!==(n=Pe(Se,Te,a,e,pe,be,Ve.length,t,i,t))&&0===(je=(Te=n.trim()).length)&&(Te="\0\0"),g=Te.charCodeAt(0),A=Te.charCodeAt(1),g){case re:break;case L:if(A===oe||A===he){Ye+=Te+s.charAt(R);break}default:if(Te.charCodeAt(je-1)===V)break;Ve+=Ke(Te,g,A,Te.charCodeAt(2))}O=0,$e=0,z=0,we=0,Oe=0,Te="",C=s.charCodeAt(++R)}}switch(C){case J:case I:if(h+d+u+o+ve===0)switch($){case E:case X:case Y:case L:case ae:case _:case T:case ee:case Z:case Q:case V:case U:case W:case B:case q:break;default:z>0&&($e=1)}h===Z?h=0:ge+O===0&&t!==te&&Te.length>0&&(we=1,Te+="\0"),ye*qe>0&&Pe(Ne,Te,a,e,pe,be,Ve.length,t,i,t),be=1,pe++;break;case W:case q:if(h+d+u+o===0){be++;break}default:switch(be++,Re=s.charAt(R),C){case K:case M:if(d+o+h===0)switch(w){case U:case V:case K:case M:Re="";break;default:C!==M&&(Re=" ")}break;case re:Re="\\0";break;case ce:Re="\\f";break;case se:Re="\\v";break;case P:d+h+o===0&&ge>0&&(Oe=1,we=1,Re="\f"+Re);break;case 108:if(d+h+o+ke===0&&z>0)switch(R-z){case 2:w===ne&&s.charCodeAt(R-3)===V&&(ke=w);case 8:m===le&&(ke=m)}break;case V:d+h+o===0&&(z=R);break;case U:h+u+d+o===0&&(we=1,Re+="\r");break;case Y:case X:0===h&&(d=d===C?0:0===d?C:d);break;case G:d+h+u===0&&o++;break;case H:d+h+u===0&&o--;break;case E:d+h+o===0&&u--;break;case D:if(d+h+o===0){if(0===O)switch(2*w+3*m){case 533:break;default:y=0,O=1}u++}break;case L:h+u+d+o+z+j===0&&(j=1);break;case T:case Z:if(d+o+u>0)break;switch(h){case 0:switch(2*C+3*s.charCodeAt(R+1)){case 235:h=Z;break;case 220:je=R,h=T}break;case T:C===Z&&w===T&&je+2!==R&&(33===s.charCodeAt(je+2)&&(Ve+=s.substring(je,R+1)),Re="",h=0)}}if(0===h){if(ge+d+o+j===0&&t!==te&&C!==W)switch(C){case U:case ae:case _:case ee:case E:case D:if(0===O){switch(w){case K:case M:case I:case J:Re+="\0";break;default:Re="\0"+Re+(C===U?"":"\0")}we=1}else switch(C){case D:z+7===R&&108===w&&(z=0),O=++y;break;case E:0==(O=--y)&&(we=1,Re+="\0")}break;case K:case M:switch(w){case re:case B:case q:case W:case U:case ce:case K:case M:case I:case J:break;default:0===O&&(we=1,Re+="\0")}}Te+=Re,C!==M&&C!==K&&($=C)}}m=w,w=C,R++}if(je=Ve.length,me>0&&0===je&&0===Xe.length&&0===a[0].length==0&&(t!==ie||1===a.length&&(ge>0?Ee:Ge)===a[0])&&(je=a.join(",").length+2),je>0){if(f=0===ge&&t!==te?function(e){for(var a,r,s=0,t=e.length,i=Array(t);s<t;++s){for(var f=e[s].split(l),n="",o=0,h=0,u=0,d=0,b=f.length;o<b;++o)if(!(0===(h=(r=f[o]).length)&&b>1)){if(u=n.charCodeAt(n.length-1),d=r.charCodeAt(0),a="",0!==o)switch(u){case T:case ae:case _:case ee:case M:case D:break;default:a=" "}switch(d){case P:r=a+Ee;case ae:case _:case ee:case M:case E:case D:break;case G:r=a+r+Ee;break;case V:switch(2*r.charCodeAt(1)+3*r.charCodeAt(2)){case 530:if(Ce>0){r=a+r.substring(8,h-1);break}default:(o<1||f[o-1].length<1)&&(r=a+Ee+r)}break;case U:a="";default:r=h>1&&r.indexOf(":")>0?a+r.replace(v,"$1"+Ee+"$2"):a+r+Ee}n+=r}i[s]=n.replace(c,"").trim()}return i}(a):a,ye>0&&void 0!==(n=Pe(Fe,Ve,f,e,pe,be,je,t,i,t))&&0===(Ve=n).length)return Ye+Ve+Xe;if(Ve=f.join(",")+"{"+Ve+"}",Ae*ke!=0){switch(2!==Ae||Le(Ve,2)||(ke=0),ke){case le:Ve=Ve.replace(k,":"+S+"$1")+Ve;break;case ne:Ve=Ve.replace(p,"::"+N+"input-$1")+Ve.replace(p,"::"+S+"$1")+Ve.replace(p,":"+F+"input-$1")+Ve}ke=0}}return Ye+Ve+Xe}function Ie(e,a,r){var c=a.trim().split(o),s=c,t=c.length,i=e.length;switch(i){case 0:case 1:for(var f=0,n=0===i?"":e[0]+" ";f<t;++f)s[f]=Je(n,s[f],r,i).trim();break;default:f=0;var l=0;for(s=[];f<t;++f)for(var h=0;h<i;++h)s[l++]=Je(e[h]+" ",c[f],r,i).trim()}return s}function Je(e,a,r,c){var s=a,t=s.charCodeAt(0);switch(t<33&&(t=(s=s.trim()).charCodeAt(0)),t){case P:switch(ge+c){case 0:case 1:if(0===e.trim().length)break;default:return s.replace(h,"$1"+e.trim())}break;case V:switch(s.charCodeAt(1)){case 103:if(Ce>0&&ge>0)return s.replace(u,"$1").replace(h,"$1"+Ge);break;default:return e.trim()+s.replace(h,"$1"+e.trim())}default:if(r*ge>0&&s.indexOf("\f")>0)return s.replace(h,(e.charCodeAt(0)===V?"":"$1")+e.trim())}return e+s}function Ke(e,a,r,c){var l,o=0,h=e+";",u=2*a+3*r+4*c;if(944===u)return function(e){var a=e.length,r=e.indexOf(":",9)+1,c=e.substring(0,r).trim(),s=e.substring(r,a-1).trim();switch(e.charCodeAt(9)*Be){case 0:break;case Q:if(110!==e.charCodeAt(10))break;default:for(var t=s.split((s="",f)),i=0,r=0,a=t.length;i<a;r=0,++i){for(var l=t[i],o=l.split(n);l=o[r];){var h=l.charCodeAt(0);if(1===Be&&(h>L&&h<90||h>96&&h<123||h===R||h===Q&&l.charCodeAt(1)!==Q))switch(isNaN(parseFloat(l))+(-1!==l.indexOf("("))){case 1:switch(l){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:l+=De}}o[r++]=l}s+=(0===i?"":",")+o.join(" ")}}return s=c+s+";",1===Ae||2===Ae&&Le(s,1)?N+s+s:s}(h);if(0===Ae||2===Ae&&!Le(h,1))return h;switch(u){case 1015:return 97===h.charCodeAt(10)?N+h+h:h;case 951:return 116===h.charCodeAt(3)?N+h+h:h;case 963:return 110===h.charCodeAt(5)?N+h+h:h;case 1009:if(100!==h.charCodeAt(4))break;case 969:case 942:return N+h+h;case 978:return N+h+S+h+h;case 1019:case 983:return N+h+S+h+F+h+h;case 883:return h.charCodeAt(8)===Q?N+h+h:h.indexOf("image-set(",11)>0?h.replace(z,"$1"+N+"$2")+h:h;case 932:if(h.charCodeAt(4)===Q)switch(h.charCodeAt(5)){case 103:return N+"box-"+h.replace("-grow","")+N+h+F+h.replace("grow","positive")+h;case 115:return N+h+F+h.replace("shrink","negative")+h;case 98:return N+h+F+h.replace("basis","preferred-size")+h}return N+h+F+h+h;case 964:return N+h+F+"flex-"+h+h;case 1023:if(99!==h.charCodeAt(8))break;return l=h.substring(h.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),N+"box-pack"+l+N+h+F+"flex-pack"+l+h;case 1005:return t.test(h)?h.replace(s,":"+N)+h.replace(s,":"+S)+h:h;case 1e3:switch(o=(l=h.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(o)){case 226:l=h.replace(m,"tb");break;case 232:l=h.replace(m,"tb-rl");break;case 220:l=h.replace(m,"lr");break;default:return h}return N+h+F+l+h;case 1017:if(-1===h.indexOf("sticky",9))return h;case 975:switch(o=(h=e).length-10,u=(l=(33===h.charCodeAt(o)?h.substring(0,o):h).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(l.charCodeAt(8)<111)break;case 115:h=h.replace(l,N+l)+";"+h;break;case 207:case 102:h=h.replace(l,N+(u>102?"inline-":"")+"box")+";"+h.replace(l,N+l)+";"+h.replace(l,F+l+"box")+";"+h}return h+";";case 938:if(h.charCodeAt(5)===Q)switch(h.charCodeAt(6)){case 105:return l=h.replace("-items",""),N+h+N+"box-"+l+F+"flex-"+l+h;case 115:return N+h+F+"flex-item-"+h.replace(y,"")+h;default:return N+h+F+"flex-line-pack"+h.replace("align-content","").replace(y,"")+h}break;case 973:case 989:if(h.charCodeAt(3)!==Q||122===h.charCodeAt(4))break;case 931:case 953:if(!0===j.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?Ke(e.replace("stretch","fill-available"),a,r,c).replace(":fill-available",":stretch"):h.replace(l,N+l)+h.replace(l,S+l.replace("fill-",""))+h;break;case 962:if(h=N+h+(102===h.charCodeAt(5)?F+h:"")+h,r+c===211&&105===h.charCodeAt(13)&&h.indexOf("transform",10)>0)return h.substring(0,h.indexOf(";",27)+1).replace(i,"$1"+N+"$2")+h}return h}function Le(e,a){var r=e.indexOf(1===a?":":"{"),c=e.substring(0,3!==a?r:10),s=e.substring(r+1,e.length-1);return Oe(2!==a?c:c.replace(O,"$1"),s,a)}function Me(e,a){var r=Ke(a,a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2));return r!==a+";"?r.replace($," or ($1)").substring(4):"("+a+")"}function Pe(e,a,r,c,s,t,i,f,n,l){for(var o,h=0,u=a;h<ye;++h)switch(o=$e[h].call(Te,e,u,r,c,s,t,i,f,n,l)){case void 0:case!1:case!0:case null:break;default:u=o}if(u!==a)return u}function Qe(e,a,r,c){for(var s=a+1;s<r;++s)switch(c.charCodeAt(s)){case Z:if(e===T&&c.charCodeAt(s-1)===T&&a+2!==s)return s+1;break;case I:if(e===Z)return s+1}return s}function Re(e){for(var a in e){var r=e[a];switch(a){case"keyframe":Be=0|r;break;case"global":Ce=0|r;break;case"cascade":ge=0|r;break;case"compress":we=0|r;break;case"semicolon":ve=0|r;break;case"preserve":me=0|r;break;case"prefix":Oe=null,r?"function"!=typeof r?Ae=1:(Ae=2,Oe=r):Ae=0}}return Re}function Te(a,r){if(void 0!==this&&this.constructor===Te)return e(a);var s=a,t=s.charCodeAt(0);t<33&&(t=(s=s.trim()).charCodeAt(0)),Be>0&&(De=s.replace(d,t===G?"":"-")),t=1,1===ge?Ge=s:Ee=s;var i,f=[Ge];ye>0&&void 0!==(i=Pe(ze,r,f,f,pe,be,0,0,0,0))&&"string"==typeof i&&(r=i);var n=He(xe,f,r,0,0);return ye>0&&void 0!==(i=Pe(je,n,f,f,pe,be,n.length,0,0,0))&&"string"!=typeof(n=i)&&(t=0),De="",Ge="",Ee="",ke=0,pe=1,be=1,we*t==0?n:n.replace(c,"").replace(g,"").replace(A,"$1").replace(C,"$1").replace(w," ")}var r=/^\0+/g,c=/[\0\r\f]/g,s=/: */g,t=/zoo|gra/,i=/([,: ])(transform)/g,f=/,+\s*(?![^(]*[)])/g,n=/ +\s*(?![^(]*[)])/g,l=/ *[\0] */g,o=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,u=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,d=/\W+/g,b=/@(k\w+)\s*(\S*)\s*/,p=/::(place)/g,k=/:(read-only)/g,g=/\s+(?=[{\];=:>])/g,A=/([[}=:>])\s+/g,C=/(\{[^{]+?);(?=\})/g,w=/\s{2,}/g,v=/([^\(])(:+) */g,m=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,$=/([\s\S]*?);/g,y=/-self|flex-/g,O=/[^]*?(:[rp][el]a[\w-]+)[^]*/,j=/stretch|:\s*\w+\-(?:conte|avail)/,z=/([^-])(image-set\()/,N="-webkit-",S="-moz-",F="-ms-",W=59,q=125,B=123,D=40,E=41,G=91,H=93,I=10,J=13,K=9,L=64,M=32,P=38,Q=45,R=95,T=42,U=44,V=58,X=39,Y=34,Z=47,_=62,ee=43,ae=126,re=0,ce=12,se=11,te=107,ie=109,fe=115,ne=112,le=111,oe=105,he=99,ue=100,de=112,be=1,pe=1,ke=0,ge=1,Ae=1,Ce=1,we=0,ve=0,me=0,xe=[],$e=[],ye=0,Oe=null,je=-2,ze=-1,Ne=0,Se=1,Fe=2,We=3,qe=0,Be=1,De="",Ee="",Ge="";return Te.use=function e(a){switch(a){case void 0:case null:ye=$e.length=0;break;default:if("function"==typeof a)$e[ye++]=a;else if("object"==typeof a)for(var r=0,c=a.length;r<c;++r)e(a[r]);else qe=0|!!a}return e},Te.set=Re,void 0!==a&&Re(a),Te})},function(module,exports,__webpack_require__){!function(factory){module.exports=factory()}(function(){"use strict";return function(insertRule){function toSheet(block){if(block)try{insertRule(block+"}")}catch(e){}}return function(context,content,selectors,parents,line,column,length,ns,depth,at){switch(context){case 1:if(0===depth&&64===content.charCodeAt(0))return insertRule(content+";"),"";break;case 2:if(0===ns)return content+"/*|*/";break;case 3:switch(ns){case 102:case 112:return insertRule(selectors[0]+content),"";default:return content+(0===at?"/*|*/":"")}case-2:content.split("/*|*/}").forEach(toSheet)}}}})},function(module,__webpack_exports__,__webpack_require__){"use strict";var unitlessKeys={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};__webpack_exports__.a=unitlessKeys},function(module,exports,__webpack_require__){"use strict";(function(process){"production"===process.env.NODE_ENV?module.exports=__webpack_require__(52):module.exports=__webpack_require__(53)}).call(exports,__webpack_require__(0))},function(module,exports,__webpack_require__){"use strict";function t(a){if("object"==typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof){case k:case n:case h:return a;default:return u}}case r:case q:case d:return u}}}function v(a){return t(a)===m}/** @license React v16.7.0
    1212 * react-is.production.min.js
    1313 *
     
    2525 * LICENSE file in the root directory of this source tree.
    2626 */
    27 "production"!==process.env.NODE_ENV&&function(){function isValidElementType(type){return"string"==typeof type||"function"==typeof type||type===REACT_FRAGMENT_TYPE||type===REACT_CONCURRENT_MODE_TYPE||type===REACT_PROFILER_TYPE||type===REACT_STRICT_MODE_TYPE||type===REACT_SUSPENSE_TYPE||"object"==typeof type&&null!==type&&(type.$$typeof===REACT_LAZY_TYPE||type.$$typeof===REACT_MEMO_TYPE||type.$$typeof===REACT_PROVIDER_TYPE||type.$$typeof===REACT_CONTEXT_TYPE||type.$$typeof===REACT_FORWARD_REF_TYPE)}function typeOf(object){if("object"==typeof object&&null!==object){var $$typeof=object.$$typeof;switch($$typeof){case REACT_ELEMENT_TYPE:var type=object.type;switch(type){case REACT_ASYNC_MODE_TYPE:case REACT_CONCURRENT_MODE_TYPE:case REACT_FRAGMENT_TYPE:case REACT_PROFILER_TYPE:case REACT_STRICT_MODE_TYPE:case REACT_SUSPENSE_TYPE:return type;default:var $$typeofType=type&&type.$$typeof;switch($$typeofType){case REACT_CONTEXT_TYPE:case REACT_FORWARD_REF_TYPE:case REACT_PROVIDER_TYPE:return $$typeofType;default:return $$typeof}}case REACT_LAZY_TYPE:case REACT_MEMO_TYPE:case REACT_PORTAL_TYPE:return $$typeof}}}function isAsyncMode(object){return hasWarnedAboutDeprecatedIsAsyncMode||(hasWarnedAboutDeprecatedIsAsyncMode=!0,lowPriorityWarning$1(!1,"The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),isConcurrentMode(object)||typeOf(object)===REACT_ASYNC_MODE_TYPE}function isConcurrentMode(object){return typeOf(object)===REACT_CONCURRENT_MODE_TYPE}function isContextConsumer(object){return typeOf(object)===REACT_CONTEXT_TYPE}function isContextProvider(object){return typeOf(object)===REACT_PROVIDER_TYPE}function isElement(object){return"object"==typeof object&&null!==object&&object.$$typeof===REACT_ELEMENT_TYPE}function isForwardRef(object){return typeOf(object)===REACT_FORWARD_REF_TYPE}function isFragment(object){return typeOf(object)===REACT_FRAGMENT_TYPE}function isLazy(object){return typeOf(object)===REACT_LAZY_TYPE}function isMemo(object){return typeOf(object)===REACT_MEMO_TYPE}function isPortal(object){return typeOf(object)===REACT_PORTAL_TYPE}function isProfiler(object){return typeOf(object)===REACT_PROFILER_TYPE}function isStrictMode(object){return typeOf(object)===REACT_STRICT_MODE_TYPE}function isSuspense(object){return typeOf(object)===REACT_SUSPENSE_TYPE}Object.defineProperty(exports,"__esModule",{value:!0});var hasSymbol="function"==typeof Symbol&&Symbol.for,REACT_ELEMENT_TYPE=hasSymbol?Symbol.for("react.element"):60103,REACT_PORTAL_TYPE=hasSymbol?Symbol.for("react.portal"):60106,REACT_FRAGMENT_TYPE=hasSymbol?Symbol.for("react.fragment"):60107,REACT_STRICT_MODE_TYPE=hasSymbol?Symbol.for("react.strict_mode"):60108,REACT_PROFILER_TYPE=hasSymbol?Symbol.for("react.profiler"):60114,REACT_PROVIDER_TYPE=hasSymbol?Symbol.for("react.provider"):60109,REACT_CONTEXT_TYPE=hasSymbol?Symbol.for("react.context"):60110,REACT_ASYNC_MODE_TYPE=hasSymbol?Symbol.for("react.async_mode"):60111,REACT_CONCURRENT_MODE_TYPE=hasSymbol?Symbol.for("react.concurrent_mode"):60111,REACT_FORWARD_REF_TYPE=hasSymbol?Symbol.for("react.forward_ref"):60112,REACT_SUSPENSE_TYPE=hasSymbol?Symbol.for("react.suspense"):60113,REACT_MEMO_TYPE=hasSymbol?Symbol.for("react.memo"):60115,REACT_LAZY_TYPE=hasSymbol?Symbol.for("react.lazy"):60116,lowPriorityWarning=function(){},printWarning=function(format){for(var _len=arguments.length,args=Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];var argIndex=0,message="Warning: "+format.replace(/%s/g,function(){return args[argIndex++]});"undefined"!=typeof console&&console.warn(message);try{throw new Error(message)}catch(x){}};lowPriorityWarning=function(condition,format){if(void 0===format)throw new Error("`lowPriorityWarning(condition, format, ...args)` requires a warning message argument");if(!condition){for(var _len2=arguments.length,args=Array(_len2>2?_len2-2:0),_key2=2;_key2<_len2;_key2++)args[_key2-2]=arguments[_key2];printWarning.apply(void 0,[format].concat(args))}};var lowPriorityWarning$1=lowPriorityWarning,AsyncMode=REACT_ASYNC_MODE_TYPE,ConcurrentMode=REACT_CONCURRENT_MODE_TYPE,ContextConsumer=REACT_CONTEXT_TYPE,ContextProvider=REACT_PROVIDER_TYPE,Element=REACT_ELEMENT_TYPE,ForwardRef=REACT_FORWARD_REF_TYPE,Fragment=REACT_FRAGMENT_TYPE,Lazy=REACT_LAZY_TYPE,Memo=REACT_MEMO_TYPE,Portal=REACT_PORTAL_TYPE,Profiler=REACT_PROFILER_TYPE,StrictMode=REACT_STRICT_MODE_TYPE,Suspense=REACT_SUSPENSE_TYPE,hasWarnedAboutDeprecatedIsAsyncMode=!1;exports.typeOf=typeOf,exports.AsyncMode=AsyncMode,exports.ConcurrentMode=ConcurrentMode,exports.ContextConsumer=ContextConsumer,exports.ContextProvider=ContextProvider,exports.Element=Element,exports.ForwardRef=ForwardRef,exports.Fragment=Fragment,exports.Lazy=Lazy,exports.Memo=Memo,exports.Portal=Portal,exports.Profiler=Profiler,exports.StrictMode=StrictMode,exports.Suspense=Suspense,exports.isValidElementType=isValidElementType,exports.isAsyncMode=isAsyncMode,exports.isConcurrentMode=isConcurrentMode,exports.isContextConsumer=isContextConsumer,exports.isContextProvider=isContextProvider,exports.isElement=isElement,exports.isForwardRef=isForwardRef,exports.isFragment=isFragment,exports.isLazy=isLazy,exports.isMemo=isMemo,exports.isPortal=isPortal,exports.isProfiler=isProfiler,exports.isStrictMode=isStrictMode,exports.isSuspense=isSuspense}()}).call(exports,__webpack_require__(0))},function(module,__webpack_exports__,__webpack_require__){"use strict";function index(resultFn,isEqual){void 0===isEqual&&(isEqual=simpleIsEqual);var lastThis,lastResult,lastArgs=[],calledOnce=!1,isNewArgEqualToLast=function(newArg,index){return isEqual(newArg,lastArgs[index],index)};return function(){for(var _len=arguments.length,newArgs=new Array(_len),_key=0;_key<_len;_key++)newArgs[_key]=arguments[_key];return calledOnce&&lastThis===this&&newArgs.length===lastArgs.length&&newArgs.every(isNewArgEqualToLast)?lastResult:(lastResult=resultFn.apply(this,newArgs),calledOnce=!0,lastThis=this,lastArgs=newArgs,lastResult)}}var simpleIsEqual=function(a,b){return a===b};__webpack_exports__.a=index},function(module,exports,__webpack_require__){"use strict";(function(process){function emptyFunctionThatReturnsNull(){return null}var assign=__webpack_require__(33),ReactPropTypesSecret=__webpack_require__(22),checkPropTypes=__webpack_require__(56),printWarning=function(){};"production"!==process.env.NODE_ENV&&(printWarning=function(text){var message="Warning: "+text;"undefined"!=typeof console&&console.error(message);try{throw new Error(message)}catch(x){}}),module.exports=function(isValidElement,throwOnDirectAccess){function getIteratorFn(maybeIterable){var iteratorFn=maybeIterable&&(ITERATOR_SYMBOL&&maybeIterable[ITERATOR_SYMBOL]||maybeIterable[FAUX_ITERATOR_SYMBOL]);if("function"==typeof iteratorFn)return iteratorFn}function is(x,y){return x===y?0!==x||1/x==1/y:x!==x&&y!==y}function PropTypeError(message){this.message=message,this.stack=""}function createChainableTypeChecker(validate){function checkType(isRequired,props,propName,componentName,location,propFullName,secret){if(componentName=componentName||ANONYMOUS,propFullName=propFullName||propName,secret!==ReactPropTypesSecret){if(throwOnDirectAccess){var err=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw err.name="Invariant Violation",err}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var cacheKey=componentName+":"+propName;!manualPropTypeCallCache[cacheKey]&&manualPropTypeWarningCount<3&&(printWarning("You are manually calling a React.PropTypes validation function for the `"+propFullName+"` prop on `"+componentName+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),manualPropTypeCallCache[cacheKey]=!0,manualPropTypeWarningCount++)}}return null==props[propName]?isRequired?new PropTypeError(null===props[propName]?"The "+location+" `"+propFullName+"` is marked as required in `"+componentName+"`, but its value is `null`.":"The "+location+" `"+propFullName+"` is marked as required in `"+componentName+"`, but its value is `undefined`."):null:validate(props,propName,componentName,location,propFullName)}if("production"!==process.env.NODE_ENV)var manualPropTypeCallCache={},manualPropTypeWarningCount=0;var chainedCheckType=checkType.bind(null,!1);return chainedCheckType.isRequired=checkType.bind(null,!0),chainedCheckType}function createPrimitiveTypeChecker(expectedType){function validate(props,propName,componentName,location,propFullName,secret){var propValue=props[propName];if(getPropType(propValue)!==expectedType)return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+getPreciseType(propValue)+"` supplied to `"+componentName+"`, expected `"+expectedType+"`.");return null}return createChainableTypeChecker(validate)}function createArrayOfTypeChecker(typeChecker){function validate(props,propName,componentName,location,propFullName){if("function"!=typeof typeChecker)return new PropTypeError("Property `"+propFullName+"` of component `"+componentName+"` has invalid PropType notation inside arrayOf.");var propValue=props[propName];if(!Array.isArray(propValue)){return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+getPropType(propValue)+"` supplied to `"+componentName+"`, expected an array.")}for(var i=0;i<propValue.length;i++){var error=typeChecker(propValue,i,componentName,location,propFullName+"["+i+"]",ReactPropTypesSecret);if(error instanceof Error)return error}return null}return createChainableTypeChecker(validate)}function createInstanceTypeChecker(expectedClass){function validate(props,propName,componentName,location,propFullName){if(!(props[propName]instanceof expectedClass)){var expectedClassName=expectedClass.name||ANONYMOUS;return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+getClassName(props[propName])+"` supplied to `"+componentName+"`, expected instance of `"+expectedClassName+"`.")}return null}return createChainableTypeChecker(validate)}function createEnumTypeChecker(expectedValues){function validate(props,propName,componentName,location,propFullName){for(var propValue=props[propName],i=0;i<expectedValues.length;i++)if(is(propValue,expectedValues[i]))return null;return new PropTypeError("Invalid "+location+" `"+propFullName+"` of value `"+propValue+"` supplied to `"+componentName+"`, expected one of "+JSON.stringify(expectedValues)+".")}return Array.isArray(expectedValues)?createChainableTypeChecker(validate):("production"!==process.env.NODE_ENV&&printWarning("Invalid argument supplied to oneOf, expected an instance of array."),emptyFunctionThatReturnsNull)}function createObjectOfTypeChecker(typeChecker){function validate(props,propName,componentName,location,propFullName){if("function"!=typeof typeChecker)return new PropTypeError("Property `"+propFullName+"` of component `"+componentName+"` has invalid PropType notation inside objectOf.");var propValue=props[propName],propType=getPropType(propValue);if("object"!==propType)return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+propType+"` supplied to `"+componentName+"`, expected an object.");for(var key in propValue)if(propValue.hasOwnProperty(key)){var error=typeChecker(propValue,key,componentName,location,propFullName+"."+key,ReactPropTypesSecret);if(error instanceof Error)return error}return null}return createChainableTypeChecker(validate)}function createUnionTypeChecker(arrayOfTypeCheckers){function validate(props,propName,componentName,location,propFullName){for(var i=0;i<arrayOfTypeCheckers.length;i++){if(null==(0,arrayOfTypeCheckers[i])(props,propName,componentName,location,propFullName,ReactPropTypesSecret))return null}return new PropTypeError("Invalid "+location+" `"+propFullName+"` supplied to `"+componentName+"`.")}if(!Array.isArray(arrayOfTypeCheckers))return"production"!==process.env.NODE_ENV&&printWarning("Invalid argument supplied to oneOfType, expected an instance of array."),emptyFunctionThatReturnsNull;for(var i=0;i<arrayOfTypeCheckers.length;i++){var checker=arrayOfTypeCheckers[i];if("function"!=typeof checker)return printWarning("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+getPostfixForTypeWarning(checker)+" at index "+i+"."),emptyFunctionThatReturnsNull}return createChainableTypeChecker(validate)}function createShapeTypeChecker(shapeTypes){function validate(props,propName,componentName,location,propFullName){var propValue=props[propName],propType=getPropType(propValue);if("object"!==propType)return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+propType+"` supplied to `"+componentName+"`, expected `object`.");for(var key in shapeTypes){var checker=shapeTypes[key];if(checker){var error=checker(propValue,key,componentName,location,propFullName+"."+key,ReactPropTypesSecret);if(error)return error}}return null}return createChainableTypeChecker(validate)}function createStrictShapeTypeChecker(shapeTypes){function validate(props,propName,componentName,location,propFullName){var propValue=props[propName],propType=getPropType(propValue);if("object"!==propType)return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+propType+"` supplied to `"+componentName+"`, expected `object`.");var allKeys=assign({},props[propName],shapeTypes);for(var key in allKeys){var checker=shapeTypes[key];if(!checker)return new PropTypeError("Invalid "+location+" `"+propFullName+"` key `"+key+"` supplied to `"+componentName+"`.\nBad object: "+JSON.stringify(props[propName],null,"  ")+"\nValid keys: "+JSON.stringify(Object.keys(shapeTypes),null,"  "));var error=checker(propValue,key,componentName,location,propFullName+"."+key,ReactPropTypesSecret);if(error)return error}return null}return createChainableTypeChecker(validate)}function isNode(propValue){switch(typeof propValue){case"number":case"string":case"undefined":return!0;case"boolean":return!propValue;case"object":if(Array.isArray(propValue))return propValue.every(isNode);if(null===propValue||isValidElement(propValue))return!0;var iteratorFn=getIteratorFn(propValue);if(!iteratorFn)return!1;var step,iterator=iteratorFn.call(propValue);if(iteratorFn!==propValue.entries){for(;!(step=iterator.next()).done;)if(!isNode(step.value))return!1}else for(;!(step=iterator.next()).done;){var entry=step.value;if(entry&&!isNode(entry[1]))return!1}return!0;default:return!1}}function isSymbol(propType,propValue){return"symbol"===propType||("Symbol"===propValue["@@toStringTag"]||"function"==typeof Symbol&&propValue instanceof Symbol)}function getPropType(propValue){var propType=typeof propValue;return Array.isArray(propValue)?"array":propValue instanceof RegExp?"object":isSymbol(propType,propValue)?"symbol":propType}function getPreciseType(propValue){if(void 0===propValue||null===propValue)return""+propValue;var propType=getPropType(propValue);if("object"===propType){if(propValue instanceof Date)return"date";if(propValue instanceof RegExp)return"regexp"}return propType}function getPostfixForTypeWarning(value){var type=getPreciseType(value);switch(type){case"array":case"object":return"an "+type;case"boolean":case"date":case"regexp":return"a "+type;default:return type}}function getClassName(propValue){return propValue.constructor&&propValue.constructor.name?propValue.constructor.name:ANONYMOUS}var ITERATOR_SYMBOL="function"==typeof Symbol&&Symbol.iterator,FAUX_ITERATOR_SYMBOL="@@iterator",ANONYMOUS="<<anonymous>>",ReactPropTypes={array:createPrimitiveTypeChecker("array"),bool:createPrimitiveTypeChecker("boolean"),func:createPrimitiveTypeChecker("function"),number:createPrimitiveTypeChecker("number"),object:createPrimitiveTypeChecker("object"),string:createPrimitiveTypeChecker("string"),symbol:createPrimitiveTypeChecker("symbol"),any:function(){return createChainableTypeChecker(emptyFunctionThatReturnsNull)}(),arrayOf:createArrayOfTypeChecker,element:function(){function validate(props,propName,componentName,location,propFullName){var propValue=props[propName];if(!isValidElement(propValue)){return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+getPropType(propValue)+"` supplied to `"+componentName+"`, expected a single ReactElement.")}return null}return createChainableTypeChecker(validate)}(),instanceOf:createInstanceTypeChecker,node:function(){function validate(props,propName,componentName,location,propFullName){return isNode(props[propName])?null:new PropTypeError("Invalid "+location+" `"+propFullName+"` supplied to `"+componentName+"`, expected a ReactNode.")}return createChainableTypeChecker(validate)}(),objectOf:createObjectOfTypeChecker,oneOf:createEnumTypeChecker,oneOfType:createUnionTypeChecker,shape:createShapeTypeChecker,exact:createStrictShapeTypeChecker};return PropTypeError.prototype=Error.prototype,ReactPropTypes.checkPropTypes=checkPropTypes,ReactPropTypes.PropTypes=ReactPropTypes,ReactPropTypes}}).call(exports,__webpack_require__(0))},function(module,exports,__webpack_require__){"use strict";(function(process){function checkPropTypes(typeSpecs,values,location,componentName,getStack){if("production"!==process.env.NODE_ENV)for(var typeSpecName in typeSpecs)if(typeSpecs.hasOwnProperty(typeSpecName)){var error;try{if("function"!=typeof typeSpecs[typeSpecName]){var err=Error((componentName||"React class")+": "+location+" type `"+typeSpecName+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof typeSpecs[typeSpecName]+"`.");throw err.name="Invariant Violation",err}error=typeSpecs[typeSpecName](values,typeSpecName,componentName,location,null,ReactPropTypesSecret)}catch(ex){error=ex}if(!error||error instanceof Error||printWarning((componentName||"React class")+": type specification of "+location+" `"+typeSpecName+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof error+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),error instanceof Error&&!(error.message in loggedTypeFailures)){loggedTypeFailures[error.message]=!0;var stack=getStack?getStack():"";printWarning("Failed "+location+" type: "+error.message+(null!=stack?stack:""))}}}var printWarning=function(){};if("production"!==process.env.NODE_ENV){var ReactPropTypesSecret=__webpack_require__(22),loggedTypeFailures={};printWarning=function(text){var message="Warning: "+text;"undefined"!=typeof console&&console.error(message);try{throw new Error(message)}catch(x){}}}module.exports=checkPropTypes}).call(exports,__webpack_require__(0))},function(module,exports,__webpack_require__){"use strict";function emptyFunction(){}var ReactPropTypesSecret=__webpack_require__(22);module.exports=function(){function shim(props,propName,componentName,location,propFullName,secret){if(secret!==ReactPropTypesSecret){var err=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw err.name="Invariant Violation",err}}function getShim(){return shim}shim.isRequired=shim;var ReactPropTypes={array:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim};return ReactPropTypes.checkPropTypes=emptyFunction,ReactPropTypes.PropTypes=ReactPropTypes,ReactPropTypes}},function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0__emotion_memoize__=__webpack_require__(59),reactPropsRegex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,index=Object(__WEBPACK_IMPORTED_MODULE_0__emotion_memoize__.a)(function(prop){return reactPropsRegex.test(prop)||111===prop.charCodeAt(0)&&110===prop.charCodeAt(1)&&prop.charCodeAt(2)<91});__webpack_exports__.a=index},function(module,__webpack_exports__,__webpack_require__){"use strict";function memoize(fn){var cache={};return function(arg){return void 0===cache[arg]&&(cache[arg]=fn(arg)),cache[arg]}}__webpack_exports__.a=memoize},function(module,__webpack_exports__,__webpack_require__){"use strict";function _templateObject2(){var data=_taggedTemplateLiteral(["\n\tpadding: 8px 24px;\n\tmargin-bottom: 30px;\n\tbackground: #fff;\n\tborder-bottom: 1px solid #DFDFDF;\n\n\t.ang-container {\n\t\tdisplay: flex;\n\t    justify-content: space-between;\n\t    align-items: center;\n\t}\n\n\t.logo img {\n\t\tmax-width: 42px;\n\t\tmax-height: 42px;\n\t}\n\n\ta {\n\t\tcolor: #fff;\n\t}\n\n\tsvg {\n\t\tvertical-align: bottom;\n\t}\n\n\t.button-plain {\n\t\tcolor: #fff !important;\n\t\tfont-weight: bold;\n\t\ttext-decoration: none;\n\t\tdisplay: inline-flex;\n\t\talign-items: center;\n\n\t\t&.is-active {\n\t\t\tpointer-events: none;\n\t\t\tsvg {\n\t\t\t\tanimation: "," 2s linear infinite;\n\t\t\t}\n\t\t}\n\n\t\tsvg {\n\t\t\tmargin-left: 10px;\n\t\t}\n\n\t\t&:first-of-type {\n\t\t\tmargin-left: auto;\n\t\t}\n\t\t+ .button-plain {\n\t\t\tposition: relative;\n\t\t\tmargin-left: 30px;\n\t\t}\n\t}\n\n\t.sync {\n\t\ttext-transform: uppercase;\n\t\tfont-size: 12.64px !important;\n\t\tletter-spacing: 1px;\n\t}\n"]);return _templateObject2=function(){return data},data}function _templateObject(){var data=_taggedTemplateLiteral(["\n  from {\n    transform: rotate(0deg);\n  }\n\n  to {\n    transform: rotate(360deg);\n  }\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var __WEBPACK_IMPORTED_MODULE_0_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_1__contexts_ThemeContext__=__webpack_require__(12),__WEBPACK_IMPORTED_MODULE_2__Nav__=__webpack_require__(61),__WEBPACK_IMPORTED_MODULE_3__Synchronization__=__webpack_require__(62),rotate=Object(__WEBPACK_IMPORTED_MODULE_0_styled_components__.b)(_templateObject()),Container=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.div(_templateObject2(),rotate),Header=function(){var _React$useContext=React.useContext(__WEBPACK_IMPORTED_MODULE_1__contexts_ThemeContext__.c),theme=_React$useContext.theme;return React.createElement(Container,{theme:theme},React.createElement("div",{className:"ang-container"},React.createElement("div",{className:"logo"},React.createElement("img",{src:AGWP.pluginURL+"/assets/img/analog.svg",alt:""})),!AGWP.isContainer&&React.createElement(__WEBPACK_IMPORTED_MODULE_2__Nav__.a,null),React.createElement(__WEBPACK_IMPORTED_MODULE_3__Synchronization__.a,null)))};__webpack_exports__.a=Header},function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0__AnalogContext__=__webpack_require__(2),__=wp.i18n.__,TabPanel=wp.components.TabPanel,ITEMS=[{key:"blocks",label:AGWP.isContainer?__("Patterns","ang"):__("Blocks","ang")},{key:"templates",label:__("Templates","ang")},{key:"styleKits",label:__("Styles","ang")}],Nav=function(){var context=React.useContext(__WEBPACK_IMPORTED_MODULE_0__AnalogContext__.a),getCount=function(tab){var items=context.state[tab];return"templates"===tab&&(items=context.state.archive),"blocks"===tab&&(items=context.state.blockArchive),!!items&&items.length},titleGenerator=function(titleObject){var count=getCount(titleObject.key),countTemplate=count>0?"("+count+")":"";return"".concat(titleObject.label," ").concat(countTemplate)},onSelect=function(tabName){context.dispatch({tab:tabName})};return React.createElement("span",{id:"sk-library-tab"},React.createElement(TabPanel,{className:"ang-nav",onSelect:onSelect,tabs:function(tabsArray){return tabsArray.map(function(item){return{name:item.key,title:titleGenerator(item),className:"tab-".concat(item.key)}})}(ITEMS)},function(tab){return null}))};__webpack_exports__.a=Nav},function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0_classnames__=__webpack_require__(5),__WEBPACK_IMPORTED_MODULE_0_classnames___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__),__WEBPACK_IMPORTED_MODULE_1__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_2__Notifications__=__webpack_require__(6),__WEBPACK_IMPORTED_MODULE_3__icons_close__=__webpack_require__(23),__=wp.i18n.__,Button=wp.components.Button,Synchronization=function(){return React.createElement("div",null,React.createElement(__WEBPACK_IMPORTED_MODULE_1__AnalogContext__.a.Consumer,null,function(context){return React.createElement(__WEBPACK_IMPORTED_MODULE_2__Notifications__.a,null,function(_ref){var add=_ref.add;return React.createElement(Button,{isPrimary:!0,className:__WEBPACK_IMPORTED_MODULE_0_classnames___default()("ang-sync",{"is-active":context.state.syncing}),onClick:function(e){e.preventDefault(),context.forceRefresh().then(function(){return add(__("Library is now synced","ang"))}).catch(function(){return add(__("Something is not right, please try again.","ang"),"error")})}},context.state.syncing?__("Syncing...","ang"):__("Sync Library","ang"))})}),!AGWP.is_settings_page&&React.createElement(Button,{isSecondary:!0,className:"close-modal"},__("Close","ang")," ",React.createElement(__WEBPACK_IMPORTED_MODULE_3__icons_close__.a,null)))};__webpack_exports__.a=Synchronization},function(module,__webpack_exports__,__webpack_require__){"use strict";var Error=function(){return React.createElement("svg",{height:"16",width:"12",viewBox:"0 0 12 16"},React.createElement("path",{fillRule:"evenodd",d:"M5.05.01c.81 2.17.41 3.38-.52 4.31C3.55 5.37 1.98 6.15.9 7.68c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.01 8.68 2.15 5.05.02L5.03 0l.02.01z"}))};__webpack_exports__.a=Error},function(module,__webpack_exports__,__webpack_require__){"use strict";var Notice=function(){return React.createElement("svg",{height:"16",width:"16",viewBox:"0 0 16 16"},React.createElement("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"}))};__webpack_exports__.a=Notice},function(module,__webpack_exports__,__webpack_require__){"use strict";var Success=function(){return React.createElement("svg",{height:"16",width:"12",viewBox:"0 0 12 16"},React.createElement("path",{fillRule:"evenodd",d:"M12 5.5l-8 8-4-4L1.5 8 4 10.5 10.5 4 12 5.5z"}))};__webpack_exports__.a=Success},function(module,__webpack_exports__,__webpack_require__){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(iter){if(Symbol.iterator in Object(iter)||"[object Arguments]"===Object.prototype.toString.call(iter))return Array.from(iter)}function _arrayWithoutHoles(arr){if(Array.isArray(arr)){for(var i=0,arr2=new Array(arr.length);i<arr.length;i++)arr2[i]=arr[i];return arr2}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _possibleConstructorReturn(self,call){return!call||"object"!==_typeof(call)&&"function"!=typeof call?_assertThisInitialized(self):call}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _templateObject(){var data=_taggedTemplateLiteral(["\n\tcolor: ",";\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var __WEBPACK_IMPORTED_MODULE_0_classnames__=__webpack_require__(5),__WEBPACK_IMPORTED_MODULE_0_classnames___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__),__WEBPACK_IMPORTED_MODULE_1_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_2__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_3__contexts_ThemeContext__=__webpack_require__(12),__WEBPACK_IMPORTED_MODULE_4__icons_star__=__webpack_require__(24),__=wp.i18n.__,_wp$components=wp.components,ToggleControl=_wp$components.ToggleControl,SelectControl=_wp$components.SelectControl,TextControl=_wp$components.TextControl,Button=_wp$components.Button,FiltersContainer=__WEBPACK_IMPORTED_MODULE_1_styled_components__.a.div(_templateObject(),function(props){return props.theme.textDark}),Filters=function(_React$Component){function Filters(){var _this;return _classCallCheck(this,Filters),_this=_possibleConstructorReturn(this,_getPrototypeOf(Filters).apply(this,arguments)),_this.searchInput=React.createRef(),_this}return _inherits(Filters,_React$Component),_createClass(Filters,[{key:"render",value:function(){var _this2=this,filters=_toConsumableArray(new Set(this.context.state.archive.map(function(f){return f.type}))),filterTypes=_toConsumableArray(filters).map(function(filter){return{value:"".concat(filter),label:"".concat(filter)}}),filterOptions=[{value:"all",label:__("All template types","ang")}].concat(_toConsumableArray(filterTypes)),sortOptions=[{value:"latest",label:__("Newest first","ang")},{value:"popular",label:__("Popular","ang")}],productTypeOptions=[{value:"all",label:__("Both Free and Pro","ang")},{value:"pro",label:__("Pro","ang")},{value:"free",label:__("Free","ang")}],showingKit=this.context.state.group&&this.context.state.activeKit;return React.createElement(__WEBPACK_IMPORTED_MODULE_3__contexts_ThemeContext__.b,null,function(_ref){var theme=_ref.theme;return React.createElement(FiltersContainer,{theme:theme,className:"template-filter"},React.createElement("div",{className:"top"},showingKit&&React.createElement(React.Fragment,null,React.createElement("h2",{className:"kit-title"},__("Template Kit","ang"),": ",_this2.context.state.activeKit.title),React.createElement(Button,{className:"kit-back",isSecondary:!0,onClick:function(){_this2.context.dispatch({activeKit:!1})}},__("Back to all Kits","ang"))),!showingKit&&React.createElement("button",{onClick:_this2.context.toggleFavorites,className:__WEBPACK_IMPORTED_MODULE_0_classnames___default()("favorites button-plain",{"is-active":_this2.context.state.showing_favorites})},React.createElement(__WEBPACK_IMPORTED_MODULE_4__icons_star__.a,null)," ",_this2.context.state.showing_favorites?__("Back to all","ang"):__("Favorites","ang")),!showingKit&&!_this2.context.state.showing_favorites&&React.createElement(ToggleControl,{className:"group-by",label:__("Group by Template Kit"),checked:_this2.context.state.group,onChange:function(){_this2.context.dispatch({group:!_this2.context.state.group,templates:_this2.context.state.archive}),window.localStorage.setItem("analog::group-kit",!_this2.context.state.group)}})),(!_this2.context.state.group||showingKit)&&!_this2.context.state.showing_favorites&&React.createElement("div",{className:"bottom "+(showingKit?"to-top-right":"")},React.createElement("span",null,!showingKit&&filters.length>1&&React.createElement(SelectControl,{id:"filter",options:filterOptions,onChange:function(value){_this2.context.handleFilter(value)}}),"valid"!==AGWP.license.status&&React.createElement(SelectControl,{id:"product-type",options:productTypeOptions,onChange:function(value){var pro=!1,free=!1;"all"===value?(pro=!0,free=!0):"pro"===value?(pro=!0,free=!1):"free"===value&&(pro=!1,free=!0),_this2.context.dispatch({showFree:free,showPro:pro}),window.localStorage.setItem("analog::show-free",free),window.localStorage.setItem("analog::show-pro",pro)}}),React.createElement(SelectControl,{id:"sort",options:sortOptions,onChange:function(value){return _this2.context.handleSort(value)}})),React.createElement("span",null,!showingKit&&React.createElement(TextControl,{type:"search",placeholder:__("Search templates...","ang"),onChange:function(value){return _this2.context.handleSearch(value.toLowerCase())}}))))})}}]),Filters}(React.Component);Filters.contextType=__WEBPACK_IMPORTED_MODULE_2__AnalogContext__.a,__webpack_exports__.a=Filters},function(module,__webpack_exports__,__webpack_require__){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function _extends(){return _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_extends.apply(this,arguments)}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(iter){if(Symbol.iterator in Object(iter)||"[object Arguments]"===Object.prototype.toString.call(iter))return Array.from(iter)}function _arrayWithoutHoles(arr){if(Array.isArray(arr)){for(var i=0,arr2=new Array(arr.length);i<arr.length;i++)arr2[i]=arr[i];return arr2}}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(source,!0).forEach(function(key){_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(source).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _possibleConstructorReturn(self,call){return!call||"object"!==_typeof(call)&&"function"!=typeof call?_assertThisInitialized(self):call}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _templateObject2(){var data=_taggedTemplateLiteral(["\n    > li {\n    \tborder-radius: 4px;\n    \tbackground: #fff;\n    }\n\n    figure {\n    \tmargin: 0;\n\t\tposition: relative;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\timg {\n\t\t\twidth: 100%;\n\t\t\theight: auto;\n\t\t}\n\n\t\t&:hover {\n\t\t\t.preview {\n\t\t\t\topacity: 1;\n\t\t\t\tbutton {\n\t\t\t\t\ttransform: none;\n\t\t\t\t\topacity: 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t .preview {\n\t\tbutton {\n\t\t\ttransform: translateY(20px);\n\t\t\topacity: 0;\n\n\t\t\t+ button, + .ang-promo {\n\t\t\t\tmargin-top: 10px;\n\t\t\t\ttext-decoration: none;\n\t\t\t}\n\t\t}\n\t\timg {\n\t\t\twidth: 100%;\n\t\t\theight: auto;\n\t\t}\n    }\n"]);return _templateObject2=function(){return data},data}function _templateObject(){var data=_taggedTemplateLiteral(["\n\t> p {\n\t\tfont-size: 16px;\n\t\tline-height: 24px;\n\t}\n\th3 {\n\t\tmargin: 0;\n\t\tfont-size: 14.2px;\n\t}\n\t.inner {\n    \ttext-align: center;\n    }\n    .error {\n    \tcolor: indianred;\n    \ttext-align: left;\n    }\n    a {\n    \tcolor: var(--ang-primary);\n    }\n    .tab-description {\n\t\tfont-size: 14px;\n\t\tline-height: 1.5;\n\t\tmargin: 12px 0 40px;\n\t    padding: 16px;\n\t    background-color: #F9F9F8;\n\t    border-radius: 6px;\n\t    box-shadow: rgb(0 0 0 / 10%) 0px 0px 0px 1px;\n    }\n    .popup-description {\n        text-align: left;\n\t\tfont-size: 14px;\n\t\tline-height: 1.5;\n\t\tcolor: var(--ang-main-text);\n\t\tpadding-bottom: 10px;\n\n\t\ta {\n\t\t\ttext-decoration: underline !important;\n\t\t}\n    }\n\n\t.gap {\n\t\tdisplay: flex;\n        gap: 10px;\n\n        & > button {\n            margin-left: 0 !important;\n        }\n\t}\n\n    .success-buttons {\n        button {\n            margin-left: 0 !important;\n        }\n    }\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}__webpack_require__.d(__webpack_exports__,"a",function(){return StyleKits});var __WEBPACK_IMPORTED_MODULE_0_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_1__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_2__api__=__webpack_require__(4),__WEBPACK_IMPORTED_MODULE_3__icons_loader__=__webpack_require__(25),__WEBPACK_IMPORTED_MODULE_4__Notifications__=__webpack_require__(6),__WEBPACK_IMPORTED_MODULE_5__popup__=__webpack_require__(26),__WEBPACK_IMPORTED_MODULE_6__modal_Preview__=__webpack_require__(68),_wp$components=wp.components,TextControl=_wp$components.TextControl,Button=_wp$components.Button,Card=(_wp$components.Dashicon,_wp$components.Card),CardBody=_wp$components.CardBody,CardFooter=_wp$components.CardFooter,decodeEntities=wp.htmlEntities.decodeEntities,_wp$i18n=wp.i18n,__=_wp$i18n.__,sprintf=_wp$i18n.sprintf,addQueryArgs=wp.url.addQueryArgs,Container=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.section(_templateObject()),ChildContainer=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.ul(_templateObject2()),initialState={modalActive:!1,importing:!1,activeKit:[],importedKit:!1,hasError:!1,kitname:"",previewing:null},footer=sprintf(__('%s <span class="footer-text">in WordPress dashboard.</span>',"ang"),sprintf('<a href="'.concat(addQueryArgs("admin.php",{page:"style-kits"}),'" target="_blank" rel="noopener noreferer">%s</a>'),__("Manage your Style Kits","ang"))),StyleKits=function(_React$Component){function StyleKits(){var _this;return _classCallCheck(this,StyleKits),_this=_possibleConstructorReturn(this,_getPrototypeOf(StyleKits).apply(this,arguments)),_this.state=_objectSpread({},initialState),_this}return _inherits(StyleKits,_React$Component),_createClass(StyleKits,[{key:"resetState",value:function(){this.setState(initialState)}},{key:"handleImport",value:function(kit,add){var _this2=this,checkKitStatus=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.setState({activeKit:kit,modalActive:!0}),checkKitStatus){if(this.context.state.installedKits.indexOf(this.state.kitname||kit.title)>-1)return void this.setState({hasError:!0})}Object(__WEBPACK_IMPORTED_MODULE_2__api__.h)(kit).then(function(response){if(response.errors){var message=Object.values(response.errors)[0];return add(message,"error","kit-error",!1),void _this2.resetState()}var kits=_toConsumableArray(_this2.context.state.installedKits);if(kits.push(kit.title),_this2.setState({importedKit:!0}),_this2.context.dispatch({installedKits:kits}),add(response.message),!AGWP.is_settings_page&&elementor){var options=elementor.settings.page.model.controls.ang_action_tokens.options;0===options.length&&(options={}),options[response.id]=kit.title,elementor.settings.page.model.controls.ang_action_tokens.options=options,elementor.reloadPreview(),analog.redirectToSection()}}).catch(function(error){add(error.message,"error","kit-error",!1),_this2.resetState()})}},{key:"getPopupTitle",value:function(title,hasImported,hasError){return hasImported&&!hasError?decodeEntities(title)+__(" Imported!","ang"):decodeEntities(title)}},{key:"render",value:function(){var _this3=this,successButtonProps={rel:"noopener noreferrer",href:addQueryArgs("admin.php",{page:"style-kits"})},isValid=function(isPro){return!(isPro&&"valid"!==AGWP.license.status)},fallbackImage=AGWP.pluginURL+"assets/img/placeholder.svg";return React.createElement(Container,null,React.createElement("p",{className:"tab-description"},__("Style Kits are ready-made configurations of theme styles. When you import a Style Kit, it will be available in the","ang")," ",React.createElement("a",{href:addQueryArgs("admin.php",{page:"style-kits"})},__("Local Style Kits","ang"))," ",__("page","ang"),".  ",__("You will then be able apply it globally, or on any page.","ang")," ",React.createElement("a",{href:"https://analogwp.com/docs/importing-global-style-presets/",target:"_blank",rel:"noopener noreferrer"},__("Learn more","ang")),"."),this.state.previewing&&this.state.previewing.preview&&React.createElement(__WEBPACK_IMPORTED_MODULE_4__Notifications__.a,null,function(_ref){var add=_ref.add;return React.createElement(__WEBPACK_IMPORTED_MODULE_6__modal_Preview__.a,{template:_this3.state.previewing,onRequestClose:function(){return _this3.resetState()},onRequestImport:function(){return _this3.handleImport(_this3.state.previewing,add,!0)},insertText:__("Import Style Kit","ang"),style:{padding:"20px",boxSizing:"border-box"}})}),React.createElement(ChildContainer,{className:"stylekit-list"},this.context.state.styleKits.length>0&&this.context.state.styleKits.map(function(kit){return React.createElement("li",{key:kit.id+"-"+kit.site_id},React.createElement(Card,null,React.createElement(CardBody,null,kit.is_pro&&React.createElement("span",{className:"pro"},__("Pro","ang")),React.createElement("figure",null,React.createElement("img",{src:kit.image||fallbackImage,alt:kit.title}),React.createElement("div",{className:"preview"},kit.preview&&React.createElement(Button,{isSecondary:!0,className:"black-transparent",onClick:function(){window.scrollTo(0,0),_this3.setState({previewing:kit})}},__("Preview","ang")),!isValid(kit.is_pro)&&React.createElement("a",{className:"ang-promo",href:"https://analogwp.com/style-kits-pro/?utm_medium=plugin&utm_source=library&utm_campaign=style+kits+pro",target:"_blank"},React.createElement(Button,{isPrimary:!0},__("Go Pro","ang"))),isValid(kit.is_pro)&&React.createElement(__WEBPACK_IMPORTED_MODULE_4__Notifications__.a,null,function(_ref2){var add=_ref2.add;return React.createElement(Button,{isPrimary:!0,onClick:function(){return _this3.handleImport(kit,add,!0)}},__("Import","ang"))})))),React.createElement(CardFooter,null,React.createElement("div",{className:"content"},React.createElement("h3",null,kit.title)))))})),this.state.modalActive&&React.createElement(__WEBPACK_IMPORTED_MODULE_5__popup__.a,{title:this.getPopupTitle(this.state.activeKit.title,this.state.importedKit,this.state.hasError),onRequestClose:function(){return _this3.resetState()}},this.state.hasError&&React.createElement("div",{className:"stylekit-popup-content"},React.createElement("p",{className:"popup-description"},__("A Style Kit named ","ang")+decodeEntities(this.state.activeKit.title)+__(" already exists in your website. To import it again please use a different name.","ang")),this.context.state.installedKits.indexOf(this.state.kitname)>-1&&React.createElement("p",{className:"error"},__("Please try a different as a Style Kit with same name already exists.","ang")),React.createElement("div",{className:"form-row gap"},React.createElement(TextControl,{placeholder:__("Enter a Style Kit Name","ang"),onChange:function(val){return _this3.setState({kitname:val})},className:"kit-name"}),React.createElement(__WEBPACK_IMPORTED_MODULE_4__Notifications__.a,null,function(_ref3){var add=_ref3.add;return React.createElement(Button,{isPrimary:!0,disabled:!_this3.state.kitname||_this3.context.state.installedKits.indexOf(_this3.state.kitname)>-1,style:{marginLeft:"15px"},onClick:function(){_this3.setState({hasError:!1});var kit=_objectSpread({},_this3.state.activeKit,{title:_this3.state.kitname});_this3.handleImport(kit,add)}},__("Import","ang"))}))),!this.state.hasError&&!this.state.importedKit&&React.createElement(__WEBPACK_IMPORTED_MODULE_3__icons_loader__.a,null),!this.state.hasError&&this.state.importedKit&&React.createElement("div",{className:"stylekit-popup-content"},React.createElement("p",{className:"popup-description"},decodeEntities(this.state.activeKit.title)+__(" has been successfully imported. You can now find it in the ","ang"),React.createElement("a",{href:AGWP.globalSkAlwaysEnableURL},__("list of your Local Style Kits")),"."),React.createElement("p",{className:"success-buttons gap"},React.createElement("a",{onClick:function(e){_this3.resetState(),Boolean(AGWP.is_settings_page)||(e.preventDefault(),window.analogModal.hide(),analog.redirectToSection())}},React.createElement(Button,{isPrimary:!0},__("Stay on this page","ang"))),React.createElement("a",_extends({onClick:function(e){_this3.resetState(),Boolean(AGWP.is_settings_page)||(e.preventDefault(),window.analogModal.hide(),analog.redirectToSection())}},successButtonProps),React.createElement(Button,{isSecondary:!0},__("View local Style Kits","ang")))),!Boolean(AGWP.is_settings_page)&&React.createElement("footer",{className:"style-kit-footer",dangerouslySetInnerHTML:{__html:footer}})),!this.state.hasError&&!this.state.importedKit&&React.createElement("p",null,__("Importing ","ang")," ",decodeEntities(this.state.activeKit.title))))}}]),StyleKits}(React.Component);_defineProperty(StyleKits,"contextType",__WEBPACK_IMPORTED_MODULE_1__AnalogContext__.a)},function(module,__webpack_exports__,__webpack_require__){"use strict";function _extends(){return _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_extends.apply(this,arguments)}function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=_objectWithoutPropertiesLoose(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++)key=sourceSymbolKeys[i],excluded.indexOf(key)>=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],excluded.indexOf(key)>=0||(target[key]=source[key]);return target}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit(arr,i){if(Symbol.iterator in Object(arr)||"[object Arguments]"===Object.prototype.toString.call(arr)){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}function _templateObject3(){var data=_taggedTemplateLiteral(["\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n\toverflow: hidden;\n\toverflow: -moz-scrollbars-none;\n\tbackground: #F1F1F1;\n\tz-index: 999;\n\ttext-align: center;\n\n\tiframe {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tdisplay: ",";\n\t}\n\n\t.frame-header {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\talign-items: center;\n\t\tmargin-bottom: 25px;\n\n\t\ta {\n\t\t\tmargin-left: auto;\n\t\t\tmargin-right: 20px;\n\t\t\tcolor: currentColor;\n\t\t\ttext-decoration: none;\n\t\t}\n\n\t\t.dashicons {\n\t\t\tfont-size: 25px;\n\t\t}\n\t}\n\n\t.button--accent {\n\t\tfont-size: 12px;\n\t\tfont-weight: bold;\n\t\tcolor: #fff;\n\t\tborder-radius: 0;\n\t\tborder: none;\n\t\tbackground: var(--ang-accent);\n\t\toutline: 0;\n\t\tbox-shadow: none;\n\t\tpadding: 15px 30px;\n\t\tcursor: pointer;\n\t}\n"]);return _templateObject3=function(){return data},data}function _templateObject2(){var data=_taggedTemplateLiteral(["\n\topacity: 0.5;\n\ttransition: all 200ms ease-in-out;\n\tanimation: "," 2s linear infinite;\n"]);return _templateObject2=function(){return data},data}function _templateObject(){var data=_taggedTemplateLiteral(["\n  0% {\n    opacity: 0.5;\n  }\n\n  50% {\n    opacity: 0.1;\n  }\n\n  100% {\n    opacity: 0.5;\n  }\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var __WEBPACK_IMPORTED_MODULE_0_styled_components__=__webpack_require__(1),_wp$components=wp.components,FocusableIframe=_wp$components.FocusableIframe,Button=_wp$components.Button,__=wp.i18n.__,rotateOpacity=Object(__WEBPACK_IMPORTED_MODULE_0_styled_components__.b)(_templateObject()),Img=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.img(_templateObject2(),rotateOpacity),Container=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.div(_templateObject3(),function(props){return props.loading?"none":"block"}),Preview=function(props){var _React$useState=React.useState(!0),_React$useState2=_slicedToArray(_React$useState,2),loading=_React$useState2[0],setLoading=_React$useState2[1],onRequestClose=props.onRequestClose,onRequestImport=props.onRequestImport,rest=_objectWithoutProperties(props,["onRequestClose","onRequestImport"]),previewURL=props.template.url||props.template.preview;return React.createElement(Container,_extends({loading:loading},rest),React.createElement("div",{className:"frame-header"},React.createElement(Button,{isSecondary:!0,onClick:onRequestClose},__("Back to Library","ang")),React.createElement("a",{href:previewURL,rel:"noopener noreferrer",target:"_blank"},React.createElement(Button,{isSecondary:!0},__("Open in new tab","ang"))),!(props.template.is_pro&&"valid"!==AGWP.license.status)&&React.createElement(Button,{isPrimary:!0,onClick:onRequestImport},props.insertText||__("Import Template","ang"))),loading&&React.createElement(Img,{src:"".concat(AGWP.pluginURL,"assets/img/placeholder.svg"),alt:__("Loading icon","ang")}),React.createElement(FocusableIframe,{src:previewURL,onLoad:function(){return setLoading(!1)}}))};__webpack_exports__.a=Preview},function(module,__webpack_exports__,__webpack_require__){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(source,!0).forEach(function(key){_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(source).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _possibleConstructorReturn(self,call){return!call||"object"!==_typeof(call)&&"function"!=typeof call?_assertThisInitialized(self):call}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _templateObject(){var data=_taggedTemplateLiteral(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tposition: relative;\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}__webpack_require__.d(__webpack_exports__,"a",function(){return Blocks});var __WEBPACK_IMPORTED_MODULE_0_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_1__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_2__api__=__webpack_require__(4),__WEBPACK_IMPORTED_MODULE_4__BlockList__=(__webpack_require__(27),__webpack_require__(70)),__WEBPACK_IMPORTED_MODULE_5__Sidebar__=__webpack_require__(72),_wp$element=(wp.i18n.__,wp.element),Component=_wp$element.Component,Fragment=_wp$element.Fragment,LibraryWrapper=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.div(_templateObject()),initialState={blocks:[],activeBlock:!1,blockImported:!1,modalActive:!1},Blocks=function(_Component){function Blocks(){var _this;return _classCallCheck(this,Blocks),_this=_possibleConstructorReturn(this,_getPrototypeOf(Blocks).apply(this,arguments)),_defineProperty(_assertThisInitialized(_this),"makeFavorite",function(id){var blockFavorites=_this.context.state.blockFavorites;if(_this.context.markFavorite(id,!(id in blockFavorites),"block"),id in blockFavorites?delete blockFavorites[id]:blockFavorites[id]=!(id in blockFavorites),_this.context.dispatch({blockFavorites:blockFavorites}),_this.context.state.showing_favorites){var filteredBlocks=_this.context.state.blocks.filter(function(t){return t.id in blockFavorites});_this.context.dispatch({blocks:filteredBlocks})}}),_this.state=_objectSpread({},initialState),_this.importBlock=_this.importBlock.bind(_assertThisInitialized(_this)),_this.handleImport=_this.handleImport.bind(_assertThisInitialized(_this)),_this}return _inherits(Blocks,_Component),_createClass(Blocks,[{key:"importBlock",value:function(block,add){this.setState({modalActive:!0,activeBlock:block}),this.handleImport(block,add)}},{key:"handleImport",value:function(block,add){var _this2=this,method=Boolean(AGWP.is_settings_page)?"library":"elementor";Object(__WEBPACK_IMPORTED_MODULE_2__api__.d)(block,method).then(function(response){if("elementor"===method){var parsedTemplate=response.data;Object(__WEBPACK_IMPORTED_MODULE_2__api__.a)(parsedTemplate.content,"block"),_this2.setState({modalActive:!1,activeBlock:!1}),window.analogModal.hide()}else _this2.setState({blockImported:!0})}).catch(function(error){add(error.message,"error","import-error",!1),_this2.setState({modalActive:!1,activeBlock:!1})})}},{key:"getItemCount",value:function(category){var blocks=this.context.state.blocks,foundItems=blocks.filter(function(block){return block.tags.indexOf(category)>-1});return!!foundItems&&foundItems.length}},{key:"render",value:function(){var _this3=this,dataSet={state:this.state,dispatch:function(action){return _this3.setState(action)}};return React.createElement(Fragment,null,React.createElement(LibraryWrapper,null,React.createElement(__WEBPACK_IMPORTED_MODULE_5__Sidebar__.a,{state:dataSet}),React.createElement(__WEBPACK_IMPORTED_MODULE_4__BlockList__.a,{state:dataSet,importBlock:this.importBlock,favorites:this.context.state.blockFavorites,makeFavorite:this.makeFavorite})))}}]),Blocks}(Component);_defineProperty(Blocks,"contextType",__WEBPACK_IMPORTED_MODULE_1__AnalogContext__.a)},function(module,__webpack_exports__,__webpack_require__){"use strict";function _templateObject3(){var data=_taggedTemplateLiteral(['\n\tflex: 1;\n\tmargin-left: 25px;\n\n\t.grid {\n\t\tdisplay: flex;\n\t\tmargin-left: -25px; /* gutter size offset */\n\t\twidth: auto;\n\t}\n\n\t.grid-item {\n\t\tpadding-left: 25px;\n\t\tbackground-clip: padding-box;\n\n\t\t&:empty {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t> div {\n\t\t\tbackground: #fff;\n\t\t\tbox-shadow: 0px 5px 20px rgba(0, 0, 0, 0.05);\n\t\t\tposition: relative;\n\t\t\tmargin-bottom: 25px;\n\t\t}\n\t}\n\n\tfigure {\n\t\tposition: relative;\n\t\toverflow: hidden;\n\t\tmargin: 0;\n\t\tmin-height: 150px;\n\t\tdisplay: flex;\n\n\t\t&:hover {\n\t\t\t.actions {\n\t\t\t\topacity: 1;\n\t\t\t\tbutton {\n\t\t\t\t\ttransform: none;\n\t\t\t\t\topacity: 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t.favorite {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\n\t\t.pattern-title {\n\t\t\tposition: absolute;\n\t\t\tbottom: 10px;\n\t\t\ttext-align: center;\n\t\t\twidth: 100%;\n\t\t\tfont-size: 14px !important;\n\t\t\ttext-transform: capitalize;\n\t\t}\n\n\t\t.actions {\n\t\t\tbutton {\n\t\t\t\ttransform: translateY(20px);\n\t\t\t\topacity: 0;\n\t\t\t}\n\t\t\t.ang-promo {\n\t\t\t\ttext-decoration: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t.favorite {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tz-index: 200;\n\t\tdisplay: inline-flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\twidth: 25px;\n\t\theight: 25px;\n\t\tbox-shadow: none !important;\n\t\toutline: none !important;\n\n\t\t&:not(.is-active) {\n\t\t\topacity: 0;\n\t\t}\n\n\t\t&:before {\n\t\t\tcontent: \'\';\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder-style: solid;\n\t\t\tborder-width: 42px 42px 0 0;\n\t\t\tborder-color: var(--ang-dark-bg) transparent transparent transparent;\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tz-index: 190;\n\t\t}\n\n\t\tsvg {\n\t\t\tfill: #fff;\n\t\t\tposition: relative;\n\t\t\tz-index: 195;\n\t\t\twidth: 17px;\n\t\t\theight: 17px;\n\t\t}\n\t\t&.is-active svg {\n\t\t\tfill: #FFB443;\n\t\t}\n\t}\n\n\timg {\n\t\tmax-width: 100%;\n\t\theight: auto;\n\t\talign-self: center;\n\t}\n\n\timg[src$="svg"] {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tobject-fit: cover;\n\t\tmax-height: 150px;\n\t}\n\n\th3 {\n\t\tmargin: 0;\n\t\tfont-weight: normal;\n\t\tfont-size: 16px;\n\t\tline-height: 21px;\n\t}\n\n\t .content {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\talign-items: center;\n\t}\n\n\t .components-base-control {\n\t\tmargin-bottom: 30px;\n\t}\n\n\t.components-text-control__input, .components-text-control__input[type="text"] {\n\t\tbackground-color: #fff;\n\t\tcolor: #060606;\n\t\tfont-size: 16px;\n\t}\n\n\t.button-plain {\n\t\tpadding: 0;\n\t\tmargin: 0;\n\t\tborder: none;\n\t\tborder-radius: 0;\n\t\tbox-shadow: none;\n\t\tcursor: pointer;\n\t\tappearance: none;\n\t\toutline: 0;\n\t\tbackground: transparent;\n\t\tfont-weight: bold;\n\t\tcolor: #060606;\n\t\tfont-size: 14.22px;\n\t}\n\t.inner-popup-header {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\talign-items: center;\n\t\tposition: sticky;\n\t\tbackground: #fff;\n\t}\n\t.inner-popup-header h1 {\n\t\tfont-size: 16px;\n\t\tfont-weight: bold;\n\t\tcolor: #000000;\n\t\tmargin: 0;\n\t}\n\t.inner-popup-content p {\n\t\tfont-size: 13px;\n\t\tline-height: 18px;\n\t\tcolor: #565d65;\n\t}\n']);return _templateObject3=function(){return data},data}function _templateObject2(){var data=_taggedTemplateLiteral(['\n\tdisplay: flex;\n\tmargin-left: -25px;\n\twidth: auto;\n\n\timg[src$="svg"].thumb {\n\t\twidth: 33.3333%;\n\t\tpadding-left: 25px;\n\t\tbackground-clip: padding-box;\n\t\tmax-height: 300px;\n\t\tobject-fit: cover;\n\t\tobject-position: top;\n\t\topacity: 0.7;\n\t\ttransition: all 200ms ease-in-out;\n\t\tanimation: '," 2s linear infinite;\n\t}\n"]);return _templateObject2=function(){return data},data}function _templateObject(){var data=_taggedTemplateLiteral(["\n  0% {\n    opacity: 0.7;\n  }\n\n  50% {\n    opacity: 0.1;\n  }\n\n  100% {\n    opacity: 0.7;\n  }\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var __WEBPACK_IMPORTED_MODULE_0_classnames__=__webpack_require__(5),__WEBPACK_IMPORTED_MODULE_0_classnames___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__),__WEBPACK_IMPORTED_MODULE_1_react_masonry_css__=__webpack_require__(71),__WEBPACK_IMPORTED_MODULE_1_react_masonry_css___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_masonry_css__),__WEBPACK_IMPORTED_MODULE_2_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_3__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_5__Notifications__=(__webpack_require__(13),__webpack_require__(6)),__WEBPACK_IMPORTED_MODULE_6__icons_star__=__webpack_require__(24),__WEBPACK_IMPORTED_MODULE_7__popup__=__webpack_require__(26),__WEBPACK_IMPORTED_MODULE_8__icons_loader__=__webpack_require__(25),__WEBPACK_IMPORTED_MODULE_9__ProModal__=__webpack_require__(34),__WEBPACK_IMPORTED_MODULE_10__helpers_Empty__=__webpack_require__(27),decodeEntities=wp.htmlEntities.decodeEntities,_wp$i18n=wp.i18n,__=_wp$i18n.__,sprintf=_wp$i18n.sprintf,_wp$components=wp.components,Dashicon=_wp$components.Dashicon,Button=_wp$components.Button,Card=_wp$components.Card,CardBody=_wp$components.CardBody,CardFooter=_wp$components.CardFooter,addQueryArgs=wp.url.addQueryArgs,rotateOpacity=Object(__WEBPACK_IMPORTED_MODULE_2_styled_components__.b)(_templateObject()),Container=(__WEBPACK_IMPORTED_MODULE_2_styled_components__.a.div(_templateObject2(),rotateOpacity),__WEBPACK_IMPORTED_MODULE_2_styled_components__.a.div(_templateObject3())),BlockList=function(_ref){var state=_ref.state,importBlock=_ref.importBlock,favorites=_ref.favorites,makeFavorite=_ref.makeFavorite,context=React.useContext(__WEBPACK_IMPORTED_MODULE_3__AnalogContext__.a),filteredBlocks=context.state.blocks.filter(function(block){return!("valid"!==AGWP.license.status&&context.state.showFree&&Boolean(block.is_pro))}),isValid=(AGWP.pluginURL,function(isPro){return!(isPro&&"valid"!==AGWP.license.status)}),breakpointColumnsObj={default:5,2e3:4,1600:3,1300:2,900:1},getScreenshot=function(block){return AGWP.isContainer?block.thumbnail||AGWP.blockMediaURL+"patterns/".concat(block.id,".webp?modified=").concat(block.modified):AGWP.blockMediaURL+block.id+".jpg"};return React.createElement(React.Fragment,null,state.state.modalActive&&React.createElement(__WEBPACK_IMPORTED_MODULE_7__popup__.a,{title:decodeEntities(state.state.activeBlock.title),style:{textAlign:"center"},onRequestClose:function(){state.dispatch({activeBlock:!1,modalActive:!1,blockImported:!1})}},!state.state.blockImported&&React.createElement(__WEBPACK_IMPORTED_MODULE_8__icons_loader__.a,null),state.state.blockImported&&React.createElement(React.Fragment,null,React.createElement("p",null,sprintf(__("The %s has been imported and is now available in the","ang"),AGWP.isContainer?"container":"section")," ",React.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:addQueryArgs("edit.php",{post_type:"elementor_library",tabs_group:!0,elementor_library_type:AGWP.isContainer?"container":"section"})},sprintf(__("Elementor %s library","ang"),AGWP.isContainer?"container":"section")),"."),React.createElement("p",null,React.createElement(Button,{isPrimary:!0,onClick:function(){state.dispatch({activeBlock:!1,modalActive:!1,blockImported:!1})}},__("Ok, thanks","ang")," ",React.createElement(Dashicon,{icon:"yes"}))))),React.createElement(Container,{className:"blocks-area"},"valid"!==AGWP.license.status&&React.createElement(__WEBPACK_IMPORTED_MODULE_9__ProModal__.a,null),!context.state.syncing&&context.state.blocks.length<1&&React.createElement(__WEBPACK_IMPORTED_MODULE_10__helpers_Empty__.a,{text:AGWP.isContainer?__("No patterns found","ang"):__("No blocks found","ang")}),context.state.syncing&&context.state.blocks.length<1&&React.createElement(__WEBPACK_IMPORTED_MODULE_10__helpers_Empty__.a,{text:AGWP.isContainer?__("Loading Patterns...","ang"):__("Loading Blocks...","ang")}),React.createElement(__WEBPACK_IMPORTED_MODULE_1_react_masonry_css___default.a,{breakpointCols:Boolean(AGWP.is_settings_page)?breakpointColumnsObj:3,className:"grid",columnClassName:"grid-item block-list"},filteredBlocks.length>=1&&filteredBlocks.map(function(block){var requiresElementorPro=!1;if(block.requiredPlugins&&block.requiredPlugins.length>0){var unresolvedPlugins=block.requiredPlugins.filter(function(plugin){return""!==plugin&&!AGWP.activePlugins.includes(plugin)});if(unresolvedPlugins.length>0&&!unresolvedPlugins.includes("elementor-pro"))return null;requiresElementorPro=unresolvedPlugins&&unresolvedPlugins.includes("elementor-pro")}return React.createElement("div",{key:block.id},React.createElement(Card,null,React.createElement(CardBody,null,block.is_pro&&React.createElement("span",{className:"pro"},__("Pro","ang")),React.createElement("figure",null,React.createElement("img",{src:getScreenshot(block),loading:"lazy",width:"720",height:"100",alt:block.title}),React.createElement("div",{className:"actions"},!isValid(block.is_pro)&&React.createElement("a",{className:"ang-promo",href:"https://analogwp.com/style-kits-pro/?utm_medium=plugin&utm_source=library&utm_campaign=style+kits+pro",target:"_blank"},React.createElement(Button,{isPrimary:!0},__("Go Pro","ang"))),isValid(block.is_pro)&&requiresElementorPro&&React.createElement("a",{className:"ang-requirements",href:"https://analogwp.com/style-kits-pro/?utm_medium=plugin&utm_source=library&utm_campaign=style+kits+pro",target:"_blank"},React.createElement("img",{className:"required-logo",src:AGWP.pluginURL+"/assets/img/elementor.svg"}),React.createElement("h4",{className:"title"},"Elementor PRO"),React.createElement("p",{className:"description"},"This pattern is using Elementor PRO widgets.")),React.createElement(__WEBPACK_IMPORTED_MODULE_5__Notifications__.a,null,function(_ref2){var add=_ref2.add;return!requiresElementorPro&&isValid(block.is_pro)&&React.createElement(Button,{isPrimary:!0,onClick:function(){return importBlock(block,add)}},__("Import","ang"))}),AGWP.isContainer&&React.createElement("div",{className:"pattern-title"},React.createElement("h3",null,decodeEntities(block.title)))),React.createElement("button",{className:__WEBPACK_IMPORTED_MODULE_0_classnames___default()("button-plain favorite",{"is-active":block.id in favorites}),onClick:function(){return makeFavorite(block.id)}},React.createElement(__WEBPACK_IMPORTED_MODULE_6__icons_star__.a,null)))),!AGWP.isContainer&&React.createElement(CardFooter,null,React.createElement("div",{className:"content"},React.createElement("h3",null,decodeEntities(block.title)),block.is_pro&&React.createElement("span",{className:"pro"},__("Pro","ang"))))))}))))};__webpack_exports__.a=BlockList},function(module,exports,__webpack_require__){"use strict";function _objectWithoutProperties(obj,keys){var target={};for(var i in obj)keys.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(obj,i)&&(target[i]=obj[i]);return target}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}Object.defineProperty(exports,"__esModule",{value:!0});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_react=__webpack_require__(3),_react2=function(obj){return obj&&obj.__esModule?obj:{default:obj}}(_react),defaultProps={breakpointCols:void 0,className:void 0,columnClassName:void 0,children:void 0,columnAttrs:void 0,column:void 0},DEFAULT_COLUMNS=2,Masonry=function(_React$Component){function Masonry(props){_classCallCheck(this,Masonry);var _this=_possibleConstructorReturn(this,(Masonry.__proto__||Object.getPrototypeOf(Masonry)).call(this,props));_this.reCalculateColumnCount=_this.reCalculateColumnCount.bind(_this),_this.reCalculateColumnCountDebounce=_this.reCalculateColumnCountDebounce.bind(_this);var columnCount=void 0;return columnCount=_this.props.breakpointCols&&_this.props.breakpointCols.default?_this.props.breakpointCols.default:parseInt(_this.props.breakpointCols)||DEFAULT_COLUMNS,_this.state={columnCount:columnCount},_this}return _inherits(Masonry,_React$Component),_createClass(Masonry,[{key:"componentDidMount",value:function(){this.reCalculateColumnCount(),window&&window.addEventListener("resize",this.reCalculateColumnCountDebounce)}},{key:"componentDidUpdate",value:function(){this.reCalculateColumnCount()}},{key:"componentWillUnmount",value:function(){window&&window.removeEventListener("resize",this.reCalculateColumnCountDebounce)}},{key:"reCalculateColumnCountDebounce",value:function(){var _this2=this;if(!window||!window.requestAnimationFrame)return void this.reCalculateColumnCount();window.cancelAnimationFrame&&window.cancelAnimationFrame(this._lastRecalculateAnimationFrame),this._lastRecalculateAnimationFrame=window.requestAnimationFrame(function(){_this2.reCalculateColumnCount()})}},{key:"reCalculateColumnCount",value:function(){var windowWidth=window&&window.innerWidth||1/0,breakpointColsObject=this.props.breakpointCols;"object"!==(void 0===breakpointColsObject?"undefined":_typeof(breakpointColsObject))&&(breakpointColsObject={default:parseInt(breakpointColsObject)||DEFAULT_COLUMNS});var matchedBreakpoint=1/0,columns=breakpointColsObject.default||DEFAULT_COLUMNS;for(var breakpoint in breakpointColsObject){var optBreakpoint=parseInt(breakpoint);optBreakpoint>0&&windowWidth<=optBreakpoint&&optBreakpoint<matchedBreakpoint&&(matchedBreakpoint=optBreakpoint,columns=breakpointColsObject[breakpoint])}columns=Math.max(1,parseInt(columns)||1),this.state.columnCount!==columns&&this.setState({columnCount:columns})}},{key:"itemsInColumns",value:function(){for(var currentColumnCount=this.state.columnCount,itemsInColumns=new Array(currentColumnCount),items=[].concat(this.props.children||[]),i=0;i<items.length;i++){var columnIndex=i%currentColumnCount;itemsInColumns[columnIndex]||(itemsInColumns[columnIndex]=[]),itemsInColumns[columnIndex].push(items[i])}return itemsInColumns}},{key:"renderColumns",value:function(){var _props=this.props,column=_props.column,_props$columnAttrs=_props.columnAttrs,columnAttrs=void 0===_props$columnAttrs?{}:_props$columnAttrs,columnClassName=_props.columnClassName,childrenInColumns=this.itemsInColumns(),columnWidth=100/childrenInColumns.length+"%",className=columnClassName;"string"!=typeof className&&(this.logDeprecated('The property "columnClassName" requires a string'),void 0===className&&(className="my-masonry-grid_column"));var columnAttributes=_extends({},column,columnAttrs,{style:_extends({},columnAttrs.style,{width:columnWidth}),className:className});return childrenInColumns.map(function(items,i){return _react2.default.createElement("div",_extends({},columnAttributes,{key:i}),items)})}},{key:"logDeprecated",value:function(message){console.error("[Masonry]",message)}},{key:"render",value:function(){var _props2=this.props,className=(_props2.children,_props2.breakpointCols,_props2.columnClassName,_props2.columnAttrs,_props2.column,_props2.className),rest=_objectWithoutProperties(_props2,["children","breakpointCols","columnClassName","columnAttrs","column","className"]),classNameOutput=className;return"string"!=typeof className&&(this.logDeprecated('The property "className" requires a string'),void 0===className&&(classNameOutput="my-masonry-grid")),_react2.default.createElement("div",_extends({},rest,{className:classNameOutput}),this.renderColumns())}}]),Masonry}(_react2.default.Component);Masonry.defaultProps=defaultProps,exports.default=Masonry},function(module,__webpack_exports__,__webpack_require__){"use strict";function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(iter){if(Symbol.iterator in Object(iter)||"[object Arguments]"===Object.prototype.toString.call(iter))return Array.from(iter)}function _arrayWithoutHoles(arr){if(Array.isArray(arr)){for(var i=0,arr2=new Array(arr.length);i<arr.length;i++)arr2[i]=arr[i];return arr2}}function _templateObject(){var data=_taggedTemplateLiteral(['\n\twidth: 100%;\n\tmax-width: 220px;\n\theight: 100vh;\n\tposition: sticky;\n\tposition: -webkit-sticky;\n\ttop: 35px;\n\n\t.components-tab-panel__tabs {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t}\n\n\t.components-tab-panel__tabs > .components-button {\n\t\ttext-transform: capitalize;\n\t}\n\n\t.components-toggle-control\n\t.components-base-control__field {\n\t\tflex-direction: row-reverse;\n\t\tjustify-content: space-between;\n\t}\n\n\t.components-toggle-control\n\t.components-base-control__field\n\t.components-form-toggle {\n\t\tmargin-right: 0;\n\t}\n\n\t.components-toggle-control\n\t.components-base-control__field\n\t.components-toggle-control__label {\n\t\tpadding: 8px 0 10px;\n\t}\n\n\t.components-base-control.components-toggle-control {\n\t\tborder-bottom: 1px solid var(--ang-border);\n\t}\n\n\t.block-categories-tabs .components-button {\n\t\tborder-radius: 0;\n\t\tpadding: 10px 0;\n\t\tfont-size: 16px;\n\t\tcolor: #060606;\n\t\tjustify-content: space-between;\n\t}\n\n\t.block-categories-tabs .components-button > span {\n\t\tcolor: rgba(0, 0, 0, 0.44);\n\t\tfont-size: 14.22px;\n\t\tfont-weight: normal;\n\t}\n\n\t.block-categories-tabs .components-button.active-tab {\n\t\tbox-shadow: none;\n\t\tfont-weight: bold;\n\t\tcolor: var(--ang-primary) !important;\n\t}\n\n\t.block-categories-tabs\n\t.components-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link):hover,\n\t.components-button:focus:not(:disabled) {\n\t\tbackground-color: transparent;\n\t\toutline: none;\n\t\tbox-shadow: none;\n\t}\n\n\t.block-categories-tabs .components-button:not([aria-disabled=true]):active {\n\t\tcolor: var(--ang-primary) !important;\n\t}\n\n\t.block-categories-tabs label,\n\t.components-toggle-control\n\t.components-base-control__field\n\t.components-toggle-control__label {\n\t\tfont-size: 16px;\n\t\tcolor: #060606;\n\t}\n\n\t.block-categories-tabs {\n\t\tpadding-right: 10px;\n\t}\n']);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var __WEBPACK_IMPORTED_MODULE_0_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_1__AnalogContext__=__webpack_require__(2),__=wp.i18n.__,_wp$components=wp.components,TextControl=_wp$components.TextControl,TabPanel=_wp$components.TabPanel,ToggleControl=_wp$components.ToggleControl,blockIdentifier=(_wp$components.Button,AGWP.isContainer?"all-patterns":"all-blocks"),defaultTabs=["favorites",blockIdentifier],SidebarWrapper=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.div(_templateObject()),Sidebar=function(_ref){var context=(_ref.state,React.useContext(__WEBPACK_IMPORTED_MODULE_1__AnalogContext__.a)),categories=_toConsumableArray(new Set(context.state.blockArchive.map(function(block){return block.tags[0]}))),filteredBlocks=context.state.blockArchive,favoriteBlocks=filteredBlocks.filter(function(t){return t.id in context.state.blockFavorites}),onSelect=function(tab){context.dispatch({blocksTab:tab});var selectFilteredBlocks=filteredBlocks;"favorites"===tab&&(selectFilteredBlocks=favoriteBlocks),"favorites"!==tab&&tab!==blockIdentifier&&(selectFilteredBlocks=context.state.blockArchive.filter(function(block){return block.tags.indexOf(tab)>-1}));var blocksSearchInput=context.state.blocksSearchInput;blocksSearchInput&&(selectFilteredBlocks=context.state.itemFilteredWithSearchTerm(selectFilteredBlocks,blocksSearchInput)),context.dispatch({blocks:selectFilteredBlocks})},getItemCount=function(tab){var blocks=context.state.blockArchive,blocksSearchInput=context.state.blocksSearchInput,foundItems=[];return tab===blockIdentifier&&(foundItems=context.state.blockArchive),"favorites"===tab&&(foundItems=favoriteBlocks),tab!==blockIdentifier&&"favorites"!==tab&&(foundItems=blocks.filter(function(block){return block.tags.indexOf(tab)>-1})),"valid"!==AGWP.license.status&&context.state.showFree&&(foundItems=foundItems.filter(function(block){return!block.is_pro})),blocksSearchInput&&(foundItems=context.state.itemFilteredWithSearchTerm(foundItems,blocksSearchInput)),!!foundItems&&foundItems.length},categoriesData=function(){return defaultTabs.concat(categories.sort())},titleGenerator=function(title){var count=getItemCount(title),countTemplate=count>0?count:0;return["".concat(title.replace(/-/g," ")," "),React.createElement("span",{key:title},countTemplate)]},tabGenerator=function(tabsArray){return tabsArray.filter(function(tab){return getItemCount(tab)>0}).map(function(item){return{name:item,title:titleGenerator(item),className:"tab-".concat(item)}})};return React.createElement(SidebarWrapper,{className:"sidebar"},React.createElement(TextControl,{placeholder:AGWP.isContainer?__("Search Patterns","ang"):__("Search Blocks","ang"),value:context.state.blocksSearchInput,onChange:function(value){context.handleSearch(value,"patterns"),context.dispatch({blocksSearchInput:value})}}),"valid"!==AGWP.license.status&&React.createElement(ToggleControl,{label:AGWP.isContainer?__("Show Pro Patterns","ang"):__("Show Pro Blocks","ang"),checked:!context.state.showFree,onChange:function(){context.dispatch({showFree:!context.state.showFree}),window.localStorage.setItem("analog::show-free",!context.state.showFree)}}),tabGenerator(categoriesData()).length>=1&&React.createElement(TabPanel,{className:"block-categories-tabs",activeClass:"active-tab",initialTabName:context.state.blocksTab,onSelect:onSelect,tabs:tabGenerator(categoriesData())},function(tab){return null}))};__webpack_exports__.a=Sidebar},function(module,__webpack_exports__,__webpack_require__){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}var gen=fn.apply(self,args);_next(void 0)})}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _possibleConstructorReturn(self,call){return!call||"object"!==_typeof(call)&&"function"!=typeof call?_assertThisInitialized(self):call}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _templateObject(){var data=_taggedTemplateLiteral(["\n\t.templates-list {\n\t\t&.hide {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\tli {\n\t\t\tbackground: #fff;\n\t\t\tposition: relative;\n\t\t\tborder-radius: 4px;\n\t\t}\n\n\t\t.new {\n\t\t\tposition: absolute;\n\t\t\ttop: -8px;\n\t\t\tright: -8px;\n\t\t\tbackground: var(--ang-primary);\n\t\t\tcolor: #fff;\n\t\t\tz-index: 110;\n\t\t\tfont-weight: bold;\n\t\t\tpadding: 8px 10px;\n\t\t\tline-height: 1;\n\t\t\tborder-radius: 4px;\n\t\t\ttext-transform: uppercase;\n\t\t\tfont-size: 14.22px;\n\t\t\tletter-spacing: .5px;\n\t\t}\n\n\t\t.new {\n\t\t\tbackground: ",";\n\t\t}\n\n\t\tp {\n\t\t\tcolor: #939393;\n\t\t\tfont-size: 10px;\n\t\t\tmargin: 0;\n\t\t\tfont-weight: 500;\n\t\t}\n\n\t\t.content {\n\t\t\tsvg {\n\t\t\t\tfill: #d0d0d0;\n\t\t\t\ttransition: all 100ms ease-in;\n\t\t\t}\n\n\t\t\tbutton:hover,\n\t\t\tbutton.is-active {\n\t\t\t\tsvg {\n\t\t\t\t\tfill: #FFB443;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\th3 {\n\t\t\tfont-size: inherit;\n\t\t\ttext-transform: capitalize;\n\t\t\tmargin: 0;\n\t\t\tfont-weight: bold;\n\t\t}\n\n\t\timg {\n\t\t\twidth: 100%;\n\t\t\theight: auto;\n\t\t\tborder-top-left-radius: 4px;\n\t\t\tborder-top-right-radius: 4px;\n\t\t\tvertical-align: middle;\n\t\t}\n\n\t\tfigure {\n\t\t\tmargin: 0;\n\t\t\tposition: relative;\n\t\t\tmin-height: 100px;\n\n\t\t\t&:hover {\n\t\t\t\t.actions {\n\t\t\t\t\topacity: 1;\n\t\t\t\t\tbutton {\n\t\t\t\t\t\ttransform: none;\n\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t.favorite {\n\t\t\t\t\topacity: 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.actions button {\n\t\t\topacity: 0;\n\n\t\t\t&:nth-child(1) {\n\t\t\t\ttransform: translateX(-20px);\n\t\t\t}\n\t\t\t&:nth-child(2) {\n\t\t\t\ttransform: translateX(20px);\n\t\t\t}\n\n\t\t\t+ button, + .ang-promo {\n\t\t\t\tmargin-top: 10px;\n\t\t\t\ttext-decoration: none;\n\t\t\t}\n\t\t}\n\n\t\t.favorite {\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tz-index: 200;\n\t\t\tdisplay: inline-flex;\n\t\t\tjustify-content: center;\n\t\t\talign-items: center;\n\t\t\twidth: 25px;\n\t\t\theight: 25px;\n\n\t\t\t&:not(.is-active) {\n\t\t\t\topacity: 0;\n\t\t\t}\n\n\t\t\t&:before {\n\t\t\t\tcontent: '';\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\t\t\t\tborder-style: solid;\n\t\t\t\tborder-width: 42px 42px 0 0;\n\t\t\t\tborder-color: var(--ang-dark-bg) transparent transparent transparent;\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\tz-index: 190;\n\t\t\t}\n\n\t\t\tsvg {\n\t\t\t\tfill: #fff;\n\t\t\t\tposition: relative;\n\t\t\t\tz-index: 195;\n\t\t\t}\n\t\t\t&.is-active svg {\n\t\t\t\tfill: #FFB443;\n\t\t\t}\n\t\t}\n\t}\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var __WEBPACK_IMPORTED_MODULE_0_classnames__=__webpack_require__(5),__WEBPACK_IMPORTED_MODULE_0_classnames___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__),__WEBPACK_IMPORTED_MODULE_1_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_2__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_3__api__=__webpack_require__(4),__WEBPACK_IMPORTED_MODULE_4__collection_Collection__=__webpack_require__(74),__WEBPACK_IMPORTED_MODULE_5__contexts_ThemeContext__=__webpack_require__(12),__WEBPACK_IMPORTED_MODULE_6__helpers_Empty__=__webpack_require__(27),__WEBPACK_IMPORTED_MODULE_7__Modal__=__webpack_require__(85),__WEBPACK_IMPORTED_MODULE_8__popups_ImportTemplate__=__webpack_require__(86),__WEBPACK_IMPORTED_MODULE_9__Template__=__webpack_require__(35),__WEBPACK_IMPORTED_MODULE_10__ProModal__=__webpack_require__(34),__=wp.i18n.__,TemplatesContainer=__WEBPACK_IMPORTED_MODULE_1_styled_components__.a.div(_templateObject(),__WEBPACK_IMPORTED_MODULE_5__contexts_ThemeContext__.a.accent),initialState={template:null,pageName:null,showingModal:!1,importing:!1,importedPage:!1,importingElementor:!1,kit:!1},Templates=function(_React$Component){function Templates(){var _this;return _classCallCheck(this,Templates),_this=_possibleConstructorReturn(this,_getPrototypeOf(Templates).apply(this,arguments)),_defineProperty(_assertThisInitialized(_this),"closeOnEsc",function(event){27===event.keyCode&&_this.resetState()}),_defineProperty(_assertThisInitialized(_this),"setModalContent",function(template){window.scrollTo(0,0),_this.context.dispatch({isOpen:!_this.context.state.isOpen}),_this.setState({template:template})}),_defineProperty(_assertThisInitialized(_this),"makeFavorite",function(id){var favorites=_this.context.state.favorites;if(_this.context.markFavorite(id,!(id in favorites)),id in favorites?delete favorites[id]:favorites[id]=!(id in favorites),_this.context.dispatch({favorites:favorites}),_this.context.state.showing_favorites){var filteredTemplates=_this.context.state.templates.filter(function(t){return t.id in favorites});_this.context.dispatch({templates:filteredTemplates})}}),_defineProperty(_assertThisInitialized(_this),"handleImport",function(){var _ref=_asyncToGenerator(regeneratorRuntime.mark(function _callee(add){var withPage,kit,version,_args=arguments;return regeneratorRuntime.wrap(function(_context){for(;;)switch(_context.prev=_context.next){case 0:if(withPage=_args.length>1&&void 0!==_args[1]&&_args[1],_this.setState({importing:!0}),kit=_this.getStyleKitInfo(),!((version=_this.state.template.version)&&parseFloat(AGWP.version)<parseFloat(version))){_context.next=8;break}return _this.resetState(),add(__("This template requires an updated version, please update your plugin to latest version.","ang"),"error","ang","import-error",!1),_context.abrupt("return");case 8:return _context.next=10,Object(__WEBPACK_IMPORTED_MODULE_3__api__.e)(_this.state.template,withPage,kit).then(function(response){_this.setState({importedPage:response.page})}).catch(function(error){_this.resetState(),error.data&&error.data.errors?add(error.data.errors[Object.keys(error.data.errors)[0]],"error","import-error",!1):add(error.message,"error","import-error",!1)});case 10:case"end":return _context.stop()}},_callee)}));return function(_x){return _ref.apply(this,arguments)}}()),_defineProperty(_assertThisInitialized(_this),"canImportTemplate",function(template){return template||(template=_this.state.template),!template.is_pro||!(!template.is_pro||"valid"!==AGWP.license.status)}),_defineProperty(_assertThisInitialized(_this),"importLayout",function(template){template?_this.setState({template:template}):template=_this.state.template,_this.setState({showingModal:!0})}),_this.state=initialState,_this.handler=_this.handler.bind(_assertThisInitialized(_this)),_this.handleImport=_this.handleImport.bind(_assertThisInitialized(_this)),_this.getStyleKitInfo=_this.getStyleKitInfo.bind(_assertThisInitialized(_this)),_this}return _inherits(Templates,_React$Component),_createClass(Templates,[{key:"resetState",value:function(){this.context.dispatch({isOpen:!1}),this.setState(initialState)}},{key:"handler",value:function(value){this.setState(value)}},{key:"componentDidMount",value:function(){AGWP.isGlobalSkEnabled&&this.setState({kit:AGWP.globalKit[0].value}),window.addEventListener("keyup",this.closeOnEsc)}},{key:"componentWillUnmount",value:function(){this.resetState(),window.removeEventListener("keyup",this.closeOnEsc)}},{key:"getStyleKitInfo",value:function(){var _this2=this,isKitInstalled=this.context.state.installedKits.filter(function(k){return _this2.state.kit===k}),method=isKitInstalled.length>0?"insert":"import",data="insert"===method?this.state.kit:this.context.state.styleKits.find(function(k){return k.title===_this2.state.kit});return void 0===data&&(data=!1),{method:method,data:data}}},{key:"render",value:function(){var _this3=this;return React.createElement(TemplatesContainer,{className:__WEBPACK_IMPORTED_MODULE_0_classnames___default()({hide:this.state.template&&this.state.showingModal&&!this.canImportTemplate(),"preview-active":this.context.state.isOpen})},this.context.state.isOpen&&React.createElement(__WEBPACK_IMPORTED_MODULE_7__Modal__.a,{template:this.state.template,onRequestClose:function(){return _this3.context.dispatch({isOpen:!1})},onRequestImport:function(){return _this3.importLayout()}}),null!==this.state.template&&this.canImportTemplate()&&this.state.showingModal&&React.createElement(__WEBPACK_IMPORTED_MODULE_8__popups_ImportTemplate__.a,{onRequestClose:function(){return _this3.resetState()},state:this.state,handleImport:this.handleImport,handler:this.handler,getStyleKitInfo:this.getStyleKitInfo}),"valid"!==AGWP.license.status&&React.createElement(__WEBPACK_IMPORTED_MODULE_10__ProModal__.a,null),!this.context.state.isOpen&&this.context.state.templates.length<1&&React.createElement(__WEBPACK_IMPORTED_MODULE_6__helpers_Empty__.a,null),this.context.state.group?React.createElement(__WEBPACK_IMPORTED_MODULE_4__collection_Collection__.a,{setModalContent:this.setModalContent,importLayout:this.importLayout,makeFavorite:this.makeFavorite}):React.createElement("ul",{className:__WEBPACK_IMPORTED_MODULE_0_classnames___default()("templates-list",{hide:this.state.template&&this.state.showingModal&&!this.canImportTemplate()})},!this.context.state.isOpen&&this.context.state.count>=1&&this.context.state.templates.map(function(template){if("valid"!==AGWP.license.status){var isPro=!1===_this3.context.state.showFree&&!0===_this3.context.state.showPro&&!0===Boolean(template.is_pro),isFree=!0===_this3.context.state.showFree&&!1===_this3.context.state.showPro&&!1===Boolean(template.is_pro),isAll=!0===_this3.context.state.showFree&&!0===_this3.context.state.showPro;if(!(isPro||isFree||isAll))return}return React.createElement(__WEBPACK_IMPORTED_MODULE_9__Template__.a,{key:"".concat(template.id,"-").concat(template.site_id),template:template,favorites:_this3.context.state.favorites,setModalContent:_this3.setModalContent,importLayout:_this3.importLayout,makeFavorite:_this3.makeFavorite})})))}}]),Templates}(React.Component);Templates.contextType=__WEBPACK_IMPORTED_MODULE_2__AnalogContext__.a,__webpack_exports__.a=Templates},function(module,__webpack_exports__,__webpack_require__){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _possibleConstructorReturn(self,call){return!call||"object"!==_typeof(call)&&"function"!=typeof call?_assertThisInitialized(self):call}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _templateObject(){var data=_taggedTemplateLiteral(["\n\tli {\n\t\tbackground: #fff;\n\t\tposition: relative;\n\t\tborder-radius: 4px;\n\t\tposition: relative;\n\t}\n\tfigure {\n\t\tmargin: 0;\n\t\tposition: relative;\n\t\tmin-height: 100px;\n\t\t&:hover .actions {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\timg {\n\t\twidth: 100%;\n\t\theight: auto;\n\t\tborder-top-left-radius: 4px;\n\t\tborder-top-right-radius: 4px;\n\t\tvertical-align: middle;\n\t}\n\n\t.actions {\n\t\tbutton.is-large {\n\t\t\tfont-size: 24px;\n\t\t\theight: 48px;\n\t\t}\n\t}\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}__webpack_require__.d(__webpack_exports__,"a",function(){return Collection});var __WEBPACK_IMPORTED_MODULE_0_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_1__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_2__Template__=__webpack_require__(35),__=wp.i18n.__,_wp$components=wp.components,Button=_wp$components.Button,Card=_wp$components.Card,CardBody=_wp$components.CardBody,CardFooter=_wp$components.CardFooter,List=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.ul(_templateObject()),Collection=function(_React$Component){function Collection(){var _this;return _classCallCheck(this,Collection),_this=_possibleConstructorReturn(this,_getPrototypeOf(Collection).apply(this,arguments)),_this.getCollectionCount=_this.getCollectionCount.bind(_assertThisInitialized(_this)),_this.getGroupedCollection=_this.getGroupedCollection.bind(_assertThisInitialized(_this)),_this.getActiveKit=_this.getActiveKit.bind(_assertThisInitialized(_this)),_this}return _inherits(Collection,_React$Component),_createClass(Collection,[{key:"getGroupedCollection",value:function(){if(this.context.state.templates)return this.context.state.templates.reduce(function(accumulator,currentValue){return accumulator[currentValue.site_id]||(accumulator[currentValue.site_id]=[]),accumulator[currentValue.site_id].push(currentValue),accumulator},{})}},{key:"getCollectionCount",value:function(id){var collection=this.getGroupedCollection(),count=!1;if(collection[id]){var kit=collection[id];count=Object.keys(kit).length}return count}},{key:"getActiveKit",value:function(){var groupedCollection=this.getGroupedCollection(),activeKit=this.context.state.activeKit;return!!(activeKit&&activeKit.site_id in groupedCollection)&&groupedCollection[activeKit.site_id]}},{key:"render",value:function(){var _this2=this;return React.createElement("div",{className:"collection"},!this.context.state.activeKit&&React.createElement(List,{className:"templates-collection"},this.context.state.kits&&this.context.state.kits.map(function(kit){if(_this2.getCollectionCount(kit.site_id))return React.createElement("li",{key:kit.site_id},React.createElement(Card,null,React.createElement(CardBody,null,React.createElement("figure",null,React.createElement("img",{src:kit.thumbnail||AGWP.pluginURL+"assets/img/placeholder.svg",loading:"lazy",alt:kit.title}),React.createElement("div",{className:"actions"},React.createElement(Button,{isSecondary:!0,className:"black-transparent",onClick:function(){_this2.context.dispatch({activeKit:kit})}},__("View Templates","ang"))))),React.createElement(CardFooter,null,React.createElement("div",{className:"content"},React.createElement("h3",null,kit.title),React.createElement("span",null,_this2.getCollectionCount(kit.site_id))))))})),this.getActiveKit()&&React.createElement("ul",{className:"templates-list"},this.getActiveKit().map(function(template){if("valid"!==AGWP.license.status){var isPro=!1===_this2.context.state.showFree&&!0===_this2.context.state.showPro&&!0===Boolean(template.is_pro),isFree=!0===_this2.context.state.showFree&&!1===_this2.context.state.showPro&&!1===Boolean(template.is_pro),isAll=!0===_this2.context.state.showFree&&!0===_this2.context.state.showPro;if(!(isPro||isFree||isAll))return}return React.createElement(__WEBPACK_IMPORTED_MODULE_2__Template__.a,{key:template.id,template:template,favorites:_this2.context.state.favorites,setModalContent:_this2.props.setModalContent,importLayout:_this2.props.importLayout,makeFavorite:_this2.props.makeFavorite})})))}}]),Collection}(React.Component);Collection.contextType=__WEBPACK_IMPORTED_MODULE_1__AnalogContext__.a},function(module,__webpack_exports__,__webpack_require__){"use strict";function _extends(){return _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_extends.apply(this,arguments)}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit(arr,i){if(Symbol.iterator in Object(arr)||"[object Arguments]"===Object.prototype.toString.call(arr)){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=_objectWithoutPropertiesLoose(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++)key=sourceSymbolKeys[i],excluded.indexOf(key)>=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],excluded.indexOf(key)>=0||(target[key]=source[key]);return target}var __WEBPACK_IMPORTED_MODULE_0_react_waypoint__=__webpack_require__(76),Image=function(_ref){var template=_ref.template,attributes=_objectWithoutProperties(_ref,["template"]),thumbnail=template.thumbnail,title=template.title,_React$useState=React.useState(AGWP.pluginURL+"assets/img/placeholder.svg"),_React$useState2=_slicedToArray(_React$useState,2),image=_React$useState2[0],setImage=_React$useState2[1];return React.createElement(__WEBPACK_IMPORTED_MODULE_0_react_waypoint__.a,{onEnter:function(){setImage(thumbnail)}},React.createElement("img",_extends({src:image,loading:"lazy",width:"280",height:"390",alt:title},attributes)))};__webpack_exports__.a=Image},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(process,global){function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _possibleConstructorReturn(self,call){return!call||"object"!=typeof call&&"function"!=typeof call?_assertThisInitialized(self):call}function parseOffsetAsPercentage(str){if("%"===str.slice(-1))return parseFloat(str.slice(0,-1))/100}function parseOffsetAsPixels(str){return!isNaN(parseFloat(str))&&isFinite(str)?parseFloat(str):"px"===str.slice(-2)?parseFloat(str.slice(0,-2)):void 0}function computeOffsetPixels(offset,contextHeight){var pixelOffset=parseOffsetAsPixels(offset);if("number"==typeof pixelOffset)return pixelOffset;var percentOffset=parseOffsetAsPercentage(offset);return"number"==typeof percentOffset?percentOffset*contextHeight:void 0}function debugLog(){if("production"!==process.env.NODE_ENV){var _console;(_console=console).log.apply(_console,arguments)}}function isDOMElement(Component){return"string"==typeof Component.type}function ensureRefIsProvidedByChild(children,ref){if(children&&!isDOMElement(children)&&!ref)throw new Error(errorMessage)}function getCurrentPosition(bounds){return bounds.viewportBottom-bounds.viewportTop==0?INVISIBLE:bounds.viewportTop<=bounds.waypointTop&&bounds.waypointTop<=bounds.viewportBottom?INSIDE:bounds.viewportTop<=bounds.waypointBottom&&bounds.waypointBottom<=bounds.viewportBottom?INSIDE:bounds.waypointTop<=bounds.viewportTop&&bounds.viewportBottom<=bounds.waypointBottom?INSIDE:bounds.viewportBottom<bounds.waypointTop?BELOW:bounds.waypointTop<bounds.viewportTop?ABOVE:INVISIBLE}function onNextTick(cb){timeoutQueue.push(cb),timeout||(timeout=setTimeout(function(){timeout=null;for(var item;item=timeoutQueue.shift();)item()},0));var isSubscribed=!0;return function(){if(isSubscribed){isSubscribed=!1;var index=timeoutQueue.indexOf(cb);-1!==index&&(timeoutQueue.splice(index,1),!timeoutQueue.length&&timeout&&(clearTimeout(timeout),timeout=null))}}}function resolveScrollableAncestorProp(scrollableAncestor){return"window"===scrollableAncestor?global.window:scrollableAncestor}__webpack_require__.d(__webpack_exports__,"a",function(){return Waypoint});var timeout,__WEBPACK_IMPORTED_MODULE_0_consolidated_events__=__webpack_require__(78),__WEBPACK_IMPORTED_MODULE_1_prop_types__=__webpack_require__(79),__WEBPACK_IMPORTED_MODULE_1_prop_types___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__),__WEBPACK_IMPORTED_MODULE_2_react__=__webpack_require__(3),__WEBPACK_IMPORTED_MODULE_2_react___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__),__WEBPACK_IMPORTED_MODULE_3_react_is__=__webpack_require__(28),ABOVE=(__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react_is__),"above"),INSIDE="inside",BELOW="below",INVISIBLE="invisible",errorMessage="<Waypoint> needs a DOM element to compute boundaries. The child you passed is neither a DOM element (e.g. <div>) nor does it use the innerRef prop.\n\nSee https://goo.gl/LrBNgw for more info.",timeoutQueue=[],defaultProps={debug:!1,scrollableAncestor:void 0,children:void 0,topOffset:"0px",bottomOffset:"0px",horizontal:!1,onEnter:function(){},onLeave:function(){},onPositionChange:function(){},fireOnRapidScroll:!0},Waypoint=function(_React$PureComponent){function Waypoint(props){var _this;return _classCallCheck(this,Waypoint),_this=_possibleConstructorReturn(this,_getPrototypeOf(Waypoint).call(this,props)),_this.refElement=function(e){_this._ref=e},_this}return _inherits(Waypoint,_React$PureComponent),_createClass(Waypoint,[{key:"componentDidMount",value:function(){var _this2=this;Waypoint.getWindow()&&(this.cancelOnNextTick=onNextTick(function(){_this2.cancelOnNextTick=null;var _this2$props=_this2.props,children=_this2$props.children,debug=_this2$props.debug;ensureRefIsProvidedByChild(children,_this2._ref),_this2._handleScroll=_this2._handleScroll.bind(_this2),_this2.scrollableAncestor=_this2._findScrollableAncestor(),"production"!==process.env.NODE_ENV&&debug&&debugLog("scrollableAncestor",_this2.scrollableAncestor),_this2.scrollEventListenerUnsubscribe=Object(__WEBPACK_IMPORTED_MODULE_0_consolidated_events__.a)(_this2.scrollableAncestor,"scroll",_this2._handleScroll,{passive:!0}),_this2.resizeEventListenerUnsubscribe=Object(__WEBPACK_IMPORTED_MODULE_0_consolidated_events__.a)(window,"resize",_this2._handleScroll,{passive:!0}),_this2._handleScroll(null)}))}},{key:"componentDidUpdate",value:function(){var _this3=this;Waypoint.getWindow()&&this.scrollableAncestor&&(this.cancelOnNextTick||(this.cancelOnNextTick=onNextTick(function(){_this3.cancelOnNextTick=null,_this3._handleScroll(null)})))}},{key:"componentWillUnmount",value:function(){Waypoint.getWindow()&&(this.scrollEventListenerUnsubscribe&&this.scrollEventListenerUnsubscribe(),this.resizeEventListenerUnsubscribe&&this.resizeEventListenerUnsubscribe(),this.cancelOnNextTick&&this.cancelOnNextTick())}},{key:"_findScrollableAncestor",value:function(){var _this$props=this.props,horizontal=_this$props.horizontal,scrollableAncestor=_this$props.scrollableAncestor;if(scrollableAncestor)return resolveScrollableAncestorProp(scrollableAncestor);for(var node=this._ref;node.parentNode;){if((node=node.parentNode)===document.body)return window;var style=window.getComputedStyle(node),overflowDirec=horizontal?style.getPropertyValue("overflow-x"):style.getPropertyValue("overflow-y"),overflow=overflowDirec||style.getPropertyValue("overflow");if("auto"===overflow||"scroll"===overflow)return node}return window}},{key:"_handleScroll",value:function(event){if(this._ref){var bounds=this._getBounds(),currentPosition=getCurrentPosition(bounds),previousPosition=this._previousPosition,_this$props2=this.props,debug=_this$props2.debug,onPositionChange=_this$props2.onPositionChange,onEnter=_this$props2.onEnter,onLeave=_this$props2.onLeave,fireOnRapidScroll=_this$props2.fireOnRapidScroll;if("production"!==process.env.NODE_ENV&&debug&&(debugLog("currentPosition",currentPosition),debugLog("previousPosition",previousPosition)),this._previousPosition=currentPosition,previousPosition!==currentPosition){var callbackArg={currentPosition:currentPosition,previousPosition:previousPosition,event:event,waypointTop:bounds.waypointTop,waypointBottom:bounds.waypointBottom,viewportTop:bounds.viewportTop,viewportBottom:bounds.viewportBottom};onPositionChange.call(this,callbackArg),currentPosition===INSIDE?onEnter.call(this,callbackArg):previousPosition===INSIDE&&onLeave.call(this,callbackArg);var isRapidScrollDown=previousPosition===BELOW&&currentPosition===ABOVE,isRapidScrollUp=previousPosition===ABOVE&&currentPosition===BELOW;fireOnRapidScroll&&(isRapidScrollDown||isRapidScrollUp)&&(onEnter.call(this,{currentPosition:INSIDE,previousPosition:previousPosition,event:event,waypointTop:bounds.waypointTop,waypointBottom:bounds.waypointBottom,viewportTop:bounds.viewportTop,viewportBottom:bounds.viewportBottom}),onLeave.call(this,{currentPosition:currentPosition,previousPosition:INSIDE,event:event,waypointTop:bounds.waypointTop,waypointBottom:bounds.waypointBottom,viewportTop:bounds.viewportTop,viewportBottom:bounds.viewportBottom}))}}}},{key:"_getBounds",value:function(){var contextHeight,contextScrollTop,_this$props3=this.props,horizontal=_this$props3.horizontal,debug=_this$props3.debug,_this$_ref$getBoundin=this._ref.getBoundingClientRect(),left=_this$_ref$getBoundin.left,top=_this$_ref$getBoundin.top,right=_this$_ref$getBoundin.right,bottom=_this$_ref$getBoundin.bottom,waypointTop=horizontal?left:top,waypointBottom=horizontal?right:bottom;this.scrollableAncestor===window?(contextHeight=horizontal?window.innerWidth:window.innerHeight,contextScrollTop=0):(contextHeight=horizontal?this.scrollableAncestor.offsetWidth:this.scrollableAncestor.offsetHeight,contextScrollTop=horizontal?this.scrollableAncestor.getBoundingClientRect().left:this.scrollableAncestor.getBoundingClientRect().top),"production"!==process.env.NODE_ENV&&debug&&(debugLog("waypoint top",waypointTop),debugLog("waypoint bottom",waypointBottom),debugLog("scrollableAncestor height",contextHeight),debugLog("scrollableAncestor scrollTop",contextScrollTop));var _this$props4=this.props,bottomOffset=_this$props4.bottomOffset;return{waypointTop:waypointTop,waypointBottom:waypointBottom,viewportTop:contextScrollTop+computeOffsetPixels(_this$props4.topOffset,contextHeight),viewportBottom:contextScrollTop+contextHeight-computeOffsetPixels(bottomOffset,contextHeight)}}},{key:"render",value:function(){var _this4=this,children=this.props.children;if(!children)return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("span",{ref:this.refElement,style:{fontSize:0}});if(isDOMElement(children)||Object(__WEBPACK_IMPORTED_MODULE_3_react_is__.isForwardRef)(children)){var ref=function(node){_this4.refElement(node),children.ref&&("function"==typeof children.ref?children.ref(node):children.ref.current=node)};return __WEBPACK_IMPORTED_MODULE_2_react___default.a.cloneElement(children,{ref:ref})}return __WEBPACK_IMPORTED_MODULE_2_react___default.a.cloneElement(children,{innerRef:this.refElement})}}]),Waypoint}(__WEBPACK_IMPORTED_MODULE_2_react___default.a.PureComponent);"production"!==process.env.NODE_ENV&&(Waypoint.propTypes={children:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.element,debug:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,onEnter:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,onLeave:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,onPositionChange:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,fireOnRapidScroll:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,scrollableAncestor:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.any,horizontal:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,topOffset:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number]),bottomOffset:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number])}),Waypoint.above=ABOVE,Waypoint.below=BELOW,Waypoint.inside=INSIDE,Waypoint.invisible=INVISIBLE,Waypoint.getWindow=function(){if("undefined"!=typeof window)return window},Waypoint.defaultProps=defaultProps,Waypoint.displayName="Waypoint"}).call(__webpack_exports__,__webpack_require__(0),__webpack_require__(77))},function(module,exports){var g;g=function(){return this}();try{g=g||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(g=window)}module.exports=g},function(module,__webpack_exports__,__webpack_require__){"use strict";function testPassiveEventListeners(){if(!CAN_USE_DOM)return!1;if(!window.addEventListener||!window.removeEventListener||!Object.defineProperty)return!1;var supportsPassiveOption=!1;try{var opts=Object.defineProperty({},"passive",{get:function(){function get(){supportsPassiveOption=!0}return get}()}),noop=function(){};window.addEventListener("testPassiveEventSupport",noop,opts),window.removeEventListener("testPassiveEventSupport",noop,opts)}catch(e){}return supportsPassiveOption}function canUsePassiveEventListeners(){return void 0===memoized&&(memoized=testPassiveEventListeners()),memoized}function normalizeEventOptions(eventOptions){if(eventOptions)return canUsePassiveEventListeners()?eventOptions:!!eventOptions.capture}function eventOptionsKey(normalizedEventOptions){return normalizedEventOptions?!0===normalizedEventOptions?100:(normalizedEventOptions.capture<<0)+(normalizedEventOptions.passive<<1)+(normalizedEventOptions.once<<2):0}function ensureCanMutateNextEventHandlers(eventHandlers){eventHandlers.handlers===eventHandlers.nextHandlers&&(eventHandlers.nextHandlers=eventHandlers.handlers.slice())}function TargetEventHandlers(target){this.target=target,this.events={}}function addEventListener(target,eventName,listener,options){target[EVENT_HANDLERS_KEY]||(target[EVENT_HANDLERS_KEY]=new TargetEventHandlers(target));var normalizedEventOptions=normalizeEventOptions(options);return target[EVENT_HANDLERS_KEY].add(eventName,listener,normalizedEventOptions)}__webpack_require__.d(__webpack_exports__,"a",function(){return addEventListener});var CAN_USE_DOM=!("undefined"==typeof window||!window.document||!window.document.createElement),memoized=void 0;TargetEventHandlers.prototype.getEventHandlers=function(){function getEventHandlers(eventName,options){var key=String(eventName)+" "+String(eventOptionsKey(options));return this.events[key]||(this.events[key]={handlers:[],handleEvent:void 0},this.events[key].nextHandlers=this.events[key].handlers),this.events[key]}return getEventHandlers}(),TargetEventHandlers.prototype.handleEvent=function(){function handleEvent(eventName,options,event){var eventHandlers=this.getEventHandlers(eventName,options);eventHandlers.handlers=eventHandlers.nextHandlers,eventHandlers.handlers.forEach(function(handler){handler&&handler(event)})}return handleEvent}(),TargetEventHandlers.prototype.add=function(){function add(eventName,listener,options){var _this=this,eventHandlers=this.getEventHandlers(eventName,options);ensureCanMutateNextEventHandlers(eventHandlers),0===eventHandlers.nextHandlers.length&&(eventHandlers.handleEvent=this.handleEvent.bind(this,eventName,options),this.target.addEventListener(eventName,eventHandlers.handleEvent,options)),eventHandlers.nextHandlers.push(listener);var isSubscribed=!0;return function(){function unsubscribe(){if(isSubscribed){isSubscribed=!1,ensureCanMutateNextEventHandlers(eventHandlers);var index=eventHandlers.nextHandlers.indexOf(listener);eventHandlers.nextHandlers.splice(index,1),0===eventHandlers.nextHandlers.length&&(_this.target&&_this.target.removeEventListener(eventName,eventHandlers.handleEvent,options),eventHandlers.handleEvent=void 0)}}return unsubscribe}()}return add}();var EVENT_HANDLERS_KEY="__consolidated_events_handlers__"},function(module,exports,__webpack_require__){(function(process){if("production"!==process.env.NODE_ENV){var ReactIs=__webpack_require__(28);module.exports=__webpack_require__(82)(ReactIs.isElement,!0)}else module.exports=__webpack_require__(84)()}).call(exports,__webpack_require__(0))},function(module,exports,__webpack_require__){"use strict";function z(a){if("object"==typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}/** @license React v16.13.1
     27"production"!==process.env.NODE_ENV&&function(){function isValidElementType(type){return"string"==typeof type||"function"==typeof type||type===REACT_FRAGMENT_TYPE||type===REACT_CONCURRENT_MODE_TYPE||type===REACT_PROFILER_TYPE||type===REACT_STRICT_MODE_TYPE||type===REACT_SUSPENSE_TYPE||"object"==typeof type&&null!==type&&(type.$$typeof===REACT_LAZY_TYPE||type.$$typeof===REACT_MEMO_TYPE||type.$$typeof===REACT_PROVIDER_TYPE||type.$$typeof===REACT_CONTEXT_TYPE||type.$$typeof===REACT_FORWARD_REF_TYPE)}function typeOf(object){if("object"==typeof object&&null!==object){var $$typeof=object.$$typeof;switch($$typeof){case REACT_ELEMENT_TYPE:var type=object.type;switch(type){case REACT_ASYNC_MODE_TYPE:case REACT_CONCURRENT_MODE_TYPE:case REACT_FRAGMENT_TYPE:case REACT_PROFILER_TYPE:case REACT_STRICT_MODE_TYPE:case REACT_SUSPENSE_TYPE:return type;default:var $$typeofType=type&&type.$$typeof;switch($$typeofType){case REACT_CONTEXT_TYPE:case REACT_FORWARD_REF_TYPE:case REACT_PROVIDER_TYPE:return $$typeofType;default:return $$typeof}}case REACT_LAZY_TYPE:case REACT_MEMO_TYPE:case REACT_PORTAL_TYPE:return $$typeof}}}function isAsyncMode(object){return hasWarnedAboutDeprecatedIsAsyncMode||(hasWarnedAboutDeprecatedIsAsyncMode=!0,lowPriorityWarning$1(!1,"The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),isConcurrentMode(object)||typeOf(object)===REACT_ASYNC_MODE_TYPE}function isConcurrentMode(object){return typeOf(object)===REACT_CONCURRENT_MODE_TYPE}function isContextConsumer(object){return typeOf(object)===REACT_CONTEXT_TYPE}function isContextProvider(object){return typeOf(object)===REACT_PROVIDER_TYPE}function isElement(object){return"object"==typeof object&&null!==object&&object.$$typeof===REACT_ELEMENT_TYPE}function isForwardRef(object){return typeOf(object)===REACT_FORWARD_REF_TYPE}function isFragment(object){return typeOf(object)===REACT_FRAGMENT_TYPE}function isLazy(object){return typeOf(object)===REACT_LAZY_TYPE}function isMemo(object){return typeOf(object)===REACT_MEMO_TYPE}function isPortal(object){return typeOf(object)===REACT_PORTAL_TYPE}function isProfiler(object){return typeOf(object)===REACT_PROFILER_TYPE}function isStrictMode(object){return typeOf(object)===REACT_STRICT_MODE_TYPE}function isSuspense(object){return typeOf(object)===REACT_SUSPENSE_TYPE}Object.defineProperty(exports,"__esModule",{value:!0});var hasSymbol="function"==typeof Symbol&&Symbol.for,REACT_ELEMENT_TYPE=hasSymbol?Symbol.for("react.element"):60103,REACT_PORTAL_TYPE=hasSymbol?Symbol.for("react.portal"):60106,REACT_FRAGMENT_TYPE=hasSymbol?Symbol.for("react.fragment"):60107,REACT_STRICT_MODE_TYPE=hasSymbol?Symbol.for("react.strict_mode"):60108,REACT_PROFILER_TYPE=hasSymbol?Symbol.for("react.profiler"):60114,REACT_PROVIDER_TYPE=hasSymbol?Symbol.for("react.provider"):60109,REACT_CONTEXT_TYPE=hasSymbol?Symbol.for("react.context"):60110,REACT_ASYNC_MODE_TYPE=hasSymbol?Symbol.for("react.async_mode"):60111,REACT_CONCURRENT_MODE_TYPE=hasSymbol?Symbol.for("react.concurrent_mode"):60111,REACT_FORWARD_REF_TYPE=hasSymbol?Symbol.for("react.forward_ref"):60112,REACT_SUSPENSE_TYPE=hasSymbol?Symbol.for("react.suspense"):60113,REACT_MEMO_TYPE=hasSymbol?Symbol.for("react.memo"):60115,REACT_LAZY_TYPE=hasSymbol?Symbol.for("react.lazy"):60116,lowPriorityWarning=function(){},printWarning=function(format){for(var _len=arguments.length,args=Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];var argIndex=0,message="Warning: "+format.replace(/%s/g,function(){return args[argIndex++]});"undefined"!=typeof console&&console.warn(message);try{throw new Error(message)}catch(x){}};lowPriorityWarning=function(condition,format){if(void 0===format)throw new Error("`lowPriorityWarning(condition, format, ...args)` requires a warning message argument");if(!condition){for(var _len2=arguments.length,args=Array(_len2>2?_len2-2:0),_key2=2;_key2<_len2;_key2++)args[_key2-2]=arguments[_key2];printWarning.apply(void 0,[format].concat(args))}};var lowPriorityWarning$1=lowPriorityWarning,AsyncMode=REACT_ASYNC_MODE_TYPE,ConcurrentMode=REACT_CONCURRENT_MODE_TYPE,ContextConsumer=REACT_CONTEXT_TYPE,ContextProvider=REACT_PROVIDER_TYPE,Element=REACT_ELEMENT_TYPE,ForwardRef=REACT_FORWARD_REF_TYPE,Fragment=REACT_FRAGMENT_TYPE,Lazy=REACT_LAZY_TYPE,Memo=REACT_MEMO_TYPE,Portal=REACT_PORTAL_TYPE,Profiler=REACT_PROFILER_TYPE,StrictMode=REACT_STRICT_MODE_TYPE,Suspense=REACT_SUSPENSE_TYPE,hasWarnedAboutDeprecatedIsAsyncMode=!1;exports.typeOf=typeOf,exports.AsyncMode=AsyncMode,exports.ConcurrentMode=ConcurrentMode,exports.ContextConsumer=ContextConsumer,exports.ContextProvider=ContextProvider,exports.Element=Element,exports.ForwardRef=ForwardRef,exports.Fragment=Fragment,exports.Lazy=Lazy,exports.Memo=Memo,exports.Portal=Portal,exports.Profiler=Profiler,exports.StrictMode=StrictMode,exports.Suspense=Suspense,exports.isValidElementType=isValidElementType,exports.isAsyncMode=isAsyncMode,exports.isConcurrentMode=isConcurrentMode,exports.isContextConsumer=isContextConsumer,exports.isContextProvider=isContextProvider,exports.isElement=isElement,exports.isForwardRef=isForwardRef,exports.isFragment=isFragment,exports.isLazy=isLazy,exports.isMemo=isMemo,exports.isPortal=isPortal,exports.isProfiler=isProfiler,exports.isStrictMode=isStrictMode,exports.isSuspense=isSuspense}()}).call(exports,__webpack_require__(0))},function(module,__webpack_exports__,__webpack_require__){"use strict";function index(resultFn,isEqual){void 0===isEqual&&(isEqual=simpleIsEqual);var lastThis,lastResult,lastArgs=[],calledOnce=!1,isNewArgEqualToLast=function(newArg,index){return isEqual(newArg,lastArgs[index],index)};return function(){for(var _len=arguments.length,newArgs=new Array(_len),_key=0;_key<_len;_key++)newArgs[_key]=arguments[_key];return calledOnce&&lastThis===this&&newArgs.length===lastArgs.length&&newArgs.every(isNewArgEqualToLast)?lastResult:(lastResult=resultFn.apply(this,newArgs),calledOnce=!0,lastThis=this,lastArgs=newArgs,lastResult)}}var simpleIsEqual=function(a,b){return a===b};__webpack_exports__.a=index},function(module,exports,__webpack_require__){"use strict";(function(process){function emptyFunctionThatReturnsNull(){return null}var assign=__webpack_require__(33),ReactPropTypesSecret=__webpack_require__(22),checkPropTypes=__webpack_require__(56),printWarning=function(){};"production"!==process.env.NODE_ENV&&(printWarning=function(text){var message="Warning: "+text;"undefined"!=typeof console&&console.error(message);try{throw new Error(message)}catch(x){}}),module.exports=function(isValidElement,throwOnDirectAccess){function getIteratorFn(maybeIterable){var iteratorFn=maybeIterable&&(ITERATOR_SYMBOL&&maybeIterable[ITERATOR_SYMBOL]||maybeIterable[FAUX_ITERATOR_SYMBOL]);if("function"==typeof iteratorFn)return iteratorFn}function is(x,y){return x===y?0!==x||1/x==1/y:x!==x&&y!==y}function PropTypeError(message){this.message=message,this.stack=""}function createChainableTypeChecker(validate){function checkType(isRequired,props,propName,componentName,location,propFullName,secret){if(componentName=componentName||ANONYMOUS,propFullName=propFullName||propName,secret!==ReactPropTypesSecret){if(throwOnDirectAccess){var err=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw err.name="Invariant Violation",err}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var cacheKey=componentName+":"+propName;!manualPropTypeCallCache[cacheKey]&&manualPropTypeWarningCount<3&&(printWarning("You are manually calling a React.PropTypes validation function for the `"+propFullName+"` prop on `"+componentName+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),manualPropTypeCallCache[cacheKey]=!0,manualPropTypeWarningCount++)}}return null==props[propName]?isRequired?new PropTypeError(null===props[propName]?"The "+location+" `"+propFullName+"` is marked as required in `"+componentName+"`, but its value is `null`.":"The "+location+" `"+propFullName+"` is marked as required in `"+componentName+"`, but its value is `undefined`."):null:validate(props,propName,componentName,location,propFullName)}if("production"!==process.env.NODE_ENV)var manualPropTypeCallCache={},manualPropTypeWarningCount=0;var chainedCheckType=checkType.bind(null,!1);return chainedCheckType.isRequired=checkType.bind(null,!0),chainedCheckType}function createPrimitiveTypeChecker(expectedType){function validate(props,propName,componentName,location,propFullName,secret){var propValue=props[propName];if(getPropType(propValue)!==expectedType)return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+getPreciseType(propValue)+"` supplied to `"+componentName+"`, expected `"+expectedType+"`.");return null}return createChainableTypeChecker(validate)}function createArrayOfTypeChecker(typeChecker){function validate(props,propName,componentName,location,propFullName){if("function"!=typeof typeChecker)return new PropTypeError("Property `"+propFullName+"` of component `"+componentName+"` has invalid PropType notation inside arrayOf.");var propValue=props[propName];if(!Array.isArray(propValue)){return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+getPropType(propValue)+"` supplied to `"+componentName+"`, expected an array.")}for(var i=0;i<propValue.length;i++){var error=typeChecker(propValue,i,componentName,location,propFullName+"["+i+"]",ReactPropTypesSecret);if(error instanceof Error)return error}return null}return createChainableTypeChecker(validate)}function createInstanceTypeChecker(expectedClass){function validate(props,propName,componentName,location,propFullName){if(!(props[propName]instanceof expectedClass)){var expectedClassName=expectedClass.name||ANONYMOUS;return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+getClassName(props[propName])+"` supplied to `"+componentName+"`, expected instance of `"+expectedClassName+"`.")}return null}return createChainableTypeChecker(validate)}function createEnumTypeChecker(expectedValues){function validate(props,propName,componentName,location,propFullName){for(var propValue=props[propName],i=0;i<expectedValues.length;i++)if(is(propValue,expectedValues[i]))return null;return new PropTypeError("Invalid "+location+" `"+propFullName+"` of value `"+propValue+"` supplied to `"+componentName+"`, expected one of "+JSON.stringify(expectedValues)+".")}return Array.isArray(expectedValues)?createChainableTypeChecker(validate):("production"!==process.env.NODE_ENV&&printWarning("Invalid argument supplied to oneOf, expected an instance of array."),emptyFunctionThatReturnsNull)}function createObjectOfTypeChecker(typeChecker){function validate(props,propName,componentName,location,propFullName){if("function"!=typeof typeChecker)return new PropTypeError("Property `"+propFullName+"` of component `"+componentName+"` has invalid PropType notation inside objectOf.");var propValue=props[propName],propType=getPropType(propValue);if("object"!==propType)return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+propType+"` supplied to `"+componentName+"`, expected an object.");for(var key in propValue)if(propValue.hasOwnProperty(key)){var error=typeChecker(propValue,key,componentName,location,propFullName+"."+key,ReactPropTypesSecret);if(error instanceof Error)return error}return null}return createChainableTypeChecker(validate)}function createUnionTypeChecker(arrayOfTypeCheckers){function validate(props,propName,componentName,location,propFullName){for(var i=0;i<arrayOfTypeCheckers.length;i++){if(null==(0,arrayOfTypeCheckers[i])(props,propName,componentName,location,propFullName,ReactPropTypesSecret))return null}return new PropTypeError("Invalid "+location+" `"+propFullName+"` supplied to `"+componentName+"`.")}if(!Array.isArray(arrayOfTypeCheckers))return"production"!==process.env.NODE_ENV&&printWarning("Invalid argument supplied to oneOfType, expected an instance of array."),emptyFunctionThatReturnsNull;for(var i=0;i<arrayOfTypeCheckers.length;i++){var checker=arrayOfTypeCheckers[i];if("function"!=typeof checker)return printWarning("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+getPostfixForTypeWarning(checker)+" at index "+i+"."),emptyFunctionThatReturnsNull}return createChainableTypeChecker(validate)}function createShapeTypeChecker(shapeTypes){function validate(props,propName,componentName,location,propFullName){var propValue=props[propName],propType=getPropType(propValue);if("object"!==propType)return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+propType+"` supplied to `"+componentName+"`, expected `object`.");for(var key in shapeTypes){var checker=shapeTypes[key];if(checker){var error=checker(propValue,key,componentName,location,propFullName+"."+key,ReactPropTypesSecret);if(error)return error}}return null}return createChainableTypeChecker(validate)}function createStrictShapeTypeChecker(shapeTypes){function validate(props,propName,componentName,location,propFullName){var propValue=props[propName],propType=getPropType(propValue);if("object"!==propType)return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+propType+"` supplied to `"+componentName+"`, expected `object`.");var allKeys=assign({},props[propName],shapeTypes);for(var key in allKeys){var checker=shapeTypes[key];if(!checker)return new PropTypeError("Invalid "+location+" `"+propFullName+"` key `"+key+"` supplied to `"+componentName+"`.\nBad object: "+JSON.stringify(props[propName],null,"  ")+"\nValid keys: "+JSON.stringify(Object.keys(shapeTypes),null,"  "));var error=checker(propValue,key,componentName,location,propFullName+"."+key,ReactPropTypesSecret);if(error)return error}return null}return createChainableTypeChecker(validate)}function isNode(propValue){switch(typeof propValue){case"number":case"string":case"undefined":return!0;case"boolean":return!propValue;case"object":if(Array.isArray(propValue))return propValue.every(isNode);if(null===propValue||isValidElement(propValue))return!0;var iteratorFn=getIteratorFn(propValue);if(!iteratorFn)return!1;var step,iterator=iteratorFn.call(propValue);if(iteratorFn!==propValue.entries){for(;!(step=iterator.next()).done;)if(!isNode(step.value))return!1}else for(;!(step=iterator.next()).done;){var entry=step.value;if(entry&&!isNode(entry[1]))return!1}return!0;default:return!1}}function isSymbol(propType,propValue){return"symbol"===propType||("Symbol"===propValue["@@toStringTag"]||"function"==typeof Symbol&&propValue instanceof Symbol)}function getPropType(propValue){var propType=typeof propValue;return Array.isArray(propValue)?"array":propValue instanceof RegExp?"object":isSymbol(propType,propValue)?"symbol":propType}function getPreciseType(propValue){if(void 0===propValue||null===propValue)return""+propValue;var propType=getPropType(propValue);if("object"===propType){if(propValue instanceof Date)return"date";if(propValue instanceof RegExp)return"regexp"}return propType}function getPostfixForTypeWarning(value){var type=getPreciseType(value);switch(type){case"array":case"object":return"an "+type;case"boolean":case"date":case"regexp":return"a "+type;default:return type}}function getClassName(propValue){return propValue.constructor&&propValue.constructor.name?propValue.constructor.name:ANONYMOUS}var ITERATOR_SYMBOL="function"==typeof Symbol&&Symbol.iterator,FAUX_ITERATOR_SYMBOL="@@iterator",ANONYMOUS="<<anonymous>>",ReactPropTypes={array:createPrimitiveTypeChecker("array"),bool:createPrimitiveTypeChecker("boolean"),func:createPrimitiveTypeChecker("function"),number:createPrimitiveTypeChecker("number"),object:createPrimitiveTypeChecker("object"),string:createPrimitiveTypeChecker("string"),symbol:createPrimitiveTypeChecker("symbol"),any:function(){return createChainableTypeChecker(emptyFunctionThatReturnsNull)}(),arrayOf:createArrayOfTypeChecker,element:function(){function validate(props,propName,componentName,location,propFullName){var propValue=props[propName];if(!isValidElement(propValue)){return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+getPropType(propValue)+"` supplied to `"+componentName+"`, expected a single ReactElement.")}return null}return createChainableTypeChecker(validate)}(),instanceOf:createInstanceTypeChecker,node:function(){function validate(props,propName,componentName,location,propFullName){return isNode(props[propName])?null:new PropTypeError("Invalid "+location+" `"+propFullName+"` supplied to `"+componentName+"`, expected a ReactNode.")}return createChainableTypeChecker(validate)}(),objectOf:createObjectOfTypeChecker,oneOf:createEnumTypeChecker,oneOfType:createUnionTypeChecker,shape:createShapeTypeChecker,exact:createStrictShapeTypeChecker};return PropTypeError.prototype=Error.prototype,ReactPropTypes.checkPropTypes=checkPropTypes,ReactPropTypes.PropTypes=ReactPropTypes,ReactPropTypes}}).call(exports,__webpack_require__(0))},function(module,exports,__webpack_require__){"use strict";(function(process){function checkPropTypes(typeSpecs,values,location,componentName,getStack){if("production"!==process.env.NODE_ENV)for(var typeSpecName in typeSpecs)if(typeSpecs.hasOwnProperty(typeSpecName)){var error;try{if("function"!=typeof typeSpecs[typeSpecName]){var err=Error((componentName||"React class")+": "+location+" type `"+typeSpecName+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof typeSpecs[typeSpecName]+"`.");throw err.name="Invariant Violation",err}error=typeSpecs[typeSpecName](values,typeSpecName,componentName,location,null,ReactPropTypesSecret)}catch(ex){error=ex}if(!error||error instanceof Error||printWarning((componentName||"React class")+": type specification of "+location+" `"+typeSpecName+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof error+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),error instanceof Error&&!(error.message in loggedTypeFailures)){loggedTypeFailures[error.message]=!0;var stack=getStack?getStack():"";printWarning("Failed "+location+" type: "+error.message+(null!=stack?stack:""))}}}var printWarning=function(){};if("production"!==process.env.NODE_ENV){var ReactPropTypesSecret=__webpack_require__(22),loggedTypeFailures={};printWarning=function(text){var message="Warning: "+text;"undefined"!=typeof console&&console.error(message);try{throw new Error(message)}catch(x){}}}module.exports=checkPropTypes}).call(exports,__webpack_require__(0))},function(module,exports,__webpack_require__){"use strict";function emptyFunction(){}var ReactPropTypesSecret=__webpack_require__(22);module.exports=function(){function shim(props,propName,componentName,location,propFullName,secret){if(secret!==ReactPropTypesSecret){var err=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw err.name="Invariant Violation",err}}function getShim(){return shim}shim.isRequired=shim;var ReactPropTypes={array:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim};return ReactPropTypes.checkPropTypes=emptyFunction,ReactPropTypes.PropTypes=ReactPropTypes,ReactPropTypes}},function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0__emotion_memoize__=__webpack_require__(59),reactPropsRegex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,index=Object(__WEBPACK_IMPORTED_MODULE_0__emotion_memoize__.a)(function(prop){return reactPropsRegex.test(prop)||111===prop.charCodeAt(0)&&110===prop.charCodeAt(1)&&prop.charCodeAt(2)<91});__webpack_exports__.a=index},function(module,__webpack_exports__,__webpack_require__){"use strict";function memoize(fn){var cache={};return function(arg){return void 0===cache[arg]&&(cache[arg]=fn(arg)),cache[arg]}}__webpack_exports__.a=memoize},function(module,__webpack_exports__,__webpack_require__){"use strict";function _templateObject2(){var data=_taggedTemplateLiteral(["\n\tpadding: 8px 24px;\n\tmargin-bottom: 30px;\n\tbackground: #fff;\n\tborder-bottom: 1px solid #DFDFDF;\n\n\t.ang-container {\n\t\tdisplay: flex;\n\t    justify-content: space-between;\n\t    align-items: center;\n\t}\n\n\t.logo img {\n\t\tmax-width: 42px;\n\t\tmax-height: 42px;\n\t}\n\n\ta {\n\t\tcolor: #fff;\n\t}\n\n\tsvg {\n\t\tvertical-align: bottom;\n\t}\n\n\t.button-plain {\n\t\tcolor: #fff !important;\n\t\tfont-weight: bold;\n\t\ttext-decoration: none;\n\t\tdisplay: inline-flex;\n\t\talign-items: center;\n\n\t\t&.is-active {\n\t\t\tpointer-events: none;\n\t\t\tsvg {\n\t\t\t\tanimation: "," 2s linear infinite;\n\t\t\t}\n\t\t}\n\n\t\tsvg {\n\t\t\tmargin-left: 10px;\n\t\t}\n\n\t\t&:first-of-type {\n\t\t\tmargin-left: auto;\n\t\t}\n\t\t+ .button-plain {\n\t\t\tposition: relative;\n\t\t\tmargin-left: 30px;\n\t\t}\n\t}\n\n\t.sync {\n\t\ttext-transform: uppercase;\n\t\tfont-size: 12.64px !important;\n\t\tletter-spacing: 1px;\n\t}\n"]);return _templateObject2=function(){return data},data}function _templateObject(){var data=_taggedTemplateLiteral(["\n  from {\n    transform: rotate(0deg);\n  }\n\n  to {\n    transform: rotate(360deg);\n  }\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var __WEBPACK_IMPORTED_MODULE_0_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_1__contexts_ThemeContext__=__webpack_require__(12),__WEBPACK_IMPORTED_MODULE_2__Nav__=__webpack_require__(61),__WEBPACK_IMPORTED_MODULE_3__Synchronization__=__webpack_require__(62),rotate=Object(__WEBPACK_IMPORTED_MODULE_0_styled_components__.b)(_templateObject()),Container=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.div(_templateObject2(),rotate),Header=function(){var _React$useContext=React.useContext(__WEBPACK_IMPORTED_MODULE_1__contexts_ThemeContext__.c),theme=_React$useContext.theme;return React.createElement(Container,{theme:theme},React.createElement("div",{className:"ang-container"},React.createElement("div",{className:"logo"},React.createElement("img",{src:AGWP.pluginURL+"/assets/img/analog.svg",alt:""})),!AGWP.isContainer&&React.createElement(__WEBPACK_IMPORTED_MODULE_2__Nav__.a,null),React.createElement(__WEBPACK_IMPORTED_MODULE_3__Synchronization__.a,null)))};__webpack_exports__.a=Header},function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0__AnalogContext__=__webpack_require__(2),__=wp.i18n.__,TabPanel=wp.components.TabPanel,ITEMS=[{key:"blocks",label:AGWP.isContainer?__("Patterns","ang"):__("Blocks","ang")},{key:"templates",label:__("Templates","ang")},{key:"styleKits",label:__("Styles","ang")}],Nav=function(){var context=React.useContext(__WEBPACK_IMPORTED_MODULE_0__AnalogContext__.a),getCount=function(tab){var items=context.state[tab];return"templates"===tab&&(items=context.state.archive),"blocks"===tab&&(items=context.state.blockArchive),!!items&&items.length},titleGenerator=function(titleObject){var count=getCount(titleObject.key),countTemplate=count>0?"("+count+")":"";return"".concat(titleObject.label," ").concat(countTemplate)},onSelect=function(tabName){context.dispatch({tab:tabName})};return React.createElement("span",{id:"sk-library-tab"},React.createElement(TabPanel,{className:"ang-nav",onSelect:onSelect,tabs:function(tabsArray){return tabsArray.map(function(item){return{name:item.key,title:titleGenerator(item),className:"tab-".concat(item.key)}})}(ITEMS)},function(tab){return null}))};__webpack_exports__.a=Nav},function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0_classnames__=__webpack_require__(5),__WEBPACK_IMPORTED_MODULE_0_classnames___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__),__WEBPACK_IMPORTED_MODULE_1__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_2__Notifications__=__webpack_require__(6),__WEBPACK_IMPORTED_MODULE_3__icons_close__=__webpack_require__(23),__=wp.i18n.__,Button=wp.components.Button,Synchronization=function(){return React.createElement("div",null,React.createElement(__WEBPACK_IMPORTED_MODULE_1__AnalogContext__.a.Consumer,null,function(context){return React.createElement(__WEBPACK_IMPORTED_MODULE_2__Notifications__.a,null,function(_ref){var add=_ref.add;return React.createElement(Button,{isPrimary:!0,className:__WEBPACK_IMPORTED_MODULE_0_classnames___default()("ang-sync",{"is-active":context.state.syncing}),onClick:function(e){e.preventDefault(),context.forceRefresh().then(function(){return add(__("Library is now synced","ang"))}).catch(function(){return add(__("Something is not right, please try again.","ang"),"error")})}},context.state.syncing?__("Syncing...","ang"):__("Sync Library","ang"))})}),!AGWP.is_settings_page&&React.createElement(Button,{isSecondary:!0,className:"close-modal"},__("Close","ang")," ",React.createElement(__WEBPACK_IMPORTED_MODULE_3__icons_close__.a,null)))};__webpack_exports__.a=Synchronization},function(module,__webpack_exports__,__webpack_require__){"use strict";var Error=function(){return React.createElement("svg",{height:"16",width:"12",viewBox:"0 0 12 16"},React.createElement("path",{fillRule:"evenodd",d:"M5.05.01c.81 2.17.41 3.38-.52 4.31C3.55 5.37 1.98 6.15.9 7.68c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.01 8.68 2.15 5.05.02L5.03 0l.02.01z"}))};__webpack_exports__.a=Error},function(module,__webpack_exports__,__webpack_require__){"use strict";var Notice=function(){return React.createElement("svg",{height:"16",width:"16",viewBox:"0 0 16 16"},React.createElement("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"}))};__webpack_exports__.a=Notice},function(module,__webpack_exports__,__webpack_require__){"use strict";var Success=function(){return React.createElement("svg",{height:"16",width:"12",viewBox:"0 0 12 16"},React.createElement("path",{fillRule:"evenodd",d:"M12 5.5l-8 8-4-4L1.5 8 4 10.5 10.5 4 12 5.5z"}))};__webpack_exports__.a=Success},function(module,__webpack_exports__,__webpack_require__){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(iter){if(Symbol.iterator in Object(iter)||"[object Arguments]"===Object.prototype.toString.call(iter))return Array.from(iter)}function _arrayWithoutHoles(arr){if(Array.isArray(arr)){for(var i=0,arr2=new Array(arr.length);i<arr.length;i++)arr2[i]=arr[i];return arr2}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _possibleConstructorReturn(self,call){return!call||"object"!==_typeof(call)&&"function"!=typeof call?_assertThisInitialized(self):call}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _templateObject(){var data=_taggedTemplateLiteral(["\n\tcolor: ",";\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var __WEBPACK_IMPORTED_MODULE_0_classnames__=__webpack_require__(5),__WEBPACK_IMPORTED_MODULE_0_classnames___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__),__WEBPACK_IMPORTED_MODULE_1_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_2__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_3__contexts_ThemeContext__=__webpack_require__(12),__WEBPACK_IMPORTED_MODULE_4__icons_star__=__webpack_require__(24),__=wp.i18n.__,_wp$components=wp.components,ToggleControl=_wp$components.ToggleControl,SelectControl=_wp$components.SelectControl,TextControl=_wp$components.TextControl,Button=_wp$components.Button,FiltersContainer=__WEBPACK_IMPORTED_MODULE_1_styled_components__.a.div(_templateObject(),function(props){return props.theme.textDark}),Filters=function(_React$Component){function Filters(){var _this;return _classCallCheck(this,Filters),_this=_possibleConstructorReturn(this,_getPrototypeOf(Filters).apply(this,arguments)),_this.searchInput=React.createRef(),_this}return _inherits(Filters,_React$Component),_createClass(Filters,[{key:"render",value:function(){var _this2=this,filters=_toConsumableArray(new Set(this.context.state.archive.map(function(f){return f.type}))),filterTypes=_toConsumableArray(filters).map(function(filter){return{value:"".concat(filter),label:"".concat(filter)}}),filterOptions=[{value:"all",label:__("All template types","ang")}].concat(_toConsumableArray(filterTypes)),sortOptions=[{value:"latest",label:__("Newest first","ang")},{value:"popular",label:__("Popular","ang")}],productTypeOptions=[{value:"all",label:__("Both Free and Pro","ang")},{value:"pro",label:__("Pro","ang")},{value:"free",label:__("Free","ang")}],showingKit=this.context.state.group&&this.context.state.activeKit;return React.createElement(__WEBPACK_IMPORTED_MODULE_3__contexts_ThemeContext__.b,null,function(_ref){var theme=_ref.theme;return React.createElement(FiltersContainer,{theme:theme,className:"template-filter"},React.createElement("div",{className:"top"},showingKit&&React.createElement(React.Fragment,null,React.createElement("h2",{className:"kit-title"},__("Template Kit","ang"),": ",_this2.context.state.activeKit.title),React.createElement(Button,{className:"kit-back",isSecondary:!0,onClick:function(){_this2.context.dispatch({activeKit:!1})}},__("Back to all Kits","ang"))),!showingKit&&React.createElement("button",{onClick:_this2.context.toggleFavorites,className:__WEBPACK_IMPORTED_MODULE_0_classnames___default()("favorites button-plain",{"is-active":_this2.context.state.showing_favorites})},React.createElement(__WEBPACK_IMPORTED_MODULE_4__icons_star__.a,null)," ",_this2.context.state.showing_favorites?__("Back to all","ang"):__("Favorites","ang")),!showingKit&&!_this2.context.state.showing_favorites&&React.createElement(ToggleControl,{className:"group-by",label:__("Group by Template Kit"),checked:_this2.context.state.group,onChange:function(){_this2.context.dispatch({group:!_this2.context.state.group,templates:_this2.context.state.archive}),window.localStorage.setItem("analog::group-kit",!_this2.context.state.group)}})),(!_this2.context.state.group||showingKit)&&!_this2.context.state.showing_favorites&&React.createElement("div",{className:"bottom "+(showingKit?"to-top-right":"")},React.createElement("span",null,!showingKit&&filters.length>1&&React.createElement(SelectControl,{id:"filter",options:filterOptions,onChange:function(value){_this2.context.handleFilter(value)}}),"valid"!==AGWP.license.status&&React.createElement(SelectControl,{id:"product-type",options:productTypeOptions,onChange:function(value){var pro=!1,free=!1;"all"===value?(pro=!0,free=!0):"pro"===value?(pro=!0,free=!1):"free"===value&&(pro=!1,free=!0),_this2.context.dispatch({showFree:free,showPro:pro}),window.localStorage.setItem("analog::show-free",free),window.localStorage.setItem("analog::show-pro",pro)}}),React.createElement(SelectControl,{id:"sort",options:sortOptions,onChange:function(value){return _this2.context.handleSort(value)}})),React.createElement("span",null,!showingKit&&React.createElement(TextControl,{type:"search",placeholder:__("Search templates...","ang"),onChange:function(value){return _this2.context.handleSearch(value.toLowerCase())}}))))})}}]),Filters}(React.Component);Filters.contextType=__WEBPACK_IMPORTED_MODULE_2__AnalogContext__.a,__webpack_exports__.a=Filters},function(module,__webpack_exports__,__webpack_require__){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function _extends(){return _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_extends.apply(this,arguments)}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(iter){if(Symbol.iterator in Object(iter)||"[object Arguments]"===Object.prototype.toString.call(iter))return Array.from(iter)}function _arrayWithoutHoles(arr){if(Array.isArray(arr)){for(var i=0,arr2=new Array(arr.length);i<arr.length;i++)arr2[i]=arr[i];return arr2}}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(source,!0).forEach(function(key){_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(source).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _possibleConstructorReturn(self,call){return!call||"object"!==_typeof(call)&&"function"!=typeof call?_assertThisInitialized(self):call}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _templateObject2(){var data=_taggedTemplateLiteral(["\n    > li {\n    \tborder-radius: 4px;\n    \tbackground: #fff;\n    }\n\n    figure {\n    \tmargin: 0;\n\t\tposition: relative;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\timg {\n\t\t\twidth: 100%;\n\t\t\theight: auto;\n\t\t}\n\n\t\t&:hover {\n\t\t\t.preview {\n\t\t\t\topacity: 1;\n\t\t\t\tbutton {\n\t\t\t\t\ttransform: none;\n\t\t\t\t\topacity: 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t .preview {\n\t\tbutton {\n\t\t\ttransform: translateY(20px);\n\t\t\topacity: 0;\n\n\t\t\t+ button, + .ang-promo {\n\t\t\t\tmargin-top: 10px;\n\t\t\t\ttext-decoration: none;\n\t\t\t}\n\t\t}\n\t\timg {\n\t\t\twidth: 100%;\n\t\t\theight: auto;\n\t\t}\n    }\n"]);return _templateObject2=function(){return data},data}function _templateObject(){var data=_taggedTemplateLiteral(["\n\t> p {\n\t\tfont-size: 16px;\n\t\tline-height: 24px;\n\t}\n\th3 {\n\t\tmargin: 0;\n\t\tfont-size: 14.2px;\n\t}\n\t.inner {\n    \ttext-align: center;\n    }\n    .error {\n    \tcolor: indianred;\n    \ttext-align: left;\n    }\n    a {\n    \tcolor: var(--ang-primary);\n    }\n    .tab-description {\n\t\tfont-size: 14px;\n\t\tline-height: 1.5;\n\t\tmargin: 12px 0 40px;\n\t    padding: 16px;\n\t    background-color: #F9F9F8;\n\t    border-radius: 6px;\n\t    box-shadow: rgb(0 0 0 / 10%) 0px 0px 0px 1px;\n    }\n    .popup-description {\n        text-align: left;\n\t\tfont-size: 14px;\n\t\tline-height: 1.5;\n\t\tcolor: var(--ang-main-text);\n\t\tpadding-bottom: 10px;\n\n\t\ta {\n\t\t\ttext-decoration: underline !important;\n\t\t}\n    }\n\n\t.gap {\n\t\tdisplay: flex;\n        gap: 10px;\n\n        & > button {\n            margin-left: 0 !important;\n        }\n\t}\n\n    .success-buttons {\n        button {\n            margin-left: 0 !important;\n        }\n    }\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}__webpack_require__.d(__webpack_exports__,"a",function(){return StyleKits});var __WEBPACK_IMPORTED_MODULE_0_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_1__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_2__api__=__webpack_require__(4),__WEBPACK_IMPORTED_MODULE_3__icons_loader__=__webpack_require__(25),__WEBPACK_IMPORTED_MODULE_4__Notifications__=__webpack_require__(6),__WEBPACK_IMPORTED_MODULE_5__popup__=__webpack_require__(26),__WEBPACK_IMPORTED_MODULE_6__modal_Preview__=__webpack_require__(68),_wp$components=wp.components,TextControl=_wp$components.TextControl,Button=_wp$components.Button,Card=(_wp$components.Dashicon,_wp$components.Card),CardBody=_wp$components.CardBody,CardFooter=_wp$components.CardFooter,decodeEntities=wp.htmlEntities.decodeEntities,_wp$i18n=wp.i18n,__=_wp$i18n.__,sprintf=_wp$i18n.sprintf,addQueryArgs=wp.url.addQueryArgs,Container=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.section(_templateObject()),ChildContainer=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.ul(_templateObject2()),initialState={modalActive:!1,importing:!1,activeKit:[],importedKit:!1,hasError:!1,kitname:"",previewing:null},footer=sprintf(__('%s <span class="footer-text">in WordPress dashboard.</span>',"ang"),sprintf('<a href="'.concat(addQueryArgs("admin.php",{page:"style-kits"}),'" target="_blank" rel="noopener noreferer">%s</a>'),__("Manage your Style Kits","ang"))),StyleKits=function(_React$Component){function StyleKits(){var _this;return _classCallCheck(this,StyleKits),_this=_possibleConstructorReturn(this,_getPrototypeOf(StyleKits).apply(this,arguments)),_this.state=_objectSpread({},initialState),_this}return _inherits(StyleKits,_React$Component),_createClass(StyleKits,[{key:"resetState",value:function(){this.setState(initialState)}},{key:"handleImport",value:function(kit,add){var _this2=this,checkKitStatus=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.setState({activeKit:kit,modalActive:!0}),checkKitStatus){if(this.context.state.installedKits.indexOf(this.state.kitname||kit.title)>-1)return void this.setState({hasError:!0})}Object(__WEBPACK_IMPORTED_MODULE_2__api__.h)(kit).then(function(response){if(response.errors){var message=Object.values(response.errors)[0];return add(message,"error","kit-error",!1),void _this2.resetState()}var kits=_toConsumableArray(_this2.context.state.installedKits);if(kits.push(kit.title),_this2.setState({importedKit:!0}),_this2.context.dispatch({installedKits:kits}),add(response.message),!AGWP.is_settings_page&&elementor){var options=elementor.settings.page.model.controls.ang_action_tokens.options;0===options.length&&(options={}),options[response.id]=kit.title,elementor.settings.page.model.controls.ang_action_tokens.options=options,elementor.reloadPreview(),analog.redirectToSection()}}).catch(function(error){add(error.message,"error","kit-error",!1),_this2.resetState()})}},{key:"getPopupTitle",value:function(title,hasImported,hasError){return hasImported&&!hasError?decodeEntities(title)+__(" Imported!","ang"):decodeEntities(title)}},{key:"render",value:function(){var _this3=this,successButtonProps={rel:"noopener noreferrer",href:addQueryArgs("admin.php",{page:"style-kits"})},isValid=function(isPro){return!(isPro&&"valid"!==AGWP.license.status)},fallbackImage=AGWP.pluginURL+"assets/img/placeholder.svg";return React.createElement(Container,null,React.createElement("p",{className:"tab-description"},__("Style Kits are ready-made configurations of theme styles. When you import a Style Kit, it will be available in the","ang")," ",React.createElement("a",{href:addQueryArgs("admin.php",{page:"style-kits"})},__("Local Style Kits","ang"))," ",__("page","ang"),".  ",__("You will then be able apply it globally, or on any page.","ang")," ",React.createElement("a",{href:"https://analogwp.com/docs/importing-global-style-presets/",target:"_blank",rel:"noopener noreferrer"},__("Learn more","ang")),"."),this.state.previewing&&this.state.previewing.preview&&React.createElement(__WEBPACK_IMPORTED_MODULE_4__Notifications__.a,null,function(_ref){var add=_ref.add;return React.createElement(__WEBPACK_IMPORTED_MODULE_6__modal_Preview__.a,{template:_this3.state.previewing,onRequestClose:function(){return _this3.resetState()},onRequestImport:function(){return _this3.handleImport(_this3.state.previewing,add,!0)},insertText:__("Import Style Kit","ang"),style:{padding:"20px",boxSizing:"border-box"}})}),React.createElement(ChildContainer,{className:"stylekit-list"},this.context.state.styleKits.length>0&&this.context.state.styleKits.map(function(kit){return React.createElement("li",{key:kit.id+"-"+kit.site_id},React.createElement(Card,null,React.createElement(CardBody,null,kit.is_pro&&React.createElement("span",{className:"pro"},__("Pro","ang")),React.createElement("figure",null,React.createElement("img",{src:kit.image||fallbackImage,alt:kit.title}),React.createElement("div",{className:"preview"},kit.preview&&React.createElement(Button,{isSecondary:!0,className:"black-transparent",onClick:function(){window.scrollTo(0,0),_this3.setState({previewing:kit})}},__("Preview","ang")),!isValid(kit.is_pro)&&React.createElement("a",{className:"ang-promo",href:"https://analogwp.com/style-kits-pro/?utm_medium=plugin&utm_source=library&utm_campaign=style+kits+pro",target:"_blank"},React.createElement(Button,{isPrimary:!0},__("Go Pro","ang"))),isValid(kit.is_pro)&&React.createElement(__WEBPACK_IMPORTED_MODULE_4__Notifications__.a,null,function(_ref2){var add=_ref2.add;return React.createElement(Button,{isPrimary:!0,onClick:function(){return _this3.handleImport(kit,add,!0)}},__("Import","ang"))})))),React.createElement(CardFooter,null,React.createElement("div",{className:"content"},React.createElement("h3",null,kit.title)))))})),this.state.modalActive&&React.createElement(__WEBPACK_IMPORTED_MODULE_5__popup__.a,{title:this.getPopupTitle(this.state.activeKit.title,this.state.importedKit,this.state.hasError),onRequestClose:function(){return _this3.resetState()}},this.state.hasError&&React.createElement("div",{className:"stylekit-popup-content"},React.createElement("p",{className:"popup-description"},__("A Style Kit named ","ang")+decodeEntities(this.state.activeKit.title)+__(" already exists in your website. To import it again please use a different name.","ang")),this.context.state.installedKits.indexOf(this.state.kitname)>-1&&React.createElement("p",{className:"error"},__("Please try a different as a Style Kit with same name already exists.","ang")),React.createElement("div",{className:"form-row gap"},React.createElement(TextControl,{placeholder:__("Enter a Style Kit Name","ang"),onChange:function(val){return _this3.setState({kitname:val})},className:"kit-name"}),React.createElement(__WEBPACK_IMPORTED_MODULE_4__Notifications__.a,null,function(_ref3){var add=_ref3.add;return React.createElement(Button,{isPrimary:!0,disabled:!_this3.state.kitname||_this3.context.state.installedKits.indexOf(_this3.state.kitname)>-1,style:{marginLeft:"15px"},onClick:function(){_this3.setState({hasError:!1});var kit=_objectSpread({},_this3.state.activeKit,{title:_this3.state.kitname});_this3.handleImport(kit,add)}},__("Import","ang"))}))),!this.state.hasError&&!this.state.importedKit&&React.createElement(__WEBPACK_IMPORTED_MODULE_3__icons_loader__.a,null),!this.state.hasError&&this.state.importedKit&&React.createElement("div",{className:"stylekit-popup-content"},React.createElement("p",{className:"popup-description"},decodeEntities(this.state.activeKit.title)+__(" has been successfully imported. You can now find it in the ","ang"),React.createElement("a",{href:AGWP.globalSkAlwaysEnableURL},__("list of your Local Style Kits")),"."),React.createElement("p",{className:"success-buttons gap"},React.createElement("a",{onClick:function(e){_this3.resetState(),Boolean(AGWP.is_settings_page)||(e.preventDefault(),window.analogModal.hide(),analog.redirectToSection())}},React.createElement(Button,{isPrimary:!0},__("Stay on this page","ang"))),React.createElement("a",_extends({onClick:function(e){_this3.resetState(),Boolean(AGWP.is_settings_page)||(e.preventDefault(),window.analogModal.hide(),analog.redirectToSection())}},successButtonProps),React.createElement(Button,{isSecondary:!0},__("View local Style Kits","ang")))),!Boolean(AGWP.is_settings_page)&&React.createElement("footer",{className:"style-kit-footer",dangerouslySetInnerHTML:{__html:footer}})),!this.state.hasError&&!this.state.importedKit&&React.createElement("p",null,__("Importing ","ang")," ",decodeEntities(this.state.activeKit.title))))}}]),StyleKits}(React.Component);_defineProperty(StyleKits,"contextType",__WEBPACK_IMPORTED_MODULE_1__AnalogContext__.a)},function(module,__webpack_exports__,__webpack_require__){"use strict";function _extends(){return _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_extends.apply(this,arguments)}function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=_objectWithoutPropertiesLoose(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++)key=sourceSymbolKeys[i],excluded.indexOf(key)>=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],excluded.indexOf(key)>=0||(target[key]=source[key]);return target}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit(arr,i){if(Symbol.iterator in Object(arr)||"[object Arguments]"===Object.prototype.toString.call(arr)){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}function _templateObject3(){var data=_taggedTemplateLiteral(["\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n\toverflow: hidden;\n\toverflow: -moz-scrollbars-none;\n\tbackground: #F1F1F1;\n\tz-index: 999;\n\ttext-align: center;\n\n\tiframe {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tdisplay: ",";\n\t}\n\n\t.frame-header {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\talign-items: center;\n\t\tmargin-bottom: 25px;\n\n\t\ta {\n\t\t\tmargin-left: auto;\n\t\t\tmargin-right: 20px;\n\t\t\tcolor: currentColor;\n\t\t\ttext-decoration: none;\n\t\t}\n\n\t\t.dashicons {\n\t\t\tfont-size: 25px;\n\t\t}\n\t}\n\n\t.button--accent {\n\t\tfont-size: 12px;\n\t\tfont-weight: bold;\n\t\tcolor: #fff;\n\t\tborder-radius: 0;\n\t\tborder: none;\n\t\tbackground: var(--ang-accent);\n\t\toutline: 0;\n\t\tbox-shadow: none;\n\t\tpadding: 15px 30px;\n\t\tcursor: pointer;\n\t}\n"]);return _templateObject3=function(){return data},data}function _templateObject2(){var data=_taggedTemplateLiteral(["\n\topacity: 0.5;\n\ttransition: all 200ms ease-in-out;\n\tanimation: "," 2s linear infinite;\n"]);return _templateObject2=function(){return data},data}function _templateObject(){var data=_taggedTemplateLiteral(["\n  0% {\n    opacity: 0.5;\n  }\n\n  50% {\n    opacity: 0.1;\n  }\n\n  100% {\n    opacity: 0.5;\n  }\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var __WEBPACK_IMPORTED_MODULE_0_styled_components__=__webpack_require__(1),_wp$components=wp.components,FocusableIframe=_wp$components.FocusableIframe,Button=_wp$components.Button,__=wp.i18n.__,rotateOpacity=Object(__WEBPACK_IMPORTED_MODULE_0_styled_components__.b)(_templateObject()),Img=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.img(_templateObject2(),rotateOpacity),Container=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.div(_templateObject3(),function(props){return props.loading?"none":"block"}),Preview=function(props){var _React$useState=React.useState(!0),_React$useState2=_slicedToArray(_React$useState,2),loading=_React$useState2[0],setLoading=_React$useState2[1],onRequestClose=props.onRequestClose,onRequestImport=props.onRequestImport,rest=_objectWithoutProperties(props,["onRequestClose","onRequestImport"]),previewURL=props.template.url||props.template.preview;return React.createElement(Container,_extends({loading:loading},rest),React.createElement("div",{className:"frame-header"},React.createElement(Button,{isSecondary:!0,onClick:onRequestClose},__("Back to Library","ang")),React.createElement("a",{href:previewURL,rel:"noopener noreferrer",target:"_blank"},React.createElement(Button,{isSecondary:!0},__("Open in new tab","ang"))),!(props.template.is_pro&&"valid"!==AGWP.license.status)&&React.createElement(Button,{isPrimary:!0,onClick:onRequestImport},props.insertText||__("Import Template","ang"))),loading&&React.createElement(Img,{src:"".concat(AGWP.pluginURL,"assets/img/placeholder.svg"),alt:__("Loading icon","ang")}),React.createElement(FocusableIframe,{src:previewURL,onLoad:function(){return setLoading(!1)}}))};__webpack_exports__.a=Preview},function(module,__webpack_exports__,__webpack_require__){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(source,!0).forEach(function(key){_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(source).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _possibleConstructorReturn(self,call){return!call||"object"!==_typeof(call)&&"function"!=typeof call?_assertThisInitialized(self):call}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _templateObject(){var data=_taggedTemplateLiteral(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tposition: relative;\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}__webpack_require__.d(__webpack_exports__,"a",function(){return Blocks});var __WEBPACK_IMPORTED_MODULE_0_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_1__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_2__api__=__webpack_require__(4),__WEBPACK_IMPORTED_MODULE_4__BlockList__=(__webpack_require__(27),__webpack_require__(70)),__WEBPACK_IMPORTED_MODULE_5__Sidebar__=__webpack_require__(72),_wp$element=(wp.i18n.__,wp.element),Component=_wp$element.Component,Fragment=_wp$element.Fragment,LibraryWrapper=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.div(_templateObject()),initialState={blocks:[],activeBlock:!1,blockImported:!1,modalActive:!1},Blocks=function(_Component){function Blocks(){var _this;return _classCallCheck(this,Blocks),_this=_possibleConstructorReturn(this,_getPrototypeOf(Blocks).apply(this,arguments)),_defineProperty(_assertThisInitialized(_this),"makeFavorite",function(id){var blockFavorites=_this.context.state.blockFavorites;if(_this.context.markFavorite(id,!(id in blockFavorites),"block"),id in blockFavorites?delete blockFavorites[id]:blockFavorites[id]=!(id in blockFavorites),_this.context.dispatch({blockFavorites:blockFavorites}),_this.context.state.showing_favorites){var filteredBlocks=_this.context.state.blocks.filter(function(t){return t.id in blockFavorites});_this.context.dispatch({blocks:filteredBlocks})}}),_this.state=_objectSpread({},initialState),_this.importBlock=_this.importBlock.bind(_assertThisInitialized(_this)),_this.handleImport=_this.handleImport.bind(_assertThisInitialized(_this)),_this}return _inherits(Blocks,_Component),_createClass(Blocks,[{key:"importBlock",value:function(block,add){this.setState({modalActive:!0,activeBlock:block}),this.handleImport(block,add)}},{key:"handleImport",value:function(block,add){var _this2=this,method=Boolean(AGWP.is_settings_page)?"library":"elementor";Object(__WEBPACK_IMPORTED_MODULE_2__api__.d)(block,method).then(function(response){if("elementor"===method){var parsedTemplate=response.data;Object(__WEBPACK_IMPORTED_MODULE_2__api__.a)(parsedTemplate.content,"block"),_this2.setState({modalActive:!1,activeBlock:!1}),window.analogModal.hide()}else _this2.setState({blockImported:!0})}).catch(function(error){add(error.message,"error","import-error",!1),_this2.setState({modalActive:!1,activeBlock:!1})})}},{key:"getItemCount",value:function(category){var blocks=this.context.state.blocks,foundItems=blocks.filter(function(block){return block.tags.indexOf(category)>-1});return!!foundItems&&foundItems.length}},{key:"render",value:function(){var _this3=this,dataSet={state:this.state,dispatch:function(action){return _this3.setState(action)}};return React.createElement(Fragment,null,React.createElement(LibraryWrapper,null,React.createElement(__WEBPACK_IMPORTED_MODULE_5__Sidebar__.a,{state:dataSet}),React.createElement(__WEBPACK_IMPORTED_MODULE_4__BlockList__.a,{state:dataSet,importBlock:this.importBlock,favorites:this.context.state.blockFavorites,makeFavorite:this.makeFavorite})))}}]),Blocks}(Component);_defineProperty(Blocks,"contextType",__WEBPACK_IMPORTED_MODULE_1__AnalogContext__.a)},function(module,__webpack_exports__,__webpack_require__){"use strict";function _templateObject3(){var data=_taggedTemplateLiteral(['\n\tflex: 1;\n\tmargin-left: 25px;\n\n\t.grid {\n\t\tdisplay: flex;\n\t\tmargin-left: -25px; /* gutter size offset */\n\t\twidth: auto;\n\t}\n\n\t.grid-item {\n\t\tpadding-left: 25px;\n\t\tbackground-clip: padding-box;\n\n\t\t&:empty {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t> div {\n\t\t\tbackground: #fff;\n\t\t\tbox-shadow: 0px 5px 20px rgba(0, 0, 0, 0.05);\n\t\t\tposition: relative;\n\t\t\tmargin-bottom: 25px;\n\t\t}\n\t}\n\n\tfigure {\n\t\tposition: relative;\n\t\toverflow: hidden;\n\t\tmargin: 0;\n\t\tmin-height: 150px;\n\t\tdisplay: flex;\n\n\t\t&:hover {\n\t\t\t.actions {\n\t\t\t\topacity: 1;\n\t\t\t\tbutton {\n\t\t\t\t\ttransform: none;\n\t\t\t\t\topacity: 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t.favorite {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\n\t\t.pattern-title {\n\t\t\tposition: absolute;\n\t\t\tbottom: 10px;\n\t\t\ttext-align: center;\n\t\t\twidth: 100%;\n\t\t\tfont-size: 14px !important;\n\t\t\ttext-transform: capitalize;\n\t\t}\n\n\t\t.actions {\n\t\t\tbutton {\n\t\t\t\ttransform: translateY(20px);\n\t\t\t\topacity: 0;\n\t\t\t}\n\t\t\t.ang-promo {\n\t\t\t\ttext-decoration: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t.favorite {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tz-index: 200;\n\t\tdisplay: inline-flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\twidth: 25px;\n\t\theight: 25px;\n\t\tbox-shadow: none !important;\n\t\toutline: none !important;\n\n\t\t&:not(.is-active) {\n\t\t\topacity: 0;\n\t\t}\n\n\t\t&:before {\n\t\t\tcontent: \'\';\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder-style: solid;\n\t\t\tborder-width: 42px 42px 0 0;\n\t\t\tborder-color: var(--ang-dark-bg) transparent transparent transparent;\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tz-index: 190;\n\t\t}\n\n\t\tsvg {\n\t\t\tfill: #fff;\n\t\t\tposition: relative;\n\t\t\tz-index: 195;\n\t\t\twidth: 17px;\n\t\t\theight: 17px;\n\t\t}\n\t\t&.is-active svg {\n\t\t\tfill: #FFB443;\n\t\t}\n\t}\n\n\timg {\n\t\tmax-width: 100%;\n\t\theight: auto;\n\t\talign-self: center;\n\t}\n\n\timg[src$="svg"] {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tobject-fit: cover;\n\t\tmax-height: 150px;\n\t}\n\n\th3 {\n\t\tmargin: 0;\n\t\tfont-weight: normal;\n\t\tfont-size: 16px;\n\t\tline-height: 21px;\n\t}\n\n\t .content {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\talign-items: center;\n\t}\n\n\t .components-base-control {\n\t\tmargin-bottom: 30px;\n\t}\n\n\t.components-text-control__input, .components-text-control__input[type="text"] {\n\t\tbackground-color: #fff;\n\t\tcolor: #060606;\n\t\tfont-size: 16px;\n\t}\n\n\t.button-plain {\n\t\tpadding: 0;\n\t\tmargin: 0;\n\t\tborder: none;\n\t\tborder-radius: 0;\n\t\tbox-shadow: none;\n\t\tcursor: pointer;\n\t\tappearance: none;\n\t\toutline: 0;\n\t\tbackground: transparent;\n\t\tfont-weight: bold;\n\t\tcolor: #060606;\n\t\tfont-size: 14.22px;\n\t}\n\t.inner-popup-header {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\talign-items: center;\n\t\tposition: sticky;\n\t\tbackground: #fff;\n\t}\n\t.inner-popup-header h1 {\n\t\tfont-size: 16px;\n\t\tfont-weight: bold;\n\t\tcolor: #000000;\n\t\tmargin: 0;\n\t}\n\t.inner-popup-content p {\n\t\tfont-size: 13px;\n\t\tline-height: 18px;\n\t\tcolor: #565d65;\n\t}\n']);return _templateObject3=function(){return data},data}function _templateObject2(){var data=_taggedTemplateLiteral(['\n\tdisplay: flex;\n\tmargin-left: -25px;\n\twidth: auto;\n\n\timg[src$="svg"].thumb {\n\t\twidth: 33.3333%;\n\t\tpadding-left: 25px;\n\t\tbackground-clip: padding-box;\n\t\tmax-height: 300px;\n\t\tobject-fit: cover;\n\t\tobject-position: top;\n\t\topacity: 0.7;\n\t\ttransition: all 200ms ease-in-out;\n\t\tanimation: '," 2s linear infinite;\n\t}\n"]);return _templateObject2=function(){return data},data}function _templateObject(){var data=_taggedTemplateLiteral(["\n  0% {\n    opacity: 0.7;\n  }\n\n  50% {\n    opacity: 0.1;\n  }\n\n  100% {\n    opacity: 0.7;\n  }\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var __WEBPACK_IMPORTED_MODULE_0_classnames__=__webpack_require__(5),__WEBPACK_IMPORTED_MODULE_0_classnames___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__),__WEBPACK_IMPORTED_MODULE_1_react_masonry_css__=__webpack_require__(71),__WEBPACK_IMPORTED_MODULE_1_react_masonry_css___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_masonry_css__),__WEBPACK_IMPORTED_MODULE_2_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_3__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_5__Notifications__=(__webpack_require__(13),__webpack_require__(6)),__WEBPACK_IMPORTED_MODULE_6__icons_star__=__webpack_require__(24),__WEBPACK_IMPORTED_MODULE_7__popup__=__webpack_require__(26),__WEBPACK_IMPORTED_MODULE_8__icons_loader__=__webpack_require__(25),__WEBPACK_IMPORTED_MODULE_9__ProModal__=__webpack_require__(34),__WEBPACK_IMPORTED_MODULE_10__helpers_Empty__=__webpack_require__(27),decodeEntities=wp.htmlEntities.decodeEntities,_wp$i18n=wp.i18n,__=_wp$i18n.__,sprintf=_wp$i18n.sprintf,_wp$components=wp.components,Dashicon=_wp$components.Dashicon,Button=_wp$components.Button,Card=_wp$components.Card,CardBody=_wp$components.CardBody,CardFooter=_wp$components.CardFooter,addQueryArgs=wp.url.addQueryArgs,rotateOpacity=Object(__WEBPACK_IMPORTED_MODULE_2_styled_components__.b)(_templateObject()),Container=(__WEBPACK_IMPORTED_MODULE_2_styled_components__.a.div(_templateObject2(),rotateOpacity),__WEBPACK_IMPORTED_MODULE_2_styled_components__.a.div(_templateObject3())),BlockList=function(_ref){var state=_ref.state,importBlock=_ref.importBlock,favorites=_ref.favorites,makeFavorite=_ref.makeFavorite,context=React.useContext(__WEBPACK_IMPORTED_MODULE_3__AnalogContext__.a),filteredBlocks=context.state.blocks.filter(function(block){return!("valid"!==AGWP.license.status&&context.state.showFree&&Boolean(block.is_pro))}),isValid=(AGWP.pluginURL,function(isPro){return!(isPro&&"valid"!==AGWP.license.status)}),breakpointColumnsObj={default:5,2e3:4,1600:3,1300:2,900:1},getScreenshot=function(block){return AGWP.isContainer?block.thumbnail||AGWP.blockMediaURL+"patterns/".concat(block.id,".webp?modified=").concat(block.modified):AGWP.blockMediaURL+block.id+".jpg"};return React.createElement(React.Fragment,null,state.state.modalActive&&React.createElement(__WEBPACK_IMPORTED_MODULE_7__popup__.a,{title:decodeEntities(state.state.activeBlock.title),style:{textAlign:"center"},onRequestClose:function(){state.dispatch({activeBlock:!1,modalActive:!1,blockImported:!1})}},!state.state.blockImported&&React.createElement(__WEBPACK_IMPORTED_MODULE_8__icons_loader__.a,null),state.state.blockImported&&React.createElement(React.Fragment,null,React.createElement("p",null,sprintf(__("The %s has been imported and is now available in the","ang"),AGWP.isContainer?"container":"section")," ",React.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:addQueryArgs("edit.php",{post_type:"elementor_library",tabs_group:!0,elementor_library_type:AGWP.isContainer?"container":"section"})},sprintf(__("Elementor %s library","ang"),AGWP.isContainer?"container":"section")),"."),React.createElement("p",null,React.createElement(Button,{isPrimary:!0,onClick:function(){state.dispatch({activeBlock:!1,modalActive:!1,blockImported:!1})}},__("Ok, thanks","ang")," ",React.createElement(Dashicon,{icon:"yes"}))))),React.createElement(Container,{className:"blocks-area"},"valid"!==AGWP.license.status&&React.createElement(__WEBPACK_IMPORTED_MODULE_9__ProModal__.a,null),!context.state.syncing&&context.state.blocks.length<1&&React.createElement(__WEBPACK_IMPORTED_MODULE_10__helpers_Empty__.a,{text:AGWP.isContainer?__("No patterns found","ang"):__("No blocks found","ang")}),context.state.syncing&&context.state.blocks.length<1&&React.createElement(__WEBPACK_IMPORTED_MODULE_10__helpers_Empty__.a,{text:AGWP.isContainer?__("Loading Patterns...","ang"):__("Loading Blocks...","ang")}),React.createElement(__WEBPACK_IMPORTED_MODULE_1_react_masonry_css___default.a,{breakpointCols:Boolean(AGWP.is_settings_page)?breakpointColumnsObj:3,className:"grid",columnClassName:"grid-item block-list"},filteredBlocks.length>=1&&filteredBlocks.map(function(block){var requiresElementorPro=!1;if(block.requiredPlugins&&block.requiredPlugins.length>0){var unresolvedPlugins=block.requiredPlugins.filter(function(plugin){return""!==plugin&&!AGWP.activePlugins.includes(plugin)});if(unresolvedPlugins.length>0&&!unresolvedPlugins.includes("elementor-pro"))return null;requiresElementorPro=unresolvedPlugins&&unresolvedPlugins.includes("elementor-pro")}return React.createElement("div",{key:block.id},React.createElement(Card,null,React.createElement(CardBody,null,block.is_pro&&React.createElement("span",{className:"pro"},__("Pro","ang")),React.createElement("figure",null,React.createElement("img",{src:getScreenshot(block),loading:"lazy",width:"720",height:"100",alt:block.title}),React.createElement("div",{className:"actions"},!isValid(block.is_pro)&&React.createElement("a",{className:"ang-promo",href:"https://analogwp.com/style-kits-pro/?utm_medium=plugin&utm_source=library&utm_campaign=style+kits+pro",target:"_blank"},React.createElement(Button,{isPrimary:!0},__("Go Pro","ang"))),isValid(block.is_pro)&&requiresElementorPro&&React.createElement("a",{className:"ang-requirements",href:"https://analogwp.com/style-kits-pro/?utm_medium=plugin&utm_source=library&utm_campaign=style+kits+pro",target:"_blank"},React.createElement("img",{className:"required-logo",src:AGWP.pluginURL+"/assets/img/elementor.svg"}),React.createElement("h4",{className:"title"},"Elementor PRO"),React.createElement("p",{className:"description"},"This pattern is using Elementor PRO widgets.")),React.createElement(__WEBPACK_IMPORTED_MODULE_5__Notifications__.a,null,function(_ref2){var add=_ref2.add;return!requiresElementorPro&&isValid(block.is_pro)&&React.createElement(Button,{isPrimary:!0,onClick:function(){return importBlock(block,add)}},__("Import","ang"))}),AGWP.isContainer&&React.createElement("div",{className:"pattern-title"},React.createElement("h3",null,decodeEntities(block.title)))),React.createElement("button",{className:__WEBPACK_IMPORTED_MODULE_0_classnames___default()("button-plain favorite",{"is-active":block.id in favorites}),onClick:function(){return makeFavorite(block.id)}},React.createElement(__WEBPACK_IMPORTED_MODULE_6__icons_star__.a,null)))),!AGWP.isContainer&&React.createElement(CardFooter,null,React.createElement("div",{className:"content"},React.createElement("h3",null,decodeEntities(block.title)),block.is_pro&&React.createElement("span",{className:"pro"},__("Pro","ang"))))))}))))};__webpack_exports__.a=BlockList},function(module,exports,__webpack_require__){"use strict";function _objectWithoutProperties(obj,keys){var target={};for(var i in obj)keys.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(obj,i)&&(target[i]=obj[i]);return target}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}Object.defineProperty(exports,"__esModule",{value:!0});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_react=__webpack_require__(3),_react2=function(obj){return obj&&obj.__esModule?obj:{default:obj}}(_react),defaultProps={breakpointCols:void 0,className:void 0,columnClassName:void 0,children:void 0,columnAttrs:void 0,column:void 0},DEFAULT_COLUMNS=2,Masonry=function(_React$Component){function Masonry(props){_classCallCheck(this,Masonry);var _this=_possibleConstructorReturn(this,(Masonry.__proto__||Object.getPrototypeOf(Masonry)).call(this,props));_this.reCalculateColumnCount=_this.reCalculateColumnCount.bind(_this),_this.reCalculateColumnCountDebounce=_this.reCalculateColumnCountDebounce.bind(_this);var columnCount=void 0;return columnCount=_this.props.breakpointCols&&_this.props.breakpointCols.default?_this.props.breakpointCols.default:parseInt(_this.props.breakpointCols)||DEFAULT_COLUMNS,_this.state={columnCount:columnCount},_this}return _inherits(Masonry,_React$Component),_createClass(Masonry,[{key:"componentDidMount",value:function(){this.reCalculateColumnCount(),window&&window.addEventListener("resize",this.reCalculateColumnCountDebounce)}},{key:"componentDidUpdate",value:function(){this.reCalculateColumnCount()}},{key:"componentWillUnmount",value:function(){window&&window.removeEventListener("resize",this.reCalculateColumnCountDebounce)}},{key:"reCalculateColumnCountDebounce",value:function(){var _this2=this;if(!window||!window.requestAnimationFrame)return void this.reCalculateColumnCount();window.cancelAnimationFrame&&window.cancelAnimationFrame(this._lastRecalculateAnimationFrame),this._lastRecalculateAnimationFrame=window.requestAnimationFrame(function(){_this2.reCalculateColumnCount()})}},{key:"reCalculateColumnCount",value:function(){var windowWidth=window&&window.innerWidth||1/0,breakpointColsObject=this.props.breakpointCols;"object"!==(void 0===breakpointColsObject?"undefined":_typeof(breakpointColsObject))&&(breakpointColsObject={default:parseInt(breakpointColsObject)||DEFAULT_COLUMNS});var matchedBreakpoint=1/0,columns=breakpointColsObject.default||DEFAULT_COLUMNS;for(var breakpoint in breakpointColsObject){var optBreakpoint=parseInt(breakpoint);optBreakpoint>0&&windowWidth<=optBreakpoint&&optBreakpoint<matchedBreakpoint&&(matchedBreakpoint=optBreakpoint,columns=breakpointColsObject[breakpoint])}columns=Math.max(1,parseInt(columns)||1),this.state.columnCount!==columns&&this.setState({columnCount:columns})}},{key:"itemsInColumns",value:function(){for(var currentColumnCount=this.state.columnCount,itemsInColumns=new Array(currentColumnCount),items=[].concat(this.props.children||[]),i=0;i<items.length;i++){var columnIndex=i%currentColumnCount;itemsInColumns[columnIndex]||(itemsInColumns[columnIndex]=[]),itemsInColumns[columnIndex].push(items[i])}return itemsInColumns}},{key:"renderColumns",value:function(){var _props=this.props,column=_props.column,_props$columnAttrs=_props.columnAttrs,columnAttrs=void 0===_props$columnAttrs?{}:_props$columnAttrs,columnClassName=_props.columnClassName,childrenInColumns=this.itemsInColumns(),columnWidth=100/childrenInColumns.length+"%",className=columnClassName;"string"!=typeof className&&(this.logDeprecated('The property "columnClassName" requires a string'),void 0===className&&(className="my-masonry-grid_column"));var columnAttributes=_extends({},column,columnAttrs,{style:_extends({},columnAttrs.style,{width:columnWidth}),className:className});return childrenInColumns.map(function(items,i){return _react2.default.createElement("div",_extends({},columnAttributes,{key:i}),items)})}},{key:"logDeprecated",value:function(message){console.error("[Masonry]",message)}},{key:"render",value:function(){var _props2=this.props,className=(_props2.children,_props2.breakpointCols,_props2.columnClassName,_props2.columnAttrs,_props2.column,_props2.className),rest=_objectWithoutProperties(_props2,["children","breakpointCols","columnClassName","columnAttrs","column","className"]),classNameOutput=className;return"string"!=typeof className&&(this.logDeprecated('The property "className" requires a string'),void 0===className&&(classNameOutput="my-masonry-grid")),_react2.default.createElement("div",_extends({},rest,{className:classNameOutput}),this.renderColumns())}}]),Masonry}(_react2.default.Component);Masonry.defaultProps=defaultProps,exports.default=Masonry},function(module,__webpack_exports__,__webpack_require__){"use strict";function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(iter){if(Symbol.iterator in Object(iter)||"[object Arguments]"===Object.prototype.toString.call(iter))return Array.from(iter)}function _arrayWithoutHoles(arr){if(Array.isArray(arr)){for(var i=0,arr2=new Array(arr.length);i<arr.length;i++)arr2[i]=arr[i];return arr2}}function _templateObject(){var data=_taggedTemplateLiteral(['\n\twidth: 100%;\n\tmax-width: 220px;\n\theight: 100vh;\n\tposition: sticky;\n\tposition: -webkit-sticky;\n\ttop: 35px;\n\n\t.components-tab-panel__tabs {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t}\n\n\t.components-tab-panel__tabs > .components-button {\n\t\ttext-transform: capitalize;\n\t}\n\n\t.components-toggle-control\n\t.components-base-control__field {\n\t\tflex-direction: row-reverse;\n\t\tjustify-content: space-between;\n\t}\n\n\t.components-toggle-control\n\t.components-base-control__field\n\t.components-form-toggle {\n\t\tmargin-right: 0;\n\t}\n\n\t.components-toggle-control\n\t.components-base-control__field\n\t.components-toggle-control__label {\n\t\tpadding: 8px 0 10px;\n\t}\n\n\t.components-base-control.components-toggle-control {\n\t\tborder-bottom: 1px solid var(--ang-border);\n\t}\n\n\t.block-categories-tabs .components-button {\n\t\tborder-radius: 0;\n\t\tpadding: 10px 0;\n\t\tfont-size: 16px;\n\t\tcolor: #060606;\n\t\tjustify-content: space-between;\n\t}\n\n\t.block-categories-tabs .components-button > span {\n\t\tcolor: rgba(0, 0, 0, 0.44);\n\t\tfont-size: 14.22px;\n\t\tfont-weight: normal;\n\t}\n\n\t.block-categories-tabs .components-button.active-tab {\n\t\tbox-shadow: none;\n\t\tfont-weight: bold;\n\t\tcolor: var(--ang-primary) !important;\n\t}\n\n\t.block-categories-tabs\n\t.components-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link):hover,\n\t.components-button:focus:not(:disabled) {\n\t\tbackground-color: transparent;\n\t\toutline: none;\n\t\tbox-shadow: none;\n\t}\n\n\t.block-categories-tabs .components-button:not([aria-disabled=true]):active {\n\t\tcolor: var(--ang-primary) !important;\n\t}\n\n\t.block-categories-tabs label,\n\t.components-toggle-control\n\t.components-base-control__field\n\t.components-toggle-control__label {\n\t\tfont-size: 16px;\n\t\tcolor: #060606;\n\t}\n\n\t.block-categories-tabs {\n\t\tpadding-right: 10px;\n\t}\n']);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var __WEBPACK_IMPORTED_MODULE_0_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_1__AnalogContext__=__webpack_require__(2),__=wp.i18n.__,_wp$components=wp.components,TextControl=_wp$components.TextControl,TabPanel=_wp$components.TabPanel,ToggleControl=_wp$components.ToggleControl,blockIdentifier=(_wp$components.Button,AGWP.isContainer?"all-patterns":"all-blocks"),defaultTabs=["favorites",blockIdentifier],SidebarWrapper=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.div(_templateObject()),Sidebar=function(_ref){var context=(_ref.state,React.useContext(__WEBPACK_IMPORTED_MODULE_1__AnalogContext__.a)),categories=_toConsumableArray(new Set(context.state.blockArchive.map(function(block){return block.tags[0]}))),filteredBlocks=context.state.blockArchive,favoriteBlocks=filteredBlocks.filter(function(t){return t.id in context.state.blockFavorites}),onSelect=function(tab){context.dispatch({blocksTab:tab});var selectFilteredBlocks=filteredBlocks;"favorites"===tab&&(selectFilteredBlocks=favoriteBlocks),"favorites"!==tab&&tab!==blockIdentifier&&(selectFilteredBlocks=context.state.blockArchive.filter(function(block){return block.tags.indexOf(tab)>-1}));var blocksSearchInput=context.state.blocksSearchInput;blocksSearchInput&&(selectFilteredBlocks=context.state.itemFilteredWithSearchTerm(selectFilteredBlocks,blocksSearchInput)),context.dispatch({blocks:selectFilteredBlocks})},getItemCount=function(tab){var blocks=context.state.blockArchive,blocksSearchInput=context.state.blocksSearchInput,foundItems=[];return tab===blockIdentifier&&(foundItems=context.state.blockArchive),"favorites"===tab&&(foundItems=favoriteBlocks),tab!==blockIdentifier&&"favorites"!==tab&&(foundItems=blocks.filter(function(block){return block.tags.indexOf(tab)>-1})),"valid"!==AGWP.license.status&&context.state.showFree&&(foundItems=foundItems.filter(function(block){return!block.is_pro})),blocksSearchInput&&(foundItems=context.state.itemFilteredWithSearchTerm(foundItems,blocksSearchInput)),!!foundItems&&foundItems.length},categoriesData=function(){return defaultTabs.concat(categories.sort())},titleGenerator=function(title){var count=getItemCount(title),countTemplate=count>0?count:0;return["".concat(title.replace(/-/g," ")," "),React.createElement("span",{key:title},countTemplate)]},tabGenerator=function(tabsArray){return tabsArray.filter(function(tab){return getItemCount(tab)>0}).map(function(item){return{name:item,title:titleGenerator(item),className:"tab-".concat(item)}})},toggleProBlocks=function(){context.dispatch({showFree:!context.state.showFree}),window.localStorage.setItem("analog::show-free",!context.state.showFree)};return React.createElement(SidebarWrapper,{className:"sidebar"},React.createElement(TextControl,{placeholder:AGWP.isContainer?__("Search Patterns","ang"):__("Search Blocks","ang"),value:context.state.blocksSearchInput,onChange:function(value){context.handleSearch(value,"patterns"),context.dispatch({blocksSearchInput:value})}}),"valid"!==AGWP.license.status&&React.createElement(ToggleControl,{label:AGWP.isContainer?__("Show Pro Patterns","ang"):__("Show Pro Blocks","ang"),checked:!context.state.showFree,onChange:toggleProBlocks}),tabGenerator(categoriesData()).length>=1&&React.createElement(TabPanel,{className:"block-categories-tabs",activeClass:"active-tab",initialTabName:function(defaultTab){var initialTab=defaultTab||context.state.blocksTab;if("undefined"!=typeof elementor&&elementor&&elementor.config){var type=elementor.config.document.type,_categories=categoriesData();if(context.state.showFree&&"valid"!==AGWP.license.status)return initialTab;switch(type){case"header":initialTab=_categories.includes("Headers")?"Headers":defaultTab;break;case"footer":initialTab=_categories.includes("Footers")?"Footers":defaultTab;break;case"single-page":case"single-post":case"page":initialTab=_categories.includes("Post Templates")?"Post Templates":defaultTab}}return initialTab}(context.state.blocksTab),onSelect:onSelect,tabs:tabGenerator(categoriesData())},function(tab){return null}))};__webpack_exports__.a=Sidebar},function(module,__webpack_exports__,__webpack_require__){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}var gen=fn.apply(self,args);_next(void 0)})}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _possibleConstructorReturn(self,call){return!call||"object"!==_typeof(call)&&"function"!=typeof call?_assertThisInitialized(self):call}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _templateObject(){var data=_taggedTemplateLiteral(["\n\t.templates-list {\n\t\t&.hide {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\tli {\n\t\t\tbackground: #fff;\n\t\t\tposition: relative;\n\t\t\tborder-radius: 4px;\n\t\t}\n\n\t\t.new {\n\t\t\tposition: absolute;\n\t\t\ttop: -8px;\n\t\t\tright: -8px;\n\t\t\tbackground: var(--ang-primary);\n\t\t\tcolor: #fff;\n\t\t\tz-index: 110;\n\t\t\tfont-weight: bold;\n\t\t\tpadding: 8px 10px;\n\t\t\tline-height: 1;\n\t\t\tborder-radius: 4px;\n\t\t\ttext-transform: uppercase;\n\t\t\tfont-size: 14.22px;\n\t\t\tletter-spacing: .5px;\n\t\t}\n\n\t\t.new {\n\t\t\tbackground: ",";\n\t\t}\n\n\t\tp {\n\t\t\tcolor: #939393;\n\t\t\tfont-size: 10px;\n\t\t\tmargin: 0;\n\t\t\tfont-weight: 500;\n\t\t}\n\n\t\t.content {\n\t\t\tsvg {\n\t\t\t\tfill: #d0d0d0;\n\t\t\t\ttransition: all 100ms ease-in;\n\t\t\t}\n\n\t\t\tbutton:hover,\n\t\t\tbutton.is-active {\n\t\t\t\tsvg {\n\t\t\t\t\tfill: #FFB443;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\th3 {\n\t\t\tfont-size: inherit;\n\t\t\ttext-transform: capitalize;\n\t\t\tmargin: 0;\n\t\t\tfont-weight: bold;\n\t\t}\n\n\t\timg {\n\t\t\twidth: 100%;\n\t\t\theight: auto;\n\t\t\tborder-top-left-radius: 4px;\n\t\t\tborder-top-right-radius: 4px;\n\t\t\tvertical-align: middle;\n\t\t}\n\n\t\tfigure {\n\t\t\tmargin: 0;\n\t\t\tposition: relative;\n\t\t\tmin-height: 100px;\n\n\t\t\t&:hover {\n\t\t\t\t.actions {\n\t\t\t\t\topacity: 1;\n\t\t\t\t\tbutton {\n\t\t\t\t\t\ttransform: none;\n\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t.favorite {\n\t\t\t\t\topacity: 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.actions button {\n\t\t\topacity: 0;\n\n\t\t\t&:nth-child(1) {\n\t\t\t\ttransform: translateX(-20px);\n\t\t\t}\n\t\t\t&:nth-child(2) {\n\t\t\t\ttransform: translateX(20px);\n\t\t\t}\n\n\t\t\t+ button, + .ang-promo {\n\t\t\t\tmargin-top: 10px;\n\t\t\t\ttext-decoration: none;\n\t\t\t}\n\t\t}\n\n\t\t.favorite {\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tz-index: 200;\n\t\t\tdisplay: inline-flex;\n\t\t\tjustify-content: center;\n\t\t\talign-items: center;\n\t\t\twidth: 25px;\n\t\t\theight: 25px;\n\n\t\t\t&:not(.is-active) {\n\t\t\t\topacity: 0;\n\t\t\t}\n\n\t\t\t&:before {\n\t\t\t\tcontent: '';\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\t\t\t\tborder-style: solid;\n\t\t\t\tborder-width: 42px 42px 0 0;\n\t\t\t\tborder-color: var(--ang-dark-bg) transparent transparent transparent;\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\tz-index: 190;\n\t\t\t}\n\n\t\t\tsvg {\n\t\t\t\tfill: #fff;\n\t\t\t\tposition: relative;\n\t\t\t\tz-index: 195;\n\t\t\t}\n\t\t\t&.is-active svg {\n\t\t\t\tfill: #FFB443;\n\t\t\t}\n\t\t}\n\t}\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var __WEBPACK_IMPORTED_MODULE_0_classnames__=__webpack_require__(5),__WEBPACK_IMPORTED_MODULE_0_classnames___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__),__WEBPACK_IMPORTED_MODULE_1_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_2__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_3__api__=__webpack_require__(4),__WEBPACK_IMPORTED_MODULE_4__collection_Collection__=__webpack_require__(74),__WEBPACK_IMPORTED_MODULE_5__contexts_ThemeContext__=__webpack_require__(12),__WEBPACK_IMPORTED_MODULE_6__helpers_Empty__=__webpack_require__(27),__WEBPACK_IMPORTED_MODULE_7__Modal__=__webpack_require__(85),__WEBPACK_IMPORTED_MODULE_8__popups_ImportTemplate__=__webpack_require__(86),__WEBPACK_IMPORTED_MODULE_9__Template__=__webpack_require__(35),__WEBPACK_IMPORTED_MODULE_10__ProModal__=__webpack_require__(34),__=wp.i18n.__,TemplatesContainer=__WEBPACK_IMPORTED_MODULE_1_styled_components__.a.div(_templateObject(),__WEBPACK_IMPORTED_MODULE_5__contexts_ThemeContext__.a.accent),initialState={template:null,pageName:null,showingModal:!1,importing:!1,importedPage:!1,importingElementor:!1,kit:!1},Templates=function(_React$Component){function Templates(){var _this;return _classCallCheck(this,Templates),_this=_possibleConstructorReturn(this,_getPrototypeOf(Templates).apply(this,arguments)),_defineProperty(_assertThisInitialized(_this),"closeOnEsc",function(event){27===event.keyCode&&_this.resetState()}),_defineProperty(_assertThisInitialized(_this),"setModalContent",function(template){window.scrollTo(0,0),_this.context.dispatch({isOpen:!_this.context.state.isOpen}),_this.setState({template:template})}),_defineProperty(_assertThisInitialized(_this),"makeFavorite",function(id){var favorites=_this.context.state.favorites;if(_this.context.markFavorite(id,!(id in favorites)),id in favorites?delete favorites[id]:favorites[id]=!(id in favorites),_this.context.dispatch({favorites:favorites}),_this.context.state.showing_favorites){var filteredTemplates=_this.context.state.templates.filter(function(t){return t.id in favorites});_this.context.dispatch({templates:filteredTemplates})}}),_defineProperty(_assertThisInitialized(_this),"handleImport",function(){var _ref=_asyncToGenerator(regeneratorRuntime.mark(function _callee(add){var withPage,kit,version,_args=arguments;return regeneratorRuntime.wrap(function(_context){for(;;)switch(_context.prev=_context.next){case 0:if(withPage=_args.length>1&&void 0!==_args[1]&&_args[1],_this.setState({importing:!0}),kit=_this.getStyleKitInfo(),!((version=_this.state.template.version)&&parseFloat(AGWP.version)<parseFloat(version))){_context.next=8;break}return _this.resetState(),add(__("This template requires an updated version, please update your plugin to latest version.","ang"),"error","ang","import-error",!1),_context.abrupt("return");case 8:return _context.next=10,Object(__WEBPACK_IMPORTED_MODULE_3__api__.e)(_this.state.template,withPage,kit).then(function(response){_this.setState({importedPage:response.page})}).catch(function(error){_this.resetState(),error.data&&error.data.errors?add(error.data.errors[Object.keys(error.data.errors)[0]],"error","import-error",!1):add(error.message,"error","import-error",!1)});case 10:case"end":return _context.stop()}},_callee)}));return function(_x){return _ref.apply(this,arguments)}}()),_defineProperty(_assertThisInitialized(_this),"canImportTemplate",function(template){return template||(template=_this.state.template),!template.is_pro||!(!template.is_pro||"valid"!==AGWP.license.status)}),_defineProperty(_assertThisInitialized(_this),"importLayout",function(template){template?_this.setState({template:template}):template=_this.state.template,_this.setState({showingModal:!0})}),_this.state=initialState,_this.handler=_this.handler.bind(_assertThisInitialized(_this)),_this.handleImport=_this.handleImport.bind(_assertThisInitialized(_this)),_this.getStyleKitInfo=_this.getStyleKitInfo.bind(_assertThisInitialized(_this)),_this}return _inherits(Templates,_React$Component),_createClass(Templates,[{key:"resetState",value:function(){this.context.dispatch({isOpen:!1}),this.setState(initialState)}},{key:"handler",value:function(value){this.setState(value)}},{key:"componentDidMount",value:function(){AGWP.isGlobalSkEnabled&&this.setState({kit:AGWP.globalKit[0].value}),window.addEventListener("keyup",this.closeOnEsc)}},{key:"componentWillUnmount",value:function(){this.resetState(),window.removeEventListener("keyup",this.closeOnEsc)}},{key:"getStyleKitInfo",value:function(){var _this2=this,isKitInstalled=this.context.state.installedKits.filter(function(k){return _this2.state.kit===k}),method=isKitInstalled.length>0?"insert":"import",data="insert"===method?this.state.kit:this.context.state.styleKits.find(function(k){return k.title===_this2.state.kit});return void 0===data&&(data=!1),{method:method,data:data}}},{key:"render",value:function(){var _this3=this;return React.createElement(TemplatesContainer,{className:__WEBPACK_IMPORTED_MODULE_0_classnames___default()({hide:this.state.template&&this.state.showingModal&&!this.canImportTemplate(),"preview-active":this.context.state.isOpen})},this.context.state.isOpen&&React.createElement(__WEBPACK_IMPORTED_MODULE_7__Modal__.a,{template:this.state.template,onRequestClose:function(){return _this3.context.dispatch({isOpen:!1})},onRequestImport:function(){return _this3.importLayout()}}),null!==this.state.template&&this.canImportTemplate()&&this.state.showingModal&&React.createElement(__WEBPACK_IMPORTED_MODULE_8__popups_ImportTemplate__.a,{onRequestClose:function(){return _this3.resetState()},state:this.state,handleImport:this.handleImport,handler:this.handler,getStyleKitInfo:this.getStyleKitInfo}),"valid"!==AGWP.license.status&&React.createElement(__WEBPACK_IMPORTED_MODULE_10__ProModal__.a,null),!this.context.state.isOpen&&this.context.state.templates.length<1&&React.createElement(__WEBPACK_IMPORTED_MODULE_6__helpers_Empty__.a,null),this.context.state.group?React.createElement(__WEBPACK_IMPORTED_MODULE_4__collection_Collection__.a,{setModalContent:this.setModalContent,importLayout:this.importLayout,makeFavorite:this.makeFavorite}):React.createElement("ul",{className:__WEBPACK_IMPORTED_MODULE_0_classnames___default()("templates-list",{hide:this.state.template&&this.state.showingModal&&!this.canImportTemplate()})},!this.context.state.isOpen&&this.context.state.count>=1&&this.context.state.templates.map(function(template){if("valid"!==AGWP.license.status){var isPro=!1===_this3.context.state.showFree&&!0===_this3.context.state.showPro&&!0===Boolean(template.is_pro),isFree=!0===_this3.context.state.showFree&&!1===_this3.context.state.showPro&&!1===Boolean(template.is_pro),isAll=!0===_this3.context.state.showFree&&!0===_this3.context.state.showPro;if(!(isPro||isFree||isAll))return}return React.createElement(__WEBPACK_IMPORTED_MODULE_9__Template__.a,{key:"".concat(template.id,"-").concat(template.site_id),template:template,favorites:_this3.context.state.favorites,setModalContent:_this3.setModalContent,importLayout:_this3.importLayout,makeFavorite:_this3.makeFavorite})})))}}]),Templates}(React.Component);Templates.contextType=__WEBPACK_IMPORTED_MODULE_2__AnalogContext__.a,__webpack_exports__.a=Templates},function(module,__webpack_exports__,__webpack_require__){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _possibleConstructorReturn(self,call){return!call||"object"!==_typeof(call)&&"function"!=typeof call?_assertThisInitialized(self):call}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _templateObject(){var data=_taggedTemplateLiteral(["\n\tli {\n\t\tbackground: #fff;\n\t\tposition: relative;\n\t\tborder-radius: 4px;\n\t\tposition: relative;\n\t}\n\tfigure {\n\t\tmargin: 0;\n\t\tposition: relative;\n\t\tmin-height: 100px;\n\t\t&:hover .actions {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\timg {\n\t\twidth: 100%;\n\t\theight: auto;\n\t\tborder-top-left-radius: 4px;\n\t\tborder-top-right-radius: 4px;\n\t\tvertical-align: middle;\n\t}\n\n\t.actions {\n\t\tbutton.is-large {\n\t\t\tfont-size: 24px;\n\t\t\theight: 48px;\n\t\t}\n\t}\n"]);return _templateObject=function(){return data},data}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}__webpack_require__.d(__webpack_exports__,"a",function(){return Collection});var __WEBPACK_IMPORTED_MODULE_0_styled_components__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_1__AnalogContext__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_2__Template__=__webpack_require__(35),__=wp.i18n.__,_wp$components=wp.components,Button=_wp$components.Button,Card=_wp$components.Card,CardBody=_wp$components.CardBody,CardFooter=_wp$components.CardFooter,List=__WEBPACK_IMPORTED_MODULE_0_styled_components__.a.ul(_templateObject()),Collection=function(_React$Component){function Collection(){var _this;return _classCallCheck(this,Collection),_this=_possibleConstructorReturn(this,_getPrototypeOf(Collection).apply(this,arguments)),_this.getCollectionCount=_this.getCollectionCount.bind(_assertThisInitialized(_this)),_this.getGroupedCollection=_this.getGroupedCollection.bind(_assertThisInitialized(_this)),_this.getActiveKit=_this.getActiveKit.bind(_assertThisInitialized(_this)),_this}return _inherits(Collection,_React$Component),_createClass(Collection,[{key:"getGroupedCollection",value:function(){if(this.context.state.templates)return this.context.state.templates.reduce(function(accumulator,currentValue){return accumulator[currentValue.site_id]||(accumulator[currentValue.site_id]=[]),accumulator[currentValue.site_id].push(currentValue),accumulator},{})}},{key:"getCollectionCount",value:function(id){var collection=this.getGroupedCollection(),count=!1;if(collection[id]){var kit=collection[id];count=Object.keys(kit).length}return count}},{key:"getActiveKit",value:function(){var groupedCollection=this.getGroupedCollection(),activeKit=this.context.state.activeKit;return!!(activeKit&&activeKit.site_id in groupedCollection)&&groupedCollection[activeKit.site_id]}},{key:"render",value:function(){var _this2=this;return React.createElement("div",{className:"collection"},!this.context.state.activeKit&&React.createElement(List,{className:"templates-collection"},this.context.state.kits&&this.context.state.kits.map(function(kit){if(_this2.getCollectionCount(kit.site_id))return React.createElement("li",{key:kit.site_id},React.createElement(Card,null,React.createElement(CardBody,null,React.createElement("figure",null,React.createElement("img",{src:kit.thumbnail||AGWP.pluginURL+"assets/img/placeholder.svg",loading:"lazy",alt:kit.title}),React.createElement("div",{className:"actions"},React.createElement(Button,{isSecondary:!0,className:"black-transparent",onClick:function(){_this2.context.dispatch({activeKit:kit})}},__("View Templates","ang"))))),React.createElement(CardFooter,null,React.createElement("div",{className:"content"},React.createElement("h3",null,kit.title),React.createElement("span",null,_this2.getCollectionCount(kit.site_id))))))})),this.getActiveKit()&&React.createElement("ul",{className:"templates-list"},this.getActiveKit().map(function(template){if("valid"!==AGWP.license.status){var isPro=!1===_this2.context.state.showFree&&!0===_this2.context.state.showPro&&!0===Boolean(template.is_pro),isFree=!0===_this2.context.state.showFree&&!1===_this2.context.state.showPro&&!1===Boolean(template.is_pro),isAll=!0===_this2.context.state.showFree&&!0===_this2.context.state.showPro;if(!(isPro||isFree||isAll))return}return React.createElement(__WEBPACK_IMPORTED_MODULE_2__Template__.a,{key:template.id,template:template,favorites:_this2.context.state.favorites,setModalContent:_this2.props.setModalContent,importLayout:_this2.props.importLayout,makeFavorite:_this2.props.makeFavorite})})))}}]),Collection}(React.Component);Collection.contextType=__WEBPACK_IMPORTED_MODULE_1__AnalogContext__.a},function(module,__webpack_exports__,__webpack_require__){"use strict";function _extends(){return _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_extends.apply(this,arguments)}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit(arr,i){if(Symbol.iterator in Object(arr)||"[object Arguments]"===Object.prototype.toString.call(arr)){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=_objectWithoutPropertiesLoose(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++)key=sourceSymbolKeys[i],excluded.indexOf(key)>=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],excluded.indexOf(key)>=0||(target[key]=source[key]);return target}var __WEBPACK_IMPORTED_MODULE_0_react_waypoint__=__webpack_require__(76),Image=function(_ref){var template=_ref.template,attributes=_objectWithoutProperties(_ref,["template"]),thumbnail=template.thumbnail,title=template.title,_React$useState=React.useState(AGWP.pluginURL+"assets/img/placeholder.svg"),_React$useState2=_slicedToArray(_React$useState,2),image=_React$useState2[0],setImage=_React$useState2[1];return React.createElement(__WEBPACK_IMPORTED_MODULE_0_react_waypoint__.a,{onEnter:function(){setImage(thumbnail)}},React.createElement("img",_extends({src:image,loading:"lazy",width:"280",height:"390",alt:title},attributes)))};__webpack_exports__.a=Image},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(process,global){function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _possibleConstructorReturn(self,call){return!call||"object"!=typeof call&&"function"!=typeof call?_assertThisInitialized(self):call}function parseOffsetAsPercentage(str){if("%"===str.slice(-1))return parseFloat(str.slice(0,-1))/100}function parseOffsetAsPixels(str){return!isNaN(parseFloat(str))&&isFinite(str)?parseFloat(str):"px"===str.slice(-2)?parseFloat(str.slice(0,-2)):void 0}function computeOffsetPixels(offset,contextHeight){var pixelOffset=parseOffsetAsPixels(offset);if("number"==typeof pixelOffset)return pixelOffset;var percentOffset=parseOffsetAsPercentage(offset);return"number"==typeof percentOffset?percentOffset*contextHeight:void 0}function debugLog(){if("production"!==process.env.NODE_ENV){var _console;(_console=console).log.apply(_console,arguments)}}function isDOMElement(Component){return"string"==typeof Component.type}function ensureRefIsProvidedByChild(children,ref){if(children&&!isDOMElement(children)&&!ref)throw new Error(errorMessage)}function getCurrentPosition(bounds){return bounds.viewportBottom-bounds.viewportTop==0?INVISIBLE:bounds.viewportTop<=bounds.waypointTop&&bounds.waypointTop<=bounds.viewportBottom?INSIDE:bounds.viewportTop<=bounds.waypointBottom&&bounds.waypointBottom<=bounds.viewportBottom?INSIDE:bounds.waypointTop<=bounds.viewportTop&&bounds.viewportBottom<=bounds.waypointBottom?INSIDE:bounds.viewportBottom<bounds.waypointTop?BELOW:bounds.waypointTop<bounds.viewportTop?ABOVE:INVISIBLE}function onNextTick(cb){timeoutQueue.push(cb),timeout||(timeout=setTimeout(function(){timeout=null;for(var item;item=timeoutQueue.shift();)item()},0));var isSubscribed=!0;return function(){if(isSubscribed){isSubscribed=!1;var index=timeoutQueue.indexOf(cb);-1!==index&&(timeoutQueue.splice(index,1),!timeoutQueue.length&&timeout&&(clearTimeout(timeout),timeout=null))}}}function resolveScrollableAncestorProp(scrollableAncestor){return"window"===scrollableAncestor?global.window:scrollableAncestor}__webpack_require__.d(__webpack_exports__,"a",function(){return Waypoint});var timeout,__WEBPACK_IMPORTED_MODULE_0_consolidated_events__=__webpack_require__(78),__WEBPACK_IMPORTED_MODULE_1_prop_types__=__webpack_require__(79),__WEBPACK_IMPORTED_MODULE_1_prop_types___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__),__WEBPACK_IMPORTED_MODULE_2_react__=__webpack_require__(3),__WEBPACK_IMPORTED_MODULE_2_react___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__),__WEBPACK_IMPORTED_MODULE_3_react_is__=__webpack_require__(28),ABOVE=(__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react_is__),"above"),INSIDE="inside",BELOW="below",INVISIBLE="invisible",errorMessage="<Waypoint> needs a DOM element to compute boundaries. The child you passed is neither a DOM element (e.g. <div>) nor does it use the innerRef prop.\n\nSee https://goo.gl/LrBNgw for more info.",timeoutQueue=[],defaultProps={debug:!1,scrollableAncestor:void 0,children:void 0,topOffset:"0px",bottomOffset:"0px",horizontal:!1,onEnter:function(){},onLeave:function(){},onPositionChange:function(){},fireOnRapidScroll:!0},Waypoint=function(_React$PureComponent){function Waypoint(props){var _this;return _classCallCheck(this,Waypoint),_this=_possibleConstructorReturn(this,_getPrototypeOf(Waypoint).call(this,props)),_this.refElement=function(e){_this._ref=e},_this}return _inherits(Waypoint,_React$PureComponent),_createClass(Waypoint,[{key:"componentDidMount",value:function(){var _this2=this;Waypoint.getWindow()&&(this.cancelOnNextTick=onNextTick(function(){_this2.cancelOnNextTick=null;var _this2$props=_this2.props,children=_this2$props.children,debug=_this2$props.debug;ensureRefIsProvidedByChild(children,_this2._ref),_this2._handleScroll=_this2._handleScroll.bind(_this2),_this2.scrollableAncestor=_this2._findScrollableAncestor(),"production"!==process.env.NODE_ENV&&debug&&debugLog("scrollableAncestor",_this2.scrollableAncestor),_this2.scrollEventListenerUnsubscribe=Object(__WEBPACK_IMPORTED_MODULE_0_consolidated_events__.a)(_this2.scrollableAncestor,"scroll",_this2._handleScroll,{passive:!0}),_this2.resizeEventListenerUnsubscribe=Object(__WEBPACK_IMPORTED_MODULE_0_consolidated_events__.a)(window,"resize",_this2._handleScroll,{passive:!0}),_this2._handleScroll(null)}))}},{key:"componentDidUpdate",value:function(){var _this3=this;Waypoint.getWindow()&&this.scrollableAncestor&&(this.cancelOnNextTick||(this.cancelOnNextTick=onNextTick(function(){_this3.cancelOnNextTick=null,_this3._handleScroll(null)})))}},{key:"componentWillUnmount",value:function(){Waypoint.getWindow()&&(this.scrollEventListenerUnsubscribe&&this.scrollEventListenerUnsubscribe(),this.resizeEventListenerUnsubscribe&&this.resizeEventListenerUnsubscribe(),this.cancelOnNextTick&&this.cancelOnNextTick())}},{key:"_findScrollableAncestor",value:function(){var _this$props=this.props,horizontal=_this$props.horizontal,scrollableAncestor=_this$props.scrollableAncestor;if(scrollableAncestor)return resolveScrollableAncestorProp(scrollableAncestor);for(var node=this._ref;node.parentNode;){if((node=node.parentNode)===document.body)return window;var style=window.getComputedStyle(node),overflowDirec=horizontal?style.getPropertyValue("overflow-x"):style.getPropertyValue("overflow-y"),overflow=overflowDirec||style.getPropertyValue("overflow");if("auto"===overflow||"scroll"===overflow)return node}return window}},{key:"_handleScroll",value:function(event){if(this._ref){var bounds=this._getBounds(),currentPosition=getCurrentPosition(bounds),previousPosition=this._previousPosition,_this$props2=this.props,debug=_this$props2.debug,onPositionChange=_this$props2.onPositionChange,onEnter=_this$props2.onEnter,onLeave=_this$props2.onLeave,fireOnRapidScroll=_this$props2.fireOnRapidScroll;if("production"!==process.env.NODE_ENV&&debug&&(debugLog("currentPosition",currentPosition),debugLog("previousPosition",previousPosition)),this._previousPosition=currentPosition,previousPosition!==currentPosition){var callbackArg={currentPosition:currentPosition,previousPosition:previousPosition,event:event,waypointTop:bounds.waypointTop,waypointBottom:bounds.waypointBottom,viewportTop:bounds.viewportTop,viewportBottom:bounds.viewportBottom};onPositionChange.call(this,callbackArg),currentPosition===INSIDE?onEnter.call(this,callbackArg):previousPosition===INSIDE&&onLeave.call(this,callbackArg);var isRapidScrollDown=previousPosition===BELOW&&currentPosition===ABOVE,isRapidScrollUp=previousPosition===ABOVE&&currentPosition===BELOW;fireOnRapidScroll&&(isRapidScrollDown||isRapidScrollUp)&&(onEnter.call(this,{currentPosition:INSIDE,previousPosition:previousPosition,event:event,waypointTop:bounds.waypointTop,waypointBottom:bounds.waypointBottom,viewportTop:bounds.viewportTop,viewportBottom:bounds.viewportBottom}),onLeave.call(this,{currentPosition:currentPosition,previousPosition:INSIDE,event:event,waypointTop:bounds.waypointTop,waypointBottom:bounds.waypointBottom,viewportTop:bounds.viewportTop,viewportBottom:bounds.viewportBottom}))}}}},{key:"_getBounds",value:function(){var contextHeight,contextScrollTop,_this$props3=this.props,horizontal=_this$props3.horizontal,debug=_this$props3.debug,_this$_ref$getBoundin=this._ref.getBoundingClientRect(),left=_this$_ref$getBoundin.left,top=_this$_ref$getBoundin.top,right=_this$_ref$getBoundin.right,bottom=_this$_ref$getBoundin.bottom,waypointTop=horizontal?left:top,waypointBottom=horizontal?right:bottom;this.scrollableAncestor===window?(contextHeight=horizontal?window.innerWidth:window.innerHeight,contextScrollTop=0):(contextHeight=horizontal?this.scrollableAncestor.offsetWidth:this.scrollableAncestor.offsetHeight,contextScrollTop=horizontal?this.scrollableAncestor.getBoundingClientRect().left:this.scrollableAncestor.getBoundingClientRect().top),"production"!==process.env.NODE_ENV&&debug&&(debugLog("waypoint top",waypointTop),debugLog("waypoint bottom",waypointBottom),debugLog("scrollableAncestor height",contextHeight),debugLog("scrollableAncestor scrollTop",contextScrollTop));var _this$props4=this.props,bottomOffset=_this$props4.bottomOffset;return{waypointTop:waypointTop,waypointBottom:waypointBottom,viewportTop:contextScrollTop+computeOffsetPixels(_this$props4.topOffset,contextHeight),viewportBottom:contextScrollTop+contextHeight-computeOffsetPixels(bottomOffset,contextHeight)}}},{key:"render",value:function(){var _this4=this,children=this.props.children;if(!children)return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("span",{ref:this.refElement,style:{fontSize:0}});if(isDOMElement(children)||Object(__WEBPACK_IMPORTED_MODULE_3_react_is__.isForwardRef)(children)){var ref=function(node){_this4.refElement(node),children.ref&&("function"==typeof children.ref?children.ref(node):children.ref.current=node)};return __WEBPACK_IMPORTED_MODULE_2_react___default.a.cloneElement(children,{ref:ref})}return __WEBPACK_IMPORTED_MODULE_2_react___default.a.cloneElement(children,{innerRef:this.refElement})}}]),Waypoint}(__WEBPACK_IMPORTED_MODULE_2_react___default.a.PureComponent);"production"!==process.env.NODE_ENV&&(Waypoint.propTypes={children:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.element,debug:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,onEnter:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,onLeave:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,onPositionChange:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,fireOnRapidScroll:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,scrollableAncestor:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.any,horizontal:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,topOffset:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number]),bottomOffset:__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number])}),Waypoint.above=ABOVE,Waypoint.below=BELOW,Waypoint.inside=INSIDE,Waypoint.invisible=INVISIBLE,Waypoint.getWindow=function(){if("undefined"!=typeof window)return window},Waypoint.defaultProps=defaultProps,Waypoint.displayName="Waypoint"}).call(__webpack_exports__,__webpack_require__(0),__webpack_require__(77))},function(module,exports){var g;g=function(){return this}();try{g=g||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(g=window)}module.exports=g},function(module,__webpack_exports__,__webpack_require__){"use strict";function testPassiveEventListeners(){if(!CAN_USE_DOM)return!1;if(!window.addEventListener||!window.removeEventListener||!Object.defineProperty)return!1;var supportsPassiveOption=!1;try{var opts=Object.defineProperty({},"passive",{get:function(){function get(){supportsPassiveOption=!0}return get}()}),noop=function(){};window.addEventListener("testPassiveEventSupport",noop,opts),window.removeEventListener("testPassiveEventSupport",noop,opts)}catch(e){}return supportsPassiveOption}function canUsePassiveEventListeners(){return void 0===memoized&&(memoized=testPassiveEventListeners()),memoized}function normalizeEventOptions(eventOptions){if(eventOptions)return canUsePassiveEventListeners()?eventOptions:!!eventOptions.capture}function eventOptionsKey(normalizedEventOptions){return normalizedEventOptions?!0===normalizedEventOptions?100:(normalizedEventOptions.capture<<0)+(normalizedEventOptions.passive<<1)+(normalizedEventOptions.once<<2):0}function ensureCanMutateNextEventHandlers(eventHandlers){eventHandlers.handlers===eventHandlers.nextHandlers&&(eventHandlers.nextHandlers=eventHandlers.handlers.slice())}function TargetEventHandlers(target){this.target=target,this.events={}}function addEventListener(target,eventName,listener,options){target[EVENT_HANDLERS_KEY]||(target[EVENT_HANDLERS_KEY]=new TargetEventHandlers(target));var normalizedEventOptions=normalizeEventOptions(options);return target[EVENT_HANDLERS_KEY].add(eventName,listener,normalizedEventOptions)}__webpack_require__.d(__webpack_exports__,"a",function(){return addEventListener});var CAN_USE_DOM=!("undefined"==typeof window||!window.document||!window.document.createElement),memoized=void 0;TargetEventHandlers.prototype.getEventHandlers=function(){function getEventHandlers(eventName,options){var key=String(eventName)+" "+String(eventOptionsKey(options));return this.events[key]||(this.events[key]={handlers:[],handleEvent:void 0},this.events[key].nextHandlers=this.events[key].handlers),this.events[key]}return getEventHandlers}(),TargetEventHandlers.prototype.handleEvent=function(){function handleEvent(eventName,options,event){var eventHandlers=this.getEventHandlers(eventName,options);eventHandlers.handlers=eventHandlers.nextHandlers,eventHandlers.handlers.forEach(function(handler){handler&&handler(event)})}return handleEvent}(),TargetEventHandlers.prototype.add=function(){function add(eventName,listener,options){var _this=this,eventHandlers=this.getEventHandlers(eventName,options);ensureCanMutateNextEventHandlers(eventHandlers),0===eventHandlers.nextHandlers.length&&(eventHandlers.handleEvent=this.handleEvent.bind(this,eventName,options),this.target.addEventListener(eventName,eventHandlers.handleEvent,options)),eventHandlers.nextHandlers.push(listener);var isSubscribed=!0;return function(){function unsubscribe(){if(isSubscribed){isSubscribed=!1,ensureCanMutateNextEventHandlers(eventHandlers);var index=eventHandlers.nextHandlers.indexOf(listener);eventHandlers.nextHandlers.splice(index,1),0===eventHandlers.nextHandlers.length&&(_this.target&&_this.target.removeEventListener(eventName,eventHandlers.handleEvent,options),eventHandlers.handleEvent=void 0)}}return unsubscribe}()}return add}();var EVENT_HANDLERS_KEY="__consolidated_events_handlers__"},function(module,exports,__webpack_require__){(function(process){if("production"!==process.env.NODE_ENV){var ReactIs=__webpack_require__(28);module.exports=__webpack_require__(82)(ReactIs.isElement,!0)}else module.exports=__webpack_require__(84)()}).call(exports,__webpack_require__(0))},function(module,exports,__webpack_require__){"use strict";function z(a){if("object"==typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}/** @license React v16.13.1
    2828 * react-is.production.min.js
    2929 *
  • analogwp-templates/trunk/inc/Plugin.php

    r2859992 r2894359  
    180180            'isContainer'             => Utils::is_container(),
    181181            'activePlugins'           => array_values( $plugins ),
     182            'wp_version'              => get_bloginfo( 'version' ),
    182183        );
    183184
  • analogwp-templates/trunk/inc/elementor/class-typography.php

    r2859992 r2894359  
    580580                    'unit' => 'px',
    581581                ),
    582                 'size_units'  => array( 'px', 'em', '%' ),
     582                'size_units'  => array( 'px', 'em', '%', 'rem', 'vw', 'custom' ),
    583583                'selectors'   => array(
    584584                    '{{WRAPPER}} {{CURRENT_ITEM}}.elementor-element' => '--padding-top: {{TOP}}{{UNIT}}; --padding-right: {{RIGHT}}{{UNIT}}; --padding-bottom: {{BOTTOM}}{{UNIT}}; --padding-left: {{LEFT}}{{UNIT}}',
     
    708708                        'unit' => 'em',
    709709                    ),
    710                     'size_units' => array( 'px', 'em', '%' ),
     710                    'size_units' => array( 'px', 'em', '%', 'rem', 'vw', 'custom' ),
    711711                    'selectors'  => array(
    712712                        "{{WRAPPER}} .ang-section-padding-{$key}.elementor-top-section" =>
     
    771771                    'label'      => $label,
    772772                    'type'       => Controls_Manager::DIMENSIONS,
    773                     'size_units' => array( 'px', 'em', '%' ),
     773                    'size_units' => array( 'px', 'em', '%', 'rem', 'vw', 'custom' ),
    774774                    'selectors'  => array(
    775775                        "{{WRAPPER}} .elementor-column-gap-{$key} {$elementor_row} > .elementor-column > .elementor-element-populated"
     
    902902                    'label'      => __( 'Border Radius', 'ang' ),
    903903                    'type'       => Controls_Manager::DIMENSIONS,
    904                     'size_units' => array( 'px', '%' ),
     904                    'size_units' => array( 'px', 'em', '%', 'rem', 'custom' ),
    905905                    'selectors'  => array(
    906906                        "{{WRAPPER}} a.elementor-button.elementor-size-{$size}, {{WRAPPER}} .elementor-button.elementor-size-{$size}" => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     
    961961                    'label'      => __( 'Border Radius', 'ang' ),
    962962                    'type'       => Controls_Manager::DIMENSIONS,
    963                     'size_units' => array( 'px', '%' ),
     963                    'size_units' => array( 'px', 'em', '%', 'rem', 'custom' ),
    964964                    'selectors'  => array(
    965965                        "{{WRAPPER}} a.elementor-button.elementor-size-{$size}:hover, {{WRAPPER}} .elementor-button.elementor-size-{$size}:hover" => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     
    974974                    'label'      => __( 'Padding', 'ang' ),
    975975                    'type'       => Controls_Manager::DIMENSIONS,
    976                     'size_units' => array( 'px', 'em', '%' ),
     976                    'size_units' => array( 'px', 'em', '%', 'rem', 'vw', 'custom' ),
    977977                    'selectors'  => array(
    978978                        "{{WRAPPER}} a.elementor-button.elementor-size-{$size}, {{WRAPPER}} .elementor-button.elementor-size-{$size}" => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
  • analogwp-templates/trunk/languages/ang.pot

    r2865003 r2894359  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Style Kits for Elementor 2.0.1\n"
     5"Project-Id-Version: Style Kits for Elementor 2.0.2\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/analogwp-templates\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2023-02-14T06:57:50+00:00\n"
     12"POT-Creation-Date: 2023-04-05T11:55:10+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.6.0\n"
     
    659659
    660660#: inc/elementor/class-finder-shortcuts.php:53
    661 #: inc/Plugin.php:215
     661#: inc/Plugin.php:216
    662662#: inc/register-settings.php:47
    663663msgid "Settings"
     
    14061406#. translators: %1$s: Link to Style Kits Pro. %2$s: Go Pro text.
    14071407#: inc/elementor/Promotions.php:154
    1408 #: inc/Plugin.php:221
     1408#: inc/Plugin.php:222
    14091409#: inc/register-settings.php:78
    14101410#: assets/js/app.js:11
     
    20942094
    20952095#: assets/js/app.js:27
    2096 #: client/blocks/Sidebar.js:185
     2096#: client/blocks/Sidebar.js:224
    20972097msgid "Search Patterns"
    20982098msgstr ""
    20992099
    21002100#: assets/js/app.js:27
    2101 #: client/blocks/Sidebar.js:185
     2101#: client/blocks/Sidebar.js:224
    21022102msgid "Search Blocks"
    21032103msgstr ""
    21042104
    21052105#: assets/js/app.js:27
    2106 #: client/blocks/Sidebar.js:195
     2106#: client/blocks/Sidebar.js:234
    21072107msgid "Show Pro Patterns"
    21082108msgstr ""
    21092109
    21102110#: assets/js/app.js:27
    2111 #: client/blocks/Sidebar.js:195
     2111#: client/blocks/Sidebar.js:234
    21122112msgid "Show Pro Blocks"
    21132113msgstr ""
  • analogwp-templates/trunk/third-party/vendor/autoload.php

    r2865003 r2894359  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInitc2ed251493a72e92c1c744620e15a488::getLoader();
     25return ComposerAutoloaderInit718c68caf57a0c1d92bd7ef550dffcbf::getLoader();
  • analogwp-templates/trunk/third-party/vendor/composer/autoload_real.php

    r2865003 r2894359  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitc2ed251493a72e92c1c744620e15a488
     5class ComposerAutoloaderInit718c68caf57a0c1d92bd7ef550dffcbf
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInitc2ed251493a72e92c1c744620e15a488', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInit718c68caf57a0c1d92bd7ef550dffcbf', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    27         spl_autoload_unregister(array('ComposerAutoloaderInitc2ed251493a72e92c1c744620e15a488', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInit718c68caf57a0c1d92bd7ef550dffcbf', 'loadClassLoader'));
    2828
    2929        require __DIR__ . '/autoload_static.php';
    30         call_user_func(\Composer\Autoload\ComposerStaticInitc2ed251493a72e92c1c744620e15a488::getInitializer($loader));
     30        call_user_func(\Composer\Autoload\ComposerStaticInit718c68caf57a0c1d92bd7ef550dffcbf::getInitializer($loader));
    3131
    3232        $loader->setClassMapAuthoritative(true);
  • analogwp-templates/trunk/third-party/vendor/composer/autoload_static.php

    r2865003 r2894359  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitc2ed251493a72e92c1c744620e15a488
     7class ComposerStaticInit718c68caf57a0c1d92bd7ef550dffcbf
    88{
    99    public static $classMap = array (
     
    2525    {
    2626        return \Closure::bind(function () use ($loader) {
    27             $loader->classMap = ComposerStaticInitc2ed251493a72e92c1c744620e15a488::$classMap;
     27            $loader->classMap = ComposerStaticInit718c68caf57a0c1d92bd7ef550dffcbf::$classMap;
    2828
    2929        }, null, ClassLoader::class);
Note: See TracChangeset for help on using the changeset viewer.