this.ang=this.ang||{},this.ang.main=function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=24)}([function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function i(t){if(p===clearTimeout)return clearTimeout(t);if((p===r||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(t);try{return p(t)}catch(e){try{return p.call(null,t)}catch(e){return p.call(this,t)}}}function a(){m&&d&&(m=!1,d.length?h=d.concat(h):g=-1,h.length&&s())}function s(){if(!m){var t=o(a);m=!0;for(var e=h.length;e;){for(d=h,h=[];++g1)for(var n=1;n3&&void 0!==arguments[3]?arguments[3]:"&",o=t.join("").replace(at,""),i=e&&n?n+" "+e+" { "+o+" }":o;return ft=r,dt=e,ht=new RegExp("\\"+dt+"\\b","g"),ut(n||!e?"":e,i)}function c(t){return t.replace(qt,"-$1").toLowerCase().replace(Gt,"-ms-")}function l(t,e){return null==e||"boolean"==typeof e||""===e?"":"number"!=typeof e||0===e||t in F.a?String(e).trim():e+"px"}function p(t,e,n){if(Array.isArray(t)){for(var r,s=[],u=0,c=t.length;u1?e-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:J;if(!Object(T.isValidElementType)(e))throw new rt(1,String(e));var r=function(){return t(e,n,f.apply(void 0,arguments))};return r.withConfig=function(r){return d(t,e,$({},n,r))},r.attrs=function(r){return d(t,e,$({},n,{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r}function h(t){for(var e,n=0|t.length,r=0|n,o=0;n>=4;)e=255&t.charCodeAt(o)|(255&t.charCodeAt(++o))<<8|(255&t.charCodeAt(++o))<<16|(255&t.charCodeAt(++o))<<24,e=1540483477*(65535&e)+((1540483477*(e>>>16)&65535)<<16),e^=e>>>24,e=1540483477*(65535&e)+((1540483477*(e>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^e,n-=4,++o;switch(n){case 3:r^=(255&t.charCodeAt(o+2))<<16;case 2:r^=(255&t.charCodeAt(o+1))<<8;case 1:r^=255&t.charCodeAt(o),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)}return r^=r>>>13,((r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16))^r>>>15)>>>0}function m(t){var e="",n=void 0;for(n=t;n>Xt;n=Math.floor(n/Xt))e=Jt(n%Xt)+e;return Jt(n%Xt)+e}function g(t){for(var e in t)if(o(t[e]))return!0;return!1}function v(t,e){for(var n=0;n1?n-1:0),o=1;o1?n-1:0),o=1;o=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},Y=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},Z=function(t){return"object"===(void 0===t?"undefined":H(t))&&t.constructor===Object},X=Object.freeze([]),J=Object.freeze({}),K=void 0!==t&&t.env.SC_ATTR||"data-styled",Q="undefined"!=typeof window&&"HTMLElement"in window,tt="boolean"==typeof SC_DISABLE_SPEEDY&&SC_DISABLE_SPEEDY||"production"!==t.env.NODE_ENV,et={},nt="production"!==t.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document ``\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper (see https://www.styled-components.com/docs/api#css), which ensures the styles are injected correctly.\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n"}:{},rt=function(e){function n(r){W(this,n);for(var o=arguments.length,i=Array(o>1?o-1:0),a=1;a0&&-1!==n.slice(0,e).indexOf(dt)&&n.slice(e-dt.length,e)!==dt?"."+ft:t},gt=function(t,e,n){2===t&&n.length&&n[0].lastIndexOf(dt)>0&&(n[0]=n[0].replace(ht,mt))};ut.use([gt,pt,lt]),st.use([pt,lt]);var vt=function(t){return st("",t)},yt=function(){return n.nc},bt=function(t,e,n){if(n){(t[e]||(t[e]=Object.create(null)))[n]=!0}},Et=function(t,e){t[e]=Object.create(null)},xt=function(t){return function(e,n){return void 0!==t[e]&&t[e][n]}},wt=function(t){var e="";for(var n in t)e+=Object.keys(t[n]).join(" ")+" ";return e.trim()},Ct=function(t){var e=Object.create(null);for(var n in t)e[n]=$({},t[n]);return e},Ot=function(t){if(t.sheet)return t.sheet;for(var e=document.styleSheets.length,n=0;nr;o-=1)t.deleteRule(o)},At=function(t){return"\n/* sc-component-id: "+t+" */\n"},_t=function(t,e){for(var n=0,r=0;r<=e;r+=1)n+=t[r];return n},Rt=function(t,e,n){var r=document.createElement("style");r.setAttribute(K,""),r.setAttribute("data-styled-version","4.1.3");var o=yt();if(o&&r.setAttribute("nonce",o),r.appendChild(document.createTextNode("")),t&&!e)t.appendChild(r);else{if(!e||!t||!e.parentNode)throw new rt(6);e.parentNode.insertBefore(r,n?e:e.nextSibling)}return r},Pt=function(t,e){return function(n){var r=yt();return""}},Nt=function(t,e){return function(){var n,r=(n={},n[K]=wt(e),n["data-styled-version"]="4.1.3",n),o=yt();return o&&(r.nonce=o),j.a.createElement("style",$({},r,{dangerouslySetInnerHTML:{__html:t()}}))}},jt=function(t){return function(){return Object.keys(t)}},Ft=function(t,e){var n=Object.create(null),r=Object.create(null),o=[],i=void 0!==e,a=!1,s=function(t){var e=r[t];return void 0!==e?e:(r[t]=o.length,o.push(0),Et(n,t),r[t])},u=function(r,u,c){for(var l=s(r),p=Ot(t),f=_t(o,l),d=0,h=[],m=u.length,g=0;g0&&(a=!0,e().insertRules(r+"-import",h)),o[l]+=d,bt(n,r,c)},c=function(s){var u=r[s];if(void 0!==u){var c=o[u],l=Ot(t),p=_t(o,u)-1;St(l,p,c),o[u]=0,Et(n,s),i&&a&&e().removeRules(s+"-import")}},l=function(){var e=Ot(t),n=e.cssRules,i="";for(var a in r){i+=At(a);for(var s=r[a],u=_t(o,s),c=o[s],l=u-c;l0&&(i=!0,e().insertRules(t+"-import",c))},u=function(a){var s=r[a];if(void 0!==s){var u=Tt(a);t.replaceChild(u,s),r[a]=u,Et(n,a),o&&i&&e().removeRules(a+"-import")}},c=function(){var t="";for(var e in r)t+=r[e].data;return t};return{clone:function(){throw new rt(5)},css:c,getIds:jt(r),hasNameForId:xt(n),insertMarker:a,insertRules:s,removeRules:u,sealed:!1,styleTag:t,toElement:Nt(c,n),toHTML:Pt(c,n)}},Mt=function t(e,n){var r=void 0===e?Object.create(null):e,o=void 0===n?Object.create(null):n,i=function(t){var e=o[t];return void 0!==e?e:o[t]=[""]},a=function(t,e,n){i(t)[0]+=e.join(" "),bt(r,t,n)},s=function(t){var e=o[t];void 0!==e&&(e[0]="",Et(r,t))},u=function(){var t="";for(var e in o){var n=o[e][0];n&&(t+=At(e)+n)}return t};return{clone:function(){var e=Ct(r),n=Object.create(null);for(var i in o)n[i]=[o[i][0]];return t(e,n)},css:u,getIds:jt(o),hasNameForId:xt(r),insertMarker:i,insertRules:a,removeRules:s,sealed:!1,styleTag:null,toElement:Nt(u,r),toHTML:Pt(u,r)}},It=function(t,e,n,r,o){if(Q&&!n){var i=Rt(t,e,r);return tt?Dt(i,o):Ft(i,o)}return Mt()},Lt=function(t,e,n){for(var r=0,o=n.length;r0&&void 0!==arguments[0]?arguments[0]:Q?document.head:null,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];W(this,t),this.getImportRuleTag=function(){var t=e.importRuleTag;if(void 0!==t)return t;var n=e.tags[0];return e.importRuleTag=It(e.target,n?n.styleTag:null,e.forceServer,!0)},Ht+=1,this.id=Ht,this.forceServer=r,this.target=r?null:n,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return t.prototype.rehydrate=function(){if(!Q||this.forceServer)return this;var t=[],e=[],n=!1,r=document.querySelectorAll("style["+K+'][data-styled-version="4.1.3"]'),o=r.length;if(!o)return this;for(var i=0;i0&&void 0!==arguments[0]&&arguments[0];Wt=new t(void 0,e).rehydrate()},t.prototype.clone=function(){var e=new t(this.target,this.forceServer);return this.clones.push(e),e.tags=this.tags.map(function(t){for(var n=t.getIds(),r=t.clone(),o=0;o25?39:97))},Kt="production"!==t.env.NODE_ENV&&void 0!==r&&r.hot,Qt=function(t){return m(h(t))},te=function(){function t(e,n,r){W(this,t),this.rules=e,this.isStatic=!Kt&&v(e,n),this.componentId=r,Ut.master.hasId(r)||Ut.master.deferredInject(r,[])}return t.prototype.generateAndInjectStyles=function(t,e){var n=this.isStatic,r=this.componentId,o=this.lastClassName;if(Q&&n&&"string"==typeof o&&e.hasNameForId(r,o))return o;var i=p(this.rules,t,e),a=Qt(this.componentId+i.join(""));return e.hasNameForId(r,a)||e.inject(this.componentId,u(i,"."+a,void 0,r),a),this.lastClassName=a,a},t.generateName=function(t){return Qt(t)},t}(),ee=function(t){var e={},n=!1;return function(r){n||(e[r]=!0,Object.keys(e).length>=200&&(console.warn("Over 200 classes were generated for component "+t+". \nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs({\n style: ({ background }) => ({\n background,\n }),\n })`width: 100%;`\n\n "),n=!0,e={}))}},ne=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,r=!!n&&t.theme===n.theme;return t.theme&&!r?t.theme:e||n.theme},re=/[[\].#*$><+~=|^:(),"'`-]+/g,oe=/(^-|-$)/g,ie={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},ae={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},se=(Bt={},Bt[T.ForwardRef]={$$typeof:!0,render:!0},Bt),ue=Object.defineProperty,ce=Object.getOwnPropertyNames,le=Object.getOwnPropertySymbols,pe=void 0===le?function(){return[]}:le,fe=Object.getOwnPropertyDescriptor,de=Object.getPrototypeOf,he=Object.prototype,me=Array.prototype,ge=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}},ve=Object(N.createContext)(),ye=ve.Consumer,be=function(e){function n(t){W(this,n);var r=Y(this,e.call(this,t));return r.getContext=Object(D.a)(r.getContext.bind(r)),r.renderInner=r.renderInner.bind(r),r}return q(n,e),n.prototype.render=function(){return this.props.children?j.a.createElement(ve.Consumer,null,this.renderInner):null},n.prototype.renderInner=function(t){var e=this.getContext(this.props.theme,t);return j.a.createElement(ve.Provider,{value:e},j.a.Children.only(this.props.children))},n.prototype.getTheme=function(e,n){if(o(e)){var r=e(n);if("production"!==t.env.NODE_ENV&&(null===r||Array.isArray(r)||"object"!==(void 0===r?"undefined":H(r))))throw new rt(7);return r}if(null===e||Array.isArray(e)||"object"!==(void 0===e?"undefined":H(e)))throw new rt(8);return $({},n,e)},n.prototype.getContext=function(t,e){return this.getTheme(t,e)},n}(N.Component),Ee=function(){function t(){W(this,t),this.masterSheet=Ut.master,this.instance=this.masterSheet.clone(),this.sealed=!1}return t.prototype.seal=function(){if(!this.sealed){var t=this.masterSheet.clones.indexOf(this.instance);this.masterSheet.clones.splice(t,1),this.sealed=!0}},t.prototype.collectStyles=function(t){if(this.sealed)throw new rt(2);return j.a.createElement(Ce,{sheet:this.instance},t)},t.prototype.getStyleTags=function(){return this.seal(),this.instance.toHTML()},t.prototype.getStyleElement=function(){return this.seal(),this.instance.toReactElements()},t.prototype.interleaveWithNodeStream=function(t){throw new rt(3)},t}(),xe=Object(N.createContext)(),we=xe.Consumer,Ce=function(e){function n(t){W(this,n);var r=Y(this,e.call(this,t));return r.getContext=Object(D.a)(r.getContext),r}return q(n,e),n.prototype.getContext=function(t,e){if(t)return t;if(e)return new Ut(e);throw new rt(4)},n.prototype.render=function(){var e=this.props,n=e.children,r=e.sheet,o=e.target;return j.a.createElement(xe.Provider,{value:this.getContext(r,o)},"production"!==t.env.NODE_ENV?j.a.Children.only(n):n)},n}(N.Component);"production"!==t.env.NODE_ENV&&(Ce.propTypes={sheet:I.a.oneOfType([I.a.instanceOf(Ut),I.a.instanceOf(Ee)]),target:I.a.shape({appendChild:I.a.func.isRequired})});var Oe=new Set,ke=function(t){var e="",n=t.componentDidMount;t.componentDidMount=function(){"function"==typeof n&&n.call(this);var r=this.props.forwardedComponent.target;if(!(t.props&&t.props.suppressClassNameWarning||t.attrs&&t.attrs.suppressClassNameWarning||Oe.has(r))){Oe.add(r);var o=e.replace(/ +/g," ").trim().split(" "),a=V.a.findDOMNode(this),s=o.map(function(t){return"."+t}).join("");!a||1!==a.nodeType||o.every(function(t){return a.classList&&a.classList.contains(t)})||a.querySelector(s)||console.warn("It looks like you've wrapped styled() around your React component ("+i(r)+"), but the className prop is not being passed down to a child. No styles will be rendered unless className is composed within your React component.")}};var r=t.renderInner;t.renderInner=function(){for(var t=arguments.length,n=Array(t),o=0;o ({})) syntax instead for easier and more powerful composition. The attrs key in question is "'+t+'" on component "'+e+'".')}),r.warnNonStyledComponentAttrsObjectKey=ge(function(t,e){return console.warn("It looks like you've used a non styled-component as the value for the \""+t+'" prop in an object-form attrs constructor of "'+e+"\".\nYou should use the new function-form attrs constructor which avoids this issue: attrs(props => ({ yourStuff }))\nTo continue using the deprecated object syntax, you'll need to wrap your component prop in a function to make it available inside the styled component (you'll still get the deprecation warning though.)\nFor example, { "+t+": () => InnerComponent } instead of { "+t+": InnerComponent }")})),"production"!==t.env.NODE_ENV&&Q&&ke(r),r}return q(n,e),n.prototype.render=function(){return j.a.createElement(we,null,this.renderOuter)},n.prototype.renderOuter=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ut.master;return this.styleSheet=t,this.props.forwardedComponent.componentStyle.isStatic?this.renderInner():j.a.createElement(ye,null,this.renderInner)},n.prototype.renderInner=function(e){var n=this.props.forwardedComponent,r=n.componentStyle,o=n.defaultProps,i=n.displayName,a=n.foldedComponentIds,s=n.styledComponentId,u=n.target,c=void 0;c=r.isStatic?this.generateAndInjectStyles(J,this.props):void 0!==e?this.generateAndInjectStyles(ne(this.props,e,o),this.props):this.generateAndInjectStyles(this.props.theme||J,this.props);var l=this.props.as||this.attrs.as||u,p=b(l),f={},d=$({},this.attrs,this.props),h=void 0;for(h in d)"production"!==t.env.NODE_ENV&&"innerRef"===h&&p&&this.warnInnerRef(i),"forwardedComponent"!==h&&"as"!==h&&("forwardedRef"===h?f.ref=d[h]:p&&!Object(z.a)(h)||(f[h]=d[h]));return this.props.style&&this.attrs.style&&(f.style=$({},this.attrs.style,this.props.style)),f.className=Array.prototype.concat(a,this.props.className,s,this.attrs.className,c).filter(Boolean).join(" "),Object(N.createElement)(l,f)},n.prototype.buildExecutionContext=function(e,n,r){var i=this,s=$({},n,{theme:e});return r.length?(this.attrs={},r.forEach(function(e){var r=e,u=!1,c=void 0,l=void 0;o(r)&&(r=r(s),u=!0);for(l in r)c=r[l],u||!o(c)||w(c)||a(c)||("production"!==t.env.NODE_ENV&&i.warnAttrsFnObjectKeyDeprecated(l,n.forwardedComponent.displayName),c=c(s),"production"!==t.env.NODE_ENV&&j.a.isValidElement(c)&&i.warnNonStyledComponentAttrsObjectKey(l,n.forwardedComponent.displayName)),i.attrs[l]=c,s[l]=c}),s):s},n.prototype.generateAndInjectStyles=function(e,n){var r=n.forwardedComponent,o=r.attrs,i=r.componentStyle,a=r.warnTooManyClasses;if(i.isStatic&&!o.length)return i.generateAndInjectStyles(J,this.styleSheet);var s=i.generateAndInjectStyles(this.buildExecutionContext(e,n,o),this.styleSheet);return"production"!==t.env.NODE_ENV&&a&&a(s),s},n}(N.Component),_e=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Re=function(t){return d(O,t)};_e.forEach(function(t){Re[t]=Re(t)});var Pe=function(){function t(e,n){W(this,t),this.rules=e,this.componentId=n,this.isStatic=v(e,X),Ut.master.hasId(n)||Ut.master.deferredInject(n,[])}return t.prototype.createStyles=function(t,e){var n=p(this.rules,t,e),r=u(n,"");e.inject(this.componentId,r)},t.prototype.removeStyles=function(t){var e=this.componentId;t.hasId(e)&&t.remove(e)},t.prototype.renderStyles=function(t,e){this.removeStyles(e),this.createStyles(t,e)},t}();Q&&(window.scCGSHMRCache={});var Ne=function(t){return t.replace(/\s|\\n/g,"")},je=function(e){var n=j.a.forwardRef(function(n,r){return j.a.createElement(ye,null,function(o){var a=e.defaultProps,s=ne(n,o,a);return"production"!==t.env.NODE_ENV&&void 0===s&&console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "'+i(e)+'"'),j.a.createElement(e,$({},n,{theme:s,ref:r}))})});return x(n,e),n.displayName="WithTheme("+i(e)+")",n},Fe={StyleSheet:Ut};"production"!==t.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"production"!==t.env.NODE_ENV&&"test"!==t.env.NODE_ENV&&"undefined"!=typeof window&&"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&-1===navigator.userAgent.indexOf("Node.js")&&-1===navigator.userAgent.indexOf("jsdom")&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,1===window["__styled-components-init__"]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles not rendering properly, errors happening during rehydration process and makes your application bigger without a good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window["__styled-components-init__"]+=1),e.default=Re}.call(e,n(0),n(26)(t))},function(t,e){!function(){t.exports=this.React}()},function(t,e,n){(function(e){if("production"!==e.env.NODE_ENV){var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r};t.exports=n(32)(o,!0)}else t.exports=n(34)()}).call(e,n(0))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=React.createContext();e.AnalogProvider=r.Provider,e.AnalogConsumer=r.Consumer;e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=React.createContext();e.ThemeProvider=r.Provider,e.ThemeConsumer=r.Consumer,e.Theme={accent:"#3152FF",textLight:"#888888",textDark:"#060606",lightGray:"#F2F2F2"};e.default=r},function(t,e,n){var r,o;/*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ !function(){"use strict";function n(){for(var t=[],e=0;e1&&void 0!==arguments[1])||arguments[1];return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i({path:"/agwp/v1/mark_favorite",method:"post",data:{template_id:e,favorite:n}}).then(function(t){return t});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}(),e.requestTemplateList=function(){var t=r(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i({path:"/agwp/v1/templates"}).then(function(t){return t});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),e.requestDirectImport=function(){var t=r(regeneratorRuntime.mark(function t(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i({path:"/agwp/v1/import/elementor/direct",method:"post",data:{template:e,with_page:n}}).then(function(t){return t});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}(),e.requestImportLayout=function(){var t=r(regeneratorRuntime.mark(function t(e){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n="undefined"!=typeof ElementorConfig&&ElementorConfig.post_id,i({path:"/agwp/v1/import/elementor",method:"post",data:{template_id:e.id,editor_post_id:n}}).then(function(t){var e=JSON.parse(t);if("undefined"!=typeof elementor){var n=new Backbone.Model({getTitle:function(){return"Test"}});elementor.channels.data.trigger("template:before:insert",n);for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:"check";return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i({path:"/agwp/v1/license",method:"post",data:{action:e}}).then(function(t){return t});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),e.getLicenseStatus=function(){var t=r(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i({path:"/agwp/v1/license/status"}).then(function(t){return t});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),e.requestElementorImport=function(){var t=r(regeneratorRuntime.mark(function t(e){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.version){t.next=4;break}if(!(parseFloat(AGWP.version) div {\n\t\tborder-top-left-radius: 4px;\n\t\tborder-bottom-left-radius: 4px;\n\t}\n\n\t&.type-success {\n\t\tbackground-color: rgb(227, 252, 239);\n \tcolor: rgb(0, 102, 68);\n\t\t> div {\n\t\t\tbackground-color: rgb(54, 179, 126);\n \t\tcolor: rgb(227, 252, 239);\n\t\t}\n\t}\n\t&.type-error {\n\t\tbackground-color: rgb(255, 235, 230);\n\t color: rgb(191, 38, 0);\n\t\t> div {\n\t\t\tbackground-color: rgb(255, 86, 48);\n\t\t\tcolor: rgb(255, 235, 230);\n\t\t}\n\t}\n\t&.type-notice {\n\t\tbackground-color: rgb(255, 250, 230);\n\t\tcolor: rgb(255, 139, 0);\n\t\t> div {\n\t\t\tbackground-color: rgb(255, 171, 0);\n\t\t\tcolor: rgb(255, 250, 230);\n\t\t}\n\t}\n\n\tbutton {\n\t\tcolor: currentColor;\n\t\topacity: .5;\n\t\ttransition: opacity 150ms ease 0s;\n\t\tcursor: pointer;\n\t\tbackground: transparent;\n\t\tborder: none;\n\t\tcolor: currentColor;\n\t\toutline: 0;\n\t\t&:hover {\n\t\t\topacity: 1;\n\t\t}\n\n\t}\n\tbutton svg,\n\tbutton path {\n\t\tfill: currentColor;\n\t}\n\n\tp {\n\t\tflex-grow: 1;\n\t\tfont-size: 14px;\n\t\tpadding: 8px 12px;\n\t\tmargin: 0;\n\t}\n"],["\n box-shadow: rgba(0, 0, 0, 0.176) 0px 3px 8px;\n\tdisplay: flex;\n\tmargin-bottom: 8px;\n\twidth: 360px;\n\ttransform: translate3d(0px, 0px, 0px);\n\tborder-radius: 4px;\n\tfont-weight: 500;\n\tposition: relative;\n\ttransition: transform 220ms cubic-bezier(0.2, 0, 0, 1) 0s;\n\n\t> div {\n\t\tborder-top-left-radius: 4px;\n\t\tborder-bottom-left-radius: 4px;\n\t}\n\n\t&.type-success {\n\t\tbackground-color: rgb(227, 252, 239);\n \tcolor: rgb(0, 102, 68);\n\t\t> div {\n\t\t\tbackground-color: rgb(54, 179, 126);\n \t\tcolor: rgb(227, 252, 239);\n\t\t}\n\t}\n\t&.type-error {\n\t\tbackground-color: rgb(255, 235, 230);\n\t color: rgb(191, 38, 0);\n\t\t> div {\n\t\t\tbackground-color: rgb(255, 86, 48);\n\t\t\tcolor: rgb(255, 235, 230);\n\t\t}\n\t}\n\t&.type-notice {\n\t\tbackground-color: rgb(255, 250, 230);\n\t\tcolor: rgb(255, 139, 0);\n\t\t> div {\n\t\t\tbackground-color: rgb(255, 171, 0);\n\t\t\tcolor: rgb(255, 250, 230);\n\t\t}\n\t}\n\n\tbutton {\n\t\tcolor: currentColor;\n\t\topacity: .5;\n\t\ttransition: opacity 150ms ease 0s;\n\t\tcursor: pointer;\n\t\tbackground: transparent;\n\t\tborder: none;\n\t\tcolor: currentColor;\n\t\toutline: 0;\n\t\t&:hover {\n\t\t\topacity: 1;\n\t\t}\n\n\t}\n\tbutton svg,\n\tbutton path {\n\t\tfill: currentColor;\n\t}\n\n\tp {\n\t\tflex-grow: 1;\n\t\tfont-size: 14px;\n\t\tpadding: 8px 12px;\n\t\tmargin: 0;\n\t}\n"]),p=u(["\n\tflex-shrink: 0;\n padding-bottom: 8px;\n padding-top: 8px;\n position: relative;\n text-align: center;\n width: 30px;\n\tsvg {\n\t\tdisplay: inline-block;\n\t\tvertical-align: text-top;\n\t\tfill: currentcolor;\n\t}\n"],["\n\tflex-shrink: 0;\n padding-bottom: 8px;\n padding-top: 8px;\n position: relative;\n text-align: center;\n width: 30px;\n\tsvg {\n\t\tdisplay: inline-block;\n\t\tvertical-align: text-top;\n\t\tfill: currentcolor;\n\t}\n"]),f=u(["from { height: 100%; } to { height: 0% }"],["from { height: 100%; } to { height: 0% }"]),d=u(["\n\t\t"," ","ms linear;\n"],["\n\t\t"," ","ms linear;\n"]),h=u(["\n\tposition: absolute;\n\tbottom: 0%;\n\tleft: 0;\n\theight: 0;\n\twidth: 30px;\n\tz-index: 10;\n\tbackground: rgba(0,0,0,0.1) !important;\n\topacity: ",";\n\tanimation-play-state: ","\n\tanimation: ",";\n\tborder-radius: 0 !important;\n"],["\n\tposition: absolute;\n\tbottom: 0%;\n\tleft: 0;\n\theight: 0;\n\twidth: 30px;\n\tz-index: 10;\n\tbackground: rgba(0,0,0,0.1) !important;\n\topacity: ",";\n\tanimation-play-state: ","\n\tanimation: ",";\n\tborder-radius: 0 !important;\n"]),m=n(1),g=r(m),v=n(13),y=r(v),b=n(41),E=r(b),x=n(42),w=r(x),C=n(43),O=r(C),k=n(7),S=React.createContext(),A=(e.NotificationProvider=S.Provider,e.NotificationConsumer=S.Consumer,g.default.div(l)),_=g.default.div(p),R=(0,m.keyframes)(f),P=function(t){return(0,m.css)(d,R,t.autoDismissTimeout)},N=g.default.div(h,function(t){return t.opacity},function(t){return t.isRunning?"running":"paused"},P),j=function(t){function e(){i(this,e);var t=a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));return t.onDismiss=function(e){return function(){return t.remove(e)}},t.state={notices:[]},t.autoDismissTimeout=3e3,t.add=t.add.bind(t),t}return s(e,t),c(e,[{key:"getNotices",value:function(){var t=this;return this.state.notices.map(function(e){return React.createElement(T,{key:e.id,id:e.id,type:e.type,label:e.label,onDismiss:function(){return t.remove(e.id)},autoDismiss:!!e.autoDismiss&&e.autoDismiss,autoDismissTimeout:e.autoDismissTimeout?e.autoDismissTimeout:t.autoDismissTimeout})})}},{key:"add",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,k.generateUEID)(),r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:3e3,a=[].concat(o(this.state.notices)),s=[].concat(o(a),[{label:t,id:n,type:e,autoDismiss:r,autoDismissTimeout:i}]);this.setState({notices:s})}},{key:"remove",value:function(t){var e=this.state.notices.filter(function(e){return e.id!==t});this.setState({notices:e})}},{key:"render",value:function(){var t=this.add,e=this.props.children;return React.createElement(S.Provider,{value:{add:t}},React.createElement("div",{className:"ang-notices"},this.getNotices()),e)}}]),e}(React.Component);e.default=j;var F=function(t){return"success"===t?React.createElement(O.default,null):"error"===t?React.createElement(E.default,null):React.createElement(w.default,null)},T=function(t){function e(){var t,n,r,o;i(this,e);for(var s=arguments.length,u=Array(s),c=0;c=0||(o[n]=t[n]);return o}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function a(){}e.__esModule=!0,e.default=e.EXITING=e.ENTERED=e.ENTERING=e.EXITED=e.UNMOUNTED=void 0;var s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};r.get||r.set?Object.defineProperty(e,n,r):e[n]=t[n]}return e.default=t,e}(n(3)),u=r(n(2)),c=r(n(8)),l=n(20),p=n(21),f="unmounted";e.UNMOUNTED=f;var d="exited";e.EXITED=d;var h="entering";e.ENTERING=h;var m="entered";e.ENTERED=m;e.EXITING="exiting";var g=function(t){function e(e,n){var r;r=t.call(this,e,n)||this;var o,i=n.transitionGroup,a=i&&!i.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?a?(o=d,r.appearStatus=h):o=m:o=e.unmountOnExit||e.mountOnEnter?f:d,r.state={status:o},r.nextCallback=null,r}i(e,t);var n=e.prototype;return n.getChildContext=function(){return{transitionGroup:null}},e.getDerivedStateFromProps=function(t,e){return t.in&&e.status===f?{status:d}:null},n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==h&&n!==m&&(e=h):n!==h&&n!==m||(e="exiting")}this.updateStatus(!1,e)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var t,e,n,r=this.props.timeout;return t=e=n=r,null!=r&&"number"!=typeof r&&(t=r.exit,e=r.enter,n=r.appear),{exit:t,enter:e,appear:n}},n.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e){this.cancelNextCallback();var n=c.default.findDOMNode(this);e===h?this.performEnter(n,t):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===d&&this.setState({status:f})},n.performEnter=function(t,e){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:e,i=this.getTimeouts();if(!e&&!r)return void this.safeSetState({status:m},function(){n.props.onEntered(t)});this.props.onEnter(t,o),this.safeSetState({status:h},function(){n.props.onEntering(t,o),n.onTransitionEnd(t,i.enter,function(){n.safeSetState({status:m},function(){n.props.onEntered(t,o)})})})},n.performExit=function(t){var e=this,n=this.props.exit,r=this.getTimeouts();if(!n)return void this.safeSetState({status:d},function(){e.props.onExited(t)});this.props.onExit(t),this.safeSetState({status:"exiting"},function(){e.props.onExiting(t),e.onTransitionEnd(t,r.exit,function(){e.safeSetState({status:d},function(){e.props.onExited(t)})})})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},n.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(t,e,n){this.setNextCallback(n),t?(this.props.addEndListener&&this.props.addEndListener(t,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},n.render=function(){var t=this.state.status;if(t===f)return null;var e=this.props,n=e.children,r=o(e,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(t,r);var i=u.default.Children.only(n);return u.default.cloneElement(i,r)},e}(u.default.Component);g.contextTypes={transitionGroup:s.object},g.childContextTypes={transitionGroup:function(){}},g.propTypes="production"!==t.env.NODE_ENV?{children:s.oneOfType([s.func.isRequired,s.element.isRequired]).isRequired,in:s.bool,mountOnEnter:s.bool,unmountOnExit:s.bool,appear:s.bool,enter:s.bool,exit:s.bool,timeout:function(e){var n="production"!==t.env.NODE_ENV?p.timeoutsShape:{};e.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i=0||(o[n]=t[n]);return o}function a(){return a=Object.assign||function(t){for(var e=1;eparseInt(e.popularityIndex))return-1}return 0});this.setState({templates:n})}"latest"===t&&this.setState({templates:this.state.archive})}},{key:"handleSearch",value:function(t){var e=this.state.templates,n=[],r=[];t&&(n=e.filter(function(e){return e.tags&&(r=e.tags.filter(function(e){return e.toLowerCase().includes(t)})),e.title.toLowerCase().includes(t)||r.length>=1})),this.setState({templates:n.length?n:this.state.archive})}},{key:"refreshAPI",value:function(){function t(){return e.apply(this,arguments)}var e=i(regeneratorRuntime.mark(function t(){var e=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.setState({templates:[],archive:[],count:null,syncing:!0}),t.next=3,S({path:"/agwp/v1/templates/?force_update=true"}).then(function(t){e.setState({templates:t.templates,archive:t.templates,count:t.count,timestamp:t.timestamp,syncing:!1})}).catch(function(){e.setState({syncing:!1})});case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}},t,this)}));return t}()},{key:"toggleFavorites",value:function(){var t=this,e=this.state.templates.filter(function(e){return e.id in t.state.favorites});this.setState({showing_favorites:!this.state.showing_favorites,templates:this.state.showing_favorites?this.state.archive:e})}},{key:"render",value:function(){var t=this;return React.createElement(b.default.Provider,{value:{theme:y.Theme}},React.createElement(b.default.Consumer,null,function(e){var n=e.theme;return React.createElement(A,{theme:n},React.createElement(C.default,null,React.createElement(g.default.Provider,{value:{state:t.state,forceRefresh:t.refreshAPI,markFavorite:v.markFavorite,toggleFavorites:t.toggleFavorites,handleSearch:t.handleSearch,handleSort:t.handleSort,handleFilter:t.handleFilter,dispatch:function(e){return t.setState(e)}}},React.createElement(x.default,null),React.createElement(_,null,(0,O.getPageComponents)(t.state)))))}))}}]),e}(React.Component);e.default=R},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e,n){!function(e){t.exports=e(null)}(function t(e){"use strict";function n(t,e,o,l,p){for(var h,m,g=0,v=0,y=0,E=0,x=0,w=0,C=0,A=0,_=0,R=0,P=0,j=0,T=0,D=0,M=0,I=0,L=0,nt=0,Pt=0,Tt=o.length,Mt=Tt-1,It="",Lt="",Yt="",Zt="",Xt="",Jt="";M0&&(Lt=Lt.replace(d,"")),Lt.trim().length>0)){switch(C){case Q:case J:case H:case X:case Z:break;default:Lt+=o.charAt(M)}C=H}if(1===L)switch(C){case U:case W:case H:case st:case at:case $:case q:case ot:L=0;case J:case X:case Z:case Q:break;default:for(L=0,Pt=M,x=C,M--,C=H;Pt0&&(++M,C=x);case U:Pt=Tt}}switch(C){case U:for(x=(Lt=Lt.trim()).charCodeAt(0),P=1,Pt=++M;M0&&(Lt=Lt.replace(d,"")),w=Lt.charCodeAt(1)){case wt:case gt:case vt:case et:h=e;break;default:h=Ft}if(Pt=(Yt=n(e,h,Yt,w,p+1)).length,jt>0&&0===Pt&&(Pt=Lt.length),Dt>0&&(h=r(Ft,Lt,nt),m=u(Ht,Yt,h,e,kt,Ot,Pt,w,p,l),Lt=h.join(""),void 0!==m&&0===(Pt=(Yt=m.trim()).length)&&(w=0,Yt="")),Pt>0)switch(w){case vt:Lt=Lt.replace(F,s);case wt:case gt:case et:Yt=Lt+"{"+Yt+"}";break;case mt:Yt=(Lt=Lt.replace(O,"$1 $2"+(Ut>0?$t:"")))+"{"+Yt+"}",Yt=1===_t||2===_t&&a("@"+Yt,3)?"@"+V+Yt+"@"+Yt:"@"+Yt;break;default:Yt=Lt+Yt,l===Ct&&(Zt+=Yt,Yt="")}else Yt="";break;default:Yt=n(e,r(e,Lt,nt),Yt,l,p+1)}Xt+=Yt,j=0,L=0,D=0,I=0,nt=0,T=0,Lt="",Yt="",C=o.charCodeAt(++M);break;case W:case H:if((Pt=(Lt=(I>0?Lt.replace(d,""):Lt).trim()).length)>1)switch(0===D&&((x=Lt.charCodeAt(0))===et||x>96&&x<123)&&(Pt=(Lt=Lt.replace(" ",":")).length),Dt>0&&void 0!==(m=u(zt,Lt,e,t,kt,Ot,Zt.length,l,p,l))&&0===(Pt=(Lt=m.trim()).length)&&(Lt="\0\0"),x=Lt.charCodeAt(0),w=Lt.charCodeAt(1),x){case ft:break;case K:if(w===Et||w===xt){Jt+=Lt+o.charAt(M);break}default:if(Lt.charCodeAt(Pt-1)===it)break;Zt+=i(Lt,x,w,Lt.charCodeAt(2))}j=0,L=0,D=0,I=0,nt=0,Lt="",C=o.charCodeAt(++M)}}switch(C){case X:case Z:if(v+E+y+g+Nt===0)switch(R){case q:case at:case st:case K:case pt:case ct:case rt:case lt:case ut:case et:case it:case ot:case H:case U:case W:break;default:D>0&&(L=1)}v===ut?v=0:At+j===0&&l!==mt&&Lt.length>0&&(I=1,Lt+="\0"),Dt*Wt>0&&u(Vt,Lt,e,t,kt,Ot,Zt.length,l,p,l),Ot=1,kt++;break;case H:case W:if(v+E+y+g===0){Ot++;break}default:switch(Ot++,It=o.charAt(M),C){case J:case Q:if(E+g+v===0)switch(A){case ot:case it:case J:case Q:It="";break;default:C!==Q&&(It=" ")}break;case ft:It="\\0";break;case dt:It="\\f";break;case ht:It="\\v";break;case tt:E+v+g===0&&At>0&&(nt=1,I=1,It="\f"+It);break;case 108:if(E+v+g+St===0&&D>0)switch(M-D){case 2:A===yt&&o.charCodeAt(M-3)===it&&(St=A);case 8:_===bt&&(St=_)}break;case it:E+v+g===0&&(D=M);break;case ot:v+y+E+g===0&&(I=1,It+="\r");break;case st:case at:0===v&&(E=E===C?0:0===E?C:E);break;case G:E+v+y===0&&g++;break;case Y:E+v+y===0&&g--;break;case q:E+v+g===0&&y--;break;case $:if(E+v+g===0){if(0===j)switch(2*A+3*_){case 533:break;default:P=0,j=1}y++}break;case K:v+y+E+g+D+T===0&&(T=1);break;case rt:case ut:if(E+g+y>0)break;switch(v){case 0:switch(2*C+3*o.charCodeAt(M+1)){case 235:v=ut;break;case 220:Pt=M,v=rt}break;case rt:C===ut&&A===rt&&Pt+2!==M&&(33===o.charCodeAt(Pt+2)&&(Zt+=o.substring(Pt,M+1)),It="",v=0)}}if(0===v){if(At+E+g+T===0&&l!==mt&&C!==H)switch(C){case ot:case pt:case ct:case lt:case q:case $:if(0===j){switch(A){case J:case Q:case Z:case X:It+="\0";break;default:It="\0"+It+(C===ot?"":"\0")}I=1}else switch(C){case $:D+7===M&&108===A&&(D=0),j=++P;break;case q:0==(j=--P)&&(I=1,It+="\0")}break;case J:case Q:switch(A){case ft:case U:case W:case H:case ot:case dt:case J:case Q:case Z:case X:break;default:0===j&&(I=1,It+="\0")}}Lt+=It,C!==Q&&C!==J&&(R=C)}}_=A,A=C,M++}if(Pt=Zt.length,jt>0&&0===Pt&&0===Xt.length&&0===e[0].length==0&&(l!==gt||1===e.length&&(At>0?qt:Gt)===e[0])&&(Pt=e.join(",").length+2),Pt>0){if(h=0===At&&l!==mt?function(t){for(var e,n,r=0,o=t.length,i=Array(o);r1)){if(l=s.charCodeAt(s.length-1),p=n.charCodeAt(0),e="",0!==u)switch(l){case rt:case pt:case ct:case lt:case Q:case $:break;default:e=" "}switch(p){case tt:n=e+qt;case pt:case ct:case lt:case Q:case q:case $:break;case G:n=e+n+qt;break;case it:switch(2*n.charCodeAt(1)+3*n.charCodeAt(2)){case 530:if(Rt>0){n=e+n.substring(8,c-1);break}default:(u<1||a[u-1].length<1)&&(n=e+qt+n)}break;case ot:e="";default:n=c>1&&n.indexOf(":")>0?e+n.replace(N,"$1"+qt+"$2"):e+n+qt}s+=n}i[r]=s.replace(d,"").trim()}return i}(e):e,Dt>0&&void 0!==(m=u(Bt,Zt,h,t,kt,Ot,Pt,l,p,l))&&0===(Zt=m).length)return Jt+Zt+Xt;if(Zt=h.join(",")+"{"+Zt+"}",_t*St!=0){switch(2!==_t||a(Zt,2)||(St=0),St){case bt:Zt=Zt.replace(S,":"+z+"$1")+Zt;break;case yt:Zt=Zt.replace(k,"::"+V+"input-$1")+Zt.replace(k,"::"+z+"$1")+Zt.replace(k,":"+B+"input-$1")+Zt}St=0}}return Jt+Zt+Xt}function r(t,e,n){var r=e.trim().split(E),i=r,a=r.length,s=t.length;switch(s){case 0:case 1:for(var u=0,c=0===s?"":t[0]+" ";u0&&At>0)return o.replace(w,"$1").replace(x,"$1"+Gt);break;default:return t.trim()+o.replace(x,"$1"+t.trim())}default:if(n*At>0&&o.indexOf("\f")>0)return o.replace(x,(t.charCodeAt(0)===it?"":"$1")+t.trim())}return t+o}function i(t,e,n,r){var o,s=0,u=t+";",c=2*e+3*n+4*r;if(944===c)return function(t){var e=t.length,n=t.indexOf(":",9)+1,r=t.substring(0,n).trim(),o=t.substring(n,e-1).trim();switch(t.charCodeAt(9)*Ut){case 0:break;case et:if(110!==t.charCodeAt(10))break;default:for(var i=o.split((o="",v)),s=0,n=0,e=i.length;sK&&l<90||l>96&&l<123||l===nt||l===et&&u.charCodeAt(1)!==et))switch(isNaN(parseFloat(u))+(-1!==u.indexOf("("))){case 1:switch(u){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:u+=$t}}c[n++]=u}o+=(0===s?"":",")+c.join(" ")}}return o=r+o+";",1===_t||2===_t&&a(o,1)?V+o+o:o}(u);if(0===_t||2===_t&&!a(u,1))return u;switch(c){case 1015:return 97===u.charCodeAt(10)?V+u+u:u;case 951:return 116===u.charCodeAt(3)?V+u+u:u;case 963:return 110===u.charCodeAt(5)?V+u+u:u;case 1009:if(100!==u.charCodeAt(4))break;case 969:case 942:return V+u+u;case 978:return V+u+z+u+u;case 1019:case 983:return V+u+z+u+B+u+u;case 883:return u.charCodeAt(8)===et?V+u+u:u.indexOf("image-set(",11)>0?u.replace(L,"$1"+V+"$2")+u:u;case 932:if(u.charCodeAt(4)===et)switch(u.charCodeAt(5)){case 103:return V+"box-"+u.replace("-grow","")+V+u+B+u.replace("grow","positive")+u;case 115:return V+u+B+u.replace("shrink","negative")+u;case 98:return V+u+B+u.replace("basis","preferred-size")+u}return V+u+B+u+u;case 964:return V+u+B+"flex-"+u+u;case 1023:if(99!==u.charCodeAt(8))break;return o=u.substring(u.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),V+"box-pack"+o+V+u+B+"flex-pack"+o+u;case 1005:return m.test(u)?u.replace(h,":"+V)+u.replace(h,":"+z)+u:u;case 1e3:switch(s=(o=u.substring(13).trim()).indexOf("-")+1,o.charCodeAt(0)+o.charCodeAt(s)){case 226:o=u.replace(j,"tb");break;case 232:o=u.replace(j,"tb-rl");break;case 220:o=u.replace(j,"lr");break;default:return u}return V+u+B+o+u;case 1017:if(-1===u.indexOf("sticky",9))return u;case 975:switch(s=(u=t).length-10,c=(o=(33===u.charCodeAt(s)?u.substring(0,s):u).substring(t.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|o.charCodeAt(7))){case 203:if(o.charCodeAt(8)<111)break;case 115:u=u.replace(o,V+o)+";"+u;break;case 207:case 102:u=u.replace(o,V+(c>102?"inline-":"")+"box")+";"+u.replace(o,V+o)+";"+u.replace(o,B+o+"box")+";"+u}return u+";";case 938:if(u.charCodeAt(5)===et)switch(u.charCodeAt(6)){case 105:return o=u.replace("-items",""),V+u+V+"box-"+o+B+"flex-"+o+u;case 115:return V+u+B+"flex-item-"+u.replace(D,"")+u;default:return V+u+B+"flex-line-pack"+u.replace("align-content","").replace(D,"")+u}break;case 973:case 989:if(u.charCodeAt(3)!==et||122===u.charCodeAt(4))break;case 931:case 953:if(!0===I.test(t))return 115===(o=t.substring(t.indexOf(":")+1)).charCodeAt(0)?i(t.replace("stretch","fill-available"),e,n,r).replace(":fill-available",":stretch"):u.replace(o,V+o)+u.replace(o,z+o.replace("fill-",""))+u;break;case 962:if(u=V+u+(102===u.charCodeAt(5)?B+u:"")+u,n+r===211&&105===u.charCodeAt(13)&&u.indexOf("transform",10)>0)return u.substring(0,u.indexOf(";",27)+1).replace(g,"$1"+V+"$2")+u}return u}function a(t,e){var n=t.indexOf(1===e?":":"{"),r=t.substring(0,3!==e?n:10),o=t.substring(n+1,t.length-1);return Mt(2!==e?r:r.replace(M,"$1"),o,e)}function s(t,e){var n=i(e,e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2));return n!==e+";"?n.replace(T," or ($1)").substring(4):"("+e+")"}function u(t,e,n,r,o,i,a,s,u,c){for(var l,f=0,d=e;f0&&($t=o.replace(C,i===G?"":"-")),i=1,1===At?Gt=o:qt=o;var a,s=[Gt];Dt>0&&void 0!==(a=u(Lt,r,s,s,kt,Ot,0,0,0,0))&&"string"==typeof a&&(r=a);var c=n(Ft,s,r,0,0);return Dt>0&&void 0!==(a=u(It,c,s,s,kt,Ot,c.length,0,0,0))&&"string"!=typeof(c=a)&&(i=0),$t="",Gt="",qt="",St=0,kt=1,Ot=1,Pt*i==0?c:c.replace(d,"").replace(A,"").replace(_,"$1").replace(R,"$1").replace(P," ")}var f=/^\0+/g,d=/[\0\r\f]/g,h=/: */g,m=/zoo|gra/,g=/([,: ])(transform)/g,v=/,+\s*(?![^(]*[)])/g,y=/ +\s*(?![^(]*[)])/g,b=/ *[\0] */g,E=/,\r+?/g,x=/([\t\r\n ])*\f?&/g,w=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,C=/\W+/g,O=/@(k\w+)\s*(\S*)\s*/,k=/::(place)/g,S=/:(read-only)/g,A=/\s+(?=[{\];=:>])/g,_=/([[}=:>])\s+/g,R=/(\{[^{]+?);(?=\})/g,P=/\s{2,}/g,N=/([^\(])(:+) */g,j=/[svh]\w+-[tblr]{2}/,F=/\(\s*(.*)\s*\)/g,T=/([\s\S]*?);/g,D=/-self|flex-/g,M=/[^]*?(:[rp][el]a[\w-]+)[^]*/,I=/stretch|:\s*\w+\-(?:conte|avail)/,L=/([^-])(image-set\()/,V="-webkit-",z="-moz-",B="-ms-",H=59,W=125,U=123,$=40,q=41,G=91,Y=93,Z=10,X=13,J=9,K=64,Q=32,tt=38,et=45,nt=95,rt=42,ot=44,it=58,at=39,st=34,ut=47,ct=62,lt=43,pt=126,ft=0,dt=12,ht=11,mt=107,gt=109,vt=115,yt=112,bt=111,Et=105,xt=99,wt=100,Ct=112,Ot=1,kt=1,St=0,At=1,_t=1,Rt=1,Pt=0,Nt=0,jt=0,Ft=[],Tt=[],Dt=0,Mt=null,It=-2,Lt=-1,Vt=0,zt=1,Bt=2,Ht=3,Wt=0,Ut=1,$t="",qt="",Gt="";return p.use=function t(e){switch(e){case void 0:case null:Dt=Tt.length=0;break;default:if("function"==typeof e)Tt[Dt++]=e;else if("object"==typeof e)for(var n=0,r=e.length;n1?e-1:0),r=1;r2?n-2:0),o=2;o1&&React.createElement(S,null,React.createElement("label",{htmlFor:"filter"},C("filter","ang")),React.createElement(m.default,{inputId:"filter",className:"dropdown",defaultValue:n[0],isSearchable:!1,options:n,onChange:function(e){return t.context.handleFilter(e.value)}})),React.createElement(S,null,React.createElement("label",{htmlFor:"sort"},C("sort by","ang")),React.createElement(m.default,{inputId:"sort",className:"dropdown",defaultValue:r[0],isSearchable:!1,options:r,onChange:function(e){return t.context.handleSort(e.value)}})),t.context.state.hasPro&&React.createElement(S,null,React.createElement(O,{label:C("show only free","ang"),checked:t.context.state.showFree,className:"checkbox",onChange:function(){t.context.dispatch({showFree:!t.context.state.showFree})}})),React.createElement("input",{type:"search",placeholder:C("Search templates","ang"),ref:t.searchInput,onChange:function(){return t.context.handleSearch(t.searchInput.current.value.toLowerCase())}}))})}}]),e}(React.Component);A.contextType=b.default,e.default=A},function(t,e,n){"use strict";function r(t,e){return e?"-"===e[0]?t+e:t+"__"+e:t}function o(t,e,n,o){var i=[e,o];if(n&&t)for(var a in n)n.hasOwnProperty(a)&&n[a]&&i.push(""+r(t,a));return i.filter(function(t){return t}).map(function(t){return String(t).trim()}).join(" ")}function i(t,e,n){if(n){var r=n(t,e);if("string"==typeof r)return r}return t}function a(t){return[document.documentElement,document.body,window].indexOf(t)>-1}function s(t){return a(t)?window.pageYOffset:t.scrollTop}function u(t,e){if(a(t))return void window.scrollTo(0,e);t.scrollTop=e}function c(t){var e=getComputedStyle(t),n="absolute"===e.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===e.position)return o;for(var i=t;i=i.parentElement;)if(e=getComputedStyle(i),(!n||"static"!==e.position)&&r.test(e.overflow+e.overflowY+e.overflowX))return i;return o}function l(t,e,n,r){return n*((t=t/r-1)*t*t+1)+e}function p(t,e){function n(){p+=c;var e=l(p,i,a,r);u(t,e),p2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:$,i=s(t),a=e-i,c=10,p=0;n()}function f(t,e){var n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),o=e.offsetHeight/3;r.bottom+o>n.bottom?u(t,Math.min(e.offsetTop+e.clientHeight-t.offsetHeight+o,t.scrollHeight)):r.top-o=b)return{placement:"bottom",maxHeight:e};if(P>=b&&!a)return i&&p(d,N,160),{placement:"bottom",maxHeight:e};if(!a&&P>=r||a&&_>=r){i&&p(d,N,160);return{placement:"bottom",maxHeight:a?_-k:P-k}}if("auto"===o||a){var F=e,T=a?A:R;return T>=r&&(F=Math.min(T-k-f.controlHeight,e)),{placement:"top",maxHeight:F}}if("bottom"===o)return u(d,N),{placement:"bottom",maxHeight:e};break;case"top":if(A>=b)return{placement:"top",maxHeight:e};if(R>=b&&!a)return i&&p(d,j,160),{placement:"top",maxHeight:e};if(!a&&R>=r||a&&A>=r){var D=e;return(!a&&R>=r||a&&A>=r)&&(D=a?A-S:R-S),i&&p(d,j,160),{placement:"top",maxHeight:D}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'+o+'".')}return h}function g(t){var e={bottom:"top",top:"bottom"};return t?e[t]:"bottom"}function v(t,e){if(t===e)return!0;if(t&&e&&"object"==(void 0===t?"undefined":M(t))&&"object"==(void 0===e?"undefined":M(e))){var n,r,o,i=at(t),a=at(e);if(i&&a){if((r=t.length)!=e.length)return!1;for(n=r;0!=n--;)if(!v(t[n],e[n]))return!1;return!0}if(i!=a)return!1;var s=t instanceof Date,u=e instanceof Date;if(s!=u)return!1;if(s&&u)return t.getTime()==e.getTime();var c=t instanceof RegExp,l=e instanceof RegExp;if(c!=l)return!1;if(c&&l)return t.toString()==e.toString();var p=st(t);if((r=p.length)!==st(e).length)return!1;for(n=r;0!=n--;)if(!ut.call(e,p[n]))return!1;for(n=r;0!=n--;)if(!("_owner"===(o=p[n])&&t.$$typeof||v(t[o],e[o])))return!1;return!0}return t!==t&&e!==e}function y(t,e){try{return v(t,e)}catch(t){if(t.message&&t.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",t.name,t.message),!1;throw t}}function b(t){t.preventDefault()}function E(t){t.stopPropagation()}function x(){var t=this.scrollTop,e=this.scrollHeight,n=t+this.offsetHeight;0===t?this.scrollTop=1:n===e&&(this.scrollTop=t-1)}function w(){return"ontouchstart"in window||navigator.maxTouchPoints}function C(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=z({},t);return Object.keys(e).forEach(function(r){t[r]?n[r]=function(n,o){return e[r](t[r](n,o),o)}:n[r]=e[r]}),n}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"SelectBase",function(){return Ne}),n.d(e,"Async",function(){return Ie}),n.d(e,"AsyncCreatable",function(){return We}),n.d(e,"Creatable",function(){return He}),n.d(e,"createFilter",function(){return dt}),n.d(e,"makeAnimated",function(){return tn}),n.d(e,"components",function(){return Ce}),n.d(e,"mergeStyles",function(){return C}),n.d(e,"defaultTheme",function(){return _e});var O=n(46),k=n.n(O),S=n(2),A=n.n(S),_=n(48),R=n(8),P=(n.n(R),n(3)),N=n.n(P),j=n(54),F=n.n(j),T=n(17),D=n(55),M=(n.n(D),"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}),I=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},L=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},W=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},U=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e-1}},ht=function(t){return A.a.createElement("span",z({className:Object(_.a)({zIndex:9999,border:0,clip:"rect(1px, 1px, 1px, 1px)",height:1,width:1,position:"absolute",overflow:"hidden",padding:0,whiteSpace:"nowrap",backgroundColor:"red",color:"blue"})},t))},mt=function(t){function e(){return I(this,e),W(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return B(e,t),L(e,[{key:"render",value:function(){var t=this.props,e=(t.in,t.out,t.onExited,t.appear,t.enter,t.exit,t.innerRef),n=(t.emotion,H(t,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return A.a.createElement("input",z({ref:e},n,{className:Object(_.a)({background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"})}))}}]),e}(S.Component),gt=function(t){function e(){return I(this,e),W(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return B(e,t),L(e,[{key:"componentDidMount",value:function(){this.props.innerRef(Object(R.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),e}(S.Component),vt=["boxSizing","height","overflow","paddingRight","position"],yt={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"},bt=!("undefined"==typeof window||!window.document||!window.document.createElement),Et=0,xt=function(t){function e(){var t,n,r,o;I(this,e);for(var i=arguments.length,a=Array(i),s=0;s0,h=l-p-c,m=!1;h>e&&r.isBottom&&(i&&i(t),r.isBottom=!1),d&&r.isTop&&(s&&s(t),r.isTop=!1),d&&e>h?(o&&!r.isBottom&&o(t),f.scrollTop=l,m=!0,r.isBottom=!0):!d&&-e>c&&(a&&!r.isTop&&a(t),f.scrollTop=0,m=!0,r.isTop=!0),m&&r.cancelScroll(t)},r.onWheel=function(t){r.handleEventDelta(t,t.deltaY)},r.onTouchStart=function(t){r.touchStart=t.changedTouches[0].clientY},r.onTouchMove=function(t){var e=r.touchStart-t.changedTouches[0].clientY;r.handleEventDelta(t,e)},r.getScrollTarget=function(t){r.scrollTarget=t},o=n,W(r,o)}return B(e,t),L(e,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(t){t.scrollHeight<=t.clientHeight||("function"==typeof t.addEventListener&&t.addEventListener("wheel",this.onWheel,!1),"function"==typeof t.addEventListener&&t.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof t.addEventListener&&t.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(t){t.scrollHeight<=t.clientHeight||("function"==typeof t.removeEventListener&&t.removeEventListener("wheel",this.onWheel,!1),"function"==typeof t.removeEventListener&&t.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof t.removeEventListener&&t.removeEventListener("touchmove",this.onTouchMove,!1))}},{key:"render",value:function(){return A.a.createElement(gt,{innerRef:this.getScrollTarget},this.props.children)}}]),e}(S.Component),Ot=function(t){function e(){return I(this,e),W(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return B(e,t),L(e,[{key:"render",value:function(){var t=this.props,e=t.isEnabled,n=H(t,["isEnabled"]);return e?A.a.createElement(Ct,n):this.props.children}}]),e}(S.Component);Ot.defaultProps={isEnabled:!0};var kt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.isSearchable,r=e.isMulti,o=e.label;switch(t){case"menu":return"Use Up and Down to choose options, 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(o||"Select")+" is focused "+(n?",type to refine list":"")+", press Down to open the menu, "+(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Enter to remove the currently focused value"}},St=function(t,e){var n=e.value;if(n)switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option "+n+", deselected.";case"select-option":return"option "+n+", selected."}},At=function(t){var e=t.focusedValue,n=t.getOptionLabel,r=t.selectValue;return"value "+n(e)+" focused, "+(r.indexOf(e)+1)+" of "+r.length+"."},_t=function(t){var e=t.focusedOption,n=t.getOptionLabel,r=t.options;return"option "+n(e)+" focused, "+(r.indexOf(e)+1)+" of "+r.length+"."},Rt=function(t){var e=t.inputValue;return t.screenReaderMessage+(e?" for search term "+e:"")+"."},Pt=function(t){return t.label},Nt=function(t){return t.label},jt=function(t){return t.value},Ft=function(t){return!!t.isDisabled},Tt=function(t){var e=t.isDisabled;return{direction:t.isRtl?"rtl":null,pointerEvents:e?"none":null,position:"relative"}},Dt=function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles,i=t.innerProps,a=t.isDisabled,s=t.isRtl;return A.a.createElement("div",z({className:r(Object(_.a)(o("container",t)),{"--is-disabled":a,"--is-rtl":s},n)},i),e)},Mt=function(t){var e=t.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:e.baseUnit/2+"px "+2*e.baseUnit+"px",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}},It=function(t){function e(){return I(this,e),W(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return B(e,t),L(e,[{key:"render",value:function(){var t=this.props,e=t.children,n=t.className,r=t.cx,o=t.isMulti,i=t.getStyles,a=t.hasValue;return A.a.createElement("div",{className:r(Object(_.a)(i("valueContainer",this.props)),{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":a},n)},e)}}]),e}(S.Component),Lt=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Vt=function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles;return A.a.createElement("div",{className:r(Object(_.a)(o("indicatorsContainer",t)),{indicators:!0},n)},e)},zt=function(t){var e=t.size,n=H(t,["size"]);return A.a.createElement("svg",z({height:e,width:e,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",className:Object(_.a)({display:"inline-block",fill:"currentColor",lineHeight:1,stroke:"currentColor",strokeWidth:0})},n))},Bt=function(t){return A.a.createElement(zt,z({size:20},t),A.a.createElement("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"}))},Ht=function(t){return A.a.createElement(zt,z({size:20},t),A.a.createElement("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"}))},Wt=function(t){var e=t.isFocused,n=t.theme,r=n.spacing.baseUnit,o=n.colors;return{color:e?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:e?o.neutral80:o.neutral40}}},Ut=Wt,$t=function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles,i=t.innerProps;return A.a.createElement("div",z({},i,{className:r(Object(_.a)(o("dropdownIndicator",t)),{indicator:!0,"dropdown-indicator":!0},n)}),e||A.a.createElement(Ht,null))},qt=Wt,Gt=function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles,i=t.innerProps;return A.a.createElement("div",z({},i,{className:r(Object(_.a)(o("clearIndicator",t)),{indicator:!0,"clear-indicator":!0},n)}),e||A.a.createElement(Bt,null))},Yt=function(t){var e=t.isDisabled,n=t.theme,r=n.spacing.baseUnit,o=n.colors;return{alignSelf:"stretch",backgroundColor:e?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},Zt=function(t){var e=t.className,n=t.cx,r=t.getStyles,o=t.innerProps;return A.a.createElement("span",z({},o,{className:n(Object(_.a)(r("indicatorSeparator",t)),{"indicator-separator":!0},e)}))},Xt=!1,Jt=function(t){var e=t.isFocused,n=t.size,r=t.theme,o=r.colors,i=r.spacing.baseUnit;return{color:e?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},Kt=function(t){var e=t.color,n=t.delay,r=t.offset;return A.a.createElement("span",{className:Object(_.a)({animationDuration:"1s",animationDelay:n+"ms",animationIterationCount:"infinite",animationName:"react-select-loading-indicator",animationTimingFunction:"ease-in-out",backgroundColor:e,borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":null,height:"1em",verticalAlign:"top",width:"1em"})})},Qt=function(t){var e=t.className,n=t.cx,r=t.getStyles,o=t.innerProps,i=t.isFocused,a=t.isRtl,s=t.theme.colors,u=i?s.neutral80:s.neutral20;return Xt||(Object(_.b)("@keyframes ","react-select-loading-indicator","{0%,80%,100%{opacity:0;}40%{opacity:1;}};"),Xt=!0),A.a.createElement("div",z({},o,{className:n(Object(_.a)(r("loadingIndicator",t)),{indicator:!0,"loading-indicator":!0},e)}),A.a.createElement(Kt,{color:u,delay:0,offset:a}),A.a.createElement(Kt,{color:u,delay:160,offset:!0}),A.a.createElement(Kt,{color:u,delay:320,offset:!a}))};Qt.defaultProps={size:4};var te=function(t){var e=t.isDisabled,n=t.isFocused,r=t.theme,o=r.colors,i=r.borderRadius,a=r.spacing;return{alignItems:"center",backgroundColor:e?o.neutral5:o.neutral0,borderColor:e?o.neutral10:n?o.primary:o.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px "+o.primary:null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},ee=function(t){var e=t.children,n=t.cx,r=t.getStyles,o=t.className,i=t.isDisabled,a=t.isFocused,s=t.innerRef,u=t.innerProps,c=t.menuIsOpen;return A.a.createElement("div",z({ref:s,className:n(Object(_.a)(r("control",t)),{control:!0,"control--is-disabled":i,"control--is-focused":a,"control--menu-is-open":c},o)},u),e)},ne=function(t){var e=t.theme.spacing;return{paddingBottom:2*e.baseUnit,paddingTop:2*e.baseUnit}},re=function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles,i=t.Heading,a=t.headingProps,s=t.label,u=t.theme,c=t.selectProps;return A.a.createElement("div",{className:r(Object(_.a)(o("group",t)),{group:!0},n)},A.a.createElement(i,z({},a,{selectProps:c,theme:u,getStyles:o,cx:r}),s),A.a.createElement("div",null,e))},oe=function(t){var e=t.theme.spacing;return{color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*e.baseUnit,paddingRight:3*e.baseUnit,textTransform:"uppercase"}},ie=function(t){var e=t.className,n=t.cx,r=t.getStyles,o=t.theme,i=(t.selectProps,H(t,["className","cx","getStyles","theme","selectProps"]));return A.a.createElement("div",z({className:n(Object(_.a)(r("groupHeading",z({theme:o},i))),{"group-heading":!0},e)},i))},ae=function(t){var e=t.isDisabled,n=t.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:e?"hidden":"visible",color:o.neutral80}},se=function(t){return{background:0,border:0,fontSize:"inherit",opacity:t?0:1,outline:0,padding:0,color:"inherit"}},ue=function(t){var e=t.className,n=t.cx,r=t.getStyles,o=t.innerRef,i=t.isHidden,a=t.isDisabled,s=t.theme,u=(t.selectProps,H(t,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return A.a.createElement("div",{className:Object(_.a)(r("input",z({theme:s},u)))},A.a.createElement(F.a,z({className:n(null,{input:!0},e),inputRef:o,inputStyle:se(i),disabled:a},u)))},ce=function(t){var e=t.theme,n=e.spacing,r=e.borderRadius;return{backgroundColor:e.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},le=function(t){var e=t.theme,n=e.borderRadius,r=e.colors,o=t.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},pe=function(t){var e=t.theme,n=e.spacing,r=e.borderRadius,o=e.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:t.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},fe=function(t){var e=t.children,n=t.innerProps;return A.a.createElement("div",n,e)},de=fe,he=fe,me=function(t){function e(){return I(this,e),W(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return B(e,t),L(e,[{key:"render",value:function(){var t=this.props,e=t.children,n=t.innerProps;return A.a.createElement("div",n,e||A.a.createElement(Bt,{size:14}))}}]),e}(S.Component),ge=function(t){function e(){return I(this,e),W(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return B(e,t),L(e,[{key:"render",value:function(){var t=this.props,e=t.children,n=t.className,r=t.components,o=t.cx,i=t.data,a=t.getStyles,s=t.innerProps,u=t.isDisabled,c=t.removeProps,l=t.selectProps,p=r.Container,f=r.Label,d=r.Remove,h=z({className:o(Object(_.a)(a("multiValue",this.props)),{"multi-value":!0,"multi-value--is-disabled":u},n)},s),m={className:o(Object(_.a)(a("multiValueLabel",this.props)),{"multi-value__label":!0},n)},g=z({className:o(Object(_.a)(a("multiValueRemove",this.props)),{"multi-value__remove":!0},n)},c);return A.a.createElement(p,{data:i,innerProps:h,selectProps:l},A.a.createElement(f,{data:i,innerProps:m,selectProps:l},e),A.a.createElement(d,{data:i,innerProps:g,selectProps:l}))}}]),e}(S.Component);ge.defaultProps={cropWithEllipsis:!0};var ve=function(t){var e=t.isDisabled,n=t.isFocused,r=t.isSelected,o=t.theme,i=o.spacing,a=o.colors;return{backgroundColor:r?a.primary:n?a.primary25:"transparent",color:e?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:2*i.baseUnit+"px "+3*i.baseUnit+"px",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:r?a.primary:a.primary50}}},ye=function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles,i=t.isDisabled,a=t.isFocused,s=t.isSelected,u=t.innerRef,c=t.innerProps;return A.a.createElement("div",z({ref:u,className:r(Object(_.a)(o("option",t)),{option:!0,"option--is-disabled":i,"option--is-focused":a,"option--is-selected":s},n)},c),e)},be=function(t){var e=t.theme,n=e.spacing;return{color:e.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},Ee=function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles,i=t.innerProps;return A.a.createElement("div",z({className:r(Object(_.a)(o("placeholder",t)),{placeholder:!0},n)},i),e)},xe=function(t){var e=t.isDisabled,n=t.theme,r=n.spacing,o=n.colors;return{color:e?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - "+2*r.baseUnit+"px)",overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},we=function(t){var e=t.children,n=t.className,r=t.cx,o=t.getStyles,i=t.isDisabled,a=t.innerProps;return A.a.createElement("div",z({className:r(Object(_.a)(o("singleValue",t)),{"single-value":!0,"single-value--is-disabled":i},n)},a),e)},Ce={ClearIndicator:Gt,Control:ee,DropdownIndicator:$t,DownChevron:Ht,CrossIcon:Bt,Group:re,GroupHeading:ie,IndicatorsContainer:Vt,IndicatorSeparator:Zt,Input:ue,LoadingIndicator:Qt,Menu:X,MenuList:K,MenuPortal:it,LoadingMessage:rt,NoOptionsMessage:nt,MultiValue:ge,MultiValueContainer:de,MultiValueLabel:he,MultiValueRemove:me,Option:ye,Placeholder:Ee,SelectContainer:Dt,SingleValue:we,ValueContainer:It},Oe=function(t){return z({},Ce,t.components)},ke={clearIndicator:qt,container:Tt,control:te,dropdownIndicator:Ut,group:ne,groupHeading:oe,indicatorsContainer:Lt,indicatorSeparator:Yt,input:ae,loadingIndicator:Jt,loadingMessage:et,menu:Y,menuList:J,menuPortal:ot,multiValue:ce,multiValueLabel:le,multiValueRemove:pe,noOptionsMessage:tt,option:ve,placeholder:be,singleValue:xe,valueContainer:Mt},Se={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%)"},Ae={baseUnit:4,controlHeight:38,menuGutter:8},_e={borderRadius:4,colors:Se,spacing:Ae},Re={backspaceRemovesValue:!0,blurInputOnSelect:h(),captureMenuScroll:!h(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:dt(),formatGroupLabel:Pt,getOptionLabel:Nt,getOptionValue:jt,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Ft,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(t){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var e=t.count;return e+" result"+(1!==e?"s":"")+" available"},styles:{},tabIndex:"0",tabSelectsValue:!0},Pe=1,Ne=function(t){function e(t){I(this,e);var n=W(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));je.call(n);var r=t.value;n.cacheComponents=Object(T.a)(n.cacheComponents,y).bind(n),n.cacheComponents(t.components),n.instancePrefix="react-select-"+(n.props.instanceId||++Pe);var o=q(r),i=n.buildMenuOptions(t,o);return n.state.menuOptions=i,n.state.selectValue=o,n}return B(e,t),L(e,[{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:"componentWillReceiveProps",value:function(t){var e=this.props,n=e.options,r=e.value,o=e.inputValue;if(this.cacheComponents(t.components),t.value!==r||t.options!==n||t.inputValue!==o){var i=q(t.value),a=this.buildMenuOptions(t,i),s=this.getNextFocusedValue(i),u=this.getNextFocusedOption(a.focusable);this.setState({menuOptions:a,selectValue:i,focusedOption:u,focusedValue:s})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(t){var e=this.props,n=e.isDisabled,r=e.menuIsOpen,o=this.state.isFocused;(o&&!n&&t.isDisabled||o&&r&&!t.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&f(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 t=this.props,e=t.isSearchable,n=t.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:e,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(t,e){this.props.onInputChange(t,e)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(t){var e=this.state,n=e.menuOptions,r=e.selectValue,o=this.props.isMulti,i="first"===t?0:n.focusable.length-1;if(!o){var a=n.focusable.indexOf(r[0]);a>-1&&(i=a)}this.scrollToFocusedOptionOnUpdate=!0,this.inputIsHiddenAfterUpdate=!1,this.onMenuOpen(),this.setState({focusedValue:null,focusedOption:n.focusable[i]}),this.announceAriaLiveContext({event:"menu"})}},{key:"focusValue",value:function(t){var e=this.props,n=e.isMulti,r=e.isSearchable,o=this.state,i=o.selectValue,a=o.focusedValue;if(n){this.setState({focusedOption:null});var s=i.indexOf(a);a||(s=-1,this.announceAriaLiveContext({event:"value"}));var u=i.length-1,c=-1;if(i.length){switch(t){case"previous":c=0===s?0:-1===s?u:s-1;break;case"next":s>-1&&s0&&void 0!==arguments[0]?arguments[0]:"first",e=this.props.pageSize,n=this.state,r=n.focusedOption,o=n.menuOptions,i=o.focusable;if(i.length){var a=0,s=i.indexOf(r);r||(s=-1,this.announceAriaLiveContext({event:"menu"})),"up"===t?a=s>0?s-1:i.length-1:"down"===t?a=(s+1)%i.length:"pageup"===t?(a=s-e)<0&&(a=0):"pagedown"===t?(a=s+e)>i.length-1&&(a=i.length-1):"last"===t&&(a=i.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:i[a],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(_e):z({},_e,this.props.theme):_e}},{key:"getCommonProps",value:function(){var t=this.clearValue,e=this.getStyles,n=this.setValue,r=this.selectOption,i=this.props,a=i.classNamePrefix,s=i.isMulti,u=i.isRtl,c=i.options,l=this.state.selectValue,p=this.hasValue(),f=function(){return l},d=a;return{cx:o.bind(null,d),clearValue:t,getStyles:e,getValue:f,hasValue:p,isMulti:s,isRtl:u,options:c,selectOption:r,setValue:n,selectProps:i,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(t){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var e=this.state,n=e.focusedValue,r=e.selectValue,o=r.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o-1?e:t[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 t=this.props,e=t.isClearable,n=t.isMulti;return void 0===e?n:e}},{key:"isOptionDisabled",value:function(t,e){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(t,e)}},{key:"isOptionSelected",value:function(t,e){var n=this;if(e.indexOf(t)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(t,e);var r=this.getOptionValue(t);return e.some(function(t){return n.getOptionValue(t)===r})}},{key:"filterOption",value:function(t,e){return!this.props.filterOption||this.props.filterOption(t,e)}},{key:"formatOptionLabel",value:function(t,e){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(t,{context:e,inputValue:n,selectValue:r})}return this.getOptionLabel(t)}},{key:"formatGroupLabel",value:function(t){return this.props.formatGroupLabel(t)}},{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(t,e){var n=this,r=t.inputValue,o=void 0===r?"":r,i=t.options,a=function(t,r){var i=n.isOptionDisabled(t,e),a=n.isOptionSelected(t,e),s=n.getOptionLabel(t),u=n.getOptionValue(t);if(!(n.shouldHideSelectedOptions()&&a||!n.filterOption({label:s,value:u,data:t},o))){var c=i?void 0:function(){return n.onOptionHover(t)},l=i?void 0:function(){return n.selectOption(t)},p=n.getElementId("option")+"-"+r;return{innerProps:{id:p,onClick:l,onMouseMove:c,onMouseOver:c,role:"option",tabIndex:-1},data:t,isDisabled:i,isSelected:a,key:p,label:s,type:"option",value:u}}};return i.reduce(function(t,e,r){if(e.options){n.hasGroups||(n.hasGroups=!0);var o=e.options,i=o.map(function(e,n){var o=a(e,r+"-"+n);return o&&!o.isDisabled&&t.focusable.push(e),o}).filter(Boolean);if(i.length){var s=n.getElementId("group")+"-"+r;t.render.push({type:"group",key:s,data:e,options:i})}}else{var u=a(e,""+r);u&&(t.render.push(u),u.isDisabled||t.focusable.push(e))}return t},{render:[],focusable:[]})}},{key:"constructAriaLiveMessage",value:function(){var t=this.state,e=t.ariaLiveContext,n=t.selectValue,r=t.focusedValue,o=t.focusedOption,i=this.props,a=i.options,s=i.menuIsOpen,u=i.inputValue,c=i.screenReaderStatus;return(r?At({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"")+" "+(o&&s?_t({focusedOption:o,getOptionLabel:this.getOptionLabel,options:a}):"")+" "+Rt({inputValue:u,screenReaderMessage:c({count:this.countOptions()})})+" "+e}},{key:"renderInput",value:function(){var t=this.props,e=t.isDisabled,n=t.isSearchable,r=t.inputId,o=t.inputValue,i=t.tabIndex,a=this.components.Input,s=this.state.inputIsHidden,u=r||this.getElementId("input");if(!n)return A.a.createElement(mt,{id:u,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:$,onFocus:this.onInputFocus,readOnly:!0,disabled:e,tabIndex:i,value:""});var c={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]},l=this.commonProps,p=l.cx,f=l.theme,d=l.selectProps;return A.a.createElement(a,z({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:p,getStyles:this.getStyles,id:u,innerRef:this.getInputRef,isDisabled:e,isHidden:s,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:d,spellCheck:"false",tabIndex:i,theme:f,type:"text",value:o},c))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,e=this.components,n=e.MultiValue,r=e.MultiValueContainer,o=e.MultiValueLabel,i=e.MultiValueRemove,a=e.SingleValue,s=e.Placeholder,u=this.commonProps,c=this.props,l=c.controlShouldRenderValue,p=c.isDisabled,f=c.isMulti,d=c.inputValue,h=c.placeholder,m=this.state,g=m.selectValue,v=m.focusedValue,y=m.isFocused;if(!this.hasValue()||!l)return d?null:A.a.createElement(s,z({},u,{key:"placeholder",isDisabled:p,isFocused:y}),h);if(f){return g.map(function(e){var a=e===v;return A.a.createElement(n,z({},u,{components:{Container:r,Label:o,Remove:i},isFocused:a,isDisabled:p,key:t.getOptionValue(e),removeProps:{onClick:function(){return t.removeValue(e)},onTouchEnd:function(){return t.removeValue(e)},onMouseDown:function(t){t.preventDefault(),t.stopPropagation()}},data:e}),t.formatOptionLabel(e,"value"))})}if(d)return null;var b=g[0];return A.a.createElement(a,z({},u,{data:b,isDisabled:p}),this.formatOptionLabel(b,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.components.ClearIndicator,e=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!t||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return A.a.createElement(t,z({},e,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var t=this.components.LoadingIndicator,e=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!t||!o)return null;var a={"aria-hidden":"true"};return A.a.createElement(t,z({},e,{innerProps:a,isDisabled:r,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var t=this.components,e=t.DropdownIndicator,n=t.IndicatorSeparator;if(!e||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return A.a.createElement(n,z({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var t=this.components.DropdownIndicator;if(!t)return null;var e=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return A.a.createElement(t,z({},e,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var t=this,e=this.components,n=e.Group,r=e.GroupHeading,o=e.Menu,i=e.MenuList,a=e.MenuPortal,s=e.LoadingMessage,u=e.NoOptionsMessage,c=e.Option,l=this.commonProps,p=this.state,f=p.focusedOption,d=p.menuOptions,h=this.props,m=h.captureMenuScroll,g=h.inputValue,v=h.isLoading,y=h.loadingMessage,b=h.minMenuHeight,E=h.maxMenuHeight,x=h.menuIsOpen,w=h.menuPlacement,C=h.menuPosition,O=h.menuPortalTarget,k=h.menuShouldBlockScroll,S=h.menuShouldScrollIntoView,_=h.noOptionsMessage,R=h.onMenuScrollToTop,P=h.onMenuScrollToBottom;if(!x)return null;var N=function(e){var n=f===e.data;return e.innerRef=n?t.getFocusedOptionRef:void 0,A.a.createElement(c,z({},l,e,{isFocused:n}),t.formatOptionLabel(e.data,"menu"))},j=void 0;if(this.hasOptions())j=d.render.map(function(e){if("group"===e.type){var o=(e.type,H(e,["type"])),i=e.key+"-heading";return A.a.createElement(n,z({},l,o,{Heading:r,headingProps:{id:i},label:t.formatGroupLabel(e.data)}),e.options.map(function(t){return N(t)}))}if("option"===e.type)return N(e)});else if(v){var F=y({inputValue:g});if(null===F)return null;j=A.a.createElement(s,l,F)}else{var T=_({inputValue:g});if(null===T)return null;j=A.a.createElement(u,l,T)}var D={minMenuHeight:b,maxMenuHeight:E,menuPlacement:w,menuPosition:C,menuShouldScrollIntoView:S},M=A.a.createElement(Z,z({},l,D),function(e){var n=e.ref,r=e.placerProps,a=r.placement,s=r.maxHeight;return A.a.createElement(o,z({},l,D,{innerRef:n,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:v,placement:a}),A.a.createElement(Ot,{isEnabled:m,onTopArrive:R,onBottomArrive:P},A.a.createElement(wt,{isEnabled:k},A.a.createElement(i,z({},l,{innerRef:t.getMenuListRef,isLoading:v,maxHeight:s}),j))))});return O||"fixed"===C?A.a.createElement(a,z({},l,{appendTo:O,controlElement:this.controlRef,menuPlacement:w,menuPosition:C}),M):M}},{key:"renderFormField",value:function(){var t=this,e=this.props,n=e.delimiter,r=e.isDisabled,o=e.isMulti,i=e.name,a=this.state.selectValue;if(i&&!r){if(o){if(n){var s=a.map(function(e){return t.getOptionValue(e)}).join(n);return A.a.createElement("input",{name:i,type:"hidden",value:s})}var u=a.length>0?a.map(function(e,n){return A.a.createElement("input",{key:"i-"+n,name:i,type:"hidden",value:t.getOptionValue(e)})}):A.a.createElement("input",{name:i,type:"hidden"});return A.a.createElement("div",null,u)}var c=a[0]?this.getOptionValue(a[0]):"";return A.a.createElement("input",{name:i,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?A.a.createElement(ht,{"aria-live":"assertive"},A.a.createElement("p",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),A.a.createElement("p",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var t=this.components,e=t.Control,n=t.IndicatorsContainer,r=t.SelectContainer,o=t.ValueContainer,i=this.props,a=i.className,s=i.id,u=i.isDisabled,c=i.menuIsOpen,l=this.state.isFocused,p=this.commonProps=this.getCommonProps();return A.a.createElement(r,z({},p,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:l}),this.renderLiveRegion(),A.a.createElement(e,z({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:l,menuIsOpen:c}),A.a.createElement(o,z({},p,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),A.a.createElement(n,z({},p,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),e}(S.Component);Ne.defaultProps=Re;var je=function(){var t=this;this.state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,isComposing:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},this.blockOptionHover=!1,this.clearFocusValueOnUpdate=!1,this.hasGroups=!1,this.initialTouchX=0,this.initialTouchY=0,this.instancePrefix="",this.openAfterFocus=!1,this.scrollToFocusedOptionOnUpdate=!1,this.controlRef=null,this.getControlRef=function(e){t.controlRef=e},this.focusedOptionRef=null,this.getFocusedOptionRef=function(e){t.focusedOptionRef=e},this.menuListRef=null,this.getMenuListRef=function(e){t.menuListRef=e},this.inputRef=null,this.getInputRef=function(e){t.inputRef=e},this.cacheComponents=function(e){t.components=Oe({components:e})},this.focus=this.focusInput,this.blur=this.blurInput,this.onChange=function(e,n){var r=t.props,o=r.onChange,i=r.name;o(e,z({},n,{name:i}))},this.setValue=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",r=arguments[2],o=t.props,i=o.closeMenuOnSelect,a=o.isMulti;t.onInputChange("",{action:"set-value"}),i&&(t.inputIsHiddenAfterUpdate=!a,t.onMenuClose()),t.clearFocusValueOnUpdate=!0,t.onChange(e,{action:n,option:r})},this.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect;if(n.isMulti){var o=t.state.selectValue;if(t.isOptionSelected(e,o)){var i=t.getOptionValue(e);t.setValue(o.filter(function(e){return t.getOptionValue(e)!==i}),"deselect-option",e),t.announceAriaLiveSelection({event:"deselect-option",context:{value:t.getOptionLabel(e)}})}else t.setValue([].concat(U(o),[e]),"select-option",e),t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e)}})}else t.setValue(e,"select-option"),t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e)}});r&&t.blurInput()},this.removeValue=function(e){var n=t.state.selectValue,r=t.getOptionValue(e);t.onChange(n.filter(function(e){return t.getOptionValue(e)!==r}),{action:"remove-value",removedValue:e}),t.announceAriaLiveSelection({event:"remove-value",context:{value:e?t.getOptionLabel(e):void 0}}),t.focusInput()},this.clearValue=function(){var e=t.props.isMulti;t.onChange(e?[]:null,{action:"clear"})},this.popValue=function(){var e=t.state.selectValue,n=e[e.length-1];t.announceAriaLiveSelection({event:"pop-value",context:{value:n?t.getOptionLabel(n):void 0}}),t.onChange(e.slice(0,e.length-1),{action:"pop-value",removedValue:n})},this.getOptionLabel=function(e){return t.props.getOptionLabel(e)},this.getOptionValue=function(e){return t.props.getOptionValue(e)},this.getStyles=function(e,n){var r=ke[e](n);r.boxSizing="border-box";var o=t.props.styles[e];return o?o(r,n):r},this.getElementId=function(e){return t.instancePrefix+"-"+e},this.getActiveDescendentId=function(){var e=t.props.menuIsOpen,n=t.state,r=n.menuOptions,o=n.focusedOption;if(o&&e){var i=r.focusable.indexOf(o),a=r.render[i];return a&&a.key}},this.announceAriaLiveSelection=function(e){var n=e.event,r=e.context;t.setState({ariaLiveSelection:St(n,r)})},this.announceAriaLiveContext=function(e){var n=e.event,r=e.context;t.setState({ariaLiveContext:kt(n,z({},r,{label:t.props["aria-label"]}))})},this.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},this.onMenuMouseMove=function(e){t.blockOptionHover=!1},this.onControlMouseDown=function(e){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&t.onMenuClose():t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&e.preventDefault()},this.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.inputIsHiddenAfterUpdate=!r,t.onMenuClose()):t.openMenu("first"),e.preventDefault(),e.stopPropagation()}},this.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.stopPropagation(),t.openAfterFocus=!1,setTimeout(function(){return t.focusInput()}))},this.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&a(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},this.onCompositionStart=function(){t.setState({isComposing:!0})},this.onCompositionEnd=function(){t.setState({isComposing:!1})},this.onTouchStart=function(e){var n=e.touches,r=n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},this.onTouchMove=function(e){var n=e.touches,r=n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),i=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||i>5}},this.onTouchEnd=function(e){if(!t.userIsDragging){var n=e.target;t.controlRef&&!t.controlRef.contains(n)&&t.menuListRef&&!t.menuListRef.contains(n)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0}},this.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},this.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},this.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},this.handleInputChange=function(e){var n=e.currentTarget.value;t.inputIsHiddenAfterUpdate=!1,t.onInputChange(n,{action:"input-change"}),t.onMenuOpen()},this.onInputFocus=function(e){var n=t.props,r=n.isSearchable,o=n.isMulti;t.props.onFocus&&t.props.onFocus(e),t.inputIsHiddenAfterUpdate=!1,t.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:o}}),t.setState({isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},this.onInputBlur=function(e){if(t.menuListRef&&t.menuListRef.contains(document.activeElement))return void t.inputRef.focus();t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur"}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1})},this.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},this.shouldHideSelectedOptions=function(){var e=t.props,n=e.hideSelectedOptions,r=e.isMulti;return void 0===n?r:n},this.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,i=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,u=n.isDisabled,c=n.menuIsOpen,l=n.onKeyDown,p=n.tabSelectsValue,f=n.openMenuOnFocus,d=t.state,h=d.isComposing,m=d.focusedOption,g=d.focusedValue,v=d.selectValue;if(!(u||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(g)t.removeValue(g);else{if(!o)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(h)return;if(e.shiftKey||!c||!p||!m||f&&t.isOptionSelected(m,v))return;t.selectOption(m);break;case"Enter":if(c){if(!m)return;if(h)return;t.selectOption(m)}else t.focusOption("first");break;case"Escape":c?(t.inputIsHiddenAfterUpdate=!1,t.onInputChange("",{action:"menu-close"}),t.onMenuClose()):s&&i&&t.clearValue();break;case" ":if(a)return;if(!c){t.openMenu("first");break}if(!m)return;t.selectOption(m);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}}},Fe={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},Te=function(t){var e,n;return n=e=function(e){function n(){var t,e,r,o;I(this,n);for(var i=arguments.length,a=Array(i),s=0;s1?n-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:"",e=arguments[1],n=String(t).toLowerCase(),r=String(e.value).toLowerCase(),o=String(e.label).toLowerCase();return r===n||o===n},Ve={formatCreateLabel:function(t){return'Create "'+t+'"'},isValidNewOption:function(t,e,n){return!(!t||e.some(function(e){return Le(t,e)})||n.some(function(e){return Le(t,e)}))},getNewOptionData:function(t,e){return{label:e,value:t,__isNew__:!0}}},ze=z({allowCreateWhileLoading:!1,createOptionPosition:"last"},Ve),Be=function(t){var e,n;return n=e=function(e){function n(t){I(this,n);var e=W(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t));e.onChange=function(t,n){var r=e.props,o=r.getNewOptionData,i=r.inputValue,a=r.isMulti,s=r.onChange,u=r.onCreateOption,c=r.value;if("select-option"!==n.action)return s(t,n);var l=e.state.newOption,p=Array.isArray(t)?t:[t];if(p[p.length-1]!==l)s(t,n);else if(u)u(i);else{var f=o(i,i),d={action:"create-option"};a?s([].concat(U(q(c)),[f]),d):s(f,d)}};var r=t.options||[];return e.state={newOption:void 0,options:r},e}return B(n,e),L(n,[{key:"componentWillReceiveProps",value:function(t){var e=t.allowCreateWhileLoading,n=t.createOptionPosition,r=t.formatCreateLabel,o=t.getNewOptionData,i=t.inputValue,a=t.isLoading,s=t.isValidNewOption,u=t.value,c=t.options||[],l=this.state.newOption;l=s(i,q(u),c)?o(i,r(i)):void 0,this.setState({newOption:l,options:!e&&a||!l?c:"first"===n?[l].concat(U(c)):[].concat(U(c),[l])})}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"render",value:function(){var e=this,n=H(this.props,[]),r=this.state.options;return A.a.createElement(t,z({},n,{ref:function(t){e.select=t},options:r,onChange:this.onChange}))}}]),n}(S.Component),e.defaultProps=ze,n},He=Te(Be(Ne)),We=Me(Te(Be(Ne))),Ue=function(t){var e=t.component,n=t.duration,r=void 0===n?1:n,o=t.in,i=(t.onExited,H(t,["component","duration","in","onExited"])),a={entering:{opacity:0},entered:{opacity:1,transition:"opacity "+r+"ms"},exiting:{opacity:0},exited:{opacity:0}};return A.a.createElement(D.Transition,{mountOnEnter:!0,unmountOnExit:!0,in:o,timeout:r},function(t){var n={style:z({},a[t])};return A.a.createElement(e,z({innerProps:n},i))})},$e=260,qe=function(t){function e(){var t,n,r,o;I(this,e);for(var i=arguments.length,a=Array(i),s=0;s css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`"),o.call(this,void 0===this?e():e(this.mergedProps,this.context),n);case"object":return i.call(this,e);default:var a=k.registered[e];return!1===n&&void 0!==a?a:e}}function i(e){if(N.has(e))return N.get(e);var n="";return Array.isArray(e)?e.forEach(function(t){n+=o.call(this,t,!1)},this):Object.keys(e).forEach(function(r){if("object"!=typeof e[r])void 0!==k.registered[e[r]]?n+=r+"{"+k.registered[e[r]]+"}":n+=d(r)+":"+h(r,e[r])+";";else{if("NO_COMPONENT_SELECTOR"===r&&"production"!==t.env.NODE_ENV)throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");Array.isArray(e[r])&&"string"==typeof e[r][0]&&void 0===k.registered[e[r][0]]?e[r].forEach(function(t){n+=d(r)+":"+h(r,t)+";"}):n+=r+"{"+o.call(this,e[r],!1)+"}"}},this),N.set(e,n),n}function a(t,e){void 0===k.inserted[_]&&(w="",A(t,e),k.inserted[_]=w)}function s(t,e){var n="";return e.split(" ").forEach(function(e){void 0!==k.registered[e]?t.push(e):n+=e+" "}),n}function l(t,e){var n=[],r=s(n,t);return n.length<2?t:r+L(n,e)}function f(){for(var t=arguments.length,e=new Array(t),n=0;n1?i-1:0),s=1;s=4;)e=255&t.charCodeAt(o)|(255&t.charCodeAt(++o))<<8|(255&t.charCodeAt(++o))<<16|(255&t.charCodeAt(++o))<<24,e=1540483477*(65535&e)+((1540483477*(e>>>16)&65535)<<16),e^=e>>>24,e=1540483477*(65535&e)+((1540483477*(e>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^e,n-=4,++o;switch(n){case 3:r^=(255&t.charCodeAt(o+2))<<16;case 2:r^=(255&t.charCodeAt(o+1))<<8;case 1:r^=255&t.charCodeAt(o),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)}return r^=r>>>13,r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16),r^=r>>>15,(r>>>0).toString(36)}e.a=r},function(t,e,n){"use strict";function r(t){function e(t,r,u,c,l){for(var d,h,m,g,v,x=0,C=0,O=0,k=0,S=0,A=0,F=m=d=0,D=0,I=0,L=0,V=0,z=u.length,B=z-1,H="",W="",U="",$="";Dd)&&(V=(H=H.replace(" ",":")).length),0r&&(r=(e=e.trim()).charCodeAt(0)),r){case 38:return e.replace(v,"$1"+t.trim());case 58:return t.trim()+e.replace(v,"$1"+t.trim());default:if(0<1*n&&0u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102r.charCodeAt(0)&&(r=r.trim()),I=r,r=[I],0=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e=0||(o[n]=t[n]);return o}function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}e.__esModule=!0,e.default=void 0;var s=o(n(3)),u=o(n(2)),c=n(8),l=o(n(22)),p=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),o=0;o .components-base-control {\n\t\t\tflex-basis: 60%;\n\t\t\tmargin: 0;\n\n\t\t\t.components-text-control__input,\n\t\t\t.components-base-control__field {\n\t\t\t\tmargin: 0;\n\t\t\t}\n\t\t}\n\t\t> button {\n\t\t\tmargin-left: 2%;\n\t\t\tflex-basis: 38%;\n\t\t}\n\t}\n\n\t.checkbox {\n\t\t.components-base-control__field {\n\t\t\tdisplay: flex;\n\t\t\talign-items: top;\n\t\t}\n\t\tinput[type="checkbox"] {\n\t\t\tmin-width: 22px;\n\t\t\tmargin-right: 15px;\n\t\t\ttransform: translateY(6px);\n\t\t}\n\t}\n\n\t.components-checkbox-control__label {\n\t\tfont-size: 16px;\n\t\tfont-weight: normal;\n\t\tline-height: 1.7;\n\t}\n'],["\n\tbackground: #fff;\n\tpadding: 75px 85px;\n\tborder-radius: 4px;\n\tmargin-bottom: 40px;\n\n\t.heading,\n\t.components-base-control__label {\n\t\tcolor: #060606;\n\t\tfont-weight: 700;\n\t\tfont-size: 20.25px;\n\t\tmargin-top: 0;\n\t\tmargin-bottom: 30px;\n\t}\n\n\t.instruction {\n\t\tfont-size: 16px;\n\t\tcolor: #060606;\n\t}\n\n\t.license-action {\n\t\theight: auto;\n\t\twidth: 175px;\n\t\tbox-shadow: none !important;\n\t\toutline: 0 !important;\n\t\t&:hover {\n\t\t\tbackground: ",';\n\t\t\tcolor: #fff;\n\t\t}\n\t}\n\n\t.fieldgroup {\n\t\tdisplay: flex;\n\n\t\t> .components-base-control {\n\t\t\tflex-basis: 60%;\n\t\t\tmargin: 0;\n\n\t\t\t.components-text-control__input,\n\t\t\t.components-base-control__field {\n\t\t\t\tmargin: 0;\n\t\t\t}\n\t\t}\n\t\t> button {\n\t\t\tmargin-left: 2%;\n\t\t\tflex-basis: 38%;\n\t\t}\n\t}\n\n\t.checkbox {\n\t\t.components-base-control__field {\n\t\t\tdisplay: flex;\n\t\t\talign-items: top;\n\t\t}\n\t\tinput[type="checkbox"] {\n\t\t\tmin-width: 22px;\n\t\t\tmargin-right: 15px;\n\t\t\ttransform: translateY(6px);\n\t\t}\n\t}\n\n\t.components-checkbox-control__label {\n\t\tfont-size: 16px;\n\t\tfont-weight: normal;\n\t\tline-height: 1.7;\n\t}\n']),m=n(6),g=r(m),v=n(1),y=r(v),b=n(64),E=n(10),x=n(4),w=r(x),C=n(9),O=n(5),k=n(67),S=r(k),A=n(7),_=wp.components,R=_.TextControl,P=_.CheckboxControl,N=_.Button,j=_.ExternalLink,F=(_.IconButton,wp.i18n),T=F.__,D=F.sprintf,M=React,I=M.Fragment,L=y.default.div(f),V=y.default.div(d),z=y.default.section(h,O.Theme.accent),B=function(t){function e(){a(this,e);var t=s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));return t.state={licenseStatus:AGWP.license.status,licenseMessage:AGWP.license.message||null,requesting:!1},t}return u(e,t),p(e,[{key:"updateSetting",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this.context.state.settings,a=l({},o,i({},t,e));this.context.dispatch({settings:a}),r&&r(T("Settings updated.","ang")),n||(0,C.requestSettingUpdate)(t,e).catch(function(t){console.error("An error occured updating settings",t)})}},{key:"render",value:function(){var t=this,e=this.context.state.settings,n="valid"===this.state.licenseStatus?T("Deactivate","ang"):T("Activate","ang");return React.createElement(L,null,React.createElement(V,null,React.createElement("h2",{style:{fontSize:"25px",marginBottom:"50px"}},T("Plugin Settings","ang")),(0,A.hasProTemplates)(this.context.state.templates)&&React.createElement(z,null,React.createElement("div",{className:"license-container"},React.createElement("h3",{className:"heading"},T("Pro License","ang")),React.createElement("p",{className:"instruction"},T("If you own an AnalogPro License, then please enter your license key here.","ang")),React.createElement("div",{className:"fieldgroup"},React.createElement(R,{label:"",value:e.ang_license_key||"",onChange:function(e){return t.updateSetting("ang_license_key",e)}}),e.ang_license_key&&React.createElement(E.NotificationConsumer,null,function(e){var r=e.add;return React.createElement(N,{isDefault:!0,isLarge:!0,className:"ang-button license-action",onClick:o(regeneratorRuntime.mark(function e(){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.setState({requesting:!0}),n="valid"===t.state.licenseStatus?"deactivate":"activate",e.next=4,(0,C.requestLicenseInfo)(n).then(function(e){(0,b.isObject)(e.errors)?Object.entries(e.errors).map(function(t){r(t[1],"error")}):t.setState({licenseStatus:e.status,licenseMessage:e.message})}).catch(function(){r(T("Connection timeout, please try again.","ang"),"error")});case 4:t.setState({requesting:!1});case 5:case"end":return e.stop()}},e,t)}))},t.state.requesting?T("Processing..."):n)})),e.ang_license_key&&React.createElement(I,null,this.state.licenseMessage&&React.createElement("p",{className:(0,g.default)("license-status",this.state.licenseStatus),dangerouslySetInnerHTML:{__html:this.state.licenseMessage}})),!e.ang_license_key&&React.createElement("p",null,T("If you do not have a license key, you can get one from")," "," ",React.createElement(j,{className:"ang-link",href:"https://analogwp.com/"},"AnalogWP")))),React.createElement(E.NotificationConsumer,null,function(n){var r=n.add;return React.createElement(I,null,React.createElement(z,{className:"global-settings"},React.createElement("h3",{className:"heading"},T("Usage Data Tracking","ang")),React.createElement(P,{label:T("Opt-in to our anonymous plugin data collection and to updates. We guarantee no sensitive data is collected.","ang"),checked:!!e.ang_data_collection&&e.ang_data_collection,className:"checkbox",onChange:function(e){return t.updateSetting("ang_data_collection",e,!1,r)}}),React.createElement(j,{className:"ang-link",href:"https://docs.analogwp.com/article/547-what-data-is-tracked-by-the-plugin"},T("More Info","ang"))),React.createElement(z,{className:"global-settings"},React.createElement("h3",{className:"heading"},T("Rollback Version")),React.createElement(N,{href:AGWP.rollback_url,className:"ang-button"},D(T("Reinstall version %s","ang"),AGWP.rollback_version)),React.createElement("p",{className:"description"},T("If you are having issues with current version of Analog Templates, you can rollback to a previous stable version.","ang"))),React.createElement(z,{className:"global-settings"},React.createElement("h3",{className:"heading"},T("Template Settings","ang")),React.createElement(P,{label:T("Remove Styling from typographic elements","ang"),help:T("This setting will remove any values that have been manually added in the templates. Existing templates are not affected.","ang"),checked:e.ang_remove_typography||!1,className:"checkbox",onChange:function(e){return t.updateSetting("ang_remove_typography",e,!1,r)}}),React.createElement(j,{className:"ang-link",href:"https://docs.analogwp.com/article/544-remove-styling-from-typographic-elements"},T("More Info","ang"))))})),React.createElement(S.default,null))}}]),e}(React.Component);B.contextType=w.default,e.default=B},function(t,e,n){(function(t,r){function o(t,n){var r={seen:[],stylize:a};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(n)?r.showHidden=n:n&&e._extend(r,n),x(r.showHidden)&&(r.showHidden=!1),x(r.depth)&&(r.depth=2),x(r.colors)&&(r.colors=!1),x(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=i),u(r,t,r.depth)}function i(t,e){var n=o.styles[e];return n?"["+o.colors[n][0]+"m"+t+"["+o.colors[n][1]+"m":t}function a(t,e){return t}function s(t){var e={};return t.forEach(function(t,n){e[t]=!0}),e}function u(t,n,r){if(t.customInspect&&n&&S(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,t);return b(o)||(o=u(t,o,r)),o}var i=c(t,n);if(i)return i;var a=Object.keys(n),m=s(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(n)),k(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return l(n);if(0===a.length){if(S(n)){var g=n.name?": "+n.name:"";return t.stylize("[Function"+g+"]","special")}if(w(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(O(n))return t.stylize(Date.prototype.toString.call(n),"date");if(k(n))return l(n)}var v="",y=!1,E=["{","}"];if(h(n)&&(y=!0,E=["[","]"]),S(n)){v=" [Function"+(n.name?": "+n.name:"")+"]"}if(w(n)&&(v=" "+RegExp.prototype.toString.call(n)),O(n)&&(v=" "+Date.prototype.toUTCString.call(n)),k(n)&&(v=" "+l(n)),0===a.length&&(!y||0==n.length))return E[0]+v+E[1];if(r<0)return w(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special");t.seen.push(n);var x;return x=y?p(t,n,r,m,a):a.map(function(e){return f(t,n,r,m,e,y)}),t.seen.pop(),d(x,v,E)}function c(t,e){if(x(e))return t.stylize("undefined","undefined");if(b(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return y(e)?t.stylize(""+e,"number"):m(e)?t.stylize(""+e,"boolean"):g(e)?t.stylize("null","null"):void 0}function l(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,n,r,o){for(var i=[],a=0,s=e.length;a-1&&(s=i?s.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+s.split("\n").map(function(t){return" "+t}).join("\n"))):s=t.stylize("[Circular]","special")),x(a)){if(i&&o.match(/^\d+$/))return s;a=JSON.stringify(""+o),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function d(t,e,n){var r=0;return t.reduce(function(t,e){return r++,e.indexOf("\n")>=0&&r++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function h(t){return Array.isArray(t)}function m(t){return"boolean"==typeof t}function g(t){return null===t}function v(t){return null==t}function y(t){return"number"==typeof t}function b(t){return"string"==typeof t}function E(t){return"symbol"==typeof t}function x(t){return void 0===t}function w(t){return C(t)&&"[object RegExp]"===_(t)}function C(t){return"object"==typeof t&&null!==t}function O(t){return C(t)&&"[object Date]"===_(t)}function k(t){return C(t)&&("[object Error]"===_(t)||t instanceof Error)}function S(t){return"function"==typeof t}function A(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t}function _(t){return Object.prototype.toString.call(t)}function R(t){return t<10?"0"+t.toString(10):t.toString(10)}function P(){var t=new Date,e=[R(t.getHours()),R(t.getMinutes()),R(t.getSeconds())].join(":");return[t.getDate(),D[t.getMonth()],e].join(" ")}function N(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var j=/%[sdj%]/g;e.format=function(t){if(!b(t)){for(var e=[],n=0;n=i)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}}),s=r[n];n div {\n\t\tpadding: 30px 70px;\n\t}\n\n\t.social-links {\n\t\ta {\n\t\t\tbackground: #3F4346;\n\t\t\twidth: 44px;\n\t\t\theight: 44px;\n\t\t\tdisplay: inline-flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\tborder-radius: 4px;\n\t\t\tcolor: #fff;\n\t\t\tfont-size: 20px;\n\n\t\t\t+ a {\n\t\t\t\tmargin-left: 10px;\n\t\t\t}\n\t\t}\n\t}\n\n\t.ang-button {\n\t\twidth: 100%;\n\t}\n\n\tlabel {\n\t\tcolor: #060606;\n\t\tfont-weight: bold;\n\t\tfont-size: 14.22px;\n\t}\n\n\t.sub {\n\t\tmargin-top: 30px;\n\t}\n\n\t.message {\n\t\tcolor: #61A670;\n\t}\n"],["\n\tcolor: #060606;\n\tpadding-top: 80px;\n\tfont-size: 16px;\n\n\tp, li {\n\t\tfont-size: inherit;\n\t}\n\n\ta {\n\t\tcolor: #3152FF;\n\t\ttext-decoration: none;\n\t}\n\n\tul {\n\t\tlist-style: disc;\n\t\tlist-style-position: inside;\n\t}\n\th3 {\n\t\tcolor: #060606;\n\t\tfont-size: 20.25px;\n\t\tfont-weight: 700;\n\t\tline-height: 1.4;\n\t}\n\t> div {\n\t\tpadding: 30px 70px;\n\t}\n\n\t.social-links {\n\t\ta {\n\t\t\tbackground: #3F4346;\n\t\t\twidth: 44px;\n\t\t\theight: 44px;\n\t\t\tdisplay: inline-flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\tborder-radius: 4px;\n\t\t\tcolor: #fff;\n\t\t\tfont-size: 20px;\n\n\t\t\t+ a {\n\t\t\t\tmargin-left: 10px;\n\t\t\t}\n\t\t}\n\t}\n\n\t.ang-button {\n\t\twidth: 100%;\n\t}\n\n\tlabel {\n\t\tcolor: #060606;\n\t\tfont-weight: bold;\n\t\tfont-size: 14.22px;\n\t}\n\n\t.sub {\n\t\tmargin-top: 30px;\n\t}\n\n\t.message {\n\t\tcolor: #61A670;\n\t}\n"]),s=n(1),u=r(s),c=n(4),l=r(c),p=n(7),f=wp.i18n.__,d=wp.components,h=d.ExternalLink,m=d.Dashicon,g=d.TextControl,v=d.Button,y=u.default.div(a),b=function(){var t=React.useContext(l.default),e=t.state,n=React.useState(AGWP.user.email),r=i(n,2),a=r[0],s=r[1],u=React.useState(!1),c=i(u,2),d=c[0],b=c[1],E=React.useState(""),x=i(E,2),w=x[0],C=x[1],O=function(){var t=o(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:b(!0),jQuery.ajax({url:"https://analogwp.com/?ang-api=asdf&request=subscribe_newsletter",cache:!1,type:"POST",dataType:"JSON",data:{email:a},error:function(){b(!1),C(f("An error occured","ang"))},success:function(){b(!1),C("Successfully subscribed!!!")}});case 2:case"end":return t.stop()}},t,void 0)}));return function(){return t.apply(this,arguments)}}();return React.createElement(y,null,React.createElement("div",null,React.createElement("h3",null,f("Sign up for updates","ang")),React.createElement("p",null,f("Sign up to Analog Newsletter and get notified about product updates, freebies and more.","ang")),React.createElement("div",{className:"sub"},React.createElement(g,{type:"email",value:a,onChange:function(t){return s(t)},placeholder:f("Enter your email","ang")}),React.createElement(v,{className:"ang-button",onClick:O},d?f("Sending...","ang"):f("Sign up to newsletter","ang")),w&&React.createElement("p",{className:"message"},w))),React.createElement("div",null,React.createElement("h3",null,f("Docs","ang")),React.createElement("p",null,f("Need help setting up? We have a number of handy articles to get you started.","ang")),React.createElement("p",null,React.createElement(h,{className:"ang-link",href:"https://docs.analogwp.com/"},f("Read Documentation","ang")))),React.createElement("div",{className:"social-links"},React.createElement("h3",null,f("Follow on Social")),React.createElement("a",{href:"https://facebook.com/analogwp",target:"_blank",rel:"external noreferrer noopener",style:{background:"#3C5B96"}},React.createElement(m,{icon:"facebook-alt"})),React.createElement("a",{href:"https://twitter.com/analogwp",style:{background:"#29A3EF"},target:"_blank",rel:"external noreferrer noopener"},React.createElement(m,{icon:"twitter"})),React.createElement("a",{href:"https://analogwp.com/",target:"_blank",rel:"external noreferrer noopener"},React.createElement(m,{icon:"admin-site"}))),(0,p.hasProTemplates)(e.templates)&&"valid"!==AGWP.license.status&&React.createElement("div",null,React.createElement("h3",null,f("Elevate to Analog Pro","ang")),React.createElement("p",null,f("Do more with Analog Pro, the design library for complete Elementor-powered sites.","ang")),React.createElement("ul",null,React.createElement("li",null,f("Access to all templates","ang")),React.createElement("li",null,f("New designs every week","ang")),React.createElement("li",null,f("Flexible Licensing","ang")),React.createElement("li",null,f("Pro Elements, theme builder layouts","ang")),React.createElement("li",null,f("Requires Elementor Pro","ang"))),React.createElement("p",null,React.createElement(h,{className:"ang-link",href:"https://analogwp.com/"},f("More Details","ang")))))};e.default=b},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){return function(){var e=t.apply(this,arguments);return new Promise(function(t,n){function r(o,i){try{var a=e[o](i),s=a.value}catch(t){return void n(t)}if(!a.done)return Promise.resolve(s).then(function(t){r("next",t)},function(t){r("throw",t)});t(s)}return r("next")})}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1];return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r.setState({importing:!0}),!(n=r.state.template.version)){t.next=7;break}if(!(parseFloat(AGWP.version)=1&&e.state.templates.map(function(n){if(!e.state.showFree||!Boolean(n.is_pro))return React.createElement("li",{key:n.id},n.is_pro&&React.createElement("span",{className:"pro"},F("Pro","ang")),(0,N.isNewTheme)(n.published)>-14&&React.createElement("span",{className:"new"},F("New","ang")),React.createElement("figure",null,n.thumbnail&&React.createElement(b.default,{template:n}),React.createElement("div",{className:"actions"},React.createElement("button",{className:"ang-button",onClick:function(){return t.setModalContent(n)}},F("Preview","ang")),React.createElement("button",{className:"ang-button",onClick:function(){return t.importLayout(n)}},F("Import","ang")))),React.createElement("div",{className:"content"},React.createElement("h3",null,j(n.title)),React.createElement("button",{className:(0,p.default)("button-plain",{"is-active":n.id in t.context.state.favorites}),onClick:function(){var e=t.context.state.favorites;if(t.context.markFavorite(n.id,!(n.id in e)),n.id in e?delete e[n.id]:e[n.id]=!(n.id in e),t.context.dispatch({favorites:e}),t.context.state.showing_favorites){var r=t.context.state.templates.filter(function(t){return t.id in e});t.context.dispatch({templates:r})}}},React.createElement(C.default,null))),n.tags&&React.createElement("div",{className:"tags"},n.tags.map(function(t){return React.createElement("span",{key:t},t)})))})})))}}]),e}(React.Component);H.contextType=m.default,e.default=H},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}Object.defineProperty(e,"__esModule",{value:!0});var o=Object.assign||function(t){for(var e=1;e expected to receive a single React element child.\n\nSee https://goo.gl/LrBNgw for more info.",_=" needs a DOM element to compute boundaries. The child you passed is neither a DOM element (e.g.
) nor does it use the innerRef prop.\n\nSee https://goo.gl/LrBNgw for more info.",R=void 0,P=[],N=function(){function t(t,e){for(var n=0;n1?e-1:0),r=1;r2?n-2:0),o=2;o1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),r)}function y(t){function e(e,n,r,o,i){if("function"!=typeof t)return new f("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var s=e[n],c=O(s);if("object"!==c)return new f("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var l in s)if(u(s,l)){var p=t(s,l,r,o,i+"."+l,a);if(p instanceof Error)return p}return null}return d(e)}function b(t){function n(e,n,r,o,i){for(var s=0;s=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}Object.defineProperty(e,"__esModule",{value:!0});var a=i(["\n from {\n margin-top: 50px;\n }\n\n to {\n margin-top: 0;\n }\n"],["\n from {\n margin-top: 50px;\n }\n\n to {\n margin-top: 0;\n }\n"]),s=i(["\n\tfont-size: 15px;\n\tfont-weight: 500;\n\tcolor: #6d6d6d;\n\tfont-family: 'Poppins', sans-serif;\n\tposition: fixed;\n top: 0;\n left: 0;\n background: rgba(0,0,0,0.62);\n width: 100%;\n height: 100%;\n z-index: 10000;\n\tdisplay: flex;\n align-items: center;\n justify-content: center;\n\n\t.inner {\n\t\tbackground: #fff;\n\t\tborder-radius: 4px;\n\t\toverflow: scroll;\n\t\twidth: 600px;\n\t\tmax-height: 80vh;\n\t\tanimation-fill-mode: forwards;\n\t\tanimation: "," 0.1s ease-out;\n\t}\n\n\tp {\n\t\tfont-size: inherit;\n\t}\n\n\ta {\n\t\tcolor: #3152FF;\n\t\ttext-decoration: none;\n\t}\n"],["\n\tfont-size: 15px;\n\tfont-weight: 500;\n\tcolor: #6d6d6d;\n\tfont-family: 'Poppins', sans-serif;\n\tposition: fixed;\n top: 0;\n left: 0;\n background: rgba(0,0,0,0.62);\n width: 100%;\n height: 100%;\n z-index: 10000;\n\tdisplay: flex;\n align-items: center;\n justify-content: center;\n\n\t.inner {\n\t\tbackground: #fff;\n\t\tborder-radius: 4px;\n\t\toverflow: scroll;\n\t\twidth: 600px;\n\t\tmax-height: 80vh;\n\t\tanimation-fill-mode: forwards;\n\t\tanimation: "," 0.1s ease-out;\n\t}\n\n\tp {\n\t\tfont-size: inherit;\n\t}\n\n\ta {\n\t\tcolor: #3152FF;\n\t\ttext-decoration: none;\n\t}\n"]),u=i(["\n\tmargin: 0 45px;\n\tpadding: 20px 0;\n\tborder-bottom: 2px solid #F1F1F1;\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tposition: sticky;\n top: 0;\n background: #fff;\n\n\th1 {\n\t\tfont-size: 13px;\n\t\tfont-weight: bold;\n\t\tcolor: #060606;\n\t\tmargin: 0;\n\t}\n\n\tsvg {\n\t\tfill: #000;\n\t\tmargin-left: 5px;\n\t}\n\n\tbutton {\n\t\tfont-size: 12px !important;\n\t}\n"],["\n\tmargin: 0 45px;\n\tpadding: 20px 0;\n\tborder-bottom: 2px solid #F1F1F1;\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tposition: sticky;\n top: 0;\n background: #fff;\n\n\th1 {\n\t\tfont-size: 13px;\n\t\tfont-weight: bold;\n\t\tcolor: #060606;\n\t\tmargin: 0;\n\t}\n\n\tsvg {\n\t\tfill: #000;\n\t\tmargin-left: 5px;\n\t}\n\n\tbutton {\n\t\tfont-size: 12px !important;\n\t}\n"]),c=i(['\n\tmargin: 0;\n\tpadding: 20px 45px;\n\tfont-size: 14.22px;\n\n\th2 {\n\t\tfont-size: 25px;\n\t}\n\n\thr {\n\t\tborder-top: 2px solid #F1F1F1;\n\t\tborder-bottom: none;\n\t\tmargin: 2em 0;\n\t}\n\n\t.form-row {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t}\n\n\t.components-base-control {\n\t\tflex-basis: 65%;\n\t}\n\n\t.components-base-control__field {\n\t\tmargin: 0;\n\t}\n\n\tinput[type="text"] {\n\t\tborder: 1px solid #E9E9E9;\n\t\tbackground: #F3F3F3;\n\t\tbox-shadow: none;\n\t\toutline: 0;\n\t\tpadding: 10px 20px;\n\t\tmax-width: 100% !important;\n\t\tborder-right: 0;\n\t}\n'],['\n\tmargin: 0;\n\tpadding: 20px 45px;\n\tfont-size: 14.22px;\n\n\th2 {\n\t\tfont-size: 25px;\n\t}\n\n\thr {\n\t\tborder-top: 2px solid #F1F1F1;\n\t\tborder-bottom: none;\n\t\tmargin: 2em 0;\n\t}\n\n\t.form-row {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t}\n\n\t.components-base-control {\n\t\tflex-basis: 65%;\n\t}\n\n\t.components-base-control__field {\n\t\tmargin: 0;\n\t}\n\n\tinput[type="text"] {\n\t\tborder: 1px solid #E9E9E9;\n\t\tbackground: #F3F3F3;\n\t\tbox-shadow: none;\n\t\toutline: 0;\n\t\tpadding: 10px 20px;\n\t\tmax-width: 100% !important;\n\t\tborder-right: 0;\n\t}\n']),l=n(1),p=r(l),f=n(13),d=r(f),h=wp.i18n.__,m=(0,l.keyframes)(a),g=p.default.div(s,m),v=p.default.div(u),y=p.default.div(c),b=function(t){var e=t.title,n=t.onRequestClose,r=t.children,i=o(t,["title","onRequestClose","children"]);return React.createElement(g,i,React.createElement("div",{className:"inner"},React.createElement(v,null,React.createElement("h1",null,e),React.createElement("button",{className:"button-plain",onClick:function(){return n()}},h("Close","ang")," ",React.createElement(d.default,null))),React.createElement(y,null,r)))};e.default=b},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=function(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n\tdisplay: flex;\n\talign-items: center;\n\tmax-width: 850px;\n\tmargin: auto;\n\n\th3 {\n\t\tfont-size: 25px;\n\t\tfont-weight: 600;\n\t\tcolor: #23282C;\n\t\tline-height: 1.4;\n\t\tmargin-top: 0;\n\t}\n\n\tsvg {\n\t\tmargin-bottom: 30px;\n\t}\n\n\tp {\n\t\tfont-size: 19px;\n\t\tcolor: #6D6D6D;\n\t\tfont-weight: 500;\n\t}\n\n\t> div {\n\t\twidth: 50%;\n\t}\n\n\t> div:nth-child(2) {\n\t\tbackground: #fff;\n\t\tpadding: 40px;\n\t\tflex-basis: 40%;\n\t\tmargin-left: 30px;\n\t}\n\n\t.button {\n\t\tcolor: #fff;\n\t\tbackground: #3152FF;\n\t\tborder-radius: 0;\n\t\tfont-weight: 600;\n\t\tfont-size: 15px;\n\t\tborder: none;\n\t\tbox-shadow: none;\n\t\tpadding: 10px 20px;\n\t\theight: auto;\n\t\tmargin-top: 30px;\n\t}\n\n\tul {\n\t\tfont-size: 15px;\n\t\tcolor: #6D6D6D;\n\t\tfont-weight: 500;\n\t}\n\tli {\n\t\tmargin-bottom: 15px;\n\t}\n\n\t.sticky {\n\t\tfont-size: 15px;\n\t\tfont-weight: 500;\n\t\tcolor: #C2C2C2;\n\t\tmargin-top: 30px;\n\t\tmargin-bottom: 0;\n\t}\n\t.button-plain.button-plain {\n\t\tfont-size: 13px;\n\t\tmargin-bottom: 10px;\n\t}\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tmax-width: 850px;\n\tmargin: auto;\n\n\th3 {\n\t\tfont-size: 25px;\n\t\tfont-weight: 600;\n\t\tcolor: #23282C;\n\t\tline-height: 1.4;\n\t\tmargin-top: 0;\n\t}\n\n\tsvg {\n\t\tmargin-bottom: 30px;\n\t}\n\n\tp {\n\t\tfont-size: 19px;\n\t\tcolor: #6D6D6D;\n\t\tfont-weight: 500;\n\t}\n\n\t> div {\n\t\twidth: 50%;\n\t}\n\n\t> div:nth-child(2) {\n\t\tbackground: #fff;\n\t\tpadding: 40px;\n\t\tflex-basis: 40%;\n\t\tmargin-left: 30px;\n\t}\n\n\t.button {\n\t\tcolor: #fff;\n\t\tbackground: #3152FF;\n\t\tborder-radius: 0;\n\t\tfont-weight: 600;\n\t\tfont-size: 15px;\n\t\tborder: none;\n\t\tbox-shadow: none;\n\t\tpadding: 10px 20px;\n\t\theight: auto;\n\t\tmargin-top: 30px;\n\t}\n\n\tul {\n\t\tfont-size: 15px;\n\t\tcolor: #6D6D6D;\n\t\tfont-weight: 500;\n\t}\n\tli {\n\t\tmargin-bottom: 15px;\n\t}\n\n\t.sticky {\n\t\tfont-size: 15px;\n\t\tfont-weight: 500;\n\t\tcolor: #C2C2C2;\n\t\tmargin-top: 30px;\n\t\tmargin-bottom: 0;\n\t}\n\t.button-plain.button-plain {\n\t\tfont-size: 13px;\n\t\tmargin-bottom: 10px;\n\t}\n"]),i=n(1),a=r(i),s=n(82),u=r(s),c=wp.i18n.__,l=a.default.div(o),p=function(t){var e=t.onDimiss;return React.createElement(l,null,React.createElement("div",null,React.createElement("p",null,React.createElement("button",{className:"button-plain",onClick:function(){window.scrollTo(0,0),e()}},c("Back to library","ang"))),React.createElement(u.default,null),React.createElement("h3",null,c("Elevate your Elementor design with Analog Pro","ang")),React.createElement("p",null,c("Step up your workflow with unlimited design resources for your Elementor-powered projects.","ang")),React.createElement("a",{href:"https://analogwp.com/",className:"ang-button",target:"_blank",rel:"external noopener noreferrer"},c("Learn More","ang"))),React.createElement("div",null,React.createElement("h3",null,c("Why Pro","ang")),React.createElement("ul",null,React.createElement("li",null,c("Access to all template library","ang")),React.createElement("li",null,c("Templates for singles, archives, popups and more","ang")),React.createElement("li",null,c("Multi-niche, human made design that makes sense","ang")),React.createElement("li",null,c("Unlimited license for peace of mind","ang"))),React.createElement("p",{className:"sticky"},c("* Requires Elementor Pro","ang"))))};e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){return React.createElement("svg",{width:"141",height:"28",viewBox:"0 0 141 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M75.6328 14.0468C75.6328 18.3072 72.1968 21.7609 67.9582 21.7609C63.7196 21.7609 60.2835 18.3072 60.2835 14.0468C60.2835 9.78636 63.7196 6.33262 67.9582 6.33262C72.1968 6.33262 75.6328 9.78636 75.6328 14.0468Z",fill:"#000"}),React.createElement("path",{d:"M11.1059 7.33405V8.98348C10.1389 7.59914 8.29279 7.01006 6.71042 7.01006C3.19404 7.01006 0 9.74929 0 14.1674C0 18.5855 3.19404 21.3247 6.71042 21.3247C8.23418 21.3247 10.1389 20.7062 11.1059 19.3513V21.0596H14.9446V7.33405H11.1059ZM7.443 17.7313C5.50899 17.7313 3.89732 16.1703 3.89732 14.1674C3.89732 12.1351 5.50899 10.6329 7.443 10.6329C9.23049 10.6329 10.9887 12.0467 10.9887 14.1674C10.9887 16.2586 9.3184 17.7313 7.443 17.7313Z",fill:"#000"}),React.createElement("path",{d:"M26.7613 6.98061C25.4134 6.98061 23.245 7.77586 22.6589 9.63147V7.33405H18.8202V21.0596H22.6589V14.0201C22.6589 11.5165 24.3585 10.7802 25.7357 10.7802C27.0544 10.7802 28.3437 11.7522 28.3437 13.9318V21.0596H32.1824V13.5194C32.2117 9.39584 30.3363 6.98061 26.7613 6.98061Z",fill:"#000"}),React.createElement("path",{d:"M46.1609 7.33405V8.98348C45.1939 7.59914 43.3478 7.01006 41.7655 7.01006C38.2491 7.01006 35.055 9.74929 35.055 14.1674C35.055 18.5855 38.2491 21.3247 41.7655 21.3247C43.2892 21.3247 45.1939 20.7062 46.1609 19.3513V21.0596H49.9996V7.33405H46.1609ZM42.498 17.7313C40.564 17.7313 38.9524 16.1703 38.9524 14.1674C38.9524 12.1351 40.564 10.6329 42.498 10.6329C44.2855 10.6329 46.0437 12.0467 46.0437 14.1674C46.0437 16.2586 44.3734 17.7313 42.498 17.7313Z",fill:"#000"}),React.createElement("path",{d:"M53.8752 21.0596H57.7139V0H53.8752V21.0596Z",fill:"#000"}),React.createElement("path",{d:"M68.0783 21.3247C71.9756 21.3247 75.4334 18.4971 75.4334 14.1674C75.4334 9.80819 71.9756 6.98061 68.0783 6.98061C64.181 6.98061 60.7232 9.80819 60.7232 14.1674C60.7232 18.4971 64.181 21.3247 68.0783 21.3247Z",fill:"#000"}),React.createElement("path",{d:"M88.7421 7.33405V8.95403C87.7458 7.62859 85.8997 7.01006 84.3466 7.01006C80.8302 7.01006 77.6362 9.74929 77.6362 14.1674C77.6362 18.5855 80.8302 21.3247 84.3466 21.3247C85.8704 21.3247 87.7458 20.7062 88.7421 19.3808V19.5869C88.7421 23.1803 87.189 24.5352 84.7275 24.5352C83.2624 24.5352 81.8558 23.6516 81.2698 22.4145L78.0757 23.7989C79.2478 26.3319 81.7972 27.9813 84.7275 27.9813C89.5626 27.9813 92.5808 25.1832 92.5808 19.1746V7.33405H88.7421ZM85.0792 17.7313C83.1452 17.7313 81.5335 16.1703 81.5335 14.1674C81.5335 12.1351 83.1452 10.6329 85.0792 10.6329C86.8667 10.6329 88.6248 12.0467 88.6248 14.1674C88.6248 16.2586 86.9546 17.7313 85.0792 17.7313Z",fill:"#000"}),React.createElement("path",{d:"M133.271 21.3247C137.168 21.3247 140.626 18.4971 140.626 14.1674C140.626 9.80818 137.168 6.98059 133.271 6.98059C129.374 6.98059 125.916 9.80818 125.916 14.1674C125.916 18.4971 129.374 21.3247 133.271 21.3247Z",fill:"#fff"}),React.createElement("path",{d:"M103.57 6.78076C101.98 6.78076 100.059 7.41103 99.0684 8.82164V7.14092H95.1367V27.9999H99.0684V19.3862C100.059 20.7968 101.98 21.3971 103.57 21.3971C107.172 21.3971 110.443 18.6059 110.443 14.1039C110.443 9.60198 107.172 6.78076 103.57 6.78076ZM102.82 17.7055C100.989 17.7055 99.1885 16.2649 99.1885 14.1039C99.1885 11.973 100.899 10.4724 102.82 10.4724C104.801 10.4724 106.422 12.063 106.422 14.1039C106.422 16.1748 104.801 17.7055 102.82 17.7055Z",fill:"#fff"}),React.createElement("path",{d:"M121.586 6.78076C119.845 6.78076 118.254 7.77119 117.474 10.1122V7.14092H113.572V21.127H117.504V16.3249C117.504 12.3332 118.885 10.4724 120.896 10.4724C121.376 10.4724 122.066 10.5324 122.906 10.9826L123.807 7.23096C123.177 6.90081 122.336 6.78076 121.586 6.78076Z",fill:"#fff"}))};e.default=r}]);