eusmileview-react17 0.1.19 → 0.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js CHANGED
@@ -1,2 +1,2 @@
1
- module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=218)}([function(e,t){e.exports=require("react")},function(e,t,n){"use strict";e.exports=n(214)},function(e,t,n){e.exports=n(94)()},function(e,t,n){e.exports=n(93)},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var a=o.apply(null,r);a&&e.push(a)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var s in r)n.call(r,s)&&r[s]&&e.push(s);else e.push(r.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,s],l=0;(c=new Error(t.replace(/%s/g,function(){return u[l++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t,n){"use strict";var r=n(60),o=n(98),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function s(e){return null!==e&&"object"===typeof e}function c(e){return"[object Function]"===i.call(e)}function u(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:o,isFormData:function(e){return"undefined"!==typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:s,isUndefined:function(e){return"undefined"===typeof e},isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:c,isStream:function(e){return s(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!==typeof window&&"undefined"!==typeof document},forEach:u,merge:function e(){var t={};function n(n,r){"object"===typeof t[r]&&"object"===typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,o=arguments.length;r<o;r++)u(arguments[r],n);return t},deepMerge:function e(){var t={};function n(n,r){"object"===typeof t[r]&&"object"===typeof n?t[r]=e(t[r],n):t[r]="object"===typeof n?e({},n):n}for(var r=0,o=arguments.length;r<o;r++)u(arguments[r],n);return t},extend:function(e,t,n){return u(t,function(t,o){e[o]=n&&"function"===typeof t?r(t,n):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t,n){e.exports=n(97)},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(70),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t){e.exports=require("react-dom")},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(68),o=n(69),i=n(11),a=n(30),s=n(71),c=n(24),u=n(73);e.exports=function(e){return i(e)?r(e,c):a(e)?[e]:o(s(u(e)))}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(124),o=n(127);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t){var n=1;function r(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}e.exports=function(e){return new Promise(function(t,o){var i=document.createElement("script"),a=e.url;if(e.params){var s=r(e.params);s&&(a+=(a.indexOf("?")>=0?"&":"?")+s)}i.async=!0;var c="axiosJsonpCallback"+n++,u=window[c],l=!1;window[c]=function(e){(window[c]=u,l)||t({data:e,status:200})};var f={_:(new Date).getTime()};f[e.callbackParamName||"callback"]=c,a+=(a.indexOf("?")>=0?"&":"?")+r(f),i.onload=i.onreadystatechange=function(){i.readyState&&!/loaded|complete/.test(i.readyState)||(i.onload=i.onreadystatechange=null,i.parentNode&&i.parentNode.removeChild(i),i=null)},e.cancelToken&&e.cancelToken.promise.then(function(e){i&&(l=!0,o(e))}),i.src=a,document.head.appendChild(i)})}},,function(e,t,n){var r=n(31),o=n(117),i=n(118),a="[object Null]",s="[object Undefined]",c=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:c&&c in Object(e)?o(e):i(e)}},function(e,t){e.exports=function(e){return!!e&&("object"===typeof e||"function"===typeof e)&&"function"===typeof e.then}},function(e,t,n){"use strict";var r=n(26),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var u=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(m){var o=d(n);o&&o!==m&&e(t,o,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var s=c(t),h=c(n),v=0;v<a.length;++v){var y=a[v];if(!i[y]&&(!r||!r[y])&&(!h||!h[y])&&(!s||!s[y])){var g=p(n,y);try{u(t,y,g)}catch(b){}}}return t}return t}},function(e,t){e.exports=function(e,t){return e===t||e!==e&&t!==t}},function(e,t,n){var r=n(30),o=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}},function(e,t,n){var r=n(20),o=n(14),i="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",c="[object Proxy]";e.exports=function(e){if(!o(e))return!1;var t=r(e);return t==a||t==s||t==i||t==c}},function(e,t,n){"use strict";e.exports=n(96)},function(e,t,n){var r=n(44);e.exports=function(e,t,n){var o=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===o?r(e,t,void 0,n):!!o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=u(n(0)),s=u(n(2)),c=u(n(216));function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f={animating:"rah-animating",animatingUp:"rah-animating--up",animatingDown:"rah-animating--down",animatingToHeightZero:"rah-animating--to-height-zero",animatingToHeightAuto:"rah-animating--to-height-auto",animatingToHeightSpecific:"rah-animating--to-height-specific",static:"rah-static",staticHeightZero:"rah-static--height-zero",staticHeightAuto:"rah-static--height-auto",staticHeightSpecific:"rah-static--height-specific"},p=["animateOpacity","animationStateClasses","applyInlineTransitions","children","contentClassName","delay","duration","easing","height","onAnimationEnd","onAnimationStart"];function d(e){return!isNaN(parseFloat(e))&&isFinite(e)}function m(e){return"string"===typeof e&&e.search("%")===e.length-1&&d(e.substr(0,e.length-1))}function h(e,t){e&&"function"===typeof e&&e(t)}var v=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r="auto",i="visible";d(e.height)?(r=e.height<0||"0"===e.height?0:e.height,i="hidden"):m(e.height)&&(r="0%"===e.height?0:e.height,i="hidden"),n.animationStateClasses=o({},f,e.animationStateClasses);var a=n.getStaticStateClasses(r);return n.state={animationStateClasses:a,height:r,overflow:i,shouldUseTransitions:!1},n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.Component),i(t,[{key:"componentDidMount",value:function(){var e=this.state.height;this.contentElement&&this.contentElement.style&&this.hideContent(e)}},{key:"componentDidUpdate",value:function(e,t){var n,r=this,o=this.props,i=o.delay,a=o.duration,s=o.height,u=o.onAnimationEnd,f=o.onAnimationStart;if(this.contentElement&&s!==e.height){var p;this.showContent(t.height),this.contentElement.style.overflow="hidden";var v=this.contentElement.offsetHeight;this.contentElement.style.overflow="";var y=a+i,g=null,b={height:null,overflow:"hidden"},w="auto"===t.height;d(s)?(g=s<0||"0"===s?0:s,b.height=g):m(s)?(g="0%"===s?0:s,b.height=g):(g=v,b.height="auto",b.overflow=null),w&&(b.height=g,g=v);var _=(0,c.default)((l(p={},this.animationStateClasses.animating,!0),l(p,this.animationStateClasses.animatingUp,"auto"===e.height||s<e.height),l(p,this.animationStateClasses.animatingDown,"auto"===s||s>e.height),l(p,this.animationStateClasses.animatingToHeightZero,0===b.height),l(p,this.animationStateClasses.animatingToHeightAuto,"auto"===b.height),l(p,this.animationStateClasses.animatingToHeightSpecific,b.height>0),p)),E=this.getStaticStateClasses(b.height);this.setState({animationStateClasses:_,height:g,overflow:"hidden",shouldUseTransitions:!w}),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),w?(b.shouldUseTransitions=!0,n=function(){r.setState(b),h(f,{newHeight:b.height})},requestAnimationFrame(function(){requestAnimationFrame(function(){n()})}),this.animationClassesTimeoutID=setTimeout(function(){r.setState({animationStateClasses:E,shouldUseTransitions:!1}),r.hideContent(b.height),h(u,{newHeight:b.height})},y)):(h(f,{newHeight:g}),this.timeoutID=setTimeout(function(){b.animationStateClasses=E,b.shouldUseTransitions=!1,r.setState(b),"auto"!==s&&r.hideContent(g),h(u,{newHeight:g})},y))}}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),this.timeoutID=null,this.animationClassesTimeoutID=null,this.animationStateClasses=null}},{key:"showContent",value:function(e){0===e&&(this.contentElement.style.display="")}},{key:"hideContent",value:function(e){0===e&&(this.contentElement.style.display="none")}},{key:"getStaticStateClasses",value:function(e){var t;return(0,c.default)((l(t={},this.animationStateClasses.static,!0),l(t,this.animationStateClasses.staticHeightZero,0===e),l(t,this.animationStateClasses.staticHeightSpecific,e>0),l(t,this.animationStateClasses.staticHeightAuto,"auto"===e),t))}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.animateOpacity,i=n.applyInlineTransitions,s=n.children,u=n.className,f=n.contentClassName,d=n.duration,m=n.easing,h=n.delay,v=n.style,y=this.state,g=y.height,b=y.overflow,w=y.animationStateClasses,_=y.shouldUseTransitions,E=o({},v,{height:g,overflow:b||v.overflow});_&&i&&(E.transition="height "+d+"ms "+m+" "+h+"ms",v.transition&&(E.transition=v.transition+", "+E.transition),E.WebkitTransition=E.transition);var x={};r&&(x.transition="opacity "+d+"ms "+m+" "+h+"ms",x.WebkitTransition=x.transition,0===g&&(x.opacity=0));var S=(0,c.default)((l(e={},w,!0),l(e,u,u),e));return a.default.createElement("div",o({},function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(!n.length)return e;for(var o={},i=Object.keys(e),a=0;a<i.length;a++){var s=i[a];-1===n.indexOf(s)&&(o[s]=e[s])}return o}.apply(void 0,[this.props].concat(p)),{"aria-hidden":0===g,className:S,style:E}),a.default.createElement("div",{className:f,style:x,ref:function(e){return t.contentElement=e}},s))}}]),t}();v.propTypes={animateOpacity:s.default.bool,animationStateClasses:s.default.object,applyInlineTransitions:s.default.bool,children:s.default.any.isRequired,className:s.default.string,contentClassName:s.default.string,duration:s.default.number,delay:s.default.number,easing:s.default.string,height:function(e,t,n){var o=e[t];return"number"===typeof o&&o>=0||m(o)||"auto"===o?null:new TypeError('value "'+o+'" of type "'+("undefined"===typeof o?"undefined":r(o))+'" is invalid type for '+t+" in "+n+'. It needs to be a positive number, string "auto" or percentage string (e.g. "15%").')},onAnimationEnd:s.default.func,onAnimationStart:s.default.func,style:s.default.object},v.defaultProps={animateOpacity:!1,animationStateClasses:f,applyInlineTransitions:!0,duration:250,delay:0,easing:"ease",style:{}},t.default=v},,function(e,t,n){var r=n(20),o=n(16),i="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||o(e)&&r(e)==i}},function(e,t,n){var r=n(12).Symbol;e.exports=r},function(e,t,n){var r=n(17)(Object,"create");e.exports=r},function(e,t,n){var r=n(132),o=n(133),i=n(134),a=n(135),s=n(136);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(23);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(138);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(25),o=n(52);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){var r=n(79);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(0);function o(){var e=Object(r.useRef)(!0),t=Object(r.useRef)(function(){return e.current});return Object(r.useEffect)(function(){return function(){e.current=!1}},[]),t.current}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){"use strict";(function(e){t.a=function(){var t=e;return!("undefined"===typeof t||!t.hot||"function"!==typeof t.hot.status||"apply"!==t.hot.status())}}).call(this,n(59)(e))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(121),o=n(137),i=n(139),a=n(140),s=n(141);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(17)(n(12),"Map");e.exports=r},function(e,t,n){var r=n(143),o=n(16);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!==t&&n!==n:r(t,n,i,a,e,s))}},function(e,t,n){var r=n(33),o=n(144),i=n(145),a=n(146),s=n(147),c=n(148);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=c,e.exports=u},function(e,t,n){var r=n(76),o=n(170),i=n(36);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){var r=n(165),o=n(16),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},function(e,t,n){(function(e){var r=n(12),o=n(166),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||o;e.exports=c}).call(this,n(49)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],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}}),e.webpackPolyfill=1),e}},function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var o=typeof e;return!!(t=null==t?n:t)&&("number"==o||"symbol"!=o&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(167),o=n(168),i=n(169),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},function(e,t){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(11),o=n(30),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},function(e,t,n){"use strict";(function(e,r){var o,i=n(88);o="undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof e?e:r;var a=Object(i.a)(o);t.a=a}).call(this,n(41),n(59)(e))},function(e,t,n){var r=n(177),o=n(192)(function(e,t,n){r(e,t,n)});e.exports=o},function(e,t,n){var r=n(37),o=n(201),i=n(202);e.exports=function(e,t){var n={};return t=i(t,3),o(e,function(e,o,i){r(n,o,t(e,o,i))}),n}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(8);function o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))}))}),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";(function(t){var r=n(8),o=n(104),i={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s={adapter:function(){var e;return"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t)?e=n(64):"undefined"!==typeof XMLHttpRequest&&(e=n(64)),e}(),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],function(e){s.headers[e]={}}),r.forEach(["post","put","patch"],function(e){s.headers[e]=r.merge(i)}),e.exports=s}).call(this,n(103))},function(e,t,n){"use strict";var r=n(8),o=n(105),i=n(61),a=n(107),s=n(108),c=n(65);e.exports=function(e){return new Promise(function(t,u){var l=e.data,f=e.headers;r.isFormData(l)&&delete f["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var d=e.auth.username||"",m=e.auth.password||"";f.Authorization="Basic "+btoa(d+":"+m)}if(p.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in p?a(p.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:n,config:e,request:p};o(t,u,r),p=null}},p.onabort=function(){p&&(u(c("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){u(c("Network Error",e,null,p)),p=null},p.ontimeout=function(){u(c("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var h=n(109),v=(e.withCredentials||s(e.url))&&e.xsrfCookieName?h.read(e.xsrfCookieName):void 0;v&&(f[e.xsrfHeaderName]=v)}if("setRequestHeader"in p&&r.forEach(f,function(e,t){"undefined"===typeof l&&"content-type"===t.toLowerCase()?delete f[t]:p.setRequestHeader(t,e)}),e.withCredentials&&(p.withCredentials=!0),e.responseType)try{p.responseType=e.responseType}catch(y){if("json"!==e.responseType)throw y}"function"===typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){p&&(p.abort(),u(e),p=null)}),void 0===l&&(l=null),p.send(l)})}},function(e,t,n){"use strict";var r=n(106);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},function(e,t,n){"use strict";var r=n(8);e.exports=function(e,t){t=t||{};var n={};return r.forEach(["url","method","params","data"],function(e){"undefined"!==typeof t[e]&&(n[e]=t[e])}),r.forEach(["headers","auth","proxy"],function(o){r.isObject(t[o])?n[o]=r.deepMerge(e[o],t[o]):"undefined"!==typeof t[o]?n[o]=t[o]:r.isObject(e[o])?n[o]=r.deepMerge(e[o]):"undefined"!==typeof e[o]&&(n[o]=e[o])}),r.forEach(["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"],function(r){"undefined"!==typeof t[r]?n[r]=t[r]:"undefined"!==typeof e[r]&&(n[r]=e[r])}),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(41))},function(e,t,n){var r=n(119),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)}),t});e.exports=a},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(t){}try{return e+""}catch(t){}}return""}},function(e,t,n){var r=n(142);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(149),o=n(152),i=n(153),a=1,s=2;e.exports=function(e,t,n,c,u,l){var f=n&a,p=e.length,d=t.length;if(p!=d&&!(f&&d>p))return!1;var m=l.get(e);if(m&&l.get(t))return m==t;var h=-1,v=!0,y=n&s?new r:void 0;for(l.set(e,t),l.set(t,e);++h<p;){var g=e[h],b=t[h];if(c)var w=f?c(b,g,h,t,e,l):c(g,b,h,e,t,l);if(void 0!==w){if(w)continue;v=!1;break}if(y){if(!o(t,function(e,t){if(!i(y,t)&&(g===e||u(g,e,n,c,l)))return y.push(t)})){v=!1;break}}else if(g!==b&&!u(g,b,n,c,l)){v=!1;break}}return l.delete(e),l.delete(t),v}},function(e,t,n){var r=n(12).Uint8Array;e.exports=r},function(e,t,n){var r=n(164),o=n(47),i=n(11),a=n(48),s=n(50),c=n(51),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),f=!n&&!l&&a(e),p=!n&&!l&&!f&&c(e),d=n||l||f||p,m=d?r(e.length,String):[],h=m.length;for(var v in e)!t&&!u.call(e,v)||d&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,h))||m.push(v);return m}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(37),o=n(23);e.exports=function(e,t,n){(void 0===n||o(e[t],n))&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(17),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},function(e,t,n){var r=n(178)();e.exports=r},function(e,t,n){var r=n(77)(Object.getPrototypeOf,Object);e.exports=r},function(e,t){e.exports=function(e,t){if("__proto__"!=t)return e[t]}},function(e,t,n){var r=n(76),o=n(190),i=n(36);e.exports=function(e){return i(e)?r(e,!0):o(e)}},function(e,t,n){var r=n(14);e.exports=function(e){return e===e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},function(e,t,n){var r=n(87),o=n(24);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},function(e,t,n){var r=n(11),o=n(55),i=n(71),a=n(73);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"===typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",function(){return r})},function(e){e.exports={en:{landing_top_header:"Try on a new smile.",landing_sub_header:"Simply snap a selfie and see what you could look like with straighter teeth, in under 60 seconds.",form_email:"Email",form_firstname:"First name",form_lastname:"Last name",form_firstlastname:"First and last name",form_postcode:"Postcode",form_consent:"I consent to Align Technology contacting me via email, mobile phone, or text to schedule an appointment with the Invisalign Provider(s) of my choosing, or regarding information on Invisalign treatment, special offers and requests for feedback on my treatment experience.",form_verify18:"By clicking \u201cTake your selfie\u201d, I verify that I am 18 years of age or older.",form_take_selfie:"Take your selfie",form_respect_privacy:"Align Technology respects your privacy and will only collect and process your data in accordance with our {Privacy Policy}",footer_sv_computer_generated:"The Smile Visualization tool is a computer-generated simulation of what your smile may look like after Invisalign\xae treatment. Actual results may vary.",form_privacy_policy:"Privacy policy",capture_creating_simulation:"Creating your simulation",capture_very_quick:"It is very quick. It takes about 1 minute",capture_progress1:"Uploading Photo",capture_progress2:"Preparing Visualization",capture_progress3:"Checking for glasses",capture_progress4:"Checking for hat",capture_progress5:"Checking for selfie clarity",capture_progress6:"Checking for great smile",capture_progress7:"Generating your new smile",error_unsuitable1:"Sorry but something went wrong with your image.",error_unsuitable2:"Please review the tips and try again!",error_unsuitable3:"You're so close to seeing your new smile!",error_network:"Sorry something went wrong. Please check your network connection.",error_try_again:"Try again",error_enter_pin:"Please, enter a four digits code",error_bad_pin:"We\u2019re sorry. Please choose a more secure code",results_current:"Current",results_smileview:"SmileView",results_computer_generated:"The SmileView tool is a computer-generated simulation of how your smile might look if you had straighter teeth. Please be aware that the SmileView Tool does not offer a clinical diagnosis and is not an accurate representation or projected results of your Invisalign treatment. It is intended for general guidance purposes only. In some cases, restorative work may be needed in addition to teeth straightening to attain optimal results. Align Technology does not guarantee, or give any warranty that if you are treated with Invisalign clear aligners your teeth and smile will be as shown in the SmileView provided. Please contact an Invisalign provider to assess your treatment needs.",results_gotit:"Got it!",results_thankyou:"thank you",save_header1:"Before you go",save_header2:"Save your visualization image",save_body:"Make sure your new smile visualization is saved before you go. That way, you can see the results at any time.",save_body_ios:"To download the image, touch and hold the image for about 2 seconds until a menu appears. Select 'Save Image'.",save_dontsave:"Don't Save",save_save:"Save",thumbsdown_header:"Please let us know why you weren\u2019t happy with your visualisation:",thumbsdown_answer1:"I can't see much of a change",thumbsdown_answer2:"It no longer looks like my smile",thumbsdown_answer3:"You haven't fixed my dental issue",thumbsdown_answer4:"The resulting image doesn't look like real teeth",thumbsdown_answer5:"I don't want to look like that",thumbsdown_answer6:"I just didn't like it",thumbsdown_answer7:"Other",thumbsdown_submit:"Submit",continue_header:"Are you sure you want to leave?",continue_body:"You're only a few more moments away from seeing what your new smile could look like!",continue_stop:"Stop simulation",continue_continue:"Continue",results_find_doctor:"Find an Invisalign doctor",results_find_doctor_search_text:"City/postcode",results_find_doctor_search_button:"Show results",form_try_now:"Try it on now",results_pins_error:"We\u2019re sorry. Please choose a more secure PIN",results_pins_message:"if you would like to receive your SmileView Simulation via email please enter here a memorable 4 digit code:",inpractice_landing_top_header:"Let\u2019s get started with your new smile",inpractice_landing_tips_header:"You are moments away from seeing how great your new smile could be",inpractice_landing_tips_1:"Checkcopy Make sure there\u2019s ample light",inpractice_landing_tips_2:"Checkcopy Remove glasses and hats",inpractice_landing_tips_3:"Checkcopy Keep your head straight",inpractice_landing_tips_4:"Checkcopy Look directly at the camera",inpractice_capture_heading1:"Please wait.",inpractice_capture_heading2:"Your SmileView is being created",inpractice_form_phone:"Phone",inpractice_form_postcode:"Postcode",inpractice_form_orthodontist:"orthodontist",inpractice_form_dentist:"dentist",inpractice_form_heading1:"While you wait:",inpractice_form_heading2:"Please provide some info for your `$1`",inpractice_form_heading2_gp:"Please provide some info for your dentist",inpractice_form_heading2_ortho:"Please provide some info for your orthodontist",inpractice_form_subheading1:"Want to know more?",inpractice_form_q1:"How is it different to braces?",inpractice_form_q2:"Invite a Friend?",inpractice_form_q3:"Is it affordable?",inpractice_form_q4:"How quickly can I see the results?",inpractice_form_q5:"How does it work?",inpractice_form_cancel:"Cancel",inpractice_form_send:"Send to my $1",inpractice_form_send_gp:"Send to my dentist",inpractice_form_send_ortho:"Send to my orthodontist",inpractice_form_disclaimer:'By clicking "Send to my $1", I understand that my personal data, including my SmileView photographs, will be transferred to my $1.',inpractice_form_disclaimer_gp:'By clicking "Send to my dentist", I understand that my personal data, including my SmileView photographs, will be transferred to my dentist.',inpractice_form_disclaimer_ortho:'By clicking "Send to my orthodontist", I understand that my personal data, including my SmileView photographs, will be transferred to my orthodontist.',inpractice_email_copy:"Email me a copy",inpractice_results_thankyou:"Thank you",inpractice_results_thankyou2:"Your $1 is happy to discuss with you how to make your new smile a reality.",inpractice_results_thankyou2_gp:"Your dentist is happy to discuss with you how to make your new smile a reality.",inpractice_results_thankyou2_ortho:"Your orthodontist is happy to discuss with you how to make your new smile a reality.",inpractice_results_visit_practice:"Visit practice website",inpractice_results_pins_header:"Your SmileView is on its way!",inpractice_results_pins_message:"To access your photos in your email please create a 4 digit PIN"},de:{landing_top_header:"Beginnen wir mit Ihrem neuen L\xe4cheln",landing_sub_header:"Machen Sie einfach ein Selfie und sehen Sie in weniger als 60 Sekunden, wie Sie mit geraderen Z\xe4hnen aussehen k\xf6nnten.",form_email:"E-Mail-Adresse",form_firstname:"Vorname",form_lastname:"Nachname",form_firstlastname:"Vor- und Nachname",form_postcode:"PLZ",form_consent:"Ich stimme zu, dass Align Technology mich per E-Mail bez\xfcglich Sonderangeboten, Informationen zu lokalen Anbietern und Fragen zum Feedback zu meiner Behandlungserfahrung kontaktiert.",form_verify18:"Durch Klicken auf \u201eSelfie aufnehmen\u201c best\xe4tige ich, dass ich mindestens 18 Jahre alt bin.",form_take_selfie:"Selfie aufnehmen",form_respect_privacy:"",footer_sv_computer_generated:"Das Werkzeug SmileView ist eine computergenerierte Simulation Ihres L\xe4chelns nach der Invisalign\xae\xa0Behandlung. Die tats\xe4chlichen Ergebnisse k\xf6nnen abweichen.",form_privacy_policy:"Datenschutz",capture_creating_simulation:"Simulation erstellen",capture_very_quick:"Das geht sehr schnell. Es dauert ungef\xe4hr 1 Minute.",capture_progress1:"Foto hochladen",capture_progress2:"Visualisierung vorbereiten",capture_progress3:"Auf Brille pr\xfcfen",capture_progress4:"Auf Kopfbedeckung pr\xfcfen",capture_progress5:"Auf Klarheit des Selfies pr\xfcfen",capture_progress6:"Auf ein gro\xdfartiges L\xe4cheln pr\xfcfen",capture_progress7:"Ihr neues L\xe4cheln wird generiert",error_unsuitable1:"",error_unsuitable2:"",error_unsuitable3:"",error_network:"",error_try_again:"",error_enter_pin:"Bitte w\xe4hlen Sie einen 4-stelligen Code",error_bad_pin:"Es tut uns leid, bitte w\xe4hlen Sie einen sicheren PIN aus",results_current:"Aktuell",results_smileview:"SmileView",results_computer_generated:"Das Werkzeug SmileView ist eine computergenerierte Simulation Ihres L\xe4chelns nach der Begradigung Ihrer Z\xe4hne. Bitte beachten Sie, dass das Werkzeug SmileView keine klinische Diagnose stellt und keine genaue Darstellung der voraussichtlichen Ergebnisse Ihrer Invisalign Behandlung sein kann. Es dient lediglich zur allgemeinen Orientierung. In manchen F\xe4llen muss zus\xe4tzlich zur Zahnbegradigung eine Restauration vorgenommen werden, um optimale Ergebnisse zu erzielen. Align Technology gibt keine Garantie und gew\xe4hrleistet nicht, dass Ihre Z\xe4hne und Ihr L\xe4cheln nach der Behandlung mit transparenten Invisalign Alignern so aussehen, wie in SmileView dargestellt. Bitte nehmen Sie Kontakt mit einem Invisalign Anwender auf, um zu ermitteln, welche Behandlung Sie ben\xf6tigen.\xa0",results_gotit:"Verstanden!",results_thankyou:"Vielen Dank.",save_header1:"",save_header2:"",save_body:"",save_dontsave:"",save_save:"",thumbsdown_header:"Bitte teilen Sie uns mit, warum Sie mit Ihrer Visualisierung nicht zufrieden waren:",thumbsdown_answer1:"Ich sehe keine gro\xdfe Ver\xe4nderung",thumbsdown_answer2:"Es sieht nicht mehr wie mein L\xe4cheln aus",thumbsdown_answer3:"Meine Zahnfehlstellung ist nicht gel\xf6st",thumbsdown_answer4:"Das Endresultat sieht nicht wie echte Z\xe4hne aus",thumbsdown_answer5:"So m\xf6chte ich nicht aussehen",thumbsdown_answer6:"Mir hat es einfach nicht gefallen",thumbsdown_answer7:"Sonstiges",thumbsdown_submit:"Senden",continue_header:"",continue_body:"",continue_stop:"",continue_continue:"",results_find_doctor:"Invisalign-Anwender suchen",form_try_now:"Probieren Sie es jetzt"},bg:{landing_top_header:"\u0412\u0438\u0436\u0442\u0435 \u043d\u043e\u0432\u0430\u0442\u0430 \u0441\u0438 \u0443\u0441\u043c\u0438\u0432\u043a\u0430.",landing_sub_header:"\u041d\u0430\u043f\u0440\u0430\u0432\u0435\u0442\u0435 \u0441\u0438 \u0441\u0435\u043b\u0444\u0438 \u0438 \u0432\u0438\u0436\u0442\u0435 \u043a\u0430\u043a \u0431\u0438\u0445\u0442\u0435 \u043c\u043e\u0433\u043b\u0438 \u0434\u0430 \u0438\u0437\u0433\u043b\u0435\u0436\u0434\u0430\u0442\u0435 \u0441 \u0440\u0430\u0432\u043d\u0438 \u0437\u044a\u0431\u0438 \u0437\u0430 \u043f\u043e-\u043c\u0430\u043b\u043a\u043e \u043e\u0442 60 \u0441\u0435\u043a\u0443\u043d\u0434\u0438.",form_email:"\u0418\u043c\u0435\u0439\u043b",form_firstname:"\u041b\u0438\u0447\u043d\u043e \u0438\u043c\u0435",form_lastname:"\u0424\u0430\u043c\u0438\u043b\u0438\u044f",form_firstlastname:"\u0418\u043c\u0435 \u0438 \u0444\u0430\u043c\u0438\u043b\u0438\u044f",form_postcode:"\u041f\u043e\u0449\u0435\u043d\u0441\u043a\u0438 \u043a\u043e\u0434",form_consent:"\u041f\u0440\u0438\u0435\u043c\u0430\u043c \u0434\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0432\u0430\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e\u0442 Align Technology \u043f\u043e \u0438\u043c\u0435\u0439\u043b \u043e\u0442\u043d\u043e\u0441\u043d\u043e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u043d\u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0437\u0430 \u043b\u0435\u043a\u0430\u0440\u0438 \u0438 \u0437\u0430\u043f\u0438\u0442\u0432\u0430\u043d\u0438\u044f \u0437\u0430 \u043c\u043d\u0435\u043d\u0438\u0435\u0442\u043e \u043c\u0438 \u043e\u0442\u043d\u043e\u0441\u043d\u043e \u043b\u0435\u0447\u0435\u043d\u0438\u0435\u0442\u043e \u043c\u0438.",form_verify18:"\u0421 \u043d\u0430\u0442\u0438\u0441\u043a\u0430\u043d\u0435\u0442\u043e \u043d\u0430 \u201c\u041d\u0430\u043f\u0440\u0430\u0432\u0438 \u0441\u0438 \u0441\u0435\u043b\u0444\u0438\u201d, \u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u0430\u043c, \u0447\u0435 \u0441\u044a\u043c \u043f\u043e-\u0432\u044a\u0437\u0440\u0430\u0441\u0442\u0435\u043d \u043e\u0442 18 \u0433\u043e\u0434\u0438\u043d\u0438.",form_take_selfie:"\u041d\u0430\u043f\u0440\u0430\u0432\u0438 \u0441\u0438 \u0441\u0435\u043b\u0444\u0438",form_respect_privacy:"Align Technology \u0437\u0430\u0447\u0438\u0442\u0430 \u0432\u0430\u0448\u0430\u0442\u0430 \u043f\u043e\u0432\u0435\u0440\u0438\u0442\u0435\u043b\u043d\u043e\u0441\u0442 \u0438 \u0449\u0435 \u0441\u044a\u0431\u0438\u0440\u0430 \u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0432\u0430 \u0432\u0430\u0448\u0438\u0442\u0435 \u0434\u0430\u043d\u043d\u0438 \u0441\u0430\u043c\u043e \u0432 \u0441\u044a\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0441 \u043d\u0430\u0448\u0430\u0442\u0430 {\u0414\u0435\u043a\u043b\u0430\u0440\u0430\u0446\u0438\u044f \u0437\u0430 \u043f\u043e\u0432\u0435\u0440\u0438\u0442\u0435\u043b\u043d\u043e\u0441\u0442}",footer_sv_computer_generated:"\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044a\u0442 \u0437\u0430 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 \u0443\u0441\u043c\u0438\u0432\u043a\u0430\u0442\u0430 \u0435 \u043a\u043e\u043c\u043f\u044e\u0442\u044a\u0440\u043d\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0430\u043d\u0430 \u0441\u0438\u043c\u0443\u043b\u0430\u0446\u0438\u044f \u043d\u0430 \u0442\u043e\u0432\u0430 \u043a\u0430\u043a \u043c\u043e\u0436\u0435 \u0434\u0430 \u0438\u0437\u0433\u043b\u0435\u0436\u0434\u0430 \u0443\u0441\u043c\u0438\u0432\u043a\u0430\u0442\u0430 \u0432\u0438 \u0441\u043b\u0435\u0434 \u043b\u0435\u0447\u0435\u043d\u0438\u0435\u0442\u043e \u0441 Invisalign\xae. \u0420\u0435\u0430\u043b\u043d\u0438\u0442\u0435 \u0440\u0435\u0437\u0443\u043b\u0442\u0430\u0442\u0438 \u043c\u043e\u0433\u0430\u0442 \u0434\u0430 \u0432\u0430\u0440\u0438\u0440\u0430\u0442.",form_privacy_policy:"\u0414\u0435\u043a\u043b\u0430\u0440\u0430\u0446\u0438\u044f \u0437\u0430 \u043f\u043e\u0432\u0435\u0440\u0438\u0442\u0435\u043b\u043d\u043e\u0441\u0442",capture_creating_simulation:"\u0421\u044a\u0437\u0434\u0430\u0432\u0430\u043d\u0435 \u043d\u0430 \u0432\u0430\u0448\u0430\u0442\u0430 \u0441\u0438\u043c\u0443\u043b\u0430\u0446\u0438\u044f",capture_very_quick:"\u041c\u043d\u043e\u0433\u043e \u0435 \u0431\u044a\u0440\u0437\u043e. \u0429\u0435 \u043e\u0442\u043d\u0435\u043c\u0435 \u043e\u043a\u043e\u043b\u043e \u043c\u0438\u043d\u0443\u0442\u0430.",capture_progress1:"\u041a\u0430\u0447\u0432\u0430\u043d\u0435 \u043d\u0430 \u0441\u043d\u0438\u043c\u043a\u0430\u0442\u0430.",capture_progress2:"\u041f\u043e\u0434\u0433\u043e\u0442\u0432\u044f\u043d\u0435 \u043d\u0430 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f\u0442\u0430",capture_progress3:"\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0437\u0430 \u043e\u0447\u0438\u043b\u0430",capture_progress4:"\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0437\u0430 \u0448\u0430\u043f\u043a\u0430",capture_progress5:"\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0437\u0430 \u044f\u0441\u043d\u043e\u0442\u0430 \u043d\u0430 \u0441\u0435\u043b\u0444\u0438\u0442\u043e",capture_progress6:"\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0437\u0430 \u0445\u0443\u0431\u0430\u0432\u0430 \u0443\u0441\u043c\u0438\u0432\u043a\u0430",capture_progress7:"\u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0430\u043d\u0435 \u043d\u0430 \u0432\u0430\u0448\u0430\u0442\u0430 \u043d\u043e\u0432\u0430 \u0443\u0441\u043c\u0438\u0432\u043a\u0430",error_unsuitable1:"\u0418\u0437\u0432\u0438\u043d\u0435\u0442\u0435, \u0438\u043c\u0430\u0448\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u0432\u0430\u0448\u0430\u0442\u0430 \u0441\u043d\u0438\u043c\u043a\u0430",error_unsuitable2:"\u041c\u043e\u043b\u044f, \u043f\u0440\u043e\u0447\u0435\u0442\u0435\u0442\u0435 \u043e\u0442\u043d\u043e\u0432\u043e \u0441\u044a\u0432\u0435\u0442\u0438\u0442\u0435 \u0438 \u043e\u043f\u0438\u0442\u0430\u0439\u0442\u0435 \u043e\u0442\u043d\u043e\u0432\u043e!",error_unsuitable3:"\u0421\u044a\u0432\u0441\u0435\u043c \u0441\u043a\u043e\u0440\u043e \u0449\u0435 \u0432\u0438\u0434\u0438\u0442\u0435 \u0432\u0430\u0448\u0430\u0442\u0430 \u043d\u043e\u0432\u0430 \u0443\u0441\u043c\u0438\u0432\u043a\u0430!",error_network:"\u0418\u0437\u0432\u0438\u043d\u0435\u0442\u0435, \u0438\u043c\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c. \u041f\u0440\u043e\u0432\u0435\u0440\u0435\u0442\u0435 \u0432\u0440\u044a\u0437\u043a\u0430\u0442\u0430 \u0441\u0438 \u0441 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442.",error_try_again:"\u041e\u043f\u0438\u0442\u0430\u0439\u0442\u0435 \u043e\u0442\u043d\u043e\u0432\u043e",error_enter_pin:"\u041c\u043e\u043b\u044f, \u0432\u044a\u0432\u0435\u0434\u0435\u0442\u0435 4 \u0446\u0438\u0444\u0440\u0435\u043d \u043a\u043e\u0434",error_bad_pin:"\u0421\u044a\u0436\u0430\u043b\u044f\u0432\u0430\u043c\u0435. \u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u043f\u043e-\u0441\u0438\u0433\u0443\u0440\u0435\u043d \u043a\u043e\u0434",results_current:"\u0421\u0435\u0433\u0430",results_smileview:"SmileView",results_computer_generated:"\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044a\u0442 SmileView \u0435 \u043a\u043e\u043c\u043f\u044e\u0442\u044a\u0440\u043d\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0430\u043d\u0430 \u0441\u0438\u043c\u0443\u043b\u0430\u0446\u0438\u044f \u043d\u0430 \u0442\u043e\u0432\u0430 \u043a\u0430\u043a \u043c\u043e\u0436\u0435 \u0434\u0430 \u0438\u0437\u0433\u043b\u0435\u0436\u0434\u0430 \u0443\u0441\u043c\u0438\u0432\u043a\u0430\u0442\u0430 \u0432\u0438, \u0430\u043a\u043e \u0438\u043c\u0430\u0442\u0435 \u043f\u043e-\u043f\u0440\u0430\u0432\u0438 \u0437\u044a\u0431\u0438. \u041c\u043e\u043b\u044f, \u0438\u043c\u0430\u0439\u0442\u0435 \u043f\u0440\u0435\u0434\u0432\u0438\u0434, \u0447\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044a\u0442 SmileView \u043d\u0435 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430 \u043a\u043b\u0438\u043d\u0438\u0447\u043d\u0430 \u0434\u0438\u0430\u0433\u043d\u043e\u0437\u0430 \u0438 \u043d\u0435 \u0435 \u0442\u043e\u0447\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044f\u043d\u0435 \u0438\u043b\u0438 \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u0438\u0440\u0430\u043d\u0438 \u0440\u0435\u0437\u0443\u043b\u0442\u0430\u0442\u0438 \u043e\u0442 \u0412\u0430\u0448\u0435\u0442\u043e \u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u0441 Invisalign. \u0422\u043e\u0439 \u0435 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0441\u0430\u043c\u043e \u0437\u0430 \u0434\u0430\u0432\u0430\u043d\u0435 \u043d\u0430 \u043e\u0431\u0449\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0430 \u0438 \u0432\u044a\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438. \u0412 \u043d\u044f\u043a\u043e\u0438 \u0441\u043b\u0443\u0447\u0430\u0438 \u043c\u043e\u0436\u0435 \u0434\u0430 \u0441\u0435 \u043d\u0430\u043b\u043e\u0436\u0438 \u0432\u044a\u0437\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435\u043b\u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0430 \u0432 \u0434\u043e\u043f\u044a\u043b\u043d\u0435\u043d\u0438\u0435 \u043a\u044a\u043c \u0438\u0437\u043f\u0440\u0430\u0432\u044f\u043d\u0435 \u043d\u0430 \u0437\u044a\u0431\u0438\u0442\u0435 \u0437\u0430 \u043f\u043e\u0441\u0442\u0438\u0433\u0430\u043d\u0435 \u043d\u0430 \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u043d\u0438 \u0440\u0435\u0437\u0443\u043b\u0442\u0430\u0442\u0438. Align Technology \u043d\u0435 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0430 \u0438\u043b\u0438 \u043d\u0435 \u0434\u0430\u0432\u0430 \u043d\u0438\u043a\u0430\u043a\u0432\u0430 \u0433\u0430\u0440\u0430\u043d\u0446\u0438\u044f, \u0447\u0435 \u0430\u043a\u043e \u0441\u0435 \u043b\u0435\u043a\u0443\u0432\u0430\u0442\u0435 \u0441 Invisalign \u0430\u043b\u0430\u0439\u043d\u0435\u0440\u0438, \u0432\u0430\u0448\u0438\u0442\u0435 \u0437\u044a\u0431\u0438 \u0438 \u0443\u0441\u043c\u0438\u0432\u043a\u0430 \u0449\u0435 \u0431\u044a\u0434\u0430\u0442 \u0442\u0430\u043a\u0438\u0432\u0430 \u043a\u0430\u043a\u0442\u043e \u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u0432 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0435\u043d\u0438\u044f SmileView. \u041c\u043e\u043b\u044f, \u0441\u0432\u044a\u0440\u0436\u0435\u0442\u0435 \u0441\u0435 \u0441 \u043b\u0435\u043a\u0430\u0440 \u043d\u0430 Invisalign, \u0437\u0430 \u0434\u0430 \u043f\u0440\u0435\u0446\u0435\u043d\u0438\u0442\u0435 \u0432\u0430\u0448\u0438\u0442\u0435 \u043d\u0443\u0436\u0434\u0438 \u043e\u0442 \u043b\u0435\u0447\u0435\u043d\u0438\u0435.",results_gotit:"\u0420\u0430\u0437\u0431\u0440\u0430\u0445!",results_thankyou:"\u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f",save_header1:"\u041f\u0440\u0435\u0434\u0438 \u0434\u0430 \u0437\u0430\u0442\u0432\u043e\u0440\u0438\u0442\u0435",save_header2:"\u0417\u0430\u043f\u0438\u0448\u0435\u0442\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u0442\u0430 \u043d\u0430 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f\u0442\u0430",save_body:"\u0417\u0430\u043f\u0438\u0448\u0435\u0442\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u0442\u0430 \u043f\u0440\u0435\u0434\u0438 \u0434\u0430 \u0437\u0430\u0442\u0432\u043e\u0440\u0438\u0442\u0435. \u041f\u043e-\u0442\u043e\u0437\u0438 \u043d\u0430\u0447\u0438\u043d \u0449\u0435 \u043c\u043e\u0436\u0435 \u0434\u0430 \u0432\u0438\u0434\u0438\u0442\u0435 \u0440\u0435\u0437\u0443\u043b\u0442\u0430\u0442\u0438\u0442\u0435 \u043f\u043e \u0432\u0441\u044f\u043a\u043e \u0432\u0440\u0435\u043c\u0435",save_body_ios:"\u0417\u0430 \u0434\u0430 \u0441\u0432\u0430\u043b\u0438\u0442\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u0442\u0430, \u0434\u043e\u043a\u043e\u0441\u043d\u0435\u0442\u0435 \u0438 \u0437\u0430\u0434\u0440\u044a\u0436\u0442\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u0442\u0430 \u0437\u0430 \u043e\u043a\u043e\u043b\u043e 2 \u0441\u0435\u043a\u0443\u043d\u0434\u0438 \u0434\u043e\u043a\u0430\u0442\u043e \u0441\u0435 \u043f\u043e\u044f\u0432\u0438 \u043c\u0435\u043d\u044e. \u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435 'Save Image'",save_dontsave:"\u041d\u0435 \u0437\u0430\u043f\u0438\u0441\u0432\u0430\u0439",save_save:"\u0417\u0430\u043f\u0438\u0448\u0438",thumbsdown_header:"\u041c\u043e\u043b\u044f \u0432\u0438, \u0441\u043f\u043e\u0434\u0435\u043b\u0435\u0442\u0435 \u0437\u0430\u0449\u043e \u043d\u0435 \u0441\u0442\u0435 \u0434\u043e\u0432\u043e\u043b\u043d\u0438 \u043e\u0442 \u0432\u0430\u0448\u0430\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f:",thumbsdown_answer1:"\u041d\u0435 \u0432\u0438\u0436\u0434\u0430\u043c \u043e\u0441\u043e\u0431\u0435\u043d\u0430 \u043f\u0440\u043e\u043c\u044f\u043d\u0430",thumbsdown_answer2:"\u041d\u0435 \u0438\u0437\u0433\u043b\u0435\u0436\u0434\u0430 \u043a\u0430\u0442\u043e \u043c\u043e\u044f\u0442\u0430 \u0443\u0441\u043c\u0438\u0432\u043a\u0430",thumbsdown_answer3:"\u041d\u0435 \u043a\u043e\u0440\u0438\u0433\u0438\u0440\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441\u044a\u0441 \u0437\u044a\u0431\u0438\u0442\u0435 \u043c\u0438",thumbsdown_answer4:"\u041d\u043e\u0432\u0438\u0442\u0435 \u0437\u044a\u0431\u0438 \u043d\u0435 \u0438\u0437\u0433\u043b\u0435\u0436\u0434\u0430\u0442 \u0438\u0441\u0442\u0438\u043d\u0441\u043a\u0438",thumbsdown_answer5:"\u041d\u0435 \u0438\u0441\u043a\u0430\u043c \u0434\u0430 \u0438\u0437\u0433\u043b\u0435\u0436\u0434\u0430\u043c \u0442\u0430\u043a\u0430",thumbsdown_answer6:"\u041f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u043c\u0438 \u0445\u0430\u0440\u0435\u0441\u0432\u0430",thumbsdown_answer7:"\u0414\u0440\u0443\u0433\u043e",thumbsdown_submit:"\u0418\u0437\u043f\u0440\u0430\u0449\u0430\u043d\u0435",continue_header:"\u0421\u0438\u0433\u0443\u0440\u043d\u0438 \u043b\u0438 \u0441\u0442\u0435, \u0447\u0435 \u0438\u0441\u043a\u0430\u0442\u0435 \u0434\u0430 \u0438\u0437\u043b\u0435\u0437\u0435\u0442\u0435?",continue_body:"\u0421\u0430\u043c\u043e \u0441\u043b\u0435\u0434 \u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438 \u0449\u0435 \u0432\u0438\u0434\u0438\u0442\u0435 \u043a\u0430\u043a \u0431\u0438 \u043c\u043e\u0433\u043b\u0430 \u0434\u0430 \u0438\u0437\u0433\u043b\u0435\u0436\u0434\u0430 \u043d\u043e\u0432\u0430\u0442\u0430 \u0432\u0438 \u0443\u0441\u043c\u0438\u0432\u043a\u0430",continue_stop:"\u0421\u043f\u0440\u0438 \u0441\u0438\u043c\u0443\u043b\u0430\u0446\u0438\u044f\u0442\u0430",continue_continue:"\u041f\u0440\u043e\u0434\u044a\u043b\u0436\u0438",results_find_doctor:"\u041d\u0430\u043c\u0435\u0440\u0438 Invisalign \u043b\u0435\u043a\u0430\u0440",form_try_now:"\u041e\u043f\u0438\u0442\u0430\u0439\u0442\u0435 \u0441\u0435\u0433\u0430"}}},function(e,t,n){"use strict";t.decode=t.parse=n(115),t.encode=t.stringify=n(116)},function(e,t){e.exports=function(e){return null==e}},function(e,t,n){"use strict";(function(e){var r=n(0),o="undefined"!==typeof e&&e.navigator&&"ReactNative"===e.navigator.product,i="undefined"!==typeof document;t.a=i||o?r.useLayoutEffect:r.useEffect}).call(this,n(41))},function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n,r){var o=t&&t.prototype instanceof h?t:h,i=Object.create(o.prototype),a=new j(r||[]);return i._invoke=function(e,t,n){var r=l;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===d){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=S(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=u(e,t,n);if("normal"===c.type){if(r=n.done?d:f,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=d,n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}e.wrap=c;var l="suspendedStart",f="suspendedYield",p="executing",d="completed",m={};function h(){}function v(){}function y(){}var g={};g[i]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(C([])));w&&w!==n&&r.call(w,i)&&(g=w);var _=y.prototype=h.prototype=Object.create(g);function E(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function x(e){var t;this._invoke=function(n,o){function i(){return new Promise(function(t,i){!function t(n,o,i,a){var s=u(e[n],e,o);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"===typeof l&&r.call(l,"__await")?Promise.resolve(l.__await).then(function(e){t("next",e,i,a)},function(e){t("throw",e,i,a)}):Promise.resolve(l).then(function(e){c.value=e,i(c)},function(e){return t("throw",e,i,a)})}a(s.arg)}(n,o,t,i)})}return t=t?t.then(i,i):i()}}function S(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=u(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function C(e){if(e){var n=e[i];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:P}}function P(){return{value:t,done:!0}}return v.prototype=_.constructor=y,y.constructor=v,y[s]=v.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(x.prototype),x.prototype[a]=function(){return this},e.AsyncIterator=x,e.async=function(t,n,r,o){var i=new x(c(t,n,r,o));return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},E(_),_[s]="Generator",_[i]=function(){return this},_.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=r}catch(o){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";var r=n(95);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116;function y(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case p:case a:case c:case s:case m:return e;default:switch(e=e&&e.$$typeof){case l:case d:case u:return e;default:return t}}case v:case h:case i:return t}}}function g(e){return y(e)===p}t.typeOf=y,t.AsyncMode=f,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=u,t.Element=o,t.ForwardRef=d,t.Fragment=a,t.Lazy=v,t.Memo=h,t.Portal=i,t.Profiler=c,t.StrictMode=s,t.Suspense=m,t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===p||e===c||e===s||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===u||e.$$typeof===l||e.$$typeof===d)},t.isAsyncMode=function(e){return g(e)||y(e)===f},t.isConcurrentMode=g,t.isContextConsumer=function(e){return y(e)===l},t.isContextProvider=function(e){return y(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return y(e)===d},t.isFragment=function(e){return y(e)===a},t.isLazy=function(e){return y(e)===v},t.isMemo=function(e){return y(e)===h},t.isPortal=function(e){return y(e)===i},t.isProfiler=function(e){return y(e)===c},t.isStrictMode=function(e){return y(e)===s},t.isSuspense=function(e){return y(e)===m}},function(e,t,n){"use strict";var r=n(8),o=n(60),i=n(99),a=n(66);function s(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var c=s(n(63));c.Axios=i,c.create=function(e){return s(a(c.defaults,e))},c.Cancel=n(67),c.CancelToken=n(112),c.isCancel=n(62),c.all=function(e){return Promise.all(e)},c.spread=n(113),e.exports=c,e.exports.default=c},function(e,t){e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,n){"use strict";var r=n(8),o=n(61),i=n(100),a=n(101),s=n(66);function c(e){this.defaults=e,this.interceptors={request:new i,response:new i}}c.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method=e.method?e.method.toLowerCase():"get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},c.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],function(e){c.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}}),r.forEach(["post","put","patch"],function(e){c.prototype[e]=function(t,n,o){return this.request(r.merge(o||{},{method:e,url:t,data:n}))}}),e.exports=c},function(e,t,n){"use strict";var r=n(8);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=o},function(e,t,n){"use strict";var r=n(8),o=n(102),i=n(62),a=n(63),s=n(110),c=n(111);function u(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return u(e),e.baseURL&&!s(e.url)&&(e.url=c(e.baseURL,e.url)),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return u(e),t.data=o(t.data,t.headers,e.transformResponse),t},function(t){return i(t)||(u(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(8);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,u=[],l=!1,f=-1;function p(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&d())}function d(){if(!l){var e=s(p);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f<t;)c&&c[f].run();f=-1,t=u.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new m(e,t)),1!==u.length||l||s(d)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(8);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){"use strict";var r=n(65);e.exports=function(e,t,n){var o=n.config.validateStatus;!o||o(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(8),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}}),a):a}},function(e,t,n){"use strict";var r=n(8);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(8);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(67);function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new r(e),t(n.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o(function(t){e=t}),cancel:e}},e.exports=o},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){var r,o;(function(){(function(){(function(){var e=[].slice;this.ActionCable={INTERNAL:{message_types:{welcome:"welcome",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]},WebSocket:window.WebSocket,logger:window.console,createConsumer:function(e){var t;return null==e&&(e=null!=(t=this.getConfig("url"))?t:this.INTERNAL.default_mount_path),new i.Consumer(this.createWebSocketURL(e))},getConfig:function(e){var t;return null!=(t=document.head.querySelector("meta[name='action-cable-"+e+"']"))?t.getAttribute("content"):void 0},createWebSocketURL:function(e){var t;return e&&!/^wss?:/i.test(e)?((t=document.createElement("a")).href=e,t.href=t.href,t.protocol=t.protocol.replace("http","ws"),t.href):e},startDebugging:function(){return this.debugging=!0},stopDebugging:function(){return this.debugging=null},log:function(){var t,n;if(t=1<=arguments.length?e.call(arguments,0):[],this.debugging)return t.push(Date.now()),(n=this.logger).log.apply(n,["[ActionCable]"].concat(e.call(t)))}}}).call(this)}).call(this);var i=this.ActionCable;(function(){(function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};i.ConnectionMonitor=function(){var t,n,r;function o(t){this.connection=t,this.visibilityDidChange=e(this.visibilityDidChange,this),this.reconnectAttempts=0}return o.pollInterval={min:3,max:30},o.staleThreshold=6,o.prototype.start=function(){if(!this.isRunning())return this.startedAt=n(),delete this.stoppedAt,this.startPolling(),document.addEventListener("visibilitychange",this.visibilityDidChange),i.log("ConnectionMonitor started. pollInterval = "+this.getPollInterval()+" ms")},o.prototype.stop=function(){if(this.isRunning())return this.stoppedAt=n(),this.stopPolling(),document.removeEventListener("visibilitychange",this.visibilityDidChange),i.log("ConnectionMonitor stopped")},o.prototype.isRunning=function(){return null!=this.startedAt&&null==this.stoppedAt},o.prototype.recordPing=function(){return this.pingedAt=n()},o.prototype.recordConnect=function(){return this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,i.log("ConnectionMonitor recorded connect")},o.prototype.recordDisconnect=function(){return this.disconnectedAt=n(),i.log("ConnectionMonitor recorded disconnect")},o.prototype.startPolling=function(){return this.stopPolling(),this.poll()},o.prototype.stopPolling=function(){return clearTimeout(this.pollTimeout)},o.prototype.poll=function(){return this.pollTimeout=setTimeout((e=this,function(){return e.reconnectIfStale(),e.poll()}),this.getPollInterval());var e},o.prototype.getPollInterval=function(){var e,n,r,o;return r=(o=this.constructor.pollInterval).min,n=o.max,e=5*Math.log(this.reconnectAttempts+1),Math.round(1e3*t(e,r,n))},o.prototype.reconnectIfStale=function(){if(this.connectionIsStale())return i.log("ConnectionMonitor detected stale connection. reconnectAttempts = "+this.reconnectAttempts+", pollInterval = "+this.getPollInterval()+" ms, time disconnected = "+r(this.disconnectedAt)+" s, stale threshold = "+this.constructor.staleThreshold+" s"),this.reconnectAttempts++,this.disconnectedRecently()?i.log("ConnectionMonitor skipping reopening recent disconnect"):(i.log("ConnectionMonitor reopening"),this.connection.reopen())},o.prototype.connectionIsStale=function(){var e;return r(null!=(e=this.pingedAt)?e:this.startedAt)>this.constructor.staleThreshold},o.prototype.disconnectedRecently=function(){return this.disconnectedAt&&r(this.disconnectedAt)<this.constructor.staleThreshold},o.prototype.visibilityDidChange=function(){if("visible"===document.visibilityState)return setTimeout((e=this,function(){if(e.connectionIsStale()||!e.connection.isOpen())return i.log("ConnectionMonitor reopening stale connection on visibilitychange. visbilityState = "+document.visibilityState),e.connection.reopen()}),200);var e},n=function(){return(new Date).getTime()},r=function(e){return(n()-e)/1e3},t=function(e,t,n){return Math.max(t,Math.min(n,e))},o}()}).call(this),function(){var e,t,n,r,o,a=[].slice,s=function(e,t){return function(){return e.apply(t,arguments)}},c=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};r=i.INTERNAL,t=r.message_types,n=r.protocols,o=2<=n.length?a.call(n,0,e=n.length-1):(e=0,[]),n[e++],i.Connection=function(){function e(e){this.consumer=e,this.open=s(this.open,this),this.subscriptions=this.consumer.subscriptions,this.monitor=new i.ConnectionMonitor(this),this.disconnected=!0}return e.reopenDelay=500,e.prototype.send=function(e){return!!this.isOpen()&&(this.webSocket.send(JSON.stringify(e)),!0)},e.prototype.open=function(){return this.isActive()?(i.log("Attempted to open WebSocket, but existing socket is "+this.getState()),!1):(i.log("Opening WebSocket, current state is "+this.getState()+", subprotocols: "+n),null!=this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new i.WebSocket(this.consumer.url,n),this.installEventHandlers(),this.monitor.start(),!0)},e.prototype.close=function(e){var t;if((null!=e?e:{allowReconnect:!0}).allowReconnect||this.monitor.stop(),this.isActive())return null!=(t=this.webSocket)?t.close():void 0},e.prototype.reopen=function(){var e;if(i.log("Reopening WebSocket, current state is "+this.getState()),!this.isActive())return this.open();try{return this.close()}catch(t){return e=t,i.log("Failed to reopen WebSocket",e)}finally{i.log("Reopening WebSocket in "+this.constructor.reopenDelay+"ms"),setTimeout(this.open,this.constructor.reopenDelay)}},e.prototype.getProtocol=function(){var e;return null!=(e=this.webSocket)?e.protocol:void 0},e.prototype.isOpen=function(){return this.isState("open")},e.prototype.isActive=function(){return this.isState("open","connecting")},e.prototype.isProtocolSupported=function(){var e;return e=this.getProtocol(),c.call(o,e)>=0},e.prototype.isState=function(){var e,t;return t=1<=arguments.length?a.call(arguments,0):[],e=this.getState(),c.call(t,e)>=0},e.prototype.getState=function(){var e,t;for(t in WebSocket)if(WebSocket[t]===(null!=(e=this.webSocket)?e.readyState:void 0))return t.toLowerCase();return null},e.prototype.installEventHandlers=function(){var e,t;for(e in this.events)t=this.events[e].bind(this),this.webSocket["on"+e]=t},e.prototype.uninstallEventHandlers=function(){var e;for(e in this.events)this.webSocket["on"+e]=function(){}},e.prototype.events={message:function(e){var n,r,o;if(this.isProtocolSupported())switch(n=(o=JSON.parse(e.data)).identifier,r=o.message,o.type){case t.welcome:return this.monitor.recordConnect(),this.subscriptions.reload();case t.ping:return this.monitor.recordPing();case t.confirmation:return this.subscriptions.notify(n,"connected");case t.rejection:return this.subscriptions.reject(n);default:return this.subscriptions.notify(n,"received",r)}},open:function(){if(i.log("WebSocket onopen event, using '"+this.getProtocol()+"' subprotocol"),this.disconnected=!1,!this.isProtocolSupported())return i.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close:function(e){if(i.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error:function(){return i.log("WebSocket onerror event")}},e}()}.call(this),function(){var e=[].slice;i.Subscriptions=function(){function t(e){this.consumer=e,this.subscriptions=[]}return t.prototype.create=function(e,t){var n,r,o;return r="object"===typeof(n=e)?n:{channel:n},o=new i.Subscription(this.consumer,r,t),this.add(o)},t.prototype.add=function(e){return this.subscriptions.push(e),this.consumer.ensureActiveConnection(),this.notify(e,"initialized"),this.sendCommand(e,"subscribe"),e},t.prototype.remove=function(e){return this.forget(e),this.findAll(e.identifier).length||this.sendCommand(e,"unsubscribe"),e},t.prototype.reject=function(e){var t,n,r,o,i;for(o=[],t=0,n=(r=this.findAll(e)).length;t<n;t++)i=r[t],this.forget(i),this.notify(i,"rejected"),o.push(i);return o},t.prototype.forget=function(e){var t;return this.subscriptions=function(){var n,r,o,i;for(i=[],n=0,r=(o=this.subscriptions).length;n<r;n++)(t=o[n])!==e&&i.push(t);return i}.call(this),e},t.prototype.findAll=function(e){var t,n,r,o,i;for(o=[],t=0,n=(r=this.subscriptions).length;t<n;t++)(i=r[t]).identifier===e&&o.push(i);return o},t.prototype.reload=function(){var e,t,n,r,o;for(r=[],e=0,t=(n=this.subscriptions).length;e<t;e++)o=n[e],r.push(this.sendCommand(o,"subscribe"));return r},t.prototype.notifyAll=function(){var t,n,r,o,i,a,s;for(n=arguments[0],t=2<=arguments.length?e.call(arguments,1):[],a=[],r=0,o=(i=this.subscriptions).length;r<o;r++)s=i[r],a.push(this.notify.apply(this,[s,n].concat(e.call(t))));return a},t.prototype.notify=function(){var t,n,r,o,i,a,s;for(a=arguments[0],n=arguments[1],t=3<=arguments.length?e.call(arguments,2):[],i=[],r=0,o=(s="string"===typeof a?this.findAll(a):[a]).length;r<o;r++)a=s[r],i.push("function"===typeof a[n]?a[n].apply(a,t):void 0);return i},t.prototype.sendCommand=function(e,t){var n;return n=e.identifier,this.consumer.send({command:t,identifier:n})},t}()}.call(this),function(){i.Subscription=function(){var e;function t(t,n,r){this.consumer=t,null==n&&(n={}),this.identifier=JSON.stringify(n),e(this,r)}return t.prototype.perform=function(e,t){return null==t&&(t={}),t.action=e,this.send(t)},t.prototype.send=function(e){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(e)})},t.prototype.unsubscribe=function(){return this.consumer.subscriptions.remove(this)},e=function(e,t){var n,r;if(null!=t)for(n in t)r=t[n],e[n]=r;return e},t}()}.call(this),function(){i.Consumer=function(){function e(e){this.url=e,this.subscriptions=new i.Subscriptions(this),this.connection=new i.Connection(this)}return e.prototype.send=function(e){return this.connection.send(e)},e.prototype.connect=function(){return this.connection.open()},e.prototype.disconnect=function(){return this.connection.close({allowReconnect:!1})},e.prototype.ensureActiveConnection=function(){if(!this.connection.isActive())return this.connection.open()},e}()}.call(this)}).call(this),e.exports?e.exports=i:void 0===(o="function"===typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=o)}).call(this)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var a={};if("string"!==typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var c=1e3;i&&"number"===typeof i.maxKeys&&(c=i.maxKeys);var u=e.length;c>0&&u>c&&(u=c);for(var l=0;l<u;++l){var f,p,d,m,h=e[l].replace(s,"%20"),v=h.indexOf(n);v>=0?(f=h.substr(0,v),p=h.substr(v+1)):(f=h,p=""),d=decodeURIComponent(f),m=decodeURIComponent(p),r(a,d)?o(a[d])?a[d].push(m):a[d]=[a[d],m]:a[d]=m}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"===typeof e?i(a(e),function(a){var s=encodeURIComponent(r(a))+n;return o(e[a])?i(e[a],function(e){return s+encodeURIComponent(r(e))}).join(t):s+encodeURIComponent(r(e[a]))}).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){var r=n(31),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(c){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(120),o=500;e.exports=function(e){var t=r(e,function(e){return n.size===o&&n.clear(),e}),n=t.cache;return t}},function(e,t,n){var r=n(42),o="Expected a function";function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},function(e,t,n){var r=n(122),o=n(33),i=n(43);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(e,t,n){var r=n(123),o=n(128),i=n(129),a=n(130),s=n(131);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(32);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t,n){var r=n(25),o=n(125),i=n(14),a=n(72),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,f=u.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:s).test(a(e))}},function(e,t,n){var r=n(126),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},function(e,t,n){var r=n(12)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(32),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===o?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(32),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(32),o="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?o:t,this}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(34),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(34);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(34);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(34);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(35);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(35);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(35);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(35);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t,n){var r=n(31),o=n(68),i=n(11),a=n(30),s=1/0,c=r?r.prototype:void 0,u=c?c.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},function(e,t,n){var r=n(45),o=n(74),i=n(154),a=n(157),s=n(172),c=n(11),u=n(48),l=n(51),f=1,p="[object Arguments]",d="[object Array]",m="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,y,g){var b=c(e),w=c(t),_=b?d:s(e),E=w?d:s(t),x=(_=_==p?m:_)==m,S=(E=E==p?m:E)==m,O=_==E;if(O&&u(e)){if(!u(t))return!1;b=!0,x=!1}if(O&&!x)return g||(g=new r),b||l(e)?o(e,t,n,v,y,g):i(e,t,_,n,v,y,g);if(!(n&f)){var k=x&&h.call(e,"__wrapped__"),j=S&&h.call(t,"__wrapped__");if(k||j){var C=k?e.value():e,P=j?t.value():t;return g||(g=new r),y(C,P,n,v,g)}}return!!O&&(g||(g=new r),a(e,t,n,v,y,g))}},function(e,t,n){var r=n(33);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(33),o=n(43),i=n(42),a=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.length<a-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(s)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(42),o=n(150),i=n(151);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},function(e,t){var n="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,n),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(31),o=n(75),i=n(23),a=n(74),s=n(155),c=n(156),u=1,l=2,f="[object Boolean]",p="[object Date]",d="[object Error]",m="[object Map]",h="[object Number]",v="[object RegExp]",y="[object Set]",g="[object String]",b="[object Symbol]",w="[object ArrayBuffer]",_="[object DataView]",E=r?r.prototype:void 0,x=E?E.valueOf:void 0;e.exports=function(e,t,n,r,E,S,O){switch(n){case _:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!S(new o(e),new o(t)));case f:case p:case h:return i(+e,+t);case d:return e.name==t.name&&e.message==t.message;case v:case g:return e==t+"";case m:var k=s;case y:var j=r&u;if(k||(k=c),e.size!=t.size&&!j)return!1;var C=O.get(e);if(C)return C==t;r|=l,O.set(e,t);var P=a(k(e),k(t),r,E,S,O);return O.delete(e),P;case b:if(x)return x.call(e)==x.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},function(e,t,n){var r=n(158),o=1,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,s,c){var u=n&o,l=r(e),f=l.length;if(f!=r(t).length&&!u)return!1;for(var p=f;p--;){var d=l[p];if(!(u?d in t:i.call(t,d)))return!1}var m=c.get(e);if(m&&c.get(t))return m==t;var h=!0;c.set(e,t),c.set(t,e);for(var v=u;++p<f;){var y=e[d=l[p]],g=t[d];if(a)var b=u?a(g,y,d,t,e,c):a(y,g,d,e,t,c);if(!(void 0===b?y===g||s(y,g,n,a,c):b)){h=!1;break}v||(v="constructor"==d)}if(h&&!v){var w=e.constructor,_=t.constructor;w!=_&&"constructor"in e&&"constructor"in t&&!("function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _)&&(h=!1)}return c.delete(e),c.delete(t),h}},function(e,t,n){var r=n(159),o=n(161),i=n(46);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(160),o=n(11);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(162),o=n(163),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return i.call(e,t)}))}:o;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},function(e,t){e.exports=function(){return[]}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(20),o=n(16),i="[object Arguments]";e.exports=function(e){return o(e)&&r(e)==i}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(20),o=n(52),i=n(16),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(70),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s}).call(this,n(49)(e))},function(e,t,n){var r=n(53),o=n(171),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(77)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(173),o=n(43),i=n(174),a=n(175),s=n(176),c=n(20),u=n(72),l=u(r),f=u(o),p=u(i),d=u(a),m=u(s),h=c;(r&&"[object DataView]"!=h(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=h(new o)||i&&"[object Promise]"!=h(i.resolve())||a&&"[object Set]"!=h(new a)||s&&"[object WeakMap]"!=h(new s))&&(h=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case d:return"[object Set]";case m:return"[object WeakMap]"}return t}),e.exports=h},function(e,t,n){var r=n(17)(n(12),"DataView");e.exports=r},function(e,t,n){var r=n(17)(n(12),"Promise");e.exports=r},function(e,t,n){var r=n(17)(n(12),"Set");e.exports=r},function(e,t,n){var r=n(17)(n(12),"WeakMap");e.exports=r},function(e,t,n){var r=n(45),o=n(78),i=n(80),a=n(179),s=n(14),c=n(83),u=n(82);e.exports=function e(t,n,l,f,p){t!==n&&i(n,function(i,c){if(s(i))p||(p=new r),a(t,n,c,l,e,f,p);else{var d=f?f(u(t,c),i,c+"",t,n,p):void 0;void 0===d&&(d=i),o(t,c,d)}},c)}},function(e,t){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++o];if(!1===n(i[c],c,i))break}return t}}},function(e,t,n){var r=n(78),o=n(180),i=n(181),a=n(69),s=n(183),c=n(47),u=n(11),l=n(185),f=n(48),p=n(25),d=n(14),m=n(186),h=n(51),v=n(82),y=n(187);e.exports=function(e,t,n,g,b,w,_){var E=v(e,n),x=v(t,n),S=_.get(x);if(S)r(e,n,S);else{var O=w?w(E,x,n+"",e,t,_):void 0,k=void 0===O;if(k){var j=u(x),C=!j&&f(x),P=!j&&!C&&h(x);O=x,j||C||P?u(E)?O=E:l(E)?O=a(E):C?(k=!1,O=o(x,!0)):P?(k=!1,O=i(x,!0)):O=[]:m(x)||c(x)?(O=E,c(E)?O=y(E):d(E)&&!p(E)||(O=s(x))):k=!1}k&&(_.set(x,O),b(O,x,g,w,_),_.delete(x)),r(e,n,O)}}},function(e,t,n){(function(e){var r=n(12),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(49)(e))},function(e,t,n){var r=n(182);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(75);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){var r=n(184),o=n(81),i=n(53);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},function(e,t,n){var r=n(14),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},function(e,t,n){var r=n(36),o=n(16);e.exports=function(e){return o(e)&&r(e)}},function(e,t,n){var r=n(20),o=n(81),i=n(16),a="[object Object]",s=Function.prototype,c=Object.prototype,u=s.toString,l=c.hasOwnProperty,f=u.call(Object);e.exports=function(e){if(!i(e)||r(e)!=a)return!1;var t=o(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==f}},function(e,t,n){var r=n(188),o=n(83);e.exports=function(e){return r(e,o(e))}},function(e,t,n){var r=n(189),o=n(37);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,c=t.length;++s<c;){var u=t[s],l=i?i(n[u],e[u],u,n,e):void 0;void 0===l&&(l=e[u]),a?o(n,u,l):r(n,u,l)}return n}},function(e,t,n){var r=n(37),o=n(23),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(14),o=n(53),i=n(191),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var r=n(193),o=n(200);e.exports=function(e){return r(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var c=n[r];c&&e(t,c,r,a)}return t})}},function(e,t,n){var r=n(54),o=n(194),i=n(196);e.exports=function(e,t){return i(o(e,t,r),e+"")}},function(e,t,n){var r=n(195),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),c=Array(s);++a<s;)c[a]=i[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=i[a];return u[t]=n(c),r(e,this,u)}}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(197),o=n(199)(r);e.exports=o},function(e,t,n){var r=n(198),o=n(79),i=n(54),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){var n=800,r=16,o=Date.now;e.exports=function(e){var t=0,i=0;return function(){var a=o(),s=r-(a-i);if(i=a,s>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(23),o=n(36),i=n(50),a=n(14);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},function(e,t,n){var r=n(80),o=n(46);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t,n){var r=n(203),o=n(206),i=n(54),a=n(11),s=n(211);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},function(e,t,n){var r=n(204),o=n(205),i=n(85);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(45),o=n(44),i=1,a=2;e.exports=function(e,t,n,s){var c=n.length,u=c,l=!s;if(null==e)return!u;for(e=Object(e);c--;){var f=n[c];if(l&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++c<u;){var p=(f=n[c])[0],d=e[p],m=f[1];if(l&&f[2]){if(void 0===d&&!(p in e))return!1}else{var h=new r;if(s)var v=s(d,m,p,e,t,h);if(!(void 0===v?o(m,d,i|a,s,h):v))return!1}}return!0}},function(e,t,n){var r=n(84),o=n(46);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},function(e,t,n){var r=n(44),o=n(207),i=n(208),a=n(55),s=n(84),c=n(85),u=n(24),l=1,f=2;e.exports=function(e,t){return a(e)&&s(t)?c(u(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,l|f)}}},function(e,t,n){var r=n(86);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){var r=n(209),o=n(210);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(87),o=n(47),i=n(11),a=n(50),s=n(52),c=n(24);e.exports=function(e,t,n){for(var u=-1,l=(t=r(t,e)).length,f=!1;++u<l;){var p=c(t[u]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++u!=l?f:!!(l=null==e?0:e.length)&&s(l)&&a(p,l)&&(i(e)||o(e))}},function(e,t,n){var r=n(212),o=n(213),i=n(55),a=n(24);e.exports=function(e){return i(e)?r(a(e)):o(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(86);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){"use strict";n(215);var r=n(0),o=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,l=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,r)&&!c.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:l,props:i,_owner:a.current}}t.jsx=u,t.jsxs=u},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var n,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))o.call(n,u)&&(s[u]=n[u]);if(r){a=r(n);for(var l=0;l<a.length;l++)i.call(n,a[l])&&(s[a[l]]=n[a[l]])}}return s}},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===i)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){r(e,t,n[t])})}return e}n.r(t);var i=n(3),a=n.n(i);function s(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,o)}function c(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){s(i,r,o,a,c,"next",e)}function c(e){s(i,r,o,a,c,"throw",e)}a(void 0)})}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}function p(e){return(p="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){return(d="function"===typeof Symbol&&"symbol"===p(Symbol.iterator)?function(e){return p(e)}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":p(e)})(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return!t||"object"!==d(t)&&"function"!==typeof t?m(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}var b=n(0),w=n.n(b),_=n(2),E=n.n(_),x=w.a.createContext(null);var S=function(e){e()},O=function(){return S},k=null,j={notify:function(){}};var C=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=j,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=function(){var e=O(),t=[],n=[];return{clear:function(){n=k,t=k},notify:function(){var r=t=n;e(function(){for(var e=0;e<r.length;e++)r[e]()})},get:function(){return n},subscribe:function(e){var r=!0;return n===t&&(n=t.slice()),n.push(e),function(){r&&t!==k&&(r=!1,n===t&&(n=t.slice()),n.splice(n.indexOf(e),1))}}}}())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=j)},e}(),P=function(e){var t,n;function r(t){var n;n=e.call(this,t)||this;var r=t.store;n.notifySubscribers=n.notifySubscribers.bind(m(n));var o=new C(r);return o.onStateChange=n.notifySubscribers,n.state={store:r,subscription:o},n.previousState=r.getState(),n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.componentDidMount=function(){this._isMounted=!0,this.state.subscription.trySubscribe(),this.previousState!==this.props.store.getState()&&this.state.subscription.notifyNestedSubs()},o.componentWillUnmount=function(){this.unsubscribe&&this.unsubscribe(),this.state.subscription.tryUnsubscribe(),this._isMounted=!1},o.componentDidUpdate=function(e){if(this.props.store!==e.store){this.state.subscription.tryUnsubscribe();var t=new C(this.props.store);t.onStateChange=this.notifySubscribers,this.setState({store:this.props.store,subscription:t})}},o.notifySubscribers=function(){this.state.subscription.notifyNestedSubs()},o.render=function(){var e=this.props.context||x;return w.a.createElement(e.Provider,{value:this.state},this.props.children)},r}(b.Component);P.propTypes={store:E.a.shape({subscribe:E.a.func.isRequired,dispatch:E.a.func.isRequired,getState:E.a.func.isRequired}),context:E.a.object,children:E.a.any};var N=P;function A(){return(A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function T(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var I=n(22),R=n.n(I),F=n(6),U=n.n(F),D=n(26),L=[],M=[null,null];function V(e,t){var n=e[1];return[t.payload,n+1]}var B=function(){return[null,0]},W="undefined"!==typeof window?b.useLayoutEffect:b.useEffect;function z(e,t){void 0===t&&(t={});var n=t,r=n.getDisplayName,o=void 0===r?function(e){return"ConnectAdvanced("+e+")"}:r,i=n.methodName,a=void 0===i?"connectAdvanced":i,s=n.renderCountProp,c=void 0===s?void 0:s,u=n.shouldHandleStateChanges,l=void 0===u||u,f=n.storeKey,p=void 0===f?"store":f,d=n.withRef,m=void 0!==d&&d,h=n.forwardRef,v=void 0!==h&&h,y=n.context,g=void 0===y?x:y,_=T(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]);U()(void 0===c,"renderCountProp is removed. render counting is built into the latest React Dev Tools profiling extension"),U()(!m,"withRef is removed. To access the wrapped instance, use a ref on the connected component");U()("store"===p,"storeKey has been removed and does not do anything. To use a custom Redux store for specific components, create a custom React context with React.createContext(), and pass the context object to React Redux's Provider and specific components like: <Provider context={MyContext}><ConnectedComponent context={MyContext} /></Provider>. You may also pass a {context : MyContext} option to connect");var E=g;return function(t){var n=t.displayName||t.name||"Component",r=o(n),i=A({},_,{getDisplayName:o,methodName:a,renderCountProp:c,shouldHandleStateChanges:l,storeKey:p,displayName:r,wrappedComponentName:n,WrappedComponent:t}),s=_.pure;var u=s?b.useMemo:function(e){return e()};function f(n){var o=Object(b.useMemo)(function(){return[n.context,n.forwardedRef,T(n,["context","forwardedRef"])]},[n]),a=o[0],s=o[1],c=o[2],f=Object(b.useMemo)(function(){return a&&a.Consumer&&Object(D.isContextConsumer)(w.a.createElement(a.Consumer,null))?a:E},[a,E]),p=Object(b.useContext)(f),d=Boolean(n.store),m=Boolean(p)&&Boolean(p.store);U()(d||m,'Could not find "store" in the context of "'+r+'". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to '+r+" in connect options.");var h=n.store||p.store,v=Object(b.useMemo)(function(){return function(t){return e(t.dispatch,i)}(h)},[h]),y=Object(b.useMemo)(function(){if(!l)return M;var e=new C(h,d?null:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[h,d,p]),g=y[0],_=y[1],x=Object(b.useMemo)(function(){return d?p:A({},p,{subscription:g})},[d,p,g]),S=Object(b.useReducer)(V,L,B),O=S[0][0],k=S[1];if(O&&O.error)throw O.error;var j=Object(b.useRef)(),P=Object(b.useRef)(c),N=Object(b.useRef)(),I=Object(b.useRef)(!1),R=u(function(){return N.current&&c===P.current?N.current:v(h.getState(),c)},[h,O,c]);W(function(){P.current=c,j.current=R,I.current=!1,N.current&&(N.current=null,_())}),W(function(){if(l){var e=!1,t=null,n=function(){if(!e){var n,r,o=h.getState();try{n=v(o,P.current)}catch(i){r=i,t=i}r||(t=null),n===j.current?I.current||_():(j.current=n,N.current=n,I.current=!0,k({type:"STORE_UPDATED",payload:{latestStoreState:o,error:r}}))}};g.onStateChange=n,g.trySubscribe(),n();return function(){if(e=!0,g.tryUnsubscribe(),t)throw t}}},[h,g,v]);var F=Object(b.useMemo)(function(){return w.a.createElement(t,A({},R,{ref:s}))},[s,t,R]);return Object(b.useMemo)(function(){return l?w.a.createElement(f.Provider,{value:x},F):F},[f,F,x])}var d=s?w.a.memo(f):f;if(d.WrappedComponent=t,d.displayName=r,v){var m=w.a.forwardRef(function(e,t){return w.a.createElement(d,A({},e,{forwardedRef:t}))});return m.displayName=r,m.WrappedComponent=t,R()(m,t)}return R()(d,t)}}var q=Object.prototype.hasOwnProperty;function H(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function $(e,t){if(H(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!q.call(t,n[o])||!H(e[n[o]],t[n[o]]))return!1;return!0}var G=n(56),K=function(){return Math.random().toString(36).substring(7).split("").join(".")},Y={INIT:"@@redux/INIT"+K(),REPLACE:"@@redux/REPLACE"+K(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+K()}};function Z(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function X(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function J(e,t){return function(){return t(e.apply(this,arguments))}}function Q(e,t){if("function"===typeof e)return J(e,t);if("object"!==typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),r={},o=0;o<n.length;o++){var i=n[o],a=e[i];"function"===typeof a&&(r[i]=J(a,t))}return r}function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function te(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function ne(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function re(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=ne(e);var o=r(t,n);return"function"===typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=ne(o),o=r(t,n)),o},r}}var oe=[function(e){return"function"===typeof e?re(e):void 0},function(e){return e?void 0:te(function(e){return{dispatch:e}})},function(e){return e&&"object"===typeof e?te(function(t){return Q(e,t)}):void 0}];var ie=[function(e){return"function"===typeof e?re(e):void 0},function(e){return e?void 0:te(function(){return{}})}];function ae(e,t,n){return A({},n,e,t)}var se=[function(e){return"function"===typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,s){var c=e(t,n,s);return a?o&&i(c,r)||(r=c):(a=!0,r=c),r}}}(e):void 0},function(e){return e?void 0:function(){return ae}}];function ce(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function ue(e,t,n,r,o){var i,a,s,c,u,l=o.areStatesEqual,f=o.areOwnPropsEqual,p=o.areStatePropsEqual,d=!1;function m(o,d){var m=!f(d,a),h=!l(o,i);return i=o,a=d,m&&h?(s=e(i,a),t.dependsOnOwnProps&&(c=t(r,a)),u=n(s,c,a)):m?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(c=t(r,a)),u=n(s,c,a)):h?function(){var t=e(i,a),r=!p(t,s);return s=t,r&&(u=n(s,c,a)),u}():u}return function(o,l){return d?m(o,l):(s=e(i=o,a=l),c=t(r,a),u=n(s,c,a),d=!0,u)}}function le(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=T(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),s=r(e,i),c=o(e,i);return(i.pure?ue:ce)(a,s,c,e,i)}function fe(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function pe(e,t){return e===t}var de,me=function(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?z:n,o=t.mapStateToPropsFactories,i=void 0===o?ie:o,a=t.mapDispatchToPropsFactories,s=void 0===a?oe:a,c=t.mergePropsFactories,u=void 0===c?se:c,l=t.selectorFactory,f=void 0===l?le:l;return function(e,t,n,o){void 0===o&&(o={});var a=o,c=a.pure,l=void 0===c||c,p=a.areStatesEqual,d=void 0===p?pe:p,m=a.areOwnPropsEqual,h=void 0===m?$:m,v=a.areStatePropsEqual,y=void 0===v?$:v,g=a.areMergedPropsEqual,b=void 0===g?$:g,w=T(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),_=fe(e,i,"mapStateToProps"),E=fe(t,s,"mapDispatchToProps"),x=fe(n,u,"mergeProps");return r(f,A({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:_,initMapDispatchToProps:E,initMergeProps:x,pure:l,areStatesEqual:d,areOwnPropsEqual:h,areStatePropsEqual:y,areMergedPropsEqual:b},w))}}(),he=n(13),ve=n.n(he);function ye(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function ge(e,t){if(null==e)return{};var n,r,o=T(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}de=he.unstable_batchedUpdates,S=de;var be=function(e){var t=Object(b.useRef)(e);return Object(b.useEffect)(function(){t.current=e},[e]),t};function we(e){var t=be(e);return Object(b.useCallback)(function(){return t.current&&t.current.apply(t,arguments)},[t])}var _e=function(e,t){var n=Object(b.useRef)(!0);Object(b.useEffect)(function(){if(!n.current)return e();n.current=!1},t)};function Ee(e){var t=function(e){var t=Object(b.useRef)(e);return t.current=e,t}(e);Object(b.useEffect)(function(){return function(){return t.current()}},[])}var xe=Math.pow(2,31)-1;function Se(){var e=function(){var e=Object(b.useRef)(!0),t=Object(b.useRef)(function(){return e.current});return Object(b.useEffect)(function(){return function(){e.current=!1}},[]),t.current}(),t=Object(b.useRef)();return Ee(function(){return clearTimeout(t.current)}),Object(b.useMemo)(function(){var n=function(){return clearTimeout(t.current)};return{set:function(r,o){void 0===o&&(o=0),e()&&(n(),o<=xe?t.current=setTimeout(r,o):function e(t,n,r){var o=r-Date.now();t.current=o<=xe?setTimeout(n,o):setTimeout(function(){return e(t,n,r)},xe)}(t,r,Date.now()+o))},clear:n}},[])}var Oe=function(e){var t=Object(b.useRef)(e);return Object(b.useEffect)(function(){t.current=e},[e]),t};function ke(e){var t=Oe(e);return Object(b.useCallback)(function(){return t.current&&t.current.apply(t,arguments)},[t])}var je=n(38);n(92),new WeakMap;var Ce=n(1),Pe=["as","disabled"];function Ne(e){var t=e.tagName,n=e.disabled,r=e.href,o=e.target,i=e.rel,a=e.onClick,s=e.tabIndex,c=void 0===s?0:s,u=e.type;t||(t=null!=r||null!=o||null!=i?"a":"button");var l={tagName:t};if("button"===t)return[{type:u||"button",disabled:n},l];var f=function(e){(n||"a"===t&&function(e){return!e||"#"===e.trim()}(r))&&e.preventDefault(),n?e.stopPropagation():null==a||a(e)};return[{role:"button",disabled:void 0,tabIndex:n?void 0:c,href:"a"===t&&n?void 0:r,target:"a"===t?o:void 0,"aria-disabled":n||void 0,rel:"a"===t?i:void 0,onClick:f,onKeyDown:function(e){" "===e.key&&(e.preventDefault(),f(e))}},l]}var Ae=b.forwardRef(function(e,t){var n=e.as,r=e.disabled,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Pe),i=ye(Ne(Object.assign({tagName:n,disabled:r},o)),2),a=i[0],s=i[1].tagName;return Object(Ce.jsx)(s,Object.assign({},o,a,{ref:t}))});Ae.displayName="Button";var Te=["onKeyDown"];var Ie=b.forwardRef(function(e,t){var n,r=e.onKeyDown,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Te),i=ye(Ne(Object.assign({tagName:"a"},o)),1)[0],a=ke(function(e){i.onKeyDown(e),null==r||r(e)});return((n=o.href)&&"#"!==n.trim()||o.role)&&"button"!==o.role?Object(Ce.jsx)("a",Object.assign({ref:t},o,{onKeyDown:r})):Object(Ce.jsx)("a",Object.assign({ref:t},o,i,{onKeyDown:a}))});Ie.displayName="Anchor";var Re=Ie,Fe=n(5),Ue=n.n(Fe);function De(){return(De=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Le(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Me(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function Ve(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}function Be(e,t){return Object.keys(t).reduce(function(n,r){var o,i=n,a=i[Me(r)],s=i[r],c=Le(i,[Me(r),r].map(Ve)),u=t[r],l=function(e,t,n){var r=Object(b.useRef)(void 0!==e),o=Object(b.useState)(t),i=o[0],a=o[1],s=void 0!==e,c=r.current;return r.current=s,!s&&c&&i!==t&&a(t),[s?e:i,Object(b.useCallback)(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];n&&n.apply(void 0,[e].concat(r)),a(e)},[n])]}(s,a,e[u]),f=l[0],p=l[1];return De({},c,((o={})[r]=f,o[u]=p,o))},e)}function We(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function ze(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function qe(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function He(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof e.getDerivedStateFromProps&&"function"!==typeof t.getSnapshotBeforeUpdate)return e;var n=null,r=null,o=null;if("function"===typeof t.componentWillMount?n="componentWillMount":"function"===typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"===typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"===typeof t.componentWillUpdate?o="componentWillUpdate":"function"===typeof t.UNSAFE_componentWillUpdate&&(o="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==o){var i=e.displayName||e.name,a="function"===typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+i+" uses "+a+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==r?"\n "+r:"")+(null!==o?"\n "+o:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof e.getDerivedStateFromProps&&(t.componentWillMount=We,t.componentWillReceiveProps=ze),"function"===typeof t.getSnapshotBeforeUpdate){if("function"!==typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=qe;var s=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;s.call(this,e,t,r)}}return e}We.__suppressDeprecationWarning=!0,ze.__suppressDeprecationWarning=!0,qe.__suppressDeprecationWarning=!0;var $e=/-(.)/g;var Ge=b.createContext({prefixes:{}});Ge.Consumer,Ge.Provider;function Ke(e,t){var n=Object(b.useContext)(Ge).prefixes;return e||n[t]||t}function Ye(){return"rtl"===Object(b.useContext)(Ge).dir}var Ze=function(e){return e[0].toUpperCase()+(t=e,t.replace($e,function(e,t){return t.toUpperCase()})).slice(1);var t};function Xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.displayName,r=void 0===n?Ze(e):n,i=t.Component,a=t.defaultProps,s=b.forwardRef(function(t,n){var r=t.className,a=t.bsPrefix,s=t.as,c=void 0===s?i||"div":s,u=ge(t,["className","bsPrefix","as"]),l=Ke(a,e);return Object(Ce.jsx)(c,o({ref:n,className:Ue()(r,l)},u))});return s.defaultProps=a,s.displayName=r,s}var Je=Xe("carousel-caption"),Qe=b.forwardRef(function(e,t){var n=e.as,r=void 0===n?"div":n,i=e.bsPrefix,a=e.className,s=ge(e,["as","bsPrefix","className"]),c=Ue()(a,Ke(i,"carousel-item"));return Object(Ce.jsx)(r,o({ref:t},s,{className:c}))});Qe.displayName="CarouselItem";var et=Qe;function tt(e,t){var n=0;return b.Children.map(e,function(e){return b.isValidElement(e)?t(e,n++):e})}function nt(e){return e&&e.ownerDocument||document}function rt(e,t){return function(e){var t=nt(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}var ot=/([A-Z])/g;var it=/^ms-/;function at(e){return function(e){return e.replace(ot,"-$1").toLowerCase()}(e).replace(it,"-ms-")}var st=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;var ct=function(e,t){var n="",r="";if("string"===typeof t)return e.style.getPropertyValue(at(t))||rt(e).getPropertyValue(at(t));Object.keys(t).forEach(function(o){var i=t[o];i||0===i?function(e){return!(!e||!st.test(e))}(o)?r+=o+"("+i+") ":n+=at(o)+": "+i+";":e.style.removeProperty(at(o))}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n},ut=!("undefined"===typeof window||!window.document||!window.document.createElement),lt=!1,ft=!1;try{var pt={get passive(){return lt=!0},get once(){return ft=lt=!0}};ut&&(window.addEventListener("test",pt,pt),window.removeEventListener("test",pt,!0))}catch(Qc){}var dt=function(e,t,n,r){if(r&&"boolean"!==typeof r&&!ft){var o=r.once,i=r.capture,a=n;!ft&&o&&(a=n.__once||function e(r){this.removeEventListener(t,e,i),n.call(this,r)},n.__once=a),e.addEventListener(t,a,lt?r:i)}e.addEventListener(t,n,r)};var mt=function(e,t,n,r){var o=r&&"boolean"!==typeof r?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)};var ht=function(e,t,n,r){return dt(e,t,n,r),function(){mt(e,t,n,r)}};function vt(e,t,n){void 0===n&&(n=5);var r=!1,o=setTimeout(function(){r||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent(t,n,r),e.dispatchEvent(o)}}(e,"transitionend",!0)},t+n),i=ht(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(o),i()}}function yt(e,t,n,r){null==n&&(n=function(e){var t=ct(e,"transitionDuration")||"",n=-1===t.indexOf("ms")?1e3:1;return parseFloat(t)*n}(e)||0);var o=vt(e,n,r),i=ht(e,"transitionend",t);return function(){o(),i()}}function gt(e,t){var n=ct(e,t)||"",r=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*r}function bt(e,t){var n=gt(e,"transitionDuration"),r=gt(e,"transitionDelay"),o=yt(e,function(n){n.target===e&&(o(),t(n))},n+r)}function wt(e){e.offsetHeight}function _t(e,t){return(_t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Et=!1,xt=w.a.createContext(null),St="unmounted",Ot="exited",kt="entering",jt="entered",Ct=function(e){var t,n;function r(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Ot,r.appearStatus=kt):o=jt:o=t.unmountOnExit||t.mountOnEnter?St:Ot,r.state={status:o},r.nextCallback=null,r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,_t(t,n),r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===St?{status:Ot}:null};var o=r.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==kt&&n!==jt&&(t=kt):n!==kt&&n!==jt||(t="exiting")}this.updateStatus(!1,t)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},o.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===kt?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===Ot&&this.setState({status:St})},o.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[ve.a.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),c=r?s.appear:s.enter;!e&&!n||Et?this.safeSetState({status:jt},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:kt},function(){t.props.onEntering(i,a),t.onTransitionEnd(c,function(){t.safeSetState({status:jt},function(){t.props.onEntered(i,a)})})}))},o.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:ve.a.findDOMNode(this);t&&!Et?(this.props.onExit(r),this.safeSetState({status:"exiting"},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Ot},function(){e.props.onExited(r)})})})):this.safeSetState({status:Ot},function(){e.props.onExited(r)})},o.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},o.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},o.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:ve.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},o.render=function(){var e=this.state.status;if(e===St)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return w.a.createElement(xt.Provider,{value:null},"function"===typeof n?n(e,r):w.a.cloneElement(w.a.Children.only(n),r))},r}(w.a.Component);function Pt(){}Ct.contextType=xt,Ct.propTypes={},Ct.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Pt,onEntering:Pt,onEntered:Pt,onExit:Pt,onExiting:Pt,onExited:Pt},Ct.UNMOUNTED=St,Ct.EXITED=Ot,Ct.ENTERING=kt,Ct.ENTERED=jt,Ct.EXITING="exiting";var Nt=Ct,At=function(e){return e&&"function"!==typeof e?function(t){e.current=t}:e};var Tt=function(e,t){return Object(b.useMemo)(function(){return function(e,t){var n=At(e),r=At(t);return function(e){n&&n(e),r&&r(e)}}(e,t)},[e,t])};var It=w.a.forwardRef(function(e,t){var n=e.onEnter,r=e.onEntering,i=e.onEntered,a=e.onExit,s=e.onExiting,c=e.onExited,u=e.addEndListener,l=e.children,f=e.childRef,p=ge(e,["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children","childRef"]),d=Object(b.useRef)(null),m=Tt(d,f),h=function(e){var t;m((t=e)&&"setState"in t?ve.a.findDOMNode(t):null!=t?t:null)},v=function(e){return function(t){e&&d.current&&e(d.current,t)}},y=Object(b.useCallback)(v(n),[n]),g=Object(b.useCallback)(v(r),[r]),_=Object(b.useCallback)(v(i),[i]),E=Object(b.useCallback)(v(a),[a]),x=Object(b.useCallback)(v(s),[s]),S=Object(b.useCallback)(v(c),[c]),O=Object(b.useCallback)(v(u),[u]);return Object(Ce.jsx)(Nt,o({ref:t},p,{onEnter:y,onEntered:_,onEntering:g,onExit:E,onExited:S,onExiting:x,addEndListener:O,nodeRef:d,children:"function"===typeof l?function(e,t){return l(e,o({},t,{ref:h}))}:w.a.cloneElement(l,{ref:h})}))}),Rt={slide:!0,fade:!1,controls:!0,indicators:!0,indicatorLabels:[],defaultActiveIndex:0,interval:5e3,keyboard:!0,pause:"hover",wrap:!0,touch:!0,prevIcon:Object(Ce.jsx)("span",{"aria-hidden":"true",className:"carousel-control-prev-icon"}),prevLabel:"Previous",nextIcon:Object(Ce.jsx)("span",{"aria-hidden":"true",className:"carousel-control-next-icon"}),nextLabel:"Next"};var Ft=b.forwardRef(function(e,t){var n=Be(e,{activeIndex:"onSelect"}),r=n.as,i=void 0===r?"div":r,a=n.bsPrefix,s=n.slide,c=n.fade,u=n.controls,l=n.indicators,f=n.indicatorLabels,p=n.activeIndex,d=n.onSelect,m=n.onSlide,h=n.onSlid,v=n.interval,y=n.keyboard,g=n.onKeyDown,w=n.pause,_=n.onMouseOver,E=n.onMouseOut,x=n.wrap,S=n.touch,O=n.onTouchStart,k=n.onTouchMove,j=n.onTouchEnd,C=n.prevIcon,P=n.prevLabel,N=n.nextIcon,A=n.nextLabel,T=n.variant,I=n.className,R=n.children,F=ge(n,["as","bsPrefix","slide","fade","controls","indicators","indicatorLabels","activeIndex","onSelect","onSlide","onSlid","interval","keyboard","onKeyDown","pause","onMouseOver","onMouseOut","wrap","touch","onTouchStart","onTouchMove","onTouchEnd","prevIcon","prevLabel","nextIcon","nextLabel","variant","className","children"]),U=Ke(a,"carousel"),D=Ye(),L=Object(b.useRef)(null),M=ye(Object(b.useState)("next"),2),V=M[0],B=M[1],W=ye(Object(b.useState)(!1),2),z=W[0],q=W[1],H=ye(Object(b.useState)(!1),2),$=H[0],G=H[1],K=ye(Object(b.useState)(p||0),2),Y=K[0],Z=K[1];$||p===Y||(L.current?B(L.current):B((p||0)>Y?"next":"prev"),s&&G(!0),Z(p||0)),Object(b.useEffect)(function(){L.current&&(L.current=null)});var X,J=0;!function(e,t){var n=0;b.Children.forEach(e,function(e){b.isValidElement(e)&&t(e,n++)})}(R,function(e,t){++J,t===p&&(X=e.props.interval)});var Q=be(X),ee=Object(b.useCallback)(function(e){if(!$){var t=Y-1;if(t<0){if(!x)return;t=J-1}L.current="prev",null==d||d(t,e)}},[$,Y,d,x,J]),te=we(function(e){if(!$){var t=Y+1;if(t>=J){if(!x)return;t=0}L.current="next",null==d||d(t,e)}}),ne=Object(b.useRef)();Object(b.useImperativeHandle)(t,function(){return{element:ne.current,prev:ee,next:te}});var re=we(function(){!document.hidden&&function(e){if(!e||!e.style||!e.parentNode||!e.parentNode.style)return!1;var t=getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&"none"!==getComputedStyle(e.parentNode).display}(ne.current)&&(D?ee():te())}),oe="next"===V?"start":"end";_e(function(){s||(null==m||m(Y,oe),null==h||h(Y,oe))},[Y]);var ie="".concat(U,"-item-").concat(V),ae="".concat(U,"-item-").concat(oe),se=Object(b.useCallback)(function(e){wt(e),null==m||m(Y,oe)},[m,Y,oe]),ce=Object(b.useCallback)(function(){G(!1),null==h||h(Y,oe)},[h,Y,oe]),ue=Object(b.useCallback)(function(e){if(y&&!/input|textarea/i.test(e.target.tagName))switch(e.key){case"ArrowLeft":return e.preventDefault(),void(D?te(e):ee(e));case"ArrowRight":return e.preventDefault(),void(D?ee(e):te(e))}null==g||g(e)},[y,g,ee,te,D]),le=Object(b.useCallback)(function(e){"hover"===w&&q(!0),null==_||_(e)},[w,_]),fe=Object(b.useCallback)(function(e){q(!1),null==E||E(e)},[E]),pe=Object(b.useRef)(0),de=Object(b.useRef)(0),me=Se(),he=Object(b.useCallback)(function(e){pe.current=e.touches[0].clientX,de.current=0,"hover"===w&&q(!0),null==O||O(e)},[w,O]),ve=Object(b.useCallback)(function(e){e.touches&&e.touches.length>1?de.current=0:de.current=e.touches[0].clientX-pe.current,null==k||k(e)},[k]),Ee=Object(b.useCallback)(function(e){if(S){var t=de.current;Math.abs(t)>40&&(t>0?ee(e):te(e))}"hover"===w&&me.set(function(){q(!1)},v||void 0),null==j||j(e)},[S,w,ee,te,me,v,j]),xe=null!=v&&!z&&!$,Oe=Object(b.useRef)();Object(b.useEffect)(function(){var e,t;if(xe){var n=D?ee:te;return Oe.current=window.setInterval(document.visibilityState?re:n,null!=(e=null!=(t=Q.current)?t:v)?e:void 0),function(){null!==Oe.current&&clearInterval(Oe.current)}}},[xe,ee,te,Q,v,re,D]);var ke=Object(b.useMemo)(function(){return l&&Array.from({length:J},function(e,t){return function(e){null==d||d(t,e)}})},[l,J,d]);return Object(Ce.jsxs)(i,o({ref:ne},F,{onKeyDown:ue,onMouseOver:le,onMouseOut:fe,onTouchStart:he,onTouchMove:ve,onTouchEnd:Ee,className:Ue()(I,U,s&&"slide",c&&"".concat(U,"-fade"),T&&"".concat(U,"-").concat(T)),children:[l&&Object(Ce.jsx)("div",{className:"".concat(U,"-indicators"),children:tt(R,function(e,t){return Object(Ce.jsx)("button",{type:"button","data-bs-target":"","aria-label":null!=f&&f.length?f[t]:"Slide ".concat(t+1),className:t===Y?"active":void 0,onClick:ke?ke[t]:void 0,"aria-current":t===Y},t)})}),Object(Ce.jsx)("div",{className:"".concat(U,"-inner"),children:tt(R,function(e,t){var n=t===Y;return s?Object(Ce.jsx)(It,{in:n,onEnter:n?se:void 0,onEntered:n?ce:void 0,addEndListener:bt,children:function(t,r){return b.cloneElement(e,o({},r,{className:Ue()(e.props.className,n&&"entered"!==t&&ie,("entered"===t||"exiting"===t)&&"active",("entering"===t||"exiting"===t)&&ae)}))}}):b.cloneElement(e,{className:Ue()(e.props.className,n&&"active")})})}),u&&Object(Ce.jsxs)(Ce.Fragment,{children:[(x||0!==p)&&Object(Ce.jsxs)(Re,{className:"".concat(U,"-control-prev"),onClick:ee,children:[C,P&&Object(Ce.jsx)("span",{className:"visually-hidden",children:P})]}),(x||p!==J-1)&&Object(Ce.jsxs)(Re,{className:"".concat(U,"-control-next"),onClick:te,children:[N,A&&Object(Ce.jsx)("span",{className:"visually-hidden",children:A})]})]})]}))});Ft.displayName="Carousel",Ft.defaultProps=Rt;var Ut=Object.assign(Ft,{Caption:Je,Item:et}),Dt=o({lang:o({},n(89))},{country:"gb",language:"en",simulationSvcUrl:"https://smile-visualization-api-qas.herokuapp.com/upload_smile_visualization",cableSvcUrl:"wss://smile-visualization-api-qas.herokuapp.com/cable",myInvisalignUrl:"https://smile-visualization-api-qas.herokuapp.com/",practiceAccount:null,showTestBar:!1,eu:!0,submitUrl:"https://euleadforms-pp-eu.herokuapp.com/IK/Create2",imgBase:"https://eu-conweb.s3-eu-west-1.amazonaws.com/Content/smvis/img/",assetBase:"https://eu-conweb.s3-eu-west-1.amazonaws.com/",privacyUrl:"https://www.invisalign.co.uk/en/Sub/Pages/privacy.aspx?popup=true",scrollOffset:-100,carouselImageCount:11,hideSample:!0,hideExpander:!0,sampleImageBefore:"https://eu-conweb.s3-eu-west-1.amazonaws.com/img/new/Lotte3_before.jpg",sampleImageAfter:"https://eu-conweb.s3-eu-west-1.amazonaws.com/img/new/Lotte3_after.jpg",progressMessages:["Uploading Photo","Preparing Visualization","Checking for glasses","Checking for hat","Checking for selfie clarity","Checking for great smile","Generating your new smile"],disableSave:!1,disableInternalTracking:!1,gaTrackingLabel:"SmileView",gtmEventPrefix:"gen-sv-",hideHeaderOnSV:!1,hideFooterOnSV:!1,doctorProfileSvcUrl:"https://eudocprofilesvc-production-eu.herokuapp.com/Public/SVData/",doctorProfileImgRoot:"https://eudocprofilesvc-production-eu.herokuapp.com",inpracticeSubmitUrl:"https://euleadforms-pp-eu.herokuapp.com/DocLocContact/SVContact/Create",inpracticeUpdateOptinUrl:"https://euleadforms-pp-eu.herokuapp.com/DocLocContact/SVContact/UpdateOptin",inpracticeCustomDisclaimer:{1089771:"I understand that my personal data, including my SmileView photographs, will be transferred to my selected dental professional or to the organization under which they practice."},userFields:[{type:"email",name:"email",label:"Email*",validate:["required","email","maxLength50"]},{type:"text",name:"first_name",label:"First name",validate:["maxLength50"]},{type:"text",name:"last_name",label:"Last name",validate:["maxLength50"]},{type:"text",name:"postal_code",label:"Postcode",validate:["maxLength50"]},{type:"checkbox",name:"offers_accept",validate:[],label:"I consent to Align Technology contacting me via email, mobile phone, or text to schedule an appointment with the Invisalign Provider(s) of my choosing, or regarding information on Invisalign treatment, special offers and requests for feedback on my treatment experience."}]},("undefined"===typeof window?{}:window)._svConfig||{});Dt.res=function(e){var t=Dt.lang[this.language||"en"]||Dt.lang.en;return t?t[e]||(Dt.lang.en||{})[e]:""},Dt.getProgressMessages=function(){return[this.res("capture_progress1"),this.res("capture_progress2"),this.res("capture_progress3"),this.res("capture_progress4"),this.res("capture_progress5"),this.res("capture_progress6"),this.res("capture_progress7")]},Dt.getNegativeReasons=function(){return[this.res("thumbsdown_answer1"),this.res("thumbsdown_answer2"),this.res("thumbsdown_answer3"),this.res("thumbsdown_answer4"),this.res("thumbsdown_answer5"),this.res("thumbsdown_answer6")]},Dt.extend=function(e){for(var t in e)this[t]=e[t]},Dt.extendLangData=function(e){for(var t in this.lang||(this.lang={}),e)for(var n in this.lang[t]||(this.lang[t]={}),e[t])this.lang[t][n]=e[t][n]};var Lt=Dt,Mt=n(4),Vt=n.n(Mt),Bt=n(39),Wt=n.n(Bt),zt=n(10),qt=n.n(zt),Ht=n(7),$t=n.n(Ht),Gt=function(e,t,n,r){var o=t.value;return"checkbox"===e?Vt()({},t,{checked:!!o}):"radio"===e?Vt()({},t,{checked:r(o,n),value:n}):"select-multiple"===e?Vt()({},t,{value:o||[]}):"file"===e?Vt()({},t,{value:o||void 0}):t},Kt=function(e,t,n){var r=e.getIn,o=e.toJS,i=e.deepEqual,a=n.asyncError,s=n.asyncValidating,c=n.onBlur,u=n.onChange,l=n.onDrop,f=n.onDragStart,p=n.dirty,d=n.dispatch,m=n.onFocus,h=n.form,v=n.format,y=n.initial,g=(n.parse,n.pristine),b=n.props,w=n.state,_=n.submitError,E=n.submitFailed,x=n.submitting,S=n.syncError,O=n.syncWarning,k=(n.validate,n.value),j=n._value,C=(n.warn,$t()(n,["asyncError","asyncValidating","onBlur","onChange","onDrop","onDragStart","dirty","dispatch","onFocus","form","format","initial","parse","pristine","props","state","submitError","submitFailed","submitting","syncError","syncWarning","validate","value","_value","warn"])),P=S||a||_,N=O,A=function(e,n){if(null===n)return e;var r=null==e?"":e;return n?n(e,t):r}(k,v);return{input:Gt(C.type,{name:t,onBlur:c,onChange:u,onDragStart:f,onDrop:l,onFocus:m,value:A},j,i),meta:Vt()({},o(w),{active:!(!w||!r(w,"active")),asyncValidating:s,autofilled:!(!w||!r(w,"autofilled")),dirty:p,dispatch:d,error:P,form:h,initial:y,warning:N,invalid:!!P,pristine:g,submitting:!!x,submitFailed:!!E,touched:!(!w||!r(w,"touched")),valid:!P,visited:!(!w||!r(w,"visited"))}),custom:Vt()({},C,b)}},Yt=function(e){return!!(e&&e.stopPropagation&&e.preventDefault)},Zt=function(e,t){if(Yt(e)){if(!t&&e.nativeEvent&&void 0!==e.nativeEvent.text)return e.nativeEvent.text;if(t&&void 0!==e.nativeEvent)return e.nativeEvent.text;var n=e,r=n.target,o=r.type,i=r.value,a=r.checked,s=r.files,c=n.dataTransfer;return"checkbox"===o?!!a:"file"===o?s||c&&c.files:"select-multiple"===o?function(e){var t=[];if(e)for(var n=0;n<e.length;n++){var r=e[n];r.selected&&t.push(r.value)}return t}(e.target.options):i}return e},Xt="undefined"!==typeof window&&window.navigator&&window.navigator.product&&"ReactNative"===window.navigator.product,Jt=function(e,t){var n=t.name,r=t.parse,o=t.normalize,i=Zt(e,Xt);return r&&(i=r(i,n)),o&&(i=o(n,i)),i},Qt="text",en=function(e,t,n,r){if(t<(e=e||[]).length){if(void 0===r&&!n){var o=[].concat(e);return o.splice(t,0,!0),o[t]=void 0,o}if(null!=r){var i=[].concat(e);return i.splice(t,n,r),i}var a=[].concat(e);return a.splice(t,n),a}if(n)return e;var s=[].concat(e);return s[t]=r,s},tn=n(15),nn=n.n(tn),rn=function(e,t){if(!e)return e;var n=nn()(t),r=n.length;if(r){for(var o=e,i=0;i<r&&o;++i)o=o[n[i]];return o}},on=function(e,t,n){return function e(t,n,r,o){var i;if(o>=r.length)return n;var a=r[o],s=e(t&&(Array.isArray(t)?t[Number(a)]:t[a]),n,r,o+1);if(!t){var c;if(isNaN(a))return(c={})[a]=s,c;var u=[];return u[parseInt(a,10)]=s,u}if(Array.isArray(t)){var l=[].concat(t);return l[parseInt(a,10)]=s,l}return Vt()({},t,((i={})[a]=s,i))}(e,n,nn()(t),0)},an=n(91),sn=n.n(an),cn=n(27),un=n.n(cn),ln=function(e){return sn()(e)||""===e||isNaN(e)},fn=function(e,t){return e===t||(e||t?(!e||!t||e._error===t._error)&&((!e||!t||e._warning===t._warning)&&(!w.a.isValidElement(e)&&!w.a.isValidElement(t)&&void 0)):ln(e)===ln(t))};var pn={allowsArrayErrors:!0,empty:{},emptyList:[],getIn:rn,setIn:on,deepEqual:function(e,t){return un()(e,t,fn)},deleteIn:function(e,t){return function e(t,n){if(void 0===t||null===t||void 0===n||null===n)return t;for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];if(o.length){if(Array.isArray(t)){if(isNaN(n))throw new Error('Must access array elements with a number, not "'+String(n)+'".');var a=Number(n);if(a<t.length){var s=e.apply(void 0,[t&&t[a]].concat(o));if(s!==t[a]){var c=[].concat(t);return c[a]=s,c}}return t}if(n in t){var u,l=e.apply(void 0,[t&&t[n]].concat(o));return t[n]===l?t:Vt()({},t,((u={})[n]=l,u))}return t}if(Array.isArray(t)){if(isNaN(n))throw new Error('Cannot delete non-numerical index from an array. Given: "'+String(n));var f=Number(n);if(f<t.length){var p=[].concat(t);return p.splice(f,1),p}return t}if(n in t){var d=Vt()({},t);return delete d[n],d}return t}.apply(void 0,[e].concat(nn()(t)))},forEach:function(e,t){return e.forEach(t)},fromJS:function(e){return e},keys:function(e){return e?Array.isArray(e)?e.map(function(e){return e.name}):Object.keys(e):[]},size:function(e){return e?e.length:0},some:function(e,t){return e.some(t)},splice:en,equals:function(e,t){return t.every(function(t){return~e.indexOf(t)})},orderChanged:function(e,t){return t.some(function(t,n){return t!==e[n]})},toJS:function(e){return e}},dn=function(e,t,n){return Object(D.isValidElementType)(e[t])?null:new Error("Invalid prop `"+t+"` supplied to `"+n+"`.")},mn=["_reduxForm"],hn=function(e){return e&&"object"===typeof e},vn=function(e){return e&&"function"===typeof e},yn=function(e){hn(e)&&vn(e.preventDefault)&&e.preventDefault()},gn=function(e,t){if(hn(e)&&hn(e.dataTransfer)&&vn(e.dataTransfer.getData))return e.dataTransfer.getData(t)},bn=function(e,t,n){hn(e)&&hn(e.dataTransfer)&&vn(e.dataTransfer.setData)&&e.dataTransfer.setData(t,n)},wn=function(e){var t=e.deepEqual,n=e.getIn,r=function(n){function r(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))||this).ref=w.a.createRef(),e.isPristine=function(){return e.props.pristine},e.getValue=function(){return e.props.value},e.handleChange=function(t){var n=e.props,r=n.name,o=n.dispatch,i=n.parse,a=n.normalize,s=n.onChange,c=n._reduxForm,u=n.value,l=Jt(t,{name:r,parse:i,normalize:a}),f=!1;s&&(!Xt&&Yt(t)?s(Vt()({},t,{preventDefault:function(){return f=!0,yn(t)}}),l,u,r):f=s(t,l,u,r)),f||(o(c.change(r,l)),c.asyncValidate&&c.asyncValidate(r,l,"change"))},e.handleFocus=function(t){var n=e.props,r=n.name,o=n.dispatch,i=n.onFocus,a=n._reduxForm,s=!1;i&&(Xt?s=i(t,r):i(Vt()({},t,{preventDefault:function(){return s=!0,yn(t)}}),r)),s||o(a.focus(r))},e.handleBlur=function(t){var n=e.props,r=n.name,o=n.dispatch,i=n.parse,a=n.normalize,s=n.onBlur,c=n._reduxForm,u=n._value,l=n.value,f=Jt(t,{name:r,parse:i,normalize:a});f===u&&void 0!==u&&(f=l);var p=!1;s&&(Xt?p=s(t,f,l,r):s(Vt()({},t,{preventDefault:function(){return p=!0,yn(t)}}),f,l,r)),p||(o(c.blur(r,f)),c.asyncValidate&&c.asyncValidate(r,f,"blur"))},e.handleDragStart=function(t){var n=e.props,r=n.name,o=n.onDragStart,i=n.value;bn(t,Qt,null==i?"":i),o&&o(t,r)},e.handleDrop=function(t){var n=e.props,r=n.name,o=n.dispatch,i=n.onDrop,a=n._reduxForm,s=n.value,c=gn(t,Qt),u=!1;i&&i(Vt()({},t,{preventDefault:function(){return u=!0,yn(t)}}),c,s,r),u||(o(a.change(r,c)),yn(t))},e}qt()(r,n);var o=r.prototype;return o.shouldComponentUpdate=function(e){var n=this,r=Object.keys(e),o=Object.keys(this.props);return!!(this.props.children||e.children||r.length!==o.length||r.some(function(r){return~(e.immutableProps||[]).indexOf(r)?n.props[r]!==e[r]:!~mn.indexOf(r)&&!t(n.props[r],e[r])}))},o.getRenderedComponent=function(){return this.ref.current},o.render=function(){var t=this.props,n=t.component,r=t.forwardRef,o=t.name,i=t._reduxForm,a=(t.normalize,t.onBlur,t.onChange,t.onFocus,t.onDragStart,t.onDrop,t.immutableProps,$t()(t,["component","forwardRef","name","_reduxForm","normalize","onBlur","onChange","onFocus","onDragStart","onDrop","immutableProps"])),s=Kt(e,o,Vt()({},a,{form:i.form,onBlur:this.handleBlur,onChange:this.handleChange,onDrop:this.handleDrop,onDragStart:this.handleDragStart,onFocus:this.handleFocus})),c=s.custom,u=$t()(s,["custom"]);if(r&&(c.ref=this.ref),"string"===typeof n){var l=u.input;return u.meta,Object(b.createElement)(n,Vt()({},l,c))}return Object(b.createElement)(n,Vt()({},u,c))},r}(b.Component);return r.propTypes={component:dn,props:E.a.object},me(function(e,r){var o=r.name,i=r._reduxForm,a=i.initialValues,s=(0,i.getFormState)(e),c=n(s,"initial."+o),u=void 0!==c?c:a&&n(a,o),l=n(s,"values."+o),f=n(s,"submitting"),p=function(e,t){var n=pn.getIn(e,t);return n&&n._error?n._error:n}(n(s,"syncErrors"),o),d=function(e,t){var r=n(e,t);return r&&r._warning?r._warning:r}(n(s,"syncWarnings"),o),m=t(l,u);return{asyncError:n(s,"asyncErrors."+o),asyncValidating:n(s,"asyncValidating")===o,dirty:!m,pristine:m,state:n(s,"fields."+o),submitError:n(s,"submitErrors."+o),submitFailed:n(s,"submitFailed"),submitting:f,syncError:p,syncWarning:d,initial:u,value:l,_value:r.value}},void 0,void 0,{forwardRef:!0})(r)},_n=function(e,t,n,r,o,i){if(i)return e===t},En=function(e,t,n){var r=un()(e.props,t,_n),o=un()(e.state,n,_n);return!r||!o},xn=function(e,t){var n=e._reduxForm.sectionPrefix;return n?n+"."+t:t},Sn=b.createContext(null),On=function(e){var t=function(t){function n(){return t.apply(this,arguments)||this}return qt()(n,t),n.prototype.render=function(){var t=this.props,n=t.forwardedRef,r=$t()(t,["forwardedRef"]);return b.createElement(Sn.Consumer,{children:function(t){return b.createElement(e,Vt()({_reduxForm:t,ref:n},r))}})},n}(b.Component),n=b.forwardRef(function(e,n){return b.createElement(t,Vt()({},e,{forwardedRef:n}))});return n.displayName=e.displayName||e.name||"Component",n},kn=function(e){var t=wn(e),n=e.setIn,r=function(e){function r(t){var r;if((r=e.call(this,t)||this).ref=w.a.createRef(),r.ref=w.a.createRef(),r.normalize=function(e,t){var o=r.props.normalize;if(!o)return t;var i=r.props._reduxForm.getValues();return o(t,r.value,n(i,e,t),i,e)},!t._reduxForm)throw new Error("Field must be inside a component decorated with reduxForm()");return r}qt()(r,e);var o=r.prototype;return o.componentDidMount=function(){var e=this;this.props._reduxForm.register(this.name,"Field",function(){return e.props.validate},function(){return e.props.warn})},o.shouldComponentUpdate=function(e,t){return En(this,e,t)},o.componentWillReceiveProps=function(e){var t=xn(this.props,this.props.name),n=xn(e,e.name);t===n&&pn.deepEqual(this.props.validate,e.validate)&&pn.deepEqual(this.props.warn,e.warn)||(this.props._reduxForm.unregister(t),this.props._reduxForm.register(n,"Field",function(){return e.validate},function(){return e.warn}))},o.componentWillUnmount=function(){this.props._reduxForm.unregister(this.name)},o.getRenderedComponent=function(){return U()(this.props.forwardRef,"If you want to access getRenderedComponent(), you must specify a forwardRef prop to Field"),this.ref.current?this.ref.current.getRenderedComponent():void 0},o.render=function(){return Object(b.createElement)(t,Vt()({},this.props,{name:this.name,normalize:this.normalize,ref:this.ref}))},Wt()(r,[{key:"name",get:function(){return xn(this.props,this.props.name)}},{key:"dirty",get:function(){return!this.pristine}},{key:"pristine",get:function(){return!(!this.ref.current||!this.ref.current.isPristine())}},{key:"value",get:function(){return this.ref.current&&this.ref.current.getValue()}}]),r}(b.Component);return r.propTypes={name:E.a.string.isRequired,component:dn,format:E.a.func,normalize:E.a.func,onBlur:E.a.func,onChange:E.a.func,onFocus:E.a.func,onDragStart:E.a.func,onDrop:E.a.func,parse:E.a.func,props:E.a.object,validate:E.a.oneOfType([E.a.func,E.a.arrayOf(E.a.func)]),warn:E.a.oneOfType([E.a.func,E.a.arrayOf(E.a.func)]),forwardRef:E.a.bool,immutableProps:E.a.arrayOf(E.a.string),_reduxForm:E.a.object},He(r),On(r)}(pn),jn=n(57),Cn=n.n(jn),Pn=n(58),Nn=n.n(Pn),An=n(21),Tn=n.n(An),In="@@redux-form/ARRAY_INSERT",Rn="@@redux-form/ARRAY_MOVE",Fn="@@redux-form/ARRAY_POP",Un="@@redux-form/ARRAY_PUSH",Dn="@@redux-form/ARRAY_REMOVE",Ln="@@redux-form/ARRAY_REMOVE_ALL",Mn="@@redux-form/ARRAY_SHIFT",Vn="@@redux-form/ARRAY_SPLICE",Bn="@@redux-form/ARRAY_UNSHIFT",Wn="@@redux-form/ARRAY_SWAP",zn="@@redux-form/AUTOFILL",qn="@@redux-form/BLUR",Hn="@@redux-form/CHANGE",$n="@@redux-form/CLEAR_FIELDS",Gn="@@redux-form/CLEAR_SUBMIT",Kn="@@redux-form/CLEAR_SUBMIT_ERRORS",Yn="@@redux-form/CLEAR_ASYNC_ERROR",Zn="@@redux-form/DESTROY",Xn="@@redux-form/FOCUS",Jn="@@redux-form/INITIALIZE",Qn="@@redux-form/REGISTER_FIELD",er="@@redux-form/RESET",tr="@@redux-form/RESET_SECTION",nr="@@redux-form/SET_SUBMIT_FAILED",rr="@@redux-form/SET_SUBMIT_SUCCEEDED",or="@@redux-form/START_ASYNC_VALIDATION",ir="@@redux-form/START_SUBMIT",ar="@@redux-form/STOP_ASYNC_VALIDATION",sr="@@redux-form/STOP_SUBMIT",cr="@@redux-form/SUBMIT",ur="@@redux-form/TOUCH",lr="@@redux-form/UNREGISTER_FIELD",fr="@@redux-form/UNTOUCH",pr="@@redux-form/UPDATE_SYNC_ERRORS",dr="@@redux-form/UPDATE_SYNC_WARNINGS",mr={arrayInsert:function(e,t,n,r){return{type:In,meta:{form:e,field:t,index:n},payload:r}},arrayMove:function(e,t,n,r){return{type:Rn,meta:{form:e,field:t,from:n,to:r}}},arrayPop:function(e,t){return{type:Fn,meta:{form:e,field:t}}},arrayPush:function(e,t,n){return{type:Un,meta:{form:e,field:t},payload:n}},arrayRemove:function(e,t,n){return{type:Dn,meta:{form:e,field:t,index:n}}},arrayRemoveAll:function(e,t){return{type:Ln,meta:{form:e,field:t}}},arrayShift:function(e,t){return{type:Mn,meta:{form:e,field:t}}},arraySplice:function(e,t,n,r,o){var i={type:Vn,meta:{form:e,field:t,index:n,removeNum:r}};return void 0!==o&&(i.payload=o),i},arraySwap:function(e,t,n,r){if(n===r)throw new Error("Swap indices cannot be equal");if(n<0||r<0)throw new Error("Swap indices cannot be negative");return{type:Wn,meta:{form:e,field:t,indexA:n,indexB:r}}},arrayUnshift:function(e,t,n){return{type:Bn,meta:{form:e,field:t},payload:n}},autofill:function(e,t,n){return{type:zn,meta:{form:e,field:t},payload:n}},blur:function(e,t,n,r){return{type:qn,meta:{form:e,field:t,touch:r},payload:n}},change:function(e,t,n,r,o){return{type:Hn,meta:{form:e,field:t,touch:r,persistentSubmitErrors:o},payload:n}},clearFields:function(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];return{type:$n,meta:{form:e,keepTouched:t,persistentSubmitErrors:n,fields:o}}},clearSubmit:function(e){return{type:Gn,meta:{form:e}}},clearSubmitErrors:function(e){return{type:Kn,meta:{form:e}}},clearAsyncError:function(e,t){return{type:Yn,meta:{form:e,field:t}}},destroy:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return{type:Zn,meta:{form:t}}},focus:function(e,t){return{type:Xn,meta:{form:e,field:t}}},initialize:function(e,t,n,r){return void 0===r&&(r={}),n instanceof Object&&(r=n,n=!1),{type:Jn,meta:Vt()({form:e,keepDirty:n},r),payload:t}},registerField:function(e,t,n){return{type:Qn,meta:{form:e},payload:{name:t,type:n}}},reset:function(e){return{type:er,meta:{form:e}}},resetSection:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{type:tr,meta:{form:e,sections:n}}},startAsyncValidation:function(e,t){return{type:or,meta:{form:e,field:t}}},startSubmit:function(e){return{type:ir,meta:{form:e}}},stopAsyncValidation:function(e,t){return{type:ar,meta:{form:e},payload:t,error:!(!t||!Object.keys(t).length)}},stopSubmit:function(e,t){return{type:sr,meta:{form:e},payload:t,error:!(!t||!Object.keys(t).length)}},submit:function(e){return{type:cr,meta:{form:e}}},setSubmitFailed:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{type:nr,meta:{form:e,fields:n},error:!0}},setSubmitSucceeded:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{type:rr,meta:{form:e,fields:n},error:!1}},touch:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{type:ur,meta:{form:e,fields:n}}},unregisterField:function(e,t,n){return void 0===n&&(n=!0),{type:lr,meta:{form:e},payload:{name:t,destroyOnUnmount:n}}},untouch:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{type:fr,meta:{form:e,fields:n}}},updateSyncErrors:function(e,t,n){return void 0===t&&(t={}),{type:pr,meta:{form:e},payload:{syncErrors:t,error:n}}},updateSyncWarnings:function(e,t,n){return void 0===t&&(t={}),{type:dr,meta:{form:e},payload:{syncWarnings:t,warning:n}}}},hr=function(e,t,n,r){t(r);var o=e();if(!Tn()(o))throw new Error("asyncValidate function passed to reduxForm must return a promise");var i=function(e){return function(t){if(e){if(t&&Object.keys(t).length)return n(t),t;throw n(),new Error("Asynchronous validation promise was rejected without errors.")}return n(),Promise.resolve()}};return o.then(i(!1),i(!0))},vr=function(e){var t=e.initialized,n=e.trigger,r=e.pristine;if(!e.syncValidationPasses)return!1;switch(n){case"blur":case"change":return!0;case"submit":return!r||!t;default:return!1}},yr=function(e){var t=e.values,n=e.nextProps,r=e.initialRender,o=e.lastFieldValidatorKeys,i=e.fieldValidatorKeys,a=e.structure;return!!r||!a.deepEqual(t,n&&n.values)||!a.deepEqual(o,i)},gr=function(e){var t=e.values,n=e.nextProps,r=e.initialRender,o=e.lastFieldValidatorKeys,i=e.fieldValidatorKeys,a=e.structure;return!!r||!a.deepEqual(t,n&&n.values)||!a.deepEqual(o,i)},br=function(e){var t=e.values,n=e.nextProps,r=e.initialRender,o=e.lastFieldValidatorKeys,i=e.fieldValidatorKeys,a=e.structure;return!!r||!a.deepEqual(t,n&&n.values)||!a.deepEqual(o,i)},wr=function(e){var t=Yt(e);return t&&e.preventDefault(),t},_r=function(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return wr(t)?e.apply(void 0,r):e.apply(void 0,[t].concat(r))}},Er=function(e,t,n,r,o){for(var i=function(e){return Array.isArray(e)?e:[e]}(r),a=0;a<i.length;a++){var s=i[a](e,t,n,o);if(s)return s}},xr=function(e,t){var n=t.getIn;return function(t,r){var o={};return Object.keys(e).forEach(function(i){var a=n(t,i),s=Er(a,t,r,e[i],i);s&&(o=pn.setIn(o,i,s))}),o}};function Sr(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function Or(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}var kr=function(e){function t(t){var n;return(n=e.call(this,"Submit Validation Failed")||this).errors=t,n}return qt()(t,e),t}(function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=Sr(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return Object.defineProperty(n,"message",{configurable:!0,enumerable:!1,value:e,writable:!0}),Object.defineProperty(n,"name",{configurable:!0,enumerable:!1,value:n.constructor.name,writable:!0}),Error.hasOwnProperty("captureStackTrace")?(Error.captureStackTrace(n,n.constructor),Sr(n)):(Object.defineProperty(n,"stack",{configurable:!0,enumerable:!1,value:new Error(e).stack,writable:!0}),n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,Or(Error)),t}()),jr=function(e){return e&&e.name===kr.name},Cr=function(e,t,n){var r,o=n.dispatch,i=n.submitAsSideEffect,a=n.onSubmitFail,s=n.onSubmitSuccess,c=n.startSubmit,u=n.stopSubmit,l=n.setSubmitFailed,f=n.setSubmitSucceeded,p=n.values;try{r=e(p,o,n)}catch(m){var d=jr(m)?m.errors:void 0;if(u(d),l.apply(void 0,t),a&&a(d,o,m,n),d||a)return d;throw m}if(i)r&&o(r);else{if(Tn()(r))return c(),r.then(function(e){return u(),f(),s&&s(e,o,n),e},function(e){var r=jr(e)?e.errors:void 0;if(u(r),l.apply(void 0,t),a&&a(r,o,e,n),r||a)return r;throw e});f(),s&&s(r,o,n)}return r},Pr=function(e,t,n,r,o){var i=t.dispatch,a=t.onSubmitFail,s=t.setSubmitFailed,c=t.syncErrors,u=t.asyncErrors,l=t.touch,f=t.persistentSubmitErrors;if(l.apply(void 0,Array.from(o)),n||f){var p=r&&r();return p?p.then(function(n){if(n)throw n;return Cr(e,o,t)}).catch(function(e){return s.apply(void 0,o),a&&a(e,i,null,t),Promise.reject(e)}):Cr(e,o,t)}s.apply(void 0,o);var d=function(e){var t=e.asyncErrors,n=e.syncErrors;return t&&"function"===typeof t.merge?t.merge(n).toJS():Vt()({},t,n)}({asyncErrors:u,syncErrors:c});return a&&a(d,i,null,t),d},Nr=function(e){var t=e.getIn;return function(e,n,r,o){return!!(n||r||o)&&function(e,t){switch(t){case"Field":return[e,e+"._error"];case"FieldArray":return[e+"._error"];default:throw new Error("Unknown field type")}}(t(e,"name"),t(e,"type")).some(function(e){return t(n,e)||t(r,e)||t(o,e)})}},Ar=function(e){var t=e.getIn,n=e.keys,r=Nr(e);return function(e,o,i){return void 0===i&&(i=!1),function(a){var s=(o||function(e){return t(e,"form")})(a);if(t(s,e+".syncError"))return!1;if(!i&&t(s,e+".error"))return!1;var c=t(s,e+".syncErrors"),u=t(s,e+".asyncErrors"),l=i?void 0:t(s,e+".submitErrors");if(!c&&!u&&!l)return!0;var f=t(s,e+".registeredFields");return!f||!n(f).filter(function(e){return t(f,"['"+e+"'].count")>0}).some(function(e){return r(t(f,"['"+e+"']"),c,u,l)})}}},Tr=function(e){return e.displayName||e.name||"Component"},Ir=n(40),Rr=mr.arrayInsert,Fr=mr.arrayMove,Ur=mr.arrayPop,Dr=mr.arrayPush,Lr=mr.arrayRemove,Mr=mr.arrayRemoveAll,Vr=mr.arrayShift,Br=mr.arraySplice,Wr=mr.arraySwap,zr=mr.arrayUnshift,qr=mr.blur,Hr=mr.change,$r=mr.focus,Gr=$t()(mr,["arrayInsert","arrayMove","arrayPop","arrayPush","arrayRemove","arrayRemoveAll","arrayShift","arraySplice","arraySwap","arrayUnshift","blur","change","focus"]),Kr={arrayInsert:Rr,arrayMove:Fr,arrayPop:Ur,arrayPush:Dr,arrayRemove:Lr,arrayRemoveAll:Mr,arrayShift:Vr,arraySplice:Br,arraySwap:Wr,arrayUnshift:zr},Yr=[].concat(Object.keys(mr),["array","asyncErrors","initialValues","syncErrors","syncWarnings","values","registeredFields"]),Zr=function(e){if(!e||"function"!==typeof e)throw new Error("You must either pass handleSubmit() an onSubmit function or pass onSubmit as a prop");return e},Xr=function(e){var t=e.deepEqual,n=e.empty,r=e.getIn,o=e.setIn,i=e.keys,a=e.fromJS,s=Ar(e);return function(c){var u=Vt()({touchOnBlur:!0,touchOnChange:!1,persistentSubmitErrors:!1,destroyOnUnmount:!0,shouldAsyncValidate:vr,shouldValidate:yr,shouldError:gr,shouldWarn:br,enableReinitialize:!1,keepDirtyOnReinitialize:!1,updateUnregisteredFields:!1,getFormState:function(e){return r(e,"form")},pure:!0,forceUnregisterOnUnmount:!1,submitAsSideEffect:!1},c);return function(c){var l=function(n){function s(){for(var t,s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return(t=n.call.apply(n,[this].concat(c))||this).wrapped=w.a.createRef(),t.destroyed=!1,t.fieldCounts={},t.fieldValidators={},t.lastFieldValidatorKeys=[],t.fieldWarners={},t.lastFieldWarnerKeys=[],t.innerOnSubmit=void 0,t.submitPromise=void 0,t.getValues=function(){return t.props.values},t.isValid=function(){return t.props.valid},t.isPristine=function(){return t.props.pristine},t.register=function(e,n,r,o){var i=(t.fieldCounts[e]||0)+1;t.fieldCounts[e]=i,t.props.registerField(e,n),r&&(t.fieldValidators[e]=r),o&&(t.fieldWarners[e]=o)},t.unregister=function(e){var n=t.fieldCounts[e];if(1===n?delete t.fieldCounts[e]:null!=n&&(t.fieldCounts[e]=n-1),!t.destroyed){var r=t.props,o=r.destroyOnUnmount,i=r.forceUnregisterOnUnmount,a=r.unregisterField;o||i?(a(e,o),t.fieldCounts[e]||(delete t.fieldValidators[e],delete t.fieldWarners[e],t.lastFieldValidatorKeys=t.lastFieldValidatorKeys.filter(function(t){return t!==e}))):a(e,!1)}},t.getFieldList=function(e){var n=t.props.registeredFields,o=[];if(!n)return o;var s=i(n);return e&&(e.excludeFieldArray&&(s=s.filter(function(e){return"FieldArray"!==r(n,"['"+e+"'].type")})),e.excludeUnregistered&&(s=s.filter(function(e){return 0!==r(n,"['"+e+"'].count")}))),a(s.reduce(function(e,t){return e.push(t),e},o))},t.getValidators=function(){var e={};return Object.keys(t.fieldValidators).forEach(function(n){var r=t.fieldValidators[n]();r&&(e[n]=r)}),e},t.generateValidator=function(){var n=t.getValidators();return Object.keys(n).length?xr(n,e):void 0},t.getWarners=function(){var e={};return Object.keys(t.fieldWarners).forEach(function(n){var r=t.fieldWarners[n]();r&&(e[n]=r)}),e},t.generateWarner=function(){var n=t.getWarners();return Object.keys(n).length?xr(n,e):void 0},t.asyncValidate=function(e,n,i){var a=t.props,s=a.asyncBlurFields,c=a.asyncChangeFields,u=a.asyncErrors,l=a.asyncValidate,f=a.dispatch,p=a.initialized,d=a.pristine,m=a.shouldAsyncValidate,h=a.startAsyncValidation,v=a.stopAsyncValidation,y=a.syncErrors,g=a.values,b=!e;if(l){var w=b?g:o(g,e,n),_=b||!r(y,e);if(function(){var t=s&&e&&~s.indexOf(e.replace(/\[[0-9]+\]/g,"[]")),n=c&&e&&~c.indexOf(e.replace(/\[[0-9]+\]/g,"[]"));return b||!(s||c)||("blur"===i?t:n)}()&&m({asyncErrors:u,initialized:p,trigger:b?"submit":i,blurredField:e,pristine:d,syncValidationPasses:_}))return hr(function(){return l(w,f,t.props,e)},h,v,e)}},t.submitCompleted=function(e){return delete t.submitPromise,e},t.submitFailed=function(e){throw delete t.submitPromise,e},t.listenToSubmit=function(e){return Tn()(e)?(t.submitPromise=e,e.then(t.submitCompleted,t.submitFailed)):e},t.submit=function(e){var n=t.props,r=n.onSubmit,o=n.blur,i=n.change,a=n.dispatch;return e&&!wr(e)?_r(function(){return!t.submitPromise&&t.listenToSubmit(Pr(Zr(e),Vt()({},t.props,Q({blur:o,change:i},a)),t.props.validExceptSubmit,t.asyncValidate,t.getFieldList({excludeFieldArray:!0,excludeUnregistered:!0})))}):t.submitPromise?void 0:t.innerOnSubmit&&t.innerOnSubmit!==t.submit?t.innerOnSubmit():t.listenToSubmit(Pr(Zr(r),Vt()({},t.props,Q({blur:o,change:i},a)),t.props.validExceptSubmit,t.asyncValidate,t.getFieldList({excludeFieldArray:!0,excludeUnregistered:!0})))},t.reset=function(){return t.props.reset()},t}qt()(s,n);var l=s.prototype;return l.initIfNeeded=function(e){var n=this.props.enableReinitialize;if(e){if((n||!e.initialized)&&!t(this.props.initialValues,e.initialValues)){var r=e.initialized&&this.props.keepDirtyOnReinitialize;this.props.initialize(e.initialValues,r,{keepValues:e.keepValues,lastInitialValues:this.props.initialValues,updateUnregisteredFields:e.updateUnregisteredFields})}}else!this.props.initialValues||this.props.initialized&&!n||this.props.initialize(this.props.initialValues,this.props.keepDirtyOnReinitialize,{keepValues:this.props.keepValues,updateUnregisteredFields:this.props.updateUnregisteredFields})},l.updateSyncErrorsIfNeeded=function(e,t,n){var r=this.props,o=r.error,i=r.updateSyncErrors,a=(!n||!Object.keys(n).length)&&!o,s=(!e||!Object.keys(e).length)&&!t;a&&s||pn.deepEqual(n,e)&&pn.deepEqual(o,t)||i(e,t)},l.clearSubmitPromiseIfNeeded=function(e){var t=this.props.submitting;this.submitPromise&&t&&!e.submitting&&delete this.submitPromise},l.submitIfNeeded=function(e){var t=this.props,n=t.clearSubmit;!t.triggerSubmit&&e.triggerSubmit&&(n(),this.submit())},l.shouldErrorFunction=function(){var e=this.props,t=e.shouldValidate,n=e.shouldError;return t!==yr&&n===gr?t:n},l.validateIfNeeded=function(t){var n=this.props,r=n.validate,o=n.values,i=this.shouldErrorFunction(),a=this.generateValidator();if(r||a){var s=void 0===t,c=Object.keys(this.getValidators());if(i({values:o,nextProps:t,props:this.props,initialRender:s,lastFieldValidatorKeys:this.lastFieldValidatorKeys,fieldValidatorKeys:c,structure:e})){var u=s||!t?this.props:t,l=Cn()(r&&r(u.values,u)||{},a&&a(u.values,u)||{}),f=l._error,p=$t()(l,["_error"]);this.lastFieldValidatorKeys=c,this.updateSyncErrorsIfNeeded(p,f,u.syncErrors)}}else this.lastFieldValidatorKeys=[]},l.updateSyncWarningsIfNeeded=function(e,t,n){var r=this.props,o=r.warning,i=r.syncWarnings,a=r.updateSyncWarnings,s=(!i||!Object.keys(i).length)&&!o,c=(!e||!Object.keys(e).length)&&!t;s&&c||pn.deepEqual(n,e)&&pn.deepEqual(o,t)||a(e,t)},l.shouldWarnFunction=function(){var e=this.props,t=e.shouldValidate,n=e.shouldWarn;return t!==yr&&n===br?t:n},l.warnIfNeeded=function(t){var n=this.props,r=n.warn,o=n.values,i=this.shouldWarnFunction(),a=this.generateWarner();if(r||a){var s=void 0===t,c=Object.keys(this.getWarners());if(i({values:o,nextProps:t,props:this.props,initialRender:s,lastFieldValidatorKeys:this.lastFieldWarnerKeys,fieldValidatorKeys:c,structure:e})){var u=s||!t?this.props:t,l=Cn()(r?r(u.values,u):{},a?a(u.values,u):{}),f=l._warning,p=$t()(l,["_warning"]);this.lastFieldWarnerKeys=c,this.updateSyncWarningsIfNeeded(p,f,u.syncWarnings)}}},l.componentWillMount=function(){Object(Ir.a)()||(this.initIfNeeded(),this.validateIfNeeded(),this.warnIfNeeded()),U()(this.props.shouldValidate,"shouldValidate() is deprecated and will be removed in v9.0.0. Use shouldWarn() or shouldError() instead.")},l.componentWillReceiveProps=function(e){this.initIfNeeded(e),this.validateIfNeeded(e),this.warnIfNeeded(e),this.clearSubmitPromiseIfNeeded(e),this.submitIfNeeded(e);var n=e.onChange,r=e.values,o=e.dispatch;n&&!t(r,this.props.values)&&n(r,o,e,this.props.values)},l.shouldComponentUpdate=function(e){var n=this;if(!this.props.pure)return!0;var r=u.immutableProps,o=void 0===r?[]:r;return!!(this.props.children||e.children||Object.keys(e).some(function(r){return~o.indexOf(r)?n.props[r]!==e[r]:!~Yr.indexOf(r)&&!t(n.props[r],e[r])}))},l.componentDidMount=function(){Object(Ir.a)()||(this.initIfNeeded(this.props),this.validateIfNeeded(),this.warnIfNeeded()),U()(this.props.shouldValidate,"shouldValidate() is deprecated and will be removed in v9.0.0. Use shouldWarn() or shouldError() instead.")},l.componentWillUnmount=function(){var e=this.props,t=e.destroyOnUnmount,n=e.destroy;t&&!Object(Ir.a)()&&(this.destroyed=!0,n())},l.render=function(){var e,t,n=this,o=this.props,i=o.anyTouched,a=o.array,s=(o.arrayInsert,o.arrayMove,o.arrayPop,o.arrayPush,o.arrayRemove,o.arrayRemoveAll,o.arrayShift,o.arraySplice,o.arraySwap,o.arrayUnshift,o.asyncErrors,o.asyncValidate,o.asyncValidating),u=o.blur,l=o.change,f=o.clearSubmit,p=o.destroy,d=(o.destroyOnUnmount,o.forceUnregisterOnUnmount,o.dirty),m=o.dispatch,h=(o.enableReinitialize,o.error),v=(o.focus,o.form),y=(o.getFormState,o.immutableProps,o.initialize),g=o.initialized,w=o.initialValues,_=o.invalid,E=(o.keepDirtyOnReinitialize,o.keepValues,o.updateUnregisteredFields,o.pristine),x=o.propNamespace,S=(o.registeredFields,o.registerField,o.reset),O=o.resetSection,k=(o.setSubmitFailed,o.setSubmitSucceeded,o.shouldAsyncValidate,o.shouldValidate,o.shouldError,o.shouldWarn,o.startAsyncValidation,o.startSubmit,o.stopAsyncValidation,o.stopSubmit,o.submitAsSideEffect),j=o.submitting,C=o.submitFailed,P=o.submitSucceeded,N=o.touch,A=(o.touchOnBlur,o.touchOnChange,o.persistentSubmitErrors,o.syncErrors,o.syncWarnings,o.unregisterField,o.untouch),T=(o.updateSyncErrors,o.updateSyncWarnings,o.valid),I=(o.validExceptSubmit,o.values,o.warning),R=$t()(o,["anyTouched","array","arrayInsert","arrayMove","arrayPop","arrayPush","arrayRemove","arrayRemoveAll","arrayShift","arraySplice","arraySwap","arrayUnshift","asyncErrors","asyncValidate","asyncValidating","blur","change","clearSubmit","destroy","destroyOnUnmount","forceUnregisterOnUnmount","dirty","dispatch","enableReinitialize","error","focus","form","getFormState","immutableProps","initialize","initialized","initialValues","invalid","keepDirtyOnReinitialize","keepValues","updateUnregisteredFields","pristine","propNamespace","registeredFields","registerField","reset","resetSection","setSubmitFailed","setSubmitSucceeded","shouldAsyncValidate","shouldValidate","shouldError","shouldWarn","startAsyncValidation","startSubmit","stopAsyncValidation","stopSubmit","submitAsSideEffect","submitting","submitFailed","submitSucceeded","touch","touchOnBlur","touchOnChange","persistentSubmitErrors","syncErrors","syncWarnings","unregisterField","untouch","updateSyncErrors","updateSyncWarnings","valid","validExceptSubmit","values","warning"]),F=Vt()({array:a,anyTouched:i,asyncValidate:this.asyncValidate,asyncValidating:s},Q({blur:u,change:l},m),{clearSubmit:f,destroy:p,dirty:d,dispatch:m,error:h,form:v,handleSubmit:this.submit,initialize:y,initialized:g,initialValues:w,invalid:_,pristine:E,reset:S,resetSection:O,submitting:j,submitAsSideEffect:k,submitFailed:C,submitSucceeded:P,touch:N,untouch:A,valid:T,warning:I}),U=Vt()({},x?((e={})[x]=F,e):F,R);t=c,Boolean(t&&t.prototype&&"object"===typeof t.prototype.isReactComponent)&&(U.ref=this.wrapped);var D=Vt()({},this.props,{getFormState:function(e){return r(n.props.getFormState(e),n.props.form)},asyncValidate:this.asyncValidate,getValues:this.getValues,sectionPrefix:void 0,register:this.register,unregister:this.unregister,registerInnerOnSubmit:function(e){return n.innerOnSubmit=e}});return Object(b.createElement)(Sn.Provider,{value:D,children:Object(b.createElement)(c,U)})},s}(w.a.Component);l.displayName="Form("+Tr(c)+")",l.WrappedComponent=c,l.propTypes={destroyOnUnmount:E.a.bool,forceUnregisterOnUnmount:E.a.bool,form:E.a.string.isRequired,immutableProps:E.a.arrayOf(E.a.string),initialValues:E.a.oneOfType([E.a.array,E.a.object]),getFormState:E.a.func,onSubmitFail:E.a.func,onSubmitSuccess:E.a.func,propNamespace:E.a.string,validate:E.a.func,warn:E.a.func,touchOnBlur:E.a.bool,touchOnChange:E.a.bool,triggerSubmit:E.a.bool,persistentSubmitErrors:E.a.bool,registeredFields:E.a.any};var f=me(function(e,o){var i=o.form,a=o.getFormState,c=o.initialValues,u=o.enableReinitialize,l=o.keepDirtyOnReinitialize,f=r(a(e)||n,i)||n,p=r(f,"initial"),d=!!p,m=u&&d&&!t(c,p),h=m&&!l,v=c||p||n;m||(v=p||n);var y=r(f,"values")||v;h&&(y=v);var g=h||t(v,y),b=r(f,"asyncErrors"),w=r(f,"syncErrors")||pn.empty,_=r(f,"syncWarnings")||pn.empty,E=r(f,"registeredFields"),x=s(i,a,!1)(e),S=s(i,a,!0)(e),O=!!r(f,"anyTouched"),k=!!r(f,"submitting"),j=!!r(f,"submitFailed"),C=!!r(f,"submitSucceeded"),P=r(f,"error"),N=r(f,"warning"),A=r(f,"triggerSubmit");return{anyTouched:O,asyncErrors:b,asyncValidating:r(f,"asyncValidating")||!1,dirty:!g,error:P,initialized:d,invalid:!x,pristine:g,registeredFields:E,submitting:k,submitFailed:j,submitSucceeded:C,syncErrors:w,syncWarnings:_,triggerSubmit:A,values:y,valid:x,validExceptSubmit:S,warning:N}},function(e,t){var n=function(e){return e.bind(null,t.form)},r=Nn()(Gr,n),o=Nn()(Kr,n),i=n($r),a=Q(r,e),s={insert:Q(o.arrayInsert,e),move:Q(o.arrayMove,e),pop:Q(o.arrayPop,e),push:Q(o.arrayPush,e),remove:Q(o.arrayRemove,e),removeAll:Q(o.arrayRemoveAll,e),shift:Q(o.arrayShift,e),splice:Q(o.arraySplice,e),swap:Q(o.arraySwap,e),unshift:Q(o.arrayUnshift,e)},c=Vt()({},a,o,{blur:function(e,n){return qr(t.form,e,n,!!t.touchOnBlur)},change:function(e,n){return Hr(t.form,e,n,!!t.touchOnChange,!!t.persistentSubmitErrors)},array:s,focus:i,dispatch:e});return function(){return c}},void 0,{forwardRef:!0}),p=R()(f(l),c);p.defaultProps=u;var d=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).ref=w.a.createRef(),t}qt()(t,e);var r=t.prototype;return r.submit=function(){return this.ref.current&&this.ref.current.submit()},r.reset=function(){this.ref&&this.ref.current.reset()},r.render=function(){var e=this.props,t=e.initialValues,n=$t()(e,["initialValues"]);return Object(b.createElement)(p,Vt()({},n,{ref:this.ref,initialValues:a(t)}))},Wt()(t,[{key:"valid",get:function(){return!(!this.ref.current||!this.ref.current.isValid())}},{key:"invalid",get:function(){return!this.valid}},{key:"pristine",get:function(){return!(!this.ref.current||!this.ref.current.isPristine())}},{key:"dirty",get:function(){return!this.pristine}},{key:"values",get:function(){return this.ref.current?this.ref.current.getValues():n}},{key:"fieldList",get:function(){return this.ref.current?this.ref.current.getFieldList():[]}},{key:"wrappedInstance",get:function(){return this.ref.current&&this.ref.current.wrapped.current}}]),t}(w.a.Component);He(d);var m=R()(On(d),c);return m.defaultProps=u,m}}}(pn),Jr=function(e){var t=e.getIn;return function(e,n){return function(r){var o=n||function(e){return t(e,"form")};return t(o(r),e+".values")}}}(pn),Qr=function(e){var t=e.getIn,n=e.empty;return function(e,r){return function(o){var i=r||function(e){return t(e,"form")};return t(i(o),e+".syncErrors")||n}}}(pn),eo=function(e){var t=e.getIn,n=e.empty;return function(e,r){return function(o){var i=r||function(e){return t(e,"form")};return t(i(o),e+".fields")||n}}}(pn),to=function(e){return"function"===typeof e},no=function(e){return e},ro=function(e){return null===e};function oo(e,t,n){void 0===t&&(t=no),U()(to(t)||ro(t),"Expected payloadCreator to be a function, undefined or null");var r=ro(t)||t===no?no:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return e instanceof Error?e:t.apply(void 0,[e].concat(r))},o=to(n),i=e.toString(),a=function(){var t=r.apply(void 0,arguments),i={type:e};return t instanceof Error&&(i.error=!0),void 0!==t&&(i.payload=t),o&&(i.meta=n.apply(void 0,arguments)),i};return a.toString=function(){return i},a}var io=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r="function"!==typeof t[t.length-1]&&t.pop(),o=t;if("undefined"===typeof r)throw new TypeError("The initial state may not be undefined. If you do not want to set a value for this reducer, you can use null instead of undefined.");return function(e,t){for(var n=arguments.length,i=Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];var s="undefined"===typeof e,c="undefined"===typeof t;return s&&c&&r?r:o.reduce(function(e,n){return n.apply(void 0,[e,t].concat(i))},s&&!c&&r?r:e)}},ao=function(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},so=function(e){return"undefined"!==typeof Map&&e instanceof Map};function co(e){if(so(e))return Array.from(e.keys());if("undefined"!==typeof Reflect&&"function"===typeof Reflect.ownKeys)return Reflect.ownKeys(e);var t=Object.getOwnPropertyNames(e);return"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e))),t}var uo="||";function lo(e,t){return so(t)?t.get(e):t[e]}var fo,po=(fo=function(e){return(ao(e)||so(e))&&!function(e){var t=co(e),n=t.every(function(e){return"next"===e||"throw"===e});return t.length&&t.length<=2&&n}(e)},function e(t,n,r,o){var i=void 0===n?{}:n,a=i.namespace,s=void 0===a?"/":a,c=i.prefix;return void 0===r&&(r={}),void 0===o&&(o=""),co(t).forEach(function(n){var i=function(e){return o||!c||c&&new RegExp("^"+c+s).test(e)?e:""+c+s+e}(function(e){var t;if(!o)return e;var n=e.toString().split(uo),r=o.split(uo);return(t=[]).concat.apply(t,r.map(function(e){return n.map(function(t){return""+e+s+t})})).join(uo)}(n)),a=lo(n,t);fo(a)?e(a,{namespace:s,prefix:c},r,i):r[i]=a}),r}),mo=function(e){return null===e||void 0===e},ho=function(e){return void 0===e},vo=function(e){return e.toString()};var yo=function(e,t){return(yo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function go(e,t){function n(){this.constructor=e}yo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var bo=function(){return(bo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function wo(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n}var _o=function(){return(_o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Eo=function(e,t){return function(n){return Math.max(Math.min(n,t),e)}},xo=function(e){return e%1?Number(e.toFixed(5)):e},So=/(-)?(\d[\d\.]*)/g,Oo=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ko=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))$/i,jo={test:function(e){return"number"===typeof e},parse:parseFloat,transform:function(e){return e}},Co=(_o({},jo,{transform:Eo(0,1)}),_o({},jo,{default:1}),function(e){return{test:function(t){return"string"===typeof t&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return""+t+e}}}),Po=Co("deg"),No=Co("%"),Ao=Co("px"),To=Co("vh"),Io=Co("vw"),Ro=(_o({},No,{parse:function(e){return No.parse(e)/100},transform:function(e){return No.transform(100*e)}}),Eo(0,255)),Fo=function(e){return void 0!==e.red},Uo=function(e){return void 0!==e.hue},Do=function(e){return function(t){if("string"!==typeof t)return t;for(var n,r={},o=(n=t,n.substring(n.indexOf("(")+1,n.lastIndexOf(")"))).split(/,\s*/),i=0;i<4;i++)r[e[i]]=void 0!==o[i]?parseFloat(o[i]):1;return r}},Lo=_o({},jo,{transform:function(e){return Math.round(Ro(e))}});function Mo(e,t){return e.startsWith(t)&&ko.test(e)}var Vo={test:function(e){return"string"===typeof e?Mo(e,"rgb"):Fo(e)},parse:Do(["red","green","blue","alpha"]),transform:function(e){var t=e.red,n=e.green,r=e.blue,o=e.alpha;return function(e){var t=e.red,n=e.green,r=e.blue,o=e.alpha;return"rgba("+t+", "+n+", "+r+", "+(void 0===o?1:o)+")"}({red:Lo.transform(t),green:Lo.transform(n),blue:Lo.transform(r),alpha:xo(o)})}},Bo={test:function(e){return"string"===typeof e?Mo(e,"hsl"):Uo(e)},parse:Do(["hue","saturation","lightness","alpha"]),transform:function(e){var t=e.hue,n=e.saturation,r=e.lightness,o=e.alpha;return function(e){var t=e.hue,n=e.saturation,r=e.lightness,o=e.alpha;return"hsla("+t+", "+n+", "+r+", "+(void 0===o?1:o)+")"}({hue:Math.round(t),saturation:No.transform(xo(n)),lightness:No.transform(xo(r)),alpha:xo(o)})}},Wo=_o({},Vo,{test:function(e){return"string"===typeof e&&Mo(e,"#")},parse:function(e){var t="",n="",r="";return e.length>4?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),t+=t,n+=n,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:1}}}),zo={test:function(e){return"string"===typeof e&&ko.test(e)||Fo(e)||Uo(e)},parse:function(e){return Vo.test(e)?Vo.parse(e):Bo.test(e)?Bo.parse(e):Wo.test(e)?Wo.parse(e):e},transform:function(e){return Fo(e)?Vo.transform(e):Uo(e)?Bo.transform(e):e}},qo=function(e){return"number"===typeof e?0:e},Ho={test:function(e){if("string"!==typeof e||!isNaN(e))return!1;var t=0,n=e.match(So),r=e.match(Oo);return n&&(t+=n.length),r&&(t+=r.length),t>0},parse:function(e){var t=e,n=[],r=t.match(Oo);r&&(t=t.replace(Oo,"${c}"),n.push.apply(n,r.map(zo.parse)));var o=t.match(So);return o&&n.push.apply(n,o.map(jo.parse)),n},createTransformer:function(e){var t=e,n=0,r=e.match(Oo),o=r?r.length:0;if(r)for(var i=0;i<o;i++)t=t.replace(r[i],"${c}"),n++;var a=t.match(So),s=a?a.length:0;if(a)for(i=0;i<s;i++)t=t.replace(a[i],"${n}"),n++;return function(e){for(var r=t,i=0;i<n;i++)r=r.replace(i<o?"${c}":"${n}",i<o?zo.transform(e[i]):xo(e[i]));return r}},getAnimatableNone:function(e){var t=Ho.parse(e);return Ho.createTransformer(e)(t.map(qo))}},$o=function(){};var Go,Ko=0,Yo="undefined"!==typeof window&&void 0!==window.requestAnimationFrame?function(e){return window.requestAnimationFrame(e)}:function(e){var t=Date.now(),n=Math.max(0,16.7-(t-Ko));Ko=t+n,setTimeout(function(){return e(Ko)},n)};!function(e){e.Read="read",e.Update="update",e.Render="render",e.PostRender="postRender",e.FixedUpdate="fixedUpdate"}(Go||(Go={}));var Zo=1/60*1e3,Xo=!0,Jo=!1,Qo=!1,ei={delta:0,timestamp:0},ti=[Go.Read,Go.Update,Go.Render,Go.PostRender],ni=function(e){return Jo=e},ri=ti.reduce(function(e,t){var n=function(e){var t=[],n=[],r=0,o=!1,i=0,a=new WeakSet,s=new WeakSet,c={cancel:function(e){var t=n.indexOf(e);a.add(e),-1!==t&&n.splice(t,1)},process:function(u){var l,f;if(o=!0,t=(l=[n,t])[0],(n=l[1]).length=0,r=t.length)for(i=0;i<r;i++)(f=t[i])(u),!0!==s.has(f)||a.has(f)||(c.schedule(f),e(!0));o=!1},schedule:function(e,i,c){void 0===i&&(i=!1),void 0===c&&(c=!1),$o("function"===typeof e,"Argument must be a function");var u=c&&o,l=u?t:n;a.delete(e),i&&s.add(e),-1===l.indexOf(e)&&(l.push(e),u&&(r=t.length))}};return c}(ni);return e.sync[t]=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),Jo||ui(),n.schedule(e,t,r),e},e.cancelSync[t]=function(e){return n.cancel(e)},e.steps[t]=n,e},{steps:{},sync:{},cancelSync:{}}),oi=ri.steps,ii=ri.sync,ai=ri.cancelSync,si=function(e){return oi[e].process(ei)},ci=function e(t){Jo=!1,ei.delta=Xo?Zo:Math.max(Math.min(t-ei.timestamp,40),1),Xo||(Zo=ei.delta),ei.timestamp=t,Qo=!0,ti.forEach(si),Qo=!1,Jo&&(Xo=!1,Yo(e))},ui=function(){Jo=!0,Xo=!0,Qo||Yo(ci)},li=ii,fi=function(e){return function(t){return 1-e(1-t)}},pi=function(e){return e},di=function(e){return function(t){return Math.pow(t,e)}}(2),mi=fi(di);var hi=function(e){return"number"===typeof e},vi=function(e){return function(t,n,r){return void 0!==r?e(t,n,r):function(r){return e(t,n,r)}}},yi=vi(function(e,t,n){return Math.min(Math.max(n,e),t)}),gi=function(e,t,n){var r=t-e;return 0===r?1:(n-e)/r},bi=function(e,t,n){return-n*e+n*t+e},wi=function(){return(wi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},_i=function(e,t,n){var r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},Ei=[Wo,Vo,Bo],xi=function(e){return Ei.find(function(t){return t.test(e)})},Si=function(e){return"'"+e+"' is not an animatable color. Use the equivalent color code instead."},Oi=function(e,t){var n=xi(e),r=xi(t);$o(!!n,Si(e)),$o(!!r,Si(t)),$o(n.transform===r.transform,"Both colors must be hex/RGBA, OR both must be HSLA.");var o=n.parse(e),i=r.parse(t),a=wi({},o),s=n===Bo?bi:_i;return function(e){for(var t in a)"alpha"!==t&&(a[t]=s(o[t],i[t],e));return a.alpha=bi(o.alpha,i.alpha,e),n.transform(a)}},ki=function(e,t){return function(n){return t(e(n))}},ji=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce(ki)};function Ci(e,t){return hi(e)?function(n){return bi(e,t,n)}:zo.test(e)?Oi(e,t):Ai(e,t)}var Pi=function(e,t){var n=e.slice(),r=n.length,o=e.map(function(e,n){return Ci(e,t[n])});return function(e){for(var t=0;t<r;t++)n[t]=o[t](e);return n}};function Ni(e){for(var t=Ho.parse(e),n=t.length,r=0,o=0,i=0,a=0;a<n;a++)r||"number"===typeof t[a]?r++:void 0!==t[a].hue?i++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:i}}var Ai=function(e,t){var n=Ho.createTransformer(t),r=Ni(e),o=Ni(t);return $o(r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers,"Complex values '"+e+"' and '"+t+"' too different to mix. Ensure all colors are of the same type."),ji(Pi(r.parsed,o.parsed),n)};var Ti=function(e){return e},Ii=function(e){return void 0===e&&(e=Ti),vi(function(t,n,r){var o=n-r,i=-(0-t+1)*(0-e(Math.abs(o)));return o<=0?n+i:n-i})},Ri=(Ii(),Ii(Math.sqrt),vi(function(e,t,n){var r=t-e;return((n-e)%r+r)%r+e}),yi(0,1),function(){return(Ri=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)});Math.round;Math.round;var Fi=function(){function e(e){void 0===e&&(e={}),this.props=e}return e.prototype.applyMiddleware=function(e){return this.create(bo({},this.props,{middleware:this.props.middleware?[e].concat(this.props.middleware):[e]}))},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=1===e.length?e[0]:ji.apply(void 0,e);return this.applyMiddleware(function(e){return function(t){return e(n(t))}})},e.prototype.while=function(e){return this.applyMiddleware(function(t,n){return function(r){return e(r)?t(r):n()}})},e.prototype.filter=function(e){return this.applyMiddleware(function(t){return function(n){return e(n)&&t(n)}})},e}(),Ui=function(){return function(e,t){var n=e.middleware,r=e.onComplete,o=this;this.isActive=!0,this.update=function(e){o.observer.update&&o.updateObserver(e)},this.complete=function(){o.observer.complete&&o.isActive&&o.observer.complete(),o.onComplete&&o.onComplete(),o.isActive=!1},this.error=function(e){o.observer.error&&o.isActive&&o.observer.error(e),o.isActive=!1},this.observer=t,this.updateObserver=function(e){return t.update(e)},this.onComplete=r,t.update&&n&&n.length&&n.forEach(function(e){return o.updateObserver=e(o.updateObserver,o.complete)})}}(),Di=function(e,t,n){var r=t.middleware;return new Ui({middleware:r,onComplete:n},"function"===typeof e?{update:e}:e)},Li=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return go(t,e),t.prototype.create=function(e){return new t(e)},t.prototype.start=function(e){void 0===e&&(e={});var t=!1,n={stop:function(){}},r=this.props,o=r.init,i=wo(r,["init"]),a=o(Di(e,i,function(){t=!0,n.stop()}));return n=a?bo({},n,a):n,e.registerParent&&e.registerParent(n),t&&n.stop(),n},t}(Fi),Mi=function(e){return new Li({init:e})},Vi=function(e){var t=e.getCount,n=e.getFirst,r=e.getOutput,o=e.mapApi,i=e.setProp,a=e.startActions;return function(e){return Mi(function(s){var c=s.update,u=s.complete,l=s.error,f=t(e),p=r(),d=function(){return c(p)},m=0,h=a(e,function(e,t){var n=!1;return e.start({complete:function(){n||(n=!0,++m===f&&li.update(u))},error:l,update:function(e){i(p,t,e),li.update(d,!1,!0)}})});return Object.keys(n(h)).reduce(function(e,t){return e[t]=o(h,t),e},{})})}},Bi=Vi({getOutput:function(){return{}},getCount:function(e){return Object.keys(e).length},getFirst:function(e){return e[Object.keys(e)[0]]},mapApi:function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return Object.keys(e).reduce(function(r,o){var i;return e[o][t]&&(n[0]&&void 0!==n[0][o]?r[o]=e[o][t](n[0][o]):r[o]=(i=e[o])[t].apply(i,n)),r},{})}},setProp:function(e,t,n){return e[t]=n},startActions:function(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=t(e[r],r),n},{})}}),Wi=Vi({getOutput:function(){return[]},getCount:function(e){return e.length},getFirst:function(e){return e[0]},mapApi:function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.map(function(e,r){if(e[t])return Array.isArray(n[0])?e[t](n[0][r]):e[t].apply(e,n)})}},setProp:function(e,t,n){return e[t]=n},startActions:function(e,t){return e.map(function(e,n){return t(e,n)})}}),zi=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Wi(e)},qi=[Ao,No,Po,To,Io],Hi=function(e){return qi.find(function(t){return t.test(e)})},$i=function(e,t){return e(t)},Gi=function(e,t,n){var r=n[0],o=t[r].map(function(r,o){var i=n.reduce(function(e){return function(t,n){return t[n]=t[n][e],t}}(o),bo({},t));return ea(r)(e,i)});return zi.apply(void 0,o)},Ki=function(e,t,n){var r=n[0],o=Object.keys(t[r]).reduce(function(o,i){var a=n.reduce(function(e){return function(t,n){return t[n]=t[n][e],t}}(i),bo({},t));return o[i]=ea(t[r][i])(e,a),o},{});return Bi(o)},Yi=function(e,t){var n=t.from,r=t.to,o=wo(t,["from","to"]),i=Hi(n)||Hi(r),a=i.transform,s=i.parse;return e(bo({},o,{from:"string"===typeof n?s(n):n,to:"string"===typeof r?s(r):r})).pipe(a)},Zi=function(e){return function(t,n){var r=n.from,o=n.to,i=wo(n,["from","to"]);return t(bo({},i,{from:0,to:1})).pipe(e(r,o))}},Xi=Zi(Oi),Ji=Zi(Ai),Qi=function(e,t){var n=function(e){var t=Object.keys(e),n=function(t,n){return void 0!==t&&!e[n](t)};return{getVectorKeys:function(e){return t.reduce(function(t,r){return n(e[r],r)&&t.push(r),t},[])},testVectorProps:function(e){return e&&t.some(function(t){return n(e[t],t)})}}}(t),r=n.testVectorProps,o=n.getVectorKeys;return function(t){if(!r(t))return e(t);var n=o(t),i=t[n[0]];return ea(i)(e,t,n)}},ea=function(e){return"number"===typeof e?$i:Array.isArray(e)?Gi:function(e){return Boolean(Hi(e))}(e)?Yi:zo.test(e)?Xi:Ho.test(e)?Ji:"object"===typeof e?Ki:$i},ta=Qi(function(e){var t=e.from,n=void 0===t?0:t,r=e.to,o=void 0===r?1:r,i=e.ease,a=void 0===i?pi:i;return Mi(function(e){var t=e.update;return{seek:function(e){return t(e)}}}).pipe(a,function(e){return bi(n,o,e)})},{ease:function(e){return"function"===typeof e},from:jo.test,to:jo.test}),na=yi(0,1),ra=function(e){return void 0===e&&(e={}),Mi(function(t){var n,r=t.update,o=t.complete,i=e.duration,a=void 0===i?300:i,s=e.ease,c=void 0===s?mi:s,u=e.flip,l=void 0===u?0:u,f=e.loop,p=void 0===f?0:f,d=e.yoyo,m=void 0===d?0:d,h=e.from,v=void 0===h?0:h,y=e.to,g=void 0===y?1:y,b=e.elapsed,w=void 0===b?0:b,_=e.playDirection,E=void 0===_?1:_,x=e.flipCount,S=void 0===x?0:x,O=e.yoyoCount,k=void 0===O?0:O,j=e.loopCount,C=void 0===j?0:j,P=ta({from:v,to:g,ease:c}).start(r),N=0,A=!1,T=function(){if(w>a)w-=2*(w-a);else if(w<0){w+=2*(-1*w)}E*=-1},I=function(){N=na(gi(0,a,w)),P.seek(N)},R=function(){A=!0,n=li.update(function(e){var t=e.delta;w+=t*E,I(),function(){var e,t=1===E?A&&w>=a:A&&w<=0;if(!t)return!1;if(t&&!p&&!l&&!m)return!0;var n=!1;return p&&C<p?(w=a-w,C++,n=!0):l&&S<l?(w=a-w,P=ta({from:v=(e=[g,v])[0],to:g=e[1],ease:c}).start(r),S++,n=!0):m&&k<m&&(T(),k++,n=!0),!n}()&&o&&(ai.update(n),li.update(o,!1,!0))},!0)},F=function(){A=!1,n&&ai.update(n)};return R(),{isActive:function(){return A},getElapsed:function(){return yi(0,a,w)},getProgress:function(){return N},stop:function(){F()},pause:function(){return F(),this},resume:function(){return A||R(),this},seek:function(e){return w=bi(0,a,e),li.update(I,!1,!0),this},reverse:function(){return T(),this}}})},oa=function(e,t,n){return Mi(function(r){var o=r.update,i=t.split(" ").map(function(t){return e.addEventListener(t,o,n),t});return{stop:function(){return i.forEach(function(t){return e.removeEventListener(t,o,n)})}}})},ia=function(){return{clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}},aa=function(e,t){return void 0===t&&(t={clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}),t.clientX=t.x=e.clientX,t.clientY=t.y=e.clientY,t.pageX=e.pageX,t.pageY=e.pageY,t},sa=[ia()];if("undefined"!==typeof document){oa(document,"touchstart touchmove",{passive:!0,capture:!0}).start(function(e){var t=e.touches;!0;var n=t.length;sa.length=0;for(var r=0;r<n;r++){var o=t[r];sa.push(aa(o))}})}var ca=ia();if("undefined"!==typeof document){oa(document,"mousedown mousemove",!0).start(function(e){!0,aa(e,ca)})}var ua=new(function(){function e(){u(this,e),this.replaceOrtho=function(e,t){return(e||"").replace(/\$1/gi,Lt.res(t&&"C"===t.doctor_type?"inpractice_form_orthodontist":"inpractice_form_dentist"))},this.replaceOrtho2=function(e,t){if(!e)return e;var n=!!t&&"C"===t.doctor_type,r=Lt.res("".concat(e,"_").concat(n?"ortho":"gp"));return r||((e=Lt.res(e))||"").replace(/\$1/gi,Lt.res(n?"inpractice_form_orthodontist":"inpractice_form_dentist"))}}return f(e,[{key:"GenerateGuid",value:function(){return this.GenerateRandom("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx")}},{key:"GenerateShortGuid",value:function(){return this.GenerateRandom("xxxxxxxxxxxx")}},{key:"GenerateRandom",value:function(e){return e.replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}},{key:"SetCookie",value:function(e,t,n,r,o,i){var a="Mon, 01-Jan-2038 12:00:00 GMT";if(n){var s=new Date;s.setTime(s.getTime()+24*n*60*60*1e3),a=s.toGMTString()}return document.cookie=e+"="+escape(t)+(a?";expires="+a:"")+(r?";path="+r:"")+(o?";domain="+o:"")+(i?";secure":""),!0}},{key:"GetDomain",value:function(){return document.domain}},{key:"GetCookie",value:function(e){var t,n,r,o=document.cookie.split(";");for(t=0;t<o.length;t++)if(n=o[t].substr(0,o[t].indexOf("=")),r=o[t].substr(o[t].indexOf("=")+1),(n=n.replace(/^\s+|\s+$/g,""))===e)return unescape(r);return null}},{key:"GetVisitorId",value:function(){var e=this.GetCookie("vid");return e&&e.length?e:(e=this.GenerateShortGuid(),this.SetCookie("vid",e,1825),e)}},{key:"GetNow",value:function(){try{return performance.now()}catch(e){return this.GetNow2()}}},{key:"GetNow2",value:function(){try{return(new Date).getTime()}catch(e){}return 0}},{key:"TrySplitName",value:function(e){if(!e)return["",""];var t=e.split(/\s+/gi);return t.length<=1?[e,""]:[t.slice(0,t.length-1).join(" "),t[t.length-1]]}},{key:"IsIPhone",value:function(){return"undefined"!==typeof window&&(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i))}},{key:"scrollIntoView",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Lt.scrollOffset;t=t||0;try{var n=e.getBoundingClientRect(),r=window.pageXOffset||document.documentElement.scrollTop;ra({from:r,to:r+n.top+t}).start(function(e){window.scrollTo(0,e)})}catch(o){}}},{key:"customGATrack",value:function(e){try{window._googleTagsHelper.ExecuteTagsForGroup(e)}catch(Qc){}}},{key:"objToUrlParams",value:function(e){var t=[];for(var n in e)e[n]&&t.push(n+"="+window.encodeURIComponent(e[n]));return t.join("&")}},{key:"showAll",value:function(e,t){for(var n=document.querySelectorAll(e),r=0;r<n.length;r++)n[r].style.display=t?"":"none"}}]),e}()),la=new(function(){function e(){u(this,e)}return f(e,[{key:"FileReaderLoad",value:function(){var e=c(a.a.mark(function e(t){return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,n){try{var r=new FileReader;r.onload=function(t){e(t.target)},r.readAsDataURL(t)}catch(o){return n(o)}}));case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()},{key:"FileReaderReadArray",value:function(){var e=c(a.a.mark(function e(t){return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,n){try{var r=new FileReader;r.onloadend=function(t){e(t.target)},r.readAsArrayBuffer(t)}catch(o){return n(o)}}));case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()},{key:"processImage",value:function(){var e=c(a.a.mark(function e(t){var n,r,o,i,s,c,u,l,f,p,d;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if(!ua.IsIPhone()){e.next=7;break}return e.next=5,this.FileReaderLoad(t);case 5:return n=e.sent,e.abrupt("return",{preview:n.result,orientation:1});case 7:return r=function(e){for(var t="",n=new Uint8Array(e),r=n.byteLength,o=0;o<r;o++)t+=String.fromCharCode(n[o]);return window.btoa(t)},e.next=10,this.FileReaderReadArray(t);case 10:if(o=e.sent,i="data:"+t.type+";base64,"+r(o.result),s=new DataView(o.result),c=0,u=1,!(o.result.byteLength<2||65496!==s.getUint16(c))){e.next=18;break}return console.log("no exif"),e.abrupt("return",{preview:i,orientation:u});case 18:c+=2,l=s.byteLength,f=!1;case 21:if(!(c<l-2)){e.next=40;break}p=s.getUint16(c,f),c+=2,e.t0=p,e.next=65505===e.t0?27:274===e.t0?33:37;break;case 27:return 18761===s.getUint16(c+8)&&(f=!0),d=s.getUint16(c,f),l=d-c,c+=2,e.abrupt("break",38);case 33:return u=s.getUint16(c+6,f),console.log("orientation: "+u),l=0,e.abrupt("break",38);case 37:return e.abrupt("break",38);case 38:e.next=21;break;case 40:return e.abrupt("return",{preview:i,orientation:u});case 41:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()}]),e}()),fa=n(9),pa=n.n(fa),da=n(18),ma=n.n(da),ha=function(e){return e.simulation.simulationId},va=function(e){return e.simulation.userFormSubmitted},ya=function(e){return e.simulation.pinFormSubmitted},ga=function(e){return e.simulation.userHash},ba=function(e){return e.simulation.doctorProfileData},wa=function(e){return e.simulation.inpracticeUserFormSubmitted},_a=function(e){return e.simulation.inpracticeUserFormSubmitting},Ea=function(e){return e.simulation.inpracticeUserFormCancelled},xa={privacy:"privacy_page",privacy_close:"privacy_page_close",privacy_close_inner:"privacy_page_close","click-camera1":"take_your_selfie",close_save_modal:"close_save_modal_popup",close_save_modal_inner:"close_save_modal_popup",save_button:"click_on_save_button_popup",dont_save:"click_on_dont_save",not_suitable:"try_again_not_suitable",network_error:"try_again_network_connection","left-icon":"click_on_simulation_banner","right-icon":"click_on_simulation_banner",uploadedPictureBig:"full_preview_click_before",resultPictureBig:"full_preview_click_after",combined_image:"combined_image_click",thumbsdown:"negative_feedback",thumbsup:"positive_feedback","btn-tell-friends":"tell_friends","btn-request-callback":"request_callback"},Sa={"sms-slide-input":["click_on_after_simulation","click_on_before_simulation"],userAccept:["age_check_box","age_check_box_error"]},Oa={expandicon:["show_full_preview_after","show_full_preview_before","sms-slide-input"]},ka={"glyphicon glyphicon-chevron-right":{containerId:"carousel-examples",event:"click_on_simulation_banner"},"glyphicon glyphicon-chevron-left":{containerId:"carousel-examples",event:"click_on_simulation_banner"}},ja={"click-camera1":["form","form","complete-form"]},Ca=new(function(){function e(){u(this,e)}return f(e,[{key:"ev",value:function(e,t,n,r){try{Lt.disableInternalTracking||this.internalTrack(e,t,n,r),this.gaTrackEvent(e,n),this.gtmTrack(e)}catch(Qc){console.log(Qc)}}},{key:"internalTrack",value:function(e,t,n,r){var o=window._svStore,i=o.getState().simulation.sessionId,a=ha(o.getState());console.log("tracking ".concat(e," ").concat(t," ").concat(n," ").concat(r," ").concat(i," ").concat(a));var s={country_code:Lt.country||"gb",event_name:e,extra_data:n,reason_code:t,lead_id:r,simulation_id:a||"na",session_id:i||"na"};try{Lt.site_id&&(s.site_id="v="+Lt.site_id),Lt.practiceAccount&&(s.extra_data||(s.extra_data=""+Lt.practiceAccount)),this.ajaxCall(s)}catch(Qc){console.log(Qc)}}},{key:"ajaxCall",value:function(){var e=c(a.a.mark(function e(t){var n,r;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Lt.myInvisalignUrl+"log_event?"+ua.objToUrlParams(t),e.prev=1,e.next=4,pa.a.get(n,{headers:{Accept:"application/json, text/javascript, */*; q=0.01"}});case 4:r=e.sent,console.log(r.data),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.log(e.t0);case 11:case"end":return e.stop()}},e,null,[[1,8]])}));return function(t){return e.apply(this,arguments)}}()},{key:"gtmTrack2",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=arguments.length>4?arguments[4]:void 0;try{r=r||"";var a={event:(Lt.gtmEventPrefix||"")+e,add_info:o({category:(Lt.gtmEventPrefix||"")+t,action:n,label:r},i)};if(console.log("GTM: "+JSON.stringify(a)),!window.dataLayer)return;window.dataLayer.push(a)}catch(Qc){this.outp(Qc.message)}}},{key:"gtmTrack",value:function(e){try{this.gtmTrackEventInner(Lt.gaTrackingLabel||"SmileView",e)}catch(t){}}},{key:"gaTrackEvent",value:function(e,t){var n=["_trackEvent",Lt.gaTrackingLabel||"SmileView",e];t&&n.push(t),this.gaTrackEventInner(n[1],n[2],n[3],n[4],n[5])}},{key:"gaTrackEventInner",value:function(e,t,n,r,o){if(e){var i=[e];try{if(window.promoTrackingPrefixes){i=i.concat(window.promoTrackingPrefixes);for(var a=1;a<i.length;a++)i[a]+=e}}catch(u){}for(var s=function(i){window.ga(i+".send","event",e,t,n,r,o)},c=0;c<i.length;c++){e=i[c],this.outp(["send","event",e,t,n,r,o]);try{window.ga("send","event",e,t,n,r,o),window._gatrall&&window._gatrall.forEach(function(e){return s(e)})}catch(u){this.outp(u.message)}}}}},{key:"gtmTrackEventInner",value:function(e,t){var n=[e];try{if(window.promoTrackingPrefixes){n=n.concat(window.promoTrackingPrefixes);for(var r=1;r<n.length;r++)n[r]+=e}}catch(i){}for(var o=0;o<n.length;o++){e=n[o];try{this.outp("legacy_GTM: "+e+", "+(t||"")),window.dataLayer.push(t?{event:e,eventLabel:t}:{event:e})}catch(i){this.outp(i.message)}}}},{key:"outp",value:function(e){try{console.log(e)}catch(Qc){}}}]),e}());"undefined"!==typeof window&&(window._svTracking=Ca);var Pa=function(e){if(e&&e.target){console.log("SV click");try{var t=e.target,n=t.id,r=t.classList;if(n){if(xa[n]&&Ca.ev(xa[n]),Sa[n]&&Ca.ev(Sa[n][t.checked?0:1]),Oa[n]){var o=Oa[n];if(o&&o[2]){var i=document.getElementById(o[2]);i&&Ca.ev(o[i.checked?0:1])}}if(ja[n]){var a=ye(ja[n],4),s=a[0],c=a[1],u=a[2],l=a[3];Ca.gtmTrack2(s,c,u||"",l||"")}}if(r&&r.value&&ka[r.value]){var f=r.value,p=ka[f];if(p.containerId){var d="#".concat(p.containerId," .").concat(f.replace(/ /gi,"."));document.querySelector(d)===t&&Ca.ev(p.event)}else Ca.ev(p)}}catch(e){console.log(e)}}},Na=Ca,Aa=null,Ta=new(function(){function e(){u(this,e)}return f(e,[{key:"processCable",value:function(e,t){var r=n(114);return Aa||(Aa=r.createConsumer(Lt.cableSvcUrl)),new Promise(function(n,r){var o=!1,i=ua.GetNow(),a=window.setTimeout(function(){a=null,o=!0,Na.ev("simulation_no_response"),r(new Error("timeout"))},12e4),s=function(){a&&(console.log("timeout cleared"),clearTimeout(a),a=null,o=!0)};try{Aa.subscriptions.create({channel:"SimulationChannel",simulation_id:t},{received:function(t){if(console.log(t),!o)if(s(),"completed"===t.message.state){var a=Lt.myInvisalignUrl,c=a+t.message.before_file_link,u=a+t.message.after_file_link,l=a+t.message.combined_file_link,f=a+t.message.combined_file_link_img,p=ua.GetNow();Na.ev("time_taken_for_simulation",p-i),Lt.eu&&(ua.SetCookie("_saHash",e,1825),ua.SetCookie("_saType","sv3",1825)),n({beforeImage:c,afterImage:u,combinedImage:l,combinedImageImg:f})}else r(new Error("unsuitable"))}})}catch(c){s(),r(c)}})}},{key:"uploadSimulation",value:function(){var e=c(a.a.mark(function e(t,n,r){var o,i,s;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return Na.ev("front_end_simulation_start"),(o=new FormData).append("simulation_id",r),o.append("session_id",n),o.append("country_code",Lt.country),Lt.practiceAccount&&o.append("keep_for_research","true"),Lt.siteId&&o.append("site_id",Lt.siteId),o.append("file",t),e.next=10,pa.a.post(Lt.simulationSvcUrl,o);case 10:return i=e.sent,console.log(i),e.next=14,this.processCable(n,r);case 14:return s=e.sent,e.abrupt("return",s);case 16:case"end":return e.stop()}},e,this)}));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"submitUserForm",value:function(){var e=c(a.a.mark(function e(t){var n,r,i,s,c,u,l,f,p,d,m,h,v,y;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=(n=t=t||{}).first_name,i=n.last_name,s=n.postal_code,r||(r="NA"),i||(i="NA"),s||(s="NA"),t.full_name&&(c=ua.TrySplitName(t.full_name),u=ye(c,2),l=u[0],f=u[1],r=l,i=f=f||"NA"),"gb"===(p=Lt.country||"gb")&&(p="en"),d=Lt.storeId?{store_id:Lt.storeId}:{},m=o({},t,{first_name:r,last_name:i,postal_code:s,request_type:Lt.request_type||"SmileView",source_country:p,source_language:Lt.language,sa_hash:ua.GetVisitorId()},d),Lt.requestPromo&&(m.request_promo=Lt.requestPromo),h=Lt.submitUrl,h+=(h.indexOf("?")>=0?"&":"?")+ua.objToUrlParams(m),e.next=15,pa()({url:h,adapter:function(e){return ma()(o({},e,{callbackParamName:"method"}))}});case 15:if(v=e.sent,console.log(v),v.data){e.next=19;break}throw new Error("error");case 19:if(!(y=v.data).error){e.next=22;break}throw new Error(y.error);case 22:return Lt.onPostSubmit&&Lt.onPostSubmit(y,m),e.abrupt("return",y);case 24:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()},{key:"submitUserPin",value:function(){var e=c(a.a.mark(function e(t){var n,r;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Lt.submitUrl.replace(/\/Create\d?/i,"/UpdatePin"),n+=(n.indexOf("?")>=0?"&":"?")+ua.objToUrlParams(t),e.next=4,pa()({url:n,adapter:function(e){return ma()(o({},e,{callbackParamName:"method"}))}});case 4:if(r=e.sent,console.log(r),r.data){e.next=8;break}throw new Error("error");case 8:return e.abrupt("return",r.data);case 9:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()}]),e}()),Ia=n(90),Ra=n.n(Ia),Fa=new(function(){function e(){u(this,e)}return f(e,[{key:"fetchAccessToken",value:function(){var e=c(a.a.mark(function e(){var t,n,r,o,i;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t={grant_type:"client_credentials",audience:Lt.authAudience||"add-custom-claims",client_id:Lt.authUserName,client_secret:Lt.authPassword},n={headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:Lt.geocodeTimeout},r=Lt.tokenCacheSvcUrl||Lt.tokenSvcUrl||"",e.prev=3,e.next=6,pa.a.post(r,Ra.a.stringify(t),n);case 6:if((o=e.sent).data&&o.data.access_token){e.next=9;break}throw new Error("Access token not found in response");case 9:return e.abrupt("return",o.data.access_token);case 12:if(e.prev=12,e.t0=e.catch(3),!pa.a.isAxiosError(e.t0)){e.next=18;break}throw i=e.t0&&e.t0.response&&e.t0.response.data?e.t0.response.data:null,console.error("Failed to retrieve access token:",i),new Error("Failed to retrieve access token: ".concat(e.t0.message));case 18:throw e.t0;case 19:case"end":return e.stop()}},e,null,[[3,12]])}));return function(){return e.apply(this,arguments)}}()}]),e}()),Ua=new(function(){function e(){u(this,e)}return f(e,[{key:"getProfile",value:function(){var e=c(a.a.mark(function e(t){var n,r,i,s;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n="".concat(Lt.doctorProfileSvcUrl).concat(t),e.next=3,Fa.fetchAccessToken();case 3:return r=e.sent,i={"Content-Type":"application/json",Authorization:"Bearer ".concat(r)},e.next=7,pa()({method:"GET",url:n,headers:i,adapter:function(e){return ma()(o({},e,{callbackParamName:"method"}))}});case 7:if(s=e.sent,console.log(s),s&&s.data&&s.data.clin_id){e.next=11;break}throw new Error("invalid profile");case 11:return e.abrupt("return",s.data);case 12:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()},{key:"submitInpracticeUserForm",value:function(){var e=c(a.a.mark(function e(t,n,r,i){var s,c,u,l,f,p,d,m,h,v,y,g,b;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c=(s=t=t||{}).first_name,u=s.last_name,c||(c="NA"),u||(u="NA"),t.full_name&&(l=ua.TrySplitName(t.full_name),f=ye(l,2),p=f[0],d=f[1],c=p,u=d=d||"NA"),"gb"===(m=Lt.country||"gb")&&(m="en"),h=n.clin_id||"",v=o({},t,{doc_id:Lt.practiceAccount,simulation_id:i,sa_hash:r,implementation_type:"eu",first_name:c,last_name:u,clin_id:h,request_type:Lt.inpractice_request_type||"owndevice",country:m,language:Lt.language}),y=Lt.inpracticeSubmitUrl,y+=(y.indexOf("?")>=0?"&":"?")+ua.objToUrlParams(v),e.next=13,pa()({url:y,adapter:function(e){return ma()(o({},e,{callbackParamName:"method"}))}});case 13:if(g=e.sent,console.log(g),g.data){e.next=17;break}throw new Error("error");case 17:if(!(b=g.data).error){e.next=20;break}throw new Error(b.error);case 20:return console.log(b,"data"),Lt.onPostSubmit&&Lt.onPostSubmit(b,v),e.abrupt("return",b);case 23:case"end":return e.stop()}},e)}));return function(t,n,r,o){return e.apply(this,arguments)}}()},{key:"submitInpracticeUserPin",value:function(){var e=c(a.a.mark(function e(t){var n,r;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Lt.inpracticeUpdateOptinUrl,n+=(n.indexOf("?")>=0?"&":"?")+ua.objToUrlParams(t),e.next=4,pa()({url:n,adapter:function(e){return ma()(o({},e,{callbackParamName:"method"}))}});case 4:if(r=e.sent,console.log(r),r.data){e.next=8;break}throw new Error("error");case 8:return e.abrupt("return",r.data);case 9:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()}]),e}()),Da=function(){return{simulationId:ua.GenerateGuid(),sessionId:"undefined"!==typeof window?ua.GetVisitorId():""}},La=function(e,t,n){return{type:"COMPLETE_UPLOAD_IMAGE",payload:{imageFile:e,imagePreview:t,imageOrientation:n}}},Ma=function(e,t,n,r){return{type:"COMPLETE_SIMULATION",payload:{beforeImage:e,afterImage:t,combinedImage:n,combinedImageImg:r,error:arguments.length>4&&void 0!==arguments[4]&&arguments[4],errorType:arguments.length>5&&void 0!==arguments[5]?arguments[5]:null}}},Va=oo("COMPLETE_INPRACTICE_USERFORM_CANCEL"),Ba=oo("START_INPRACTICE_USERFORM_SUBMIT"),Wa=oo("COMPLETE_PINFORM_SUBMIT"),za=oo("COMPLETE_INPRACTICE_PINFORM_SUBMIT"),qa=(oo("CLEAR_ERRORS"),oo("RESET")),Ha=function(){var e=c(a.a.mark(function e(t,n){var r,i,s,c;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(va(t)){e.next=20;break}return console.log("submit form"),r={},e.prev=3,i=Jr("UserForm")(t),s=t.simulation.simulationId,(c=Array(4).fill().map(function(e,t){return i["pin".concat(t)]||""}).reduce(function(e,t){return e+t},""))&&4===c.length||(c=void 0),i=o({},i,{external_id:s,external_data:c}),console.log(i),e.next=12,Ta.submitUserForm(i);case 12:r=e.sent,console.log(r),e.next=19;break;case 16:e.prev=16,e.t0=e.catch(3),console.log(e.t0);case 19:n({type:"COMPLETE_USERFORM_SUBMIT",payload:{userHash:r.hash}});case 20:case"end":return e.stop()}},e,null,[[3,16]])}));return function(t,n){return e.apply(this,arguments)}}(),$a=function(e){return function(){var t=c(a.a.mark(function t(n,r){var o,i,s;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,la.processImage(e);case 3:o=t.sent,i=o.preview,s=o.orientation,n(La(e,i,s)),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),console.log(t.t0);case 12:Lt.showTestBar||n(Ga());case 13:case"end":return t.stop()}},t,null,[[0,9]])}));return function(e,n){return t.apply(this,arguments)}}()},Ga=function(){return function(){var e=c(a.a.mark(function e(t,n){var r,o,i,s,c,u,l,f;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n().simulation,o=r.imageFile,i=r.sessionId,s=r.simulationId,o){e.next=3;break}return e.abrupt("return");case 3:return c=n(),console.log("start simulation"),u=!1,e.prev=6,e.next=9,Ta.uploadSimulation(o,i,s);case 9:l=e.sent,console.log(l),u=!0,t(Ma(l.beforeImage,l.afterImage,l.combinedImage,l.combinedImageImg)),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(6),f="timeout"===e.t0.message?"timeout":"unsuitable"===e.t0.message?"unsuitable":"network",t(Ma(null,null,null,null,!0,f));case 19:if(Lt.showFormAfterResults||Lt.practiceAccount||!u){e.next=22;break}return e.next=22,Ha(c,t);case 22:case"end":return e.stop()}},e,null,[[6,15]])}));return function(t,n){return e.apply(this,arguments)}}()},Ka=function(){return function(){var e=c(a.a.mark(function e(t,n){var r;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=n(),e.next=3,Ha(r,t);case 3:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}()},Ya=function(){return function(){var e=c(a.a.mark(function e(t,n){var r,o,i,s,c,u;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("submit pin form"),e.prev=1,r=n(),o=r.simulation.simulationId,i=Jr("PinForm")(r)||{},s=Array(4).fill().map(function(e,t){return i["pin".concat(t)]||""}).reduce(function(e,t){return e+t},""),c=ga(r),!s||!c){e.next=19;break}if(u=null,!Lt.practiceAccount){e.next=15;break}return e.next=12,Ua.submitInpracticeUserPin({user_pin:s,request_hash:c});case 12:u=e.sent,e.next=18;break;case 15:return e.next=17,Ta.submitUserPin({external_data:s,external_id:o,request_hash:c});case 17:u=e.sent;case 18:console.log(u);case 19:e.next=24;break;case 21:e.prev=21,e.t0=e.catch(1),console.log(e.t0);case 24:Lt.practiceAccount?t(za()):t(Wa());case 25:case"end":return e.stop()}},e,null,[[1,21]])}));return function(t,n){return e.apply(this,arguments)}}()},Za=function(e){return function(){var t=c(a.a.mark(function t(n,r){var o,i;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("get practice profile"),o=null,i=null,t.prev=3,t.next=6,Ua.getProfile(e);case 6:o=t.sent,t.next=13;break;case 9:t.prev=9,t.t0=t.catch(3),console.log(t.t0),i=t.t0;case 13:n({type:"COMPLETE_DOCTOR_PROFILE_DATA",payload:{doctorProfileData:o,doctorProfileDataError:i}});case 14:case"end":return t.stop()}},t,null,[[3,9]])}));return function(e,n){return t.apply(this,arguments)}}()},Xa=function(e){return function(){var t=c(a.a.mark(function t(n,r){var o,i,s,c,u,l;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(o=r(),wa(o)||_a(o)){t.next=18;break}return console.log("submit inpractice form"),n(Ba()),i={},t.prev=5,s=o.simulation,c=s.simulationId,u=s.sessionId,l=s.doctorProfileData,console.log(e),t.next=10,Ua.submitInpracticeUserForm(e,l,u,c);case 10:i=t.sent,console.log(i),t.next=17;break;case 14:t.prev=14,t.t0=t.catch(5),console.log(t.t0);case 17:n({type:"COMPLETE_INPRACTICE_USERFORM_SUBMIT",payload:{userHash:i.hash}});case 18:case"end":return t.stop()}},t,null,[[5,14]])}));return function(e,n){return t.apply(this,arguments)}}()},Ja=o({},Da(),{imageFile:null,imagePreview:null,imageOrientation:null,beforeImage:null,afterImage:null,combinedImage:null,combinedImageImg:null,error:!1,errorType:null,userFormSubmitted:!1,userHash:null,pinFormSubmitted:!1,doctorProfileData:null,doctorProfileDataError:null,inpracticeUserFormSubmitting:!1,inpracticeUserFormSubmitted:!1,inpracticeUserFormCancelled:!1,inpracticePinFormSubmitted:!1}),Qa=function(e,t,n){void 0===n&&(n={}),U()(ao(e)||so(e),"Expected handlers to be a plain object.");var r=po(e,n),o=co(r).map(function(e){return function(e,t,n){void 0===t&&(t=no);var r=vo(e).split(uo);U()(!ho(n),"defaultState for reducer handling "+r.join(", ")+" should be defined"),U()(to(t)||ao(t),"Expected reducer to be a function or object with next and throw reducers");var o=to(t)?[t,t]:[t.next,t.throw].map(function(e){return mo(e)?no:e}),i=o[0],a=o[1];return function(e,t){void 0===e&&(e=n);var o=t.type;return o&&-1!==r.indexOf(vo(o))?(!0===t.error?a:i)(e,t):e}}(e,lo(e,r),t)}),i=io.apply(void 0,o.concat([t]));return function(e,n){return void 0===e&&(e=t),i(e,n)}}({SET_SESSION:function(e,t){return o({},e,t.payload)},COMPLETE_UPLOAD_IMAGE:function(e,t){return o({},e,t.payload)},COMPLETE_SIMULATION:function(e,t){return o({},e,t.payload)},CLEAR_ERRORS:function(e){return o({},e,{error:!1,errorType:null})},RESET:function(e){return o({},Ja,Da(),{userFormSubmitted:e.userFormSubmitted,userHash:e.userHash,doctorProfileData:e.doctorProfileData})},COMPLETE_USERFORM_SUBMIT:function(e,t){return o({},e,t.payload,{userFormSubmitted:!0})},COMPLETE_PINFORM_SUBMIT:function(e,t){return o({},e,t.payload,{pinFormSubmitted:!0})},COMPLETE_DOCTOR_PROFILE_DATA:function(e,t){return o({},e,t.payload)},START_INPRACTICE_USERFORM_SUBMIT:function(e,t){return o({},e,t.payload,{inpracticeUserFormSubmitting:!0})},COMPLETE_INPRACTICE_USERFORM_SUBMIT:function(e,t){return o({},e,t.payload,{inpracticeUserFormSubmitted:!0,inpracticeUserFormSubmitting:!1})},COMPLETE_INPRACTICE_USERFORM_CANCEL:function(e,t){return o({},e,t.payload,{inpracticeUserFormCancelled:!0})},COMPLETE_INPRACTICE_PINFORM_SUBMIT:function(e,t){return o({},e,t.payload,{inpracticePinFormSubmitted:!0})}},Ja),es=function(e){return function(t){return t&&t.length>e?"Must be ".concat(e," characters or less"):void 0}},ts=new function e(){var t;u(this,e),this.required=function(e){return e||"number"===typeof e?void 0:"Required"},this.maxLength50=es(50),this.maxLength100=es(100),this.maxLength150=es(150),this.maxLength200=es(200),this.maxLength250=es(250),this.minLength2=(t=2,function(e){return e&&e.length<t?"Must be ".concat(t," characters or more"):void 0}),this.number=function(e){return e&&isNaN(Number(e))?"Must be a number":void 0},this.minValue13=function(e){return function(t){return t&&t<e?"Must be at least ".concat(e):void 0}}(13),this.email=function(e){return e&&!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i.test(e)?"Invalid email address":void 0},this.alphaNumeric=function(e){return e&&/[^a-zA-Z0-9 ]/i.test(e)?"Only alphanumeric characters":void 0}},ns=function(e){function t(e){var n;return u(this,t),(n=h(this,v(t).call(this,e))).startFormOnce=!1,n.submitOnce=!1,n.scrollToForm=function(){n.formRef&&n.formRef.current&&ua.scrollIntoView(n.formRef.current)},n.fieldChanged=function(e,t,r,o){if(t&&!r){var i=n.questions[o]&&n.questions[o].track?n.questions[o].track:o;Na.ev(i)}},n.renderField=function(e){var t=e.input,n=e.label,r=e.type,o=e.meta,i=o.touched,a=o.error;o.warning;return w.a.createElement("div",{className:"inpractice-field-container"},"checkbox"===r?w.a.createElement("label",{className:"sv-checkmarkcontainer sv-font-smaller "+(i&&a?"sv-label-error":"")},w.a.createElement("input",Object.assign({},t,{type:r})),w.a.createElement("span",{dangerouslySetInnerHTML:{__html:n}})," ",w.a.createElement("span",{className:"sv-checkmark"})):"multitext"===r?w.a.createElement("textarea",Object.assign({style:{height:"50px"}},t,{placeholder:n,type:r,className:"sv-form-control "+(i&&a?"sv-error":"")})):w.a.createElement("input",Object.assign({},t,{placeholder:n,type:r,className:"sv-form-control "+(i&&a?"sv-error":"")})))},n.submitClicked=function(e){var t=n.props,r=t.handleSubmit,i=t.valid,a=t.formValues;if(!i)return r(function(){})(),void n.scrollToForm();var s=o({},a);n.getQuestonArr().forEach(function(e,t){s[e.id]&&(s["question"+(t+1)]=e.n)}),n.submitOnce||(n.submitOnce=!0,n.props.dispatch(Xa(s)))},n.cancelClicked=function(e){n.props.dispatch(Va())},n.replaceOrtho=function(e){return ua.replaceOrtho2(e,n.props.doctorProfileData)},n.fileClicked=function(e){var t=n.props,r=t.handleSubmit;t.valid||(r(function(){})(),n.scrollToForm())},n.imageChanged=function(e){var t=n.props.formValues;console.log(t),e.target&&e.target.files&&e.target.files[0]&&n.props.dispatch($a(e.target.files[0])),n.submitClicked()},n.getQuestonArr=function(){var e=n.props.doctorProfileData;return e&&e.form_actions_list?e.form_actions_list.split(",").map(function(e){return n.questions[e]?o({},n.questions[e],{id:e}):null}).filter(function(e){return!!e}):[]},n.formRef=w.a.createRef(),n.questions={affordable:{n:Lt.res("inpractice_form_q3"),track:"Is_it_affordable"},quickly_see_results:{n:Lt.res("inpractice_form_q4"),track:"How_quickly_results"},how_works:{n:Lt.res("inpractice_form_q5"),track:"How_does_it_work"},different_braces:{n:Lt.res("inpractice_form_q1"),track:"How_different"},invite_friend:{n:Lt.res("inpractice_form_q2"),track:"Invite_friend"}},n}return g(t,w.a.Component),f(t,[{key:"componentDidMount",value:function(){}},{key:"componentDidUpdate",value:function(e){}},{key:"render",value:function(){var e=this,t=this.props,n=t.formSubmitting,r=t.formSubmitted,o=t.formCancelled,i=t.valid;if(o||r)return null;var a=this.props.doctorProfileData||{},s=a.use_email,c=a.use_phone,u=a.user_name,l=a.use_postcode,f=!s&&!c&&!u,p=this.getQuestonArr();return w.a.createElement("div",{className:"inpractice-user-form"},w.a.createElement("form",{ref:this.formRef},!f&&w.a.createElement("div",{className:"inpractice-form-details-container"},!this.props.hideTopHeader&&w.a.createElement("div",{className:"inpractice-form-header1"},Lt.res("inpractice_form_heading1")),w.a.createElement("div",{className:"inpractice-form-header2"},this.replaceOrtho("inpractice_form_heading2")),!!u&&w.a.createElement("div",{className:"inpractice-form-inline row"},w.a.createElement("div",{className:"inpractice-form-item fn col-6"},w.a.createElement(kn,{onChange:this.fieldChanged,component:this.renderField,name:"first_name",type:"text",label:Lt.res("form_firstname"),validate:[ts.required,ts.maxLength50]})),w.a.createElement("div",{className:"inpractice-form-item ln col-6"},w.a.createElement(kn,{onChange:this.fieldChanged,component:this.renderField,name:"last_name",type:"text",label:Lt.res("form_lastname"),validate:[ts.required,ts.maxLength50]}))),!!s&&w.a.createElement("div",{className:"inpractice-form-inline row"},w.a.createElement("div",{className:"inpractice-form-item col-12"},w.a.createElement(kn,{onChange:this.fieldChanged,component:this.renderField,name:"email",type:"text",label:Lt.res("form_email"),validate:[ts.required,ts.maxLength50,ts.email]}))),!!c&&w.a.createElement("div",{className:"inpractice-form-inline row"},w.a.createElement("div",{className:"inpractice-form-item col-12"},w.a.createElement(kn,{onChange:this.fieldChanged,component:this.renderField,name:"phone",type:"text",label:Lt.res("inpractice_form_phone"),validate:[ts.required,ts.maxLength50]}))),!!l&&w.a.createElement("div",{className:"inpractice-form-inline row"},w.a.createElement("div",{className:"inpractice-form-item col-12"},w.a.createElement(kn,{onChange:this.fieldChanged,component:this.renderField,name:"postal_code",type:"text",label:Lt.res("inpractice_form_postcode"),validate:[ts.required,ts.maxLength50]})))),!!p&&!!p.length&&w.a.createElement("div",{className:"inpractice-form-questions-container"},w.a.createElement("div",{className:"inpractice-form-header1"},Lt.res("inpractice_form_subheading1")),w.a.createElement("div",{className:"row"},p.map(function(t,n){return w.a.createElement("div",{className:"col-4",key:n},w.a.createElement(kn,{onChange:e.fieldChanged,component:e.renderField,name:t.id,type:"checkbox",label:t.n}))}))),w.a.createElement("div",{className:"inpractice-form-buttons-container row"},Lt.inPracticeFormAtWelcome?w.a.createElement("div",{className:"col-12"},w.a.createElement("p",{dangerouslySetInnerHTML:{__html:Lt.res("form_verify18")}}),w.a.createElement("label",{onClick:this.fileClicked,className:"sv-upload-label fullWidth"},w.a.createElement("input",{id:"click-camera1",accept:"image/*",capture:"user",type:"file",name:"image",onChange:this.imageChanged,disabled:!i,className:"sv-hidden-file"}),Lt.res("form_take_selfie"))):w.a.createElement("div",{className:"col-12"},!!n&&w.a.createElement("img",{width:"18",height:"18",alt:"Loading...",src:Lt.assetBase+"img/loading_transparent.gif",className:"pull-left",id:"drimgloading"}),w.a.createElement("a",{href:"#0",className:"btn btn-lblue btn-tall",onClick:this.cancelClicked},Lt.res("inpractice_form_cancel")),w.a.createElement("a",{href:"#0",className:"btn btn-lblue btn-tall",onClick:this.submitClicked},this.replaceOrtho("inpractice_form_send")))),w.a.createElement("p",{className:"inpractice-form-small-text"},Lt.inpracticeCustomDisclaimer&&Lt.inpracticeCustomDisclaimer[Lt.practiceAccount]?Lt.inpracticeCustomDisclaimer[Lt.practiceAccount]:this.replaceOrtho("inpractice_form_disclaimer"))))}}]),t}();ns=Xr({form:"InpracticeUserForm",destroyOnUnmount:!1})(ns);var rs=ns=me(function(e){return{formValues:Jr("InpracticeUserForm")(e),formErrors:Qr("InpracticeUserForm")(e),formMeta:eo("InpracticeUserForm")(e),doctorProfileData:ba(e),formSubmitting:_a(e),formSubmitted:wa(e),formCancelled:Ea(e)}})(ns),os=function(e){function t(e){var n;return u(this,t),(n=h(this,v(t).call(this,e))).startFormOnce=!1,n.submitOnce=!1,n.getUserFields=function(){return Lt.practiceAccount?[{type:"checkbox",name:"offers_accept",validate:["required"],label:Lt.res("form_verify18")}]:Lt.userFields},n.validatePin=function(e,t){var n=Array(4).fill().map(function(e,n){return t["pin".concat(n)]||""}).reduce(function(e,t){return e+t},"");if(0!==n.length)return 4===n.length&&/^(0000|1111|2222|3333|4444|5555|6666|7777|8888|9999|1234|4321)$/i.test(n)?Lt.res("error_bad_pin"):4!==n.length?Lt.res("error_enter_pin"):void 0},n.fieldChanged=function(e,t,r,o){!n.startFormOnce&&t&&(Na.gtmTrack2("form","form","start-filling-form"),n.startFormOnce=!0),Lt.practiceAccount&&"offers_accept"===o&&Na.ev(t?"age_check_box":"age_check_box_error")},n.renderField=function(e){var t=e.input,n=e.label,r=e.type,o=e.meta,i=o.touched,a=o.error;o.warning;return w.a.createElement("div",{className:"sv-field-container"},"checkbox"===r?w.a.createElement("label",{className:"sv-checkmarkcontainer sv-font-smaller "+(i&&a?"sv-label-error":"")},w.a.createElement("input",Object.assign({},t,{type:r})),w.a.createElement("span",{dangerouslySetInnerHTML:{__html:n}})," ",w.a.createElement("span",{className:"sv-checkmark"})):"multitext"===r?w.a.createElement("textarea",Object.assign({style:{height:"50px"}},t,{placeholder:n,type:r,className:"sv-form-control "+(i&&a?"sv-error":"")})):w.a.createElement("input",Object.assign({},t,{placeholder:n,type:r,className:"sv-form-control "+(i&&a?"sv-error":"")})))},n.renderPinField=function(e){var t=e.id,r=e.input,o=e.label,i=(e.type,e.meta);i.touched,i.error,i.warning;return w.a.createElement("div",{className:"col-3"},w.a.createElement("input",Object.assign({ref:n.refArr[t],onClick:function(e){return e.target.select()}},r,{placeholder:o,className:"sv-form-control",type:"text"})))},n.renderPhonePrefixField=function(e){var t=e.input,n=e.prefixes,r=e.meta;r.touched,r.error,r.warning;return w.a.createElement("select",Object.assign({className:"sv-phone-prefix"},t),(n||[]).map(function(e){return w.a.createElement("option",{key:e,value:e},e)}))},n.pinFieldNormalize=function(e){if(!e)return e;var t=/^(\d)/i.exec(e);return t&&t.length>1?t[1]:""},n.imageChanged=function(e){var t=n.props.formValues;console.log(t),e.target&&e.target.files&&e.target.files[0]&&n.props.dispatch($a(e.target.files[0]))},n.scrollToForm=function(){console.log("scrolltoForm"),n.formRef&&n.formRef.current&&ua.scrollIntoView(n.formRef.current)},n.fileClicked=function(e){var t=n.props,r=t.handleSubmit;t.valid||(r(function(){})(),n.scrollToForm())},n.submitClicked=function(e){var t=n.props,r=t.handleSubmit;if(!t.valid)return r(function(){})(),void n.scrollToForm();n.submitOnce||(n.submitOnce=!0,n.props.dispatch(Ka()),Na.gtmTrack2("submit-email","submit-email","completed"))},n.formRef=w.a.createRef(),n.refArr=Array(4).fill().map(function(e){return w.a.createRef()}),n}return g(t,w.a.Component),f(t,[{key:"componentDidMount",value:function(){var e=this;(this.getUserFields()||[]).filter(function(e){return"phonewithprefix"===e.type&&!!e.name&&e.prefixes&&e.prefixes.length}).forEach(function(t){return e.props.change("phone_prefix",t.prefixes[0]||"")})}},{key:"componentDidUpdate",value:function(e){var t=this;this.props.expanded&&e.expanded!==this.props.expanded&&window.setTimeout(function(){t.formRef.current&&ua.scrollIntoView(t.formRef.current)},100);for(var n=e.formValues||{},r=this.props.formValues||{},o=0;o<4;o++){var i=r["pin".concat(o)],a=n["pin".concat(o)];if(i&&i!==a)return void(o<3&&this.refArr[o+1]&&this.refArr[o+1].current&&(this.refArr[o+1].current.focus(),this.refArr[o+1].current.select()))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.valid,r=t.formErrors,i=t.formMeta;return w.a.createElement("div",{className:"sv-user-form"},this.props.showCarousel&&w.a.createElement(Ut,{id:"carousel-examples"},Array(Lt.carouselImageCount).fill(0).map(function(e,t){return w.a.createElement(Ut.Item,{key:t},w.a.createElement("div",{className:"row sv-carousel-item"},w.a.createElement("div",{className:"col-6"},w.a.createElement("img",{src:"".concat(Lt.imgBase,"before").concat(t+1,".jpg"),alt:"Before".concat(t+1)})),w.a.createElement("div",{className:"col-6"},w.a.createElement("img",{src:"".concat(Lt.imgBase,"after").concat(t+1,".jpg"),alt:"After".concat(t+1)}))))})),w.a.createElement("form",{ref:this.formRef},!this.props.hideFields&&(this.getUserFields()||[]).map(function(t){return"pins"===t.type?w.a.createElement("div",{className:"sv-pin-form",key:t.name},w.a.createElement("p",null,t.label),!!r.pin0&&i&&!["pin0","pin1","pin2","pin3"].some(function(e){return!i[e]||!i[e].touched})&&w.a.createElement("p",{style:{color:"red"}},r.pin0),w.a.createElement("div",{className:"row"},Array(4).fill().map(function(t,n){return w.a.createElement(kn,{validate:0===n?[e.validatePin]:[],key:"pin".concat(n),component:e.renderPinField,normalize:e.pinFieldNormalize,id:n,name:"pin".concat(n)})}))):"paragraph"===t.type?w.a.createElement("p",{key:t.name,dangerouslySetInnerHTML:{__html:t.label}}):"phonewithprefix"===t.type?w.a.createElement("div",{key:t.name,className:"clearfix"},w.a.createElement(kn,Object.assign({onChange:e.fieldChanged,component:e.renderPhonePrefixField},o({},t,{name:"phone_prefix"}),{validate:[]})),w.a.createElement("div",{className:"sv-phone-short"},w.a.createElement(kn,Object.assign({onChange:e.fieldChanged,component:e.renderField},o({},t,{type:"text"}),{validate:(t.validate||[]).filter(function(e){return ts[e]}).map(function(e){return ts[e]})})))):w.a.createElement(kn,Object.assign({key:t.name,onChange:e.fieldChanged,component:e.renderField},t,{validate:(t.validate||[]).filter(function(e){return ts[e]}).map(function(e){return ts[e]})}))}),this.props.simpleSubmit?w.a.createElement(w.a.Fragment,null,w.a.createElement("p",null,w.a.createElement("a",{href:"#0",className:"btn btn-lblue btn-tall btn-wide",onClick:this.submitClicked},Lt.res("form_submit")||"Submit"))):w.a.createElement(w.a.Fragment,null,!Lt.practiceAccount&&w.a.createElement("p",{dangerouslySetInnerHTML:{__html:Lt.res("form_verify18")}}),w.a.createElement("label",{onClick:this.fileClicked,className:"sv-upload-label"},w.a.createElement("input",{id:"click-camera1",accept:"image/*",capture:"user",type:"file",name:"image",onChange:this.imageChanged,disabled:!n,className:"sv-hidden-file"}),Lt.res("form_take_selfie")))))}}]),t}();os=Xr({form:"UserForm",validate:function(e){return{}},destroyOnUnmount:!1})(os);var is,as=os=me(function(e){return{formValues:Jr("UserForm")(e),formErrors:Qr("UserForm")(e),formMeta:eo("UserForm")(e)}})(os),ss={1:"rotate(0deg)",3:"rotate(180deg)",6:"rotate(90deg)",8:"rotate(270deg)"},cs=function(e){function t(e){var n;return u(this,t),(n=h(this,v(t).call(this,e))).progressInterval=function(){n.setState(function(e){return n.getProgressAndPercent(e)})},n.getProgressAndPercent=function(e){var t=e.progress+1,n=e.percent+(t>=Lt.getProgressMessages().length?5:10);return n>95&&(n=95),{progress:t,percent:n}},n.getRotationCss=function(){return n.props.simulation.imageOrientation&&ss[n.props.simulation.imageOrientation]?{transform:ss[n.props.simulation.imageOrientation]}:{}},n.renderUserForm=function(){return w.a.createElement(as,{simpleSubmit:!0,showCarousel:!Lt.showCarouselOnFirstStep})},n.state={progress:0,percent:0},n}return g(t,w.a.Component),f(t,[{key:"componentDidMount",value:function(){this.tmr=setInterval(this.progressInterval,4e3)}},{key:"componentWillUnmount",value:function(){this.tmr&&clearInterval(this.tmr)}},{key:"render",value:function(){var e=Lt.getProgressMessages(),t=this.state.progress>=e.length?e[e.length-1]:e[this.state.progress];return w.a.createElement("div",{className:"sv-loading-page"},Lt.practiceAccount?w.a.createElement(w.a.Fragment,null,w.a.createElement("div",{className:"row inpractice-progress-section"},w.a.createElement("div",{className:"col-7"},w.a.createElement("div",{className:"inpractice-progress-header"},Lt.res("inpractice_capture_heading1"),w.a.createElement("br",null),Lt.res("inpractice_capture_heading2"))),w.a.createElement("div",{className:"col-5"},w.a.createElement("div",{className:"inpractice-percentage"},this.state.percent+"%"),w.a.createElement("div",{className:"inpractice-progress-text"},t))),Lt.inPracticeFormAtWelcome?w.a.createElement("div",{className:"sv-upload-image-container"},w.a.createElement("img",{className:"sv-upload-image",alt:"",src:this.props.simulation.imagePreview,style:o({},this.getRotationCss())}),w.a.createElement("div",{className:"sv-progress-text"},Lt.res("capture_very_quick")),w.a.createElement("div",{className:"sv-loading"},w.a.createElement("img",{src:"".concat(Lt.assetBase,"Content/dlcommon/images/loading_transparent.gif"),alt:""})),w.a.createElement("div",{className:"sv-progress-message"},t)):w.a.createElement("div",{className:"inpractice-form-container"},w.a.createElement(rs,null))):w.a.createElement(w.a.Fragment,null,w.a.createElement("h2",{className:"sv-loading-header"},Lt.res("capture_creating_simulation")),w.a.createElement("div",{className:"sv-upload-image-container"},w.a.createElement("img",{className:"sv-upload-image",alt:"",src:this.props.simulation.imagePreview,style:o({},this.getRotationCss())}),w.a.createElement("div",{className:"sv-progress-text"},Lt.res("capture_very_quick")),w.a.createElement("div",{className:"sv-loading"},w.a.createElement("img",{src:"".concat(Lt.assetBase,"Content/dlcommon/images/loading_transparent.gif"),alt:""})),w.a.createElement("div",{className:"sv-progress-message"},t)),w.a.createElement("div",{className:"sv-progress-container"},w.a.createElement("div",{className:"sv-progress-border"},w.a.createElement("div",{className:"sv-progress-fill",style:{width:this.state.percent+"%",height:"100%"}}),w.a.createElement("div",{className:"sv-percentage"},this.state.percent+"%"))),w.a.createElement("div",{className:"row sv-carousel-caption"},w.a.createElement("div",{className:"col-6"},Lt.res("results_current")),w.a.createElement("div",{className:"col-6"},Lt.res("results_smileview"))),Lt.showFormOnLoading&&!this.props.userFormSubmitted&&this.renderUserForm(),!!Lt.thankyouMessage&&w.a.createElement("div",{className:"sv-thankyou-msg"},Lt.thankyouMessage),!!Lt.carouselImageCount&&!Lt.showCarouselOnFirstStep&&w.a.createElement(Ut,{id:"carousel-examples"},Array(Lt.carouselImageCount).fill(0).map(function(e,t){return w.a.createElement(Ut.Item,{key:t},w.a.createElement("div",{className:"row sv-carousel-item"},w.a.createElement("div",{className:"col-6"},w.a.createElement("img",{src:"".concat(Lt.imgBase,"before").concat(t+1,".jpg"),alt:"Before".concat(t+1)})),w.a.createElement("div",{className:"col-6"},w.a.createElement("img",{src:"".concat(Lt.imgBase,"after").concat(t+1,".jpg"),alt:"After".concat(t+1)}))))}))))}}]),t}(),us=me(function(e){return{simulation:e.simulation}})(cs);function ls(e){if((!is&&0!==is||e)&&ut){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),is=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return is}function fs(e){void 0===e&&(e=nt());try{var t=e.activeElement;return t&&t.nodeName?t:null}catch(Qc){return e.body}}function ps(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}function ds(e){var t=function(e){var t=Object(b.useRef)(e);return t.current=e,t}(e);Object(b.useEffect)(function(){return function(){return t.current()}},[])}function ms(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var hs,vs=(hs="modal-open","".concat("data-rr-ui-").concat(hs)),ys=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.handleContainerOverflow,r=void 0===n||n,o=t.isRTL,i=void 0!==o&&o;u(this,e),this.handleContainerOverflow=r,this.isRTL=i,this.modals=[]}return f(e,[{key:"getScrollbarWidth",value:function(){return Math.abs(window.innerWidth-document.documentElement.clientWidth)}},{key:"getElement",value:function(){return document.body}},{key:"setModalAttributes",value:function(e){}},{key:"removeModalAttributes",value:function(e){}},{key:"setContainerStyle",value:function(e){var t={overflow:"hidden"},n=this.isRTL?"paddingLeft":"paddingRight",o=this.getElement();e.style=r({overflow:o.style.overflow},n,o.style[n]),e.scrollBarWidth&&(t[n]="".concat(parseInt(ct(o,n)||"0",10)+e.scrollBarWidth,"px")),o.setAttribute(vs,""),ct(o,t)}},{key:"reset",value:function(){var e=this;ms(this.modals).forEach(function(t){return e.remove(t)})}},{key:"removeContainerStyle",value:function(e){var t=this.getElement();t.removeAttribute(vs),Object.assign(t.style,e.style)}},{key:"add",value:function(e){var t=this.modals.indexOf(e);return-1!==t?t:(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),0!==t?t:(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state),t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);-1!==t&&(this.modals.splice(t,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}},{key:"isTopModal",value:function(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}}]),e}(),gs=function(e){var t;return"undefined"===typeof document?null:null==e?nt().body:("function"===typeof e&&(e=e()),e&&"current"in e&&(e=e.current),null!=(t=e)&&t.nodeType&&e||null)};var bs,ws=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","backdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function _s(e){var t=e||(bs||(bs=new ys),bs),n=Object(b.useRef)({dialog:null,backdrop:null});return Object.assign(n.current,{add:function(){return t.add(n.current)},remove:function(){return t.remove(n.current)},isTopModal:function(){return t.isTopModal(n.current)},setDialogRef:Object(b.useCallback)(function(e){n.current.dialog=e},[]),setBackdropRef:Object(b.useCallback)(function(e){n.current.backdrop=e},[])})}var Es=Object(b.forwardRef)(function(e,t){var n=e.show,r=void 0!==n&&n,o=e.role,i=void 0===o?"dialog":o,a=e.className,s=e.style,c=e.children,u=e.backdrop,l=void 0===u||u,f=e.keyboard,p=void 0===f||f,d=e.onBackdropClick,m=e.onEscapeKeyDown,h=e.transition,v=e.backdropTransition,y=e.autoFocus,g=void 0===y||y,w=e.enforceFocus,_=void 0===w||w,E=e.restoreFocus,x=void 0===E||E,S=e.restoreFocusOptions,O=e.renderDialog,k=e.renderBackdrop,j=void 0===k?function(e){return Object(Ce.jsx)("div",Object.assign({},e))}:k,C=e.manager,P=e.container,N=e.onShow,A=e.onHide,T=void 0===A?function(){}:A,I=e.onExit,R=e.onExited,F=e.onExiting,U=e.onEnter,D=e.onEntering,L=e.onEntered,M=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,ws),V=function(e,t){var n=ye(Object(b.useState)(function(){return gs(e)}),2),r=n[0],o=n[1];if(!r){var i=gs(e);i&&o(i)}return Object(b.useEffect)(function(){t&&r&&t(r)},[t,r]),Object(b.useEffect)(function(){var t=gs(e);t!==r&&o(t)},[e,r]),r}(P),B=_s(C),W=Object(je.a)(),z=function(e){var t=Object(b.useRef)(null);return Object(b.useEffect)(function(){t.current=e}),t.current}(r),q=ye(Object(b.useState)(!r),2),H=q[0],$=q[1],G=Object(b.useRef)(null);Object(b.useImperativeHandle)(t,function(){return B},[B]),ut&&!z&&r&&(G.current=fs()),h||r||H?r&&H&&$(!1):$(!0);var K=ke(function(){if(B.add(),ee.current=ht(document,"keydown",J),Q.current=ht(document,"focus",function(){return setTimeout(Z)},!0),N&&N(),g){var e=fs(document);B.dialog&&e&&!ps(B.dialog,e)&&(G.current=e,B.dialog.focus())}}),Y=ke(function(){var e;(B.remove(),null==ee.current||ee.current(),null==Q.current||Q.current(),x)&&(null==(e=G.current)||null==e.focus||e.focus(S),G.current=null)});Object(b.useEffect)(function(){r&&V&&K()},[r,V,K]),Object(b.useEffect)(function(){H&&Y()},[H,Y]),ds(function(){Y()});var Z=ke(function(){if(_&&W()&&B.isTopModal()){var e=fs();B.dialog&&e&&!ps(B.dialog,e)&&B.dialog.focus()}}),X=ke(function(e){e.target===e.currentTarget&&(null==d||d(e),!0===l&&T())}),J=ke(function(e){p&&27===e.keyCode&&B.isTopModal()&&(null==m||m(e),e.defaultPrevented||T())}),Q=Object(b.useRef)(),ee=Object(b.useRef)(),te=h;if(!V||!(r||te&&!H))return null;var ne=Object.assign({role:i,ref:B.setDialogRef,"aria-modal":"dialog"===i||void 0},M,{style:s,className:a,tabIndex:-1}),re=O?O(ne):Object(Ce.jsx)("div",Object.assign({},ne,{children:b.cloneElement(c,{role:"document"})}));te&&(re=Object(Ce.jsx)(te,{appear:!0,unmountOnExit:!0,in:!!r,onExit:I,onExiting:F,onExited:function(){$(!0),null==R||R.apply(void 0,arguments)},onEnter:U,onEntering:D,onEntered:L,children:re}));var oe=null;if(l){var ie=v;oe=j({ref:B.setBackdropRef,onClick:X}),ie&&(oe=Object(Ce.jsx)(ie,{appear:!0,in:!!r,children:oe}))}return Object(Ce.jsx)(Ce.Fragment,{children:ve.a.createPortal(Object(Ce.jsxs)(Ce.Fragment,{children:[oe,re]}),V)})});Es.displayName="Modal";var xs=Object.assign(Es,{Manager:ys});function Ss(e,t,n){return(Ss="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}var Os=Function.prototype.bind.call(Function.prototype.call,[].slice);function ks(e,t){return Os(e.querySelectorAll(t))}function js(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var Cs,Ps=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Ns=".sticky-top",As=".navbar-toggler",Ts=function(e){function t(){return u(this,t),h(this,v(t).apply(this,arguments))}return g(t,ys),f(t,[{key:"adjustAndStore",value:function(e,t,n){var o=t.style[e];t.dataset[e]=o,ct(t,r({},e,"".concat(parseFloat(ct(t,e))+n,"px")))}},{key:"restore",value:function(e,t){var n=t.dataset[e];void 0!==n&&(delete t.dataset[e],ct(t,r({},e,n)))}},{key:"setContainerStyle",value:function(e){var n=this;Ss(v(t.prototype),"setContainerStyle",this).call(this,e);var r,o,i=this.getElement();if(o="modal-open",(r=i).classList?r.classList.add(o):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(r,o)||("string"===typeof r.className?r.className=r.className+" "+o:r.setAttribute("class",(r.className&&r.className.baseVal||"")+" "+o)),e.scrollBarWidth){var a=this.isRTL?"paddingLeft":"paddingRight",s=this.isRTL?"marginLeft":"marginRight";ks(i,Ps).forEach(function(t){return n.adjustAndStore(a,t,e.scrollBarWidth)}),ks(i,Ns).forEach(function(t){return n.adjustAndStore(s,t,-e.scrollBarWidth)}),ks(i,As).forEach(function(t){return n.adjustAndStore(s,t,e.scrollBarWidth)})}}},{key:"removeContainerStyle",value:function(e){var n=this;Ss(v(t.prototype),"removeContainerStyle",this).call(this,e);var r,o,i=this.getElement();o="modal-open",(r=i).classList?r.classList.remove(o):"string"===typeof r.className?r.className=js(r.className,o):r.setAttribute("class",js(r.className&&r.className.baseVal||"",o));var a=this.isRTL?"paddingLeft":"paddingRight",s=this.isRTL?"marginLeft":"marginRight";ks(i,Ps).forEach(function(e){return n.restore(a,e)}),ks(i,Ns).forEach(function(e){return n.restore(s,e)}),ks(i,As).forEach(function(e){return n.restore(s,e)})}}]),t}();var Is,Rs=(r(Is={},kt,"show"),r(Is,jt,"show"),Is),Fs=b.forwardRef(function(e,t){var n=e.className,r=e.children,i=e.transitionClasses,a=void 0===i?{}:i,s=ge(e,["className","children","transitionClasses"]),c=Object(b.useCallback)(function(e,t){wt(e),null==s.onEnter||s.onEnter(e,t)},[s]);return Object(Ce.jsx)(It,o({ref:t,addEndListener:bt},s,{onEnter:c,childRef:r.ref,children:function(e,t){return b.cloneElement(r,o({},t,{className:Ue()("fade",n,r.props.className,Rs[e],a[e])}))}}))});Fs.defaultProps={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1},Fs.displayName="Fade";var Us=Fs,Ds=Xe("modal-body"),Ls=b.createContext({onHide:function(){}}),Ms=b.forwardRef(function(e,t){var n=e.bsPrefix,r=e.className,i=e.contentClassName,a=e.centered,s=e.size,c=e.fullscreen,u=e.children,l=e.scrollable,f=ge(e,["bsPrefix","className","contentClassName","centered","size","fullscreen","children","scrollable"]);n=Ke(n,"modal");var p="".concat(n,"-dialog"),d="string"===typeof c?"".concat(n,"-fullscreen-").concat(c):"".concat(n,"-fullscreen");return Object(Ce.jsx)("div",o({},f,{ref:t,className:Ue()(p,r,s&&"".concat(n,"-").concat(s),a&&"".concat(p,"-centered"),l&&"".concat(p,"-scrollable"),c&&d),children:Object(Ce.jsx)("div",{className:Ue()("".concat(n,"-content"),i),children:u})}))});Ms.displayName="ModalDialog";var Vs=Ms,Bs=Xe("modal-footer"),Ws={"aria-label":E.a.string,onClick:E.a.func,variant:E.a.oneOf(["white"])},zs=b.forwardRef(function(e,t){var n=e.className,r=e.variant,i=ge(e,["className","variant"]);return Object(Ce.jsx)("button",o({ref:t,type:"button",className:Ue()("btn-close",r&&"btn-close-".concat(r),n)},i))});zs.displayName="CloseButton",zs.propTypes=Ws,zs.defaultProps={"aria-label":"Close"};var qs=zs,Hs=b.forwardRef(function(e,t){var n=e.closeLabel,r=e.closeVariant,i=e.closeButton,a=e.onHide,s=e.children,c=ge(e,["closeLabel","closeVariant","closeButton","onHide","children"]),u=Object(b.useContext)(Ls),l=we(function(){null==u||u.onHide(),null==a||a()});return Object(Ce.jsxs)("div",o({ref:t},c,{children:[s,i&&Object(Ce.jsx)(qs,{"aria-label":n,variant:r,onClick:l})]}))});Hs.defaultProps={closeLabel:"Close",closeButton:!1};var $s=Hs,Gs=b.forwardRef(function(e,t){var n=e.bsPrefix,r=e.className,i=ge(e,["bsPrefix","className"]);return n=Ke(n,"modal-header"),Object(Ce.jsx)($s,o({ref:t},i,{className:Ue()(r,n)}))});Gs.displayName="ModalHeader",Gs.defaultProps={closeLabel:"Close",closeButton:!1};var Ks,Ys=Gs,Zs=Xe("modal-title",{Component:(Ks="h4",b.forwardRef(function(e,t){return Object(Ce.jsx)("div",o({},e,{ref:t,className:Ue()(e.className,Ks)}))}))}),Xs={show:!1,backdrop:!0,keyboard:!0,autoFocus:!0,enforceFocus:!0,restoreFocus:!0,animation:!0,dialogAs:Vs};function Js(e){return Object(Ce.jsx)(Us,o({},e,{timeout:null}))}function Qs(e){return Object(Ce.jsx)(Us,o({},e,{timeout:null}))}var ec=b.forwardRef(function(e,t){var n=e.bsPrefix,r=e.className,i=e.style,a=e.dialogClassName,s=e.contentClassName,c=e.children,u=e.dialogAs,l=e["aria-labelledby"],f=e.show,p=e.animation,d=e.backdrop,m=e.keyboard,h=e.onEscapeKeyDown,v=e.onShow,y=e.onHide,g=e.container,w=e.autoFocus,_=e.enforceFocus,E=e.restoreFocus,x=e.restoreFocusOptions,S=e.onEntered,O=e.onExit,k=e.onExiting,j=e.onEnter,C=e.onEntering,P=e.onExited,N=e.backdropClassName,A=e.manager,T=ge(e,["bsPrefix","className","style","dialogClassName","contentClassName","children","dialogAs","aria-labelledby","show","animation","backdrop","keyboard","onEscapeKeyDown","onShow","onHide","container","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","onEntered","onExit","onExiting","onEnter","onEntering","onExited","backdropClassName","manager"]),I=ye(Object(b.useState)({}),2),R=I[0],F=I[1],U=ye(Object(b.useState)(!1),2),D=U[0],L=U[1],M=Object(b.useRef)(!1),V=Object(b.useRef)(!1),B=Object(b.useRef)(null),W=ye(Object(b.useState)(null),2),z=W[0],q=W[1],H=Tt(t,q),$=we(y),G=Ye();n=Ke(n,"modal");var K=Object(b.useMemo)(function(){return{onHide:$}},[$]);function Y(){return A||(e={isRTL:G},Cs||(Cs=new Ts(e)),Cs);var e}function Z(e){if(ut){var t=Y().getScrollbarWidth()>0,n=e.scrollHeight>nt(e).documentElement.clientHeight;F({paddingRight:t&&!n?ls():void 0,paddingLeft:!t&&n?ls():void 0})}}var X=we(function(){z&&Z(z.dialog)});Ee(function(){mt(window,"resize",X),null==B.current||B.current()});var J=function(){M.current=!0},Q=function(e){M.current&&z&&e.target===z.dialog&&(V.current=!0),M.current=!1},ee=function(){L(!0),B.current=yt(z.dialog,function(){L(!1)})},te=function(e){"static"!==d?V.current||e.target!==e.currentTarget?V.current=!1:null==y||y():function(e){e.target===e.currentTarget&&ee()}(e)},ne=Object(b.useCallback)(function(e){return Object(Ce.jsx)("div",o({},e,{className:Ue()("".concat(n,"-backdrop"),N,!p&&"show")}))},[p,N,n]),re=o({},i,R);p||(re.display="block");return Object(Ce.jsx)(Ls.Provider,{value:K,children:Object(Ce.jsx)(xs,{show:f,ref:H,backdrop:d,container:g,keyboard:!0,autoFocus:w,enforceFocus:_,restoreFocus:E,restoreFocusOptions:x,onEscapeKeyDown:function(e){m||"static"!==d?m&&h&&h(e):(e.preventDefault(),ee())},onShow:v,onHide:y,onEnter:function(e,t){e&&(e.style.display="block",Z(e)),null==j||j(e,t)},onEntering:function(e,t){null==C||C(e,t),dt(window,"resize",X)},onEntered:S,onExit:function(e){null==B.current||B.current(),null==O||O(e)},onExiting:k,onExited:function(e){e&&(e.style.display=""),null==P||P(e),mt(window,"resize",X)},manager:Y(),transition:p?Js:void 0,backdropTransition:p?Qs:void 0,renderBackdrop:ne,renderDialog:function(e){return Object(Ce.jsx)("div",o({role:"dialog"},e,{style:re,className:Ue()(r,n,D&&"".concat(n,"-static")),onClick:d?te:void 0,onMouseUp:Q,"aria-labelledby":l,children:Object(Ce.jsx)(u,o({},T,{onMouseDown:J,className:a,contentClassName:s,children:c}))}))}})})});ec.displayName="Modal",ec.defaultProps=Xs;var tc=Object.assign(ec,{Body:Ds,Header:Ys,Title:Zs,Footer:Bs,Dialog:Vs,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),nc=function(e){function t(){var e,n;u(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=h(this,(e=v(t)).call.apply(e,[this].concat(o)))).state={privacyOpened:!1},n.togglePrivacy=function(){return n.setState(function(e){return{privacyOpened:!e.privacyOpened}})},n}return g(t,w.a.Component),f(t,[{key:"render",value:function(){var e=Lt.res("form_respect_privacy").split(/[{}]/i),t=(this.props.simulation.doctorProfileData||{}).thumbnail_url;return w.a.createElement(w.a.Fragment,null,w.a.createElement("div",{className:"sv-landing-page"},!!Lt.practiceAccount&&w.a.createElement("div",{className:"inpractice-landing-header"},w.a.createElement("h1",null,Lt.res("inpractice_landing_top_header")),!!t&&w.a.createElement("img",{alt:"",src:"".concat(Lt.doctorProfileImgRoot).concat(t),className:"inpractice-profile-thumbnail"}),w.a.createElement("div",{className:"inpractice-tips-container"},w.a.createElement("h2",null,Lt.res("inpractice_landing_tips_header")),w.a.createElement("div",{className:"inpractice-landing-tip"},Lt.res("inpractice_landing_tips_1")),w.a.createElement("div",{className:"inpractice-landing-tip"},Lt.res("inpractice_landing_tips_2")),w.a.createElement("div",{className:"inpractice-landing-tip"},Lt.res("inpractice_landing_tips_3")),w.a.createElement("div",{className:"inpractice-landing-tip"},Lt.res("inpractice_landing_tips_4")))),Lt.inPracticeFormAtWelcome&&w.a.createElement("div",{className:"inpractice-form-container"},w.a.createElement(rs,{hideTopHeader:!0})),!Lt.inPracticeFormAtWelcome&&w.a.createElement(as,{expanded:this.props.expanded,hideFields:!!Lt.showFormAfterResults,showCarousel:!!Lt.showCarouselOnFirstStep}),w.a.createElement("p",{className:"sv-font-smallest sv-small-width"},e[0],w.a.createElement("a",{id:"privacy",href:"#0",onClick:this.togglePrivacy},e[1]),e[2]),w.a.createElement("p",{className:"sv-font-smallest sv-bottom-disclaimer",dangerouslySetInnerHTML:{__html:Lt.res("footer_sv_computer_generated")}})),w.a.createElement(tc,{show:this.state.privacyOpened,onHide:this.togglePrivacy,className:"smile-visualization-wrap"},w.a.createElement(tc.Header,null,w.a.createElement("button",{type:"button",className:"close",onClick:this.togglePrivacy,id:"privacy_close"},w.a.createElement("span",{id:"privacy_close_inner","aria-hidden":"true"},"\xd7")),w.a.createElement("h2",null,Lt.res("form_privacy_policy"))),w.a.createElement(tc.Body,null,w.a.createElement("iframe",{title:"privacy",border:"0",src:Lt.privacyUrl,className:"sv-modal-iframe"}))))}}]),t}(),rc=me(function(e){return{simulation:e.simulation}})(nc),oc=n(28),ic=n.n(oc),ac=function(e){function t(){var e,n;u(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=h(this,(e=v(t)).call.apply(e,[this].concat(o)))).renderField=function(e){var t=e.input,n=e.label,r=e.type,o=e.meta,i=o.touched,a=o.error;o.warning;return w.a.createElement("div",{className:"sv-field-container"},"checkbox"===r?w.a.createElement("label",{className:"sv-checkmarkcontainer "+(i&&a?"sv-label-error":"")},w.a.createElement("input",Object.assign({},t,{type:r})),n," ",w.a.createElement("span",{className:"sv-checkmark"})):w.a.createElement("input",Object.assign({},t,{placeholder:n,type:r,className:"sv-form-control "+(i&&a?"sv-error":"")})))},n.submitClicked=function(){var e=Lt.getNegativeReasons(),t=n.props.formValues;if(t){t.other&&Na.ev("negative_feedback_reason",7,t.other);for(var r=0;r<6;r++)t["checkbox_id"+r]&&Na.ev("negative_feedback_reason",r+1,e[r]);n.props.onThumbsDownSubmit&&n.props.onThumbsDownSubmit()}},n.fieldChanged=function(e,t,n,r){var o=Lt.getNegativeReasons();if(r&&0===r.indexOf("checkbox_id")){var i=parseInt(r.replace("checkbox_id",""));Na.ev(t?"negative_feedback_reason_check":"negative_feedback_reason_uncheck",i+1,o[i])}},n}return g(t,w.a.Component),f(t,[{key:"render",value:function(){var e=this,t=Lt.getNegativeReasons();return w.a.createElement("div",{className:"sv-thumbsdown-form"},w.a.createElement("form",null,t.map(function(t,n){return w.a.createElement(kn,{key:n,component:e.renderField,name:"checkbox_id".concat(n),label:t,value:t,type:"checkbox",onChange:e.fieldChanged})}),w.a.createElement(kn,{component:this.renderField,name:"other",label:Lt.res("thumbsdown_answer7"),validate:[],onChange:this.fieldChanged}),w.a.createElement("br",null),w.a.createElement("p",null,w.a.createElement("a",{href:"#0",className:"btn btn-lblue btn-tall btn-max400 btn-wide",onClick:this.submitClicked},Lt.res("thumbsdown_submit")))))}}]),t}();ac=Xr({form:"ThumbsDownForm",destroyOnUnmount:!0})(ac);var sc=ac=me(function(e){return{formValues:Jr("ThumbsDownForm")(e)}})(ac),cc=function(e){function t(e){var n;return u(this,t),(n=h(this,v(t).call(this,e))).submitOnce=!1,n.renderField=function(e){var t=e.id,r=e.input,o=e.label,i=(e.type,e.meta);i.touched,i.error,i.warning;return w.a.createElement("div",{className:"col-3"},w.a.createElement("input",Object.assign({ref:n.refArr[t],onClick:function(e){return e.target.select()}},r,{placeholder:o,className:"sv-form-control",type:"text"})))},n.submitClicked=function(e){var t=n.props,r=t.handleSubmit;t.valid?n.submitOnce||(n.submitOnce=!0,n.props.dispatch(Ya())):r(function(){})()},n.fieldNormalize=function(e){if(!e)return e;var t=/^(\d)/i.exec(e);return t&&t.length>1?t[1]:""},n.refArr=Array(4).fill().map(function(e){return w.a.createRef()}),n}return g(t,w.a.Component),f(t,[{key:"componentDidUpdate",value:function(e){for(var t=e.formValues||{},n=this.props.formValues||{},r=0;r<4;r++){var o=n["pin".concat(r)],i=t["pin".concat(r)];if(o&&o!==i)return void(r<3&&this.refArr[r+1]&&this.refArr[r+1].current&&(this.refArr[r+1].current.focus(),this.refArr[r+1].current.select()))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.formErrors,r=t.pinFormSubmitted,o=t.userHash,i=n?n.pin0:null;return o?w.a.createElement("div",{className:"sv-pin-form"},r?w.a.createElement(w.a.Fragment,null,w.a.createElement("p",null,Lt.res("inpractice_results_thankyou"))):w.a.createElement(w.a.Fragment,null,w.a.createElement("p",null,Lt.res(Lt.practiceAccount?"inpractice_results_pins_message":"results_pins_message")),w.a.createElement("p",null,i),w.a.createElement("form",null,w.a.createElement("div",{className:"row"},Array(4).fill().map(function(t,n){return w.a.createElement(kn,{key:n,component:e.renderField,normalize:e.fieldNormalize,id:n,name:"pin".concat(n)})})),w.a.createElement("p",null,w.a.createElement("a",{href:"#0",className:"btn btn-lblue",onClick:this.submitClicked},Lt.res("thumbsdown_submit")))))):null}}]),t}();cc=Xr({form:"PinForm",validate:function(e){var t={},n=Array(4).fill().map(function(t,n){return e["pin".concat(n)]||""}).reduce(function(e,t){return e+t},"");return 4===n.length&&/^(0000|1111|2222|3333|4444|5555|6666|7777|8888|9999|1234|4321)$/i.test(n)?t.pin0=Lt.res("results_pins_error"):4!==n.length&&(t.pin1="required"),t},destroyOnUnmount:!1})(cc);var uc=cc=me(function(e){return{formValues:Jr("PinForm")(e),formErrors:Qr("PinForm")(e),pinFormSubmitted:ya(e),userHash:ga(e)}})(cc),lc=function(e){function t(){var e,n;u(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=h(this,(e=v(t)).call.apply(e,[this].concat(o)))).renderField=function(e){var t=e.input,n=e.label,r=e.type,o=e.meta,i=o.touched,a=o.error;o.warning;return w.a.createElement("div",{className:"sv-field-container"},w.a.createElement("input",Object.assign({},t,{placeholder:n,type:r,className:"sv-form-control "+(i&&a?"sv-error":"")})))},n.submitClicked=function(){var e=n.props,t=e.handleSubmit,r=e.valid,o=e.formValues;if(r){o=o||{};var i=Lt.doclocUrl+(Lt.doclocUrl.indexOf("?")>=0?"&":"?")+ua.objToUrlParams({loc:o.loc,simid:n.props.simulationId});window.location.href=i}else t(function(){})()},n}return g(t,w.a.Component),f(t,[{key:"render",value:function(){return Lt.doclocUrl?w.a.createElement("div",{className:"sv-docloc-form"},w.a.createElement("div",{className:"sv-docloc-title"},Lt.res("results_find_doctor")),w.a.createElement("div",null,w.a.createElement(kn,{component:this.renderField,name:"loc",label:Lt.res("results_find_doctor_search_text"),validate:[ts.required,ts.maxLength50]}),w.a.createElement("br",null),w.a.createElement("p",null,w.a.createElement("a",{href:"#0",className:"btn btn-lblue btn-tall btn-max400 btn-wide",onClick:this.submitClicked},Lt.res("results_find_doctor_search_button"))))):null}}]),t}();lc=Xr({form:"DocLocForm",destroyOnUnmount:!0})(lc);var fc=lc=me(function(e){return{formValues:Jr("DocLocForm")(e),simulationId:ha(e)}})(lc),pc=function(e){function t(){var e,n;u(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=h(this,(e=v(t)).call.apply(e,[this].concat(o)))).state={formExpanded:!1,disclaimerExpanded:!1,resultImageShow:!0,zoomOpened:!1,thumbsDownOpened:!1,zoomIndex:0,thumbsUpOnce:!1,thumbsDownOnce:!1,inpracticePinsOpened:!1},n.toggleDisclaimer=function(){return n.setState(function(e){return{disclaimerExpanded:!e.disclaimerExpanded}})},n.toggleResultImageShow=function(){return n.setState(function(e){return{resultImageShow:!e.resultImageShow}})},n.toggleZoomOpened=function(){return n.setState(function(e){return{zoomOpened:!e.zoomOpened,zoomIndex:e.zoomOpened?e.zoomIndex:e.resultImageShow?0:1}})},n.toggleThumbsDownOpened=function(){n.state.thumbsDownOnce||n.setState(function(e){return{thumbsDownOpened:!e.thumbsDownOpened}})},n.toggleInpracticePinsOpened=function(){return n.setState(function(e){return{inpracticePinsOpened:!e.inpracticePinsOpened}})},n.handleZoomSelect=function(e){return n.setState({zoomIndex:e})},n.thumbsUpClicked=function(){n.setState({thumbsUpOnce:!0})},n.onThumbsDownSubmit=function(){n.setState({thumbsDownOnce:!0,thumbsDownOpened:!1})},n.onFormExpand=function(){return n.setState(function(e){return n.setState({formExpanded:!e.formExpanded})})},n.renderUserForm=function(){return Lt.userFormExpandButton?w.a.createElement(w.a.Fragment,null,w.a.createElement("p",{style:{textAlign:"center"}},w.a.createElement("a",{className:"btn btn-lblue btn-tall btn-wide",href:"#0",onClick:n.onFormExpand},Lt.userFormExpandButton)),w.a.createElement(ic.a,{duration:400,height:n.state.formExpanded?"auto":0},w.a.createElement(as,{simpleSubmit:!0}))):w.a.createElement(as,{simpleSubmit:!0})},n}return g(t,w.a.Component),f(t,[{key:"componentDidMount",value:function(){var e=this;window.setTimeout(function(){return e.setState({disclaimerExpanded:!0})},1e3)}},{key:"componentDidUpdate",value:function(e,t){!this.state.zoomOpened&&t.zoomOpened&&Na.ev("close_full_preview"),this.state.zoomIndex!==t.zoomIndex&&Na.ev(1===this.state.zoomIndex?"full_preview_slide_before":"full_preview_slide_after"),e.inpracticePinFormSubmitted!==this.props.inpracticePinFormSubmitted&&this.props.inpracticePinFormSubmitted&&this.setState({inpracticePinsOpened:!1})}},{key:"render",value:function(){return w.a.createElement(w.a.Fragment,null,w.a.createElement("div",{className:"sv-results-page"},w.a.createElement("div",{className:"sv-results-img-container"},w.a.createElement("img",{src:this.props.beforeImage,style:{display:this.state.resultImageShow?"none":"inline"},alt:"current"}),w.a.createElement("img",{src:this.props.afterImage,style:{display:this.state.resultImageShow?"inline":"none"},alt:"smileview"}),w.a.createElement("a",{href:"#0",className:"sv-expand-icon",onClick:this.toggleZoomOpened},w.a.createElement("img",{src:"".concat(Lt.imgBase,"expand.svg"),alt:"expand",id:"expandicon"})),w.a.createElement("a",{href:"#0",id:"thumbsup",className:"sv-thumbsup "+(this.state.thumbsUpOnce?"sv-thumb-active":""),onClick:this.thumbsUpClicked},w.a.createElement("span",{className:"sv-thumb-thankyou"},Lt.res("results_thankyou"))),w.a.createElement("a",{href:"#0",id:"thumbsdown",className:"sv-thumbsdown "+(this.state.thumbsDownOnce?"sv-thumb-active":""),onClick:this.toggleThumbsDownOpened},w.a.createElement("span",{className:"sv-thumb-thankyou"},Lt.res("results_thankyou")))),w.a.createElement("div",{className:"sv-btn-group-slider sv-slide"},w.a.createElement("div",{className:"sv-label-current "+(this.state.resultImageShow?"":"sv-bold")},Lt.res("results_current")),w.a.createElement("div",{className:"sv-label-simulation "+(this.state.resultImageShow?"sv-bold":"")},Lt.res("results_smileview")),w.a.createElement("label",{className:"switch"},w.a.createElement("input",{type:"checkbox",className:"sms-slide-input",id:"sms-slide-input",checked:this.state.resultImageShow,onChange:this.toggleResultImageShow}),w.a.createElement("span",{className:"slider round"})))),Lt.showFormAfterResults&&!this.props.userFormSubmitted&&this.renderUserForm(),!!Lt.thankyouMessage&&w.a.createElement("div",{className:"sv-thankyou-msg"},Lt.thankyouMessage),!!Lt.practiceAccount&&!Lt.inPracticeFormAtWelcome&&w.a.createElement(w.a.Fragment,null,w.a.createElement("div",{className:"inpractice-thankyou-container"},!this.props.inpracticeUserFormSubmitted&&!this.props.inpracticeUserFormCancelled&&w.a.createElement(rs,{hideTopHeader:!0}),!!this.props.userHash&&w.a.createElement("div",{className:"inpractice-thankyou-section"},!Lt.hideEmailCopyBtn&&!this.props.inpracticePinFormSubmitted&&w.a.createElement("div",null,w.a.createElement("a",{href:"#0",className:"btn btn-lblue btn-tall",onClick:this.toggleInpracticePinsOpened},Lt.res("inpractice_email_copy"))),w.a.createElement("p",null,"\xa0"),w.a.createElement("div",{className:"inpractice-form-header1"},Lt.res("inpractice_results_thankyou")),w.a.createElement("div",{className:"inpractice-form-header1"},ua.replaceOrtho2("inpractice_results_thankyou2",this.props.doctorProfileData)),!!this.props.doctorProfileData&&!!this.props.doctorProfileData.url&&w.a.createElement("div",null,w.a.createElement("a",{className:"btn btn-lblue",target:"_blank",rel:"noopener noreferrer",href:this.props.doctorProfileData.url},Lt.res("inpractice_results_visit_practice"))))),w.a.createElement(tc,{show:this.state.inpracticePinsOpened,onHide:this.toggleInpracticePinsOpened,className:"smile-visualization-wrap inpractice-pin-form"},w.a.createElement(tc.Header,{closeButton:!0},w.a.createElement("h2",null,Lt.res("inpractice_results_pins_header"))),w.a.createElement(tc.Body,null,w.a.createElement(uc,null)))),!Lt.practiceAccount&&Lt.showPinForm&&w.a.createElement(uc,null),!!Lt.doclocUrl&&w.a.createElement(w.a.Fragment,null,Lt.showDocLocSearchForm?w.a.createElement(fc,null):w.a.createElement("p",{style:{textAlign:"center",marginTop:"30px"}},w.a.createElement("a",{className:"btn btn-lblue btn-tall btn-wide",href:Lt.doclocUrl},Lt.res("results_find_doctor")))),w.a.createElement("div",{className:"sv-font-smaller sv-results-disclaimer"},w.a.createElement(ic.a,{duration:800,height:this.state.disclaimerExpanded?"auto":0},w.a.createElement("div",{className:"sv-results-disclaimer-inner"},Lt.res("results_computer_generated"),w.a.createElement("br",null),w.a.createElement("br",null),w.a.createElement("a",{className:"btn btn-lblue",href:"#0",onClick:this.toggleDisclaimer},Lt.res("results_gotit"))))),w.a.createElement(tc,{show:this.state.zoomOpened,onHide:this.toggleZoomOpened,className:"smile-visualization-wrap"},w.a.createElement(tc.Header,{closeButton:!0},w.a.createElement("h2",null,0===this.state.zoomIndex?Lt.res("results_smileview"):Lt.res("results_current"))),w.a.createElement(tc.Body,{className:"sv-modal-nopadding"},w.a.createElement(Ut,{activeIndex:this.state.zoomIndex,onSelect:this.handleZoomSelect,interval:null},w.a.createElement(Ut.Item,null,w.a.createElement("img",{id:"resultPictureBig",src:this.props.afterImage,alt:"smileview"})),w.a.createElement(Ut.Item,null,w.a.createElement("img",{id:"uploadedPictureBig",src:this.props.beforeImage,alt:"current"}))))),w.a.createElement(tc,{show:this.state.thumbsDownOpened,onHide:this.toggleThumbsDownOpened,className:"smile-visualization-wrap"},w.a.createElement(tc.Header,{closeButton:!0},w.a.createElement("h2",null,Lt.res("thumbsdown_header"))),w.a.createElement(tc.Body,null,w.a.createElement(sc,{onThumbsDownSubmit:this.onThumbsDownSubmit}))))}}]),t}(),dc=me(function(e){return o({},e.simulation)})(pc),mc=function(e){function t(){var e,n;u(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=h(this,(e=v(t)).call.apply(e,[this].concat(o)))).startOver=function(){n.props.dispatch(qa())},n}return g(t,w.a.Component),f(t,[{key:"render",value:function(){return w.a.createElement("div",{className:"sv-error-page"},"unsuitable"===this.props.errorType?w.a.createElement(w.a.Fragment,null,w.a.createElement("h2",null,Lt.res("error_unsuitable1")),w.a.createElement("h2",null,Lt.res("error_unsuitable2")),w.a.createElement("h2",null,Lt.res("error_unsuitable3"))):w.a.createElement(w.a.Fragment,null,w.a.createElement("div",null,w.a.createElement("div",{className:"sv-error-img"},w.a.createElement("img",{width:"200",height:"200",src:"".concat(Lt.imgBase,"image_disconnect.png"),alt:"disconnect"})),w.a.createElement("h2",null,Lt.res("error_network")))),w.a.createElement("a",{href:"#0",className:"btn btn-lblue btn-tall btn-max400",id:"unsuitable"===this.props.errorType?"not_suitable":"network_error",onClick:this.startOver},Lt.res("error_try_again")))}}]),t}(),hc=me(function(e){return o({},e.simulation)})(mc);n(217);function vc(e){return"/"===e.charAt(0)}function yc(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}var gc=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],o=e&&vc(e),i=t&&vc(t),a=o||i;if(e&&vc(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var s=void 0;if(r.length){var c=r[r.length-1];s="."===c||".."===c||""===c}else s=!1;for(var u=0,l=r.length;l>=0;l--){var f=r[l];"."===f?yc(r,l):".."===f?(yc(r,l),u++):u&&(yc(r,l),u--)}if(!a)for(;u--;u)r.unshift("..");!a||""===r[0]||r[0]&&vc(r[0])||r.unshift("");var p=r.join("/");return s&&"/"!==p.substr(-1)&&(p+="/"),p},bc="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};var wc=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])});var r="undefined"===typeof t?"undefined":bc(t);if(r!==("undefined"===typeof n?"undefined":bc(n)))return!1;if("object"===r){var o=t.valueOf(),i=n.valueOf();if(o!==t||i!==n)return e(o,i);var a=Object.keys(t),s=Object.keys(n);return a.length===s.length&&a.every(function(r){return e(t[r],n[r])})}return!1},_c=!0,Ec="Invariant failed";var xc=function(e,t){if(!e)throw _c?new Error(Ec):new Error(Ec+": "+(t||""))};function Sc(e){return"/"===e.charAt(0)?e:"/"+e}function Oc(e){return"/"===e.charAt(0)?e.substr(1):e}function kc(e,t){return function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)}(e,t)?e.substr(t.length):e}function jc(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function Cc(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function Pc(e,t,n,r){var o;"string"===typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=A({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(Qc){throw Qc instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):Qc}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=gc(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function Nc(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"===typeof e?e(t,n):e;"string"===typeof i?"function"===typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter(function(e){return e!==r})}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach(function(e){return e.apply(void 0,n)})}}}var Ac=!("undefined"===typeof window||!window.document||!window.document.createElement);function Tc(e,t){t(window.confirm(e))}var Ic="hashchange",Rc={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+Oc(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:Oc,decodePath:Sc},slash:{encodePath:Sc,decodePath:Sc}};function Fc(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function Uc(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)}function Dc(e){void 0===e&&(e={}),Ac||xc(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,o=void 0===r?Tc:r,i=n.hashType,a=void 0===i?"slash":i,s=e.basename?jc(Sc(e.basename)):"",c=Rc[a],u=c.encodePath,l=c.decodePath;function f(){var e=l(Fc());return s&&(e=kc(e,s)),Pc(e)}var p=Nc();function d(e){A(O,e),O.length=t.length,p.notifyListeners(O.location,O.action)}var m=!1,h=null;function v(){var e,t,n=Fc(),r=u(n);if(n!==r)Uc(r);else{var i=f(),a=O.location;if(!m&&(t=i,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&wc(e.state,t.state)))return;if(h===Cc(i))return;h=null,function(e){if(m)m=!1,d();else{p.confirmTransitionTo(e,"POP",o,function(t){t?d({action:"POP",location:e}):function(e){var t=O.location,n=w.lastIndexOf(Cc(t));-1===n&&(n=0);var r=w.lastIndexOf(Cc(e));-1===r&&(r=0);var o=n-r;o&&(m=!0,_(o))}(e)})}}(i)}}var y=Fc(),g=u(y);y!==g&&Uc(g);var b=f(),w=[Cc(b)];function _(e){t.go(e)}var E=0;function x(e){1===(E+=e)&&1===e?window.addEventListener(Ic,v):0===E&&window.removeEventListener(Ic,v)}var S=!1;var O={length:t.length,action:"POP",location:b,createHref:function(e){return"#"+u(s+Cc(e))},push:function(e,t){var n=Pc(e,void 0,void 0,O.location);p.confirmTransitionTo(n,"PUSH",o,function(e){if(e){var t=Cc(n),r=u(s+t);if(Fc()!==r){h=t,function(e){window.location.hash=e}(r);var o=w.lastIndexOf(Cc(O.location)),i=w.slice(0,-1===o?0:o+1);i.push(t),w=i,d({action:"PUSH",location:n})}else d()}})},replace:function(e,t){var n=Pc(e,void 0,void 0,O.location);p.confirmTransitionTo(n,"REPLACE",o,function(e){if(e){var t=Cc(n),r=u(s+t);Fc()!==r&&(h=t,Uc(r));var o=w.indexOf(Cc(O.location));-1!==o&&(w[o]=t),d({action:"REPLACE",location:n})}})},go:_,goBack:function(){_(-1)},goForward:function(){_(1)},block:function(e){void 0===e&&(e=!1);var t=p.setPrompt(e);return S||(x(1),S=!0),function(){return S&&(S=!1,x(-1)),t()}},listen:function(e){var t=p.appendListener(e);return x(1),function(){x(-1),t()}}};return O}var Lc=function(e){function t(){var e,n;u(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=h(this,(e=v(t)).call.apply(e,[this].concat(o)))).history=null,n.historyUnsubscribe=null,n.saveWarningShowedOnce=!1,n.savedNavigatedLink=null,n.state={saveModalShowed:!1,showSaveImageTap:!1,cancelModalShowed:!1},n.checkLinkClick=function(e){if(n.savedNavigatedLink=null,e&&e.target&&e.target.tagName&&e.target.protocol){var t=e.target.getAttribute("href");0===e.target.protocol.indexOf("http")&&t&&0!==t.indexOf("#")&&(n.savedNavigatedLink=e.target.href,n.props.afterImage?Na.ev("click_on_otherlink_resultpage"):n.props.imagePreview&&Na.ev("click_on_otherlink_progresspage"),n.checkShowSaveWarning()&&e.preventDefault())}},n.checkShowSaveWarning=function(){if(n.props.afterImage){if(!Lt.practiceAccount&&!Lt.disableSave&&!n.saveWarningShowedOnce)return n.saveWarningShowedOnce=!0,n.toggleSaveModal(),!0}else if(n.props.imagePreview)return n.toggleCancelModalShowed(),!0;return!1},n.toggleCancelModalShowed=function(){return n.setState(function(e){return{cancelModalShowed:!e.cancelModalShowed}})},n.toggleSaveModal=function(){return n.setState(function(e){return{saveModalShowed:!e.saveModalShowed}})},n.toggleShowSaveImageTap=function(){return n.setState(function(e){return{showSaveImageTap:!e.showSaveImageTap}})},n.handleSaveWarningSave=function(){ua.IsIPhone()?n.toggleShowSaveImageTap():n.toggleSaveModal()},n.handleSaveWarningDontSave=function(){n.setState({saveModalShowed:!1}),n.savedNavigatedLink&&(window.location.href=n.savedNavigatedLink)},n.handleCancellationStopSimulation=function(){n.setState({cancelModalShowed:!1}),n.savedNavigatedLink?(Na.ev("exit_simulation"),window.location.href=n.savedNavigatedLink):window.location.reload()},n}return g(t,w.a.Component),f(t,[{key:"componentDidMount",value:function(){var e=this;document.addEventListener("click",this.checkLinkClick),this.history=Dc({hashType:"noslash"}),this.historyUnsubscribe=this.history.listen(function(t,n){"POP"===n&&(e.props.afterImage?Na.ev("click_on_back_button_result_page_save"):e.props.imagePreview&&Na.ev("back_button_progress_page"),e.checkShowSaveWarning())}),this.history.push("search")}},{key:"componentWillUnmount",value:function(){this.historyUnsubscribe&&this.historyUnsubscribe()}},{key:"componentDidUpdate",value:function(e){this.props.imagePreview&&this.props.imagePreview!==e.imagePreview&&this.history.push("progress"),this.props.afterImage&&this.props.afterImage!==e.afterImage&&this.history.push("result")}},{key:"render",value:function(){var e=ua.IsIPhone()?"#0":this.props.combinedImage||"";return w.a.createElement(w.a.Fragment,null,w.a.createElement(tc,{show:this.state.saveModalShowed,onHide:this.toggleSaveModal,className:"smile-visualization-wrap"},w.a.createElement(tc.Header,null,w.a.createElement("button",{type:"button",className:"close",onClick:this.toggleSaveModal,id:"close_save_modal"},w.a.createElement("span",{id:"close_save_modal_inner","aria-hidden":"true"},"\xd7")),w.a.createElement("h2",null,Lt.res("save_header1")),w.a.createElement("h3",null,Lt.res("save_header2"))),w.a.createElement(tc.Body,null,w.a.createElement("div",{style:{display:this.state.showSaveImageTap?"block":"none"}},w.a.createElement("img",{id:"combined_image",src:this.props.combinedImageImg,style:{width:"100%"},alt:"combined"}),w.a.createElement("p",null,w.a.createElement("br",null),Lt.res("save_body_ios"))),w.a.createElement("div",{style:{display:this.state.showSaveImageTap?"none":"block"}},w.a.createElement("p",null,Lt.res("save_body")),w.a.createElement("p",null,"\xa0"),w.a.createElement("div",{className:"row",style:{textAlign:"center"}},w.a.createElement("div",{className:"col-6"},w.a.createElement("a",{href:"#0",id:"dont_save",className:"btn btn-lblue btn-tall btn-max400 btn-wide",onClick:this.handleSaveWarningDontSave},Lt.res("save_dontsave"))),w.a.createElement("div",{className:"col-6"},w.a.createElement("a",{href:e,id:"save_image",className:"btn btn-lblue btn-tall btn-max400 btn-wide",onClick:this.handleSaveWarningSave},Lt.res("save_save"))))))),w.a.createElement(tc,{show:this.state.cancelModalShowed,onHide:this.toggleCancelModalShowed,className:"smile-visualization-wrap"},w.a.createElement(tc.Header,{closeButton:!0},w.a.createElement("h2",null,Lt.res("continue_header"))),w.a.createElement(tc.Body,null,w.a.createElement("p",null,w.a.createElement("br",null),Lt.res("continue_body")),w.a.createElement("br",null),w.a.createElement("div",{className:"row"},w.a.createElement("div",{className:"col-6"},w.a.createElement("a",{href:"#0",className:"btn btn-lblue btn-tall btn-max400 btn-wide",onClick:this.handleCancellationStopSimulation},Lt.res("continue_stop"))),w.a.createElement("div",{className:"col-6"},w.a.createElement("a",{href:"#0",className:"btn btn-lblue btn-tall btn-max400 btn-wide",onClick:this.toggleCancelModalShowed},Lt.res("continue_continue")))))))}}]),t}(),Mc=me(function(e){return o({},e.simulation)})(Lc),Vc=n(25),Bc=n.n(Vc);var Wc=function(e){var t=function(e){return function(t,n){return void 0!==e.getIn(t,n)}},n=e.deepEqual,r=e.empty,o=e.getIn,i=e.deleteIn,a=e.setIn;return function(s){return void 0===s&&(s=t),function t(c,u){if("]"===u[u.length-1]){var l=nn()(u);return l.pop(),o(c,l.join("."))?a(c,u):c}var f=c;s(e)(c,u)&&(f=i(c,u));var p=u.lastIndexOf(".");if(p>0){var d=u.substring(0,p);if("]"!==d[d.length-1]){var m=o(f,d);if(n(m,r))return t(f,d)}}return f}}},zc=function(e){var t=e.getIn;return function(e,n){var r=null;/^values/.test(n)&&(r=n.replace("values","initial"));var o=!r||void 0===t(e,r);return void 0!==t(e,n)&&o}},qc=function(e){return e&&e.type&&e.type.length>"@@redux-form/".length&&"@@redux-form/"===e.type.substring(0,"@@redux-form/".length)};var Hc=function(e){var t,n=e.deepEqual,r=e.empty,o=e.forEach,i=e.getIn,a=e.setIn,s=e.deleteIn,c=e.fromJS,u=e.keys,l=e.size,f=e.some,p=e.splice,d=Wc(e)(zc),m=Wc(pn)(zc),h=function(e,t,n,r,o,s,c){var u=i(e,t+"."+n);return u||c?a(e,t+"."+n,p(u,r,o,s)):e},v=function(e,t,n,r,o,s,c){var u=i(e,t),l=pn.getIn(u,n);return l||c?a(e,t,pn.setIn(u,n,pn.splice(l,r,o,s))):e},y=["values","fields","submitErrors","asyncErrors"],g=function(e,t,n,o,i){var a=e,s=null!=i?r:void 0;return a=h(a,"values",t,n,o,i,!0),a=h(a,"fields",t,n,o,s),a=v(a,"syncErrors",t,n,o,void 0),a=v(a,"syncWarnings",t,n,o,void 0),a=h(a,"submitErrors",t,n,o,void 0),a=h(a,"asyncErrors",t,n,o,void 0)},b=((t={})[In]=function(e,t){var n=t.meta,r=n.field,o=n.index,i=t.payload;return g(e,r,o,0,i)},t[Rn]=function(e,t){var n=t.meta,r=n.field,o=n.from,s=n.to,c=i(e,"values."+r),u=c?l(c):0,f=e;return u&&y.forEach(function(e){var t=e+"."+r;if(i(f,t)){var n=i(f,t+"["+o+"]");f=a(f,t,p(i(f,t),o,1)),f=a(f,t,p(i(f,t),s,0,n))}}),f},t[Fn]=function(e,t){var n=t.meta.field,r=i(e,"values."+n),o=r?l(r):0;return o?g(e,n,o-1,1):e},t[Un]=function(e,t){var n=t.meta.field,r=t.payload,o=i(e,"values."+n),a=o?l(o):0;return g(e,n,a,0,r)},t[Dn]=function(e,t){var n=t.meta,r=n.field,o=n.index;return g(e,r,o,1)},t[Ln]=function(e,t){var n=t.meta.field,r=i(e,"values."+n),o=r?l(r):0;return o?g(e,n,0,o):e},t[Mn]=function(e,t){var n=t.meta.field;return g(e,n,0,1)},t[Vn]=function(e,t){var n=t.meta,r=n.field,o=n.index,i=n.removeNum,a=t.payload;return g(e,r,o,i,a)},t[Wn]=function(e,t){var n=t.meta,r=n.field,o=n.indexA,s=n.indexB,c=e;return y.forEach(function(e){var t=i(c,e+"."+r+"["+o+"]"),n=i(c,e+"."+r+"["+s+"]");void 0===t&&void 0===n||(c=a(c,e+"."+r+"["+o+"]",n),c=a(c,e+"."+r+"["+s+"]",t))}),c},t[Bn]=function(e,t){var n=t.meta.field,r=t.payload;return g(e,n,0,0,r)},t[zn]=function(e,t){var n=t.meta.field,r=t.payload,o=e;return o=d(o,"asyncErrors."+n),o=d(o,"submitErrors."+n),o=a(o,"fields."+n+".autofilled",!0),o=a(o,"values."+n,r)},t[qn]=function(e,t){var n=t.meta,r=n.field,o=n.touch,c=t.payload,u=e;return void 0===i(u,"initial."+r)&&""===c?u=d(u,"values."+r):void 0!==c&&(u=a(u,"values."+r,c)),r===i(u,"active")&&(u=s(u,"active")),u=s(u,"fields."+r+".active"),o&&(u=a(u,"fields."+r+".touched",!0),u=a(u,"anyTouched",!0)),u},t[Hn]=function(e,t){var n=t.meta,r=n.field,o=n.touch,s=n.persistentSubmitErrors,c=t.payload,u=e;if(void 0===i(u,"initial."+r)&&""===c)u=d(u,"values."+r);else if(Bc()(c)){var l=i(e,"values."+r);u=a(u,"values."+r,c(l,e.values))}else void 0!==c&&(u=a(u,"values."+r,c));return u=d(u,"asyncErrors."+r),s||(u=d(u,"submitErrors."+r)),u=d(u,"fields."+r+".autofilled"),o&&(u=a(u,"fields."+r+".touched",!0),u=a(u,"anyTouched",!0)),u},t[Gn]=function(e){return s(e,"triggerSubmit")},t[Kn]=function(e){var t=e;return t=d(t,"submitErrors"),t=s(t,"error")},t[Yn]=function(e,t){var n=t.meta.field;return s(e,"asyncErrors."+n)},t[$n]=function(e,t){var n=t.meta,r=n.keepTouched,o=n.persistentSubmitErrors,c=n.fields,l=e;c.forEach(function(e){l=d(l,"values."+e),l=d(l,"asyncErrors."+e),o||(l=d(l,"submitErrors."+e)),l=d(l,"fields."+e+".autofilled"),r||(l=s(l,"fields."+e+".touched"))});var p=f(u(i(l,"registeredFields")),function(e){return i(l,"fields."+e+".touched")});return l=p?a(l,"anyTouched",!0):s(l,"anyTouched")},t[Xn]=function(e,t){var n=t.meta.field,r=e,o=i(e,"active");return r=s(r,"fields."+o+".active"),r=a(r,"fields."+n+".visited",!0),r=a(r,"fields."+n+".active",!0),r=a(r,"active",n)},t[Jn]=function(e,t){var s=t.payload,l=t.meta,f=l.keepDirty,p=l.keepSubmitSucceeded,d=l.updateUnregisteredFields,m=l.keepValues,h=c(s),v=r,y=i(e,"warning");y&&(v=a(v,"warning",y));var g=i(e,"syncWarnings");g&&(v=a(v,"syncWarnings",g));var b=i(e,"error");b&&(v=a(v,"error",b));var w=i(e,"syncErrors");w&&(v=a(v,"syncErrors",w));var _=i(e,"registeredFields");_&&(v=a(v,"registeredFields",_));var E=i(e,"values"),x=i(e,"initial"),S=h,O=E;if(f&&_){if(!n(S,x)){var k=function(e){var t=i(x,e),r=i(E,e);if(n(r,t)){var o=i(S,e);i(O,e)!==o&&(O=a(O,e,o))}};d||o(u(_),function(e){return k(e)}),o(u(S),function(e){if("undefined"===typeof i(x,e)){var t=i(S,e);O=a(O,e,t)}d&&k(e)})}}else O=S;return m&&(o(u(E),function(e){var t=i(E,e);O=a(O,e,t)}),o(u(x),function(e){var t=i(x,e);S=a(S,e,t)})),p&&i(e,"submitSucceeded")&&(v=a(v,"submitSucceeded",!0)),v=a(v,"values",O),v=a(v,"initial",S)},t[Qn]=function(e,t){var n=t.payload,r=n.name,o=n.type,s="registeredFields['"+r+"']",u=i(e,s);if(u){var l=i(u,"count")+1;u=a(u,"count",l)}else u=c({name:r,type:o,count:1});return a(e,s,u)},t[er]=function(e){var t=r,n=i(e,"registeredFields");n&&(t=a(t,"registeredFields",n));var o=i(e,"initial");return o&&(t=a(t,"values",o),t=a(t,"initial",o)),t},t[tr]=function(e,t){var n=t.meta.sections,r=e;n.forEach(function(t){r=d(r,"asyncErrors."+t),r=d(r,"submitErrors."+t),r=d(r,"fields."+t);var n=i(e,"initial."+t);r=n?a(r,"values."+t,n):d(r,"values."+t)});var o=f(u(i(r,"registeredFields")),function(e){return i(r,"fields."+e+".touched")});return r=o?a(r,"anyTouched",!0):s(r,"anyTouched")},t[cr]=function(e){return a(e,"triggerSubmit",!0)},t[or]=function(e,t){var n=t.meta.field;return a(e,"asyncValidating",n||!0)},t[ir]=function(e){return a(e,"submitting",!0)},t[ar]=function(e,t){var n=t.payload,r=e;if(r=s(r,"asyncValidating"),n&&Object.keys(n).length){var o=n._error,i=$t()(n,["_error"]);o&&(r=a(r,"error",o)),Object.keys(i).length&&(r=a(r,"asyncErrors",c(i)))}else r=s(r,"error"),r=s(r,"asyncErrors");return r},t[sr]=function(e,t){var n=t.payload,r=e;if(r=s(r,"submitting"),r=s(r,"submitFailed"),r=s(r,"submitSucceeded"),n&&Object.keys(n).length){var o=n._error,i=$t()(n,["_error"]);r=o?a(r,"error",o):s(r,"error"),r=Object.keys(i).length?a(r,"submitErrors",c(i)):s(r,"submitErrors"),r=a(r,"submitFailed",!0)}else r=s(r,"error"),r=s(r,"submitErrors");return r},t[nr]=function(e,t){var n=t.meta.fields,r=e;return r=a(r,"submitFailed",!0),r=s(r,"submitSucceeded"),r=s(r,"submitting"),n.forEach(function(e){return r=a(r,"fields."+e+".touched",!0)}),n.length&&(r=a(r,"anyTouched",!0)),r},t[rr]=function(e){var t=e;return t=s(t,"submitFailed"),t=a(t,"submitSucceeded",!0)},t[ur]=function(e,t){var n=t.meta.fields,r=e;return n.forEach(function(e){return r=a(r,"fields."+e+".touched",!0)}),r=a(r,"anyTouched",!0)},t[lr]=function(e,t){var o=t.payload,c=o.name,u=o.destroyOnUnmount,l=e,f="registeredFields['"+c+"']",p=i(l,f);if(!p)return l;var h=i(p,"count")-1;if(h<=0&&u){l=s(l,f),n(i(l,"registeredFields"),r)&&(l=s(l,"registeredFields"));var v=i(l,"syncErrors");v&&(v=m(v,c),l=pn.deepEqual(v,pn.empty)?s(l,"syncErrors"):a(l,"syncErrors",v));var y=i(l,"syncWarnings");y&&(y=m(y,c),l=pn.deepEqual(y,pn.empty)?s(l,"syncWarnings"):a(l,"syncWarnings",y)),l=d(l,"submitErrors."+c),l=d(l,"asyncErrors."+c)}else p=a(p,"count",h),l=a(l,f,p);return l},t[fr]=function(e,t){var n=t.meta.fields,r=e;n.forEach(function(e){return r=s(r,"fields."+e+".touched")});var o=f(u(i(r,"registeredFields")),function(e){return i(r,"fields."+e+".touched")});return r=o?a(r,"anyTouched",!0):s(r,"anyTouched")},t[pr]=function(e,t){var n=t.payload,r=n.syncErrors,o=n.error,i=e;return o?(i=a(i,"error",o),i=a(i,"syncError",!0)):(i=s(i,"error"),i=s(i,"syncError")),i=Object.keys(r).length?a(i,"syncErrors",r):s(i,"syncErrors")},t[dr]=function(e,t){var n=t.payload,r=n.syncWarnings,o=n.warning,i=e;return i=o?a(i,"warning",o):s(i,"warning"),i=Object.keys(r).length?a(i,"syncWarnings",r):s(i,"syncWarnings")},t);return function e(t){return t.plugin=function(t,n){var o=this;return void 0===n&&(n={}),e(function(e,s){void 0===e&&(e=r),void 0===s&&(s={type:"NONE"});var c=function(n,r){var o=i(n,r),c=t[r](o,s,i(e,r));return c!==o?a(n,r,c):n},u=o(e,s),l=s&&s.meta&&s.meta.form;return l&&!n.receiveAllFormActions?t[l]?c(u,l):u:Object.keys(t).reduce(c,u)})},t}(function(e){return function(t,n){void 0===t&&(t=r),void 0===n&&(n={type:"NONE"});var o=n&&n.meta&&n.meta.form;if(!o||!qc(n))return t;if(n.type===Zn&&n.meta&&n.meta.form)return n.meta.form.reduce(function(e,t){return d(e,t)},t);var s=i(t,o),c=e(s,n);return c===s?t:a(t,o,c)}}(function(e,t){void 0===e&&(e=r);var n=b[t.type];return n?n(e,t):e}))}(pn);function $c(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"===typeof o?o(n,r,e):t(o)}}}}var Gc=$c();Gc.withExtraArgument=$c;var Kc=Gc,Yc=function e(t,n,r){var o;if("function"===typeof n&&"function"===typeof r||"function"===typeof r&&"function"===typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function");if("function"===typeof n&&"undefined"===typeof r&&(r=n,n=void 0),"undefined"!==typeof r){if("function"!==typeof r)throw new Error("Expected the enhancer to be a function.");return r(e)(t,n)}if("function"!==typeof t)throw new Error("Expected the reducer to be a function.");var i=t,a=n,s=[],c=s,u=!1;function l(){c===s&&(c=s.slice())}function f(){if(u)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function p(e){if("function"!==typeof e)throw new Error("Expected the listener to be a function.");if(u)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return l(),c.push(e),function(){if(t){if(u)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,l();var n=c.indexOf(e);c.splice(n,1)}}}function d(e){if(!Z(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(u)throw new Error("Reducers may not dispatch actions.");try{u=!0,a=i(a,e)}finally{u=!1}for(var t=s=c,n=0;n<t.length;n++)(0,t[n])();return e}return d({type:Y.INIT}),(o={dispatch:d,subscribe:p,getState:f,replaceReducer:function(e){if("function"!==typeof e)throw new Error("Expected the nextReducer to be a function.");i=e,d({type:Y.REPLACE})}})[G.a]=function(){var e,t=p;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(f())}return n(),{unsubscribe:t(n)}}})[G.a]=function(){return this},e},o}(function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"===typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach(function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:Y.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if("undefined"===typeof n(void 0,{type:Y.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+Y.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}(n)}catch(Qc){i=Qc}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},s=0;s<a.length;s++){var c=a[s],u=n[c],l=e[c],f=u(l,t);if("undefined"===typeof f){var p=X(c,t);throw new Error(p)}o[c]=f,r=r||f!==l}return r?o:e}}({simulation:Qa,form:Hc}),function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map(function(e){return e(o)});return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){ee(e,t,n[t])})}return e}({},n,{dispatch:r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}.apply(void 0,i)(n.dispatch)})}}}(Kc));"undefined"!==typeof window&&(window._svStore=Yc);var Zc=Yc,Xc=function(e){function t(e){var n;return u(this,t),(n=h(this,v(t).call(this,e))).handleDummyClick=function(e){for(var t=e.srcElement,n=0;n<20&&t;n++){if("A"===t.tagName){t.attributes.href&&"#0"===t.attributes.href.value&&e.preventDefault();break}t=t.parentNode}},n.expandToggle=function(){n.setState(function(e){return{svExpanded:!e.svExpanded}}),ua.customGATrack("1")},n.toggleResultImageShow=function(){return n.setState(function(e){return{resultImageShow:!e.resultImageShow}})},e.config&&Lt.extend(e.config),e.langData&&Lt.extendLangData(e.langData),n.state={svExpanded:Lt.hideExpander,resultImageShow:!0},n}return g(t,w.a.Component),f(t,[{key:"componentDidMount",value:function(){var e=c(a.a.mark(function e(){return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:Na.ev("landing_page");try{document.addEventListener("click",this.handleDummyClick)}catch(Qc){console.log(Qc)}try{document.addEventListener("click",Pa)}catch(Qc){console.log(Qc)}Lt.practiceAccount&&this.props.dispatch(Za(Lt.practiceAccount));case 4:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"componentWillUnmount",value:function(){try{document.removeEventListener("click",this.handleDummyClick)}catch(Qc){console.log(Qc)}try{document.removeEventListener("click",Pa)}catch(Qc){console.log(Qc)}}},{key:"componentDidUpdate",value:function(e){if(this.props.afterImage&&this.props.afterImage!==e.afterImage)try{window.__dlExternalInterface&&window.__dlExternalInterface.showInitialHidden()}catch(Qc){console.log(Qc)}this.props.imagePreview!==e.imagePreview&&(Lt.hideHeaderOnSV&&ua.showAll(".hideonsv",!this.props.imagePreview),Lt.hideFooterOnSV&&ua.showAll(".footer-container",!this.props.imagePreview)),this.props.afterImage&&this.props.afterImage!==e.afterImage&&ua.showAll("*[data-display=none]",!0),this.props.doctorProfileDataError&&this.props.doctorProfileDataError!==e.doctorProfileDataError&&Lt.defaultSVRedirect&&(window.location.href=Lt.defaultSVRedirect),e.inpracticeUserFormSubmitted!==this.props.inpracticeUserFormSubmitted&&this.props.inpracticeUserFormSubmitted&&Na.ev("form_submit",null,null,this.props.userHash||this.props.sessionId)}},{key:"render",value:function(){if(Lt.practiceAccount&&!this.props.doctorProfileData)return null;var e=this.props.error?w.a.createElement(hc,null):this.props.afterImage?w.a.createElement(dc,null):this.props.imagePreview?w.a.createElement(us,null):w.a.createElement(rc,{expanded:this.state.svExpanded}),t=Lt.hideSample||Lt.hideSampleAfterLanding&&(!!this.props.imagePreview||!!this.props.afterImage),n=Lt.practiceAccount?"sv-inpractice-bkg":"sv-charcoal";return w.a.createElement(w.a.Fragment,null,!Lt.practiceAccount&&w.a.createElement("div",{className:"container-full hideonsv"},w.a.createElement("div",{className:"container sv-text-panel text-center"},Lt.canUseH1?w.a.createElement("h1",{id:"replaceH2s"},w.a.createElement("strong",null,Lt.res("landing_top_header"))):w.a.createElement("h2",null,w.a.createElement("strong",null,Lt.res("landing_top_header"))),w.a.createElement("p",{dangerouslySetInnerHTML:{__html:Lt.res("landing_sub_header")}}))),!t&&w.a.createElement("div",{className:"container-full hideonsv"},w.a.createElement("div",{className:"container smile-visualization-wrap"},w.a.createElement("div",{className:"sv-results-img-container sv-sample"},w.a.createElement("img",{src:Lt.sampleImageBefore,style:{display:this.state.resultImageShow?"none":"inline"},alt:"before"}),w.a.createElement("img",{src:Lt.sampleImageAfter,style:{display:this.state.resultImageShow?"inline":"none"},alt:"after"})),w.a.createElement("div",{className:"sv-btn-group-slider sv-slide sv-sample"},w.a.createElement("div",{className:"sv-label-current "+(this.state.resultImageShow?"":"sv-bold")},Lt.res("results_current")),w.a.createElement("div",{className:"sv-label-simulation "+(this.state.resultImageShow?"sv-bold":"")},Lt.res("results_smileview")),w.a.createElement("label",{className:"switch"},w.a.createElement("input",{type:"checkbox",className:"sms-slide-input",checked:this.state.resultImageShow,onChange:this.toggleResultImageShow}),w.a.createElement("span",{className:"slider round"}))))),!Lt.hideExpander&&w.a.createElement("div",{className:"container-full bg-charcoal hideonsv"},w.a.createElement("div",{className:"container text-panel text-center",style:{textAlign:"center"}},w.a.createElement("a",{href:"#0",onClick:this.expandToggle,className:"btn btn-lblue btn-tall btn-max400",style:{width:"100%",textAlign:"center"},id:"btn-try-out"},Lt.res("form_try_now")))),w.a.createElement("div",{className:"container-full ".concat(n)},w.a.createElement(ic.a,{duration:400,height:this.state.svExpanded?"auto":0},w.a.createElement("div",{className:"container smile-visualization-wrap"},e))),w.a.createElement(Mc,null))}}]),t}();Xc=me(function(e){return o({},e.simulation)})(Xc);var Jc=function(e){function t(){return u(this,t),h(this,v(t).apply(this,arguments))}return g(t,w.a.Component),f(t,[{key:"render",value:function(){return w.a.createElement(N,{store:Zc},w.a.createElement(Xc,this.props))}}]),t}();t.default=Jc}]);
1
+ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=219)}([function(e,t){e.exports=require("react")},function(e,t,n){"use strict";e.exports=n(216)},function(e,t,n){e.exports=n(176)()},function(e,t){function n(){return e.exports=n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(null,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=a(t,r));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,s],l=0;(c=new Error(t.replace(/%s/g,function(){return u[l++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";var r=n(56),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&"object"===typeof e}function c(e){return"[object Function]"===o.call(e)}function u(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!==typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:s,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:c,isStream:function(e){return s(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!==typeof window&&"undefined"!==typeof document},forEach:u,merge:function e(){var t={};function n(n,r){"object"===typeof t[r]&&"object"===typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,o=arguments.length;r<o;r++)u(arguments[r],n);return t},deepMerge:function e(){var t={};function n(n,r){"object"===typeof t[r]&&"object"===typeof n?t[r]=e(t[r],n):t[r]="object"===typeof n?e({},n):n}for(var r=0,o=arguments.length;r<o;r++)u(arguments[r],n);return t},extend:function(e,t,n){return u(t,function(t,o){e[o]=n&&"function"===typeof t?r(t,n):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t,n){e.exports=n(93)},function(e,t){e.exports=require("react-dom")},function(e,t,n){var r=n(175);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(66),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(64),o=n(65),i=n(11),a=n(28),s=n(68),c=n(23),u=n(70);e.exports=function(e){return i(e)?r(e,c):a(e)?[e]:o(s(u(e)))}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(120),o=n(123);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t){var n=1;function r(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}e.exports=function(e){return new Promise(function(t,o){var i=document.createElement("script"),a=e.url;if(e.params){var s=r(e.params);s&&(a+=(a.indexOf("?")>=0?"&":"?")+s)}function c(){i&&(i.onload=i.onreadystatechange=i.onerror=null,i.parentNode&&i.parentNode.removeChild(i),i=null)}i.async=!0;var u="axiosJsonpCallback"+n++,l=window[u],f=!1;window[u]=function(e){(window[u]=l,f)||t({data:e,status:200})};var d={_:(new Date).getTime()};d[e.callbackParamName||"callback"]=u,a+=(a.indexOf("?")>=0?"&":"?")+r(d),i.onload=i.onreadystatechange=function(){i.readyState&&!/loaded|complete/.test(i.readyState)||c()},i.onerror=function(){c(),o(new Error("Network Error"))},e.cancelToken&&e.cancelToken.promise.then(function(e){i&&(f=!0,o(e))}),i.src=a,document.head.appendChild(i)})}},,function(e,t,n){var r=n(29),o=n(113),i=n(114),a="[object Null]",s="[object Undefined]",c=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:c&&c in Object(e)?o(e):i(e)}},function(e,t){function n(e){return!!e&&("object"===typeof e||"function"===typeof e)&&"function"===typeof e.then}e.exports=n,e.exports.default=n},function(e,t,n){"use strict";var r=n(53),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(m){var o=p(n);o&&o!==m&&e(t,o,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var s=c(t),h=c(n),v=0;v<a.length;++v){var g=a[v];if(!i[g]&&(!r||!r[g])&&(!h||!h[g])&&(!s||!s[g])){var y=d(n,g);try{u(t,g,y)}catch(b){}}}}return t}},function(e,t){e.exports=function(e,t){return e===t||e!==e&&t!==t}},function(e,t,n){var r=n(28),o=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}},function(e,t,n){var r=n(19),o=n(13),i="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",c="[object Proxy]";e.exports=function(e){if(!o(e))return!1;var t=r(e);return t==a||t==s||t==i||t==c}},function(e,t,n){var r=n(41);e.exports=function(e,t,n){var o=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===o?r(e,t,void 0,n):!!o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=u(n(0)),s=u(n(2)),c=u(n(4));function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f={animating:"rah-animating",animatingUp:"rah-animating--up",animatingDown:"rah-animating--down",animatingToHeightZero:"rah-animating--to-height-zero",animatingToHeightAuto:"rah-animating--to-height-auto",animatingToHeightSpecific:"rah-animating--to-height-specific",static:"rah-static",staticHeightZero:"rah-static--height-zero",staticHeightAuto:"rah-static--height-auto",staticHeightSpecific:"rah-static--height-specific"},d=["animateOpacity","animationStateClasses","applyInlineTransitions","children","contentClassName","delay","duration","easing","height","onAnimationEnd","onAnimationStart"];function p(e){e.forEach(function(e){return cancelAnimationFrame(e)})}function m(e){return!isNaN(parseFloat(e))&&isFinite(e)}function h(e){return"string"===typeof e&&e.search("%")===e.length-1&&m(e.substr(0,e.length-1))}function v(e,t){e&&"function"===typeof e&&e(t)}var g=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.animationFrameIDs=[];var r="auto",i="visible";m(e.height)?(r=e.height<0||"0"===e.height?0:e.height,i="hidden"):h(e.height)&&(r="0%"===e.height?0:e.height,i="hidden"),n.animationStateClasses=o({},f,e.animationStateClasses);var a=n.getStaticStateClasses(r);return"undefined"!==typeof window&&window.matchMedia&&(n.prefersReducedMotion=window.matchMedia("(prefers-reduced-motion)").matches),n.state={animationStateClasses:a,height:r,overflow:i,shouldUseTransitions:!1},n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.Component),i(t,[{key:"componentDidMount",value:function(){var e=this.state.height;this.contentElement&&this.contentElement.style&&this.hideContent(e)}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.props,o=r.height,i=r.onAnimationEnd,a=r.onAnimationStart,s=this.getTimings(),u=s.duration,f=s.delay;if(this.contentElement&&o!==e.height){var d;this.showContent(t.height),this.contentElement.style.overflow="hidden";var g=this.contentElement.offsetHeight;this.contentElement.style.overflow="";var y=u+f,b=null,_={height:null,overflow:"hidden"},w="auto"===t.height;m(o)?(b=o<0||"0"===o?0:o,_.height=b):h(o)?(b="0%"===o?0:o,_.height=b):(b=g,_.height="auto",_.overflow=null),w&&(_.height=b,b=g);var E=(0,c.default)((l(d={},this.animationStateClasses.animating,!0),l(d,this.animationStateClasses.animatingUp,"auto"===e.height||o<e.height),l(d,this.animationStateClasses.animatingDown,"auto"===o||o>e.height),l(d,this.animationStateClasses.animatingToHeightZero,0===_.height),l(d,this.animationStateClasses.animatingToHeightAuto,"auto"===_.height),l(d,this.animationStateClasses.animatingToHeightSpecific,_.height>0),d)),x=this.getStaticStateClasses(_.height);this.setState({animationStateClasses:E,height:b,overflow:"hidden",shouldUseTransitions:!w}),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),w?(_.shouldUseTransitions=!0,p(this.animationFrameIDs),this.animationFrameIDs=function(e){var t=[];return t[0]=requestAnimationFrame(function(){t[1]=requestAnimationFrame(function(){e()})}),t}(function(){n.setState(_),v(a,{newHeight:_.height})}),this.animationClassesTimeoutID=setTimeout(function(){n.setState({animationStateClasses:x,shouldUseTransitions:!1}),n.hideContent(_.height),v(i,{newHeight:_.height})},y)):(v(a,{newHeight:b}),this.timeoutID=setTimeout(function(){_.animationStateClasses=x,_.shouldUseTransitions=!1,n.setState(_),"auto"!==o&&n.hideContent(b),v(i,{newHeight:b})},y))}}},{key:"componentWillUnmount",value:function(){p(this.animationFrameIDs),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),this.timeoutID=null}},{key:"getTimings",value:function(){if(this.prefersReducedMotion)return{delay:0,duration:0};var e=this.props;return{delay:e.delay,duration:e.duration}}},{key:"showContent",value:function(e){0===e&&(this.contentElement.style.display="")}},{key:"hideContent",value:function(e){0===e&&(this.contentElement.style.display="none")}},{key:"getStaticStateClasses",value:function(e){var t;return(0,c.default)((l(t={},this.animationStateClasses.static,!0),l(t,this.animationStateClasses.staticHeightZero,0===e),l(t,this.animationStateClasses.staticHeightSpecific,e>0),l(t,this.animationStateClasses.staticHeightAuto,"auto"===e),t))}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.animateOpacity,i=n.applyInlineTransitions,s=n.children,u=n.className,f=n.contentClassName,p=n.easing,m=n.id,h=n.style,v=this.state,g=v.height,y=v.overflow,b=v.animationStateClasses,_=v.shouldUseTransitions,w=this.getTimings(),E=w.duration,x=w.delay,S=o({},h,{height:g,overflow:y||h.overflow});_&&i&&(S.transition="height "+E+"ms "+p+" "+x+"ms",h.transition&&(S.transition=h.transition+", "+S.transition),S.WebkitTransition=S.transition);var O={};r&&(O.transition="opacity "+E+"ms "+p+" "+x+"ms",O.WebkitTransition=O.transition,0===g&&(O.opacity=0));var k=(0,c.default)((l(e={},b,!0),l(e,u,u),e)),j="undefined"!==typeof this.props["aria-hidden"]?this.props["aria-hidden"]:0===g;return a.default.createElement("div",o({},function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(!n.length)return e;for(var o={},i=Object.keys(e),a=0;a<i.length;a++){var s=i[a];-1===n.indexOf(s)&&(o[s]=e[s])}return o}.apply(void 0,[this.props].concat(d)),{"aria-hidden":j,className:k,id:m,style:S}),a.default.createElement("div",{className:f,style:O,ref:function(e){return t.contentElement=e}},s))}}]),t}();g.propTypes={"aria-hidden":s.default.bool,animateOpacity:s.default.bool,animationStateClasses:s.default.object,applyInlineTransitions:s.default.bool,children:s.default.any.isRequired,className:s.default.string,contentClassName:s.default.string,delay:s.default.number,duration:s.default.number,easing:s.default.string,height:function(e,t,n){var o=e[t];return"number"===typeof o&&o>=0||h(o)||"auto"===o?null:new TypeError('value "'+o+'" of type "'+("undefined"===typeof o?"undefined":r(o))+'" is invalid type for '+t+" in "+n+'. It needs to be a positive number, string "auto" or percentage string (e.g. "15%").')},id:s.default.string,onAnimationEnd:s.default.func,onAnimationStart:s.default.func,style:s.default.object},g.defaultProps={animateOpacity:!1,animationStateClasses:f,applyInlineTransitions:!0,duration:250,delay:0,easing:"ease",style:{}},t.default=g},,function(e,t,n){var r=n(19),o=n(15),i="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||o(e)&&r(e)==i}},function(e,t,n){var r=n(12).Symbol;e.exports=r},function(e,t,n){var r=n(16)(Object,"create");e.exports=r},function(e,t,n){var r=n(128),o=n(129),i=n(130),a=n(131),s=n(132);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(22);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(134);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(24),o=n(49);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){var r=n(77);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(0);function o(){const e=Object(r.useRef)(!0),t=Object(r.useRef)(()=>e.current);return Object(r.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}},function(e,t,n){var r=n(173);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,r(o.key),o)}}e.exports=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";(function(e){t.a=function(){var t=e;return!(!t||!t.hot||"function"!==typeof t.hot.status||"apply"!==t.hot.status())}}).call(this,n(215)(e))},function(e,t,n){var r=n(117),o=n(133),i=n(135),a=n(136),s=n(137);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(16)(n(12),"Map");e.exports=r},function(e,t,n){var r=n(139),o=n(15);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!==t&&n!==n:r(t,n,i,a,e,s))}},function(e,t,n){var r=n(31),o=n(140),i=n(141),a=n(142),s=n(143),c=n(144);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=c,e.exports=u},function(e,t,n){var r=n(73),o=n(166),i=n(34);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){var r=n(161),o=n(15),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},function(e,t,n){(function(e){var r=n(12),o=n(162),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||o;e.exports=c}).call(this,n(46)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],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}}),e.webpackPolyfill=1),e}},function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var o=typeof e;return!!(t=null==t?n:t)&&("number"==o||"symbol"!=o&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(163),o=n(164),i=n(165),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},function(e,t){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(11),o=n(28),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},function(e,t,n){"use strict";e.exports=n(91)},function(e,t,n){var r=n(178),o=n(193)(function(e,t,n){r(e,t,n)});e.exports=o},function(e,t,n){var r=n(35),o=n(202),i=n(203);e.exports=function(e,t){var n={};return t=i(t,3),o(e,function(e,o,i){r(n,o,t(e,o,i))}),n}},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(7);function o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))}))}),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";(function(t){var r=n(7),o=n(99),i={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s={adapter:function(){var e;return"undefined"!==typeof XMLHttpRequest?e=n(60):"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t)&&(e=n(60)),e}(),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],function(e){s.headers[e]={}}),r.forEach(["post","put","patch"],function(e){s.headers[e]=r.merge(i)}),e.exports=s}).call(this,n(98))},function(e,t,n){"use strict";var r=n(7),o=n(100),i=n(57),a=n(102),s=n(105),c=n(106),u=n(61);e.exports=function(e){return new Promise(function(t,l){var f=e.data,d=e.headers;r.isFormData(f)&&delete d["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",h=e.auth.password||"";d.Authorization="Basic "+btoa(m+":"+h)}var v=a(e.baseURL,e.url);if(p.open(e.method.toUpperCase(),i(v,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in p?s(p.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:n,config:e,request:p};o(t,l,r),p=null}},p.onabort=function(){p&&(l(u("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){l(u("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),l(u(t,e,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var g=n(107),y=(e.withCredentials||c(v))&&e.xsrfCookieName?g.read(e.xsrfCookieName):void 0;y&&(d[e.xsrfHeaderName]=y)}if("setRequestHeader"in p&&r.forEach(d,function(e,t){"undefined"===typeof f&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),e.responseType)try{p.responseType=e.responseType}catch(b){if("json"!==e.responseType)throw b}"function"===typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){p&&(p.abort(),l(e),p=null)}),void 0===f&&(f=null),p.send(f)})}},function(e,t,n){"use strict";var r=n(101);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},function(e,t,n){"use strict";var r=n(7);e.exports=function(e,t){t=t||{};var n={},o=["url","method","params","data"],i=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(o,function(e){"undefined"!==typeof t[e]&&(n[e]=t[e])}),r.forEach(i,function(o){r.isObject(t[o])?n[o]=r.deepMerge(e[o],t[o]):"undefined"!==typeof t[o]?n[o]=t[o]:r.isObject(e[o])?n[o]=r.deepMerge(e[o]):"undefined"!==typeof e[o]&&(n[o]=e[o])}),r.forEach(a,function(r){"undefined"!==typeof t[r]?n[r]=t[r]:"undefined"!==typeof e[r]&&(n[r]=e[r])});var s=o.concat(i).concat(a),c=Object.keys(t).filter(function(e){return-1===s.indexOf(e)});return r.forEach(c,function(r){"undefined"!==typeof t[r]?n[r]=t[r]:"undefined"!==typeof e[r]&&(n[r]=e[r])}),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(67))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(115),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)}),t});e.exports=a},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(t){}try{return e+""}catch(t){}}return""}},function(e,t,n){var r=n(138);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(145),o=n(148),i=n(149),a=1,s=2;e.exports=function(e,t,n,c,u,l){var f=n&a,d=e.length,p=t.length;if(d!=p&&!(f&&p>d))return!1;var m=l.get(e),h=l.get(t);if(m&&h)return m==t&&h==e;var v=-1,g=!0,y=n&s?new r:void 0;for(l.set(e,t),l.set(t,e);++v<d;){var b=e[v],_=t[v];if(c)var w=f?c(_,b,v,t,e,l):c(b,_,v,e,t,l);if(void 0!==w){if(w)continue;g=!1;break}if(y){if(!o(t,function(e,t){if(!i(y,t)&&(b===e||u(b,e,n,c,l)))return y.push(t)})){g=!1;break}}else if(b!==_&&!u(b,_,n,c,l)){g=!1;break}}return l.delete(e),l.delete(t),g}},function(e,t,n){var r=n(12).Uint8Array;e.exports=r},function(e,t,n){var r=n(160),o=n(44),i=n(11),a=n(45),s=n(47),c=n(48),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),f=!n&&!l&&a(e),d=!n&&!l&&!f&&c(e),p=n||l||f||d,m=p?r(e.length,String):[],h=m.length;for(var v in e)!t&&!u.call(e,v)||p&&("length"==v||f&&("offset"==v||"parent"==v)||d&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,h))||m.push(v);return m}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t){function n(t){return e.exports=n="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.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(35),o=n(22);e.exports=function(e,t,n){(void 0===n||o(e[t],n))&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(16),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},function(e,t,n){var r=n(179)();e.exports=r},function(e,t,n){var r=n(74)(Object.getPrototypeOf,Object);e.exports=r},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t,n){var r=n(73),o=n(191),i=n(34);e.exports=function(e){return i(e)?r(e,!0):o(e)}},function(e,t,n){var r=n(13);e.exports=function(e){return e===e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},function(e,t,n){var r=n(85),o=n(23);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},function(e,t,n){var r=n(11),o=n(52),i=n(68),a=n(70);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},function(e,t,n){"use strict";e.exports=n(92)},function(e){e.exports={en:{landing_top_header:"Try on a new smile.",landing_sub_header:"Simply snap a selfie and see what you could look like with straighter teeth, in under 60 seconds.",form_email:"Email",form_firstname:"First name",form_lastname:"Last name",form_firstlastname:"First and last name",form_postcode:"Postcode",form_consent:"I consent to Align Technology contacting me via email, mobile phone, or text to schedule an appointment with the Invisalign Provider(s) of my choosing, or regarding information on Invisalign treatment, special offers and requests for feedback on my treatment experience.",form_verify18:"By clicking \u201cTake your selfie\u201d, I verify that I am 18 years of age or older.",form_take_selfie:"Take your selfie",form_respect_privacy:"Align Technology respects your privacy and will only collect and process your data in accordance with our {Privacy Policy}",footer_sv_computer_generated:"The Smile Visualization tool is a computer-generated simulation of what your smile may look like after Invisalign\xae treatment. Actual results may vary.",form_privacy_policy:"Privacy policy",capture_creating_simulation:"Creating your simulation",capture_very_quick:"It is very quick. It takes about 1 minute",capture_progress1:"Uploading Photo",capture_progress2:"Preparing Visualization",capture_progress3:"Checking for glasses",capture_progress4:"Checking for hat",capture_progress5:"Checking for selfie clarity",capture_progress6:"Checking for great smile",capture_progress7:"Generating your new smile",error_unsuitable1:"Sorry but something went wrong with your image.",error_unsuitable2:"Please review the tips and try again!",error_unsuitable3:"You're so close to seeing your new smile!",error_network:"Sorry something went wrong. Please check your network connection.",error_try_again:"Try again",error_enter_pin:"Please, enter a four digits code",error_bad_pin:"We\u2019re sorry. Please choose a more secure code",results_current:"Current",results_smileview:"SmileView",results_computer_generated:"The SmileView tool is a computer-generated simulation of how your smile might look if you had straighter teeth. Please be aware that the SmileView Tool does not offer a clinical diagnosis and is not an accurate representation or projected results of your Invisalign treatment. It is intended for general guidance purposes only. In some cases, restorative work may be needed in addition to teeth straightening to attain optimal results. Align Technology does not guarantee, or give any warranty that if you are treated with Invisalign clear aligners your teeth and smile will be as shown in the SmileView provided. Please contact an Invisalign provider to assess your treatment needs.",results_gotit:"Got it!",results_thankyou:"thank you",save_header1:"Before you go",save_header2:"Save your visualization image",save_body:"Make sure your new smile visualization is saved before you go. That way, you can see the results at any time.",save_body_ios:"To download the image, touch and hold the image for about 2 seconds until a menu appears. Select 'Save Image'.",save_dontsave:"Don't Save",save_save:"Save",thumbsdown_header:"Please let us know why you weren\u2019t happy with your visualisation:",thumbsdown_answer1:"I can't see much of a change",thumbsdown_answer2:"It no longer looks like my smile",thumbsdown_answer3:"You haven't fixed my dental issue",thumbsdown_answer4:"The resulting image doesn't look like real teeth",thumbsdown_answer5:"I don't want to look like that",thumbsdown_answer6:"I just didn't like it",thumbsdown_answer7:"Other",thumbsdown_submit:"Submit",continue_header:"Are you sure you want to leave?",continue_body:"You're only a few more moments away from seeing what your new smile could look like!",continue_stop:"Stop simulation",continue_continue:"Continue",results_find_doctor:"Find an Invisalign doctor",results_find_doctor_search_text:"City/postcode",results_find_doctor_search_button:"Show results",form_try_now:"Try it on now",results_pins_error:"We\u2019re sorry. Please choose a more secure PIN",results_pins_message:"if you would like to receive your SmileView Simulation via email please enter here a memorable 4 digit code:",inpractice_landing_top_header:"Let\u2019s get started with your new smile",inpractice_landing_tips_header:"You are moments away from seeing how great your new smile could be",inpractice_landing_tips_1:"Checkcopy Make sure there\u2019s ample light",inpractice_landing_tips_2:"Checkcopy Remove glasses and hats",inpractice_landing_tips_3:"Checkcopy Keep your head straight",inpractice_landing_tips_4:"Checkcopy Look directly at the camera",inpractice_capture_heading1:"Please wait.",inpractice_capture_heading2:"Your SmileView is being created",inpractice_form_phone:"Phone",inpractice_form_postcode:"Postcode",inpractice_form_orthodontist:"orthodontist",inpractice_form_dentist:"dentist",inpractice_form_heading1:"While you wait:",inpractice_form_heading2:"Please provide some info for your `$1`",inpractice_form_heading2_gp:"Please provide some info for your dentist",inpractice_form_heading2_ortho:"Please provide some info for your orthodontist",inpractice_form_subheading1:"Want to know more?",inpractice_form_q1:"How is it different to braces?",inpractice_form_q2:"Invite a Friend?",inpractice_form_q3:"Is it affordable?",inpractice_form_q4:"How quickly can I see the results?",inpractice_form_q5:"How does it work?",inpractice_form_cancel:"Cancel",inpractice_form_send:"Send to my $1",inpractice_form_send_gp:"Send to my dentist",inpractice_form_send_ortho:"Send to my orthodontist",inpractice_form_disclaimer:'By clicking "Send to my $1", I understand that my personal data, including my SmileView photographs, will be transferred to my $1.',inpractice_form_disclaimer_gp:'By clicking "Send to my dentist", I understand that my personal data, including my SmileView photographs, will be transferred to my dentist.',inpractice_form_disclaimer_ortho:'By clicking "Send to my orthodontist", I understand that my personal data, including my SmileView photographs, will be transferred to my orthodontist.',inpractice_email_copy:"Email me a copy",inpractice_results_thankyou:"Thank you",inpractice_results_thankyou2:"Your $1 is happy to discuss with you how to make your new smile a reality.",inpractice_results_thankyou2_gp:"Your dentist is happy to discuss with you how to make your new smile a reality.",inpractice_results_thankyou2_ortho:"Your orthodontist is happy to discuss with you how to make your new smile a reality.",inpractice_results_visit_practice:"Visit practice website",inpractice_results_pins_header:"Your SmileView is on its way!",inpractice_results_pins_message:"To access your photos in your email please create a 4 digit PIN"},de:{landing_top_header:"Beginnen wir mit Ihrem neuen L\xe4cheln",landing_sub_header:"Machen Sie einfach ein Selfie und sehen Sie in weniger als 60 Sekunden, wie Sie mit geraderen Z\xe4hnen aussehen k\xf6nnten.",form_email:"E-Mail-Adresse",form_firstname:"Vorname",form_lastname:"Nachname",form_firstlastname:"Vor- und Nachname",form_postcode:"PLZ",form_consent:"Ich stimme zu, dass Align Technology mich per E-Mail bez\xfcglich Sonderangeboten, Informationen zu lokalen Anbietern und Fragen zum Feedback zu meiner Behandlungserfahrung kontaktiert.",form_verify18:"Durch Klicken auf \u201eSelfie aufnehmen\u201c best\xe4tige ich, dass ich mindestens 18 Jahre alt bin.",form_take_selfie:"Selfie aufnehmen",form_respect_privacy:"",footer_sv_computer_generated:"Das Werkzeug SmileView ist eine computergenerierte Simulation Ihres L\xe4chelns nach der Invisalign\xae\xa0Behandlung. Die tats\xe4chlichen Ergebnisse k\xf6nnen abweichen.",form_privacy_policy:"Datenschutz",capture_creating_simulation:"Simulation erstellen",capture_very_quick:"Das geht sehr schnell. Es dauert ungef\xe4hr 1 Minute.",capture_progress1:"Foto hochladen",capture_progress2:"Visualisierung vorbereiten",capture_progress3:"Auf Brille pr\xfcfen",capture_progress4:"Auf Kopfbedeckung pr\xfcfen",capture_progress5:"Auf Klarheit des Selfies pr\xfcfen",capture_progress6:"Auf ein gro\xdfartiges L\xe4cheln pr\xfcfen",capture_progress7:"Ihr neues L\xe4cheln wird generiert",error_unsuitable1:"",error_unsuitable2:"",error_unsuitable3:"",error_network:"",error_try_again:"",error_enter_pin:"Bitte w\xe4hlen Sie einen 4-stelligen Code",error_bad_pin:"Es tut uns leid, bitte w\xe4hlen Sie einen sicheren PIN aus",results_current:"Aktuell",results_smileview:"SmileView",results_computer_generated:"Das Werkzeug SmileView ist eine computergenerierte Simulation Ihres L\xe4chelns nach der Begradigung Ihrer Z\xe4hne. Bitte beachten Sie, dass das Werkzeug SmileView keine klinische Diagnose stellt und keine genaue Darstellung der voraussichtlichen Ergebnisse Ihrer Invisalign Behandlung sein kann. Es dient lediglich zur allgemeinen Orientierung. In manchen F\xe4llen muss zus\xe4tzlich zur Zahnbegradigung eine Restauration vorgenommen werden, um optimale Ergebnisse zu erzielen. Align Technology gibt keine Garantie und gew\xe4hrleistet nicht, dass Ihre Z\xe4hne und Ihr L\xe4cheln nach der Behandlung mit transparenten Invisalign Alignern so aussehen, wie in SmileView dargestellt. Bitte nehmen Sie Kontakt mit einem Invisalign Anwender auf, um zu ermitteln, welche Behandlung Sie ben\xf6tigen.\xa0",results_gotit:"Verstanden!",results_thankyou:"Vielen Dank.",save_header1:"",save_header2:"",save_body:"",save_dontsave:"",save_save:"",thumbsdown_header:"Bitte teilen Sie uns mit, warum Sie mit Ihrer Visualisierung nicht zufrieden waren:",thumbsdown_answer1:"Ich sehe keine gro\xdfe Ver\xe4nderung",thumbsdown_answer2:"Es sieht nicht mehr wie mein L\xe4cheln aus",thumbsdown_answer3:"Meine Zahnfehlstellung ist nicht gel\xf6st",thumbsdown_answer4:"Das Endresultat sieht nicht wie echte Z\xe4hne aus",thumbsdown_answer5:"So m\xf6chte ich nicht aussehen",thumbsdown_answer6:"Mir hat es einfach nicht gefallen",thumbsdown_answer7:"Sonstiges",thumbsdown_submit:"Senden",continue_header:"",continue_body:"",continue_stop:"",continue_continue:"",results_find_doctor:"Invisalign-Anwender suchen",form_try_now:"Probieren Sie es jetzt"},bg:{landing_top_header:"\u0412\u0438\u0436\u0442\u0435 \u043d\u043e\u0432\u0430\u0442\u0430 \u0441\u0438 \u0443\u0441\u043c\u0438\u0432\u043a\u0430.",landing_sub_header:"\u041d\u0430\u043f\u0440\u0430\u0432\u0435\u0442\u0435 \u0441\u0438 \u0441\u0435\u043b\u0444\u0438 \u0438 \u0432\u0438\u0436\u0442\u0435 \u043a\u0430\u043a \u0431\u0438\u0445\u0442\u0435 \u043c\u043e\u0433\u043b\u0438 \u0434\u0430 \u0438\u0437\u0433\u043b\u0435\u0436\u0434\u0430\u0442\u0435 \u0441 \u0440\u0430\u0432\u043d\u0438 \u0437\u044a\u0431\u0438 \u0437\u0430 \u043f\u043e-\u043c\u0430\u043b\u043a\u043e \u043e\u0442 60 \u0441\u0435\u043a\u0443\u043d\u0434\u0438.",form_email:"\u0418\u043c\u0435\u0439\u043b",form_firstname:"\u041b\u0438\u0447\u043d\u043e \u0438\u043c\u0435",form_lastname:"\u0424\u0430\u043c\u0438\u043b\u0438\u044f",form_firstlastname:"\u0418\u043c\u0435 \u0438 \u0444\u0430\u043c\u0438\u043b\u0438\u044f",form_postcode:"\u041f\u043e\u0449\u0435\u043d\u0441\u043a\u0438 \u043a\u043e\u0434",form_consent:"\u041f\u0440\u0438\u0435\u043c\u0430\u043c \u0434\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0432\u0430\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e\u0442 Align Technology \u043f\u043e \u0438\u043c\u0435\u0439\u043b \u043e\u0442\u043d\u043e\u0441\u043d\u043e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u043d\u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0437\u0430 \u043b\u0435\u043a\u0430\u0440\u0438 \u0438 \u0437\u0430\u043f\u0438\u0442\u0432\u0430\u043d\u0438\u044f \u0437\u0430 \u043c\u043d\u0435\u043d\u0438\u0435\u0442\u043e \u043c\u0438 \u043e\u0442\u043d\u043e\u0441\u043d\u043e \u043b\u0435\u0447\u0435\u043d\u0438\u0435\u0442\u043e \u043c\u0438.",form_verify18:"\u0421 \u043d\u0430\u0442\u0438\u0441\u043a\u0430\u043d\u0435\u0442\u043e \u043d\u0430 \u201c\u041d\u0430\u043f\u0440\u0430\u0432\u0438 \u0441\u0438 \u0441\u0435\u043b\u0444\u0438\u201d, \u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u0430\u043c, \u0447\u0435 \u0441\u044a\u043c \u043f\u043e-\u0432\u044a\u0437\u0440\u0430\u0441\u0442\u0435\u043d \u043e\u0442 18 \u0433\u043e\u0434\u0438\u043d\u0438.",form_take_selfie:"\u041d\u0430\u043f\u0440\u0430\u0432\u0438 \u0441\u0438 \u0441\u0435\u043b\u0444\u0438",form_respect_privacy:"Align Technology \u0437\u0430\u0447\u0438\u0442\u0430 \u0432\u0430\u0448\u0430\u0442\u0430 \u043f\u043e\u0432\u0435\u0440\u0438\u0442\u0435\u043b\u043d\u043e\u0441\u0442 \u0438 \u0449\u0435 \u0441\u044a\u0431\u0438\u0440\u0430 \u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0432\u0430 \u0432\u0430\u0448\u0438\u0442\u0435 \u0434\u0430\u043d\u043d\u0438 \u0441\u0430\u043c\u043e \u0432 \u0441\u044a\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0441 \u043d\u0430\u0448\u0430\u0442\u0430 {\u0414\u0435\u043a\u043b\u0430\u0440\u0430\u0446\u0438\u044f \u0437\u0430 \u043f\u043e\u0432\u0435\u0440\u0438\u0442\u0435\u043b\u043d\u043e\u0441\u0442}",footer_sv_computer_generated:"\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044a\u0442 \u0437\u0430 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 \u0443\u0441\u043c\u0438\u0432\u043a\u0430\u0442\u0430 \u0435 \u043a\u043e\u043c\u043f\u044e\u0442\u044a\u0440\u043d\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0430\u043d\u0430 \u0441\u0438\u043c\u0443\u043b\u0430\u0446\u0438\u044f \u043d\u0430 \u0442\u043e\u0432\u0430 \u043a\u0430\u043a \u043c\u043e\u0436\u0435 \u0434\u0430 \u0438\u0437\u0433\u043b\u0435\u0436\u0434\u0430 \u0443\u0441\u043c\u0438\u0432\u043a\u0430\u0442\u0430 \u0432\u0438 \u0441\u043b\u0435\u0434 \u043b\u0435\u0447\u0435\u043d\u0438\u0435\u0442\u043e \u0441 Invisalign\xae. \u0420\u0435\u0430\u043b\u043d\u0438\u0442\u0435 \u0440\u0435\u0437\u0443\u043b\u0442\u0430\u0442\u0438 \u043c\u043e\u0433\u0430\u0442 \u0434\u0430 \u0432\u0430\u0440\u0438\u0440\u0430\u0442.",form_privacy_policy:"\u0414\u0435\u043a\u043b\u0430\u0440\u0430\u0446\u0438\u044f \u0437\u0430 \u043f\u043e\u0432\u0435\u0440\u0438\u0442\u0435\u043b\u043d\u043e\u0441\u0442",capture_creating_simulation:"\u0421\u044a\u0437\u0434\u0430\u0432\u0430\u043d\u0435 \u043d\u0430 \u0432\u0430\u0448\u0430\u0442\u0430 \u0441\u0438\u043c\u0443\u043b\u0430\u0446\u0438\u044f",capture_very_quick:"\u041c\u043d\u043e\u0433\u043e \u0435 \u0431\u044a\u0440\u0437\u043e. \u0429\u0435 \u043e\u0442\u043d\u0435\u043c\u0435 \u043e\u043a\u043e\u043b\u043e \u043c\u0438\u043d\u0443\u0442\u0430.",capture_progress1:"\u041a\u0430\u0447\u0432\u0430\u043d\u0435 \u043d\u0430 \u0441\u043d\u0438\u043c\u043a\u0430\u0442\u0430.",capture_progress2:"\u041f\u043e\u0434\u0433\u043e\u0442\u0432\u044f\u043d\u0435 \u043d\u0430 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f\u0442\u0430",capture_progress3:"\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0437\u0430 \u043e\u0447\u0438\u043b\u0430",capture_progress4:"\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0437\u0430 \u0448\u0430\u043f\u043a\u0430",capture_progress5:"\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0437\u0430 \u044f\u0441\u043d\u043e\u0442\u0430 \u043d\u0430 \u0441\u0435\u043b\u0444\u0438\u0442\u043e",capture_progress6:"\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0437\u0430 \u0445\u0443\u0431\u0430\u0432\u0430 \u0443\u0441\u043c\u0438\u0432\u043a\u0430",capture_progress7:"\u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0430\u043d\u0435 \u043d\u0430 \u0432\u0430\u0448\u0430\u0442\u0430 \u043d\u043e\u0432\u0430 \u0443\u0441\u043c\u0438\u0432\u043a\u0430",error_unsuitable1:"\u0418\u0437\u0432\u0438\u043d\u0435\u0442\u0435, \u0438\u043c\u0430\u0448\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u0432\u0430\u0448\u0430\u0442\u0430 \u0441\u043d\u0438\u043c\u043a\u0430",error_unsuitable2:"\u041c\u043e\u043b\u044f, \u043f\u0440\u043e\u0447\u0435\u0442\u0435\u0442\u0435 \u043e\u0442\u043d\u043e\u0432\u043e \u0441\u044a\u0432\u0435\u0442\u0438\u0442\u0435 \u0438 \u043e\u043f\u0438\u0442\u0430\u0439\u0442\u0435 \u043e\u0442\u043d\u043e\u0432\u043e!",error_unsuitable3:"\u0421\u044a\u0432\u0441\u0435\u043c \u0441\u043a\u043e\u0440\u043e \u0449\u0435 \u0432\u0438\u0434\u0438\u0442\u0435 \u0432\u0430\u0448\u0430\u0442\u0430 \u043d\u043e\u0432\u0430 \u0443\u0441\u043c\u0438\u0432\u043a\u0430!",error_network:"\u0418\u0437\u0432\u0438\u043d\u0435\u0442\u0435, \u0438\u043c\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c. \u041f\u0440\u043e\u0432\u0435\u0440\u0435\u0442\u0435 \u0432\u0440\u044a\u0437\u043a\u0430\u0442\u0430 \u0441\u0438 \u0441 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442.",error_try_again:"\u041e\u043f\u0438\u0442\u0430\u0439\u0442\u0435 \u043e\u0442\u043d\u043e\u0432\u043e",error_enter_pin:"\u041c\u043e\u043b\u044f, \u0432\u044a\u0432\u0435\u0434\u0435\u0442\u0435 4 \u0446\u0438\u0444\u0440\u0435\u043d \u043a\u043e\u0434",error_bad_pin:"\u0421\u044a\u0436\u0430\u043b\u044f\u0432\u0430\u043c\u0435. \u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u043f\u043e-\u0441\u0438\u0433\u0443\u0440\u0435\u043d \u043a\u043e\u0434",results_current:"\u0421\u0435\u0433\u0430",results_smileview:"SmileView",results_computer_generated:"\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044a\u0442 SmileView \u0435 \u043a\u043e\u043c\u043f\u044e\u0442\u044a\u0440\u043d\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0430\u043d\u0430 \u0441\u0438\u043c\u0443\u043b\u0430\u0446\u0438\u044f \u043d\u0430 \u0442\u043e\u0432\u0430 \u043a\u0430\u043a \u043c\u043e\u0436\u0435 \u0434\u0430 \u0438\u0437\u0433\u043b\u0435\u0436\u0434\u0430 \u0443\u0441\u043c\u0438\u0432\u043a\u0430\u0442\u0430 \u0432\u0438, \u0430\u043a\u043e \u0438\u043c\u0430\u0442\u0435 \u043f\u043e-\u043f\u0440\u0430\u0432\u0438 \u0437\u044a\u0431\u0438. \u041c\u043e\u043b\u044f, \u0438\u043c\u0430\u0439\u0442\u0435 \u043f\u0440\u0435\u0434\u0432\u0438\u0434, \u0447\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044a\u0442 SmileView \u043d\u0435 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430 \u043a\u043b\u0438\u043d\u0438\u0447\u043d\u0430 \u0434\u0438\u0430\u0433\u043d\u043e\u0437\u0430 \u0438 \u043d\u0435 \u0435 \u0442\u043e\u0447\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044f\u043d\u0435 \u0438\u043b\u0438 \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u0438\u0440\u0430\u043d\u0438 \u0440\u0435\u0437\u0443\u043b\u0442\u0430\u0442\u0438 \u043e\u0442 \u0412\u0430\u0448\u0435\u0442\u043e \u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u0441 Invisalign. \u0422\u043e\u0439 \u0435 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0441\u0430\u043c\u043e \u0437\u0430 \u0434\u0430\u0432\u0430\u043d\u0435 \u043d\u0430 \u043e\u0431\u0449\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0430 \u0438 \u0432\u044a\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438. \u0412 \u043d\u044f\u043a\u043e\u0438 \u0441\u043b\u0443\u0447\u0430\u0438 \u043c\u043e\u0436\u0435 \u0434\u0430 \u0441\u0435 \u043d\u0430\u043b\u043e\u0436\u0438 \u0432\u044a\u0437\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435\u043b\u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0430 \u0432 \u0434\u043e\u043f\u044a\u043b\u043d\u0435\u043d\u0438\u0435 \u043a\u044a\u043c \u0438\u0437\u043f\u0440\u0430\u0432\u044f\u043d\u0435 \u043d\u0430 \u0437\u044a\u0431\u0438\u0442\u0435 \u0437\u0430 \u043f\u043e\u0441\u0442\u0438\u0433\u0430\u043d\u0435 \u043d\u0430 \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u043d\u0438 \u0440\u0435\u0437\u0443\u043b\u0442\u0430\u0442\u0438. Align Technology \u043d\u0435 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0430 \u0438\u043b\u0438 \u043d\u0435 \u0434\u0430\u0432\u0430 \u043d\u0438\u043a\u0430\u043a\u0432\u0430 \u0433\u0430\u0440\u0430\u043d\u0446\u0438\u044f, \u0447\u0435 \u0430\u043a\u043e \u0441\u0435 \u043b\u0435\u043a\u0443\u0432\u0430\u0442\u0435 \u0441 Invisalign \u0430\u043b\u0430\u0439\u043d\u0435\u0440\u0438, \u0432\u0430\u0448\u0438\u0442\u0435 \u0437\u044a\u0431\u0438 \u0438 \u0443\u0441\u043c\u0438\u0432\u043a\u0430 \u0449\u0435 \u0431\u044a\u0434\u0430\u0442 \u0442\u0430\u043a\u0438\u0432\u0430 \u043a\u0430\u043a\u0442\u043e \u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u0432 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0435\u043d\u0438\u044f SmileView. \u041c\u043e\u043b\u044f, \u0441\u0432\u044a\u0440\u0436\u0435\u0442\u0435 \u0441\u0435 \u0441 \u043b\u0435\u043a\u0430\u0440 \u043d\u0430 Invisalign, \u0437\u0430 \u0434\u0430 \u043f\u0440\u0435\u0446\u0435\u043d\u0438\u0442\u0435 \u0432\u0430\u0448\u0438\u0442\u0435 \u043d\u0443\u0436\u0434\u0438 \u043e\u0442 \u043b\u0435\u0447\u0435\u043d\u0438\u0435.",results_gotit:"\u0420\u0430\u0437\u0431\u0440\u0430\u0445!",results_thankyou:"\u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f",save_header1:"\u041f\u0440\u0435\u0434\u0438 \u0434\u0430 \u0437\u0430\u0442\u0432\u043e\u0440\u0438\u0442\u0435",save_header2:"\u0417\u0430\u043f\u0438\u0448\u0435\u0442\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u0442\u0430 \u043d\u0430 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f\u0442\u0430",save_body:"\u0417\u0430\u043f\u0438\u0448\u0435\u0442\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u0442\u0430 \u043f\u0440\u0435\u0434\u0438 \u0434\u0430 \u0437\u0430\u0442\u0432\u043e\u0440\u0438\u0442\u0435. \u041f\u043e-\u0442\u043e\u0437\u0438 \u043d\u0430\u0447\u0438\u043d \u0449\u0435 \u043c\u043e\u0436\u0435 \u0434\u0430 \u0432\u0438\u0434\u0438\u0442\u0435 \u0440\u0435\u0437\u0443\u043b\u0442\u0430\u0442\u0438\u0442\u0435 \u043f\u043e \u0432\u0441\u044f\u043a\u043e \u0432\u0440\u0435\u043c\u0435",save_body_ios:"\u0417\u0430 \u0434\u0430 \u0441\u0432\u0430\u043b\u0438\u0442\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u0442\u0430, \u0434\u043e\u043a\u043e\u0441\u043d\u0435\u0442\u0435 \u0438 \u0437\u0430\u0434\u0440\u044a\u0436\u0442\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u0442\u0430 \u0437\u0430 \u043e\u043a\u043e\u043b\u043e 2 \u0441\u0435\u043a\u0443\u043d\u0434\u0438 \u0434\u043e\u043a\u0430\u0442\u043e \u0441\u0435 \u043f\u043e\u044f\u0432\u0438 \u043c\u0435\u043d\u044e. \u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435 'Save Image'",save_dontsave:"\u041d\u0435 \u0437\u0430\u043f\u0438\u0441\u0432\u0430\u0439",save_save:"\u0417\u0430\u043f\u0438\u0448\u0438",thumbsdown_header:"\u041c\u043e\u043b\u044f \u0432\u0438, \u0441\u043f\u043e\u0434\u0435\u043b\u0435\u0442\u0435 \u0437\u0430\u0449\u043e \u043d\u0435 \u0441\u0442\u0435 \u0434\u043e\u0432\u043e\u043b\u043d\u0438 \u043e\u0442 \u0432\u0430\u0448\u0430\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f:",thumbsdown_answer1:"\u041d\u0435 \u0432\u0438\u0436\u0434\u0430\u043c \u043e\u0441\u043e\u0431\u0435\u043d\u0430 \u043f\u0440\u043e\u043c\u044f\u043d\u0430",thumbsdown_answer2:"\u041d\u0435 \u0438\u0437\u0433\u043b\u0435\u0436\u0434\u0430 \u043a\u0430\u0442\u043e \u043c\u043e\u044f\u0442\u0430 \u0443\u0441\u043c\u0438\u0432\u043a\u0430",thumbsdown_answer3:"\u041d\u0435 \u043a\u043e\u0440\u0438\u0433\u0438\u0440\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441\u044a\u0441 \u0437\u044a\u0431\u0438\u0442\u0435 \u043c\u0438",thumbsdown_answer4:"\u041d\u043e\u0432\u0438\u0442\u0435 \u0437\u044a\u0431\u0438 \u043d\u0435 \u0438\u0437\u0433\u043b\u0435\u0436\u0434\u0430\u0442 \u0438\u0441\u0442\u0438\u043d\u0441\u043a\u0438",thumbsdown_answer5:"\u041d\u0435 \u0438\u0441\u043a\u0430\u043c \u0434\u0430 \u0438\u0437\u0433\u043b\u0435\u0436\u0434\u0430\u043c \u0442\u0430\u043a\u0430",thumbsdown_answer6:"\u041f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u043c\u0438 \u0445\u0430\u0440\u0435\u0441\u0432\u0430",thumbsdown_answer7:"\u0414\u0440\u0443\u0433\u043e",thumbsdown_submit:"\u0418\u0437\u043f\u0440\u0430\u0449\u0430\u043d\u0435",continue_header:"\u0421\u0438\u0433\u0443\u0440\u043d\u0438 \u043b\u0438 \u0441\u0442\u0435, \u0447\u0435 \u0438\u0441\u043a\u0430\u0442\u0435 \u0434\u0430 \u0438\u0437\u043b\u0435\u0437\u0435\u0442\u0435?",continue_body:"\u0421\u0430\u043c\u043e \u0441\u043b\u0435\u0434 \u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438 \u0449\u0435 \u0432\u0438\u0434\u0438\u0442\u0435 \u043a\u0430\u043a \u0431\u0438 \u043c\u043e\u0433\u043b\u0430 \u0434\u0430 \u0438\u0437\u0433\u043b\u0435\u0436\u0434\u0430 \u043d\u043e\u0432\u0430\u0442\u0430 \u0432\u0438 \u0443\u0441\u043c\u0438\u0432\u043a\u0430",continue_stop:"\u0421\u043f\u0440\u0438 \u0441\u0438\u043c\u0443\u043b\u0430\u0446\u0438\u044f\u0442\u0430",continue_continue:"\u041f\u0440\u043e\u0434\u044a\u043b\u0436\u0438",results_find_doctor:"\u041d\u0430\u043c\u0435\u0440\u0438 Invisalign \u043b\u0435\u043a\u0430\u0440",form_try_now:"\u041e\u043f\u0438\u0442\u0430\u0439\u0442\u0435 \u0441\u0435\u0433\u0430"}}},function(e,t,n){"use strict";t.decode=t.parse=n(111),t.encode=t.stringify=n(112)},function(e,t){e.exports=function(e){return null==e}},function(e,t,n){"use strict";(function(e){var r=n(0);const o="undefined"!==typeof e&&e.navigator&&"ReactNative"===e.navigator.product,i="undefined"!==typeof document;t.a=i||o?r.useLayoutEffect:r.useEffect}).call(this,n(67))},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,_=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function E(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case d:case a:case c:case s:case m:return e;default:switch(e=e&&e.$$typeof){case l:case p:case g:case v:case u:return e;default:return t}}case i:return t}}}function x(e){return E(e)===d}t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=u,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=g,t.Memo=v,t.Portal=i,t.Profiler=c,t.StrictMode=s,t.Suspense=m,t.isAsyncMode=function(e){return x(e)||E(e)===f},t.isConcurrentMode=x,t.isContextConsumer=function(e){return E(e)===l},t.isContextProvider=function(e){return E(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===v},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===c},t.isStrictMode=function(e){return E(e)===s},t.isSuspense=function(e){return E(e)===m},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===d||e===c||e===s||e===m||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===v||e.$$typeof===u||e.$$typeof===l||e.$$typeof===p||e.$$typeof===b||e.$$typeof===_||e.$$typeof===w||e.$$typeof===y)},t.typeOf=E},function(e,t,n){"use strict";var r=60103,o=60106,i=60107,a=60108,s=60114,c=60109,u=60110,l=60112,f=60113,d=60120,p=60115,m=60116,h=60121,v=60122,g=60117,y=60129,b=60131;if("function"===typeof Symbol&&Symbol.for){var _=Symbol.for;r=_("react.element"),o=_("react.portal"),i=_("react.fragment"),a=_("react.strict_mode"),s=_("react.profiler"),c=_("react.provider"),u=_("react.context"),l=_("react.forward_ref"),f=_("react.suspense"),d=_("react.suspense_list"),p=_("react.memo"),m=_("react.lazy"),h=_("react.block"),v=_("react.server.block"),g=_("react.fundamental"),y=_("react.debug_trace_mode"),b=_("react.legacy_hidden")}function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case a:case f:case d:return e;default:switch(e=e&&e.$$typeof){case u:case l:case m:case p:case c:return e;default:return t}}case o:return t}}}var E=c,x=r,S=l,O=i,k=m,j=p,C=o,P=s,N=a,T=f;t.ContextConsumer=u,t.ContextProvider=E,t.Element=x,t.ForwardRef=S,t.Fragment=O,t.Lazy=k,t.Memo=j,t.Portal=C,t.Profiler=P,t.StrictMode=N,t.Suspense=T,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===c},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===l},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===p},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===s||e===y||e===a||e===f||e===d||e===b||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===p||e.$$typeof===c||e.$$typeof===u||e.$$typeof===l||e.$$typeof===g||e.$$typeof===h||e[0]===v)},t.typeOf=w},function(e,t,n){"use strict";var r=n(7),o=n(56),i=n(94),a=n(62);function s(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var c=s(n(59));c.Axios=i,c.create=function(e){return s(a(c.defaults,e))},c.Cancel=n(63),c.CancelToken=n(108),c.isCancel=n(58),c.all=function(e){return Promise.all(e)},c.spread=n(109),e.exports=c,e.exports.default=c},function(e,t,n){"use strict";var r=n(7),o=n(57),i=n(95),a=n(96),s=n(62);function c(e){this.defaults=e,this.interceptors={request:new i,response:new i}}c.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},c.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],function(e){c.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}}),r.forEach(["post","put","patch"],function(e){c.prototype[e]=function(t,n,o){return this.request(r.merge(o||{},{method:e,url:t,data:n}))}}),e.exports=c},function(e,t,n){"use strict";var r=n(7);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=o},function(e,t,n){"use strict";var r=n(7),o=n(97),i=n(58),a=n(59);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return s(e),t.data=o(t.data,t.headers,e.transformResponse),t},function(t){return i(t)||(s(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(7);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,u=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&p())}function p(){if(!l){var e=s(d);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f<t;)c&&c[f].run();f=-1,t=u.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new m(e,t)),1!==u.length||l||s(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(7);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){"use strict";var r=n(61);e.exports=function(e,t,n){var o=n.config.validateStatus;!o||o(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(103),o=n(104);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(7),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}}),a):a}},function(e,t,n){"use strict";var r=n(7);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(7);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(63);function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new r(e),t(n.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o(function(t){e=t}),cancel:e}},e.exports=o},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){var r,o;(function(){(function(){(function(){var e=[].slice;this.ActionCable={INTERNAL:{message_types:{welcome:"welcome",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]},WebSocket:window.WebSocket,logger:window.console,createConsumer:function(e){var t;return null==e&&(e=null!=(t=this.getConfig("url"))?t:this.INTERNAL.default_mount_path),new i.Consumer(this.createWebSocketURL(e))},getConfig:function(e){var t;return null!=(t=document.head.querySelector("meta[name='action-cable-"+e+"']"))?t.getAttribute("content"):void 0},createWebSocketURL:function(e){var t;return e&&!/^wss?:/i.test(e)?((t=document.createElement("a")).href=e,t.href=t.href,t.protocol=t.protocol.replace("http","ws"),t.href):e},startDebugging:function(){return this.debugging=!0},stopDebugging:function(){return this.debugging=null},log:function(){var t,n;if(t=1<=arguments.length?e.call(arguments,0):[],this.debugging)return t.push(Date.now()),(n=this.logger).log.apply(n,["[ActionCable]"].concat(e.call(t)))}}}).call(this)}).call(this);var i=this.ActionCable;(function(){(function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};i.ConnectionMonitor=function(){var t,n,r;function o(t){this.connection=t,this.visibilityDidChange=e(this.visibilityDidChange,this),this.reconnectAttempts=0}return o.pollInterval={min:3,max:30},o.staleThreshold=6,o.prototype.start=function(){if(!this.isRunning())return this.startedAt=n(),delete this.stoppedAt,this.startPolling(),document.addEventListener("visibilitychange",this.visibilityDidChange),i.log("ConnectionMonitor started. pollInterval = "+this.getPollInterval()+" ms")},o.prototype.stop=function(){if(this.isRunning())return this.stoppedAt=n(),this.stopPolling(),document.removeEventListener("visibilitychange",this.visibilityDidChange),i.log("ConnectionMonitor stopped")},o.prototype.isRunning=function(){return null!=this.startedAt&&null==this.stoppedAt},o.prototype.recordPing=function(){return this.pingedAt=n()},o.prototype.recordConnect=function(){return this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,i.log("ConnectionMonitor recorded connect")},o.prototype.recordDisconnect=function(){return this.disconnectedAt=n(),i.log("ConnectionMonitor recorded disconnect")},o.prototype.startPolling=function(){return this.stopPolling(),this.poll()},o.prototype.stopPolling=function(){return clearTimeout(this.pollTimeout)},o.prototype.poll=function(){return this.pollTimeout=setTimeout((e=this,function(){return e.reconnectIfStale(),e.poll()}),this.getPollInterval());var e},o.prototype.getPollInterval=function(){var e,n,r,o;return r=(o=this.constructor.pollInterval).min,n=o.max,e=5*Math.log(this.reconnectAttempts+1),Math.round(1e3*t(e,r,n))},o.prototype.reconnectIfStale=function(){if(this.connectionIsStale())return i.log("ConnectionMonitor detected stale connection. reconnectAttempts = "+this.reconnectAttempts+", pollInterval = "+this.getPollInterval()+" ms, time disconnected = "+r(this.disconnectedAt)+" s, stale threshold = "+this.constructor.staleThreshold+" s"),this.reconnectAttempts++,this.disconnectedRecently()?i.log("ConnectionMonitor skipping reopening recent disconnect"):(i.log("ConnectionMonitor reopening"),this.connection.reopen())},o.prototype.connectionIsStale=function(){var e;return r(null!=(e=this.pingedAt)?e:this.startedAt)>this.constructor.staleThreshold},o.prototype.disconnectedRecently=function(){return this.disconnectedAt&&r(this.disconnectedAt)<this.constructor.staleThreshold},o.prototype.visibilityDidChange=function(){if("visible"===document.visibilityState)return setTimeout((e=this,function(){if(e.connectionIsStale()||!e.connection.isOpen())return i.log("ConnectionMonitor reopening stale connection on visibilitychange. visbilityState = "+document.visibilityState),e.connection.reopen()}),200);var e},n=function(){return(new Date).getTime()},r=function(e){return(n()-e)/1e3},t=function(e,t,n){return Math.max(t,Math.min(n,e))},o}()}).call(this),function(){var e,t,n,r,o,a=[].slice,s=function(e,t){return function(){return e.apply(t,arguments)}},c=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};r=i.INTERNAL,t=r.message_types,n=r.protocols,o=2<=n.length?a.call(n,0,e=n.length-1):(e=0,[]),n[e++],i.Connection=function(){function e(e){this.consumer=e,this.open=s(this.open,this),this.subscriptions=this.consumer.subscriptions,this.monitor=new i.ConnectionMonitor(this),this.disconnected=!0}return e.reopenDelay=500,e.prototype.send=function(e){return!!this.isOpen()&&(this.webSocket.send(JSON.stringify(e)),!0)},e.prototype.open=function(){return this.isActive()?(i.log("Attempted to open WebSocket, but existing socket is "+this.getState()),!1):(i.log("Opening WebSocket, current state is "+this.getState()+", subprotocols: "+n),null!=this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new i.WebSocket(this.consumer.url,n),this.installEventHandlers(),this.monitor.start(),!0)},e.prototype.close=function(e){var t;if((null!=e?e:{allowReconnect:!0}).allowReconnect||this.monitor.stop(),this.isActive())return null!=(t=this.webSocket)?t.close():void 0},e.prototype.reopen=function(){var e;if(i.log("Reopening WebSocket, current state is "+this.getState()),!this.isActive())return this.open();try{return this.close()}catch(t){return e=t,i.log("Failed to reopen WebSocket",e)}finally{i.log("Reopening WebSocket in "+this.constructor.reopenDelay+"ms"),setTimeout(this.open,this.constructor.reopenDelay)}},e.prototype.getProtocol=function(){var e;return null!=(e=this.webSocket)?e.protocol:void 0},e.prototype.isOpen=function(){return this.isState("open")},e.prototype.isActive=function(){return this.isState("open","connecting")},e.prototype.isProtocolSupported=function(){var e;return e=this.getProtocol(),c.call(o,e)>=0},e.prototype.isState=function(){var e,t;return t=1<=arguments.length?a.call(arguments,0):[],e=this.getState(),c.call(t,e)>=0},e.prototype.getState=function(){var e,t;for(t in WebSocket)if(WebSocket[t]===(null!=(e=this.webSocket)?e.readyState:void 0))return t.toLowerCase();return null},e.prototype.installEventHandlers=function(){var e,t;for(e in this.events)t=this.events[e].bind(this),this.webSocket["on"+e]=t},e.prototype.uninstallEventHandlers=function(){var e;for(e in this.events)this.webSocket["on"+e]=function(){}},e.prototype.events={message:function(e){var n,r,o;if(this.isProtocolSupported())switch(n=(o=JSON.parse(e.data)).identifier,r=o.message,o.type){case t.welcome:return this.monitor.recordConnect(),this.subscriptions.reload();case t.ping:return this.monitor.recordPing();case t.confirmation:return this.subscriptions.notify(n,"connected");case t.rejection:return this.subscriptions.reject(n);default:return this.subscriptions.notify(n,"received",r)}},open:function(){if(i.log("WebSocket onopen event, using '"+this.getProtocol()+"' subprotocol"),this.disconnected=!1,!this.isProtocolSupported())return i.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close:function(e){if(i.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error:function(){return i.log("WebSocket onerror event")}},e}()}.call(this),function(){var e=[].slice;i.Subscriptions=function(){function t(e){this.consumer=e,this.subscriptions=[]}return t.prototype.create=function(e,t){var n,r,o;return r="object"===typeof(n=e)?n:{channel:n},o=new i.Subscription(this.consumer,r,t),this.add(o)},t.prototype.add=function(e){return this.subscriptions.push(e),this.consumer.ensureActiveConnection(),this.notify(e,"initialized"),this.sendCommand(e,"subscribe"),e},t.prototype.remove=function(e){return this.forget(e),this.findAll(e.identifier).length||this.sendCommand(e,"unsubscribe"),e},t.prototype.reject=function(e){var t,n,r,o,i;for(o=[],t=0,n=(r=this.findAll(e)).length;t<n;t++)i=r[t],this.forget(i),this.notify(i,"rejected"),o.push(i);return o},t.prototype.forget=function(e){var t;return this.subscriptions=function(){var n,r,o,i;for(i=[],n=0,r=(o=this.subscriptions).length;n<r;n++)(t=o[n])!==e&&i.push(t);return i}.call(this),e},t.prototype.findAll=function(e){var t,n,r,o,i;for(o=[],t=0,n=(r=this.subscriptions).length;t<n;t++)(i=r[t]).identifier===e&&o.push(i);return o},t.prototype.reload=function(){var e,t,n,r,o;for(r=[],e=0,t=(n=this.subscriptions).length;e<t;e++)o=n[e],r.push(this.sendCommand(o,"subscribe"));return r},t.prototype.notifyAll=function(){var t,n,r,o,i,a,s;for(n=arguments[0],t=2<=arguments.length?e.call(arguments,1):[],a=[],r=0,o=(i=this.subscriptions).length;r<o;r++)s=i[r],a.push(this.notify.apply(this,[s,n].concat(e.call(t))));return a},t.prototype.notify=function(){var t,n,r,o,i,a,s;for(a=arguments[0],n=arguments[1],t=3<=arguments.length?e.call(arguments,2):[],i=[],r=0,o=(s="string"===typeof a?this.findAll(a):[a]).length;r<o;r++)a=s[r],i.push("function"===typeof a[n]?a[n].apply(a,t):void 0);return i},t.prototype.sendCommand=function(e,t){var n;return n=e.identifier,this.consumer.send({command:t,identifier:n})},t}()}.call(this),function(){i.Subscription=function(){var e;function t(t,n,r){this.consumer=t,null==n&&(n={}),this.identifier=JSON.stringify(n),e(this,r)}return t.prototype.perform=function(e,t){return null==t&&(t={}),t.action=e,this.send(t)},t.prototype.send=function(e){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(e)})},t.prototype.unsubscribe=function(){return this.consumer.subscriptions.remove(this)},e=function(e,t){var n,r;if(null!=t)for(n in t)r=t[n],e[n]=r;return e},t}()}.call(this),function(){i.Consumer=function(){function e(e){this.url=e,this.subscriptions=new i.Subscriptions(this),this.connection=new i.Connection(this)}return e.prototype.send=function(e){return this.connection.send(e)},e.prototype.connect=function(){return this.connection.open()},e.prototype.disconnect=function(){return this.connection.close({allowReconnect:!1})},e.prototype.ensureActiveConnection=function(){if(!this.connection.isActive())return this.connection.open()},e}()}.call(this)}).call(this),e.exports?e.exports=i:void 0===(o="function"===typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=o)}).call(this)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var a={};if("string"!==typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var c=1e3;i&&"number"===typeof i.maxKeys&&(c=i.maxKeys);var u=e.length;c>0&&u>c&&(u=c);for(var l=0;l<u;++l){var f,d,p,m,h=e[l].replace(s,"%20"),v=h.indexOf(n);v>=0?(f=h.substr(0,v),d=h.substr(v+1)):(f=h,d=""),p=decodeURIComponent(f),m=decodeURIComponent(d),r(a,p)?o(a[p])?a[p].push(m):a[p]=[a[p],m]:a[p]=m}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"===typeof e?i(a(e),function(a){var s=encodeURIComponent(r(a))+n;return o(e[a])?i(e[a],function(e){return s+encodeURIComponent(r(e))}).join(t):s+encodeURIComponent(r(e[a]))}).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){var r=n(29),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(c){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(116),o=500;e.exports=function(e){var t=r(e,function(e){return n.size===o&&n.clear(),e}),n=t.cache;return t}},function(e,t,n){var r=n(39),o="Expected a function";function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},function(e,t,n){var r=n(118),o=n(31),i=n(40);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(e,t,n){var r=n(119),o=n(124),i=n(125),a=n(126),s=n(127);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(30);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t,n){var r=n(24),o=n(121),i=n(13),a=n(69),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,f=u.hasOwnProperty,d=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?d:s).test(a(e))}},function(e,t,n){var r=n(122),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},function(e,t,n){var r=n(12)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(30),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===o?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(30),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(30),o="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?o:t,this}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(32),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(32);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(32);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(32);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(33);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(33);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(33);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(33);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t,n){var r=n(29),o=n(64),i=n(11),a=n(28),s=1/0,c=r?r.prototype:void 0,u=c?c.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},function(e,t,n){var r=n(42),o=n(71),i=n(150),a=n(153),s=n(168),c=n(11),u=n(45),l=n(48),f=1,d="[object Arguments]",p="[object Array]",m="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,g,y){var b=c(e),_=c(t),w=b?p:s(e),E=_?p:s(t),x=(w=w==d?m:w)==m,S=(E=E==d?m:E)==m,O=w==E;if(O&&u(e)){if(!u(t))return!1;b=!0,x=!1}if(O&&!x)return y||(y=new r),b||l(e)?o(e,t,n,v,g,y):i(e,t,w,n,v,g,y);if(!(n&f)){var k=x&&h.call(e,"__wrapped__"),j=S&&h.call(t,"__wrapped__");if(k||j){var C=k?e.value():e,P=j?t.value():t;return y||(y=new r),g(C,P,n,v,y)}}return!!O&&(y||(y=new r),a(e,t,n,v,g,y))}},function(e,t,n){var r=n(31);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(31),o=n(40),i=n(39),a=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.length<a-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(s)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(39),o=n(146),i=n(147);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},function(e,t){var n="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,n),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(29),o=n(72),i=n(22),a=n(71),s=n(151),c=n(152),u=1,l=2,f="[object Boolean]",d="[object Date]",p="[object Error]",m="[object Map]",h="[object Number]",v="[object RegExp]",g="[object Set]",y="[object String]",b="[object Symbol]",_="[object ArrayBuffer]",w="[object DataView]",E=r?r.prototype:void 0,x=E?E.valueOf:void 0;e.exports=function(e,t,n,r,E,S,O){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _:return!(e.byteLength!=t.byteLength||!S(new o(e),new o(t)));case f:case d:case h:return i(+e,+t);case p:return e.name==t.name&&e.message==t.message;case v:case y:return e==t+"";case m:var k=s;case g:var j=r&u;if(k||(k=c),e.size!=t.size&&!j)return!1;var C=O.get(e);if(C)return C==t;r|=l,O.set(e,t);var P=a(k(e),k(t),r,E,S,O);return O.delete(e),P;case b:if(x)return x.call(e)==x.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},function(e,t,n){var r=n(154),o=1,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,s,c){var u=n&o,l=r(e),f=l.length;if(f!=r(t).length&&!u)return!1;for(var d=f;d--;){var p=l[d];if(!(u?p in t:i.call(t,p)))return!1}var m=c.get(e),h=c.get(t);if(m&&h)return m==t&&h==e;var v=!0;c.set(e,t),c.set(t,e);for(var g=u;++d<f;){var y=e[p=l[d]],b=t[p];if(a)var _=u?a(b,y,p,t,e,c):a(y,b,p,e,t,c);if(!(void 0===_?y===b||s(y,b,n,a,c):_)){v=!1;break}g||(g="constructor"==p)}if(v&&!g){var w=e.constructor,E=t.constructor;w!=E&&"constructor"in e&&"constructor"in t&&!("function"==typeof w&&w instanceof w&&"function"==typeof E&&E instanceof E)&&(v=!1)}return c.delete(e),c.delete(t),v}},function(e,t,n){var r=n(155),o=n(157),i=n(43);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(156),o=n(11);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(158),o=n(159),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return i.call(e,t)}))}:o;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},function(e,t){e.exports=function(){return[]}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(19),o=n(15),i="[object Arguments]";e.exports=function(e){return o(e)&&r(e)==i}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(19),o=n(49),i=n(15),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(66),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s}).call(this,n(46)(e))},function(e,t,n){var r=n(50),o=n(167),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(74)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(169),o=n(40),i=n(170),a=n(171),s=n(172),c=n(19),u=n(69),l=u(r),f=u(o),d=u(i),p=u(a),m=u(s),h=c;(r&&"[object DataView]"!=h(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=h(new o)||i&&"[object Promise]"!=h(i.resolve())||a&&"[object Set]"!=h(new a)||s&&"[object WeakMap]"!=h(new s))&&(h=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case d:return"[object Promise]";case p:return"[object Set]";case m:return"[object WeakMap]"}return t}),e.exports=h},function(e,t,n){var r=n(16)(n(12),"DataView");e.exports=r},function(e,t,n){var r=n(16)(n(12),"Promise");e.exports=r},function(e,t,n){var r=n(16)(n(12),"Set");e.exports=r},function(e,t,n){var r=n(16)(n(12),"WeakMap");e.exports=r},function(e,t,n){var r=n(75).default,o=n(174);e.exports=function(e){var t=o(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(75).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(177);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var r=n(42),o=n(76),i=n(78),a=n(180),s=n(13),c=n(81),u=n(80);e.exports=function e(t,n,l,f,d){t!==n&&i(n,function(i,c){if(d||(d=new r),s(i))a(t,n,c,l,e,f,d);else{var p=f?f(u(t,c),i,c+"",t,n,d):void 0;void 0===p&&(p=i),o(t,c,p)}},c)}},function(e,t){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++o];if(!1===n(i[c],c,i))break}return t}}},function(e,t,n){var r=n(76),o=n(181),i=n(182),a=n(65),s=n(184),c=n(44),u=n(11),l=n(186),f=n(45),d=n(24),p=n(13),m=n(187),h=n(48),v=n(80),g=n(188);e.exports=function(e,t,n,y,b,_,w){var E=v(e,n),x=v(t,n),S=w.get(x);if(S)r(e,n,S);else{var O=_?_(E,x,n+"",e,t,w):void 0,k=void 0===O;if(k){var j=u(x),C=!j&&f(x),P=!j&&!C&&h(x);O=x,j||C||P?u(E)?O=E:l(E)?O=a(E):C?(k=!1,O=o(x,!0)):P?(k=!1,O=i(x,!0)):O=[]:m(x)||c(x)?(O=E,c(E)?O=g(E):p(E)&&!d(E)||(O=s(x))):k=!1}k&&(w.set(x,O),b(O,x,y,_,w),w.delete(x)),r(e,n,O)}}},function(e,t,n){(function(e){var r=n(12),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(46)(e))},function(e,t,n){var r=n(183);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(72);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){var r=n(185),o=n(79),i=n(50);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},function(e,t,n){var r=n(13),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},function(e,t,n){var r=n(34),o=n(15);e.exports=function(e){return o(e)&&r(e)}},function(e,t,n){var r=n(19),o=n(79),i=n(15),a="[object Object]",s=Function.prototype,c=Object.prototype,u=s.toString,l=c.hasOwnProperty,f=u.call(Object);e.exports=function(e){if(!i(e)||r(e)!=a)return!1;var t=o(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==f}},function(e,t,n){var r=n(189),o=n(81);e.exports=function(e){return r(e,o(e))}},function(e,t,n){var r=n(190),o=n(35);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,c=t.length;++s<c;){var u=t[s],l=i?i(n[u],e[u],u,n,e):void 0;void 0===l&&(l=e[u]),a?o(n,u,l):r(n,u,l)}return n}},function(e,t,n){var r=n(35),o=n(22),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(13),o=n(50),i=n(192),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var r=n(194),o=n(201);e.exports=function(e){return r(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var c=n[r];c&&e(t,c,r,a)}return t})}},function(e,t,n){var r=n(51),o=n(195),i=n(197);e.exports=function(e,t){return i(o(e,t,r),e+"")}},function(e,t,n){var r=n(196),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),c=Array(s);++a<s;)c[a]=i[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=i[a];return u[t]=n(c),r(e,this,u)}}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(198),o=n(200)(r);e.exports=o},function(e,t,n){var r=n(199),o=n(77),i=n(51),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){var n=800,r=16,o=Date.now;e.exports=function(e){var t=0,i=0;return function(){var a=o(),s=r-(a-i);if(i=a,s>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(22),o=n(34),i=n(47),a=n(13);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},function(e,t,n){var r=n(78),o=n(43);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t,n){var r=n(204),o=n(207),i=n(51),a=n(11),s=n(212);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},function(e,t,n){var r=n(205),o=n(206),i=n(83);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(42),o=n(41),i=1,a=2;e.exports=function(e,t,n,s){var c=n.length,u=c,l=!s;if(null==e)return!u;for(e=Object(e);c--;){var f=n[c];if(l&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++c<u;){var d=(f=n[c])[0],p=e[d],m=f[1];if(l&&f[2]){if(void 0===p&&!(d in e))return!1}else{var h=new r;if(s)var v=s(p,m,d,e,t,h);if(!(void 0===v?o(m,p,i|a,s,h):v))return!1}}return!0}},function(e,t,n){var r=n(82),o=n(43);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},function(e,t,n){var r=n(41),o=n(208),i=n(209),a=n(52),s=n(82),c=n(83),u=n(23),l=1,f=2;e.exports=function(e,t){return a(e)&&s(t)?c(u(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,l|f)}}},function(e,t,n){var r=n(84);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){var r=n(210),o=n(211);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(85),o=n(44),i=n(11),a=n(47),s=n(49),c=n(23);e.exports=function(e,t,n){for(var u=-1,l=(t=r(t,e)).length,f=!1;++u<l;){var d=c(t[u]);if(!(f=null!=e&&n(e,d)))break;e=e[d]}return f||++u!=l?f:!!(l=null==e?0:e.length)&&s(l)&&a(d,l)&&(i(e)||o(e))}},function(e,t,n){var r=n(213),o=n(214),i=n(52),a=n(23);e.exports=function(e){return i(e)?r(a(e)):o(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(84);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";n(217);var r=n(0),o=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,l=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,r)&&!c.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:l,props:i,_owner:a.current}}t.jsx=u,t.jsxs=u},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var n,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))o.call(n,u)&&(s[u]=n[u]);if(r){a=r(n);for(var l=0;l<a.length;l++)i.call(n,a[l])&&(s[a[l]]=n[a[l]])}}return s}},function(e,t,n){},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}n.r(t);var a=n(0),s=n.n(a),c=s.a.createContext(null);var u=function(e){e()},l=function(){return u};var f={notify:function(){},get:function(){return[]}};function d(e,t){var n,r=f;function o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){var e=l(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e(function(){for(var e=t;e;)e.callback(),e=e.next})},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var a={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=f)},getListeners:function(){return r}};return a}var p="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?a.useLayoutEffect:a.useEffect;var m=function(e){var t=e.store,n=e.context,r=e.children,o=Object(a.useMemo)(function(){var e=d(t);return{store:t,subscription:e}},[t]),i=Object(a.useMemo)(function(){return t.getState()},[t]);p(function(){var e=o.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),i!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}},[o,i]);var u=n||c;return s.a.createElement(u.Provider,{value:o},r)};function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}function v(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var g=n(21),y=n.n(g),b=n(86),_=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],w=["reactReduxForwardedRef"],E=[],x=[null,null];function S(e,t){var n=e[1];return[t.payload,n+1]}function O(e,t,n){p(function(){return e.apply(void 0,t)},n)}function k(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function j(e,t,n,r,o,i,a,s,c,u){if(e){var l=!1,f=null,d=function(){if(!l){var e,n,d=t.getState();try{e=r(d,o.current)}catch(p){n=p,f=p}n||(f=null),e===i.current?a.current||c():(i.current=e,s.current=e,a.current=!0,u({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=d,n.trySubscribe(),d();return function(){if(l=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}}var C=function(){return[null,0]};function P(e,t){void 0===t&&(t={});var n=t,r=n.getDisplayName,o=void 0===r?function(e){return"ConnectAdvanced("+e+")"}:r,i=n.methodName,u=void 0===i?"connectAdvanced":i,l=n.renderCountProp,f=void 0===l?void 0:l,p=n.shouldHandleStateChanges,m=void 0===p||p,g=n.storeKey,P=void 0===g?"store":g,N=(n.withRef,n.forwardRef),T=void 0!==N&&N,I=n.context,A=void 0===I?c:I,F=v(n,_),R=A;return function(t){var n=t.displayName||t.name||"Component",r=o(n),i=h({},F,{getDisplayName:o,methodName:u,renderCountProp:f,shouldHandleStateChanges:m,storeKey:P,displayName:r,wrappedComponentName:n,WrappedComponent:t}),c=F.pure;var l=c?a.useMemo:function(e){return e()};function p(n){var r=Object(a.useMemo)(function(){var e=n.reactReduxForwardedRef,t=v(n,w);return[n.context,e,t]},[n]),o=r[0],c=r[1],u=r[2],f=Object(a.useMemo)(function(){return o&&o.Consumer&&Object(b.isContextConsumer)(s.a.createElement(o.Consumer,null))?o:R},[o,R]),p=Object(a.useContext)(f),g=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(p)&&Boolean(p.store);var y=g?n.store:p.store,_=Object(a.useMemo)(function(){return function(t){return e(t.dispatch,i)}(y)},[y]),P=Object(a.useMemo)(function(){if(!m)return x;var e=d(y,g?null:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[y,g,p]),N=P[0],T=P[1],I=Object(a.useMemo)(function(){return g?p:h({},p,{subscription:N})},[g,p,N]),A=Object(a.useReducer)(S,E,C),F=A[0][0],D=A[1];if(F&&F.error)throw F.error;var M=Object(a.useRef)(),U=Object(a.useRef)(u),L=Object(a.useRef)(),V=Object(a.useRef)(!1),B=l(function(){return L.current&&u===U.current?L.current:_(y.getState(),u)},[y,F,u]);O(k,[U,M,V,u,B,L,T]),O(j,[m,y,N,_,U,M,V,L,T,D],[y,N,_]);var z=Object(a.useMemo)(function(){return s.a.createElement(t,h({},B,{ref:c}))},[c,t,B]);return Object(a.useMemo)(function(){return m?s.a.createElement(f.Provider,{value:I},z):z},[f,z,I])}var g=c?s.a.memo(p):p;if(g.WrappedComponent=t,g.displayName=p.displayName=r,T){var _=s.a.forwardRef(function(e,t){return s.a.createElement(g,h({},e,{reactReduxForwardedRef:t}))});return _.displayName=r,_.WrappedComponent=t,y()(_,t)}return y()(g,t)}}function N(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function T(e,t){if(N(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!N(e[n[o]],t[n[o]]))return!1;return!0}function I(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function A(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function F(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=A(e);var o=r(t,n);return"function"===typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=A(o),o=r(t,n)),o},r}}var R=[function(e){return"function"===typeof e?F(e):void 0},function(e){return e?void 0:I(function(e){return{dispatch:e}})},function(e){return e&&"object"===typeof e?I(function(t){return function(e,t){var n={},r=function(r){var o=e[r];"function"===typeof o&&(n[r]=function(){return t(o.apply(void 0,arguments))})};for(var o in e)r(o);return n}(e,t)}):void 0}];var D=[function(e){return"function"===typeof e?F(e):void 0},function(e){return e?void 0:I(function(){return{}})}];function M(e,t,n){return h({},n,e,t)}var U=[function(e){return"function"===typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,s){var c=e(t,n,s);return a?o&&i(c,r)||(r=c):(a=!0,r=c),r}}}(e):void 0},function(e){return e?void 0:function(){return M}}];var L=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function V(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function B(e,t,n,r,o){var i,a,s,c,u,l=o.areStatesEqual,f=o.areOwnPropsEqual,d=o.areStatePropsEqual,p=!1;function m(o,p){var m=!f(p,a),h=!l(o,i,p,a);return i=o,a=p,m&&h?(s=e(i,a),t.dependsOnOwnProps&&(c=t(r,a)),u=n(s,c,a)):m?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(c=t(r,a)),u=n(s,c,a)):h?function(){var t=e(i,a),r=!d(t,s);return s=t,r&&(u=n(s,c,a)),u}():u}return function(o,l){return p?m(o,l):(s=e(i=o,a=l),c=t(r,a),u=n(s,c,a),p=!0,u)}}function z(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=v(t,L),a=n(e,i),s=r(e,i),c=o(e,i);return(i.pure?B:V)(a,s,c,e,i)}var q=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function W(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function H(e,t){return e===t}function $(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?P:n,o=t.mapStateToPropsFactories,i=void 0===o?D:o,a=t.mapDispatchToPropsFactories,s=void 0===a?R:a,c=t.mergePropsFactories,u=void 0===c?U:c,l=t.selectorFactory,f=void 0===l?z:l;return function(e,t,n,o){void 0===o&&(o={});var a=o,c=a.pure,l=void 0===c||c,d=a.areStatesEqual,p=void 0===d?H:d,m=a.areOwnPropsEqual,g=void 0===m?T:m,y=a.areStatePropsEqual,b=void 0===y?T:y,_=a.areMergedPropsEqual,w=void 0===_?T:_,E=v(a,q),x=W(e,i,"mapStateToProps"),S=W(t,s,"mapDispatchToProps"),O=W(n,u,"mergeProps");return r(f,h({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:x,initMapDispatchToProps:S,initMergeProps:O,pure:l,areStatesEqual:p,areOwnPropsEqual:g,areStatePropsEqual:b,areMergedPropsEqual:w},E))}}var G=$();var K,Y=n(9),X=n.n(Y);function Z(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}K=Y.unstable_batchedUpdates,u=K;var J=function(e){var t=Object(a.useRef)(e);return Object(a.useEffect)(function(){t.current=e},[e]),t};function Q(e){var t=J(e);return Object(a.useCallback)(function(){return t.current&&t.current.apply(t,arguments)},[t])}var ee=function(e,t){var n=Object(a.useRef)(!0);Object(a.useEffect)(function(){if(!n.current)return e();n.current=!1},t)};function te(e){var t=function(e){var t=Object(a.useRef)(e);return t.current=e,t}(e);Object(a.useEffect)(function(){return function(){return t.current()}},[])}var ne=Math.pow(2,31)-1;function re(){var e=function(){var e=Object(a.useRef)(!0),t=Object(a.useRef)(function(){return e.current});return Object(a.useEffect)(function(){return function(){e.current=!1}},[]),t.current}(),t=Object(a.useRef)();return te(function(){return clearTimeout(t.current)}),Object(a.useMemo)(function(){var n=function(){return clearTimeout(t.current)};return{set:function(r,o){void 0===o&&(o=0),e()&&(n(),o<=ne?t.current=setTimeout(r,o):function e(t,n,r){var o=r-Date.now();t.current=o<=ne?setTimeout(n,o):setTimeout(function(){return e(t,n,r)},ne)}(t,r,Date.now()+o))},clear:n}},[])}var oe=function(e){const t=Object(a.useRef)(e);return Object(a.useEffect)(()=>{t.current=e},[e]),t};function ie(e){const t=oe(e);return Object(a.useCallback)(function(){return t.current&&t.current(...arguments)},[t])}var ae=n(36);n(90);new WeakMap;var se=n(1);const ce=["as","disabled"];function ue(e){let{tagName:t,disabled:n,href:r,target:o,rel:i,onClick:a,tabIndex:s=0,type:c}=e;t||(t=null!=r||null!=o||null!=i?"a":"button");const u={tagName:t};if("button"===t)return[{type:c||"button",disabled:n},u];const l=e=>{(n||"a"===t&&function(e){return!e||"#"===e.trim()}(r))&&e.preventDefault(),n?e.stopPropagation():null==a||a(e)};return[{role:"button",disabled:void 0,tabIndex:n?void 0:s,href:"a"===t&&n?void 0:r,target:"a"===t?o:void 0,"aria-disabled":n||void 0,rel:"a"===t?i:void 0,onClick:l,onKeyDown:e=>{" "===e.key&&(e.preventDefault(),l(e))}},u]}const le=a.forwardRef((e,t)=>{let{as:n,disabled:r}=e,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,ce);const[i,{tagName:a}]=ue(Object.assign({tagName:n,disabled:r},o));return Object(se.jsx)(a,Object.assign({},o,i,{ref:t}))});le.displayName="Button";const fe=["onKeyDown"];const de=a.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,fe);const[o]=ue(Object.assign({tagName:"a"},r)),i=ie(e=>{o.onKeyDown(e),null==n||n(e)});return function(e){return!e||"#"===e.trim()}(r.href)&&!r.role||"button"===r.role?Object(se.jsx)("a",Object.assign({ref:t},r,o,{onKeyDown:i})):Object(se.jsx)("a",Object.assign({ref:t},r,{onKeyDown:n}))});de.displayName="Anchor";var pe=de,me=n(4),he=n.n(me),ve=n(6),ge=n.n(ve);function ye(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function be(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}function _e(e,t){return Object.keys(t).reduce(function(n,r){var o,i=n,s=i[ye(r)],c=i[r],u=v(i,[ye(r),r].map(be)),l=t[r],f=function(e,t,n){var r=Object(a.useRef)(void 0!==e),o=Object(a.useState)(t),i=o[0],s=o[1],c=void 0!==e,u=r.current;return r.current=c,!c&&u&&i!==t&&s(t),[c?e:i,Object(a.useCallback)(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];n&&n.apply(void 0,[e].concat(r)),s(e)},[n])]}(c,s,e[l]),d=f[0],p=f[1];return h({},u,((o={})[r]=d,o[l]=p,o))},e)}function we(e,t){return(we=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ee(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,we(e,t)}function xe(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function Se(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function Oe(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}xe.__suppressDeprecationWarning=!0,Se.__suppressDeprecationWarning=!0,Oe.__suppressDeprecationWarning=!0;var ke=/-(.)/g;const je=a.createContext({prefixes:{}}),{Consumer:Ce,Provider:Pe}=je;function Ne(e,t){const{prefixes:n}=Object(a.useContext)(je);return e||n[t]||t}function Te(){const{dir:e}=Object(a.useContext)(je);return"rtl"===e}const Ie=["className","bsPrefix","as"],Ae=e=>e[0].toUpperCase()+function(e){return e.replace(ke,function(e,t){return t.toUpperCase()})}(e).slice(1);function Fe(e){let{displayName:t=Ae(e),Component:n,defaultProps:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=a.forwardRef((t,r)=>{let{className:o,bsPrefix:a,as:s=n||"div"}=t,c=Z(t,Ie);const u=Ne(a,e);return Object(se.jsx)(s,i({ref:r,className:he()(o,u)},c))});return o.defaultProps=r,o.displayName=t,o}var Re=Fe("carousel-caption");const De=["as","bsPrefix","className"],Me=a.forwardRef((e,t)=>{let{as:n="div",bsPrefix:r,className:o}=e,a=Z(e,De);const s=he()(o,Ne(r,"carousel-item"));return Object(se.jsx)(n,i(i({ref:t},a),{},{className:s}))});Me.displayName="CarouselItem";var Ue=Me;function Le(e,t){let n=0;return a.Children.map(e,e=>a.isValidElement(e)?t(e,n++):e)}function Ve(e){return e&&e.ownerDocument||document}function Be(e,t){return function(e){var t=Ve(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}var ze=/([A-Z])/g;var qe=/^ms-/;function We(e){return function(e){return e.replace(ze,"-$1").toLowerCase()}(e).replace(qe,"-ms-")}var He=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;var $e=function(e,t){var n="",r="";if("string"===typeof t)return e.style.getPropertyValue(We(t))||Be(e).getPropertyValue(We(t));Object.keys(t).forEach(function(o){var i=t[o];i||0===i?function(e){return!(!e||!He.test(e))}(o)?r+=o+"("+i+") ":n+=We(o)+": "+i+";":e.style.removeProperty(We(o))}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n},Ge=!("undefined"===typeof window||!window.document||!window.document.createElement),Ke=!1,Ye=!1;try{var Xe={get passive(){return Ke=!0},get once(){return Ye=Ke=!0}};Ge&&(window.addEventListener("test",Xe,Xe),window.removeEventListener("test",Xe,!0))}catch(Jc){}var Ze=function(e,t,n,r){if(r&&"boolean"!==typeof r&&!Ye){var o=r.once,i=r.capture,a=n;!Ye&&o&&(a=n.__once||function e(r){this.removeEventListener(t,e,i),n.call(this,r)},n.__once=a),e.addEventListener(t,a,Ke?r:i)}e.addEventListener(t,n,r)};var Je=function(e,t,n,r){var o=r&&"boolean"!==typeof r?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)};var Qe=function(e,t,n,r){return Ze(e,t,n,r),function(){Je(e,t,n,r)}};function et(e,t,n){void 0===n&&(n=5);var r=!1,o=setTimeout(function(){r||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent(t,n,r),e.dispatchEvent(o)}}(e,"transitionend",!0)},t+n),i=Qe(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(o),i()}}function tt(e,t,n,r){null==n&&(n=function(e){var t=$e(e,"transitionDuration")||"",n=-1===t.indexOf("ms")?1e3:1;return parseFloat(t)*n}(e)||0);var o=et(e,n,r),i=Qe(e,"transitionend",t);return function(){o(),i()}}function nt(e,t){const n=$e(e,t)||"",r=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*r}function rt(e,t){const n=nt(e,"transitionDuration"),r=nt(e,"transitionDelay"),o=tt(e,n=>{n.target===e&&(o(),t(n))},n+r)}function ot(e){e.offsetHeight}var it=!1,at=s.a.createContext(null),st="unmounted",ct="exited",ut="entering",lt="entered",ft=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=ct,r.appearStatus=ut):o=lt:o=t.unmountOnExit||t.mountOnEnter?st:ct,r.state={status:o},r.nextCallback=null,r}Ee(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===st?{status:ct}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==ut&&n!==lt&&(t=ut):n!==ut&&n!==lt||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===ut){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:X.a.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ct&&this.setState({status:st})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[X.a.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),c=r?s.appear:s.enter;!e&&!n||it?this.safeSetState({status:lt},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:ut},function(){t.props.onEntering(i,a),t.onTransitionEnd(c,function(){t.safeSetState({status:lt},function(){t.props.onEntered(i,a)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:X.a.findDOMNode(this);t&&!it?(this.props.onExit(r),this.safeSetState({status:"exiting"},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:ct},function(){e.props.onExited(r)})})})):this.safeSetState({status:ct},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:X.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===st)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,v(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s.a.createElement(at.Provider,{value:null},"function"===typeof n?n(e,r):s.a.cloneElement(s.a.Children.only(n),r))},t}(s.a.Component);function dt(){}ft.contextType=at,ft.propTypes={},ft.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:dt,onEntering:dt,onEntered:dt,onExit:dt,onExiting:dt,onExited:dt},ft.UNMOUNTED=st,ft.EXITED=ct,ft.ENTERING=ut,ft.ENTERED=lt,ft.EXITING="exiting";var pt=ft,mt=function(e){return e&&"function"!==typeof e?function(t){e.current=t}:e};var ht=function(e,t){return Object(a.useMemo)(function(){return function(e,t){var n=mt(e),r=mt(t);return function(e){n&&n(e),r&&r(e)}}(e,t)},[e,t])};const vt=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children","childRef"];var gt=s.a.forwardRef((e,t)=>{let{onEnter:n,onEntering:r,onEntered:o,onExit:c,onExiting:u,onExited:l,addEndListener:f,children:d,childRef:p}=e,m=Z(e,vt);const h=Object(a.useRef)(null),v=ht(h,p),g=e=>{v(function(e){return e&&"setState"in e?X.a.findDOMNode(e):null!=e?e:null}(e))},y=e=>t=>{e&&h.current&&e(h.current,t)},b=Object(a.useCallback)(y(n),[n]),_=Object(a.useCallback)(y(r),[r]),w=Object(a.useCallback)(y(o),[o]),E=Object(a.useCallback)(y(c),[c]),x=Object(a.useCallback)(y(u),[u]),S=Object(a.useCallback)(y(l),[l]),O=Object(a.useCallback)(y(f),[f]);return Object(se.jsx)(pt,i(i({ref:t},m),{},{onEnter:b,onEntered:w,onEntering:_,onExit:E,onExited:S,onExiting:x,addEndListener:O,nodeRef:h,children:"function"===typeof d?(e,t)=>d(e,i(i({},t),{},{ref:g})):s.a.cloneElement(d,{ref:g})}))});const yt=["as","bsPrefix","slide","fade","controls","indicators","indicatorLabels","activeIndex","onSelect","onSlide","onSlid","interval","keyboard","onKeyDown","pause","onMouseOver","onMouseOut","wrap","touch","onTouchStart","onTouchMove","onTouchEnd","prevIcon","prevLabel","nextIcon","nextLabel","variant","className","children"],bt={slide:!0,fade:!1,controls:!0,indicators:!0,indicatorLabels:[],defaultActiveIndex:0,interval:5e3,keyboard:!0,pause:"hover",wrap:!0,touch:!0,prevIcon:Object(se.jsx)("span",{"aria-hidden":"true",className:"carousel-control-prev-icon"}),prevLabel:"Previous",nextIcon:Object(se.jsx)("span",{"aria-hidden":"true",className:"carousel-control-next-icon"}),nextLabel:"Next"};const _t=a.forwardRef((e,t)=>{const n=_e(e,{activeIndex:"onSelect"}),{as:r="div",bsPrefix:o,slide:s,fade:c,controls:u,indicators:l,indicatorLabels:f,activeIndex:d,onSelect:p,onSlide:m,onSlid:h,interval:v,keyboard:g,onKeyDown:y,pause:b,onMouseOver:_,onMouseOut:w,wrap:E,touch:x,onTouchStart:S,onTouchMove:O,onTouchEnd:k,prevIcon:j,prevLabel:C,nextIcon:P,nextLabel:N,variant:T,className:I,children:A}=n,F=Z(n,yt),R=Ne(o,"carousel"),D=Te(),M=Object(a.useRef)(null),[U,L]=Object(a.useState)("next"),[V,B]=Object(a.useState)(!1),[z,q]=Object(a.useState)(!1),[W,H]=Object(a.useState)(d||0);z||d===W||(M.current?L(M.current):L((d||0)>W?"next":"prev"),s&&q(!0),H(d||0)),Object(a.useEffect)(()=>{M.current&&(M.current=null)});let $,G=0;!function(e,t){let n=0;a.Children.forEach(e,e=>{a.isValidElement(e)&&t(e,n++)})}(A,(e,t)=>{++G,t===d&&($=e.props.interval)});const K=J($),Y=Object(a.useCallback)(e=>{if(z)return;let t=W-1;if(t<0){if(!E)return;t=G-1}M.current="prev",null==p||p(t,e)},[z,W,p,E,G]),X=Q(e=>{if(z)return;let t=W+1;if(t>=G){if(!E)return;t=0}M.current="next",null==p||p(t,e)}),te=Object(a.useRef)();Object(a.useImperativeHandle)(t,()=>({element:te.current,prev:Y,next:X}));const ne=Q(()=>{!document.hidden&&function(e){if(!e||!e.style||!e.parentNode||!e.parentNode.style)return!1;const t=getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&"none"!==getComputedStyle(e.parentNode).display}(te.current)&&(D?Y():X())}),oe="next"===U?"start":"end";ee(()=>{s||(null==m||m(W,oe),null==h||h(W,oe))},[W]);const ie="".concat(R,"-item-").concat(U),ae="".concat(R,"-item-").concat(oe),ce=Object(a.useCallback)(e=>{ot(e),null==m||m(W,oe)},[m,W,oe]),ue=Object(a.useCallback)(()=>{q(!1),null==h||h(W,oe)},[h,W,oe]),le=Object(a.useCallback)(e=>{if(g&&!/input|textarea/i.test(e.target.tagName))switch(e.key){case"ArrowLeft":return e.preventDefault(),void(D?X(e):Y(e));case"ArrowRight":return e.preventDefault(),void(D?Y(e):X(e))}null==y||y(e)},[g,y,Y,X,D]),fe=Object(a.useCallback)(e=>{"hover"===b&&B(!0),null==_||_(e)},[b,_]),de=Object(a.useCallback)(e=>{B(!1),null==w||w(e)},[w]),me=Object(a.useRef)(0),ve=Object(a.useRef)(0),ge=re(),ye=Object(a.useCallback)(e=>{me.current=e.touches[0].clientX,ve.current=0,"hover"===b&&B(!0),null==S||S(e)},[b,S]),be=Object(a.useCallback)(e=>{e.touches&&e.touches.length>1?ve.current=0:ve.current=e.touches[0].clientX-me.current,null==O||O(e)},[O]),we=Object(a.useCallback)(e=>{if(x){const t=ve.current;Math.abs(t)>40&&(t>0?Y(e):X(e))}"hover"===b&&ge.set(()=>{B(!1)},v||void 0),null==k||k(e)},[x,b,Y,X,ge,v,k]),Ee=null!=v&&!V&&!z,xe=Object(a.useRef)();Object(a.useEffect)(()=>{var e,t;if(!Ee)return;const n=D?Y:X;return xe.current=window.setInterval(document.visibilityState?ne:n,null!=(e=null!=(t=K.current)?t:v)?e:void 0),()=>{null!==xe.current&&clearInterval(xe.current)}},[Ee,Y,X,K,v,ne,D]);const Se=Object(a.useMemo)(()=>l&&Array.from({length:G},(e,t)=>e=>{null==p||p(t,e)}),[l,G,p]);return Object(se.jsxs)(r,i(i({ref:te},F),{},{onKeyDown:le,onMouseOver:fe,onMouseOut:de,onTouchStart:ye,onTouchMove:be,onTouchEnd:we,className:he()(I,R,s&&"slide",c&&"".concat(R,"-fade"),T&&"".concat(R,"-").concat(T)),children:[l&&Object(se.jsx)("div",{className:"".concat(R,"-indicators"),children:Le(A,(e,t)=>Object(se.jsx)("button",{type:"button","data-bs-target":"","aria-label":null!=f&&f.length?f[t]:"Slide ".concat(t+1),className:t===W?"active":void 0,onClick:Se?Se[t]:void 0,"aria-current":t===W},t))}),Object(se.jsx)("div",{className:"".concat(R,"-inner"),children:Le(A,(e,t)=>{const n=t===W;return s?Object(se.jsx)(gt,{in:n,onEnter:n?ce:void 0,onEntered:n?ue:void 0,addEndListener:rt,children:(t,r)=>a.cloneElement(e,i(i({},r),{},{className:he()(e.props.className,n&&"entered"!==t&&ie,("entered"===t||"exiting"===t)&&"active",("entering"===t||"exiting"===t)&&ae)}))}):a.cloneElement(e,{className:he()(e.props.className,n&&"active")})})}),u&&Object(se.jsxs)(se.Fragment,{children:[(E||0!==d)&&Object(se.jsxs)(pe,{className:"".concat(R,"-control-prev"),onClick:Y,children:[j,C&&Object(se.jsx)("span",{className:"visually-hidden",children:C})]}),(E||d!==G-1)&&Object(se.jsxs)(pe,{className:"".concat(R,"-control-next"),onClick:X,children:[P,N&&Object(se.jsx)("span",{className:"visually-hidden",children:N})]})]})]}))});_t.displayName="Carousel",_t.defaultProps=bt;var wt=Object.assign(_t,{Caption:Re,Item:Ue});const Et=i(i({lang:i({},n(87))},{country:"gb",language:"en",simulationSvcUrl:"https://smile-visualization-api-qas.herokuapp.com/upload_smile_visualization",cableSvcUrl:"wss://smile-visualization-api-qas.herokuapp.com/cable",myInvisalignUrl:"https://smile-visualization-api-qas.herokuapp.com/",practiceAccount:null,showTestBar:!1,eu:!0,submitUrl:"https://euleadforms-pp-eu.herokuapp.com/IK/Create2",imgBase:"https://eu-conweb.s3-eu-west-1.amazonaws.com/Content/smvis/img/",assetBase:"https://eu-conweb.s3-eu-west-1.amazonaws.com/",privacyUrl:"https://www.invisalign.co.uk/en/Sub/Pages/privacy.aspx?popup=true",scrollOffset:-100,carouselImageCount:11,hideSample:!0,hideExpander:!0,sampleImageBefore:"https://eu-conweb.s3-eu-west-1.amazonaws.com/img/new/Lotte3_before.jpg",sampleImageAfter:"https://eu-conweb.s3-eu-west-1.amazonaws.com/img/new/Lotte3_after.jpg",progressMessages:["Uploading Photo","Preparing Visualization","Checking for glasses","Checking for hat","Checking for selfie clarity","Checking for great smile","Generating your new smile"],disableSave:!1,disableInternalTracking:!1,gaTrackingLabel:"SmileView",gtmEventPrefix:"gen-sv-",hideHeaderOnSV:!1,hideFooterOnSV:!1,doctorProfileSvcUrl:"https://eudocprofilesvc-production-eu.herokuapp.com/Public/SVData/",doctorProfileImgRoot:"https://eudocprofilesvc-production-eu.herokuapp.com",inpracticeSubmitUrl:"https://euleadforms-pp-eu.herokuapp.com/DocLocContact/SVContact/Create",inpracticeUpdateOptinUrl:"https://euleadforms-pp-eu.herokuapp.com/DocLocContact/SVContact/UpdateOptin",inpracticeCustomDisclaimer:{1089771:"I understand that my personal data, including my SmileView photographs, will be transferred to my selected dental professional or to the organization under which they practice."},userFields:[{type:"email",name:"email",label:"Email*",validate:["required","email","maxLength50"]},{type:"text",name:"first_name",label:"First name",validate:["maxLength50"]},{type:"text",name:"last_name",label:"Last name",validate:["maxLength50"]},{type:"text",name:"postal_code",label:"Postcode",validate:["maxLength50"]},{type:"checkbox",name:"offers_accept",validate:[],label:"I consent to Align Technology contacting me via email, mobile phone, or text to schedule an appointment with the Invisalign Provider(s) of my choosing, or regarding information on Invisalign treatment, special offers and requests for feedback on my treatment experience."}]}),("undefined"===typeof window?{}:window)._svConfig||{});Et.res=function(e){let t=Et.lang[this.language||"en"]||Et.lang.en;return t?t[e]||(Et.lang.en||{})[e]:""},Et.getProgressMessages=function(){return[this.res("capture_progress1"),this.res("capture_progress2"),this.res("capture_progress3"),this.res("capture_progress4"),this.res("capture_progress5"),this.res("capture_progress6"),this.res("capture_progress7")]},Et.getNegativeReasons=function(){return[this.res("thumbsdown_answer1"),this.res("thumbsdown_answer2"),this.res("thumbsdown_answer3"),this.res("thumbsdown_answer4"),this.res("thumbsdown_answer5"),this.res("thumbsdown_answer6")]},Et.extend=function(e){for(let t in e)this[t]=e[t]},Et.extendLangData=function(e){this.lang||(this.lang={});for(let t in e){this.lang[t]||(this.lang[t]={});for(let n in e[t])this.lang[t][n]=e[t][n]}};var xt=Et,St=n(3),Ot=n.n(St),kt=n(37),jt=n.n(kt),Ct=n(10),Pt=n.n(Ct),Nt=n(2),Tt=n.n(Nt),It=n(5),At=n.n(It),Ft=function(e,t,n,r){var o=t.value;return"checkbox"===e?Ot()({},t,{checked:!!o}):"radio"===e?Ot()({},t,{checked:r(o,n),value:n}):"select-multiple"===e?Ot()({},t,{value:o||[]}):"file"===e?Ot()({},t,{value:o||void 0}):t};var Rt=function(e){return!!(e&&e.stopPropagation&&e.preventDefault)},Dt=function(e,t){if(Rt(e)){if(!t&&e.nativeEvent&&void 0!==e.nativeEvent.text)return e.nativeEvent.text;if(t&&void 0!==e.nativeEvent)return e.nativeEvent.text;var n=e,r=n.target,o=r.type,i=r.value,a=r.checked,s=r.files,c=n.dataTransfer;return"checkbox"===o?!!a:"file"===o?s||c&&c.files:"select-multiple"===o?function(e){var t=[];if(e)for(var n=0;n<e.length;n++){var r=e[n];r.selected&&t.push(r.value)}return t}(e.target.options):i}return e},Mt="undefined"!==typeof window&&window.navigator&&window.navigator.product&&"ReactNative"===window.navigator.product,Ut=function(e,t){var n=t.name,r=t.parse,o=t.normalize,i=Dt(e,Mt);return r&&(i=r(i,n)),o&&(i=o(n,i)),i},Lt="text",Vt=function(e,t,n,r){if(t<(e=e||[]).length){if(void 0===r&&!n){var o=[].concat(e);return o.splice(t,0,!0),o[t]=void 0,o}if(null!=r){var i=[].concat(e);return i.splice(t,n,r),i}var a=[].concat(e);return a.splice(t,n),a}if(n)return e;var s=[].concat(e);return s[t]=r,s},Bt=n(14),zt=n.n(Bt),qt=function(e,t){if(!e)return e;var n=zt()(t),r=n.length;if(r){for(var o=e,i=0;i<r&&o;++i)o=o[n[i]];return o}},Wt=function(e,t,n){return function e(t,n,r,o){var i;if(o>=r.length)return n;var a=r[o],s=e(t&&(Array.isArray(t)?t[Number(a)]:t[a]),n,r,o+1);if(!t){var c;if(isNaN(a))return(c={})[a]=s,c;var u=[];return u[parseInt(a,10)]=s,u}if(Array.isArray(t)){var l=[].concat(t);return l[parseInt(a,10)]=s,l}return Ot()({},t,((i={})[a]=s,i))}(e,n,zt()(t),0)},Ht=n(89),$t=n.n(Ht),Gt=n(25),Kt=n.n(Gt),Yt=function(e){return $t()(e)||""===e||isNaN(e)},Xt=function(e,t){return e===t||(e||t?(!e||!t||e._error===t._error)&&((!e||!t||e._warning===t._warning)&&(!s.a.isValidElement(e)&&!s.a.isValidElement(t)&&void 0)):Yt(e)===Yt(t))};var Zt={allowsArrayErrors:!0,empty:{},emptyList:[],getIn:qt,setIn:Wt,deepEqual:function(e,t){return Kt()(e,t,Xt)},deleteIn:function(e,t){return function e(t,n){if(void 0===t||null===t||void 0===n||null===n)return t;for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];if(o.length){if(Array.isArray(t)){if(isNaN(n))throw new Error('Must access array elements with a number, not "'+String(n)+'".');var a=Number(n);if(a<t.length){var s=e.apply(void 0,[t&&t[a]].concat(o));if(s!==t[a]){var c=[].concat(t);return c[a]=s,c}}return t}if(n in t){var u,l=e.apply(void 0,[t&&t[n]].concat(o));return t[n]===l?t:Ot()({},t,((u={})[n]=l,u))}return t}if(Array.isArray(t)){if(isNaN(n))throw new Error('Cannot delete non-numerical index from an array. Given: "'+String(n));var f=Number(n);if(f<t.length){var d=[].concat(t);return d.splice(f,1),d}return t}if(n in t){var p=Ot()({},t);return delete p[n],p}return t}.apply(void 0,[e].concat(zt()(t)))},forEach:function(e,t){return e.forEach(t)},fromJS:function(e){return e},keys:function(e){return e?Array.isArray(e)?e.map(function(e){return e.name}):Object.keys(e):[]},size:function(e){return e?e.length:0},some:function(e,t){return e.some(t)},splice:Vt,equals:function(e,t){return t.every(function(t){return~e.indexOf(t)})},orderChanged:function(e,t){return t.some(function(t,n){return t!==e[n]})},toJS:function(e){return e}},Jt=n(53),Qt=function(e,t,n){return Object(Jt.isValidElementType)(e[t])?null:new Error("Invalid prop `"+t+"` supplied to `"+n+"`.")},en=["_reduxForm"],tn=function(e){return e&&"object"===typeof e},nn=function(e){return e&&"function"===typeof e},rn=function(e){tn(e)&&nn(e.preventDefault)&&e.preventDefault()},on=function(e,t){if(tn(e)&&tn(e.dataTransfer)&&nn(e.dataTransfer.getData))return e.dataTransfer.getData(t)},an=function(e,t,n){tn(e)&&tn(e.dataTransfer)&&nn(e.dataTransfer.setData)&&e.dataTransfer.setData(t,n)};var sn=function(e){var t=e.deepEqual,n=e.getIn,r=function(n){function r(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))||this).ref=s.a.createRef(),e.isPristine=function(){return e.props.pristine},e.getValue=function(){return e.props.value},e.handleChange=function(t){var n=e.props,r=n.name,o=n.dispatch,i=n.parse,a=n.normalize,s=n.onChange,c=n._reduxForm,u=n.value,l=Ut(t,{name:r,parse:i,normalize:a}),f=!1;if(s)if(!Mt&&Rt(t))s(Ot()({},t,{preventDefault:function(){return f=!0,rn(t)}}),l,u,r);else{var d=s(t,l,u,r);Mt&&(f=d)}f||(o(c.change(r,l)),c.asyncValidate&&c.asyncValidate(r,l,"change"))},e.handleFocus=function(t){var n=e.props,r=n.name,o=n.dispatch,i=n.onFocus,a=n._reduxForm,s=!1;i&&(Mt?s=i(t,r):i(Ot()({},t,{preventDefault:function(){return s=!0,rn(t)}}),r)),s||o(a.focus(r))},e.handleBlur=function(t){var n=e.props,r=n.name,o=n.dispatch,i=n.parse,a=n.normalize,s=n.onBlur,c=n._reduxForm,u=n._value,l=n.value,f=Ut(t,{name:r,parse:i,normalize:a});f===u&&void 0!==u&&(f=l);var d=!1;s&&(Mt?d=s(t,f,l,r):s(Ot()({},t,{preventDefault:function(){return d=!0,rn(t)}}),f,l,r)),d||(o(c.blur(r,f)),c.asyncValidate&&c.asyncValidate(r,f,"blur"))},e.handleDragStart=function(t){var n=e.props,r=n.name,o=n.onDragStart,i=n.value;an(t,Lt,null==i?"":i),o&&o(t,r)},e.handleDrop=function(t){var n=e.props,r=n.name,o=n.dispatch,i=n.onDrop,a=n._reduxForm,s=n.value,c=on(t,Lt),u=!1;i&&i(Ot()({},t,{preventDefault:function(){return u=!0,rn(t)}}),c,s,r),u||(o(a.change(r,c)),rn(t))},e}Pt()(r,n);var o=r.prototype;return o.shouldComponentUpdate=function(e){var n=this,r=Object.keys(e),o=Object.keys(this.props);return!!(this.props.children||e.children||r.length!==o.length||r.some(function(r){return~(e.immutableProps||[]).indexOf(r)?n.props[r]!==e[r]:!~en.indexOf(r)&&!t(n.props[r],e[r])}))},o.getRenderedComponent=function(){return this.ref.current},o.render=function(){var t=this.props,n=t.component,r=t.forwardRef,o=t.name,i=t._reduxForm,s=(t.normalize,t.onBlur,t.onChange,t.onFocus,t.onDragStart,t.onDrop,t.immutableProps,At()(t,["component","forwardRef","name","_reduxForm","normalize","onBlur","onChange","onFocus","onDragStart","onDrop","immutableProps"])),c=function(e,t,n){var r=e.getIn,o=e.toJS,i=e.deepEqual,a=n.asyncError,s=n.asyncValidating,c=n.onBlur,u=n.onChange,l=n.onDrop,f=n.onDragStart,d=n.dirty,p=n.dispatch,m=n.onFocus,h=n.form,v=n.format,g=n.initial,y=(n.parse,n.pristine),b=n.props,_=n.state,w=n.submitError,E=n.submitFailed,x=n.submitting,S=n.syncError,O=n.syncWarning,k=(n.validate,n.value),j=n._value,C=(n.warn,At()(n,["asyncError","asyncValidating","onBlur","onChange","onDrop","onDragStart","dirty","dispatch","onFocus","form","format","initial","parse","pristine","props","state","submitError","submitFailed","submitting","syncError","syncWarning","validate","value","_value","warn"])),P=S||a||w,N=O,T=function(e,n){if(null===n)return e;var r=null==e?"":e;return n?n(e,t):r}(k,v);return{input:Ft(C.type,{name:t,onBlur:c,onChange:u,onDragStart:f,onDrop:l,onFocus:m,value:T},j,i),meta:Ot()({},o(_),{active:!(!_||!r(_,"active")),asyncValidating:s,autofilled:!(!_||!r(_,"autofilled")),dirty:d,dispatch:p,error:P,form:h,initial:g,warning:N,invalid:!!P,pristine:y,submitting:!!x,submitFailed:!!E,touched:!(!_||!r(_,"touched")),valid:!P,visited:!(!_||!r(_,"visited"))}),custom:Ot()({},C,{},b)}}(e,o,Ot()({},s,{form:i.form,onBlur:this.handleBlur,onChange:this.handleChange,onDrop:this.handleDrop,onDragStart:this.handleDragStart,onFocus:this.handleFocus})),u=c.custom,l=At()(c,["custom"]);if(r&&(u.ref=this.ref),"string"===typeof n){var f=l.input;return l.meta,Object(a.createElement)(n,Ot()({},f,{},u))}return Object(a.createElement)(n,Ot()({},l,{},u))},r}(a.Component);return r.propTypes={component:Qt,props:Tt.a.object},G(function(e,r){var o=r.name,i=r._reduxForm,a=i.initialValues,s=(0,i.getFormState)(e),c=n(s,"initial."+o),u=void 0!==c?c:a&&n(a,o),l=n(s,"values."+o),f=n(s,"submitting"),d=function(e,t){var n=Zt.getIn(e,t);return n&&n._error?n._error:n}(n(s,"syncErrors"),o),p=function(e,t){var r=n(e,t);return r&&r._warning?r._warning:r}(n(s,"syncWarnings"),o),m=t(l,u);return{asyncError:n(s,"asyncErrors."+o),asyncValidating:n(s,"asyncValidating")===o,dirty:!m,pristine:m,state:n(s,"fields."+o),submitError:n(s,"submitErrors."+o),submitFailed:n(s,"submitFailed"),submitting:f,syncError:d,syncWarning:p,initial:u,value:l,_value:r.value}},void 0,void 0,{forwardRef:!0})(r)},cn=function(e,t,n,r,o,i){if(i)return e===t},un=function(e,t,n){var r=Kt()(e.props,t,cn),o=Kt()(e.state,n,cn);return!r||!o},ln=function(e,t){var n=e._reduxForm.sectionPrefix;return n?n+"."+t:t},fn=a.createContext(null),dn=function(e,t){var n=t.forwardedRef,r=At()(t,["forwardedRef"]);return function(t){return a.createElement(e,Ot()({},r,{_reduxForm:t,ref:n}))}},pn=function(e){var t=function(t){function n(){return t.apply(this,arguments)||this}return Pt()(n,t),n.prototype.render=function(){return a.createElement(fn.Consumer,{children:dn(e,this.props)})},n}(a.Component),n=a.forwardRef(function(e,n){return a.createElement(t,Ot()({},e,{forwardedRef:n}))});return n.displayName=e.displayName||e.name||"Component",n};var mn=function(e){var t=sn(e),n=e.setIn,r=function(e){function r(t){var r;if((r=e.call(this,t)||this).ref=s.a.createRef(),r.normalize=function(e,t){var o=r.props.normalize;if(!o)return t;var i=r.props._reduxForm.getValues();return o(t,r.value,n(i,e,t),i,e)},!t._reduxForm)throw new Error("Field must be inside a component decorated with reduxForm()");return r}Pt()(r,e);var o=r.prototype;return o.componentDidMount=function(){var e=this;this.props._reduxForm.register(this.name,"Field",function(){return e.props.validate},function(){return e.props.warn})},o.shouldComponentUpdate=function(e,t){return un(this,e,t)},o.componentDidUpdate=function(e){var t=this,n=ln(e,e.name),r=ln(this.props,this.props.name);n===r&&Zt.deepEqual(e.validate,this.props.validate)&&Zt.deepEqual(e.warn,this.props.warn)||(this.props._reduxForm.unregister(n),this.props._reduxForm.register(r,"Field",function(){return t.props.validate},function(){return t.props.warn}))},o.componentWillUnmount=function(){this.props._reduxForm.unregister(this.name)},o.getRenderedComponent=function(){return ge()(this.props.forwardRef,"If you want to access getRenderedComponent(), you must specify a forwardRef prop to Field"),this.ref.current?this.ref.current.getRenderedComponent():void 0},o.render=function(){return Object(a.createElement)(t,Ot()({},this.props,{name:this.name,normalize:this.normalize,ref:this.ref}))},jt()(r,[{key:"name",get:function(){return ln(this.props,this.props.name)}},{key:"dirty",get:function(){return!this.pristine}},{key:"pristine",get:function(){return!(!this.ref.current||!this.ref.current.isPristine())}},{key:"value",get:function(){return this.ref.current&&this.ref.current.getValue()}}]),r}(a.Component);return r.propTypes={name:Tt.a.string.isRequired,component:Qt,format:Tt.a.func,normalize:Tt.a.func,onBlur:Tt.a.func,onChange:Tt.a.func,onFocus:Tt.a.func,onDragStart:Tt.a.func,onDrop:Tt.a.func,parse:Tt.a.func,props:Tt.a.object,validate:Tt.a.oneOfType([Tt.a.func,Tt.a.arrayOf(Tt.a.func)]),warn:Tt.a.oneOfType([Tt.a.func,Tt.a.arrayOf(Tt.a.func)]),forwardRef:Tt.a.bool,immutableProps:Tt.a.arrayOf(Tt.a.string),_reduxForm:Tt.a.object},pn(r)}(Zt),hn=n(54),vn=n.n(hn),gn=n(55),yn=n.n(gn),bn=n(20),_n=n.n(bn);function wn(e){return(wn="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 En(e){var t=function(e,t){if("object"!=wn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=wn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wn(t)?t:t+""}function xn(e,t,n){return(t=En(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function On(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sn(Object(n),!0).forEach(function(t){xn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kn(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var jn="function"===typeof Symbol&&Symbol.observable||"@@observable",Cn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Pn={INIT:"@@redux/INIT"+Cn(),REPLACE:"@@redux/REPLACE"+Cn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Cn()}};function Nn(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Tn(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(kn(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(kn(1));return n(Tn)(e,t)}if("function"!==typeof e)throw new Error(kn(2));var o=e,i=t,a=[],s=a,c=!1;function u(){s===a&&(s=a.slice())}function l(){if(c)throw new Error(kn(3));return i}function f(e){if("function"!==typeof e)throw new Error(kn(4));if(c)throw new Error(kn(5));var t=!0;return u(),s.push(e),function(){if(t){if(c)throw new Error(kn(6));t=!1,u();var n=s.indexOf(e);s.splice(n,1),a=null}}}function d(e){if(!Nn(e))throw new Error(kn(7));if("undefined"===typeof e.type)throw new Error(kn(8));if(c)throw new Error(kn(9));try{c=!0,i=o(i,e)}finally{c=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}return d({type:Pn.INIT}),(r={dispatch:d,subscribe:f,getState:l,replaceReducer:function(e){if("function"!==typeof e)throw new Error(kn(10));o=e,d({type:Pn.REPLACE})}})[jn]=function(){var e,t=f;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(kn(11));function n(){e.next&&e.next(l())}return n(),{unsubscribe:t(n)}}})[jn]=function(){return this},e},r}function In(e,t){return function(){return t(e.apply(this,arguments))}}function An(e,t){if("function"===typeof e)return In(e,t);if("object"!==typeof e||null===e)throw new Error(kn(16));var n={};for(var r in e){var o=e[r];"function"===typeof o&&(n[r]=In(o,t))}return n}var Fn="@@redux-form/ARRAY_INSERT",Rn="@@redux-form/ARRAY_MOVE",Dn="@@redux-form/ARRAY_POP",Mn="@@redux-form/ARRAY_PUSH",Un="@@redux-form/ARRAY_REMOVE",Ln="@@redux-form/ARRAY_REMOVE_ALL",Vn="@@redux-form/ARRAY_SHIFT",Bn="@@redux-form/ARRAY_SPLICE",zn="@@redux-form/ARRAY_UNSHIFT",qn="@@redux-form/ARRAY_SWAP",Wn="@@redux-form/AUTOFILL",Hn="@@redux-form/BLUR",$n="@@redux-form/CHANGE",Gn="@@redux-form/CLEAR_FIELDS",Kn="@@redux-form/CLEAR_SUBMIT",Yn="@@redux-form/CLEAR_SUBMIT_ERRORS",Xn="@@redux-form/CLEAR_ASYNC_ERROR",Zn="@@redux-form/DESTROY",Jn="@@redux-form/FOCUS",Qn="@@redux-form/INITIALIZE",er="@@redux-form/REGISTER_FIELD",tr="@@redux-form/RESET",nr="@@redux-form/RESET_SECTION",rr="@@redux-form/SET_SUBMIT_FAILED",or="@@redux-form/SET_SUBMIT_SUCCEEDED",ir="@@redux-form/START_ASYNC_VALIDATION",ar="@@redux-form/START_SUBMIT",sr="@@redux-form/STOP_ASYNC_VALIDATION",cr="@@redux-form/STOP_SUBMIT",ur="@@redux-form/SUBMIT",lr="@@redux-form/TOUCH",fr="@@redux-form/UNREGISTER_FIELD",dr="@@redux-form/UNTOUCH",pr="@@redux-form/UPDATE_SYNC_ERRORS",mr="@@redux-form/UPDATE_SYNC_WARNINGS",hr={arrayInsert:function(e,t,n,r){return{type:Fn,meta:{form:e,field:t,index:n},payload:r}},arrayMove:function(e,t,n,r){return{type:Rn,meta:{form:e,field:t,from:n,to:r}}},arrayPop:function(e,t){return{type:Dn,meta:{form:e,field:t}}},arrayPush:function(e,t,n){return{type:Mn,meta:{form:e,field:t},payload:n}},arrayRemove:function(e,t,n){return{type:Un,meta:{form:e,field:t,index:n}}},arrayRemoveAll:function(e,t){return{type:Ln,meta:{form:e,field:t}}},arrayShift:function(e,t){return{type:Vn,meta:{form:e,field:t}}},arraySplice:function(e,t,n,r,o){var i={type:Bn,meta:{form:e,field:t,index:n,removeNum:r}};return void 0!==o&&(i.payload=o),i},arraySwap:function(e,t,n,r){if(n===r)throw new Error("Swap indices cannot be equal");if(n<0||r<0)throw new Error("Swap indices cannot be negative");return{type:qn,meta:{form:e,field:t,indexA:n,indexB:r}}},arrayUnshift:function(e,t,n){return{type:zn,meta:{form:e,field:t},payload:n}},autofill:function(e,t,n){return{type:Wn,meta:{form:e,field:t},payload:n}},blur:function(e,t,n,r){return{type:Hn,meta:{form:e,field:t,touch:r},payload:n}},change:function(e,t,n,r,o){return{type:$n,meta:{form:e,field:t,touch:r,persistentSubmitErrors:o},payload:n}},clearFields:function(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];return{type:Gn,meta:{form:e,keepTouched:t,persistentSubmitErrors:n,fields:o}}},clearSubmit:function(e){return{type:Kn,meta:{form:e}}},clearSubmitErrors:function(e){return{type:Yn,meta:{form:e}}},clearAsyncError:function(e,t){return{type:Xn,meta:{form:e,field:t}}},destroy:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return{type:Zn,meta:{form:t}}},focus:function(e,t){return{type:Jn,meta:{form:e,field:t}}},initialize:function(e,t,n,r){return void 0===r&&(r={}),n instanceof Object&&(r=n,n=!1),{type:Qn,meta:Ot()({form:e,keepDirty:n},r),payload:t}},registerField:function(e,t,n){return{type:er,meta:{form:e},payload:{name:t,type:n}}},reset:function(e){return{type:tr,meta:{form:e}}},resetSection:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{type:nr,meta:{form:e,sections:n}}},startAsyncValidation:function(e,t){return{type:ir,meta:{form:e,field:t}}},startSubmit:function(e){return{type:ar,meta:{form:e}}},stopAsyncValidation:function(e,t){return{type:sr,meta:{form:e},payload:t,error:!(!t||!Object.keys(t).length)}},stopSubmit:function(e,t){return{type:cr,meta:{form:e},payload:t,error:!(!t||!Object.keys(t).length)}},submit:function(e){return{type:ur,meta:{form:e}}},setSubmitFailed:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{type:rr,meta:{form:e,fields:n},error:!0}},setSubmitSucceeded:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{type:or,meta:{form:e,fields:n},error:!1}},touch:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{type:lr,meta:{form:e,fields:n}}},unregisterField:function(e,t,n){return void 0===n&&(n=!0),{type:fr,meta:{form:e},payload:{name:t,destroyOnUnmount:n}}},untouch:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{type:dr,meta:{form:e,fields:n}}},updateSyncErrors:function(e,t,n){return void 0===t&&(t={}),{type:pr,meta:{form:e},payload:{syncErrors:t,error:n}}},updateSyncWarnings:function(e,t,n){return void 0===t&&(t={}),{type:mr,meta:{form:e},payload:{syncWarnings:t,warning:n}}}},vr=function(e,t,n,r){t(r);var o=e();if(!_n()(o))throw new Error("asyncValidate function passed to reduxForm must return a promise");var i=function(e){return function(t){if(e){if(t&&Object.keys(t).length)return n(t),t;throw n(),new Error("Asynchronous validation promise was rejected without errors.")}return n(),Promise.resolve()}};return o.then(i(!1),i(!0))},gr=function(e){var t=e.initialized,n=e.trigger,r=e.pristine;if(!e.syncValidationPasses)return!1;switch(n){case"blur":case"change":return!0;case"submit":return!r||!t;default:return!1}},yr=function(e){var t=e.values,n=e.nextProps,r=e.initialRender,o=e.lastFieldValidatorKeys,i=e.fieldValidatorKeys,a=e.structure;return!!r||!a.deepEqual(t,n&&n.values)||!a.deepEqual(o,i)},br=function(e){var t=e.values,n=e.nextProps,r=e.initialRender,o=e.lastFieldValidatorKeys,i=e.fieldValidatorKeys,a=e.structure;return!!r||!a.deepEqual(t,n&&n.values)||!a.deepEqual(o,i)},_r=function(e){var t=e.values,n=e.nextProps,r=e.initialRender,o=e.lastFieldValidatorKeys,i=e.fieldValidatorKeys,a=e.structure;return!!r||!a.deepEqual(t,n&&n.values)||!a.deepEqual(o,i)},wr=function(e){var t=Rt(e);return t&&e.preventDefault(),t},Er=function(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return wr(t)?e.apply(void 0,r):e.apply(void 0,[t].concat(r))}},xr=function(e,t,n,r,o){for(var i=function(e){return Array.isArray(e)?e:[e]}(r),a=0;a<i.length;a++){var s=i[a](e,t,n,o);if(s)return s}};function Sr(e,t){var n=t.getIn;return function(t,r){var o={};return Object.keys(e).forEach(function(i){var a=n(t,i),s=xr(a,t,r,e[i],i);s&&(o=Zt.setIn(o,i,s))}),o}}function Or(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function kr(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}var jr=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=Or(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return Object.defineProperty(n,"message",{configurable:!0,enumerable:!1,value:e,writable:!0}),Object.defineProperty(n,"name",{configurable:!0,enumerable:!1,value:n.constructor.name,writable:!0}),Error.hasOwnProperty("captureStackTrace")?(Error.captureStackTrace(n,n.constructor),Or(n)):(Object.defineProperty(n,"stack",{configurable:!0,enumerable:!1,value:new Error(e).stack,writable:!0}),n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,kr(Error)),t}(),Cr="@@redux-form/submission-error-flag";function Pr(e){return!0===(e&&e.constructor&&e.constructor.__FLAG__===Cr)}(function(e){function t(t){var n;return(n=e.call(this,"Submit Validation Failed")||this).errors=t,n}return Pt()(t,e),t}(jr)).__FLAG__=Cr;var Nr=function(e,t,n){var r,o=n.dispatch,i=n.submitAsSideEffect,a=n.onSubmitFail,s=n.onSubmitSuccess,c=n.startSubmit,u=n.stopSubmit,l=n.setSubmitFailed,f=n.setSubmitSucceeded,d=n.values;try{r=e(d,o,n)}catch(m){var p=Pr(m)?m.errors:void 0;if(u(p),l.apply(void 0,t),a&&a(p,o,m,n),p||a)return p;throw m}if(i)r&&o(r);else{if(_n()(r))return c(),r.then(function(e){return u(),f(),s&&s(e,o,n),e},function(e){var r=Pr(e)?e.errors:void 0;if(u(r),l.apply(void 0,t),a&&a(r,o,e,n),r||a)return r;throw e});f(),s&&s(r,o,n)}return r},Tr=function(e,t,n,r,o){var i=t.dispatch,a=t.onSubmitFail,s=t.setSubmitFailed,c=t.syncErrors,u=t.asyncErrors,l=t.touch,f=t.persistentSubmitErrors;if(l.apply(void 0,o),n||f){var d=r&&r();return d?d.then(function(n){if(n)throw n;return Nr(e,o,t)}).catch(function(e){return s.apply(void 0,o),a&&a(e,i,null,t),Promise.reject(e)}):Nr(e,o,t)}s.apply(void 0,o);var p=function(e){var t=e.asyncErrors,n=e.syncErrors;return t&&"function"===typeof t.merge?t.merge(n).toJS():Ot()({},t,{},n)}({asyncErrors:u,syncErrors:c});return a&&a(p,i,null,t),p},Ir=function(e,t){switch(t){case"Field":return[e,e+"._error"];case"FieldArray":return[e+"._error"];default:throw new Error("Unknown field type")}};function Ar(e){var t=e.getIn,n=e.keys,r=function(e){var t=e.getIn;return function(e,n,r,o){if(!n&&!r&&!o)return!1;var i=t(e,"name"),a=t(e,"type");return Ir(i,a).some(function(e){return t(n,e)||t(r,e)||t(o,e)})}}(e);return function(e,o,i){return void 0===i&&(i=!1),function(a){var s=(o||function(e){return t(e,"form")})(a);if(t(s,e+".syncError"))return!1;if(!i&&t(s,e+".error"))return!1;var c=t(s,e+".syncErrors"),u=t(s,e+".asyncErrors"),l=i?void 0:t(s,e+".submitErrors");if(!c&&!u&&!l)return!0;var f=t(s,e+".registeredFields");return!f||!n(f).filter(function(e){return t(f,"['"+e+"'].count")>0}).some(function(e){return r(t(f,"['"+e+"']"),c,u,l)})}}}var Fr=function(e){return e.displayName||e.name||"Component"},Rr=n(38),Dr=function(e){return Boolean(e&&e.prototype&&"object"===typeof e.prototype.isReactComponent)},Mr=hr.arrayInsert,Ur=hr.arrayMove,Lr=hr.arrayPop,Vr=hr.arrayPush,Br=hr.arrayRemove,zr=hr.arrayRemoveAll,qr=hr.arrayShift,Wr=hr.arraySplice,Hr=hr.arraySwap,$r=hr.arrayUnshift,Gr=hr.blur,Kr=hr.change,Yr=hr.focus,Xr=At()(hr,["arrayInsert","arrayMove","arrayPop","arrayPush","arrayRemove","arrayRemoveAll","arrayShift","arraySplice","arraySwap","arrayUnshift","blur","change","focus"]),Zr={arrayInsert:Mr,arrayMove:Ur,arrayPop:Lr,arrayPush:Vr,arrayRemove:Br,arrayRemoveAll:zr,arrayShift:qr,arraySplice:Wr,arraySwap:Hr,arrayUnshift:$r},Jr=[].concat(Object.keys(hr),["array","asyncErrors","initialValues","syncErrors","syncWarnings","values","registeredFields"]),Qr=function(e){if(!e||"function"!==typeof e)throw new Error("You must either pass handleSubmit() an onSubmit function or pass onSubmit as a prop");return e};var eo=function(e){var t=e.deepEqual,n=e.empty,r=e.getIn,o=e.setIn,i=e.keys,c=e.fromJS,u=e.toJS,l=Ar(e);return function(f){var d=Ot()({touchOnBlur:!0,touchOnChange:!1,persistentSubmitErrors:!1,destroyOnUnmount:!0,shouldAsyncValidate:gr,shouldValidate:yr,shouldError:br,shouldWarn:_r,enableReinitialize:!1,keepDirtyOnReinitialize:!1,updateUnregisteredFields:!1,getFormState:function(e){return r(e,"form")},pure:!0,forceUnregisterOnUnmount:!1,submitAsSideEffect:!1},f);return function(f){var p=function(n){function c(){for(var a,c=arguments.length,l=new Array(c),f=0;f<c;f++)l[f]=arguments[f];return(a=n.call.apply(n,[this].concat(l))||this).wrapped=s.a.createRef(),a.destroyed=!1,a.fieldCounts={},a.fieldValidators={},a.lastFieldValidatorKeys=[],a.fieldWarners={},a.lastFieldWarnerKeys=[],a.innerOnSubmit=void 0,a.submitPromise=void 0,a.initializedOnLoad=!1,a.initIfNeeded=function(e){var n=a.props.enableReinitialize;if(e){if((n||!e.initialized)&&!t(a.props.initialValues,e.initialValues)){var r=e.initialized&&a.props.keepDirtyOnReinitialize;return a.props.initialize(e.initialValues,r,{keepValues:e.keepValues,lastInitialValues:a.props.initialValues,updateUnregisteredFields:e.updateUnregisteredFields}),!0}}else if(a.props.initialValues&&(!a.props.initialized||n))return a.props.initialize(a.props.initialValues,a.props.keepDirtyOnReinitialize,{keepValues:a.props.keepValues,updateUnregisteredFields:a.props.updateUnregisteredFields}),!0;return!1},a.updateSyncErrorsIfNeeded=function(e,t,n){var r=a.props,o=r.error,i=r.updateSyncErrors,s=(!n||!Object.keys(n).length)&&!o,c=(!e||!Object.keys(e).length)&&!t;s&&c||Zt.deepEqual(n,e)&&Zt.deepEqual(o,t)||i(e,t)},a.clearSubmitPromiseIfNeeded=function(e){var t=a.props.submitting;a.submitPromise&&t&&!e.submitting&&delete a.submitPromise},a.submitIfNeeded=function(e){var t=a.props,n=t.clearSubmit;!t.triggerSubmit&&e.triggerSubmit&&(n(),a.submit())},a.shouldErrorFunction=function(){var e=a.props,t=e.shouldValidate,n=e.shouldError;return t!==yr&&n===br?t:n},a.validateIfNeeded=function(t){var n=a.props,r=n.validate,o=n.values,i=a.shouldErrorFunction(),s=a.generateValidator();if(r||s){var c=void 0===t,u=Object.keys(a.getValidators());if(i({values:o,nextProps:t,props:a.props,initialRender:c,lastFieldValidatorKeys:a.lastFieldValidatorKeys,fieldValidatorKeys:u,structure:e})){var l=c||!t?a.props:t,f=vn()(r&&r(l.values,l)||{},s&&s(l.values,l)||{}),d=f._error,p=At()(f,["_error"]);a.lastFieldValidatorKeys=u,a.updateSyncErrorsIfNeeded(p,d,l.syncErrors)}}else a.lastFieldValidatorKeys=[]},a.updateSyncWarningsIfNeeded=function(e,t,n){var r=a.props,o=r.warning,i=r.updateSyncWarnings,s=(!n||!Object.keys(n).length)&&!o,c=(!e||!Object.keys(e).length)&&!t;s&&c||Zt.deepEqual(n,e)&&Zt.deepEqual(o,t)||i(e,t)},a.shouldWarnFunction=function(){var e=a.props,t=e.shouldValidate,n=e.shouldWarn;return t!==yr&&n===_r?t:n},a.warnIfNeeded=function(t){var n=a.props,r=n.warn,o=n.values,i=a.shouldWarnFunction(),s=a.generateWarner();if(r||s){var c=void 0===t,u=Object.keys(a.getWarners());if(i({values:o,nextProps:t,props:a.props,initialRender:c,lastFieldValidatorKeys:a.lastFieldWarnerKeys,fieldValidatorKeys:u,structure:e})){var l=c||!t?a.props:t,f=vn()(r?r(l.values,l):{},s?s(l.values,l):{}),d=f._warning,p=At()(f,["_warning"]);a.lastFieldWarnerKeys=u,a.updateSyncWarningsIfNeeded(p,d,l.syncWarnings)}}},a.getValues=function(){return a.props.values},a.isValid=function(){return a.props.valid},a.isPristine=function(){return a.props.pristine},a.register=function(e,t,n,r){var o=(a.fieldCounts[e]||0)+1;a.fieldCounts[e]=o,a.props.registerField(e,t),n&&(a.fieldValidators[e]=n),r&&(a.fieldWarners[e]=r)},a.unregister=function(e){var t=a.fieldCounts[e];if(1===t?delete a.fieldCounts[e]:null!=t&&(a.fieldCounts[e]=t-1),!a.destroyed){var n=a.props,r=n.destroyOnUnmount,o=n.forceUnregisterOnUnmount,i=n.unregisterField;r||o?(i(e,r),a.fieldCounts[e]||(delete a.fieldValidators[e],delete a.fieldWarners[e],a.lastFieldValidatorKeys=a.lastFieldValidatorKeys.filter(function(t){return t!==e}))):i(e,!1)}},a.getFieldList=function(e){var t=a.props.registeredFields;if(!t)return[];var n=i(t);return e&&(e.excludeFieldArray&&(n=n.filter(function(e){return"FieldArray"!==r(t,"['"+e+"'].type")})),e.excludeUnregistered&&(n=n.filter(function(e){return 0!==r(t,"['"+e+"'].count")}))),u(n)},a.getValidators=function(){var e={};return Object.keys(a.fieldValidators).forEach(function(t){var n=a.fieldValidators[t]();n&&(e[t]=n)}),e},a.generateValidator=function(){var t=a.getValidators();return Object.keys(t).length?Sr(t,e):void 0},a.getWarners=function(){var e={};return Object.keys(a.fieldWarners).forEach(function(t){var n=a.fieldWarners[t]();n&&(e[t]=n)}),e},a.generateWarner=function(){var t=a.getWarners();return Object.keys(t).length?Sr(t,e):void 0},a.asyncValidate=function(e,t,n){var i=a.props,s=i.asyncBlurFields,c=i.asyncChangeFields,u=i.asyncErrors,l=i.asyncValidate,f=i.dispatch,d=i.initialized,p=i.pristine,m=i.shouldAsyncValidate,h=i.startAsyncValidation,v=i.stopAsyncValidation,g=i.syncErrors,y=i.values,b=!e;if(l){var _=b?y:o(y,e,t),w=b||!r(g,e);if(function(){var t=s&&e&&~s.indexOf(e.replace(/\[[0-9]+]/g,"[]")),r=c&&e&&~c.indexOf(e.replace(/\[[0-9]+]/g,"[]"));return b||!(s||c)||("blur"===n?t:r)}()&&m({asyncErrors:u,initialized:d,trigger:b?"submit":n,blurredField:e,pristine:p,syncValidationPasses:w}))return vr(function(){return l(_,f,a.props,e)},h,v,e)}},a.submitCompleted=function(e){return delete a.submitPromise,e},a.submitFailed=function(e){throw delete a.submitPromise,e},a.listenToSubmit=function(e){return _n()(e)?(a.submitPromise=e,e.then(a.submitCompleted,a.submitFailed)):e},a.submit=function(e){var t=a.props,n=t.onSubmit,r=t.blur,o=t.change,i=t.dispatch;return e&&!wr(e)?Er(function(){return!a.submitPromise&&a.listenToSubmit(Tr(Qr(e),Ot()({},a.props,{},An({blur:r,change:o},i)),a.props.validExceptSubmit,a.asyncValidate,a.getFieldList({excludeFieldArray:!0,excludeUnregistered:!0})))}):a.submitPromise?void 0:a.innerOnSubmit&&a.innerOnSubmit!==a.submit?a.innerOnSubmit():a.listenToSubmit(Tr(Qr(n),Ot()({},a.props,{},An({blur:r,change:o},i)),a.props.validExceptSubmit,a.asyncValidate,a.getFieldList({excludeFieldArray:!0,excludeUnregistered:!0})))},a.reset=function(){return a.props.reset()},Object(Rr.a)()||(a.initializedOnLoad=a.initIfNeeded()),ge()(a.props.shouldValidate,"shouldValidate() is deprecated and will be removed in v9.0.0. Use shouldWarn() or shouldError() instead."),a}Pt()(c,n);var l=c.prototype;return l.UNSAFE_componentWillReceiveProps=function(e){if(!this.initIfNeeded(e)){this.validateIfNeeded(e),this.warnIfNeeded(e),this.clearSubmitPromiseIfNeeded(e),this.submitIfNeeded(e);var n=e.onChange,r=e.values,o=e.dispatch;n&&!t(r,this.props.values)&&n(r,o,e,this.props.values)}},l.shouldComponentUpdate=function(e){var n=this;if(!this.props.pure)return!0;var r=d.immutableProps,o=void 0===r?[]:r;return!!(this.props.children||e.children||Object.keys(e).some(function(r){return~o.indexOf(r)?n.props[r]!==e[r]:!~Jr.indexOf(r)&&!t(n.props[r],e[r])}))},l.componentDidMount=function(){if(!Object(Rr.a)()){if(this.initializedOnLoad)return;this.validateIfNeeded(),this.warnIfNeeded()}ge()(this.props.shouldValidate,"shouldValidate() is deprecated and will be removed in v9.0.0. Use shouldWarn() or shouldError() instead.")},l.componentWillUnmount=function(){var e=this.props,t=e.destroyOnUnmount,n=e.destroy;t&&!Object(Rr.a)()&&(this.destroyed=!0,n())},l.render=function(){var e,t=this,n=this.props,o=n.anyTouched,i=n.array,s=(n.arrayInsert,n.arrayMove,n.arrayPop,n.arrayPush,n.arrayRemove,n.arrayRemoveAll,n.arrayShift,n.arraySplice,n.arraySwap,n.arrayUnshift,n.asyncErrors,n.asyncValidate,n.asyncValidating),c=n.blur,u=n.change,l=n.clearSubmit,d=n.destroy,p=(n.destroyOnUnmount,n.forceUnregisterOnUnmount,n.dirty),m=n.dispatch,h=(n.enableReinitialize,n.error),v=(n.focus,n.form),g=(n.getFormState,n.immutableProps,n.initialize),y=n.initialized,b=n.initialValues,_=n.invalid,w=(n.keepDirtyOnReinitialize,n.keepValues,n.updateUnregisteredFields,n.pristine),E=n.propNamespace,x=(n.registeredFields,n.registerField,n.reset),S=n.resetSection,O=(n.setSubmitFailed,n.setSubmitSucceeded,n.shouldAsyncValidate,n.shouldValidate,n.shouldError,n.shouldWarn,n.startAsyncValidation,n.startSubmit,n.stopAsyncValidation,n.stopSubmit,n.submitAsSideEffect),k=n.submitting,j=n.submitFailed,C=n.submitSucceeded,P=n.touch,N=(n.touchOnBlur,n.touchOnChange,n.persistentSubmitErrors,n.syncErrors,n.syncWarnings,n.unregisterField,n.untouch),T=(n.updateSyncErrors,n.updateSyncWarnings,n.valid),I=(n.validExceptSubmit,n.values,n.warning),A=At()(n,["anyTouched","array","arrayInsert","arrayMove","arrayPop","arrayPush","arrayRemove","arrayRemoveAll","arrayShift","arraySplice","arraySwap","arrayUnshift","asyncErrors","asyncValidate","asyncValidating","blur","change","clearSubmit","destroy","destroyOnUnmount","forceUnregisterOnUnmount","dirty","dispatch","enableReinitialize","error","focus","form","getFormState","immutableProps","initialize","initialized","initialValues","invalid","keepDirtyOnReinitialize","keepValues","updateUnregisteredFields","pristine","propNamespace","registeredFields","registerField","reset","resetSection","setSubmitFailed","setSubmitSucceeded","shouldAsyncValidate","shouldValidate","shouldError","shouldWarn","startAsyncValidation","startSubmit","stopAsyncValidation","stopSubmit","submitAsSideEffect","submitting","submitFailed","submitSucceeded","touch","touchOnBlur","touchOnChange","persistentSubmitErrors","syncErrors","syncWarnings","unregisterField","untouch","updateSyncErrors","updateSyncWarnings","valid","validExceptSubmit","values","warning"]),F=Ot()({array:i,anyTouched:o,asyncValidate:this.asyncValidate,asyncValidating:s},An({blur:c,change:u},m),{clearSubmit:l,destroy:d,dirty:p,dispatch:m,error:h,form:v,handleSubmit:this.submit,initialize:g,initialized:y,initialValues:b,invalid:_,pristine:w,reset:x,resetSection:S,submitting:k,submitAsSideEffect:O,submitFailed:j,submitSucceeded:C,touch:P,untouch:N,valid:T,warning:I}),R=Ot()({},E?((e={})[E]=F,e):F,{},A);Dr(f)&&(R.ref=this.wrapped);var D=Ot()({},this.props,{getFormState:function(e){return r(t.props.getFormState(e),t.props.form)},asyncValidate:this.asyncValidate,getValues:this.getValues,sectionPrefix:void 0,register:this.register,unregister:this.unregister,registerInnerOnSubmit:function(e){return t.innerOnSubmit=e}});return Object(a.createElement)(fn.Provider,{value:D,children:Object(a.createElement)(f,R)})},c}(s.a.Component);p.displayName="Form("+Fr(f)+")",p.WrappedComponent=f,p.propTypes={destroyOnUnmount:Tt.a.bool,forceUnregisterOnUnmount:Tt.a.bool,form:Tt.a.string.isRequired,immutableProps:Tt.a.arrayOf(Tt.a.string),initialValues:Tt.a.oneOfType([Tt.a.array,Tt.a.object]),getFormState:Tt.a.func,onSubmitFail:Tt.a.func,onSubmitSuccess:Tt.a.func,propNamespace:Tt.a.string,validate:Tt.a.func,warn:Tt.a.func,touchOnBlur:Tt.a.bool,touchOnChange:Tt.a.bool,triggerSubmit:Tt.a.bool,persistentSubmitErrors:Tt.a.bool,registeredFields:Tt.a.any};var m=G(function(e,o){var i=o.form,a=o.getFormState,s=o.initialValues,c=o.enableReinitialize,u=o.keepDirtyOnReinitialize,f=r(a(e)||n,i)||n,d=r(f,"initial"),p=!!d,m=c&&p&&!t(s,d),h=m&&!u,v=s||d||n;m||(v=d||n);var g=r(f,"values")||v;h&&(g=v);var y=h||t(v,g),b=r(f,"asyncErrors"),_=r(f,"syncErrors")||Zt.empty,w=r(f,"syncWarnings")||Zt.empty,E=r(f,"registeredFields"),x=l(i,a,!1)(e),S=l(i,a,!0)(e),O=!!r(f,"anyTouched"),k=!!r(f,"submitting"),j=!!r(f,"submitFailed"),C=!!r(f,"submitSucceeded"),P=r(f,"error"),N=r(f,"warning"),T=r(f,"triggerSubmit");return{anyTouched:O,asyncErrors:b,asyncValidating:r(f,"asyncValidating")||!1,dirty:!y,error:P,initialized:p,invalid:!x,pristine:y,registeredFields:E,submitting:k,submitFailed:j,submitSucceeded:C,syncErrors:_,syncWarnings:w,triggerSubmit:T,values:g,valid:x,validExceptSubmit:S,warning:N}},function(e,t){var n=function(e){return e.bind(null,t.form)},r=yn()(Xr,n),o=yn()(Zr,n),i=n(Yr),a=An(r,e),s={insert:An(o.arrayInsert,e),move:An(o.arrayMove,e),pop:An(o.arrayPop,e),push:An(o.arrayPush,e),remove:An(o.arrayRemove,e),removeAll:An(o.arrayRemoveAll,e),shift:An(o.arrayShift,e),splice:An(o.arraySplice,e),swap:An(o.arraySwap,e),unshift:An(o.arrayUnshift,e)};return Ot()({},a,{},o,{blur:function(e,n){return Gr(t.form,e,n,!!t.touchOnBlur)},change:function(e,n){return Kr(t.form,e,n,!!t.touchOnChange,!!t.persistentSubmitErrors)},array:s,focus:i,dispatch:e})},void 0,{forwardRef:!0}),h=y()(m(p),f);h.defaultProps=d;var v=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).ref=s.a.createRef(),t}Pt()(t,e);var r=t.prototype;return r.submit=function(){return this.ref.current&&this.ref.current.submit()},r.reset=function(){this.ref&&this.ref.current.reset()},r.render=function(){var e=this.props,t=e.initialValues,n=At()(e,["initialValues"]);return Object(a.createElement)(h,Ot()({},n,{ref:this.ref,initialValues:c(t)}))},jt()(t,[{key:"valid",get:function(){return!(!this.ref.current||!this.ref.current.isValid())}},{key:"invalid",get:function(){return!this.valid}},{key:"pristine",get:function(){return!(!this.ref.current||!this.ref.current.isPristine())}},{key:"dirty",get:function(){return!this.pristine}},{key:"values",get:function(){return this.ref.current?this.ref.current.getValues():n}},{key:"fieldList",get:function(){return this.ref.current?this.ref.current.getFieldList():[]}},{key:"wrappedInstance",get:function(){return this.ref.current&&this.ref.current.wrapped.current}}]),t}(s.a.Component),g=y()(pn(v),f);return g.defaultProps=d,g}}}(Zt);var to=function(e){var t=e.getIn;return function(e,n){return function(r){var o=n||function(e){return t(e,"form")};return t(o(r),e+".values")}}}(Zt);var no=function(e){var t=e.getIn,n=e.empty;return function(e,r){return function(o){var i=r||function(e){return t(e,"form")};return t(i(o),e+".syncErrors")||n}}}(Zt);var ro=function(e){var t=e.getIn,n=e.empty;return function(e,r){return function(o){var i=r||function(e){return t(e,"form")};return t(i(o),e+".fields")||n}}}(Zt),oo=function(e){return"function"===typeof e},io=function(e){return e},ao=function(e){return null===e};function so(e,t,n){void 0===t&&(t=io),ge()(oo(t)||ao(t),"Expected payloadCreator to be a function, undefined or null");var r=ao(t)||t===io?io:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return e instanceof Error?e:t.apply(void 0,[e].concat(r))},o=oo(n),i=e.toString(),a=function(){var t=r.apply(void 0,arguments),i={type:e};return t instanceof Error&&(i.error=!0),void 0!==t&&(i.payload=t),o&&(i.meta=n.apply(void 0,arguments)),i};return a.toString=function(){return i},a}var co=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r="function"!==typeof t[t.length-1]&&t.pop(),o=t;if("undefined"===typeof r)throw new TypeError("The initial state may not be undefined. If you do not want to set a value for this reducer, you can use null instead of undefined.");return function(e,t){for(var n=arguments.length,i=Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];var s="undefined"===typeof e,c="undefined"===typeof t;return s&&c&&r?r:o.reduce(function(e,n){return n.apply(void 0,[e,t].concat(i))},s&&!c&&r?r:e)}},uo=function(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},lo=function(e){return"undefined"!==typeof Map&&e instanceof Map};function fo(e){if(lo(e))return Array.from(e.keys());if("undefined"!==typeof Reflect&&"function"===typeof Reflect.ownKeys)return Reflect.ownKeys(e);var t=Object.getOwnPropertyNames(e);return"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e))),t}var po="||";function mo(e,t){return lo(t)?t.get(e):t[e]}var ho,vo=(ho=function(e){return(uo(e)||lo(e))&&!function(e){var t=fo(e),n=t.every(function(e){return"next"===e||"throw"===e});return t.length&&t.length<=2&&n}(e)},function e(t,n,r,o){var i=void 0===n?{}:n,a=i.namespace,s=void 0===a?"/":a,c=i.prefix;return void 0===r&&(r={}),void 0===o&&(o=""),fo(t).forEach(function(n){var i=function(e){return o||!c||c&&new RegExp("^"+c+s).test(e)?e:""+c+s+e}(function(e){var t;if(!o)return e;var n=e.toString().split(po),r=o.split(po);return(t=[]).concat.apply(t,r.map(function(e){return n.map(function(t){return""+e+s+t})})).join(po)}(n)),a=mo(n,t);ho(a)?e(a,{namespace:s,prefix:c},r,i):r[i]=a}),r}),go=function(e){return null===e||void 0===e},yo=function(e){return void 0===e},bo=function(e){return e.toString()};var _o=function(e,t){return(_o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function wo(e,t){function n(){this.constructor=e}_o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Eo=function(){return(Eo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function xo(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function So(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}var Oo=function(e,t){return function(n){return Math.max(Math.min(n,t),e)}},ko=function(e){return e%1?Number(e.toFixed(5)):e},jo=/(-)?(\d[\d\.]*)/g,Co=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,Po=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i,No={test:function(e){return"number"===typeof e},parse:parseFloat,transform:function(e){return e}},To=Eo(Eo({},No),{transform:Oo(0,1)}),Io=(Eo(Eo({},No),{default:1}),function(e){return{test:function(t){return"string"===typeof t&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return""+t+e}}}),Ao=Io("deg"),Fo=Io("%"),Ro=Io("px"),Do=Io("vh"),Mo=Io("vw"),Uo=(Eo(Eo({},Fo),{parse:function(e){return Fo.parse(e)/100},transform:function(e){return Fo.transform(100*e)}}),function(e){return e.substring(e.indexOf("(")+1,e.lastIndexOf(")"))}),Lo=Oo(0,255),Vo=function(e){return void 0!==e.red},Bo=function(e){return void 0!==e.hue};var zo=function(e){return function(t){if("string"!==typeof t)return t;for(var n={},r=Uo(t).replace(/(,|\/)/g," ").split(/ \s*/),o=0;o<4;o++)n[e[o]]=void 0!==r[o]?parseFloat(r[o]):1;return n}},qo=Eo(Eo({},No),{transform:function(e){return Math.round(Lo(e))}});function Wo(e,t){return e.startsWith(t)&&Po.test(e)}var Ho={test:function(e){return"string"===typeof e?Wo(e,"rgb"):Vo(e)},parse:zo(["red","green","blue","alpha"]),transform:function(e){var t=e.red,n=e.green,r=e.blue,o=e.alpha,i=void 0===o?1:o;return function(e){var t=e.red,n=e.green,r=e.blue,o=e.alpha;return"rgba("+t+", "+n+", "+r+", "+(void 0===o?1:o)+")"}({red:qo.transform(t),green:qo.transform(n),blue:qo.transform(r),alpha:ko(To.transform(i))})}},$o={test:function(e){return"string"===typeof e?Wo(e,"hsl"):Bo(e)},parse:zo(["hue","saturation","lightness","alpha"]),transform:function(e){var t=e.hue,n=e.saturation,r=e.lightness,o=e.alpha,i=void 0===o?1:o;return function(e){var t=e.hue,n=e.saturation,r=e.lightness,o=e.alpha;return"hsla("+t+", "+n+", "+r+", "+(void 0===o?1:o)+")"}({hue:Math.round(t),saturation:Fo.transform(ko(n)),lightness:Fo.transform(ko(r)),alpha:ko(To.transform(i))})}},Go=Eo(Eo({},Ho),{test:function(e){return"string"===typeof e&&Wo(e,"#")},parse:function(e){var t="",n="",r="";return e.length>4?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),t+=t,n+=n,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:1}}}),Ko={test:function(e){return"string"===typeof e&&Po.test(e)||Vo(e)||Bo(e)},parse:function(e){return Ho.test(e)?Ho.parse(e):$o.test(e)?$o.parse(e):Go.test(e)?Go.parse(e):e},transform:function(e){return Vo(e)?Ho.transform(e):Bo(e)?$o.transform(e):e}},Yo=function(e){return"number"===typeof e?0:e},Xo={test:function(e){if("string"!==typeof e||!isNaN(e))return!1;var t=0,n=e.match(jo),r=e.match(Co);return n&&(t+=n.length),r&&(t+=r.length),t>0},parse:function(e){var t=e,n=[],r=t.match(Co);r&&(t=t.replace(Co,"${c}"),n.push.apply(n,r.map(Ko.parse)));var o=t.match(jo);return o&&n.push.apply(n,o.map(No.parse)),n},createTransformer:function(e){var t=e,n=0,r=e.match(Co),o=r?r.length:0;if(r)for(var i=0;i<o;i++)t=t.replace(r[i],"${c}"),n++;var a=t.match(jo),s=a?a.length:0;if(a)for(i=0;i<s;i++)t=t.replace(a[i],"${n}"),n++;return function(e){for(var r=t,i=0;i<n;i++)r=r.replace(i<o?"${c}":"${n}",i<o?Ko.transform(e[i]):ko(e[i]));return r}},getAnimatableNone:function(e){var t=Xo.parse(e);return Xo.createTransformer(e)(t.map(Yo))}},Zo=function(){};var Jo=0,Qo="undefined"!==typeof window&&void 0!==window.requestAnimationFrame?function(e){return window.requestAnimationFrame(e)}:function(e){var t=Date.now(),n=Math.max(0,16.7-(t-Jo));Jo=t+n,setTimeout(function(){return e(Jo)},n)},ei=1/60*1e3,ti=!0,ni=!1,ri=!1,oi={delta:0,timestamp:0},ii=["read","update","preRender","render","postRender"],ai=function(e){return ni=e},si=ii.reduce(function(e,t){return e[t]=function(e){var t=[],n=[],r=0,o=!1,i=0,a=new WeakSet,s=new WeakSet,c={cancel:function(e){var t=n.indexOf(e);a.add(e),-1!==t&&n.splice(t,1)},process:function(u){var l,f;if(o=!0,t=(l=[n,t])[0],(n=l[1]).length=0,r=t.length)for(i=0;i<r;i++)(f=t[i])(u),!0!==s.has(f)||a.has(f)||(c.schedule(f),e(!0));o=!1},schedule:function(e,i,c){void 0===i&&(i=!1),void 0===c&&(c=!1),Zo("function"===typeof e,"Argument must be a function");var u=c&&o,l=u?t:n;a.delete(e),i&&s.add(e),-1===l.indexOf(e)&&(l.push(e),u&&(r=t.length))}};return c}(ai),e},{}),ci=ii.reduce(function(e,t){var n=si[t];return e[t]=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),ni||di(),n.schedule(e,t,r),e},e},{}),ui=ii.reduce(function(e,t){return e[t]=si[t].cancel,e},{}),li=function(e){return si[e].process(oi)},fi=function(e){ni=!1,oi.delta=ti?ei:Math.max(Math.min(e-oi.timestamp,40),1),ti||(ei=oi.delta),oi.timestamp=e,ri=!0,ii.forEach(li),ri=!1,ni&&(ti=!1,Qo(fi))},di=function(){ni=!0,ti=!0,ri||Qo(fi)},pi=ci,mi=function(e){return function(t){return 1-e(1-t)}},hi=mi,vi=function(e){return e},gi=function(e){return function(t){return Math.pow(t,e)}}(2),yi=mi(gi);var bi=function(e){return"number"===typeof e},_i=function(e){return function(t,n,r){return void 0!==r?e(t,n,r):function(r){return e(t,n,r)}}},wi=_i(function(e,t,n){return Math.min(Math.max(n,e),t)}),Ei=function(e,t,n){var r=t-e;return 0===r?1:(n-e)/r},xi=function(e,t,n){return-n*e+n*t+e},Si=function(){return(Si=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Oi=function(e,t,n){var r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},ki=[Go,Ho,$o],ji=function(e){return ki.find(function(t){return t.test(e)})},Ci=function(e){return"'"+e+"' is not an animatable color. Use the equivalent color code instead."},Pi=function(e,t){var n=ji(e),r=ji(t);Zo(!!n,Ci(e)),Zo(!!r,Ci(t)),Zo(n.transform===r.transform,"Both colors must be hex/RGBA, OR both must be HSLA.");var o=n.parse(e),i=r.parse(t),a=Si({},o),s=n===$o?xi:Oi;return function(e){for(var t in a)"alpha"!==t&&(a[t]=s(o[t],i[t],e));return a.alpha=xi(o.alpha,i.alpha,e),n.transform(a)}},Ni=function(e,t){return function(n){return t(e(n))}},Ti=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce(Ni)};function Ii(e,t){return bi(e)?function(n){return xi(e,t,n)}:Ko.test(e)?Pi(e,t):Ri(e,t)}var Ai=function(e,t){var n=e.slice(),r=n.length,o=e.map(function(e,n){return Ii(e,t[n])});return function(e){for(var t=0;t<r;t++)n[t]=o[t](e);return n}};function Fi(e){for(var t=Xo.parse(e),n=t.length,r=0,o=0,i=0,a=0;a<n;a++)r||"number"===typeof t[a]?r++:void 0!==t[a].hue?i++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:i}}var Ri=function(e,t){var n=Xo.createTransformer(t),r=Fi(e),o=Fi(t);return Zo(r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers,"Complex values '"+e+"' and '"+t+"' too different to mix. Ensure all colors are of the same type."),Ti(Ai(r.parsed,o.parsed),n)};var Di=function(e){return e},Mi=function(e){return void 0===e&&(e=Di),_i(function(t,n,r){var o=n-r,i=-(0-t+1)*(0-e(Math.abs(o)));return o<=0?n+i:n-i})};Mi(),Mi(Math.sqrt),_i(function(e,t,n){var r=t-e;return((n-e)%r+r)%r+e}),wi(0,1);Math.round;var Ui=function(){function e(e){void 0===e&&(e={}),this.props=e}return e.prototype.applyMiddleware=function(e){return this.create(Eo(Eo({},this.props),{middleware:this.props.middleware?So([e],this.props.middleware):[e]}))},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=1===e.length?e[0]:Ti.apply(void 0,e);return this.applyMiddleware(function(e){return function(t){return e(n(t))}})},e.prototype.while=function(e){return this.applyMiddleware(function(t,n){return function(r){return e(r)?t(r):n()}})},e.prototype.filter=function(e){return this.applyMiddleware(function(t){return function(n){return e(n)&&t(n)}})},e}(),Li=function(){return function(e,t){var n=this,r=e.middleware,o=e.onComplete;this.isActive=!0,this.update=function(e){n.observer.update&&n.updateObserver(e)},this.complete=function(){n.observer.complete&&n.isActive&&n.observer.complete(),n.onComplete&&n.onComplete(),n.isActive=!1},this.error=function(e){n.observer.error&&n.isActive&&n.observer.error(e),n.isActive=!1},this.observer=t,this.updateObserver=function(e){return t.update(e)},this.onComplete=o,t.update&&r&&r.length&&r.forEach(function(e){return n.updateObserver=e(n.updateObserver,n.complete)})}}(),Vi=function(e,t,n){var r=t.middleware;return new Li({middleware:r,onComplete:n},"function"===typeof e?{update:e}:e)},Bi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wo(t,e),t.prototype.create=function(e){return new t(e)},t.prototype.start=function(e){void 0===e&&(e={});var t=!1,n={stop:function(){}},r=this.props,o=r.init,i=xo(r,["init"]),a=o(Vi(e,i,function(){t=!0,n.stop()}));return n=a?Eo(Eo({},n),a):n,e.registerParent&&e.registerParent(n),t&&n.stop(),n},t}(Ui),zi=function(e){return new Bi({init:e})},qi=function(e){var t=e.getCount,n=e.getFirst,r=e.getOutput,o=e.mapApi,i=e.setProp,a=e.startActions;return function(e){return zi(function(s){var c=s.update,u=s.complete,l=s.error,f=t(e),d=r(),p=function(){return c(d)},m=0,h=a(e,function(e,t){var n=!1;return e.start({complete:function(){n||(n=!0,++m===f&&pi.update(u))},error:l,update:function(e){i(d,t,e),pi.update(p,!1,!0)}})});return Object.keys(n(h)).reduce(function(e,t){return e[t]=o(h,t),e},{})})}},Wi=qi({getOutput:function(){return{}},getCount:function(e){return Object.keys(e).length},getFirst:function(e){return e[Object.keys(e)[0]]},mapApi:function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return Object.keys(e).reduce(function(r,o){var i;return e[o][t]&&(n[0]&&void 0!==n[0][o]?r[o]=e[o][t](n[0][o]):r[o]=(i=e[o])[t].apply(i,n)),r},{})}},setProp:function(e,t,n){return e[t]=n},startActions:function(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=t(e[r],r),n},{})}}),Hi=qi({getOutput:function(){return[]},getCount:function(e){return e.length},getFirst:function(e){return e[0]},mapApi:function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.map(function(e,r){if(e[t])return Array.isArray(n[0])?e[t](n[0][r]):e[t].apply(e,n)})}},setProp:function(e,t,n){return e[t]=n},startActions:function(e,t){return e.map(function(e,n){return t(e,n)})}}),$i=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Hi(e)},Gi=[Ro,Fo,Ao,Do,Mo],Ki=function(e){return Gi.find(function(t){return t.test(e)})},Yi=function(e,t){return e(t)},Xi=function(e,t,n){var r=n[0],o=t[r].map(function(r,o){var i=n.reduce(function(e){return function(t,n){return t[n]=t[n][e],t}}(o),Eo({},t));return ra(r)(e,i)});return $i.apply(void 0,o)},Zi=function(e,t,n){var r=n[0],o=Object.keys(t[r]).reduce(function(o,i){var a=n.reduce(function(e){return function(t,n){return t[n]=t[n][e],t}}(i),Eo({},t));return o[i]=ra(t[r][i])(e,a),o},{});return Wi(o)},Ji=function(e,t){var n=t.from,r=t.to,o=xo(t,["from","to"]),i=Ki(n)||Ki(r),a=i.transform,s=i.parse;return e(Eo(Eo({},o),{from:"string"===typeof n?s(n):n,to:"string"===typeof r?s(r):r})).pipe(a)},Qi=function(e){return function(t,n){var r=n.from,o=n.to,i=xo(n,["from","to"]);return t(Eo(Eo({},i),{from:0,to:1})).pipe(e(r,o))}},ea=Qi(Pi),ta=Qi(Ri),na=function(e,t){var n=function(e){var t=Object.keys(e),n=function(t,n){return void 0!==t&&!e[n](t)};return{getVectorKeys:function(e){return t.reduce(function(t,r){return n(e[r],r)&&t.push(r),t},[])},testVectorProps:function(e){return e&&t.some(function(t){return n(e[t],t)})}}}(t),r=n.testVectorProps,o=n.getVectorKeys;return function(t){if(!r(t))return e(t);var n=o(t),i=t[n[0]];return ra(i)(e,t,n)}},ra=function(e){return"number"===typeof e?Yi:Array.isArray(e)?Xi:function(e){return Boolean(Ki(e))}(e)?Ji:Ko.test(e)?ea:Xo.test(e)?ta:"object"===typeof e?Zi:Yi},oa=na(function(e){var t=e.from,n=void 0===t?0:t,r=e.to,o=void 0===r?1:r,i=e.ease,a=void 0===i?vi:i,s=e.reverseEase;return void 0!==s&&s&&(a=hi(a)),zi(function(e){var t=e.update;return{seek:function(e){return t(e)}}}).pipe(a,function(e){return xi(n,o,e)})},{ease:function(e){return"function"===typeof e},from:No.test,to:No.test}),ia=wi(0,1),aa=function(e){return void 0===e&&(e={}),zi(function(t){var n,r=t.update,o=t.complete,i=e.duration,a=void 0===i?300:i,s=e.ease,c=void 0===s?yi:s,u=e.flip,l=void 0===u?0:u,f=e.loop,d=void 0===f?0:f,p=e.yoyo,m=void 0===p?0:p,h=e.repeatDelay,v=void 0===h?0:h,g=e.from,y=void 0===g?0:g,b=e.to,_=void 0===b?1:b,w=e.elapsed,E=void 0===w?0:w,x=e.flipCount,S=void 0===x?0:x,O=e.yoyoCount,k=void 0===O?0:O,j=e.loopCount,C=void 0===j?0:j,P=oa({from:y,to:_,ease:c}).start(r),N=0,T=!1,I=function(e){var t;void 0===e&&(e=!1),P=oa({from:y=(t=[_,y])[0],to:_=t[1],ease:c,reverseEase:e}).start(r)},A=function(){N=ia(Ei(0,a,E)),P.seek(N)},F=function(){T=!0,n=pi.update(function(e){var t=e.delta;E+=t,A(),function(){var e=T&&E>a+v;return!!e&&(!(!e||d||l||m)||(E=a-(E-v),d&&C<d?(C++,!1):l&&S<l?(S++,I(),!1):!(m&&k<m)||(I(++k%2!==0),!1)))}()&&(ui.update(n),o&&pi.update(o,!1,!0))},!0)},R=function(){T=!1,n&&ui.update(n)};return F(),{isActive:function(){return T},getElapsed:function(){return wi(0,a,E)},getProgress:function(){return N},stop:function(){R()},pause:function(){return R(),this},resume:function(){return T||F(),this},seek:function(e){return E=xi(0,a,e),pi.update(A,!1,!0),this},reverse:function(){return I(),this}}})},sa=function(e,t,n){return zi(function(r){var o=r.update,i=t.split(" ").map(function(t){return e.addEventListener(t,o,n),t});return{stop:function(){return i.forEach(function(t){return e.removeEventListener(t,o,n)})}}})},ca=function(){return{clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}},ua=function(e,t){return void 0===t&&(t={clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}),t.clientX=t.x=e.clientX,t.clientY=t.y=e.clientY,t.pageX=e.pageX,t.pageY=e.pageY,t},la=[ca()];if("undefined"!==typeof document){sa(document,"touchstart touchmove",{passive:!0,capture:!0}).start(function(e){var t=e.touches;!0;var n=t.length;la.length=0;for(var r=0;r<n;r++){var o=t[r];la.push(ua(o))}})}var fa=ca();if("undefined"!==typeof document){sa(document,"mousedown mousemove",!0).start(function(e){!0,ua(e,fa)})}var da=new class{constructor(){this.replaceOrtho=((e,t)=>(e||"").replace(/\$1/gi,xt.res(t&&"C"===t.doctor_type?"inpractice_form_orthodontist":"inpractice_form_dentist"))),this.replaceOrtho2=((e,t)=>{if(!e)return e;const n=!!t&&"C"===t.doctor_type,r=xt.res("".concat(e,"_").concat(n?"ortho":"gp"));return r||((e=xt.res(e))||"").replace(/\$1/gi,xt.res(n?"inpractice_form_orthodontist":"inpractice_form_dentist"))})}GenerateGuid(){return this.GenerateRandom("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx")}GenerateShortGuid(){return this.GenerateRandom("xxxxxxxxxxxx")}GenerateRandom(e){return e.replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}SetCookie(e,t,n,r,o,i){var a="Mon, 01-Jan-2038 12:00:00 GMT";if(n){var s=new Date;s.setTime(s.getTime()+24*n*60*60*1e3),a=s.toGMTString()}return document.cookie=e+"="+escape(t)+(a?";expires="+a:"")+(r?";path="+r:"")+(o?";domain="+o:"")+(i?";secure":""),!0}GetDomain(){return document.domain}GetCookie(e){var t,n,r,o=document.cookie.split(";");for(t=0;t<o.length;t++)if(n=o[t].substr(0,o[t].indexOf("=")),r=o[t].substr(o[t].indexOf("=")+1),(n=n.replace(/^\s+|\s+$/g,""))===e)return unescape(r);return null}GetVisitorId(){var e=this.GetCookie("vid");return e&&e.length?e:(e=this.GenerateShortGuid(),this.SetCookie("vid",e,1825),e)}GetNow(){try{return performance.now()}catch(e){return this.GetNow2()}}GetNow2(){try{return(new Date).getTime()}catch(e){}return 0}TrySplitName(e){if(!e)return["",""];var t=e.split(/\s+/gi);return t.length<=1?[e,""]:[t.slice(0,t.length-1).join(" "),t[t.length-1]]}IsIPhone(){return"undefined"!==typeof window&&(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i))}scrollIntoView(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xt.scrollOffset;t=t||0;try{const r=e.getBoundingClientRect(),o=window.pageXOffset||document.documentElement.scrollTop;aa({from:o,to:o+r.top+t}).start(e=>{window.scrollTo(0,e)})}catch(n){}}customGATrack(e){try{window._googleTagsHelper.ExecuteTagsForGroup(e)}catch(Jc){}}objToUrlParams(e){let t=[];for(let n in e)e[n]&&t.push(n+"="+window.encodeURIComponent(e[n]));return t.join("&")}showAll(e,t){let n=document.querySelectorAll(e);for(let r=0;r<n.length;r++)n[r].style.display=t?"":"none"}};var pa=new class{async FileReaderLoad(e){return new Promise((t,n)=>{try{let o=new FileReader;o.onload=(e=>{t(e.target)}),o.readAsDataURL(e)}catch(r){return n(r)}})}async FileReaderReadArray(e){return new Promise((t,n)=>{try{let o=new FileReader;o.onloadend=(e=>{t(e.target)}),o.readAsArrayBuffer(e)}catch(r){return n(r)}})}async processImage(e){if(!e)return;if(da.IsIPhone())return{preview:(await this.FileReaderLoad(e)).result,orientation:1};const t=await this.FileReaderReadArray(e);let n="data:"+e.type+";base64,"+(e=>{let t="",n=new Uint8Array(e),r=n.byteLength;for(let o=0;o<r;o++)t+=String.fromCharCode(n[o]);return window.btoa(t)})(t.result),r=new DataView(t.result),o=0,i=1;if(t.result.byteLength<2||65496!==r.getUint16(o))return console.log("no exif"),{preview:n,orientation:i};o+=2;let a=r.byteLength,s=!1;for(;o<a-2;){let e=r.getUint16(o,s);switch(o+=2,e){case 65505:18761===r.getUint16(o+8)&&(s=!0),a=r.getUint16(o,s)-o,o+=2;break;case 274:i=r.getUint16(o+6,s),console.log("orientation: "+i),a=0}}return{preview:n,orientation:i}}},ma=n(8),ha=n.n(ma),va=n(17),ga=n.n(va);const ya=e=>e.simulation.simulationId,ba=e=>e.simulation.sessionId,_a=e=>e.simulation.pinFormSubmitted,wa=e=>e.simulation.userHash,Ea=e=>e.simulation.doctorProfileData,xa=e=>e.simulation.inpracticeUserFormSubmitted,Sa=e=>e.simulation.inpracticeUserFormSubmitting,Oa=e=>e.simulation.inpracticeUserFormCancelled,ka={privacy:"privacy_page",privacy_close:"privacy_page_close",privacy_close_inner:"privacy_page_close","click-camera1":"take_your_selfie",close_save_modal:"close_save_modal_popup",close_save_modal_inner:"close_save_modal_popup",save_button:"click_on_save_button_popup",dont_save:"click_on_dont_save",not_suitable:"try_again_not_suitable",network_error:"try_again_network_connection","left-icon":"click_on_simulation_banner","right-icon":"click_on_simulation_banner",uploadedPictureBig:"full_preview_click_before",resultPictureBig:"full_preview_click_after",combined_image:"combined_image_click",thumbsdown:"negative_feedback",thumbsup:"positive_feedback","btn-tell-friends":"tell_friends","btn-request-callback":"request_callback"},ja={"sms-slide-input":["click_on_after_simulation","click_on_before_simulation"],userAccept:["age_check_box","age_check_box_error"]},Ca={expandicon:["show_full_preview_after","show_full_preview_before","sms-slide-input"]},Pa={"glyphicon glyphicon-chevron-right":{containerId:"carousel-examples",event:"click_on_simulation_banner"},"glyphicon glyphicon-chevron-left":{containerId:"carousel-examples",event:"click_on_simulation_banner"}},Na={"click-camera1":["form","form","complete-form"]};const Ta=new class{ev(e,t,n,r){try{xt.disableInternalTracking||this.internalTrack(e,t,n,r),this.gaTrackEvent(e,n),this.gtmTrack(e)}catch(Jc){console.log(Jc)}}internalTrack(e,t,n,r){const o=window._svStore,i=ba(o.getState()),a=ya(o.getState());console.log("tracking ".concat(e," ").concat(t," ").concat(n," ").concat(r," ").concat(i," ").concat(a));let s={country_code:xt.country||"gb",event_name:e,extra_data:n,reason_code:t,lead_id:r,simulation_id:a||"na",session_id:i||"na"};try{xt.site_id&&(s.site_id="v="+xt.site_id),xt.practiceAccount&&(s.extra_data||(s.extra_data=""+xt.practiceAccount)),this.ajaxCall(s)}catch(Jc){console.log(Jc)}}async ajaxCall(e){const t=xt.myInvisalignUrl+"log_event?"+da.objToUrlParams(e);try{const e=await ha.a.get(t,{headers:{Accept:"application/json, text/javascript, */*; q=0.01"}});console.log(e.data)}catch(Jc){console.log(Jc)}}gtmTrack2(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4?arguments[4]:void 0;try{r=r||"";let a={event:(xt.gtmEventPrefix||"")+e,add_info:i({category:(xt.gtmEventPrefix||"")+t,action:n,label:r},o)};if(console.log("GTM: "+JSON.stringify(a)),!window.dataLayer)return;window.dataLayer.push(a)}catch(Jc){this.outp(Jc.message)}}gtmTrack(e){try{this.gtmTrackEventInner(xt.gaTrackingLabel||"SmileView",e)}catch(t){}}gaTrackEvent(e,t){let n=["_trackEvent",xt.gaTrackingLabel||"SmileView",e];t&&n.push(t),this.gaTrackEventInner(n[1],n[2],n[3],n[4],n[5])}gaTrackEventInner(e,t,n,r,o){if(!e)return;let i=[e];try{if(window.promoTrackingPrefixes){i=i.concat(window.promoTrackingPrefixes);for(let t=1;t<i.length;t++)i[t]+=e}}catch(s){}const a=i=>{window.ga(i+".send","event",e,t,n,r,o)};for(let c=0;c<i.length;c++){e=i[c],this.outp(["send","event",e,t,n,r,o]);try{window.ga("send","event",e,t,n,r,o),window._gatrall&&window._gatrall.forEach(e=>a(e))}catch(s){this.outp(s.message)}}}gtmTrackEventInner(e,t){let n=[e];try{if(window.promoTrackingPrefixes){n=n.concat(window.promoTrackingPrefixes);for(let t=1;t<n.length;t++)n[t]+=e}}catch(r){}for(let o=0;o<n.length;o++){e=n[o];try{this.outp("legacy_GTM: "+e+", "+(t||"")),window.dataLayer.push(t?{event:e,eventLabel:t}:{event:e})}catch(r){this.outp(r.message)}}}outp(e){try{console.log(e)}catch(Jc){}}};"undefined"!==typeof window&&(window._svTracking=Ta);const Ia=e=>{if(e&&e.target){console.log("SV click");try{const t=e.target,n=t.id,r=t.classList;if(n){if(ka[n]&&Ta.ev(ka[n]),ja[n]&&Ta.ev(ja[n][t.checked?0:1]),Ca[n]){const e=Ca[n];if(e&&e[2]){const t=document.getElementById(e[2]);t&&Ta.ev(e[t.checked?0:1])}}if(Na[n]){let[e,t,r,o]=Na[n];Ta.gtmTrack2(e,t,r||"",o||"")}}if(r&&r.value&&Pa[r.value]){const e=r.value,n=Pa[e];if(n.containerId){const r="#".concat(n.containerId," .").concat(e.replace(/ /gi,"."));document.querySelector(r)===t&&Ta.ev(n.event)}else Ta.ev(n)}}catch(e){console.log(e)}}};var Aa=Ta;let Fa=null;var Ra=new class{processCable(e,t){const r=n(110);return Fa||(Fa=r.createConsumer(xt.cableSvcUrl)),new Promise((n,r)=>{let o=!1;const i=da.GetNow();let a=window.setTimeout(()=>{a=null,o=!0,Aa.ev("simulation_no_response"),r(new Error("timeout"))},12e4);const s=()=>{a&&(console.log("timeout cleared"),clearTimeout(a),a=null,o=!0)};try{Fa.subscriptions.create({channel:"SimulationChannel",simulation_id:t},{received:t=>{if(console.log(t),!o)if(s(),"completed"===t.message.state){let r=xt.myInvisalignUrl,o=r+t.message.before_file_link,a=r+t.message.after_file_link,s=r+t.message.combined_file_link,c=r+t.message.combined_file_link_img;const u=da.GetNow();Aa.ev("time_taken_for_simulation",u-i),xt.eu&&(da.SetCookie("_saHash",e,1825),da.SetCookie("_saType","sv3",1825)),n({beforeImage:o,afterImage:a,combinedImage:s,combinedImageImg:c})}else r(new Error("unsuitable"))}})}catch(c){s(),r(c)}})}async uploadSimulation(e,t,n){Aa.ev("front_end_simulation_start");let r=new FormData;r.append("simulation_id",n),r.append("session_id",t),r.append("country_code",xt.country),xt.practiceAccount&&r.append("keep_for_research","true"),xt.siteId&&r.append("site_id",xt.siteId),r.append("file",e);let o=await ha.a.post(xt.simulationSvcUrl,r);return console.log(o),await this.processCable(t,n)}async submitUserForm(e){e=e||{};let{first_name:t,last_name:n,postal_code:r}=e;if(t||(t="NA"),n||(n="NA"),r||(r="NA"),e.full_name){let[r,o]=da.TrySplitName(e.full_name);t=r,n=o=o||"NA"}let o=xt.country||"gb";"gb"===o&&(o="en");let a=xt.storeId?{store_id:xt.storeId}:{},s=i(i({},e),{},{first_name:t,last_name:n,postal_code:r,request_type:xt.request_type||"SmileView",source_country:o,source_language:xt.language,sa_hash:da.GetVisitorId()},a);xt.requestPromo&&(s.request_promo=xt.requestPromo);let c=xt.submitUrl;c+=(c.indexOf("?")>=0?"&":"?")+da.objToUrlParams(s);let u=await ha()({url:c,adapter:e=>ga()(i(i({},e),{},{callbackParamName:"method"}))});if(console.log(u),!u.data)throw new Error("error");let l=u.data;if(l.error)throw new Error(l.error);return xt.onPostSubmit&&xt.onPostSubmit(l,s),l}async submitUserPin(e){let t=xt.submitUrl.replace(/\/Create\d?/i,"/UpdatePin");t+=(t.indexOf("?")>=0?"&":"?")+da.objToUrlParams(e);let n=await ha()({url:t,adapter:e=>ga()(i(i({},e),{},{callbackParamName:"method"}))});if(console.log(n),!n.data)throw new Error("error");return n.data}},Da=n(88),Ma=n.n(Da);new class{async fetchAccessToken(){const e={grant_type:"client_credentials",audience:xt.authAudience||"add-custom-claims",client_id:xt.authUserName,client_secret:xt.authPassword},t={headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:xt.geocodeTimeout},n=xt.tokenCacheSvcUrl||xt.tokenSvcUrl||"";try{const o=await ha.a.post(n,Ma.a.stringify(e),t);if(!o.data||!o.data.access_token)throw new Error("Access token not found in response");return o.data.access_token}catch(r){if(ha.a.isAxiosError(r)){const e=r&&r.response&&r.response.data?r.response.data:null;throw console.error("Failed to retrieve access token:",e),new Error("Failed to retrieve access token: ".concat(r.message))}throw r}}};var Ua=new class{async getProfile(e){if(xt.doctorProfileData&&xt.doctorProfileData.clin_id)return xt.doctorProfileData;const t="".concat(xt.doctorProfileSvcUrl).concat(e);let n=await ha()({method:"GET",url:t,adapter:e=>ga()(i(i({},e),{},{callbackParamName:"method"}))});if(console.log(n),!n||!n.data||!n.data.clin_id)throw new Error("invalid profile");return n.data}async submitInpracticeUserForm(e,t,n,r){e=e||{};let{first_name:o,last_name:a}=e;if(o||(o="NA"),a||(a="NA"),e.full_name){let[t,n]=da.TrySplitName(e.full_name);o=t,a=n=n||"NA"}let s=xt.country||"gb";"gb"===s&&(s="en");const c=t.clin_id||"";let u=i(i({},e),{},{doc_id:xt.practiceAccount,simulation_id:r,sa_hash:n,implementation_type:"eu",first_name:o,last_name:a,clin_id:c,request_type:xt.inpractice_request_type||"owndevice",country:s,language:xt.language}),l=xt.inpracticeSubmitUrl;l+=(l.indexOf("?")>=0?"&":"?")+da.objToUrlParams(u);let f=await ha()({url:l,adapter:e=>ga()(i(i({},e),{},{callbackParamName:"method"}))});if(console.log(f),!f.data)throw new Error("error");let d=f.data;if(d.error)throw new Error(d.error);return console.log(d,"data"),xt.onPostSubmit&&xt.onPostSubmit(d,u),d}async submitInpracticeUserPin(e){let t=xt.inpracticeUpdateOptinUrl;t+=(t.indexOf("?")>=0?"&":"?")+da.objToUrlParams(e);let n=await ha()({url:t,adapter:e=>ga()(i(i({},e),{},{callbackParamName:"method"}))});if(console.log(n),!n.data)throw new Error("error");return n.data}};const La=()=>({simulationId:da.GenerateGuid(),sessionId:"undefined"!==typeof window?da.GetVisitorId():""}),Va=function(e,t,n,r){return{type:"COMPLETE_SIMULATION",payload:{beforeImage:e,afterImage:t,combinedImage:n,combinedImageImg:r,error:arguments.length>4&&void 0!==arguments[4]&&arguments[4],errorType:arguments.length>5&&void 0!==arguments[5]?arguments[5]:null}}},Ba=so("COMPLETE_INPRACTICE_USERFORM_CANCEL"),za=so("START_INPRACTICE_USERFORM_SUBMIT"),qa=so("COMPLETE_PINFORM_SUBMIT"),Wa=so("COMPLETE_INPRACTICE_PINFORM_SUBMIT"),Ha=(so("CLEAR_ERRORS"),so("RESET")),$a=async(e,t)=>{if(!(e=>e.simulation.userFormSubmitted)(e)){console.log("submit form");let n={};try{let t=to("UserForm")(e);const{simulationId:r}=e.simulation;let o=Array(4).fill().map((e,n)=>t["pin".concat(n)]||"").reduce((e,t)=>e+t,"");o&&4===o.length||(o=void 0),t=i(i({},t),{},{external_id:r,external_data:o}),console.log(t),n=await Ra.submitUserForm(t),console.log(n)}catch(Jc){console.log(Jc)}t((e=>({type:"COMPLETE_USERFORM_SUBMIT",payload:{userHash:e}}))(n.hash))}},Ga=e=>{return async(t,n)=>{try{const{preview:n,orientation:o}=await pa.processImage(e);t(((e,t,n)=>({type:"COMPLETE_UPLOAD_IMAGE",payload:{imageFile:e,imagePreview:t,imageOrientation:n}}))(e,n,o))}catch(r){console.log(r)}xt.showTestBar||t(Ka())}},Ka=()=>async(e,t)=>{const{imageFile:n,sessionId:r,simulationId:o}=t().simulation;if(!n)return;const i=t();console.log("start simulation");let a=!1;try{let t=await Ra.uploadSimulation(n,r,o);console.log(t),a=!0,e(Va(t.beforeImage,t.afterImage,t.combinedImage,t.combinedImageImg))}catch(s){let t="timeout"===s.message?"timeout":"unsuitable"===s.message?"unsuitable":"network";e(Va(null,null,null,null,!0,t))}xt.showFormAfterResults||xt.practiceAccount||!a||await $a(i,e)},Ya=()=>async(e,t)=>{const n=t();await $a(n,e)},Xa=()=>async(e,t)=>{console.log("submit pin form");try{const e=t(),{simulationId:n}=e.simulation;let r=to("PinForm")(e)||{};const o=Array(4).fill().map((e,t)=>r["pin".concat(t)]||"").reduce((e,t)=>e+t,""),i=wa(e);if(o&&i){let e=null;e=xt.practiceAccount?await Ua.submitInpracticeUserPin({user_pin:o,request_hash:i}):await Ra.submitUserPin({external_data:o,external_id:n,request_hash:i}),console.log(e)}}catch(Jc){console.log(Jc)}xt.practiceAccount?e(Wa()):e(qa())},Za=e=>async(t,n)=>{console.log("get practice profile");let r=null,o=null;try{r=await Ua.getProfile(e)}catch(Jc){console.log(Jc),o=Jc}t(((e,t)=>({type:"COMPLETE_DOCTOR_PROFILE_DATA",payload:{doctorProfileData:e,doctorProfileDataError:t}}))(r,o))},Ja=e=>async(t,n)=>{const r=n();if(!xa(r)&&!Sa(r)){console.log("submit inpractice form"),t(za());let n={};try{const{simulationId:t,sessionId:o,doctorProfileData:i}=r.simulation;console.log(e),n=await Ua.submitInpracticeUserForm(e,i,o,t),console.log(n)}catch(Jc){console.log(Jc)}t((e=>({type:"COMPLETE_INPRACTICE_USERFORM_SUBMIT",payload:{userHash:e}}))(n.hash))}},Qa=i(i({},La()),{},{imageFile:null,imagePreview:null,imageOrientation:null,beforeImage:null,afterImage:null,combinedImage:null,combinedImageImg:null,error:!1,errorType:null,userFormSubmitted:!1,userHash:null,pinFormSubmitted:!1,doctorProfileData:null,doctorProfileDataError:null,inpracticeUserFormSubmitting:!1,inpracticeUserFormSubmitted:!1,inpracticeUserFormCancelled:!1,inpracticePinFormSubmitted:!1});var es=function(e,t,n){void 0===n&&(n={}),ge()(uo(e)||lo(e),"Expected handlers to be a plain object.");var r=vo(e,n),o=fo(r).map(function(e){return function(e,t,n){void 0===t&&(t=io);var r=bo(e).split(po);ge()(!yo(n),"defaultState for reducer handling "+r.join(", ")+" should be defined"),ge()(oo(t)||uo(t),"Expected reducer to be a function or object with next and throw reducers");var o=oo(t)?[t,t]:[t.next,t.throw].map(function(e){return go(e)?io:e}),i=o[0],a=o[1];return function(e,t){void 0===e&&(e=n);var o=t.type;return o&&-1!==r.indexOf(bo(o))?(!0===t.error?a:i)(e,t):e}}(e,mo(e,r),t)}),i=co.apply(void 0,o.concat([t]));return function(e,n){return void 0===e&&(e=t),i(e,n)}}({SET_SESSION:(e,t)=>i(i({},e),t.payload),COMPLETE_UPLOAD_IMAGE:(e,t)=>i(i({},e),t.payload),COMPLETE_SIMULATION:(e,t)=>i(i({},e),t.payload),CLEAR_ERRORS:e=>i(i({},e),{},{error:!1,errorType:null}),RESET:e=>i(i(i({},Qa),La()),{},{userFormSubmitted:e.userFormSubmitted,userHash:e.userHash,doctorProfileData:e.doctorProfileData}),COMPLETE_USERFORM_SUBMIT:(e,t)=>i(i(i({},e),t.payload),{},{userFormSubmitted:!0}),COMPLETE_PINFORM_SUBMIT:(e,t)=>i(i(i({},e),t.payload),{},{pinFormSubmitted:!0}),COMPLETE_DOCTOR_PROFILE_DATA:(e,t)=>i(i({},e),t.payload),START_INPRACTICE_USERFORM_SUBMIT:(e,t)=>i(i(i({},e),t.payload),{},{inpracticeUserFormSubmitting:!0}),COMPLETE_INPRACTICE_USERFORM_SUBMIT:(e,t)=>i(i(i({},e),t.payload),{},{inpracticeUserFormSubmitted:!0,inpracticeUserFormSubmitting:!1}),COMPLETE_INPRACTICE_USERFORM_CANCEL:(e,t)=>i(i(i({},e),t.payload),{},{inpracticeUserFormCancelled:!0}),COMPLETE_INPRACTICE_PINFORM_SUBMIT:(e,t)=>i(i(i({},e),t.payload),{},{inpracticePinFormSubmitted:!0})},Qa);const ts=e=>t=>t&&t.length>e?"Must be ".concat(e," characters or less"):void 0,ns=e=>t=>t&&t.length<e?"Must be ".concat(e," characters or more"):void 0,rs=e=>t=>t&&t<e?"Must be at least ".concat(e):void 0;var os=new class{constructor(){this.required=(e=>e||"number"===typeof e?void 0:"Required"),this.maxLength50=ts(50),this.maxLength100=ts(100),this.maxLength150=ts(150),this.maxLength200=ts(200),this.maxLength250=ts(250),this.minLength2=ns(2),this.number=(e=>e&&isNaN(Number(e))?"Must be a number":void 0),this.minValue13=rs(13),this.email=(e=>e&&!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i.test(e)?"Invalid email address":void 0),this.alphaNumeric=(e=>e&&/[^a-zA-Z0-9 ]/i.test(e)?"Only alphanumeric characters":void 0)}};class is extends s.a.Component{constructor(e){super(e),this.startFormOnce=!1,this.submitOnce=!1,this.scrollToForm=(()=>{this.formRef&&this.formRef.current&&da.scrollIntoView(this.formRef.current)}),this.fieldChanged=((e,t,n,r)=>{if(t&&!n){const e=this.questions[r]&&this.questions[r].track?this.questions[r].track:r;Aa.ev(e)}}),this.renderField=(e=>{let{input:t,label:n,type:r,meta:{touched:o,error:i,warning:a}}=e;return s.a.createElement("div",{className:"inpractice-field-container"},"checkbox"===r?s.a.createElement("label",{className:"sv-checkmarkcontainer sv-font-smaller "+(o&&i?"sv-label-error":"")},s.a.createElement("input",Object.assign({},t,{type:r})),s.a.createElement("span",{dangerouslySetInnerHTML:{__html:n}})," ",s.a.createElement("span",{className:"sv-checkmark"})):"multitext"===r?s.a.createElement("textarea",Object.assign({style:{height:"50px"}},t,{placeholder:n,type:r,className:"sv-form-control "+(o&&i?"sv-error":"")})):s.a.createElement("input",Object.assign({},t,{placeholder:n,type:r,className:"sv-form-control "+(o&&i?"sv-error":"")})))}),this.submitClicked=(e=>{const{handleSubmit:t,valid:n,formValues:r}=this.props;if(!n)return t(()=>{})(),void this.scrollToForm();let o=i({},r);this.getQuestonArr().forEach((e,t)=>{o[e.id]&&(o["question"+(t+1)]=e.n)}),this.submitOnce||(this.submitOnce=!0,this.props.dispatch(Ja(o)))}),this.cancelClicked=(e=>{this.props.dispatch(Ba())}),this.replaceOrtho=(e=>da.replaceOrtho2(e,this.props.doctorProfileData)),this.fileClicked=(e=>{const{handleSubmit:t,valid:n}=this.props;n||(t(()=>{})(),this.scrollToForm())}),this.imageChanged=(e=>{const{formValues:t}=this.props;console.log(t),e.target&&e.target.files&&e.target.files[0]&&this.props.dispatch(Ga(e.target.files[0])),this.submitClicked()}),this.getQuestonArr=(()=>{const{doctorProfileData:e}=this.props;return e&&e.form_actions_list?e.form_actions_list.split(",").map(e=>this.questions[e]?i(i({},this.questions[e]),{},{id:e}):null).filter(e=>!!e):[]}),this.formRef=s.a.createRef(),this.questions={affordable:{n:xt.res("inpractice_form_q3"),track:"Is_it_affordable"},quickly_see_results:{n:xt.res("inpractice_form_q4"),track:"How_quickly_results"},how_works:{n:xt.res("inpractice_form_q5"),track:"How_does_it_work"},different_braces:{n:xt.res("inpractice_form_q1"),track:"How_different"},invite_friend:{n:xt.res("inpractice_form_q2"),track:"Invite_friend"}}}componentDidMount(){}componentDidUpdate(e){}render(){const{formSubmitting:e,formSubmitted:t,formCancelled:n,valid:r}=this.props;if(n||t)return null;const{doctorProfileData:o}=this.props,{use_email:i,use_phone:a,user_name:c,use_postcode:u}=o||{},l=!i&&!a&&!c,f=this.getQuestonArr();return s.a.createElement("div",{className:"inpractice-user-form"},s.a.createElement("form",{ref:this.formRef},!l&&s.a.createElement("div",{className:"inpractice-form-details-container"},!this.props.hideTopHeader&&s.a.createElement("div",{className:"inpractice-form-header1"},xt.res("inpractice_form_heading1")),s.a.createElement("div",{className:"inpractice-form-header2"},this.replaceOrtho("inpractice_form_heading2")),!!c&&s.a.createElement("div",{className:"inpractice-form-inline row"},s.a.createElement("div",{className:"inpractice-form-item fn col-6"},s.a.createElement(mn,{onChange:this.fieldChanged,component:this.renderField,name:"first_name",type:"text",label:xt.res("form_firstname"),validate:[os.required,os.maxLength50]})),s.a.createElement("div",{className:"inpractice-form-item ln col-6"},s.a.createElement(mn,{onChange:this.fieldChanged,component:this.renderField,name:"last_name",type:"text",label:xt.res("form_lastname"),validate:[os.required,os.maxLength50]}))),!!i&&s.a.createElement("div",{className:"inpractice-form-inline row"},s.a.createElement("div",{className:"inpractice-form-item col-12"},s.a.createElement(mn,{onChange:this.fieldChanged,component:this.renderField,name:"email",type:"text",label:xt.res("form_email"),validate:[os.required,os.maxLength50,os.email]}))),!!a&&s.a.createElement("div",{className:"inpractice-form-inline row"},s.a.createElement("div",{className:"inpractice-form-item col-12"},s.a.createElement(mn,{onChange:this.fieldChanged,component:this.renderField,name:"phone",type:"text",label:xt.res("inpractice_form_phone"),validate:[os.required,os.maxLength50]}))),!!u&&s.a.createElement("div",{className:"inpractice-form-inline row"},s.a.createElement("div",{className:"inpractice-form-item col-12"},s.a.createElement(mn,{onChange:this.fieldChanged,component:this.renderField,name:"postal_code",type:"text",label:xt.res("inpractice_form_postcode"),validate:[os.required,os.maxLength50]})))),!!f&&!!f.length&&s.a.createElement("div",{className:"inpractice-form-questions-container"},s.a.createElement("div",{className:"inpractice-form-header1"},xt.res("inpractice_form_subheading1")),s.a.createElement("div",{className:"row"},f.map((e,t)=>s.a.createElement("div",{className:"col-4",key:t},s.a.createElement(mn,{onChange:this.fieldChanged,component:this.renderField,name:e.id,type:"checkbox",label:e.n}))))),s.a.createElement("div",{className:"inpractice-form-buttons-container row"},xt.inPracticeFormAtWelcome?s.a.createElement("div",{className:"col-12"},s.a.createElement("p",{dangerouslySetInnerHTML:{__html:xt.res("form_verify18")}}),s.a.createElement("label",{onClick:this.fileClicked,className:"sv-upload-label fullWidth"},s.a.createElement("input",{id:"click-camera1",accept:"image/*",capture:"user",type:"file",name:"image",onChange:this.imageChanged,disabled:!r,className:"sv-hidden-file"}),xt.res("form_take_selfie"))):s.a.createElement("div",{className:"col-12"},!!e&&s.a.createElement("img",{width:"18",height:"18",alt:"Loading...",src:xt.assetBase+"img/loading_transparent.gif",className:"pull-left",id:"drimgloading"}),s.a.createElement("a",{href:"#0",className:"btn btn-lblue btn-tall",onClick:this.cancelClicked},xt.res("inpractice_form_cancel")),s.a.createElement("a",{href:"#0",className:"btn btn-lblue btn-tall",onClick:this.submitClicked},this.replaceOrtho("inpractice_form_send")))),s.a.createElement("p",{className:"inpractice-form-small-text"},xt.inpracticeCustomDisclaimer&&xt.inpracticeCustomDisclaimer[xt.practiceAccount]?xt.inpracticeCustomDisclaimer[xt.practiceAccount]:this.replaceOrtho("inpractice_form_disclaimer"))))}}is=eo({form:"InpracticeUserForm",destroyOnUnmount:!1})(is);var as=is=G(e=>({formValues:to("InpracticeUserForm")(e),formErrors:no("InpracticeUserForm")(e),formMeta:ro("InpracticeUserForm")(e),doctorProfileData:Ea(e),formSubmitting:Sa(e),formSubmitted:xa(e),formCancelled:Oa(e)}))(is);class ss extends s.a.Component{constructor(e){super(e),this.startFormOnce=!1,this.submitOnce=!1,this.getUserFields=(()=>xt.practiceAccount?[{type:"checkbox",name:"offers_accept",validate:["required"],label:xt.res("form_verify18")}]:xt.userFields),this.validatePin=((e,t)=>{const n=Array(4).fill().map((e,n)=>t["pin".concat(n)]||"").reduce((e,t)=>e+t,"");if(0!==n.length)return 4===n.length&&/^(0000|1111|2222|3333|4444|5555|6666|7777|8888|9999|1234|4321)$/i.test(n)?xt.res("error_bad_pin"):4!==n.length?xt.res("error_enter_pin"):void 0}),this.fieldChanged=((e,t,n,r)=>{!this.startFormOnce&&t&&(Aa.gtmTrack2("form","form","start-filling-form"),this.startFormOnce=!0),xt.practiceAccount&&"offers_accept"===r&&Aa.ev(t?"age_check_box":"age_check_box_error")}),this.renderField=(e=>{let{input:t,label:n,type:r,meta:{touched:o,error:i,warning:a}}=e;return s.a.createElement("div",{className:"sv-field-container"},"checkbox"===r?s.a.createElement("label",{className:"sv-checkmarkcontainer sv-font-smaller "+(o&&i?"sv-label-error":"")},s.a.createElement("input",Object.assign({},t,{type:r})),s.a.createElement("span",{dangerouslySetInnerHTML:{__html:n}})," ",s.a.createElement("span",{className:"sv-checkmark"})):"multitext"===r?s.a.createElement("textarea",Object.assign({style:{height:"50px"}},t,{placeholder:n,type:r,className:"sv-form-control "+(o&&i?"sv-error":"")})):s.a.createElement("input",Object.assign({},t,{placeholder:n,type:r,className:"sv-form-control "+(o&&i?"sv-error":"")})))}),this.renderPinField=(e=>{let{id:t,input:n,label:r,type:o,meta:{touched:i,error:a,warning:c}}=e;return s.a.createElement("div",{className:"col-3"},s.a.createElement("input",Object.assign({ref:this.refArr[t],onClick:e=>e.target.select()},n,{placeholder:r,className:"sv-form-control",type:"text"})))}),this.renderPhonePrefixField=(e=>{let{input:t,prefixes:n,meta:{touched:r,error:o,warning:i}}=e;return s.a.createElement("select",Object.assign({className:"sv-phone-prefix"},t),(n||[]).map(e=>s.a.createElement("option",{key:e,value:e},e)))}),this.pinFieldNormalize=(e=>{if(!e)return e;const t=/^(\d)/i.exec(e);return t&&t.length>1?t[1]:""}),this.imageChanged=(e=>{const{formValues:t}=this.props;console.log(t),e.target&&e.target.files&&e.target.files[0]&&this.props.dispatch(Ga(e.target.files[0]))}),this.scrollToForm=(()=>{console.log("scrolltoForm"),this.formRef&&this.formRef.current&&da.scrollIntoView(this.formRef.current)}),this.fileClicked=(e=>{const{handleSubmit:t,valid:n}=this.props;n||(t(()=>{})(),this.scrollToForm())}),this.submitClicked=(e=>{const{handleSubmit:t,valid:n}=this.props;if(!n)return t(()=>{})(),void this.scrollToForm();this.submitOnce||(this.submitOnce=!0,this.props.dispatch(Ya()),Aa.gtmTrack2("submit-email","submit-email","completed"))}),this.formRef=s.a.createRef(),this.refArr=Array(4).fill().map(e=>s.a.createRef())}componentDidMount(){(this.getUserFields()||[]).filter(e=>"phonewithprefix"===e.type&&!!e.name&&e.prefixes&&e.prefixes.length).forEach(e=>this.props.change("phone_prefix",e.prefixes[0]||""))}componentDidUpdate(e){this.props.expanded&&e.expanded!==this.props.expanded&&window.setTimeout(()=>{this.formRef.current&&da.scrollIntoView(this.formRef.current)},100);const t=e.formValues||{},n=this.props.formValues||{};for(let r=0;r<4;r++){const e=n["pin".concat(r)],o=t["pin".concat(r)];if(e&&e!==o)return void(r<3&&this.refArr[r+1]&&this.refArr[r+1].current&&(this.refArr[r+1].current.focus(),this.refArr[r+1].current.select()))}}render(){const{valid:e,formErrors:t,formMeta:n}=this.props;return s.a.createElement("div",{className:"sv-user-form"},this.props.showCarousel&&s.a.createElement(wt,{id:"carousel-examples"},Array(xt.carouselImageCount).fill(0).map((e,t)=>s.a.createElement(wt.Item,{key:t},s.a.createElement("div",{className:"row sv-carousel-item"},s.a.createElement("div",{className:"col-6"},s.a.createElement("img",{src:"".concat(xt.imgBase,"before").concat(t+1,".jpg"),alt:"Before".concat(t+1)})),s.a.createElement("div",{className:"col-6"},s.a.createElement("img",{src:"".concat(xt.imgBase,"after").concat(t+1,".jpg"),alt:"After".concat(t+1)})))))),s.a.createElement("form",{ref:this.formRef},!this.props.hideFields&&(this.getUserFields()||[]).map(e=>"pins"===e.type?s.a.createElement("div",{className:"sv-pin-form",key:e.name},s.a.createElement("p",null,e.label),!!t.pin0&&n&&!["pin0","pin1","pin2","pin3"].some(e=>!n[e]||!n[e].touched)&&s.a.createElement("p",{style:{color:"red"}},t.pin0),s.a.createElement("div",{className:"row"},Array(4).fill().map((e,t)=>s.a.createElement(mn,{validate:0===t?[this.validatePin]:[],key:"pin".concat(t),component:this.renderPinField,normalize:this.pinFieldNormalize,id:t,name:"pin".concat(t)})))):"paragraph"===e.type?s.a.createElement("p",{key:e.name,dangerouslySetInnerHTML:{__html:e.label}}):"phonewithprefix"===e.type?s.a.createElement("div",{key:e.name,className:"clearfix"},s.a.createElement(mn,Object.assign({onChange:this.fieldChanged,component:this.renderPhonePrefixField},i(i({},e),{name:"phone_prefix"}),{validate:[]})),s.a.createElement("div",{className:"sv-phone-short"},s.a.createElement(mn,Object.assign({onChange:this.fieldChanged,component:this.renderField},i(i({},e),{type:"text"}),{validate:(e.validate||[]).filter(e=>os[e]).map(e=>os[e])})))):s.a.createElement(mn,Object.assign({key:e.name,onChange:this.fieldChanged,component:this.renderField},e,{validate:(e.validate||[]).filter(e=>os[e]).map(e=>os[e])}))),this.props.simpleSubmit?s.a.createElement(s.a.Fragment,null,s.a.createElement("p",null,s.a.createElement("a",{href:"#0",className:"btn btn-lblue btn-tall btn-wide",onClick:this.submitClicked},xt.res("form_submit")||"Submit"))):s.a.createElement(s.a.Fragment,null,!xt.practiceAccount&&s.a.createElement("p",{dangerouslySetInnerHTML:{__html:xt.res("form_verify18")}}),s.a.createElement("label",{onClick:this.fileClicked,className:"sv-upload-label"},s.a.createElement("input",{id:"click-camera1",accept:"image/*",capture:"user",type:"file",name:"image",onChange:this.imageChanged,disabled:!e,className:"sv-hidden-file"}),xt.res("form_take_selfie")))))}}ss=eo({form:"UserForm",validate:e=>{return{}},destroyOnUnmount:!1})(ss);var cs=ss=G(e=>({formValues:to("UserForm")(e),formErrors:no("UserForm")(e),formMeta:ro("UserForm")(e)}))(ss);const us={1:"rotate(0deg)",3:"rotate(180deg)",6:"rotate(90deg)",8:"rotate(270deg)"};var ls,fs=G(e=>({simulation:e.simulation}))(class extends s.a.Component{constructor(e){super(e),this.progressInterval=(()=>{this.setState(e=>this.getProgressAndPercent(e))}),this.getProgressAndPercent=(e=>{let t=e.progress+1,n=e.percent+(t>=xt.getProgressMessages().length?5:10);return n>95&&(n=95),{progress:t,percent:n}}),this.getRotationCss=(()=>this.props.simulation.imageOrientation&&us[this.props.simulation.imageOrientation]?{transform:us[this.props.simulation.imageOrientation]}:{}),this.renderUserForm=(()=>s.a.createElement(cs,{simpleSubmit:!0,showCarousel:!xt.showCarouselOnFirstStep})),this.state={progress:0,percent:0}}componentDidMount(){this.tmr=setInterval(this.progressInterval,4e3)}componentWillUnmount(){this.tmr&&clearInterval(this.tmr)}render(){const e=xt.getProgressMessages(),t=this.state.progress>=e.length?e[e.length-1]:e[this.state.progress];return s.a.createElement("div",{className:"sv-loading-page"},xt.practiceAccount?s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:"row inpractice-progress-section"},s.a.createElement("div",{className:"col-7"},s.a.createElement("div",{className:"inpractice-progress-header"},xt.res("inpractice_capture_heading1"),s.a.createElement("br",null),xt.res("inpractice_capture_heading2"))),s.a.createElement("div",{className:"col-5"},s.a.createElement("div",{className:"inpractice-percentage"},this.state.percent+"%"),s.a.createElement("div",{className:"inpractice-progress-text"},t))),xt.inPracticeFormAtWelcome?s.a.createElement("div",{className:"sv-upload-image-container"},s.a.createElement("img",{className:"sv-upload-image",alt:"",src:this.props.simulation.imagePreview,style:i({},this.getRotationCss())}),s.a.createElement("div",{className:"sv-progress-text"},xt.res("capture_very_quick")),s.a.createElement("div",{className:"sv-loading"},s.a.createElement("img",{src:"".concat(xt.assetBase,"Content/dlcommon/images/loading_transparent.gif"),alt:""})),s.a.createElement("div",{className:"sv-progress-message"},t)):s.a.createElement("div",{className:"inpractice-form-container"},s.a.createElement(as,null))):s.a.createElement(s.a.Fragment,null,s.a.createElement("h2",{className:"sv-loading-header"},xt.res("capture_creating_simulation")),s.a.createElement("div",{className:"sv-upload-image-container"},s.a.createElement("img",{className:"sv-upload-image",alt:"",src:this.props.simulation.imagePreview,style:i({},this.getRotationCss())}),s.a.createElement("div",{className:"sv-progress-text"},xt.res("capture_very_quick")),s.a.createElement("div",{className:"sv-loading"},s.a.createElement("img",{src:"".concat(xt.assetBase,"Content/dlcommon/images/loading_transparent.gif"),alt:""})),s.a.createElement("div",{className:"sv-progress-message"},t)),s.a.createElement("div",{className:"sv-progress-container"},s.a.createElement("div",{className:"sv-progress-border"},s.a.createElement("div",{className:"sv-progress-fill",style:{width:this.state.percent+"%",height:"100%"}}),s.a.createElement("div",{className:"sv-percentage"},this.state.percent+"%"))),s.a.createElement("div",{className:"row sv-carousel-caption"},s.a.createElement("div",{className:"col-6"},xt.res("results_current")),s.a.createElement("div",{className:"col-6"},xt.res("results_smileview"))),xt.showFormOnLoading&&!this.props.userFormSubmitted&&this.renderUserForm(),!!xt.thankyouMessage&&s.a.createElement("div",{className:"sv-thankyou-msg"},xt.thankyouMessage),!!xt.carouselImageCount&&!xt.showCarouselOnFirstStep&&s.a.createElement(wt,{id:"carousel-examples"},Array(xt.carouselImageCount).fill(0).map((e,t)=>s.a.createElement(wt.Item,{key:t},s.a.createElement("div",{className:"row sv-carousel-item"},s.a.createElement("div",{className:"col-6"},s.a.createElement("img",{src:"".concat(xt.imgBase,"before").concat(t+1,".jpg"),alt:"Before".concat(t+1)})),s.a.createElement("div",{className:"col-6"},s.a.createElement("img",{src:"".concat(xt.imgBase,"after").concat(t+1,".jpg"),alt:"After".concat(t+1)}))))))))}});function ds(e){if((!ls&&0!==ls||e)&&Ge){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),ls=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return ls}function ps(e){void 0===e&&(e=Ve());try{var t=e.activeElement;return t&&t.nodeName?t:null}catch(Jc){return e.body}}function ms(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}function hs(e){const t=function(e){const t=Object(a.useRef)(e);return t.current=e,t}(e);Object(a.useEffect)(()=>()=>t.current(),[])}const vs=(gs="modal-open","".concat("data-rr-ui-").concat(gs));var gs;var ys=class{constructor(){let{ownerDocument:e,handleContainerOverflow:t=!0,isRTL:n=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.handleContainerOverflow=t,this.isRTL=n,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const t={overflow:"hidden"},n=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();e.style={overflow:r.style.overflow,[n]:r.style[n]},e.scrollBarWidth&&(t[n]="".concat(parseInt($e(r,n)||"0",10)+e.scrollBarWidth,"px")),r.setAttribute(vs,""),$e(r,t)}reset(){[...this.modals].forEach(e=>this.remove(e))}removeContainerStyle(e){const t=this.getElement();t.removeAttribute(vs),Object.assign(t.style,e.style)}add(e){let t=this.modals.indexOf(e);return-1!==t?t:(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),0!==t?t:(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state),t))}remove(e){const t=this.modals.indexOf(e);-1!==t&&(this.modals.splice(t,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}};const bs=Object(a.createContext)(Ge?window:void 0);bs.Provider;function _s(){return Object(a.useContext)(bs)}const ws=(e,t)=>{var n;return Ge?null==e?(t||Ve()).body:("function"===typeof e&&(e=e()),e&&"current"in e&&(e=e.current),null!=(n=e)&&n.nodeType&&e||null):null};const Es=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","backdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];let xs;function Ss(e){const t=_s(),n=e||function(e){return xs||(xs=new ys({ownerDocument:null==e?void 0:e.document})),xs}(t),r=Object(a.useRef)({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:Object(a.useCallback)(e=>{r.current.dialog=e},[]),setBackdropRef:Object(a.useCallback)(e=>{r.current.backdrop=e},[])})}const Os=Object(a.forwardRef)((e,t)=>{let{show:n=!1,role:r="dialog",className:o,style:i,children:s,backdrop:c=!0,keyboard:u=!0,onBackdropClick:l,onEscapeKeyDown:f,transition:d,backdropTransition:p,autoFocus:m=!0,enforceFocus:h=!0,restoreFocus:v=!0,restoreFocusOptions:g,renderDialog:y,renderBackdrop:b=(e=>Object(se.jsx)("div",Object.assign({},e))),manager:_,container:w,onShow:E,onHide:x=(()=>{}),onExit:S,onExited:O,onExiting:k,onEnter:j,onEntering:C,onEntered:P}=e,N=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Es);const T=function(e,t){const n=_s(),[r,o]=Object(a.useState)(()=>ws(e,null==n?void 0:n.document));if(!r){const t=ws(e);t&&o(t)}return Object(a.useEffect)(()=>{t&&r&&t(r)},[t,r]),Object(a.useEffect)(()=>{const t=ws(e);t!==r&&o(t)},[e,r]),r}(w),I=Ss(_),A=Object(ae.a)(),F=function(e){const t=Object(a.useRef)(null);return Object(a.useEffect)(()=>{t.current=e}),t.current}(n),[R,D]=Object(a.useState)(!n),M=Object(a.useRef)(null);Object(a.useImperativeHandle)(t,()=>I,[I]),Ge&&!F&&n&&(M.current=ps()),d||n||R?n&&R&&D(!1):D(!0);const U=ie(()=>{if(I.add(),W.current=Qe(document,"keydown",z),q.current=Qe(document,"focus",()=>setTimeout(V),!0),E&&E(),m){const e=ps(document);I.dialog&&e&&!ms(I.dialog,e)&&(M.current=e,I.dialog.focus())}}),L=ie(()=>{var e;(I.remove(),null==W.current||W.current(),null==q.current||q.current(),v)&&(null==(e=M.current)||null==e.focus||e.focus(g),M.current=null)});Object(a.useEffect)(()=>{n&&T&&U()},[n,T,U]),Object(a.useEffect)(()=>{R&&L()},[R,L]),hs(()=>{L()});const V=ie(()=>{if(!h||!A()||!I.isTopModal())return;const e=ps();I.dialog&&e&&!ms(I.dialog,e)&&I.dialog.focus()}),B=ie(e=>{e.target===e.currentTarget&&(null==l||l(e),!0===c&&x())}),z=ie(e=>{u&&27===e.keyCode&&I.isTopModal()&&(null==f||f(e),e.defaultPrevented||x())}),q=Object(a.useRef)(),W=Object(a.useRef)(),H=function(){D(!0),null==O||O(...arguments)},$=d;if(!T||!(n||$&&!R))return null;const G=Object.assign({role:r,ref:I.setDialogRef,"aria-modal":"dialog"===r||void 0},N,{style:i,className:o,tabIndex:-1});let K=y?y(G):Object(se.jsx)("div",Object.assign({},G,{children:a.cloneElement(s,{role:"document"})}));$&&(K=Object(se.jsx)($,{appear:!0,unmountOnExit:!0,in:!!n,onExit:S,onExiting:k,onExited:H,onEnter:j,onEntering:C,onEntered:P,children:K}));let Y=null;if(c){const e=p;Y=b({ref:I.setBackdropRef,onClick:B}),e&&(Y=Object(se.jsx)(e,{appear:!0,in:!!n,children:Y}))}return Object(se.jsx)(se.Fragment,{children:X.a.createPortal(Object(se.jsxs)(se.Fragment,{children:[Y,K]}),T)})});Os.displayName="Modal";var ks=Object.assign(Os,{Manager:ys});var js=Function.prototype.bind.call(Function.prototype.call,[].slice);function Cs(e,t){return js(e.querySelectorAll(t))}function Ps(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const Ns={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class Ts extends ys{adjustAndStore(e,t,n){const r=t.style[e];t.dataset[e]=r,$e(t,{[e]:"".concat(parseFloat($e(t,e))+n,"px")})}restore(e,t){const n=t.dataset[e];void 0!==n&&(delete t.dataset[e],$e(t,{[e]:n}))}setContainerStyle(e){super.setContainerStyle(e);const t=this.getElement();var n,r;if(r="modal-open",(n=t).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"===typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)),!e.scrollBarWidth)return;const o=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Cs(t,Ns.FIXED_CONTENT).forEach(t=>this.adjustAndStore(o,t,e.scrollBarWidth)),Cs(t,Ns.STICKY_CONTENT).forEach(t=>this.adjustAndStore(i,t,-e.scrollBarWidth)),Cs(t,Ns.NAVBAR_TOGGLER).forEach(t=>this.adjustAndStore(i,t,e.scrollBarWidth))}removeContainerStyle(e){super.removeContainerStyle(e);const t=this.getElement();var n,r;r="modal-open",(n=t).classList?n.classList.remove(r):"string"===typeof n.className?n.className=Ps(n.className,r):n.setAttribute("class",Ps(n.className&&n.className.baseVal||"",r));const o=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Cs(t,Ns.FIXED_CONTENT).forEach(e=>this.restore(o,e)),Cs(t,Ns.STICKY_CONTENT).forEach(e=>this.restore(i,e)),Cs(t,Ns.NAVBAR_TOGGLER).forEach(e=>this.restore(i,e))}}let Is;const As=["className","children","transitionClasses"],Fs={[ut]:"show",[lt]:"show"},Rs=a.forwardRef((e,t)=>{let{className:n,children:r,transitionClasses:o={}}=e,s=Z(e,As);const c=Object(a.useCallback)((e,t)=>{ot(e),null==s.onEnter||s.onEnter(e,t)},[s]);return Object(se.jsx)(gt,i(i({ref:t,addEndListener:rt},s),{},{onEnter:c,childRef:r.ref,children:(e,t)=>a.cloneElement(r,i(i({},t),{},{className:he()("fade",n,r.props.className,Fs[e],o[e])}))}))});Rs.defaultProps={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1},Rs.displayName="Fade";var Ds=Rs,Ms=Fe("modal-body");var Us=a.createContext({onHide(){}});const Ls=["bsPrefix","className","contentClassName","centered","size","fullscreen","children","scrollable"],Vs=a.forwardRef((e,t)=>{let{bsPrefix:n,className:r,contentClassName:o,centered:a,size:s,fullscreen:c,children:u,scrollable:l}=e,f=Z(e,Ls);n=Ne(n,"modal");const d="".concat(n,"-dialog"),p="string"===typeof c?"".concat(n,"-fullscreen-").concat(c):"".concat(n,"-fullscreen");return Object(se.jsx)("div",i(i({},f),{},{ref:t,className:he()(d,r,s&&"".concat(n,"-").concat(s),a&&"".concat(d,"-centered"),l&&"".concat(d,"-scrollable"),c&&p),children:Object(se.jsx)("div",{className:he()("".concat(n,"-content"),o),children:u})}))});Vs.displayName="ModalDialog";var Bs=Vs,zs=Fe("modal-footer");const qs=["className","variant"],Ws={"aria-label":Tt.a.string,onClick:Tt.a.func,variant:Tt.a.oneOf(["white"])},Hs=a.forwardRef((e,t)=>{let{className:n,variant:r}=e,o=Z(e,qs);return Object(se.jsx)("button",i({ref:t,type:"button",className:he()("btn-close",r&&"btn-close-".concat(r),n)},o))});Hs.displayName="CloseButton",Hs.propTypes=Ws,Hs.defaultProps={"aria-label":"Close"};var $s=Hs;const Gs=["closeLabel","closeVariant","closeButton","onHide","children"],Ks=a.forwardRef((e,t)=>{let{closeLabel:n,closeVariant:r,closeButton:o,onHide:s,children:c}=e,u=Z(e,Gs);const l=Object(a.useContext)(Us),f=Q(()=>{null==l||l.onHide(),null==s||s()});return Object(se.jsxs)("div",i(i({ref:t},u),{},{children:[c,o&&Object(se.jsx)($s,{"aria-label":n,variant:r,onClick:f})]}))});Ks.defaultProps={closeLabel:"Close",closeButton:!1};var Ys=Ks;const Xs=["bsPrefix","className"],Zs=a.forwardRef((e,t)=>{let{bsPrefix:n,className:r}=e,o=Z(e,Xs);return n=Ne(n,"modal-header"),Object(se.jsx)(Ys,i(i({ref:t},o),{},{className:he()(r,n)}))});Zs.displayName="ModalHeader",Zs.defaultProps={closeLabel:"Close",closeButton:!1};var Js=Zs;var Qs,ec=Fe("modal-title",{Component:(Qs="h4",a.forwardRef((e,t)=>Object(se.jsx)("div",i(i({},e),{},{ref:t,className:he()(e.className,Qs)}))))});const tc=["bsPrefix","className","style","dialogClassName","contentClassName","children","dialogAs","aria-labelledby","show","animation","backdrop","keyboard","onEscapeKeyDown","onShow","onHide","container","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","onEntered","onExit","onExiting","onEnter","onEntering","onExited","backdropClassName","manager"],nc={show:!1,backdrop:!0,keyboard:!0,autoFocus:!0,enforceFocus:!0,restoreFocus:!0,animation:!0,dialogAs:Bs};function rc(e){return Object(se.jsx)(Ds,i(i({},e),{},{timeout:null}))}function oc(e){return Object(se.jsx)(Ds,i(i({},e),{},{timeout:null}))}const ic=a.forwardRef((e,t)=>{let{bsPrefix:n,className:r,style:o,dialogClassName:s,contentClassName:c,children:u,dialogAs:l,"aria-labelledby":f,show:d,animation:p,backdrop:m,keyboard:h,onEscapeKeyDown:v,onShow:g,onHide:y,container:b,autoFocus:_,enforceFocus:w,restoreFocus:E,restoreFocusOptions:x,onEntered:S,onExit:O,onExiting:k,onEnter:j,onEntering:C,onExited:P,backdropClassName:N,manager:T}=e,I=Z(e,tc);const[A,F]=Object(a.useState)({}),[R,D]=Object(a.useState)(!1),M=Object(a.useRef)(!1),U=Object(a.useRef)(!1),L=Object(a.useRef)(null),[V,B]=Object(a.useState)(null),z=ht(t,B),q=Q(y),W=Te();n=Ne(n,"modal");const H=Object(a.useMemo)(()=>({onHide:q}),[q]);function $(){return T||(e={isRTL:W},Is||(Is=new Ts(e)),Is);var e}function G(e){if(!Ge)return;const t=$().getScrollbarWidth()>0,n=e.scrollHeight>Ve(e).documentElement.clientHeight;F({paddingRight:t&&!n?ds():void 0,paddingLeft:!t&&n?ds():void 0})}const K=Q(()=>{V&&G(V.dialog)});te(()=>{Je(window,"resize",K),null==L.current||L.current()});const Y=()=>{M.current=!0},X=e=>{M.current&&V&&e.target===V.dialog&&(U.current=!0),M.current=!1},J=()=>{D(!0),L.current=tt(V.dialog,()=>{D(!1)})},ee=e=>{"static"!==m?U.current||e.target!==e.currentTarget?U.current=!1:null==y||y():(e=>{e.target===e.currentTarget&&J()})(e)},ne=Object(a.useCallback)(e=>Object(se.jsx)("div",i(i({},e),{},{className:he()("".concat(n,"-backdrop"),N,!p&&"show")})),[p,N,n]),re=i(i({},o),A);p||(re.display="block");return Object(se.jsx)(Us.Provider,{value:H,children:Object(se.jsx)(ks,{show:d,ref:z,backdrop:m,container:b,keyboard:!0,autoFocus:_,enforceFocus:w,restoreFocus:E,restoreFocusOptions:x,onEscapeKeyDown:e=>{h||"static"!==m?h&&v&&v(e):(e.preventDefault(),J())},onShow:g,onHide:y,onEnter:(e,t)=>{e&&(e.style.display="block",G(e)),null==j||j(e,t)},onEntering:(e,t)=>{null==C||C(e,t),Ze(window,"resize",K)},onEntered:S,onExit:e=>{null==L.current||L.current(),null==O||O(e)},onExiting:k,onExited:e=>{e&&(e.style.display=""),null==P||P(e),Je(window,"resize",K)},manager:$(),transition:p?rc:void 0,backdropTransition:p?oc:void 0,renderBackdrop:ne,renderDialog:e=>Object(se.jsx)("div",i(i({role:"dialog"},e),{},{style:re,className:he()(r,n,R&&"".concat(n,"-static")),onClick:m?ee:void 0,onMouseUp:X,"aria-labelledby":f,children:Object(se.jsx)(l,i(i({},I),{},{onMouseDown:Y,className:s,contentClassName:c,children:u}))}))})})});ic.displayName="Modal",ic.defaultProps=nc;var ac=Object.assign(ic,{Body:Ms,Header:Js,Title:ec,Footer:zs,Dialog:Bs,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150});var sc=G(e=>({simulation:e.simulation}))(class extends s.a.Component{constructor(){super(...arguments),this.state={privacyOpened:!1},this.togglePrivacy=(()=>this.setState(e=>({privacyOpened:!e.privacyOpened})))}render(){const e=xt.res("form_respect_privacy").split(/[{}]/i),{doctorProfileData:t}=this.props.simulation,{thumbnail_url:n}=t||{};return s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:"sv-landing-page"},!!xt.practiceAccount&&s.a.createElement("div",{className:"inpractice-landing-header"},s.a.createElement("h1",null,xt.res("inpractice_landing_top_header")),!!n&&s.a.createElement("img",{alt:"",src:"".concat(xt.doctorProfileImgRoot).concat(n),className:"inpractice-profile-thumbnail"}),s.a.createElement("div",{className:"inpractice-tips-container"},s.a.createElement("h2",null,xt.res("inpractice_landing_tips_header")),s.a.createElement("div",{className:"inpractice-landing-tip"},xt.res("inpractice_landing_tips_1")),s.a.createElement("div",{className:"inpractice-landing-tip"},xt.res("inpractice_landing_tips_2")),s.a.createElement("div",{className:"inpractice-landing-tip"},xt.res("inpractice_landing_tips_3")),s.a.createElement("div",{className:"inpractice-landing-tip"},xt.res("inpractice_landing_tips_4")))),xt.inPracticeFormAtWelcome&&s.a.createElement("div",{className:"inpractice-form-container"},s.a.createElement(as,{hideTopHeader:!0})),!xt.inPracticeFormAtWelcome&&s.a.createElement(cs,{expanded:this.props.expanded,hideFields:!!xt.showFormAfterResults,showCarousel:!!xt.showCarouselOnFirstStep}),s.a.createElement("p",{className:"sv-font-smallest sv-small-width"},e[0],s.a.createElement("a",{id:"privacy",href:"#0",onClick:this.togglePrivacy},e[1]),e[2]),s.a.createElement("p",{className:"sv-font-smallest sv-bottom-disclaimer",dangerouslySetInnerHTML:{__html:xt.res("footer_sv_computer_generated")}})),s.a.createElement(ac,{show:this.state.privacyOpened,onHide:this.togglePrivacy,className:"smile-visualization-wrap"},s.a.createElement(ac.Header,null,s.a.createElement("button",{type:"button",className:"close",onClick:this.togglePrivacy,id:"privacy_close"},s.a.createElement("span",{id:"privacy_close_inner","aria-hidden":"true"},"\xd7")),s.a.createElement("h2",null,xt.res("form_privacy_policy"))),s.a.createElement(ac.Body,null,s.a.createElement("iframe",{title:"privacy",border:"0",src:xt.privacyUrl,className:"sv-modal-iframe"}))))}}),cc=n(26),uc=n.n(cc);class lc extends s.a.Component{constructor(){super(...arguments),this.renderField=(e=>{let{input:t,label:n,type:r,meta:{touched:o,error:i,warning:a}}=e;return s.a.createElement("div",{className:"sv-field-container"},"checkbox"===r?s.a.createElement("label",{className:"sv-checkmarkcontainer "+(o&&i?"sv-label-error":"")},s.a.createElement("input",Object.assign({},t,{type:r})),n," ",s.a.createElement("span",{className:"sv-checkmark"})):s.a.createElement("input",Object.assign({},t,{placeholder:n,type:r,className:"sv-form-control "+(o&&i?"sv-error":"")})))}),this.submitClicked=(()=>{const e=xt.getNegativeReasons();let{formValues:t}=this.props;if(t){t.other&&Aa.ev("negative_feedback_reason",7,t.other);for(let n=0;n<6;n++)t["checkbox_id"+n]&&Aa.ev("negative_feedback_reason",n+1,e[n]);this.props.onThumbsDownSubmit&&this.props.onThumbsDownSubmit()}}),this.fieldChanged=((e,t,n,r)=>{const o=xt.getNegativeReasons();if(r&&0===r.indexOf("checkbox_id")){let e=parseInt(r.replace("checkbox_id",""));Aa.ev(t?"negative_feedback_reason_check":"negative_feedback_reason_uncheck",e+1,o[e])}})}render(){const e=xt.getNegativeReasons();return s.a.createElement("div",{className:"sv-thumbsdown-form"},s.a.createElement("form",null,e.map((e,t)=>s.a.createElement(mn,{key:t,component:this.renderField,name:"checkbox_id".concat(t),label:e,value:e,type:"checkbox",onChange:this.fieldChanged})),s.a.createElement(mn,{component:this.renderField,name:"other",label:xt.res("thumbsdown_answer7"),validate:[],onChange:this.fieldChanged}),s.a.createElement("br",null),s.a.createElement("p",null,s.a.createElement("a",{href:"#0",className:"btn btn-lblue btn-tall btn-max400 btn-wide",onClick:this.submitClicked},xt.res("thumbsdown_submit")))))}}lc=eo({form:"ThumbsDownForm",destroyOnUnmount:!0})(lc);var fc=lc=G(e=>({formValues:to("ThumbsDownForm")(e)}))(lc);class dc extends s.a.Component{constructor(e){super(e),this.submitOnce=!1,this.renderField=(e=>{let{id:t,input:n,label:r,type:o,meta:{touched:i,error:a,warning:c}}=e;return s.a.createElement("div",{className:"col-3"},s.a.createElement("input",Object.assign({ref:this.refArr[t],onClick:e=>e.target.select()},n,{placeholder:r,className:"sv-form-control",type:"text"})))}),this.submitClicked=(e=>{const{handleSubmit:t,valid:n}=this.props;n?this.submitOnce||(this.submitOnce=!0,this.props.dispatch(Xa())):t(()=>{})()}),this.fieldNormalize=(e=>{if(!e)return e;const t=/^(\d)/i.exec(e);return t&&t.length>1?t[1]:""}),this.refArr=Array(4).fill().map(e=>s.a.createRef())}componentDidUpdate(e){const t=e.formValues||{},n=this.props.formValues||{};for(let r=0;r<4;r++){const e=n["pin".concat(r)],o=t["pin".concat(r)];if(e&&e!==o)return void(r<3&&this.refArr[r+1]&&this.refArr[r+1].current&&(this.refArr[r+1].current.focus(),this.refArr[r+1].current.select()))}}render(){const{formErrors:e,pinFormSubmitted:t,userHash:n}=this.props,r=e?e.pin0:null;return n?s.a.createElement("div",{className:"sv-pin-form"},t?s.a.createElement(s.a.Fragment,null,s.a.createElement("p",null,xt.res("inpractice_results_thankyou"))):s.a.createElement(s.a.Fragment,null,s.a.createElement("p",null,xt.res(xt.practiceAccount?"inpractice_results_pins_message":"results_pins_message")),s.a.createElement("p",null,r),s.a.createElement("form",null,s.a.createElement("div",{className:"row"},Array(4).fill().map((e,t)=>s.a.createElement(mn,{key:t,component:this.renderField,normalize:this.fieldNormalize,id:t,name:"pin".concat(t)}))),s.a.createElement("p",null,s.a.createElement("a",{href:"#0",className:"btn btn-lblue",onClick:this.submitClicked},xt.res("thumbsdown_submit")))))):null}}dc=eo({form:"PinForm",validate:e=>{let t={};const n=Array(4).fill().map((t,n)=>e["pin".concat(n)]||"").reduce((e,t)=>e+t,"");return 4===n.length&&/^(0000|1111|2222|3333|4444|5555|6666|7777|8888|9999|1234|4321)$/i.test(n)?t.pin0=xt.res("results_pins_error"):4!==n.length&&(t.pin1="required"),t},destroyOnUnmount:!1})(dc);var pc=dc=G(e=>({formValues:to("PinForm")(e),formErrors:no("PinForm")(e),pinFormSubmitted:_a(e),userHash:wa(e)}))(dc);class mc extends s.a.Component{constructor(){super(...arguments),this.renderField=(e=>{let{input:t,label:n,type:r,meta:{touched:o,error:i,warning:a}}=e;return s.a.createElement("div",{className:"sv-field-container"},s.a.createElement("input",Object.assign({},t,{placeholder:n,type:r,className:"sv-form-control "+(o&&i?"sv-error":"")})))}),this.submitClicked=(()=>{let{handleSubmit:e,valid:t,formValues:n}=this.props;if(!t)return void e(()=>{})();n=n||{};const r=xt.doclocUrl+(xt.doclocUrl.indexOf("?")>=0?"&":"?")+da.objToUrlParams({loc:n.loc,simid:this.props.simulationId});window.location.href=r})}render(){return xt.doclocUrl?s.a.createElement("div",{className:"sv-docloc-form"},s.a.createElement("div",{className:"sv-docloc-title"},xt.res("results_find_doctor")),s.a.createElement("div",null,s.a.createElement(mn,{component:this.renderField,name:"loc",label:xt.res("results_find_doctor_search_text"),validate:[os.required,os.maxLength50]}),s.a.createElement("br",null),s.a.createElement("p",null,s.a.createElement("a",{href:"#0",className:"btn btn-lblue btn-tall btn-max400 btn-wide",onClick:this.submitClicked},xt.res("results_find_doctor_search_button"))))):null}}mc=eo({form:"DocLocForm",destroyOnUnmount:!0})(mc);var hc=mc=G(e=>({formValues:to("DocLocForm")(e),simulationId:ya(e)}))(mc);var vc=G(e=>i({},e.simulation))(class extends s.a.Component{constructor(){super(...arguments),this.state={formExpanded:!1,disclaimerExpanded:!1,resultImageShow:!0,zoomOpened:!1,thumbsDownOpened:!1,zoomIndex:0,thumbsUpOnce:!1,thumbsDownOnce:!1,inpracticePinsOpened:!1},this.toggleDisclaimer=(()=>this.setState(e=>({disclaimerExpanded:!e.disclaimerExpanded}))),this.toggleResultImageShow=(()=>this.setState(e=>({resultImageShow:!e.resultImageShow}))),this.toggleZoomOpened=(()=>this.setState(e=>({zoomOpened:!e.zoomOpened,zoomIndex:e.zoomOpened?e.zoomIndex:e.resultImageShow?0:1}))),this.toggleThumbsDownOpened=(()=>{this.state.thumbsDownOnce||this.setState(e=>({thumbsDownOpened:!e.thumbsDownOpened}))}),this.toggleInpracticePinsOpened=(()=>this.setState(e=>({inpracticePinsOpened:!e.inpracticePinsOpened}))),this.handleZoomSelect=(e=>this.setState({zoomIndex:e})),this.thumbsUpClicked=(()=>{this.setState({thumbsUpOnce:!0})}),this.onThumbsDownSubmit=(()=>{this.setState({thumbsDownOnce:!0,thumbsDownOpened:!1})}),this.onFormExpand=(()=>this.setState(e=>this.setState({formExpanded:!e.formExpanded}))),this.renderUserForm=(()=>xt.userFormExpandButton?s.a.createElement(s.a.Fragment,null,s.a.createElement("p",{style:{textAlign:"center"}},s.a.createElement("a",{className:"btn btn-lblue btn-tall btn-wide",href:"#0",onClick:this.onFormExpand},xt.userFormExpandButton)),s.a.createElement(uc.a,{duration:400,height:this.state.formExpanded?"auto":0},s.a.createElement(cs,{simpleSubmit:!0}))):s.a.createElement(cs,{simpleSubmit:!0}))}componentDidMount(){window.setTimeout(()=>this.setState({disclaimerExpanded:!0}),1e3)}componentDidUpdate(e,t){!this.state.zoomOpened&&t.zoomOpened&&Aa.ev("close_full_preview"),this.state.zoomIndex!==t.zoomIndex&&Aa.ev(1===this.state.zoomIndex?"full_preview_slide_before":"full_preview_slide_after"),e.inpracticePinFormSubmitted!==this.props.inpracticePinFormSubmitted&&this.props.inpracticePinFormSubmitted&&this.setState({inpracticePinsOpened:!1})}render(){return s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:"sv-results-page"},s.a.createElement("div",{className:"sv-results-img-container"},s.a.createElement("img",{src:this.props.beforeImage,style:{display:this.state.resultImageShow?"none":"inline"},alt:"current"}),s.a.createElement("img",{src:this.props.afterImage,style:{display:this.state.resultImageShow?"inline":"none"},alt:"smileview"}),s.a.createElement("a",{href:"#0",className:"sv-expand-icon",onClick:this.toggleZoomOpened},s.a.createElement("img",{src:"".concat(xt.imgBase,"expand.svg"),alt:"expand",id:"expandicon"})),s.a.createElement("a",{href:"#0",id:"thumbsup",className:"sv-thumbsup "+(this.state.thumbsUpOnce?"sv-thumb-active":""),onClick:this.thumbsUpClicked},s.a.createElement("span",{className:"sv-thumb-thankyou"},xt.res("results_thankyou"))),s.a.createElement("a",{href:"#0",id:"thumbsdown",className:"sv-thumbsdown "+(this.state.thumbsDownOnce?"sv-thumb-active":""),onClick:this.toggleThumbsDownOpened},s.a.createElement("span",{className:"sv-thumb-thankyou"},xt.res("results_thankyou")))),s.a.createElement("div",{className:"sv-btn-group-slider sv-slide"},s.a.createElement("div",{className:"sv-label-current "+(this.state.resultImageShow?"":"sv-bold")},xt.res("results_current")),s.a.createElement("div",{className:"sv-label-simulation "+(this.state.resultImageShow?"sv-bold":"")},xt.res("results_smileview")),s.a.createElement("label",{className:"switch"},s.a.createElement("input",{type:"checkbox",className:"sms-slide-input",id:"sms-slide-input",checked:this.state.resultImageShow,onChange:this.toggleResultImageShow}),s.a.createElement("span",{className:"slider round"})))),xt.showFormAfterResults&&!this.props.userFormSubmitted&&this.renderUserForm(),!!xt.thankyouMessage&&s.a.createElement("div",{className:"sv-thankyou-msg"},xt.thankyouMessage),!!xt.practiceAccount&&!xt.inPracticeFormAtWelcome&&s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:"inpractice-thankyou-container"},!this.props.inpracticeUserFormSubmitted&&!this.props.inpracticeUserFormCancelled&&s.a.createElement(as,{hideTopHeader:!0}),!!this.props.userHash&&s.a.createElement("div",{className:"inpractice-thankyou-section"},!xt.hideEmailCopyBtn&&!this.props.inpracticePinFormSubmitted&&s.a.createElement("div",null,s.a.createElement("a",{href:"#0",className:"btn btn-lblue btn-tall",onClick:this.toggleInpracticePinsOpened},xt.res("inpractice_email_copy"))),s.a.createElement("p",null,"\xa0"),s.a.createElement("div",{className:"inpractice-form-header1"},xt.res("inpractice_results_thankyou")),s.a.createElement("div",{className:"inpractice-form-header1"},da.replaceOrtho2("inpractice_results_thankyou2",this.props.doctorProfileData)),!!this.props.doctorProfileData&&!!this.props.doctorProfileData.url&&s.a.createElement("div",null,s.a.createElement("a",{className:"btn btn-lblue",target:"_blank",rel:"noopener noreferrer",href:this.props.doctorProfileData.url},xt.res("inpractice_results_visit_practice"))))),s.a.createElement(ac,{show:this.state.inpracticePinsOpened,onHide:this.toggleInpracticePinsOpened,className:"smile-visualization-wrap inpractice-pin-form"},s.a.createElement(ac.Header,{closeButton:!0},s.a.createElement("h2",null,xt.res("inpractice_results_pins_header"))),s.a.createElement(ac.Body,null,s.a.createElement(pc,null)))),!xt.practiceAccount&&xt.showPinForm&&s.a.createElement(pc,null),!!xt.doclocUrl&&s.a.createElement(s.a.Fragment,null,xt.showDocLocSearchForm?s.a.createElement(hc,null):s.a.createElement("p",{style:{textAlign:"center",marginTop:"30px"}},s.a.createElement("a",{className:"btn btn-lblue btn-tall btn-wide",href:xt.doclocUrl},xt.res("results_find_doctor")))),s.a.createElement("div",{className:"sv-font-smaller sv-results-disclaimer"},s.a.createElement(uc.a,{duration:800,height:this.state.disclaimerExpanded?"auto":0},s.a.createElement("div",{className:"sv-results-disclaimer-inner"},xt.res("results_computer_generated"),s.a.createElement("br",null),s.a.createElement("br",null),s.a.createElement("a",{className:"btn btn-lblue",href:"#0",onClick:this.toggleDisclaimer},xt.res("results_gotit"))))),s.a.createElement(ac,{show:this.state.zoomOpened,onHide:this.toggleZoomOpened,className:"smile-visualization-wrap"},s.a.createElement(ac.Header,{closeButton:!0},s.a.createElement("h2",null,0===this.state.zoomIndex?xt.res("results_smileview"):xt.res("results_current"))),s.a.createElement(ac.Body,{className:"sv-modal-nopadding"},s.a.createElement(wt,{activeIndex:this.state.zoomIndex,onSelect:this.handleZoomSelect,interval:null},s.a.createElement(wt.Item,null,s.a.createElement("img",{id:"resultPictureBig",src:this.props.afterImage,alt:"smileview"})),s.a.createElement(wt.Item,null,s.a.createElement("img",{id:"uploadedPictureBig",src:this.props.beforeImage,alt:"current"}))))),s.a.createElement(ac,{show:this.state.thumbsDownOpened,onHide:this.toggleThumbsDownOpened,className:"smile-visualization-wrap"},s.a.createElement(ac.Header,{closeButton:!0},s.a.createElement("h2",null,xt.res("thumbsdown_header"))),s.a.createElement(ac.Body,null,s.a.createElement(fc,{onThumbsDownSubmit:this.onThumbsDownSubmit}))))}});var gc=G(e=>i({},e.simulation))(class extends s.a.Component{constructor(){super(...arguments),this.startOver=(()=>{this.props.dispatch(Ha())})}render(){return s.a.createElement("div",{className:"sv-error-page"},"unsuitable"===this.props.errorType?s.a.createElement(s.a.Fragment,null,s.a.createElement("h2",null,xt.res("error_unsuitable1")),s.a.createElement("h2",null,xt.res("error_unsuitable2")),s.a.createElement("h2",null,xt.res("error_unsuitable3"))):s.a.createElement(s.a.Fragment,null,s.a.createElement("div",null,s.a.createElement("div",{className:"sv-error-img"},s.a.createElement("img",{width:"200",height:"200",src:"".concat(xt.imgBase,"image_disconnect.png"),alt:"disconnect"})),s.a.createElement("h2",null,xt.res("error_network")))),s.a.createElement("a",{href:"#0",className:"btn btn-lblue btn-tall btn-max400",id:"unsuitable"===this.props.errorType?"not_suitable":"network_error",onClick:this.startOver},xt.res("error_try_again")))}});n(218);function yc(e){return"/"===e.charAt(0)}function bc(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}var _c=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],o=t&&t.split("/")||[],i=e&&yc(e),a=t&&yc(t),s=i||a;if(e&&yc(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var c=o[o.length-1];n="."===c||".."===c||""===c}else n=!1;for(var u=0,l=o.length;l>=0;l--){var f=o[l];"."===f?bc(o,l):".."===f?(bc(o,l),u++):u&&(bc(o,l),u--)}if(!s)for(;u--;u)o.unshift("..");!s||""===o[0]||o[0]&&yc(o[0])||o.unshift("");var d=o.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};var wc=!0,Ec="Invariant failed";function xc(e,t){if(!e){if(wc)throw new Error(Ec);var n="function"===typeof t?t():t,r=n?"".concat(Ec,": ").concat(n):Ec;throw new Error(r)}}function Sc(e){return"/"===e.charAt(0)?e:"/"+e}function Oc(e){return"/"===e.charAt(0)?e.substr(1):e}function kc(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function jc(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function Cc(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function Pc(e,t,n,r){var o;"string"===typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=h({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(Jc){throw Jc instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):Jc}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=_c(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function Nc(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"===typeof e?e(t,n):e;"string"===typeof i?"function"===typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter(function(e){return e!==r})}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach(function(e){return e.apply(void 0,n)})}}}var Tc=!("undefined"===typeof window||!window.document||!window.document.createElement);function Ic(e,t){t(window.confirm(e))}var Ac="hashchange",Fc={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+Oc(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:Oc,decodePath:Sc},slash:{encodePath:Sc,decodePath:Sc}};function Rc(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function Dc(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function Mc(e){window.location.replace(Rc(window.location.href)+"#"+e)}function Uc(e){void 0===e&&(e={}),Tc||xc(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,o=void 0===r?Ic:r,i=n.hashType,a=void 0===i?"slash":i,s=e.basename?jc(Sc(e.basename)):"",c=Fc[a],u=c.encodePath,l=c.decodePath;function f(){var e=l(Dc());return s&&(e=kc(e,s)),Pc(e)}var d=Nc();function p(e){h(k,e),k.length=t.length,d.notifyListeners(k.location,k.action)}var m=!1,v=null;function g(){var e,t,n=Dc(),r=u(n);if(n!==r)Mc(r);else{var i=f(),a=k.location;if(!m&&(t=i,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(v===Cc(i))return;v=null,function(e){if(m)m=!1,p();else{d.confirmTransitionTo(e,"POP",o,function(t){t?p({action:"POP",location:e}):function(e){var t=k.location,n=w.lastIndexOf(Cc(t));-1===n&&(n=0);var r=w.lastIndexOf(Cc(e));-1===r&&(r=0);var o=n-r;o&&(m=!0,E(o))}(e)})}}(i)}}var y=Dc(),b=u(y);y!==b&&Mc(b);var _=f(),w=[Cc(_)];function E(e){t.go(e)}var x=0;function S(e){1===(x+=e)&&1===e?window.addEventListener(Ac,g):0===x&&window.removeEventListener(Ac,g)}var O=!1;var k={length:t.length,action:"POP",location:_,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=Rc(window.location.href)),n+"#"+u(s+Cc(e))},push:function(e,t){var n=Pc(e,void 0,void 0,k.location);d.confirmTransitionTo(n,"PUSH",o,function(e){if(e){var t=Cc(n),r=u(s+t);if(Dc()!==r){v=t,function(e){window.location.hash=e}(r);var o=w.lastIndexOf(Cc(k.location)),i=w.slice(0,o+1);i.push(t),w=i,p({action:"PUSH",location:n})}else p()}})},replace:function(e,t){var n=Pc(e,void 0,void 0,k.location);d.confirmTransitionTo(n,"REPLACE",o,function(e){if(e){var t=Cc(n),r=u(s+t);Dc()!==r&&(v=t,Mc(r));var o=w.indexOf(Cc(k.location));-1!==o&&(w[o]=t),p({action:"REPLACE",location:n})}})},go:E,goBack:function(){E(-1)},goForward:function(){E(1)},block:function(e){void 0===e&&(e=!1);var t=d.setPrompt(e);return O||(S(1),O=!0),function(){return O&&(O=!1,S(-1)),t()}},listen:function(e){var t=d.appendListener(e);return S(1),function(){S(-1),t()}}};return k}var Lc=G(e=>i({},e.simulation))(class extends s.a.Component{constructor(){super(...arguments),this.history=null,this.historyUnsubscribe=null,this.saveWarningShowedOnce=!1,this.savedNavigatedLink=null,this.state={saveModalShowed:!1,showSaveImageTap:!1,cancelModalShowed:!1},this.checkLinkClick=(e=>{if(this.savedNavigatedLink=null,!e||!e.target||!e.target.tagName||!e.target.protocol)return;const t=e.target.getAttribute("href");0===e.target.protocol.indexOf("http")&&t&&0!==t.indexOf("#")&&(this.savedNavigatedLink=e.target.href,this.props.afterImage?Aa.ev("click_on_otherlink_resultpage"):this.props.imagePreview&&Aa.ev("click_on_otherlink_progresspage"),this.checkShowSaveWarning()&&e.preventDefault())}),this.checkShowSaveWarning=(()=>{if(this.props.afterImage){if(!xt.practiceAccount&&!xt.disableSave&&!this.saveWarningShowedOnce)return this.saveWarningShowedOnce=!0,this.toggleSaveModal(),!0}else if(this.props.imagePreview)return this.toggleCancelModalShowed(),!0;return!1}),this.toggleCancelModalShowed=(()=>this.setState(e=>({cancelModalShowed:!e.cancelModalShowed}))),this.toggleSaveModal=(()=>this.setState(e=>({saveModalShowed:!e.saveModalShowed}))),this.toggleShowSaveImageTap=(()=>this.setState(e=>({showSaveImageTap:!e.showSaveImageTap}))),this.handleSaveWarningSave=(()=>{da.IsIPhone()?this.toggleShowSaveImageTap():this.toggleSaveModal()}),this.handleSaveWarningDontSave=(()=>{this.setState({saveModalShowed:!1}),this.savedNavigatedLink&&(window.location.href=this.savedNavigatedLink)}),this.handleCancellationStopSimulation=(()=>{this.setState({cancelModalShowed:!1}),this.savedNavigatedLink?(Aa.ev("exit_simulation"),window.location.href=this.savedNavigatedLink):window.location.reload()})}componentDidMount(){document.addEventListener("click",this.checkLinkClick),this.history=Uc({hashType:"noslash"}),this.historyUnsubscribe=this.history.listen((e,t)=>{"POP"===t&&(this.props.afterImage?Aa.ev("click_on_back_button_result_page_save"):this.props.imagePreview&&Aa.ev("back_button_progress_page"),this.checkShowSaveWarning())}),this.history.push("search")}componentWillUnmount(){this.historyUnsubscribe&&this.historyUnsubscribe()}componentDidUpdate(e){this.props.imagePreview&&this.props.imagePreview!==e.imagePreview&&this.history.push("progress"),this.props.afterImage&&this.props.afterImage!==e.afterImage&&this.history.push("result")}render(){const e=da.IsIPhone()?"#0":this.props.combinedImage||"";return s.a.createElement(s.a.Fragment,null,s.a.createElement(ac,{show:this.state.saveModalShowed,onHide:this.toggleSaveModal,className:"smile-visualization-wrap"},s.a.createElement(ac.Header,null,s.a.createElement("button",{type:"button",className:"close",onClick:this.toggleSaveModal,id:"close_save_modal"},s.a.createElement("span",{id:"close_save_modal_inner","aria-hidden":"true"},"\xd7")),s.a.createElement("h2",null,xt.res("save_header1")),s.a.createElement("h3",null,xt.res("save_header2"))),s.a.createElement(ac.Body,null,s.a.createElement("div",{style:{display:this.state.showSaveImageTap?"block":"none"}},s.a.createElement("img",{id:"combined_image",src:this.props.combinedImageImg,style:{width:"100%"},alt:"combined"}),s.a.createElement("p",null,s.a.createElement("br",null),xt.res("save_body_ios"))),s.a.createElement("div",{style:{display:this.state.showSaveImageTap?"none":"block"}},s.a.createElement("p",null,xt.res("save_body")),s.a.createElement("p",null,"\xa0"),s.a.createElement("div",{className:"row",style:{textAlign:"center"}},s.a.createElement("div",{className:"col-6"},s.a.createElement("a",{href:"#0",id:"dont_save",className:"btn btn-lblue btn-tall btn-max400 btn-wide",onClick:this.handleSaveWarningDontSave},xt.res("save_dontsave"))),s.a.createElement("div",{className:"col-6"},s.a.createElement("a",{href:e,id:"save_image",className:"btn btn-lblue btn-tall btn-max400 btn-wide",onClick:this.handleSaveWarningSave},xt.res("save_save"))))))),s.a.createElement(ac,{show:this.state.cancelModalShowed,onHide:this.toggleCancelModalShowed,className:"smile-visualization-wrap"},s.a.createElement(ac.Header,{closeButton:!0},s.a.createElement("h2",null,xt.res("continue_header"))),s.a.createElement(ac.Body,null,s.a.createElement("p",null,s.a.createElement("br",null),xt.res("continue_body")),s.a.createElement("br",null),s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-6"},s.a.createElement("a",{href:"#0",className:"btn btn-lblue btn-tall btn-max400 btn-wide",onClick:this.handleCancellationStopSimulation},xt.res("continue_stop"))),s.a.createElement("div",{className:"col-6"},s.a.createElement("a",{href:"#0",className:"btn btn-lblue btn-tall btn-max400 btn-wide",onClick:this.toggleCancelModalShowed},xt.res("continue_continue")))))))}}),Vc=n(24),Bc=n.n(Vc);var zc=function(e){var t=function(e){return function(t,n){return void 0!==e.getIn(t,n)}},n=e.deepEqual,r=e.empty,o=e.getIn,i=e.deleteIn,a=e.setIn;return function(s){return void 0===s&&(s=t),function t(c,u){if("]"===u[u.length-1]){var l=zt()(u);return l.pop(),o(c,l.join("."))?a(c,u):c}var f=c;s(e)(c,u)&&(f=i(c,u));var d=u.lastIndexOf(".");if(d>0){var p=u.substring(0,d);if("]"!==p[p.length-1]){var m=o(f,p);if(n(m,r))return t(f,p)}}return f}}},qc=function(e){var t=e.getIn;return function(e,n){var r=null;/^values/.test(n)&&(r=n.replace("values","initial"));var o=!r||void 0===t(e,r);return void 0!==t(e,n)&&o}},Wc=function(e){return e&&e.type&&e.type.length>"@@redux-form/".length&&"@@redux-form/"===e.type.substring(0,"@@redux-form/".length)};var Hc=function(e){var t,n=e.deepEqual,r=e.empty,o=e.forEach,i=e.getIn,a=e.setIn,s=e.deleteIn,c=e.fromJS,u=e.keys,l=e.size,f=e.some,d=e.splice,p=zc(e)(qc),m=zc(Zt)(qc),h=function(e,t,n,r,o,s,c){var u=i(e,t+"."+n);return u||c?a(e,t+"."+n,d(u,r,o,s)):e},v=function(e,t,n,r,o,s,c){var u=i(e,t),l=Zt.getIn(u,n);return l||c?a(e,t,Zt.setIn(u,n,Zt.splice(l,r,o,s))):e},g=["values","fields","submitErrors","asyncErrors"],y=function(e,t,n,o,i){var a=e,s=null!=i?r:void 0;return a=h(a,"values",t,n,o,i,!0),a=h(a,"fields",t,n,o,s),a=v(a,"syncErrors",t,n,o,void 0),a=v(a,"syncWarnings",t,n,o,void 0),a=h(a,"submitErrors",t,n,o,void 0),a=h(a,"asyncErrors",t,n,o,void 0)},b=((t={})[Fn]=function(e,t){var n=t.meta,r=n.field,o=n.index,i=t.payload;return y(e,r,o,0,i)},t[Rn]=function(e,t){var n=t.meta,r=n.field,o=n.from,s=n.to,c=i(e,"values."+r),u=c?l(c):0,f=e;return u&&g.forEach(function(e){var t=e+"."+r;if(i(f,t)){var n=i(f,t+"["+o+"]");f=a(f,t,d(i(f,t),o,1)),f=a(f,t,d(i(f,t),s,0,n))}}),f},t[Dn]=function(e,t){var n=t.meta.field,r=i(e,"values."+n),o=r?l(r):0;return o?y(e,n,o-1,1):e},t[Mn]=function(e,t){var n=t.meta.field,r=t.payload,o=i(e,"values."+n),a=o?l(o):0;return y(e,n,a,0,r)},t[Un]=function(e,t){var n=t.meta,r=n.field,o=n.index;return y(e,r,o,1)},t[Ln]=function(e,t){var n=t.meta.field,r=i(e,"values."+n),o=r?l(r):0;return o?y(e,n,0,o):e},t[Vn]=function(e,t){var n=t.meta.field;return y(e,n,0,1)},t[Bn]=function(e,t){var n=t.meta,r=n.field,o=n.index,i=n.removeNum,a=t.payload;return y(e,r,o,i,a)},t[qn]=function(e,t){var n=t.meta,r=n.field,o=n.indexA,s=n.indexB,c=e;return g.forEach(function(e){var t=i(c,e+"."+r+"["+o+"]"),n=i(c,e+"."+r+"["+s+"]");void 0===t&&void 0===n||(c=a(c,e+"."+r+"["+o+"]",n),c=a(c,e+"."+r+"["+s+"]",t))}),c},t[zn]=function(e,t){var n=t.meta.field,r=t.payload;return y(e,n,0,0,r)},t[Wn]=function(e,t){var n=t.meta.field,r=t.payload,o=e;return o=p(o,"asyncErrors."+n),o=p(o,"submitErrors."+n),o=a(o,"fields."+n+".autofilled",!0),o=a(o,"values."+n,r)},t[Hn]=function(e,t){var n=t.meta,r=n.field,o=n.touch,c=t.payload,u=e;return void 0===i(u,"initial."+r)&&""===c?u=p(u,"values."+r):void 0!==c&&(u=a(u,"values."+r,c)),r===i(u,"active")&&(u=s(u,"active")),u=s(u,"fields."+r+".active"),o&&(u=a(u,"fields."+r+".touched",!0),u=a(u,"anyTouched",!0)),u},t[$n]=function(e,t){var n=t.meta,r=n.field,o=n.touch,s=n.persistentSubmitErrors,c=t.payload,u=e;if(void 0===i(u,"initial."+r)&&""===c||void 0===c)u=p(u,"values."+r);else if(Bc()(c)){var l=i(e,"values."+r);u=a(u,"values."+r,c(l,e.values))}else u=a(u,"values."+r,c);return u=p(u,"asyncErrors."+r),s||(u=p(u,"submitErrors."+r)),u=p(u,"fields."+r+".autofilled"),o&&(u=a(u,"fields."+r+".touched",!0),u=a(u,"anyTouched",!0)),u},t[Kn]=function(e){return s(e,"triggerSubmit")},t[Yn]=function(e){var t=e;return t=p(t,"submitErrors"),t=s(t,"error")},t[Xn]=function(e,t){var n=t.meta.field;return s(e,"asyncErrors."+n)},t[Gn]=function(e,t){var n=t.meta,r=n.keepTouched,o=n.persistentSubmitErrors,c=n.fields,l=e;c.forEach(function(t){l=p(l,"asyncErrors."+t),o||(l=p(l,"submitErrors."+t)),l=p(l,"fields."+t+".autofilled"),r||(l=s(l,"fields."+t+".touched"));var n=i(e,"initial."+t);l=n?a(l,"values."+t,n):p(l,"values."+t)});var d=f(u(i(l,"registeredFields")),function(e){return i(l,"fields."+e+".touched")});return l=d?a(l,"anyTouched",!0):s(l,"anyTouched")},t[Jn]=function(e,t){var n=t.meta.field,r=e,o=i(e,"active");return r=s(r,"fields."+o+".active"),r=a(r,"fields."+n+".visited",!0),r=a(r,"fields."+n+".active",!0),r=a(r,"active",n)},t[Qn]=function(e,t){var s=t.payload,l=t.meta,f=l.keepDirty,d=l.keepSubmitSucceeded,p=l.updateUnregisteredFields,m=l.keepValues,h=c(s),v=r,g=i(e,"warning");g&&(v=a(v,"warning",g));var y=i(e,"syncWarnings");y&&(v=a(v,"syncWarnings",y));var b=i(e,"error");b&&(v=a(v,"error",b));var _=i(e,"syncErrors");_&&(v=a(v,"syncErrors",_));var w=i(e,"registeredFields");w&&(v=a(v,"registeredFields",w));var E=i(e,"values"),x=i(e,"initial"),S=h,O=E;if(f&&w){if(!n(S,x)){var k=function(e){var t=i(x,e),r=i(E,e);if(n(r,t)){var o=i(S,e);i(O,e)!==o&&(O=a(O,e,o))}};p||o(u(w),function(e){return k(e)}),o(u(S),function(e){if("undefined"===typeof i(x,e)){var t=i(S,e);O=a(O,e,t)}p&&k(e)})}}else O=S;return m&&(o(u(E),function(e){var t=i(E,e);O=a(O,e,t)}),o(u(x),function(e){var t=i(x,e);S=a(S,e,t)})),d&&i(e,"submitSucceeded")&&(v=a(v,"submitSucceeded",!0)),v=a(v,"values",O),v=a(v,"initial",S)},t[er]=function(e,t){var n=t.payload,r=n.name,o=n.type,s="registeredFields['"+r+"']",u=i(e,s);if(u){var l=i(u,"count")+1;u=a(u,"count",l)}else u=c({name:r,type:o,count:1});return a(e,s,u)},t[tr]=function(e){var t=r,n=i(e,"registeredFields");n&&(t=a(t,"registeredFields",n));var o=i(e,"initial");return o&&(t=a(t,"values",o),t=a(t,"initial",o)),t},t[nr]=function(e,t){var n=t.meta.sections,r=e;n.forEach(function(t){r=p(r,"asyncErrors."+t),r=p(r,"submitErrors."+t),r=p(r,"fields."+t);var n=i(e,"initial."+t);r=n?a(r,"values."+t,n):p(r,"values."+t)});var o=f(u(i(r,"registeredFields")),function(e){return i(r,"fields."+e+".touched")});return r=o?a(r,"anyTouched",!0):s(r,"anyTouched")},t[ur]=function(e){return a(e,"triggerSubmit",!0)},t[ir]=function(e,t){var n=t.meta.field;return a(e,"asyncValidating",n||!0)},t[ar]=function(e){return a(e,"submitting",!0)},t[sr]=function(e,t){var n=t.payload,r=e;if(r=s(r,"asyncValidating"),n&&Object.keys(n).length){var o=n._error,i=At()(n,["_error"]);o&&(r=a(r,"error",o)),Object.keys(i).length&&(r=a(r,"asyncErrors",c(i)))}else r=s(r,"error"),r=s(r,"asyncErrors");return r},t[cr]=function(e,t){var n=t.payload,r=e;if(r=s(r,"submitting"),r=s(r,"submitFailed"),r=s(r,"submitSucceeded"),n&&Object.keys(n).length){var o=n._error,i=At()(n,["_error"]);r=o?a(r,"error",o):s(r,"error"),r=Object.keys(i).length?a(r,"submitErrors",c(i)):s(r,"submitErrors"),r=a(r,"submitFailed",!0)}else r=s(r,"error"),r=s(r,"submitErrors");return r},t[rr]=function(e,t){var n=t.meta.fields,r=e;return r=a(r,"submitFailed",!0),r=s(r,"submitSucceeded"),r=s(r,"submitting"),n.forEach(function(e){return r=a(r,"fields."+e+".touched",!0)}),n.length&&(r=a(r,"anyTouched",!0)),r},t[or]=function(e){var t=e;return t=s(t,"submitFailed"),t=a(t,"submitSucceeded",!0)},t[lr]=function(e,t){var n=t.meta.fields,r=e;return n.forEach(function(e){return r=a(r,"fields."+e+".touched",!0)}),r=a(r,"anyTouched",!0)},t[fr]=function(e,t){var o=t.payload,c=o.name,u=o.destroyOnUnmount,l=e,f="registeredFields['"+c+"']",d=i(l,f);if(!d)return l;var h=i(d,"count")-1;if(h<=0&&u){l=s(l,f),n(i(l,"registeredFields"),r)&&(l=s(l,"registeredFields"));var v=i(l,"syncErrors");v&&(v=m(v,c),l=Zt.deepEqual(v,Zt.empty)?s(l,"syncErrors"):a(l,"syncErrors",v));var g=i(l,"syncWarnings");g&&(g=m(g,c),l=Zt.deepEqual(g,Zt.empty)?s(l,"syncWarnings"):a(l,"syncWarnings",g)),l=p(l,"submitErrors."+c),l=p(l,"asyncErrors."+c)}else d=a(d,"count",h),l=a(l,f,d);return l},t[dr]=function(e,t){var n=t.meta.fields,r=e;n.forEach(function(e){return r=s(r,"fields."+e+".touched")});var o=f(u(i(r,"registeredFields")),function(e){return i(r,"fields."+e+".touched")});return r=o?a(r,"anyTouched",!0):s(r,"anyTouched")},t[pr]=function(e,t){var n=t.payload,r=n.syncErrors,o=n.error,i=e;return o?(i=a(i,"error",o),i=a(i,"syncError",!0)):(i=s(i,"error"),i=s(i,"syncError")),i=Object.keys(r).length?a(i,"syncErrors",r):s(i,"syncErrors")},t[mr]=function(e,t){var n=t.payload,r=n.syncWarnings,o=n.warning,i=e;return i=o?a(i,"warning",o):s(i,"warning"),i=Object.keys(r).length?a(i,"syncWarnings",r):s(i,"syncWarnings")},t);return function e(t){return t.plugin=function(t,n){var o=this;return void 0===n&&(n={}),e(function(e,s){void 0===e&&(e=r),void 0===s&&(s={type:"NONE"});var c=function(n,r){var o=i(n,r),c=t[r](o,s,i(e,r));return c!==o?a(n,r,c):n},u=o(e,s),l=s&&s.meta&&s.meta.form;return l&&!n.receiveAllFormActions?t[l]?c(u,l):u:Object.keys(t).reduce(c,u)})},t}(function(e){return function(t,n){void 0===t&&(t=r),void 0===n&&(n={type:"NONE"});var o=n&&n.meta&&n.meta.form;if(!o||!Wc(n))return t;if(n.type===Zn&&n.meta&&n.meta.form)return n.meta.form.reduce(function(e,t){return p(e,t)},t);var s=i(t,o),c=e(s,n);return c===s?t:a(t,o,c)}}(function(e,t){void 0===e&&(e=r);var n=b[t.type];return n?n(e,t):e}))}(Zt);function $c(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"===typeof o?o(n,r,e):t(o)}}}}var Gc=$c();Gc.withExtraArgument=$c;var Kc=Gc;const Yc=Tn(function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"===typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach(function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:Pn.INIT}))throw new Error(kn(12));if("undefined"===typeof n(void 0,{type:Pn.PROBE_UNKNOWN_ACTION()}))throw new Error(kn(13))})}(n)}catch(Jc){i=Jc}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},s=0;s<a.length;s++){var c=a[s],u=n[c],l=e[c],f=u(l,t);if("undefined"===typeof f)throw t&&t.type,new Error(kn(14));o[c]=f,r=r||f!==l}return(r=r||a.length!==Object.keys(e).length)?o:e}}({simulation:es,form:Hc}),function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(kn(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map(function(e){return e(o)});return r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}.apply(void 0,i)(n.dispatch),On(On({},n),{},{dispatch:r})}}}(Kc));"undefined"!==typeof window&&(window._svStore=Yc);var Xc=Yc;class Zc extends s.a.Component{constructor(e){super(e),this.handleDummyClick=(e=>{let{srcElement:t}=e;for(let n=0;n<20&&t;n++){if("A"===t.tagName){t.attributes.href&&"#0"===t.attributes.href.value&&e.preventDefault();break}t=t.parentNode}}),this.expandToggle=(()=>{this.setState(e=>({svExpanded:!e.svExpanded})),da.customGATrack("1")}),this.toggleResultImageShow=(()=>this.setState(e=>({resultImageShow:!e.resultImageShow}))),e.config&&xt.extend(e.config),e.langData&&xt.extendLangData(e.langData),this.state={svExpanded:xt.hideExpander,resultImageShow:!0}}async componentDidMount(){Aa.ev("landing_page");try{document.addEventListener("click",this.handleDummyClick)}catch(Jc){console.log(Jc)}try{document.addEventListener("click",Ia)}catch(Jc){console.log(Jc)}xt.practiceAccount&&this.props.dispatch(Za(xt.practiceAccount))}componentWillUnmount(){try{document.removeEventListener("click",this.handleDummyClick)}catch(Jc){console.log(Jc)}try{document.removeEventListener("click",Ia)}catch(Jc){console.log(Jc)}}componentDidUpdate(e){if(this.props.afterImage&&this.props.afterImage!==e.afterImage)try{window.__dlExternalInterface&&window.__dlExternalInterface.showInitialHidden()}catch(Jc){console.log(Jc)}this.props.imagePreview!==e.imagePreview&&(xt.hideHeaderOnSV&&da.showAll(".hideonsv",!this.props.imagePreview),xt.hideFooterOnSV&&da.showAll(".footer-container",!this.props.imagePreview)),this.props.afterImage&&this.props.afterImage!==e.afterImage&&da.showAll("*[data-display=none]",!0),this.props.doctorProfileDataError&&this.props.doctorProfileDataError!==e.doctorProfileDataError&&xt.defaultSVRedirect&&(window.location.href=xt.defaultSVRedirect),e.inpracticeUserFormSubmitted!==this.props.inpracticeUserFormSubmitted&&this.props.inpracticeUserFormSubmitted&&Aa.ev("form_submit",null,null,this.props.userHash||this.props.sessionId)}render(){if(xt.practiceAccount&&!this.props.doctorProfileData)return null;const e=this.props.error?s.a.createElement(gc,null):this.props.afterImage?s.a.createElement(vc,null):this.props.imagePreview?s.a.createElement(fs,null):s.a.createElement(sc,{expanded:this.state.svExpanded}),t=xt.hideSample||xt.hideSampleAfterLanding&&(!!this.props.imagePreview||!!this.props.afterImage),n=xt.practiceAccount?"sv-inpractice-bkg":"sv-charcoal";return s.a.createElement(s.a.Fragment,null,!xt.practiceAccount&&s.a.createElement("div",{className:"container-full hideonsv"},s.a.createElement("div",{className:"container sv-text-panel text-center"},xt.canUseH1?s.a.createElement("h1",{id:"replaceH2s"},s.a.createElement("strong",null,xt.res("landing_top_header"))):s.a.createElement("h2",null,s.a.createElement("strong",null,xt.res("landing_top_header"))),s.a.createElement("p",{dangerouslySetInnerHTML:{__html:xt.res("landing_sub_header")}}))),!t&&s.a.createElement("div",{className:"container-full hideonsv"},s.a.createElement("div",{className:"container smile-visualization-wrap"},s.a.createElement("div",{className:"sv-results-img-container sv-sample"},s.a.createElement("img",{src:xt.sampleImageBefore,style:{display:this.state.resultImageShow?"none":"inline"},alt:"before"}),s.a.createElement("img",{src:xt.sampleImageAfter,style:{display:this.state.resultImageShow?"inline":"none"},alt:"after"})),s.a.createElement("div",{className:"sv-btn-group-slider sv-slide sv-sample"},s.a.createElement("div",{className:"sv-label-current "+(this.state.resultImageShow?"":"sv-bold")},xt.res("results_current")),s.a.createElement("div",{className:"sv-label-simulation "+(this.state.resultImageShow?"sv-bold":"")},xt.res("results_smileview")),s.a.createElement("label",{className:"switch"},s.a.createElement("input",{type:"checkbox",className:"sms-slide-input",checked:this.state.resultImageShow,onChange:this.toggleResultImageShow}),s.a.createElement("span",{className:"slider round"}))))),!xt.hideExpander&&s.a.createElement("div",{className:"container-full bg-charcoal hideonsv"},s.a.createElement("div",{className:"container text-panel text-center",style:{textAlign:"center"}},s.a.createElement("a",{href:"#0",onClick:this.expandToggle,className:"btn btn-lblue btn-tall btn-max400",style:{width:"100%",textAlign:"center"},id:"btn-try-out"},xt.res("form_try_now")))),s.a.createElement("div",{className:"container-full ".concat(n)},s.a.createElement(uc.a,{duration:400,height:this.state.svExpanded?"auto":0},s.a.createElement("div",{className:"container smile-visualization-wrap"},e))),s.a.createElement(Lc,null))}}Zc=G(e=>i({},e.simulation))(Zc);t.default=class extends s.a.Component{render(){return s.a.createElement(m,{store:Xc},s.a.createElement(Zc,this.props))}}}]);
2
2
  //# sourceMappingURL=index.js.map