@flarehr/apollo-super-selection 3.46.58109 → 3.47.58708

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.
@@ -1,4 +1,4 @@
1
- var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r["throw"](e))}catch(e){a(e)}}function u(e){e.done?n(e.value):i(e.value).then(o,s)}u((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1];a=o;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(o);break}if(a[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};System.register(["./p-38ee2795.system.js","./p-13573238.system.js","./p-7dbe5a2f.system.js","./p-ae4f5e0b.system.js"],(function(e){"use strict";var t,n,r,i,a,o,s,u,c,l,f,d,p,h,v,g,m,y,b,w,x,S,_,I,C,k;return{setters:[function(e){t=e.r;n=e.h;r=e.c;i=e.g;a=e.f;o=e.H;s=e.a;u=e.d;c=e.e;l=e.s},function(e){f=e.f;d=e.m;p=e.S;h=e.a;v=e.i;g=e.d;m=e.b;y=e.c;b=e.g;w=e.Q},function(e){x=e.g;S=e.O;_=e.j;I=e.k;C=e.a},function(e){k=e.A}],execute:function(){function T(){}function E(e,t,n){if(n===void 0){n=Number.POSITIVE_INFINITY}if(typeof t==="function"){return function(r){return r.pipe(E((function(n,r){return f(e(n,r)).pipe(d((function(e,i){return t(n,e,r,i)})))}),n))}}else if(typeof t==="number"){n=t}return function(t){return t.lift(new A(e,n))}}var A=function(){function e(e,t){if(t===void 0){t=Number.POSITIVE_INFINITY}this.project=e;this.concurrent=t}e.prototype.call=function(e,t){return t.subscribe(new N(e,this.project,this.concurrent))};return e}();var N=function(e){__extends(t,e);function t(t,n,r){if(r===void 0){r=Number.POSITIVE_INFINITY}var i=e.call(this,t)||this;i.project=n;i.concurrent=r;i.hasCompleted=false;i.buffer=[];i.active=0;i.index=0;return i}t.prototype._next=function(e){if(this.active<this.concurrent){this._tryNext(e)}else{this.buffer.push(e)}};t.prototype._tryNext=function(e){var t;var n=this.index++;try{t=this.project(e,n)}catch(e){this.destination.error(e);return}this.active++;this._innerSub(t)};t.prototype._innerSub=function(e){var t=new h(this);var n=this.destination;n.add(t);var r=v(e,t);if(r!==t){n.add(r)}};t.prototype._complete=function(){this.hasCompleted=true;if(this.active===0&&this.buffer.length===0){this.destination.complete()}this.unsubscribe()};t.prototype.notifyNext=function(e){this.destination.next(e)};t.prototype.notifyComplete=function(){var e=this.buffer;this.active--;if(e.length>0){this._next(e.shift())}else if(this.active===0&&this.hasCompleted){this.destination.complete()}};return t}(p);function F(e,t,n,r){if(_(n)){r=n;n=undefined}if(r){return F(e,t,n).pipe(d((function(e){return x(e)?r.apply(void 0,e):r(e)})))}return new S((function(r){function i(e){if(arguments.length>1){r.next(Array.prototype.slice.call(arguments))}else{r.next(e)}}P(e,t,i,r,n)}))}function P(e,t,n,r,i){var a;if(D(e)){var o=e;e.addEventListener(t,n,i);a=function(){return o.removeEventListener(t,n,i)}}else if(R(e)){var s=e;e.on(t,n);a=function(){return s.off(t,n)}}else if(O(e)){var u=e;e.addListener(t,n);a=function(){return u.removeListener(t,n)}}else if(e&&e.length){for(var c=0,l=e.length;c<l;c++){P(e[c],t,n,r,i)}}else{throw new TypeError("Invalid event target")}r.add(a)}function O(e){return e&&typeof e.addListener==="function"&&typeof e.removeListener==="function"}function R(e){return e&&typeof e.on==="function"&&typeof e.off==="function"}function D(e){return e&&typeof e.addEventListener==="function"&&typeof e.removeEventListener==="function"}function M(e,t){if(t===void 0){t=I}return function(n){return n.lift(new L(e,t))}}var L=function(){function e(e,t){this.dueTime=e;this.scheduler=t}e.prototype.call=function(e,t){return t.subscribe(new U(e,this.dueTime,this.scheduler))};return e}();var U=function(e){__extends(t,e);function t(t,n,r){var i=e.call(this,t)||this;i.dueTime=n;i.scheduler=r;i.debouncedSubscription=null;i.lastValue=null;i.hasValue=false;return i}t.prototype._next=function(e){this.clearDebounce();this.lastValue=e;this.hasValue=true;this.add(this.debouncedSubscription=this.scheduler.schedule(B,this.dueTime,this))};t.prototype._complete=function(){this.debouncedNext();this.destination.complete()};t.prototype.debouncedNext=function(){this.clearDebounce();if(this.hasValue){var e=this.lastValue;this.lastValue=null;this.hasValue=false;this.destination.next(e)}};t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;if(e!==null){this.remove(e);e.unsubscribe();this.debouncedSubscription=null}};return t}(C);function B(e){e.debouncedNext()}function j(e,t,n){return function r(i){return i.lift(new V(e,t,n))}}var V=function(){function e(e,t,n){this.nextOrObserver=e;this.error=t;this.complete=n}e.prototype.call=function(e,t){return t.subscribe(new q(e,this.nextOrObserver,this.error,this.complete))};return e}();var q=function(e){__extends(t,e);function t(t,n,r,i){var a=e.call(this,t)||this;a._tapNext=T;a._tapError=T;a._tapComplete=T;a._tapError=r||T;a._tapComplete=i||T;if(_(n)){a._context=a;a._tapNext=n}else if(n){a._context=n;a._tapNext=n.next||T;a._tapError=n.error||T;a._tapComplete=n.complete||T}return a}t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.next(e)};t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.error(e)};t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){this.destination.error(e);return}return this.destination.complete()};return t}(C);var z="3.46.58109";var H=function(e){return e._tag==="Some"};var W=function(e){return e._tag==="None"};var G={_tag:"None"};var K=function(e){return{_tag:"Some",value:e}};function X(e){return e==null?G:K(e)}function J(e){return W(e)?undefined:e.value}var Y=function(e){return function(t){return W(t)?e():t.value}};var $=Y;var Q=function(){function e(e){this.factory=e;this._value=G}Object.defineProperty(e.prototype,"value",{get:function(){if(H(this._value)){return this._value.value}var e=this.factory();this._value=K(e);return e},enumerable:false,configurable:true});return e}();function Z(){if(!window.location.pathname.endsWith("/")){var e=window.location.pathname+"/"+window.location.search+window.location.hash;history.pushState(history.state,"",e)}}function ee(e){k.injectProps(e,["history","location"])}var te="/";var ne="./";var re=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");var ie=function(e,t){var n=[];var r=0;var i=0;var a="";var o=t&&t.delimiter||te;var s=t&&t.delimiters||ne;var u=false;var c;while((c=re.exec(e))!==null){var l=c[0];var f=c[1];var d=c.index;a+=e.slice(i,d);i=d+l.length;if(f){a+=f[1];u=true;continue}var p="";var h=e[i];var v=c[2];var g=c[3];var m=c[4];var y=c[5];if(!u&&a.length){var b=a.length-1;if(s.indexOf(a[b])>-1){p=a[b];a=a.slice(0,b)}}if(a){n.push(a);a="";u=false}var w=p!==""&&h!==undefined&&h!==p;var x=y==="+"||y==="*";var S=y==="?"||y==="*";var _=p||o;var I=g||m;n.push({name:v||r++,prefix:p,delimiter:_,optional:S,repeat:x,partial:w,pattern:I?oe(I):"[^"+ae(_)+"]+?"})}if(a||i<e.length){n.push(a+e.substr(i))}return n};var ae=function(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")};var oe=function(e){return e.replace(/([=!:$/()])/g,"\\$1")};var se=function(e){return e&&e.sensitive?"":"i"};var ue=function(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n){for(var r=0;r<n.length;r++){t.push({name:r,prefix:null,delimiter:null,optional:false,repeat:false,partial:false,pattern:null})}}return e};var ce=function(e,t,n){var r=[];for(var i=0;i<e.length;i++){r.push(de(e[i],t,n).source)}return new RegExp("(?:"+r.join("|")+")",se(n))};var le=function(e,t,n){return fe(ie(e,n),t,n)};var fe=function(e,t,n){n=n||{};var r=n.strict;var i=n.end!==false;var a=ae(n.delimiter||te);var o=n.delimiters||ne;var s=[].concat(n.endsWith||[]).map(ae).concat("$").join("|");var u="";var c=false;for(var l=0;l<e.length;l++){var f=e[l];if(typeof f==="string"){u+=ae(f);c=l===e.length-1&&o.indexOf(f[f.length-1])>-1}else{var d=ae(f.prefix||"");var p=f.repeat?"(?:"+f.pattern+")(?:"+d+"(?:"+f.pattern+"))*":f.pattern;if(t)t.push(f);if(f.optional){if(f.partial){u+=d+"("+p+")?"}else{u+="(?:"+d+"("+p+"))?"}}else{u+=d+"("+p+")"}}}if(i){if(!r)u+="(?:"+a+")?";u+=s==="$"?"$":"(?="+s+")"}else{if(!r)u+="(?:"+a+"(?="+s+"))?";if(!c)u+="(?="+a+"|"+s+")"}return new RegExp("^"+u,se(n))};var de=function(e,t,n){if(e instanceof RegExp){return ue(e,t)}if(Array.isArray(e)){return ce(e,t,n)}return le(e,t,n)};var pe=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)};var he=function(e,t){return pe(e,t)?e.substr(t.length):e};var ve=function(e){return e.charAt(e.length-1)==="/"?e.slice(0,-1):e};var ge=function(e){return e.charAt(0)==="/"?e:"/"+e};var me=function(e){return e.charAt(0)==="/"?e.substr(1):e};var ye=function(e){var t=e||"/";var n="";var r="";var i=t.indexOf("#");if(i!==-1){r=t.substr(i);t=t.substr(0,i)}var a=t.indexOf("?");if(a!==-1){n=t.substr(a);t=t.substr(0,a)}return{pathname:t,search:n==="?"?"":n,hash:r==="#"?"":r,query:{},key:""}};var be=function(e){var t=e.pathname,n=e.search,r=e.hash;var i=t||"/";if(n&&n!=="?"){i+=n.charAt(0)==="?"?n:"?"+n}if(r&&r!=="#"){i+=r.charAt(0)==="#"?r:"#"+r}return i};var we=function(e){if(!e){return{}}return(/^[?#]/.test(e)?e.slice(1):e).split("&").reduce((function(e,t){var n=t.split("="),r=n[0],i=n[1];e[r]=i?decodeURIComponent(i.replace(/\+/g," ")):"";return e}),{})};var xe=function(e){return e.charAt(0)==="/"};var Se=function(e){return Math.random().toString(36).substr(2,e)};var _e=function(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1){e[n]=e[r]}e.pop()};var Ie=function(e,t){if(t===void 0){t=""}var n=t&&t.split("/")||[];var r;var i=0;var a=e&&e.split("/")||[];var o=e&&xe(e);var s=t&&xe(t);var u=o||s;if(e&&xe(e)){n=a}else if(a.length){n.pop();n=n.concat(a)}if(!n.length){return"/"}if(n.length){var c=n[n.length-1];r=c==="."||c===".."||c===""}else{r=false}for(var l=n.length;l>=0;l--){var f=n[l];if(f==="."){_e(n,l)}else if(f===".."){_e(n,l);i++}else if(i){_e(n,l);i--}}if(!u){for(;i--;i){n.unshift("..")}}if(u&&n[0]!==""&&(!n[0]||!xe(n[0]))){n.unshift("")}var d=n.join("/");if(r&&d.substr(-1)!=="/"){d+="/"}return d};var Ce=function(e,t){if(e===t){return true}if(e==null||t==null){return false}if(Array.isArray(e)){return Array.isArray(t)&&e.length===t.length&&e.every((function(e,n){return Ce(e,t[n])}))}var n=typeof e;var r=typeof t;if(n!==r){return false}if(n==="object"){var i=e.valueOf();var a=t.valueOf();if(i!==e||a!==t){return Ce(i,a)}var o=Object.keys(e);var s=Object.keys(t);if(o.length!==s.length){return false}return o.every((function(n){return Ce(e[n],t[n])}))}return false};var ke=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&Ce(e.state,t.state)};var Te=function(e,t,n,r){var i;if(typeof e==="string"){i=ye(e);if(t!==undefined){i.state=t}}else{i=Object.assign({pathname:""},e);if(i.search&&i.search.charAt(0)!=="?"){i.search="?"+i.search}if(i.hash&&i.hash.charAt(0)!=="#"){i.hash="#"+i.hash}if(t!==undefined&&i.state===undefined){i.state=t}}try{i.pathname=decodeURI(i.pathname)}catch(e){if(e instanceof URIError){throw new URIError('Pathname "'+i.pathname+'" could not be decoded. '+"This is likely caused by an invalid percent-encoding.")}else{throw e}}i.key=n;if(r){if(!i.pathname){i.pathname=r.pathname}else if(i.pathname.charAt(0)!=="/"){i.pathname=Ie(i.pathname,r.pathname)}}else{if(!i.pathname){i.pathname="/"}}i.query=we(i.search||"");return i};var Ee=0;var Ae={};var Ne=1e4;var Fe=function(e,t){var n=""+t.end+t.strict;var r=Ae[n]||(Ae[n]={});var i=JSON.stringify(e);if(r[i]){return r[i]}var a=[];var o=de(e,a,t);var s={re:o,keys:a};if(Ee<Ne){r[i]=s;Ee+=1}return s};var Pe=function(e,t){if(t===void 0){t={}}if(typeof t==="string"){t={path:t}}var n=t.path,r=n===void 0?"/":n,i=t.exact,a=i===void 0?false:i,o=t.strict,s=o===void 0?false:o;var u=Fe(r,{end:a,strict:s}),c=u.re,l=u.keys;var f=c.exec(e);if(!f){return null}var d=f[0],p=f.slice(1);var h=e===d;if(a&&!h){return null}return{path:r,url:r==="/"&&d===""?"/":d,isExact:h,params:l.reduce((function(e,t,n){e[t.name]=p[n];return e}),{})}};var Oe=function(e,t){if(e==null&&t==null){return true}if(t==null){return false}return e&&t&&e.path===t.path&&e.url===t.url&&Ce(e.params,t.params)};var Re=":host button,:host button:focus,:host button:active,:host button.focus,:host button.active{-webkit-box-shadow:none;box-shadow:none;border-radius:var(--fl-rounding-button) !important}:host button.disabled,:host button:disabled{opacity:1 !important;cursor:not-allowed !important;color:var(--fl-color-disabled)}:host button .label{font-weight:600 !important}:host button.is-primary{color:var(--fl-color-primary-text);background-color:var(--fl-color-primary);border:none}:host button.is-primary.disabled,:host button.is-primary:disabled{background-color:var(--fl-color-primary-disabled)}:host button.is-primary:hover:not(.disabled),:host button.is-primary:hover:not(:disabled){background-color:var(--fl-color-primary-hover)}:host button.is-primary:active:not(.disabled),:host button.is-primary:active:not(:disabled){background-color:var(--fl-color-primary-focus)}:host button.is-secondary{color:var(--fl-color-secondary-text);background-color:var(--fl-color-secondary)}:host button.is-secondary.disabled,:host button.is-secondary:disabled{background-color:var(--fl-color-secondary-disabled)}:host button.is-secondary:hover:not(.disabled),:host button.is-secondary:hover:not(:disabled){background-color:var(--fl-color-secondary-hover)}:host button.is-secondary:active:not(.disabled),:host button.is-secondary:active:not(:disabled){background-color:var(--fl-color-secondary-focus)}:host button.is-block{display:block}:host button:disabled,:host button.disabled{pointer-events:none}";var De=e("fl_button",function(){function e(e){t(this,e);this.isBlockElement=false;this.disabled=false;this.variant="primary"}e.prototype.render=function(){return n("button",{class:{"btn position-relative px-3 py-2":true,"is-primary":this.variant==="primary","is-secondary":this.variant==="secondary","btn-block":this.isBlockElement,disabled:this.disabled},style:{"pointer-events":this.disabled?"none":"auto"},disabled:this.disabled},n("span",{class:"label"},n("slot",null)))};return e}());De.style=Re;var Me={compareTwoStrings:Le,findBestMatch:Ue};function Le(e,t){e=e.replace(/\s+/g,"");t=t.replace(/\s+/g,"");if(!e.length&&!t.length)return 1;if(!e.length||!t.length)return 0;if(e===t)return 1;if(e.length===1&&t.length===1)return 0;if(e.length<2||t.length<2)return 0;var n=new Map;for(var r=0;r<e.length-1;r++){var i=e.substring(r,r+2);var a=n.has(i)?n.get(i)+1:1;n.set(i,a)}var o=0;for(var r=0;r<t.length-1;r++){var i=t.substring(r,r+2);var a=n.has(i)?n.get(i):0;if(a>0){n.set(i,a-1);o++}}return 2*o/(e.length+t.length-2)}function Ue(e,t){if(!Be(e,t))throw new Error("Bad arguments: First argument should be a string, second should be an array of strings");var n=[];var r=0;for(var i=0;i<t.length;i++){var a=t[i];var o=Le(e,a);n.push({target:a,rating:o});if(o>n[r].rating){r=i}}var s=n[r];return{ratings:n,bestMatch:s,bestMatchIndex:r}}function Be(e,t){if(typeof e!=="string")return false;if(!Array.isArray(t))return false;if(!t.length)return false;if(t.find((function(e){return typeof e!=="string"})))return false;return true}var je="fl-dropdown .dropdown-menu{max-height:min(20rem, 50vh)}fl-dropdown .dropdown-menu .dropdown-item{cursor:pointer}fl-dropdown .dropdown-menu .dropdown-item.selected{background-color:rgba(253, 189, 0, 0.5)}";var Ve=e("fl_dropdown",function(){function e(e){var i=this;t(this,e);this.valueChanged=r(this,"valueChanged",7);this.required=false;this.disabled=false;this.isMouseOver=false;this.inputValue="";this.isDropdownVisible=false;this.filteredOptions=[];this.renderFilteredResults=function(){if(i.filteredOptions.length===0){return n("span",{class:"dropdown-item disabled"},"No items match your search")}return i.filteredOptions.map((function(e,t){return n("span",{class:{"dropdown-item text-wrap":true,selected:i.isOptionSelected(e),active:i.highlightedOptionIndex===t},onClick:function(t){i.toggleDropdown(false);i.selectOption(e)}},n("span",null,e.label))}))};this.filterResults=function(e){i.filteredOptions=i.sortOptionsByRelevancy(i._options.filter((function(t){return t.label.toLowerCase().includes(e.toLowerCase())})),e);i.highlightedOptionIndex=undefined};this.selectOption=function(e){i.selectedOption=e;i.inputValue=e.label;i.valueChanged.emit(e)};this.isOptionSelected=function(e){var t;return((t=i.selectedOption)===null||t===void 0?void 0:t.label)===e.label};this.toggleDropdown=function(e){i.isDropdownVisible=e};this.resetInput=function(){var e,t;i.inputValue=(t=(e=i.selectedOption)===null||e===void 0?void 0:e.label)!==null&&t!==void 0?t:"";i.filteredOptions=i._options};this.processKeyboardNavigation=function(e){var t="Enter";var n="ArrowDown";var r="ArrowUp";var a="Escape";switch(e.key){case n:i.toggleDropdown(true);i.highlightNextItem();return true;case r:i.highlightPreviousItem();return true;case t:if(i.highlightedOptionIndex!==undefined){i.toggleDropdown(false);i.selectOption(i.filteredOptions[i.highlightedOptionIndex])}return true;case a:i.inputElement.blur();return true}return false};this.highlightPreviousItem=function(){if(i.filteredOptions.length===0){return}i.highlightedOptionIndex=i.highlightedOptionIndex===undefined?0:Math.max(i.highlightedOptionIndex-1,0)};this.highlightNextItem=function(){if(i.filteredOptions.length===0){return}i.highlightedOptionIndex=i.highlightedOptionIndex===undefined?0:Math.min(i.highlightedOptionIndex+1,i.filteredOptions.length-1)}}Object.defineProperty(e.prototype,"_options",{get:function(){if(this.options===undefined){throw new Error("Can't render <fl-dropdown /> component with no options")}return this.options},enumerable:false,configurable:true});e.prototype.componentWillLoad=function(){var e=this;var t,n;this.filteredOptions=this._options;this.selectedOption=this._options.find((function(t){return t.value===e.value}));this.inputValue=(n=(t=this.selectedOption)===null||t===void 0?void 0:t.label)!==null&&n!==void 0?n:""};e.prototype.handleFocus=function(){this.toggleDropdown(true)};e.prototype.handleBlur=function(){if(this.isMouseOver){return}this.toggleDropdown(false);this.resetInput()};e.prototype.handleKeyDown=function(e){if(this.processKeyboardNavigation(e)){e.preventDefault()}};e.prototype.onOptionsChanged=function(){this.filteredOptions=this._options};e.prototype.onValueChanged=function(){var e=this;var t,n;this.selectedOption=this._options.find((function(t){return t.value===e.value}));this.inputValue=(n=(t=this.selectedOption)===null||t===void 0?void 0:t.label)!==null&&n!==void 0?n:""};e.prototype.render=function(){var e=this;var t;return[n("div",{class:"dropdown"},n("input",{type:"text",class:"form-control custom-select",placeholder:this.placeholder,required:this.required,disabled:this.disabled,value:this.inputValue,onInput:function(t){var n=t.target.value;e.inputValue=n;e.filterResults(n);e.toggleDropdown(true)},ref:function(t){return e.inputElement=t}}),n("div",{class:{"invalid-feedback":true,"d-none":this.isDropdownVisible}},(t=this.requiredValidationMessage)!==null&&t!==void 0?t:"Required."),n("div",{class:{"dropdown-menu shadow mt-0 w-100 overflow-auto":true,show:this.isDropdownVisible},onMouseEnter:function(t){return e.isMouseOver=true},onMouseLeave:function(t){return e.isMouseOver=false}},this.renderFilteredResults()))]};e.prototype.sortOptionsByRelevancy=function(e,t){return e.map((function(e){return Object.assign(Object.assign({},e),{relevancyScore:Me.compareTwoStrings(e.label.toLowerCase(),t.toLowerCase())})})).sort((function(e,t){return t.relevancyScore-e.relevancyScore})).map((function(e){return{label:e.label,value:e.value}}))};Object.defineProperty(e,"watchers",{get:function(){return{options:["onOptionsChanged"],value:["onValueChanged"]}},enumerable:false,configurable:true});return e}());Ve.style=je;var qe="fl-dropdown .dropdown-menu{max-height:min(20rem, 50vh)}fl-dropdown .dropdown-menu .dropdown-item{cursor:pointer}fl-dropdown .dropdown-menu .dropdown-item.selected{background-color:rgba(253, 189, 0, 0.5)}";var ze=3;var He=e("fl_dropdown_async",function(){function e(e){var i=this;t(this,e);this.valueChanged=r(this,"valueChanged",7);this.required=false;this.disabled=false;this.minSearchStringLength=ze;this.isMouseOver=false;this.searchState="pristine";this.inputValue="";this.isDropdownVisible=false;this.filteredOptions=[];this.shouldExecuteSearch=function(e){var t;return i.isDropdownVisible&&(e===null||e===void 0?void 0:e.length)>=i.minSearchStringLength&&((t=i.selectedOption)===null||t===void 0?void 0:t.label)!==e};this.onBeginSearch=function(e){i.inputValue=e;i.searchState="in progress"};this.onCompleteSearch=function(e){i.filteredOptions=e;i.highlightedOptionIndex=undefined;i.searchState="done"};this.renderFilteredResults=function(){if(i.searchState==="pristine"){return n("span",{class:"dropdown-item disabled"},"Start typing to find the results")}if(i.searchState==="in progress"){return n("div",{class:"d-flex justify-content-end align-items-center pr-4"},n("span",{class:"dropdown-item disabled"},"Searching..."),n("i",{class:"dot-falling"}))}if(i.filteredOptions.length===0){return n("span",{class:"dropdown-item disabled"},"No items match your search")}return i.filteredOptions.map((function(e,t){return n("span",{class:{"dropdown-item text-wrap":true,selected:i.isOptionSelected(e),active:i.highlightedOptionIndex===t},onClick:function(t){i.toggleDropdown(false);i.selectOption(e)}},e.label)}))};this.resetInput=function(){var e,t;i.inputValue=(t=(e=i.selectedOption)===null||e===void 0?void 0:e.label)!==null&&t!==void 0?t:""};this.toggleDropdown=function(e){i.isDropdownVisible=e};this.processKeyboardNavigation=function(e){var t="Enter";var n="ArrowDown";var r="ArrowUp";var a="Escape";switch(e.key){case n:i.toggleDropdown(true);i.highlightNextItem();return true;case r:i.highlightPreviousItem();return true;case t:if(i.highlightedOptionIndex!==undefined){i.toggleDropdown(false);i.selectOption(i.filteredOptions[i.highlightedOptionIndex])}return true;case a:i.inputElement.blur();return true}return false};this.highlightPreviousItem=function(){if(i.filteredOptions.length===0){return}i.highlightedOptionIndex=i.highlightedOptionIndex===undefined?0:Math.max(i.highlightedOptionIndex-1,0)};this.highlightNextItem=function(){if(i.filteredOptions.length===0){return}i.highlightedOptionIndex=i.highlightedOptionIndex===undefined?0:Math.min(i.highlightedOptionIndex+1,i.filteredOptions.length-1)};this.selectOption=function(e){i.selectedOption=e;i.inputValue=e.label;i.valueChanged.emit(e)};this.isOptionSelected=function(e){var t;return((t=i.selectedOption)===null||t===void 0?void 0:t.label)===e.label}}e.prototype.componentWillLoad=function(){this.selectedOption=this.value};e.prototype.componentDidLoad=function(){var e=this;this.searchResultsSubscription=F(this.inputElement,"keyup").pipe(M(500),d((function(t){return e.inputElement.value})),g(),m(this.shouldExecuteSearch),j(this.onBeginSearch),E(this._searchFunction),j(this.onCompleteSearch)).subscribe()};e.prototype.componentDidUnload=function(){this.searchResultsSubscription.unsubscribe()};e.prototype.handleFocus=function(){this.toggleDropdown(true)};e.prototype.handleBlur=function(){if(this.isMouseOver){return}this.toggleDropdown(false);this.highlightedOptionIndex=undefined;this.resetInput()};e.prototype.handleKeyDown=function(e){if(this.processKeyboardNavigation(e)){e.preventDefault()}};e.prototype.render=function(){var e=this;var t;return[n("div",{class:"dropdown"},n("input",{type:"text",class:"form-control",placeholder:this.placeholder,required:this.required,disabled:this.disabled,value:this.inputValue,ref:function(t){return e.inputElement=t}}),n("div",{class:{"invalid-feedback":true,"d-none":this.isDropdownVisible}},(t=this.requiredValidationMessage)!==null&&t!==void 0?t:"Required."),n("div",{class:{"dropdown-menu shadow mt-0 w-100 overflow-auto":true,show:this.isDropdownVisible},onMouseEnter:function(t){return e.isMouseOver=true},onMouseLeave:function(t){return e.isMouseOver=false}},this.renderFilteredResults()))]};Object.defineProperty(e.prototype,"_searchFunction",{get:function(){if(this.searchFunction===undefined){throw new Error("Can't render <fl-dropdown-async/> component with no searchFunction")}return this.searchFunction},enumerable:false,configurable:true});return e}());He.style=qe;var We='fl-loading-indicator .dots-container{width:36px}fl-loading-indicator .dot-flashing.theme-default{position:relative;width:8px;height:8px;border-radius:4px;background-color:#66efc5;color:#9880ff;-webkit-animation:dot-flashing-default 2s infinite linear;animation:dot-flashing-default 2s infinite linear;-webkit-animation-delay:0.5s;animation-delay:0.5s}@-webkit-keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}@keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}fl-loading-indicator .dot-flashing.theme-default::before,fl-loading-indicator .dot-flashing.theme-default::after{content:"";display:inline-block;position:absolute;top:0}fl-loading-indicator .dot-flashing.theme-default::before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#66efc5;color:#9880ff;-webkit-animation:dot-flashing-default 2s infinite linear;animation:dot-flashing-default 2s infinite linear;-webkit-animation-delay:0s;animation-delay:0s}@keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}fl-loading-indicator .dot-flashing.theme-default::after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#66efc5;color:#9880ff;-webkit-animation:dot-flashing-default 2s infinite linear;animation:dot-flashing-default 2s infinite linear;-webkit-animation-delay:1s;animation-delay:1s}@keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}fl-loading-indicator .dot-flashing.theme-dark{position:relative;width:8px;height:8px;border-radius:4px;background-color:#a7a7a7;color:#9880ff;-webkit-animation:dot-flashing-dark 2s infinite linear;animation:dot-flashing-dark 2s infinite linear;-webkit-animation-delay:0.5s;animation-delay:0.5s}@-webkit-keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}@keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}fl-loading-indicator .dot-flashing.theme-dark::before,fl-loading-indicator .dot-flashing.theme-dark::after{content:"";display:inline-block;position:absolute;top:0}fl-loading-indicator .dot-flashing.theme-dark::before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#a7a7a7;color:#9880ff;-webkit-animation:dot-flashing-dark 2s infinite linear;animation:dot-flashing-dark 2s infinite linear;-webkit-animation-delay:0s;animation-delay:0s}@keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}fl-loading-indicator .dot-flashing.theme-dark::after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#a7a7a7;color:#9880ff;-webkit-animation:dot-flashing-dark 2s infinite linear;animation:dot-flashing-dark 2s infinite linear;-webkit-animation-delay:1s;animation-delay:1s}@keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}';var Ge=e("fl_loading_indicator",function(){function e(e){t(this,e);this.theme="default"}e.prototype.render=function(){return n("span",{class:{"dots-container d-inline-flex justify-content-center":true}},n("span",{class:{"dot-flashing":true,"theme-default":this.theme==="default","theme-dark":this.theme==="dark"}}))};return e}());Ge.style=We;var Ke="fl-promise-button fl-loading-indicator{left:50%;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}";var Xe;(function(e){e[e["Available"]=0]="Available";e[e["Pending"]=1]="Pending";e[e["Error"]=2]="Error"})(Xe||(Xe={}));var Je=e("fl_promise_button",function(){function e(e){t(this,e);this.isBlockElement=false;this.isRounded=false;this.disabled=false;this.variant="primary";this.promiseFn=function(){return Promise.resolve()};this.state=Xe.Available}e.prototype.render=function(){return this.state===Xe.Pending?this.renderLoadingButton():this.renderActiveButton()};e.prototype.renderActiveButton=function(){var e=this;return n("fl-button",{disabled:this.disabled,onClick:function(){return e.clicked()},isBlockElement:this.isBlockElement,variant:this.variant},n("div",null,n("slot",null)))};e.prototype.renderLoadingButton=function(){var e=this;return n("fl-button",{disabled:true,onClick:function(){return e.clicked()},isBlockElement:this.isBlockElement,class:"position-relative",variant:this.variant},n("fl-loading-indicator",{class:"position-absolute",theme:"dark"}),n("div",{class:"invisible"},n("slot",null)))};e.prototype.clicked=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:this.state=Xe.Pending;t.label=1;case 1:t.trys.push([1,3,,4]);return[4,this.promiseFn()];case 2:t.sent();this.state=Xe.Available;return[3,4];case 3:e=t.sent();this.state=Xe.Error;throw e;case 4:return[2]}}))}))};return e}());Je.style=Ke;function Ye(){$e({type:"appReady"})}function $e(e,t){if(t===undefined)t="*";e.sender="flare";window.parent.postMessage(e,t)}function Qe(e,t){$e({type:"contentResized",height:e,width:t})}function Ze(e){$e({type:"pageNavigated",url:e})}function et(){$e({type:"complete"})}function tt(){$e({type:"submitSuccess"})}var nt={appReady:Ye,resize:Qe,navigation:Ze,complete:et,submitSuccess:tt};var rt=function(e,t,n){var r=e.get(t);if(!r){e.set(t,[n])}else if(!r.includes(n)){r.push(n)}};var it=function(e,t){var n;return function(){var r=[];for(var i=0;i<arguments.length;i++){r[i]=arguments[i]}if(n){clearTimeout(n)}n=setTimeout((function(){n=0;e.apply(void 0,r)}),t)}};var at=function(e){return!("isConnected"in e)||e.isConnected};var ot=it((function(e){for(var t=0,n=e.keys();t<n.length;t++){var r=n[t];e.set(r,e.get(r).filter(at))}}),2e3);var st=function(e){var t=e.on;var n=new Map;if(typeof i==="function"){t("dispose",(function(){n.clear()}));t("get",(function(e){var t=i();if(t){rt(n,e,t)}}));t("set",(function(e){var t=n.get(e);if(t){n.set(e,t.filter(a))}ot(n)}));t("reset",(function(){n.forEach((function(e){return e.forEach(a)}));ot(n)}))}};var ut=function(e,t){if(t===void 0){t=function(e,t){return e!==t}}var n=new Map(Object.entries(e!==null&&e!==void 0?e:{}));var r={dispose:[],get:[],set:[],reset:[]};var i=function(){n=new Map(Object.entries(e!==null&&e!==void 0?e:{}));r.reset.forEach((function(e){return e()}))};var a=function(){r.dispose.forEach((function(e){return e()}));i()};var o=function(e){r.get.forEach((function(t){return t(e)}));return n.get(e)};var s=function(e,i){var a=n.get(e);if(t(i,a,e)){n.set(e,i);r.set.forEach((function(t){return t(e,i,a)}))}};var u=typeof Proxy==="undefined"?{}:new Proxy(e,{get:function(e,t){return o(t)},ownKeys:function(e){return Array.from(n.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(e,t){return n.has(t)},set:function(e,t,n){s(t,n);return true}});var c=function(e,t){r[e].push(t);return function(){ct(r[e],t)}};var l=function(t,n){var r=c("set",(function(e,r){if(e===t){n(r)}}));var i=c("reset",(function(){return n(e[t])}));return function(){r();i()}};var f=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e.forEach((function(e){if(e.set){c("set",e.set)}if(e.get){c("get",e.get)}if(e.reset){c("reset",e.reset)}}))};return{state:u,get:o,set:s,on:c,onChange:l,use:f,dispose:a,reset:i}};var ct=function(e,t){var n=e.indexOf(t);if(n>=0){e[n]=e[e.length-1];e.length--}};var lt=function(e,t){var n=ut(e,t);st(n);return n};function ft(e,t,n){return n={path:t,exports:{},require:function(e,t){return dt()}},e(n,n.exports),n.exports}function dt(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var pt=ft((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.bindTo_=t.bind_=t.hole=t.pipe=t.untupled=t.tupled=t.absurd=t.decrement=t.increment=t.tuple=t.flow=t.flip=t.constVoid=t.constUndefined=t.constNull=t.constFalse=t.constTrue=t.constant=t.not=t.unsafeCoerce=t.identity=void 0;function n(e){return e}t.identity=n;t.unsafeCoerce=n;function r(e){return function(t){return!e(t)}}t.not=r;function i(e){return function(){return e}}t.constant=i;t.constTrue=i(true);t.constFalse=i(false);t.constNull=i(null);t.constUndefined=i(undefined);t.constVoid=t.constUndefined;function a(e){return function(t,n){return e(n,t)}}t.flip=a;function o(e,t,n,r,i,a,o,s,u){switch(arguments.length){case 1:return e;case 2:return function(){return t(e.apply(this,arguments))};case 3:return function(){return n(t(e.apply(this,arguments)))};case 4:return function(){return r(n(t(e.apply(this,arguments))))};case 5:return function(){return i(r(n(t(e.apply(this,arguments)))))};case 6:return function(){return a(i(r(n(t(e.apply(this,arguments))))))};case 7:return function(){return o(a(i(r(n(t(e.apply(this,arguments)))))))};case 8:return function(){return s(o(a(i(r(n(t(e.apply(this,arguments))))))))};case 9:return function(){return u(s(o(a(i(r(n(t(e.apply(this,arguments)))))))))}}return}t.flow=o;function s(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e}t.tuple=s;function u(e){return e+1}t.increment=u;function c(e){return e-1}t.decrement=c;function l(e){throw new Error("Called `absurd` function which should be uncallable")}t.absurd=l;function f(e){return function(t){return e.apply(void 0,t)}}t.tupled=f;function d(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return e(t)}}t.untupled=d;function p(e,t,n,r,i,a,o,s,u,c,l,f,d,p,h,v,g,m,y,b){switch(arguments.length){case 1:return e;case 2:return t(e);case 3:return n(t(e));case 4:return r(n(t(e)));case 5:return i(r(n(t(e))));case 6:return a(i(r(n(t(e)))));case 7:return o(a(i(r(n(t(e))))));case 8:return s(o(a(i(r(n(t(e)))))));case 9:return u(s(o(a(i(r(n(t(e))))))));case 10:return c(u(s(o(a(i(r(n(t(e)))))))));case 11:return l(c(u(s(o(a(i(r(n(t(e))))))))));case 12:return f(l(c(u(s(o(a(i(r(n(t(e)))))))))));case 13:return d(f(l(c(u(s(o(a(i(r(n(t(e))))))))))));case 14:return p(d(f(l(c(u(s(o(a(i(r(n(t(e)))))))))))));case 15:return h(p(d(f(l(c(u(s(o(a(i(r(n(t(e))))))))))))));case 16:return v(h(p(d(f(l(c(u(s(o(a(i(r(n(t(e)))))))))))))));case 17:return g(v(h(p(d(f(l(c(u(s(o(a(i(r(n(t(e))))))))))))))));case 18:return m(g(v(h(p(d(f(l(c(u(s(o(a(i(r(n(t(e)))))))))))))))));case 19:return y(m(g(v(h(p(d(f(l(c(u(s(o(a(i(r(n(t(e))))))))))))))))));case 20:return b(y(m(g(v(h(p(d(f(l(c(u(s(o(a(i(r(n(t(e)))))))))))))))))))}return}t.pipe=p;t.hole=l;var h=function(e,t,n){var r;return Object.assign({},e,(r={},r[t]=n,r))};t.bind_=h;var v=function(e){return function(t){var n;return n={},n[e]=t,n}};t.bindTo_=v}));var ht=ft((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.getApplySemigroup=t.getOrd=t.getEq=t.getShow=t.URI=t.wilt=t.wither=t.sequence=t.traverse=t.partitionMap=t.partition=t.filterMap=t.filter=t.separate=t.compact=t.reduceRight=t.foldMap=t.reduce=t.duplicate=t.extend=t.throwError=t.zero=t.alt=t.altW=t.flatten=t.chainFirst=t.chain=t.of=t.apSecond=t.apFirst=t.ap=t.map=t.chainNullableK=t.mapNullable=t.fromNullableK=t.getOrElse=t.getOrElseW=t.toUndefined=t.toNullable=t.fold=t.fromEither=t.getRight=t.getLeft=t.tryCatch=t.fromPredicate=t.fromNullable=t.some=t.none=t.isNone=t.isSome=void 0;t.sequenceArray=t.traverseArray=t.traverseArrayWithIndex=t.apS=t.bind=t.bindTo=t.Do=t.getRefinement=t.exists=t.elem=t.option=t.MonadThrow=t.Witherable=t.Traversable=t.Filterable=t.Compactable=t.Extend=t.Alternative=t.Alt=t.Foldable=t.Monad=t.Applicative=t.Functor=t.getMonoid=t.getLastMonoid=t.getFirstMonoid=t.getApplyMonoid=void 0;var n=function(e){return e._tag==="Some"};t.isSome=n;var r=function(e){return e._tag==="None"};t.isNone=r;t.none={_tag:"None"};var i=function(e){return{_tag:"Some",value:e}};t.some=i;function a(e){return e==null?t.none:t.some(e)}t.fromNullable=a;function o(e){return function(n){return e(n)?t.some(n):t.none}}t.fromPredicate=o;function s(e){try{return t.some(e())}catch(e){return t.none}}t.tryCatch=s;function u(e){return e._tag==="Right"?t.none:t.some(e.left)}t.getLeft=u;function c(e){return e._tag==="Left"?t.none:t.some(e.right)}t.getRight=c;t.fromEither=c;function l(e,n){return function(r){return t.isNone(r)?e():n(r.value)}}t.fold=l;function f(e){return t.isNone(e)?null:e.value}t.toNullable=f;function d(e){return t.isNone(e)?undefined:e.value}t.toUndefined=d;var p=function(e){return function(n){return t.isNone(n)?e():n.value}};t.getOrElseW=p;t.getOrElse=t.getOrElseW;function h(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return a(e.apply(void 0,t))}}t.fromNullableK=h;t.mapNullable=v;function v(e){return function(n){return t.isNone(n)?t.none:a(e(n.value))}}t.chainNullableK=v;var g=function(e,n){return pt.pipe(e,t.map(n))};var m=function(e,n){return pt.pipe(e,t.ap(n))};var y=function(e,n){return pt.pipe(e,t.chain(n))};var b=function(e,n,r){return pt.pipe(e,t.reduce(n,r))};var w=function(e){var n=t.foldMap(e);return function(e,t){return pt.pipe(e,n(t))}};var x=function(e,n,r){return pt.pipe(e,t.reduceRight(n,r))};var S=function(e){var n=t.traverse(e);return function(e,t){return pt.pipe(e,n(t))}};var _=function(e,n){return pt.pipe(e,t.alt(n))};var I=function(e,n){return pt.pipe(e,t.filter(n))};var C=function(e,n){return pt.pipe(e,t.filterMap(n))};var k=function(e,n){return pt.pipe(e,t.extend(n))};var T=function(e,n){return pt.pipe(e,t.partition(n))};var E=function(e,n){return pt.pipe(e,t.partitionMap(n))};var A=function(e){var n=t.wither(e);return function(e,t){return pt.pipe(e,n(t))}};var N=function(e){var n=t.wilt(e);return function(e,t){return pt.pipe(e,n(t))}};var F=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n.value))}};t.map=F;var P=function(e){return function(n){return t.isNone(n)?t.none:t.isNone(e)?t.none:t.some(n.value(e.value))}};t.ap=P;var O=function(e){return pt.flow(t.map((function(e){return function(){return e}})),t.ap(e))};t.apFirst=O;var R=function(e){return pt.flow(t.map((function(){return function(e){return e}})),t.ap(e))};t.apSecond=R;t.of=t.some;var D=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)}};t.chain=D;var M=function(e){return t.chain((function(n){return pt.pipe(e(n),t.map((function(){return n})))}))};t.chainFirst=M;t.flatten=t.chain(pt.identity);var L=function(e){return function(n){return t.isNone(n)?e():n}};t.altW=L;t.alt=t.altW;var U=function(){return t.none};t.zero=U;var B=function(){return t.none};t.throwError=B;var j=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n))}};t.extend=j;t.duplicate=t.extend(pt.identity);var V=function(e,n){return function(r){return t.isNone(r)?e:n(e,r.value)}};t.reduce=V;var q=function(e){return function(n){return function(r){return t.isNone(r)?e.empty:n(r.value)}}};t.foldMap=q;var z=function(e,n){return function(r){return t.isNone(r)?e:n(r.value,e)}};t.reduceRight=z;t.compact=t.flatten;var H={left:t.none,right:t.none};var W=function(e){var n=pt.pipe(e,t.map((function(e){return{left:u(e),right:c(e)}})));return t.isNone(n)?H:n.value};t.separate=W;var G=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)?n:t.none}};t.filter=G;var K=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)}};t.filterMap=K;var X=function(e){return function(t){return{left:I(t,(function(t){return!e(t)})),right:I(t,e)}}};t.partition=X;var J=function(e){return pt.flow(t.map(e),t.separate)};t.partitionMap=J;var Y=function(e){return function(n){return function(r){return t.isNone(r)?e.of(t.none):e.map(n(r.value),t.some)}}};t.traverse=Y;var $=function(e){return function(n){return t.isNone(n)?e.of(t.none):e.map(n.value,t.some)}};t.sequence=$;var Q=function(e){return function(n){return function(r){return t.isNone(r)?e.of(t.none):n(r.value)}}};t.wither=Q;var Z=function(e){return function(n){return function(r){return t.isNone(r)?e.of({left:t.none,right:t.none}):e.map(n(r.value),(function(e){return{left:u(e),right:c(e)}}))}}};t.wilt=Z;t.URI="Option";function ee(e){return{show:function(n){return t.isNone(n)?"none":"some("+e.show(n.value)+")"}}}t.getShow=ee;function te(e){return{equals:function(n,r){return n===r||(t.isNone(n)?t.isNone(r):t.isNone(r)?false:e.equals(n.value,r.value))}}}t.getEq=te;function ne(e){return{equals:te(e).equals,compare:function(n,r){return n===r?0:t.isSome(n)?t.isSome(r)?e.compare(n.value,r.value):1:-1}}}t.getOrd=ne;function re(e){return{concat:function(n,r){return t.isSome(n)&&t.isSome(r)?t.some(e.concat(n.value,r.value)):t.none}}}t.getApplySemigroup=re;function ie(e){return{concat:re(e).concat,empty:t.some(e.empty)}}t.getApplyMonoid=ie;function ae(){return{concat:function(e,n){return t.isNone(e)?n:e},empty:t.none}}t.getFirstMonoid=ae;function oe(){return{concat:function(e,n){return t.isNone(n)?e:n},empty:t.none}}t.getLastMonoid=oe;function se(e){return{concat:function(n,r){return t.isNone(n)?r:t.isNone(r)?n:t.some(e.concat(n.value,r.value))},empty:t.none}}t.getMonoid=se;t.Functor={URI:t.URI,map:g};t.Applicative={URI:t.URI,map:g,ap:m,of:t.of};t.Monad={URI:t.URI,map:g,ap:m,of:t.of,chain:y};t.Foldable={URI:t.URI,reduce:b,foldMap:w,reduceRight:x};t.Alt={URI:t.URI,map:g,alt:_};t.Alternative={URI:t.URI,map:g,ap:m,of:t.of,alt:_,zero:t.zero};t.Extend={URI:t.URI,map:g,extend:k};t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate};t.Filterable={URI:t.URI,map:g,compact:t.compact,separate:t.separate,filter:I,filterMap:C,partition:T,partitionMap:E};t.Traversable={URI:t.URI,map:g,reduce:b,foldMap:w,reduceRight:x,traverse:S,sequence:t.sequence};t.Witherable={URI:t.URI,map:g,reduce:b,foldMap:w,reduceRight:x,traverse:S,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:I,filterMap:C,partition:T,partitionMap:E,wither:A,wilt:N};t.MonadThrow={URI:t.URI,map:g,ap:m,of:t.of,chain:y,throwError:t.throwError};t.option={URI:t.URI,map:g,of:t.of,ap:m,chain:y,reduce:b,foldMap:w,reduceRight:x,traverse:S,sequence:t.sequence,zero:t.zero,alt:_,extend:k,compact:t.compact,separate:t.separate,filter:I,filterMap:C,partition:T,partitionMap:E,wither:A,wilt:N,throwError:t.throwError};function ue(e){return function(n,r){return t.isNone(r)?false:e.equals(n,r.value)}}t.elem=ue;function ce(e){return function(n){return t.isNone(n)?false:e(n.value)}}t.exists=ce;function le(e){return function(n){return t.isSome(e(n))}}t.getRefinement=le;t.Do=t.of({});var fe=function(e){return t.map(pt.bindTo_(e))};t.bindTo=fe;var de=function(e,n){return t.chain((function(r){return pt.pipe(n(r),t.map((function(t){return pt.bind_(r,e,t)})))}))};t.bind=de;var pe=function(e,n){return pt.flow(t.map((function(t){return function(n){return pt.bind_(t,e,n)}})),t.ap(n))};t.apS=pe;var he=function(e){return function(n){var r=[];for(var i=0;i<n.length;i++){var a=e(i,n[i]);if(t.isNone(a)){return t.none}r.push(a.value)}return t.some(r)}};t.traverseArrayWithIndex=he;var ve=function(e){return t.traverseArrayWithIndex((function(t,n){return e(n)}))};t.traverseArray=ve;t.sequenceArray=t.traverseArray(pt.identity)}));function vt(e){this.message=e}vt.prototype=new Error,vt.prototype.name="InvalidCharacterError";var gt="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new vt("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,a=0,o="";r=t.charAt(a++);~r&&(n=i%4?64*n+r:r,i++%4)?o+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return o};function mt(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(gt(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return gt(t)}}function yt(e){this.message=e}function bt(e,t){if("string"!=typeof e)throw new yt("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(mt(e.split(".")[n]))}catch(e){throw new yt("Invalid token specified: "+e.message)}}yt.prototype=new Error,yt.prototype.name="InvalidTokenError";var wt=undefined&&undefined.__assign||function(){wt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return wt.apply(this,arguments)};var xt=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};var St=function(e,t,n){if(n===void 0){n=false}if(!e||!t||typeof e!=="object"||typeof t!=="object")return e;var r=wt({},e);for(var i in t){if(t.hasOwnProperty(i)){if(t[i]instanceof Array&&e[i]instanceof Array){r[i]=n?xt(e[i],t[i]):t[i]}else if(typeof t[i]==="object"&&typeof e[i]==="object"){r[i]=St(e[i],t[i],n)}else{r[i]=t[i]}}}return r};var _t=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};var It={defaults:{},errorType:null,polyfills:{fetch:null,FormData:null,URLSearchParams:null,performance:null,PerformanceObserver:null,AbortController:null},polyfill:function(e,t){var n=t===void 0?{}:t,r=n.doThrow,i=r===void 0?true:r,a=n.instance,o=a===void 0?false:a;var s=[];for(var u=2;u<arguments.length;u++){s[u-2]=arguments[u]}var c=this.polyfills[e]||(typeof self!=="undefined"?self[e]:null)||(typeof global!=="undefined"?global[e]:null);if(i&&!c)throw new Error(e+" is not defined");return o&&c?new(c.bind.apply(c,_t([void 0],s))):c}};var Ct=function(e,t,n,r){if(!e.getEntriesByName)return false;var i=e.getEntriesByName(t);if(i&&i.length>0){n(i.reverse()[0]);if(r.clearMeasures)r.clearMeasures(t);Tt.callbacks.delete(t);if(Tt.callbacks.size<1){Tt.observer.disconnect();if(r.clearResourceTimings){r.clearResourceTimings()}}return true}return false};var kt=function(e,t){if(!Tt.observer&&e&&t){Tt.observer=new t((function(t){Tt.callbacks.forEach((function(n,r){Ct(t,r,n,e)}))}));if(e.clearResourceTimings)e.clearResourceTimings()}return Tt.observer};var Tt={callbacks:new Map,observer:null,observe:function(e,t){if(!e||!t)return;var n=It.polyfill("performance",{doThrow:false});var r=It.polyfill("PerformanceObserver",{doThrow:false});if(!kt(n,r))return;if(!Ct(n,e,t,n)){if(Tt.callbacks.size<1)Tt.observer.observe({entryTypes:["resource","measure"]});Tt.callbacks.set(e,t)}}};var Et=function(e){return function(t){return e.length===0?t:e.length===1?e[0](t):e.reduceRight((function(n,r,i){return i===e.length-2?r(n(t)):r(n)}))}};var At=function(){function e(e){this.error=e}return e}();var Nt=function(e){var t=e._url,n=e._catchers,r=e._resolvers,i=e._middlewares,a=e._options;var o=new Map(n);var s=St(It.defaults,a);var u=It.polyfill("AbortController",{doThrow:false,instance:true});if(!s["signal"]&&u){s["signal"]=u.signal}var c={ref:null,clear:function(){if(c.ref){clearTimeout(c.ref);c.ref=null}}};var l=Et(i)(It.polyfill("fetch"))(t,s);var f=l.catch((function(e){throw new At(e)})).then((function(e){c.clear();if(!e.ok){return e[It.errorType||"text"]().then((function(t){var n=new Error(t);n[It.errorType||"text"]=t;n["status"]=e.status;n["response"]=e;throw n}))}return e}));var d=function(t){return t.catch((function(t){c.clear();var n=t instanceof At?t.error:t;if(t instanceof At&&o.has("__fromFetch"))return o.get("__fromFetch")(n,e);else if(o.has(n.status))return o.get(n.status)(n,e);else if(o.has(n.name))return o.get(n.name)(n,e);else throw n}))};var p=function(e){return function(t){return e?d(f.then((function(t){return t&&t[e]()})).then((function(e){return t?t(e):e}))):d(f.then((function(e){return t?t(e):e})))}};var h={res:p(null),json:p("json"),blob:p("blob"),formData:p("formData"),arrayBuffer:p("arrayBuffer"),text:p("text"),perfs:function(e){l.then((function(t){return Tt.observe(t.url,e)}));return h},setTimeout:function(e,t){if(t===void 0){t=u}c.clear();c.ref=setTimeout((function(){return t.abort()}),e);return h},controller:function(){return[u,h]},error:function(e,t){o.set(e,t);return h},badRequest:function(e){return h.error(400,e)},unauthorized:function(e){return h.error(401,e)},forbidden:function(e){return h.error(403,e)},notFound:function(e){return h.error(404,e)},timeout:function(e){return h.error(408,e)},internalError:function(e){return h.error(500,e)},fetchError:function(e){return h.error("__fromFetch",e)},onAbort:function(e){return h.error("AbortError",e)}};return r.reduce((function(t,n){return n(t,e)}),h)};var Ft=undefined&&undefined.__assign||function(){Ft=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return Ft.apply(this,arguments)};var Pt=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};var Ot="application/json";var Rt="Content-Type";var Dt=function(){function e(e,t,n,r,i,a){if(n===void 0){n=new Map}if(r===void 0){r=[]}if(i===void 0){i=[]}if(a===void 0){a=[]}this._url=e;this._options=t;this._catchers=n;this._resolvers=r;this._middlewares=i;this._deferredChain=a}e.factory=function(t,n){if(t===void 0){t=""}if(n===void 0){n={}}return new e(t,n)};e.prototype.selfFactory=function(t){var n=t===void 0?{}:t,r=n.url,i=r===void 0?this._url:r,a=n.options,o=a===void 0?this._options:a,s=n.catchers,u=s===void 0?this._catchers:s,c=n.resolvers,l=c===void 0?this._resolvers:c,f=n.middlewares,d=f===void 0?this._middlewares:f,p=n.deferredChain,h=p===void 0?this._deferredChain:p;return new e(i,Ft({},o),new Map(u),Pt(l),Pt(d),Pt(h))};e.prototype.defaults=function(e,t){if(t===void 0){t=false}It.defaults=t?St(It.defaults,e):e;return this};e.prototype.errorType=function(e){It.errorType=e;return this};e.prototype.polyfills=function(e){It.polyfills=Ft(Ft({},It.polyfills),e);return this};e.prototype.url=function(e,t){if(t===void 0){t=false}if(t)return this.selfFactory({url:e});var n=this._url.split("?");return this.selfFactory({url:n.length>1?n[0]+e+"?"+n[1]:this._url+e})};e.prototype.options=function(e,t){if(t===void 0){t=true}return this.selfFactory({options:t?St(this._options,e):e})};e.prototype.query=function(e,t){if(t===void 0){t=false}return this.selfFactory({url:Mt(this._url,e,t)})};e.prototype.headers=function(e){return this.selfFactory({options:St(this._options,{headers:e||{}})})};e.prototype.accept=function(e){return this.headers({Accept:e})};e.prototype.content=function(e){var t;return this.headers((t={},t[Rt]=e,t))};e.prototype.auth=function(e){return this.headers({Authorization:e})};e.prototype.catcher=function(e,t){var n=new Map(this._catchers);n.set(e,t);return this.selfFactory({catchers:n})};e.prototype.signal=function(e){return this.selfFactory({options:Ft(Ft({},this._options),{signal:e.signal})})};e.prototype.resolve=function(e,t){if(t===void 0){t=false}return this.selfFactory({resolvers:t?[e]:Pt(this._resolvers,[e])})};e.prototype.defer=function(e,t){if(t===void 0){t=false}return this.selfFactory({deferredChain:t?[e]:Pt(this._deferredChain,[e])})};e.prototype.middlewares=function(e,t){if(t===void 0){t=false}return this.selfFactory({middlewares:t?e:Pt(this._middlewares,e)})};e.prototype.method=function(e,t,n){if(t===void 0){t={}}if(n===void 0){n=null}var r=this._options.headers;var i=!n?this:typeof n==="object"&&(!r||Object.entries(r).every((function(e){var t=e[0],n=e[1];return t.toLowerCase()!==Rt.toLowerCase()||n.startsWith(Ot)})))?this.json(n):this.body(n);i=i.options(Ft(Ft({},t),{method:e}));var a=i._deferredChain.reduce((function(e,t){return t(e,e._url,e._options)}),i);return Nt(a)};e.prototype.get=function(e){return this.method("GET",e)};e.prototype.delete=function(e){return this.method("DELETE",e)};e.prototype.put=function(e,t){return this.method("PUT",t,e)};e.prototype.post=function(e,t){return this.method("POST",t,e)};e.prototype.patch=function(e,t){return this.method("PATCH",t,e)};e.prototype.head=function(e){return this.method("HEAD",e)};e.prototype.opts=function(e){return this.method("OPTIONS",e)};e.prototype.replay=function(e){return this.method(this._options.method,e)};e.prototype.body=function(e){return this.selfFactory({options:Ft(Ft({},this._options),{body:e})})};e.prototype.json=function(e){var t;var n=(t=Object.entries(this._options.headers||{}).find((function(e){var t=e[0],n=e[1];return t.toLowerCase()===Rt.toLowerCase()&&n.startsWith(Ot)})))===null||t===void 0?void 0:t[1];return this.content(n||Ot).body(JSON.stringify(e))};e.prototype.formData=function(e,t){if(t===void 0){t=false}return this.body(Lt(e,t))};e.prototype.formUrl=function(e){return this.body(typeof e==="string"?e:Bt(e)).content("application/x-www-form-urlencoded")};return e}();var Mt=function(e,t,n){var r;if(typeof t==="string"){r=t}else{var i=It.polyfill("URLSearchParams",{instance:true});for(var a in t){if(t[a]instanceof Array){for(var o=0,s=t[a];o<s.length;o++){var u=s[o];i.append(a,u)}}else{i.append(a,t[a])}}r=i.toString()}var c=e.split("?");if(n||c.length<2)return c[0]+"?"+r;return e+"&"+r};function Lt(e,t,n,r){if(t===void 0){t=false}if(n===void 0){n=It.polyfill("FormData",{instance:true})}if(r===void 0){r=[]}Object.entries(e).forEach((function(e){var i=e[0],a=e[1];var o=r.reduce((function(e,t){return e?e+"["+t+"]":t}),null);o=o?o+"["+i+"]":i;if(a instanceof Array){for(var s=0,u=a;s<u.length;s++){var c=u[s];n.append(o+"[]",c)}}else if(t&&typeof a==="object"&&(!(t instanceof Array)||!t.includes(i))){if(a!==null){Lt(a,t,n,Pt(r,[i]))}}else{n.append(o,a)}}));return n}function Ut(e,t){return encodeURIComponent(e)+"="+encodeURIComponent(typeof t==="object"?JSON.stringify(t):""+t)}function Bt(e){return Object.keys(e).map((function(t){var n=e[t];if(n instanceof Array){return n.map((function(e){return Ut(t,e)})).join("&")}return Ut(t,n)})).join("&")}var jt=Dt.factory;jt["default"]=Dt.factory;function Vt(){var e=Gt.jwt;var t=Gt.profileId;var n=Gt.accountIdOrDefault;var r=Gt.partnerIdOrDefault;return jt(Gt.apiBaseUrl).headers({Authorization:"Bearer "+e,"X-PROFILE-ID":t,"X-PARTNER-ID":r,"X-ACCOUNT-ID":n})}var qt=function(){function e(){}e.prototype.getAustralianFundsAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Vt().url("super-choice/australian-funds?"+this.toQueryString(e)).get().notFound((function(){throw new Error("Failed to fetch the list of australian super funds.")})).json()]}))}))};e.prototype.getAppStateAsync=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,Vt().url("client-app-state").get().notFound((function(){throw new Error("Failed to fetch application configuration.")})).json()]}))}))};e.prototype.toQueryString=function(e){switch(e.type){case"partialMatch":return"search="+e.searchString+"&maxRecordCount="+e.maxRecordCount;case"usiMatch":return"usi="+e.usi}};return e}();var zt=new qt;var Ht={apiBaseUrl:ht.none,appBaseUrl:ht.none,profileId:ht.none,jwt:ht.none,superBuyer:ht.none,promotedFunds:ht.none,accountConfiguration:ht.none,hasSuccessPageBeenAcknowledged:false,hasSuperSelectionBeenSubmitted:false};var Wt=function(){function e(){var e=this;var t=lt(Ht),n=t.state,r=t.onChange;this._state=n;this._onChange=r;r("jwt",(function(t){e._state.profileId=pt.pipe(t,ht.chain((function(e){return ht.fromNullable(bt(e).sub)})))}))}Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"onChange",{get:function(){return this._onChange},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"superBuyer",{get:function(){if(ht.isNone(this._state.superBuyer)){throw Error("User information is not set")}return this._state.superBuyer.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"apiBaseUrl",{get:function(){if(ht.isNone(this._state.apiBaseUrl)){throw Error("API base URL is not set")}return this._state.apiBaseUrl.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"appBaseUrl",{get:function(){if(ht.isNone(this._state.appBaseUrl)){throw Error("App base URL is not set")}return this._state.appBaseUrl.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFunds",{get:function(){if(ht.isNone(this._state.promotedFunds)){throw Error("Promoted Funds is not set")}return this._state.promotedFunds.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"profileId",{get:function(){if(ht.isNone(this._state.profileId)){throw Error("Failed to get Profile ID from JWT")}return this._state.profileId.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"defaultFundUsi",{get:function(){return pt.pipe(this._state.accountConfiguration,ht.map((function(e){return ht.fromNullable(e.defaultFundUsi)})),ht.flatten)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"accountIdOrDefault",{get:function(){return pt.pipe(this._state.accountConfiguration,ht.map((function(e){return e.accountId})),ht.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"partnerIdOrDefault",{get:function(){return pt.pipe(this._state.superBuyer,ht.map((function(e){return e.partnerId})),ht.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"jwt",{get:function(){if(ht.isNone(this._state.jwt)){throw Error("No authentication information was found")}return this._state.jwt.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"showSmsfNotSupported",{get:function(){return pt.pipe(this._state.superBuyer,ht.map((function(e){return e.showSmsfNotSupported})),ht.getOrElse((function(){return false})))},enumerable:false,configurable:true});e.prototype.completeSuperSelectionFlow=function(){this._state.hasSuccessPageBeenAcknowledged=true};e.prototype.markSuperSelectionAsSubmitted=function(){this._state.hasSuperSelectionBeenSubmitted=true};e.prototype.loadAppStateAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,zt.getAppStateAsync()];case 1:e=t.sent();this._state.accountConfiguration=ht.fromNullable(e.accountConfiguration);this._state.superBuyer=ht.fromNullable(e.superBuyer);this._state.promotedFunds=ht.fromNullable(e.promotedFunds);return[2]}}))}))};return e}();var Gt=new Wt;var Kt=function(){function e(){}e.prototype.navigateInternally=function(e,t){var n=""+this.appBaseUrl+this.toRouteWithLeadingSlash(t);nt.navigation(n);e.push(n)};e.prototype.toExternalUrl=function(e){var t=new URL(e);t.searchParams.append("_extnav","true");return t.href};Object.defineProperty(e.prototype,"appBaseUrl",{get:function(){var e=Gt.appBaseUrl;return e.replace(/\/$/,"")},enumerable:false,configurable:true});e.prototype.toRouteWithLeadingSlash=function(e){return e.length>0&&e[0]==="/"?e:"/"+e};return e}();var Xt=new Kt;var Jt;(function(e){e["ChoicePage"]="/";e["SlateJoin"]="/slate/join/";e["SlateStandardChoice"]="/slate/standard-choice/";e["PromotedFundJoin"]="/promoted-fund/join";e["PromotedFundStandardChoice"]="/promoted-fund/standard-choice/";e["MyOwnFund"]="/super-choice/my-own-fund/";e["SelfManagedFund"]="/super-choice/smsf/";e["DefaultFund"]="/super-choice/default/";e["Success"]="/success/"})(Jt||(Jt={}));var Yt=[n("stencil-route",{exact:true,url:Jt.ChoicePage,component:"sss-super-choice-page"}),n("stencil-route",{url:Jt.SlateJoin,component:"sss-slate-join-page"}),n("stencil-route",{url:Jt.SlateStandardChoice,component:"sss-slate-standard-choice-page"}),n("stencil-route",{url:Jt.PromotedFundJoin,component:"sss-promoted-fund-join-page"}),n("stencil-route",{url:Jt.PromotedFundStandardChoice,component:"sss-promoted-fund-standard-choice-page"}),n("stencil-route",{url:Jt.MyOwnFund,component:"sss-my-own-fund"}),n("stencil-route",{url:Jt.SelfManagedFund,component:"sss-self-managed-fund"}),n("stencil-route",{url:Jt.DefaultFund,component:"sss-default-fund"}),n("stencil-route",{url:Jt.Success,component:"sss-success"})];var $t;(function(e){e["MyOwnFund"]="My Own Fund";e["DefaultFund"]="Default Fund";e["SelfManagedFund"]="Self Managed Fund"})($t||($t={}));var Qt={continueAllowed:false,nextRoute:"/",myOwnFundForm:{fundUsi:G,memberNumber:G,standardChoiceFormSignature:G},defaultFundForm:{standardChoiceFormSignature:""},selfManagedFundForm:{fundName:"",fundAbn:"",fundEsa:"",addressLine1:"",addressLine2:"",state:"",postcode:"",city:"",bankAccountName:"",bsb:"",bankAccountNumber:"",standardChoiceFormSignature:""},currentCustomFundType:$t.MyOwnFund,customFunds:[{label:$t.MyOwnFund,value:Jt.MyOwnFund},{label:$t.DefaultFund,value:Jt.DefaultFund},{label:$t.SelfManagedFund,value:Jt.SelfManagedFund}]};var Zt=lt(Qt),en=Zt.state,tn=Zt.reset;var nn=en.customFunds;var rn=e("sss_custom_fund",function(){function e(e){t(this,e);this.currentCustomFund=nn[0];this.fundOptionsList=nn}e.prototype.componentWillLoad=function(){var e="";if(window.location.pathname.includes(Jt.MyOwnFund))e=Jt.MyOwnFund;if(window.location.pathname.includes(Jt.DefaultFund))e=Jt.DefaultFund;if(window.location.pathname.includes(Jt.SelfManagedFund))e=Jt.SelfManagedFund;this.currentCustomFund=nn.find((function(t){return t.value===e}))||nn[0];Xt.navigateInternally(this.history,e)};e.prototype.render=function(){var e=this;return n("div",{class:"container"},n("div",{class:"row justify-content-center"},n("div",{class:"col col-sm-10 col-md-7"},n("p",{class:"font-weight-bold text-center"},"Choose your Super"),n("div",{class:"mb-4"},n("select",{class:"form-control",required:true,onChange:function(t){e.handleChange(t.target.value.trim())}},this.fundOptionsList.map((function(t){return n("option",{value:t.value,selected:e.currentCustomFund.value===t.value},t.label)})))),n("slot",null))))};e.prototype.handleChange=function(e){var t=nn.find((function(t){return t.value===e}))||{value:Jt.MyOwnFund};Xt.navigateInternally(this.history,t.value)};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());ee(rn);var an=function(){function e(){}e.prototype.searchFundsAsync=function(e,t){return zt.getAustralianFundsAsync({type:"partialMatch",searchString:e,maxRecordCount:t})};e.prototype.getFundByUsiAsync=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return[4,zt.getAustralianFundsAsync({type:"usiMatch",usi:e})];case 1:t=n.sent();if(t.length===1){return[2,ht.some(t[0])]}return[2,ht.none]}}))}))};return e}();var on=new an;var sn=function(){function e(){}Object.defineProperty(e,"Instance",{get:function(){return this.instance||(this.instance=new this)},enumerable:false,configurable:true});e.prototype.PostAnalyticsEventAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Vt().url("analytics-events").post(e).res()]}))}))};return e}();var un=function(){function e(){this.eventTrackingApi=sn.Instance}Object.defineProperty(e,"Instance",{get:function(){return this.instance||(this.instance=new this)},enumerable:false,configurable:true});e.prototype.TrackFinancialProductViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({FinancialProductViewed:e})]}))}))};e.prototype.TrackSuperFundPdsViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPdsViewed:e})]}))}))};e.prototype.TrackFinancialProductAcceptedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({FinancialProductAccepted:e})]}))}))};e.prototype.TrackFinancialProductRejectedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({FinancialProductRejected:e})]}))}))};e.prototype.TrackSuperFundPrivacyConfirmationAcceptedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPrivacyConfirmationAccepted:e})]}))}))};e.prototype.TrackPromotedSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{PromotedFund:e}})]}))}))};e.prototype.TrackMyOwnSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{MyOwnFund:e}})]}))}))};e.prototype.TrackSmsfSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{Smsf:e}})]}))}))};e.prototype.TrackDefaultSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{DefaultFund:e}})]}))}))};e.prototype.TrackSuperFundPanelViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPanelViewed:e})]}))}))};e.prototype.trackEventAsync=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,this.eventTrackingApi.PostAnalyticsEventAsync({event:e})];case 1:n.sent();return[3,3];case 2:t=n.sent();return[2];case 3:return[2]}}))}))};return e}();var cn={items:[]};var ln=function(){function e(){var e=lt(cn).state;this._state=e}Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:false,configurable:true});e.prototype.closeCurrent=function(){var e=xt(this._state.items);e.shift();this._state.items=e};e.prototype.clearNotifications=function(){this._state.items=[]};e.prototype.showErrorNotification=function(e,t){this.pushNotification(e,t!==null&&t!==void 0?t:0,"danger")};e.prototype.showInfoNotification=function(e,t){this.pushNotification(e,t!==null&&t!==void 0?t:0,"info")};e.prototype.showWarningNotification=function(e,t){this.pushNotification(e,t!==null&&t!==void 0?t:0,"warning")};e.prototype.showSuccessNotification=function(e,t){this.pushNotification(e,t!==null&&t!==void 0?t:0,"success")};e.prototype.pushNotification=function(e,t,n){var r=xt(this._state.items);r.push({details:e,type:n,priority:t});this._state.items=r.sort((function(e,t){return t.priority-e.priority}))};return e}();var fn=new ln;var dn=function(){function e(){}e.prototype.submitDefaultFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Vt().url("super-choice/default").post(e).badRequest((function(){throw new Error("Failed to process default fund join request")})).text()]}))}))};e.prototype.submitCustomFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Vt().url("super-choice/custom-fund").post(e).badRequest((function(){throw new Error("Failed to process custom fund join request")})).text()]}))}))};e.prototype.submitSelfManagedFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Vt().url("super-choice/smsf").post(e).badRequest((function(){throw new Error("Failed to process SMSF choice request")})).text()]}))}))};return e}();var pn=new dn;var hn=e("sss_default_fund",function(){function e(e){t(this,e);this.defaultFundProductName="Loading fund...";this.eventTrackingService=un.Instance}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:e=Gt.defaultFundUsi;if(ht.isNone(e)){return[2]}this.isDefaultFundExists=true;return[4,on.getFundByUsiAsync(e.value)];case 1:t=n.sent();if(ht.isNone(t)){this.isInvalidDefaultFund=true;fn.showErrorNotification({title:"Something is not right",description:"Couldn't find information about the configured default fund (USI "+e.value+")"});return[2]}this.defaultFund=t.value;this.defaultFundProductName=t.value.productName;return[2]}}))}))};e.prototype.componentDidLoad=function(){return this.eventTrackingService.TrackDefaultSuperFundDetailViewedAsync({fundUsi:this.defaultFund.usi,fundName:this.defaultFund.productName,promotedFundsShown:Gt.promotedFunds})};e.prototype.render=function(){var e=this;var t=function(){return n("div",{class:"card p-4"},n("p",{class:"font-weight-bold"},"No Default Fund"),n("p",{class:"mb-4 small"},"It looks like your employer has not yet defined a default fund. Please contact them if you wish to choose your company's default fund."))};var r=function(e){return[n("div",{class:"card p-4"},n("p",{class:"font-weight-bold"},"Default Fund"),n("p",{class:"mb-4 small"},"Almost there... all you have to do now is review the fund below, complete and sign the super choice form and save. Your application to join the fund is subject to Trustee approval."),n("p",{class:"font-weight-bold mt-3"},"Default Fund Name"),n("p",null,e.defaultFundName)),n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:function(e){en.defaultFundForm=Object.assign(Object.assign({},en.defaultFundForm),e.detail)}})]};return n(o,{class:"d-flex flex-fill"},n("sss-custom-fund",{class:"flex-fill"},n("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t}},this.isDefaultFundExists?n(r,{defaultFundName:this.defaultFundProductName}):n(t,null)),n("div",{class:"mt-4"},n("sss-notifications-section",null)),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"mr-2"},n("fl-button",{onClick:function(){return Xt.navigateInternally(e.history,Jt.ChoicePage)},isBlockElement:true,variant:"secondary"},n("span",null,"Back")))),n("div",{class:"flex-grow-1 w-50"},this.isDefaultFundExists&&n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:true,disabled:this.isInvalidDefaultFund,promiseFn:function(){return e.handleSubmitForm()}},n("span",null,"Save and continue")))))))};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(this.isInvalidDefaultFund){return[2]}this.formState="validated";if(!this.formElement.checkValidity())return[3,2];return[4,pn.submitDefaultFundChoiceAsync(en.defaultFundForm)];case 1:e.sent();Gt.markSuperSelectionAsSubmitted();Xt.navigateInternally(this.history,Jt.Success);e.label=2;case 2:return[2]}}))}))};return e}());var vn="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.ss-footer-logo{max-width:7rem}";var gn=e("sss_footer_section",function(){function e(e){t(this,e)}e.prototype.render=function(){return n("div",{class:"container mb-sm-0"},n("div",{class:"row justify-content-center pt-3 mt-3 mb-3 border-top"},n("div",{class:"text-decoration-none"},n("p",{class:"mt-3 small text-center mb-1 text-muted"},"Powered by Flare"))),n("div",{class:"row justify-content-center pb-sm-0 px-3 px-sm-0 text-center"},n("p",{class:"text-muted small"},"This page contains factual information only and does not take into account your particular objectives, financial circumstances or needs. If you have questions or need help making a decision about your super fund, you should speak to a licensed financial advice provider. You should consider the relevant super fund's PDS and TMD (if applicable) in deciding whether to apply to join the super fund. Each of the advertised fund's PDS and TMD (if applicable) can be found in their advertisements above. If you are considering joining another fund you can find the PDS and TMD on the fund's website. Your employer and Flare do not endorse or accept responsibility for any financial product advice or services provided by the promoters or trustees of the advertised superannuation funds. Flare do not endorse or accept responsibility for any of their content shown about any of the advertised superannuation funds as they are merely passing on the content as provided without any changes. Flare do not express any opinion or make any recommendation about any of the advertised funds.")),n("div",{class:"row justify-content-end my-1 px-3 px-sm-0"},this.appVersionBadge()))};e.prototype.appVersionBadge=function(){return n("small",{style:{opacity:"0.5"},class:"text-muted"},"Powered by Flare, v",z)};return e}());gn.style=vn;var mn=e("sss_loading_page",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(o,{class:"d-flex flex-column justify-content-center align-items-center flex-grow-1"},n("h5",null,"Loading your superannuation step"),n("fl-loading-indicator",null))};return e}());var yn=e("sss_my_own_fund",function(){function e(e){t(this,e);this.isNotAllInformationProvidedMessageVisible=false;this.eventTrackingService=un.Instance}e.prototype.componentDidLoad=function(){return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({promotedFundsShown:Gt.promotedFunds})};e.prototype.render=function(){var e=this;return n(o,{class:"d-flex flex-fill"},n("sss-custom-fund",{class:"flex-fill"},n("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t}},n("div",{class:"card p-4"},n("p",{class:"font-weight-bold"},"Fund details"),n("p",{class:"text-warning mb-4 small"},"Make sure you are already a member of the fund before completing this step."),n("sss-my-own-fund-inputs",{myOwnFundForm:en.myOwnFundForm,onFormChanged:function(t){en.myOwnFundForm=Object.assign(Object.assign({},en.myOwnFundForm),t.detail);e.isNotAllInformationProvidedMessageVisible=false}})),n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:function(e){en.myOwnFundForm=Object.assign(Object.assign({},en.myOwnFundForm),{standardChoiceFormSignature:X(e.detail.standardChoiceFormSignature)})}})),n("div",{class:"mt-4"},n("sss-notifications-section",null)),this.isNotAllInformationProvidedMessageVisible&&n("div",{class:"mt-4 alert alert-danger",role:"alert"},"All fields are required to complete submission. Make sure you have selected a fund."),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"mr-2"},n("fl-button",{onClick:function(){return Xt.navigateInternally(e.history,Jt.ChoicePage)},isBlockElement:true,variant:"secondary"},n("span",null,"Back")))),n("div",{class:"flex-grow-1 w-50"},n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:true,promiseFn:function(){return e.handleSubmitForm()}},n("span",null,"Save and continue")))))))};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:this.formState="validated";if(!this.formElement.checkValidity()){return[2]}e=H(en.myOwnFundForm.fundUsi)&&H(en.myOwnFundForm.memberNumber)&&H(en.myOwnFundForm.standardChoiceFormSignature);if(!e){this.isNotAllInformationProvidedMessageVisible=true;return[2]}t={fundUsi:this.getOrError(en.myOwnFundForm.fundUsi),memberNumber:this.getOrError(en.myOwnFundForm.memberNumber),standardChoiceFormSignature:this.getOrError(en.myOwnFundForm.standardChoiceFormSignature)};return[4,pn.submitCustomFundChoiceAsync(t)];case 1:n.sent();Gt.markSuperSelectionAsSubmitted();Xt.navigateInternally(this.history,Jt.Success);return[2]}}))}))};e.prototype.getOrError=function(e){return pt.pipe(e,$((function(){throw new Error("Option value is none.")})))};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());ee(yn);var bn=e("sss_my_own_fund_inputs",function(){function e(e){var n=this;t(this,e);this.formChanged=r(this,"formChanged",7);this.MIN_SEARCH_STRING_LENGTH=3;this.MAX_RECORD_COUNT=10;this.searchFundsAsync=function(e){return __awaiter(n,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return[4,on.searchFundsAsync(e,this.MAX_RECORD_COUNT)];case 1:t=n.sent();return[2,t.sort((function(e,t){return e.productName.localeCompare(t.productName)})).map((function(e){return{label:e.productName+" ("+e.usi+")",value:e.usi}}))]}}))}))}}e.prototype.render=function(){var e=this;return n("div",null,n("div",{class:""},n("label",{class:"mb-2 font-weight-bold"},"Superannuation Fund Name"),n("fl-dropdown-async",{searchFunction:this.searchFundsAsync,minSearchStringLength:this.MIN_SEARCH_STRING_LENGTH,required:true,requiredValidationMessage:"Select a fund",placeholder:"Search by name or USI (type at least "+this.MIN_SEARCH_STRING_LENGTH+" characters)",value:this.selectedOption,onValueChanged:function(t){e.selectedOption=t.detail;e.updateFundUsi(t.detail.value.toString())}}),n("div",{class:"invalid-feedback"},"Select a fund"),H(this.myOwnFundForm.fundUsi)&&n("div",null,n("label",{class:"mb-2 mt-3 font-weight-bold"},"Superannuation Fund USI"),n("p",{class:"mb-0"},this.myOwnFundForm.fundUsi.value),n("p",{class:"small mt-1"},"Please ensure this is the correct fund USI as some funds have similar names"))),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Member Number"),n("input",{placeholder:"Enter your member number",type:"text",class:"form-control",required:true,pattern:"[A-Za-z0-9]{4,16}",name:"memberNumber",id:"memberNumber",value:J(en.myOwnFundForm.memberNumber),onChange:function(t){return e.updateMemberNumber(t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid member number (only numbers and / or letters)")))};e.prototype.updateFundUsi=function(e){this.formChanged.emit({fundUsi:K(e)})};e.prototype.updateMemberNumber=function(e){this.formChanged.emit({memberNumber:K(e)})};return e}());var wn=e("sss_notifications_section",function(){function e(e){t(this,e)}e.prototype.disconnectedCallback=function(){fn.clearNotifications()};e.prototype.render=function(){var e=fn.state.items;if(e.length<=0)return n(o,null);var t=e[0];var r="alert alert-"+t.type;return n("div",{class:r,role:"alert"},n("div",{class:"d-flex"},n("p",{class:"mb-0 flex-grow-1"},n("strong",null,e[0].details.title)),n("button",{onClick:this.handleClose,type:"button",class:"close pb-1","aria-label":"Close"},n("span",{"aria-hidden":"true"},"×"))),n("p",{class:"mb-0 mt-1"},e[0].details.description))};e.prototype.handleClose=function(){fn.closeCurrent()};return e}());var xn={fundId:"",memberNumber:"",usi:"",standardChoiceFormSignature:""};var Sn=lt(xn).state;var _n=function(){function e(){var e=this;this.hostIsLocalSuperSelection=function(){return window.location.origin=="http://localhost:7100"};this.environmentDiscriminator=function(){return e.hostIsLocalSuperSelection()?"autodev-partner":window.location.hostname.toLowerCase().split(".")[0]};this.promotedFundJoinAppUrl=function(){return"https://"+e.environmentDiscriminator()+".flarehr.com/promoted-fund-join/embed/v1.0/web"}}e.prototype.build=function(e,t){if(!(e===null||e===void 0?void 0:e.contentDocument))return;var n=Object.assign(Object.assign({},this.getMemberData()),{partnerId:Gt.partnerIdOrDefault,accountId:Gt.accountIdOrDefault,fundId:Sn.fundId,authToken:Gt.jwt});var r=function(n){var i=n.data;if(!i){return}if(i.sender==="promoted-fund-redirect"){window.removeEventListener("message",r);switch(i.type){case"cancel":Xt.navigateInternally(t,Jt.ChoicePage);break;case"success":if(i.memberNumber){Sn.memberNumber=i.memberNumber;Sn.usi=i.usi.replace(/ /g,"");Xt.navigateInternally(t,Jt.PromotedFundStandardChoice);break}default:Xt.navigateInternally(t,Jt.ChoicePage);break}return}if(i.sender==="promoted-fund-join"){switch(i.type){case"contentResized":e.height=i.height>0?i.height:e.height;e.width=i.width>0?i.width:e.width;break;case"pageNavigated":window.scroll(e.offsetLeft,e.offsetTop);nt.navigation(window.location.href);break}}};window.addEventListener("message",r);var i=e.contentDocument;i.open();var a=i.createElement("form");a.method="POST";a.target="_self";a.action=this.promotedFundJoinAppUrl();var o;for(o in n){var s=n[o];if(s!==undefined){var u=document.createElement("input");u.type="hidden";u.name=o;u.value=s;a.append(u)}}i.appendChild(a);i.close();a.submit()};e.prototype.getMemberData=function(){var e,t;var n=Gt.superBuyer;return{title:n.userProfile.title,firstName:n.userProfile.firstName,middleName:n.userProfile.middleName,lastName:n.userProfile.lastName,dateOfBirth:n.userProfile.dateOfBirth,gender:n.userProfile.gender,email:n.userProfile.email,mobilePhone:n.userProfile.mobilePhone,taxFileNumber:(e=n.tfn)!==null&&e!==void 0?e:"",addressLine1:n.userProfile.address.addressLine1,addressLine2:(t=n.userProfile.address.addressLine2)!==null&&t!==void 0?t:"",city:n.userProfile.address.city,state:n.userProfile.address.state,postCode:n.userProfile.address.postcode}};return e}();var In=new _n;var Cn=e("sss_promoted_fund_join_page",function(){function e(e){t(this,e)}e.prototype.componentDidLoad=function(){In.build(this.iframeElement,this.history)};e.prototype.render=function(){var e=this;return n(o,{class:"d-flex flex-fill"},n("iframe",{width:"100%",height:window.innerHeight,style:{border:"none"},ref:function(t){return e.iframeElement=t}}))};return e}());var kn=function(){function e(){}e.prototype.submitChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Vt().url("super-choice/promoted-fund").post(e).badRequest((function(){throw new Error("Failed to process Promoted Fund choice request")})).text()]}))}))};return e}();var Tn=new kn;var En=e("sss_promoted_fund_standard_choice_page",function(){function e(e){t(this,e)}e.prototype.render=function(){var e=this;return n(o,{class:"d-flex flex-fill"},n("div",{class:"container"},n("div",{class:"row justify-content-center"},n("div",{class:"col col-sm-10 col-md-7"},n("div",null,n("div",null,"You're almost done, simply sign the Standard Choice Form below to finalise your superannuation choice."),n("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t}},n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:function(e){Sn.standardChoiceFormSignature=e.detail.standardChoiceFormSignature}})),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:true,promiseFn:function(){return e.handleSubmitForm()}},n("span",null,"Save and continue"))))))))))};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.formState="validated";if(!this.formElement.checkValidity())return[3,2];return[4,Tn.submitChoiceAsync(Object.assign(Object.assign({},Sn),{shownFunds:Gt.promotedFunds}))];case 1:e.sent();Gt.markSuperSelectionAsSubmitted();Xt.navigateInternally(this.history,Jt.Success);e.label=2;case 2:return[2]}}))}))};return e}());var An="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.picked-block{background-color:var(--fl-color-primary);border-top-right-radius:3px;right:0;top:0}.picked-box-border{border:2px solid var(--fl-color-primary)}";var Nn=e("sss_selected_super_choice_section",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(o,{class:"bg-white rounded-sm picked-box-border p-3"},n("div",{class:"d-flex"},n("div",{class:"flex-grow-1 font-weight-bold"},this.fundType),n("div",{class:"px-3 py-2 text-white picked-block position-absolute"},"You picked")),n("div",null,this.fundName))};return e}());Nn.style=An;var Fn=e("sss_self_managed_fund",function(){function e(e){var n=this;t(this,e);this.showSmsfNotSupported=false;this.eventTrackingService=un.Instance;this.success=function(){Gt.markSuperSelectionAsSubmitted();Xt.navigateInternally(n.history,Jt.Success)}}e.prototype.componentDidLoad=function(){return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({promotedFundsShown:Gt.promotedFunds})};e.prototype.render=function(){var e=this;return n(o,{class:"d-flex flex-fill"},n("sss-custom-fund",{class:"flex-fill"},n("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t}},n("div",{class:"card p-4"},n("p",{class:"font-weight-bold"},"Fund details"),n("p",{class:"text-warning mb-4 small"},"Make sure you are already a member of the fund before completing this step."),n("sss-self-managed-fund-inputs",{fundForm:en.selfManagedFundForm,onFormChanged:function(e){en.selfManagedFundForm=Object.assign(Object.assign({},en.selfManagedFundForm),e.detail)}})),n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:function(e){en.selfManagedFundForm=Object.assign(Object.assign({},en.selfManagedFundForm),e.detail)}}),this.showSmsfNotSupported&&n("sss-smsf-not-supported-dialog",{ref:function(t){return e.notSupportedDialog=t},onContinue:this.success})),n("div",{class:"mt-4"},n("sss-notifications-section",null)),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"mr-2"},n("fl-button",{onClick:function(){return Xt.navigateInternally(e.history,Jt.ChoicePage)},isBlockElement:true,variant:"secondary"},n("span",null,"Back")))),n("div",{class:"flex-grow-1 w-50"},n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:true,promiseFn:function(){return e.handleSubmitForm()}},n("span",null,"Save and continue")))))))};e.prototype.componentDidRender=function(){var e;this.showSmsfNotSupported&&((e=this.notSupportedDialog)===null||e===void 0?void 0:e.scrollIntoView())};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:this.formState="validated";if(!this.formElement.checkValidity())return[3,2];e={smsfChoice:{abn:en.selfManagedFundForm.fundAbn,fundName:en.selfManagedFundForm.fundName,fundAddress:{addressLine1:en.selfManagedFundForm.addressLine1,addressLine2:en.selfManagedFundForm.addressLine2,city:en.selfManagedFundForm.city,state:en.selfManagedFundForm.state,postcode:en.selfManagedFundForm.postcode},bsb:en.selfManagedFundForm.bsb,bankAccountName:en.selfManagedFundForm.bankAccountName,bankAccountNumber:en.selfManagedFundForm.bankAccountNumber,electronicServiceAddress:en.selfManagedFundForm.fundEsa},standardChoiceFormSignature:en.selfManagedFundForm.standardChoiceFormSignature};return[4,pn.submitSelfManagedFundChoiceAsync(e)];case 1:t.sent();if(Gt.showSmsfNotSupported){this.showSmsfNotSupported=true}else{this.success()}t.label=2;case 2:return[2]}}))}))};return e}());ee(Fn);var Pn={"01":"Australia and New Zealand Banking Group","03":"Westpac Banking Corporation",73:"Westpac Banking Corporation","06":"Commonwealth Bank of Australia",76:"Commonwealth Bank of Australia","08":"National Australia Bank",78:"National Australia Bank","09":"Reserve Bank of Australia",10:"BankSA (division of Westpac Bank)",11:"St George Bank (division of Westpac Bank)",33:"St George Bank (division of Westpac Bank)",12:"Bank of Queensland",14:"Rabobank",15:"Town & Country Bank",18:"Macquarie Bank",19:"Bank of Melbourne (division of Westpac Bank)",55:"Bank of Melbourne (division of Westpac Bank)",21:"JP Morgan Chase Bank",22:"BNP Paribas",23:"Bank of America",24:"Citibank & Citibank NA",510:"Citibank & Citibank NA",25:"BNP Paribas Securities",26:"Bankers Trust Australia (division of Westpac Bank)",29:"MUFG Bank",30:"Bankwest (division of Commonwealth Bank)",31:"Bank Australia",325:"Beyond Bank",34:"HSBC Bank Australia",985:"HSBC Bank Australia",35:"Bank of China",980:"Bank of China",40:"Commonwealth Bank of Australia",41:"Deutsche Bank",42:"Commonwealth Bank of Australia",52:"Commonwealth Bank of Australia",45:"OCBC Bank",46:"Advance Bank (division of Westpac Bank)",47:"Challenge Bank (division of Westpac Bank)",48:"Suncorp-Metway",664:"Suncorp-Metway",512:"Community First Credit Union",514:"RACQ Bank",517:"Volt Bank",533:"Bananacoast Community Credit Union",57:"Australian Settlements",61:"Adelaide Bank (division of Bendigo and Adelaide Bank)",611:"Endeavour Mutual Bank",823:"Endeavour Mutual Bank",630:"Greater Bank",637:"Greater Bank",632:"B&E",633:"Bendigo Bank",634:"Uniting Financial Services",638:"Heritage Bank",880:"Heritage Bank",639:"Home Building Society (division of Bank of Queensland)",640:"Hume Bank",641:"IMB",647:"IMB",642:"Australian Military Bank",645:"Auswide Bank",656:"Auswide Bank",646:"Maitland Mutual Building Society",650:"Newcastle Permanent Building Society",653:"Pioneer Permanent Building Society (division of Bank of Queensland)",654:"Queensland Country Credit Union",655:"The Rock",659:"G&C Mutual Bank",676:"Gateway Bank",70:"Indue",721:"Holiday Coast Credit Union",722:"Southern Cross Credit Union",723:"Bank of Heritage Isle",724:"MOVE",728:"Summerland Credit Union",777:"Police & Nurse",80:"Cuscal",670:"Cuscal",812:"Teachers Mutual Bank",813:"Capricornian",814:"Credit Union Australia",815:"Police Bank",817:"Warwick Credit Union",818:"Bank of Communications",819:"Industrial & Commercial Bank of China",824:"Sutherland Credit Union",825:"Big Sky Building Society",833:"Defence Bank",882:"Unity Bank",888:"China Construction Bank",90:"Australia Post",911:"Sumitomo Mitsui Banking Corporation",913:"State Street Bank & Trust Company",917:"Arab Bank Australia",918:"Mizuho Bank",922:"United Overseas Bank",923:"ING Bank",936:"ING Bank",931:"Mega International Commercial Bank",932:"Regional Australia Bank",939:"AMP Bank",941:"Delphi Bank (division of Bendigo and Adelaide Bank)",942:"Bank of Sydney",943:"Taiwan Business Bank",944:"Members Equity Bank",946:"UBS AG",951:"BOQ Specialist",969:"Tyro Payments"};var On=e("sss_self_managed_fund_inputs",function(){function e(e){t(this,e);this.formChanged=r(this,"formChanged",7);this.currentBank=G;this.stateOptions=[{value:"NSW",label:"NSW"},{value:"QLD",label:"QLD"},{value:"ACT",label:"ACT"},{value:"VIC",label:"VIC"},{value:"TAS",label:"TAS"},{value:"WA",label:"WA"},{value:"SA",label:"SA"},{value:"NT",label:"NT"}];this.bsbRegex=new RegExp(/^[0-9]{3}[0-9]{3}$/);this.bankAccountNumberRegex=new RegExp(/^[0-9]{2,10}$/)}e.prototype.render=function(){var e=this;return n("div",null,n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Fund name *"),n("input",{placeholder:"Enter your fund name",type:"text",class:"form-control",required:true,minlength:"2",name:"fundName",id:"fundName",value:en.selfManagedFundForm.fundName,onChange:function(t){return e.updateFormField("fundName",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid fund name")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Fund ABN *"),n("input",{placeholder:"Enter your fund ABN",type:"text",class:"form-control",required:true,minlength:"2",name:"fundAbn",id:"fundAbn",value:en.selfManagedFundForm.fundAbn,onChange:function(t){return e.updateFormField("fundAbn",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid fund ABN")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Electronic service address alias (ESA) *"),n("input",{placeholder:"Enter your ESA",type:"text",class:"form-control",required:true,minlength:"2",name:"fundEsa",id:"fundEsa",value:en.selfManagedFundForm.fundEsa,onChange:function(t){return e.updateFormField("fundEsa",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid fund ESA")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Address line 1 *"),n("input",{placeholder:"Enter your address",type:"text",class:"form-control",required:true,minlength:"2",name:"addressLine1",id:"addressLine1",value:en.selfManagedFundForm.addressLine1,onChange:function(t){return e.updateFormField("addressLine1",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid address")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Address line 2 (optional)"),n("input",{placeholder:"Enter your address",type:"text",class:"form-control",name:"addressLine2",id:"addressLine2",value:en.selfManagedFundForm.addressLine2,onChange:function(t){return e.updateFormField("addressLine2",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid address")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"City/suburb *"),n("input",{placeholder:"Enter your city",type:"text",class:"form-control",name:"city",required:true,id:"city",value:en.selfManagedFundForm.city,onChange:function(t){return e.updateFormField("city",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid city/suburb *")),n("div",{class:"mt-3"},n("label",{class:"mb-2 font-weight-bold"},"State *"),n("select",{class:"form-control",name:"state",required:true,id:"state",onChange:function(t){e.updateFormField("state",t.target.value.trim())}},n("option",{disabled:true,selected:!this.fundForm.state,value:""},"Select a state"),this.stateOptions.map((function(t){return n("option",{value:t.value,selected:e.fundForm.state===t.value},t.label)}))),n("div",{class:"invalid-feedback"},"Select a state")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Post code *"),n("input",{placeholder:"Enter your post code",type:"text",required:true,class:"form-control",name:"postcode",minlength:"4",maxlength:"4",pattern:"[0-9]{4}",id:"postcode",value:en.selfManagedFundForm.postcode,onChange:function(t){return e.updateFormField("postcode",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid post code")),n("div",null,n("i",{class:"fas fa-check-circle"})),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"BSB *"),n("input",{placeholder:"Enter your BSB",type:"text",required:true,class:"form-control",name:"bsb",id:"bsb",minlength:"6",maxlength:"7",onKeyUp:function(t){return e.updateCurrentBank(t)},pattern:this.bsbRegex.source,value:en.selfManagedFundForm.bsb}),H(this.currentBank)&&n("p",{class:"mt-3"},n("strong",null,"Bank name"),n("br",null),n("span",{class:"ml-2"},this.currentBank.value)),n("div",{class:"invalid-feedback"},"Enter a valid BSB")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Bank account name *"),n("input",{placeholder:"Enter your bank account name",type:"text",required:true,class:"form-control",name:"bankAccountName",minlength:"2",id:"bankAccountName",value:en.selfManagedFundForm.bankAccountName,onChange:function(t){return e.updateFormField("bankAccountName",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid bank account name")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Bank account number *"),n("input",{placeholder:"Enter your bank account number",type:"text",required:true,class:"form-control",name:"bankAccountNumber",id:"bankAccountNumber",minlength:"2",maxlength:"11",pattern:this.bankAccountNumberRegex.source,value:en.selfManagedFundForm.bankAccountNumber,onKeyUp:function(t){return e.updateCurrentBankAccountNumber(t)},onChange:function(t){return e.updateFormField("bankAccountNumber",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid bank account number")))};e.prototype.updateFormField=function(e,t){var n;this.formChanged.emit((n={},n[e]=t,n))};e.prototype.filterDigits=function(e){return e.replace(/[^0-9]/g,"")};e.prototype.updateCurrentBank=function(e){var t=this.filterDigits(e.target.value);var n=t.substring(0,2);var r=t.substring(0,3);var i=Pn[n];var a=Pn[r];if(i)this.currentBank=K(i);if(a)this.currentBank=K(a);if(t==="")this.currentBank=G;this.updateFormField("bsb",t)};e.prototype.updateCurrentBankAccountNumber=function(e){var t=this.filterDigits(e.target.value);this.updateFormField("bankAccountNumber",t)};return e}());var Rn=undefined&&undefined.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)if(o=e[s])a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a;return i>3&&a&&Object.defineProperty(t,n,a),a};var Dn;(function(e){e[e["Unauthorized"]=0]="Unauthorized";e[e["Authenticated"]=1]="Authenticated";e[e["Error"]=2]="Error"})(Dn||(Dn={}));var Mn=function(){function e(){}return e}();function Ln(){return{authenticationState:Dn.Unauthorized,jwt:G,reactNativeInterop:G,iframeInterop:G,appConfiguration:G}}var Un=function(e){__extends(t,e);function t(){return e.call(this,Ln())||this}return t}(b);Un=Rn([y({name:"sss-session",resettable:true})],Un);var Bn=new Un;var jn=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;n.store=t;return n}t.prototype.isReactNativeInteropEnabled=function(){return H(this.getValue().reactNativeInterop)};t.prototype.isIframeInteropEnabled=function(){return H(this.getValue().iframeInterop)};t.prototype.getIframeInteropMode=function(){var e=this.getValue().iframeInterop;if(W(e)){throw Error("Failed to get iframe interop information: no data in store")}if(!this.isIframeInteropEnabled()){throw Error("Failed to get iframe interop information: iframe mode is disabled")}return e.value};return t}(w);var Vn=new jn(Bn);var qn={slateFundForm:{memberNumber:"",standardChoiceFormSignature:"",shownFunds:[]}};var zn=lt(qn).state;var Hn=function(){function e(){var e=this;this.hostIsLocalSuperSelection=function(){return window.location.origin=="http://localhost:7100"};this.hostIsDeployed=function(){return window.location.origin.endsWith("partner.flarehr.com")};this.skipConsolidation=function(){return Vn.isReactNativeInteropEnabled()?"true":"false"};this.skipInsurance=function(){return Vn.isReactNativeInteropEnabled()?"true":"false"};this.environmentDiscriminator=function(){var e=window.location.hostname.toLowerCase().split(".")[0];switch(e){case"autodev-partner":case"test-partner":case"partner":case"sandbox-partner":return e.replace("partner","");default:return"autodev-"}};this.slateJoinAppUrl=function(){return"https://"+e.environmentDiscriminator()+"join.slatesuper.com.au/confirm"}}e.prototype.build=function(e,t){if(!(e===null||e===void 0?void 0:e.contentDocument))return;var n=this.hostIsLocalSuperSelection()||this.hostIsDeployed()?window.location.origin+"/super-selection/embed/v1.0/app":"https://autodev-partner.flarehr.com/super-selection/embed/v1.0/app";var r=n+"/slate-redirect.html";var i=Object.assign(Object.assign({},this.getSlateJoinMemberData()),{successRedirectUrl:r,cancelRedirectUrl:r,skipConsolidation:this.skipConsolidation(),skipInsurance:this.skipInsurance()});if(this.includeJwt()){i.authToken=Gt.jwt}var a=function(n){var r=n.data,i=n.origin;if(!r){return}if(r.sender==="slate-redirect"){window.removeEventListener("message",a);switch(r.type){case"success":if(r.memberNumber){zn.slateFundForm.memberNumber=r.memberNumber;Xt.navigateInternally(t,Jt.SlateStandardChoice);break}default:Xt.navigateInternally(t,Jt.ChoicePage);break}return}if(r.sender==="flare"&&i.endsWith("join.slatesuper.com.au")){switch(r.type){case"contentResized":e.height=r.height>0?r.height:e.height;e.width=r.width>0?r.width:e.width;break}}};window.addEventListener("message",a);var o=e.contentDocument;o.open();var s=o.createElement("form");s.method="POST";s.target="_self";s.action=this.slateJoinAppUrl();var u;for(u in i){var c=i[u];if(c!==undefined){var l=document.createElement("input");l.type="hidden";l.name=u;l.value=c;s.append(l)}}o.appendChild(s);o.close();s.submit()};e.prototype.getSlateJoinMemberData=function(){var e,t;var n=Gt.superBuyer;var r=function(e){switch(e){case"Male":return"Male";case"Female":return"Female";case"Intersex":return"Intersex/Indeterminate";default:return"Unknown"}};return{firstName:n.userProfile.firstName,middleName:n.userProfile.middleName,lastName:n.userProfile.lastName,dateOfBirth:n.userProfile.dateOfBirth,gender:r(n.userProfile.gender),email:n.userProfile.email,mobilePhone:n.userProfile.mobilePhone,taxFileNumber:(e=n.tfn)!==null&&e!==void 0?e:"",addressLine1:n.userProfile.address.addressLine1,addressLine2:(t=n.userProfile.address.addressLine2)!==null&&t!==void 0?t:"",city:n.userProfile.address.city,state:n.userProfile.address.state,postCode:n.userProfile.address.postcode}};e.prototype.includeJwt=function(){return!this.slateJoinAppUrl().match(/autodev|sandbox/)};return e}();var Wn=new Hn;var Gn=e("sss_slate_join_page",function(){function e(e){t(this,e)}e.prototype.componentDidLoad=function(){Wn.build(this.iframeElement,this.history)};e.prototype.render=function(){var e=this;return n(o,{class:"d-flex flex-fill"},n("iframe",{width:"100%",height:window.innerHeight,style:{border:"none"},ref:function(t){return e.iframeElement=t}}))};return e}());var Kn=function(){function e(){}e.prototype.submitSlateChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Vt().url("super-choice/slate").post(e).badRequest((function(){throw new Error("Failed to process Slate join request")})).text()]}))}))};return e}();var Xn=new Kn;var Jn=e("sss_slate_standard_choice_page",function(){function e(e){t(this,e)}e.prototype.render=function(){var e=this;return n(o,{class:"d-flex flex-fill"},n("div",{class:"container"},n("div",{class:"row justify-content-center"},n("div",{class:"col col-sm-10 col-md-7"},n("sss-slatesuper-header",null),n("div",null,n("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t}},n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:function(e){zn.slateFundForm=Object.assign(Object.assign({},zn.slateFundForm),e.detail)}})),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"mr-2"},n("stencil-route-link",{url:"/"},n("fl-button",{isBlockElement:true,variant:"secondary"},n("span",null,"Back"))))),n("div",{class:"flex-grow-1 w-50"},n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:true,promiseFn:function(){return e.handleSubmitForm()}},n("span",null,"Save and continue"))))))))))};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.formState="validated";if(!this.formElement.checkValidity())return[3,2];return[4,Xn.submitSlateChoiceAsync(Object.assign(Object.assign({},zn.slateFundForm),{shownFunds:Gt.promotedFunds}))];case 1:e.sent();Gt.markSuperSelectionAsSubmitted();Xt.navigateInternally(this.history,Jt.Success);e.label=2;case 2:return[2]}}))}))};return e}());var Yn="";var $n=e("sss_slatesuper_header",function(){function e(e){t(this,e)}e.prototype.render=function(){return n("div",{class:"d-flex"},n("div",null,n("img",{class:"ss-choice-logo img-thumbnail",alt:"Simple Financial Choices Pty Ltd",src:s("assets/logo-slate.png")})),n("div",{class:"d-flex flex-column ml-3 align-items-left"},n("p",{class:"confirm-title font-weight-bold mb-0"},"You’re almost there!"),n("p",{class:"confirm-text mb-0"},"To proceed type your name below which authorises the signing of the Standard Choice form confirming your super selection.")))};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());$n.style=Yn;var Qn="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.overlay{position:absolute;top:0;left:0;z-index:100;background-color:#fff;opacity:0.7;width:100%;height:100%}.dialog{z-index:101;position:relative}";var Zn=e("sss_smsf_not_supported_dialog",function(){function e(e){var n=this;t(this,e);this.continue=r(this,"continue",7);this.standardChoiceFormUrl="/super-selection/embed/v1.0/app/assets/Superannuation_Standard_Choice_Form.pdf";this.handleContinue=function(){n.continue.emit()}}e.prototype.render=function(){return n(o,null,n("div",{class:"overlay"}),n("div",{class:"dialog"},n("div",{class:"card p-4 mt-4 bg-light text-center"},n("div",{style:{"text-align":"center"}},n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"orange",viewBox:"0 0 16 16"},n("path",{d:"M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"}))),n("p",{class:"small mt-4 mb-0"},"You’ve selected a self-managed super fund (SMSF). Currently, SMSF information can’t be sent via this form. You’ll need to provide your employer with a"," ",n("a",{target:"_blank",href:this.standardChoiceFormUrl},"standard choice form")," ","for your SMSF details."),n("div",{class:"d-flex mt-4"},n("div",{class:"w-25"}),n("div",{class:"w-50"},n("fl-button",{onClick:this.handleContinue,isBlockElement:true,variant:"primary"},n("span",null,"Continue")))))))};return e}());Zn.style=Qn;var er=e("sss_standard_choice_form",function(){function e(e){t(this,e);this.standardChoiceFormSignatureUpdated=r(this,"standardChoiceFormSignatureUpdated",7);this.standardChoiceFormUrl="/super-selection/embed/v1.0/app/assets/Superannuation_Standard_Choice_Form.pdf";this.standardChoiceFormSignature=""}e.prototype.render=function(){var e=this;return n("div",{class:"card p-4 mt-4 bg-light"},n("h4",{class:"small font-weight-bold"},"Superannuation Standard Choice Form"),n("p",{class:"small mt-2"},"The superannuation"," ",n("a",{target:"_blank",href:this.standardChoiceFormUrl},"standard choice form")," ","informs your employer of your choice of fund."),n("h4",{class:"small font-weight-bold"},"Type your full name below (required)"),n("input",{placeholder:"Type your full name",type:"text",autocomplete:"off",class:"form-control",required:true,minlength:"2",name:"standardChoiceFormSignature",id:"standardChoiceFormSignature",value:this.standardChoiceFormSignature,onChange:function(t){return e.updateFormField(t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Type your full name"),n("p",{class:"small mt-3 mb-0"},"Your authorisation is required for signing this form. Applying your full name in the text field above is the same as applying your written signature and is legally binding."))};e.prototype.updateFormField=function(e){this.standardChoiceFormSignatureUpdated.emit({standardChoiceFormSignature:e})};return e}());var tr=e("sss_success",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(o,{class:"d-flex flex-fill"},n("div",{class:"container mt-5"},n("div",{class:"row justify-content-center"},n("div",{class:"col col-sm-9 col-md-6"},n("div",{class:"bg-light rounded p-4"},n("div",{class:"d-flex justify-content-center"},n("div",null,n("svg",{width:"3em",height:"3em",viewBox:"0 0 16 16",class:"bi bi-check-circle-fill text-success",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},n("path",{"fill-rule":"evenodd",d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"})))),n("div",{class:"d-flex justify-content-center"},n("p",{class:"mt-3 confirm-title text-center font-weight-bold px-5"},"Successfully updated superannuation details")),n("div",{class:"mt-2 text-center"},n("p",{class:"confirm-text mb-0"},"Your superannuation details have been updated successfully."),n("br",null),n("p",{class:"confirm-text mb-0"},"To continue with your onboarding, press ",n("strong",null,"Continue")," below."))),n("div",{class:"flex-grow-1 mt-4"},n("fl-promise-button",{isBlockElement:true,onClick:this.handleContinueButtonClick},n("span",null,"Continue")))))))};e.prototype.handleContinueButtonClick=function(e){Gt.completeSuperSelectionFlow()};return e}());var nr="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.simple-choices-text{color:#489882}.choice-card{background:#ffffff;-webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);border-radius:3px}.choice-card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.ss-choice-logo{width:auto;max-height:70px;-o-object-fit:contain;object-fit:contain}img{width:100%;display:block}.choice-component{width:100%;position:relative}.flexible{-ms-flex-positive:1;flex-grow:1}.fund-item{margin-top:1rem}.promoted-picked-block{background-color:var(--fl-color-primary);border-bottom-right-radius:3px;left:0;top:0}@media (min-width: 992px){.bottom-half-fund-tile{height:250px}}";var rr=e("sss_super_choice_item",function(){function e(e){t(this,e);this.joinFundClicked=r(this,"joinFundClicked",7);this.eventTrackingService=un.Instance}e.prototype.render=function(){var e=this;return n(o,{class:{"d-flex p-3 fund-item":true,"ss-picked-fund":this.isSelected}},n("div",{class:"card-body py-0 px-0 px-xl-3"},this.isSelected&&n("div",{class:"px-3 py-2 text-white promoted-picked-block position-absolute"},"You picked"),n("div",{class:"d-flex flex-fill flex-column align-items-center"},n("div",{class:"d-flex justify-content-end w-100"},n("div",{class:"text-muted small border rounded-sm px-1 mt-n2 mr-n2 mb-1"},"Advertised")),n("img",{class:"ss-choice-logo",alt:this.name,src:s("assets/"+this.logo)}),n("p",{class:"font-weight-bold text-center mt-3 mb-0"},this.name),this.subText&&n("span",{class:"text-muted small text-center font-italic"},this.subText),n("div",{class:"mt-3"},JSON.parse(this.features).map((function(e){return n("p",{class:"text-center"},e.value)}))),this.featureSubText&&n("p",{class:"small text-muted text-center font-italic"},this.featureSubText))),n("div",{class:"text-center bottom-half-fund-tile"},n("div",{class:"p-3"},n("fl-button",{class:"uuid-button-continue",isBlockElement:true,onClick:function(){return e.handleFundClick()}},"Choose this fund")),n("div",{class:"mb-2"},n("a",{target:"_blank",href:this.pdsLink,onClick:function(){return e.pdsViewedAsync()}},this.pdsLinkText?this.pdsLinkText:"View the PDS")),this.disclaimer,n("div",{class:"small text-muted"},this.abnInfo,n("br",null),"ABN: ",this.abn)))};e.prototype.handleFundClick=function(){return this.joinFundClicked.emit()};e.prototype.pdsViewedAsync=function(){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:this.usi,fundName:this.name,pageName:"Panel Fund Page"})};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());rr.style=nr;var ir={Id:"slate",Name:"Slate Super",PdsUrl:"https://slate.co/pds/?utm_source=flare&utm_medium=superselection",Usi:"32367272075001",DiversaAbn:"49 006 421 638"};var ar={Id:"australian-retirement-trust",Name:"Australian Retirement Trust",PdsUrl:"https://www.australianretirementtrust.com.au/library/media/pdfs/pds/super-savings-product-disclosure-statement-and-membership-form.pdf",Abn:"60 905 115 063"};var or={Id:"aware",Name:"Aware Super",PdsUrlText:"View the PDS and TMD",PdsUrl:"https://aware.com.au/member/forms-and-resources/pds/FSS",Abn:"53 226 460 365"};var sr={Id:"active",Name:"Active Super",PdsUrlText:"View the PDS",PdsUrl:"https://www.activesuper.com.au/pds",Abn:"28 901 371 321"};var ur=[{dtoPropName:"slate",id:ir.Id},{dtoPropName:"australianRetirementTrust",id:ar.Id},{dtoPropName:"aware",id:or.Id},{dtoPropName:"active",id:sr.Id}];var cr=function(){function e(){}e.prototype.GetChosenFundAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,r,i,a,r,o,s;return __generator(this,(function(u){switch(u.label){case 0:n=(e=Gt.superBuyer.superChoice)===null||e===void 0?void 0:e.choiceDetails;if(!n)return[2,G];if(!("promoted"in n))return[3,1];r=ur.find((function(e){return e.dtoPropName in n.promoted}));i=(t=r===null||r===void 0?void 0:r.id)!==null&&t!==void 0?t:"";return[2,K({isPromoted:true,promotedId:i})];case 1:if(!("smsf"in n))return[3,2];return[2,K({isPromoted:false,name:n.smsf.fundName,type:"Self Managed Fund"})];case 2:if(!("myOwnFund"in n))return[3,4];a=n.myOwnFund.usi;return[4,this.getFundByUsiAsync(a)];case 3:r=u.sent();return[2,K({isPromoted:false,name:H(r)?r.value.productName:a,type:"My Own Fund"})];case 4:if(!("default"in n))return[3,6];o=n.default.usi;return[4,this.getFundByUsiAsync(o)];case 5:s=u.sent();return[2,K({isPromoted:false,name:H(s)?s.value.productName:o,type:"Default Fund"})];case 6:return[2,G]}}))}))};e.prototype.getFundByUsiAsync=function(e){return on.getFundByUsiAsync(e)};return e}();var lr=new cr;var fr="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.simple-choices-text{color:#489882}.choice-card{background:#ffffff;-webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);border-radius:3px}.choice-card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.ss-choice-logo{width:auto;max-height:70px;-o-object-fit:contain;object-fit:contain}img{width:100%;display:block}.choice-component{width:100%;position:relative}.flexible{-ms-flex-positive:1;flex-grow:1}.fund-item{margin-top:1rem}.promoted-picked-block{background-color:var(--fl-color-primary);border-bottom-right-radius:3px;left:0;top:0}@media (min-width: 992px){.bottom-half-fund-tile{height:250px}}";var dr=e("sss_super_choice_page",function(){function e(e){var n=this;t(this,e);this.promotedFunds=this.getPromotedFunds();this.chosenFund=G;this.eventTrackingService=un.Instance;this.isPromotedFundSelected=function(e){return H(n.chosenFund)&&n.chosenFund.value.isPromoted&&n.chosenFund.value.promotedId===e}}e.prototype.componentDidLoad=function(){nt.appReady();var e=this.promotedFunds.map((function(e){return e.fundId}));this.eventTrackingService.TrackSuperFundPanelViewedAsync({promotedFundsShown:e})};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this;return[4,lr.GetChosenFundAsync()];case 1:e.chosenFund=t.sent();return[2]}}))}))};e.prototype.render=function(){var e=this;var t="The choice of superannuation fund is an important personal financial decision. It is open to you to continue with your existing fund, or alternatively, you can select from one of the funds below or choose another fund. Flare is not licensed to advise you in relation to this decision and you may wish to return to this page at a later stage.";var r="The content on this page and on the following pages relating to each super fund is provided by the trustee or promoter of the super fund. The super funds presented have not been selected by your employer and neither your employer or Flare are making any recommendation or opinion.";var i="There are many super funds out there and you should consider the relevant product disclosure statement and choose one that is right for you. If you are unsure, obtain your own advice. You can choose your super fund later, if you need time to obtain advice.";var a="You should be aware that, if you do choose one of these advertised funds, Flare and its associated entities will normally receive a fee for you doing so.";var s="https://my.gov.au";var u="my.gov.au";var c="https://www.apra.gov.au/register-of-superannuation-institutions";var l="www.apra.gov.au/register-of-superannuation-institutions";return n(o,null,n("div",{class:"container mt-0 mb-0"},n("div",{class:"row justify-content-center"},n("div",{class:"col"},n("h3",{class:"mt-3 font-weight-bold text-center mb-4"},"Choose your Super"))),n("div",{class:"row justify-content-center"},n("div",{class:"col"},n("p",{class:"text-center font-weight-bold"},t),n("p",{class:"text-center"},r),n("p",{class:"text-center"},i))),n("div",{class:"row"},n("div",{class:"col"},n("sss-notifications-section",null))),n("div",{class:"row justify-content-center mt-4"},n("div",{class:"col col-sm-10 col-md-8 col-xl-7"},n("div",{class:"row"},n("div",{class:"col"},n("div",{class:"d-flex flex-fill"},H(this.chosenFund)&&!this.chosenFund.value.isPromoted&&n("sss-selected-super-choice-section",{fundType:this.chosenFund.value.type,fundName:this.chosenFund.value.name,class:"flex-fill position-relative"})))),n("div",{class:"row mt-3 justify-content-center"},this.getPromotedFunds().map((function(t){return n("div",{class:"col-12 col-lg-6 d-flex"},n("sss-super-choice-item",{class:"card mb-3 mb-lg-0 mx-0 flex-grow-1",logo:t.logo,isSelected:e.isPromotedFundSelected(t.fundId),usi:t.usi,name:t.name,subText:t.subText,pdsLinkText:t.pdsLinkText,pdsLink:Xt.toExternalUrl(t.pdsLink),features:JSON.stringify(t.features),featureSubText:t.featureSubText,disclaimer:t.disclaimer,abnInfo:t.abnInfo,abn:t.abn,onJoinFundClicked:function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.handleJoinSuperClickAsync(t)]}))}))}}))}))),n("div",{class:"row mt-3 px-3"},n("div",{class:"col p-4 border rounded bg-light"},n("div",{class:"row"},n("div",{class:"col"},n("h5",{class:"font-weight-bold"},"Choose another super fund"),n("p",{class:"mb-1"},"Select this option if you'd like to use your current account with another super fund."),n("ul",{class:"ml-n3"},n("li",null,"If you are unsure of your current super fund details, you can find out at"," ",n("a",{target:"_blank",href:Xt.toExternalUrl(s)},u)),n("li",{class:"mt-1"},"A full list of super funds can be viewed at"," ",n("a",{target:"_blank",href:Xt.toExternalUrl(c)},l))))),n("div",{class:"row"},n("div",{class:"col"},n("stencil-route-link",{url:Jt.MyOwnFund},n("fl-button",{isBlockElement:true,variant:"primary",class:"d-lg-none"},"Choose another fund"),n("div",{class:"mt-n3 d-none d-lg-flex justify-content-end align-items-end"},n("fl-button",{variant:"primary"},"Choose another fund"))))))))),n("div",{class:"row justify-content-center mt-5"},n("div",{class:"col"},n("p",{class:"text-center"},a)))))};e.prototype.allFunds=function(){var e=this;return[{fundId:ir.Id,usi:ir.Usi,name:ir.Name,logo:"logo-slate.png",route:Jt.SlateJoin,pdsLink:ir.PdsUrl,features:[{order:1,value:"A lifestage investment strategy that evolves with you"},{order:2,value:"Advanced mobile app with retirement forecast and smart features"},{order:3,value:"Member advocates at Slate to assist with your account"}],disclaimer:n("p",{class:"small text-muted"},"You should consider the"," ",n("a",{target:"_blank",href:Xt.toExternalUrl(ir.PdsUrl),onClick:function(){return e.pdsViewedAsync(ir.Name,ir.Usi)}},"Product Disclosure Statement")," ","and"," ",n("a",{target:"_blank",href:Xt.toExternalUrl("https://slate.co/forms-and-documents/target-market-determination/")},"Target Market Determination")," ","before deciding to invest in or apply to become a member of the fund."),abnInfo:"Diversa Trustees Limited",abn:ir.DiversaAbn},{fundId:ar.Id,name:ar.Name,subText:"QSuper is now part of Australian Retirement Trust. If you have an existing QSuper account, you will continue to hold that account by selecting this option.",logo:"logo-art.svg",route:Jt.PromotedFundJoin,pdsLink:ar.PdsUrl,features:[{order:1,value:"$200 billion in retirement savings"},{order:2,value:"2+ million members"},{order:3,value:"A focus on delivering strong, long‑term returns"}],disclaimer:n("p",{class:"small text-muted"},"You should consider the"," ",n("a",{target:"_blank",href:Xt.toExternalUrl(ar.PdsUrl),onClick:function(){return e.pdsViewedAsync(ar.Name)}},"Product Disclosure Statement")," ","before deciding to invest in or apply to become a member of this fund."),abnInfo:"Australian Retirement Trust",abn:ar.Abn},{fundId:or.Id,name:or.Name,subText:"An industry fund for all",logo:"logo-aware.svg",route:Jt.PromotedFundJoin,pdsLinkText:or.PdsUrlText,pdsLink:or.PdsUrl,features:[{order:1,value:"Acting on climate change"},{order:2,value:"All profits go to members"},{order:3,value:"One of Australia’s largest funds"}],disclaimer:n("p",{class:"small text-muted"},"You should consider the"," ",n("a",{target:"_blank",href:Xt.toExternalUrl(or.PdsUrl),onClick:function(){return e.pdsViewedAsync(or.Name)}},"Product Disclosure Statement")," ","before deciding to invest in or apply to become a member of this fund."),abnInfo:"Aware Super Pty Ltd",abn:or.Abn},{fundId:sr.Id,name:sr.Name,logo:"logo-active.svg",route:Jt.PromotedFundJoin,pdsLinkText:sr.PdsUrlText,pdsLink:sr.PdsUrl,features:[{order:1,value:"Delivered our best annual returns on record in 2020/2021*"},{order:2,value:"Recognised as a leader in responsible investing"},{order:3,value:"Calls answered in less than 20 seconds"}],featureSubText:"* Past performance is not a reliable indicator of future performance.",disclaimer:n("p",{class:"small text-muted"},"Active Super Accumulation Scheme is issued by LGSS Pty Limited, as trustee for Local Government Super ('Active Super'). Consider the PDS and TMD at"," ",n("a",{target:"_blank",onClick:function(){return e.pdsViewedAsync(sr.Name)},href:Xt.toExternalUrl(sr.PdsUrl)},"activesuper.com.au")," ","before making a decision."),abnInfo:"Local Government Super (Active Super)",abn:sr.Abn}]};e.prototype.getPromotedFunds=function(){var e=this;var t=[];Gt.promotedFunds.forEach((function(n){var r=e.allFunds().find((function(e){return n==e.fundId}));if(r!==undefined){t.push(r)}}));return t};e.prototype.handleJoinSuperClickAsync=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:t=Gt.promotedFunds;if(!(e.fundId===ir.Id))return[3,2];return[4,this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundUsi:ir.Usi,fundName:ir.Name,promotedFundId:ir.Id,promotedFundsShown:t})];case 1:n.sent();return[3,8];case 2:if(!(e.fundId===ar.Id))return[3,4];return[4,this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundName:ar.Name,promotedFundId:ar.Id,promotedFundsShown:t})];case 3:n.sent();Sn.fundId=e.fundId;return[3,8];case 4:if(!(e.fundId===or.Id))return[3,6];return[4,this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundName:or.Name,promotedFundId:or.Id,promotedFundsShown:t})];case 5:n.sent();Sn.fundId=e.fundId;return[3,8];case 6:if(!(e.fundId===sr.Id))return[3,8];return[4,this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundName:sr.Name,promotedFundId:sr.Id,promotedFundsShown:t})];case 7:n.sent();Sn.fundId=e.fundId;n.label=8;case 8:return[2,Xt.navigateInternally(this.history,e.route)]}}))}))};e.prototype.pdsViewedAsync=function(e,t){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:t,fundName:e,pageName:"Panel Fund Page"})};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());dr.style=fr;var pr="stencil-route.inactive{display:none}";var hr=e("stencil_route",function(){function e(e){t(this,e);this.group=null;this.match=null;this.componentProps={};this.exact=false;this.scrollOnNextRender=false;this.previousMatch=null}e.prototype.computeMatch=function(e){var t=this.group!=null||this.el.parentElement!=null&&this.el.parentElement.tagName.toLowerCase()==="stencil-route-switch";if(!e||t){return}this.previousMatch=this.match;return this.match=Pe(e.pathname,{path:this.url,exact:this.exact,strict:true})};e.prototype.loadCompleted=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){e={};if(this.history&&this.history.location.hash){e={scrollToId:this.history.location.hash.substr(1)}}else if(this.scrollTopOffset){e={scrollTopOffset:this.scrollTopOffset}}if(typeof this.componentUpdated==="function"){this.componentUpdated(e)}else if(this.match&&!Oe(this.match,this.previousMatch)&&this.routeViewsUpdated){this.routeViewsUpdated(e)}return[2]}))}))};e.prototype.componentDidUpdate=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.loadCompleted()];case 1:e.sent();return[2]}}))}))};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.loadCompleted()];case 1:e.sent();return[2]}}))}))};e.prototype.render=function(){if(!this.match||!this.history){return null}var e=Object.assign({},this.componentProps,{history:this.history,match:this.match});if(this.routeRender){return this.routeRender(Object.assign({},e,{component:this.component}))}if(this.component){var t=this.component;return n(t,Object.assign({},e))}};Object.defineProperty(e.prototype,"el",{get:function(){return u(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{location:["computeMatch"]}},enumerable:false,configurable:true});return e}());k.injectProps(hr,["location","history","historyType","routeViewsUpdated"]);hr.style=pr;var vr=function(e,t,n){return n(e.confirm(t))};var gr=function(e){return e.metaKey||e.altKey||e.ctrlKey||e.shiftKey};var mr=function(e){var t=e.navigator.userAgent;if((t.indexOf("Android 2.")!==-1||t.indexOf("Android 4.0")!==-1)&&t.indexOf("Mobile Safari")!==-1&&t.indexOf("Chrome")===-1&&t.indexOf("Windows Phone")===-1){return false}return e.history&&"pushState"in e.history};var yr=function(e){return e.userAgent.indexOf("Trident")===-1};var br=function(e){return e.userAgent.indexOf("Firefox")===-1};var wr=function(e,t){return t.state===undefined&&e.userAgent.indexOf("CriOS")===-1};var xr=function(e,t){var n=e[t];var r="__storage_test__";try{n.setItem(r,r);n.removeItem(r);return true}catch(e){return e instanceof DOMException&&(e.code===22||e.code===1014||e.name==="QuotaExceededError"||e.name==="NS_ERROR_DOM_QUOTA_REACHED")&&n.length!==0}};var Sr=function(e,t){if(e.charAt(0)=="/"&&t.charAt(t.length-1)=="/"){return t.slice(0,t.length-1)+e}return t+e};var _r=e("stencil_route_link",function(){function e(e){t(this,e);this.unsubscribe=function(){return};this.activeClass="link-active";this.exact=false;this.strict=true;this.custom="a";this.match=null}e.prototype.componentWillLoad=function(){this.computeMatch()};e.prototype.computeMatch=function(){if(this.location){this.match=Pe(this.location.pathname,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict})}};e.prototype.handleClick=function(e){if(gr(e)||!this.history||!this.url||!this.root){return}e.preventDefault();return this.history.push(Sr(this.url,this.root))};e.prototype.render=function(){var e;var t={class:(e={},e[this.activeClass]=this.match!==null,e),onClick:this.handleClick.bind(this)};if(this.anchorClass){t.class[this.anchorClass]=true}if(this.custom==="a"){t=Object.assign({},t,{href:this.url,title:this.anchorTitle,role:this.anchorRole,tabindex:this.anchorTabIndex,"aria-haspopup":this.ariaHaspopup,id:this.anchorId,"aria-posinset":this.ariaPosinset,"aria-setsize":this.ariaSetsize,"aria-label":this.ariaLabel})}return n(this.custom,Object.assign({},t),n("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return u(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{location:["computeMatch"]}},enumerable:false,configurable:true});return e}());k.injectProps(_r,["history","location","root"]);var Ir=function(){return((Math.random()*1e17).toString().match(/.{4}/g)||[]).join("-")};var Cr=function(e,t,n){return Pe(e,{path:t,exact:n,strict:true})};var kr=function(e){return e.tagName==="STENCIL-ROUTE"};var Tr=e("stencil_route_switch",function(){function e(e){t(this,e);this.group=Ir();this.subscribers=[];this.queue=c(this,"queue")}e.prototype.componentWillLoad=function(){if(this.location!=null){this.regenerateSubscribers(this.location)}};e.prototype.regenerateSubscribers=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n;var r=this;return __generator(this,(function(i){if(e==null){return[2]}t=-1;this.subscribers=Array.prototype.slice.call(this.el.children).filter(kr).map((function(n,r){var i=Cr(e.pathname,n.url,n.exact);if(i&&t===-1){t=r}return{el:n,match:i}}));if(t===-1){return[2]}if(this.activeIndex===t){this.subscribers[t].el.match=this.subscribers[t].match;return[2]}this.activeIndex=t;n=this.subscribers[this.activeIndex];if(this.scrollTopOffset){n.el.scrollTopOffset=this.scrollTopOffset}n.el.group=this.group;n.el.match=n.match;n.el.componentUpdated=function(e){r.queue.write((function(){r.subscribers.forEach((function(e,t){e.el.componentUpdated=undefined;if(t===r.activeIndex){return e.el.style.display=""}if(r.scrollTopOffset){e.el.scrollTopOffset=r.scrollTopOffset}e.el.group=r.group;e.el.match=null;e.el.style.display="none"}))}));if(r.routeViewsUpdated){r.routeViewsUpdated(Object.assign({scrollTopOffset:r.scrollTopOffset},e))}};return[2]}))}))};e.prototype.render=function(){return n("slot",null)};Object.defineProperty(e.prototype,"el",{get:function(){return u(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{location:["regenerateSubscribers"]}},enumerable:false,configurable:true});return e}());k.injectProps(Tr,["location","routeViewsUpdated"]);var Er=function(e){var t=[];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}if(!e){console.warn.apply(console,t)}};var Ar=function(){var e;var t=[];var n=function(t){Er(e==null,"A history supports only one prompt at a time");e=t;return function(){if(e===t){e=null}}};var r=function(t,n,r,i){if(e!=null){var a=typeof e==="function"?e(t,n):e;if(typeof a==="string"){if(typeof r==="function"){r(a,i)}else{Er(false,"A history needs a getUserConfirmation function in order to use a prompt message");i(true)}}else{i(a!==false)}}else{i(true)}};var i=function(e){var n=true;var r=function(){var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}if(n){e.apply(void 0,t)}};t.push(r);return function(){n=false;t=t.filter((function(e){return e!==r}))}};var a=function(){var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}t.forEach((function(t){return t.apply(void 0,e)}))};return{setPrompt:n,confirmTransitionTo:r,appendListener:i,notifyListeners:a}};var Nr=function(e,t){if(t===void 0){t="scrollPositions"}var n=new Map;var r=function(t,r){n.set(t,r);if(xr(e,"sessionStorage")){var i=[];n.forEach((function(e,t){i.push([t,e])}));e.sessionStorage.setItem("scrollPositions",JSON.stringify(i))}};var i=function(e){return n.get(e)};var a=function(e){return n.has(e)};var o=function(t){r(t,[e.scrollX,e.scrollY])};if(xr(e,"sessionStorage")){var s=e.sessionStorage.getItem(t);n=s?new Map(JSON.parse(s)):n}if("scrollRestoration"in e.history){history.scrollRestoration="manual"}return{set:r,get:i,has:a,capture:o}};var Fr="popstate";var Pr="hashchange";var Or=function(e,t){if(t===void 0){t={}}var n=false;var r=e.history;var i=e.location;var a=e.navigator;var o=mr(e);var s=!yr(a);var u=Nr(e);var c=t.forceRefresh!=null?t.forceRefresh:false;var l=t.getUserConfirmation!=null?t.getUserConfirmation:vr;var f=t.keyLength!=null?t.keyLength:6;var d=t.basename?ve(ge(t.basename)):"";var p=function(){try{return e.history.state||{}}catch(e){return{}}};var h=function(e){e=e||{};var t=e.key,n=e.state;var r=i.pathname,a=i.search,o=i.hash;var s=r+a+o;Er(!d||pe(s,d),"You are attempting to use a basename on a page whose URL path does not begin "+'with the basename. Expected path "'+s+'" to begin with "'+d+'".');if(d){s=he(s,d)}return Te(s,n,t||Se(f))};var v=Ar();var g=function(e){u.capture(R.location.key);Object.assign(R,e);R.location.scrollPosition=u.get(R.location.key);R.length=r.length;v.notifyListeners(R.location,R.action)};var m=function(e){if(!wr(a,e)){b(h(e.state))}};var y=function(){b(h(p()))};var b=function(e){if(n){n=false;g()}else{var t="POP";v.confirmTransitionTo(e,t,l,(function(n){if(n){g({action:t,location:e})}else{w(e)}}))}};var w=function(e){var t=R.location;var r=S.indexOf(t.key);var i=S.indexOf(e.key);if(r===-1){r=0}if(i===-1){i=0}var a=r-i;if(a){n=true;E(a)}};var x=h(p());var S=[x.key];var _=0;var I=false;var C=function(e){return d+be(e)};var k=function(e,t){Er(!(typeof e==="object"&&e.state!==undefined&&t!==undefined),"You should avoid providing a 2nd state argument to push when the 1st "+"argument is a location-like object that already has state; it is ignored");var n="PUSH";var a=Te(e,t,Se(f),R.location);v.confirmTransitionTo(a,n,l,(function(e){if(!e){return}var t=C(a);var s=a.key,u=a.state;if(o){r.pushState({key:s,state:u},"",t);if(c){i.href=t}else{var l=S.indexOf(R.location.key);var f=S.slice(0,l===-1?0:l+1);f.push(a.key);S=f;g({action:n,location:a})}}else{Er(u===undefined,"Browser history cannot push state in browsers that do not support HTML5 history");i.href=t}}))};var T=function(e,t){Er(!(typeof e==="object"&&e.state!==undefined&&t!==undefined),"You should avoid providing a 2nd state argument to replace when the 1st "+"argument is a location-like object that already has state; it is ignored");var n="REPLACE";var a=Te(e,t,Se(f),R.location);v.confirmTransitionTo(a,n,l,(function(e){if(!e){return}var t=C(a);var s=a.key,u=a.state;if(o){r.replaceState({key:s,state:u},"",t);if(c){i.replace(t)}else{var l=S.indexOf(R.location.key);if(l!==-1){S[l]=a.key}g({action:n,location:a})}}else{Er(u===undefined,"Browser history cannot replace state in browsers that do not support HTML5 history");i.replace(t)}}))};var E=function(e){r.go(e)};var A=function(){return E(-1)};var N=function(){return E(1)};var F=function(t){_+=t;if(_===1){e.addEventListener(Fr,m);if(s){e.addEventListener(Pr,y)}}else if(_===0){e.removeEventListener(Fr,m);if(s){e.removeEventListener(Pr,y)}}};var P=function(e){if(e===void 0){e=""}var t=v.setPrompt(e);if(!I){F(1);I=true}return function(){if(I){I=false;F(-1)}return t()}};var O=function(e){var t=v.appendListener(e);F(1);return function(){F(-1);t()}};var R={length:r.length,action:"POP",location:x,createHref:C,push:k,replace:T,go:E,goBack:A,goForward:N,block:P,listen:O,win:e};return R};var Rr="hashchange";var Dr={hashbang:{encodePath:function(e){return e.charAt(0)==="!"?e:"!/"+me(e)},decodePath:function(e){return e.charAt(0)==="!"?e.substr(1):e}},noslash:{encodePath:me,decodePath:ge},slash:{encodePath:ge,decodePath:ge}};var Mr=function(e,t){if(t===void 0){t={}}var n=false;var r=null;var i=0;var a=false;var o=e.location;var s=e.history;var u=br(e.navigator);var c=t.keyLength!=null?t.keyLength:6;var l=t.getUserConfirmation,f=l===void 0?vr:l,d=t.hashType,p=d===void 0?"slash":d;var h=t.basename?ve(ge(t.basename)):"";var v=Dr[p],g=v.encodePath,m=v.decodePath;var y=function(){var e=o.href;var t=e.indexOf("#");return t===-1?"":e.substring(t+1)};var b=function(e){return o.hash=e};var w=function(e){var t=o.href.indexOf("#");o.replace(o.href.slice(0,t>=0?t:0)+"#"+e)};var x=function(){var e=m(y());Er(!h||pe(e,h),"You are attempting to use a basename on a page whose URL path does not begin "+'with the basename. Expected path "'+e+'" to begin with "'+h+'".');if(h){e=he(e,h)}return Te(e,undefined,Se(c))};var S=Ar();var _=function(e){Object.assign(j,e);j.length=s.length;S.notifyListeners(j.location,j.action)};var I=function(){var e=y();var t=g(e);if(e!==t){w(t)}else{var i=x();var a=j.location;if(!n&&ke(a,i)){return}if(r===be(i)){return}r=null;C(i)}};var C=function(e){if(n){n=false;_()}else{var t="POP";S.confirmTransitionTo(e,t,f,(function(n){if(n){_({action:t,location:e})}else{k(e)}}))}};var k=function(e){var t=j.location;var r=N.lastIndexOf(be(t));var i=N.lastIndexOf(be(e));if(r===-1){r=0}if(i===-1){i=0}var a=r-i;if(a){n=true;R(a)}};var T=y();var E=g(T);if(T!==E){w(E)}var A=x();var N=[be(A)];var F=function(e){return"#"+g(h+be(e))};var P=function(e,t){Er(t===undefined,"Hash history cannot push state; it is ignored");var n="PUSH";var i=Te(e,undefined,Se(c),j.location);S.confirmTransitionTo(i,n,f,(function(e){if(!e){return}var t=be(i);var a=g(h+t);var o=y()!==a;if(o){r=t;b(a);var s=N.lastIndexOf(be(j.location));var u=N.slice(0,s===-1?0:s+1);u.push(t);N=u;_({action:n,location:i})}else{Er(false,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack");_()}}))};var O=function(e,t){Er(t===undefined,"Hash history cannot replace state; it is ignored");var n="REPLACE";var i=Te(e,undefined,Se(c),j.location);S.confirmTransitionTo(i,n,f,(function(e){if(!e){return}var t=be(i);var a=g(h+t);var o=y()!==a;if(o){r=t;w(a)}var s=N.indexOf(be(j.location));if(s!==-1){N[s]=t}_({action:n,location:i})}))};var R=function(e){Er(u,"Hash history go(n) causes a full page reload in this browser");s.go(e)};var D=function(){return R(-1)};var M=function(){return R(1)};var L=function(e,t){i+=t;if(i===1){e.addEventListener(Rr,I)}else if(i===0){e.removeEventListener(Rr,I)}};var U=function(t){if(t===void 0){t=""}var n=S.setPrompt(t);if(!a){L(e,1);a=true}return function(){if(a){a=false;L(e,-1)}return n()}};var B=function(t){var n=S.appendListener(t);L(e,1);return function(){L(e,-1);n()}};var j={length:s.length,action:"POP",location:A,createHref:F,push:P,replace:O,go:R,goBack:D,goForward:M,block:U,listen:B,win:e};return j};var Lr=function(e,t){var n=e.pathname.indexOf(t)==0?"/"+e.pathname.slice(t.length):e.pathname;return Object.assign({},e,{pathname:n})};var Ur={browser:Or,hash:Mr};var Br=e("stencil_router",function(){function e(e){var n=this;t(this,e);this.root="/";this.historyType="browser";this.titleSuffix="";this.routeViewsUpdated=function(e){if(e===void 0){e={}}if(n.history&&e.scrollToId&&n.historyType==="browser"){var t=n.history.win.document.getElementById(e.scrollToId);if(t){return t.scrollIntoView()}}n.scrollTo(e.scrollTopOffset||n.scrollTopOffset)};this.isServer=c(this,"isServer");this.queue=c(this,"queue")}e.prototype.componentWillLoad=function(){var e=this;this.history=Ur[this.historyType](this.el.ownerDocument.defaultView);this.history.listen((function(t){t=Lr(t,e.root);e.location=t}));this.location=Lr(this.history.location,this.root)};e.prototype.scrollTo=function(e){var t=this.history;if(e==null||this.isServer||!t){return}if(t.action==="POP"&&Array.isArray(t.location.scrollPosition)){return this.queue.write((function(){if(t&&t.location&&Array.isArray(t.location.scrollPosition)){t.win.scrollTo(t.location.scrollPosition[0],t.location.scrollPosition[1])}}))}return this.queue.write((function(){t.win.scrollTo(0,e)}))};e.prototype.render=function(){if(!this.location||!this.history){return}var e={historyType:this.historyType,location:this.location,titleSuffix:this.titleSuffix,root:this.root,history:this.history,routeViewsUpdated:this.routeViewsUpdated};return n(k.Provider,{state:e},n("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return u(this)},enumerable:false,configurable:true});return e}());var jr="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}stencil-route{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto}stencil-route:empty{display:none}";var Vr=e("super_selection_app",function(){function e(e){t(this,e);this.stepSubmitSuccess=r(this,"step-completion",7);this.successPageAcknowledged=r(this,"successPageAcknowledged",5);this.initialised=r(this,"initialised",7);this.isAppInitialised=false}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n;var r=this;return __generator(this,(function(i){e=ht.fromNullable(this.accessToken);if(ht.isNone(e)){throw Error("jwt property is missing.")}Gt.state.jwt=e;t=ht.fromNullable(this.backendUrl);if(ht.isNone(t)){throw Error("apiBaseUrl property is missing.")}Gt.state.apiBaseUrl=ht.some(t.value.replace(/\/$/,"")+"/");n=ht.fromNullable(this.appBaseUrl);if(ht.isNone(n)){throw Error("appBaseUrl property is missing.")}Gt.state.appBaseUrl=ht.some(n.value.replace(/\/$/,""));Gt.onChange("hasSuccessPageBeenAcknowledged",(function(e){return r.successPageAcknowledged.emit()}));Gt.onChange("hasSuperSelectionBeenSubmitted",(function(e){if(!e)return;r.stepSubmitSuccess.emit();Gt.state.hasSuperSelectionBeenSubmitted=false}));return[2]}))}))};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,Gt.loadAppStateAsync()];case 1:e.sent();this.isAppInitialised=true;this.initialised.emit({accountIdOrDefault:Gt.accountIdOrDefault,partnerIdOrDefault:Gt.partnerIdOrDefault,profileId:Gt.profileId});return[2]}}))}))};e.prototype.authTokenChanged=function(e){Gt.state.jwt=ht.fromNullable(e)};e.prototype.onRouteChange=function(){window===null||window===void 0?void 0:window.scroll(0,0)};e.prototype.render=function(){return n(o,{class:"d-flex justify-content-center flex-grow-1"},n("div",{class:"d-flex flex-column justify-content-between"},this.renderAppContent()))};e.prototype.routerBaseUrl=function(){var e;return((e=this.appBaseUrl)===null||e===void 0?void 0:e.replace(/\/$/,""))+"/"};e.prototype.renderAppContent=function(){return n("stencil-router",{root:this.routerBaseUrl()},n("stencil-route-switch",{scrollTopOffset:0},n("div",{class:"d-flex flex-column"},n("div",{class:"d-flex justify-content-center"},this.isAppInitialised?Yt:n("fl-loading-indicator",{class:"mt-5"})),n("div",{class:"d-flex justify-content-center"},n("sss-footer-section",null)))))};Object.defineProperty(e,"watchers",{get:function(){return{accessToken:["authTokenChanged"],location:["onRouteChange"]}},enumerable:false,configurable:true});return e}());ee(Vr);Vr.style=jr;var qr=[];var zr=function(){return qr.some((function(e){return e.activeTargets.length>0}))};var Hr=function(){return qr.some((function(e){return e.skippedTargets.length>0}))};var Wr="ResizeObserver loop completed with undelivered notifications.";var Gr=function(){var e;if(typeof ErrorEvent==="function"){e=new ErrorEvent("error",{message:Wr})}else{e=document.createEvent("Event");e.initEvent("error",false,false);e.message=Wr}window.dispatchEvent(e)};var Kr;(function(e){e["BORDER_BOX"]="border-box";e["CONTENT_BOX"]="content-box";e["DEVICE_PIXEL_CONTENT_BOX"]="device-pixel-content-box"})(Kr||(Kr={}));var Xr=function(e){return Object.freeze(e)};var Jr=function(){function e(e,t){this.inlineSize=e;this.blockSize=t;Xr(this)}return e}();var Yr=function(){function e(e,t,n,r){this.x=e;this.y=t;this.width=n;this.height=r;this.top=this.y;this.left=this.x;this.bottom=this.top+this.height;this.right=this.left+this.width;return Xr(this)}e.prototype.toJSON=function(){var e=this,t=e.x,n=e.y,r=e.top,i=e.right,a=e.bottom,o=e.left,s=e.width,u=e.height;return{x:t,y:n,top:r,right:i,bottom:a,left:o,width:s,height:u}};e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)};return e}();var $r=function(e){return e instanceof SVGElement&&"getBBox"in e};var Qr=function(e){if($r(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)};var Zr=function(e){var t,n;var r=(n=(t=e)===null||t===void 0?void 0:t.ownerDocument)===null||n===void 0?void 0:n.defaultView;return!!(r&&e instanceof r.Element)};var ei=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image"){break}case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return true}return false};var ti=typeof window!=="undefined"?window:{};var ni=new WeakMap;var ri=/auto|scroll/;var ii=/^tb|vertical/;var ai=/msie|trident/i.test(ti.navigator&&ti.navigator.userAgent);var oi=function(e){return parseFloat(e||"0")};var si=function(e,t,n){if(e===void 0){e=0}if(t===void 0){t=0}if(n===void 0){n=false}return new Jr((n?t:e)||0,(n?e:t)||0)};var ui=Xr({devicePixelContentBoxSize:si(),borderBoxSize:si(),contentBoxSize:si(),contentRect:new Yr(0,0,0,0)});var ci=function(e,t){if(t===void 0){t=false}if(ni.has(e)&&!t){return ni.get(e)}if(Qr(e)){ni.set(e,ui);return ui}var n=getComputedStyle(e);var r=$r(e)&&e.ownerSVGElement&&e.getBBox();var i=!ai&&n.boxSizing==="border-box";var a=ii.test(n.writingMode||"");var o=!r&&ri.test(n.overflowY||"");var s=!r&&ri.test(n.overflowX||"");var u=r?0:oi(n.paddingTop);var c=r?0:oi(n.paddingRight);var l=r?0:oi(n.paddingBottom);var f=r?0:oi(n.paddingLeft);var d=r?0:oi(n.borderTopWidth);var p=r?0:oi(n.borderRightWidth);var h=r?0:oi(n.borderBottomWidth);var v=r?0:oi(n.borderLeftWidth);var g=f+c;var m=u+l;var y=v+p;var b=d+h;var w=!s?0:e.offsetHeight-b-e.clientHeight;var x=!o?0:e.offsetWidth-y-e.clientWidth;var S=i?g+y:0;var _=i?m+b:0;var I=r?r.width:oi(n.width)-S-x;var C=r?r.height:oi(n.height)-_-w;var k=I+g+x+y;var T=C+m+w+b;var E=Xr({devicePixelContentBoxSize:si(Math.round(I*devicePixelRatio),Math.round(C*devicePixelRatio),a),borderBoxSize:si(k,T,a),contentBoxSize:si(I,C,a),contentRect:new Yr(f,u,I,C)});ni.set(e,E);return E};var li=function(e,t,n){var r=ci(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case Kr.DEVICE_PIXEL_CONTENT_BOX:return o;case Kr.BORDER_BOX:return i;default:return a}};var fi=function(){function e(e){var t=ci(e);this.target=e;this.contentRect=t.contentRect;this.borderBoxSize=Xr([t.borderBoxSize]);this.contentBoxSize=Xr([t.contentBoxSize]);this.devicePixelContentBoxSize=Xr([t.devicePixelContentBoxSize])}return e}();var di=function(e){if(Qr(e)){return Infinity}var t=0;var n=e.parentNode;while(n){t+=1;n=n.parentNode}return t};var pi=function(){var e=Infinity;var t=[];qr.forEach((function n(r){if(r.activeTargets.length===0){return}var i=[];r.activeTargets.forEach((function t(n){var r=new fi(n.target);var a=di(n.target);i.push(r);n.lastReportedSize=li(n.target,n.observedBox);if(a<e){e=a}}));t.push((function e(){r.callback.call(r.observer,i,r.observer)}));r.activeTargets.splice(0,r.activeTargets.length)}));for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e};var hi=function(e){qr.forEach((function t(n){n.activeTargets.splice(0,n.activeTargets.length);n.skippedTargets.splice(0,n.skippedTargets.length);n.observationTargets.forEach((function t(r){if(r.isActive()){if(di(r.target)>e){n.activeTargets.push(r)}else{n.skippedTargets.push(r)}}}))}))};var vi=function(){var e=0;hi(e);while(zr()){e=pi();hi(e)}if(Hr()){Gr()}return e>0};var gi;var mi=[];var yi=function(){return mi.splice(0).forEach((function(e){return e()}))};var bi=function(e){if(!gi){var t=0;var n=document.createTextNode("");var r={characterData:true};new MutationObserver((function(){return yi()})).observe(n,r);gi=function(){n.textContent=""+(t?t--:t++)}}mi.push(e);gi()};var wi=function(e){bi((function t(){requestAnimationFrame(e)}))};var xi=0;var Si=function(){return!!xi};var _i=250;var Ii={attributes:true,characterData:true,childList:true,subtree:true};var Ci=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"];var ki=function(e){if(e===void 0){e=0}return Date.now()+e};var Ti=false;var Ei=function(){function e(){var e=this;this.stopped=true;this.listener=function(){return e.schedule()}}e.prototype.run=function(e){var t=this;if(e===void 0){e=_i}if(Ti){return}Ti=true;var n=ki(e);wi((function(){var r=false;try{r=vi()}finally{Ti=false;e=n-ki();if(!Si()){return}if(r){t.run(1e3)}else if(e>0){t.run(e)}else{t.start()}}}))};e.prototype.schedule=function(){this.stop();this.run()};e.prototype.observe=function(){var e=this;var t=function(){return e.observer&&e.observer.observe(document.body,Ii)};document.body?t():ti.addEventListener("DOMContentLoaded",t)};e.prototype.start=function(){var e=this;if(this.stopped){this.stopped=false;this.observer=new MutationObserver(this.listener);this.observe();Ci.forEach((function(t){return ti.addEventListener(t,e.listener,true)}))}};e.prototype.stop=function(){var e=this;if(!this.stopped){this.observer&&this.observer.disconnect();Ci.forEach((function(t){return ti.removeEventListener(t,e.listener,true)}));this.stopped=true}};return e}();var Ai=new Ei;var Ni=function(e){!xi&&e>0&&Ai.start();xi+=e;!xi&&Ai.stop()};var Fi=function(e){return!$r(e)&&!ei(e)&&getComputedStyle(e).display==="inline"};var Pi=function(){function e(e,t){this.target=e;this.observedBox=t||Kr.CONTENT_BOX;this.lastReportedSize={inlineSize:0,blockSize:0}}e.prototype.isActive=function(){var e=li(this.target,this.observedBox,true);if(Fi(this.target)){this.lastReportedSize=e}if(this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize){return true}return false};return e}();var Oi=function(){function e(e,t){this.activeTargets=[];this.skippedTargets=[];this.observationTargets=[];this.observer=e;this.callback=t}return e}();var Ri=new WeakMap;var Di=function(e,t){for(var n=0;n<e.length;n+=1){if(e[n].target===t){return n}}return-1};var Mi=function(){function e(){}e.connect=function(e,t){var n=new Oi(e,t);Ri.set(e,n)};e.observe=function(e,t,n){var r=Ri.get(e);var i=r.observationTargets.length===0;if(Di(r.observationTargets,t)<0){i&&qr.push(r);r.observationTargets.push(new Pi(t,n&&n.box));Ni(1);Ai.schedule()}};e.unobserve=function(e,t){var n=Ri.get(e);var r=Di(n.observationTargets,t);var i=n.observationTargets.length===1;if(r>=0){i&&qr.splice(qr.indexOf(n),1);n.observationTargets.splice(r,1);Ni(-1)}};e.disconnect=function(e){var t=this;var n=Ri.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)}));n.activeTargets.splice(0,n.activeTargets.length)};return e}();var Li=function(){function e(e){if(arguments.length===0){throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.")}if(typeof e!=="function"){throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.")}Mi.connect(this,e)}e.prototype.observe=function(e,t){if(arguments.length===0){throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.")}if(!Zr(e)){throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element")}Mi.observe(this,e,t)};e.prototype.unobserve=function(e){if(arguments.length===0){throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.")}if(!Zr(e)){throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element")}Mi.unobserve(this,e)};e.prototype.disconnect=function(){Mi.disconnect(this)};e.toString=function(){return"function ResizeObserver () { [polyfill code] }"};return e}();var Ui=function(){function e(){var e=this;this._appRootUrl=new Q((function(){return e.resolveRootUrl()}));this.getAppRootUrl=function(){return e._appRootUrl.value};this.getAppHostUrl=function(){return(""+window.location.origin+e.getAppRootUrl()).replace(/\/$/,"")}}e.prototype.loadConfigurationAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,jt(this.getAppRootUrl()+"config.json").get().json()];case 1:e=t.sent();Bn.update({appConfiguration:ht.fromNullable(e)});return[2]}}))}))};e.prototype.resolveRootUrl=function(){var e=ht.fromNullable(window.location.pathname.match(/^\/super-selection\/embed\/v1.0\/app/));if(ht.isNone(e)){throw Error("Unsupported host URL")}return e.value[0]+"/"};return e}();var Bi=new Ui;var ji="function";var Vi="object";var qi="undefined";var zi="prototype";var Hi="hasOwnProperty";function Wi(){if(typeof globalThis!==qi&&globalThis){return globalThis}if(typeof self!==qi&&self){return self}if(typeof window!==qi&&window){return window}if(typeof global!==qi&&global){return global}return null}function Gi(e){var t=Object["create"];if(t){return t(e)}if(e==null){return{}}var n=typeof e;if(n!==Vi&&n!==ji){throw new TypeError("Object prototype may only be an Object:"+e)}function r(){}r[zi]=e;return new r}function Ki(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t){if(Object[zi][Hi].call(t,i)){e[i]=t[i]}}}return e}var Xi=function(e,t){Xi=Object["setPrototypeOf"]||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t){if(t[Hi](n)){e[n]=t[n]}}};return Xi(e,t)};function Ji(e,t){Xi(e,t);function n(){this.constructor=e}e[zi]=t===null?Gi(t):(n[zi]=t[zi],new n)}var Yi=Wi()||{};(function(e,t,n){if(!e.__assign){e.__assign=Object.assign||t}if(!e.__extends){e.__extends=n}})(Yi,Ki,Ji);if(!__assign){__assign=Yi.__assign}if(!__extends){__extends=Yi.__extends}var $i={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5};var Qi=qi;var Zi=Vi;var ea=zi;var ta=ji;var na="window";var ra="document";var ia="navigator";var aa="history";var oa="location";var sa="console";var ua="performance";var ca="JSON";var la="crypto";var fa="msCrypto";var da="ReactNative";var pa=Wi;function ha(e){var t=pa();if(t&&t[e]){return t[e]}if(e===na&&va()){return window}return null}function va(){return Boolean(typeof window===Zi&&window)}function ga(){if(va()){return window}return ha(na)}function ma(){return Boolean(typeof document===Zi&&document)}function ya(){if(ma()){return document}return ha(ra)}function ba(){return Boolean(typeof navigator===Zi&&navigator)}function wa(){if(ba()){return navigator}return ha(ia)}function xa(){return Boolean(typeof history===Zi&&history)}function Sa(){if(xa()){return history}return ha(aa)}function _a(){if(typeof location===Zi&&location){return location}return ha(oa)}function Ia(){if(typeof console!==Qi){return console}return ha(sa)}function Ca(){return ha(ua)}function ka(){return Boolean(typeof JSON===Zi&&JSON||ha(ca)!==null)}function Ta(){if(ka()){return JSON||ha(ca)}return null}function Ea(){return ha(la)}function Aa(){return ha(fa)}function Na(){var e=wa();if(e&&e.product){return e.product===da}return false}var Fa="on";var Pa="attachEvent";var Oa="addEventListener";var Ra="detachEvent";var Da="removeEventListener";var Ma=4294967296;var La=4294967295;var Ua=null;var Ba=false;var ja=123456789;var Va=987654321;function qa(e){if(e<0){e>>>=0}ja=123456789+e&La;Va=987654321-e&La;Ba=true}function za(){qa(Math.random()*Ma^(new Date).getTime())}function Ha(e,t){return typeof e===t}function Wa(e){return Ha(e,qi)||e===undefined}function Ga(e){return Wa(e)||e===null}function Ka(e,t){return e&&Object[zi].hasOwnProperty.call(e,t)}function Xa(e){return Ha(e,Vi)}function Ja(e){return Ha(e,ji)}function Ya(e,t,n,r){if(r===void 0){r=false}var i=false;if(!Ga(e)){try{if(!Ga(e[Oa])){e[Oa](t,n,r);i=true}else if(!Ga(e[Pa])){e[Pa](Fa+t,n);i=true}}catch(e){}}return i}function $a(e,t,n,r){if(r===void 0){r=false}if(!Ga(e)){try{if(!Ga(e[Da])){e[Da](t,n,r)}else if(!Ga(e[Ra])){e[Ra](Fa+t,n)}}catch(e){}}}function Qa(e){var t=e;var n=/([^\w\d_$])/g;if(n.test(e)){t=e.replace(n,"_")}return t}function Za(e,t){if(e&&Xa(e)){for(var n in e){if(Ka(e,n)){t.call(e,n,e[n])}}}}var eo=function(){function e(){}e.isDate=function(e){return Object[zi].toString.call(e)==="[object Date]"};e.isArray=function(e){return Object[zi].toString.call(e)==="[object Array]"};e.isError=function(e){return Object[zi].toString.call(e)==="[object Error]"};e.isString=function(e){return Ha(e,"string")};e.isNumber=function(e){return Ha(e,"number")};e.isBoolean=function(e){return Ha(e,"boolean")};e.disableCookies=function(){e._canUseCookies=false};e.newGuid=function(){function t(){return e.randomValue(15)}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(to,(function(e){var n=t()|0,r=e==="x"?n:n&3|8;return r.toString(16)}))};e.toISOString=function(t){if(e.isDate(t)){var n=function(e){var t=String(e);if(t.length===1){t="0"+t}return t};return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())+"."+String((t.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}};e.arrForEach=function(e,t,n){var r=e.length;for(var i=0;i<r;i++){if(i in e){t.call(n||e,e[i],i,e)}}};e.arrIndexOf=function(e,t,n){var r=e.length;var i=n||0;for(var a=Math.max(i>=0?i:r-Math.abs(i),0);a<r;a++){if(a in e&&e[a]===t){return a}}return-1};e.arrMap=function(e,t,n){var r=e.length;var i=n||e;var a=new Array(r);for(var o=0;o<r;o++){if(o in e){a[o]=t.call(i,e[o],e)}}return a};e.arrReduce=function(e,t,n){var r=e.length;var i=0;var a;if(arguments.length>=3){a=arguments[2]}else{while(i<r&&!(i in e)){i++}a=e[i++]}while(i<r){if(i in e){a=t(a,e[i],i,e)}i++}return a};e.strTrim=function(t){if(!e.isString(t)){return t}return t.replace(/^\s+|\s+$/g,"")};e.objKeys=function(e){var t=!{toString:null}.propertyIsEnumerable("toString");if(!Ja(e)&&(!Xa(e)||e===null)){throw new TypeError("objKeys called on non-object")}var n=[];for(var r in e){if(Ka(e,r)){n.push(r)}}if(t){var i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];var a=i.length;for(var o=0;o<a;o++){if(Ka(e,i[o])){n.push(i[o])}}}return n};e.objDefineAccessors=function(e,t,n,r){var i=Object["defineProperty"];if(i){try{var a={enumerable:true,configurable:true};if(n){a.get=n}if(r){a.set=r}i(e,t,a);return true}catch(e){}}return false};e.addEventHandler=function(e,t){var n=false;var r=ga();if(r){n=Ya(r,e,t);n=Ya(r["body"],e,t)||n}var i=ya();if(i){n=no.Attach(i,e,t)||n}return n};e.dateNow=function(){var e=Date;if(e.now){return e.now()}return(new e).getTime()};e.perfNow=function(){var t=Ca();if(t&&t.now){return t.now()}return e.dateNow()};e.newId=function(t){if(t===void 0){t=22}var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var r=e.random32()>>>0;var i=0;var a="";while(a.length<t){i++;a+=n.charAt(r&63);r>>>=6;if(i===5){r=(e.random32()<<2&4294967295|r&3)>>>0;i=0}}return a};e.isIE=function(){if(Ua===null){var e=wa()||{};var t=(e.userAgent||"").toLowerCase();Ua=t.indexOf("msie")!==-1||t.indexOf("trident/")!==-1}return Ua};e.randomValue=function(t){if(t>0){return Math.floor(e.random32()/La*(t+1))>>>0}return 0};e.random32=function(t){var n;var r=Ea()||Aa();if(r&&r.getRandomValues){n=r.getRandomValues(new Uint32Array(1))[0]&La}else if(e.isIE()){if(!Ba){za()}n=e.mwcRandom32()&La}else{n=Math.floor(Ma*Math.random()|0)}if(!t){n>>>=0}return n};e.mwcRandomSeed=function(e){if(!e){za()}else{qa(e)}};e.mwcRandom32=function(e){Va=36969*(Va&65535)+(Va>>16)&La;ja=18e3*(ja&65535)+(ja>>16)&La;var t=(Va<<16)+(ja&65535)>>>0&La|0;if(!e){t>>>=0}return t};e.generateW3CId=function(){var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];var n="",r;for(var i=0;i<4;i++){r=e.random32();n+=t[r&15]+t[r>>4&15]+t[r>>8&15]+t[r>>12&15]+t[r>>16&15]+t[r>>20&15]+t[r>>24&15]+t[r>>28&15]}var a=t[8+(e.random32()&3)|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+a+n.substr(16,3)+n.substr(19,12)};e.isTypeof=Ha;e.isUndefined=Wa;e.isNullOrUndefined=Ga;e.hasOwnProperty=Ka;e.isFunction=Ja;e.isObject=Xa;e.objCreate=Gi;return e}();var to=/[xy]/g;var no=function(){function e(){}e.Attach=Ya;e.AttachEvent=Ya;e.Detach=$a;e.DetachEvent=$a;return e}();var ro;(function(e){e[e["CRITICAL"]=1]="CRITICAL";e[e["WARNING"]=2]="WARNING"})(ro||(ro={}));var io={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103};
1
+ var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r["throw"](e))}catch(e){a(e)}}function u(e){e.done?n(e.value):i(e.value).then(o,s)}u((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1];a=o;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(o);break}if(a[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};System.register(["./p-38ee2795.system.js","./p-13573238.system.js","./p-7dbe5a2f.system.js","./p-ae4f5e0b.system.js"],(function(e){"use strict";var t,n,r,i,a,o,s,u,c,l,f,d,p,h,v,g,m,y,b,w,x,S,_,I,C,k;return{setters:[function(e){t=e.r;n=e.h;r=e.c;i=e.g;a=e.f;o=e.H;s=e.a;u=e.d;c=e.e;l=e.s},function(e){f=e.f;d=e.m;p=e.S;h=e.a;v=e.i;g=e.d;m=e.b;y=e.c;b=e.g;w=e.Q},function(e){x=e.g;S=e.O;_=e.j;I=e.k;C=e.a},function(e){k=e.A}],execute:function(){function T(){}function E(e,t,n){if(n===void 0){n=Number.POSITIVE_INFINITY}if(typeof t==="function"){return function(r){return r.pipe(E((function(n,r){return f(e(n,r)).pipe(d((function(e,i){return t(n,e,r,i)})))}),n))}}else if(typeof t==="number"){n=t}return function(t){return t.lift(new A(e,n))}}var A=function(){function e(e,t){if(t===void 0){t=Number.POSITIVE_INFINITY}this.project=e;this.concurrent=t}e.prototype.call=function(e,t){return t.subscribe(new N(e,this.project,this.concurrent))};return e}();var N=function(e){__extends(t,e);function t(t,n,r){if(r===void 0){r=Number.POSITIVE_INFINITY}var i=e.call(this,t)||this;i.project=n;i.concurrent=r;i.hasCompleted=false;i.buffer=[];i.active=0;i.index=0;return i}t.prototype._next=function(e){if(this.active<this.concurrent){this._tryNext(e)}else{this.buffer.push(e)}};t.prototype._tryNext=function(e){var t;var n=this.index++;try{t=this.project(e,n)}catch(e){this.destination.error(e);return}this.active++;this._innerSub(t)};t.prototype._innerSub=function(e){var t=new h(this);var n=this.destination;n.add(t);var r=v(e,t);if(r!==t){n.add(r)}};t.prototype._complete=function(){this.hasCompleted=true;if(this.active===0&&this.buffer.length===0){this.destination.complete()}this.unsubscribe()};t.prototype.notifyNext=function(e){this.destination.next(e)};t.prototype.notifyComplete=function(){var e=this.buffer;this.active--;if(e.length>0){this._next(e.shift())}else if(this.active===0&&this.hasCompleted){this.destination.complete()}};return t}(p);function F(e,t,n,r){if(_(n)){r=n;n=undefined}if(r){return F(e,t,n).pipe(d((function(e){return x(e)?r.apply(void 0,e):r(e)})))}return new S((function(r){function i(e){if(arguments.length>1){r.next(Array.prototype.slice.call(arguments))}else{r.next(e)}}P(e,t,i,r,n)}))}function P(e,t,n,r,i){var a;if(D(e)){var o=e;e.addEventListener(t,n,i);a=function(){return o.removeEventListener(t,n,i)}}else if(R(e)){var s=e;e.on(t,n);a=function(){return s.off(t,n)}}else if(O(e)){var u=e;e.addListener(t,n);a=function(){return u.removeListener(t,n)}}else if(e&&e.length){for(var c=0,l=e.length;c<l;c++){P(e[c],t,n,r,i)}}else{throw new TypeError("Invalid event target")}r.add(a)}function O(e){return e&&typeof e.addListener==="function"&&typeof e.removeListener==="function"}function R(e){return e&&typeof e.on==="function"&&typeof e.off==="function"}function D(e){return e&&typeof e.addEventListener==="function"&&typeof e.removeEventListener==="function"}function M(e,t){if(t===void 0){t=I}return function(n){return n.lift(new L(e,t))}}var L=function(){function e(e,t){this.dueTime=e;this.scheduler=t}e.prototype.call=function(e,t){return t.subscribe(new U(e,this.dueTime,this.scheduler))};return e}();var U=function(e){__extends(t,e);function t(t,n,r){var i=e.call(this,t)||this;i.dueTime=n;i.scheduler=r;i.debouncedSubscription=null;i.lastValue=null;i.hasValue=false;return i}t.prototype._next=function(e){this.clearDebounce();this.lastValue=e;this.hasValue=true;this.add(this.debouncedSubscription=this.scheduler.schedule(B,this.dueTime,this))};t.prototype._complete=function(){this.debouncedNext();this.destination.complete()};t.prototype.debouncedNext=function(){this.clearDebounce();if(this.hasValue){var e=this.lastValue;this.lastValue=null;this.hasValue=false;this.destination.next(e)}};t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;if(e!==null){this.remove(e);e.unsubscribe();this.debouncedSubscription=null}};return t}(C);function B(e){e.debouncedNext()}function j(e,t,n){return function r(i){return i.lift(new V(e,t,n))}}var V=function(){function e(e,t,n){this.nextOrObserver=e;this.error=t;this.complete=n}e.prototype.call=function(e,t){return t.subscribe(new q(e,this.nextOrObserver,this.error,this.complete))};return e}();var q=function(e){__extends(t,e);function t(t,n,r,i){var a=e.call(this,t)||this;a._tapNext=T;a._tapError=T;a._tapComplete=T;a._tapError=r||T;a._tapComplete=i||T;if(_(n)){a._context=a;a._tapNext=n}else if(n){a._context=n;a._tapNext=n.next||T;a._tapError=n.error||T;a._tapComplete=n.complete||T}return a}t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.next(e)};t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.error(e)};t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){this.destination.error(e);return}return this.destination.complete()};return t}(C);var z="3.47.58708";var H=function(e){return e._tag==="Some"};var W=function(e){return e._tag==="None"};var G={_tag:"None"};var K=function(e){return{_tag:"Some",value:e}};function X(e){return e==null?G:K(e)}function J(e){return W(e)?undefined:e.value}var Y=function(e){return function(t){return W(t)?e():t.value}};var $=Y;var Q=function(){function e(e){this.factory=e;this._value=G}Object.defineProperty(e.prototype,"value",{get:function(){if(H(this._value)){return this._value.value}var e=this.factory();this._value=K(e);return e},enumerable:false,configurable:true});return e}();function Z(){if(!window.location.pathname.endsWith("/")){var e=window.location.pathname+"/"+window.location.search+window.location.hash;history.pushState(history.state,"",e)}}function ee(e){k.injectProps(e,["history","location"])}var te="/";var ne="./";var re=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");var ie=function(e,t){var n=[];var r=0;var i=0;var a="";var o=t&&t.delimiter||te;var s=t&&t.delimiters||ne;var u=false;var c;while((c=re.exec(e))!==null){var l=c[0];var f=c[1];var d=c.index;a+=e.slice(i,d);i=d+l.length;if(f){a+=f[1];u=true;continue}var p="";var h=e[i];var v=c[2];var g=c[3];var m=c[4];var y=c[5];if(!u&&a.length){var b=a.length-1;if(s.indexOf(a[b])>-1){p=a[b];a=a.slice(0,b)}}if(a){n.push(a);a="";u=false}var w=p!==""&&h!==undefined&&h!==p;var x=y==="+"||y==="*";var S=y==="?"||y==="*";var _=p||o;var I=g||m;n.push({name:v||r++,prefix:p,delimiter:_,optional:S,repeat:x,partial:w,pattern:I?oe(I):"[^"+ae(_)+"]+?"})}if(a||i<e.length){n.push(a+e.substr(i))}return n};var ae=function(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")};var oe=function(e){return e.replace(/([=!:$/()])/g,"\\$1")};var se=function(e){return e&&e.sensitive?"":"i"};var ue=function(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n){for(var r=0;r<n.length;r++){t.push({name:r,prefix:null,delimiter:null,optional:false,repeat:false,partial:false,pattern:null})}}return e};var ce=function(e,t,n){var r=[];for(var i=0;i<e.length;i++){r.push(de(e[i],t,n).source)}return new RegExp("(?:"+r.join("|")+")",se(n))};var le=function(e,t,n){return fe(ie(e,n),t,n)};var fe=function(e,t,n){n=n||{};var r=n.strict;var i=n.end!==false;var a=ae(n.delimiter||te);var o=n.delimiters||ne;var s=[].concat(n.endsWith||[]).map(ae).concat("$").join("|");var u="";var c=false;for(var l=0;l<e.length;l++){var f=e[l];if(typeof f==="string"){u+=ae(f);c=l===e.length-1&&o.indexOf(f[f.length-1])>-1}else{var d=ae(f.prefix||"");var p=f.repeat?"(?:"+f.pattern+")(?:"+d+"(?:"+f.pattern+"))*":f.pattern;if(t)t.push(f);if(f.optional){if(f.partial){u+=d+"("+p+")?"}else{u+="(?:"+d+"("+p+"))?"}}else{u+=d+"("+p+")"}}}if(i){if(!r)u+="(?:"+a+")?";u+=s==="$"?"$":"(?="+s+")"}else{if(!r)u+="(?:"+a+"(?="+s+"))?";if(!c)u+="(?="+a+"|"+s+")"}return new RegExp("^"+u,se(n))};var de=function(e,t,n){if(e instanceof RegExp){return ue(e,t)}if(Array.isArray(e)){return ce(e,t,n)}return le(e,t,n)};var pe=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)};var he=function(e,t){return pe(e,t)?e.substr(t.length):e};var ve=function(e){return e.charAt(e.length-1)==="/"?e.slice(0,-1):e};var ge=function(e){return e.charAt(0)==="/"?e:"/"+e};var me=function(e){return e.charAt(0)==="/"?e.substr(1):e};var ye=function(e){var t=e||"/";var n="";var r="";var i=t.indexOf("#");if(i!==-1){r=t.substr(i);t=t.substr(0,i)}var a=t.indexOf("?");if(a!==-1){n=t.substr(a);t=t.substr(0,a)}return{pathname:t,search:n==="?"?"":n,hash:r==="#"?"":r,query:{},key:""}};var be=function(e){var t=e.pathname,n=e.search,r=e.hash;var i=t||"/";if(n&&n!=="?"){i+=n.charAt(0)==="?"?n:"?"+n}if(r&&r!=="#"){i+=r.charAt(0)==="#"?r:"#"+r}return i};var we=function(e){if(!e){return{}}return(/^[?#]/.test(e)?e.slice(1):e).split("&").reduce((function(e,t){var n=t.split("="),r=n[0],i=n[1];e[r]=i?decodeURIComponent(i.replace(/\+/g," ")):"";return e}),{})};var xe=function(e){return e.charAt(0)==="/"};var Se=function(e){return Math.random().toString(36).substr(2,e)};var _e=function(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1){e[n]=e[r]}e.pop()};var Ie=function(e,t){if(t===void 0){t=""}var n=t&&t.split("/")||[];var r;var i=0;var a=e&&e.split("/")||[];var o=e&&xe(e);var s=t&&xe(t);var u=o||s;if(e&&xe(e)){n=a}else if(a.length){n.pop();n=n.concat(a)}if(!n.length){return"/"}if(n.length){var c=n[n.length-1];r=c==="."||c===".."||c===""}else{r=false}for(var l=n.length;l>=0;l--){var f=n[l];if(f==="."){_e(n,l)}else if(f===".."){_e(n,l);i++}else if(i){_e(n,l);i--}}if(!u){for(;i--;i){n.unshift("..")}}if(u&&n[0]!==""&&(!n[0]||!xe(n[0]))){n.unshift("")}var d=n.join("/");if(r&&d.substr(-1)!=="/"){d+="/"}return d};var Ce=function(e,t){if(e===t){return true}if(e==null||t==null){return false}if(Array.isArray(e)){return Array.isArray(t)&&e.length===t.length&&e.every((function(e,n){return Ce(e,t[n])}))}var n=typeof e;var r=typeof t;if(n!==r){return false}if(n==="object"){var i=e.valueOf();var a=t.valueOf();if(i!==e||a!==t){return Ce(i,a)}var o=Object.keys(e);var s=Object.keys(t);if(o.length!==s.length){return false}return o.every((function(n){return Ce(e[n],t[n])}))}return false};var ke=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&Ce(e.state,t.state)};var Te=function(e,t,n,r){var i;if(typeof e==="string"){i=ye(e);if(t!==undefined){i.state=t}}else{i=Object.assign({pathname:""},e);if(i.search&&i.search.charAt(0)!=="?"){i.search="?"+i.search}if(i.hash&&i.hash.charAt(0)!=="#"){i.hash="#"+i.hash}if(t!==undefined&&i.state===undefined){i.state=t}}try{i.pathname=decodeURI(i.pathname)}catch(e){if(e instanceof URIError){throw new URIError('Pathname "'+i.pathname+'" could not be decoded. '+"This is likely caused by an invalid percent-encoding.")}else{throw e}}i.key=n;if(r){if(!i.pathname){i.pathname=r.pathname}else if(i.pathname.charAt(0)!=="/"){i.pathname=Ie(i.pathname,r.pathname)}}else{if(!i.pathname){i.pathname="/"}}i.query=we(i.search||"");return i};var Ee=0;var Ae={};var Ne=1e4;var Fe=function(e,t){var n=""+t.end+t.strict;var r=Ae[n]||(Ae[n]={});var i=JSON.stringify(e);if(r[i]){return r[i]}var a=[];var o=de(e,a,t);var s={re:o,keys:a};if(Ee<Ne){r[i]=s;Ee+=1}return s};var Pe=function(e,t){if(t===void 0){t={}}if(typeof t==="string"){t={path:t}}var n=t.path,r=n===void 0?"/":n,i=t.exact,a=i===void 0?false:i,o=t.strict,s=o===void 0?false:o;var u=Fe(r,{end:a,strict:s}),c=u.re,l=u.keys;var f=c.exec(e);if(!f){return null}var d=f[0],p=f.slice(1);var h=e===d;if(a&&!h){return null}return{path:r,url:r==="/"&&d===""?"/":d,isExact:h,params:l.reduce((function(e,t,n){e[t.name]=p[n];return e}),{})}};var Oe=function(e,t){if(e==null&&t==null){return true}if(t==null){return false}return e&&t&&e.path===t.path&&e.url===t.url&&Ce(e.params,t.params)};var Re=":host button,:host button:focus,:host button:active,:host button.focus,:host button.active{-webkit-box-shadow:none;box-shadow:none;border-radius:var(--fl-rounding-button) !important}:host button.disabled,:host button:disabled{opacity:1 !important;cursor:not-allowed !important;color:var(--fl-color-disabled)}:host button .label{font-weight:600 !important}:host button.is-primary{color:var(--fl-color-primary-text);background-color:var(--fl-color-primary);border:none}:host button.is-primary.disabled,:host button.is-primary:disabled{background-color:var(--fl-color-primary-disabled)}:host button.is-primary:hover:not(.disabled),:host button.is-primary:hover:not(:disabled){background-color:var(--fl-color-primary-hover)}:host button.is-primary:active:not(.disabled),:host button.is-primary:active:not(:disabled){background-color:var(--fl-color-primary-focus)}:host button.is-secondary{color:var(--fl-color-secondary-text);background-color:var(--fl-color-secondary)}:host button.is-secondary.disabled,:host button.is-secondary:disabled{background-color:var(--fl-color-secondary-disabled)}:host button.is-secondary:hover:not(.disabled),:host button.is-secondary:hover:not(:disabled){background-color:var(--fl-color-secondary-hover)}:host button.is-secondary:active:not(.disabled),:host button.is-secondary:active:not(:disabled){background-color:var(--fl-color-secondary-focus)}:host button.is-block{display:block}:host button:disabled,:host button.disabled{pointer-events:none}";var De=e("fl_button",function(){function e(e){t(this,e);this.isBlockElement=false;this.disabled=false;this.variant="primary"}e.prototype.render=function(){return n("button",{class:{"btn position-relative px-3 py-2":true,"is-primary":this.variant==="primary","is-secondary":this.variant==="secondary","btn-block":this.isBlockElement,disabled:this.disabled},style:{"pointer-events":this.disabled?"none":"auto"},disabled:this.disabled},n("span",{class:"label"},n("slot",null)))};return e}());De.style=Re;var Me={compareTwoStrings:Le,findBestMatch:Ue};function Le(e,t){e=e.replace(/\s+/g,"");t=t.replace(/\s+/g,"");if(!e.length&&!t.length)return 1;if(!e.length||!t.length)return 0;if(e===t)return 1;if(e.length===1&&t.length===1)return 0;if(e.length<2||t.length<2)return 0;var n=new Map;for(var r=0;r<e.length-1;r++){var i=e.substring(r,r+2);var a=n.has(i)?n.get(i)+1:1;n.set(i,a)}var o=0;for(var r=0;r<t.length-1;r++){var i=t.substring(r,r+2);var a=n.has(i)?n.get(i):0;if(a>0){n.set(i,a-1);o++}}return 2*o/(e.length+t.length-2)}function Ue(e,t){if(!Be(e,t))throw new Error("Bad arguments: First argument should be a string, second should be an array of strings");var n=[];var r=0;for(var i=0;i<t.length;i++){var a=t[i];var o=Le(e,a);n.push({target:a,rating:o});if(o>n[r].rating){r=i}}var s=n[r];return{ratings:n,bestMatch:s,bestMatchIndex:r}}function Be(e,t){if(typeof e!=="string")return false;if(!Array.isArray(t))return false;if(!t.length)return false;if(t.find((function(e){return typeof e!=="string"})))return false;return true}var je="fl-dropdown .dropdown-menu{max-height:min(20rem, 50vh)}fl-dropdown .dropdown-menu .dropdown-item{cursor:pointer}fl-dropdown .dropdown-menu .dropdown-item.selected{background-color:rgba(253, 189, 0, 0.5)}";var Ve=e("fl_dropdown",function(){function e(e){var i=this;t(this,e);this.valueChanged=r(this,"valueChanged",7);this.required=false;this.disabled=false;this.isMouseOver=false;this.inputValue="";this.isDropdownVisible=false;this.filteredOptions=[];this.renderFilteredResults=function(){if(i.filteredOptions.length===0){return n("span",{class:"dropdown-item disabled"},"No items match your search")}return i.filteredOptions.map((function(e,t){return n("span",{class:{"dropdown-item text-wrap":true,selected:i.isOptionSelected(e),active:i.highlightedOptionIndex===t},onClick:function(t){i.toggleDropdown(false);i.selectOption(e)}},n("span",null,e.label))}))};this.filterResults=function(e){i.filteredOptions=i.sortOptionsByRelevancy(i._options.filter((function(t){return t.label.toLowerCase().includes(e.toLowerCase())})),e);i.highlightedOptionIndex=undefined};this.selectOption=function(e){i.selectedOption=e;i.inputValue=e.label;i.valueChanged.emit(e)};this.isOptionSelected=function(e){var t;return((t=i.selectedOption)===null||t===void 0?void 0:t.label)===e.label};this.toggleDropdown=function(e){i.isDropdownVisible=e};this.resetInput=function(){var e,t;i.inputValue=(t=(e=i.selectedOption)===null||e===void 0?void 0:e.label)!==null&&t!==void 0?t:"";i.filteredOptions=i._options};this.processKeyboardNavigation=function(e){var t="Enter";var n="ArrowDown";var r="ArrowUp";var a="Escape";switch(e.key){case n:i.toggleDropdown(true);i.highlightNextItem();return true;case r:i.highlightPreviousItem();return true;case t:if(i.highlightedOptionIndex!==undefined){i.toggleDropdown(false);i.selectOption(i.filteredOptions[i.highlightedOptionIndex])}return true;case a:i.inputElement.blur();return true}return false};this.highlightPreviousItem=function(){if(i.filteredOptions.length===0){return}i.highlightedOptionIndex=i.highlightedOptionIndex===undefined?0:Math.max(i.highlightedOptionIndex-1,0)};this.highlightNextItem=function(){if(i.filteredOptions.length===0){return}i.highlightedOptionIndex=i.highlightedOptionIndex===undefined?0:Math.min(i.highlightedOptionIndex+1,i.filteredOptions.length-1)}}Object.defineProperty(e.prototype,"_options",{get:function(){if(this.options===undefined){throw new Error("Can't render <fl-dropdown /> component with no options")}return this.options},enumerable:false,configurable:true});e.prototype.componentWillLoad=function(){var e=this;var t,n;this.filteredOptions=this._options;this.selectedOption=this._options.find((function(t){return t.value===e.value}));this.inputValue=(n=(t=this.selectedOption)===null||t===void 0?void 0:t.label)!==null&&n!==void 0?n:""};e.prototype.handleFocus=function(){this.toggleDropdown(true)};e.prototype.handleBlur=function(){if(this.isMouseOver){return}this.toggleDropdown(false);this.resetInput()};e.prototype.handleKeyDown=function(e){if(this.processKeyboardNavigation(e)){e.preventDefault()}};e.prototype.onOptionsChanged=function(){this.filteredOptions=this._options};e.prototype.onValueChanged=function(){var e=this;var t,n;this.selectedOption=this._options.find((function(t){return t.value===e.value}));this.inputValue=(n=(t=this.selectedOption)===null||t===void 0?void 0:t.label)!==null&&n!==void 0?n:""};e.prototype.render=function(){var e=this;var t;return[n("div",{class:"dropdown"},n("input",{type:"text",class:"form-control custom-select",placeholder:this.placeholder,required:this.required,disabled:this.disabled,value:this.inputValue,onInput:function(t){var n=t.target.value;e.inputValue=n;e.filterResults(n);e.toggleDropdown(true)},ref:function(t){return e.inputElement=t}}),n("div",{class:{"invalid-feedback":true,"d-none":this.isDropdownVisible}},(t=this.requiredValidationMessage)!==null&&t!==void 0?t:"Required."),n("div",{class:{"dropdown-menu shadow mt-0 w-100 overflow-auto":true,show:this.isDropdownVisible},onMouseEnter:function(t){return e.isMouseOver=true},onMouseLeave:function(t){return e.isMouseOver=false}},this.renderFilteredResults()))]};e.prototype.sortOptionsByRelevancy=function(e,t){return e.map((function(e){return Object.assign(Object.assign({},e),{relevancyScore:Me.compareTwoStrings(e.label.toLowerCase(),t.toLowerCase())})})).sort((function(e,t){return t.relevancyScore-e.relevancyScore})).map((function(e){return{label:e.label,value:e.value}}))};Object.defineProperty(e,"watchers",{get:function(){return{options:["onOptionsChanged"],value:["onValueChanged"]}},enumerable:false,configurable:true});return e}());Ve.style=je;var qe="fl-dropdown .dropdown-menu{max-height:min(20rem, 50vh)}fl-dropdown .dropdown-menu .dropdown-item{cursor:pointer}fl-dropdown .dropdown-menu .dropdown-item.selected{background-color:rgba(253, 189, 0, 0.5)}";var ze=3;var He=e("fl_dropdown_async",function(){function e(e){var i=this;t(this,e);this.valueChanged=r(this,"valueChanged",7);this.required=false;this.disabled=false;this.minSearchStringLength=ze;this.isMouseOver=false;this.searchState="pristine";this.inputValue="";this.isDropdownVisible=false;this.filteredOptions=[];this.shouldExecuteSearch=function(e){var t;return i.isDropdownVisible&&(e===null||e===void 0?void 0:e.length)>=i.minSearchStringLength&&((t=i.selectedOption)===null||t===void 0?void 0:t.label)!==e};this.onBeginSearch=function(e){i.inputValue=e;i.searchState="in progress"};this.onCompleteSearch=function(e){i.filteredOptions=e;i.highlightedOptionIndex=undefined;i.searchState="done"};this.renderFilteredResults=function(){if(i.searchState==="pristine"){return n("span",{class:"dropdown-item disabled"},"Start typing to find the results")}if(i.searchState==="in progress"){return n("div",{class:"d-flex justify-content-end align-items-center pr-4"},n("span",{class:"dropdown-item disabled"},"Searching..."),n("i",{class:"dot-falling"}))}if(i.filteredOptions.length===0){return n("span",{class:"dropdown-item disabled"},"No items match your search")}return i.filteredOptions.map((function(e,t){return n("span",{class:{"dropdown-item text-wrap":true,selected:i.isOptionSelected(e),active:i.highlightedOptionIndex===t},onClick:function(t){i.toggleDropdown(false);i.selectOption(e)}},e.label)}))};this.resetInput=function(){var e,t;i.inputValue=(t=(e=i.selectedOption)===null||e===void 0?void 0:e.label)!==null&&t!==void 0?t:""};this.toggleDropdown=function(e){i.isDropdownVisible=e};this.processKeyboardNavigation=function(e){var t="Enter";var n="ArrowDown";var r="ArrowUp";var a="Escape";switch(e.key){case n:i.toggleDropdown(true);i.highlightNextItem();return true;case r:i.highlightPreviousItem();return true;case t:if(i.highlightedOptionIndex!==undefined){i.toggleDropdown(false);i.selectOption(i.filteredOptions[i.highlightedOptionIndex])}return true;case a:i.inputElement.blur();return true}return false};this.highlightPreviousItem=function(){if(i.filteredOptions.length===0){return}i.highlightedOptionIndex=i.highlightedOptionIndex===undefined?0:Math.max(i.highlightedOptionIndex-1,0)};this.highlightNextItem=function(){if(i.filteredOptions.length===0){return}i.highlightedOptionIndex=i.highlightedOptionIndex===undefined?0:Math.min(i.highlightedOptionIndex+1,i.filteredOptions.length-1)};this.selectOption=function(e){i.selectedOption=e;i.inputValue=e.label;i.valueChanged.emit(e)};this.isOptionSelected=function(e){var t;return((t=i.selectedOption)===null||t===void 0?void 0:t.label)===e.label}}e.prototype.componentWillLoad=function(){this.selectedOption=this.value};e.prototype.componentDidLoad=function(){var e=this;this.searchResultsSubscription=F(this.inputElement,"keyup").pipe(M(500),d((function(t){return e.inputElement.value})),g(),m(this.shouldExecuteSearch),j(this.onBeginSearch),E(this._searchFunction),j(this.onCompleteSearch)).subscribe()};e.prototype.componentDidUnload=function(){this.searchResultsSubscription.unsubscribe()};e.prototype.handleFocus=function(){this.toggleDropdown(true)};e.prototype.handleBlur=function(){if(this.isMouseOver){return}this.toggleDropdown(false);this.highlightedOptionIndex=undefined;this.resetInput()};e.prototype.handleKeyDown=function(e){if(this.processKeyboardNavigation(e)){e.preventDefault()}};e.prototype.render=function(){var e=this;var t;return[n("div",{class:"dropdown"},n("input",{type:"text",class:"form-control",placeholder:this.placeholder,required:this.required,disabled:this.disabled,value:this.inputValue,ref:function(t){return e.inputElement=t}}),n("div",{class:{"invalid-feedback":true,"d-none":this.isDropdownVisible}},(t=this.requiredValidationMessage)!==null&&t!==void 0?t:"Required."),n("div",{class:{"dropdown-menu shadow mt-0 w-100 overflow-auto":true,show:this.isDropdownVisible},onMouseEnter:function(t){return e.isMouseOver=true},onMouseLeave:function(t){return e.isMouseOver=false}},this.renderFilteredResults()))]};Object.defineProperty(e.prototype,"_searchFunction",{get:function(){if(this.searchFunction===undefined){throw new Error("Can't render <fl-dropdown-async/> component with no searchFunction")}return this.searchFunction},enumerable:false,configurable:true});return e}());He.style=qe;var We='fl-loading-indicator .dots-container{width:36px}fl-loading-indicator .dot-flashing.theme-default{position:relative;width:8px;height:8px;border-radius:4px;background-color:#66efc5;color:#9880ff;-webkit-animation:dot-flashing-default 2s infinite linear;animation:dot-flashing-default 2s infinite linear;-webkit-animation-delay:0.5s;animation-delay:0.5s}@-webkit-keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}@keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}fl-loading-indicator .dot-flashing.theme-default::before,fl-loading-indicator .dot-flashing.theme-default::after{content:"";display:inline-block;position:absolute;top:0}fl-loading-indicator .dot-flashing.theme-default::before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#66efc5;color:#9880ff;-webkit-animation:dot-flashing-default 2s infinite linear;animation:dot-flashing-default 2s infinite linear;-webkit-animation-delay:0s;animation-delay:0s}@keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}fl-loading-indicator .dot-flashing.theme-default::after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#66efc5;color:#9880ff;-webkit-animation:dot-flashing-default 2s infinite linear;animation:dot-flashing-default 2s infinite linear;-webkit-animation-delay:1s;animation-delay:1s}@keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}fl-loading-indicator .dot-flashing.theme-dark{position:relative;width:8px;height:8px;border-radius:4px;background-color:#a7a7a7;color:#9880ff;-webkit-animation:dot-flashing-dark 2s infinite linear;animation:dot-flashing-dark 2s infinite linear;-webkit-animation-delay:0.5s;animation-delay:0.5s}@-webkit-keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}@keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}fl-loading-indicator .dot-flashing.theme-dark::before,fl-loading-indicator .dot-flashing.theme-dark::after{content:"";display:inline-block;position:absolute;top:0}fl-loading-indicator .dot-flashing.theme-dark::before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#a7a7a7;color:#9880ff;-webkit-animation:dot-flashing-dark 2s infinite linear;animation:dot-flashing-dark 2s infinite linear;-webkit-animation-delay:0s;animation-delay:0s}@keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}fl-loading-indicator .dot-flashing.theme-dark::after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#a7a7a7;color:#9880ff;-webkit-animation:dot-flashing-dark 2s infinite linear;animation:dot-flashing-dark 2s infinite linear;-webkit-animation-delay:1s;animation-delay:1s}@keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}';var Ge=e("fl_loading_indicator",function(){function e(e){t(this,e);this.theme="default"}e.prototype.render=function(){return n("span",{class:{"dots-container d-inline-flex justify-content-center":true}},n("span",{class:{"dot-flashing":true,"theme-default":this.theme==="default","theme-dark":this.theme==="dark"}}))};return e}());Ge.style=We;var Ke="fl-promise-button fl-loading-indicator{left:50%;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}";var Xe;(function(e){e[e["Available"]=0]="Available";e[e["Pending"]=1]="Pending";e[e["Error"]=2]="Error"})(Xe||(Xe={}));var Je=e("fl_promise_button",function(){function e(e){t(this,e);this.isBlockElement=false;this.isRounded=false;this.disabled=false;this.variant="primary";this.promiseFn=function(){return Promise.resolve()};this.state=Xe.Available}e.prototype.render=function(){return this.state===Xe.Pending?this.renderLoadingButton():this.renderActiveButton()};e.prototype.renderActiveButton=function(){var e=this;return n("fl-button",{disabled:this.disabled,onClick:function(){return e.clicked()},isBlockElement:this.isBlockElement,variant:this.variant},n("div",null,n("slot",null)))};e.prototype.renderLoadingButton=function(){var e=this;return n("fl-button",{disabled:true,onClick:function(){return e.clicked()},isBlockElement:this.isBlockElement,class:"position-relative",variant:this.variant},n("fl-loading-indicator",{class:"position-absolute",theme:"dark"}),n("div",{class:"invisible"},n("slot",null)))};e.prototype.clicked=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:this.state=Xe.Pending;t.label=1;case 1:t.trys.push([1,3,,4]);return[4,this.promiseFn()];case 2:t.sent();this.state=Xe.Available;return[3,4];case 3:e=t.sent();this.state=Xe.Error;throw e;case 4:return[2]}}))}))};return e}());Je.style=Ke;function Ye(){$e({type:"appReady"})}function $e(e,t){if(t===undefined)t="*";e.sender="flare";window.parent.postMessage(e,t)}function Qe(e,t){$e({type:"contentResized",height:e,width:t})}function Ze(e){$e({type:"pageNavigated",url:e})}function et(){$e({type:"complete"})}function tt(){$e({type:"submitSuccess"})}var nt={appReady:Ye,resize:Qe,navigation:Ze,complete:et,submitSuccess:tt};var rt=function(e,t,n){var r=e.get(t);if(!r){e.set(t,[n])}else if(!r.includes(n)){r.push(n)}};var it=function(e,t){var n;return function(){var r=[];for(var i=0;i<arguments.length;i++){r[i]=arguments[i]}if(n){clearTimeout(n)}n=setTimeout((function(){n=0;e.apply(void 0,r)}),t)}};var at=function(e){return!("isConnected"in e)||e.isConnected};var ot=it((function(e){for(var t=0,n=e.keys();t<n.length;t++){var r=n[t];e.set(r,e.get(r).filter(at))}}),2e3);var st=function(e){var t=e.on;var n=new Map;if(typeof i==="function"){t("dispose",(function(){n.clear()}));t("get",(function(e){var t=i();if(t){rt(n,e,t)}}));t("set",(function(e){var t=n.get(e);if(t){n.set(e,t.filter(a))}ot(n)}));t("reset",(function(){n.forEach((function(e){return e.forEach(a)}));ot(n)}))}};var ut=function(e,t){if(t===void 0){t=function(e,t){return e!==t}}var n=new Map(Object.entries(e!==null&&e!==void 0?e:{}));var r={dispose:[],get:[],set:[],reset:[]};var i=function(){n=new Map(Object.entries(e!==null&&e!==void 0?e:{}));r.reset.forEach((function(e){return e()}))};var a=function(){r.dispose.forEach((function(e){return e()}));i()};var o=function(e){r.get.forEach((function(t){return t(e)}));return n.get(e)};var s=function(e,i){var a=n.get(e);if(t(i,a,e)){n.set(e,i);r.set.forEach((function(t){return t(e,i,a)}))}};var u=typeof Proxy==="undefined"?{}:new Proxy(e,{get:function(e,t){return o(t)},ownKeys:function(e){return Array.from(n.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(e,t){return n.has(t)},set:function(e,t,n){s(t,n);return true}});var c=function(e,t){r[e].push(t);return function(){ct(r[e],t)}};var l=function(t,n){var r=c("set",(function(e,r){if(e===t){n(r)}}));var i=c("reset",(function(){return n(e[t])}));return function(){r();i()}};var f=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e.forEach((function(e){if(e.set){c("set",e.set)}if(e.get){c("get",e.get)}if(e.reset){c("reset",e.reset)}}))};return{state:u,get:o,set:s,on:c,onChange:l,use:f,dispose:a,reset:i}};var ct=function(e,t){var n=e.indexOf(t);if(n>=0){e[n]=e[e.length-1];e.length--}};var lt=function(e,t){var n=ut(e,t);st(n);return n};function ft(e,t,n){return n={path:t,exports:{},require:function(e,t){return dt()}},e(n,n.exports),n.exports}function dt(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var pt=ft((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.bindTo_=t.bind_=t.hole=t.pipe=t.untupled=t.tupled=t.absurd=t.decrement=t.increment=t.tuple=t.flow=t.flip=t.constVoid=t.constUndefined=t.constNull=t.constFalse=t.constTrue=t.constant=t.not=t.unsafeCoerce=t.identity=void 0;function n(e){return e}t.identity=n;t.unsafeCoerce=n;function r(e){return function(t){return!e(t)}}t.not=r;function i(e){return function(){return e}}t.constant=i;t.constTrue=i(true);t.constFalse=i(false);t.constNull=i(null);t.constUndefined=i(undefined);t.constVoid=t.constUndefined;function a(e){return function(t,n){return e(n,t)}}t.flip=a;function o(e,t,n,r,i,a,o,s,u){switch(arguments.length){case 1:return e;case 2:return function(){return t(e.apply(this,arguments))};case 3:return function(){return n(t(e.apply(this,arguments)))};case 4:return function(){return r(n(t(e.apply(this,arguments))))};case 5:return function(){return i(r(n(t(e.apply(this,arguments)))))};case 6:return function(){return a(i(r(n(t(e.apply(this,arguments))))))};case 7:return function(){return o(a(i(r(n(t(e.apply(this,arguments)))))))};case 8:return function(){return s(o(a(i(r(n(t(e.apply(this,arguments))))))))};case 9:return function(){return u(s(o(a(i(r(n(t(e.apply(this,arguments)))))))))}}return}t.flow=o;function s(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e}t.tuple=s;function u(e){return e+1}t.increment=u;function c(e){return e-1}t.decrement=c;function l(e){throw new Error("Called `absurd` function which should be uncallable")}t.absurd=l;function f(e){return function(t){return e.apply(void 0,t)}}t.tupled=f;function d(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return e(t)}}t.untupled=d;function p(e,t,n,r,i,a,o,s,u,c,l,f,d,p,h,v,g,m,y,b){switch(arguments.length){case 1:return e;case 2:return t(e);case 3:return n(t(e));case 4:return r(n(t(e)));case 5:return i(r(n(t(e))));case 6:return a(i(r(n(t(e)))));case 7:return o(a(i(r(n(t(e))))));case 8:return s(o(a(i(r(n(t(e)))))));case 9:return u(s(o(a(i(r(n(t(e))))))));case 10:return c(u(s(o(a(i(r(n(t(e)))))))));case 11:return l(c(u(s(o(a(i(r(n(t(e))))))))));case 12:return f(l(c(u(s(o(a(i(r(n(t(e)))))))))));case 13:return d(f(l(c(u(s(o(a(i(r(n(t(e))))))))))));case 14:return p(d(f(l(c(u(s(o(a(i(r(n(t(e)))))))))))));case 15:return h(p(d(f(l(c(u(s(o(a(i(r(n(t(e))))))))))))));case 16:return v(h(p(d(f(l(c(u(s(o(a(i(r(n(t(e)))))))))))))));case 17:return g(v(h(p(d(f(l(c(u(s(o(a(i(r(n(t(e))))))))))))))));case 18:return m(g(v(h(p(d(f(l(c(u(s(o(a(i(r(n(t(e)))))))))))))))));case 19:return y(m(g(v(h(p(d(f(l(c(u(s(o(a(i(r(n(t(e))))))))))))))))));case 20:return b(y(m(g(v(h(p(d(f(l(c(u(s(o(a(i(r(n(t(e)))))))))))))))))))}return}t.pipe=p;t.hole=l;var h=function(e,t,n){var r;return Object.assign({},e,(r={},r[t]=n,r))};t.bind_=h;var v=function(e){return function(t){var n;return n={},n[e]=t,n}};t.bindTo_=v}));var ht=ft((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.getApplySemigroup=t.getOrd=t.getEq=t.getShow=t.URI=t.wilt=t.wither=t.sequence=t.traverse=t.partitionMap=t.partition=t.filterMap=t.filter=t.separate=t.compact=t.reduceRight=t.foldMap=t.reduce=t.duplicate=t.extend=t.throwError=t.zero=t.alt=t.altW=t.flatten=t.chainFirst=t.chain=t.of=t.apSecond=t.apFirst=t.ap=t.map=t.chainNullableK=t.mapNullable=t.fromNullableK=t.getOrElse=t.getOrElseW=t.toUndefined=t.toNullable=t.fold=t.fromEither=t.getRight=t.getLeft=t.tryCatch=t.fromPredicate=t.fromNullable=t.some=t.none=t.isNone=t.isSome=void 0;t.sequenceArray=t.traverseArray=t.traverseArrayWithIndex=t.apS=t.bind=t.bindTo=t.Do=t.getRefinement=t.exists=t.elem=t.option=t.MonadThrow=t.Witherable=t.Traversable=t.Filterable=t.Compactable=t.Extend=t.Alternative=t.Alt=t.Foldable=t.Monad=t.Applicative=t.Functor=t.getMonoid=t.getLastMonoid=t.getFirstMonoid=t.getApplyMonoid=void 0;var n=function(e){return e._tag==="Some"};t.isSome=n;var r=function(e){return e._tag==="None"};t.isNone=r;t.none={_tag:"None"};var i=function(e){return{_tag:"Some",value:e}};t.some=i;function a(e){return e==null?t.none:t.some(e)}t.fromNullable=a;function o(e){return function(n){return e(n)?t.some(n):t.none}}t.fromPredicate=o;function s(e){try{return t.some(e())}catch(e){return t.none}}t.tryCatch=s;function u(e){return e._tag==="Right"?t.none:t.some(e.left)}t.getLeft=u;function c(e){return e._tag==="Left"?t.none:t.some(e.right)}t.getRight=c;t.fromEither=c;function l(e,n){return function(r){return t.isNone(r)?e():n(r.value)}}t.fold=l;function f(e){return t.isNone(e)?null:e.value}t.toNullable=f;function d(e){return t.isNone(e)?undefined:e.value}t.toUndefined=d;var p=function(e){return function(n){return t.isNone(n)?e():n.value}};t.getOrElseW=p;t.getOrElse=t.getOrElseW;function h(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return a(e.apply(void 0,t))}}t.fromNullableK=h;t.mapNullable=v;function v(e){return function(n){return t.isNone(n)?t.none:a(e(n.value))}}t.chainNullableK=v;var g=function(e,n){return pt.pipe(e,t.map(n))};var m=function(e,n){return pt.pipe(e,t.ap(n))};var y=function(e,n){return pt.pipe(e,t.chain(n))};var b=function(e,n,r){return pt.pipe(e,t.reduce(n,r))};var w=function(e){var n=t.foldMap(e);return function(e,t){return pt.pipe(e,n(t))}};var x=function(e,n,r){return pt.pipe(e,t.reduceRight(n,r))};var S=function(e){var n=t.traverse(e);return function(e,t){return pt.pipe(e,n(t))}};var _=function(e,n){return pt.pipe(e,t.alt(n))};var I=function(e,n){return pt.pipe(e,t.filter(n))};var C=function(e,n){return pt.pipe(e,t.filterMap(n))};var k=function(e,n){return pt.pipe(e,t.extend(n))};var T=function(e,n){return pt.pipe(e,t.partition(n))};var E=function(e,n){return pt.pipe(e,t.partitionMap(n))};var A=function(e){var n=t.wither(e);return function(e,t){return pt.pipe(e,n(t))}};var N=function(e){var n=t.wilt(e);return function(e,t){return pt.pipe(e,n(t))}};var F=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n.value))}};t.map=F;var P=function(e){return function(n){return t.isNone(n)?t.none:t.isNone(e)?t.none:t.some(n.value(e.value))}};t.ap=P;var O=function(e){return pt.flow(t.map((function(e){return function(){return e}})),t.ap(e))};t.apFirst=O;var R=function(e){return pt.flow(t.map((function(){return function(e){return e}})),t.ap(e))};t.apSecond=R;t.of=t.some;var D=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)}};t.chain=D;var M=function(e){return t.chain((function(n){return pt.pipe(e(n),t.map((function(){return n})))}))};t.chainFirst=M;t.flatten=t.chain(pt.identity);var L=function(e){return function(n){return t.isNone(n)?e():n}};t.altW=L;t.alt=t.altW;var U=function(){return t.none};t.zero=U;var B=function(){return t.none};t.throwError=B;var j=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n))}};t.extend=j;t.duplicate=t.extend(pt.identity);var V=function(e,n){return function(r){return t.isNone(r)?e:n(e,r.value)}};t.reduce=V;var q=function(e){return function(n){return function(r){return t.isNone(r)?e.empty:n(r.value)}}};t.foldMap=q;var z=function(e,n){return function(r){return t.isNone(r)?e:n(r.value,e)}};t.reduceRight=z;t.compact=t.flatten;var H={left:t.none,right:t.none};var W=function(e){var n=pt.pipe(e,t.map((function(e){return{left:u(e),right:c(e)}})));return t.isNone(n)?H:n.value};t.separate=W;var G=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)?n:t.none}};t.filter=G;var K=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)}};t.filterMap=K;var X=function(e){return function(t){return{left:I(t,(function(t){return!e(t)})),right:I(t,e)}}};t.partition=X;var J=function(e){return pt.flow(t.map(e),t.separate)};t.partitionMap=J;var Y=function(e){return function(n){return function(r){return t.isNone(r)?e.of(t.none):e.map(n(r.value),t.some)}}};t.traverse=Y;var $=function(e){return function(n){return t.isNone(n)?e.of(t.none):e.map(n.value,t.some)}};t.sequence=$;var Q=function(e){return function(n){return function(r){return t.isNone(r)?e.of(t.none):n(r.value)}}};t.wither=Q;var Z=function(e){return function(n){return function(r){return t.isNone(r)?e.of({left:t.none,right:t.none}):e.map(n(r.value),(function(e){return{left:u(e),right:c(e)}}))}}};t.wilt=Z;t.URI="Option";function ee(e){return{show:function(n){return t.isNone(n)?"none":"some("+e.show(n.value)+")"}}}t.getShow=ee;function te(e){return{equals:function(n,r){return n===r||(t.isNone(n)?t.isNone(r):t.isNone(r)?false:e.equals(n.value,r.value))}}}t.getEq=te;function ne(e){return{equals:te(e).equals,compare:function(n,r){return n===r?0:t.isSome(n)?t.isSome(r)?e.compare(n.value,r.value):1:-1}}}t.getOrd=ne;function re(e){return{concat:function(n,r){return t.isSome(n)&&t.isSome(r)?t.some(e.concat(n.value,r.value)):t.none}}}t.getApplySemigroup=re;function ie(e){return{concat:re(e).concat,empty:t.some(e.empty)}}t.getApplyMonoid=ie;function ae(){return{concat:function(e,n){return t.isNone(e)?n:e},empty:t.none}}t.getFirstMonoid=ae;function oe(){return{concat:function(e,n){return t.isNone(n)?e:n},empty:t.none}}t.getLastMonoid=oe;function se(e){return{concat:function(n,r){return t.isNone(n)?r:t.isNone(r)?n:t.some(e.concat(n.value,r.value))},empty:t.none}}t.getMonoid=se;t.Functor={URI:t.URI,map:g};t.Applicative={URI:t.URI,map:g,ap:m,of:t.of};t.Monad={URI:t.URI,map:g,ap:m,of:t.of,chain:y};t.Foldable={URI:t.URI,reduce:b,foldMap:w,reduceRight:x};t.Alt={URI:t.URI,map:g,alt:_};t.Alternative={URI:t.URI,map:g,ap:m,of:t.of,alt:_,zero:t.zero};t.Extend={URI:t.URI,map:g,extend:k};t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate};t.Filterable={URI:t.URI,map:g,compact:t.compact,separate:t.separate,filter:I,filterMap:C,partition:T,partitionMap:E};t.Traversable={URI:t.URI,map:g,reduce:b,foldMap:w,reduceRight:x,traverse:S,sequence:t.sequence};t.Witherable={URI:t.URI,map:g,reduce:b,foldMap:w,reduceRight:x,traverse:S,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:I,filterMap:C,partition:T,partitionMap:E,wither:A,wilt:N};t.MonadThrow={URI:t.URI,map:g,ap:m,of:t.of,chain:y,throwError:t.throwError};t.option={URI:t.URI,map:g,of:t.of,ap:m,chain:y,reduce:b,foldMap:w,reduceRight:x,traverse:S,sequence:t.sequence,zero:t.zero,alt:_,extend:k,compact:t.compact,separate:t.separate,filter:I,filterMap:C,partition:T,partitionMap:E,wither:A,wilt:N,throwError:t.throwError};function ue(e){return function(n,r){return t.isNone(r)?false:e.equals(n,r.value)}}t.elem=ue;function ce(e){return function(n){return t.isNone(n)?false:e(n.value)}}t.exists=ce;function le(e){return function(n){return t.isSome(e(n))}}t.getRefinement=le;t.Do=t.of({});var fe=function(e){return t.map(pt.bindTo_(e))};t.bindTo=fe;var de=function(e,n){return t.chain((function(r){return pt.pipe(n(r),t.map((function(t){return pt.bind_(r,e,t)})))}))};t.bind=de;var pe=function(e,n){return pt.flow(t.map((function(t){return function(n){return pt.bind_(t,e,n)}})),t.ap(n))};t.apS=pe;var he=function(e){return function(n){var r=[];for(var i=0;i<n.length;i++){var a=e(i,n[i]);if(t.isNone(a)){return t.none}r.push(a.value)}return t.some(r)}};t.traverseArrayWithIndex=he;var ve=function(e){return t.traverseArrayWithIndex((function(t,n){return e(n)}))};t.traverseArray=ve;t.sequenceArray=t.traverseArray(pt.identity)}));function vt(e){this.message=e}vt.prototype=new Error,vt.prototype.name="InvalidCharacterError";var gt="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new vt("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,a=0,o="";r=t.charAt(a++);~r&&(n=i%4?64*n+r:r,i++%4)?o+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return o};function mt(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(gt(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return gt(t)}}function yt(e){this.message=e}function bt(e,t){if("string"!=typeof e)throw new yt("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(mt(e.split(".")[n]))}catch(e){throw new yt("Invalid token specified: "+e.message)}}yt.prototype=new Error,yt.prototype.name="InvalidTokenError";var wt=undefined&&undefined.__assign||function(){wt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return wt.apply(this,arguments)};var xt=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};var St=function(e,t,n){if(n===void 0){n=false}if(!e||!t||typeof e!=="object"||typeof t!=="object")return e;var r=wt({},e);for(var i in t){if(t.hasOwnProperty(i)){if(t[i]instanceof Array&&e[i]instanceof Array){r[i]=n?xt(e[i],t[i]):t[i]}else if(typeof t[i]==="object"&&typeof e[i]==="object"){r[i]=St(e[i],t[i],n)}else{r[i]=t[i]}}}return r};var _t=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};var It={defaults:{},errorType:null,polyfills:{fetch:null,FormData:null,URLSearchParams:null,performance:null,PerformanceObserver:null,AbortController:null},polyfill:function(e,t){var n=t===void 0?{}:t,r=n.doThrow,i=r===void 0?true:r,a=n.instance,o=a===void 0?false:a;var s=[];for(var u=2;u<arguments.length;u++){s[u-2]=arguments[u]}var c=this.polyfills[e]||(typeof self!=="undefined"?self[e]:null)||(typeof global!=="undefined"?global[e]:null);if(i&&!c)throw new Error(e+" is not defined");return o&&c?new(c.bind.apply(c,_t([void 0],s))):c}};var Ct=function(e,t,n,r){if(!e.getEntriesByName)return false;var i=e.getEntriesByName(t);if(i&&i.length>0){n(i.reverse()[0]);if(r.clearMeasures)r.clearMeasures(t);Tt.callbacks.delete(t);if(Tt.callbacks.size<1){Tt.observer.disconnect();if(r.clearResourceTimings){r.clearResourceTimings()}}return true}return false};var kt=function(e,t){if(!Tt.observer&&e&&t){Tt.observer=new t((function(t){Tt.callbacks.forEach((function(n,r){Ct(t,r,n,e)}))}));if(e.clearResourceTimings)e.clearResourceTimings()}return Tt.observer};var Tt={callbacks:new Map,observer:null,observe:function(e,t){if(!e||!t)return;var n=It.polyfill("performance",{doThrow:false});var r=It.polyfill("PerformanceObserver",{doThrow:false});if(!kt(n,r))return;if(!Ct(n,e,t,n)){if(Tt.callbacks.size<1)Tt.observer.observe({entryTypes:["resource","measure"]});Tt.callbacks.set(e,t)}}};var Et=function(e){return function(t){return e.length===0?t:e.length===1?e[0](t):e.reduceRight((function(n,r,i){return i===e.length-2?r(n(t)):r(n)}))}};var At=function(){function e(e){this.error=e}return e}();var Nt=function(e){var t=e._url,n=e._catchers,r=e._resolvers,i=e._middlewares,a=e._options;var o=new Map(n);var s=St(It.defaults,a);var u=It.polyfill("AbortController",{doThrow:false,instance:true});if(!s["signal"]&&u){s["signal"]=u.signal}var c={ref:null,clear:function(){if(c.ref){clearTimeout(c.ref);c.ref=null}}};var l=Et(i)(It.polyfill("fetch"))(t,s);var f=l.catch((function(e){throw new At(e)})).then((function(e){c.clear();if(!e.ok){return e[It.errorType||"text"]().then((function(t){var n=new Error(t);n[It.errorType||"text"]=t;n["status"]=e.status;n["response"]=e;throw n}))}return e}));var d=function(t){return t.catch((function(t){c.clear();var n=t instanceof At?t.error:t;if(t instanceof At&&o.has("__fromFetch"))return o.get("__fromFetch")(n,e);else if(o.has(n.status))return o.get(n.status)(n,e);else if(o.has(n.name))return o.get(n.name)(n,e);else throw n}))};var p=function(e){return function(t){return e?d(f.then((function(t){return t&&t[e]()})).then((function(e){return t?t(e):e}))):d(f.then((function(e){return t?t(e):e})))}};var h={res:p(null),json:p("json"),blob:p("blob"),formData:p("formData"),arrayBuffer:p("arrayBuffer"),text:p("text"),perfs:function(e){l.then((function(t){return Tt.observe(t.url,e)}));return h},setTimeout:function(e,t){if(t===void 0){t=u}c.clear();c.ref=setTimeout((function(){return t.abort()}),e);return h},controller:function(){return[u,h]},error:function(e,t){o.set(e,t);return h},badRequest:function(e){return h.error(400,e)},unauthorized:function(e){return h.error(401,e)},forbidden:function(e){return h.error(403,e)},notFound:function(e){return h.error(404,e)},timeout:function(e){return h.error(408,e)},internalError:function(e){return h.error(500,e)},fetchError:function(e){return h.error("__fromFetch",e)},onAbort:function(e){return h.error("AbortError",e)}};return r.reduce((function(t,n){return n(t,e)}),h)};var Ft=undefined&&undefined.__assign||function(){Ft=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return Ft.apply(this,arguments)};var Pt=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};var Ot="application/json";var Rt="Content-Type";var Dt=function(){function e(e,t,n,r,i,a){if(n===void 0){n=new Map}if(r===void 0){r=[]}if(i===void 0){i=[]}if(a===void 0){a=[]}this._url=e;this._options=t;this._catchers=n;this._resolvers=r;this._middlewares=i;this._deferredChain=a}e.factory=function(t,n){if(t===void 0){t=""}if(n===void 0){n={}}return new e(t,n)};e.prototype.selfFactory=function(t){var n=t===void 0?{}:t,r=n.url,i=r===void 0?this._url:r,a=n.options,o=a===void 0?this._options:a,s=n.catchers,u=s===void 0?this._catchers:s,c=n.resolvers,l=c===void 0?this._resolvers:c,f=n.middlewares,d=f===void 0?this._middlewares:f,p=n.deferredChain,h=p===void 0?this._deferredChain:p;return new e(i,Ft({},o),new Map(u),Pt(l),Pt(d),Pt(h))};e.prototype.defaults=function(e,t){if(t===void 0){t=false}It.defaults=t?St(It.defaults,e):e;return this};e.prototype.errorType=function(e){It.errorType=e;return this};e.prototype.polyfills=function(e){It.polyfills=Ft(Ft({},It.polyfills),e);return this};e.prototype.url=function(e,t){if(t===void 0){t=false}if(t)return this.selfFactory({url:e});var n=this._url.split("?");return this.selfFactory({url:n.length>1?n[0]+e+"?"+n[1]:this._url+e})};e.prototype.options=function(e,t){if(t===void 0){t=true}return this.selfFactory({options:t?St(this._options,e):e})};e.prototype.query=function(e,t){if(t===void 0){t=false}return this.selfFactory({url:Mt(this._url,e,t)})};e.prototype.headers=function(e){return this.selfFactory({options:St(this._options,{headers:e||{}})})};e.prototype.accept=function(e){return this.headers({Accept:e})};e.prototype.content=function(e){var t;return this.headers((t={},t[Rt]=e,t))};e.prototype.auth=function(e){return this.headers({Authorization:e})};e.prototype.catcher=function(e,t){var n=new Map(this._catchers);n.set(e,t);return this.selfFactory({catchers:n})};e.prototype.signal=function(e){return this.selfFactory({options:Ft(Ft({},this._options),{signal:e.signal})})};e.prototype.resolve=function(e,t){if(t===void 0){t=false}return this.selfFactory({resolvers:t?[e]:Pt(this._resolvers,[e])})};e.prototype.defer=function(e,t){if(t===void 0){t=false}return this.selfFactory({deferredChain:t?[e]:Pt(this._deferredChain,[e])})};e.prototype.middlewares=function(e,t){if(t===void 0){t=false}return this.selfFactory({middlewares:t?e:Pt(this._middlewares,e)})};e.prototype.method=function(e,t,n){if(t===void 0){t={}}if(n===void 0){n=null}var r=this._options.headers;var i=!n?this:typeof n==="object"&&(!r||Object.entries(r).every((function(e){var t=e[0],n=e[1];return t.toLowerCase()!==Rt.toLowerCase()||n.startsWith(Ot)})))?this.json(n):this.body(n);i=i.options(Ft(Ft({},t),{method:e}));var a=i._deferredChain.reduce((function(e,t){return t(e,e._url,e._options)}),i);return Nt(a)};e.prototype.get=function(e){return this.method("GET",e)};e.prototype.delete=function(e){return this.method("DELETE",e)};e.prototype.put=function(e,t){return this.method("PUT",t,e)};e.prototype.post=function(e,t){return this.method("POST",t,e)};e.prototype.patch=function(e,t){return this.method("PATCH",t,e)};e.prototype.head=function(e){return this.method("HEAD",e)};e.prototype.opts=function(e){return this.method("OPTIONS",e)};e.prototype.replay=function(e){return this.method(this._options.method,e)};e.prototype.body=function(e){return this.selfFactory({options:Ft(Ft({},this._options),{body:e})})};e.prototype.json=function(e){var t;var n=(t=Object.entries(this._options.headers||{}).find((function(e){var t=e[0],n=e[1];return t.toLowerCase()===Rt.toLowerCase()&&n.startsWith(Ot)})))===null||t===void 0?void 0:t[1];return this.content(n||Ot).body(JSON.stringify(e))};e.prototype.formData=function(e,t){if(t===void 0){t=false}return this.body(Lt(e,t))};e.prototype.formUrl=function(e){return this.body(typeof e==="string"?e:Bt(e)).content("application/x-www-form-urlencoded")};return e}();var Mt=function(e,t,n){var r;if(typeof t==="string"){r=t}else{var i=It.polyfill("URLSearchParams",{instance:true});for(var a in t){if(t[a]instanceof Array){for(var o=0,s=t[a];o<s.length;o++){var u=s[o];i.append(a,u)}}else{i.append(a,t[a])}}r=i.toString()}var c=e.split("?");if(n||c.length<2)return c[0]+"?"+r;return e+"&"+r};function Lt(e,t,n,r){if(t===void 0){t=false}if(n===void 0){n=It.polyfill("FormData",{instance:true})}if(r===void 0){r=[]}Object.entries(e).forEach((function(e){var i=e[0],a=e[1];var o=r.reduce((function(e,t){return e?e+"["+t+"]":t}),null);o=o?o+"["+i+"]":i;if(a instanceof Array){for(var s=0,u=a;s<u.length;s++){var c=u[s];n.append(o+"[]",c)}}else if(t&&typeof a==="object"&&(!(t instanceof Array)||!t.includes(i))){if(a!==null){Lt(a,t,n,Pt(r,[i]))}}else{n.append(o,a)}}));return n}function Ut(e,t){return encodeURIComponent(e)+"="+encodeURIComponent(typeof t==="object"?JSON.stringify(t):""+t)}function Bt(e){return Object.keys(e).map((function(t){var n=e[t];if(n instanceof Array){return n.map((function(e){return Ut(t,e)})).join("&")}return Ut(t,n)})).join("&")}var jt=Dt.factory;jt["default"]=Dt.factory;function Vt(){var e=Gt.jwt;var t=Gt.profileId;var n=Gt.accountIdOrDefault;var r=Gt.partnerIdOrDefault;return jt(Gt.apiBaseUrl).headers({Authorization:"Bearer "+e,"X-PROFILE-ID":t,"X-PARTNER-ID":r,"X-ACCOUNT-ID":n})}var qt=function(){function e(){}e.prototype.getAustralianFundsAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Vt().url("super-choice/australian-funds?"+this.toQueryString(e)).get().notFound((function(){throw new Error("Failed to fetch the list of australian super funds.")})).json()]}))}))};e.prototype.getAppStateAsync=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,Vt().url("client-app-state").get().notFound((function(){throw new Error("Failed to fetch application configuration.")})).json()]}))}))};e.prototype.toQueryString=function(e){switch(e.type){case"partialMatch":return"search="+e.searchString+"&maxRecordCount="+e.maxRecordCount;case"usiMatch":return"usi="+e.usi}};return e}();var zt=new qt;var Ht={apiBaseUrl:ht.none,appBaseUrl:ht.none,profileId:ht.none,jwt:ht.none,superBuyer:ht.none,promotedFunds:ht.none,accountConfiguration:ht.none,hasSuccessPageBeenAcknowledged:false,hasSuperSelectionBeenSubmitted:false};var Wt=function(){function e(){var e=this;var t=lt(Ht),n=t.state,r=t.onChange;this._state=n;this._onChange=r;r("jwt",(function(t){e._state.profileId=pt.pipe(t,ht.chain((function(e){return ht.fromNullable(bt(e).sub)})))}))}Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"onChange",{get:function(){return this._onChange},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"superBuyer",{get:function(){if(ht.isNone(this._state.superBuyer)){throw Error("User information is not set")}return this._state.superBuyer.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"apiBaseUrl",{get:function(){if(ht.isNone(this._state.apiBaseUrl)){throw Error("API base URL is not set")}return this._state.apiBaseUrl.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"appBaseUrl",{get:function(){if(ht.isNone(this._state.appBaseUrl)){throw Error("App base URL is not set")}return this._state.appBaseUrl.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFunds",{get:function(){if(ht.isNone(this._state.promotedFunds)){throw Error("Promoted Funds is not set")}return this._state.promotedFunds.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"profileId",{get:function(){if(ht.isNone(this._state.profileId)){throw Error("Failed to get Profile ID from JWT")}return this._state.profileId.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"defaultFundUsi",{get:function(){return pt.pipe(this._state.accountConfiguration,ht.map((function(e){return ht.fromNullable(e.defaultFundUsi)})),ht.flatten)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"accountIdOrDefault",{get:function(){return pt.pipe(this._state.accountConfiguration,ht.map((function(e){return e.accountId})),ht.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"partnerIdOrDefault",{get:function(){return pt.pipe(this._state.superBuyer,ht.map((function(e){return e.partnerId})),ht.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"jwt",{get:function(){if(ht.isNone(this._state.jwt)){throw Error("No authentication information was found")}return this._state.jwt.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"showSmsfNotSupported",{get:function(){return pt.pipe(this._state.superBuyer,ht.map((function(e){return e.showSmsfNotSupported})),ht.getOrElse((function(){return false})))},enumerable:false,configurable:true});e.prototype.completeSuperSelectionFlow=function(){this._state.hasSuccessPageBeenAcknowledged=true};e.prototype.markSuperSelectionAsSubmitted=function(){this._state.hasSuperSelectionBeenSubmitted=true};e.prototype.loadAppStateAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,zt.getAppStateAsync()];case 1:e=t.sent();this._state.accountConfiguration=ht.fromNullable(e.accountConfiguration);this._state.superBuyer=ht.fromNullable(e.superBuyer);this._state.promotedFunds=ht.fromNullable(e.promotedFunds);return[2]}}))}))};return e}();var Gt=new Wt;var Kt=function(){function e(){}e.prototype.navigateInternally=function(e,t){var n=""+this.appBaseUrl+this.toRouteWithLeadingSlash(t);nt.navigation(n);e.push(n)};e.prototype.toExternalUrl=function(e){var t=new URL(e);t.searchParams.append("_extnav","true");return t.href};Object.defineProperty(e.prototype,"appBaseUrl",{get:function(){var e=Gt.appBaseUrl;return e.replace(/\/$/,"")},enumerable:false,configurable:true});e.prototype.toRouteWithLeadingSlash=function(e){return e.length>0&&e[0]==="/"?e:"/"+e};return e}();var Xt=new Kt;var Jt;(function(e){e["ChoicePage"]="/";e["SlateJoin"]="/slate/join/";e["SlateStandardChoice"]="/slate/standard-choice/";e["PromotedFundJoin"]="/promoted-fund/join";e["PromotedFundStandardChoice"]="/promoted-fund/standard-choice/";e["MyOwnFund"]="/super-choice/my-own-fund/";e["SelfManagedFund"]="/super-choice/smsf/";e["DefaultFund"]="/super-choice/default/";e["Success"]="/success/"})(Jt||(Jt={}));var Yt=[n("stencil-route",{exact:true,url:Jt.ChoicePage,component:"sss-super-choice-page"}),n("stencil-route",{url:Jt.SlateJoin,component:"sss-slate-join-page"}),n("stencil-route",{url:Jt.SlateStandardChoice,component:"sss-slate-standard-choice-page"}),n("stencil-route",{url:Jt.PromotedFundJoin,component:"sss-promoted-fund-join-page"}),n("stencil-route",{url:Jt.PromotedFundStandardChoice,component:"sss-promoted-fund-standard-choice-page"}),n("stencil-route",{url:Jt.MyOwnFund,component:"sss-my-own-fund"}),n("stencil-route",{url:Jt.SelfManagedFund,component:"sss-self-managed-fund"}),n("stencil-route",{url:Jt.DefaultFund,component:"sss-default-fund"}),n("stencil-route",{url:Jt.Success,component:"sss-success"})];var $t;(function(e){e["MyOwnFund"]="My Own Fund";e["DefaultFund"]="Default Fund";e["SelfManagedFund"]="Self Managed Fund"})($t||($t={}));var Qt={continueAllowed:false,nextRoute:"/",myOwnFundForm:{fundUsi:G,memberNumber:G,standardChoiceFormSignature:G},defaultFundForm:{standardChoiceFormSignature:""},selfManagedFundForm:{fundName:"",fundAbn:"",fundEsa:"",addressLine1:"",addressLine2:"",state:"",postcode:"",city:"",bankAccountName:"",bsb:"",bankAccountNumber:"",standardChoiceFormSignature:""},currentCustomFundType:$t.MyOwnFund,customFunds:[{label:$t.MyOwnFund,value:Jt.MyOwnFund},{label:$t.DefaultFund,value:Jt.DefaultFund},{label:$t.SelfManagedFund,value:Jt.SelfManagedFund}]};var Zt=lt(Qt),en=Zt.state,tn=Zt.reset;var nn=en.customFunds;var rn=e("sss_custom_fund",function(){function e(e){t(this,e);this.currentCustomFund=nn[0];this.fundOptionsList=nn}e.prototype.componentWillLoad=function(){var e="";if(window.location.pathname.includes(Jt.MyOwnFund))e=Jt.MyOwnFund;if(window.location.pathname.includes(Jt.DefaultFund))e=Jt.DefaultFund;if(window.location.pathname.includes(Jt.SelfManagedFund))e=Jt.SelfManagedFund;this.currentCustomFund=nn.find((function(t){return t.value===e}))||nn[0];Xt.navigateInternally(this.history,e)};e.prototype.render=function(){var e=this;return n("div",{class:"container"},n("div",{class:"row justify-content-center"},n("div",{class:"col col-sm-10 col-md-7"},n("p",{class:"font-weight-bold text-center"},"Choose your Super"),n("div",{class:"mb-4"},n("select",{class:"form-control",required:true,onChange:function(t){e.handleChange(t.target.value.trim())}},this.fundOptionsList.map((function(t){return n("option",{value:t.value,selected:e.currentCustomFund.value===t.value},t.label)})))),n("slot",null))))};e.prototype.handleChange=function(e){var t=nn.find((function(t){return t.value===e}))||{value:Jt.MyOwnFund};Xt.navigateInternally(this.history,t.value)};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());ee(rn);var an=function(){function e(){}e.prototype.searchFundsAsync=function(e,t){return zt.getAustralianFundsAsync({type:"partialMatch",searchString:e,maxRecordCount:t})};e.prototype.getFundByUsiAsync=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return[4,zt.getAustralianFundsAsync({type:"usiMatch",usi:e})];case 1:t=n.sent();if(t.length===1){return[2,ht.some(t[0])]}return[2,ht.none]}}))}))};return e}();var on=new an;var sn=function(){function e(){}Object.defineProperty(e,"Instance",{get:function(){return this.instance||(this.instance=new this)},enumerable:false,configurable:true});e.prototype.PostAnalyticsEventAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Vt().url("analytics-events").post(e).res()]}))}))};return e}();var un=function(){function e(){this.eventTrackingApi=sn.Instance}Object.defineProperty(e,"Instance",{get:function(){return this.instance||(this.instance=new this)},enumerable:false,configurable:true});e.prototype.TrackFinancialProductViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({FinancialProductViewed:e})]}))}))};e.prototype.TrackSuperFundPdsViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPdsViewed:e})]}))}))};e.prototype.TrackFinancialProductAcceptedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({FinancialProductAccepted:e})]}))}))};e.prototype.TrackFinancialProductRejectedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({FinancialProductRejected:e})]}))}))};e.prototype.TrackSuperFundPrivacyConfirmationAcceptedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPrivacyConfirmationAccepted:e})]}))}))};e.prototype.TrackPromotedSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{PromotedFund:e}})]}))}))};e.prototype.TrackMyOwnSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{MyOwnFund:e}})]}))}))};e.prototype.TrackSmsfSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{Smsf:e}})]}))}))};e.prototype.TrackDefaultSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{DefaultFund:e}})]}))}))};e.prototype.TrackSuperFundPanelViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPanelViewed:e})]}))}))};e.prototype.trackEventAsync=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,this.eventTrackingApi.PostAnalyticsEventAsync({event:e})];case 1:n.sent();return[3,3];case 2:t=n.sent();return[2];case 3:return[2]}}))}))};return e}();var cn={items:[]};var ln=function(){function e(){var e=lt(cn).state;this._state=e}Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:false,configurable:true});e.prototype.closeCurrent=function(){var e=xt(this._state.items);e.shift();this._state.items=e};e.prototype.clearNotifications=function(){this._state.items=[]};e.prototype.showErrorNotification=function(e,t){this.pushNotification(e,t!==null&&t!==void 0?t:0,"danger")};e.prototype.showInfoNotification=function(e,t){this.pushNotification(e,t!==null&&t!==void 0?t:0,"info")};e.prototype.showWarningNotification=function(e,t){this.pushNotification(e,t!==null&&t!==void 0?t:0,"warning")};e.prototype.showSuccessNotification=function(e,t){this.pushNotification(e,t!==null&&t!==void 0?t:0,"success")};e.prototype.pushNotification=function(e,t,n){var r=xt(this._state.items);r.push({details:e,type:n,priority:t});this._state.items=r.sort((function(e,t){return t.priority-e.priority}))};return e}();var fn=new ln;var dn=function(){function e(){}e.prototype.submitDefaultFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Vt().url("super-choice/default").post(e).badRequest((function(){throw new Error("Failed to process default fund join request")})).text()]}))}))};e.prototype.submitCustomFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Vt().url("super-choice/custom-fund").post(e).badRequest((function(){throw new Error("Failed to process custom fund join request")})).text()]}))}))};e.prototype.submitSelfManagedFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Vt().url("super-choice/smsf").post(e).badRequest((function(){throw new Error("Failed to process SMSF choice request")})).text()]}))}))};return e}();var pn=new dn;var hn=e("sss_default_fund",function(){function e(e){t(this,e);this.defaultFundProductName="Loading fund...";this.eventTrackingService=un.Instance}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:e=Gt.defaultFundUsi;if(ht.isNone(e)){return[2]}this.isDefaultFundExists=true;return[4,on.getFundByUsiAsync(e.value)];case 1:t=n.sent();if(ht.isNone(t)){this.isInvalidDefaultFund=true;fn.showErrorNotification({title:"Something is not right",description:"Couldn't find information about the configured default fund (USI "+e.value+")"});return[2]}this.defaultFund=t.value;this.defaultFundProductName=t.value.productName;return[2]}}))}))};e.prototype.componentDidLoad=function(){return this.eventTrackingService.TrackDefaultSuperFundDetailViewedAsync({fundUsi:this.defaultFund.usi,fundName:this.defaultFund.productName,promotedFundsShown:Gt.promotedFunds})};e.prototype.render=function(){var e=this;var t=function(){return n("div",{class:"card p-4"},n("p",{class:"font-weight-bold"},"No Default Fund"),n("p",{class:"mb-4 small"},"It looks like your employer has not yet defined a default fund. Please contact them if you wish to choose your company's default fund."))};var r=function(e){return[n("div",{class:"card p-4"},n("p",{class:"font-weight-bold"},"Default Fund"),n("p",{class:"mb-4 small"},"Almost there... all you have to do now is review the fund below, complete and sign the super choice form and save. Your application to join the fund is subject to Trustee approval."),n("p",{class:"font-weight-bold mt-3"},"Default Fund Name"),n("p",null,e.defaultFundName)),n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:function(e){en.defaultFundForm=Object.assign(Object.assign({},en.defaultFundForm),e.detail)}})]};return n(o,{class:"d-flex flex-fill"},n("sss-custom-fund",{class:"flex-fill"},n("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t}},this.isDefaultFundExists?n(r,{defaultFundName:this.defaultFundProductName}):n(t,null)),n("div",{class:"mt-4"},n("sss-notifications-section",null)),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"mr-2"},n("fl-button",{onClick:function(){return Xt.navigateInternally(e.history,Jt.ChoicePage)},isBlockElement:true,variant:"secondary"},n("span",null,"Back")))),n("div",{class:"flex-grow-1 w-50"},this.isDefaultFundExists&&n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:true,disabled:this.isInvalidDefaultFund,promiseFn:function(){return e.handleSubmitForm()}},n("span",null,"Save and continue")))))))};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(this.isInvalidDefaultFund){return[2]}this.formState="validated";if(!this.formElement.checkValidity())return[3,2];return[4,pn.submitDefaultFundChoiceAsync(en.defaultFundForm)];case 1:e.sent();Gt.markSuperSelectionAsSubmitted();Xt.navigateInternally(this.history,Jt.Success);e.label=2;case 2:return[2]}}))}))};return e}());var vn="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.ss-footer-logo{max-width:7rem}";var gn=e("sss_footer_section",function(){function e(e){t(this,e)}e.prototype.render=function(){return n("div",{class:"container mb-sm-0"},n("div",{class:"row justify-content-center pt-3 mt-3 mb-3 border-top"},n("div",{class:"text-decoration-none"},n("p",{class:"mt-3 small text-center mb-1 text-muted"},"Powered by Flare"))),n("div",{class:"row justify-content-center pb-sm-0 px-3 px-sm-0 text-center"},n("p",{class:"text-muted small"},"This page contains factual information only and does not take into account your particular objectives, financial circumstances or needs. If you have questions or need help making a decision about your super fund, you should speak to a licensed financial advice provider. You should consider the relevant super fund's PDS and TMD (if applicable) in deciding whether to apply to join the super fund. Each of the advertised fund's PDS and TMD (if applicable) can be found in their advertisements above. If you are considering joining another fund you can find the PDS and TMD on the fund's website. Your employer and Flare do not endorse or accept responsibility for any financial product advice or services provided by the promoters or trustees of the advertised superannuation funds. Flare do not endorse or accept responsibility for any of their content shown about any of the advertised superannuation funds as they are merely passing on the content as provided without any changes. Flare do not express any opinion or make any recommendation about any of the advertised funds.")),n("div",{class:"row justify-content-end my-1 px-3 px-sm-0"},this.appVersionBadge()))};e.prototype.appVersionBadge=function(){return n("small",{style:{opacity:"0.5"},class:"text-muted"},"Powered by Flare, v",z)};return e}());gn.style=vn;var mn=e("sss_loading_page",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(o,{class:"d-flex flex-column justify-content-center align-items-center flex-grow-1"},n("h5",null,"Loading your superannuation step"),n("fl-loading-indicator",null))};return e}());var yn=e("sss_my_own_fund",function(){function e(e){t(this,e);this.isNotAllInformationProvidedMessageVisible=false;this.eventTrackingService=un.Instance}e.prototype.componentDidLoad=function(){return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({promotedFundsShown:Gt.promotedFunds})};e.prototype.render=function(){var e=this;return n(o,{class:"d-flex flex-fill"},n("sss-custom-fund",{class:"flex-fill"},n("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t}},n("div",{class:"card p-4"},n("p",{class:"font-weight-bold"},"Fund details"),n("p",{class:"text-warning mb-4 small"},"Make sure you are already a member of the fund before completing this step."),n("sss-my-own-fund-inputs",{myOwnFundForm:en.myOwnFundForm,onFormChanged:function(t){en.myOwnFundForm=Object.assign(Object.assign({},en.myOwnFundForm),t.detail);e.isNotAllInformationProvidedMessageVisible=false}})),n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:function(e){en.myOwnFundForm=Object.assign(Object.assign({},en.myOwnFundForm),{standardChoiceFormSignature:X(e.detail.standardChoiceFormSignature)})}})),n("div",{class:"mt-4"},n("sss-notifications-section",null)),this.isNotAllInformationProvidedMessageVisible&&n("div",{class:"mt-4 alert alert-danger",role:"alert"},"All fields are required to complete submission. Make sure you have selected a fund."),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"mr-2"},n("fl-button",{onClick:function(){return Xt.navigateInternally(e.history,Jt.ChoicePage)},isBlockElement:true,variant:"secondary"},n("span",null,"Back")))),n("div",{class:"flex-grow-1 w-50"},n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:true,promiseFn:function(){return e.handleSubmitForm()}},n("span",null,"Save and continue")))))))};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:this.formState="validated";if(!this.formElement.checkValidity()){return[2]}e=H(en.myOwnFundForm.fundUsi)&&H(en.myOwnFundForm.memberNumber)&&H(en.myOwnFundForm.standardChoiceFormSignature);if(!e){this.isNotAllInformationProvidedMessageVisible=true;return[2]}t={fundUsi:this.getOrError(en.myOwnFundForm.fundUsi),memberNumber:this.getOrError(en.myOwnFundForm.memberNumber),standardChoiceFormSignature:this.getOrError(en.myOwnFundForm.standardChoiceFormSignature)};return[4,pn.submitCustomFundChoiceAsync(t)];case 1:n.sent();Gt.markSuperSelectionAsSubmitted();Xt.navigateInternally(this.history,Jt.Success);return[2]}}))}))};e.prototype.getOrError=function(e){return pt.pipe(e,$((function(){throw new Error("Option value is none.")})))};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());ee(yn);var bn=e("sss_my_own_fund_inputs",function(){function e(e){var n=this;t(this,e);this.formChanged=r(this,"formChanged",7);this.MIN_SEARCH_STRING_LENGTH=3;this.MAX_RECORD_COUNT=10;this.searchFundsAsync=function(e){return __awaiter(n,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return[4,on.searchFundsAsync(e,this.MAX_RECORD_COUNT)];case 1:t=n.sent();return[2,t.sort((function(e,t){return e.productName.localeCompare(t.productName)})).map((function(e){return{label:e.productName+" ("+e.usi+")",value:e.usi}}))]}}))}))}}e.prototype.render=function(){var e=this;return n("div",null,n("div",{class:""},n("label",{class:"mb-2 font-weight-bold"},"Superannuation Fund Name"),n("fl-dropdown-async",{searchFunction:this.searchFundsAsync,minSearchStringLength:this.MIN_SEARCH_STRING_LENGTH,required:true,requiredValidationMessage:"Select a fund",placeholder:"Search by name or USI (type at least "+this.MIN_SEARCH_STRING_LENGTH+" characters)",value:this.selectedOption,onValueChanged:function(t){e.selectedOption=t.detail;e.updateFundUsi(t.detail.value.toString())}}),n("div",{class:"invalid-feedback"},"Select a fund"),H(this.myOwnFundForm.fundUsi)&&n("div",null,n("label",{class:"mb-2 mt-3 font-weight-bold"},"Superannuation Fund USI"),n("p",{class:"mb-0"},this.myOwnFundForm.fundUsi.value),n("p",{class:"small mt-1"},"Please ensure this is the correct fund USI as some funds have similar names"))),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Member Number"),n("input",{placeholder:"Enter your member number",type:"text",class:"form-control",required:true,pattern:"[A-Za-z0-9]{4,16}",name:"memberNumber",id:"memberNumber",value:J(en.myOwnFundForm.memberNumber),onChange:function(t){return e.updateMemberNumber(t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid member number (only numbers and / or letters)")))};e.prototype.updateFundUsi=function(e){this.formChanged.emit({fundUsi:K(e)})};e.prototype.updateMemberNumber=function(e){this.formChanged.emit({memberNumber:K(e)})};return e}());var wn=e("sss_notifications_section",function(){function e(e){t(this,e)}e.prototype.disconnectedCallback=function(){fn.clearNotifications()};e.prototype.render=function(){var e=fn.state.items;if(e.length<=0)return n(o,null);var t=e[0];var r="alert alert-"+t.type;return n("div",{class:r,role:"alert"},n("div",{class:"d-flex"},n("p",{class:"mb-0 flex-grow-1"},n("strong",null,e[0].details.title)),n("button",{onClick:this.handleClose,type:"button",class:"close pb-1","aria-label":"Close"},n("span",{"aria-hidden":"true"},"×"))),n("p",{class:"mb-0 mt-1"},e[0].details.description))};e.prototype.handleClose=function(){fn.closeCurrent()};return e}());var xn={fundId:"",memberNumber:"",usi:"",standardChoiceFormSignature:""};var Sn=lt(xn).state;var _n=function(){function e(){var e=this;this.hostIsLocalSuperSelection=function(){return window.location.origin=="http://localhost:7100"};this.environmentDiscriminator=function(){return e.hostIsLocalSuperSelection()?"autodev-partner":window.location.hostname.toLowerCase().split(".")[0]};this.promotedFundJoinAppUrl=function(){return"https://"+e.environmentDiscriminator()+".flarehr.com/promoted-fund-join/embed/v1.0/web"}}e.prototype.build=function(e,t){if(!(e===null||e===void 0?void 0:e.contentDocument))return;var n=Object.assign(Object.assign({},this.getMemberData()),{partnerId:Gt.partnerIdOrDefault,accountId:Gt.accountIdOrDefault,fundId:Sn.fundId,authToken:Gt.jwt});var r=function(n){var i=n.data;if(!i){return}if(i.sender==="promoted-fund-redirect"){window.removeEventListener("message",r);switch(i.type){case"cancel":Xt.navigateInternally(t,Jt.ChoicePage);break;case"success":if(i.memberNumber){Sn.memberNumber=i.memberNumber;Sn.usi=i.usi.replace(/ /g,"");Xt.navigateInternally(t,Jt.PromotedFundStandardChoice);break}default:Xt.navigateInternally(t,Jt.ChoicePage);break}return}if(i.sender==="promoted-fund-join"){switch(i.type){case"contentResized":e.height=i.height>0?i.height:e.height;e.width=i.width>0?i.width:e.width;break;case"pageNavigated":window.scroll(e.offsetLeft,e.offsetTop);nt.navigation(window.location.href);break}}};window.addEventListener("message",r);var i=e.contentDocument;i.open();var a=i.createElement("form");a.method="POST";a.target="_self";a.action=this.promotedFundJoinAppUrl();var o;for(o in n){var s=n[o];if(s!==undefined){var u=document.createElement("input");u.type="hidden";u.name=o;u.value=s;a.append(u)}}i.appendChild(a);i.close();a.submit()};e.prototype.getMemberData=function(){var e,t;var n=Gt.superBuyer;return{title:n.userProfile.title,firstName:n.userProfile.firstName,middleName:n.userProfile.middleName,lastName:n.userProfile.lastName,dateOfBirth:n.userProfile.dateOfBirth,gender:n.userProfile.gender,email:n.userProfile.email,mobilePhone:n.userProfile.mobilePhone,taxFileNumber:(e=n.tfn)!==null&&e!==void 0?e:"",addressLine1:n.userProfile.address.addressLine1,addressLine2:(t=n.userProfile.address.addressLine2)!==null&&t!==void 0?t:"",city:n.userProfile.address.city,state:n.userProfile.address.state,postCode:n.userProfile.address.postcode}};return e}();var In=new _n;var Cn=e("sss_promoted_fund_join_page",function(){function e(e){t(this,e)}e.prototype.componentDidLoad=function(){In.build(this.iframeElement,this.history)};e.prototype.render=function(){var e=this;return n(o,{class:"d-flex flex-fill"},n("iframe",{width:"100%",height:window.innerHeight,style:{border:"none"},ref:function(t){return e.iframeElement=t}}))};return e}());var kn=function(){function e(){}e.prototype.submitChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Vt().url("super-choice/promoted-fund").post(e).badRequest((function(){throw new Error("Failed to process Promoted Fund choice request")})).text()]}))}))};return e}();var Tn=new kn;var En=e("sss_promoted_fund_standard_choice_page",function(){function e(e){t(this,e)}e.prototype.render=function(){var e=this;return n(o,{class:"d-flex flex-fill"},n("div",{class:"container"},n("div",{class:"row justify-content-center"},n("div",{class:"col col-sm-10 col-md-7"},n("div",null,n("div",null,"You're almost done, simply sign the Standard Choice Form below to finalise your superannuation choice."),n("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t}},n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:function(e){Sn.standardChoiceFormSignature=e.detail.standardChoiceFormSignature}})),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:true,promiseFn:function(){return e.handleSubmitForm()}},n("span",null,"Save and continue"))))))))))};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.formState="validated";if(!this.formElement.checkValidity())return[3,2];return[4,Tn.submitChoiceAsync(Object.assign(Object.assign({},Sn),{shownFunds:Gt.promotedFunds}))];case 1:e.sent();Gt.markSuperSelectionAsSubmitted();Xt.navigateInternally(this.history,Jt.Success);e.label=2;case 2:return[2]}}))}))};return e}());var An="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.picked-block{background-color:var(--fl-color-primary);border-top-right-radius:3px;right:0;top:0}.picked-box-border{border:2px solid var(--fl-color-primary)}";var Nn=e("sss_selected_super_choice_section",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(o,{class:"bg-white rounded-sm picked-box-border p-3"},n("div",{class:"d-flex"},n("div",{class:"flex-grow-1 font-weight-bold"},this.fundType),n("div",{class:"px-3 py-2 text-white picked-block position-absolute"},"You picked")),n("div",null,this.fundName))};return e}());Nn.style=An;var Fn=e("sss_self_managed_fund",function(){function e(e){var n=this;t(this,e);this.showSmsfNotSupported=false;this.eventTrackingService=un.Instance;this.success=function(){Gt.markSuperSelectionAsSubmitted();Xt.navigateInternally(n.history,Jt.Success)}}e.prototype.componentDidLoad=function(){return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({promotedFundsShown:Gt.promotedFunds})};e.prototype.render=function(){var e=this;return n(o,{class:"d-flex flex-fill"},n("sss-custom-fund",{class:"flex-fill"},n("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t}},n("div",{class:"card p-4"},n("p",{class:"font-weight-bold"},"Fund details"),n("p",{class:"text-warning mb-4 small"},"Make sure you are already a member of the fund before completing this step."),n("sss-self-managed-fund-inputs",{fundForm:en.selfManagedFundForm,onFormChanged:function(e){en.selfManagedFundForm=Object.assign(Object.assign({},en.selfManagedFundForm),e.detail)}})),n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:function(e){en.selfManagedFundForm=Object.assign(Object.assign({},en.selfManagedFundForm),e.detail)}}),this.showSmsfNotSupported&&n("sss-smsf-not-supported-dialog",{ref:function(t){return e.notSupportedDialog=t},onContinue:this.success})),n("div",{class:"mt-4"},n("sss-notifications-section",null)),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"mr-2"},n("fl-button",{onClick:function(){return Xt.navigateInternally(e.history,Jt.ChoicePage)},isBlockElement:true,variant:"secondary"},n("span",null,"Back")))),n("div",{class:"flex-grow-1 w-50"},n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:true,promiseFn:function(){return e.handleSubmitForm()}},n("span",null,"Save and continue")))))))};e.prototype.componentDidRender=function(){var e;this.showSmsfNotSupported&&((e=this.notSupportedDialog)===null||e===void 0?void 0:e.scrollIntoView())};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:this.formState="validated";if(!this.formElement.checkValidity())return[3,2];e={smsfChoice:{abn:en.selfManagedFundForm.fundAbn,fundName:en.selfManagedFundForm.fundName,fundAddress:{addressLine1:en.selfManagedFundForm.addressLine1,addressLine2:en.selfManagedFundForm.addressLine2,city:en.selfManagedFundForm.city,state:en.selfManagedFundForm.state,postcode:en.selfManagedFundForm.postcode},bsb:en.selfManagedFundForm.bsb,bankAccountName:en.selfManagedFundForm.bankAccountName,bankAccountNumber:en.selfManagedFundForm.bankAccountNumber,electronicServiceAddress:en.selfManagedFundForm.fundEsa},standardChoiceFormSignature:en.selfManagedFundForm.standardChoiceFormSignature};return[4,pn.submitSelfManagedFundChoiceAsync(e)];case 1:t.sent();if(Gt.showSmsfNotSupported){this.showSmsfNotSupported=true}else{this.success()}t.label=2;case 2:return[2]}}))}))};return e}());ee(Fn);var Pn={"01":"Australia and New Zealand Banking Group","03":"Westpac Banking Corporation",73:"Westpac Banking Corporation","06":"Commonwealth Bank of Australia",76:"Commonwealth Bank of Australia","08":"National Australia Bank",78:"National Australia Bank","09":"Reserve Bank of Australia",10:"BankSA (division of Westpac Bank)",11:"St George Bank (division of Westpac Bank)",33:"St George Bank (division of Westpac Bank)",12:"Bank of Queensland",14:"Rabobank",15:"Town & Country Bank",18:"Macquarie Bank",19:"Bank of Melbourne (division of Westpac Bank)",55:"Bank of Melbourne (division of Westpac Bank)",21:"JP Morgan Chase Bank",22:"BNP Paribas",23:"Bank of America",24:"Citibank & Citibank NA",510:"Citibank & Citibank NA",25:"BNP Paribas Securities",26:"Bankers Trust Australia (division of Westpac Bank)",29:"MUFG Bank",30:"Bankwest (division of Commonwealth Bank)",31:"Bank Australia",325:"Beyond Bank",34:"HSBC Bank Australia",985:"HSBC Bank Australia",35:"Bank of China",980:"Bank of China",40:"Commonwealth Bank of Australia",41:"Deutsche Bank",42:"Commonwealth Bank of Australia",52:"Commonwealth Bank of Australia",45:"OCBC Bank",46:"Advance Bank (division of Westpac Bank)",47:"Challenge Bank (division of Westpac Bank)",48:"Suncorp-Metway",664:"Suncorp-Metway",512:"Community First Credit Union",514:"RACQ Bank",517:"Volt Bank",533:"Bananacoast Community Credit Union",57:"Australian Settlements",61:"Adelaide Bank (division of Bendigo and Adelaide Bank)",611:"Endeavour Mutual Bank",823:"Endeavour Mutual Bank",630:"Greater Bank",637:"Greater Bank",632:"B&E",633:"Bendigo Bank",634:"Uniting Financial Services",638:"Heritage Bank",880:"Heritage Bank",639:"Home Building Society (division of Bank of Queensland)",640:"Hume Bank",641:"IMB",647:"IMB",642:"Australian Military Bank",645:"Auswide Bank",656:"Auswide Bank",646:"Maitland Mutual Building Society",650:"Newcastle Permanent Building Society",653:"Pioneer Permanent Building Society (division of Bank of Queensland)",654:"Queensland Country Credit Union",655:"The Rock",659:"G&C Mutual Bank",676:"Gateway Bank",70:"Indue",721:"Holiday Coast Credit Union",722:"Southern Cross Credit Union",723:"Bank of Heritage Isle",724:"MOVE",728:"Summerland Credit Union",777:"Police & Nurse",80:"Cuscal",670:"Cuscal",812:"Teachers Mutual Bank",813:"Capricornian",814:"Credit Union Australia",815:"Police Bank",817:"Warwick Credit Union",818:"Bank of Communications",819:"Industrial & Commercial Bank of China",824:"Sutherland Credit Union",825:"Big Sky Building Society",833:"Defence Bank",882:"Unity Bank",888:"China Construction Bank",90:"Australia Post",911:"Sumitomo Mitsui Banking Corporation",913:"State Street Bank & Trust Company",917:"Arab Bank Australia",918:"Mizuho Bank",922:"United Overseas Bank",923:"ING Bank",936:"ING Bank",931:"Mega International Commercial Bank",932:"Regional Australia Bank",939:"AMP Bank",941:"Delphi Bank (division of Bendigo and Adelaide Bank)",942:"Bank of Sydney",943:"Taiwan Business Bank",944:"Members Equity Bank",946:"UBS AG",951:"BOQ Specialist",969:"Tyro Payments"};var On=e("sss_self_managed_fund_inputs",function(){function e(e){t(this,e);this.formChanged=r(this,"formChanged",7);this.currentBank=G;this.stateOptions=[{value:"NSW",label:"NSW"},{value:"QLD",label:"QLD"},{value:"ACT",label:"ACT"},{value:"VIC",label:"VIC"},{value:"TAS",label:"TAS"},{value:"WA",label:"WA"},{value:"SA",label:"SA"},{value:"NT",label:"NT"}];this.bsbRegex=new RegExp(/^[0-9]{3}[0-9]{3}$/);this.bankAccountNumberRegex=new RegExp(/^[0-9]{2,10}$/)}e.prototype.render=function(){var e=this;return n("div",null,n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Fund name *"),n("input",{placeholder:"Enter your fund name",type:"text",class:"form-control",required:true,minlength:"2",name:"fundName",id:"fundName",value:en.selfManagedFundForm.fundName,onChange:function(t){return e.updateFormField("fundName",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid fund name")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Fund ABN *"),n("input",{placeholder:"Enter your fund ABN",type:"text",class:"form-control",required:true,minlength:"2",name:"fundAbn",id:"fundAbn",value:en.selfManagedFundForm.fundAbn,onChange:function(t){return e.updateFormField("fundAbn",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid fund ABN")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Electronic service address alias (ESA) *"),n("input",{placeholder:"Enter your ESA",type:"text",class:"form-control",required:true,minlength:"2",name:"fundEsa",id:"fundEsa",value:en.selfManagedFundForm.fundEsa,onChange:function(t){return e.updateFormField("fundEsa",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid fund ESA")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Address line 1 *"),n("input",{placeholder:"Enter your address",type:"text",class:"form-control",required:true,minlength:"2",name:"addressLine1",id:"addressLine1",value:en.selfManagedFundForm.addressLine1,onChange:function(t){return e.updateFormField("addressLine1",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid address")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Address line 2 (optional)"),n("input",{placeholder:"Enter your address",type:"text",class:"form-control",name:"addressLine2",id:"addressLine2",value:en.selfManagedFundForm.addressLine2,onChange:function(t){return e.updateFormField("addressLine2",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid address")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"City/suburb *"),n("input",{placeholder:"Enter your city",type:"text",class:"form-control",name:"city",required:true,id:"city",value:en.selfManagedFundForm.city,onChange:function(t){return e.updateFormField("city",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid city/suburb *")),n("div",{class:"mt-3"},n("label",{class:"mb-2 font-weight-bold"},"State *"),n("select",{class:"form-control",name:"state",required:true,id:"state",onChange:function(t){e.updateFormField("state",t.target.value.trim())}},n("option",{disabled:true,selected:!this.fundForm.state,value:""},"Select a state"),this.stateOptions.map((function(t){return n("option",{value:t.value,selected:e.fundForm.state===t.value},t.label)}))),n("div",{class:"invalid-feedback"},"Select a state")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Post code *"),n("input",{placeholder:"Enter your post code",type:"text",required:true,class:"form-control",name:"postcode",minlength:"4",maxlength:"4",pattern:"[0-9]{4}",id:"postcode",value:en.selfManagedFundForm.postcode,onChange:function(t){return e.updateFormField("postcode",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid post code")),n("div",null,n("i",{class:"fas fa-check-circle"})),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"BSB *"),n("input",{placeholder:"Enter your BSB",type:"text",required:true,class:"form-control",name:"bsb",id:"bsb",minlength:"6",maxlength:"7",onKeyUp:function(t){return e.updateCurrentBank(t)},pattern:this.bsbRegex.source,value:en.selfManagedFundForm.bsb}),H(this.currentBank)&&n("p",{class:"mt-3"},n("strong",null,"Bank name"),n("br",null),n("span",{class:"ml-2"},this.currentBank.value)),n("div",{class:"invalid-feedback"},"Enter a valid BSB")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Bank account name *"),n("input",{placeholder:"Enter your bank account name",type:"text",required:true,class:"form-control",name:"bankAccountName",minlength:"2",id:"bankAccountName",value:en.selfManagedFundForm.bankAccountName,onChange:function(t){return e.updateFormField("bankAccountName",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid bank account name")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Bank account number *"),n("input",{placeholder:"Enter your bank account number",type:"text",required:true,class:"form-control",name:"bankAccountNumber",id:"bankAccountNumber",minlength:"2",maxlength:"11",pattern:this.bankAccountNumberRegex.source,value:en.selfManagedFundForm.bankAccountNumber,onKeyUp:function(t){return e.updateCurrentBankAccountNumber(t)},onChange:function(t){return e.updateFormField("bankAccountNumber",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid bank account number")))};e.prototype.updateFormField=function(e,t){var n;this.formChanged.emit((n={},n[e]=t,n))};e.prototype.filterDigits=function(e){return e.replace(/[^0-9]/g,"")};e.prototype.updateCurrentBank=function(e){var t=this.filterDigits(e.target.value);var n=t.substring(0,2);var r=t.substring(0,3);var i=Pn[n];var a=Pn[r];if(i)this.currentBank=K(i);if(a)this.currentBank=K(a);if(t==="")this.currentBank=G;this.updateFormField("bsb",t)};e.prototype.updateCurrentBankAccountNumber=function(e){var t=this.filterDigits(e.target.value);this.updateFormField("bankAccountNumber",t)};return e}());var Rn=undefined&&undefined.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)if(o=e[s])a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a;return i>3&&a&&Object.defineProperty(t,n,a),a};var Dn;(function(e){e[e["Unauthorized"]=0]="Unauthorized";e[e["Authenticated"]=1]="Authenticated";e[e["Error"]=2]="Error"})(Dn||(Dn={}));var Mn=function(){function e(){}return e}();function Ln(){return{authenticationState:Dn.Unauthorized,jwt:G,reactNativeInterop:G,iframeInterop:G,appConfiguration:G}}var Un=function(e){__extends(t,e);function t(){return e.call(this,Ln())||this}return t}(b);Un=Rn([y({name:"sss-session",resettable:true})],Un);var Bn=new Un;var jn=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;n.store=t;return n}t.prototype.isReactNativeInteropEnabled=function(){return H(this.getValue().reactNativeInterop)};t.prototype.isIframeInteropEnabled=function(){return H(this.getValue().iframeInterop)};t.prototype.getIframeInteropMode=function(){var e=this.getValue().iframeInterop;if(W(e)){throw Error("Failed to get iframe interop information: no data in store")}if(!this.isIframeInteropEnabled()){throw Error("Failed to get iframe interop information: iframe mode is disabled")}return e.value};return t}(w);var Vn=new jn(Bn);var qn={slateFundForm:{memberNumber:"",standardChoiceFormSignature:"",shownFunds:[]}};var zn=lt(qn).state;var Hn=function(){function e(){var e=this;this.hostIsLocalSuperSelection=function(){return window.location.origin=="http://localhost:7100"};this.hostIsDeployed=function(){return window.location.origin.endsWith("partner.flarehr.com")};this.skipConsolidation=function(){return Vn.isReactNativeInteropEnabled()?"true":"false"};this.skipInsurance=function(){return Vn.isReactNativeInteropEnabled()?"true":"false"};this.environmentDiscriminator=function(){var e=window.location.hostname.toLowerCase().split(".")[0];switch(e){case"autodev-partner":case"test-partner":case"partner":case"sandbox-partner":return e.replace("partner","");default:return"autodev-"}};this.slateJoinAppUrl=function(){return"https://"+e.environmentDiscriminator()+"join.slatesuper.com.au/confirm"}}e.prototype.build=function(e,t){if(!(e===null||e===void 0?void 0:e.contentDocument))return;var n=this.hostIsLocalSuperSelection()||this.hostIsDeployed()?window.location.origin+"/super-selection/embed/v1.0/app":"https://autodev-partner.flarehr.com/super-selection/embed/v1.0/app";var r=n+"/slate-redirect.html";var i=Object.assign(Object.assign({},this.getSlateJoinMemberData()),{successRedirectUrl:r,cancelRedirectUrl:r,skipConsolidation:this.skipConsolidation(),skipInsurance:this.skipInsurance()});if(this.includeJwt()){i.authToken=Gt.jwt}var a=function(n){var r=n.data,i=n.origin;if(!r){return}if(r.sender==="slate-redirect"){window.removeEventListener("message",a);switch(r.type){case"success":if(r.memberNumber){zn.slateFundForm.memberNumber=r.memberNumber;Xt.navigateInternally(t,Jt.SlateStandardChoice);break}default:Xt.navigateInternally(t,Jt.ChoicePage);break}return}if(r.sender==="flare"&&i.endsWith("join.slatesuper.com.au")){switch(r.type){case"contentResized":e.height=r.height>0?r.height:e.height;e.width=r.width>0?r.width:e.width;break}}};window.addEventListener("message",a);var o=e.contentDocument;o.open();var s=o.createElement("form");s.method="POST";s.target="_self";s.action=this.slateJoinAppUrl();var u;for(u in i){var c=i[u];if(c!==undefined){var l=document.createElement("input");l.type="hidden";l.name=u;l.value=c;s.append(l)}}o.appendChild(s);o.close();s.submit()};e.prototype.getSlateJoinMemberData=function(){var e,t;var n=Gt.superBuyer;var r=function(e){switch(e){case"Male":return"Male";case"Female":return"Female";case"Intersex":return"Intersex/Indeterminate";default:return"Unknown"}};return{firstName:n.userProfile.firstName,middleName:n.userProfile.middleName,lastName:n.userProfile.lastName,dateOfBirth:n.userProfile.dateOfBirth,gender:r(n.userProfile.gender),email:n.userProfile.email,mobilePhone:n.userProfile.mobilePhone,taxFileNumber:(e=n.tfn)!==null&&e!==void 0?e:"",addressLine1:n.userProfile.address.addressLine1,addressLine2:(t=n.userProfile.address.addressLine2)!==null&&t!==void 0?t:"",city:n.userProfile.address.city,state:n.userProfile.address.state,postCode:n.userProfile.address.postcode}};e.prototype.includeJwt=function(){return!this.slateJoinAppUrl().match(/autodev|sandbox/)};return e}();var Wn=new Hn;var Gn=e("sss_slate_join_page",function(){function e(e){t(this,e)}e.prototype.componentDidLoad=function(){Wn.build(this.iframeElement,this.history)};e.prototype.render=function(){var e=this;return n(o,{class:"d-flex flex-fill"},n("iframe",{width:"100%",height:window.innerHeight,style:{border:"none"},ref:function(t){return e.iframeElement=t}}))};return e}());var Kn=function(){function e(){}e.prototype.submitSlateChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Vt().url("super-choice/slate").post(e).badRequest((function(){throw new Error("Failed to process Slate join request")})).text()]}))}))};return e}();var Xn=new Kn;var Jn=e("sss_slate_standard_choice_page",function(){function e(e){t(this,e)}e.prototype.render=function(){var e=this;return n(o,{class:"d-flex flex-fill"},n("div",{class:"container"},n("div",{class:"row justify-content-center"},n("div",{class:"col col-sm-10 col-md-7"},n("sss-slatesuper-header",null),n("div",null,n("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t}},n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:function(e){zn.slateFundForm=Object.assign(Object.assign({},zn.slateFundForm),e.detail)}})),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"mr-2"},n("stencil-route-link",{url:"/"},n("fl-button",{isBlockElement:true,variant:"secondary"},n("span",null,"Back"))))),n("div",{class:"flex-grow-1 w-50"},n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:true,promiseFn:function(){return e.handleSubmitForm()}},n("span",null,"Save and continue"))))))))))};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.formState="validated";if(!this.formElement.checkValidity())return[3,2];return[4,Xn.submitSlateChoiceAsync(Object.assign(Object.assign({},zn.slateFundForm),{shownFunds:Gt.promotedFunds}))];case 1:e.sent();Gt.markSuperSelectionAsSubmitted();Xt.navigateInternally(this.history,Jt.Success);e.label=2;case 2:return[2]}}))}))};return e}());var Yn="";var $n=e("sss_slatesuper_header",function(){function e(e){t(this,e)}e.prototype.render=function(){return n("div",{class:"d-flex"},n("div",null,n("img",{class:"ss-choice-logo img-thumbnail",alt:"Simple Financial Choices Pty Ltd",src:s("assets/logo-slate.png")})),n("div",{class:"d-flex flex-column ml-3 align-items-left"},n("p",{class:"confirm-title font-weight-bold mb-0"},"You’re almost there!"),n("p",{class:"confirm-text mb-0"},"To proceed type your name below which authorises the signing of the Standard Choice form confirming your super selection.")))};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());$n.style=Yn;var Qn="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.overlay{position:absolute;top:0;left:0;z-index:100;background-color:#fff;opacity:0.7;width:100%;height:100%}.dialog{z-index:101;position:relative}";var Zn=e("sss_smsf_not_supported_dialog",function(){function e(e){var n=this;t(this,e);this.continue=r(this,"continue",7);this.standardChoiceFormUrl="/super-selection/embed/v1.0/app/assets/Superannuation_Standard_Choice_Form.pdf";this.handleContinue=function(){n.continue.emit()}}e.prototype.render=function(){return n(o,null,n("div",{class:"overlay"}),n("div",{class:"dialog"},n("div",{class:"card p-4 mt-4 bg-light text-center"},n("div",{style:{"text-align":"center"}},n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"orange",viewBox:"0 0 16 16"},n("path",{d:"M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"}))),n("p",{class:"small mt-4 mb-0"},"You’ve selected a self-managed super fund (SMSF). Currently, SMSF information can’t be sent via this form. You’ll need to provide your employer with a"," ",n("a",{target:"_blank",href:this.standardChoiceFormUrl},"standard choice form")," ","for your SMSF details."),n("div",{class:"d-flex mt-4"},n("div",{class:"w-25"}),n("div",{class:"w-50"},n("fl-button",{onClick:this.handleContinue,isBlockElement:true,variant:"primary"},n("span",null,"Continue")))))))};return e}());Zn.style=Qn;var er=e("sss_standard_choice_form",function(){function e(e){t(this,e);this.standardChoiceFormSignatureUpdated=r(this,"standardChoiceFormSignatureUpdated",7);this.standardChoiceFormUrl="/super-selection/embed/v1.0/app/assets/Superannuation_Standard_Choice_Form.pdf";this.standardChoiceFormSignature=""}e.prototype.render=function(){var e=this;return n("div",{class:"card p-4 mt-4 bg-light"},n("h4",{class:"small font-weight-bold"},"Superannuation Standard Choice Form"),n("p",{class:"small mt-2"},"The superannuation"," ",n("a",{target:"_blank",href:this.standardChoiceFormUrl},"standard choice form")," ","informs your employer of your choice of fund."),n("h4",{class:"small font-weight-bold"},"Type your full name below (required)"),n("input",{placeholder:"Type your full name",type:"text",autocomplete:"off",class:"form-control",required:true,minlength:"2",name:"standardChoiceFormSignature",id:"standardChoiceFormSignature",value:this.standardChoiceFormSignature,onChange:function(t){return e.updateFormField(t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Type your full name"),n("p",{class:"small mt-3 mb-0"},"Your authorisation is required for signing this form. Applying your full name in the text field above is the same as applying your written signature and is legally binding."))};e.prototype.updateFormField=function(e){this.standardChoiceFormSignatureUpdated.emit({standardChoiceFormSignature:e})};return e}());var tr=e("sss_success",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(o,{class:"d-flex flex-fill"},n("div",{class:"container mt-5"},n("div",{class:"row justify-content-center"},n("div",{class:"col col-sm-9 col-md-6"},n("div",{class:"bg-light rounded p-4"},n("div",{class:"d-flex justify-content-center"},n("div",null,n("svg",{width:"3em",height:"3em",viewBox:"0 0 16 16",class:"bi bi-check-circle-fill text-success",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},n("path",{"fill-rule":"evenodd",d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"})))),n("div",{class:"d-flex justify-content-center"},n("p",{class:"mt-3 confirm-title text-center font-weight-bold px-5"},"Successfully updated superannuation details")),n("div",{class:"mt-2 text-center"},n("p",{class:"confirm-text mb-0"},"Your superannuation details have been updated successfully."),n("br",null),n("p",{class:"confirm-text mb-0"},"To continue with your onboarding, press ",n("strong",null,"Continue")," below."))),n("div",{class:"flex-grow-1 mt-4"},n("fl-promise-button",{isBlockElement:true,onClick:this.handleContinueButtonClick},n("span",null,"Continue")))))))};e.prototype.handleContinueButtonClick=function(e){Gt.completeSuperSelectionFlow()};return e}());var nr="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.simple-choices-text{color:#489882}.choice-card{background:#ffffff;-webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);border-radius:3px}.choice-card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.ss-choice-logo{width:auto;max-height:70px;-o-object-fit:contain;object-fit:contain}img{width:100%;display:block}.choice-component{width:100%;position:relative}.flexible{-ms-flex-positive:1;flex-grow:1}.fund-item{margin-top:1rem}.promoted-picked-block{background-color:var(--fl-color-primary);border-bottom-right-radius:3px;left:0;top:0}@media (min-width: 992px){.bottom-half-fund-tile{height:250px}}";var rr=e("sss_super_choice_item",function(){function e(e){t(this,e);this.joinFundClicked=r(this,"joinFundClicked",7);this.eventTrackingService=un.Instance}e.prototype.render=function(){var e=this;return n(o,{class:{"d-flex p-3 fund-item":true,"ss-picked-fund":this.isSelected}},n("div",{class:"card-body py-0 px-0 px-xl-3"},this.isSelected&&n("div",{class:"px-3 py-2 text-white promoted-picked-block position-absolute"},"You picked"),n("div",{class:"d-flex flex-fill flex-column align-items-center"},n("div",{class:"d-flex justify-content-end w-100"},n("div",{class:"text-muted small border rounded-sm px-1 mt-n2 mr-n2 mb-1"},"Advertised")),n("img",{class:"ss-choice-logo",alt:this.name,src:s("assets/"+this.logo)}),n("p",{class:"font-weight-bold text-center mt-3 mb-0"},this.name),this.subText&&n("span",{class:"text-muted small text-center font-italic"},this.subText),n("div",{class:"mt-3"},JSON.parse(this.features).map((function(e){return n("p",{class:"text-center"},e.value)}))),this.featureSubText&&n("p",{class:"small text-muted text-center font-italic"},this.featureSubText))),n("div",{class:"text-center bottom-half-fund-tile"},n("div",{class:"p-3"},n("fl-button",{class:"uuid-button-continue",isBlockElement:true,onClick:function(){return e.handleFundClick()}},"Choose this fund")),n("div",{class:"mb-2"},n("a",{target:"_blank",href:this.pdsLink,onClick:function(){return e.pdsViewedAsync()}},this.pdsLinkText?this.pdsLinkText:"View the PDS")),this.disclaimer,n("div",{class:"small text-muted"},this.abnInfo,n("br",null),"ABN: ",this.abn)))};e.prototype.handleFundClick=function(){return this.joinFundClicked.emit()};e.prototype.pdsViewedAsync=function(){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:this.usi,fundName:this.name,pageName:"Panel Fund Page"})};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());rr.style=nr;var ir={Id:"slate",Name:"Slate Super",PdsUrl:"https://slate.co/pds/?utm_source=flare&utm_medium=superselection",Usi:"32367272075001",DiversaAbn:"49 006 421 638"};var ar={Id:"australian-retirement-trust",Name:"Australian Retirement Trust",PdsUrl:"https://www.australianretirementtrust.com.au/library/media/pdfs/pds/super-savings-product-disclosure-statement-and-membership-form.pdf",Abn:"60 905 115 063"};var or={Id:"aware",Name:"Aware Super",PdsUrlText:"View the PDS and TMD",PdsUrl:"https://aware.com.au/member/forms-and-resources/pds/FSS",Abn:"53 226 460 365"};var sr={Id:"active",Name:"Active Super",PdsUrlText:"View the PDS",PdsUrl:"https://www.activesuper.com.au/pds",Abn:"28 901 371 321"};var ur=[{dtoPropName:"slate",id:ir.Id},{dtoPropName:"australianRetirementTrust",id:ar.Id},{dtoPropName:"aware",id:or.Id},{dtoPropName:"active",id:sr.Id}];var cr=function(){function e(){}e.prototype.GetChosenFundAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,r,i,a,r,o,s;return __generator(this,(function(u){switch(u.label){case 0:n=(e=Gt.superBuyer.superChoice)===null||e===void 0?void 0:e.choiceDetails;if(!n)return[2,G];if(!("promoted"in n))return[3,1];r=ur.find((function(e){return e.dtoPropName in n.promoted}));i=(t=r===null||r===void 0?void 0:r.id)!==null&&t!==void 0?t:"";return[2,K({isPromoted:true,promotedId:i})];case 1:if(!("smsf"in n))return[3,2];return[2,K({isPromoted:false,name:n.smsf.fundName,type:"Self Managed Fund"})];case 2:if(!("myOwnFund"in n))return[3,4];a=n.myOwnFund.usi;return[4,this.getFundByUsiAsync(a)];case 3:r=u.sent();return[2,K({isPromoted:false,name:H(r)?r.value.productName:a,type:"My Own Fund"})];case 4:if(!("default"in n))return[3,6];o=n.default.usi;return[4,this.getFundByUsiAsync(o)];case 5:s=u.sent();return[2,K({isPromoted:false,name:H(s)?s.value.productName:o,type:"Default Fund"})];case 6:return[2,G]}}))}))};e.prototype.getFundByUsiAsync=function(e){return on.getFundByUsiAsync(e)};return e}();var lr=new cr;var fr="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.simple-choices-text{color:#489882}.choice-card{background:#ffffff;-webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);border-radius:3px}.choice-card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.ss-choice-logo{width:auto;max-height:70px;-o-object-fit:contain;object-fit:contain}img{width:100%;display:block}.choice-component{width:100%;position:relative}.flexible{-ms-flex-positive:1;flex-grow:1}.fund-item{margin-top:1rem}.promoted-picked-block{background-color:var(--fl-color-primary);border-bottom-right-radius:3px;left:0;top:0}@media (min-width: 992px){.bottom-half-fund-tile{height:250px}}";var dr=e("sss_super_choice_page",function(){function e(e){var n=this;t(this,e);this.promotedFunds=this.getPromotedFunds();this.chosenFund=G;this.eventTrackingService=un.Instance;this.isPromotedFundSelected=function(e){return H(n.chosenFund)&&n.chosenFund.value.isPromoted&&n.chosenFund.value.promotedId===e}}e.prototype.componentDidLoad=function(){nt.appReady();var e=this.promotedFunds.map((function(e){return e.fundId}));this.eventTrackingService.TrackSuperFundPanelViewedAsync({promotedFundsShown:e})};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this;return[4,lr.GetChosenFundAsync()];case 1:e.chosenFund=t.sent();return[2]}}))}))};e.prototype.render=function(){var e=this;var t="The choice of superannuation fund is an important personal financial decision. It is open to you to continue with your existing fund, or alternatively, you can select from one of the funds below or choose another fund. Flare is not licensed to advise you in relation to this decision and you may wish to return to this page at a later stage.";var r="The content on this page and on the following pages relating to each super fund is provided by the trustee or promoter of the super fund. The super funds presented have not been selected by your employer and neither your employer or Flare are making any recommendation or opinion.";var i="There are many super funds out there and you should consider the relevant product disclosure statement and choose one that is right for you. If you are unsure, obtain your own advice. You can choose your super fund later, if you need time to obtain advice.";var a="You should be aware that, if you do choose one of these advertised funds, Flare and its associated entities will normally receive a fee for you doing so.";var s="https://my.gov.au";var u="my.gov.au";var c="https://www.apra.gov.au/register-of-superannuation-institutions";var l="www.apra.gov.au/register-of-superannuation-institutions";return n(o,null,n("div",{class:"container mt-0 mb-0"},n("div",{class:"row justify-content-center"},n("div",{class:"col"},n("h3",{class:"mt-3 font-weight-bold text-center mb-4"},"Choose your Super"))),n("div",{class:"row justify-content-center"},n("div",{class:"col"},n("p",{class:"text-center font-weight-bold"},t),n("p",{class:"text-center"},r),n("p",{class:"text-center"},i))),n("div",{class:"row"},n("div",{class:"col"},n("sss-notifications-section",null))),n("div",{class:"row justify-content-center mt-4"},n("div",{class:"col col-sm-10 col-md-8 col-xl-7"},n("div",{class:"row"},n("div",{class:"col"},n("div",{class:"d-flex flex-fill"},H(this.chosenFund)&&!this.chosenFund.value.isPromoted&&n("sss-selected-super-choice-section",{fundType:this.chosenFund.value.type,fundName:this.chosenFund.value.name,class:"flex-fill position-relative"})))),n("div",{class:"row mt-3 justify-content-center"},this.getPromotedFunds().map((function(t){return n("div",{class:"col-12 col-lg-6 d-flex"},n("sss-super-choice-item",{class:"card mb-3 mb-lg-0 mx-0 flex-grow-1",logo:t.logo,isSelected:e.isPromotedFundSelected(t.fundId),usi:t.usi,name:t.name,subText:t.subText,pdsLinkText:t.pdsLinkText,pdsLink:Xt.toExternalUrl(t.pdsLink),features:JSON.stringify(t.features),featureSubText:t.featureSubText,disclaimer:t.disclaimer,abnInfo:t.abnInfo,abn:t.abn,onJoinFundClicked:function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.handleJoinSuperClickAsync(t)]}))}))}}))}))),n("div",{class:"row mt-3 px-3"},n("div",{class:"col p-4 border rounded bg-light"},n("div",{class:"row"},n("div",{class:"col"},n("h5",{class:"font-weight-bold"},"Choose another super fund"),n("p",{class:"mb-1"},"Select this option if you'd like to use your current account with another super fund."),n("ul",{class:"ml-n3"},n("li",null,"If you are unsure of your current super fund details, you can find out at"," ",n("a",{target:"_blank",href:Xt.toExternalUrl(s)},u)),n("li",{class:"mt-1"},"A full list of super funds can be viewed at"," ",n("a",{target:"_blank",href:Xt.toExternalUrl(c)},l))))),n("div",{class:"row"},n("div",{class:"col"},n("stencil-route-link",{url:Jt.MyOwnFund},n("fl-button",{isBlockElement:true,variant:"primary",class:"d-lg-none"},"Choose another fund"),n("div",{class:"mt-n3 d-none d-lg-flex justify-content-end align-items-end"},n("fl-button",{variant:"primary"},"Choose another fund"))))))))),n("div",{class:"row justify-content-center mt-5"},n("div",{class:"col"},n("p",{class:"text-center"},a)))))};e.prototype.allFunds=function(){var e=this;return[{fundId:ir.Id,usi:ir.Usi,name:ir.Name,logo:"logo-slate.png",route:Jt.SlateJoin,pdsLink:ir.PdsUrl,features:[{order:1,value:"A lifestage investment strategy that evolves with you"},{order:2,value:"Advanced mobile app with retirement forecast and smart features"},{order:3,value:"Member advocates at Slate to assist with your account"}],disclaimer:n("p",{class:"small text-muted"},"You should consider the"," ",n("a",{target:"_blank",href:Xt.toExternalUrl(ir.PdsUrl),onClick:function(){return e.pdsViewedAsync(ir.Name,ir.Usi)}},"Product Disclosure Statement")," ","and"," ",n("a",{target:"_blank",href:Xt.toExternalUrl("https://slate.co/forms-and-documents/target-market-determination/")},"Target Market Determination")," ","before deciding to invest in or apply to become a member of the fund."),abnInfo:"Diversa Trustees Limited",abn:ir.DiversaAbn},{fundId:ar.Id,name:ar.Name,subText:"QSuper is now part of Australian Retirement Trust. If you have an existing QSuper account, you will continue to hold that account by selecting this option.",logo:"logo-art.svg",route:Jt.PromotedFundJoin,pdsLink:ar.PdsUrl,features:[{order:1,value:"$200 billion in retirement savings"},{order:2,value:"2+ million members"},{order:3,value:"A focus on delivering strong, long‑term returns"}],disclaimer:n("p",{class:"small text-muted"},"You should consider the"," ",n("a",{target:"_blank",href:Xt.toExternalUrl(ar.PdsUrl),onClick:function(){return e.pdsViewedAsync(ar.Name)}},"Product Disclosure Statement")," ","before deciding to invest in or apply to become a member of this fund."),abnInfo:"Australian Retirement Trust",abn:ar.Abn},{fundId:or.Id,name:or.Name,subText:"An industry fund for all",logo:"logo-aware.svg",route:Jt.PromotedFundJoin,pdsLinkText:or.PdsUrlText,pdsLink:or.PdsUrl,features:[{order:1,value:"Acting on climate change"},{order:2,value:"All profits go to members"},{order:3,value:"One of Australia’s largest funds"}],disclaimer:n("p",{class:"small text-muted"},"You should consider the"," ",n("a",{target:"_blank",href:Xt.toExternalUrl(or.PdsUrl),onClick:function(){return e.pdsViewedAsync(or.Name)}},"Product Disclosure Statement")," ","before deciding to invest in or apply to become a member of this fund."),abnInfo:"Aware Super Pty Ltd",abn:or.Abn},{fundId:sr.Id,name:sr.Name,logo:"logo-active.svg",route:Jt.PromotedFundJoin,pdsLinkText:sr.PdsUrlText,pdsLink:sr.PdsUrl,features:[{order:1,value:"One of Canstar's top-performing funds*"},{order:2,value:"Recognised as a leader in responsible investment"},{order:3,value:"Calls answered in 20 seconds (average over 5 years)"}],featureSubText:"*Past performance does not indicate future performance. As at 22/4/22, Active Super ranked in Canstar’s top 5 funds for 18-49 year-olds with balances up to $250K based on returns over 5 years in Accumulation Scheme.",disclaimer:n("p",{class:"small text-muted"},"Issued by LGSS Pty Limited as trustee for Local Government Super (Active Super ABN:28 901 371 321). Consider the PDS and TMD at"," ",n("a",{target:"_blank",onClick:function(){return e.pdsViewedAsync(sr.Name)},href:Xt.toExternalUrl(sr.PdsUrl)},"activesuper.com.au")," ","before making a decision."),abnInfo:"Local Government Super (Active Super)",abn:sr.Abn}]};e.prototype.getPromotedFunds=function(){var e=this;var t=[];Gt.promotedFunds.forEach((function(n){var r=e.allFunds().find((function(e){return n==e.fundId}));if(r!==undefined){t.push(r)}}));return t};e.prototype.handleJoinSuperClickAsync=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:t=Gt.promotedFunds;if(!(e.fundId===ir.Id))return[3,2];return[4,this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundUsi:ir.Usi,fundName:ir.Name,promotedFundId:ir.Id,promotedFundsShown:t})];case 1:n.sent();return[3,8];case 2:if(!(e.fundId===ar.Id))return[3,4];return[4,this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundName:ar.Name,promotedFundId:ar.Id,promotedFundsShown:t})];case 3:n.sent();Sn.fundId=e.fundId;return[3,8];case 4:if(!(e.fundId===or.Id))return[3,6];return[4,this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundName:or.Name,promotedFundId:or.Id,promotedFundsShown:t})];case 5:n.sent();Sn.fundId=e.fundId;return[3,8];case 6:if(!(e.fundId===sr.Id))return[3,8];return[4,this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundName:sr.Name,promotedFundId:sr.Id,promotedFundsShown:t})];case 7:n.sent();Sn.fundId=e.fundId;n.label=8;case 8:return[2,Xt.navigateInternally(this.history,e.route)]}}))}))};e.prototype.pdsViewedAsync=function(e,t){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:t,fundName:e,pageName:"Panel Fund Page"})};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());dr.style=fr;var pr="stencil-route.inactive{display:none}";var hr=e("stencil_route",function(){function e(e){t(this,e);this.group=null;this.match=null;this.componentProps={};this.exact=false;this.scrollOnNextRender=false;this.previousMatch=null}e.prototype.computeMatch=function(e){var t=this.group!=null||this.el.parentElement!=null&&this.el.parentElement.tagName.toLowerCase()==="stencil-route-switch";if(!e||t){return}this.previousMatch=this.match;return this.match=Pe(e.pathname,{path:this.url,exact:this.exact,strict:true})};e.prototype.loadCompleted=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){e={};if(this.history&&this.history.location.hash){e={scrollToId:this.history.location.hash.substr(1)}}else if(this.scrollTopOffset){e={scrollTopOffset:this.scrollTopOffset}}if(typeof this.componentUpdated==="function"){this.componentUpdated(e)}else if(this.match&&!Oe(this.match,this.previousMatch)&&this.routeViewsUpdated){this.routeViewsUpdated(e)}return[2]}))}))};e.prototype.componentDidUpdate=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.loadCompleted()];case 1:e.sent();return[2]}}))}))};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.loadCompleted()];case 1:e.sent();return[2]}}))}))};e.prototype.render=function(){if(!this.match||!this.history){return null}var e=Object.assign({},this.componentProps,{history:this.history,match:this.match});if(this.routeRender){return this.routeRender(Object.assign({},e,{component:this.component}))}if(this.component){var t=this.component;return n(t,Object.assign({},e))}};Object.defineProperty(e.prototype,"el",{get:function(){return u(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{location:["computeMatch"]}},enumerable:false,configurable:true});return e}());k.injectProps(hr,["location","history","historyType","routeViewsUpdated"]);hr.style=pr;var vr=function(e,t,n){return n(e.confirm(t))};var gr=function(e){return e.metaKey||e.altKey||e.ctrlKey||e.shiftKey};var mr=function(e){var t=e.navigator.userAgent;if((t.indexOf("Android 2.")!==-1||t.indexOf("Android 4.0")!==-1)&&t.indexOf("Mobile Safari")!==-1&&t.indexOf("Chrome")===-1&&t.indexOf("Windows Phone")===-1){return false}return e.history&&"pushState"in e.history};var yr=function(e){return e.userAgent.indexOf("Trident")===-1};var br=function(e){return e.userAgent.indexOf("Firefox")===-1};var wr=function(e,t){return t.state===undefined&&e.userAgent.indexOf("CriOS")===-1};var xr=function(e,t){var n=e[t];var r="__storage_test__";try{n.setItem(r,r);n.removeItem(r);return true}catch(e){return e instanceof DOMException&&(e.code===22||e.code===1014||e.name==="QuotaExceededError"||e.name==="NS_ERROR_DOM_QUOTA_REACHED")&&n.length!==0}};var Sr=function(e,t){if(e.charAt(0)=="/"&&t.charAt(t.length-1)=="/"){return t.slice(0,t.length-1)+e}return t+e};var _r=e("stencil_route_link",function(){function e(e){t(this,e);this.unsubscribe=function(){return};this.activeClass="link-active";this.exact=false;this.strict=true;this.custom="a";this.match=null}e.prototype.componentWillLoad=function(){this.computeMatch()};e.prototype.computeMatch=function(){if(this.location){this.match=Pe(this.location.pathname,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict})}};e.prototype.handleClick=function(e){if(gr(e)||!this.history||!this.url||!this.root){return}e.preventDefault();return this.history.push(Sr(this.url,this.root))};e.prototype.render=function(){var e;var t={class:(e={},e[this.activeClass]=this.match!==null,e),onClick:this.handleClick.bind(this)};if(this.anchorClass){t.class[this.anchorClass]=true}if(this.custom==="a"){t=Object.assign({},t,{href:this.url,title:this.anchorTitle,role:this.anchorRole,tabindex:this.anchorTabIndex,"aria-haspopup":this.ariaHaspopup,id:this.anchorId,"aria-posinset":this.ariaPosinset,"aria-setsize":this.ariaSetsize,"aria-label":this.ariaLabel})}return n(this.custom,Object.assign({},t),n("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return u(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{location:["computeMatch"]}},enumerable:false,configurable:true});return e}());k.injectProps(_r,["history","location","root"]);var Ir=function(){return((Math.random()*1e17).toString().match(/.{4}/g)||[]).join("-")};var Cr=function(e,t,n){return Pe(e,{path:t,exact:n,strict:true})};var kr=function(e){return e.tagName==="STENCIL-ROUTE"};var Tr=e("stencil_route_switch",function(){function e(e){t(this,e);this.group=Ir();this.subscribers=[];this.queue=c(this,"queue")}e.prototype.componentWillLoad=function(){if(this.location!=null){this.regenerateSubscribers(this.location)}};e.prototype.regenerateSubscribers=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n;var r=this;return __generator(this,(function(i){if(e==null){return[2]}t=-1;this.subscribers=Array.prototype.slice.call(this.el.children).filter(kr).map((function(n,r){var i=Cr(e.pathname,n.url,n.exact);if(i&&t===-1){t=r}return{el:n,match:i}}));if(t===-1){return[2]}if(this.activeIndex===t){this.subscribers[t].el.match=this.subscribers[t].match;return[2]}this.activeIndex=t;n=this.subscribers[this.activeIndex];if(this.scrollTopOffset){n.el.scrollTopOffset=this.scrollTopOffset}n.el.group=this.group;n.el.match=n.match;n.el.componentUpdated=function(e){r.queue.write((function(){r.subscribers.forEach((function(e,t){e.el.componentUpdated=undefined;if(t===r.activeIndex){return e.el.style.display=""}if(r.scrollTopOffset){e.el.scrollTopOffset=r.scrollTopOffset}e.el.group=r.group;e.el.match=null;e.el.style.display="none"}))}));if(r.routeViewsUpdated){r.routeViewsUpdated(Object.assign({scrollTopOffset:r.scrollTopOffset},e))}};return[2]}))}))};e.prototype.render=function(){return n("slot",null)};Object.defineProperty(e.prototype,"el",{get:function(){return u(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{location:["regenerateSubscribers"]}},enumerable:false,configurable:true});return e}());k.injectProps(Tr,["location","routeViewsUpdated"]);var Er=function(e){var t=[];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}if(!e){console.warn.apply(console,t)}};var Ar=function(){var e;var t=[];var n=function(t){Er(e==null,"A history supports only one prompt at a time");e=t;return function(){if(e===t){e=null}}};var r=function(t,n,r,i){if(e!=null){var a=typeof e==="function"?e(t,n):e;if(typeof a==="string"){if(typeof r==="function"){r(a,i)}else{Er(false,"A history needs a getUserConfirmation function in order to use a prompt message");i(true)}}else{i(a!==false)}}else{i(true)}};var i=function(e){var n=true;var r=function(){var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}if(n){e.apply(void 0,t)}};t.push(r);return function(){n=false;t=t.filter((function(e){return e!==r}))}};var a=function(){var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}t.forEach((function(t){return t.apply(void 0,e)}))};return{setPrompt:n,confirmTransitionTo:r,appendListener:i,notifyListeners:a}};var Nr=function(e,t){if(t===void 0){t="scrollPositions"}var n=new Map;var r=function(t,r){n.set(t,r);if(xr(e,"sessionStorage")){var i=[];n.forEach((function(e,t){i.push([t,e])}));e.sessionStorage.setItem("scrollPositions",JSON.stringify(i))}};var i=function(e){return n.get(e)};var a=function(e){return n.has(e)};var o=function(t){r(t,[e.scrollX,e.scrollY])};if(xr(e,"sessionStorage")){var s=e.sessionStorage.getItem(t);n=s?new Map(JSON.parse(s)):n}if("scrollRestoration"in e.history){history.scrollRestoration="manual"}return{set:r,get:i,has:a,capture:o}};var Fr="popstate";var Pr="hashchange";var Or=function(e,t){if(t===void 0){t={}}var n=false;var r=e.history;var i=e.location;var a=e.navigator;var o=mr(e);var s=!yr(a);var u=Nr(e);var c=t.forceRefresh!=null?t.forceRefresh:false;var l=t.getUserConfirmation!=null?t.getUserConfirmation:vr;var f=t.keyLength!=null?t.keyLength:6;var d=t.basename?ve(ge(t.basename)):"";var p=function(){try{return e.history.state||{}}catch(e){return{}}};var h=function(e){e=e||{};var t=e.key,n=e.state;var r=i.pathname,a=i.search,o=i.hash;var s=r+a+o;Er(!d||pe(s,d),"You are attempting to use a basename on a page whose URL path does not begin "+'with the basename. Expected path "'+s+'" to begin with "'+d+'".');if(d){s=he(s,d)}return Te(s,n,t||Se(f))};var v=Ar();var g=function(e){u.capture(R.location.key);Object.assign(R,e);R.location.scrollPosition=u.get(R.location.key);R.length=r.length;v.notifyListeners(R.location,R.action)};var m=function(e){if(!wr(a,e)){b(h(e.state))}};var y=function(){b(h(p()))};var b=function(e){if(n){n=false;g()}else{var t="POP";v.confirmTransitionTo(e,t,l,(function(n){if(n){g({action:t,location:e})}else{w(e)}}))}};var w=function(e){var t=R.location;var r=S.indexOf(t.key);var i=S.indexOf(e.key);if(r===-1){r=0}if(i===-1){i=0}var a=r-i;if(a){n=true;E(a)}};var x=h(p());var S=[x.key];var _=0;var I=false;var C=function(e){return d+be(e)};var k=function(e,t){Er(!(typeof e==="object"&&e.state!==undefined&&t!==undefined),"You should avoid providing a 2nd state argument to push when the 1st "+"argument is a location-like object that already has state; it is ignored");var n="PUSH";var a=Te(e,t,Se(f),R.location);v.confirmTransitionTo(a,n,l,(function(e){if(!e){return}var t=C(a);var s=a.key,u=a.state;if(o){r.pushState({key:s,state:u},"",t);if(c){i.href=t}else{var l=S.indexOf(R.location.key);var f=S.slice(0,l===-1?0:l+1);f.push(a.key);S=f;g({action:n,location:a})}}else{Er(u===undefined,"Browser history cannot push state in browsers that do not support HTML5 history");i.href=t}}))};var T=function(e,t){Er(!(typeof e==="object"&&e.state!==undefined&&t!==undefined),"You should avoid providing a 2nd state argument to replace when the 1st "+"argument is a location-like object that already has state; it is ignored");var n="REPLACE";var a=Te(e,t,Se(f),R.location);v.confirmTransitionTo(a,n,l,(function(e){if(!e){return}var t=C(a);var s=a.key,u=a.state;if(o){r.replaceState({key:s,state:u},"",t);if(c){i.replace(t)}else{var l=S.indexOf(R.location.key);if(l!==-1){S[l]=a.key}g({action:n,location:a})}}else{Er(u===undefined,"Browser history cannot replace state in browsers that do not support HTML5 history");i.replace(t)}}))};var E=function(e){r.go(e)};var A=function(){return E(-1)};var N=function(){return E(1)};var F=function(t){_+=t;if(_===1){e.addEventListener(Fr,m);if(s){e.addEventListener(Pr,y)}}else if(_===0){e.removeEventListener(Fr,m);if(s){e.removeEventListener(Pr,y)}}};var P=function(e){if(e===void 0){e=""}var t=v.setPrompt(e);if(!I){F(1);I=true}return function(){if(I){I=false;F(-1)}return t()}};var O=function(e){var t=v.appendListener(e);F(1);return function(){F(-1);t()}};var R={length:r.length,action:"POP",location:x,createHref:C,push:k,replace:T,go:E,goBack:A,goForward:N,block:P,listen:O,win:e};return R};var Rr="hashchange";var Dr={hashbang:{encodePath:function(e){return e.charAt(0)==="!"?e:"!/"+me(e)},decodePath:function(e){return e.charAt(0)==="!"?e.substr(1):e}},noslash:{encodePath:me,decodePath:ge},slash:{encodePath:ge,decodePath:ge}};var Mr=function(e,t){if(t===void 0){t={}}var n=false;var r=null;var i=0;var a=false;var o=e.location;var s=e.history;var u=br(e.navigator);var c=t.keyLength!=null?t.keyLength:6;var l=t.getUserConfirmation,f=l===void 0?vr:l,d=t.hashType,p=d===void 0?"slash":d;var h=t.basename?ve(ge(t.basename)):"";var v=Dr[p],g=v.encodePath,m=v.decodePath;var y=function(){var e=o.href;var t=e.indexOf("#");return t===-1?"":e.substring(t+1)};var b=function(e){return o.hash=e};var w=function(e){var t=o.href.indexOf("#");o.replace(o.href.slice(0,t>=0?t:0)+"#"+e)};var x=function(){var e=m(y());Er(!h||pe(e,h),"You are attempting to use a basename on a page whose URL path does not begin "+'with the basename. Expected path "'+e+'" to begin with "'+h+'".');if(h){e=he(e,h)}return Te(e,undefined,Se(c))};var S=Ar();var _=function(e){Object.assign(j,e);j.length=s.length;S.notifyListeners(j.location,j.action)};var I=function(){var e=y();var t=g(e);if(e!==t){w(t)}else{var i=x();var a=j.location;if(!n&&ke(a,i)){return}if(r===be(i)){return}r=null;C(i)}};var C=function(e){if(n){n=false;_()}else{var t="POP";S.confirmTransitionTo(e,t,f,(function(n){if(n){_({action:t,location:e})}else{k(e)}}))}};var k=function(e){var t=j.location;var r=N.lastIndexOf(be(t));var i=N.lastIndexOf(be(e));if(r===-1){r=0}if(i===-1){i=0}var a=r-i;if(a){n=true;R(a)}};var T=y();var E=g(T);if(T!==E){w(E)}var A=x();var N=[be(A)];var F=function(e){return"#"+g(h+be(e))};var P=function(e,t){Er(t===undefined,"Hash history cannot push state; it is ignored");var n="PUSH";var i=Te(e,undefined,Se(c),j.location);S.confirmTransitionTo(i,n,f,(function(e){if(!e){return}var t=be(i);var a=g(h+t);var o=y()!==a;if(o){r=t;b(a);var s=N.lastIndexOf(be(j.location));var u=N.slice(0,s===-1?0:s+1);u.push(t);N=u;_({action:n,location:i})}else{Er(false,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack");_()}}))};var O=function(e,t){Er(t===undefined,"Hash history cannot replace state; it is ignored");var n="REPLACE";var i=Te(e,undefined,Se(c),j.location);S.confirmTransitionTo(i,n,f,(function(e){if(!e){return}var t=be(i);var a=g(h+t);var o=y()!==a;if(o){r=t;w(a)}var s=N.indexOf(be(j.location));if(s!==-1){N[s]=t}_({action:n,location:i})}))};var R=function(e){Er(u,"Hash history go(n) causes a full page reload in this browser");s.go(e)};var D=function(){return R(-1)};var M=function(){return R(1)};var L=function(e,t){i+=t;if(i===1){e.addEventListener(Rr,I)}else if(i===0){e.removeEventListener(Rr,I)}};var U=function(t){if(t===void 0){t=""}var n=S.setPrompt(t);if(!a){L(e,1);a=true}return function(){if(a){a=false;L(e,-1)}return n()}};var B=function(t){var n=S.appendListener(t);L(e,1);return function(){L(e,-1);n()}};var j={length:s.length,action:"POP",location:A,createHref:F,push:P,replace:O,go:R,goBack:D,goForward:M,block:U,listen:B,win:e};return j};var Lr=function(e,t){var n=e.pathname.indexOf(t)==0?"/"+e.pathname.slice(t.length):e.pathname;return Object.assign({},e,{pathname:n})};var Ur={browser:Or,hash:Mr};var Br=e("stencil_router",function(){function e(e){var n=this;t(this,e);this.root="/";this.historyType="browser";this.titleSuffix="";this.routeViewsUpdated=function(e){if(e===void 0){e={}}if(n.history&&e.scrollToId&&n.historyType==="browser"){var t=n.history.win.document.getElementById(e.scrollToId);if(t){return t.scrollIntoView()}}n.scrollTo(e.scrollTopOffset||n.scrollTopOffset)};this.isServer=c(this,"isServer");this.queue=c(this,"queue")}e.prototype.componentWillLoad=function(){var e=this;this.history=Ur[this.historyType](this.el.ownerDocument.defaultView);this.history.listen((function(t){t=Lr(t,e.root);e.location=t}));this.location=Lr(this.history.location,this.root)};e.prototype.scrollTo=function(e){var t=this.history;if(e==null||this.isServer||!t){return}if(t.action==="POP"&&Array.isArray(t.location.scrollPosition)){return this.queue.write((function(){if(t&&t.location&&Array.isArray(t.location.scrollPosition)){t.win.scrollTo(t.location.scrollPosition[0],t.location.scrollPosition[1])}}))}return this.queue.write((function(){t.win.scrollTo(0,e)}))};e.prototype.render=function(){if(!this.location||!this.history){return}var e={historyType:this.historyType,location:this.location,titleSuffix:this.titleSuffix,root:this.root,history:this.history,routeViewsUpdated:this.routeViewsUpdated};return n(k.Provider,{state:e},n("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return u(this)},enumerable:false,configurable:true});return e}());var jr="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}stencil-route{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto}stencil-route:empty{display:none}";var Vr=e("super_selection_app",function(){function e(e){t(this,e);this.stepSubmitSuccess=r(this,"step-completion",7);this.successPageAcknowledged=r(this,"successPageAcknowledged",5);this.initialised=r(this,"initialised",7);this.isAppInitialised=false}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n;var r=this;return __generator(this,(function(i){e=ht.fromNullable(this.accessToken);if(ht.isNone(e)){throw Error("jwt property is missing.")}Gt.state.jwt=e;t=ht.fromNullable(this.backendUrl);if(ht.isNone(t)){throw Error("apiBaseUrl property is missing.")}Gt.state.apiBaseUrl=ht.some(t.value.replace(/\/$/,"")+"/");n=ht.fromNullable(this.appBaseUrl);if(ht.isNone(n)){throw Error("appBaseUrl property is missing.")}Gt.state.appBaseUrl=ht.some(n.value.replace(/\/$/,""));Gt.onChange("hasSuccessPageBeenAcknowledged",(function(e){return r.successPageAcknowledged.emit()}));Gt.onChange("hasSuperSelectionBeenSubmitted",(function(e){if(!e)return;r.stepSubmitSuccess.emit();Gt.state.hasSuperSelectionBeenSubmitted=false}));return[2]}))}))};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,Gt.loadAppStateAsync()];case 1:e.sent();this.isAppInitialised=true;this.initialised.emit({accountIdOrDefault:Gt.accountIdOrDefault,partnerIdOrDefault:Gt.partnerIdOrDefault,profileId:Gt.profileId});return[2]}}))}))};e.prototype.authTokenChanged=function(e){Gt.state.jwt=ht.fromNullable(e)};e.prototype.onRouteChange=function(){window===null||window===void 0?void 0:window.scroll(0,0)};e.prototype.render=function(){return n(o,{class:"d-flex justify-content-center flex-grow-1"},n("div",{class:"d-flex flex-column justify-content-between"},this.renderAppContent()))};e.prototype.routerBaseUrl=function(){var e;return((e=this.appBaseUrl)===null||e===void 0?void 0:e.replace(/\/$/,""))+"/"};e.prototype.renderAppContent=function(){return n("stencil-router",{root:this.routerBaseUrl()},n("stencil-route-switch",{scrollTopOffset:0},n("div",{class:"d-flex flex-column"},n("div",{class:"d-flex justify-content-center"},this.isAppInitialised?Yt:n("fl-loading-indicator",{class:"mt-5"})),n("div",{class:"d-flex justify-content-center"},n("sss-footer-section",null)))))};Object.defineProperty(e,"watchers",{get:function(){return{accessToken:["authTokenChanged"],location:["onRouteChange"]}},enumerable:false,configurable:true});return e}());ee(Vr);Vr.style=jr;var qr=[];var zr=function(){return qr.some((function(e){return e.activeTargets.length>0}))};var Hr=function(){return qr.some((function(e){return e.skippedTargets.length>0}))};var Wr="ResizeObserver loop completed with undelivered notifications.";var Gr=function(){var e;if(typeof ErrorEvent==="function"){e=new ErrorEvent("error",{message:Wr})}else{e=document.createEvent("Event");e.initEvent("error",false,false);e.message=Wr}window.dispatchEvent(e)};var Kr;(function(e){e["BORDER_BOX"]="border-box";e["CONTENT_BOX"]="content-box";e["DEVICE_PIXEL_CONTENT_BOX"]="device-pixel-content-box"})(Kr||(Kr={}));var Xr=function(e){return Object.freeze(e)};var Jr=function(){function e(e,t){this.inlineSize=e;this.blockSize=t;Xr(this)}return e}();var Yr=function(){function e(e,t,n,r){this.x=e;this.y=t;this.width=n;this.height=r;this.top=this.y;this.left=this.x;this.bottom=this.top+this.height;this.right=this.left+this.width;return Xr(this)}e.prototype.toJSON=function(){var e=this,t=e.x,n=e.y,r=e.top,i=e.right,a=e.bottom,o=e.left,s=e.width,u=e.height;return{x:t,y:n,top:r,right:i,bottom:a,left:o,width:s,height:u}};e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)};return e}();var $r=function(e){return e instanceof SVGElement&&"getBBox"in e};var Qr=function(e){if($r(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)};var Zr=function(e){var t,n;var r=(n=(t=e)===null||t===void 0?void 0:t.ownerDocument)===null||n===void 0?void 0:n.defaultView;return!!(r&&e instanceof r.Element)};var ei=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image"){break}case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return true}return false};var ti=typeof window!=="undefined"?window:{};var ni=new WeakMap;var ri=/auto|scroll/;var ii=/^tb|vertical/;var ai=/msie|trident/i.test(ti.navigator&&ti.navigator.userAgent);var oi=function(e){return parseFloat(e||"0")};var si=function(e,t,n){if(e===void 0){e=0}if(t===void 0){t=0}if(n===void 0){n=false}return new Jr((n?t:e)||0,(n?e:t)||0)};var ui=Xr({devicePixelContentBoxSize:si(),borderBoxSize:si(),contentBoxSize:si(),contentRect:new Yr(0,0,0,0)});var ci=function(e,t){if(t===void 0){t=false}if(ni.has(e)&&!t){return ni.get(e)}if(Qr(e)){ni.set(e,ui);return ui}var n=getComputedStyle(e);var r=$r(e)&&e.ownerSVGElement&&e.getBBox();var i=!ai&&n.boxSizing==="border-box";var a=ii.test(n.writingMode||"");var o=!r&&ri.test(n.overflowY||"");var s=!r&&ri.test(n.overflowX||"");var u=r?0:oi(n.paddingTop);var c=r?0:oi(n.paddingRight);var l=r?0:oi(n.paddingBottom);var f=r?0:oi(n.paddingLeft);var d=r?0:oi(n.borderTopWidth);var p=r?0:oi(n.borderRightWidth);var h=r?0:oi(n.borderBottomWidth);var v=r?0:oi(n.borderLeftWidth);var g=f+c;var m=u+l;var y=v+p;var b=d+h;var w=!s?0:e.offsetHeight-b-e.clientHeight;var x=!o?0:e.offsetWidth-y-e.clientWidth;var S=i?g+y:0;var _=i?m+b:0;var I=r?r.width:oi(n.width)-S-x;var C=r?r.height:oi(n.height)-_-w;var k=I+g+x+y;var T=C+m+w+b;var E=Xr({devicePixelContentBoxSize:si(Math.round(I*devicePixelRatio),Math.round(C*devicePixelRatio),a),borderBoxSize:si(k,T,a),contentBoxSize:si(I,C,a),contentRect:new Yr(f,u,I,C)});ni.set(e,E);return E};var li=function(e,t,n){var r=ci(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case Kr.DEVICE_PIXEL_CONTENT_BOX:return o;case Kr.BORDER_BOX:return i;default:return a}};var fi=function(){function e(e){var t=ci(e);this.target=e;this.contentRect=t.contentRect;this.borderBoxSize=Xr([t.borderBoxSize]);this.contentBoxSize=Xr([t.contentBoxSize]);this.devicePixelContentBoxSize=Xr([t.devicePixelContentBoxSize])}return e}();var di=function(e){if(Qr(e)){return Infinity}var t=0;var n=e.parentNode;while(n){t+=1;n=n.parentNode}return t};var pi=function(){var e=Infinity;var t=[];qr.forEach((function n(r){if(r.activeTargets.length===0){return}var i=[];r.activeTargets.forEach((function t(n){var r=new fi(n.target);var a=di(n.target);i.push(r);n.lastReportedSize=li(n.target,n.observedBox);if(a<e){e=a}}));t.push((function e(){r.callback.call(r.observer,i,r.observer)}));r.activeTargets.splice(0,r.activeTargets.length)}));for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e};var hi=function(e){qr.forEach((function t(n){n.activeTargets.splice(0,n.activeTargets.length);n.skippedTargets.splice(0,n.skippedTargets.length);n.observationTargets.forEach((function t(r){if(r.isActive()){if(di(r.target)>e){n.activeTargets.push(r)}else{n.skippedTargets.push(r)}}}))}))};var vi=function(){var e=0;hi(e);while(zr()){e=pi();hi(e)}if(Hr()){Gr()}return e>0};var gi;var mi=[];var yi=function(){return mi.splice(0).forEach((function(e){return e()}))};var bi=function(e){if(!gi){var t=0;var n=document.createTextNode("");var r={characterData:true};new MutationObserver((function(){return yi()})).observe(n,r);gi=function(){n.textContent=""+(t?t--:t++)}}mi.push(e);gi()};var wi=function(e){bi((function t(){requestAnimationFrame(e)}))};var xi=0;var Si=function(){return!!xi};var _i=250;var Ii={attributes:true,characterData:true,childList:true,subtree:true};var Ci=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"];var ki=function(e){if(e===void 0){e=0}return Date.now()+e};var Ti=false;var Ei=function(){function e(){var e=this;this.stopped=true;this.listener=function(){return e.schedule()}}e.prototype.run=function(e){var t=this;if(e===void 0){e=_i}if(Ti){return}Ti=true;var n=ki(e);wi((function(){var r=false;try{r=vi()}finally{Ti=false;e=n-ki();if(!Si()){return}if(r){t.run(1e3)}else if(e>0){t.run(e)}else{t.start()}}}))};e.prototype.schedule=function(){this.stop();this.run()};e.prototype.observe=function(){var e=this;var t=function(){return e.observer&&e.observer.observe(document.body,Ii)};document.body?t():ti.addEventListener("DOMContentLoaded",t)};e.prototype.start=function(){var e=this;if(this.stopped){this.stopped=false;this.observer=new MutationObserver(this.listener);this.observe();Ci.forEach((function(t){return ti.addEventListener(t,e.listener,true)}))}};e.prototype.stop=function(){var e=this;if(!this.stopped){this.observer&&this.observer.disconnect();Ci.forEach((function(t){return ti.removeEventListener(t,e.listener,true)}));this.stopped=true}};return e}();var Ai=new Ei;var Ni=function(e){!xi&&e>0&&Ai.start();xi+=e;!xi&&Ai.stop()};var Fi=function(e){return!$r(e)&&!ei(e)&&getComputedStyle(e).display==="inline"};var Pi=function(){function e(e,t){this.target=e;this.observedBox=t||Kr.CONTENT_BOX;this.lastReportedSize={inlineSize:0,blockSize:0}}e.prototype.isActive=function(){var e=li(this.target,this.observedBox,true);if(Fi(this.target)){this.lastReportedSize=e}if(this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize){return true}return false};return e}();var Oi=function(){function e(e,t){this.activeTargets=[];this.skippedTargets=[];this.observationTargets=[];this.observer=e;this.callback=t}return e}();var Ri=new WeakMap;var Di=function(e,t){for(var n=0;n<e.length;n+=1){if(e[n].target===t){return n}}return-1};var Mi=function(){function e(){}e.connect=function(e,t){var n=new Oi(e,t);Ri.set(e,n)};e.observe=function(e,t,n){var r=Ri.get(e);var i=r.observationTargets.length===0;if(Di(r.observationTargets,t)<0){i&&qr.push(r);r.observationTargets.push(new Pi(t,n&&n.box));Ni(1);Ai.schedule()}};e.unobserve=function(e,t){var n=Ri.get(e);var r=Di(n.observationTargets,t);var i=n.observationTargets.length===1;if(r>=0){i&&qr.splice(qr.indexOf(n),1);n.observationTargets.splice(r,1);Ni(-1)}};e.disconnect=function(e){var t=this;var n=Ri.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)}));n.activeTargets.splice(0,n.activeTargets.length)};return e}();var Li=function(){function e(e){if(arguments.length===0){throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.")}if(typeof e!=="function"){throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.")}Mi.connect(this,e)}e.prototype.observe=function(e,t){if(arguments.length===0){throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.")}if(!Zr(e)){throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element")}Mi.observe(this,e,t)};e.prototype.unobserve=function(e){if(arguments.length===0){throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.")}if(!Zr(e)){throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element")}Mi.unobserve(this,e)};e.prototype.disconnect=function(){Mi.disconnect(this)};e.toString=function(){return"function ResizeObserver () { [polyfill code] }"};return e}();var Ui=function(){function e(){var e=this;this._appRootUrl=new Q((function(){return e.resolveRootUrl()}));this.getAppRootUrl=function(){return e._appRootUrl.value};this.getAppHostUrl=function(){return(""+window.location.origin+e.getAppRootUrl()).replace(/\/$/,"")}}e.prototype.loadConfigurationAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,jt(this.getAppRootUrl()+"config.json").get().json()];case 1:e=t.sent();Bn.update({appConfiguration:ht.fromNullable(e)});return[2]}}))}))};e.prototype.resolveRootUrl=function(){var e=ht.fromNullable(window.location.pathname.match(/^\/super-selection\/embed\/v1.0\/app/));if(ht.isNone(e)){throw Error("Unsupported host URL")}return e.value[0]+"/"};return e}();var Bi=new Ui;var ji="function";var Vi="object";var qi="undefined";var zi="prototype";var Hi="hasOwnProperty";function Wi(){if(typeof globalThis!==qi&&globalThis){return globalThis}if(typeof self!==qi&&self){return self}if(typeof window!==qi&&window){return window}if(typeof global!==qi&&global){return global}return null}function Gi(e){var t=Object["create"];if(t){return t(e)}if(e==null){return{}}var n=typeof e;if(n!==Vi&&n!==ji){throw new TypeError("Object prototype may only be an Object:"+e)}function r(){}r[zi]=e;return new r}function Ki(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t){if(Object[zi][Hi].call(t,i)){e[i]=t[i]}}}return e}var Xi=function(e,t){Xi=Object["setPrototypeOf"]||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t){if(t[Hi](n)){e[n]=t[n]}}};return Xi(e,t)};function Ji(e,t){Xi(e,t);function n(){this.constructor=e}e[zi]=t===null?Gi(t):(n[zi]=t[zi],new n)}var Yi=Wi()||{};(function(e,t,n){if(!e.__assign){e.__assign=Object.assign||t}if(!e.__extends){e.__extends=n}})(Yi,Ki,Ji);if(!__assign){__assign=Yi.__assign}if(!__extends){__extends=Yi.__extends}var $i={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5};var Qi=qi;var Zi=Vi;var ea=zi;var ta=ji;var na="window";var ra="document";var ia="navigator";var aa="history";var oa="location";var sa="console";var ua="performance";var ca="JSON";var la="crypto";var fa="msCrypto";var da="ReactNative";var pa=Wi;function ha(e){var t=pa();if(t&&t[e]){return t[e]}if(e===na&&va()){return window}return null}function va(){return Boolean(typeof window===Zi&&window)}function ga(){if(va()){return window}return ha(na)}function ma(){return Boolean(typeof document===Zi&&document)}function ya(){if(ma()){return document}return ha(ra)}function ba(){return Boolean(typeof navigator===Zi&&navigator)}function wa(){if(ba()){return navigator}return ha(ia)}function xa(){return Boolean(typeof history===Zi&&history)}function Sa(){if(xa()){return history}return ha(aa)}function _a(){if(typeof location===Zi&&location){return location}return ha(oa)}function Ia(){if(typeof console!==Qi){return console}return ha(sa)}function Ca(){return ha(ua)}function ka(){return Boolean(typeof JSON===Zi&&JSON||ha(ca)!==null)}function Ta(){if(ka()){return JSON||ha(ca)}return null}function Ea(){return ha(la)}function Aa(){return ha(fa)}function Na(){var e=wa();if(e&&e.product){return e.product===da}return false}var Fa="on";var Pa="attachEvent";var Oa="addEventListener";var Ra="detachEvent";var Da="removeEventListener";var Ma=4294967296;var La=4294967295;var Ua=null;var Ba=false;var ja=123456789;var Va=987654321;function qa(e){if(e<0){e>>>=0}ja=123456789+e&La;Va=987654321-e&La;Ba=true}function za(){qa(Math.random()*Ma^(new Date).getTime())}function Ha(e,t){return typeof e===t}function Wa(e){return Ha(e,qi)||e===undefined}function Ga(e){return Wa(e)||e===null}function Ka(e,t){return e&&Object[zi].hasOwnProperty.call(e,t)}function Xa(e){return Ha(e,Vi)}function Ja(e){return Ha(e,ji)}function Ya(e,t,n,r){if(r===void 0){r=false}var i=false;if(!Ga(e)){try{if(!Ga(e[Oa])){e[Oa](t,n,r);i=true}else if(!Ga(e[Pa])){e[Pa](Fa+t,n);i=true}}catch(e){}}return i}function $a(e,t,n,r){if(r===void 0){r=false}if(!Ga(e)){try{if(!Ga(e[Da])){e[Da](t,n,r)}else if(!Ga(e[Ra])){e[Ra](Fa+t,n)}}catch(e){}}}function Qa(e){var t=e;var n=/([^\w\d_$])/g;if(n.test(e)){t=e.replace(n,"_")}return t}function Za(e,t){if(e&&Xa(e)){for(var n in e){if(Ka(e,n)){t.call(e,n,e[n])}}}}var eo=function(){function e(){}e.isDate=function(e){return Object[zi].toString.call(e)==="[object Date]"};e.isArray=function(e){return Object[zi].toString.call(e)==="[object Array]"};e.isError=function(e){return Object[zi].toString.call(e)==="[object Error]"};e.isString=function(e){return Ha(e,"string")};e.isNumber=function(e){return Ha(e,"number")};e.isBoolean=function(e){return Ha(e,"boolean")};e.disableCookies=function(){e._canUseCookies=false};e.newGuid=function(){function t(){return e.randomValue(15)}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(to,(function(e){var n=t()|0,r=e==="x"?n:n&3|8;return r.toString(16)}))};e.toISOString=function(t){if(e.isDate(t)){var n=function(e){var t=String(e);if(t.length===1){t="0"+t}return t};return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())+"."+String((t.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}};e.arrForEach=function(e,t,n){var r=e.length;for(var i=0;i<r;i++){if(i in e){t.call(n||e,e[i],i,e)}}};e.arrIndexOf=function(e,t,n){var r=e.length;var i=n||0;for(var a=Math.max(i>=0?i:r-Math.abs(i),0);a<r;a++){if(a in e&&e[a]===t){return a}}return-1};e.arrMap=function(e,t,n){var r=e.length;var i=n||e;var a=new Array(r);for(var o=0;o<r;o++){if(o in e){a[o]=t.call(i,e[o],e)}}return a};e.arrReduce=function(e,t,n){var r=e.length;var i=0;var a;if(arguments.length>=3){a=arguments[2]}else{while(i<r&&!(i in e)){i++}a=e[i++]}while(i<r){if(i in e){a=t(a,e[i],i,e)}i++}return a};e.strTrim=function(t){if(!e.isString(t)){return t}return t.replace(/^\s+|\s+$/g,"")};e.objKeys=function(e){var t=!{toString:null}.propertyIsEnumerable("toString");if(!Ja(e)&&(!Xa(e)||e===null)){throw new TypeError("objKeys called on non-object")}var n=[];for(var r in e){if(Ka(e,r)){n.push(r)}}if(t){var i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];var a=i.length;for(var o=0;o<a;o++){if(Ka(e,i[o])){n.push(i[o])}}}return n};e.objDefineAccessors=function(e,t,n,r){var i=Object["defineProperty"];if(i){try{var a={enumerable:true,configurable:true};if(n){a.get=n}if(r){a.set=r}i(e,t,a);return true}catch(e){}}return false};e.addEventHandler=function(e,t){var n=false;var r=ga();if(r){n=Ya(r,e,t);n=Ya(r["body"],e,t)||n}var i=ya();if(i){n=no.Attach(i,e,t)||n}return n};e.dateNow=function(){var e=Date;if(e.now){return e.now()}return(new e).getTime()};e.perfNow=function(){var t=Ca();if(t&&t.now){return t.now()}return e.dateNow()};e.newId=function(t){if(t===void 0){t=22}var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var r=e.random32()>>>0;var i=0;var a="";while(a.length<t){i++;a+=n.charAt(r&63);r>>>=6;if(i===5){r=(e.random32()<<2&4294967295|r&3)>>>0;i=0}}return a};e.isIE=function(){if(Ua===null){var e=wa()||{};var t=(e.userAgent||"").toLowerCase();Ua=t.indexOf("msie")!==-1||t.indexOf("trident/")!==-1}return Ua};e.randomValue=function(t){if(t>0){return Math.floor(e.random32()/La*(t+1))>>>0}return 0};e.random32=function(t){var n;var r=Ea()||Aa();if(r&&r.getRandomValues){n=r.getRandomValues(new Uint32Array(1))[0]&La}else if(e.isIE()){if(!Ba){za()}n=e.mwcRandom32()&La}else{n=Math.floor(Ma*Math.random()|0)}if(!t){n>>>=0}return n};e.mwcRandomSeed=function(e){if(!e){za()}else{qa(e)}};e.mwcRandom32=function(e){Va=36969*(Va&65535)+(Va>>16)&La;ja=18e3*(ja&65535)+(ja>>16)&La;var t=(Va<<16)+(ja&65535)>>>0&La|0;if(!e){t>>>=0}return t};e.generateW3CId=function(){var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];var n="",r;for(var i=0;i<4;i++){r=e.random32();n+=t[r&15]+t[r>>4&15]+t[r>>8&15]+t[r>>12&15]+t[r>>16&15]+t[r>>20&15]+t[r>>24&15]+t[r>>28&15]}var a=t[8+(e.random32()&3)|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+a+n.substr(16,3)+n.substr(19,12)};e.isTypeof=Ha;e.isUndefined=Wa;e.isNullOrUndefined=Ga;e.hasOwnProperty=Ka;e.isFunction=Ja;e.isObject=Xa;e.objCreate=Gi;return e}();var to=/[xy]/g;var no=function(){function e(){}e.Attach=Ya;e.AttachEvent=Ya;e.Detach=$a;e.DetachEvent=$a;return e}();var ro;(function(e){e[e["CRITICAL"]=1]="CRITICAL";e[e["WARNING"]=2]="WARNING"})(ro||(ro={}));var io={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103};
2
2
  /*!
3
3
  * Microsoft Dynamic Proto Utility, 1.1.0
4
4
  * Copyright (c) Microsoft and contributors. All rights reserved.