@flarehr/apollo-super-selection 5.57.17073 → 5.59.18050

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.
Files changed (27) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
  2. package/dist/lib/apollo-super-selection/p-2f07912f.entry.js +14 -0
  3. package/dist/lib/apollo-super-selection/p-4ca10ecd.js +1 -0
  4. package/dist/lib/apollo-super-selection/p-bd6e6a8f.system.js +1 -1
  5. package/dist/lib/apollo-super-selection/{p-2590548f.system.js → p-c60c8281.system.js} +1 -1
  6. package/dist/lib/apollo-super-selection/p-cf6d9d21.system.entry.js +69 -0
  7. package/dist/lib/apollo-super-selection/p-dc0abac1.entry.js +1 -0
  8. package/dist/lib/apollo-super-selection/p-e4862f8c.system.entry.js +1 -0
  9. package/dist/lib/cjs/{custom-fund-choice.api-713823d3.js → custom-fund-choice.api-538e59d2.js} +117 -0
  10. package/dist/lib/cjs/sss-button_31.cjs.entry.js +22 -133
  11. package/dist/lib/cjs/sss-super-byof-host.cjs.entry.js +6 -1
  12. package/dist/lib/collection/components/super-byof/super-byof.js +7 -1
  13. package/dist/lib/collection/components/super-smsf/super-smsf.js +7 -1
  14. package/dist/lib/esm/{custom-fund-choice.api-45fa478c.js → custom-fund-choice.api-b7f9d60c.js} +117 -1
  15. package/dist/lib/esm/sss-button_31.entry.js +7 -118
  16. package/dist/lib/esm/sss-super-byof-host.entry.js +6 -1
  17. package/dist/lib/esm-es5/{custom-fund-choice.api-45fa478c.js → custom-fund-choice.api-b7f9d60c.js} +1 -1
  18. package/dist/lib/esm-es5/sss-button_31.entry.js +5 -5
  19. package/dist/lib/esm-es5/sss-super-byof-host.entry.js +1 -1
  20. package/dist/lib/types/components/super-byof/super-byof.d.ts +1 -0
  21. package/dist/lib/types/components/super-smsf/super-smsf.d.ts +1 -0
  22. package/package.json +1 -1
  23. package/dist/lib/apollo-super-selection/p-645755ee.system.entry.js +0 -1
  24. package/dist/lib/apollo-super-selection/p-6b03f1b2.entry.js +0 -1
  25. package/dist/lib/apollo-super-selection/p-8cb7c7f3.entry.js +0 -14
  26. package/dist/lib/apollo-super-selection/p-99266549.js +0 -1
  27. package/dist/lib/apollo-super-selection/p-be94959a.system.entry.js +0 -69
