window.Widget=function(e){function t(t){for(var n,o,i=t[0],a=t[1],u=0,c=[];u2&&void 0!==arguments[2]?arguments[2]:"errors",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unable_to_perform",o="errors"===n?u:l,i=e.errors;return e&&o.includes(e.code)?t("common.".concat(n,".").concat(e.code)):i&&i[0]&&o.includes(i[0].code)?t("common.".concat(n,".").concat(i[0].code)):t("common.".concat(n,".").concat(r))};function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"q",function(){return p}),n.d(t,"c",function(){return y}),n.d(t,"x",function(){return v}),n.d(t,"t",function(){return w}),n.d(t,"r",function(){return S}),n.d(t,"i",function(){return C}),n.d(t,"p",function(){return O}),n.d(t,"k",function(){return _}),n.d(t,"a",function(){return P}),n.d(t,"j",function(){return j}),n.d(t,"h",function(){return F}),n.d(t,"l",function(){return I}),n.d(t,"s",function(){return h}),n.d(t,"u",function(){return k}),n.d(t,"g",function(){return x}),n.d(t,"m",function(){return M}),n.d(t,"w",function(){return L}),n.d(t,"n",function(){return R}),n.d(t,"o",function(){return D}),n.d(t,"d",function(){return T}),n.d(t,"b",function(){return b}),n.d(t,"e",function(){return c}),n.d(t,"f",function(){return i.a}),n.d(t,"v",function(){return i.c});var p=function(e){return null==e||"boolean"!=typeof e&&0===Object.keys(e).length},h=function(){return window.fwSettings&&window.fwSettings.preview||window.parent&&window.parent.fwSettings&&window.parent.fwSettings.preview},m=function(e){return Array.isArray(e)},g=function(e){return e===Object(e)&&!m(e)&&"function"!=typeof e},v=function e(t){if(g(t)){var n={};return Object.keys(t).forEach(function(r){var o;n[(o=r,o.replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g,"").replace(/([a-z])([A-Z])/g,function(e,t,n){return"".concat(t,"'_'").concat(n.toLowerCase())}).replace(/[^A-Za-z0-9]+|_+/g,"_").toLowerCase())]=e(t[r])}),n}return m(t)?t.map(function(t){return e(t)}):t},y=function e(t){if(g(t)){var n={};return Object.keys(t).forEach(function(r){var o;n[(o=r,o.replace(/([-_][a-z])/gi,function(e){return e.toUpperCase().replace("-","").replace("_","")}))]=e(t[r])}),n}return m(t)?t.map(function(t){return e(t)}):t},b=function(){return window.Promise&&window.fetch&&window.Symbol&&"startsWith"in String.prototype&&"endsWith"in String.prototype&&"includes"in Array.prototype&&"assign"in Object&&"keys"in Object},w=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:"";return t&&Object.keys(t).reduce(function(r,o){var i,a=n.length?"string"!=typeof(i=o)?i:i.charAt(0).toUpperCase()+i.slice(1):o;return t[o]&&"object"===f(t[o])&&!Array.isArray(t[o])?Object.assign(r,e(t[o],"".concat(n).concat(a))):r["".concat(n).concat(a)]=t[o],r},{})},E=function(e,t){var n;return e.forEach(function(e){(t.startsWith(e)||e.startsWith(t))&&(n=e)}),n},T=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=navigator.languages?navigator.languages[0]:navigator.language||navigator.userLanguage,i=[t].concat(n),a=window.fwSettings&&window.fwSettings.locale||window.parent&&window.parent.fwSettings&&window.parent.fwSettings.locale;return a&&i.includes(a)?e=a:r&&(e=E(i,r)),e||o&&E(i,o)||t||"en"},S=function(){return"ontouchstart"in document.documentElement},C=function(e){return e?o()(e).isLight()?o()(e).darken(5).toString():o()(e).lighten(5).toString():"#fff"},O=function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},_=function(e){var t=-1,n=e;do{n/=1024,t+=1}while(n>1024);return Math.max(n,.1).toFixed(1)+[" kB"," MB"," GB"," TB","PB","EB","ZB","YB"][t]},P=function(e){var t=y(e);return a.e.forEach(function(e){var n=e.split("."),r=n.pop(),o=n.reduce(function(e,t){return e?e[t]:e},t);o&&!p(o[r])&&delete o[r]}),t},j=function(e){return"customFields.".concat(e)},A=["group_id","product_id"],F=function(e){return A.includes(e)?"value":"choiceId"},N=["status","group_id","product_id"],I=function(e){return N.includes(e)?"value":"id"},M=function(e){var t=e;if(e.custom_fields){var n=e.custom_fields;t=function(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1];e({type:c,showLightBox:t})},w=function(e,t){e({type:s,seenArticleId:t})}},function(e,t,n){"use strict";n.d(t,"b",function(){return u}),n.d(t,"f",function(){return s}),n.d(t,"o",function(){return x}),n.d(t,"h",function(){return f}),n.d(t,"q",function(){return E}),n.d(t,"a",function(){return d}),n.d(t,"l",function(){return T}),n.d(t,"d",function(){return p}),n.d(t,"n",function(){return S}),n.d(t,"r",function(){return C}),n.d(t,"e",function(){return c}),n.d(t,"i",function(){return l}),n.d(t,"g",function(){return h}),n.d(t,"p",function(){return O}),n.d(t,"m",function(){return _}),n.d(t,"c",function(){return m}),n.d(t,"t",function(){return P}),n.d(t,"k",function(){return g}),n.d(t,"s",function(){return j}),n.d(t,"j",function(){return v});var r=n(2);function o(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=a(e),i=o.length-1;switch(t){case"add":return[].concat(a(w(o,i,"show",!1)),[n]);case"remove":return a(w(o,i-1,"show",!0));case"update":return a(w(o,i,"name",r));default:return o}},x=function(e,t,n,o,i,l){var c=r.f.article;e({type:s,selectedArticleId:t,showDeck:!0,overflowHidden:!0,mainPage:!!n&&o});var f={name:c,show:!0};l?e({type:u,cards:k([i[0]],"add",f),currentPage:f.name,deckClassName:"forward"}):i.lengthy?(r=k(r,"remove"),e({type:l,cards:r,currentPage:r[r.length-1].name})):t&&S(e),r.length<=1&&!t&&e({type:c})},O=function(e,t){var n=r.f.thanks;e({type:h,cards:k(t,"update",{},n),currentPage:n})},_=function(e,t){e({type:m,scrollTop:t})},P=function(e,t){e({type:g,showFooterWrapper:t})},j=function(e){e({type:v})}},function(e,t,n){(function(t){var n="object",r=function(e){return e&&e.Math==Math&&e};e.exports=r(typeof globalThis==n&&globalThis)||r(typeof window==n&&window)||r(typeof self==n&&self)||r(typeof t==n&&t)||Function("return this")()}).call(this,n(75))},function(e,t,n){"use strict";(function(e,r){n.d(t,"d",function(){return He}),n.d(t,"c",function(){return Be}),n.d(t,"a",function(){return de});var o=n(94),i=n.n(o),a=n(0),u=n.n(a),l=n(59),c=n.n(l),s=n(95),f=n.n(s),d=n(3),p=n.n(d),h=n(60),m=n.n(h),g=n(77),v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},b=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},E=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},T=function(e){return"object"===(void 0===e?"undefined":v(e))&&e.constructor===Object};var S=function(e){function t(n){y(this,t);for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i25?39:97))},L=function(e){var t="",n=void 0;for(n=e;n>52;n=Math.floor(n/52))t=M(n%52)+t;return M(n%52)+t},R=function(e,t){for(var n=[e[0]],r=0,o=t.length;r1?t-1:0),r=1;r"+e()+""}},ne=function(e,t){return function(){var n,r=((n={})[W]=Y(t),n),o=q();return o&&(r.nonce=o),u.a.createElement("style",w({},r,{dangerouslySetInnerHTML:{__html:e()}}))}},re=function(e){return function(){return Object.keys(e)}},oe=function e(t,n){var r=void 0===t?Object.create(null):t,o=void 0===n?Object.create(null):n,i=function(e){var t=o[e];return void 0!==t?t:o[e]=[""]},a=function(){var e="";for(var t in o){var n=o[t][0];n&&(e+=J(t)+n)}return e};return{clone:function(){var t=function(e){var t=Object.create(null);for(var n in e)t[n]=w({},e[n]);return t}(r),n=Object.create(null);for(var i in o)n[i]=[o[i][0]];return e(t,n)},css:a,getIds:re(o),hasNameForId:G(r),insertMarker:i,insertRules:function(e,t,n){i(e)[0]+=t.join(" "),K(r,e,n)},removeRules:function(e){var t=o[e];void 0!==t&&(t[0]="",Q(r,e))},sealed:!1,styleTag:null,toElement:ne(a,r),toHTML:te(a,r)}},ie=function(e,t,n,r,o){if(B&&!n){var i=function(e,t,n){var r=document.createElement("style");r.setAttribute(W,"");var o=q();if(o&&r.setAttribute("nonce",o),r.appendChild(document.createTextNode("")),e&&!t)e.appendChild(r);else{if(!t||!e||!t.parentNode)throw new S(6);t.parentNode.insertBefore(r,n?t:t.nextSibling)}return r}(e,t,r);return function(e,t){var n=Object.create(null),r=Object.create(null),o=[],i=void 0!==t,a=!1,u=function(e){var t=r[e];return void 0!==t?t:(r[e]=o.length,o.push(0),Q(n,e),r[e])},l=function(){var t=X(e).cssRules,n="";for(var i in r){n+=J(i);for(var a=r[i],u=ee(o,a),l=u-o[a];l0&&(a=!0,t().insertRules(r+"-import",h)),o[s]+=p,K(n,r,c)},removeRules:function(u){var l=r[u];if(void 0!==l){var c=o[l];!function(e,t,n){for(var r=t-n,o=t;o>r;o-=1)e.deleteRule(o)}(X(e),ee(o,l),c),o[l]=0,Q(n,u),i&&a&&t().removeRules(u+"-import")}},sealed:!1,styleTag:e,toElement:ne(l,n),toHTML:te(l,n)}}(i,o)}return oe()},ae=/\s+/,ue=void 0;ue=B?1e3:-1;var le,ce=0,se=void 0,fe=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B?document.head:null,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];y(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(void 0!==e)return e;var n=t.tags[0];return t.importRuleTag=ie(t.target,n?n.styleTag:null,t.forceServer,!0)},ce+=1,this.id=ce,this.forceServer=r,this.target=r?null:n,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!B||this.forceServer)return this;var e=[],t=[],n=!1,r=document.querySelectorAll("style["+W+"]"),o=r.length;if(0===o)return this;for(var i=0;i0&&void 0!==arguments[0]&&arguments[0];se=new e(void 0,t).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map(function(e){for(var n=e.getIds(),r=e.clone(),o=0;o<+~=|^:(),"'`-]+/g,ge=/(^-|-$)/g;function ve(e){return e.replace(me,"-").replace(ge,"")}function ye(e){return e.displayName||e.name||"Component"}function be(e){return"string"==typeof e}var we=/^((?:s(?:uppressContentEditableWarn|croll|pac)|(?:shape|image|text)Render|(?:letter|word)Spac|vHang|hang)ing|(?:on(?:AnimationIteration|C(?:o(?:mposition(?:Update|Start|End)|ntextMenu|py)|anPlayThrough|anPlay|hange|lick|ut)|(?:Animation|Touch|Load|Drag)Start|(?:(?:Duration|Volume|Rate)Chang|(?:MouseLea|(?:Touch|Mouse)Mo|DragLea)v|Paus)e|Loaded(?:Metad|D)ata|(?:(?:T(?:ransition|ouch)|Animation)E|Suspe)nd|DoubleClick|(?:TouchCanc|Whe)el|Lo(?:stPointer|ad)|TimeUpdate|(?:Mouse(?:Ent|Ov)e|Drag(?:Ent|Ov)e|Erro)r|GotPointer|MouseDown|(?:E(?:n(?:crypt|d)|mpti)|S(?:tall|eek))ed|KeyPress|(?:MouseOu|DragExi|S(?:elec|ubmi)|Rese|Inpu)t|P(?:rogress|laying)|DragEnd|Key(?:Down|Up)|(?:MouseU|Dro)p|(?:Wait|Seek)ing|Scroll|Focus|Paste|Abort|Drag|Play|Blur)Captur|alignmentBaselin|(?:limitingConeAng|xlink(?:(?:Arcr|R)o|Tit)|s(?:urfaceSca|ty|ca)|unselectab|baseProfi|fontSty|(?:focus|dragg)ab|multip|profi|tit)l|d(?:ominantBaselin|efaultValu)|onPointerLeav|a(?:uto(?:Capitaliz|Revers|Sav)|dditiv)|(?:(?:formNoValid|xlinkActu|noValid|accumul|rot)a|autoComple|decelera)t|(?:(?:attribute|item)T|datat)yp|onPointerMov|(?:attribute|glyph)Nam|playsInlin|(?:writing|input|edge)Mod|(?:formE|e)ncTyp|(?:amplitu|mo)d|(?:xlinkTy|itemSco|keyTy|slo)p|(?:xmlSpa|non)c|fillRul|(?:dateTi|na)m|r(?:esourc|ol)|xmlBas|wmod)e|(?:glyphOrientationHorizont|loc)al|(?:externalResourcesRequir|select|revers|mut)ed|c(?:o(?:lorInterpolationFilter|ord)s|o(?:lor(?:Interpolation)?|nt(?:rols|ent))|(?:ontentS(?:cript|tyle)Typ|o(?:ntentEditab|lorProfi)l|l(?:assNam|ipRul)|a(?:lcMod|ptur)|it)e|olorRendering|l(?:ipPathUnits|assID)|(?:ontrolsLis|apHeigh)t|h(?:eckedLink|a(?:llenge|rSet)|ildren|ecked)|ell(?:Spac|Padd)ing|o(?:ntextMenu|ls)|(?:rossOrigi|olSpa)n|l(?:ip(?:Path)?|ass)|ursor|[xy])|glyphOrientationVertical|d(?:angerouslySetInnerHTML|efaultChecked|ownload|isabled|isplay|[xy])|(?:s(?:trikethroughThickn|eaml)es|(?:und|ov)erlineThicknes|r(?:equiredExtension|adiu)|(?:requiredFeatur|tableValu|stitchTil|numOctav|filterR)e|key(?:(?:Splin|Tim)e|Param)|auto[Ff]ocu|header|bia)s|(?:(?:st(?:rikethroughPosi|dDevia)|(?:und|ov)erlinePosi|(?:textDecor|elev)a|orienta)tio|(?:strokeLinejo|orig)i|on(?:PointerDow|FocusI)|formActio|zoomAndPa|directio|(?:vers|act)io|rowSpa|begi|ico)n|o(?:n(?:AnimationIteration|C(?:o(?:mposition(?:Update|Start|End)|ntextMenu|py)|anPlayThrough|anPlay|hange|lick|ut)|(?:(?:Duration|Volume|Rate)Chang|(?:MouseLea|(?:Touch|Mouse)Mo|DragLea)v|Paus)e|Loaded(?:Metad|D)ata|(?:Animation|Touch|Load|Drag)Start|(?:(?:T(?:ransition|ouch)|Animation)E|Suspe)nd|DoubleClick|(?:TouchCanc|Whe)el|(?:Mouse(?:Ent|Ov)e|Drag(?:Ent|Ov)e|Erro)r|TimeUpdate|(?:E(?:n(?:crypt|d)|mpti)|S(?:tall|eek))ed|MouseDown|P(?:rogress|laying)|(?:MouseOu|DragExi|S(?:elec|ubmi)|Rese|Inpu)t|KeyPress|DragEnd|Key(?:Down|Up)|(?:Wait|Seek)ing|(?:MouseU|Dro)p|Scroll|Paste|Focus|Abort|Drag|Play|Load|Blur)|rient)|p(?:reserveAspectRatio|ointsAt[X-Z]|anose1)|(?:(?:allowPaymentReque|(?:fontSize|length)Adju|manife)s|strokeMiterlimi|(?:(?:specularE|e)xpon|renderingInt|asc)en|(?:specularConsta|repeatCou|fontVaria)n|d(?:iffuseConsta|esce)n|baselineShif|vectorEffec|onPointerOu|(?:(?:mar(?:ker|gin)|x)H|accentH|fontW)eigh|markerStar|a(?:utoCorrec|bou)|onFocusOu|intercep|restar|forma|inlis|heigh|lis)t|(?:patternContent|ma(?:sk(?:Content)?|rker)|primitive|gradient|pattern|filter)Units|(?:(?:allowTranspar|baseFrequ)enc|re(?:ferrerPolic|adOnl)|(?:(?:st(?:roke|op)O|floodO|fillO|o)pac|integr|secur)it|visibilit|fontFamil|accessKe|propert|summar)y|(?:gradientT|patternT|t)ransform|(?:(?:st(?:rokeDasho|artO)|o)ffs|acceptChars|formTarg|viewTarg|srcS)et|(?:[xy]ChannelSelect|lightingCol|textAnch|floodCol|stopCol|operat|htmlF)or|(?:(?:enableBackgrou|markerE)n|s(?:p(?:readMetho|ee)|ee)|formMetho|(?:markerM|onInval)i|preloa|metho|kin)d|k(?:ernel(?:UnitLength|Matrix)|[1-4])|strokeDasharray|(?:onPointerCanc|lab)el|(?:allowFullScre|hidd)en|a(?:l(?:lowUserMedia|phabetic|t)|rabicForm|sync)|systemLanguage|(?:(?:o(?:nPointer(?:Ent|Ov)|rd)|allowReord|placehold|frameBord|paintOrd|post)e|repeatDu|d(?:efe|u))r|(?:pointerEve|keyPoi)nts|preserveAlpha|(?:strokeLineca|onPointerU|itemPro|useMa|wra|loo)p|v(?:Mathematical|ert(?:Origin[XY]|AdvY)|alues|ocab)|unicodeRange|h(?:oriz(?:Origin|Adv)X|ttpEquiv)|(?:vI|i)deographic|mathematical|u(?:nicodeBidi|[12])|(?:fontStretc|hig)h|vAlphabetic|(?:(?:mar(?:ker|gin)W|strokeW)id|azimu)th|(?:xmlnsXl|valueL)ink|mediaGroup|spellCheck|(?:text|m(?:in|ax))Length|(?:unitsPerE|optimu|fro)m|r(?:adioGroup|e(?:sults|f[XY]|l)|ows|[xy])|pathLength|(?:xlinkHr|glyphR)ef|innerHTML|xlinkShow|f(?:o(?:ntSize|rm?)|il(?:ter|l))|(?:tabInde|(?:sand|b)bo|viewBo)x|autoPlay|r(?:e(?:quired|sult|f))?|(?:(?:href|xml|src)La|kerni)ng|o(?:verflow|pen)|i(?:temRef|n2|s)|p(?:attern|oints)|unicode|d(?:efault|ata|ir)?|divisor|t(?:arget[XY]|o)|(?:stri|la)ng|(?:width|size)s|prefix|typeof|srcDoc|s(?:coped|te(?:m[hv]|p)|pan)|s(?:t(?:roke|art)|hape|cope|rc)|a(?:ccept|llow|s)|itemID|t(?:arget|ype)|m(?:edia|a(?:sk|x)|in)|value|width|x(?:mlns)?|size|href|k(?:ey)?|end|low|by|x[12]|y[12]|g[12]|i[dn]|f[xy]|[yz])$/,ke=RegExp.prototype.test.bind(new RegExp("^(x|data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"));var xe,Ee,Te="__styled-components__",Se=Te+"next__",Ce=p.a.shape({getTheme:p.a.func,subscribe:p.a.func,unsubscribe:p.a.func}),Oe=((xe={})[Te]=p.a.func,xe[Se]=Ce,xe);var _e,Pe=function(e){function t(){y(this,t);var n=E(this,e.call(this));return n.unsubscribeToOuterId=-1,n.getTheme=n.getTheme.bind(n),n}return k(t,e),t.prototype.componentWillMount=function(){var e=this,t=this.context[Se];void 0!==t&&(this.unsubscribeToOuterId=t.subscribe(function(t){e.outerTheme=t,void 0!==e.broadcast&&e.publish(e.props.theme)})),this.broadcast=function(e){var t={},n=0,r=e;return{publish:function(e){for(var n in r=e,t){var o=t[n];void 0!==o&&o(r)}},subscribe:function(e){var o=n;return t[o]=e,n+=1,e(r),o},unsubscribe:function(e){t[e]=void 0}}}(this.getTheme())},t.prototype.getChildContext=function(){var e,t=this;return w({},this.context,((e={})[Se]={getTheme:this.getTheme,subscribe:this.broadcast.subscribe,unsubscribe:this.broadcast.unsubscribe},e[Te]=function(e){var n=t.broadcast.subscribe(e);return function(){return t.broadcast.unsubscribe(n)}},e))},t.prototype.componentWillReceiveProps=function(e){this.props.theme!==e.theme&&this.publish(e.theme)},t.prototype.componentWillUnmount=function(){-1!==this.unsubscribeToOuterId&&this.context[Se].unsubscribe(this.unsubscribeToOuterId)},t.prototype.getTheme=function(e){var t=e||this.props.theme;if("function"==typeof t)return t(this.outerTheme);if(null===t||Array.isArray(t)||"object"!==(void 0===t?"undefined":v(t)))throw new S(8);return w({},this.outerTheme,t)},t.prototype.publish=function(e){this.broadcast.publish(this.getTheme(e))},t.prototype.render=function(){return this.props.children?u.a.Children.only(this.props.children):null},t}(a.Component);Pe.childContextTypes=Oe,Pe.contextTypes=((Ee={})[Se]=Ce,Ee);var je={},Ae=w({},Oe,((_e={})[H]=p.a.oneOfType([p.a.instanceOf(fe),p.a.instanceOf(pe)]),_e)),Fe={};var Ne=function(e){function t(){var n,r;y(this,t);for(var o=arguments.length,i=Array(o),a=0;a=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),(r^=r>>>15)>>>0}var Me=B,Le=function e(t,n){for(var r=0,o=t.length;r2&&void 0!==arguments[2]?arguments[2]:z;if(!Object(g.isValidElementType)(r))throw new S(1,String(r));var i=function(){return n(r,o,e.apply(void 0,arguments))};return i.withConfig=function(e){return t(n,r,w({},o,e))},i.attrs=function(e){return t(n,r,w({},o,{attrs:w({},o.attrs||z,e)}))},i}}(U),We=function(e,t){return function n(r,o,i){var a=o.isClass,u=void 0===a?!be(r):a,l=o.displayName,c=void 0===l?function(e){return be(e)?"styled."+e:"Styled("+ye(e)+")"}(r):l,s=o.componentId,f=void 0===s?function(e,t,n){var r="string"!=typeof t?"sc":ve(t),o=(Fe[r]||0)+1;Fe[r]=o;var i=r+"-"+e.generateName(r+o);return void 0!==n?n+"-"+i:i}(e,o.displayName,o.parentComponentId):s,d=o.ParentComponent,p=void 0===d?Ne:d,h=o.rules,g=o.attrs,v=o.displayName&&o.componentId?ve(o.displayName)+"-"+o.componentId:o.componentId||f,T=new e(void 0===h?i:h.concat(i),g,v),S=function(e){function a(){return y(this,a),E(this,e.apply(this,arguments))}return k(a,e),a.withComponent=function(e){var t=o.componentId,r=x(o,["componentId"]),u=t&&t+"-"+(be(e)?e:ve(ye(e))),l=w({},r,{componentId:u,ParentComponent:a});return n(e,l,i)},b(a,null,[{key:"extend",get:function(){var e=o.rules,u=o.componentId,l=x(o,["rules","componentId"]),c=void 0===e?i:e.concat(i),s=w({},l,{rules:c,parentComponentId:u,ParentComponent:a});return t(n,r,s)}}]),a}(p);return S.attrs=g,S.componentStyle=T,S.contextTypes=Ae,S.displayName=c,S.styledComponentId=v,S.target=r,u&&m()(S,r,{attrs:!0,componentStyle:!0,displayName:!0,extend:!0,styledComponentId:!0,target:!0,warnTooManyClasses:!0,withComponent:!0}),S}}(ze,Ue),He=function(e,t,n){return function(){var r=fe.master,o=n.apply(void 0,arguments),i=e(Ie(JSON.stringify(o).replace(/\s|\\n/g,""))),a="sc-keyframes-"+i;return r.hasNameForId(a,i)||r.inject(a,t(o,i,"@keyframes"),i),i}}(L,N,U),Be=function(e,t){return function(){var n=fe.master,r=t.apply(void 0,arguments),o="sc-global-"+Ie(JSON.stringify(r));n.hasId(o)||n.inject(o,e(r))}}(N,U),Ve=function(e,t){var n=function(n){return t(e,n)};return De.forEach(function(e){n[e]=n(e)}),n}(We,Ue);t.b=Ve}).call(this,n(126),n(141)(e))},function(e,t,n){var r=n(6),o=n(33),i=n(47),a=n(122),u=r.Symbol,l=o("wks");e.exports=function(e){return l[e]||(l[e]=a&&u[e]||(a?u:i)("Symbol."+e))}},function(e,t,n){"use strict";var r={oldSettings:{id:1,product_id:1,account_id:1,name:"Help widget",settings:{message:"",button_text:"Help",contact_form:{form_type:2,form_title:"",form_button_text:"Send",form_submit_message:"Thank you for your feedback.",attach_file:!0,screenshot:!0,captcha:!1},appearance:{position:1,offset_from_right:30,offset_from_left:30,offset_from_bottom:30,theme_color:"#2392ec",button_color:"#16193e"},components:{contact_form:!0,solution_articles:!0},predictive_support:{welcome_message:"",message:"We noticed you’re stuck. Tell us what you were trying to accomplish, and our support team will reach out to you as soon as possible.",success_message:"Thanks. We'll be in touch!",domain_list:["freshpo.com"]},hide_launcher_bydefault:!0},active:!0,updated_at:"2018-10-01T14:16:05+05:30",account_url:"https://localhost.freshdesk-dev.com",recaptcha_enterprise:!1,languages:{primary:"en",supported:["ca","cs","da","de","es-LA","es","et","fi","fr","hu","id","it","ja-JP","ko","nb-NO","nl","pl","pt-BR","pt-PT","ru-RU","sv-SE","sk","sl","tr","vi","zh-CN","uk","th","ro","zh-TW","lv-LV","bs","bg","hr","el","ms","lt","sr"]}},newSettings:{id:1,components:{contact_form:{enabled:!0,type:1,attach_file:!0,captcha:!0,recaptcha_enteprise:!1},solution_articles:{enabled:!1},frustration_tracking:{enabled:!1,domains:[]}},appearance:{position:1,right_offset:30,left_offset:30,bottom_offset:30,theme_color:"#2392ec",button_color:"#16193e"},labels:{banner:"",launcher:"Help",contact_form:{title:"",submit:"Send",confirmation:"Thank you for your feedback."},frustration_tracking:{banner:"",description:"We noticed you’re stuck. Tell us what you were trying to accomplish, and our support team will reach out to you as soon as possible.",confirmation:"Thanks. We'll be in touch!"}},freshdesk:{account_id:null,domain:"https://localhost.freshdesk-dev.com",product_id:null,recaptcha_enterprise:!1},languages:{primary:"en",supported:["ca","cs","da","de","es-LA","es","et","fi","fr","hu","id","it","ja-JP","ko","nb-NO","nl","pl","pt-BR","pt-PT","ru-RU","sv-SE","sk","sl","tr","vi","zh-CN","uk","th","ro","zh-TW","lv-LV","bs","bg","hr","el","ms","lt","sr"]},meta:{data_version:1}},ticket_create:{id:1},attachments:{id:1}},o=n(1),i=n(2);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:200;return window.Response?new Response(e,{status:t}):{ok:!0,status:t,statusText:"OK",json:function(){return e}}},f=function(e){return new Promise(function(t){return t(s(JSON.stringify(r[e])))})},d=function(e){c=e},p=function(e){e?c=u({},c,l({},i.u,e)):delete c[i.u]},h=function(e){var t,n=e.headers;return n&&c&&(t=u({},c,n)),t||c||n},m=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;if(n&&Object(o.s)())return r?f(r):new Promise(function(e){return e(s(null,204))});var i=h(t),a=i?u({},t,{headers:i}):t;return new Promise(function(t,n){fetch(e,a).then(function(e){return t(e)}).catch(function(e){return n(e)})})},g=function(e){return new Promise(function(t,n){var r=new XMLHttpRequest,o=e.method,i=void 0===o?"GET":o,u=e.url,l=e.body;r.open(i,u);var c=h(e);c&&"object"===a(c)&&Object.keys(c).forEach(function(e){"Content-Type"!==e&&r.setRequestHeader(e,c[e])}),r.onload=function(){return t(r)},r.onerror=function(){return n(r.statusText)},r.send(l)})},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.helpWidget,n=e.widgetId,r=e.widgetLanguage;return u({},Object(o.g)(t),{widgetId:n,widgetLanguage:r})},y=function(e){if(e.meta&&e.meta.dataVersion)return e;var t=e.id,n=e.productId,r=e.accountId,i=e.accountUrl,a=e.languages,u=e.updatedAt,l=e.createdAt,c=e.settings,s=void 0===c?{}:c,f=e.recaptchaEnterprise,d=s.message,p=s.buttonText,h=s.appearance,m=void 0===h?{}:h,g=s.components,v=void 0===g?{}:g,y=s.contactForm,b=void 0===y?{}:y,w=s.predictiveSupport,k=void 0===w?{}:w,x=s.widgetFlow,E=s.freshmarketer,T={id:t,updatedAt:u,createdAt:l,freshdesk:{domain:i,accountId:r,productId:n,recaptchaEnterprise:f},languages:a,appearance:{},labels:{banner:d,launcher:p},components:{}};if(!Object(o.q)(m)){var S=m.position,C=m.offsetFromRight,O=m.offsetFromLeft,_=m.offsetFromBottom,P=m.colorSchema,j=m.pattern,A=m.gradient,F=m.themeColor,N=m.buttonColor,I=m.themeTextColor,M=m.buttonTextColor,L=m.removeFreshworksBranding;T.appearance={position:S,rightOffset:C,leftOffset:O,bottomOffset:_,colorScheme:P,pattern:j,gradient:A,themeColor:F,buttonColor:N,themeTextColor:I,buttonTextColor:M,removeFreshworksBranding:L}}var R=v.contactForm,D=v.predictiveSupport,z=v.solutionArticles;if(!Object(o.q)(R)||!Object(o.q)(b)){var U=b.formType,W=b.formTitle,H=b.formButtonText,B=b.formSubmitMessage,V=b.attachFile,$=b.screenshot,q=b.captcha,K=b.requireLogin,Q=b.ticketForms||{},G=Q.formsPlaceholderText,Y=Q.ticketFormIds;T.components.contactForm={enabled:R,type:U,attachFiles:V,captcha:q,screenshot:$,requireLogin:K,placeholderText:G,ticketFormIds:Y},T.labels.contactForm={title:W,submit:H,confirmation:B}}if(Object(o.q)(z)||(T.components.solutionArticles={enabled:z}),!Object(o.q)(D)||!Object(o.q)(k)){var X=k.welcomeMessage,Z=k.message,J=k.domainsList,ee=k.successMessage;T.components.frustrationTracking={enabled:D,domains:J},T.labels.frustrationTracking={banner:X,description:Z,confirmation:ee}}return x&&(T.components.mode=x),Object(o.q)(E)||(T.freshmarketer=E),T}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(10);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(16),o=n(17),i=n(46);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";n.d(t,"f",function(){return a}),n.d(t,"g",function(){return l}),n.d(t,"h",function(){return c}),n.d(t,"a",function(){return s}),n.d(t,"c",function(){return u}),n.d(t,"b",function(){return f}),n.d(t,"d",function(){return d}),n.d(t,"e",function(){return p});var r=n(0),o=n.n(r);function i(e){var t=o.a.lazy(e);return t.preload=e,t}var a=i(function(){return new Promise(function(e){Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(11)]).then(function(t){e(n(164))}.bind(null,n)).catch(n.oe)})}),u=i(function(){return new Promise(function(e){Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(14)]).then(function(t){e(n(165))}.bind(null,n)).catch(n.oe)})}),l=i(function(){return new Promise(function(e){Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(15)]).then(function(t){e(n(167))}.bind(null,n)).catch(n.oe)})}),c=i(function(){return new Promise(function(e){Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(12)]).then(function(t){e(n(163))}.bind(null,n)).catch(n.oe)})}),s=i(function(){return new Promise(function(e){Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(9)]).then(function(t){e(n(166))}.bind(null,n)).catch(n.oe)})}),f=i(function(){return new Promise(function(e){Promise.all([n.e(0),n.e(1),n.e(8)]).then(function(t){e(n(162))}.bind(null,n)).catch(n.oe)})}),d=i(function(){return new Promise(function(e){Promise.all([n.e(0),n.e(10),n.e(16)]).then(function(t){e(n(168))}.bind(null,n)).catch(n.oe)})}),p=i(function(){return new Promise(function(e){Promise.all([n.e(0),n.e(17),n.e(13)]).then(function(t){e(n(161))}.bind(null,n)).catch(n.oe)})})},function(e,t,n){var r=n(12);e.exports=!r(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(16),o=n(81),i=n(11),a=n(64),u=Object.defineProperty;t.f=r?u:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(91),a=n(5),u={form:{ticketForm:{isOpen:!1}},app:{showWidget:!0,authorizedUserDetails:{},hasAuthorizedUserDetails:!1,widgetType:"",isFrustrationTrackingWidgetType:!1,settings:{},showForm:{ticket:!1,frustrationTracking:!1},showLightBox:!1,seenArticles:[]},deck:{showDeck:!1,mainPage:!0,overflowHidden:!1,cards:[{name:"Home",show:!0}],currentPage:"Home",deckClassName:"reverse",searchActive:!1,selectedArticleId:"",showFooterWrapper:!1}};function l(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.hasAuthorizedUserDetails,n=e.settings,r=void 0===n?{}:n,o=r.componentsContactFormRequireLogin,i=r.componentsContactFormEnabled,a=r.componentsFrustrationTrackingEnabled,u=o&&i&&!Object(d.s)();return{ticket:u?t:i,frustrationTracking:u&&a?t:a}},y=function(e,t){var n=t.authorizedUserDetails,r=void 0===n?{}:n,o=t.widgetType,i=t.settings,a=void 0===i?{}:i,u=t.showLightBox,l=void 0!==u&&u,c=t.seenArticleId,s=t.allTicketForms;switch(t.type){case f.b:return m({},e,{showWidget:!0});case f.a:return m({},e,{showWidget:!1});case f.e:return m({},e,{authorizedUserDetails:r,hasAuthorizedUserDetails:!Object(d.q)(r)});case f.i:return m({},e,{widgetType:o,isFrustrationTrackingWidgetType:p.k.includes(o)});case f.h:return m({},e,{settings:m({},e.settings,a)});case f.d:return m({},e,{allTicketForms:s});case f.g:return m({},e,{showForm:v(e)});case f.c:return m({},e,{showLightBox:l});case f.f:return m({},e,{seenArticles:c?[].concat(h(e.seenArticles),[c]):[]});default:return e}};function b(e){for(var t=1;t1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=N(e,360),t=N(t,100),n=N(n,100),0===t)r=o=i=n;else{var u=n<.5?n*(1+t):n+t-n*t,l=2*n-u;r=a(l,u,e+1/3),o=a(l,u,e),i=a(l,u,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,l),f=!0,d="hsl"),e.hasOwnProperty("a")&&(n=e.a));var p,h,m;return n=F(n),{ok:f,format:e.format||d,r:c(255,s(t.r,0)),g:c(255,s(t.g,0)),b:c(255,s(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=u++}function p(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,o,i=s(e,t,n),a=c(e,t,n),u=(i+a)/2;if(i==a)r=o=0;else{var l=i-a;switch(o=u>.5?l/(2-i-a):l/(i+a),i){case e:r=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(d(r));return i}function P(e,t){t=t||6;for(var n=d(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],u=1/t;t--;)a.push(d({h:r,s:o,v:i})),i=(i+u)%1;return a}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=F(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return m(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[L(l(e).toString(16)),L(l(t).toString(16)),L(l(n).toString(16)),L(D(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*N(this._r,255))+"%",g:l(100*N(this._g,255))+"%",b:l(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%)":"rgba("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(A[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=d(e);n="#"+g(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return d(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(v,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(E,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(_,arguments)},complement:function(){return this._applyCombination(T,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},d.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:R(e[r]));e=n}return d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:f(),g:f(),b:f()})},d.mix=function(e,t,n){n=0===n?0:n||50;var r=d(e).toRgb(),o=d(t).toRgb(),i=n/100;return d({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},d.readability=function(e,t){var n=d(e),r=d(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},d.isReadable=function(e,t,n){var r,o,i=d.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},d.mostReadable=function(e,t,n){var r,o,i,a,u=null,l=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var c=0;cl&&(l=r,u=d(t[c]));return d.isReadable(e,u,{level:i,size:a})||!o?u:(n.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],n))};var j=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},A=d.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(j);function F(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=c(t,s(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function I(e){return c(1,s(0,e))}function M(e){return parseInt(e,16)}function L(e){return 1==e.length?"0"+e:""+e}function R(e){return e<=1&&(e=100*e+"%"),e}function D(e){return o.round(255*parseFloat(e)).toString(16)}function z(e){return M(e)/255}var U,W,H,B=(W="[\\s|\\(]+("+(U="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+U+")[,|\\s]+("+U+")\\s*\\)?",H="[\\s|\\(]+("+U+")[,|\\s]+("+U+")[,|\\s]+("+U+")[,|\\s]+("+U+")\\s*\\)?",{CSS_UNIT:new RegExp(U),rgb:new RegExp("rgb"+W),rgba:new RegExp("rgba"+H),hsl:new RegExp("hsl"+W),hsla:new RegExp("hsla"+H),hsv:new RegExp("hsv"+W),hsva:new RegExp("hsva"+H),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function V(e){return!!B.CSS_UNIT.exec(e)}e.exports?e.exports=d:void 0===(r=function(){return d}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){var r=n(11),o=n(115),i=n(61),a=n(40),u=n(106),l=n(123),c=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,s,f){var d,p,h,m,g,v,y=a(t,n,s?2:1);if(f)d=e;else{if("function"!=typeof(p=u(e)))throw TypeError("Target is not iterable");if(o(p)){for(h=0,m=i(e.length);m>h;h++)if((g=s?y(r(v=e[h])[0],v[1]):y(e[h]))&&g instanceof c)return g;return new c(!1)}d=p.call(e)}for(;!(v=d.next()).done;)if((g=l(d,y,v.value,s))&&g instanceof c)return g;return new c(!1)}).stop=function(e){return new c(!0,e)}},function(e,t,n){var r=n(29);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(16),o=n(110),i=n(46),a=n(30),u=n(64),l=n(13),c=n(81),s=Object.getOwnPropertyDescriptor;t.f=r?s:function(e,t){if(e=a(e),t=u(t,!0),c)try{return s(e,t)}catch(e){}if(l(e,t))return i(!o.f.call(e,t),e[t])}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(11),o=n(117),i=n(55),a=n(34),u=n(85),l=n(53),c=n(50)("IE_PROTO"),s=function(){},f=function(){var e,t=l("iframe"),n=i.length;for(t.style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("