@@ -0,0 +1 @@
1
+ import{e as n,f as t,h as e}from"./p-db0bded8.js";import{A as r}from"./p-fdadb647.js";var u=function(n){return"Some"===n._tag},i=function(n){return"None"===n._tag},o={_tag:"None"},s=function(n){return{_tag:"Some",value:n}};function c(n){return null==n?o:s(n)}function a(n){return i(n)?void 0:n.value}function f(n){r.injectProps(n,["history","location"])}function d(n,t){void 0===t&&(t="*"),n.sender="flare",window.parent.postMessage(n,t)}const l={appReady:function(){d({type:"appReady"})},resize:function(n,t){d({type:"contentResized",height:n,width:t})},navigation:function(n){d({type:"pageNavigated",url:n})},complete:function(){d({type:"complete"})},submitSuccess:function(){d({type:"submitSuccess"})}},h=n=>!("isConnected"in n)||n.isConnected,p=(()=>{let n;return(...t)=>{n&&clearTimeout(n),n=setTimeout((()=>{n=0,(n=>{for(let t of n.keys())n.set(t,n.get(t).filter(h))})(...t)}),2e3)}})(),m=(e,r)=>{const u=((n,t=((n,t)=>n!==t))=>{let e=new Map(Object.entries(null!=n?n:{}));const r={dispose:[],get:[],set:[],reset:[]},u=()=>{e=new Map(Object.entries(null!=n?n:{})),r.reset.forEach((n=>n()))},i=n=>(r.get.forEach((t=>t(n))),e.get(n)),o=(n,u)=>{const i=e.get(n);t(u,i,n)&&(e.set(n,u),r.set.forEach((t=>t(n,u,i))))},s="undefined"==typeof Proxy?{}:new Proxy(n,{get:(n,t)=>i(t),ownKeys:()=>Array.from(e.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(n,t)=>e.has(t),set:(n,t,e)=>(o(t,e),!0)}),c=(n,t)=>(r[n].push(t),()=>{((n,t)=>{const e=n.indexOf(t);e>=0&&(n[e]=n[n.length-1],n.length--)})(r[n],t)});return{state:s,get:i,set:o,on:c,onChange:(t,e)=>{const r=c("set",((n,r)=>{n===t&&e(r)})),u=c("reset",(()=>e(n[t])));return()=>{r(),u()}},use:(...n)=>n.forEach((n=>{n.set&&c("set",n.set),n.get&&c("get",n.get),n.reset&&c("reset",n.reset)})),dispose:()=>{r.dispose.forEach((n=>n())),u()},reset:u}})(e,r);return(({on:e})=>{const r=new Map;"function"==typeof n&&(e("dispose",(()=>{r.clear()})),e("get",(t=>{const e=n();e&&((n,t,e)=>{const r=n.get(t);r?r.includes(e)||r.push(e):n.set(t,[e])})(r,t,e)})),e("set",(n=>{const e=r.get(n);e&&r.set(n,e.filter(t)),p(r)})),e("reset",(()=>{r.forEach((n=>n.forEach(t))),p(r)})))})(u),u},{state:v}=m({handleSubmitFn:async function(){},fundName:"",fundDetails:{type:"null"},promotedFundId:void 0});var w;!function(n){n.ExistingChoicePage="/existing",n.SuperCampaign="/super-campaign",n.ChoicePage="/",n.MyOwnFund="/super-choice/my-own-fund/",n.MyOwnFundEngagementStep="/super-choice/my-own-fund-engagement/",n.Prefill="/super-choice/prefill/",n.PrefillInvalidMyOwnFundPage="/super-choice/sss-prefill-invalid-my-own-fund/",n.PrefillMyOwnFundPage="/super-choice/prefill-my-own-fund/",n.PrefillSMSFPage="/super-choice/prefill-smsf/",n.PrefillInvalidSMSFPage="/super-choice/prefill-invalid-smsf/",n.SelfManagedFund="/super-choice/smsf/",n.DefaultFund="/super-choice/default/",n.FeaturedFunds="/super-choice/featured-funds/",n.StandardChoice="/standard-choice/",n.Success="/success/"}(w||(w={}));const y=[e("stencil-route",{url:w.ExistingChoicePage,component:"sss-existing-choice-page"}),e("stencil-route",{url:w.SuperCampaign,component:"sss-super-campaign-host"}),e("stencil-route",{exact:!0,url:w.ChoicePage,component:"sss-choice-router"}),e("stencil-route",{url:w.MyOwnFund,component:"sss-super-byof-host"}),e("stencil-route",{url:w.MyOwnFundEngagementStep,component:"sss-my-own-fund-engagement-step-host"}),e("stencil-route",{url:w.PrefillInvalidMyOwnFundPage,component:"sss-prefill-invalid-my-own-fund"}),e("stencil-route",{url:w.Prefill,component:"sss-prefill"}),e("stencil-route",{url:w.PrefillMyOwnFundPage,component:"sss-prefill-my-own-fund"}),e("stencil-route",{url:w.PrefillSMSFPage,component:"sss-prefill-smsf"}),e("stencil-route",{url:w.PrefillInvalidSMSFPage,component:"sss-prefill-invalid-smsf"}),e("stencil-route",{url:w.SelfManagedFund,component:"sss-super-smsf-host"}),e("stencil-route",{url:w.DefaultFund,component:"sss-default-fund"}),e("stencil-route",{url:w.FeaturedFunds,component:"sss-super-campaign-featured-funds"}),e("stencil-route",{url:w.StandardChoice,component:"sss-standard-choice-form"}),e("stencil-route",{url:w.Success,component:"sss-success"})];function g(n,t,e){return n(e={path:t,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},e.exports),e.exports}var S=g((function(n,t){function e(n){return n}function r(n){return function(){return n}}function u(){throw new Error("Called `absurd` function which should be uncallable")}Object.defineProperty(t,"__esModule",{value:!0}),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,t.identity=e,t.unsafeCoerce=e,t.not=function(n){return function(t){return!n(t)}},t.constant=r,t.constTrue=r(!0),t.constFalse=r(!1),t.constNull=r(null),t.constUndefined=r(void 0),t.constVoid=t.constUndefined,t.flip=function(n){return function(t,e){return n(e,t)}},t.flow=function(n,t,e,r,u,i,o,s,c){switch(arguments.length){case 1:return n;case 2:return function(){return t(n.apply(this,arguments))};case 3:return function(){return e(t(n.apply(this,arguments)))};case 4:return function(){return r(e(t(n.apply(this,arguments))))};case 5:return function(){return u(r(e(t(n.apply(this,arguments)))))};case 6:return function(){return i(u(r(e(t(n.apply(this,arguments))))))};case 7:return function(){return o(i(u(r(e(t(n.apply(this,arguments)))))))};case 8:return function(){return s(o(i(u(r(e(t(n.apply(this,arguments))))))))};case 9:return function(){return c(s(o(i(u(r(e(t(n.apply(this,arguments)))))))))}}},t.tuple=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return n},t.increment=function(n){return n+1},t.decrement=function(n){return n-1},t.absurd=u,t.tupled=function(n){return function(t){return n.apply(void 0,t)}},t.untupled=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n(t)}},t.pipe=function(n,t,e,r,u,i,o,s,c,a,f,d,l,h,p,m,v,w,y,g){switch(arguments.length){case 1:return n;case 2:return t(n);case 3:return e(t(n));case 4:return r(e(t(n)));case 5:return u(r(e(t(n))));case 6:return i(u(r(e(t(n)))));case 7:return o(i(u(r(e(t(n))))));case 8:return s(o(i(u(r(e(t(n)))))));case 9:return c(s(o(i(u(r(e(t(n))))))));case 10:return a(c(s(o(i(u(r(e(t(n)))))))));case 11:return f(a(c(s(o(i(u(r(e(t(n))))))))));case 12:return d(f(a(c(s(o(i(u(r(e(t(n)))))))))));case 13:return l(d(f(a(c(s(o(i(u(r(e(t(n))))))))))));case 14:return h(l(d(f(a(c(s(o(i(u(r(e(t(n)))))))))))));case 15:return p(h(l(d(f(a(c(s(o(i(u(r(e(t(n))))))))))))));case 16:return m(p(h(l(d(f(a(c(s(o(i(u(r(e(t(n)))))))))))))));case 17:return v(m(p(h(l(d(f(a(c(s(o(i(u(r(e(t(n))))))))))))))));case 18:return w(v(m(p(h(l(d(f(a(c(s(o(i(u(r(e(t(n)))))))))))))))));case 19:return y(w(v(m(p(h(l(d(f(a(c(s(o(i(u(r(e(t(n))))))))))))))))));case 20:return g(y(w(v(m(p(h(l(d(f(a(c(s(o(i(u(r(e(t(n)))))))))))))))))))}},t.hole=u,t.bind_=function(n,t,e){var r;return Object.assign({},n,((r={})[t]=e,r))},t.bindTo_=function(n){return function(t){var e;return(e={})[n]=t,e}}})),F=g((function(n,t){function e(n){return null==n?t.none:t.some(n)}function r(n){return"Right"===n._tag?t.none:t.some(n.left)}function u(n){return"Left"===n._tag?t.none:t.some(n.right)}function i(n){return function(r){return t.isNone(r)?t.none:e(n(r.value))}}Object.defineProperty(t,"__esModule",{value:!0}),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,t.isSome=function(n){return"Some"===n._tag},t.isNone=function(n){return"None"===n._tag},t.none={_tag:"None"},t.some=function(n){return{_tag:"Some",value:n}},t.fromNullable=e,t.fromPredicate=function(n){return function(e){return n(e)?t.some(e):t.none}},t.tryCatch=function(n){try{return t.some(n())}catch(n){return t.none}},t.getLeft=r,t.getRight=u,t.fromEither=u,t.fold=function(n,e){return function(r){return t.isNone(r)?n():e(r.value)}},t.toNullable=function(n){return t.isNone(n)?null:n.value},t.toUndefined=function(n){return t.isNone(n)?void 0:n.value},t.getOrElseW=function(n){return function(e){return t.isNone(e)?n():e.value}},t.getOrElse=t.getOrElseW,t.fromNullableK=function(n){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e(n.apply(void 0,t))}},t.mapNullable=i,t.chainNullableK=i;var o=function(n,e){return S.pipe(n,t.map(e))},s=function(n,e){return S.pipe(n,t.ap(e))},c=function(n,e){return S.pipe(n,t.chain(e))},a=function(n,e,r){return S.pipe(n,t.reduce(e,r))},f=function(n){var e=t.foldMap(n);return function(n,t){return S.pipe(n,e(t))}},d=function(n,e,r){return S.pipe(n,t.reduceRight(e,r))},l=function(n){var e=t.traverse(n);return function(n,t){return S.pipe(n,e(t))}},h=function(n,e){return S.pipe(n,t.alt(e))},p=function(n,e){return S.pipe(n,t.filter(e))},m=function(n,e){return S.pipe(n,t.filterMap(e))},v=function(n,e){return S.pipe(n,t.extend(e))},w=function(n,e){return S.pipe(n,t.partition(e))},y=function(n,e){return S.pipe(n,t.partitionMap(e))},g=function(n){var e=t.wither(n);return function(n,t){return S.pipe(n,e(t))}},F=function(n){var e=t.wilt(n);return function(n,t){return S.pipe(n,e(t))}};t.map=function(n){return function(e){return t.isNone(e)?t.none:t.some(n(e.value))}},t.ap=function(n){return function(e){return t.isNone(e)||t.isNone(n)?t.none:t.some(e.value(n.value))}},t.apFirst=function(n){return S.flow(t.map((function(n){return function(){return n}})),t.ap(n))},t.apSecond=function(n){return S.flow(t.map((function(){return function(n){return n}})),t.ap(n))},t.of=t.some,t.chain=function(n){return function(e){return t.isNone(e)?t.none:n(e.value)}},t.chainFirst=function(n){return t.chain((function(e){return S.pipe(n(e),t.map((function(){return e})))}))},t.flatten=t.chain(S.identity),t.altW=function(n){return function(e){return t.isNone(e)?n():e}},t.alt=t.altW,t.zero=function(){return t.none},t.throwError=function(){return t.none},t.extend=function(n){return function(e){return t.isNone(e)?t.none:t.some(n(e))}},t.duplicate=t.extend(S.identity),t.reduce=function(n,e){return function(r){return t.isNone(r)?n:e(n,r.value)}},t.foldMap=function(n){return function(e){return function(r){return t.isNone(r)?n.empty:e(r.value)}}},t.reduceRight=function(n,e){return function(r){return t.isNone(r)?n:e(r.value,n)}},t.compact=t.flatten;var b={left:t.none,right:t.none};function A(n){return{equals:function(e,r){return e===r||(t.isNone(e)?t.isNone(r):!t.isNone(r)&&n.equals(e.value,r.value))}}}function D(n){return{concat:function(e,r){return t.isSome(e)&&t.isSome(r)?t.some(n.concat(e.value,r.value)):t.none}}}t.separate=function(n){var e=S.pipe(n,t.map((function(n){return{left:r(n),right:u(n)}})));return t.isNone(e)?b:e.value},t.filter=function(n){return function(e){return t.isNone(e)?t.none:n(e.value)?e:t.none}},t.filterMap=function(n){return function(e){return t.isNone(e)?t.none:n(e.value)}},t.partition=function(n){return function(t){return{left:p(t,(function(t){return!n(t)})),right:p(t,n)}}},t.partitionMap=function(n){return S.flow(t.map(n),t.separate)},t.traverse=function(n){return function(e){return function(r){return t.isNone(r)?n.of(t.none):n.map(e(r.value),t.some)}}},t.sequence=function(n){return function(e){return t.isNone(e)?n.of(t.none):n.map(e.value,t.some)}},t.wither=function(n){return function(e){return function(r){return t.isNone(r)?n.of(t.none):e(r.value)}}},t.wilt=function(n){return function(e){return function(i){return t.isNone(i)?n.of({left:t.none,right:t.none}):n.map(e(i.value),(function(n){return{left:r(n),right:u(n)}}))}}},t.URI="Option",t.getShow=function(n){return{show:function(e){return t.isNone(e)?"none":"some("+n.show(e.value)+")"}}},t.getEq=A,t.getOrd=function(n){return{equals:A(n).equals,compare:function(e,r){return e===r?0:t.isSome(e)?t.isSome(r)?n.compare(e.value,r.value):1:-1}}},t.getApplySemigroup=D,t.getApplyMonoid=function(n){return{concat:D(n).concat,empty:t.some(n.empty)}},t.getFirstMonoid=function(){return{concat:function(n,e){return t.isNone(n)?e:n},empty:t.none}},t.getLastMonoid=function(){return{concat:function(n,e){return t.isNone(e)?n:e},empty:t.none}},t.getMonoid=function(n){return{concat:function(e,r){return t.isNone(e)?r:t.isNone(r)?e:t.some(n.concat(e.value,r.value))},empty:t.none}},t.Functor={URI:t.URI,map:o},t.Applicative={URI:t.URI,map:o,ap:s,of:t.of},t.Monad={URI:t.URI,map:o,ap:s,of:t.of,chain:c},t.Foldable={URI:t.URI,reduce:a,foldMap:f,reduceRight:d},t.Alt={URI:t.URI,map:o,alt:h},t.Alternative={URI:t.URI,map:o,ap:s,of:t.of,alt:h,zero:t.zero},t.Extend={URI:t.URI,map:o,extend:v},t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate},t.Filterable={URI:t.URI,map:o,compact:t.compact,separate:t.separate,filter:p,filterMap:m,partition:w,partitionMap:y},t.Traversable={URI:t.URI,map:o,reduce:a,foldMap:f,reduceRight:d,traverse:l,sequence:t.sequence},t.Witherable={URI:t.URI,map:o,reduce:a,foldMap:f,reduceRight:d,traverse:l,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:p,filterMap:m,partition:w,partitionMap:y,wither:g,wilt:F},t.MonadThrow={URI:t.URI,map:o,ap:s,of:t.of,chain:c,throwError:t.throwError},t.option={URI:t.URI,map:o,of:t.of,ap:s,chain:c,reduce:a,foldMap:f,reduceRight:d,traverse:l,sequence:t.sequence,zero:t.zero,alt:h,extend:v,compact:t.compact,separate:t.separate,filter:p,filterMap:m,partition:w,partitionMap:y,wither:g,wilt:F,throwError:t.throwError},t.elem=function(n){return function(e,r){return!t.isNone(r)&&n.equals(e,r.value)}},t.exists=function(n){return function(e){return!t.isNone(e)&&n(e.value)}},t.getRefinement=function(n){return function(e){return t.isSome(n(e))}},t.Do=t.of({}),t.bindTo=function(n){return t.map(S.bindTo_(n))},t.bind=function(n,e){return t.chain((function(r){return S.pipe(e(r),t.map((function(t){return S.bind_(r,n,t)})))}))},t.apS=function(n,e){return S.flow(t.map((function(t){return function(e){return S.bind_(t,n,e)}})),t.ap(e))},t.traverseArrayWithIndex=function(n){return function(e){for(var r=[],u=0;u<e.length;u++){var i=n(u,e[u]);if(t.isNone(i))return t.none;r.push(i.value)}return t.some(r)}},t.traverseArray=function(n){return t.traverseArrayWithIndex((function(t,e){return n(e)}))},t.sequenceArray=t.traverseArray(S.identity)}));function b(n){this.message=n}(b.prototype=new Error).name="InvalidCharacterError";var A="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(n){var t=String(n).replace(/=+$/,"");if(t.length%4==1)throw new b("'atob' failed: The string to be decoded is not correctly encoded.");for(var e,r,u=0,i=0,o="";r=t.charAt(i++);~r&&(e=u%4?64*e+r:r,u++%4)?o+=String.fromCharCode(255&e>>(-2*u&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return o};function D(n){var t=n.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(n){return decodeURIComponent(A(n).replace(/(.)/g,(function(n,t){var e=t.charCodeAt(0).toString(16).toUpperCase();return e.length<2&&(e="0"+e),"%"+e})))}(t)}catch(n){return A(t)}}function C(n){this.message=n}(C.prototype=new Error).name="InvalidTokenError";var E=function(){return(E=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var u in t=arguments[e])Object.prototype.hasOwnProperty.call(t,u)&&(n[u]=t[u]);return n}).apply(this,arguments)},P=function(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;var r=Array(n),u=0;for(t=0;t<e;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,u++)r[u]=i[o];return r},T=function(n,t,e){if(void 0===e&&(e=!1),!n||!t||"object"!=typeof n||"object"!=typeof t)return n;var r=E({},n);for(var u in t)t.hasOwnProperty(u)&&(r[u]=t[u]instanceof Array&&n[u]instanceof Array?e?P(n[u],t[u]):t[u]:"object"==typeof t[u]&&"object"==typeof n[u]?T(n[u],t[u],e):t[u]);return r},R=function(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;var r=Array(n),u=0;for(t=0;t<e;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,u++)r[u]=i[o];return r},I={defaults:{},errorType:null,polyfills:{fetch:null,FormData:null,URLSearchParams:null,performance:null,PerformanceObserver:null,AbortController:null},polyfill:function(n,t){for(var e=void 0===t?{}:t,r=e.doThrow,u=void 0===r||r,i=e.instance,o=void 0!==i&&i,s=[],c=2;c<arguments.length;c++)s[c-2]=arguments[c];var a=this.polyfills[n]||("undefined"!=typeof self?self[n]:null)||("undefined"!=typeof global?global[n]:null);if(u&&!a)throw new Error(n+" is not defined");return o&&a?new(a.bind.apply(a,R([void 0],s))):a}},O=function(n,t,e,r){if(!n.getEntriesByName)return!1;var u=n.getEntriesByName(t);return!!(u&&u.length>0)&&(e(u.reverse()[0]),r.clearMeasures&&r.clearMeasures(t),M.callbacks.delete(t),M.callbacks.size<1&&(M.observer.disconnect(),r.clearResourceTimings&&r.clearResourceTimings()),!0)},M={callbacks:new Map,observer:null,observe:function(n,t){if(n&&t){var e=I.polyfill("performance",{doThrow:!1});(function(n,t){return!M.observer&&n&&t&&(M.observer=new t((function(t){M.callbacks.forEach((function(e,r){O(t,r,e,n)}))})),n.clearResourceTimings&&n.clearResourceTimings()),M.observer})(e,I.polyfill("PerformanceObserver",{doThrow:!1}))&&(O(e,n,t,e)||(M.callbacks.size<1&&M.observer.observe({entryTypes:["resource","measure"]}),M.callbacks.set(n,t)))}}},U=function(n){this.error=n},j=function(){return(j=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var u in t=arguments[e])Object.prototype.hasOwnProperty.call(t,u)&&(n[u]=t[u]);return n}).apply(this,arguments)},k=function(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;var r=Array(n),u=0;for(t=0;t<e;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,u++)r[u]=i[o];return r},B=function(){function n(n,t,e,r,u,i){void 0===e&&(e=new Map),void 0===r&&(r=[]),void 0===u&&(u=[]),void 0===i&&(i=[]),this._url=n,this._options=t,this._catchers=e,this._resolvers=r,this._middlewares=u,this._deferredChain=i}return n.factory=function(t,e){return void 0===t&&(t=""),void 0===e&&(e={}),new n(t,e)},n.prototype.selfFactory=function(t){var e=void 0===t?{}:t,r=e.url,u=e.options,i=e.catchers,o=void 0===i?this._catchers:i,s=e.resolvers,c=void 0===s?this._resolvers:s,a=e.middlewares,f=void 0===a?this._middlewares:a,d=e.deferredChain,l=void 0===d?this._deferredChain:d;return new n(void 0===r?this._url:r,j({},void 0===u?this._options:u),new Map(o),k(c),k(f),k(l))},n.prototype.defaults=function(n,t){return void 0===t&&(t=!1),I.defaults=t?T(I.defaults,n):n,this},n.prototype.errorType=function(n){return I.errorType=n,this},n.prototype.polyfills=function(n){return I.polyfills=j(j({},I.polyfills),n),this},n.prototype.url=function(n,t){if(void 0===t&&(t=!1),t)return this.selfFactory({url:n});var e=this._url.split("?");return this.selfFactory({url:e.length>1?e[0]+n+"?"+e[1]:this._url+n})},n.prototype.options=function(n,t){return void 0===t&&(t=!0),this.selfFactory({options:t?T(this._options,n):n})},n.prototype.query=function(n,t){return void 0===t&&(t=!1),this.selfFactory({url:N(this._url,n,t)})},n.prototype.headers=function(n){return this.selfFactory({options:T(this._options,{headers:n||{}})})},n.prototype.accept=function(n){return this.headers({Accept:n})},n.prototype.content=function(n){var t;return this.headers(((t={})["Content-Type"]=n,t))},n.prototype.auth=function(n){return this.headers({Authorization:n})},n.prototype.catcher=function(n,t){var e=new Map(this._catchers);return e.set(n,t),this.selfFactory({catchers:e})},n.prototype.signal=function(n){return this.selfFactory({options:j(j({},this._options),{signal:n.signal})})},n.prototype.resolve=function(n,t){return void 0===t&&(t=!1),this.selfFactory({resolvers:t?[n]:k(this._resolvers,[n])})},n.prototype.defer=function(n,t){return void 0===t&&(t=!1),this.selfFactory({deferredChain:t?[n]:k(this._deferredChain,[n])})},n.prototype.middlewares=function(n,t){return void 0===t&&(t=!1),this.selfFactory({middlewares:t?n:k(this._middlewares,n)})},n.prototype.method=function(n,t,e){void 0===t&&(t={}),void 0===e&&(e=null);var r=this._options.headers,u=e?"object"!=typeof e||r&&!Object.entries(r).every((function(n){var t=n[1];return n[0].toLowerCase()!=="Content-Type".toLowerCase()||t.startsWith("application/json")}))?this.body(e):this.json(e):this;return function(n){var t=n._url,e=n._resolvers,r=n._middlewares,u=n._options,i=new Map(n._catchers),o=T(I.defaults,u),s=I.polyfill("AbortController",{doThrow:!1,instance:!0});!o.signal&&s&&(o.signal=s.signal);var c={ref:null,clear:function(){c.ref&&(clearTimeout(c.ref),c.ref=null)}},a=function(n){return function(t){return 0===n.length?t:1===n.length?n[0](t):n.reduceRight((function(e,r,u){return r(u===n.length-2?e(t):e)}))}}(r)(I.polyfill("fetch"))(t,o),f=a.catch((function(n){throw new U(n)})).then((function(n){return c.clear(),n.ok?n:n[I.errorType||"text"]().then((function(t){var e=new Error(t);throw e[I.errorType||"text"]=t,e.status=n.status,e.response=n,e}))})),d=function(t){return function(e){return(t?f.then((function(n){return n&&n[t]()})).then((function(n){return e?e(n):n})):f.then((function(n){return e?e(n):n}))).catch((function(t){c.clear();var e=t instanceof U?t.error:t;if(t instanceof U&&i.has("__fromFetch"))return i.get("__fromFetch")(e,n);if(i.has(e.status))return i.get(e.status)(e,n);if(i.has(e.name))return i.get(e.name)(e,n);throw e}))}},l={res:d(null),json:d("json"),blob:d("blob"),formData:d("formData"),arrayBuffer:d("arrayBuffer"),text:d("text"),perfs:function(n){return a.then((function(t){return M.observe(t.url,n)})),l},setTimeout:function(n,t){return void 0===t&&(t=s),c.clear(),c.ref=setTimeout((function(){return t.abort()}),n),l},controller:function(){return[s,l]},error:function(n,t){return i.set(n,t),l},badRequest:function(n){return l.error(400,n)},unauthorized:function(n){return l.error(401,n)},forbidden:function(n){return l.error(403,n)},notFound:function(n){return l.error(404,n)},timeout:function(n){return l.error(408,n)},internalError:function(n){return l.error(500,n)},fetchError:function(n){return l.error("__fromFetch",n)},onAbort:function(n){return l.error("AbortError",n)}};return e.reduce((function(t,e){return e(t,n)}),l)}((u=u.options(j(j({},t),{method:n})))._deferredChain.reduce((function(n,t){return t(n,n._url,n._options)}),u))},n.prototype.get=function(n){return this.method("GET",n)},n.prototype.delete=function(n){return this.method("DELETE",n)},n.prototype.put=function(n,t){return this.method("PUT",t,n)},n.prototype.post=function(n,t){return this.method("POST",t,n)},n.prototype.patch=function(n,t){return this.method("PATCH",t,n)},n.prototype.head=function(n){return this.method("HEAD",n)},n.prototype.opts=function(n){return this.method("OPTIONS",n)},n.prototype.replay=function(n){return this.method(this._options.method,n)},n.prototype.body=function(n){return this.selfFactory({options:j(j({},this._options),{body:n})})},n.prototype.json=function(n){var t,e=null===(t=Object.entries(this._options.headers||{}).find((function(n){var t=n[1];return n[0].toLowerCase()==="Content-Type".toLowerCase()&&t.startsWith("application/json")})))||void 0===t?void 0:t[1];return this.content(e||"application/json").body(JSON.stringify(n))},n.prototype.formData=function(n,t){return void 0===t&&(t=!1),this.body(V(n,t))},n.prototype.formUrl=function(n){return this.body("string"==typeof n?n:(t=n,Object.keys(t).map((function(n){var e=t[n];return e instanceof Array?e.map((function(t){return x(n,t)})).join("&"):x(n,e)})).join("&"))).content("application/x-www-form-urlencoded");var t},n}(),N=function(n,t,e){var r;if("string"==typeof t)r=t;else{var u=I.polyfill("URLSearchParams",{instance:!0});for(var i in t)if(t[i]instanceof Array)for(var o=0,s=t[i];o<s.length;o++)u.append(i,s[o]);else u.append(i,t[i]);r=u.toString()}var c=n.split("?");return e||c.length<2?c[0]+"?"+r:n+"&"+r};function V(n,t,e,r){return void 0===t&&(t=!1),void 0===e&&(e=I.polyfill("FormData",{instance:!0})),void 0===r&&(r=[]),Object.entries(n).forEach((function(n){var u=n[0],i=n[1],o=r.reduce((function(n,t){return n?n+"["+t+"]":t}),null);if(o=o?o+"["+u+"]":u,i instanceof Array)for(var s=0,c=i;s<c.length;s++)e.append(o+"[]",c[s]);else!t||"object"!=typeof i||t instanceof Array&&t.includes(u)?e.append(o,i):null!==i&&V(i,t,e,k(r,[u]))})),e}function x(n,t){return encodeURIComponent(n)+"="+encodeURIComponent("object"==typeof t?JSON.stringify(t):""+t)}var q=B.factory;function _(){const n=Y.jwt,t=Y.profileId,e=Y.accountIdOrDefault,r=Y.partnerIdOrDefault;return q(Y.apiBaseUrl).headers({Authorization:"Bearer "+n,"X-PROFILE-ID":t,"X-PARTNER-ID":r,"X-ACCOUNT-ID":e})}q.default=B.factory;const L={fundId:"slate",usi:"32367272075001"};function $(n){switch(n.kind){case"slate":return L.fundId;case"australianRetirementTrust":return"australian-retirement-trust";case"aware":return"aware";case"active":return"active";case"australianEthical":return"australian-ethical";case"virgin":return"virgin";case"spirit":return"spirit";case"firstSuper":return"first-super";case"mercerMyChoice":return"mercermychoice";case"generic":return n.generic.fundId;default:return""}}function J(n){switch(n.kind){case"Promoted":return s(function(n){switch(n.kind){case"slate":return L.usi;case"australianRetirementTrust":return n.australianRetirementTrust.usi;case"aware":return n.aware.usi;case"active":return n.active.usi;case"australianEthical":return n.australianEthical.usi;case"virgin":return n.virgin.usi;case"spirit":return n.spirit.usi;case"firstSuper":return n.firstSuper.usi;case"mercerMyChoice":return n.mercerMyChoice.usi;case"generic":return n.generic.usi;default:return""}}(n.promoted));case"MyOwnFund":return s(n.myOwnFund.usi);case"SMSF":return o;case"Default":return s(n.default.usi);case"PromotedDefault":return s(n.promotedDefault.usi);case"DefinedBenefits":return s(n.definedBenefits.usi);case"PromotedDefaultWithJoin":return s(n.promotedDefaultWithJoin.usi);default:return o}}function z(n){switch(n.kind){case"Promoted":return s(function(n){switch(n.kind){case"slate":return n.slate.memberNumber;case"australianRetirementTrust":return n.australianRetirementTrust.memberNumber;case"aware":return n.aware.memberNumber;case"active":return n.active.memberNumber;case"australianEthical":return n.australianEthical.memberNumber;case"virgin":return n.virgin.memberNumber;case"spirit":return n.spirit.memberNumber;case"firstSuper":return n.firstSuper.memberNumber;case"mercerMyChoice":return n.mercerMyChoice.memberNumber;case"generic":return n.generic.memberNumber;default:return""}}(n.promoted));case"MyOwnFund":return s(n.myOwnFund.memberNumber);case"DefinedBenefits":return s(n.definedBenefits.memberNumber);case"PromotedDefaultWithJoin":return s(n.promotedDefaultWithJoin.memberNumber);case"SMSF":case"Default":case"PromotedDefault":default:return o}}const W=new class{async getAustralianFundsAsync(n,t=!1){return _().url("super-choice/australian-funds-v2?"+this.toQueryString(t,n)).get().notFound((()=>{throw new Error("Failed to fetch the list of australian super funds.")})).json()}async getAustralianFundAsync(n,t){const e=t?"?includeInactive=true":"";return _().url(`super-choice/australian-funds/${n}${e}`).get().notFound((()=>{throw new Error("Failed to fetch australian super fund.")})).json()}async getAppStateAsync(){var n;const t=await _().url("client-app-state").get().notFound((()=>{throw new Error("Failed to fetch application configuration.")})).json();if(null===(n=t.superBuyer.superChoice)||void 0===n?void 0:n.choiceDetails)switch("promoted"in(e=t.superBuyer.superChoice.choiceDetails)?e.kind="Promoted":"myOwnFund"in e?e.kind="MyOwnFund":"smsf"in e?e.kind="SMSF":"default"in e?e.kind="Default":"promotedDefault"in e?e.kind="PromotedDefault":"definedBenefits"in e?e.kind="DefinedBenefits":"promotedDefaultWithJoin"in e&&(e.kind="PromotedDefaultWithJoin"),t.superBuyer.superChoice.choiceDetails.kind){case"Promoted":!function(n){"slate"in n?n.kind="slate":"australianRetirementTrust"in n?n.kind="australianRetirementTrust":"aware"in n?n.kind="aware":"active"in n?n.kind="active":"australianEthical"in n?n.kind="australianEthical":"virgin"in n?n.kind="virgin":"spirit"in n?n.kind="spirit":"firstSuper"in n?n.kind="firstSuper":"mercerMyChoice"in n?n.kind="mercerMyChoice":"generic"in n&&(n.kind="generic")}(t.superBuyer.superChoice.choiceDetails.promoted)}var e;return t}async clickPromotedTileAsync(n){return _().url("click-promoted-tile").post(n).res()}async viewSuperFundPanelAsync(n){return _().url("view-super-fund-panel").post(n).res()}toSearchFilterQueryString(n){return"search="+n.searchString+(n.maxRecordCount>0?"&maxRecordCount="+n.maxRecordCount:"")}toQueryString(n,t){return[this.toSearchFilterQueryString(t),n?"includeInactive=true":""].filter((n=>n&&n.length)).join("&")}};var X;!function(n){n[n.NotLoaded=1]="NotLoaded",n[n.Loaded=2]="Loaded",n[n.NotWorking=3]="NotWorking"}(X||(X={}));class H{constructor(){this._promotedFundsShown=[]}get PromotedFundIds(){return this._promotedFundsShown.map((n=>n.fundId))}set promotedFundsShown(n){this._promotedFundsShown=n}get DefaultFundPosition(){const n=this._promotedFundsShown.findIndex((n=>"promoted-default"===n.fundType));if(-1!==n)return n+1}}const Q={apiBaseUrl:F.none,appBaseUrl:F.none,profileId:F.none,jwt:F.none,superBuyer:F.none,superChoicePrefill:F.none,promotedFunds:F.none,accountConfiguration:F.none,profileConfiguration:F.none,hasSuccessPageBeenAcknowledged:!1,hasSuperSelectionBeenSubmitted:!1,isDefinedBenefitsEligible:F.none,superCampaignEnabled:!0,superCampaignState:void 0,superCampaignComponentStatus:X.NotLoaded,hideFooterSection:!1,bringYourOwnFundCustomStepEnabled:!1,featuredFundsEnabled:!1},Y=new class{constructor(){const{state:n,onChange:t}=m(Q);this._state=n,this._onChange=t,t("jwt",(n=>{this._state.profileId=S.pipe(n,F.chain((n=>F.fromNullable(function(n,t){if("string"!=typeof n)throw new C("Invalid token specified");var e=!0===(t=t||{}).header?0:1;try{return JSON.parse(D(n.split(".")[e]))}catch(n){throw new C("Invalid token specified: "+n.message)}}(n).sub))))}))}get state(){return this._state}get onChange(){return this._onChange}get superBuyer(){if(F.isNone(this._state.superBuyer))throw Error("User information is not set");return this._state.superBuyer.value}get apiBaseUrl(){if(F.isNone(this._state.apiBaseUrl))throw Error("API base URL is not set");return this._state.apiBaseUrl.value}get appBaseUrl(){if(F.isNone(this._state.appBaseUrl))throw Error("App base URL is not set");return this._state.appBaseUrl.value}get promotedFunds(){if(this.state.superCampaignEnabled&&void 0!==this.superCampaignState)return this.superCampaignState.PromotedFundIds;if(F.isNone(this._state.promotedFunds))throw Error("Promoted Funds is not set");return this._state.promotedFunds.value}get promotedDefaultFundPosition(){return this.state.superCampaignEnabled&&void 0!==this.superCampaignState?F.fromNullable(this.superCampaignState.DefaultFundPosition):F.none}get promotedFundsConfig(){return{shownFunds:this.promotedFunds,promotedDefaultFundPosition:F.toUndefined(this.promotedDefaultFundPosition),promotedFundsConfigSource:this.isUsingSuperCampaign?"superCampaign":"superSelection"}}get profileId(){if(F.isNone(this._state.profileId))throw Error("Failed to get Profile ID from JWT");return this._state.profileId.value}get defaultFundUsi(){const n=S.pipe(this._state.profileConfiguration,F.map((n=>F.fromNullable(n.defaultFundUsi))),F.flatten);return F.isSome(n)?n:S.pipe(this._state.accountConfiguration,F.map((n=>F.fromNullable(n.defaultFundUsi))),F.flatten)}get accountIdOrDefault(){return S.pipe(this._state.accountConfiguration,F.map((n=>n.accountId)),F.getOrElse((()=>"")))}get partnerIdOrDefault(){return S.pipe(this._state.superBuyer,F.map((n=>n.partnerId)),F.getOrElse((()=>"")))}get jwt(){if(F.isNone(this._state.jwt))throw Error("No authentication information was found");return this._state.jwt.value}completeSuperSelectionFlow(){this._state.hasSuccessPageBeenAcknowledged=!0}markSuperSelectionAsSubmitted(){this._state.hasSuperSelectionBeenSubmitted=!0}get isDefinedBenefitsEligible(){return this._state.isDefinedBenefitsEligible}async loadAppStateAsync(){const n=await W.getAppStateAsync();this._state.accountConfiguration=F.fromNullable(n.accountConfiguration),this._state.profileConfiguration=F.fromNullable(n.profileConfiguration),this._state.superBuyer=F.fromNullable(n.superBuyer),this._state.promotedFunds=F.fromNullable(n.promotedFunds),this._state.bringYourOwnFundCustomStepEnabled=n.bringYourOwnFundCustomStepEnabled,this._state.featuredFundsEnabled=n.featuredFundsEnabled,this._state.superChoicePrefill=F.fromNullable(n.prefill),this._state.isDefinedBenefitsEligible=F.fromNullable(n.isDefinedBenefitsEligible),F.isSome(this._state.accountConfiguration)&&"basic"===this._state.accountConfiguration.value.featureSet.type&&(this._state.superCampaignEnabled=!1)}setSuperCampaignPromotedFundsShown(n){if(void 0===this._state.superCampaignState)throw new Error("Cannot set shown funds for SuperCampaing state because it is undefined");this._state.superCampaignState.promotedFundsShown=n}viewSuperFundPanelAsync(n,t){return W.viewSuperFundPanelAsync(Object.assign(Object.assign({},this.promotedFundsConfig),{shownFunds:t||this.promotedFundsConfig.shownFunds,placementId:n}))}get superCampaignState(){return this._state.superCampaignState}get superCampaignComponentStatus(){return this._state.superCampaignComponentStatus}set superCampaignComponentStatus(n){n===X.Loaded?(this._state.superCampaignComponentStatus=X.Loaded,this._state.superCampaignState=new H):(this._state.superCampaignComponentStatus=n,this._state.superCampaignState=void 0)}get isUsingSuperCampaign(){return this.state.superCampaignEnabled&&void 0!==this.superCampaignState}get isBringYourOwnFundCustomStepEnabled(){return this.state.bringYourOwnFundCustomStepEnabled}get isFeaturedFundsEnabled(){return this.state.featuredFundsEnabled}get superCampaignCanNotBeActivated(){return!this.state.superCampaignEnabled||this.superCampaignComponentStatus===X.NotWorking}get hideFooterSection(){return this._state.hideFooterSection}set hideFooterSection(n){this._state.hideFooterSection=n}get backendUrl(){return F.map(this.getBaseUrl)(this.state.apiBaseUrl)}getBaseUrl(n){const t=new URL(n);return`${t.protocol}//${t.hostname}${t.port.length>0?":"+t.port:""}`}},G=new class{navigateInternally(n,t){const e=`${this.appBaseUrl}${this.toRouteWithLeadingSlash(t)}`;l.navigation(e),n.push(e)}navigateInternallyToStandardChoice(n){v.handleSubmitFn=n.handleSubmitFn,v.fundName=n.fundName,v.fundDetails=n.fundDetails,v.promotedFundId=n.promotedFundId,this.navigateInternally(n.history,w.StandardChoice)}toExternalUrl(n){const t=new URL(n);return t.searchParams.append("_extnav","true"),t.href}get appBaseUrl(){return Y.appBaseUrl.replace(/\/$/,"")}toRouteWithLeadingSlash(n){return n.length>0&&"/"===n[0]?n:"/"+n}};class K{static get Instance(){return this.instance||(this.instance=new this)}async PostAnalyticsEventAsync(n){return _().url("analytics-events").post(n).res()}}class Z{constructor(){this.eventTrackingApi=K.Instance}static get Instance(){return this.instance||(this.instance=new this)}async TrackSuperFundPdsViewedAsync(n){return this.trackEventAsync({SuperFundPdsViewed:n})}async TrackPromotedSuperFundDetailViewedAsync(n){return this.trackEventAsync({SuperFundDetailViewed:{PromotedFund:n}})}async TrackPromotedDefaultSuperFundDetailViewedAsync(n){return this.trackEventAsync({SuperFundDetailViewed:{PromotedDefaultFund:n}})}async TrackMyOwnSuperFundDetailViewedAsync(n){return this.trackEventAsync({SuperFundDetailViewed:{MyOwnFund:n}})}async TrackSmsfSuperFundDetailViewedAsync(n){return this.trackEventAsync({SuperFundDetailViewed:{Smsf:n}})}async TrackDefaultSuperFundDetailViewedAsync(n){return this.trackEventAsync({SuperFundDetailViewed:{DefaultFund:n}})}async TrackSuperFundNominationViewedAsync(n){return this.trackEventAsync({SuperFundNominationViewed:n})}async TrackSuperFundNominationDeclinedAsync(n){return this.trackEventAsync({SuperFundNominationDeclined:n})}async TrackSuperFundDisclaimerViewedAsync(n){return this.trackEventAsync({SuperFundDisclaimerViewed:n})}async TrackSuperFundDisclaimerAcceptedAsync(n){return this.trackEventAsync({SuperFundDisclaimerAccepted:n})}async TrackSuperFundPrefillViewedAsync(n){return this.trackEventAsync({SuperFundPrefillViewed:n})}async TrackSuperFundPrefillDeclinedAsync(n){return this.trackEventAsync({SuperFundPrefillDeclined:n})}async TrackSuperFundDetailChangeRequestedAsync(n){return this.trackEventAsync({SuperFundDetailChangeRequested:n})}async TrackSuperCampaignActivationSucceededAsync(n){return this.trackEventAsync({SuperCampaignActivationSucceeded:n})}async TrackSuperMyOwnFundEngagementStepActivationSucceeded(n){return this.trackEventAsync({SuperMyOwnFundEngagementStepActivationSucceeded:{fundUsi:n}})}async TrackSuperMyOwnFundEngagementStepContinued(n,t){return this.trackEventAsync({SuperMyOwnFundEngagementStepContinued:{fundUsi:n,reason:t}})}async trackEventAsync(n){try{await this.eventTrackingApi.PostAnalyticsEventAsync({event:n})}catch(n){return}}}const nn=new class{async submitDefaultFundChoiceAsync(n){return _().url("super-choice/default").post(n).badRequest((()=>{throw new Error("Failed to process default fund join request")})).text()}async submitCustomFundChoiceAsync(n){return _().url("super-choice/custom-fund").post(n).badRequest((()=>{throw new Error("Failed to process custom fund join request")})).text()}async submitSelfManagedFundChoiceAsync(n){return _().url("super-choice/smsf").post(n).badRequest((()=>{throw new Error("Failed to process SMSF choice request")})).text()}async submitDefinedBenefitsChoiceAsync(n){return _().url("super-choice/defined-benefits").post(n).badRequest((()=>{throw new Error("Failed to process Defined Benefits choice request")})).text()}async validateAbnForSMSF(n){return(await _().url(`super-choice/smsf/${n}/validate`).get().badRequest((()=>{throw new Error("Failed to verify that if the provided abn is used for regulated fund")})).json()).result}};export{Z as E,F as O,w as S,Y as a,G as b,f as c,m as d,W as e,nn as f,i as g,$ as h,u as i,_ as j,J as k,z as l,v as m,o as n,L as o,X as p,l as q,y as r,s,a as t,q as u,c as v}
@@ -1 +1 @@
1
- System.register(["./p-71ca4cf8.system.js","./p-14885f78.system.js","./p-15f0e5eb.system.js"],(function(e,s){"use strict";var t,i,r;return{setters:[function(e){t=e.p;i=e.b},function(){},function(e){r=e.g}],execute:function(){var e=function(){var e=s.meta.url;var i={};if(e!==""){i.resourcesUrl=new URL(".",e).href}return t(i)};e().then((function(e){r();return i([["p-645755ee.system",[[0,"sss-super-byof-host",{history:[16],backendUrl:[32],accessToken:[32]}]]],["p-53b231f0.system",[[0,"context-consumer",{context:[16],renderer:[16],subscribe:[16],unsubscribe:[32]}]]],["p-2b42304a.system",[[0,"stencil-async-content",{documentLocation:[1,"document-location"],content:[32]}]]],["p-22939048.system",[[0,"stencil-route-title",{titleSuffix:[1,"title-suffix"],pageTitle:[1,"page-title"]}]]],["p-e957b393.system",[[0,"stencil-router-prompt",{when:[4],message:[1],history:[16],unblock:[32]}]]],["p-c775c0e4.system",[[0,"stencil-router-redirect",{history:[16],root:[1],url:[1]}]]],["p-be94959a.system",[[0,"sss-prefill",{history:[16],prefill:[32]}],[1,"super-selection-app-host",{sessionState:[32],jwt:[32],appConfiguration:[32],ignoreExistingSelection:[32]}],[0,"sss-default-fund",{history:[16],defaultFundProductName:[32]}],[0,"sss-super-campaign-featured-funds",{history:[16],backendUrl:[32],accessToken:[32],currentView:[32]}],[0,"sss-super-smsf-host",{history:[16],backendUrl:[32],accessToken:[32]}],[0,"sss-existing-choice-page",{history:[16],existingFund:[32]}],[0,"sss-standard-choice-form",{history:[16],standardChoiceFormSignature:[32],formState:[32],isSubmitDisabled:[32]}],[0,"sss-success"],[0,"sss-choice-router",{history:[16]}],[0,"sss-my-own-fund-engagement-step-host",{history:[16],backendUrl:[32],accessToken:[32],fundUsi:[32],fundName:[32],memberNumber:[32],memberFirstName:[32],memberFamilyName:[32]}],[0,"sss-super-campaign-host",{history:[16],scriptImported:[32],backendUrl:[32],accessToken:[32]}],[0,"sss-dropdown-async",{testId:[1,"test-id"],placeholder:[1],searchFunction:[16],value:[16],required:[4],requiredValidationMessage:[1,"required-validation-message"],disabled:[4],minSearchStringLength:[2,"min-search-string-length"],showValidationErrors:[4,"show-validation-errors"],searchState:[32],inputValue:[32],isDropdownVisible:[32],filteredOptions:[32],highlightedOptionIndex:[32],selectedOption:[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-name-input",{testId:[1,"test-id"],value:[1],name:[1],readableName:[1,"readable-name"],showValidationErrors:[4,"show-validation-errors"],errorMessage:[32]}],[0,"sss-prefill-my-own-fund",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-smsf",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[0,"sss-prefill-invalid-my-own-fund",{history:[16],prefill:[16],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-invalid-smsf",{history:[16],prefill:[16],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[1,"super-selection-app",{ignoreExistingSelection:[4,"ignore-existing-selection"],accessToken:[1,"access-token"],backendUrl:[1,"backend-url"],appBaseUrl:[1,"app-base-url"],history:[16],location:[16],isSelfHosted:[4,"is-self-hosted"],isAppInitialised:[32]}],[0,"sss-loading-page"],[0,"sss-footer-section",{textOverride:[1,"text-override"]}],[4,"stencil-route-switch",{group:[513],scrollTopOffset:[2,"scroll-top-offset"],location:[16],routeViewsUpdated:[16]}],[4,"stencil-router",{root:[1],historyType:[1,"history-type"],titleSuffix:[1,"title-suffix"],scrollTopOffset:[2,"scroll-top-offset"],location:[32],history:[32]}],[0,"sss-prefill-warning-box",{notificationList:[16]}],[0,"sss-header-section"],[4,"sss-custom-fund",{history:[16],currentCustomFund:[32],fundOptionsList:[32],showFundOptionsSelection:[32]}],[0,"sss-prefill-display-field",{field:[16]}],[0,"sss-prefill-error-box",{withHeader:[4,"with-header"],notificationList:[16]}],[4,"stencil-route-link",{url:[1],urlMatch:[1,"url-match"],activeClass:[1,"active-class"],exact:[4],strict:[4],custom:[1],anchorClass:[1,"anchor-class"],anchorRole:[1,"anchor-role"],anchorTitle:[1,"anchor-title"],anchorTabIndex:[1,"anchor-tab-index"],anchorId:[1,"anchor-id"],history:[16],location:[16],root:[1],ariaHaspopup:[1,"aria-haspopup"],ariaPosinset:[1,"aria-posinset"],ariaSetsize:[2,"aria-setsize"],ariaLabel:[1,"aria-label"],match:[32]}],[4,"sss-button",{testid:[1],fillWidth:[4,"fill-width"],fillWidthOnMobile:[4,"fill-width-on-mobile"],disabled:[4],variant:[1],size:[1],promiseFn:[16],state:[32]}],[0,"sss-loading-indicator",{theme:[1],size:[2]}],[0,"stencil-route",{group:[513],componentUpdated:[16],match:[1040],url:[1],component:[1],componentProps:[16],exact:[4],routeRender:[16],scrollTopOffset:[2,"scroll-top-offset"],routeViewsUpdated:[16],location:[16],history:[16],historyType:[1,"history-type"]}]]]],e)}))}}}));
1
+ System.register(["./p-71ca4cf8.system.js","./p-14885f78.system.js","./p-15f0e5eb.system.js"],(function(e,s){"use strict";var t,i,r;return{setters:[function(e){t=e.p;i=e.b},function(){},function(e){r=e.g}],execute:function(){var e=function(){var e=s.meta.url;var i={};if(e!==""){i.resourcesUrl=new URL(".",e).href}return t(i)};e().then((function(e){r();return i([["p-e4862f8c.system",[[0,"sss-super-byof-host",{history:[16],backendUrl:[32],accessToken:[32]}]]],["p-53b231f0.system",[[0,"context-consumer",{context:[16],renderer:[16],subscribe:[16],unsubscribe:[32]}]]],["p-2b42304a.system",[[0,"stencil-async-content",{documentLocation:[1,"document-location"],content:[32]}]]],["p-22939048.system",[[0,"stencil-route-title",{titleSuffix:[1,"title-suffix"],pageTitle:[1,"page-title"]}]]],["p-e957b393.system",[[0,"stencil-router-prompt",{when:[4],message:[1],history:[16],unblock:[32]}]]],["p-c775c0e4.system",[[0,"stencil-router-redirect",{history:[16],root:[1],url:[1]}]]],["p-cf6d9d21.system",[[0,"sss-prefill",{history:[16],prefill:[32]}],[1,"super-selection-app-host",{sessionState:[32],jwt:[32],appConfiguration:[32],ignoreExistingSelection:[32]}],[0,"sss-default-fund",{history:[16],defaultFundProductName:[32]}],[0,"sss-super-campaign-featured-funds",{history:[16],backendUrl:[32],accessToken:[32],currentView:[32]}],[0,"sss-super-smsf-host",{history:[16],backendUrl:[32],accessToken:[32]}],[0,"sss-existing-choice-page",{history:[16],existingFund:[32]}],[0,"sss-standard-choice-form",{history:[16],standardChoiceFormSignature:[32],formState:[32],isSubmitDisabled:[32]}],[0,"sss-success"],[0,"sss-choice-router",{history:[16]}],[0,"sss-my-own-fund-engagement-step-host",{history:[16],backendUrl:[32],accessToken:[32],fundUsi:[32],fundName:[32],memberNumber:[32],memberFirstName:[32],memberFamilyName:[32]}],[0,"sss-super-campaign-host",{history:[16],scriptImported:[32],backendUrl:[32],accessToken:[32]}],[0,"sss-dropdown-async",{testId:[1,"test-id"],placeholder:[1],searchFunction:[16],value:[16],required:[4],requiredValidationMessage:[1,"required-validation-message"],disabled:[4],minSearchStringLength:[2,"min-search-string-length"],showValidationErrors:[4,"show-validation-errors"],searchState:[32],inputValue:[32],isDropdownVisible:[32],filteredOptions:[32],highlightedOptionIndex:[32],selectedOption:[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-name-input",{testId:[1,"test-id"],value:[1],name:[1],readableName:[1,"readable-name"],showValidationErrors:[4,"show-validation-errors"],errorMessage:[32]}],[0,"sss-prefill-my-own-fund",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-smsf",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[0,"sss-prefill-invalid-my-own-fund",{history:[16],prefill:[16],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-invalid-smsf",{history:[16],prefill:[16],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[1,"super-selection-app",{ignoreExistingSelection:[4,"ignore-existing-selection"],accessToken:[1,"access-token"],backendUrl:[1,"backend-url"],appBaseUrl:[1,"app-base-url"],history:[16],location:[16],isSelfHosted:[4,"is-self-hosted"],isAppInitialised:[32]}],[0,"sss-loading-page"],[0,"sss-footer-section",{textOverride:[1,"text-override"]}],[4,"stencil-route-switch",{group:[513],scrollTopOffset:[2,"scroll-top-offset"],location:[16],routeViewsUpdated:[16]}],[4,"stencil-router",{root:[1],historyType:[1,"history-type"],titleSuffix:[1,"title-suffix"],scrollTopOffset:[2,"scroll-top-offset"],location:[32],history:[32]}],[0,"sss-prefill-warning-box",{notificationList:[16]}],[0,"sss-header-section"],[4,"sss-custom-fund",{history:[16],currentCustomFund:[32],fundOptionsList:[32],showFundOptionsSelection:[32]}],[0,"sss-prefill-display-field",{field:[16]}],[0,"sss-prefill-error-box",{withHeader:[4,"with-header"],notificationList:[16]}],[4,"stencil-route-link",{url:[1],urlMatch:[1,"url-match"],activeClass:[1,"active-class"],exact:[4],strict:[4],custom:[1],anchorClass:[1,"anchor-class"],anchorRole:[1,"anchor-role"],anchorTitle:[1,"anchor-title"],anchorTabIndex:[1,"anchor-tab-index"],anchorId:[1,"anchor-id"],history:[16],location:[16],root:[1],ariaHaspopup:[1,"aria-haspopup"],ariaPosinset:[1,"aria-posinset"],ariaSetsize:[2,"aria-setsize"],ariaLabel:[1,"aria-label"],match:[32]}],[4,"sss-button",{testid:[1],fillWidth:[4,"fill-width"],fillWidthOnMobile:[4,"fill-width-on-mobile"],disabled:[4],variant:[1],size:[1],promiseFn:[16],state:[32]}],[0,"sss-loading-indicator",{theme:[1],size:[2]}],[0,"stencil-route",{group:[513],componentUpdated:[16],match:[1040],url:[1],component:[1],componentProps:[16],exact:[4],routeRender:[16],scrollTopOffset:[2,"scroll-top-offset"],routeViewsUpdated:[16],location:[16],history:[16],historyType:[1,"history-type"]}]]]],e)}))}}}));
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function u(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r["throw"](e))}catch(e){i(e)}}function s(e){e.done?n(e.value):o(e.value).then(u,a)}s((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,u;return u={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(e){return function(t){return s([e,t])}}function s(u){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,o&&(i=u[0]&2?o["return"]:u[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;if(o=0,i)u=[u[0]&2,i.value];switch(u[0]){case 0:case 1:i=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;o=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1];i=u;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(u);break}if(i[2])n.ops.pop();n.trys.pop();continue}u=t.call(e,n)}catch(e){u=[6,e];o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-71ca4cf8.system.js","./p-97188c78.system.js"],(function(e){"use strict";var t,n,r,o;return{setters:[function(e){t=e.e;n=e.f;r=e.h},function(e){o=e.A}],execute:function(){e({S:void 0,c:l,f:ae,j:le,k:pe,l:he,p:void 0,t:f,v:c});var i=e("i",(function(e){return e._tag==="Some"}));var u=e("h",(function(e){return e._tag==="None"}));var a=e("n",{_tag:"None"});var s=e("s",(function(e){return{_tag:"Some",value:e}}));function c(e){return e==null?a:s(e)}function f(e){return u(e)?undefined:e.value}function l(e){o.injectProps(e,["history","location"])}function p(){d({type:"appReady"})}function d(e,t){if(t===undefined)t="*";e.sender="flare";window.parent.postMessage(e,t)}function h(e,t){d({type:"contentResized",height:e,width:t})}function v(e){d({type:"pageNavigated",url:e})}function m(){d({type:"complete"})}function g(){d({type:"submitSuccess"})}var y=e("q",{appReady:p,resize:h,navigation:v,complete:m,submitSuccess:g});var b=function(e,t,n){var r=e.get(t);if(!r){e.set(t,[n])}else if(!r.includes(n)){r.push(n)}};var w=function(e,t){var n;return function(){var r=[];for(var o=0;o<arguments.length;o++){r[o]=arguments[o]}if(n){clearTimeout(n)}n=setTimeout((function(){n=0;e.apply(void 0,r)}),t)}};var _=function(e){return!("isConnected"in e)||e.isConnected};var S=w((function(e){for(var t=0,n=e.keys();t<n.length;t++){var r=n[t];e.set(r,e.get(r).filter(_))}}),2e3);var F=function(e){var r=e.on;var o=new Map;if(typeof t==="function"){r("dispose",(function(){o.clear()}));r("get",(function(e){var n=t();if(n){b(o,e,n)}}));r("set",(function(e){var t=o.get(e);if(t){o.set(e,t.filter(n))}S(o)}));r("reset",(function(){o.forEach((function(e){return e.forEach(n)}));S(o)}))}};var C=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 o=function(){n=new Map(Object.entries(e!==null&&e!==void 0?e:{}));r.reset.forEach((function(e){return e()}))};var i=function(){r.dispose.forEach((function(e){return e()}));o()};var u=function(e){r.get.forEach((function(t){return t(e)}));return n.get(e)};var a=function(e,o){var i=n.get(e);if(t(o,i,e)){n.set(e,o);r.set.forEach((function(t){return t(e,o,i)}))}};var s=typeof Proxy==="undefined"?{}:new Proxy(e,{get:function(e,t){return u(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){a(t,n);return true}});var c=function(e,t){r[e].push(t);return function(){P(r[e],t)}};var f=function(t,n){var r=c("set",(function(e,r){if(e===t){n(r)}}));var o=c("reset",(function(){return n(e[t])}));return function(){r();o()}};var l=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:s,get:u,set:a,on:c,onChange:f,use:l,dispose:i,reset:o}};var P=function(e,t){var n=e.indexOf(t);if(n>=0){e[n]=e[e.length-1];e.length--}};var N=e("d",(function(e,t){var n=C(e,t);F(n);return n}));var E={handleSubmitFn:function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2]}))}))},fundName:"",fundDetails:{type:"null"},promotedFundId:undefined};var O=N(E).state;e("m",O);var I;(function(e){e["ExistingChoicePage"]="/existing";e["SuperCampaign"]="/super-campaign";e["ChoicePage"]="/";e["MyOwnFund"]="/super-choice/my-own-fund/";e["MyOwnFundEngagementStep"]="/super-choice/my-own-fund-engagement/";e["Prefill"]="/super-choice/prefill/";e["PrefillInvalidMyOwnFundPage"]="/super-choice/sss-prefill-invalid-my-own-fund/";e["PrefillMyOwnFundPage"]="/super-choice/prefill-my-own-fund/";e["PrefillSMSFPage"]="/super-choice/prefill-smsf/";e["PrefillInvalidSMSFPage"]="/super-choice/prefill-invalid-smsf/";e["SelfManagedFund"]="/super-choice/smsf/";e["DefaultFund"]="/super-choice/default/";e["FeaturedFunds"]="/super-choice/featured-funds/";e["StandardChoice"]="/standard-choice/";e["Success"]="/success/"})(I||(I=e("S",{})));var R=e("r",[r("stencil-route",{url:I.ExistingChoicePage,component:"sss-existing-choice-page"}),r("stencil-route",{url:I.SuperCampaign,component:"sss-super-campaign-host"}),r("stencil-route",{exact:true,url:I.ChoicePage,component:"sss-choice-router"}),r("stencil-route",{url:I.MyOwnFund,component:"sss-super-byof-host"}),r("stencil-route",{url:I.MyOwnFundEngagementStep,component:"sss-my-own-fund-engagement-step-host"}),r("stencil-route",{url:I.PrefillInvalidMyOwnFundPage,component:"sss-prefill-invalid-my-own-fund"}),r("stencil-route",{url:I.Prefill,component:"sss-prefill"}),r("stencil-route",{url:I.PrefillMyOwnFundPage,component:"sss-prefill-my-own-fund"}),r("stencil-route",{url:I.PrefillSMSFPage,component:"sss-prefill-smsf"}),r("stencil-route",{url:I.PrefillInvalidSMSFPage,component:"sss-prefill-invalid-smsf"}),r("stencil-route",{url:I.SelfManagedFund,component:"sss-super-smsf-host"}),r("stencil-route",{url:I.DefaultFund,component:"sss-default-fund"}),r("stencil-route",{url:I.FeaturedFunds,component:"sss-super-campaign-featured-funds"}),r("stencil-route",{url:I.StandardChoice,component:"sss-standard-choice-form"}),r("stencil-route",{url:I.Success,component:"sss-success"})]);function M(e,t,n){return n={path:t,exports:{},require:function(e,t){return j()}},e(n,n.exports),n.exports}function j(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var A=M((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 o(e){return function(){return e}}t.constant=o;t.constTrue=o(true);t.constFalse=o(false);t.constNull=o(null);t.constUndefined=o(undefined);t.constVoid=t.constUndefined;function i(e){return function(t,n){return e(n,t)}}t.flip=i;function u(e,t,n,r,o,i,u,a,s){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 o(r(n(t(e.apply(this,arguments)))))};case 6:return function(){return i(o(r(n(t(e.apply(this,arguments))))))};case 7:return function(){return u(i(o(r(n(t(e.apply(this,arguments)))))))};case 8:return function(){return a(u(i(o(r(n(t(e.apply(this,arguments))))))))};case 9:return function(){return s(a(u(i(o(r(n(t(e.apply(this,arguments)))))))))}}return}t.flow=u;function a(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e}t.tuple=a;function s(e){return e+1}t.increment=s;function c(e){return e-1}t.decrement=c;function f(e){throw new Error("Called `absurd` function which should be uncallable")}t.absurd=f;function l(e){return function(t){return e.apply(void 0,t)}}t.tupled=l;function p(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return e(t)}}t.untupled=p;function d(e,t,n,r,o,i,u,a,s,c,f,l,p,d,h,v,m,g,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 o(r(n(t(e))));case 6:return i(o(r(n(t(e)))));case 7:return u(i(o(r(n(t(e))))));case 8:return a(u(i(o(r(n(t(e)))))));case 9:return s(a(u(i(o(r(n(t(e))))))));case 10:return c(s(a(u(i(o(r(n(t(e)))))))));case 11:return f(c(s(a(u(i(o(r(n(t(e))))))))));case 12:return l(f(c(s(a(u(i(o(r(n(t(e)))))))))));case 13:return p(l(f(c(s(a(u(i(o(r(n(t(e))))))))))));case 14:return d(p(l(f(c(s(a(u(i(o(r(n(t(e)))))))))))));case 15:return h(d(p(l(f(c(s(a(u(i(o(r(n(t(e))))))))))))));case 16:return v(h(d(p(l(f(c(s(a(u(i(o(r(n(t(e)))))))))))))));case 17:return m(v(h(d(p(l(f(c(s(a(u(i(o(r(n(t(e))))))))))))))));case 18:return g(m(v(h(d(p(l(f(c(s(a(u(i(o(r(n(t(e)))))))))))))))));case 19:return y(g(m(v(h(d(p(l(f(c(s(a(u(i(o(r(n(t(e))))))))))))))))));case 20:return b(y(g(m(v(h(d(p(l(f(c(s(a(u(i(o(r(n(t(e)))))))))))))))))))}return}t.pipe=d;t.hole=f;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 U=e("O",M((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 o=function(e){return{_tag:"Some",value:e}};t.some=o;function i(e){return e==null?t.none:t.some(e)}t.fromNullable=i;function u(e){return function(n){return e(n)?t.some(n):t.none}}t.fromPredicate=u;function a(e){try{return t.some(e())}catch(e){return t.none}}t.tryCatch=a;function s(e){return e._tag==="Right"?t.none:t.some(e.left)}t.getLeft=s;function c(e){return e._tag==="Left"?t.none:t.some(e.right)}t.getRight=c;t.fromEither=c;function f(e,n){return function(r){return t.isNone(r)?e():n(r.value)}}t.fold=f;function l(e){return t.isNone(e)?null:e.value}t.toNullable=l;function p(e){return t.isNone(e)?undefined:e.value}t.toUndefined=p;var d=function(e){return function(n){return t.isNone(n)?e():n.value}};t.getOrElseW=d;t.getOrElse=t.getOrElseW;function h(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return i(e.apply(void 0,t))}}t.fromNullableK=h;t.mapNullable=v;function v(e){return function(n){return t.isNone(n)?t.none:i(e(n.value))}}t.chainNullableK=v;var m=function(e,n){return A.pipe(e,t.map(n))};var g=function(e,n){return A.pipe(e,t.ap(n))};var y=function(e,n){return A.pipe(e,t.chain(n))};var b=function(e,n,r){return A.pipe(e,t.reduce(n,r))};var w=function(e){var n=t.foldMap(e);return function(e,t){return A.pipe(e,n(t))}};var _=function(e,n,r){return A.pipe(e,t.reduceRight(n,r))};var S=function(e){var n=t.traverse(e);return function(e,t){return A.pipe(e,n(t))}};var F=function(e,n){return A.pipe(e,t.alt(n))};var C=function(e,n){return A.pipe(e,t.filter(n))};var P=function(e,n){return A.pipe(e,t.filterMap(n))};var N=function(e,n){return A.pipe(e,t.extend(n))};var E=function(e,n){return A.pipe(e,t.partition(n))};var O=function(e,n){return A.pipe(e,t.partitionMap(n))};var I=function(e){var n=t.wither(e);return function(e,t){return A.pipe(e,n(t))}};var R=function(e){var n=t.wilt(e);return function(e,t){return A.pipe(e,n(t))}};var M=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n.value))}};t.map=M;var j=function(e){return function(n){return t.isNone(n)?t.none:t.isNone(e)?t.none:t.some(n.value(e.value))}};t.ap=j;var U=function(e){return A.flow(t.map((function(e){return function(){return e}})),t.ap(e))};t.apFirst=U;var D=function(e){return A.flow(t.map((function(){return function(e){return e}})),t.ap(e))};t.apSecond=D;t.of=t.some;var k=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)}};t.chain=k;var T=function(e){return t.chain((function(n){return A.pipe(e(n),t.map((function(){return n})))}))};t.chainFirst=T;t.flatten=t.chain(A.identity);var B=function(e){return function(n){return t.isNone(n)?e():n}};t.altW=B;t.alt=t.altW;var x=function(){return t.none};t.zero=x;var q=function(){return t.none};t.throwError=q;var L=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n))}};t.extend=L;t.duplicate=t.extend(A.identity);var W=function(e,n){return function(r){return t.isNone(r)?e:n(e,r.value)}};t.reduce=W;var z=function(e){return function(n){return function(r){return t.isNone(r)?e.empty:n(r.value)}}};t.foldMap=z;var J=function(e,n){return function(r){return t.isNone(r)?e:n(r.value,e)}};t.reduceRight=J;t.compact=t.flatten;var K={left:t.none,right:t.none};var Y=function(e){var n=A.pipe(e,t.map((function(e){return{left:s(e),right:c(e)}})));return t.isNone(n)?K:n.value};t.separate=Y;var Q=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)?n:t.none}};t.filter=Q;var X=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)}};t.filterMap=X;var G=function(e){return function(t){return{left:C(t,(function(t){return!e(t)})),right:C(t,e)}}};t.partition=G;var H=function(e){return A.flow(t.map(e),t.separate)};t.partitionMap=H;var V=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=V;var $=function(e){return function(n){return t.isNone(n)?e.of(t.none):e.map(n.value,t.some)}};t.sequence=$;var Z=function(e){return function(n){return function(r){return t.isNone(r)?e.of(t.none):n(r.value)}}};t.wither=Z;var ee=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:s(e),right:c(e)}}))}}};t.wilt=ee;t.URI="Option";function te(e){return{show:function(n){return t.isNone(n)?"none":"some("+e.show(n.value)+")"}}}t.getShow=te;function ne(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=ne;function re(e){return{equals:ne(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=re;function oe(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=oe;function ie(e){return{concat:oe(e).concat,empty:t.some(e.empty)}}t.getApplyMonoid=ie;function ue(){return{concat:function(e,n){return t.isNone(e)?n:e},empty:t.none}}t.getFirstMonoid=ue;function ae(){return{concat:function(e,n){return t.isNone(n)?e:n},empty:t.none}}t.getLastMonoid=ae;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:m};t.Applicative={URI:t.URI,map:m,ap:g,of:t.of};t.Monad={URI:t.URI,map:m,ap:g,of:t.of,chain:y};t.Foldable={URI:t.URI,reduce:b,foldMap:w,reduceRight:_};t.Alt={URI:t.URI,map:m,alt:F};t.Alternative={URI:t.URI,map:m,ap:g,of:t.of,alt:F,zero:t.zero};t.Extend={URI:t.URI,map:m,extend:N};t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate};t.Filterable={URI:t.URI,map:m,compact:t.compact,separate:t.separate,filter:C,filterMap:P,partition:E,partitionMap:O};t.Traversable={URI:t.URI,map:m,reduce:b,foldMap:w,reduceRight:_,traverse:S,sequence:t.sequence};t.Witherable={URI:t.URI,map:m,reduce:b,foldMap:w,reduceRight:_,traverse:S,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:C,filterMap:P,partition:E,partitionMap:O,wither:I,wilt:R};t.MonadThrow={URI:t.URI,map:m,ap:g,of:t.of,chain:y,throwError:t.throwError};t.option={URI:t.URI,map:m,of:t.of,ap:g,chain:y,reduce:b,foldMap:w,reduceRight:_,traverse:S,sequence:t.sequence,zero:t.zero,alt:F,extend:N,compact:t.compact,separate:t.separate,filter:C,filterMap:P,partition:E,partitionMap:O,wither:I,wilt:R,throwError:t.throwError};function ce(e){return function(n,r){return t.isNone(r)?false:e.equals(n,r.value)}}t.elem=ce;function fe(e){return function(n){return t.isNone(n)?false:e(n.value)}}t.exists=fe;function le(e){return function(n){return t.isSome(e(n))}}t.getRefinement=le;t.Do=t.of({});var pe=function(e){return t.map(A.bindTo_(e))};t.bindTo=pe;var de=function(e,n){return t.chain((function(r){return A.pipe(n(r),t.map((function(t){return A.bind_(r,e,t)})))}))};t.bind=de;var he=function(e,n){return A.flow(t.map((function(t){return function(n){return A.bind_(t,e,n)}})),t.ap(n))};t.apS=he;var ve=function(e){return function(n){var r=[];for(var o=0;o<n.length;o++){var i=e(o,n[o]);if(t.isNone(i)){return t.none}r.push(i.value)}return t.some(r)}};t.traverseArrayWithIndex=ve;var me=function(e){return t.traverseArrayWithIndex((function(t,n){return e(n)}))};t.traverseArray=me;t.sequenceArray=t.traverseArray(A.identity)})));function D(e){this.message=e}D.prototype=new Error,D.prototype.name="InvalidCharacterError";var k="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new D("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,o=0,i=0,u="";r=t.charAt(i++);~r&&(n=o%4?64*n+r:r,o++%4)?u+=String.fromCharCode(255&n>>(-2*o&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return u};function T(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(k(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 k(t)}}function B(e){this.message=e}function x(e,t){if("string"!=typeof e)throw new B("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(T(e.split(".")[n]))}catch(e){throw new B("Invalid token specified: "+e.message)}}B.prototype=new Error,B.prototype.name="InvalidTokenError";var q=undefined&&undefined.__assign||function(){q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]}return e};return q.apply(this,arguments)};var L=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),o=0,t=0;t<n;t++)for(var i=arguments[t],u=0,a=i.length;u<a;u++,o++)r[o]=i[u];return r};var W=function(e,t,n){if(n===void 0){n=false}if(!e||!t||typeof e!=="object"||typeof t!=="object")return e;var r=q({},e);for(var o in t){if(t.hasOwnProperty(o)){if(t[o]instanceof Array&&e[o]instanceof Array){r[o]=n?L(e[o],t[o]):t[o]}else if(typeof t[o]==="object"&&typeof e[o]==="object"){r[o]=W(e[o],t[o],n)}else{r[o]=t[o]}}}return r};var z=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),o=0,t=0;t<n;t++)for(var i=arguments[t],u=0,a=i.length;u<a;u++,o++)r[o]=i[u];return r};var J={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,o=r===void 0?true:r,i=n.instance,u=i===void 0?false:i;var a=[];for(var s=2;s<arguments.length;s++){a[s-2]=arguments[s]}var c=this.polyfills[e]||(typeof self!=="undefined"?self[e]:null)||(typeof global!=="undefined"?global[e]:null);if(o&&!c)throw new Error(e+" is not defined");return u&&c?new(c.bind.apply(c,z([void 0],a))):c}};var K=function(e,t,n,r){if(!e.getEntriesByName)return false;var o=e.getEntriesByName(t);if(o&&o.length>0){n(o.reverse()[0]);if(r.clearMeasures)r.clearMeasures(t);Q.callbacks.delete(t);if(Q.callbacks.size<1){Q.observer.disconnect();if(r.clearResourceTimings){r.clearResourceTimings()}}return true}return false};var Y=function(e,t){if(!Q.observer&&e&&t){Q.observer=new t((function(t){Q.callbacks.forEach((function(n,r){K(t,r,n,e)}))}));if(e.clearResourceTimings)e.clearResourceTimings()}return Q.observer};var Q={callbacks:new Map,observer:null,observe:function(e,t){if(!e||!t)return;var n=J.polyfill("performance",{doThrow:false});var r=J.polyfill("PerformanceObserver",{doThrow:false});if(!Y(n,r))return;if(!K(n,e,t,n)){if(Q.callbacks.size<1)Q.observer.observe({entryTypes:["resource","measure"]});Q.callbacks.set(e,t)}}};var X=function(e){return function(t){return e.length===0?t:e.length===1?e[0](t):e.reduceRight((function(n,r,o){return o===e.length-2?r(n(t)):r(n)}))}};var G=function(){function e(e){this.error=e}return e}();var H=function(e){var t=e._url,n=e._catchers,r=e._resolvers,o=e._middlewares,i=e._options;var u=new Map(n);var a=W(J.defaults,i);var s=J.polyfill("AbortController",{doThrow:false,instance:true});if(!a["signal"]&&s){a["signal"]=s.signal}var c={ref:null,clear:function(){if(c.ref){clearTimeout(c.ref);c.ref=null}}};var f=X(o)(J.polyfill("fetch"))(t,a);var l=f.catch((function(e){throw new G(e)})).then((function(e){c.clear();if(!e.ok){return e[J.errorType||"text"]().then((function(t){var n=new Error(t);n[J.errorType||"text"]=t;n["status"]=e.status;n["response"]=e;throw n}))}return e}));var p=function(t){return t.catch((function(t){c.clear();var n=t instanceof G?t.error:t;if(t instanceof G&&u.has("__fromFetch"))return u.get("__fromFetch")(n,e);else if(u.has(n.status))return u.get(n.status)(n,e);else if(u.has(n.name))return u.get(n.name)(n,e);else throw n}))};var d=function(e){return function(t){return e?p(l.then((function(t){return t&&t[e]()})).then((function(e){return t?t(e):e}))):p(l.then((function(e){return t?t(e):e})))}};var h={res:d(null),json:d("json"),blob:d("blob"),formData:d("formData"),arrayBuffer:d("arrayBuffer"),text:d("text"),perfs:function(e){f.then((function(t){return Q.observe(t.url,e)}));return h},setTimeout:function(e,t){if(t===void 0){t=s}c.clear();c.ref=setTimeout((function(){return t.abort()}),e);return h},controller:function(){return[s,h]},error:function(e,t){u.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 V=undefined&&undefined.__assign||function(){V=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]}return e};return V.apply(this,arguments)};var $=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),o=0,t=0;t<n;t++)for(var i=arguments[t],u=0,a=i.length;u<a;u++,o++)r[o]=i[u];return r};var Z="application/json";var ee="Content-Type";var te=function(){function e(e,t,n,r,o,i){if(n===void 0){n=new Map}if(r===void 0){r=[]}if(o===void 0){o=[]}if(i===void 0){i=[]}this._url=e;this._options=t;this._catchers=n;this._resolvers=r;this._middlewares=o;this._deferredChain=i}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,o=r===void 0?this._url:r,i=n.options,u=i===void 0?this._options:i,a=n.catchers,s=a===void 0?this._catchers:a,c=n.resolvers,f=c===void 0?this._resolvers:c,l=n.middlewares,p=l===void 0?this._middlewares:l,d=n.deferredChain,h=d===void 0?this._deferredChain:d;return new e(o,V({},u),new Map(s),$(f),$(p),$(h))};e.prototype.defaults=function(e,t){if(t===void 0){t=false}J.defaults=t?W(J.defaults,e):e;return this};e.prototype.errorType=function(e){J.errorType=e;return this};e.prototype.polyfills=function(e){J.polyfills=V(V({},J.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?W(this._options,e):e})};e.prototype.query=function(e,t){if(t===void 0){t=false}return this.selfFactory({url:ne(this._url,e,t)})};e.prototype.headers=function(e){return this.selfFactory({options:W(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[ee]=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:V(V({},this._options),{signal:e.signal})})};e.prototype.resolve=function(e,t){if(t===void 0){t=false}return this.selfFactory({resolvers:t?[e]:$(this._resolvers,[e])})};e.prototype.defer=function(e,t){if(t===void 0){t=false}return this.selfFactory({deferredChain:t?[e]:$(this._deferredChain,[e])})};e.prototype.middlewares=function(e,t){if(t===void 0){t=false}return this.selfFactory({middlewares:t?e:$(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 o=!n?this:typeof n==="object"&&(!r||Object.entries(r).every((function(e){var t=e[0],n=e[1];return t.toLowerCase()!==ee.toLowerCase()||n.startsWith(Z)})))?this.json(n):this.body(n);o=o.options(V(V({},t),{method:e}));var i=o._deferredChain.reduce((function(e,t){return t(e,e._url,e._options)}),o);return H(i)};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:V(V({},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()===ee.toLowerCase()&&n.startsWith(Z)})))===null||t===void 0?void 0:t[1];return this.content(n||Z).body(JSON.stringify(e))};e.prototype.formData=function(e,t){if(t===void 0){t=false}return this.body(re(e,t))};e.prototype.formUrl=function(e){return this.body(typeof e==="string"?e:ie(e)).content("application/x-www-form-urlencoded")};return e}();var ne=function(e,t,n){var r;if(typeof t==="string"){r=t}else{var o=J.polyfill("URLSearchParams",{instance:true});for(var i in t){if(t[i]instanceof Array){for(var u=0,a=t[i];u<a.length;u++){var s=a[u];o.append(i,s)}}else{o.append(i,t[i])}}r=o.toString()}var c=e.split("?");if(n||c.length<2)return c[0]+"?"+r;return e+"&"+r};function re(e,t,n,r){if(t===void 0){t=false}if(n===void 0){n=J.polyfill("FormData",{instance:true})}if(r===void 0){r=[]}Object.entries(e).forEach((function(e){var o=e[0],i=e[1];var u=r.reduce((function(e,t){return e?e+"["+t+"]":t}),null);u=u?u+"["+o+"]":o;if(i instanceof Array){for(var a=0,s=i;a<s.length;a++){var c=s[a];n.append(u+"[]",c)}}else if(t&&typeof i==="object"&&(!(t instanceof Array)||!t.includes(o))){if(i!==null){re(i,t,n,$(r,[o]))}}else{n.append(u,i)}}));return n}function oe(e,t){return encodeURIComponent(e)+"="+encodeURIComponent(typeof t==="object"?JSON.stringify(t):""+t)}function ie(e){return Object.keys(e).map((function(t){var n=e[t];if(n instanceof Array){return n.map((function(e){return oe(t,e)})).join("&")}return oe(t,n)})).join("&")}var ue=e("u",te.factory);ue["default"]=te.factory;function ae(){var e=Se.jwt;var t=Se.profileId;var n=Se.accountIdOrDefault;var r=Se.partnerIdOrDefault;return ue(Se.apiBaseUrl).headers({Authorization:"Bearer "+e,"X-PROFILE-ID":t,"X-PARTNER-ID":r,"X-ACCOUNT-ID":n})}var se=e("o",{fundId:"slate",usi:"32367272075001"});function ce(e){if("slate"in e){e.kind="slate"}else if("australianRetirementTrust"in e){e.kind="australianRetirementTrust"}else if("aware"in e){e.kind="aware"}else if("active"in e){e.kind="active"}else if("australianEthical"in e){e.kind="australianEthical"}else if("virgin"in e){e.kind="virgin"}else if("spirit"in e){e.kind="spirit"}else if("firstSuper"in e){e.kind="firstSuper"}else if("mercerMyChoice"in e){e.kind="mercerMyChoice"}else if("generic"in e){e.kind="generic"}}function fe(e){switch(e.kind){case"slate":return se.usi;case"australianRetirementTrust":return e.australianRetirementTrust.usi;case"aware":return e.aware.usi;case"active":return e.active.usi;case"australianEthical":return e.australianEthical.usi;case"virgin":return e.virgin.usi;case"spirit":return e.spirit.usi;case"firstSuper":return e.firstSuper.usi;case"mercerMyChoice":return e.mercerMyChoice.usi;case"generic":return e.generic.usi;default:return""}}function le(e){switch(e.kind){case"slate":return se.fundId;case"australianRetirementTrust":return"australian-retirement-trust";case"aware":return"aware";case"active":return"active";case"australianEthical":return"australian-ethical";case"virgin":return"virgin";case"spirit":return"spirit";case"firstSuper":return"first-super";case"mercerMyChoice":return"mercermychoice";case"generic":return e.generic.fundId;default:return""}}function pe(e){switch(e.kind){case"Promoted":return s(fe(e.promoted));case"MyOwnFund":return s(e.myOwnFund.usi);case"SMSF":return a;case"Default":return s(e.default.usi);case"PromotedDefault":return s(e.promotedDefault.usi);case"DefinedBenefits":return s(e.definedBenefits.usi);case"PromotedDefaultWithJoin":return s(e.promotedDefaultWithJoin.usi);default:return a}}function de(e){switch(e.kind){case"slate":return e.slate.memberNumber;case"australianRetirementTrust":return e.australianRetirementTrust.memberNumber;case"aware":return e.aware.memberNumber;case"active":return e.active.memberNumber;case"australianEthical":return e.australianEthical.memberNumber;case"virgin":return e.virgin.memberNumber;case"spirit":return e.spirit.memberNumber;case"firstSuper":return e.firstSuper.memberNumber;case"mercerMyChoice":return e.mercerMyChoice.memberNumber;case"generic":return e.generic.memberNumber;default:return""}}function he(e){switch(e.kind){case"Promoted":return s(de(e.promoted));case"MyOwnFund":return s(e.myOwnFund.memberNumber);case"DefinedBenefits":return s(e.definedBenefits.memberNumber);case"PromotedDefaultWithJoin":return s(e.promotedDefaultWithJoin.memberNumber);case"SMSF":case"Default":case"PromotedDefault":return a;default:return a}}function ve(e){if("promoted"in e){e.kind="Promoted"}else if("myOwnFund"in e){e.kind="MyOwnFund"}else if("smsf"in e){e.kind="SMSF"}else if("default"in e){e.kind="Default"}else if("promotedDefault"in e){e.kind="PromotedDefault"}else if("definedBenefits"in e){e.kind="DefinedBenefits"}else if("promotedDefaultWithJoin"in e){e.kind="PromotedDefaultWithJoin"}}var me=function(){function e(){}e.prototype.getAustralianFundsAsync=function(e,t){if(t===void 0){t=false}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,ae().url("super-choice/australian-funds-v2?"+this.toQueryString(t,e)).get().notFound((function(){throw new Error("Failed to fetch the list of australian super funds.")})).json()]}))}))};e.prototype.getAustralianFundAsync=function(e,t){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(r){n=t?"?includeInactive=true":"";return[2,ae().url("super-choice/australian-funds/"+e+n).get().notFound((function(){throw new Error("Failed to fetch australian super fund.")})).json()]}))}))};e.prototype.getAppStateAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:return[4,ae().url("client-app-state").get().notFound((function(){throw new Error("Failed to fetch application configuration.")})).json()];case 1:t=n.sent();if((e=t.superBuyer.superChoice)===null||e===void 0?void 0:e.choiceDetails){ve(t.superBuyer.superChoice.choiceDetails);switch(t.superBuyer.superChoice.choiceDetails.kind){case"Promoted":ce(t.superBuyer.superChoice.choiceDetails.promoted);break}}return[2,t]}}))}))};e.prototype.clickPromotedTileAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,ae().url("click-promoted-tile").post(e).res()]}))}))};e.prototype.viewSuperFundPanelAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,ae().url("view-super-fund-panel").post(e).res()]}))}))};e.prototype.toSearchFilterQueryString=function(e){return"search="+e.searchString+(e.maxRecordCount>0?"&maxRecordCount="+e.maxRecordCount:"")};e.prototype.toQueryString=function(e,t){var n=this.toSearchFilterQueryString(t);var r=e?"includeInactive=true":"";var o=function(e){return e&&e.length};return[n,r].filter(o).join("&")};return e}();var ge=e("e",new me);var ye;(function(e){e[e["NotLoaded"]=1]="NotLoaded";e[e["Loaded"]=2]="Loaded";e[e["NotWorking"]=3]="NotWorking"})(ye||(ye=e("p",{})));var be=function(){function e(){this._promotedFundsShown=[]}Object.defineProperty(e.prototype,"PromotedFundIds",{get:function(){return this._promotedFundsShown.map((function(e){return e.fundId}))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFundsShown",{set:function(e){this._promotedFundsShown=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"DefaultFundPosition",{get:function(){var e=this._promotedFundsShown.findIndex((function(e){return e.fundType==="promoted-default"}));if(e===-1)return undefined;return e+1},enumerable:false,configurable:true});return e}();var we={apiBaseUrl:U.none,appBaseUrl:U.none,profileId:U.none,jwt:U.none,superBuyer:U.none,superChoicePrefill:U.none,promotedFunds:U.none,accountConfiguration:U.none,profileConfiguration:U.none,hasSuccessPageBeenAcknowledged:false,hasSuperSelectionBeenSubmitted:false,isDefinedBenefitsEligible:U.none,superCampaignEnabled:true,superCampaignState:undefined,superCampaignComponentStatus:ye.NotLoaded,hideFooterSection:false,bringYourOwnFundCustomStepEnabled:false,featuredFundsEnabled:false};var _e=function(){function e(){var e=this;var t=N(we),n=t.state,r=t.onChange;this._state=n;this._onChange=r;r("jwt",(function(t){e._state.profileId=A.pipe(t,U.chain((function(e){return U.fromNullable(x(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(U.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(U.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(U.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(this.state.superCampaignEnabled&&this.superCampaignState!==undefined){return this.superCampaignState.PromotedFundIds}if(U.isNone(this._state.promotedFunds)){throw Error("Promoted Funds is not set")}return this._state.promotedFunds.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedDefaultFundPosition",{get:function(){if(this.state.superCampaignEnabled&&this.superCampaignState!==undefined){return U.fromNullable(this.superCampaignState.DefaultFundPosition)}return U.none},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFundsConfig",{get:function(){return{shownFunds:this.promotedFunds,promotedDefaultFundPosition:U.toUndefined(this.promotedDefaultFundPosition),promotedFundsConfigSource:this.isUsingSuperCampaign?"superCampaign":"superSelection"}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"profileId",{get:function(){if(U.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(){var e=A.pipe(this._state.profileConfiguration,U.map((function(e){return U.fromNullable(e.defaultFundUsi)})),U.flatten);if(U.isSome(e)){return e}return A.pipe(this._state.accountConfiguration,U.map((function(e){return U.fromNullable(e.defaultFundUsi)})),U.flatten)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"accountIdOrDefault",{get:function(){return A.pipe(this._state.accountConfiguration,U.map((function(e){return e.accountId})),U.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"partnerIdOrDefault",{get:function(){return A.pipe(this._state.superBuyer,U.map((function(e){return e.partnerId})),U.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"jwt",{get:function(){if(U.isNone(this._state.jwt)){throw Error("No authentication information was found")}return this._state.jwt.value},enumerable:false,configurable:true});e.prototype.completeSuperSelectionFlow=function(){this._state.hasSuccessPageBeenAcknowledged=true};e.prototype.markSuperSelectionAsSubmitted=function(){this._state.hasSuperSelectionBeenSubmitted=true};Object.defineProperty(e.prototype,"isDefinedBenefitsEligible",{get:function(){return this._state.isDefinedBenefitsEligible},enumerable:false,configurable: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,ge.getAppStateAsync()];case 1:e=t.sent();this._state.accountConfiguration=U.fromNullable(e.accountConfiguration);this._state.profileConfiguration=U.fromNullable(e.profileConfiguration);this._state.superBuyer=U.fromNullable(e.superBuyer);this._state.promotedFunds=U.fromNullable(e.promotedFunds);this._state.bringYourOwnFundCustomStepEnabled=e.bringYourOwnFundCustomStepEnabled;this._state.featuredFundsEnabled=e.featuredFundsEnabled;this._state.superChoicePrefill=U.fromNullable(e.prefill);this._state.isDefinedBenefitsEligible=U.fromNullable(e.isDefinedBenefitsEligible);if(U.isSome(this._state.accountConfiguration)){if(this._state.accountConfiguration.value.featureSet.type==="basic"){this._state.superCampaignEnabled=false}}return[2]}}))}))};e.prototype.setSuperCampaignPromotedFundsShown=function(e){if(this._state.superCampaignState!==undefined)this._state.superCampaignState.promotedFundsShown=e;else throw new Error("Cannot set shown funds for SuperCampaing state because it is undefined")};e.prototype.viewSuperFundPanelAsync=function(e,t){return ge.viewSuperFundPanelAsync(Object.assign(Object.assign({},this.promotedFundsConfig),{shownFunds:t?t:this.promotedFundsConfig.shownFunds,placementId:e}))};Object.defineProperty(e.prototype,"superCampaignState",{get:function(){return this._state.superCampaignState},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"superCampaignComponentStatus",{get:function(){return this._state.superCampaignComponentStatus},set:function(e){if(e===ye.Loaded){this._state.superCampaignComponentStatus=ye.Loaded;this._state.superCampaignState=new be}else{this._state.superCampaignComponentStatus=e;this._state.superCampaignState=undefined}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isUsingSuperCampaign",{get:function(){return this.state.superCampaignEnabled&&this.superCampaignState!==undefined},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isBringYourOwnFundCustomStepEnabled",{get:function(){return this.state.bringYourOwnFundCustomStepEnabled},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isFeaturedFundsEnabled",{get:function(){return this.state.featuredFundsEnabled},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"superCampaignCanNotBeActivated",{get:function(){return!this.state.superCampaignEnabled||this.superCampaignComponentStatus===ye.NotWorking},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"hideFooterSection",{get:function(){return this._state.hideFooterSection},set:function(e){this._state.hideFooterSection=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"backendUrl",{get:function(){return U.map(this.getBaseUrl)(this.state.apiBaseUrl)},enumerable:false,configurable:true});e.prototype.getBaseUrl=function(e){var t=new URL(e);return t.protocol+"//"+t.hostname+(t.port.length>0?":"+t.port:"")};return e}();var Se=e("a",new _e);var Fe=function(){function e(){}e.prototype.navigateInternally=function(e,t){var n=""+this.appBaseUrl+this.toRouteWithLeadingSlash(t);y.navigation(n);e.push(n)};e.prototype.navigateInternallyToStandardChoice=function(e){O.handleSubmitFn=e.handleSubmitFn;O.fundName=e.fundName;O.fundDetails=e.fundDetails;O.promotedFundId=e.promotedFundId;this.navigateInternally(e.history,I.StandardChoice)};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=Se.appBaseUrl;return e.replace(/\/$/,"")},enumerable:false,configurable:true});e.prototype.toRouteWithLeadingSlash=function(e){return e.length>0&&e[0]==="/"?e:"/"+e};return e}();var Ce=e("b",new Fe);var Pe=function(){function e(){}e.prototype.submitDefaultFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,ae().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,ae().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,ae().url("super-choice/smsf").post(e).badRequest((function(){throw new Error("Failed to process SMSF choice request")})).text()]}))}))};e.prototype.submitDefinedBenefitsChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,ae().url("super-choice/defined-benefits").post(e).badRequest((function(){throw new Error("Failed to process Defined Benefits choice request")})).text()]}))}))};e.prototype.validateAbnForSMSF=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return[4,ae().url("super-choice/smsf/"+e+"/validate").get().badRequest((function(){throw new Error("Failed to verify that if the provided abn is used for regulated fund")})).json()];case 1:t=n.sent();return[2,t.result]}}))}))};return e}();var Ne=e("g",new Pe)}}}));
1
+ 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,o){function u(e){try{s(r.next(e))}catch(e){o(e)}}function a(e){try{s(r["throw"](e))}catch(e){o(e)}}function s(e){e.done?n(e.value):i(e.value).then(u,a)}s((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,u;return u={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(e){return function(t){return s([e,t])}}function s(u){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=u[0]&2?i["return"]:u[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;if(i=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;i=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1];o=u;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(u);break}if(o[2])n.ops.pop();n.trys.pop();continue}u=t.call(e,n)}catch(e){u=[6,e];i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-71ca4cf8.system.js","./p-97188c78.system.js"],(function(e){"use strict";var t,n,r,i;return{setters:[function(e){t=e.e;n=e.f;r=e.h},function(e){i=e.A}],execute:function(){e({S:void 0,c:l,h:le,j:ae,k:pe,l:he,p:void 0,t:f,v:c});var o=e("i",(function(e){return e._tag==="Some"}));var u=e("g",(function(e){return e._tag==="None"}));var a=e("n",{_tag:"None"});var s=e("s",(function(e){return{_tag:"Some",value:e}}));function c(e){return e==null?a:s(e)}function f(e){return u(e)?undefined:e.value}function l(e){i.injectProps(e,["history","location"])}function p(){d({type:"appReady"})}function d(e,t){if(t===undefined)t="*";e.sender="flare";window.parent.postMessage(e,t)}function h(e,t){d({type:"contentResized",height:e,width:t})}function v(e){d({type:"pageNavigated",url:e})}function m(){d({type:"complete"})}function g(){d({type:"submitSuccess"})}var y=e("q",{appReady:p,resize:h,navigation:v,complete:m,submitSuccess:g});var b=function(e,t,n){var r=e.get(t);if(!r){e.set(t,[n])}else if(!r.includes(n)){r.push(n)}};var w=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 _=function(e){return!("isConnected"in e)||e.isConnected};var S=w((function(e){for(var t=0,n=e.keys();t<n.length;t++){var r=n[t];e.set(r,e.get(r).filter(_))}}),2e3);var F=function(e){var r=e.on;var i=new Map;if(typeof t==="function"){r("dispose",(function(){i.clear()}));r("get",(function(e){var n=t();if(n){b(i,e,n)}}));r("set",(function(e){var t=i.get(e);if(t){i.set(e,t.filter(n))}S(i)}));r("reset",(function(){i.forEach((function(e){return e.forEach(n)}));S(i)}))}};var C=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 o=function(){r.dispose.forEach((function(e){return e()}));i()};var u=function(e){r.get.forEach((function(t){return t(e)}));return n.get(e)};var a=function(e,i){var o=n.get(e);if(t(i,o,e)){n.set(e,i);r.set.forEach((function(t){return t(e,i,o)}))}};var s=typeof Proxy==="undefined"?{}:new Proxy(e,{get:function(e,t){return u(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){a(t,n);return true}});var c=function(e,t){r[e].push(t);return function(){E(r[e],t)}};var f=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 l=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:s,get:u,set:a,on:c,onChange:f,use:l,dispose:o,reset:i}};var E=function(e,t){var n=e.indexOf(t);if(n>=0){e[n]=e[e.length-1];e.length--}};var P=e("d",(function(e,t){var n=C(e,t);F(n);return n}));var A={handleSubmitFn:function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2]}))}))},fundName:"",fundDetails:{type:"null"},promotedFundId:undefined};var N=P(A).state;e("m",N);var O;(function(e){e["ExistingChoicePage"]="/existing";e["SuperCampaign"]="/super-campaign";e["ChoicePage"]="/";e["MyOwnFund"]="/super-choice/my-own-fund/";e["MyOwnFundEngagementStep"]="/super-choice/my-own-fund-engagement/";e["Prefill"]="/super-choice/prefill/";e["PrefillInvalidMyOwnFundPage"]="/super-choice/sss-prefill-invalid-my-own-fund/";e["PrefillMyOwnFundPage"]="/super-choice/prefill-my-own-fund/";e["PrefillSMSFPage"]="/super-choice/prefill-smsf/";e["PrefillInvalidSMSFPage"]="/super-choice/prefill-invalid-smsf/";e["SelfManagedFund"]="/super-choice/smsf/";e["DefaultFund"]="/super-choice/default/";e["FeaturedFunds"]="/super-choice/featured-funds/";e["StandardChoice"]="/standard-choice/";e["Success"]="/success/"})(O||(O=e("S",{})));var k=e("r",[r("stencil-route",{url:O.ExistingChoicePage,component:"sss-existing-choice-page"}),r("stencil-route",{url:O.SuperCampaign,component:"sss-super-campaign-host"}),r("stencil-route",{exact:true,url:O.ChoicePage,component:"sss-choice-router"}),r("stencil-route",{url:O.MyOwnFund,component:"sss-super-byof-host"}),r("stencil-route",{url:O.MyOwnFundEngagementStep,component:"sss-my-own-fund-engagement-step-host"}),r("stencil-route",{url:O.PrefillInvalidMyOwnFundPage,component:"sss-prefill-invalid-my-own-fund"}),r("stencil-route",{url:O.Prefill,component:"sss-prefill"}),r("stencil-route",{url:O.PrefillMyOwnFundPage,component:"sss-prefill-my-own-fund"}),r("stencil-route",{url:O.PrefillSMSFPage,component:"sss-prefill-smsf"}),r("stencil-route",{url:O.PrefillInvalidSMSFPage,component:"sss-prefill-invalid-smsf"}),r("stencil-route",{url:O.SelfManagedFund,component:"sss-super-smsf-host"}),r("stencil-route",{url:O.DefaultFund,component:"sss-default-fund"}),r("stencil-route",{url:O.FeaturedFunds,component:"sss-super-campaign-featured-funds"}),r("stencil-route",{url:O.StandardChoice,component:"sss-standard-choice-form"}),r("stencil-route",{url:O.Success,component:"sss-success"})]);function D(e,t,n){return n={path:t,exports:{},require:function(e,t){return I()}},e(n,n.exports),n.exports}function I(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var M=D((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 o(e){return function(t,n){return e(n,t)}}t.flip=o;function u(e,t,n,r,i,o,u,a,s){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 o(i(r(n(t(e.apply(this,arguments))))))};case 7:return function(){return u(o(i(r(n(t(e.apply(this,arguments)))))))};case 8:return function(){return a(u(o(i(r(n(t(e.apply(this,arguments))))))))};case 9:return function(){return s(a(u(o(i(r(n(t(e.apply(this,arguments)))))))))}}return}t.flow=u;function a(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e}t.tuple=a;function s(e){return e+1}t.increment=s;function c(e){return e-1}t.decrement=c;function f(e){throw new Error("Called `absurd` function which should be uncallable")}t.absurd=f;function l(e){return function(t){return e.apply(void 0,t)}}t.tupled=l;function p(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return e(t)}}t.untupled=p;function d(e,t,n,r,i,o,u,a,s,c,f,l,p,d,h,v,m,g,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 o(i(r(n(t(e)))));case 7:return u(o(i(r(n(t(e))))));case 8:return a(u(o(i(r(n(t(e)))))));case 9:return s(a(u(o(i(r(n(t(e))))))));case 10:return c(s(a(u(o(i(r(n(t(e)))))))));case 11:return f(c(s(a(u(o(i(r(n(t(e))))))))));case 12:return l(f(c(s(a(u(o(i(r(n(t(e)))))))))));case 13:return p(l(f(c(s(a(u(o(i(r(n(t(e))))))))))));case 14:return d(p(l(f(c(s(a(u(o(i(r(n(t(e)))))))))))));case 15:return h(d(p(l(f(c(s(a(u(o(i(r(n(t(e))))))))))))));case 16:return v(h(d(p(l(f(c(s(a(u(o(i(r(n(t(e)))))))))))))));case 17:return m(v(h(d(p(l(f(c(s(a(u(o(i(r(n(t(e))))))))))))))));case 18:return g(m(v(h(d(p(l(f(c(s(a(u(o(i(r(n(t(e)))))))))))))))));case 19:return y(g(m(v(h(d(p(l(f(c(s(a(u(o(i(r(n(t(e))))))))))))))))));case 20:return b(y(g(m(v(h(d(p(l(f(c(s(a(u(o(i(r(n(t(e)))))))))))))))))))}return}t.pipe=d;t.hole=f;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 R=e("O",D((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 o(e){return e==null?t.none:t.some(e)}t.fromNullable=o;function u(e){return function(n){return e(n)?t.some(n):t.none}}t.fromPredicate=u;function a(e){try{return t.some(e())}catch(e){return t.none}}t.tryCatch=a;function s(e){return e._tag==="Right"?t.none:t.some(e.left)}t.getLeft=s;function c(e){return e._tag==="Left"?t.none:t.some(e.right)}t.getRight=c;t.fromEither=c;function f(e,n){return function(r){return t.isNone(r)?e():n(r.value)}}t.fold=f;function l(e){return t.isNone(e)?null:e.value}t.toNullable=l;function p(e){return t.isNone(e)?undefined:e.value}t.toUndefined=p;var d=function(e){return function(n){return t.isNone(n)?e():n.value}};t.getOrElseW=d;t.getOrElse=t.getOrElseW;function h(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return o(e.apply(void 0,t))}}t.fromNullableK=h;t.mapNullable=v;function v(e){return function(n){return t.isNone(n)?t.none:o(e(n.value))}}t.chainNullableK=v;var m=function(e,n){return M.pipe(e,t.map(n))};var g=function(e,n){return M.pipe(e,t.ap(n))};var y=function(e,n){return M.pipe(e,t.chain(n))};var b=function(e,n,r){return M.pipe(e,t.reduce(n,r))};var w=function(e){var n=t.foldMap(e);return function(e,t){return M.pipe(e,n(t))}};var _=function(e,n,r){return M.pipe(e,t.reduceRight(n,r))};var S=function(e){var n=t.traverse(e);return function(e,t){return M.pipe(e,n(t))}};var F=function(e,n){return M.pipe(e,t.alt(n))};var C=function(e,n){return M.pipe(e,t.filter(n))};var E=function(e,n){return M.pipe(e,t.filterMap(n))};var P=function(e,n){return M.pipe(e,t.extend(n))};var A=function(e,n){return M.pipe(e,t.partition(n))};var N=function(e,n){return M.pipe(e,t.partitionMap(n))};var O=function(e){var n=t.wither(e);return function(e,t){return M.pipe(e,n(t))}};var k=function(e){var n=t.wilt(e);return function(e,t){return M.pipe(e,n(t))}};var D=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n.value))}};t.map=D;var I=function(e){return function(n){return t.isNone(n)?t.none:t.isNone(e)?t.none:t.some(n.value(e.value))}};t.ap=I;var R=function(e){return M.flow(t.map((function(e){return function(){return e}})),t.ap(e))};t.apFirst=R;var j=function(e){return M.flow(t.map((function(){return function(e){return e}})),t.ap(e))};t.apSecond=j;t.of=t.some;var U=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)}};t.chain=U;var T=function(e){return t.chain((function(n){return M.pipe(e(n),t.map((function(){return n})))}))};t.chainFirst=T;t.flatten=t.chain(M.identity);var B=function(e){return function(n){return t.isNone(n)?e():n}};t.altW=B;t.alt=t.altW;var x=function(){return t.none};t.zero=x;var q=function(){return t.none};t.throwError=q;var L=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n))}};t.extend=L;t.duplicate=t.extend(M.identity);var W=function(e,n){return function(r){return t.isNone(r)?e:n(e,r.value)}};t.reduce=W;var V=function(e){return function(n){return function(r){return t.isNone(r)?e.empty:n(r.value)}}};t.foldMap=V;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 J={left:t.none,right:t.none};var K=function(e){var n=M.pipe(e,t.map((function(e){return{left:s(e),right:c(e)}})));return t.isNone(n)?J:n.value};t.separate=K;var Y=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)?n:t.none}};t.filter=Y;var Q=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)}};t.filterMap=Q;var X=function(e){return function(t){return{left:C(t,(function(t){return!e(t)})),right:C(t,e)}}};t.partition=X;var G=function(e){return M.flow(t.map(e),t.separate)};t.partitionMap=G;var H=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=H;var $=function(e){return function(n){return t.isNone(n)?e.of(t.none):e.map(n.value,t.some)}};t.sequence=$;var Z=function(e){return function(n){return function(r){return t.isNone(r)?e.of(t.none):n(r.value)}}};t.wither=Z;var ee=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:s(e),right:c(e)}}))}}};t.wilt=ee;t.URI="Option";function te(e){return{show:function(n){return t.isNone(n)?"none":"some("+e.show(n.value)+")"}}}t.getShow=te;function ne(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=ne;function re(e){return{equals:ne(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=re;function ie(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=ie;function oe(e){return{concat:ie(e).concat,empty:t.some(e.empty)}}t.getApplyMonoid=oe;function ue(){return{concat:function(e,n){return t.isNone(e)?n:e},empty:t.none}}t.getFirstMonoid=ue;function ae(){return{concat:function(e,n){return t.isNone(n)?e:n},empty:t.none}}t.getLastMonoid=ae;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:m};t.Applicative={URI:t.URI,map:m,ap:g,of:t.of};t.Monad={URI:t.URI,map:m,ap:g,of:t.of,chain:y};t.Foldable={URI:t.URI,reduce:b,foldMap:w,reduceRight:_};t.Alt={URI:t.URI,map:m,alt:F};t.Alternative={URI:t.URI,map:m,ap:g,of:t.of,alt:F,zero:t.zero};t.Extend={URI:t.URI,map:m,extend:P};t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate};t.Filterable={URI:t.URI,map:m,compact:t.compact,separate:t.separate,filter:C,filterMap:E,partition:A,partitionMap:N};t.Traversable={URI:t.URI,map:m,reduce:b,foldMap:w,reduceRight:_,traverse:S,sequence:t.sequence};t.Witherable={URI:t.URI,map:m,reduce:b,foldMap:w,reduceRight:_,traverse:S,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:C,filterMap:E,partition:A,partitionMap:N,wither:O,wilt:k};t.MonadThrow={URI:t.URI,map:m,ap:g,of:t.of,chain:y,throwError:t.throwError};t.option={URI:t.URI,map:m,of:t.of,ap:g,chain:y,reduce:b,foldMap:w,reduceRight:_,traverse:S,sequence:t.sequence,zero:t.zero,alt:F,extend:P,compact:t.compact,separate:t.separate,filter:C,filterMap:E,partition:A,partitionMap:N,wither:O,wilt:k,throwError:t.throwError};function ce(e){return function(n,r){return t.isNone(r)?false:e.equals(n,r.value)}}t.elem=ce;function fe(e){return function(n){return t.isNone(n)?false:e(n.value)}}t.exists=fe;function le(e){return function(n){return t.isSome(e(n))}}t.getRefinement=le;t.Do=t.of({});var pe=function(e){return t.map(M.bindTo_(e))};t.bindTo=pe;var de=function(e,n){return t.chain((function(r){return M.pipe(n(r),t.map((function(t){return M.bind_(r,e,t)})))}))};t.bind=de;var he=function(e,n){return M.flow(t.map((function(t){return function(n){return M.bind_(t,e,n)}})),t.ap(n))};t.apS=he;var ve=function(e){return function(n){var r=[];for(var i=0;i<n.length;i++){var o=e(i,n[i]);if(t.isNone(o)){return t.none}r.push(o.value)}return t.some(r)}};t.traverseArrayWithIndex=ve;var me=function(e){return t.traverseArrayWithIndex((function(t,n){return e(n)}))};t.traverseArray=me;t.sequenceArray=t.traverseArray(M.identity)})));function j(e){this.message=e}j.prototype=new Error,j.prototype.name="InvalidCharacterError";var U="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new j("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,o=0,u="";r=t.charAt(o++);~r&&(n=i%4?64*n+r:r,i++%4)?u+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return u};function T(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(U(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 U(t)}}function B(e){this.message=e}function x(e,t){if("string"!=typeof e)throw new B("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(T(e.split(".")[n]))}catch(e){throw new B("Invalid token specified: "+e.message)}}B.prototype=new Error,B.prototype.name="InvalidTokenError";var q=undefined&&undefined.__assign||function(){q=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 q.apply(this,arguments)};var L=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 o=arguments[t],u=0,a=o.length;u<a;u++,i++)r[i]=o[u];return r};var W=function(e,t,n){if(n===void 0){n=false}if(!e||!t||typeof e!=="object"||typeof t!=="object")return e;var r=q({},e);for(var i in t){if(t.hasOwnProperty(i)){if(t[i]instanceof Array&&e[i]instanceof Array){r[i]=n?L(e[i],t[i]):t[i]}else if(typeof t[i]==="object"&&typeof e[i]==="object"){r[i]=W(e[i],t[i],n)}else{r[i]=t[i]}}}return r};var V=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 o=arguments[t],u=0,a=o.length;u<a;u++,i++)r[i]=o[u];return r};var z={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,o=n.instance,u=o===void 0?false:o;var a=[];for(var s=2;s<arguments.length;s++){a[s-2]=arguments[s]}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 u&&c?new(c.bind.apply(c,V([void 0],a))):c}};var J=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);Y.callbacks.delete(t);if(Y.callbacks.size<1){Y.observer.disconnect();if(r.clearResourceTimings){r.clearResourceTimings()}}return true}return false};var K=function(e,t){if(!Y.observer&&e&&t){Y.observer=new t((function(t){Y.callbacks.forEach((function(n,r){J(t,r,n,e)}))}));if(e.clearResourceTimings)e.clearResourceTimings()}return Y.observer};var Y={callbacks:new Map,observer:null,observe:function(e,t){if(!e||!t)return;var n=z.polyfill("performance",{doThrow:false});var r=z.polyfill("PerformanceObserver",{doThrow:false});if(!K(n,r))return;if(!J(n,e,t,n)){if(Y.callbacks.size<1)Y.observer.observe({entryTypes:["resource","measure"]});Y.callbacks.set(e,t)}}};var Q=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 X=function(){function e(e){this.error=e}return e}();var G=function(e){var t=e._url,n=e._catchers,r=e._resolvers,i=e._middlewares,o=e._options;var u=new Map(n);var a=W(z.defaults,o);var s=z.polyfill("AbortController",{doThrow:false,instance:true});if(!a["signal"]&&s){a["signal"]=s.signal}var c={ref:null,clear:function(){if(c.ref){clearTimeout(c.ref);c.ref=null}}};var f=Q(i)(z.polyfill("fetch"))(t,a);var l=f.catch((function(e){throw new X(e)})).then((function(e){c.clear();if(!e.ok){return e[z.errorType||"text"]().then((function(t){var n=new Error(t);n[z.errorType||"text"]=t;n["status"]=e.status;n["response"]=e;throw n}))}return e}));var p=function(t){return t.catch((function(t){c.clear();var n=t instanceof X?t.error:t;if(t instanceof X&&u.has("__fromFetch"))return u.get("__fromFetch")(n,e);else if(u.has(n.status))return u.get(n.status)(n,e);else if(u.has(n.name))return u.get(n.name)(n,e);else throw n}))};var d=function(e){return function(t){return e?p(l.then((function(t){return t&&t[e]()})).then((function(e){return t?t(e):e}))):p(l.then((function(e){return t?t(e):e})))}};var h={res:d(null),json:d("json"),blob:d("blob"),formData:d("formData"),arrayBuffer:d("arrayBuffer"),text:d("text"),perfs:function(e){f.then((function(t){return Y.observe(t.url,e)}));return h},setTimeout:function(e,t){if(t===void 0){t=s}c.clear();c.ref=setTimeout((function(){return t.abort()}),e);return h},controller:function(){return[s,h]},error:function(e,t){u.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 H=undefined&&undefined.__assign||function(){H=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 H.apply(this,arguments)};var $=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 o=arguments[t],u=0,a=o.length;u<a;u++,i++)r[i]=o[u];return r};var Z="application/json";var ee="Content-Type";var te=function(){function e(e,t,n,r,i,o){if(n===void 0){n=new Map}if(r===void 0){r=[]}if(i===void 0){i=[]}if(o===void 0){o=[]}this._url=e;this._options=t;this._catchers=n;this._resolvers=r;this._middlewares=i;this._deferredChain=o}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,o=n.options,u=o===void 0?this._options:o,a=n.catchers,s=a===void 0?this._catchers:a,c=n.resolvers,f=c===void 0?this._resolvers:c,l=n.middlewares,p=l===void 0?this._middlewares:l,d=n.deferredChain,h=d===void 0?this._deferredChain:d;return new e(i,H({},u),new Map(s),$(f),$(p),$(h))};e.prototype.defaults=function(e,t){if(t===void 0){t=false}z.defaults=t?W(z.defaults,e):e;return this};e.prototype.errorType=function(e){z.errorType=e;return this};e.prototype.polyfills=function(e){z.polyfills=H(H({},z.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?W(this._options,e):e})};e.prototype.query=function(e,t){if(t===void 0){t=false}return this.selfFactory({url:ne(this._url,e,t)})};e.prototype.headers=function(e){return this.selfFactory({options:W(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[ee]=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:H(H({},this._options),{signal:e.signal})})};e.prototype.resolve=function(e,t){if(t===void 0){t=false}return this.selfFactory({resolvers:t?[e]:$(this._resolvers,[e])})};e.prototype.defer=function(e,t){if(t===void 0){t=false}return this.selfFactory({deferredChain:t?[e]:$(this._deferredChain,[e])})};e.prototype.middlewares=function(e,t){if(t===void 0){t=false}return this.selfFactory({middlewares:t?e:$(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()!==ee.toLowerCase()||n.startsWith(Z)})))?this.json(n):this.body(n);i=i.options(H(H({},t),{method:e}));var o=i._deferredChain.reduce((function(e,t){return t(e,e._url,e._options)}),i);return G(o)};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:H(H({},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()===ee.toLowerCase()&&n.startsWith(Z)})))===null||t===void 0?void 0:t[1];return this.content(n||Z).body(JSON.stringify(e))};e.prototype.formData=function(e,t){if(t===void 0){t=false}return this.body(re(e,t))};e.prototype.formUrl=function(e){return this.body(typeof e==="string"?e:oe(e)).content("application/x-www-form-urlencoded")};return e}();var ne=function(e,t,n){var r;if(typeof t==="string"){r=t}else{var i=z.polyfill("URLSearchParams",{instance:true});for(var o in t){if(t[o]instanceof Array){for(var u=0,a=t[o];u<a.length;u++){var s=a[u];i.append(o,s)}}else{i.append(o,t[o])}}r=i.toString()}var c=e.split("?");if(n||c.length<2)return c[0]+"?"+r;return e+"&"+r};function re(e,t,n,r){if(t===void 0){t=false}if(n===void 0){n=z.polyfill("FormData",{instance:true})}if(r===void 0){r=[]}Object.entries(e).forEach((function(e){var i=e[0],o=e[1];var u=r.reduce((function(e,t){return e?e+"["+t+"]":t}),null);u=u?u+"["+i+"]":i;if(o instanceof Array){for(var a=0,s=o;a<s.length;a++){var c=s[a];n.append(u+"[]",c)}}else if(t&&typeof o==="object"&&(!(t instanceof Array)||!t.includes(i))){if(o!==null){re(o,t,n,$(r,[i]))}}else{n.append(u,o)}}));return n}function ie(e,t){return encodeURIComponent(e)+"="+encodeURIComponent(typeof t==="object"?JSON.stringify(t):""+t)}function oe(e){return Object.keys(e).map((function(t){var n=e[t];if(n instanceof Array){return n.map((function(e){return ie(t,e)})).join("&")}return ie(t,n)})).join("&")}var ue=e("u",te.factory);ue["default"]=te.factory;function ae(){var e=Se.jwt;var t=Se.profileId;var n=Se.accountIdOrDefault;var r=Se.partnerIdOrDefault;return ue(Se.apiBaseUrl).headers({Authorization:"Bearer "+e,"X-PROFILE-ID":t,"X-PARTNER-ID":r,"X-ACCOUNT-ID":n})}var se=e("o",{fundId:"slate",usi:"32367272075001"});function ce(e){if("slate"in e){e.kind="slate"}else if("australianRetirementTrust"in e){e.kind="australianRetirementTrust"}else if("aware"in e){e.kind="aware"}else if("active"in e){e.kind="active"}else if("australianEthical"in e){e.kind="australianEthical"}else if("virgin"in e){e.kind="virgin"}else if("spirit"in e){e.kind="spirit"}else if("firstSuper"in e){e.kind="firstSuper"}else if("mercerMyChoice"in e){e.kind="mercerMyChoice"}else if("generic"in e){e.kind="generic"}}function fe(e){switch(e.kind){case"slate":return se.usi;case"australianRetirementTrust":return e.australianRetirementTrust.usi;case"aware":return e.aware.usi;case"active":return e.active.usi;case"australianEthical":return e.australianEthical.usi;case"virgin":return e.virgin.usi;case"spirit":return e.spirit.usi;case"firstSuper":return e.firstSuper.usi;case"mercerMyChoice":return e.mercerMyChoice.usi;case"generic":return e.generic.usi;default:return""}}function le(e){switch(e.kind){case"slate":return se.fundId;case"australianRetirementTrust":return"australian-retirement-trust";case"aware":return"aware";case"active":return"active";case"australianEthical":return"australian-ethical";case"virgin":return"virgin";case"spirit":return"spirit";case"firstSuper":return"first-super";case"mercerMyChoice":return"mercermychoice";case"generic":return e.generic.fundId;default:return""}}function pe(e){switch(e.kind){case"Promoted":return s(fe(e.promoted));case"MyOwnFund":return s(e.myOwnFund.usi);case"SMSF":return a;case"Default":return s(e.default.usi);case"PromotedDefault":return s(e.promotedDefault.usi);case"DefinedBenefits":return s(e.definedBenefits.usi);case"PromotedDefaultWithJoin":return s(e.promotedDefaultWithJoin.usi);default:return a}}function de(e){switch(e.kind){case"slate":return e.slate.memberNumber;case"australianRetirementTrust":return e.australianRetirementTrust.memberNumber;case"aware":return e.aware.memberNumber;case"active":return e.active.memberNumber;case"australianEthical":return e.australianEthical.memberNumber;case"virgin":return e.virgin.memberNumber;case"spirit":return e.spirit.memberNumber;case"firstSuper":return e.firstSuper.memberNumber;case"mercerMyChoice":return e.mercerMyChoice.memberNumber;case"generic":return e.generic.memberNumber;default:return""}}function he(e){switch(e.kind){case"Promoted":return s(de(e.promoted));case"MyOwnFund":return s(e.myOwnFund.memberNumber);case"DefinedBenefits":return s(e.definedBenefits.memberNumber);case"PromotedDefaultWithJoin":return s(e.promotedDefaultWithJoin.memberNumber);case"SMSF":case"Default":case"PromotedDefault":return a;default:return a}}function ve(e){if("promoted"in e){e.kind="Promoted"}else if("myOwnFund"in e){e.kind="MyOwnFund"}else if("smsf"in e){e.kind="SMSF"}else if("default"in e){e.kind="Default"}else if("promotedDefault"in e){e.kind="PromotedDefault"}else if("definedBenefits"in e){e.kind="DefinedBenefits"}else if("promotedDefaultWithJoin"in e){e.kind="PromotedDefaultWithJoin"}}var me=function(){function e(){}e.prototype.getAustralianFundsAsync=function(e,t){if(t===void 0){t=false}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,ae().url("super-choice/australian-funds-v2?"+this.toQueryString(t,e)).get().notFound((function(){throw new Error("Failed to fetch the list of australian super funds.")})).json()]}))}))};e.prototype.getAustralianFundAsync=function(e,t){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(r){n=t?"?includeInactive=true":"";return[2,ae().url("super-choice/australian-funds/"+e+n).get().notFound((function(){throw new Error("Failed to fetch australian super fund.")})).json()]}))}))};e.prototype.getAppStateAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:return[4,ae().url("client-app-state").get().notFound((function(){throw new Error("Failed to fetch application configuration.")})).json()];case 1:t=n.sent();if((e=t.superBuyer.superChoice)===null||e===void 0?void 0:e.choiceDetails){ve(t.superBuyer.superChoice.choiceDetails);switch(t.superBuyer.superChoice.choiceDetails.kind){case"Promoted":ce(t.superBuyer.superChoice.choiceDetails.promoted);break}}return[2,t]}}))}))};e.prototype.clickPromotedTileAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,ae().url("click-promoted-tile").post(e).res()]}))}))};e.prototype.viewSuperFundPanelAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,ae().url("view-super-fund-panel").post(e).res()]}))}))};e.prototype.toSearchFilterQueryString=function(e){return"search="+e.searchString+(e.maxRecordCount>0?"&maxRecordCount="+e.maxRecordCount:"")};e.prototype.toQueryString=function(e,t){var n=this.toSearchFilterQueryString(t);var r=e?"includeInactive=true":"";var i=function(e){return e&&e.length};return[n,r].filter(i).join("&")};return e}();var ge=e("e",new me);var ye;(function(e){e[e["NotLoaded"]=1]="NotLoaded";e[e["Loaded"]=2]="Loaded";e[e["NotWorking"]=3]="NotWorking"})(ye||(ye=e("p",{})));var be=function(){function e(){this._promotedFundsShown=[]}Object.defineProperty(e.prototype,"PromotedFundIds",{get:function(){return this._promotedFundsShown.map((function(e){return e.fundId}))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFundsShown",{set:function(e){this._promotedFundsShown=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"DefaultFundPosition",{get:function(){var e=this._promotedFundsShown.findIndex((function(e){return e.fundType==="promoted-default"}));if(e===-1)return undefined;return e+1},enumerable:false,configurable:true});return e}();var we={apiBaseUrl:R.none,appBaseUrl:R.none,profileId:R.none,jwt:R.none,superBuyer:R.none,superChoicePrefill:R.none,promotedFunds:R.none,accountConfiguration:R.none,profileConfiguration:R.none,hasSuccessPageBeenAcknowledged:false,hasSuperSelectionBeenSubmitted:false,isDefinedBenefitsEligible:R.none,superCampaignEnabled:true,superCampaignState:undefined,superCampaignComponentStatus:ye.NotLoaded,hideFooterSection:false,bringYourOwnFundCustomStepEnabled:false,featuredFundsEnabled:false};var _e=function(){function e(){var e=this;var t=P(we),n=t.state,r=t.onChange;this._state=n;this._onChange=r;r("jwt",(function(t){e._state.profileId=M.pipe(t,R.chain((function(e){return R.fromNullable(x(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(R.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(R.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(R.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(this.state.superCampaignEnabled&&this.superCampaignState!==undefined){return this.superCampaignState.PromotedFundIds}if(R.isNone(this._state.promotedFunds)){throw Error("Promoted Funds is not set")}return this._state.promotedFunds.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedDefaultFundPosition",{get:function(){if(this.state.superCampaignEnabled&&this.superCampaignState!==undefined){return R.fromNullable(this.superCampaignState.DefaultFundPosition)}return R.none},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFundsConfig",{get:function(){return{shownFunds:this.promotedFunds,promotedDefaultFundPosition:R.toUndefined(this.promotedDefaultFundPosition),promotedFundsConfigSource:this.isUsingSuperCampaign?"superCampaign":"superSelection"}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"profileId",{get:function(){if(R.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(){var e=M.pipe(this._state.profileConfiguration,R.map((function(e){return R.fromNullable(e.defaultFundUsi)})),R.flatten);if(R.isSome(e)){return e}return M.pipe(this._state.accountConfiguration,R.map((function(e){return R.fromNullable(e.defaultFundUsi)})),R.flatten)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"accountIdOrDefault",{get:function(){return M.pipe(this._state.accountConfiguration,R.map((function(e){return e.accountId})),R.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"partnerIdOrDefault",{get:function(){return M.pipe(this._state.superBuyer,R.map((function(e){return e.partnerId})),R.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"jwt",{get:function(){if(R.isNone(this._state.jwt)){throw Error("No authentication information was found")}return this._state.jwt.value},enumerable:false,configurable:true});e.prototype.completeSuperSelectionFlow=function(){this._state.hasSuccessPageBeenAcknowledged=true};e.prototype.markSuperSelectionAsSubmitted=function(){this._state.hasSuperSelectionBeenSubmitted=true};Object.defineProperty(e.prototype,"isDefinedBenefitsEligible",{get:function(){return this._state.isDefinedBenefitsEligible},enumerable:false,configurable: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,ge.getAppStateAsync()];case 1:e=t.sent();this._state.accountConfiguration=R.fromNullable(e.accountConfiguration);this._state.profileConfiguration=R.fromNullable(e.profileConfiguration);this._state.superBuyer=R.fromNullable(e.superBuyer);this._state.promotedFunds=R.fromNullable(e.promotedFunds);this._state.bringYourOwnFundCustomStepEnabled=e.bringYourOwnFundCustomStepEnabled;this._state.featuredFundsEnabled=e.featuredFundsEnabled;this._state.superChoicePrefill=R.fromNullable(e.prefill);this._state.isDefinedBenefitsEligible=R.fromNullable(e.isDefinedBenefitsEligible);if(R.isSome(this._state.accountConfiguration)){if(this._state.accountConfiguration.value.featureSet.type==="basic"){this._state.superCampaignEnabled=false}}return[2]}}))}))};e.prototype.setSuperCampaignPromotedFundsShown=function(e){if(this._state.superCampaignState!==undefined)this._state.superCampaignState.promotedFundsShown=e;else throw new Error("Cannot set shown funds for SuperCampaing state because it is undefined")};e.prototype.viewSuperFundPanelAsync=function(e,t){return ge.viewSuperFundPanelAsync(Object.assign(Object.assign({},this.promotedFundsConfig),{shownFunds:t?t:this.promotedFundsConfig.shownFunds,placementId:e}))};Object.defineProperty(e.prototype,"superCampaignState",{get:function(){return this._state.superCampaignState},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"superCampaignComponentStatus",{get:function(){return this._state.superCampaignComponentStatus},set:function(e){if(e===ye.Loaded){this._state.superCampaignComponentStatus=ye.Loaded;this._state.superCampaignState=new be}else{this._state.superCampaignComponentStatus=e;this._state.superCampaignState=undefined}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isUsingSuperCampaign",{get:function(){return this.state.superCampaignEnabled&&this.superCampaignState!==undefined},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isBringYourOwnFundCustomStepEnabled",{get:function(){return this.state.bringYourOwnFundCustomStepEnabled},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isFeaturedFundsEnabled",{get:function(){return this.state.featuredFundsEnabled},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"superCampaignCanNotBeActivated",{get:function(){return!this.state.superCampaignEnabled||this.superCampaignComponentStatus===ye.NotWorking},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"hideFooterSection",{get:function(){return this._state.hideFooterSection},set:function(e){this._state.hideFooterSection=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"backendUrl",{get:function(){return R.map(this.getBaseUrl)(this.state.apiBaseUrl)},enumerable:false,configurable:true});e.prototype.getBaseUrl=function(e){var t=new URL(e);return t.protocol+"//"+t.hostname+(t.port.length>0?":"+t.port:"")};return e}();var Se=e("a",new _e);var Fe=function(){function e(){}e.prototype.navigateInternally=function(e,t){var n=""+this.appBaseUrl+this.toRouteWithLeadingSlash(t);y.navigation(n);e.push(n)};e.prototype.navigateInternallyToStandardChoice=function(e){N.handleSubmitFn=e.handleSubmitFn;N.fundName=e.fundName;N.fundDetails=e.fundDetails;N.promotedFundId=e.promotedFundId;this.navigateInternally(e.history,O.StandardChoice)};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=Se.appBaseUrl;return e.replace(/\/$/,"")},enumerable:false,configurable:true});e.prototype.toRouteWithLeadingSlash=function(e){return e.length>0&&e[0]==="/"?e:"/"+e};return e}();var Ce=e("b",new Fe);var Ee=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,ae().url("analytics-events").post(e).res()]}))}))};return e}();var Pe=function(){function e(){this.eventTrackingApi=Ee.Instance}Object.defineProperty(e,"Instance",{get:function(){return this.instance||(this.instance=new this)},enumerable:false,configurable:true});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.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.TrackPromotedDefaultSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{PromotedDefaultFund: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.TrackSuperFundNominationViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundNominationViewed:e})]}))}))};e.prototype.TrackSuperFundNominationDeclinedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundNominationDeclined:e})]}))}))};e.prototype.TrackSuperFundDisclaimerViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDisclaimerViewed:e})]}))}))};e.prototype.TrackSuperFundDisclaimerAcceptedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDisclaimerAccepted:e})]}))}))};e.prototype.TrackSuperFundPrefillViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPrefillViewed:e})]}))}))};e.prototype.TrackSuperFundPrefillDeclinedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPrefillDeclined:e})]}))}))};e.prototype.TrackSuperFundDetailChangeRequestedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailChangeRequested:e})]}))}))};e.prototype.TrackSuperCampaignActivationSucceededAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperCampaignActivationSucceeded:e})]}))}))};e.prototype.TrackSuperMyOwnFundEngagementStepActivationSucceeded=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperMyOwnFundEngagementStepActivationSucceeded:{fundUsi:e}})]}))}))};e.prototype.TrackSuperMyOwnFundEngagementStepContinued=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,this.trackEventAsync({SuperMyOwnFundEngagementStepContinued:{fundUsi:e,reason:t}})]}))}))};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}();e("E",Pe);var Ae=function(){function e(){}e.prototype.submitDefaultFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,ae().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,ae().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,ae().url("super-choice/smsf").post(e).badRequest((function(){throw new Error("Failed to process SMSF choice request")})).text()]}))}))};e.prototype.submitDefinedBenefitsChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,ae().url("super-choice/defined-benefits").post(e).badRequest((function(){throw new Error("Failed to process Defined Benefits choice request")})).text()]}))}))};e.prototype.validateAbnForSMSF=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return[4,ae().url("super-choice/smsf/"+e+"/validate").get().badRequest((function(){throw new Error("Failed to verify that if the provided abn is used for regulated fund")})).json()];case 1:t=n.sent();return[2,t.result]}}))}))};return e}();var Ne=e("f",new Ae)}}}));