@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
@@ -1,69 +0,0 @@
1
- var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function s(e){try{u(r.next(e))}catch(e){a(e)}}function o(e){try{u(r["throw"](e))}catch(e){a(e)}}function u(e){e.done?n(e.value):i(e.value).then(s,o)}u((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return u([e,t])}}function u(s){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(a=s[0]&2?i["return"]:s[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;if(i=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;i=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1];a=s;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(s);break}if(a[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-71ca4cf8.system.js","./p-14885f78.system.js","./p-2590548f.system.js","./p-97188c78.system.js"],(function(e,t){"use strict";var n,r,i,a,s,o,u,l,c,d,f,p,h,m,v,g,y,b,w,x,S,C,_,I,N,A,T,E,k,F,D,P,L,M,O,R,U,B,V,j,q,H,z,W,G,K,X,J,Y;return{setters:[function(e){n=e.r;r=e.h;i=e.F;a=e.g;s=e.H;o=e.c;u=e.s;l=e.a;c=e.d},function(e){d=e.f;f=e.m;p=e.S;h=e.a;m=e.i;v=e.b;g=e.O;y=e.c;b=e.d;w=e.g;x=e.h;S=e.j;C=e.k;_=e.l;I=e.Q},function(e){N=e.n;A=e.i;T=e.s;E=e.a;k=e.b;F=e.S;D=e.c;P=e.d;L=e.e;M=e.O;O=e.f;R=e.g;U=e.h;B=e.j;V=e.k;j=e.l;q=e.m;H=e.t;z=e.o;W=e.p;G=e.q;K=e.r;X=e.u;J=e.v},function(e){Y=e.A}],execute:function(){var $=this;function Z(){}function Q(e,t,n){if(n===void 0){n=Number.POSITIVE_INFINITY}if(typeof t==="function"){return function(r){return r.pipe(Q((function(n,r){return d(e(n,r)).pipe(f((function(e,i){return t(n,e,r,i)})))}),n))}}else if(typeof t==="number"){n=t}return function(t){return t.lift(new ee(e,n))}}var ee=function(){function e(e,t){if(t===void 0){t=Number.POSITIVE_INFINITY}this.project=e;this.concurrent=t}e.prototype.call=function(e,t){return t.subscribe(new te(e,this.project,this.concurrent))};return e}();var te=function(e){__extends(t,e);function t(t,n,r){if(r===void 0){r=Number.POSITIVE_INFINITY}var i=e.call(this,t)||this;i.project=n;i.concurrent=r;i.hasCompleted=false;i.buffer=[];i.active=0;i.index=0;return i}t.prototype._next=function(e){if(this.active<this.concurrent){this._tryNext(e)}else{this.buffer.push(e)}};t.prototype._tryNext=function(e){var t;var n=this.index++;try{t=this.project(e,n)}catch(e){this.destination.error(e);return}this.active++;this._innerSub(t)};t.prototype._innerSub=function(e){var t=new h(this);var n=this.destination;n.add(t);var r=m(e,t);if(r!==t){n.add(r)}};t.prototype._complete=function(){this.hasCompleted=true;if(this.active===0&&this.buffer.length===0){this.destination.complete()}this.unsubscribe()};t.prototype.notifyNext=function(e){this.destination.next(e)};t.prototype.notifyComplete=function(){var e=this.buffer;this.active--;if(e.length>0){this._next(e.shift())}else if(this.active===0&&this.hasCompleted){this.destination.complete()}};return t}(p);function ne(e,t,n,r){if(y(n)){r=n;n=undefined}if(r){return ne(e,t,n).pipe(f((function(e){return v(e)?r.apply(void 0,e):r(e)})))}return new g((function(r){function i(e){if(arguments.length>1){r.next(Array.prototype.slice.call(arguments))}else{r.next(e)}}re(e,t,i,r,n)}))}function re(e,t,n,r,i){var a;if(se(e)){var s=e;e.addEventListener(t,n,i);a=function(){return s.removeEventListener(t,n,i)}}else if(ae(e)){var o=e;e.on(t,n);a=function(){return o.off(t,n)}}else if(ie(e)){var u=e;e.addListener(t,n);a=function(){return u.removeListener(t,n)}}else if(e&&e.length){for(var l=0,c=e.length;l<c;l++){re(e[l],t,n,r,i)}}else{throw new TypeError("Invalid event target")}r.add(a)}function ie(e){return e&&typeof e.addListener==="function"&&typeof e.removeListener==="function"}function ae(e){return e&&typeof e.on==="function"&&typeof e.off==="function"}function se(e){return e&&typeof e.addEventListener==="function"&&typeof e.removeEventListener==="function"}function oe(e,t){if(t===void 0){t=b}return function(n){return n.lift(new ue(e,t))}}var ue=function(){function e(e,t){this.dueTime=e;this.scheduler=t}e.prototype.call=function(e,t){return t.subscribe(new le(e,this.dueTime,this.scheduler))};return e}();var le=function(e){__extends(t,e);function t(t,n,r){var i=e.call(this,t)||this;i.dueTime=n;i.scheduler=r;i.debouncedSubscription=null;i.lastValue=null;i.hasValue=false;return i}t.prototype._next=function(e){this.clearDebounce();this.lastValue=e;this.hasValue=true;this.add(this.debouncedSubscription=this.scheduler.schedule(ce,this.dueTime,this))};t.prototype._complete=function(){this.debouncedNext();this.destination.complete()};t.prototype.debouncedNext=function(){this.clearDebounce();if(this.hasValue){var e=this.lastValue;this.lastValue=null;this.hasValue=false;this.destination.next(e)}};t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;if(e!==null){this.remove(e);e.unsubscribe();this.debouncedSubscription=null}};return t}(w);function ce(e){e.debouncedNext()}function de(e,t,n){return function r(i){return i.lift(new fe(e,t,n))}}var fe=function(){function e(e,t,n){this.nextOrObserver=e;this.error=t;this.complete=n}e.prototype.call=function(e,t){return t.subscribe(new pe(e,this.nextOrObserver,this.error,this.complete))};return e}();var pe=function(e){__extends(t,e);function t(t,n,r,i){var a=e.call(this,t)||this;a._tapNext=Z;a._tapError=Z;a._tapComplete=Z;a._tapError=r||Z;a._tapComplete=i||Z;if(y(n)){a._context=a;a._tapNext=n}else if(n){a._context=n;a._tapNext=n.next||Z;a._tapError=n.error||Z;a._tapComplete=n.complete||Z}return a}t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.next(e)};t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.error(e)};t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){this.destination.error(e);return}return this.destination.complete()};return t}(w);var he="5.57.17073";var me=function(){function e(e){this.factory=e;this._value=N}Object.defineProperty(e.prototype,"value",{get:function(){if(A(this._value)){return this._value.value}var e=this.factory();this._value=T(e);return e},enumerable:false,configurable:true});return e}();function ve(){if(!window.location.pathname.endsWith("/")){var e=window.location.pathname+"/"+window.location.search+window.location.hash;history.pushState(history.state,"",e)}}var ge="/";var ye="./";var be=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");var we=function(e,t){var n=[];var r=0;var i=0;var a="";var s=t&&t.delimiter||ge;var o=t&&t.delimiters||ye;var u=false;var l;while((l=be.exec(e))!==null){var c=l[0];var d=l[1];var f=l.index;a+=e.slice(i,f);i=f+c.length;if(d){a+=d[1];u=true;continue}var p="";var h=e[i];var m=l[2];var v=l[3];var g=l[4];var y=l[5];if(!u&&a.length){var b=a.length-1;if(o.indexOf(a[b])>-1){p=a[b];a=a.slice(0,b)}}if(a){n.push(a);a="";u=false}var w=p!==""&&h!==undefined&&h!==p;var x=y==="+"||y==="*";var S=y==="?"||y==="*";var C=p||s;var _=v||g;n.push({name:m||r++,prefix:p,delimiter:C,optional:S,repeat:x,partial:w,pattern:_?Se(_):"[^"+xe(C)+"]+?"})}if(a||i<e.length){n.push(a+e.substr(i))}return n};var xe=function(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")};var Se=function(e){return e.replace(/([=!:$/()])/g,"\\$1")};var Ce=function(e){return e&&e.sensitive?"":"i"};var _e=function(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n){for(var r=0;r<n.length;r++){t.push({name:r,prefix:null,delimiter:null,optional:false,repeat:false,partial:false,pattern:null})}}return e};var Ie=function(e,t,n){var r=[];for(var i=0;i<e.length;i++){r.push(Te(e[i],t,n).source)}return new RegExp("(?:"+r.join("|")+")",Ce(n))};var Ne=function(e,t,n){return Ae(we(e,n),t,n)};var Ae=function(e,t,n){n=n||{};var r=n.strict;var i=n.end!==false;var a=xe(n.delimiter||ge);var s=n.delimiters||ye;var o=[].concat(n.endsWith||[]).map(xe).concat("$").join("|");var u="";var l=false;for(var c=0;c<e.length;c++){var d=e[c];if(typeof d==="string"){u+=xe(d);l=c===e.length-1&&s.indexOf(d[d.length-1])>-1}else{var f=xe(d.prefix||"");var p=d.repeat?"(?:"+d.pattern+")(?:"+f+"(?:"+d.pattern+"))*":d.pattern;if(t)t.push(d);if(d.optional){if(d.partial){u+=f+"("+p+")?"}else{u+="(?:"+f+"("+p+"))?"}}else{u+=f+"("+p+")"}}}if(i){if(!r)u+="(?:"+a+")?";u+=o==="$"?"$":"(?="+o+")"}else{if(!r)u+="(?:"+a+"(?="+o+"))?";if(!l)u+="(?="+a+"|"+o+")"}return new RegExp("^"+u,Ce(n))};var Te=function(e,t,n){if(e instanceof RegExp){return _e(e,t)}if(Array.isArray(e)){return Ie(e,t,n)}return Ne(e,t,n)};var Ee=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)};var ke=function(e,t){return Ee(e,t)?e.substr(t.length):e};var Fe=function(e){return e.charAt(e.length-1)==="/"?e.slice(0,-1):e};var De=function(e){return e.charAt(0)==="/"?e:"/"+e};var Pe=function(e){return e.charAt(0)==="/"?e.substr(1):e};var Le=function(e){var t=e||"/";var n="";var r="";var i=t.indexOf("#");if(i!==-1){r=t.substr(i);t=t.substr(0,i)}var a=t.indexOf("?");if(a!==-1){n=t.substr(a);t=t.substr(0,a)}return{pathname:t,search:n==="?"?"":n,hash:r==="#"?"":r,query:{},key:""}};var Me=function(e){var t=e.pathname,n=e.search,r=e.hash;var i=t||"/";if(n&&n!=="?"){i+=n.charAt(0)==="?"?n:"?"+n}if(r&&r!=="#"){i+=r.charAt(0)==="#"?r:"#"+r}return i};var Oe=function(e){if(!e){return{}}return(/^[?#]/.test(e)?e.slice(1):e).split("&").reduce((function(e,t){var n=t.split("="),r=n[0],i=n[1];e[r]=i?decodeURIComponent(i.replace(/\+/g," ")):"";return e}),{})};var Re=function(e){return e.charAt(0)==="/"};var Ue=function(e){return Math.random().toString(36).substr(2,e)};var Be=function(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1){e[n]=e[r]}e.pop()};var Ve=function(e,t){if(t===void 0){t=""}var n=t&&t.split("/")||[];var r;var i=0;var a=e&&e.split("/")||[];var s=e&&Re(e);var o=t&&Re(t);var u=s||o;if(e&&Re(e)){n=a}else if(a.length){n.pop();n=n.concat(a)}if(!n.length){return"/"}if(n.length){var l=n[n.length-1];r=l==="."||l===".."||l===""}else{r=false}for(var c=n.length;c>=0;c--){var d=n[c];if(d==="."){Be(n,c)}else if(d===".."){Be(n,c);i++}else if(i){Be(n,c);i--}}if(!u){for(;i--;i){n.unshift("..")}}if(u&&n[0]!==""&&(!n[0]||!Re(n[0]))){n.unshift("")}var f=n.join("/");if(r&&f.substr(-1)!=="/"){f+="/"}return f};var je=function(e,t){if(e===t){return true}if(e==null||t==null){return false}if(Array.isArray(e)){return Array.isArray(t)&&e.length===t.length&&e.every((function(e,n){return je(e,t[n])}))}var n=typeof e;var r=typeof t;if(n!==r){return false}if(n==="object"){var i=e.valueOf();var a=t.valueOf();if(i!==e||a!==t){return je(i,a)}var s=Object.keys(e);var o=Object.keys(t);if(s.length!==o.length){return false}return s.every((function(n){return je(e[n],t[n])}))}return false};var qe=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&je(e.state,t.state)};var He=function(e,t,n,r){var i;if(typeof e==="string"){i=Le(e);if(t!==undefined){i.state=t}}else{i=Object.assign({pathname:""},e);if(i.search&&i.search.charAt(0)!=="?"){i.search="?"+i.search}if(i.hash&&i.hash.charAt(0)!=="#"){i.hash="#"+i.hash}if(t!==undefined&&i.state===undefined){i.state=t}}try{i.pathname=decodeURI(i.pathname)}catch(e){if(e instanceof URIError){throw new URIError('Pathname "'+i.pathname+'" could not be decoded. '+"This is likely caused by an invalid percent-encoding.")}else{throw e}}i.key=n;if(r){if(!i.pathname){i.pathname=r.pathname}else if(i.pathname.charAt(0)!=="/"){i.pathname=Ve(i.pathname,r.pathname)}}else{if(!i.pathname){i.pathname="/"}}i.query=Oe(i.search||"");return i};var ze=0;var We={};var Ge=1e4;var Ke=function(e,t){var n=""+t.end+t.strict;var r=We[n]||(We[n]={});var i=JSON.stringify(e);if(r[i]){return r[i]}var a=[];var s=Te(e,a,t);var o={re:s,keys:a};if(ze<Ge){r[i]=o;ze+=1}return o};var Xe=function(e,t){if(t===void 0){t={}}if(typeof t==="string"){t={path:t}}var n=t.path,r=n===void 0?"/":n,i=t.exact,a=i===void 0?false:i,s=t.strict,o=s===void 0?false:s;var u=Ke(r,{end:a,strict:o}),l=u.re,c=u.keys;var d=l.exec(e);if(!d){return null}var f=d[0],p=d.slice(1);var h=e===f;if(a&&!h){return null}return{path:r,url:r==="/"&&f===""?"/":f,isExact:h,params:c.reduce((function(e,t,n){e[t.name]=p[n];return e}),{})}};var Je=function(e,t){if(e==null&&t==null){return true}if(t==null){return false}return e&&t&&e.path===t.path&&e.url===t.url&&je(e.params,t.params)};var Ye;(function(e){e[e["Available"]=0]="Available";e[e["Pending"]=1]="Pending";e[e["Error"]=2]="Error"})(Ye||(Ye={}));var $e=e("sss_button",function(){function e(e){n(this,e);this.fillWidth=false;this.fillWidthOnMobile=false;this.disabled=false;this.variant="primary";this.size="base";this.promiseFn=function(){return Promise.resolve()};this.state=Ye.Available}e.prototype.render=function(){var e;var t=this;var n={xs:"px-2.5 py-1.5 text-xs",base:"px-4 py-2 text-base",xl:"px-6 py-3 text-base"};return r("button",{"data-testid":this.testid,class:(e={},e[n[this.size]]=true,e["inline-flex items-center justify-center border font-medium"]=true,e["rounded-md shadow-sm focus:outline-none focus:ring-2"]=true,e["focus:ring-offset-2 focus:ring-primary-focus pointer-events-auto"]=true,e["disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400"]=true,e["border-transparent text-white bg-primary-base hover:bg-primary-hover"]=this.variant==="primary",e["border-gray-300 text-gray-700 bg-white hover:bg-gray-50"]=this.variant==="secondary",e["border-transparent bg-primary-light hover:bg-primary-base text-primary-dark hover:text-white"]=this.variant==="light",e["w-full"]=this.fillWidth||this.fillWidthOnMobile,e["sm:w-auto"]=this.fillWidthOnMobile,e),disabled:this.disabled,onClick:function(){return t.clicked()}},this.state===Ye.Pending&&r("sss-loading-indicator",{theme:this.variant==="primary"?"light":"primary",size:16}),r("div",{class:{hidden:this.state===Ye.Pending}},r("slot",null)))};e.prototype.clicked=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:if(!this.promiseFn||this.state===Ye.Pending)return[2];t.label=1;case 1:t.trys.push([1,3,,4]);this.state=Ye.Pending;return[4,this.promiseFn()];case 2:t.sent();this.state=Ye.Available;return[3,4];case 3:e=t.sent();this.state=Ye.Error;throw e;case 4:return[2]}}))}))};return e}());var Ze=e("sss_choice_router",function(){function e(e){n(this,e)}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(E.superCampaignCanNotBeActivated){k.navigateInternally(this.history,F.MyOwnFund)}else{k.navigateInternally(this.history,F.SuperCampaign)}return[2]}))}))};e.prototype.render=function(){return r(i,null)};return e}());D(Ze);var Qe;(function(e){e["MyOwnFund"]="Existing super fund";e["DefaultFund"]="Default super fund";e["SelfManagedFund"]="Self-managed super fund";e["FeaturedFunds"]="Featured super funds"})(Qe||(Qe={}));var et={myOwnFundForm:{fundUsi:N,fundName:N,memberNumber:N,memberFirstName:N,memberFamilyName:N},selfManagedFundForm:{fundName:"",fundAbn:"",fundEsa:"",addressLine1:"",addressLine2:"",state:"",postcode:"",city:"",bankAccountName:"",bsb:"",bankAccountNumber:"",memberFirstName:"",memberFamilyName:""}};var tt=P(et),nt=tt.state,rt=tt.reset;var it={label:Qe.MyOwnFund,value:F.MyOwnFund};var at=e("sss_custom_fund",function(){function e(e){n(this,e);this.currentCustomFund=it;this.showFundOptionsSelection=false}e.prototype.componentWillLoad=function(){var e=F.MyOwnFund;if(window.location.pathname.includes(F.MyOwnFund))e=F.MyOwnFund;if(window.location.pathname.includes(F.DefaultFund))e=F.DefaultFund;if(window.location.pathname.includes(F.SelfManagedFund))e=F.SelfManagedFund;if(window.location.pathname.includes(F.FeaturedFunds))e=F.FeaturedFunds;this.fundOptionsList=[it,{label:Qe.SelfManagedFund,value:F.SelfManagedFund}];if(E.isFeaturedFundsEnabled&&E.isUsingSuperCampaign){this.fundOptionsList.push({label:Qe.FeaturedFunds,value:F.FeaturedFunds})}this.fundOptionsList.push({label:Qe.DefaultFund,value:F.DefaultFund});this.currentCustomFund=this.fundOptionsList.find((function(t){return t.value===e}))||this.currentCustomFund;k.navigateInternally(this.history,e)};e.prototype.render=function(){var e=this;var t=function(){return r("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-gray-500",viewBox:"0 0 20 20"},r("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"}))};var n=function(){return r("svg",{class:"h-5 w-5 fill-primary-base group-hover:fill-white",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},r("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"}))};return r("div",{class:"max-w-560 sm:w-560 relative"},r("label",{class:"font-medium text-gray-700 text-sm"},"Which fund would you like to nominate?"),r("div",{class:"mt-1 mb-4"},r("button",{type:"button",class:"bg-white relative w-full border border-gray-300 rounded-md shadow-sm pl-3 pr-10 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-primary-focus focus:border-primary-base text-base sm:text-sm",onClick:function(){return e.showFundOptionsSelection=!e.showFundOptionsSelection}},r("span",{class:{"block truncate":true,"text-gray-500":this.showFundOptionsSelection}},this.showFundOptionsSelection?"Select":this.currentCustomFund.label),r("span",{class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},r(t,null))),this.showFundOptionsSelection&&r("ul",{class:"absolute z-10 mt-1 w-full bg-white shadow-lg max-h-60 rounded-md py-1 ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none text-base sm:text-sm"},this.fundOptionsList.map((function(t){return r("li",{class:"text-gray-900 cursor-default select-none relative py-2 pl-3 pr-9 group hover:bg-primary-base hover:text-white",onClick:function(){e.showFundOptionsSelection=!e.showFundOptionsSelection;k.navigateInternally(e.history,t.value)}},r("span",{class:{"block truncate":true,"font-semibold":e.currentCustomFund===t}},t.label),e.currentCustomFund===t&&r("span",{class:"absolute inset-y-0 right-0 flex items-center pr-4"},r(n,null)))})))),r("div",{onClick:function(){return e.showFundOptionsSelection=false}},r("slot",null)))};return e}());D(at);var st=function(){function e(){}e.prototype.searchFundsAsync=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,L.getAustralianFundsAsync({searchString:e,maxRecordCount:t})]}))}))};e.prototype.getFundAsync=function(e,t){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(r){switch(r.label){case 0:return[4,L.getAustralianFundAsync(e,t)];case 1:n=r.sent();return[2,M.some(n)]}}))}))};return e}();var ot=new st;var ut=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,O().url("analytics-events").post(e).res()]}))}))};return e}();var lt=function(){function e(){this.eventTrackingApi=ut.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}();var ct=e("sss_default_fund",function(){function e(e){n(this,e);this.defaultFundProductName="Loading fund...";this.eventTrackingService=lt.Instance}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:e=E.defaultFundUsi;if(M.isNone(e)){return[2]}this.isDefaultFundExists=true;return[4,ot.getFundAsync(e.value,true)];case 1:t=n.sent();if(M.isNone(t)){this.isInvalidDefaultFund=true;return[2]}this.defaultFund=t.value;this.defaultFundProductName=t.value.productName;return[2]}}))}))};e.prototype.componentDidLoad=function(){var e,t,n,r;return this.eventTrackingService.TrackDefaultSuperFundDetailViewedAsync({fundUsi:(t=(e=this.defaultFund)===null||e===void 0?void 0:e.usi)!==null&&t!==void 0?t:"",fundName:(r=(n=this.defaultFund)===null||n===void 0?void 0:n.productName)!==null&&r!==void 0?r:"",promotedFundsShown:E.promotedFunds,defaultFundUsiSet:M.toUndefined(E.defaultFundUsi)})};e.prototype.render=function(){var e=this;return r(s,null,r("sss-header-section",null),r("div",{class:"flex justify-center mt-11"},r("sss-custom-fund",null,r("div",{class:"p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg"},r("p",{class:"sm:text-lg font-bold mb-3"},"Fund details"),(!this.isDefaultFundExists||this.isInvalidDefaultFund)&&r("div",{class:"bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"},r("div",{class:"flex"},r("div",{class:"flex-shrink-0"},r("img",{class:"h-5 w-5",src:a("assets/icon-exclamation.svg")})),r("div",{class:"ml-3 text-sm text-yellow-700 leading-5"},r("span",null,"It looks like your employer has not specified a default fund, please contact them if you’d like to use your company’s default fund.")))),this.isDefaultFundExists&&!this.isInvalidDefaultFund&&r("div",null,r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},"Fund Name"),r("div",{class:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm"},this.defaultFundProductName)),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},"Fund USI"),r("div",{class:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm"},this.defaultFund.usi)),r("div",{class:"mt-8 mb-8 h-px w-full bg-gray-200"}),r("div",{class:"text-sm text-gray-700"},r("label",{class:"font-semibold text-gray-900"},"By clicking “Continue”, you acknowledge that:"),r("ul",{class:"list-disc list-outside pl-5"},r("li",{class:"mt-2"},"you are choosing to join your employer’s default super fund;"),r("li",{class:"mt-2"},"your employer will open a new account for you with their default super fund; and"),r("li",{class:"mt-2"},"your application to join is subject to Trustee approval."))))),r("div",{class:"flex justify-center mt-8"},r("div",{class:"sm:max-w-320 w-full"},this.isDefaultFundExists&&!this.isInvalidDefaultFund&&r("div",{class:"mb-4"},r("sss-button",{testid:"continue-button",fillWidth:true,promiseFn:function(){return e.handleSubmitForm()}},"Continue")),r("stencil-route-link",{url:F.ChoicePage},r("sss-button",{testid:"back-button",fillWidth:true,variant:"secondary"},"Back")))))))};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){if(this.isInvalidDefaultFund){return[2]}k.navigateInternallyToStandardChoice({history:this.history,fundName:"Employer’s default fund",fundDetails:{type:"default",fundName:this.defaultFundProductName,fundUsi:this.defaultFund.usi},handleSubmitFn:function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,R.submitDefaultFundChoiceAsync(Object.assign({standardChoiceFormSignature:t},E.promotedFundsConfig))];case 1:e.sent();return[2]}}))}))}});return[2]}))}))};return e}());var dt="html{scroll-behavior:smooth}.sss-dropdown-menu{max-height:min(20rem, 50vh)}";var ft=3;var pt=e("sss_dropdown_async",function(){function e(e){var t=this;n(this,e);this.valueChanged=o(this,"valueChanged",7);this.required=false;this.disabled=false;this.minSearchStringLength=ft;this.isMouseOver=false;this.searchState="pristine";this.inputValue="";this.isDropdownVisible=false;this.filteredOptions=[];this.shouldExecuteSearch=function(e){var n;return t.isDropdownVisible&&(e===null||e===void 0?void 0:e.length)>=t.minSearchStringLength&&((n=t.selectedOption)===null||n===void 0?void 0:n.label)!==e};this.onBeginSearch=function(e){t.inputValue=e;t.searchState="in progress"};this.onCompleteSearch=function(e){t.highlightedOptionIndex=undefined;switch(e.kind){case"too-many-results":t.searchState="too many results";t.filteredOptions=[];break;case"success":t.searchState="done";t.filteredOptions=e.value;break;default:t.searchState="done";t.filteredOptions=[];break}};this.renderFilteredResults=function(){if(t.searchState==="pristine"){return r("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"Start typing to find the results")}if(t.searchState==="in progress"){return r("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"Searching...")}if(t.searchState==="too many results"){return r("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"Keep typing to narrow down your search.")}if(t.filteredOptions.length===0){return r("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"No items match your search")}return t.filteredOptions.map((function(e,n){return r("div",{class:{"cursor-pointer text-wrap hover:bg-primary-base py-1.5 pl-4":true,"bg-primary-base":t.isOptionSelected(e)},onClick:function(r){t.highlightedOptionIndex=n;t.toggleDropdown(false);t.selectOption(e)}},e.label)}))};this.resetInput=function(){var e,n;t.inputValue=(n=(e=t.selectedOption)===null||e===void 0?void 0:e.label)!==null&&n!==void 0?n:""};this.toggleDropdown=function(e){t.isDropdownVisible=e};this.processKeyboardNavigation=function(e){var n="Enter";var r="ArrowDown";var i="ArrowUp";var a="Escape";switch(e.key){case r:t.toggleDropdown(true);t.highlightItem("Next");return true;case i:t.highlightItem("Prev");return true;case n:if(t.highlightedOptionIndex!==undefined){t.toggleDropdown(false);t.selectOption(t.filteredOptions[t.highlightedOptionIndex])}return true;case a:t.inputElement.blur();return true}return false};this.highlightItem=function(e){var n=e==="Next"?1:-1;if(t.filteredOptions.length===0){return}t.highlightedOptionIndex=t.highlightedOptionIndex===undefined?0:Math.min(Math.max(0,t.highlightedOptionIndex+n),t.filteredOptions.length-1);if(t.highlightedOptionIndex!==undefined)t.selectOption(t.filteredOptions[t.highlightedOptionIndex])};this.selectOption=function(e){t.selectedOption=e;t.inputValue=e.label;t.valueChanged.emit(e)};this.isOptionSelected=function(e){var n;return((n=t.selectedOption)===null||n===void 0?void 0:n.label)===e.label}}e.prototype.componentWillLoad=function(){this.selectedOption=this.value};e.prototype.componentDidLoad=function(){var e=this;this.searchResultsSubscription=ne(this.inputElement,"keyup").pipe(oe(500),f((function(t){return e.inputElement.value})),x(),S(this.shouldExecuteSearch),de(this.onBeginSearch),Q(this._searchFunction),de(this.onCompleteSearch)).subscribe();this.resetInput()};e.prototype.disconnectedCallback=function(){this.searchResultsSubscription.unsubscribe()};e.prototype.handleFocus=function(){this.toggleDropdown(true)};e.prototype.handleBlur=function(){if(this.isMouseOver){return}this.toggleDropdown(false);this.resetInput()};e.prototype.handleKeyDown=function(e){if(this.processKeyboardNavigation(e)){e.preventDefault()}};e.prototype.render=function(){var e=this;var t;return r(s,null,r("div",{class:"relative"},r("input",{"data-testid":this.testId,type:"text",class:{"shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md":true,"invalid:border-red-300 invalid:text-red-900 invalid:placeholder-red-300 invalid:focus:ring-red-500 invalid:focus:border-red-500":this.showValidationErrors},placeholder:this.placeholder,required:this.required,disabled:this.disabled,value:this.inputValue,ref:function(t){return e.inputElement=t}}),r("div",{class:{"invalid-feedback mt-2 text-sm text-red-600":true,hidden:!this.isDropdownVisible}},(t=this.requiredValidationMessage)!==null&&t!==void 0?t:"Required."),r("div",{class:{"sss-dropdown-menu absolute shadow rounded-md border mt-0.5 w-full overflow-auto bg-white z-50 py-2 text-sm":true,hidden:!this.isDropdownVisible},onMouseEnter:function(t){return e.isMouseOver=true},onMouseLeave:function(t){return e.isMouseOver=false}},this.renderFilteredResults())))};Object.defineProperty(e.prototype,"_searchFunction",{get:function(){if(this.searchFunction===undefined){throw new Error("Can't render <sss-dropdown-async/> component with no searchFunction")}return this.searchFunction},enumerable:false,configurable:true});return e}());pt.style=dt;var ht=function(){function e(){}e.prototype.GetExistingFundAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,r,i,a,s,o,u,o,l,c,l,c,l,o,l,c;return __generator(this,(function(d){switch(d.label){case 0:t=E.superBuyer.superChoice;n=(e=E.superBuyer.superChoice)===null||e===void 0?void 0:e.choiceDetails;if(!t)return[2,N];if(!n)return[2,N];r=t.dateSubmitted==undefined?N:T(new Date(t.dateSubmitted));i=V(n);a=j(n);s=n.kind;switch(s){case"Promoted":return[3,1];case"MyOwnFund":return[3,3];case"SMSF":return[3,5];case"Default":return[3,6];case"PromotedDefault":return[3,8];case"DefinedBenefits":return[3,10];case"PromotedDefaultWithJoin":return[3,12]}return[3,14];case 1:if(U(i))return[2,N];return[4,this.getFundByUsiAsync(i.value)];case 2:o=d.sent();return[2,T({type:"Promoted Fund",id:B(n.promoted),name:A(o)?o.value.productName:i.value,usi:i,valid:"Active",memberNumber:a,lastNominatedAt:r})];case 3:u=n.myOwnFund.usi;return[4,this.getFundByUsiAsync(u)];case 4:o=d.sent();return[2,T({type:"My Own Fund",name:A(o)?o.value.productName:u,usi:i,valid:this.toFundValidState(o),memberNumber:a,lastNominatedAt:r})];case 5:return[2,T({type:"Self Managed Fund",name:n.smsf.fundName,valid:"Unknown",lastNominatedAt:r})];case 6:l=n.default.usi;return[4,this.getFundByUsiAsync(l)];case 7:c=d.sent();return[2,T({type:"Default Fund",name:A(c)?c.value.productName:l,usi:i,valid:this.toFundValidState(c),lastNominatedAt:r})];case 8:l=n.promotedDefault.usi;return[4,this.getFundByUsiAsync(l)];case 9:c=d.sent();return[2,T({type:"Promoted Default Fund",id:n.promotedDefault.fundId,name:A(c)?c.value.productName:l,usi:i,valid:this.toFundValidState(c),lastNominatedAt:r})];case 10:l=n.definedBenefits.usi;return[4,this.getFundByUsiAsync(l)];case 11:o=d.sent();return[2,T({type:"Defined Benefits Fund",name:A(o)?o.value.productName:l,usi:i,valid:this.toFundValidState(o),lastNominatedAt:r})];case 12:l=n.promotedDefaultWithJoin.usi;return[4,this.getFundByUsiAsync(l)];case 13:c=d.sent();return[2,T({type:"Promoted Default Fund With Join",id:n.promotedDefaultWithJoin.fundId,name:A(c)?c.value.productName:l,usi:i,valid:this.toFundValidState(c),memberNumber:a,lastNominatedAt:r})];case 14:return[2,N]}}))}))};e.prototype.submitRetainSuperFundAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,O().url("super-choice/retain-super-fund").post(e).badRequest((function(){throw new Error("Failed to process default fund join request")})).text()]}))}))};e.prototype.getFundByUsiAsync=function(e){return ot.getFundAsync(e,true)};e.prototype.toFundValidState=function(e){if(A(e)){return e.value.isActive?"Active":"Inactive"}else{return"Unknown"}};return e}();var mt=new ht;var vt=e("sss_existing_choice_page",function(){function e(e){n(this,e);this.eventTrackingService=lt.Instance;this.createSuperFundNominationDetail=function(e){function t(e){return A(e)?e.value:undefined}function n(e){return"usi"in e?t(e.usi):undefined}function r(e){return"memberNumber"in e?t(e.memberNumber):undefined}return{fundType:e.type.toString(),fundName:e.name,fundUsi:n(e),memberNumber:r(e),fundStatus:e.valid.toString(),lastNominatedAt:A(e.lastNominatedAt)?e.lastNominatedAt.value.toISOString():""}}}e.prototype.componentDidLoad=function(){var e=this.createSuperFundNominationDetail(this.existingFund);return this.eventTrackingService.TrackSuperFundNominationViewedAsync(e)};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,mt.GetExistingFundAsync()];case 1:e=t.sent();if(A(e)&&e.value.valid!=="Inactive"){this.existingFund=e.value}else{k.navigateInternally(this.history,F.ChoicePage)}return[2]}}))}))};e.prototype.render=function(){var e=this;var t=function(e){return r("div",{class:"flex justify-center"})};var n=function(){return r("div",{class:"flex h-20 justify-center items-center relative"},r("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),r("div",{class:"h-10 w-10 absolute"},r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",class:"fill-primary-base"},r("path",{d:"M174.7 111.8C165.1 110.3 160.1 102.1 161.5 93.35C170.4 40.37 216.5 0 272 0C320.8 0 362.3 31.19 377.6 74.67C380.6 82.1 376.2 92.14 367.9 95.09C359.5 98.03 350.4 93.66 347.5 85.33C336.5 54.24 306.8 32 272 32C232.4 32 199.5 60.82 193.1 98.65C191.6 107.4 183.4 113.2 174.7 111.8V111.8zM400 264C400 250.7 410.7 240 424 240C437.3 240 448 250.7 448 264C448 277.3 437.3 288 424 288C410.7 288 400 277.3 400 264zM488.5 125.8L480 159.1C501.1 176.5 519.6 198.5 530.7 224H544C561.7 224 576 238.3 576 256V352C576 369.7 561.7 384 544 384H512C495.5 405.1 473.5 423.6 448 434.7V464C448 490.5 426.5 512 400 512H368C341.5 512 320 490.5 320 464V448H256V464C256 490.5 234.5 512 208 512H176C149.5 512 128 490.5 128 464V416C89.14 386.8 64 340.3 64 288C28.52 287.2 0 258.2 0 222.6C0 197.8 14 175.1 36.18 164L40.84 161.7C48.75 157.7 58.36 160.9 62.31 168.8C66.26 176.7 63.06 186.4 55.16 190.3L50.49 192.6C39.16 198.3 31.1 209.9 31.1 222.6C31.1 241 46.97 256 65.44 256H67.2C82.02 182.1 146.6 128 223.1 128H376.4C394 108.4 419.6 96 448 96H465.3C480.9 96 492.3 110.7 488.5 125.8H488.5zM224 160C153.3 160 96 217.3 96 288C96 329.9 116.1 367 147.2 390.4L160 400V464C160 472.8 167.2 480 176 480H208C216.8 480 224 472.8 224 464V416H352V464C352 472.8 359.2 480 368 480H400C408.8 480 416 472.8 416 464V413.7L435.2 405.4C455.6 396.5 473.2 382.4 486.4 364.8L496 352H544V256H509.7L501.4 236.8C492.5 216.4 478.4 198.8 460.8 185.6L443.8 172.8L455 128H448C429 128 412.1 136.2 400.3 149.3L390.7 160H224z"}))))};var i=function(){return r("div",{class:"flex h-20 justify-center items-center relative"},r("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),r("div",{class:"h-10 w-10 absolute"},r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",class:"fill-primary-base"},r("path",{d:"M248.9 192H272v48C272 248.8 279.2 256 288 256C296.8 256 304 248.8 304 240V192h23.12C411.4 192 480 113 480 16C480 7.164 472.8 0 464 0h-39.13C364.9 0 313 40.13 288 98.13C263 40.13 211.1 0 151.1 0H112C103.2 0 96 7.164 96 16C96 113 164.6 192 248.9 192zM424.9 32h22.38c-6.625 71.88-58 128-120 128h-22.5C311.4 88.13 362.8 32 424.9 32zM151.1 32C213.3 32 264.5 88.13 271.3 160h-22.5c-62 0-113.4-56.13-120-128H151.1zM558.2 333.6c-9.5-8.619-22-13.37-35.12-13.37c-12.5 0-24.88 4.248-34.62 12.12l-61.45 49.21c-1.928 1.545-4.324 2.385-6.795 2.385h-41.62c4.625-9.619 6.5-20.74 4.75-32.23C379.4 323.7 353.7 304 325.6 304H181.2c-20.75 0-40.1 6.746-57.5 19.24l-38.5 28.73H16c-8.801 0-16 7.195-16 15.99S7.198 383.1 15.1 383.1l80.01-.0238l46.86-35.25c11.12-8.244 24.62-12.74 38.37-12.74h146.7c13.25 0 24 10.74 24 23.99s-10.75 23.98-24 23.98H239.1c-8.75 0-16 7.246-16 15.99c0 8.746 7.25 15.99 16 15.99h180.2c9.625 0 19-3.248 26.62-9.246l61.62-49.22c4.25-3.373 9.5-5.248 14.62-5.248c5 0 9.875 1.75 13.75 5.248c10.12 9.119 9.375 24.48-.875 32.61l-100.7 80.58c-7.584 6.064-17.01 9.369-26.72 9.369H16c-8.801 0-15.1 7.189-15.1 15.98S7.198 512 15.1 512h392.5c17 0 33.38-5.871 46.62-16.37l100.9-80.7c12.25-9.744 19.5-24.36 19.1-39.98C576.5 359.3 569.1 344.2 558.2 333.6z"}))))};var a=function(){return r("div",{class:"flex h-20 justify-center items-center relative"},r("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),r("div",{class:"h-10 w-10 absolute"},r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",class:"fill-primary-base"},r("path",{d:"M448 96h-64V48C384 21.53 362.5 0 336 0h-160C149.5 0 128 21.53 128 48V96H64C28.65 96 0 124.7 0 160v256c0 35.35 28.65 64 64 64h384c35.35 0 64-28.65 64-64V160C512 124.7 483.3 96 448 96zM160 48C160 39.17 167.2 32 176 32h160C344.8 32 352 39.17 352 48V96H160V48zM480 416c0 17.64-14.36 32-32 32H64c-17.64 0-32-14.36-32-32V288h144v64c0 8.844 7.156 16 16 16h128c8.844 0 16-7.156 16-16V288H480V416zM208 336V288h96v48H208zM480 256H32V160c0-17.64 14.36-32 32-32h384c17.64 0 32 14.36 32 32V256z"}))))};var s=function(){return r("div",{class:"flex h-20 justify-center items-center relative"},r("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),r("div",{class:"h-10 w-10 absolute"},r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",class:"fill-primary-base"},r("path",{d:"M174.7 111.8C165.1 110.3 160.1 102.1 161.5 93.35C170.4 40.37 216.5 0 272 0C320.8 0 362.3 31.19 377.6 74.67C380.6 82.1 376.2 92.14 367.9 95.09C359.5 98.03 350.4 93.66 347.5 85.33C336.5 54.24 306.8 32 272 32C232.4 32 199.5 60.82 193.1 98.65C191.6 107.4 183.4 113.2 174.7 111.8V111.8zM400 264C400 250.7 410.7 240 424 240C437.3 240 448 250.7 448 264C448 277.3 437.3 288 424 288C410.7 288 400 277.3 400 264zM488.5 125.8L480 159.1C501.1 176.5 519.6 198.5 530.7 224H544C561.7 224 576 238.3 576 256V352C576 369.7 561.7 384 544 384H512C495.5 405.1 473.5 423.6 448 434.7V464C448 490.5 426.5 512 400 512H368C341.5 512 320 490.5 320 464V448H256V464C256 490.5 234.5 512 208 512H176C149.5 512 128 490.5 128 464V416C89.14 386.8 64 340.3 64 288C28.52 287.2 0 258.2 0 222.6C0 197.8 14 175.1 36.18 164L40.84 161.7C48.75 157.7 58.36 160.9 62.31 168.8C66.26 176.7 63.06 186.4 55.16 190.3L50.49 192.6C39.16 198.3 31.1 209.9 31.1 222.6C31.1 241 46.97 256 65.44 256H67.2C82.02 182.1 146.6 128 223.1 128H376.4C394 108.4 419.6 96 448 96H465.3C480.9 96 492.3 110.7 488.5 125.8H488.5zM224 160C153.3 160 96 217.3 96 288C96 329.9 116.1 367 147.2 390.4L160 400V464C160 472.8 167.2 480 176 480H208C216.8 480 224 472.8 224 464V416H352V464C352 472.8 359.2 480 368 480H400C408.8 480 416 472.8 416 464V413.7L435.2 405.4C455.6 396.5 473.2 382.4 486.4 364.8L496 352H544V256H509.7L501.4 236.8C492.5 216.4 478.4 198.8 460.8 185.6L443.8 172.8L455 128H448C429 128 412.1 136.2 400.3 149.3L390.7 160H224z"}))))};var o=function(){return e.existingFund.type=="Defined Benefits Fund"?null:r("div",{class:"mt-4"},r("sss-button",{testid:"choose-another-fund-button",fillWidth:true,variant:"secondary",promiseFn:function(){return e.handleFundNominationDeclined()}},"Choose another fund"))};return r("div",null,r("div",{class:"text-2xl sm:text-3xl font-bold text-center"},"Your super nomination"),this.existingFund.type=="Defined Benefits Fund"?null:r("div",{class:"sm:text-lg text-gray-600 mt-3 sm:mt-4 max-w-800 text-center leading-7"},"Continue with your chosen fund or choose another fund below."),r("div",{class:"flex justify-center mt-8 sm:mt-12"},r("div",{class:"max-w-400 w-full"},r("div",{class:"flex-col border shadow-sm p-6 pt-8 rounded-lg text-center"},r("div",{class:"space-y-4"},function(){switch(e.existingFund.type){case"Promoted Fund":case"Promoted Default Fund":return r(t,{name:e.existingFund.name});case"Self Managed Fund":return r(i,null);case"My Own Fund":case"Promoted Default Fund With Join":return r(n,null);case"Default Fund":return r(a,null);case"Defined Benefits Fund":return r(s,null);default:return r("div",null)}}(),r("div",{class:"sm:text-lg font-bold leading-6 break-words"},function(){switch(e.existingFund.type){case"Default Fund":return"Employer's default fund";case"My Own Fund":case"Promoted Fund":case"Self Managed Fund":case"Promoted Default Fund":case"Defined Benefits Fund":case"Promoted Default Fund With Join":return e.existingFund.name;default:return""}}())),r("div",{class:"mt-6"},r("sss-button",{testid:"continue-with-this-fund-button",fillWidth:true,promiseFn:function(){return e.handleFundNominationAccepted()}},"Continue with this fund"))),r(o,null))))};e.prototype.handleFundNominationAccepted=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this.createSuperFundNominationDetail(this.existingFund);return[4,mt.submitRetainSuperFundAsync(e)];case 1:t.sent();E.markSuperSelectionAsSubmitted();return[2]}}))}))};e.prototype.handleFundNominationDeclined=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this.createSuperFundNominationDetail(this.existingFund);return[4,this.eventTrackingService.TrackSuperFundNominationDeclinedAsync(e)];case 1:t.sent();k.navigateInternally(this.history,F.ChoicePage);return[2]}}))}))};return e}());var gt="Powered by Flare";var yt=e("sss_footer_section",function(){function e(e){var t=this;n(this,e);this.footerText=function(){return t.textOverride!==undefined?t.textOverride:gt}}e.prototype.render=function(){return r("div",{class:{"text-center text-gray-500 text-xs w-full max-w-960 mx-auto":true,"mt-8 sm:mt-20":!E.hideFooterSection}},!E.hideFooterSection&&r("span",null,this.footerText()),r("p",{class:"block text-transparent"},"v",he))};return e}());var bt=function(e,t){return r("stencil-route-link",{exact:true,url:e.route},r("div",{class:{"block focus:outline-none focus:ring-2 ring-offset-1 focus:ring-primary-focus focus:z-10 rounded-md py-2 text-sm font-medium w-auto px-3 sm:px-8 h-full":true,"bg-white shadow-sm text-primary-base":e.isActive,"hover:bg-primary-hover text-white":!e.isActive}},t))};var wt=function(e){var t=F.MyOwnFund;if(window.location.href.includes(F.SelfManagedFund)){t=F.SelfManagedFund}else if(window.location.href.includes(F.DefaultFund)){t=F.DefaultFund}else if(window.location.href.includes(F.FeaturedFunds)){t=F.FeaturedFunds}return r(bt,{route:t,isActive:e.isActive},"Choose another fund")};var xt=e("sss_header_section",function(){function e(e){n(this,e)}e.prototype.render=function(){return r("div",{class:"flex justify-center"},r("div",{class:"text-center max-w-800"},r("h3",{class:"font-bold mb-3 sm:mb-4 text-2xl sm:text-3xl"},"Nominate a super fund"),r(i,null,r("div",{class:"text-gray-600 sm:text-lg leading-7 sm:leading-8"},E.superCampaignCanNotBeActivated?r(i,null,"You can choose any super fund, including your current fund/SMSF or your employer’s default fund."):r(i,null,"You can choose any super fund, including your current fund/SMSF, your employer’s default fund, or alternatively, you can select from one of the featured funds.")),!E.superCampaignCanNotBeActivated&&r("div",{class:"inline-flex mt-8 sm:mt-12 bg-primary-base rounded-lg p-0.5 whitespace-normal"},r(bt,{route:F.ChoicePage,isActive:false},"Featured super funds"),r(wt,{isActive:true})))))};return e}());var St=e("sss_loading_indicator",function(){function e(e){n(this,e);this.theme="primary";this.size=48}e.prototype.render=function(){return r("div",{class:"inline-block animate-spin"},r("svg",{width:this.size,height:this.size,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r("path",{d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM1.99743 8C1.99743 11.3151 4.68487 14.0026 8 14.0026C11.3151 14.0026 14.0026 11.3151 14.0026 8C14.0026 4.68487 11.3151 1.99743 8 1.99743C4.68487 1.99743 1.99743 4.68487 1.99743 8Z",fill:"white","fill-opacity":"0.3"}),r("path",{d:"M8 1C8 0.447715 8.44943 -0.00643769 8.99741 0.0624193C9.70527 0.151368 10.3996 0.334798 11.0615 0.608964C12.0321 1.011 12.914 1.60028 13.6569 2.34315C14.3997 3.08602 14.989 3.96793 15.391 4.93853C15.6652 5.60043 15.8486 6.29473 15.9376 7.0026C16.0064 7.55057 15.5523 8 15 8C14.4477 8 14.0085 7.54925 13.9169 7.00462C13.842 6.55939 13.7169 6.12298 13.5433 5.7039C13.2417 4.97595 12.7998 4.31451 12.2426 3.75736C11.6855 3.20021 11.0241 2.75825 10.2961 2.45672C9.87702 2.28313 9.44061 2.15804 8.99538 2.08314C8.45075 1.99152 8 1.55228 8 1Z",class:this.theme==="primary"?"fill-primary-base":"fill-white"})))};return e}());var Ct=e("sss_loading_page",function(){function e(e){n(this,e)}e.prototype.render=function(){return r(s,{class:"flex flex-col justify-center items-center"},r("h5",{class:"text-lg"},"Loading your superannuation step"),r("sss-loading-indicator",null))};return e}());var _t=e("sss_my_own_fund_engagement_step_host",function(){function e(e){var t=this;n(this,e);this.stepContinued=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(e.detail.sender=="byof-engagement"))return[3,2];return[4,lt.Instance.TrackSuperMyOwnFundEngagementStepContinued(this.fundUsi,e.detail.reason)];case 1:t.sent();this.navigateToStandardChoice();t.label=2;case 2:return[2]}}))}))};this.subscribeToStepEvents=function(){for(var e in t.stepEventHandlers){document.addEventListener(e,t.stepEventHandlers[e])}};this.unSubscribeFromStepEvents=function(){for(var e in t.stepEventHandlers){document.removeEventListener(e,t.stepEventHandlers[e])}};this.stepEventHandlers={continue:this.stepContinued.bind(this)}}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!(E.isBringYourOwnFundCustomStepEnabled&&E.isUsingSuperCampaign&&M.isSome(nt.myOwnFundForm.fundUsi)&&M.isSome(nt.myOwnFundForm.fundName)&&M.isSome(nt.myOwnFundForm.memberNumber)&&M.isSome(nt.myOwnFundForm.memberFirstName)&&M.isSome(nt.myOwnFundForm.memberFamilyName)&&M.isSome(E.backendUrl)&&M.isSome(E.state.jwt)))return[3,2];this.backendUrl=E.backendUrl.value;this.accessToken=E.state.jwt.value;this.fundUsi=nt.myOwnFundForm.fundUsi.value;this.fundName=nt.myOwnFundForm.fundName.value;this.memberNumber=nt.myOwnFundForm.memberNumber.value;this.memberFirstName=nt.myOwnFundForm.memberFirstName.value;this.memberFamilyName=nt.myOwnFundForm.memberFamilyName.value;this.unSubscribeFromStepEvents();this.subscribeToStepEvents();E.hideFooterSection=true;return[4,lt.Instance.TrackSuperMyOwnFundEngagementStepActivationSucceeded(this.fundUsi)];case 1:e.sent();return[3,3];case 2:k.navigateInternally(this.history,F.MyOwnFund);e.label=3;case 3:return[2]}}))}))};e.prototype.disconnectedCallback=function(){this.unSubscribeFromStepEvents();E.hideFooterSection=false};e.prototype.render=function(){return r(s,null,r("apollo-super-byof-engagement",{"backend-url":this.backendUrl,"access-token":this.accessToken,"fund-usi":this.fundUsi}))};e.prototype.navigateToStandardChoice=function(){var e=this;k.navigateInternallyToStandardChoice({history:this.history,fundName:this.fundName,fundDetails:{type:"myOwnFund",fundName:this.fundName,fundUsi:this.fundUsi,memberNumber:this.memberNumber},handleSubmitFn:function(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:e=Object.assign({fundUsi:this.fundUsi,memberNumber:this.memberNumber,memberFirstName:this.memberFirstName,memberFamilyName:this.memberFamilyName,standardChoiceFormSignature:t},E.promotedFundsConfig);return[4,R.submitCustomFundChoiceAsync(e)];case 1:n.sent();return[2]}}))}))}})};return e}());D(_t);var It=e("sss_name_input",function(){function e(e){n(this,e);this.myInputChange=o(this,"myInputChange",7);this.value="";this.name="";this.readableName="";this.showValidationErrors=false;this.errorMessage="";this.NAME_PATTERN="^[A-Za-z](?:[A-Za-z]||'[A-Za-z]||-[A-Za-z]|| [A-Za-z])*\\s*$"}e.prototype.render=function(){var e=this;return r(s,null,r("input",{"data-testid":this.testId,type:"text",class:{"shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md":true,"invalid:border-red-300 invalid:text-red-900 invalid:focus:ring-red-500 invalid:focus:border-red-500":this.showValidationErrors},required:true,pattern:this.NAME_PATTERN,name:this.name,value:this.value,onInput:function(t){return e.handleInput(t)}}),this.errorMessage&&r("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},this.errorMessage))};e.prototype.handleInput=function(e){var t=e.target;t.value=t.value.replace(/\s+/g," ");this.validateInput(t);this.myInputChange.emit(t.value.trim())};e.prototype.validateInput=function(e){if(!e.checkValidity()){if(e.validity.valueMissing){this.errorMessage=this.readableName+" is required."}else if(e.validity.patternMismatch){if(e.value.startsWith("-")||e.value.startsWith("'")){this.errorMessage=this.readableName+" must start with a letter."}else if(e.value.includes("--")){this.errorMessage=this.readableName+" must not have a double hypen."}else{this.errorMessage=this.readableName+" contains unsupported characters."}}else{this.errorMessage="Invalid input."}}else{this.errorMessage=""}};return e}());var Nt=e("sss_prefill",function(){function e(e){n(this,e);this.prefill=undefined;this.ignorePopState=function(){return window.history.pushState(null,"",null)}}e.prototype.connectedCallback=function(){this.ignorePopState();window.addEventListener("popstate",this.ignorePopState)};e.prototype.disconnectedCallback=function(){window.removeEventListener("popstate",this.ignorePopState)};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.prefill=A(E.state.superChoicePrefill)?E.state.superChoicePrefill.value:undefined;return[2]}))}))};e.prototype.render=function(){if(this.prefill&&this.prefill.type==="myOwnFund"){if(this.prefill.data.fundDetail.type==="Valid"){return this.renderMyOwnFund(this.prefill.data)}else{return this.renderInvalidMyOwnFund(this.prefill.data)}}if(this.prefill&&this.prefill.type==="smsf"){if(this.prefill.data.fundAbn.valid){return this.renderSMSF(this.prefill.data)}else{return this.renderInvalidSMSF(this.prefill.data)}}k.navigateInternally(this.history,F.ChoicePage);return null};e.prototype.renderMyOwnFund=function(e){return r("sss-prefill-my-own-fund",{history:this.history,prefill:e})};e.prototype.renderInvalidMyOwnFund=function(e){return r("sss-prefill-invalid-my-own-fund",{history:this.history,prefill:e})};e.prototype.renderSMSF=function(e){return r("sss-prefill-smsf",{history:this.history,prefill:e})};e.prototype.renderInvalidSMSF=function(e){return r("sss-prefill-invalid-smsf",{history:this.history,prefill:e})};return e}());var At=e("sss_prefill_display_field",function(){function e(e){n(this,e)}e.prototype.render=function(){return r("div",{class:"flex w-full flex-col sm:flex-row sm:min-h-5 justify-center items-start gap-0.5 sm:gap-4 self-stretch"},r("div",{class:{"sm:w-2/5 sm:max-w-40 self-stretch text-gray-500 text-xs sm:text-sm not-italic font-medium leading-4 sm:leading-5":true,"text-red-600":!this.field.isValid}},this.field.name),r("div",{"data-testid":this.field.testId,class:{"sm:w-3/5 max-w-[300px] self-stretch text-gray-900 text-sm not-italic font-normal leading-5 break-words":true,"h-5 sm:h-auto":this.field.isEmpty,"text-red-600":!this.field.isValid}},this.field.value))};return e}());var Tt=e("sss_prefill_error_box",function(){function e(e){n(this,e);this.withHeader=false}e.prototype.render=function(){var e=function(){return r("div",{class:"w-5 h-5"},r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},r("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18ZM8.70711 7.29289C8.31658 6.90237 7.68342 6.90237 7.29289 7.29289C6.90237 7.68342 6.90237 8.31658 7.29289 8.70711L8.58579 10L7.29289 11.2929C6.90237 11.6834 6.90237 12.3166 7.29289 12.7071C7.68342 13.0976 8.31658 13.0976 8.70711 12.7071L10 11.4142L11.2929 12.7071C11.6834 13.0976 12.3166 13.0976 12.7071 12.7071C13.0976 12.3166 13.0976 11.6834 12.7071 11.2929L11.4142 10L12.7071 8.70711C13.0976 8.31658 13.0976 7.68342 12.7071 7.29289C12.3166 6.90237 11.6834 6.90237 11.2929 7.29289L10 8.58579L8.70711 7.29289Z",fill:"#F87171"})))};return r("div",{class:"flex items-start self-stretch rounded-md bg-red-50"},r("div",{class:"w-1 self-stretch bg-red-400"}),r("div",{class:"flex items-start gap-3 flex-[1_0_0] p-4"},r(e,null),r("div",{class:"flex-col justify-start items-start gap-2 inline-flex"},this.withHeader&&r("div",{class:"self-stretch text-red-800 text-sm font-medium leading-tight"},"Please correct ",this.notificationList.length," issues with your fund details"),this.withHeader&&this.notificationList.map((function(e){return r("div",{class:"self-stretch h-5 flex-col justify-start items-start gap-1 flex"},r("div",{class:"self-stretch pl-1.5 justify-start items-start gap-[7px] inline-flex"},r("div",{class:"pt-1.5 justify-center items-center flex"},r("div",{class:"w-1.5 h-1.5 bg-red-700 rounded-full"})),r("div",{class:"grow shrink basis-0 text-red-700 text-sm font-normal leading-tight"},e)))})),!this.withHeader&&this.notificationList.map((function(e){return r("div",{class:"text-sm font-medium leading-tight text-red-800"},e)})))))};return e}());function Et(e){return e==null||e.trim()===""}var kt=function(e,t,n){return r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},e),r("div",{"data-testid":t,class:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm"},n))};var Ft=function(){return r("div",null,r("div",{class:"text-2xl sm:text-3xl font-bold text-center"},"Your super nomination"),r("div",{class:"sm:text-lg text-gray-600 mt-3 sm:mt-4 max-w-800 text-center leading-7"},"Review or update the below super fund nomination details provided by your employer."))};var Dt=function(){function e(){}e.Input=function(e){return{"relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10":true,"invalid:border-red-300 invalid:text-red-900 invalid:placeholder-red-300 invalid:focus:ring-red-500 invalid:focus:border-red-500":e}};return e}();var Pt="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";var Lt=function(){function e(e,t,n){this.name=e;this.testId=t;this._value=n!==null&&n!==void 0?n:"";this._errorMessage=this.validateAndReturnErrorMessage(this._value)}Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._errorMessage=this.validateAndReturnErrorMessage(e);this._value=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isValid",{get:function(){return this._errorMessage===null},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isEmpty",{get:function(){return Et(this._value)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"errorMessage",{get:function(){return this._errorMessage},enumerable:false,configurable:true});return e}();var Mt=function(){function e(e,t,n,r){this.name=e;this.testId=t;this._value=n!==null&&n!==void 0?n:"";this._isValid=r}Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isValid",{get:function(){return this._isValid},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isEmpty",{get:function(){return Et(this._value)},enumerable:false,configurable:true});return e}();var Ot=function(e){__extends(t,e);function t(t,n){return e.call(this,"Fund USI","fund-usi",t,n)||this}return t}(Mt);var Rt=function(e){__extends(t,e);function t(t,n){return e.call(this,"Fund name","fund-name",t,n)||this}return t}(Mt);var Ut=function(e){__extends(t,e);function t(t){return e.call(this,"Fund name","smsf-fund-name",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){if(Et(e)){return"Fund name is required."}else if(e.length<2){return"Enter a valid Fund name."}else{return null}};return t}(Lt);var Bt=function(e){__extends(t,e);function t(t){return e.call(this,"Member number","member-number",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){var t=/^[A-Za-z0-9]{4,16}$/;if(Et(e)){return"Member number is required."}else if(!t.test(e)){return"Enter a valid member number (only numbers and / or letters)"}else{return null}};return t}(Lt);var Vt=function(e){__extends(t,e);function t(t){return e.call(this,"Member last name","member-last-name",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){var t=new RegExp(Pt);if(Et(e)){return"Member last name is required."}else if(!t.test(e)){return"Member last name contains unsupported characters."}else{return null}};return t}(Lt);var jt=function(e){__extends(t,e);function t(t){return e.call(this,"Member given name(s)","member-given-names",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){var t=new RegExp(Pt);if(Et(e)){return"Member given name(s) is required."}else if(!t.test(e)){return"Member given name(s) contains unsupported characters."}else{return null}};return t}(Lt);var qt=function(e){__extends(t,e);function t(t,n){return e.call(this,"Fund ABN","fund-abn",t,n)||this}return t}(Mt);var Ht=function(e){__extends(t,e);function t(t){return e.call(this,"Fund ESA","fund-esa",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){if(Et(e)){return"Fund ESA is required."}else if(e.length<2){return"Enter a valid Fund ESA."}else{return null}};return t}(Lt);var zt=function(e){__extends(t,e);function t(t){return e.call(this,"Address line 1","address-line-one",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){if(Et(e)){return"Address line 1 is required."}else if(e.length<2){return"Enter a valid Address line 1."}else{return null}};return t}(Lt);var Wt=function(e){__extends(t,e);function t(t){return e.call(this,"Address line 2","address-line-two",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){return null};return t}(Lt);var Gt=function(e){__extends(t,e);function t(t){return e.call(this,"City/suburb","city-suburb",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){if(Et(e)){return"City/suburb is required."}else{return null}};return t}(Lt);var Kt=function(e){__extends(t,e);function t(t){return e.call(this,"Postcode","postcode",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){var t=/^[0-9]{4}$/;if(Et(e)){return"Postcode is required."}else if(!t.test(e)){return"Enter a valid postcode."}else{return null}};return t}(Lt);var Xt=function(e){__extends(t,e);function t(t){return e.call(this,"State","state",t)||this}Object.defineProperty(t.prototype,"options",{get:function(){return[{value:"NSW",label:"NSW"},{value:"QLD",label:"QLD"},{value:"ACT",label:"ACT"},{value:"VIC",label:"VIC"},{value:"TAS",label:"TAS"},{value:"WA",label:"WA"},{value:"SA",label:"SA"},{value:"NT",label:"NT"}]},enumerable:false,configurable:true});t.prototype.validateAndReturnErrorMessage=function(e){if(Et(e)){return"State is required."}else if(this.options.find((function(t){return t.value=e}))===undefined){return"Enter a valid state."}else{return null}};return t}(Lt);var Jt=function(e){__extends(t,e);function t(t,n,r,i,a){var s=this;var o=[t,n,r,i,a].map((function(e){return e.value})).filter((function(e){return e})).join(", ");var u=t.isValid&&n.isValid&&r.isValid&&i.isValid&&a.isValid;s=e.call(this,"Fund address","fund-address",o,u)||this;return s}return t}(Mt);var Yt=function(e){__extends(t,e);function t(t){return e.call(this,"Account name","account-name",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){if(Et(e)){return"Account name is required."}else if(e.length<2){return"Enter a valid Account name."}else{return null}};return t}(Lt);var $t=function(e){__extends(t,e);function t(t,n){return e.call(this,"Bank name","bank-name",t,n)||this}return t}(Mt);var Zt=function(e){__extends(t,e);function t(t){return e.call(this,"BSB","bsb",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){var t=/^[0-9]{6,7}$/;if(Et(e)){return"BSB is required."}else if(!t.test(e)){return"Enter a valid BSB."}else{return null}};return t}(Lt);var Qt=function(e){__extends(t,e);function t(t){return e.call(this,"Account number","account-number",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){var t=/^[0-9]{2,11}$/;if(Et(e)){return"Account number is required."}else if(!t.test(e)){return"Enter a valid Account number."}else{return null}};return t}(Lt);var en=e("sss_prefill_invalid_my_own_fund",function(){function e(e){n(this,e);this.eventTrackingService=lt.Instance;this.createSuperFundPrefillDeclinedDetail=function(e){return{fundType:"My Own Fund",isUsiValid:e.fundDetail.type==="Valid",isMemberNumberPresent:!Et(e.memberNumber),isMemberFirstNamePresent:!Et(e.memberFirstName),isMemberLastNamePresent:!Et(e.memberFamilyName)}};this.createSuperFundPrefillViewedDetail=function(e){return{fundType:"My Own Fund",isUsiValid:e.fundDetail.type==="Valid",isMemberNumberPresent:!Et(e.memberNumber),isMemberFirstNamePresent:!Et(e.memberFirstName),isMemberLastNamePresent:!Et(e.memberFamilyName)}}}e.prototype.componentDidLoad=function(){var e=this.createSuperFundPrefillViewedDetail(this.prefill);return this.eventTrackingService.TrackSuperFundPrefillViewedAsync(e)};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.prefill&&this.prefill.fundDetail.type==="Invalid"){this.fundUsi=new Ot(this.prefill.fundDetail.fundUsi,false);this.fundName=new Rt("",false);this.memberNumber=new Bt(this.prefill.memberNumber);this.memberGivenNames=new jt(this.prefill.memberFirstName);this.memberLastName=new Vt(this.prefill.memberFamilyName)}else{k.navigateInternally(this.history,F.ChoicePage)}return[2]}))}))};e.prototype.render=function(){var e=this;return r("div",null,r(Ft,null),r("div",{class:"flex flex-col items-center gap-8 mt-8 sm:mt-12"},r("div",{class:"flex max-w-[560px] flex-col items-start gap-6 p-6 border shadow-sm rounded-lg"},r("div",{class:"flex flex-col items-start gap-3 self-stretch"},r("div",{class:"self-stretch text-grey-900 text-lg not-italic font-bold leading-7"},"Your fund details"),r("sss-prefill-error-box",{class:"self-stretch",notificationList:["The fund USI is invalid, or no longer in use. You are required to choose another fund to continue with your super nomination."]}),r("div",{class:"flex flex-col gap-3 self-stretch mt-4"},r("sss-prefill-display-field",{field:this.fundUsi}),r("sss-prefill-display-field",{field:this.fundName}),r("sss-prefill-display-field",{field:this.memberNumber}),r("sss-prefill-display-field",{field:this.memberLastName}),r("sss-prefill-display-field",{field:this.memberGivenNames})))),r("div",{class:"flex w-full sm:w-80 max-w-[560px] flex-col items-start gap-4"},r("sss-button",{testid:"choose-another-fund-button",class:"self-stretch",fillWidth:true,variant:"primary",promiseFn:function(){return e.handleChooseAnotherFund()}},"Choose another fund"))))};e.prototype.handleChooseAnotherFund=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this.createSuperFundPrefillDeclinedDetail(this.prefill);return[4,this.eventTrackingService.TrackSuperFundPrefillDeclinedAsync(e)];case 1:t.sent();return[2,k.navigateInternally(this.history,F.ChoicePage)]}}))}))};return e}());var tn=e("sss_prefill_invalid_smsf",function(){function e(e){n(this,e);this.eventTrackingService=lt.Instance;this.createSuperFundPrefillDeclinedDetail=function(e){return{fundType:"SMSF",isAbnValid:e.fundAbn.valid,isMemberFirstNamePresent:!Et(e.memberFirstName),isMemberLastNamePresent:!Et(e.memberFamilyName)}};this.createSuperFundPrefillViewedDetail=function(e){return{fundType:"SMSF",isAbnValid:e.fundAbn.valid,isMemberFirstNamePresent:!Et(e.memberFirstName),isMemberLastNamePresent:!Et(e.memberFamilyName)}}}e.prototype.componentDidLoad=function(){var e=this.createSuperFundPrefillViewedDetail(this.prefill);return this.eventTrackingService.TrackSuperFundPrefillViewedAsync(e)};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.prefill&&!this.prefill.fundAbn.valid){this.initialiseComponent(this.prefill)}else{k.navigateInternally(this.history,F.PrefillInvalidMyOwnFundPage)}return[2]}))}))};e.prototype.render=function(){var e=this;return r("div",null,r(Ft,null),r("div",{class:"flex flex-col items-center gap-8 mt-8 sm:mt-12"},r("div",{class:"flex max-w-[560px] flex-col items-start gap-6 p-6 border shadow-sm rounded-lg"},r("div",{class:"flex flex-col items-start gap-3 self-stretch"},r("div",{class:"self-stretch text-grey-900 text-lg not-italic font-bold leading-7"},"Your self-managed super fund (SMSF) details"),r("sss-prefill-error-box",{class:"self-stretch",notificationList:["The fund ABN is invalid. You are required to choose another fund to continue with your super nomination."]}),r("div",{class:"flex flex-col gap-3 self-stretch mt-4"},r("sss-prefill-display-field",{field:this.fundName}),r("sss-prefill-display-field",{field:this.fundAbn}),r("sss-prefill-display-field",{field:this.fundEsa}),r("sss-prefill-display-field",{field:this.fundAddress}),r("sss-prefill-display-field",{field:this.memberLastName}),r("sss-prefill-display-field",{field:this.memberGivenNames}),r("div",{class:"mt-4 mb-2 text-gray-900 text-lg font-bold leading-7"},"Fund bank details"),r("sss-prefill-display-field",{field:this.bankAccountName}),r("sss-prefill-display-field",{field:this.bankAccountBsb}),r("sss-prefill-display-field",{field:this.bankAccountNumber})))),r("div",{class:"flex w-full sm:w-80 max-w-[560px] flex-col items-start gap-4"},r("sss-button",{testid:"make-another-nomination-button",class:"self-stretch",fillWidth:true,variant:"primary",promiseFn:function(){return e.handleFundNominationDeclined()}},"Make another nomination"))))};e.prototype.initialiseComponent=function(e){this.fundName=new Ut(e.fundName);this.fundAbn=new qt(e.fundAbn.value,e.fundAbn.valid);this.fundEsa=new Ht(e.electronicServiceAddress);this.fundAddressLine1=new zt(e.addressLine1);this.fundAddressLine2=new Wt(e.addressLine2);this.fundAddressCity=new Gt(e.addressCity);this.fundAddressPostcode=new Kt(e.addressPostcode);this.fundAddressState=new Xt(e.addressState);this.fundAddress=new Jt(this.fundAddressLine1,this.fundAddressLine2,this.fundAddressCity,this.fundAddressState,this.fundAddressPostcode);this.memberGivenNames=new jt(e.memberFirstName);this.memberLastName=new Vt(e.memberFamilyName);this.bankAccountName=new Yt(e.bankAccountName);this.bankAccountBsb=new Zt(e.bankAccountBsb);this.bankAccountNumber=new Qt(e.bankAccountNumber)};e.prototype.handleFundNominationDeclined=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this.createSuperFundPrefillDeclinedDetail(this.prefill);return[4,this.eventTrackingService.TrackSuperFundPrefillDeclinedAsync(e)];case 1:t.sent();return[2,k.navigateInternally(this.history,F.ChoicePage)]}}))}))};return e}());var nn=e("sss_prefill_my_own_fund",function(){function e(e){n(this,e);this.mode="review";this.formState="pristine";this.isSubmitDisabled=true;this.eventTrackingService=lt.Instance;this.createSuperFundPrefillDeclinedDetail=function(e){return{fundType:"My Own Fund",isUsiValid:e.fundDetail.type==="Valid",isMemberNumberPresent:!Et(e.memberNumber),isMemberFirstNamePresent:!Et(e.memberFirstName),isMemberLastNamePresent:!Et(e.memberFamilyName)}};this.createSuperFundPrefillViewedDetail=function(e){return{fundType:"My Own Fund",isUsiValid:e.fundDetail.type==="Valid",isMemberNumberPresent:!Et(e.memberNumber),isMemberFirstNamePresent:!Et(e.memberFirstName),isMemberLastNamePresent:!Et(e.memberFamilyName)}}}e.prototype.componentDidLoad=function(){var e=this.createSuperFundPrefillViewedDetail(this.prefill);return this.eventTrackingService.TrackSuperFundPrefillViewedAsync(e)};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.prefill&&this.prefill.fundDetail.type==="Valid"){this.initialiseComponent(this.prefill.fundDetail.fundName,this.prefill)}else{k.navigateInternally(this.history,F.ChoicePage)}return[2]}))}))};e.prototype.render=function(){var e=this;var t=[this.memberNumber.errorMessage,this.memberLastName.errorMessage,this.memberGivenNames.errorMessage].filter((function(e){return e!==null}));return r("div",null,r(Ft,null),r("div",{class:"flex flex-col items-center gap-8 mt-8 sm:mt-12"},r("div",{class:"flex max-w-[560px] flex-col items-start gap-6 p-6 border shadow-sm rounded-lg"},r("div",{class:"flex flex-col items-start gap-3.5 self-stretch"},r("div",{class:"self-stretch text-grey-900 text-lg not-italic font-bold leading-7"},"Your fund details"),r("sss-prefill-warning-box",{class:"self-stretch",notificationList:["Make sure you are a current member of the fund before completing this step.","Please check that the fund USI is correct as some funds have similar names."]}),this.mode==="review"&&t.length>0&&r("sss-prefill-error-box",{class:"self-stretch",notificationList:t,withHeader:true}),this.mode==="review"&&r("div",{class:"flex flex-col gap-3 self-stretch mt-4"},r("sss-prefill-display-field",{field:this.fundUsi}),r("sss-prefill-display-field",{field:this.fundName}),r("sss-prefill-display-field",{field:this.memberNumber}),r("sss-prefill-display-field",{field:this.memberLastName}),r("sss-prefill-display-field",{field:this.memberGivenNames})),this.mode==="review"&&r("sss-button",{testid:"edit-details-button",class:"self-stretch mt-3",fillWidth:true,variant:"secondary",promiseFn:function(){return e.setModeToEdit()}},r("div",{class:"flex flex-row gap-2"},r("div",{class:"text-sm not-italic font-medium leading-4"},"Edit details"),r("div",{class:"w-4 h-4 relative"},r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"currentColor"},r("path",{d:"M11.369 2.86865C11.9939 2.24381 13.0069 2.24381 13.6318 2.86865C14.2566 3.49349 14.2566 4.50656 13.6318 5.1314L12.9974 5.76571L10.7347 3.50297L11.369 2.86865Z"}),r("path",{d:"M9.60334 4.63434L2.90039 11.3373V13.6H5.16313L11.8661 6.89708L9.60334 4.63434Z"}))))),this.mode==="edit"&&r("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t},onInput:function(t){return e.isSubmitDisabled=e.formHasMissingData()}},kt(this.fundName.name,this.fundName.testId,this.fundName.value),kt(this.fundUsi.name,this.fundUsi.testId,this.fundUsi.value),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},this.memberNumber.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Dt.Input(this.formState==="validated"),required:true,pattern:"[A-Za-z0-9]{4,16}","data-testid":this.memberNumber.testId,value:this.memberNumber.value,onInput:function(t){e.updateMemberNumber(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.memberNumber.errorMessage))),r("div",{class:"flex mt-3 gap-x-4 flex-col sm:flex-row"},r("div",{class:"w-full sm:w-1/2"},r("label",{class:"text-sm font-medium text-gray-700"},this.memberGivenNames.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Dt.Input(this.formState==="validated"),required:true,pattern:Pt,"data-testid":this.memberGivenNames.testId,value:this.memberGivenNames.value,onInput:function(t){e.updateMemberGivenNames(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.memberGivenNames.errorMessage))),r("div",{class:"w-full sm:w-1/2"},r("label",{class:"text-sm font-medium text-gray-700"},this.memberLastName.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Dt.Input(this.formState==="validated"),required:true,pattern:Pt,"data-testid":this.memberLastName.testId,value:this.memberLastName.value,onInput:function(t){e.updateMemberLastName(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.memberLastName.errorMessage))))))),r("div",{class:"flex w-full sm:w-80 max-w-[560px] flex-col items-start gap-4"},r("sss-button",{testid:"continue-button",class:"self-stretch",fillWidth:true,variant:"primary",disabled:this.isSubmitDisabled,promiseFn:function(){return e.handleSubmitForm()}},"Continue"),r("sss-button",{testid:"choose-another-fund-button",class:"self-stretch",fillWidth:true,variant:"secondary",promiseFn:function(){return e.handleFundNominationDeclined()}},"Choose another fund"))))};e.prototype.initialiseComponent=function(e,t){this.fundUsi=new Ot(t.fundDetail.fundUsi,true);this.fundName=new Rt(e,true);this.memberNumber=new Bt(t.memberNumber);this.memberGivenNames=new jt(t.memberFirstName);this.memberLastName=new Vt(t.memberFamilyName);this.isSubmitDisabled=this.formHasMissingData()};e.prototype.isFormValid=function(){return this.fundUsi.isValid&&this.fundName.isValid&&this.memberNumber.isValid&&this.memberGivenNames.isValid&&this.memberLastName.isValid};e.prototype.formHasMissingData=function(){return this.fundUsi.isEmpty||this.fundName.isEmpty||this.memberNumber.isEmpty||this.memberGivenNames.isEmpty||this.memberLastName.isEmpty};e.prototype.setModeToEdit=function(){this.mode="edit";return Promise.resolve()};e.prototype.updateMemberNumber=function(e){this.memberNumber=new Bt(e.trim())};e.prototype.updateMemberGivenNames=function(e){this.memberGivenNames=new jt(e.trimStart())};e.prototype.updateMemberLastName=function(e){this.memberLastName=new Vt(e.trim())};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){this.formState="validated";if(!this.isFormValid()){return[2]}if(this.mode==="edit"&&!this.formElement.checkValidity()){return[2]}k.navigateInternallyToStandardChoice({history:this.history,fundName:this.fundName.value,fundDetails:{type:"myOwnFund",fundName:this.fundName.value,fundUsi:this.fundUsi.value,memberNumber:this.memberNumber.value},handleSubmitFn:function(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:e=Object.assign({fundUsi:this.fundUsi.value,memberNumber:this.memberNumber.value,memberFirstName:this.memberGivenNames.value,memberFamilyName:this.memberLastName.value,standardChoiceFormSignature:t},E.promotedFundsConfig);return[4,R.submitCustomFundChoiceAsync(e)];case 1:n.sent();return[2]}}))}))}});return[2]}))}))};e.prototype.handleFundNominationDeclined=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this.createSuperFundPrefillDeclinedDetail(this.prefill);return[4,this.eventTrackingService.TrackSuperFundPrefillDeclinedAsync(e)];case 1:t.sent();return[2,k.navigateInternally(this.history,F.ChoicePage)]}}))}))};return e}());var rn={"01":"Australia and New Zealand Banking Group","03":"Westpac Banking Corporation",73:"Westpac Banking Corporation","06":"Commonwealth Bank of Australia",76:"Commonwealth Bank of Australia","08":"National Australia Bank",78:"National Australia Bank","09":"Reserve Bank of Australia",10:"BankSA (division of Westpac Bank)",11:"St George Bank (division of Westpac Bank)",33:"St George Bank (division of Westpac Bank)",12:"Bank of Queensland",14:"Rabobank",15:"Town & Country Bank",18:"Macquarie Bank",19:"Bank of Melbourne (division of Westpac Bank)",55:"Bank of Melbourne (division of Westpac Bank)",21:"JP Morgan Chase Bank",22:"BNP Paribas",23:"Bank of America",24:"Citibank & Citibank NA",510:"Citibank & Citibank NA",25:"BNP Paribas Securities",26:"Bankers Trust Australia (division of Westpac Bank)",29:"MUFG Bank",30:"Bankwest (division of Commonwealth Bank)",31:"Bank Australia",325:"Beyond Bank",34:"HSBC Bank Australia",985:"HSBC Bank Australia",35:"Bank of China",980:"Bank of China",40:"Commonwealth Bank of Australia",41:"Deutsche Bank",42:"Commonwealth Bank of Australia",52:"Commonwealth Bank of Australia",45:"OCBC Bank",46:"Advance Bank (division of Westpac Bank)",47:"Challenge Bank (division of Westpac Bank)",48:"Suncorp-Metway",664:"Suncorp-Metway",512:"Community First Credit Union",514:"RACQ Bank",517:"Volt Bank",533:"Bananacoast Community Credit Union",57:"Australian Settlements",61:"Adelaide Bank (division of Bendigo and Adelaide Bank)",611:"Endeavour Mutual Bank",823:"Endeavour Mutual Bank",630:"Greater Bank",637:"Greater Bank",632:"B&E",633:"Bendigo Bank",634:"Uniting Financial Services",638:"Heritage Bank",880:"Heritage Bank",639:"Home Building Society (division of Bank of Queensland)",640:"Hume Bank",641:"IMB",647:"IMB",642:"Australian Military Bank",645:"Auswide Bank",656:"Auswide Bank",646:"Maitland Mutual Building Society",650:"Newcastle Permanent Building Society",653:"Pioneer Permanent Building Society (division of Bank of Queensland)",654:"Queensland Country Credit Union",655:"The Rock",659:"G&C Mutual Bank",676:"Gateway Bank",70:"Indue",721:"Holiday Coast Credit Union",722:"Southern Cross Credit Union",723:"Bank of Heritage Isle",724:"MOVE",728:"Summerland Credit Union",777:"Police & Nurse",80:"Cuscal",670:"Cuscal",812:"Teachers Mutual Bank",813:"Capricornian",814:"Credit Union Australia",815:"Police Bank",817:"Warwick Credit Union",818:"Bank of Communications",819:"Industrial & Commercial Bank of China",824:"Sutherland Credit Union",825:"Big Sky Building Society",833:"Defence Bank",882:"Unity Bank",888:"China Construction Bank",90:"Australia Post",911:"Sumitomo Mitsui Banking Corporation",913:"State Street Bank & Trust Company",917:"Arab Bank Australia",918:"Mizuho Bank",922:"United Overseas Bank",923:"ING Bank",936:"ING Bank",931:"Mega International Commercial Bank",932:"Regional Australia Bank",939:"AMP Bank",941:"Delphi Bank (division of Bendigo and Adelaide Bank)",942:"Bank of Sydney",943:"Taiwan Business Bank",944:"Members Equity Bank",946:"UBS AG",951:"BOQ Specialist",969:"Tyro Payments"};var an=e("sss_prefill_smsf",function(){function e(e){n(this,e);this.mode="review";this.formState="pristine";this.isSubmitDisabled=true;this.eventTrackingService=lt.Instance;this.createSuperFundPrefillDeclinedDetail=function(e){return{fundType:"SMSF",isAbnValid:e.fundAbn.valid,isMemberFirstNamePresent:!Et(e.memberFirstName),isMemberLastNamePresent:!Et(e.memberFamilyName)}};this.createSuperFundPrefillViewedDetail=function(e){return{fundType:"SMSF",isAbnValid:e.fundAbn.valid,isMemberFirstNamePresent:!Et(e.memberFirstName),isMemberLastNamePresent:!Et(e.memberFamilyName)}}}e.prototype.componentDidLoad=function(){var e=this.createSuperFundPrefillViewedDetail(this.prefill);return this.eventTrackingService.TrackSuperFundPrefillViewedAsync(e)};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.prefill&&this.prefill.fundAbn.valid){this.initialiseComponent(this.prefill)}else{k.navigateInternally(this.history,F.PrefillInvalidSMSFPage)}return[2]}))}))};e.prototype.render=function(){var e=this;var t=[this.fundName.errorMessage,this.fundEsa.errorMessage,this.fundAddressLine1.errorMessage,this.fundAddressLine2.errorMessage,this.fundAddressCity.errorMessage,this.fundAddressPostcode.errorMessage,this.fundAddressState.errorMessage,this.memberLastName.errorMessage,this.memberGivenNames.errorMessage,this.bankAccountName.errorMessage,this.bankAccountBsb.errorMessage,this.bankAccountNumber.errorMessage].filter((function(e){return e!==null}));return r("div",null,r(Ft,null),r("div",{class:"flex flex-col items-center gap-8 mt-8 sm:mt-12"},r("div",{class:"flex max-w-[560px] flex-col items-start gap-6 p-6 border shadow-sm rounded-lg"},r("div",{class:"flex flex-col items-start gap-3 self-stretch"},r("div",{class:"self-stretch text-grey-900 text-lg not-italic font-bold leading-7"},"Your self-managed super fund (SMSF) details"),r("sss-prefill-warning-box",{class:"self-stretch",notificationList:["Make sure your Self-managed super fund (SMSF) is a registered fund before completing this step."]}),this.mode==="review"&&t.length>0&&r("sss-prefill-error-box",{class:"self-stretch",notificationList:t,withHeader:true}),this.mode==="review"&&r("div",{class:"flex flex-col gap-3 self-stretch mt-4"},r("sss-prefill-display-field",{field:this.fundName}),r("sss-prefill-display-field",{field:this.fundAbn}),r("sss-prefill-display-field",{field:this.fundEsa}),r("sss-prefill-display-field",{field:this.fundAddress}),r("sss-prefill-display-field",{field:this.memberLastName}),r("sss-prefill-display-field",{field:this.memberGivenNames}),r("div",{class:"mt-4 mb-2 text-gray-900 text-lg font-bold leading-7"},"Fund bank details"),r("sss-prefill-display-field",{field:this.bankAccountName}),r("sss-prefill-display-field",{field:this.bankAccountBsb}),this.bankName.isValid&&r("sss-prefill-display-field",{field:this.bankName}),r("sss-prefill-display-field",{field:this.bankAccountNumber})),this.mode==="review"&&r("sss-button",{testid:"edit-details-button",class:"self-stretch mt-3",fillWidth:true,variant:"secondary",promiseFn:function(){return e.setModeToEdit()}},r("div",{class:"flex flex-row gap-2"},r("div",{class:"text-sm not-italic font-medium leading-4"},"Edit details"),r("div",{class:"w-4 h-4 relative"},r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"currentColor"},r("path",{d:"M11.369 2.86865C11.9939 2.24381 13.0069 2.24381 13.6318 2.86865C14.2566 3.49349 14.2566 4.50656 13.6318 5.1314L12.9974 5.76571L10.7347 3.50297L11.369 2.86865Z"}),r("path",{d:"M9.60334 4.63434L2.90039 11.3373V13.6H5.16313L11.8661 6.89708L9.60334 4.63434Z"}))))),this.mode==="edit"&&r("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"w-full":true,"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t},onInput:function(t){return e.isSubmitDisabled=e.formHasMissingData()}},r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},this.fundName.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Dt.Input(this.formState==="validated"),required:true,"data-testid":this.fundName.testId,value:this.fundName.value,onInput:function(t){e.updateFundName(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.fundName.errorMessage))),kt(this.fundAbn.name,this.fundAbn.testId,this.fundAbn.value),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},this.fundEsa.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Dt.Input(this.formState==="validated"),required:true,minlength:"2","data-testid":this.fundEsa.testId,value:this.fundEsa.value,onInput:function(t){e.updateFundEsa(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.fundEsa.errorMessage))),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},"Fund address"),r("div",{class:"mt-1 rounded-md shadow-sm -space-y-px"},r("input",{placeholder:"Address line 1",type:"text",class:Object.assign(Object.assign({},Dt.Input(this.formState==="validated")),{"rounded-none rounded-t-md shadow-none border-b-0":true}),required:true,minlength:"2",name:"addressLine1",id:"addressLine1","data-testid":this.fundAddressLine1.testId,value:this.fundAddressLine1.value,onInput:function(t){e.updateAddressLine1(t.target.value)}}),r("input",{placeholder:"Address line 2 (optional)",type:"text",class:Object.assign(Object.assign({},Dt.Input(this.formState==="validated")),{"rounded-none shadow-none border-b-0":true}),"data-testid":this.fundAddressLine2.testId,value:this.fundAddressLine2.value,onInput:function(t){return e.updateAddressLine2(t.target.value)}}),r("input",{placeholder:"City/suburb",type:"text",class:Object.assign(Object.assign({},Dt.Input(this.formState==="validated")),{"rounded-none shadow-none border-b-0":true}),required:true,"data-testid":this.fundAddressCity.testId,value:this.fundAddressCity.value,onInput:function(t){e.updateAddressCity(t.target.value)}}),r("div",{class:"flex -space-x-px"},r("div",{class:"w-1/2 flex-1 min-w-0"},r("input",{placeholder:"Postcode",type:"text",required:true,class:Object.assign(Object.assign({},Dt.Input(this.formState==="validated")),{"rounded-none rounded-bl-md shadow-none border-r-0":true}),name:"postcode",minlength:"4",maxlength:"4",pattern:"[0-9]{4}",id:"postcode","data-testid":this.fundAddressPostcode.testId,value:this.fundAddressPostcode.value,inputmode:"numeric",onInput:function(t){e.updateAddressPostcode(t.target.value)}})),r("div",{class:"flex-1 min-w-0"},r("select",{class:Object.assign(Object.assign({},Dt.Input(this.formState==="validated")),{"rounded-none rounded-br-md shadow-none":true,"text-gray-500":this.formState!=="validated"}),name:"state",required:true,"data-testid":this.fundAddressState.testId,id:"state",onInput:function(t){e.updateAddressState(t.target.value)}},r("option",{disabled:true,selected:this.fundAddressState.value!==undefined,value:""},"State"),this.fundAddressState.options.map((function(t){return r("option",{value:t.value,selected:e.fundAddressState.value===t.value},t.label)})))))),this.formState==="validated"&&r("div",{class:"mt-2 text-sm text-red-600"},this.fundAddressLine1.errorMessage||this.fundAddressLine1.errorMessage||this.fundAddressCity.errorMessage||this.fundAddressPostcode.errorMessage||this.fundAddressState.errorMessage)),r("div",{class:"flex gap-x-4 flex-col sm:flex-row"},r("div",{class:"mt-3 w-full sm:w-1/2"},r("label",{class:"text-sm font-medium text-gray-700"},this.memberGivenNames.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Dt.Input(this.formState==="validated"),required:true,"data-testid":this.memberGivenNames.testId,value:this.memberGivenNames.value,onInput:function(t){e.updateMemberGivenNames(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.memberGivenNames.errorMessage))),r("div",{class:"mt-3 w-full sm:w-1/2"},r("label",{class:"text-sm font-medium text-gray-700"},this.memberLastName.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Dt.Input(this.formState==="validated"),required:true,"data-testid":this.memberLastName.testId,value:this.memberLastName.value,onInput:function(t){e.updateMemberLastName(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.memberLastName.errorMessage)))),r("div",{class:"mt-6 text-gray-900 text-lg font-bold leading-7"},"Fund bank details"),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},this.bankAccountName.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Dt.Input(this.formState==="validated"),required:true,"data-testid":this.bankAccountName.testId,value:this.bankAccountName.value,onInput:function(t){e.updateBankAccountName(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.bankAccountName.errorMessage))),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},this.bankAccountBsb.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Dt.Input(this.formState==="validated"),required:true,"data-testid":this.bankAccountBsb.testId,value:this.bankAccountBsb.value,onInput:function(t){var n=t.target.value;e.updateBankName(n);e.updateBankAccountBsb(n)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.bankAccountBsb.errorMessage))),this.bankName.isValid&&kt(this.bankName.name,this.bankName.testId,this.bankName.value),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},this.bankAccountNumber.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Dt.Input(this.formState==="validated"),required:true,"data-testid":this.bankAccountNumber.testId,value:this.bankAccountNumber.value,onInput:function(t){e.updateBankAccountNumber(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.bankAccountNumber.errorMessage)))))),r("div",{class:"flex w-full sm:w-80 max-w-[560px] flex-col items-start gap-4"},r("sss-button",{testid:"continue-button",class:"self-stretch",fillWidth:true,variant:"primary",disabled:this.isSubmitDisabled,promiseFn:function(){return e.handleSubmitForm()}},"Continue"),r("sss-button",{testid:"make-another-nomination-button",class:"self-stretch",fillWidth:true,variant:"secondary",promiseFn:function(){return e.handleFundNominationDeclined()}},"Make another nomination"))))};e.prototype.isFormValid=function(){return this.fundName.isValid&&this.fundAbn.isValid&&this.fundEsa.isValid&&this.fundAddressLine1.isValid&&this.fundAddressLine2.isValid&&this.fundAddressCity.isValid&&this.fundAddressPostcode.isValid&&this.fundAddressState.isValid&&this.memberGivenNames.isValid&&this.memberLastName.isValid&&this.bankAccountName.isValid&&this.bankAccountBsb.isValid&&this.bankAccountNumber.isValid};e.prototype.formHasMissingData=function(){return this.fundName.isEmpty||this.fundAbn.isEmpty||this.fundEsa.isEmpty||this.fundAddressLine1.isEmpty||this.fundAddressCity.isEmpty||this.fundAddressPostcode.isEmpty||this.fundAddressState.isEmpty||this.memberGivenNames.isEmpty||this.memberLastName.isEmpty||this.bankAccountName.isEmpty||this.bankAccountBsb.isEmpty||this.bankAccountNumber.isEmpty};e.prototype.setModeToEdit=function(){this.mode="edit";return Promise.resolve()};e.prototype.updateFundName=function(e){this.fundName=new Ut(e.trim())};e.prototype.updateFundEsa=function(e){this.fundEsa=new Ht(e.trim())};e.prototype.updateAddressLine1=function(e){this.fundAddressLine1=new zt(e.trim())};e.prototype.updateAddressLine2=function(e){this.fundAddressLine2=new Wt(e.trim())};e.prototype.updateAddressCity=function(e){this.fundAddressCity=new Gt(e.trim())};e.prototype.updateAddressPostcode=function(e){this.fundAddressPostcode=new Kt(e.trim())};e.prototype.updateAddressState=function(e){this.fundAddressState=new Xt(e.trim())};e.prototype.updateBankAccountName=function(e){this.bankAccountName=new Yt(e.trim())};e.prototype.updateBankAccountBsb=function(e){this.bankAccountBsb=new Zt(e.trim())};e.prototype.updateBankAccountNumber=function(e){this.bankAccountNumber=new Qt(e.trim())};e.prototype.updateMemberGivenNames=function(e){this.memberGivenNames=new jt(e)};e.prototype.updateMemberLastName=function(e){this.memberLastName=new Vt(e.trim())};e.prototype.filterDigits=function(e){return e.replace(/[^0-9]/g,"")};e.prototype.tryGetBankName=function(e){if(e==null)return null;var t=this.filterDigits(e);var n=t.substring(0,2);var r=t.substring(0,3);var i=rn[n];var a=rn[r];if(i)return i;if(a)return a;return null};e.prototype.updateBankName=function(e){var t=this.tryGetBankName(e);this.bankName=new $t(t,t!=null)};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){this.formState="validated";if(!this.isFormValid()){return[2]}if(this.mode==="edit"&&!this.formElement.checkValidity()){return[2]}k.navigateInternallyToStandardChoice({history:this.history,fundName:"Self-managed super fund",fundDetails:{type:"smsf",fundName:this.fundName.value,fundEsa:this.fundEsa.value},handleSubmitFn:function(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:e=Object.assign({smsfChoice:{abn:this.fundAbn.value,fundName:this.fundName.value,fundAddress:{addressLine1:this.fundAddressLine1.value,addressLine2:this.fundAddressLine2.value.trim()===""?null:this.fundAddressLine2.value.trim(),city:this.fundAddressCity.value,state:this.fundAddressState.value,postcode:this.fundAddressPostcode.value},bsb:this.bankAccountBsb.value,bankAccountName:this.bankAccountName.value,bankAccountNumber:this.bankAccountNumber.value,electronicServiceAddress:this.fundEsa.value,memberFirstName:this.memberGivenNames.value,memberFamilyName:this.memberLastName.value},standardChoiceFormSignature:t},E.promotedFundsConfig);return[4,R.submitSelfManagedFundChoiceAsync(e)];case 1:n.sent();return[2]}}))}))}});return[2]}))}))};e.prototype.initialiseComponent=function(e){this.fundName=new Ut(e.fundName);this.fundAbn=new qt(e.fundAbn.value,e.fundAbn.valid);this.fundEsa=new Ht(e.electronicServiceAddress);this.fundAddressLine1=new zt(e.addressLine1);this.fundAddressLine2=new Wt(e.addressLine2);this.fundAddressCity=new Gt(e.addressCity);this.fundAddressPostcode=new Kt(e.addressPostcode);this.fundAddressState=new Xt(e.addressState);this.fundAddress=new Jt(this.fundAddressLine1,this.fundAddressLine2,this.fundAddressCity,this.fundAddressState,this.fundAddressPostcode);this.memberGivenNames=new jt(e.memberFirstName);this.memberLastName=new Vt(e.memberFamilyName);this.bankAccountName=new Yt(e.bankAccountName);var t=this.tryGetBankName(e.bankAccountBsb);this.bankName=new $t(t,t!=null);this.bankAccountBsb=new Zt(e.bankAccountBsb);this.bankAccountNumber=new Qt(e.bankAccountNumber);this.isSubmitDisabled=this.formHasMissingData()};e.prototype.handleFundNominationDeclined=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this.createSuperFundPrefillDeclinedDetail(this.prefill);return[4,this.eventTrackingService.TrackSuperFundPrefillDeclinedAsync(e)];case 1:t.sent();return[2,k.navigateInternally(this.history,F.ChoicePage)]}}))}))};return e}());var sn=e("sss_prefill_warning_box",function(){function e(e){n(this,e)}e.prototype.render=function(){var e=this;var t=function(){return r("div",{class:"w-5 h-5"},r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},r("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.25706 3.09882C9.02167 1.73952 10.9788 1.73952 11.7434 3.09882L17.3237 13.0194C18.0736 14.3526 17.1102 15.9999 15.5805 15.9999H4.4199C2.89025 15.9999 1.92682 14.3526 2.67675 13.0194L8.25706 3.09882ZM11.0001 13C11.0001 13.5523 10.5524 14 10.0001 14C9.44784 14 9.00012 13.5523 9.00012 13C9.00012 12.4477 9.44784 12 10.0001 12C10.5524 12 11.0001 12.4477 11.0001 13ZM10.0001 5C9.44784 5 9.00012 5.44772 9.00012 6V9C9.00012 9.55228 9.44784 10 10.0001 10C10.5524 10 11.0001 9.55228 11.0001 9V6C11.0001 5.44772 10.5524 5 10.0001 5Z",fill:"#FBBF24"})))};return r("div",{class:"flex items-start self-stretch rounded-md bg-yellow-50"},r("div",{class:"w-1 self-stretch bg-yellow-400"}),r("div",{class:"flex items-start gap-3 flex-[1_0_0] p-4"},r(t,null),r("div",{class:"flex flex-col items-start gap-2 flex-[1_0_0]"},r("div",{class:"flex flex-col items-start gap-1 self-stretch"},this.notificationList.map((function(t){return r("div",{class:"flex items-start gap-[7px] self-stretch pl-0"},e.notificationList.length>1&&r("div",{class:"pt-1.5 justify-center items-center flex"},r("div",{class:"w-1.5 h-1.5 bg-yellow-700 rounded-full"})),r("div",{class:"flex-[1_0_0] text-sm not-italic font-normal leading-5 text-yellow-700"},t))}))))))};return e}());var on=e("sss_standard_choice_form",function(){function e(e){n(this,e);this.standardChoiceFormSignature="";this.isSubmitDisabled=true;this.eventTrackingService=lt.Instance;this.ignorePopState=function(){return window.history.pushState(null,"",null)}}e.prototype.connectedCallback=function(){this.ignorePopState();window.addEventListener("popstate",this.ignorePopState)};e.prototype.disconnectedCallback=function(){window.removeEventListener("popstate",this.ignorePopState)};e.prototype.render=function(){var e=this;return r(s,null,r("div",{class:"text-2xl sm:text-3xl font-bold text-center"},"Confirm your super choice"),r("div",{class:"sm:text-lg text-gray-600 max-w-800 mt-4 text-center leading-7 sm:leading-8"},"Your authorisation is required to complete your super choice by signing the standard choice form, which informs your employer of your choice of fund."),r("div",{class:"flex justify-center mt-8 sm:mt-12"},r("div",{class:"max-w-560"},r("div",{class:"p-4 sm:p-6 border shadow-sm rounded-lg flex flex-col sm:flex-row"},this.renderLogo(),r("div",{class:"flex justify-between w-full"},r("div",null,r("div",{class:"text-xs font-semibold text-gray-500 uppercase"},"Nominated fund"),r("div",{class:"text-sm mt-2"},q.fundName)),r("div",{class:"grid content-center ml-4"},r("sss-button",{testid:"change-fund-button",size:"xs",variant:"secondary",promiseFn:function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.trackChangeRequestedAsync()];case 1:e.sent();k.navigateInternally(this.history,F.ChoicePage);return[2]}}))}))}},"Change")))),r("div",{class:"mt-4 p-4 sm:p-6 border shadow-sm rounded-lg"},r("div",{class:"sm:text-lg font-bold"},"Superannuation Standard Choice Form"),r("div",{class:"bg-blue-50 border-l-4 border-blue-400 p-4 mt-3"},r("div",{class:"flex"},r("div",{class:"flex-shrink-0"},r("img",{class:"h-5 w-5",src:a("assets/icon-information-circle.svg")})),r("div",{class:"ml-2"},r("p",{class:"text-sm text-blue-800 leading-5"},"Applying your full name in the text field below is the same as applying your written signature and is legally binding.")))),r("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"mt-3":true,"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t},onInput:function(t){return e.isSubmitDisabled=!e.formElement.checkValidity()}},r("label",{class:"text-sm font-medium text-gray-700"},"Type your full name"),r("input",{"data-testid":"standard-choice-form-signature-input",type:"text",autocomplete:"off",class:{"shadow-sm focus:ring-primary-focus focus:border-primary-focus w-full text-base sm:text-sm border-gray-300 rounded-md mt-1":true,"invalid:border-red-300 invalid:text-red-900 invalid:focus:ring-red-500 invalid:focus:border-red-500":this.formState==="validated"},required:true,minlength:"2",name:"standardChoiceFormSignature",id:"standardChoiceFormSignature",value:this.standardChoiceFormSignature,onInput:function(t){return e.standardChoiceFormSignature=t.target.value}}),r("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Type your full name"),r("div",{class:"mt-6"},r("sss-button",{testid:"confirm-and-continue-button",fillWidth:true,promiseFn:function(){return e.handleSubmitForm()},disabled:this.isSubmitDisabled},"Confirm and continue")))))))};e.prototype.renderLogo=function(){return};e.prototype.trackChangeRequestedAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:e={promotedFundsShown:E.promotedFunds,defaultFundUsiSet:H(E.defaultFundUsi)};t=q.fundDetails.type;switch(t){case"default":return[3,1];case"myOwnFund":return[3,3];case"smsf":return[3,5];case"promoted":return[3,7];case"promotedDefault":return[3,9];case"promotedDefaultWithJoin":return[3,11];case"null":return[3,13]}return[3,14];case 1:return[4,this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({DefaultFund:Object.assign(Object.assign({},q.fundDetails),e)})];case 2:n.sent();return[3,14];case 3:return[4,this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({MyOwnFund:Object.assign(Object.assign({},q.fundDetails),e)})];case 4:n.sent();return[3,14];case 5:return[4,this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({Smsf:Object.assign(Object.assign({},q.fundDetails),e)})];case 6:n.sent();return[3,14];case 7:return[4,this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({PromotedFund:Object.assign(Object.assign({},q.fundDetails),e)})];case 8:n.sent();return[3,14];case 9:return[4,this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({PromotedDefaultFund:Object.assign(Object.assign({},q.fundDetails),e)})];case 10:n.sent();return[3,14];case 11:return[4,this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({PromotedDefaultFundWithJoin:Object.assign(Object.assign({},q.fundDetails),e)})];case 12:n.sent();return[3,14];case 13:throw"standardChoiceFormState.fundDetails was not set";case 14:return[2]}}))}))};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.formState="validated";if(!this.formElement.checkValidity())return[3,2];return[4,q.handleSubmitFn(this.standardChoiceFormSignature.trim())];case 1:e.sent();E.markSuperSelectionAsSubmitted();e.label=2;case 2:return[2]}}))}))};return e}());var un=e("sss_success",function(){function e(e){n(this,e);this.ignorePopState=function(){return window.history.pushState(null,"",null)}}e.prototype.connectedCallback=function(){this.ignorePopState();window.addEventListener("popstate",this.ignorePopState)};e.prototype.disconnectedCallback=function(){window.removeEventListener("popstate",this.ignorePopState)};e.prototype.render=function(){var e=function(){return r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",class:"fill-primary-base"},r("path",{d:"M443.3 100.7C449.6 106.9 449.6 117.1 443.3 123.3L171.3 395.3C165.1 401.6 154.9 401.6 148.7 395.3L4.686 251.3C-1.562 245.1-1.562 234.9 4.686 228.7C10.93 222.4 21.06 222.4 27.31 228.7L160 361.4L420.7 100.7C426.9 94.44 437.1 94.44 443.3 100.7H443.3z"}))};return r(s,{class:"text-center"},r("div",{class:"flex justify-center"},r("div",{class:"relative"},r("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),r("div",{class:"h-8 w-8 absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2"},r(e,null)))),r("h3",{class:"text-2xl leading-8 font-bold mt-4"},"Your super choice has been submitted"),r("p",{class:"mt-4 text-center text-gray-600 leading-7 max-w-560 mx-auto"},"Your superannuation details have been updated successfully and will be submitted to your employer."),r("div",{class:"flex justify-center mt-8"},r("div",{class:"max-w-[200px] w-full"},r("sss-button",{testid:"continue-button",size:"xl",fillWidth:true,onClick:this.handleContinueButtonClick},r("span",null,"Continue")))))};e.prototype.handleContinueButtonClick=function(e){E.completeSuperSelectionFlow()};return e}());var ln=function(){function e(){}e.prototype.trackClickPromotedTileAsync=function(e){return L.clickPromotedTileAsync(e)};return e}();var cn=new ln;var dn=function(){if(E.superCampaignState!=undefined)return E.superCampaignState;throw new Error("Super campaign state has not been initialized")};var fn=function(e){var t=e.sender,n=e.placementId,r=e.fundId,i=e.fundUsi,a=e.fundName,s=e.fundType;return __awaiter($,void 0,void 0,(function(){var e,o,u,l,c;return __generator(this,(function(d){switch(d.label){case 0:if(!(t==="super-campaign"||t==="featured-funds"))return[3,6];e=dn().PromotedFundIds;o=M.toUndefined(E.defaultFundUsi);l=(u=Promise).all;if(!(s==="promoted-default"))return[3,2];return[4,lt.Instance.TrackPromotedDefaultSuperFundDetailViewedAsync({fundUsi:i!==null&&i!==void 0?i:"",fundName:a,promotedFundId:r,promotedFundsShown:e,defaultFundUsiSet:o,superCampaignEnabled:true,placementId:n})];case 1:c=d.sent();return[3,4];case 2:return[4,lt.Instance.TrackPromotedSuperFundDetailViewedAsync({fundUsi:i!==null&&i!==void 0?i:undefined,fundName:a,promotedFundId:r,promotedFundsShown:e,defaultFundUsiSet:o,superCampaignEnabled:true,placementId:n})];case 3:c=d.sent();d.label=4;case 4:return[4,l.apply(u,[[c,cn.trackClickPromotedTileAsync(s==="promoted-default"?{promotedDefault:{fundId:r,placementId:n}}:{promoted:{fundId:r,placementId:n}})]])];case 5:d.sent();d.label=6;case 6:return[2]}}))}))};var pn="function";var hn="object";var mn="undefined";var vn="prototype";var gn="hasOwnProperty";function yn(){if(typeof globalThis!==mn&&globalThis){return globalThis}if(typeof self!==mn&&self){return self}if(typeof window!==mn&&window){return window}if(typeof global!==mn&&global){return global}return null}function bn(e){var t=Object["create"];if(t){return t(e)}if(e==null){return{}}var n=typeof e;if(n!==hn&&n!==pn){throw new TypeError("Object prototype may only be an Object:"+e)}function r(){}r[vn]=e;return new r}function wn(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t){if(Object[vn][gn].call(t,i)){e[i]=t[i]}}}return e}var xn=function(e,t){xn=Object["setPrototypeOf"]||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t){if(t[gn](n)){e[n]=t[n]}}};return xn(e,t)};function Sn(e,t){xn(e,t);function n(){this.constructor=e}e[vn]=t===null?bn(t):(n[vn]=t[vn],new n)}var Cn=yn()||{};(function(e,t,n){if(!e.__assign){e.__assign=Object.assign||t}if(!e.__extends){e.__extends=n}})(Cn,wn,Sn);if(!__assign){__assign=Cn.__assign}if(!__extends){__extends=Cn.__extends}var _n={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5};var In=mn;var Nn=hn;var An=vn;var Tn=pn;var En="window";var kn="document";var Fn="navigator";var Dn="history";var Pn="location";var Ln="console";var Mn="performance";var On="JSON";var Rn="crypto";var Un="msCrypto";var Bn="ReactNative";var Vn=yn;function jn(e){var t=Vn();if(t&&t[e]){return t[e]}if(e===En&&qn()){return window}return null}function qn(){return Boolean(typeof window===Nn&&window)}function Hn(){if(qn()){return window}return jn(En)}function zn(){return Boolean(typeof document===Nn&&document)}function Wn(){if(zn()){return document}return jn(kn)}function Gn(){return Boolean(typeof navigator===Nn&&navigator)}function Kn(){if(Gn()){return navigator}return jn(Fn)}function Xn(){return Boolean(typeof history===Nn&&history)}function Jn(){if(Xn()){return history}return jn(Dn)}function Yn(){if(typeof location===Nn&&location){return location}return jn(Pn)}function $n(){if(typeof console!==In){return console}return jn(Ln)}function Zn(){return jn(Mn)}function Qn(){return Boolean(typeof JSON===Nn&&JSON||jn(On)!==null)}function er(){if(Qn()){return JSON||jn(On)}return null}function tr(){return jn(Rn)}function nr(){return jn(Un)}function rr(){var e=Kn();if(e&&e.product){return e.product===Bn}return false}var ir="on";var ar="attachEvent";var sr="addEventListener";var or="detachEvent";var ur="removeEventListener";var lr=4294967296;var cr=4294967295;var dr=null;var fr=false;var pr=123456789;var hr=987654321;function mr(e){if(e<0){e>>>=0}pr=123456789+e&cr;hr=987654321-e&cr;fr=true}function vr(){mr(Math.random()*lr^(new Date).getTime())}function gr(e,t){return typeof e===t}function yr(e){return gr(e,mn)||e===undefined}function br(e){return yr(e)||e===null}function wr(e,t){return e&&Object[vn].hasOwnProperty.call(e,t)}function xr(e){return gr(e,hn)}function Sr(e){return gr(e,pn)}function Cr(e,t,n,r){if(r===void 0){r=false}var i=false;if(!br(e)){try{if(!br(e[sr])){e[sr](t,n,r);i=true}else if(!br(e[ar])){e[ar](ir+t,n);i=true}}catch(e){}}return i}function _r(e,t,n,r){if(r===void 0){r=false}if(!br(e)){try{if(!br(e[ur])){e[ur](t,n,r)}else if(!br(e[or])){e[or](ir+t,n)}}catch(e){}}}function Ir(e){var t=e;var n=/([^\w\d_$])/g;if(n.test(e)){t=e.replace(n,"_")}return t}function Nr(e,t){if(e&&xr(e)){for(var n in e){if(wr(e,n)){t.call(e,n,e[n])}}}}var Ar=function(){function e(){}e.isDate=function(e){return Object[vn].toString.call(e)==="[object Date]"};e.isArray=function(e){return Object[vn].toString.call(e)==="[object Array]"};e.isError=function(e){return Object[vn].toString.call(e)==="[object Error]"};e.isString=function(e){return gr(e,"string")};e.isNumber=function(e){return gr(e,"number")};e.isBoolean=function(e){return gr(e,"boolean")};e.disableCookies=function(){e._canUseCookies=false};e.newGuid=function(){function t(){return e.randomValue(15)}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Tr,(function(e){var n=t()|0,r=e==="x"?n:n&3|8;return r.toString(16)}))};e.toISOString=function(t){if(e.isDate(t)){var n=function(e){var t=String(e);if(t.length===1){t="0"+t}return t};return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())+"."+String((t.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}};e.arrForEach=function(e,t,n){var r=e.length;for(var i=0;i<r;i++){if(i in e){t.call(n||e,e[i],i,e)}}};e.arrIndexOf=function(e,t,n){var r=e.length;var i=n||0;for(var a=Math.max(i>=0?i:r-Math.abs(i),0);a<r;a++){if(a in e&&e[a]===t){return a}}return-1};e.arrMap=function(e,t,n){var r=e.length;var i=n||e;var a=new Array(r);for(var s=0;s<r;s++){if(s in e){a[s]=t.call(i,e[s],e)}}return a};e.arrReduce=function(e,t,n){var r=e.length;var i=0;var a;if(arguments.length>=3){a=arguments[2]}else{while(i<r&&!(i in e)){i++}a=e[i++]}while(i<r){if(i in e){a=t(a,e[i],i,e)}i++}return a};e.strTrim=function(t){if(!e.isString(t)){return t}return t.replace(/^\s+|\s+$/g,"")};e.objKeys=function(e){var t=!{toString:null}.propertyIsEnumerable("toString");if(!Sr(e)&&(!xr(e)||e===null)){throw new TypeError("objKeys called on non-object")}var n=[];for(var r in e){if(wr(e,r)){n.push(r)}}if(t){var i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];var a=i.length;for(var s=0;s<a;s++){if(wr(e,i[s])){n.push(i[s])}}}return n};e.objDefineAccessors=function(e,t,n,r){var i=Object["defineProperty"];if(i){try{var a={enumerable:true,configurable:true};if(n){a.get=n}if(r){a.set=r}i(e,t,a);return true}catch(e){}}return false};e.addEventHandler=function(e,t){var n=false;var r=Hn();if(r){n=Cr(r,e,t);n=Cr(r["body"],e,t)||n}var i=Wn();if(i){n=Er.Attach(i,e,t)||n}return n};e.dateNow=function(){var e=Date;if(e.now){return e.now()}return(new e).getTime()};e.perfNow=function(){var t=Zn();if(t&&t.now){return t.now()}return e.dateNow()};e.newId=function(t){if(t===void 0){t=22}var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var r=e.random32()>>>0;var i=0;var a="";while(a.length<t){i++;a+=n.charAt(r&63);r>>>=6;if(i===5){r=(e.random32()<<2&4294967295|r&3)>>>0;i=0}}return a};e.isIE=function(){if(dr===null){var e=Kn()||{};var t=(e.userAgent||"").toLowerCase();dr=t.indexOf("msie")!==-1||t.indexOf("trident/")!==-1}return dr};e.randomValue=function(t){if(t>0){return Math.floor(e.random32()/cr*(t+1))>>>0}return 0};e.random32=function(t){var n;var r=tr()||nr();if(r&&r.getRandomValues){n=r.getRandomValues(new Uint32Array(1))[0]&cr}else if(e.isIE()){if(!fr){vr()}n=e.mwcRandom32()&cr}else{n=Math.floor(lr*Math.random()|0)}if(!t){n>>>=0}return n};e.mwcRandomSeed=function(e){if(!e){vr()}else{mr(e)}};e.mwcRandom32=function(e){hr=36969*(hr&65535)+(hr>>16)&cr;pr=18e3*(pr&65535)+(pr>>16)&cr;var t=(hr<<16)+(pr&65535)>>>0&cr|0;if(!e){t>>>=0}return t};e.generateW3CId=function(){var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];var n="",r;for(var i=0;i<4;i++){r=e.random32();n+=t[r&15]+t[r>>4&15]+t[r>>8&15]+t[r>>12&15]+t[r>>16&15]+t[r>>20&15]+t[r>>24&15]+t[r>>28&15]}var a=t[8+(e.random32()&3)|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+a+n.substr(16,3)+n.substr(19,12)};e.isTypeof=gr;e.isUndefined=yr;e.isNullOrUndefined=br;e.hasOwnProperty=wr;e.isFunction=Sr;e.isObject=xr;e.objCreate=bn;return e}();var Tr=/[xy]/g;var Er=function(){function e(){}e.Attach=Cr;e.AttachEvent=Cr;e.Detach=_r;e.DetachEvent=_r;return e}();var kr;(function(e){e[e["CRITICAL"]=1]="CRITICAL";e[e["WARNING"]=2]="WARNING"})(kr||(kr={}));var Fr={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103};
2
- /*!
3
- * Microsoft Dynamic Proto Utility, 1.1.0
4
- * Copyright (c) Microsoft and contributors. All rights reserved.
5
- */var Dr="constructor";var Pr="prototype";var Lr="function";var Mr="_dynInstFuncs";var Or="_isDynProxy";var Rr="_dynClass";var Ur="_dynCls$";var Br="_dynInstChk";var Vr=Br;var jr="_dfOpts";var qr="_unknown_";var Hr="__proto__";var zr="useBaseInst";var Wr="setInstFuncs";var Gr=Object["getPrototypeOf"];var Kr=0;function Xr(e,t){return e&&Object[Pr].hasOwnProperty.call(e,t)}function Jr(e){return typeof e===Lr}function Yr(e){return e&&(e===Object[Pr]||e===Array[Pr])}function $r(e){return Yr(e)||e===Function[Pr]}function Zr(e){if(e){if(Gr){return Gr(e)}var t=e[Hr]||e[Pr]||e[Dr];if(t){return t}}return null}function Qr(e,t,n){return t!==Dr&&Jr(e[t])&&(n||Xr(e,t))}function ei(e){throw new TypeError("DynamicProto: "+e)}function ti(e){var t={};for(var n in e){if(!t[n]&&Qr(e,n,false)){t[n]=e[n]}}return t}function ni(e,t){for(var n=e.length-1;n>=0;n--){if(e[n]===t){return true}}return false}function ri(e,t,n,r){function i(e,t,n){var i=t[s];if(i[Or]&&r){var a=e[Mr]||{};if(a[Vr]!==false){i=(a[t[Rr]]||{})[n]||i}}return function(){return i.apply(e,arguments)}}var a={};for(var s in n){a[s]=i(t,n,s)}var o=Zr(e);var u=[];while(o&&!$r(o)&&!ni(u,o)){for(var s in o){if(!a[s]&&Qr(o,s,!Gr)){a[s]=i(t,o,s)}}u.push(o);o=Zr(o)}return a}function ii(e,t,n,r){var i=null;if(e&&Xr(n,Rr)){var a=e[Mr]||{};i=(a[n[Rr]]||{})[t];if(!i){ei("Missing ["+t+"] "+Lr)}if(!i[Br]&&a[Vr]!==false){var s=!Xr(e,t);var o=Zr(e);var u=[];while(s&&o&&!$r(o)&&!ni(u,o)){var l=o[t];if(l){s=l===r;break}u.push(o);o=Zr(o)}try{if(s){e[t]=i}i[Br]=1}catch(e){a[Vr]=false}}}return i}function ai(e,t,n){var r=t[e];if(r===n){r=Zr(t)[e]}if(!Jr(r)){ei("["+e+"] is not a "+Lr)}return r}function si(e,t,n,r,i){function a(e,t){var n=function(){var r=ii(this,t,e,n)||ai(t,e,n);return r.apply(this,arguments)};n[Or]=1;return n}if(!Yr(e)){var s=n[Mr]=n[Mr]||{};var o=s[t]=s[t]||{};if(s[Vr]!==false){s[Vr]=!!i}for(var u in n){if(Qr(n,u,false)&&n[u]!==r[u]){o[u]=n[u];delete n[u];if(!Xr(e,u)||e[u]&&!e[u][Or]){e[u]=a(e,u)}}}}}function oi(e,t){var n=Zr(t);while(n&&!$r(n)){if(n===e){return true}n=Zr(n)}return false}function ui(e,t){if(Xr(e,Pr)){return e.name||t||qr}return((e||{})[Dr]||{}).name||t||qr}function li(e,t,n,r){if(!Xr(e,Pr)){ei("theClass is an invalid class definition.")}var i=e[Pr];if(!oi(i,t)){ei("["+ui(e)+"] is not in class hierarchy of ["+ui(t)+"]")}var a=null;if(Xr(i,Rr)){a=i[Rr]}else{a=Ur+ui(e,"_")+"$"+Kr;Kr++;i[Rr]=a}var s=li[jr];var o=!!s[zr];if(o&&r&&r[zr]!==undefined){o=!!r[zr]}var u=ti(t);var l=ri(i,t,u,o);n(t,l);var c=!!Gr&&!!s[Wr];if(c&&r){c=!!r[Wr]}si(i,a,t,u,c!==false)}var ci={setInstFuncs:true,useBaseInst:true};li[jr]=ci;var di="AI (Internal): ";var fi="AI: ";var pi="AITR_";function hi(e){if(e){return'"'+e.replace(/\"/g,"")+'"'}return""}var mi=function(){function e(e,t,n,r){if(n===void 0){n=false}var i=this;i.messageId=e;i.message=(n?fi:di)+e;var a="";if(Qn()){a=er().stringify(r)}var s=(t?" message:"+hi(t):"")+(r?" props:"+hi(a):"");i.message+=s}e.dataType="MessageData";return e}();var vi=function(){function e(t){this.identifier="DiagnosticLogger";this.queue=[];var n=0;var r={};li(e,this,(function(e){var i=Ar.isNullOrUndefined;var a=Ar.isUndefined;var s=Ar.isFunction;if(i(t)){t={}}e.consoleLoggingLevel=function(){return o("loggingLevelConsole",0)};e.telemetryLoggingLevel=function(){return o("loggingLevelTelemetry",1)};e.maxInternalMessageLimit=function(){return o("maxMessageLimit",25)};e.enableDebugExceptions=function(){return o("enableDebugExceptions",false)};e.throwInternal=function(t,n,i,s,o){if(o===void 0){o=false}var u=new mi(n,i,o,s);if(e.enableDebugExceptions()){throw u}else{if(!a(u)&&!!u){if(!a(u.message)){if(o){var l=+u.messageId;if(!r[l]&&e.consoleLoggingLevel()>=kr.WARNING){e.warnToConsole(u.message);r[l]=true}}else{if(e.consoleLoggingLevel()>=kr.WARNING){e.warnToConsole(u.message)}}e.logInternalMessage(t,u)}}}};e.warnToConsole=function(e){var t=$n();if(!!t){var n="log";if(t.warn){n="warn"}if(s(t[n])){t[n](e)}}};e.resetInternalMessageCount=function(){n=0;r={}};e.logInternalMessage=function(t,i){if(u()){return}var a=true;var s=pi+i.messageId;if(r[s]){a=false}else{r[s]=true}if(a){if(t<=e.telemetryLoggingLevel()){e.queue.push(i);n++}if(n===e.maxInternalMessageLimit()){var o="Internal events throttle limit per PageView reached for this app.";var l=new mi(Fr.MessageLimitPerPVExceeded,o,false);e.queue.push(l);e.warnToConsole(o)}}};function o(e,n){var r=t[e];if(!i(r)){return r}return n}function u(){return n>=e.maxInternalMessageLimit()}}))}e.prototype.enableDebugExceptions=function(){return false};e.prototype.consoleLoggingLevel=function(){return 0};e.prototype.telemetryLoggingLevel=function(){return 1};e.prototype.maxInternalMessageLimit=function(){return 25};e.prototype.throwInternal=function(e,t,n,r,i){};e.prototype.warnToConsole=function(e){};e.prototype.resetInternalMessageCount=function(){};e.prototype.logInternalMessage=function(e,t){};return e}();var gi="ctx";var yi=function(){function e(t,n,r){var i=this;var a=false;i.start=Ar.dateNow();i.name=t;i.isAsync=r;i.isChildEvt=function(){return false};if(Ar.isFunction(n)){var s;a=Ar.objDefineAccessors(i,"payload",(function(){if(!s&&Ar.isFunction(n)){s=n();n=null}return s}))}i.getCtx=function(t){if(t){if(t===e.ParentContextKey||t===e.ChildrenContextKey){return i[t]}return(i[gi]||{})[t]}return null};i.setCtx=function(t,n){if(t){if(t===e.ParentContextKey){if(!i[t]){i.isChildEvt=function(){return true}}i[t]=n}else if(t===e.ChildrenContextKey){i[t]=n}else{var r=i[gi]=i[gi]||{};r[t]=n}}};i.complete=function(){var t=0;var r=i.getCtx(e.ChildrenContextKey);if(Ar.isArray(r)){for(var s=0;s<r.length;s++){var o=r[s];if(o){t+=o.time}}}i.time=Ar.dateNow()-i.start;i.exTime=i.time-t;i.complete=function(){};if(!a&&Ar.isFunction(n)){i.payload=n()}}}e.ParentContextKey="parent";e.ChildrenContextKey="childEvts";return e}();var bi=function(){function e(t){this.ctx={};li(e,this,(function(e){e.create=function(e,t,n){return new yi(e,t,n)};e.fire=function(e){if(e){e.complete();if(t){t.perfEvent(e)}}};e.setCtx=function(t,n){if(t){var r=e[gi]=e[gi]||{};r[t]=n}};e.getCtx=function(t){return(e[gi]||{})[t]}}))}e.prototype.create=function(e,t,n){return null};e.prototype.fire=function(e){};e.prototype.setCtx=function(e,t){};e.prototype.getCtx=function(e){};return e}();var wi="CoreUtils.doPerf";function xi(e,t,n,r,i){if(e){var a=e;if(a&&Ar.isFunction(a["getPerfMgr"])){a=a["getPerfMgr"]()}if(a){var s=void 0;var o=a.getCtx(wi);try{s=a.create(t(),r,i);if(s){if(o&&s.setCtx){s.setCtx(yi.ParentContextKey,o);if(o.getCtx&&o.setCtx){var u=o.getCtx(yi.ChildrenContextKey);if(!u){u=[];o.setCtx(yi.ChildrenContextKey,u)}u.push(s)}}a.setCtx(wi,s);return n(s)}}catch(e){if(s&&s.setCtx){s.setCtx("exception",e)}}finally{if(s){a.fire(s)}a.setCtx(wi,o)}}}return n()}var Si=Ar.isFunction;var Ci=function(){function e(e,t){var n=this;var r=null;var i=Si(e.processTelemetry);var a=Si(e.setNextPlugin);n._hasRun=false;n.getPlugin=function(){return e};n.getNext=function(){return r};n.setNext=function(e){r=e};n.processTelemetry=function(s,o){if(!o){o=t}var u=e?e.identifier:"TelemetryPluginChain";xi(o?o.core():null,(function(){return u+":processTelemetry"}),(function(){if(e&&i){n._hasRun=true;try{o.setNext(r);if(a){e.setNextPlugin(r)}r&&(r._hasRun=false);e.processTelemetry(s,o)}catch(n){var t=r&&r._hasRun;if(!r||!t){o.diagLog().throwInternal(kr.CRITICAL,Fr.PluginException,"Plugin ["+e.identifier+"] failed during processTelemetry - "+n)}if(r&&!t){r.processTelemetry(s,o)}}}else if(r){n._hasRun=true;r.processTelemetry(s,o)}}),(function(){return{item:s}}),!s.sync)}}return e}();var _i=Ar.isNullOrUndefined;function Ii(e,t){var n=[];if(e&&e.length>0){var r=null;for(var i=0;i<e.length;i++){var a=e[i];if(a&&Ar.isFunction(a.processTelemetry)){var s=new Ci(a,t);n.push(s);if(r){r.setNext(s)}r=s}}}return n.length>0?n[0]:null}function Ni(e,t,n){var r=[];var i=n?false:true;if(e){while(e){var a=e.getPlugin();if(i||a===n){i=true;r.push(a)}e=e.getNext()}}if(!i){r.push(n)}return Ii(r,t)}function Ai(e,t,n){var r=e;var i=false;if(n&&e){r=[];Ar.arrForEach(e,(function(e){if(i||e===n){i=true;r.push(e)}}))}if(n&&!i){if(!r){r=[]}r.push(n)}return Ii(r,t)}var Ti=function(){function e(t,n,r,i){var a=this;var s=null;if(i!==null){if(t&&Ar.isFunction(t.getPlugin)){s=Ni(t,a,i||t.getPlugin())}else{if(i){s=Ai(t,a,i)}else if(Ar.isUndefined(i)){s=Ii(t,a)}}}a.core=function(){return r};a.diagLog=function(){var e=(r||{}).logger;if(!e){e=new vi(n||{})}return e};a.getCfg=function(){return n};a.getExtCfg=function(e,t){if(t===void 0){t={}}var r;if(n){var i=n.extensionConfig;if(i&&e){r=i[e]}}return r?r:t};a.getConfig=function(e,t,r){if(r===void 0){r=false}var i;var s=a.getExtCfg(e,null);if(s&&!_i(s[t])){i=s[t]}else if(n&&!_i(n[t])){i=n[t]}return!_i(i)?i:r};a.hasNext=function(){return s!=null};a.getNext=function(){return s};a.setNext=function(e){s=e};a.processNext=function(e){var t=s;if(t){s=t.getNext();t.processTelemetry(e,a)}};a.createNew=function(t,i){if(t===void 0){t=null}return new e(t||s,n,r,i)}}return e}();var Ei=Ar.isFunction;var ki="getPlugin";var Fi=function(){function e(){var e=this;var t=false;var n=null;var r=null;e.core=null;e.diagLog=function(t){return e._getTelCtx(t).diagLog()};e.isInitialized=function(){return t};e.setInitialized=function(e){t=e};e.setNextPlugin=function(e){r=e};e.processNext=function(e,t){if(t){t.processNext(e)}else if(r&&Ei(r.processTelemetry)){r.processTelemetry(e,null)}};e._getTelCtx=function(t){if(t===void 0){t=null}var i=t;if(!i){var a=n||new Ti(null,{},e.core);if(r&&r[ki]){i=a.createNew(null,r[ki])}else{i=a.createNew(null,r)}}return i};e._baseTelInit=function(i,a,s,o){if(i){i.extensionConfig=i.extensionConfig||[]}if(!o&&a){o=a.getProcessTelContext().getNext()}var u=r;if(r&&r[ki]){u=r[ki]()}e.core=a;n=new Ti(o,i,a,u);t=true}}e.prototype.initialize=function(e,t,n,r){this._baseTelInit(e,t,n,r)};return e}();var Di=Ar.isFunction;var Pi="processTelemetry";var Li="priority";var Mi="setNextPlugin";var Oi="isInitialized";function Ri(e,t){var n=[];var r=null;var i=e.getNext();while(i){var a=i.getPlugin();if(a){if(r&&Di(r[Mi])&&Di(a[Pi])){r[Mi](a)}if(!Di(a[Oi])||!a[Oi]()){n.push(a)}r=a;i=i.getNext()}}Ar.arrForEach(n,(function(n){n.initialize(e.getCfg(),e.core(),t,e.getNext())}))}function Ui(e){return e.sort((function(e,t){var n=0;var r=Di(t[Pi]);if(Di(e[Pi])){n=r?e[Li]-t[Li]:1}else if(r){n=-1}return n}))}var Bi=500;var Vi="Channel has invalid priority";var ji=Ar.objDefineAccessors;var qi=function(e){__extends(t,e);function t(){var n=e.call(this)||this;n.identifier="ChannelControllerPlugin";n.priority=Bi;var r=Ar.arrForEach;var i;li(t,n,(function(e,t){e.setNextPlugin=function(e){};e.processTelemetry=function(e,t){if(i){r(i,(function(r){if(r.length>0){var i=n._getTelCtx(t).createNew(r);i.processNext(e)}}))}};e.getChannelControls=function(){return i};e.initialize=function(n,a,s){if(e.isInitialized()){return}t.initialize(n,a,s);if(n.isCookieUseDisabled){Ar.disableCookies()}o((n||{}).channels,s);r(i,(function(e){return Ri(new Ti(e,n,a),s)}))}}));function a(e){r(e,(function(e){if(e.priority<Bi){throw Error(Vi+e.identifier)}}))}function s(e){if(e&&e.length>0){e=e.sort((function(e,t){return e.priority-t.priority}));a(e);i.push(e)}}function o(e,t){i=[];if(e){r(e,(function(e){return s(e)}))}if(t){var n=[];r(t,(function(e){if(e.priority>Bi){n.push(e)}}));s(n)}}return n}t.prototype.processTelemetry=function(e,t){};t.prototype.getChannelControls=function(){return null};t.prototype.initialize=function(e,t,n){};t._staticInit=function(){ji(t.prototype,"ChannelControls",t.prototype.getChannelControls);ji(t.prototype,"channelQueue",t.prototype.getChannelControls)}();return t}(Fi);var Hi="Extensions must provide callback to initialize";var zi=Ar.arrForEach;var Wi=Ar.isNullOrUndefined;var Gi="_notificationManager";var Ki=function(){function e(){var t=false;var n;var r;var i;var a;li(e,this,(function(e){e._extensions=new Array;r=new qi;e.logger=Ar.objCreate({throwInternal:function(e,t,n,r,i){},warnToConsole:function(e){},resetInternalMessageCount:function(){}});n=[];e.isInitialized=function(){return t};e.initialize=function(n,a,s,o){if(e.isInitialized()){throw Error("Core should not be initialized more than once")}if(!n||Wi(n.instrumentationKey)){throw Error("Please provide instrumentation key")}i=o;e[Gi]=o;e.config=n||{};n.extensions=Wi(n.extensions)?[]:n.extensions;var u=n.extensionConfig=Wi(n.extensionConfig)?{}:n.extensionConfig;u.NotificationManager=o;if(s){e.logger=s}var l=[];l.push.apply(l,a.concat(n.extensions));l=Ui(l);var c=[];var d={};zi(l,(function(e){if(Wi(e)||Wi(e.initialize)){throw Error(Hi)}var t=e.priority;var n=e.identifier;if(e&&t){if(!Wi(d[t])){s.warnToConsole("Two extensions have same priority #"+t+" - "+d[t]+", "+n)}else{d[t]=n}}if(!t||t<r.priority){c.push(e)}}));l.push(r);c.push(r);l=Ui(l);e._extensions=l;Ri(new Ti([r],n,e),l);Ri(new Ti(c,n,e),l);e._extensions=c;if(e.getTransmissionControls().length===0){throw new Error("No channels available")}t=true;e.releaseQueue()};e.getTransmissionControls=function(){return r.getChannelControls()};e.track=function(t){if(!t.iKey){t.iKey=e.config.instrumentationKey}if(!t.time){t.time=Ar.toISOString(new Date)}if(Wi(t.ver)){t.ver="4.0"}if(e.isInitialized()){e.getProcessTelContext().processNext(t)}else{n.push(t)}};e.getProcessTelContext=function(){var t=e._extensions;var n=t;if(!t||t.length===0){n=[r]}return new Ti(n,e.config,e)};e.getNotifyMgr=function(){if(!i){i=Ar.objCreate({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,t){},eventsSendRequest:function(e,t){}});e[Gi]=i}return i};e.getPerfMgr=function(){if(!a){if(e.config&&e.config.enablePerfMgr){a=new bi(e.getNotifyMgr())}}return a};e.setPerfMgr=function(e){a=e};e.eventCnt=function(){return n.length};e.releaseQueue=function(){if(n.length>0){zi(n,(function(t){e.getProcessTelContext().processNext(t)}));n=[]}}}))}e.prototype.initialize=function(e,t,n,r){};e.prototype.getTransmissionControls=function(){return null};e.prototype.track=function(e){};e.prototype.getProcessTelContext=function(){return null};e.prototype.getNotifyMgr=function(){return null};e.prototype.getPerfMgr=function(){return null};e.prototype.setPerfMgr=function(e){};e.prototype.eventCnt=function(){return 0};e.prototype.releaseQueue=function(){};return e}();var Xi=function(){function e(t){this.listeners=[];var n=Ar.arrForEach;var r=!!(t||{}).perfEvtsSendAll;li(e,this,(function(e){e.addNotificationListener=function(t){e.listeners.push(t)};e.removeNotificationListener=function(t){var n=Ar.arrIndexOf(e.listeners,t);while(n>-1){e.listeners.splice(n,1);n=Ar.arrIndexOf(e.listeners,t)}};e.eventsSent=function(t){n(e.listeners,(function(e){if(e&&e.eventsSent){setTimeout((function(){return e.eventsSent(t)}),0)}}))};e.eventsDiscarded=function(t,r){n(e.listeners,(function(e){if(e&&e.eventsDiscarded){setTimeout((function(){return e.eventsDiscarded(t,r)}),0)}}))};e.eventsSendRequest=function(t,r){n(e.listeners,(function(e){if(e&&e.eventsSendRequest){if(r){setTimeout((function(){return e.eventsSendRequest(t,r)}),0)}else{try{e.eventsSendRequest(t,r)}catch(e){}}}}))};e.perfEvent=function(t){if(t){if(r||!t.isChildEvt()){n(e.listeners,(function(e){if(e&&e.perfEvent){if(t.isAsync){setTimeout((function(){return e.perfEvent(t)}),0)}else{try{e.perfEvent(t)}catch(e){}}}}))}}}}))}e.prototype.addNotificationListener=function(e){};e.prototype.removeNotificationListener=function(e){};e.prototype.eventsSent=function(e){};e.prototype.eventsDiscarded=function(e,t){};e.prototype.eventsSendRequest=function(e,t){};return e}();var Ji=function(e){__extends(t,e);function t(){var n=e.call(this)||this;li(t,n,(function(e,t){e.initialize=function(e,n,r,i){t.initialize(e,n,r||new vi(e),i||new Xi(e))};e.track=function(i){xi(e.getPerfMgr(),(function(){return"AppInsightsCore:track"}),(function(){if(i===null){r(i);throw Error("Invalid telemetry item")}n(i);t.track(i)}),(function(){return{item:i}}),!i.sync)};e.addNotificationListener=function(t){var n=e.getNotifyMgr();if(n){n.addNotificationListener(t)}};e.removeNotificationListener=function(t){var n=e.getNotifyMgr();if(n){n.removeNotificationListener(t)}};e.pollInternalLogs=function(t){var n=e.config.diagnosticLogInterval;if(!n||!(n>0)){n=1e4}return setInterval((function(){var n=e.logger?e.logger.queue:[];Ar.arrForEach(n,(function(n){var r={name:t?t:"InternalMessageId: "+n.messageId,iKey:e.config.instrumentationKey,time:Ar.toISOString(new Date),baseType:mi.dataType,baseData:{message:n.message}};e.track(r)}));n.length=0}),n)};function n(e){if(Ar.isNullOrUndefined(e.name)){r(e);throw Error("telemetry name required")}}function r(t){var n=e.getNotifyMgr();if(n){n.eventsDiscarded([t],_n.InvalidEvent)}}}));return n}t.prototype.initialize=function(e,t,n,r){};t.prototype.track=function(e){};t.prototype.addNotificationListener=function(e){};t.prototype.removeNotificationListener=function(e){};t.prototype.pollInternalLogs=function(e){return 0};return t}(Ki);var Yi="_aiHooks";var $i=["req","rsp","hkErr","fnErr"];var Zi="__proto__";var Qi="constructor";function ea(e,t){if(e){for(var n=0;n<e.length;n++){if(t(e[n],n)){break}}}}function ta(e,t,n,r,i){if(i>=0&&i<=2){ea(e,(function(e,a){var s=e.cbks;var o=s[$i[i]];if(o){t.ctx=function(){var e=r[a]=r[a]||{};return e};try{o.apply(t.inst,n)}catch(e){var u=t.err;try{var l=s[$i[2]];if(l){t.err=e;l.apply(t.inst,n)}}catch(e){}finally{t.err=u}}}}))}}function na(e){return function(){var t=this;var n=arguments;var r=e.h;var i={name:e.n,inst:t,ctx:null,set:u};var a=[];var s=o([i],n);function o(e,t){ea(t,(function(t){e.push(t)}));return e}function u(e,t){n=o([],n);n[e]=t;s=o([i],n)}ta(r,i,s,a,0);var l=e.f;try{i.rslt=l.apply(t,n)}catch(e){i.err=e;ta(r,i,s,a,3);throw e}ta(r,i,s,a,1);return i.rslt}}var ra=Object["getPrototypeOf"];function ia(e){if(e){if(ra){return ra(e)}var t=e[Zi]||e[An]||e[Qi];if(t){return t}}return null}function aa(e,t,n){var r=null;if(e){if(Ar.hasOwnProperty(e,t)){r=e}else if(n){r=aa(ia(e),t,false)}}return r}function sa(e,t,n){if(e){return oa(e[An],t,n,false)}return null}function oa(e,t,n,r){if(r===void 0){r=true}if(e&&t&&n){var i=aa(e,t,r);if(i){var a=i[t];if(typeof a===Tn){var s=a[Yi];if(!s){s={i:0,n:t,f:a,h:[]};var o=na(s);o[Yi]=s;i[t]=o}var u={id:s.i,cbks:n,rm:function(){var e=this.id;ea(s.h,(function(t,n){if(t.id===e){s.h.splice(n,1);return 1}}))}};s.i++;s.h.push(u);return u}}}return null}var ua;(function(e){e[e["LocalStorage"]=0]="LocalStorage";e[e["SessionStorage"]=1]="SessionStorage"})(ua||(ua={}));var la;(function(e){e[e["Default"]=0]="Default";e[e["Required"]=1]="Required";e[e["Array"]=2]="Array";e[e["Hidden"]=4]="Hidden"})(la||(la={}));var ca;(function(e){e[e["AI"]=0]="AI";e[e["AI_AND_W3C"]=1]="AI_AND_W3C";e[e["W3C"]=2]="W3C"})(ca||(ca={}));var da=function(){function e(){}e.requestContextHeader="Request-Context";e.requestContextTargetKey="appId";e.requestContextAppIdFormat="appId=cid-v1:";e.requestIdHeader="Request-Id";e.traceParentHeader="traceparent";e.sdkContextHeader="Sdk-Context";e.sdkContextHeaderAppIdRequest="appId";e.requestContextHeaderLowerCase="request-context";return e}();var fa=function(){function e(){}e.sanitizeKeyAndAddUniqueness=function(t,n,r){var i=n.length;var a=e.sanitizeKey(t,n);if(a.length!==i){var s=0;var o=a;while(r[o]!==undefined){s++;o=a.substring(0,e.MAX_NAME_LENGTH-3)+e.padNumber(s)}a=o}return a};e.sanitizeKey=function(t,n){var r;if(n){n=e.trim(n.toString());if(n.length>e.MAX_NAME_LENGTH){r=n.substring(0,e.MAX_NAME_LENGTH);t.throwInternal(kr.WARNING,Fr.NameTooLong,"name is too long. It has been truncated to "+e.MAX_NAME_LENGTH+" characters.",{name:n},true)}}return r||n};e.sanitizeString=function(t,n,r){if(r===void 0){r=e.MAX_STRING_LENGTH}var i;if(n){r=r?r:e.MAX_STRING_LENGTH;n=e.trim(n);if(n.toString().length>r){i=n.toString().substring(0,r);t.throwInternal(kr.WARNING,Fr.StringValueTooLong,"string value is too long. It has been truncated to "+r+" characters.",{value:n},true)}}return i||n};e.sanitizeUrl=function(t,n){return e.sanitizeInput(t,n,e.MAX_URL_LENGTH,Fr.UrlTooLong)};e.sanitizeMessage=function(t,n){var r;if(n){if(n.length>e.MAX_MESSAGE_LENGTH){r=n.substring(0,e.MAX_MESSAGE_LENGTH);t.throwInternal(kr.WARNING,Fr.MessageTruncated,"message is too long, it has been truncated to "+e.MAX_MESSAGE_LENGTH+" characters.",{message:n},true)}}return r||n};e.sanitizeException=function(t,n){var r;if(n){if(n.length>e.MAX_EXCEPTION_LENGTH){r=n.substring(0,e.MAX_EXCEPTION_LENGTH);t.throwInternal(kr.WARNING,Fr.ExceptionTruncated,"exception is too long, it has been truncated to "+e.MAX_EXCEPTION_LENGTH+" characters.",{exception:n},true)}}return r||n};e.sanitizeProperties=function(t,n){if(n){var r={};Nr(n,(function(n,i){if(Ar.isObject(i)&&Qn()){try{i=er().stringify(i)}catch(e){t.throwInternal(kr.WARNING,Fr.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:e},true)}}i=e.sanitizeString(t,i,e.MAX_PROPERTY_LENGTH);n=e.sanitizeKeyAndAddUniqueness(t,n,r);r[n]=i}));n=r}return n};e.sanitizeMeasurements=function(t,n){if(n){var r={};Nr(n,(function(n,i){n=e.sanitizeKeyAndAddUniqueness(t,n,r);r[n]=i}));n=r}return n};e.sanitizeId=function(t,n){return n?e.sanitizeInput(t,n,e.MAX_ID_LENGTH,Fr.IdTooLong).toString():n};e.sanitizeInput=function(t,n,r,i){var a;if(n){n=e.trim(n);if(n.length>r){a=n.substring(0,r);t.throwInternal(kr.WARNING,i,"input is too long, it has been truncated to "+r+" characters.",{data:n},true)}}return a||n};e.padNumber=function(e){var t="00"+e;return t.substr(t.length-3)};e.trim=function(e){if(!Ar.isString(e)){return e}return e.replace(/^\s+|\s+$/g,"")};e.MAX_NAME_LENGTH=150;e.MAX_ID_LENGTH=128;e.MAX_PROPERTY_LENGTH=8192;e.MAX_STRING_LENGTH=1024;e.MAX_URL_LENGTH=2048;e.MAX_MESSAGE_LENGTH=32768;e.MAX_EXCEPTION_LENGTH=32768;return e}();var pa=Kn();var ha=Ar.isString;var ma=null;function va(e,t){var n=e.length;var r=n-t.length;return e.substring(r>=0?r:0,n)===t}var ga=function(){function e(){}e.createDomEvent=function(e){var t=null;if(Ar.isFunction(Event)){t=new Event(e)}else{var n=Wn();if(n&&n.createEvent){t=n.createEvent("Event");t.initEvent(e,true,true)}}return t};e.disableStorage=function(){e._canUseLocalStorage=false;e._canUseSessionStorage=false};e._getLocalStorageObject=function(){if(e.canUseLocalStorage()){return e._getVerifiedStorageObject(ua.LocalStorage)}return null};e._getVerifiedStorageObject=function(e){var t=null;var n;var r;try{if(Ar.isNullOrUndefined(Vn())){return null}r=new Date;t=e===ua.LocalStorage?jn("localStorage"):jn("sessionStorage");t.setItem(r.toString(),r.toString());n=t.getItem(r.toString())!==r.toString();t.removeItem(r.toString());if(n){t=null}}catch(e){t=null}return t};e.isInternalApplicationInsightsEndpoint=function(t){return e._internalEndpoints.indexOf(t.toLowerCase())!==-1};e.canUseLocalStorage=function(){if(e._canUseLocalStorage===undefined){e._canUseLocalStorage=!!e._getVerifiedStorageObject(ua.LocalStorage)}return e._canUseLocalStorage};e.getStorage=function(t,n){var r=e._getLocalStorageObject();if(r!==null){try{return r.getItem(n)}catch(n){e._canUseLocalStorage=false;t.throwInternal(kr.WARNING,Fr.BrowserCannotReadLocalStorage,"Browser failed read of local storage. "+e.getExceptionName(n),{exception:e.dump(n)})}}return null};e.setStorage=function(t,n,r){var i=e._getLocalStorageObject();if(i!==null){try{i.setItem(n,r);return true}catch(n){e._canUseLocalStorage=false;t.throwInternal(kr.WARNING,Fr.BrowserCannotWriteLocalStorage,"Browser failed write to local storage. "+e.getExceptionName(n),{exception:e.dump(n)})}}return false};e.removeStorage=function(t,n){var r=e._getLocalStorageObject();if(r!==null){try{r.removeItem(n);return true}catch(n){e._canUseLocalStorage=false;t.throwInternal(kr.WARNING,Fr.BrowserFailedRemovalFromLocalStorage,"Browser failed removal of local storage item. "+e.getExceptionName(n),{exception:e.dump(n)})}}return false};e._getSessionStorageObject=function(){if(e.canUseSessionStorage()){return e._getVerifiedStorageObject(ua.SessionStorage)}return null};e.canUseSessionStorage=function(){if(e._canUseSessionStorage===undefined){e._canUseSessionStorage=!!e._getVerifiedStorageObject(ua.SessionStorage)}return e._canUseSessionStorage};e.getSessionStorageKeys=function(){var t=[];if(e.canUseSessionStorage()){Nr(jn("sessionStorage"),(function(e){t.push(e)}))}return t};e.getSessionStorage=function(t,n){var r=e._getSessionStorageObject();if(r!==null){try{return r.getItem(n)}catch(n){e._canUseSessionStorage=false;t.throwInternal(kr.WARNING,Fr.BrowserCannotReadSessionStorage,"Browser failed read of session storage. "+e.getExceptionName(n),{exception:e.dump(n)})}}return null};e.setSessionStorage=function(t,n,r){var i=e._getSessionStorageObject();if(i!==null){try{i.setItem(n,r);return true}catch(n){e._canUseSessionStorage=false;t.throwInternal(kr.WARNING,Fr.BrowserCannotWriteSessionStorage,"Browser failed write to session storage. "+e.getExceptionName(n),{exception:e.dump(n)})}}return false};e.removeSessionStorage=function(t,n){var r=e._getSessionStorageObject();if(r!==null){try{r.removeItem(n);return true}catch(n){e._canUseSessionStorage=false;t.throwInternal(kr.WARNING,Fr.BrowserFailedRemovalFromSessionStorage,"Browser failed removal of session storage item. "+e.getExceptionName(n),{exception:e.dump(n)})}}return false};e.disableCookies=function(){Ar.disableCookies()};e.canUseCookies=function(t){if(Ar._canUseCookies===undefined){Ar._canUseCookies=false;try{Ar._canUseCookies=e.document.cookie!==undefined}catch(n){t.throwInternal(kr.WARNING,Fr.CannotAccessCookie,"Cannot access document.cookie - "+e.getExceptionName(n),{exception:e.dump(n)})}}return Ar._canUseCookies};e.disallowsSameSiteNone=function(e){if(!ha(e)){return false}if(e.indexOf("CPU iPhone OS 12")!==-1||e.indexOf("iPad; CPU OS 12")!==-1){return true}if(e.indexOf("Macintosh; Intel Mac OS X 10_14")!==-1&&e.indexOf("Version/")!==-1&&e.indexOf("Safari")!==-1){return true}if(e.indexOf("Macintosh; Intel Mac OS X 10_14")!==-1&&va(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)")){return true}if(e.indexOf("Chrome/5")!==-1||e.indexOf("Chrome/6")!==-1){return true}if(e.indexOf("UnrealEngine")!==-1&&e.indexOf("Chrome")===-1){return true}if(e.indexOf("UCBrowser/12")!==-1||e.indexOf("UCBrowser/11")!==-1){return true}return false};e.setCookie=function(t,n,r,i){if(e.canUseCookies(t)){var a="";var s="";if(i){a=";domain="+i}var o=Yn();if(o&&o.protocol==="https:"){s=";secure";if(ma===null){ma=e.disallowsSameSiteNone((Kn()||{}).userAgent)}if(!ma){r=r+";SameSite=None"}}e.document.cookie=n+"="+r+a+";path=/"+s}};e.stringToBoolOrDefault=function(e,t){if(t===void 0){t=false}if(e===undefined||e===null){return t}return e.toString().toLowerCase()==="true"};e.getCookie=function(t,n){if(!e.canUseCookies(t)){return}var r="";if(n&&n.length){var i=n+"=";var a=e.document.cookie.split(";");for(var s=0;s<a.length;s++){var o=a[s];o=e.trim(o);if(o&&o.indexOf(i)===0){r=o.substring(i.length,a[s].length);break}}}return r};e.deleteCookie=function(t,n){if(e.canUseCookies(t)){e.document.cookie=n+"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;"}};e.random32=function(){return Ar.random32(true)};e.getIEVersion=function(e){if(e===void 0){e=null}var t=e?e.toLowerCase():pa?(pa.userAgent||"").toLowerCase():"";if(t.indexOf("msie")!==-1){return parseInt(t.split("msie")[1])}else if(t.indexOf("trident/")){var n=parseInt(t.split("trident/")[1]);if(n){return n+4}}return null};e.msToTimeSpan=function(e){if(isNaN(e)||e<0){e=0}e=Math.round(e);var t=""+e%1e3;var n=""+Math.floor(e/1e3)%60;var r=""+Math.floor(e/(1e3*60))%60;var i=""+Math.floor(e/(1e3*60*60))%24;var a=Math.floor(e/(1e3*60*60*24));t=t.length===1?"00"+t:t.length===2?"0"+t:t;n=n.length<2?"0"+n:n;r=r.length<2?"0"+r:r;i=i.length<2?"0"+i:i;return(a>0?a+".":"")+i+":"+r+":"+n+"."+t};e.isCrossOriginError=function(e,t,n,r,i){return(e==="Script error."||e==="Script error")&&!i};e.dump=function(e){var t=Object[An].toString.call(e);var n="";if(t==="[object Error]"){n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'"}else if(Qn()){n=er().stringify(e)}return t+n};e.getExceptionName=function(e){var t=Object[An].toString.call(e);if(t==="[object Error]"){return e.name}return""};e.addEventHandler=function(e,t){return Er.Attach(Hn(),e,t)};e.IsBeaconApiSupported=function(){return"sendBeacon"in pa&&pa.sendBeacon};e.getExtension=function(e,t){var n=null;var r=0;while(!n&&r<e.length){if(e[r]&&e[r].identifier===t){n=e[r]}r++}return n};e.document=Wn()||{};e._canUseLocalStorage=undefined;e._canUseSessionStorage=undefined;e._internalEndpoints=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"];e.NotSpecified="not_specified";e.trim=Ar.strTrim;e.newId=Ar.newId;e.generateW3CId=Ar.generateW3CId;e.isArray=Ar.isArray;e.isError=Ar.isError;e.isDate=Ar.isDate;e.toISOStringForIE8=Ar.toISOString;return e}();var ya=function(){function e(){}e.parseUrl=function(t){var n=e._htmlAnchorIdx;var r=e._htmlAnchorElement;var i=r[n];if(!e.document.createElement){i={host:e.parseHost(t,true)}}else if(!r[n]){i=r[n]=e.document.createElement("a")}i.href=t;n++;if(n>=r.length){n=0}e._htmlAnchorIdx=n;return i};e.getAbsoluteUrl=function(t){var n;var r=e.parseUrl(t);if(r){n=r.href}return n};e.getPathName=function(t){var n;var r=e.parseUrl(t);if(r){n=r.pathname}return n};e.getCompleteUrl=function(e,t){if(e){return e.toUpperCase()+" "+t}else{return t}};e.parseHost=function(t,n){var r=e.parseFullHost(t,n);if(r){var i=r.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i);if(i!=null&&i.length>3&&ha(i[2])&&i[2].length>0){return i[2]+(i[3]||"")}}return r};e.parseFullHost=function(e,t){var n=null;if(e){var r=e.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i);if(r!=null&&r.length>2&&ha(r[2])&&r[2].length>0){n=r[2]||"";if(t&&r.length>2){var i=(r[1]||"").toLowerCase();var a=r[3]||"";if(i==="http"&&a===":80"){a=""}else if(i==="https"&&a===":443"){a=""}n+=a}}}return n};e.document=Wn()||{};e._htmlAnchorIdx=0;e._htmlAnchorElement=[null,null,null,null,null];return e}();var ba=function(){function e(){}e.canIncludeCorrelationHeader=function(e,t,n){if(!t||e&&e.disableCorrelationHeaders){return false}if(e&&e.correlationHeaderExcludePatterns){for(var r=0;r<e.correlationHeaderExcludePatterns.length;r++){if(e.correlationHeaderExcludePatterns[r].test(t)){return false}}}var i=ya.parseUrl(t).host.toLowerCase();if(i&&(i.indexOf(":443")!==-1||i.indexOf(":80")!==-1)){i=(ya.parseFullHost(t,true)||"").toLowerCase()}if((!e||!e.enableCorsCorrelation)&&i!==n){return false}var a=e&&e.correlationHeaderDomains;if(a){var s;Ar.arrForEach(a,(function(e){var t=new RegExp(e.toLowerCase().replace(/\./g,".").replace(/\*/g,".*"));s=s||t.test(i)}));if(!s){return false}}var o=e&&e.correlationHeaderExcludedDomains;if(!o||o.length===0){return true}for(var r=0;r<o.length;r++){var u=new RegExp(o[r].toLowerCase().replace(/\./g,".").replace(/\*/g,".*"));if(u.test(i)){return false}}return i&&i.length>0};e.getCorrelationContext=function(t){if(t){var n=e.getCorrelationContextValue(t,da.requestContextTargetKey);if(n&&n!==e.correlationIdPrefix){return n}}};e.getCorrelationContextValue=function(e,t){if(e){var n=e.split(",");for(var r=0;r<n.length;++r){var i=n[r].split("=");if(i.length===2&&i[0]===t){return i[1]}}}};e.correlationIdPrefix="cid-v1:";return e}();var wa=function(){function e(){}e.ParseDependencyPath=function(e,t,n,r){var i,a=r,s=r;if(t&&t.length>0){var o=ya.parseUrl(t);i=o.host;if(!a){if(o.pathname!=null){var u=o.pathname.length===0?"/":o.pathname;if(u.charAt(0)!=="/"){u="/"+u}s=o.pathname;a=fa.sanitizeString(e,n?n+" "+u:u)}else{a=fa.sanitizeString(e,t)}}}else{i=r;a=r}return{target:i,name:a,data:s}};return e}();var xa=function(){function e(){}e.Now=function(){var e=Zn();if(e&&e.now&&e.timing){var t=e.now()+e.timing.navigationStart;if(t>0){return t}}return(new Date).getTime()};e.GetDuration=function(e,t){var n=null;if(e!==0&&t!==0&&!Ar.isNullOrUndefined(e)&&!Ar.isNullOrUndefined(t)){n=t-e}return n};return e}();var Sa="Microsoft_ApplicationInsights_BypassAjaxInstrumentation";var Ca="sampleRate";var _a="ProcessLegacy";var Ia="http.method";var Na="https://dc.services.visualstudio.com";var Aa=function(){function e(){}e.parse=function(t){if(!t){return{}}var n=t.split(e._FIELDS_SEPARATOR);var r=Ar.arrReduce(n,(function(t,n){var r=n.split(e._FIELD_KEY_VALUE_SEPARATOR);if(r.length===2){var i=r[0].toLowerCase();var a=r[1];t[i]=a}return t}),{});if(Ar.objKeys(r).length>0){if(r.endpointsuffix){var i=r.location?r.location+".":"";r.ingestionendpoint=r.ingestionendpoint||"https://"+i+"dc."+r.endpointsuffix}r.ingestionendpoint=r.ingestionendpoint||Na}return r};e._FIELDS_SEPARATOR=";";e._FIELD_KEY_VALUE_SEPARATOR="=";return e}();var Ta=function(){function e(){}return e}();var Ea=function(e){__extends(t,e);function t(){return e.call(this)||this}return t}(Ta);var ka=function(){function e(){this.ver=1;this.sampleRate=100;this.tags={}}return e}();var Fa=function(e){__extends(t,e);function t(t,n,r){var i=e.call(this)||this;i.name=fa.sanitizeString(t,r)||ga.NotSpecified;i.data=n;i.time=Ar.toISOString(new Date);i.aiDataContract={time:la.Required,iKey:la.Required,name:la.Required,sampleRate:function(){return i.sampleRate===100?la.Hidden:la.Required},tags:la.Required,data:la.Required};return i}return t}(ka);var Da=function(){function e(){}return e}();var Pa=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.ver=2;t.properties={};t.measurements={};return t}return t}(Da);var La=function(e){__extends(t,e);function t(t,n,r,i){var a=e.call(this)||this;a.aiDataContract={ver:la.Required,name:la.Required,properties:la.Default,measurements:la.Default};a.name=fa.sanitizeString(t,n)||ga.NotSpecified;a.properties=fa.sanitizeProperties(t,r);a.measurements=fa.sanitizeMeasurements(t,i);return a}t.envelopeType="Microsoft.ApplicationInsights.{0}.Event";t.dataType="EventData";return t}(Pa);var Ma=function(){function e(){}return e}();var Oa=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.ver=2;t.exceptions=[];t.properties={};t.measurements={};return t}return t}(Da);var Ra=function(){function e(){this.hasFullStack=true;this.parsedStack=[]}return e}();var Ua="error";function Ba(e){return"hasFullStack"in e&&"typeName"in e}function Va(e){return"ver"in e&&"exceptions"in e&&"properties"in e}function ja(e){var t="";if(e){t=e.typeName||e.name||"";if(!t){try{var n=/function (.{1,})\(/;var r=n.exec(e.constructor.toString());t=r&&r.length>1?r[1]:""}catch(e){}}}return t}var qa=function(e){__extends(t,e);function t(t,n,r,i,a,s){var o=e.call(this)||this;o.aiDataContract={ver:la.Required,exceptions:la.Required,severityLevel:la.Default,properties:la.Default,measurements:la.Default};if(!Va(n)){o.exceptions=[new Ha(t,n)];o.properties=fa.sanitizeProperties(t,r)||{};o.measurements=fa.sanitizeMeasurements(t,i);if(a){o.severityLevel=a}if(s){o.id=s}}else{o.exceptions=n.exceptions;o.properties=n.properties;o.measurements=n.measurements;if(n.severityLevel){o.severityLevel=n.severityLevel}if(n.id){o.id=n.id}if(n.problemGroup){o.problemGroup=n.problemGroup}o.ver=2;if(!Ar.isNullOrUndefined(n.isManual)){o.isManual=n.isManual}}return o}t.CreateFromInterface=function(e,n,r,i){var a=n.exceptions&&Ar.arrMap(n.exceptions,(function(t){return Ha.CreateFromInterface(e,t)}));var s=new t(e,__assign({},n,{exceptions:a}),r,i);return s};t.prototype.toInterface=function(){var e=this,t=e.exceptions,n=e.properties,r=e.measurements,i=e.severityLevel,a=e.problemGroup,s=e.id,o=e.isManual;var u=t instanceof Array&&Ar.arrMap(t,(function(e){return e.toInterface()}))||undefined;return{ver:"4.0",exceptions:u,severityLevel:i,properties:n,measurements:r,problemGroup:a,id:s,isManual:o}};t.CreateSimpleException=function(e,t,n,r,i,a){return{exceptions:[{hasFullStack:true,message:e,stack:i,typeName:t}]}};t.envelopeType="Microsoft.ApplicationInsights.{0}.Exception";t.dataType="ExceptionData";return t}(Oa);var Ha=function(e){__extends(t,e);function t(n,r){var i=e.call(this)||this;i.aiDataContract={id:la.Default,outerId:la.Default,typeName:la.Required,message:la.Required,hasFullStack:la.Default,stack:la.Default,parsedStack:la.Array};if(!Ba(r)){var a=r;if(!ga.isError(a)){a=a[Ua]||a.evt||a}i.typeName=fa.sanitizeString(n,ja(a))||ga.NotSpecified;i.message=fa.sanitizeMessage(n,r.message)||ga.NotSpecified;var s=r.stack;i.parsedStack=t.parseStack(s);i.stack=fa.sanitizeException(n,s);i.hasFullStack=ga.isArray(i.parsedStack)&&i.parsedStack.length>0}else{i.typeName=r.typeName;i.message=r.message;i.stack=r.stack;i.parsedStack=r.parsedStack;i.hasFullStack=r.hasFullStack}return i}t.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&Ar.arrMap(this.parsedStack,(function(e){return e.toInterface()}));var t={id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this.stack,parsedStack:e||undefined};return t};t.CreateFromInterface=function(e,n){var r=n.parsedStack instanceof Array&&Ar.arrMap(n.parsedStack,(function(e){return za.CreateFromInterface(e)}))||n.parsedStack;var i=new t(e,__assign({},n,{parsedStack:r}));return i};t.parseStack=function(e){var t;if(Ar.isString(e)){var n=e.split("\n");t=[];var r=0;var i=0;for(var a=0;a<=n.length;a++){var s=n[a];if(za.regex.test(s)){var o=new za(n[a],r++);i+=o.sizeInBytes;t.push(o)}}var u=32*1024;if(i>u){var l=0;var c=t.length-1;var d=0;var f=l;var p=c;while(l<c){var h=t[l].sizeInBytes;var m=t[c].sizeInBytes;d+=h+m;if(d>u){var v=p-f+1;t.splice(f,v);break}f=l;p=c;l++;c--}}}return t};return t}(Ra);var za=function(e){__extends(t,e);function t(n,r){var i=e.call(this)||this;i.sizeInBytes=0;i.aiDataContract={level:la.Required,method:la.Required,assembly:la.Default,fileName:la.Default,line:la.Default};if(typeof n==="string"){var a=n;i.level=r;i.method="<no_method>";i.assembly=ga.trim(a);i.fileName="";i.line=0;var s=a.match(t.regex);if(s&&s.length>=5){i.method=ga.trim(s[2])||i.method;i.fileName=ga.trim(s[4]);i.line=parseInt(s[5])||0}}else{i.level=n.level;i.method=n.method;i.assembly=n.assembly;i.fileName=n.fileName;i.line=n.line;i.sizeInBytes=0}i.sizeInBytes+=i.method.length;i.sizeInBytes+=i.fileName.length;i.sizeInBytes+=i.assembly.length;i.sizeInBytes+=t.baseSize;i.sizeInBytes+=i.level.toString().length;i.sizeInBytes+=i.line.toString().length;return i}t.CreateFromInterface=function(e){return new t(e,null)};t.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}};t.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/;t.baseSize=58;return t}(Ma);var Wa=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.ver=2;t.metrics=[];t.properties={};t.measurements={};return t}return t}(Da);var Ga;(function(e){e[e["Measurement"]=0]="Measurement";e[e["Aggregation"]=1]="Aggregation"})(Ga||(Ga={}));var Ka=function(){function e(){this.kind=Ga.Measurement}return e}();var Xa=function(e){__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.aiDataContract={name:la.Required,kind:la.Default,value:la.Required,count:la.Default,min:la.Default,max:la.Default,stdDev:la.Default};return t}return t}(Ka);var Ja=function(e){__extends(t,e);function t(t,n,r,i,a,s,o,u){var l=e.call(this)||this;l.aiDataContract={ver:la.Required,metrics:la.Required,properties:la.Default};var c=new Xa;c.count=i>0?i:undefined;c.max=isNaN(s)||s===null?undefined:s;c.min=isNaN(a)||a===null?undefined:a;c.name=fa.sanitizeString(t,n)||ga.NotSpecified;c.value=r;l.metrics=[c];l.properties=fa.sanitizeProperties(t,o);l.measurements=fa.sanitizeMeasurements(t,u);return l}t.envelopeType="Microsoft.ApplicationInsights.{0}.Metric";t.dataType="MetricData";return t}(Wa);var Ya=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.ver=2;t.properties={};t.measurements={};return t}return t}(Pa);var $a=function(e){__extends(t,e);function t(t,n,r,i,a,s,o){var u=e.call(this)||this;u.aiDataContract={ver:la.Required,name:la.Default,url:la.Default,duration:la.Default,properties:la.Default,measurements:la.Default,id:la.Default};u.id=fa.sanitizeId(t,o);u.url=fa.sanitizeUrl(t,r);u.name=fa.sanitizeString(t,n)||ga.NotSpecified;if(!isNaN(i)){u.duration=ga.msToTimeSpan(i)}u.properties=fa.sanitizeProperties(t,a);u.measurements=fa.sanitizeMeasurements(t,s);return u}t.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview";t.dataType="PageviewData";return t}(Ya);var Za=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.ver=2;t.success=true;t.properties={};t.measurements={};return t}return t}(Da);var Qa=function(e){__extends(t,e);function t(t,n,r,i,a,s,o,u,l,c,d,f){if(l===void 0){l="Ajax"}var p=e.call(this)||this;p.aiDataContract={id:la.Required,ver:la.Required,name:la.Default,resultCode:la.Default,duration:la.Default,success:la.Default,data:la.Default,target:la.Default,type:la.Default,properties:la.Default,measurements:la.Default,kind:la.Default,value:la.Default,count:la.Default,min:la.Default,max:la.Default,stdDev:la.Default,dependencyKind:la.Default,dependencySource:la.Default,commandName:la.Default,dependencyTypeName:la.Default};p.id=n;p.duration=ga.msToTimeSpan(a);p.success=s;p.resultCode=o+"";p.type=fa.sanitizeString(t,l);var h=wa.ParseDependencyPath(t,r,u,i);p.data=fa.sanitizeUrl(t,i)||h.data;p.target=fa.sanitizeString(t,h.target);if(c){p.target=p.target+" | "+c}p.name=fa.sanitizeString(t,h.name);p.properties=fa.sanitizeProperties(t,d);p.measurements=fa.sanitizeMeasurements(t,f);return p}t.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency";t.dataType="RemoteDependencyData";return t}(Za);var es=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.ver=2;t.properties={};t.measurements={};return t}return t}(Da);var ts=function(e){__extends(t,e);function t(t,n,r,i,a){var s=e.call(this)||this;s.aiDataContract={ver:la.Required,message:la.Required,severityLevel:la.Default,properties:la.Default};n=n||ga.NotSpecified;s.message=fa.sanitizeMessage(t,n);s.properties=fa.sanitizeProperties(t,i);s.measurements=fa.sanitizeMeasurements(t,a);if(r){s.severityLevel=r}return s}t.envelopeType="Microsoft.ApplicationInsights.{0}.Message";t.dataType="MessageData";return t}(es);var ns=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.ver=2;t.properties={};t.measurements={};return t}return t}(Ya);var rs=function(e){__extends(t,e);function t(t,n,r,i,a,s,o){var u=e.call(this)||this;u.aiDataContract={ver:la.Required,name:la.Default,url:la.Default,duration:la.Default,perfTotal:la.Default,networkConnect:la.Default,sentRequest:la.Default,receivedResponse:la.Default,domProcessing:la.Default,properties:la.Default,measurements:la.Default};u.url=fa.sanitizeUrl(t,r);u.name=fa.sanitizeString(t,n)||ga.NotSpecified;u.properties=fa.sanitizeProperties(t,a);u.measurements=fa.sanitizeMeasurements(t,s);if(o){u.domProcessing=o.domProcessing;u.duration=o.duration;u.networkConnect=o.networkConnect;u.perfTotal=o.perfTotal;u.receivedResponse=o.receivedResponse;u.sentRequest=o.sentRequest}return u}t.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance";t.dataType="PageviewPerformanceData";return t}(ns);var is=function(e){__extends(t,e);function t(t,n){var r=e.call(this)||this;r.aiDataContract={baseType:la.Required,baseData:la.Required};r.baseType=t;r.baseData=n;return r}return t}(Ea);var as;(function(e){e[e["Verbose"]=0]="Verbose";e[e["Information"]=1]="Information";e[e["Warning"]=2]="Warning";e[e["Error"]=3]="Error";e[e["Critical"]=4]="Critical"})(as||(as={}));var ss=function(){function e(){this.applicationVersion="ai.application.ver";this.applicationBuild="ai.application.build";this.applicationTypeId="ai.application.typeId";this.applicationId="ai.application.applicationId";this.applicationLayer="ai.application.layer";this.deviceId="ai.device.id";this.deviceIp="ai.device.ip";this.deviceLanguage="ai.device.language";this.deviceLocale="ai.device.locale";this.deviceModel="ai.device.model";this.deviceFriendlyName="ai.device.friendlyName";this.deviceNetwork="ai.device.network";this.deviceNetworkName="ai.device.networkName";this.deviceOEMName="ai.device.oemName";this.deviceOS="ai.device.os";this.deviceOSVersion="ai.device.osVersion";this.deviceRoleInstance="ai.device.roleInstance";this.deviceRoleName="ai.device.roleName";this.deviceScreenResolution="ai.device.screenResolution";this.deviceType="ai.device.type";this.deviceMachineName="ai.device.machineName";this.deviceVMName="ai.device.vmName";this.deviceBrowser="ai.device.browser";this.deviceBrowserVersion="ai.device.browserVersion";this.locationIp="ai.location.ip";this.locationCountry="ai.location.country";this.locationProvince="ai.location.province";this.locationCity="ai.location.city";this.operationId="ai.operation.id";this.operationName="ai.operation.name";this.operationParentId="ai.operation.parentId";this.operationRootId="ai.operation.rootId";this.operationSyntheticSource="ai.operation.syntheticSource";this.operationCorrelationVector="ai.operation.correlationVector";this.sessionId="ai.session.id";this.sessionIsFirst="ai.session.isFirst";this.sessionIsNew="ai.session.isNew";this.userAccountAcquisitionDate="ai.user.accountAcquisitionDate";this.userAccountId="ai.user.accountId";this.userAgent="ai.user.userAgent";this.userId="ai.user.id";this.userStoreRegion="ai.user.storeRegion";this.userAuthUserId="ai.user.authUserId";this.userAnonymousUserAcquisitionDate="ai.user.anonUserAcquisitionDate";this.userAuthenticatedUserAcquisitionDate="ai.user.authUserAcquisitionDate";this.cloudName="ai.cloud.name";this.cloudRole="ai.cloud.role";this.cloudRoleVer="ai.cloud.roleVer";this.cloudRoleInstance="ai.cloud.roleInstance";this.cloudEnvironment="ai.cloud.environment";this.cloudLocation="ai.cloud.location";this.cloudDeploymentUnit="ai.cloud.deploymentUnit";this.internalNodeName="ai.internal.nodeName";this.internalSdkVersion="ai.internal.sdkVersion";this.internalAgentVersion="ai.internal.agentVersion";this.internalSnippet="ai.internal.snippet";this.internalSdkSrc="ai.internal.sdkSrc"}return e}();var os=function(){function e(){}e.create=function(e,t,n,r,i,a){n=fa.sanitizeString(r,n)||ga.NotSpecified;if(Ar.isNullOrUndefined(e)||Ar.isNullOrUndefined(t)||Ar.isNullOrUndefined(n)){throw Error("Input doesn't contain all required fields")}var s={name:n,time:Ar.toISOString(new Date),iKey:"",ext:a?a:{},tags:[],data:{},baseType:t,baseData:e};if(!Ar.isNullOrUndefined(i)){Nr(i,(function(e,t){s.data[e]=t}))}return s};return e}();var us=function(){function e(){}e.UserExt="user";e.DeviceExt="device";e.TraceExt="trace";e.WebExt="web";e.AppExt="app";e.OSExt="os";e.SessionExt="ses";e.SDKExt="sdk";return e}();var ls=new ss;var cs="AppInsightsPropertiesPlugin";var ds="AppInsightsChannelPlugin";var fs="ApplicationInsightsAnalytics";
6
- /*!
7
- * Application Insights JavaScript SDK - Web Analytics, 2.5.10
8
- * Copyright (c) Microsoft and contributors. All rights reserved.
9
- */var ps=function(){function e(t,n,r,i){li(e,this,(function(e){var a=Ar.arrForEach;var s=Ar.isNullOrUndefined;var o=null;var u=[];var l=false;var c;if(r){c=r.logger}function d(){if(r){a(r.getTransmissionControls(),(function(e){a(e,(function(e){return e.flush(true)}))}))}}function f(e){u.push(e);if(!o){o=setInterval((function(){var e=u.slice(0);var t=false;u=[];a(e,(function(e){if(!e()){u.push(e)}else{t=true}}));if(u.length===0){clearInterval(o);o=null}if(t){d()}}),100)}}e.trackPageView=function(e,r){var a=e.name;if(s(a)||typeof a!=="string"){var o=Wn();a=e.name=o&&o.title||""}var u=e.uri;if(s(u)||typeof u!=="string"){var p=Yn();u=e.uri=p&&p.href||""}if(!i.isPerformanceTimingSupported()){t.sendPageViewInternal(e,r);d();c.throwInternal(kr.WARNING,Fr.NavigationTimingNotSupported,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");return}var h=false;var m;var v=i.getPerformanceTiming().navigationStart;if(v>0){m=xa.GetDuration(v,+new Date);if(!i.shouldCollectDuration(m)){m=undefined}}var g;if(!s(r)&&!s(r.duration)){g=r.duration}if(n||!isNaN(g)){if(isNaN(g)){if(!r){r={}}r["duration"]=m}t.sendPageViewInternal(e,r);d();h=true}var y=6e4;if(!r){r={}}f((function(){var n=false;try{if(i.isPerformanceTimingDataReady()){n=true;var s={name:a,uri:u};i.populatePageViewPerformanceEvent(s);if(!s.isValid&&!h){r["duration"]=m;t.sendPageViewInternal(e,r)}else{if(!h){r["duration"]=s.durationMs;t.sendPageViewInternal(e,r)}if(!l){t.sendPageViewPerformanceInternal(s,r);l=true}}}else if(v>0&&xa.GetDuration(v,+new Date)>y){n=true;if(!h){r["duration"]=y;t.sendPageViewInternal(e,r)}}}catch(e){c.throwInternal(kr.CRITICAL,Fr.TrackPVFailedCalc,"trackPageView failed on page load calculation: "+ga.getExceptionName(e),{exception:ga.dump(e)})}return n}))}}))}return e}();
10
- /*!
11
- * Application Insights JavaScript SDK - Web Analytics, 2.5.10
12
- * Copyright (c) Microsoft and contributors. All rights reserved.
13
- */var hs=function(){function e(e,t){this.prevPageVisitDataKeyName="prevPageVisitData";this.pageVisitTimeTrackingHandler=t;this._logger=e}e.prototype.trackPreviousPageVisit=function(e,t){try{var n=this.restartPageVisitTimer(e,t);if(n){this.pageVisitTimeTrackingHandler(n.pageName,n.pageUrl,n.pageVisitTime)}}catch(e){this._logger.warnToConsole("Auto track page visit time failed, metric will not be collected: "+ga.dump(e))}};e.prototype.restartPageVisitTimer=function(e,t){try{var n=this.stopPageVisitTimer();this.startPageVisitTimer(e,t);return n}catch(e){this._logger.warnToConsole("Call to restart failed: "+ga.dump(e));return null}};e.prototype.startPageVisitTimer=function(e,t){try{if(ga.canUseSessionStorage()){if(ga.getSessionStorage(this._logger,this.prevPageVisitDataKeyName)!=null){throw new Error("Cannot call startPageVisit consecutively without first calling stopPageVisit")}var n=new ms(e,t);var r=er().stringify(n);ga.setSessionStorage(this._logger,this.prevPageVisitDataKeyName,r)}}catch(e){this._logger.warnToConsole("Call to start failed: "+ga.dump(e))}};e.prototype.stopPageVisitTimer=function(){try{if(ga.canUseSessionStorage()){var e=Ar.dateNow();var t=ga.getSessionStorage(this._logger,this.prevPageVisitDataKeyName);if(t&&Qn()){var n=er().parse(t);n.pageVisitTime=e-n.pageVisitStartTime;ga.removeSessionStorage(this._logger,this.prevPageVisitDataKeyName);return n}else{return null}}return null}catch(e){this._logger.warnToConsole("Stop page visit timer failed: "+ga.dump(e));return null}};return e}();var ms=function(){function e(e,t){this.pageVisitStartTime=Ar.dateNow();this.pageName=e;this.pageUrl=t}return e}();
14
- /*!
15
- * Application Insights JavaScript SDK - Web Analytics, 2.5.10
16
- * Copyright (c) Microsoft and contributors. All rights reserved.
17
- */var vs=function(){function e(e){this.MAX_DURATION_ALLOWED=36e5;if(e){this._logger=e.logger}}e.prototype.populatePageViewPerformanceEvent=function(e){e.isValid=false;var t=this.getPerformanceNavigationTiming();var n=this.getPerformanceTiming();if(t||n){if(t){var r=t.duration;var i=xa.GetDuration(t.startTime,t.connectEnd);var a=xa.GetDuration(t.requestStart,t.responseStart);var s=xa.GetDuration(t.responseStart,t.responseEnd);var o=xa.GetDuration(t.responseEnd,t.loadEventEnd)}else{var r=xa.GetDuration(n.navigationStart,n.loadEventEnd);var i=xa.GetDuration(n.navigationStart,n.connectEnd);var a=xa.GetDuration(n.requestStart,n.responseStart);var s=xa.GetDuration(n.responseStart,n.responseEnd);var o=xa.GetDuration(n.responseEnd,n.loadEventEnd)}if(r===0){this._logger.throwInternal(kr.WARNING,Fr.ErrorPVCalc,"error calculating page view performance.",{total:r,network:i,request:a,response:s,dom:o})}else if(!this.shouldCollectDuration(r,i,a,s,o)){this._logger.throwInternal(kr.WARNING,Fr.InvalidDurationValue,"Invalid page load duration value. Browser perf data won't be sent.",{total:r,network:i,request:a,response:s,dom:o})}else if(r<Math.floor(i)+Math.floor(a)+Math.floor(s)+Math.floor(o)){this._logger.throwInternal(kr.WARNING,Fr.ClientPerformanceMathError,"client performance math error.",{total:r,network:i,request:a,response:s,dom:o})}else{e.durationMs=r;e.perfTotal=e.duration=ga.msToTimeSpan(r);e.networkConnect=ga.msToTimeSpan(i);e.sentRequest=ga.msToTimeSpan(a);e.receivedResponse=ga.msToTimeSpan(s);e.domProcessing=ga.msToTimeSpan(o);e.isValid=true}}};e.prototype.getPerformanceTiming=function(){if(this.isPerformanceTimingSupported()){return Zn().timing}return null};e.prototype.getPerformanceNavigationTiming=function(){if(this.isPerformanceNavigationTimingSupported()){return Zn().getEntriesByType("navigation")[0]}return null};e.prototype.isPerformanceNavigationTimingSupported=function(){var e=Zn();return e&&e.getEntriesByType&&e.getEntriesByType("navigation").length>0};e.prototype.isPerformanceTimingSupported=function(){var e=Zn();return e&&e.timing};e.prototype.isPerformanceTimingDataReady=function(){var e=Zn();var t=e?e.timing:0;return t&&t.domainLookupStart>0&&t.navigationStart>0&&t.responseStart>0&&t.requestStart>0&&t.loadEventEnd>0&&t.responseEnd>0&&t.connectEnd>0&&t.domLoading>0};e.prototype.shouldCollectDuration=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var n=Kn()||{};var r=["googlebot","adsbot-google","apis-google","mediapartners-google"];var i=n.userAgent;var a=false;if(i){for(var s=0;s<r.length;s++){a=a||i.toLowerCase().indexOf(r[s])!==-1}}if(a){return false}else{for(var s=0;s<e.length;s++){if(e[s]<0||e[s]>=this.MAX_DURATION_ALLOWED){return false}}}return true};return e}();
18
- /*!
19
- * Application Insights JavaScript SDK - Web Analytics, 2.5.10
20
- * Copyright (c) Microsoft and contributors. All rights reserved.
21
- */var gs="duration";function ys(e,t){if(e&&e.dispatchEvent&&t){e.dispatchEvent(t)}}var bs=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.identifier=fs;t.priority=180;t.autoRoutePVDelay=500;t._trackAjaxAttempts=0;var n=Yn();t._prevUri=n&&n.href||"";return t}t.getDefaultConfig=function(e){if(!e){e={}}e.sessionRenewalMs=30*60*1e3;e.sessionExpirationMs=24*60*60*1e3;e.disableExceptionTracking=ga.stringToBoolOrDefault(e.disableExceptionTracking);e.autoTrackPageVisitTime=ga.stringToBoolOrDefault(e.autoTrackPageVisitTime);e.overridePageViewDuration=ga.stringToBoolOrDefault(e.overridePageViewDuration);e.enableUnhandledPromiseRejectionTracking=ga.stringToBoolOrDefault(e.enableUnhandledPromiseRejectionTracking);if(isNaN(e.samplingPercentage)||e.samplingPercentage<=0||e.samplingPercentage>=100){e.samplingPercentage=100}e.isCookieUseDisabled=ga.stringToBoolOrDefault(e.isCookieUseDisabled);e.isStorageUseDisabled=ga.stringToBoolOrDefault(e.isStorageUseDisabled);e.isBrowserLinkTrackingEnabled=ga.stringToBoolOrDefault(e.isBrowserLinkTrackingEnabled);e.enableAutoRouteTracking=ga.stringToBoolOrDefault(e.enableAutoRouteTracking);e.namePrefix=e.namePrefix||"";return e};t.prototype.processTelemetry=function(e,t){var n=this;xi(this.core,(function(){return n.identifier+":processTelemetry"}),(function(){var r=false;var i=n._telemetryInitializers.length;t=n._getTelCtx(t);for(var a=0;a<i;++a){var s=n._telemetryInitializers[a];if(s){try{if(s.apply(null,[e])===false){r=true;break}}catch(e){t.diagLog().throwInternal(kr.CRITICAL,Fr.TelemetryInitializerFailed,"One of telemetry initializers failed, telemetry item will not be sent: "+ga.getExceptionName(e),{exception:ga.dump(e)},true)}}}if(!r){n.processNext(e,t)}}),(function(){return{item:e}}),!e.sync)};t.prototype.trackEvent=function(e,t){try{var n=os.create(e,La.dataType,La.envelopeType,this.diagLog(),t);this.core.track(n)}catch(e){this.diagLog().throwInternal(kr.WARNING,Fr.TrackTraceFailed,"trackTrace failed, trace will not be collected: "+ga.getExceptionName(e),{exception:ga.dump(e)})}};t.prototype.startTrackEvent=function(e){try{this._eventTracking.start(e)}catch(e){this.diagLog().throwInternal(kr.CRITICAL,Fr.StartTrackEventFailed,"startTrackEvent failed, event will not be collected: "+ga.getExceptionName(e),{exception:ga.dump(e)})}};t.prototype.stopTrackEvent=function(e,t,n){try{this._eventTracking.stop(e,undefined,t)}catch(e){this.diagLog().throwInternal(kr.CRITICAL,Fr.StopTrackEventFailed,"stopTrackEvent failed, event will not be collected: "+ga.getExceptionName(e),{exception:ga.dump(e)})}};t.prototype.trackTrace=function(e,t){try{var n=os.create(e,ts.dataType,ts.envelopeType,this.diagLog(),t);this.core.track(n)}catch(e){this.diagLog().throwInternal(kr.WARNING,Fr.TrackTraceFailed,"trackTrace failed, trace will not be collected: "+ga.getExceptionName(e),{exception:ga.dump(e)})}};t.prototype.trackMetric=function(e,t){try{var n=os.create(e,Ja.dataType,Ja.envelopeType,this.diagLog(),t);this.core.track(n)}catch(e){this.diagLog().throwInternal(kr.CRITICAL,Fr.TrackMetricFailed,"trackMetric failed, metric will not be collected: "+ga.getExceptionName(e),{exception:ga.dump(e)})}};t.prototype.trackPageView=function(e,t){try{var n=e||{};this._pageViewManager.trackPageView(n,__assign({},n.properties,n.measurements,t));if(this.config.autoTrackPageVisitTime){this._pageVisitTimeManager.trackPreviousPageVisit(n.name,n.uri)}}catch(e){this.diagLog().throwInternal(kr.CRITICAL,Fr.TrackPVFailed,"trackPageView failed, page view will not be collected: "+ga.getExceptionName(e),{exception:ga.dump(e)})}};t.prototype.sendPageViewInternal=function(e,t,n){var r=Wn();if(r){e.refUri=e.refUri===undefined?r.referrer:e.refUri}var i=os.create(e,$a.dataType,$a.envelopeType,this.diagLog(),t,n);this.core.track(i);this._trackAjaxAttempts=0};t.prototype.sendPageViewPerformanceInternal=function(e,t,n){var r=os.create(e,rs.dataType,rs.envelopeType,this.diagLog(),t,n);this.core.track(r)};t.prototype.trackPageViewPerformance=function(e,t){try{this._pageViewPerformanceManager.populatePageViewPerformanceEvent(e);this.sendPageViewPerformanceInternal(e,t)}catch(e){this.diagLog().throwInternal(kr.CRITICAL,Fr.TrackPVFailed,"trackPageViewPerformance failed, page view will not be collected: "+ga.getExceptionName(e),{exception:ga.dump(e)})}};t.prototype.startTrackPage=function(e){try{if(typeof e!=="string"){var t=Wn();e=t&&t.title||""}this._pageTracking.start(e)}catch(e){this.diagLog().throwInternal(kr.CRITICAL,Fr.StartTrackFailed,"startTrackPage failed, page view may not be collected: "+ga.getExceptionName(e),{exception:ga.dump(e)})}};t.prototype.stopTrackPage=function(e,t,n,r){try{if(typeof e!=="string"){var i=Wn();e=i&&i.title||""}if(typeof t!=="string"){var a=Yn();t=a&&a.href||""}this._pageTracking.stop(e,t,n,r);if(this.config.autoTrackPageVisitTime){this._pageVisitTimeManager.trackPreviousPageVisit(e,t)}}catch(e){this.diagLog().throwInternal(kr.CRITICAL,Fr.StopTrackFailed,"stopTrackPage failed, page view will not be collected: "+ga.getExceptionName(e),{exception:ga.dump(e)})}};t.prototype.sendExceptionInternal=function(e,t,n){var r=new qa(this.diagLog(),e.exception||new Error(ga.NotSpecified),e.properties,e.measurements,e.severityLevel,e.id).toInterface();var i=os.create(r,qa.dataType,qa.envelopeType,this.diagLog(),t,n);this.core.track(i)};t.prototype.trackException=function(e,t){try{this.sendExceptionInternal(e,t)}catch(e){this.diagLog().throwInternal(kr.CRITICAL,Fr.TrackExceptionFailed,"trackException failed, exception will not be collected: "+ga.getExceptionName(e),{exception:ga.dump(e)})}};t.prototype._onerror=function(e){try{var t={url:e&&e.url||(Wn()||{}).URL,lineNumber:e.lineNumber,columnNumber:e.columnNumber,message:e.message};if(ga.isCrossOriginError(e.message,e.url,e.lineNumber,e.columnNumber,e.error)){this._sendCORSException(t.url)}else{if(!ga.isError(e.error)){var n="window.onerror@"+t.url+":"+e.lineNumber+":"+(e.columnNumber||0);e.error=new Error(e.message);e.error.stack=n}this.trackException({exception:e.error,severityLevel:as.Error},t)}}catch(t){var r=e.error?e.error.name+", "+e.error.message:"null";this.diagLog().throwInternal(kr.CRITICAL,Fr.ExceptionWhileLoggingError,"_onError threw exception while logging error, error will not be collected: "+ga.getExceptionName(t),{exception:ga.dump(t),errorString:r})}};t.prototype.addTelemetryInitializer=function(e){this._telemetryInitializers.push(e)};t.prototype.initialize=function(n,r,i,a){var s=this;if(this.isInitialized()){return}if(Ar.isNullOrUndefined(r)){throw Error("Error initializing")}e.prototype.initialize.call(this,n,r,i,a);this.setInitialized(false);var o=this._getTelCtx();var u=this.identifier;this._globalconfig={instrumentationKey:n.instrumentationKey,endpointUrl:n.endpointUrl||"https://dc.services.visualstudio.com/v2/track"};this.config=o.getExtCfg(u);var l=t.getDefaultConfig();if(l!==undefined){Nr(l,(function(e,t){s.config[e]=o.getConfig(u,e,t)}));if(this._globalconfig){Nr(l,(function(e,t){if(s._globalconfig[e]===undefined){s._globalconfig[e]=t}}))}}if(this.config.isCookieUseDisabled){ga.disableCookies()}if(this.config.isStorageUseDisabled){ga.disableStorage()}var c={instrumentationKey:function(){return n.instrumentationKey},accountId:function(){return s.config.accountId||n.accountId},sessionRenewalMs:function(){return s.config.sessionRenewalMs||n.sessionRenewalMs},sessionExpirationMs:function(){return s.config.sessionExpirationMs||n.sessionExpirationMs},sampleRate:function(){return s.config.samplingPercentage||n.samplingPercentage},cookieDomain:function(){return s.config.cookieDomain||n.cookieDomain},sdkExtension:function(){return s.config.sdkExtension||n.sdkExtension},isBrowserLinkTrackingEnabled:function(){return s.config.isBrowserLinkTrackingEnabled||n.isBrowserLinkTrackingEnabled},appId:function(){return s.config.appId||n.appId}};this._pageViewPerformanceManager=new vs(this.core);this._pageViewManager=new ps(this,this.config.overridePageViewDuration,this.core,this._pageViewPerformanceManager);this._pageVisitTimeManager=new hs(this.diagLog(),(function(e,t,n){return s.trackPageVisitTime(e,t,n)}));this._telemetryInitializers=this._telemetryInitializers||[];this._addDefaultTelemetryInitializers(c);this._eventTracking=new ws(this.diagLog(),"trackEvent");this._eventTracking.action=function(e,t,n,r){if(!r){r={}}r[gs]=n.toString();s.trackEvent({name:e,properties:r})};this._pageTracking=new ws(this.diagLog(),"trackPageView");this._pageTracking.action=function(e,t,n,r,i){if(Ar.isNullOrUndefined(r)){r={}}r[gs]=n.toString();var a={name:e,uri:t,properties:r,measurements:i};s.sendPageViewInternal(a,r)};var d=Hn();var f=Jn();var p=Yn();var h=this;if(this.config.disableExceptionTracking===false&&!this.config.autoExceptionInstrumented&&d){var m="onerror";var v=d[m];d.onerror=function(e,t,n,r,i){var a=v&&v(e,t,n,r,i);if(a!==true){h._onerror({message:e,url:t,lineNumber:n,columnNumber:r,error:i})}return a};this.config.autoExceptionInstrumented=true}if(this.config.disableExceptionTracking===false&&this.config.enableUnhandledPromiseRejectionTracking===true&&!this.config.autoUnhandledPromiseInstrumented&&d){var g="onunhandledrejection";var y=d[g];d[g]=function(e){var t=y&&y.call(d,e);if(t!==true){h._onerror({message:e.reason.toString(),error:e.reason instanceof Error?e.reason:new Error(e.reason.toString()),url:p?p.href:"",lineNumber:0,columnNumber:0})}return t};this.config.autoUnhandledPromiseInstrumented=true}if(this.config.enableAutoRouteTracking===true&&f&&Ar.isFunction(f.pushState)&&Ar.isFunction(f.replaceState)&&d&&typeof Event!=="undefined"){var b=this;Ar.arrForEach(i,(function(e){if(e.identifier===cs){s._properties=e}}));f.pushState=function(e){return function t(){var n=e.apply(this,arguments);ys(d,ga.createDomEvent(b.config.namePrefix+"pushState"));ys(d,ga.createDomEvent(b.config.namePrefix+"locationchange"));return n}}(f.pushState);f.replaceState=function(e){return function t(){var n=e.apply(this,arguments);ys(d,ga.createDomEvent(b.config.namePrefix+"replaceState"));ys(d,ga.createDomEvent(b.config.namePrefix+"locationchange"));return n}}(f.replaceState);if(d.addEventListener){d.addEventListener(b.config.namePrefix+"popstate",(function(){ys(d,ga.createDomEvent(b.config.namePrefix+"locationchange"))}));d.addEventListener(b.config.namePrefix+"locationchange",(function(){if(b._properties&&b._properties.context&&b._properties.context.telemetryTrace){b._properties.context.telemetryTrace.traceID=ga.generateW3CId();b._properties.context.telemetryTrace.name=p&&p.pathname||"_unknown_"}if(s._currUri){s._prevUri=s._currUri;s._currUri=p&&p.href||""}else{s._currUri=p&&p.href||""}setTimeout(function(e){b.trackPageView({refUri:e,properties:{duration:0}})}.bind(s,s._prevUri),b.autoRoutePVDelay)}))}}this.setInitialized(true)};t.prototype.trackPageVisitTime=function(e,t,n){var r={PageName:e,PageUrl:t};this.trackMetric({name:"PageVisitTime",average:n,max:n,min:n,sampleCount:1},r)};t.prototype._addDefaultTelemetryInitializers=function(e){if(!e.isBrowserLinkTrackingEnabled()){var t=["/browserLinkSignalR/","/__browserLink/"];var n=function(e){if(e.baseType===Qa.dataType){var n=e.baseData;if(n){for(var r=0;r<t.length;r++){if(n.target&&n.target.indexOf(t[r])>=0){return false}}}}return true};this._addTelemetryInitializer(n)}};t.prototype._addTelemetryInitializer=function(e){this._telemetryInitializers.push(e)};t.prototype._sendCORSException=function(e){var t={message:"Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",url:e,lineNumber:0,columnNumber:0,error:undefined};var n=os.create(t,qa.dataType,qa.envelopeType,this.diagLog(),{url:e});this.core.track(n)};t.Version="2.5.10";return t}(Fi);var ws=function(){function e(e,t){this._name=t;this._events={};this._logger=e}e.prototype.start=function(e){if(typeof this._events[e]!=="undefined"){this._logger.throwInternal(kr.WARNING,Fr.StartCalledMoreThanOnce,"start was called more than once for this event without calling stop.",{name:this._name,key:e},true)}this._events[e]=+new Date};e.prototype.stop=function(e,t,n,r){var i=this._events[e];if(isNaN(i)){this._logger.throwInternal(kr.WARNING,Fr.StopCalledWithoutStart,"stop was called without a corresponding start.",{name:this._name,key:e},true)}else{var a=+new Date;var s=xa.GetDuration(i,a);this.action(e,t,s,n,r)}delete this._events[e];this._events[e]=undefined};return e}();
22
- /*!
23
- * Application Insights JavaScript SDK - Channel, 2.5.10
24
- * Copyright (c) Microsoft and contributors. All rights reserved.
25
- */var xs=function(){function e(t){var n=[];li(e,this,(function(e){e.enqueue=function(e){n.push(e)};e.count=function(){return n.length};e.clear=function(){n.length=0};e.getItems=function(){return n.slice(0)};e.batchPayloads=function(e){if(e&&e.length>0){var n=t.emitLineDelimitedJson()?e.join("\n"):"["+e.join(",")+"]";return n}return null};e.markAsSent=function(t){e.clear()};e.clearSent=function(e){}}))}return e}();var Ss=function(){function e(t,n){var r=false;var i;li(e,this,(function(a){var s=l(e.BUFFER_KEY);var o=l(e.SENT_BUFFER_KEY);i=s.concat(o);if(i.length>e.MAX_BUFFER_SIZE){i.length=e.MAX_BUFFER_SIZE}c(e.SENT_BUFFER_KEY,[]);c(e.BUFFER_KEY,i);a.enqueue=function(n){if(i.length>=e.MAX_BUFFER_SIZE){if(!r){t.throwInternal(kr.WARNING,Fr.SessionStorageBufferFull,"Maximum buffer size reached: "+i.length,true);r=true}return}i.push(n);c(e.BUFFER_KEY,i)};a.count=function(){return i.length};a.clear=function(){i=[];c(e.BUFFER_KEY,[]);c(e.SENT_BUFFER_KEY,[]);r=false};a.getItems=function(){return i.slice(0)};a.batchPayloads=function(e){if(e&&e.length>0){var t=n.emitLineDelimitedJson()?e.join("\n"):"["+e.join(",")+"]";return t}return null};a.markAsSent=function(n){i=u(n,i);c(e.BUFFER_KEY,i);var r=l(e.SENT_BUFFER_KEY);if(r instanceof Array&&n instanceof Array){r=r.concat(n);if(r.length>e.MAX_BUFFER_SIZE){t.throwInternal(kr.CRITICAL,Fr.SessionStorageBufferFull,"Sent buffer reached its maximum size: "+r.length,true);r.length=e.MAX_BUFFER_SIZE}c(e.SENT_BUFFER_KEY,r)}};a.clearSent=function(t){var n=l(e.SENT_BUFFER_KEY);n=u(t,n);c(e.SENT_BUFFER_KEY,n)};function u(e,t){var n=[];Ar.arrForEach(t,(function(t){if(!Ar.isFunction(t)&&Ar.arrIndexOf(e,t)===-1){n.push(t)}}));return n}function l(e){var r=e;try{r=n.namePrefix&&n.namePrefix()?n.namePrefix()+"_"+r:r;var i=ga.getSessionStorage(t,r);if(i){var a=er().parse(i);if(Ar.isString(a)){a=er().parse(a)}if(a&&ga.isArray(a)){return a}}}catch(e){t.throwInternal(kr.CRITICAL,Fr.FailedToRestoreStorageBuffer," storage key: "+r+", "+ga.getExceptionName(e),{exception:ga.dump(e)})}return[]}function c(e,r){var i=e;try{i=n.namePrefix&&n.namePrefix()?n.namePrefix()+"_"+i:i;var a=JSON.stringify(r);ga.setSessionStorage(t,i,a)}catch(e){ga.setSessionStorage(t,i,JSON.stringify([]));t.throwInternal(kr.WARNING,Fr.FailedToSetStorageBuffer," storage key: "+i+", "+ga.getExceptionName(e)+". Buffer cleared",{exception:ga.dump(e)})}}}))}e.BUFFER_KEY="AI_buffer";e.SENT_BUFFER_KEY="AI_sentBuffer";e.MAX_BUFFER_SIZE=2e3;return e}();
26
- /*!
27
- * Application Insights JavaScript SDK - Channel, 2.5.10
28
- * Copyright (c) Microsoft and contributors. All rights reserved.
29
- */var Cs="baseType";var _s="baseData";var Is="properties";var Ns="true";var As=Ar.isNullOrUndefined;function Ts(e,t,n){if(e&&n){e[t]=n;return e[t]}return null}var Es=function(){function e(){}e.extractPropsAndMeasurements=function(e,t,n){if(!As(e)){Nr(e,(function(e,r){if(Ar.isNumber(r)){n[e]=r}else if(Ar.isString(r)){t[e]=r}else if(Qn()){t[e]=er().stringify(r)}}))}};e.createEnvelope=function(t,n,r,i){var a=new Fa(t,i,n);Ts(a,"sampleRate",r[Ca]);if((r[_s]||{}).startTime){a.time=Ar.toISOString(r[_s].startTime)}a.iKey=r.iKey;var s=r.iKey.replace(/-/g,"");a.name=a.name.replace("{0}",s);e.extractPartAExtensions(r,a);r.tags=r.tags||[];return a};e.extractPartAExtensions=function(t,n){var r=n.tags=n.tags||{};var i=t.ext=t.ext||{};var a=t.tags=t.tags||[];var s=i.user;if(s){Ts(r,ls.userAuthUserId,s.authId);Ts(r,ls.userId,s.id||s.localId)}var o=i.app;if(o){Ts(r,ls.sessionId,o.sesId)}var u=i.device;if(u){Ts(r,ls.deviceId,u.id||u.localId);Ts(r,ls.deviceType,u.deviceClass);Ts(r,ls.deviceIp,u.ip);Ts(r,ls.deviceModel,u.model);Ts(r,ls.deviceType,u.deviceType)}var l=t.ext.web;if(l){Ts(r,ls.deviceLanguage,l.browserLang);Ts(r,ls.deviceBrowserVersion,l.browserVer);Ts(r,ls.deviceBrowser,l.browser);var c=n.data=n.data||{};var d=c[_s]=c[_s]||{};var f=d[Is]=d[Is]||{};Ts(f,"domain",l.domain);Ts(f,"isManual",l.isManual?Ns:null);Ts(f,"screenRes",l.screenRes);Ts(f,"userConsent",l.userConsent?Ns:null)}var p=i.os;if(p){Ts(r,ls.deviceOS,p.name)}var h=i.trace;if(h){Ts(r,ls.operationParentId,h.parentID);Ts(r,ls.operationName,h.name);Ts(r,ls.operationId,h.traceID)}var m={};for(var v=a.length-1;v>=0;v--){var g=a[v];Nr(g,(function(e,t){m[e]=t}));a.splice(v,1)}Nr(a,(function(e,t){m[e]=t}));n.tags=__assign({},r,m);if(!n.tags[ls.internalSdkVersion]){n.tags[ls.internalSdkVersion]="javascript:"+e.Version}};e.prototype.Init=function(e,t){this._logger=e;if(As(t[_s])){this._logger.throwInternal(kr.CRITICAL,Fr.TelemetryEnvelopeInvalid,"telemetryItem.baseData cannot be null.")}};e.Version="2.5.10";return e}();var ks=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r=n[_s].measurements||{};var i=n[_s][Is]||{};Es.extractPropsAndMeasurements(n.data,i,r);var a=n[_s];if(As(a)){t.warnToConsole("Invalid input for dependency data");return null}var s=a[Is]&&a[Is][Ia]?a[Is][Ia]:"GET";var o=new Qa(t,a.id,a.target,a.name,a.duration,a.success,a.responseCode,s,a.type,a.correlationContext,i,r);var u=new is(Qa.dataType,o);return Es.createEnvelope(t,Qa.envelopeType,n,u)};t.DependencyEnvelopeCreator=new t;return t}(Es);var Fs=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r={};var i={};if(n[Cs]!==La.dataType){r["baseTypeSource"]=n[Cs]}if(n[Cs]===La.dataType){r=n[_s][Is]||{};i=n[_s].measurements||{}}else{if(n[_s]){Es.extractPropsAndMeasurements(n[_s],r,i)}}Es.extractPropsAndMeasurements(n.data,r,i);var a=n[_s].name;var s=new La(t,a,r,i);var o=new is(La.dataType,s);return Es.createEnvelope(t,La.envelopeType,n,o)};t.EventEnvelopeCreator=new t;return t}(Es);var Ds=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r=n[_s].measurements||{};var i=n[_s][Is]||{};Es.extractPropsAndMeasurements(n.data,i,r);var a=n[_s];var s=qa.CreateFromInterface(t,a,i,r);var o=new is(qa.dataType,s);return Es.createEnvelope(t,qa.envelopeType,n,o)};t.ExceptionEnvelopeCreator=new t;return t}(Es);var Ps=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r=n[_s];var i=r[Is]||{};var a=r.measurements||{};Es.extractPropsAndMeasurements(n.data,i,a);var s=new Ja(t,r.name,r.average,r.sampleCount,r.min,r.max,i,a);var o=new is(Ja.dataType,s);return Es.createEnvelope(t,Ja.envelopeType,n,o)};t.MetricEnvelopeCreator=new t;return t}(Es);var Ls=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r="duration";var i;var a=n[_s];if(!As(a)&&!As(a[Is])&&!As(a[Is][r])){i=a[Is][r];delete a[Is][r]}else if(!As(n.data)&&!As(n.data[r])){i=n.data[r];delete n.data[r]}var s=n[_s];var o;if(((n.ext||{}).trace||{}).traceID){o=n.ext.trace.traceID}var u=s.id||o;var l=s.name;var c=s.uri;var d=s[Is]||{};var f=s.measurements||{};if(!As(s.refUri)){d["refUri"]=s.refUri}if(!As(s.pageType)){d["pageType"]=s.pageType}if(!As(s.isLoggedIn)){d["isLoggedIn"]=s.isLoggedIn.toString()}if(!As(s[Is])){var p=s[Is];Nr(p,(function(e,t){d[e]=t}))}Es.extractPropsAndMeasurements(n.data,d,f);var h=new $a(t,l,c,i,d,f,u);var m=new is($a.dataType,h);return Es.createEnvelope(t,$a.envelopeType,n,m)};t.PageViewEnvelopeCreator=new t;return t}(Es);var Ms=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r=n[_s];var i=r.name;var a=r.uri||r.url;var s=r[Is]||{};var o=r.measurements||{};Es.extractPropsAndMeasurements(n.data,s,o);var u=new rs(t,i,a,undefined,s,o,r);var l=new is(rs.dataType,u);return Es.createEnvelope(t,rs.envelopeType,n,l)};t.PageViewPerformanceEnvelopeCreator=new t;return t}(Es);var Os=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r=n[_s].message;var i=n[_s].severityLevel;var a=n[_s][Is]||{};var s=n[_s].measurements||{};Es.extractPropsAndMeasurements(n.data,a,s);var o=new ts(t,r,i,a,s);var u=new is(ts.dataType,o);return Es.createEnvelope(t,ts.envelopeType,n,u)};t.TraceEnvelopeCreator=new t;return t}(Es);
30
- /*!
31
- * Application Insights JavaScript SDK - Channel, 2.5.10
32
- * Copyright (c) Microsoft and contributors. All rights reserved.
33
- */var Rs=function(){function e(t){li(e,this,(function(e){e.serialize=function(e){var r=n(e,"root");try{return er().stringify(r)}catch(e){t.throwInternal(kr.CRITICAL,Fr.CannotSerializeObject,e&&Ar.isFunction(e.toString)?e.toString():"Error serializing object",null,true)}};function n(e,a){var s="__aiCircularRefCheck";var o={};if(!e){t.throwInternal(kr.CRITICAL,Fr.CannotSerializeObject,"cannot serialize object because it is null or undefined",{name:a},true);return o}if(e[s]){t.throwInternal(kr.WARNING,Fr.CircularReferenceDetected,"Circular reference detected while serializing object",{name:a},true);return o}if(!e.aiDataContract){if(a==="measurements"){o=i(e,"number",a)}else if(a==="properties"){o=i(e,"string",a)}else if(a==="tags"){o=i(e,"string",a)}else if(ga.isArray(e)){o=r(e,a)}else{t.throwInternal(kr.WARNING,Fr.CannotSerializeObjectNonSerializable,"Attempting to serialize an object which does not implement ISerializable",{name:a},true);try{er().stringify(e);o=e}catch(e){t.throwInternal(kr.CRITICAL,Fr.CannotSerializeObject,e&&Ar.isFunction(e.toString)?e.toString():"Error serializing object",null,true)}}return o}e[s]=true;Nr(e.aiDataContract,(function(i,s){var u=Ar.isFunction(s)?s()&la.Required:s&la.Required;var l=Ar.isFunction(s)?s()&la.Hidden:s&la.Hidden;var c=s&la.Array;var d=e[i]!==undefined;var f=Ar.isObject(e[i])&&e[i]!==null;if(u&&!d&&!c){t.throwInternal(kr.CRITICAL,Fr.MissingRequiredFieldSpecification,"Missing required field specification. The field is required but not present on source",{field:i,name:a})}else if(!l){var p=void 0;if(f){if(c){p=r(e[i],i)}else{p=n(e[i],i)}}else{p=e[i]}if(p!==undefined){o[i]=p}}}));delete e[s];return o}function r(e,r){var i;if(!!e){if(!ga.isArray(e)){t.throwInternal(kr.CRITICAL,Fr.ItemNotInArray,"This field was specified as an array in the contract but the item is not an array.\r\n",{name:r},true)}else{i=[];for(var a=0;a<e.length;a++){var s=e[a];var o=n(s,r+"["+a+"]");i.push(o)}}}return i}function i(e,n,r){var i;if(e){i={};Nr(e,(function(e,a){if(n==="string"){if(a===undefined){i[e]="undefined"}else if(a===null){i[e]="null"}else if(!a.toString){i[e]="invalid field: toString() is not defined."}else{i[e]=a.toString()}}else if(n==="number"){if(a===undefined){i[e]="undefined"}else if(a===null){i[e]="null"}else{var s=parseFloat(a);if(isNaN(s)){i[e]="NaN"}else{i[e]=s}}}else{i[e]="invalid field: "+r+" is of unknown type.";t.throwInternal(kr.CRITICAL,i[e],null,true)}}))}return i}}))}return e}();
34
- /*!
35
- * Application Insights JavaScript SDK - Channel, 2.5.10
36
- * Copyright (c) Microsoft and contributors. All rights reserved.
37
- */var Us=function(){function e(){var t=Hn();var n=Wn();var r=false;var i=true;li(e,this,(function(e){try{if(t){if(Er.Attach(t,"online",s)){Er.Attach(t,"offline",o);r=true}}if(n){var a=n.body||n;if(!Ar.isUndefined(a.ononline)){a.ononline=s;a.onoffline=o;r=true}}}catch(e){r=false}e.isListening=r;e.isOnline=function(){var e=true;var t=Kn();if(r){e=i}else if(t&&!Ar.isNullOrUndefined(t.onLine)){e=t.onLine}return e};e.isOffline=function(){return!e.isOnline()};function s(){i=true}function o(){i=false}}))}e.Offline=new e;return e}();var Bs=Us.Offline;
38
- /*!
39
- * Application Insights JavaScript SDK - Channel, 2.5.10
40
- * Copyright (c) Microsoft and contributors. All rights reserved.
41
- */var Vs=function(){function e(){}e.prototype.getHashCodeScore=function(t){var n=this.getHashCode(t)/e.INT_MAX_VALUE;return n*100};e.prototype.getHashCode=function(t){if(t===""){return 0}while(t.length<e.MIN_INPUT_LENGTH){t=t.concat(t)}var n=5381;for(var r=0;r<t.length;++r){n=(n<<5)+n+t.charCodeAt(r);n=n&n}return Math.abs(n)};e.INT_MAX_VALUE=2147483647;e.MIN_INPUT_LENGTH=8;return e}();
42
- /*!
43
- * Application Insights JavaScript SDK - Channel, 2.5.10
44
- * Copyright (c) Microsoft and contributors. All rights reserved.
45
- */var js=function(){function e(){this.hashCodeGeneragor=new Vs;this.keys=new ss}e.prototype.getSamplingScore=function(e){var t=0;if(e.tags&&e.tags[this.keys.userId]){t=this.hashCodeGeneragor.getHashCodeScore(e.tags[this.keys.userId])}else if(e.ext&&e.ext.user&&e.ext.user.id){t=this.hashCodeGeneragor.getHashCodeScore(e.ext.user.id)}else if(e.tags&&e.tags[this.keys.operationId]){t=this.hashCodeGeneragor.getHashCodeScore(e.tags[this.keys.operationId])}else if(e.ext&&e.ext.telemetryTrace&&e.ext.telemetryTrace.traceID){t=this.hashCodeGeneragor.getHashCodeScore(e.ext.telemetryTrace.traceID)}else{t=Math.random()*100}return t};return e}();
46
- /*!
47
- * Application Insights JavaScript SDK - Channel, 2.5.10
48
- * Copyright (c) Microsoft and contributors. All rights reserved.
49
- */var qs=function(){function e(e,t){this.INT_MAX_VALUE=2147483647;this._logger=Ar.isNullOrUndefined(t)?new vi:t;if(e>100||e<0){this._logger.throwInternal(kr.WARNING,Fr.SampleRateOutOfRange,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},true);this.sampleRate=100}this.sampleRate=e;this.samplingScoreGenerator=new js}e.prototype.isSampledIn=function(e){var t=this.sampleRate;var n=false;if(t===null||t===undefined||t>=100){return true}else if(e.baseType===Ja.dataType){return true}n=this.samplingScoreGenerator.getSamplingScore(e)<t;return n};return e}();
50
- /*!
51
- * Application Insights JavaScript SDK - Channel, 2.5.10
52
- * Copyright (c) Microsoft and contributors. All rights reserved.
53
- */function Hs(e){try{return e.responseText}catch(e){}return null}var zs=function(e){__extends(t,e);function t(){var n=e.call(this)||this;n.priority=1001;n.identifier=ds;n._XMLHttpRequestSupported=false;var r;var i;var a;var s;li(t,n,(function(e,o){function u(){throw new Error("Method not implemented.")}e.pause=u;e.resume=u;e.flush=function(){try{e.triggerSend(true,null,1)}catch(t){e.diagLog().throwInternal(kr.CRITICAL,Fr.FlushFailed,"flush failed, telemetry will not be collected: "+ga.getExceptionName(t),{exception:ga.dump(t)})}};e.onunloadFlush=function(){if((e._senderConfig.onunloadDisableBeacon()===false||e._senderConfig.isBeaconApiDisabled()===false)&&ga.IsBeaconApiSupported()){try{e.triggerSend(true,c,2)}catch(t){e.diagLog().throwInternal(kr.CRITICAL,Fr.FailedToSendQueuedTelemetry,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+ga.getExceptionName(t),{exception:ga.dump(t)})}}else{e.flush()}};e.teardown=u;e.initialize=function(n,a,u,l){o.initialize(n,a,u,l);var f=e._getTelCtx();var p=e.identifier;s=new Rs(a.logger);r=0;i=null;e._sender=null;var h=t._getDefaultAppInsightsChannelConfig();e._senderConfig=t._getEmptyAppInsightsChannelConfig();Nr(h,(function(t,n){e._senderConfig[t]=function(){return f.getConfig(p,t,n())}}));e._buffer=e._senderConfig.enableSessionStorageBuffer()&&ga.canUseSessionStorage()?new Ss(e.diagLog(),e._senderConfig):new xs(e._senderConfig);e._sample=new qs(e._senderConfig.samplingPercentage(),e.diagLog());if(!S(n)){e.diagLog().throwInternal(kr.CRITICAL,Fr.InvalidInstrumentationKey,"Invalid Instrumentation key "+n.instrumentationKey)}if(!e._senderConfig.isBeaconApiDisabled()&&ga.IsBeaconApiSupported()){e._sender=c}else{if(typeof XMLHttpRequest!==undefined){var m=jn("XMLHttpRequest");if(m){var v=new m;if("withCredentials"in v){e._sender=d;e._XMLHttpRequestSupported=true}else if(typeof XDomainRequest!==undefined){e._sender=y}}}}};e.processTelemetry=function(n,r){r=e._getTelCtx(r);try{if(e._senderConfig.disableTelemetry()){return}if(!n){r.diagLog().throwInternal(kr.CRITICAL,Fr.CannotSendEmptyTelemetry,"Cannot send empty telemetry");return}if(n.baseData&&!n.baseType){r.diagLog().throwInternal(kr.CRITICAL,Fr.InvalidEvent,"Cannot send telemetry without baseData and baseType");return}if(!n.baseType){n.baseType="EventData"}if(!e._sender){r.diagLog().throwInternal(kr.CRITICAL,Fr.SenderNotInitialized,"Sender was not initialized");return}if(!l(n)){r.diagLog().throwInternal(kr.WARNING,Fr.TelemetrySampledAndNotSent,"Telemetry item was sampled out and not sent",{SampleRate:e._sample.sampleRate});return}else{n[Ca]=e._sample.sampleRate}var i=t.constructEnvelope(n,e._senderConfig.instrumentationKey(),r.diagLog());if(!i){r.diagLog().throwInternal(kr.CRITICAL,Fr.CreateEnvelopeError,"Unable to create an AppInsights envelope");return}var a=false;if(n.tags&&n.tags[_a]){Ar.arrForEach(n.tags[_a],(function(e){try{if(e&&e(i)===false){a=true;r.diagLog().warnToConsole("Telemetry processor check returns false")}}catch(e){r.diagLog().throwInternal(kr.CRITICAL,Fr.TelemetryInitializerFailed,"One of telemetry initializers failed, telemetry item will not be sent: "+ga.getExceptionName(e),{exception:ga.dump(e)},true)}}));delete n.tags[_a]}if(a){return}var o=s.serialize(i);var u=e._buffer.getItems();var c=e._buffer.batchPayloads(u);if(c&&c.length+o.length>e._senderConfig.maxBatchSizeInBytes()){e.triggerSend(true,null,10)}e._buffer.enqueue(o);m()}catch(e){r.diagLog().throwInternal(kr.WARNING,Fr.FailedAddingTelemetryToBuffer,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+ga.getExceptionName(e),{exception:ga.dump(e)})}e.processNext(n,r)};e._xhrReadyStateChange=function(t,n,i){if(t.readyState===4){var a=null;if(!e._appId){a=f(Hs(t)||t.response);if(a&&a.appId){e._appId=a.appId}}if((t.status<200||t.status>=300)&&t.status!==0){if(!e._senderConfig.isRetryDisabled()&&v(t.status)){p(n);e.diagLog().throwInternal(kr.WARNING,Fr.TransmissionFailed,". "+"Response code "+t.status+". Will retry to send "+n.length+" items.")}else{e._onError(n,g(t))}}else if(Bs.isOffline()){if(!e._senderConfig.isRetryDisabled()){var s=10;p(n,s);e.diagLog().throwInternal(kr.WARNING,Fr.TransmissionFailed,". Offline - Response Code: "+t.status+". Offline status: "+Bs.isOffline()+". Will retry to send "+n.length+" items.")}}else{if(t.status===206){if(!a){a=f(Hs(t)||t.response)}if(a&&!e._senderConfig.isRetryDisabled()){e._onPartialSuccess(n,a)}else{e._onError(n,g(t))}}else{r=0;e._onSuccess(n,i)}}}};e.triggerSend=function(t,r,s){if(t===void 0){t=true}try{if(!e._senderConfig.disableTelemetry()){if(e._buffer.count()>0){var o=e._buffer.getItems();x(s||0,t);if(r){r.call(n,o,t)}else{e._sender(o,t)}}}else{e._buffer.clear()}clearTimeout(a);a=null;i=null}catch(t){var u=ga.getIEVersion();if(!u||u>9){e.diagLog().throwInternal(kr.CRITICAL,Fr.TransmissionFailed,"Telemetry transmission failed, some telemetry will be lost: "+ga.getExceptionName(t),{exception:ga.dump(t)})}}};e._onError=function(t,n,r){e.diagLog().throwInternal(kr.WARNING,Fr.OnError,"Failed to send telemetry.",{message:n});e._buffer.clearSent(t)};e._onPartialSuccess=function(t,n){var r=[];var i=[];var a=n.errors.reverse();for(var s=0,o=a;s<o.length;s++){var u=o[s];var l=t.splice(u.index,1)[0];if(v(u.statusCode)){i.push(l)}else{r.push(l)}}if(t.length>0){e._onSuccess(t,n.itemsAccepted)}if(r.length>0){e._onError(r,g(null,["partial success",n.itemsAccepted,"of",n.itemsReceived].join(" ")))}if(i.length>0){p(i);e.diagLog().throwInternal(kr.WARNING,Fr.TransmissionFailed,"Partial success. "+"Delivered: "+t.length+", Failed: "+r.length+". Will retry to send "+i.length+" our of "+n.itemsReceived+" items")}};e._onSuccess=function(t,n){e._buffer.clearSent(t)};e._xdrOnLoad=function(t,n){var i=Hs(t);if(t&&(i+""==="200"||i==="")){r=0;e._onSuccess(n,0)}else{var a=f(i);if(a&&a.itemsReceived&&a.itemsReceived>a.itemsAccepted&&!e._senderConfig.isRetryDisabled()){e._onPartialSuccess(n,a)}else{e._onError(n,b(t))}}};function l(t){return e._sample.isSampledIn(t)}function c(t,n){var r=e._senderConfig.endpointUrl();var i=e._buffer.batchPayloads(t);var a=new Blob([i],{type:"text/plain;charset=UTF-8"});var s=Kn().sendBeacon(r,a);if(s){e._buffer.markAsSent(t);e._onSuccess(t,t.length)}else{d(t,true);e.diagLog().throwInternal(kr.WARNING,Fr.TransmissionFailed,". "+"Failed to send telemetry with Beacon API, retried with xhrSender.")}}function d(t,n){var r=new XMLHttpRequest;var i=e._senderConfig.endpointUrl();try{r[Sa]=true}catch(e){}r.open("POST",i,n);r.setRequestHeader("Content-type","application/json");if(ga.isInternalApplicationInsightsEndpoint(i)){r.setRequestHeader(da.sdkContextHeader,da.sdkContextHeaderAppIdRequest)}r.onreadystatechange=function(){return e._xhrReadyStateChange(r,t,t.length)};r.onerror=function(n){return e._onError(t,g(r),n)};var a=e._buffer.batchPayloads(t);r.send(a);e._buffer.markAsSent(t)}function f(t){try{if(t&&t!==""){var n=er().parse(t);if(n&&n.itemsReceived&&n.itemsReceived>=n.itemsAccepted&&n.itemsReceived-n.itemsAccepted===n.errors.length){return n}}}catch(n){e.diagLog().throwInternal(kr.CRITICAL,Fr.InvalidBackendResponse,"Cannot parse the response. "+ga.getExceptionName(n),{response:t})}return null}function p(t,n){if(n===void 0){n=1}if(!t||t.length===0){return}e._buffer.clearSent(t);r++;for(var i=0,a=t;i<a.length;i++){var s=a[i];e._buffer.enqueue(s)}h(n);m()}function h(e){var t=10;var n;if(r<=1){n=t}else{var a=(Math.pow(2,r)-1)/2;var s=Math.floor(Math.random()*a*t)+1;s=e*s;n=Math.max(Math.min(s,3600),t)}var o=Ar.dateNow()+n*1e3;i=o}function m(){if(!a){var t=i?Math.max(0,i-Ar.dateNow()):0;var n=Math.max(e._senderConfig.maxBatchInterval(),t);a=setTimeout((function(){e.triggerSend(true,null,1)}),n)}}function v(e){return e===408||e===429||e===500||e===503}function g(e,t){if(e){return"XMLHttpRequest,Status:"+e.status+",Response:"+Hs(e)||e.response||""}return t}function y(t,n){var r=Hn();var i=new XDomainRequest;i.onload=function(){return e._xdrOnLoad(i,t)};i.onerror=function(n){return e._onError(t,b(i),n)};var a=r&&r.location&&r.location.protocol||"";if(e._senderConfig.endpointUrl().lastIndexOf(a,0)!==0){e.diagLog().throwInternal(kr.WARNING,Fr.TransmissionFailed,". "+"Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.");e._buffer.clear();return}var s=e._senderConfig.endpointUrl().replace(/^(https?:)/,"");i.open("POST",s);var o=e._buffer.batchPayloads(t);i.send(o);e._buffer.markAsSent(t)}function b(e,t){if(e){return"XDomainRequest,Response:"+Hs(e)||""}return t}function w(){var t="getNotifyMgr";if(e.core[t]){return e.core[t]()}return e.core["_notificationManager"]}function x(t,n){var r=w();if(r&&r.eventsSendRequest){try{r.eventsSendRequest(t,n)}catch(t){e.diagLog().throwInternal(kr.CRITICAL,Fr.NotificationException,"send request notification failed: "+ga.getExceptionName(t),{exception:ga.dump(t)})}}}function S(e){var t=Ar.isNullOrUndefined(e.disableInstrumentaionKeyValidation)?false:e.disableInstrumentaionKeyValidation;if(t){return true}var n="^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$";var r=new RegExp(n);return r.test(e.instrumentationKey)}}));return n}t.constructEnvelope=function(e,t,n){var r;if(t!==e.iKey&&!Ar.isNullOrUndefined(t)){r=__assign({},e,{iKey:t})}else{r=e}switch(r.baseType){case La.dataType:return Fs.EventEnvelopeCreator.Create(n,r);case ts.dataType:return Os.TraceEnvelopeCreator.Create(n,r);case $a.dataType:return Ls.PageViewEnvelopeCreator.Create(n,r);case rs.dataType:return Ms.PageViewPerformanceEnvelopeCreator.Create(n,r);case qa.dataType:return Ds.ExceptionEnvelopeCreator.Create(n,r);case Ja.dataType:return Ps.MetricEnvelopeCreator.Create(n,r);case Qa.dataType:return ks.DependencyEnvelopeCreator.Create(n,r);default:return Fs.EventEnvelopeCreator.Create(n,r)}};t._getDefaultAppInsightsChannelConfig=function(){return{endpointUrl:function(){return"https://dc.services.visualstudio.com/v2/track"},emitLineDelimitedJson:function(){return false},maxBatchInterval:function(){return 15e3},maxBatchSizeInBytes:function(){return 102400},disableTelemetry:function(){return false},enableSessionStorageBuffer:function(){return true},isRetryDisabled:function(){return false},isBeaconApiDisabled:function(){return true},onunloadDisableBeacon:function(){return false},instrumentationKey:function(){return undefined},namePrefix:function(){return undefined},samplingPercentage:function(){return 100}}};t._getEmptyAppInsightsChannelConfig=function(){return{endpointUrl:undefined,emitLineDelimitedJson:undefined,maxBatchInterval:undefined,maxBatchSizeInBytes:undefined,disableTelemetry:undefined,enableSessionStorageBuffer:undefined,isRetryDisabled:undefined,isBeaconApiDisabled:undefined,onunloadDisableBeacon:undefined,instrumentationKey:undefined,namePrefix:undefined,samplingPercentage:undefined}};return t}(Fi);var Ws=function(){function e(){}return e}();var Gs=function(){function e(t,n){var r=this;if(Ar.isNullOrUndefined(n)){this._logger=new vi}else{this._logger=n}if(!t){t={}}if(!(typeof t.sessionExpirationMs==="function")){t.sessionExpirationMs=function(){return e.acquisitionSpan}}if(!(typeof t.sessionRenewalMs==="function")){t.sessionRenewalMs=function(){return e.renewalSpan}}this.config=t;this._storageNamePrefix=function(){return r.config.namePrefix&&r.config.namePrefix()?e.cookieNameConst+r.config.namePrefix():e.cookieNameConst};this.automaticSession=new Ws}e.prototype.update=function(){if(!this.automaticSession.id){this.initializeAutomaticSession()}var t=(new Date).getTime();var n=this.config.sessionExpirationMs()===0?false:t-this.automaticSession.acquisitionDate>this.config.sessionExpirationMs();var r=this.config.sessionExpirationMs()===0?false:t-this.automaticSession.renewalDate>this.config.sessionRenewalMs();if(n||r){this.renew()}else{if(!this.cookieUpdatedTimestamp||t-this.cookieUpdatedTimestamp>e.cookieUpdateInterval){this.automaticSession.renewalDate=t;this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate)}}};e.prototype.backup=function(){this.setStorage(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate)};e.prototype.initializeAutomaticSession=function(){var e=ga.getCookie(this._logger,this._storageNamePrefix());if(e&&typeof e.split==="function"){this.initializeAutomaticSessionWithData(e)}else{var t=ga.getStorage(this._logger,this._storageNamePrefix());if(t){this.initializeAutomaticSessionWithData(t)}}if(!this.automaticSession.id){this.renew()}};e.prototype.initializeAutomaticSessionWithData=function(e){var t=e.split("|");if(t.length>0){this.automaticSession.id=t[0]}try{if(t.length>1){var n=+t[1];this.automaticSession.acquisitionDate=+new Date(n);this.automaticSession.acquisitionDate=this.automaticSession.acquisitionDate>0?this.automaticSession.acquisitionDate:0}if(t.length>2){var r=+t[2];this.automaticSession.renewalDate=+new Date(r);this.automaticSession.renewalDate=this.automaticSession.renewalDate>0?this.automaticSession.renewalDate:0}}catch(e){this._logger.throwInternal(kr.CRITICAL,Fr.ErrorParsingAISessionCookie,"Error parsing ai_session cookie, session will be reset: "+ga.getExceptionName(e),{exception:ga.dump(e)})}if(this.automaticSession.renewalDate===0){this._logger.throwInternal(kr.WARNING,Fr.SessionRenewalDateIsZero,"AI session renewal date is 0, session will be reset.")}};e.prototype.renew=function(){var e=(new Date).getTime();this.automaticSession.id=ga.newId(this.config&&this.config.idLength?this.config.idLength():22);this.automaticSession.acquisitionDate=e;this.automaticSession.renewalDate=e;this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate);if(!ga.canUseLocalStorage()){this._logger.throwInternal(kr.WARNING,Fr.BrowserDoesNotSupportLocalStorage,"Browser does not support local storage. Session durations will be inaccurate.")}};e.prototype.setCookie=function(e,t,n){var r=t+this.config.sessionExpirationMs();var i=n+this.config.sessionRenewalMs();var a=new Date;var s=[e,t,n];if(r<i){a.setTime(r)}else{a.setTime(i)}var o=this.config.cookieDomain?this.config.cookieDomain():null;var u=this.config.sessionExpirationMs()===0?"0":a.toUTCString();ga.setCookie(this._logger,this._storageNamePrefix(),s.join("|")+";expires="+u,o);this.cookieUpdatedTimestamp=(new Date).getTime()};e.prototype.setStorage=function(e,t,n){ga.setStorage(this._logger,this._storageNamePrefix(),[e,t,n].join("|"))};e.acquisitionSpan=864e5;e.renewalSpan=18e5;e.cookieUpdateInterval=6e4;e.cookieNameConst="ai_session";return e}();var Ks=function(){function e(){}return e}();var Xs=function(){function e(){this.id="browser";this.deviceClass="Browser"}return e}();var Js="2.5.10";var Ys=function(){function e(e){this.sdkVersion=(e.sdkExtension&&e.sdkExtension()?e.sdkExtension()+"_":"")+"javascript:"+Js}return e}();var $s=function(){function e(t,n){this.isNewUser=false;this._logger=n;var r=ga.getCookie(this._logger,e.userCookieName);if(r){this.isNewUser=false;var i=r.split(e.cookieSeparator);if(i.length>0){this.id=i[0]}}this.config=t;if(!this.id){this.id=Ar.newId(t&&t.idLength?t.idLength():22);var a=new Date;var s=Ar.toISOString(a);this.accountAcquisitionDate=s;this.isNewUser=true;a.setTime(a.getTime()+31536e6);var o=[this.id,s];var u=this.config.cookieDomain?this.config.cookieDomain():undefined;ga.setCookie(this._logger,e.userCookieName,o.join(e.cookieSeparator)+";expires="+a.toUTCString(),u);var l=t.namePrefix&&t.namePrefix()?t.namePrefix()+"ai_session":"ai_session";ga.removeStorage(this._logger,l)}this.accountId=t.accountId?t.accountId():undefined;var c=ga.getCookie(this._logger,e.authUserCookieName);if(c){c=decodeURI(c);var d=c.split(e.cookieSeparator);if(d[0]){this.authenticatedId=d[0]}if(d.length>1&&d[1]){this.accountId=d[1]}}}e.prototype.setAuthenticatedUserContext=function(t,n,r){if(r===void 0){r=false}var i=!this.validateUserInput(t)||n&&!this.validateUserInput(n);if(i){this._logger.throwInternal(kr.WARNING,Fr.SetAuthContextFailedAccountName,"Setting auth user context failed. "+"User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",true);return}this.authenticatedId=t;var a=this.authenticatedId;if(n){this.accountId=n;a=[this.authenticatedId,this.accountId].join(e.cookieSeparator)}if(r){ga.setCookie(this._logger,e.authUserCookieName,encodeURI(a),this.config.cookieDomain())}};e.prototype.clearAuthenticatedUserContext=function(){this.authenticatedId=null;this.accountId=null;ga.deleteCookie(this._logger,e.authUserCookieName)};e.prototype.validateUserInput=function(e){if(typeof e!=="string"||!e||e.match(/,|;|=| |\|/)){return false}return true};e.cookieSeparator="|";e.userCookieName="ai_user";e.authUserCookieName="ai_authUser";return e}();var Zs=function(){function e(){}return e}();var Qs=function(){function e(e,t,n,r){this.traceID=e||ga.generateW3CId();this.parentID=t;this.name=n;var i=Yn();if(!n&&i&&i.pathname){this.name=i.pathname}this.name=fa.sanitizeString(r,this.name)}return e}();var eo=function(){function e(e,t){var n=this;n.application=new Ks;n.internal=new Ys(t);if(qn()){n.sessionManager=new Gs(t,e);n.device=new Xs;n.location=new Zs;n.user=new $s(t,e);n.telemetryTrace=new Qs(undefined,undefined,undefined,e);n.session=new Ws}n.appId=function(){return null}}e.prototype.applySessionContext=function(e,t){var n=this.session;var r=this.sessionManager;var i=n||r&&r.automaticSession;if(i){if(Ar.isString(i.id)){e.ext.app.sesId=i.id}}if(n){if(Ar.isString(n.id)){e.ext.app.sesId=n.id}else{e.ext.app.sesId=r.automaticSession.id}}};e.prototype.applyOperatingSystemContxt=function(e,t){var n=this.os;if(n&&n.name){e.ext.os=n}};e.prototype.applyApplicationContext=function(e,t){var n=this.application;if(n){if(Ar.isString(n.ver)){e.tags[ls.applicationVersion]=n.ver}if(Ar.isString(n.build)){e.tags[ls.applicationBuild]=n.build}}};e.prototype.applyDeviceContext=function(e,t){var n=this.device;if(n){if(Ar.isString(n.id)){e.ext.device.localId=n.id}if(Ar.isString(n.ip)){e.ext.device.ip=n.ip}if(Ar.isString(n.model)){e.ext.device.model=n.model}if(Ar.isString(n.deviceClass)){e.ext.device.deviceClass=n.deviceClass}}};e.prototype.applyInternalContext=function(e,t){var n=this.internal;if(n){if(Ar.isString(n.agentVersion)){e.tags[ls.internalAgentVersion]=n.agentVersion}if(Ar.isString(n.sdkVersion)){e.tags[ls.internalSdkVersion]=n.sdkVersion}if(e.baseType===mi.dataType||e.baseType===$a.dataType){if(Ar.isString(n.snippetVer)){e.tags[ls.internalSnippet]=n.snippetVer}if(Ar.isString(n.sdkSrc)){e.tags[ls.internalSdkSrc]=n.sdkSrc}}}};e.prototype.applyLocationContext=function(e,t){var n=this.location;if(n){if(Ar.isString(n.ip)){e.tags[ls.locationIp]=n.ip}}};e.prototype.applyOperationContext=function(e,t){var n=this.telemetryTrace;if(n){var r=e.ext.trace||{traceID:undefined,parentID:undefined};if(Ar.isString(n.traceID)){r.traceID=n.traceID}if(Ar.isString(n.name)){r.name=n.name}if(Ar.isString(n.parentID)){r.parentID=n.parentID}e.ext.trace=r}};e.prototype.applyWebContext=function(e,t){var n=this.web;if(n){e.ext.web=e.ext.web||{};e.ext.web=n}};e.prototype.applyUserContext=function(e,t){var n=this.user;if(n){if(!e.tags){e.tags=[]}if(Ar.isString(n.accountId)){e.tags[ls.userAccountId]=n.accountId}if(Ar.isString(n.id)){e.ext.user.id=n.id}if(Ar.isString(n.authenticatedId)){e.ext.user.authId=n.authenticatedId}}};e.prototype.cleanUp=function(e,t){if(e.ext[us.DeviceExt]&&Ar.objKeys(e.ext[us.DeviceExt]).length===0){delete e.ext[us.DeviceExt]}if(e.ext[us.UserExt]&&Ar.objKeys(e.ext[us.UserExt]).length===0){delete e.ext[us.UserExt]}if(e.ext[us.WebExt]&&Ar.objKeys(e.ext[us.WebExt]).length===0){delete e.ext[us.WebExt]}if(e.ext[us.OSExt]&&Ar.objKeys(e.ext[us.OSExt]).length===0){delete e.ext[us.OSExt]}if(e.ext[us.AppExt]&&Ar.objKeys(e.ext[us.AppExt]).length===0){delete e.ext[us.AppExt]}if(e.ext[us.TraceExt]&&Ar.objKeys(e.ext[us.TraceExt]).length===0){delete e.ext[us.TraceExt]}};return e}();var to=function(e){__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.priority=110;t.identifier=cs;return t}t.getDefaultConfig=function(){var e={instrumentationKey:function(){return undefined},accountId:function(){return null},sessionRenewalMs:function(){return 30*60*1e3},samplingPercentage:function(){return 100},sessionExpirationMs:function(){return 24*60*60*1e3},cookieDomain:function(){return null},sdkExtension:function(){return null},isBrowserLinkTrackingEnabled:function(){return false},appId:function(){return null},namePrefix:function(){return undefined},idLength:function(){return 22}};return e};t.prototype.initialize=function(n,r,i,a){var s=this;e.prototype.initialize.call(this,n,r,i,a);var o=this._getTelCtx();var u=this.identifier;var l=t.getDefaultConfig();this._extensionConfig=this._extensionConfig||t.getDefaultConfig();Nr(l,(function(e,t){s._extensionConfig[e]=function(){return o.getConfig(u,e,t())}}));this.context=new eo(r.logger,this._extensionConfig);this._breezeChannel=ga.getExtension(i,ds);this.context.appId=function(){return s._breezeChannel?s._breezeChannel["_appId"]:null}};t.prototype.processTelemetry=function(e,t){if(Ar.isNullOrUndefined(e));else{t=this._getTelCtx(t);if(e.name===$a.envelopeType){t.diagLog().resetInternalMessageCount()}if(this.context.session){if(typeof this.context.session.id!=="string"){this.context.sessionManager.update()}}this._processTelemetryInternal(e,t);if(this.context&&this.context.user&&this.context.user.isNewUser){this.context.user.isNewUser=false;var n=new mi(Fr.SendBrowserInfoOnUserInit,(Kn()||{}).userAgent||"");t.diagLog().logInternalMessage(kr.CRITICAL,n)}this.processNext(e,t)}};t.prototype._processTelemetryInternal=function(e,t){if(!e.tags){e.tags=[]}if(!e.ext){e.ext={}}var n=e.ext;n[us.DeviceExt]=n[us.DeviceExt]||{};n[us.WebExt]=n[us.WebExt]||{};n[us.UserExt]=n[us.UserExt]||{};n[us.OSExt]=n[us.OSExt]||{};n[us.AppExt]=n[us.AppExt]||{};n[us.TraceExt]=n[us.TraceExt]||{};var r=this.context;r.applySessionContext(e,t);r.applyApplicationContext(e,t);r.applyDeviceContext(e,t);r.applyOperationContext(e,t);r.applyUserContext(e,t);r.applyOperatingSystemContxt(e,t);r.applyWebContext(e,t);r.applyLocationContext(e,t);r.applyInternalContext(e,t);r.cleanUp(e,t)};return t}(Fi);
54
- /*!
55
- * Application Insights JavaScript SDK - Dependencies Plugin, 2.5.10
56
- * Copyright (c) Microsoft and contributors. All rights reserved.
57
- */var no="properties";var ro=Ar.objKeys;var io=Ar.arrForEach;function ao(e,t,n){var r=0;var i=e[t];var a=e[n];if(i&&a){r=xa.GetDuration(i,a)}return r}function so(e,t,n,r,i){var a=0;var s=ao(n,r,i);if(s){a=oo(e,t,ga.msToTimeSpan(s))}return a}function oo(e,t,n){var r="ajaxPerf";var i=0;if(e&&t&&n){var a=e[r]=e[r]||{};a[t]=n;i=1}return i}function uo(e,t){var n=e.perfTiming;var r=t[no]||{};var i=0;var a=Ar.isString;var s="name";var o="Start";var u="End";var l="domainLookup";var c="connect";var d="redirect";var f="request";var p="response";var h="duration";var m="startTime";var v=l+o;var g=l+u;var y=c+o;var b=c+u;var w=f+o;var x=f+u;var S=p+o;var C=p+u;var _=d+o;var I=d=u;var N="transferSize";var A="encodedBodySize";var T="decodedBodySize";var E="serverTiming";if(n){i|=so(r,d,n,_,I);i|=so(r,l,n,v,g);i|=so(r,c,n,y,b);i|=so(r,f,n,w,x);i|=so(r,p,n,S,C);i|=so(r,"networkConnect",n,m,b);i|=so(r,"sentRequest",n,w,C);var k=n[h];if(!k){k=ao(n,m,C)||0}i|=oo(r,h,k);i|=oo(r,"perfTotal",k);var F=n[E];if(F){var D={};io(F,(function(e,t){var n=Ir(e[s]||""+t);var r=D[n]||{};Nr(e,(function(e,t){if(e!==s&&a(t)||Ar.isNumber(t)){if(r[e]){t=r[e]+";"+t}if(t||!a(t)){r[e]=t}}}));D[n]=r}));i|=oo(r,E,D)}i|=oo(r,N,n[N]);i|=oo(r,A,n[A]);i|=oo(r,T,n[T])}else{if(e.perfMark){i|=oo(r,"missing",e.perfAttempts)}}if(i){t[no]=r}}var lo=function(){function e(){var e=this;e.openDone=false;e.setRequestHeaderDone=false;e.sendDone=false;e.abortDone=false;e.stateChangeAttached=false}return e}();var co=function(){function e(t,n,r){var i=this;var a=r;var s="responseText";i.perfMark=null;i.completed=false;i.requestHeadersSize=null;i.requestHeaders=null;i.responseReceivingDuration=null;i.callbackDuration=null;i.ajaxTotalDuration=null;i.aborted=0;i.pageUrl=null;i.requestUrl=null;i.requestSize=0;i.method=null;i.status=null;i.requestSentTime=null;i.responseStartedTime=null;i.responseFinishedTime=null;i.callbackFinishedTime=null;i.endTime=null;i.xhrMonitoringState=new lo;i.clientFailure=0;i.traceID=t;i.spanID=n;li(e,i,(function(e){e.getAbsoluteUrl=function(){return e.requestUrl?ya.getAbsoluteUrl(e.requestUrl):null};e.getPathName=function(){return e.requestUrl?fa.sanitizeUrl(a,ya.getCompleteUrl(e.method,e.requestUrl)):null};e.CreateTrackItem=function(t,n,r){e.ajaxTotalDuration=Math.round(xa.GetDuration(e.requestSentTime,e.responseFinishedTime)*1e3)/1e3;if(e.ajaxTotalDuration<0){return null}var i=(l={id:"|"+e.traceID+"."+e.spanID,target:e.getAbsoluteUrl(),name:e.getPathName(),type:t,duration:e.ajaxTotalDuration,success:+e.status>=200&&+e.status<400,responseCode:+e.status,method:e.method},l[no]={HttpMethod:e.method},l);uo(e,i);if(n){if(ro(e.requestHeaders).length>0){i[no]=i[no]||{};i[no].requestHeaders=e.requestHeaders}}if(r){var a=r();if(a){var o=a.correlationContext;if(o){i.correlationContext=o}if(a.headerMap){if(ro(a.headerMap).length>0){i[no]=i[no]||{};i[no].responseHeaders=a.headerMap}}if(e.status>=400){var u=a.type;i[no]=i[no]||{};if(u===""||u==="text"){i[no][s]=a[s]?a.statusText+" - "+a[s]:a.statusText}if(u==="json"){i[no][s]=a.response?a.statusText+" - "+JSON.stringify(a.response):a.statusText}}}}return i;var l}}))}return e}();
58
- /*!
59
- * Application Insights JavaScript SDK - Dependencies Plugin, 2.5.10
60
- * Copyright (c) Microsoft and contributors. All rights reserved.
61
- */var fo=function(){function e(t,n){var r=this;r.traceFlag=e.DEFAULT_TRACE_FLAG;r.version=e.DEFAULT_VERSION;if(t&&e.isValidTraceId(t)){r.traceId=t}else{r.traceId=ga.generateW3CId()}if(n&&e.isValidSpanId(n)){r.spanId=n}else{r.spanId=ga.generateW3CId().substr(0,16)}}e.isValidTraceId=function(e){return e.match(/^[0-9a-f]{32}$/)&&e!=="00000000000000000000000000000000"};e.isValidSpanId=function(e){return e.match(/^[0-9a-f]{16}$/)&&e!=="0000000000000000"};e.prototype.toString=function(){var e=this;return e.version+"-"+e.traceId+"-"+e.spanId+"-"+e.traceFlag};e.DEFAULT_TRACE_FLAG="01";e.DEFAULT_VERSION="00";return e}();
62
- /*!
63
- * Application Insights JavaScript SDK - Dependencies Plugin, 2.5.10
64
- * Copyright (c) Microsoft and contributors. All rights reserved.
65
- */var po="ai.ajxmn.";var ho="diagLog";var mo="ajaxData";var vo="throwInternal";var go="fetch";var yo=Ar.isNullOrUndefined;var bo=Ar.arrForEach;var wo=0;function xo(){var e=Vn();if(!e||yo(e.Request)||yo(e.Request[An])||yo(e[go])){return null}return e[go]}function So(e){var t=false;if(typeof XMLHttpRequest!==In&&!yo(XMLHttpRequest)){var n=XMLHttpRequest[An];t=!yo(n)&&!yo(n.open)&&!yo(n.send)&&!yo(n.abort)}var r=ga.getIEVersion();if(r&&r<9){t=false}if(t){try{var i=new XMLHttpRequest;i[mo]={};var a=XMLHttpRequest[An].open;XMLHttpRequest[An].open=a}catch(n){t=false;_o(e,Fr.FailedMonitorAjaxOpen,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:ga.dump(n)})}}return t}function Co(e){var t="";try{if(!yo(e)&&!yo(e[mo])&&!yo(e[mo].requestUrl)){t+="(url: '"+e[mo].requestUrl+"')"}}catch(e){}return t}function _o(e,t,n,r,i){e[ho]()[vo](kr.CRITICAL,t,n,r,i)}function Io(e,t,n,r,i){e[ho]()[vo](kr.WARNING,t,n,r,i)}function No(e,t,n){return function(r){_o(e,t,n,{ajaxDiagnosticsMessage:Co(r.inst),exception:ga.dump(r.err)})}}function Ao(e,t){if(e&&t){return e.indexOf(t)}return-1}var To=function(e){__extends(t,e);function t(){var n=e.call(this)||this;n.identifier=t.identifier;n.priority=120;var r="trackDependencyDataInternal";var i=Yn();var a=false;var s=false;var o=i&&i.host&&i.host.toLowerCase();var u=t.getEmptyConfig();var l=false;var c=0;var d;var f;var p;var h;var m=false;var v=0;var g=false;var y=[];var b={};li(t,n,(function(e,n){e.initialize=function(r,a,s,o){if(!e.isInitialized()){n.initialize(r,a,s,o);var c=e._getTelCtx();var y=t.getDefaultConfig();Nr(y,(function(e,n){u[e]=c.getConfig(t.identifier,e,n)}));var b=u.distributedTracingMode;l=u.enableRequestHeaderTracking;m=u.enableAjaxPerfTracking;v=u.maxAjaxCallsPerView;g=u.enableResponseHeaderTracking;p=b===ca.AI||b===ca.AI_AND_W3C;f=b===ca.AI_AND_W3C||b===ca.W3C;if(m){var w=r.instrumentationKey||"unkwn";if(w.length>5){h=po+w.substring(w.length-5)+"."}else{h=po+w+"."}}if(u.disableAjaxTracking===false){x()}i();if(s.length>0&&s){var S=void 0,C=0;while(!S&&C<s.length){if(s[C]&&s[C].identifier===cs){S=s[C]}C++}if(S){d=S.context}}}};e.teardown=function(){bo(y,(function(e){e.rm()}));y=[];a=false;s=false;e.setInitialized(false)};e.trackDependencyData=function(t,n){e[r](t,n)};e.includeCorrelationHeaders=function(t,n,r,i){var a=e["_currentWindowHost"]||o;if(n){if(ba.canIncludeCorrelationHeader(u,t.getAbsoluteUrl(),a)){if(!r){r={}}r.headers=new Headers(r.headers||(n instanceof Request?n.headers||{}:{}));if(p){var s="|"+t.traceID+"."+t.spanID;r.headers.set(da.requestIdHeader,s);if(l){t.requestHeaders[da.requestIdHeader]=s}}var c=u.appId||d&&d.appId();if(c){r.headers.set(da.requestContextHeader,da.requestContextAppIdFormat+c);if(l){t.requestHeaders[da.requestContextHeader]=da.requestContextAppIdFormat+c}}if(f){var h=new fo(t.traceID,t.spanID);r.headers.set(da.traceParentHeader,h.toString());if(l){t.requestHeaders[da.traceParentHeader]=h.toString()}}}return r}else if(i){if(ba.canIncludeCorrelationHeader(u,t.getAbsoluteUrl(),a)){if(p){var s="|"+t.traceID+"."+t.spanID;i.setRequestHeader(da.requestIdHeader,s);if(l){t.requestHeaders[da.requestIdHeader]=s}}var c=u.appId||d&&d.appId();if(c){i.setRequestHeader(da.requestContextHeader,da.requestContextAppIdFormat+c);if(l){t.requestHeaders[da.requestContextHeader]=da.requestContextAppIdFormat+c}}if(f){var h=new fo(t.traceID,t.spanID);i.setRequestHeader(da.traceParentHeader,h.toString());if(l){t.requestHeaders[da.traceParentHeader]=h.toString()}}}return i}return undefined};e[r]=function(t,n,r){if(v===-1||c<v){if((u.distributedTracingMode===ca.W3C||u.distributedTracingMode===ca.AI_AND_W3C)&&typeof t.id==="string"&&t.id[t.id.length-1]!=="."){t.id+="."}if(Ar.isNullOrUndefined(t.startTime)){t.startTime=new Date}var i=os.create(t,Qa.dataType,Qa.envelopeType,e[ho](),n,r);e.core.track(i)}else if(c===v){_o(e,Fr.MaxAjaxPerPVExceeded,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",true)}++c};function i(){var t=xo();if(!t){return}var n=Vn();var r=t.polyfill;if(u.disableFetchTracking===false){y.push(oa(n,go,{req:function(t,n,i){var o;if(a&&!S(null,n,i)&&!(r&&s)){var u=t.ctx();o=F(n,i);var l=e.includeCorrelationHeaders(o,n,i);if(l!==i){t.set(1,l)}u.data=o}},rsp:function(e,t){var n=e.ctx().data;if(n){e.rslt=e.rslt.then((function(t){P(e,(t||{}).status,t,n,(function(){var e={statusText:t.statusText,headerMap:null,correlationContext:L(t)};if(g){var n={};t.headers.forEach((function(e,t){n[t]=e}));e.headerMap=n}return e}));return t}))["catch"]((function(r){P(e,0,t,n,null);throw r}))}},hkErr:No(e,Fr.FailedMonitorAjaxOpen,"Failed to monitor Window.fetch, monitoring data for this fetch call may be incorrect.")}));a=true}else if(r){y.push(oa(n,go,{req:function(e,t,n){S(null,t,n)}}))}if(r){n[go].polyfill=r}}function w(e,t,n){y.push(sa(e,t,n))}function x(){if(So(e)&&!s){w(XMLHttpRequest,"open",{req:function(e,t,n,r){var i=e.inst;var a=i[mo];if(!S(i,n)&&C(i,true)&&(!a||!a.xhrMonitoringState.openDone)){_(i,t,n,r)}},hkErr:No(e,Fr.FailedMonitorAjaxOpen,"Failed to monitor XMLHttpRequest.open, monitoring data for this ajax call may be incorrect.")});w(XMLHttpRequest,"send",{req:function(t,n){var r=t.inst;var i=r[mo];if(C(r)&&!i.xhrMonitoringState.sendDone){E("xhr",i);i.requestSentTime=xa.Now();r=e.includeCorrelationHeaders(i,undefined,undefined,r);i.xhrMonitoringState.sendDone=true}},hkErr:No(e,Fr.FailedMonitorAjaxSend,"Failed to monitor XMLHttpRequest, monitoring data for this ajax call may be incorrect.")});w(XMLHttpRequest,"abort",{req:function(e){var t=e.inst;var n=t[mo];if(C(t)&&!n.xhrMonitoringState.abortDone){n.aborted=1;n.xhrMonitoringState.abortDone=true}},hkErr:No(e,Fr.FailedMonitorAjaxAbort,"Failed to monitor XMLHttpRequest.abort, monitoring data for this ajax call may be incorrect.")});if(l){w(XMLHttpRequest,"setRequestHeader",{req:function(e,t,n){var r=e.inst;if(C(r)){r[mo].requestHeaders[t]=n}},hkErr:No(e,Fr.FailedMonitorAjaxSetRequestHeader,"Failed to monitor XMLHttpRequest.setRequestHeader, monitoring data for this ajax call may be incorrect.")})}s=true}}function S(e,t,n){var r=false;var i=((!Ar.isString(t)?(t||{}).url||"":t)||"").toLowerCase();var a=Ao(i,"?");var s=Ao(i,"#");if(a===-1||s!==-1&&s<a){a=s}if(a!==-1){i=i.substring(0,a)}if(!yo(e)){r=e[Sa]===true||i[Sa]===true}else if(!yo(t)){r=(typeof t==="object"?t[Sa]===true:false)||(n?n[Sa]===true:false)}if(r){if(!b[i]){b[i]=1}}else{if(b[i]){r=true}}return r}function C(e,t){var n=true;var r=s;if(!yo(e)){n=t===true||!yo(e[mo])}return r&&n}function _(t,n,r,i){var a=d&&d.telemetryTrace&&d.telemetryTrace.traceID||ga.generateW3CId();var s=ga.generateW3CId().substr(0,16);var o=new co(a,s,e[ho]());o.method=n;o.requestUrl=r;o.xhrMonitoringState.openDone=true;o.requestHeaders={};o.async=i;t[mo]=o;I(t)}function I(t){t[mo].xhrMonitoringState.stateChangeAttached=Er.Attach(t,"readystatechange",(function(){try{if(t&&t.readyState===4&&C(t)){A(t)}}catch(r){var n=ga.dump(r);if(!n||Ao(n.toLowerCase(),"c00c023f")===-1){_o(e,Fr.FailedMonitorAjaxRSC,"Failed to monitor XMLHttpRequest 'readystatechange' event handler, monitoring data for this ajax call may be incorrect.",{ajaxDiagnosticsMessage:Co(t),exception:n})}}}))}function N(e){try{var t=e.responseType;if(t===""||t==="text"){return e.responseText}}catch(e){}return null}function A(t){var n=t[mo];n.responseFinishedTime=xa.Now();n.status=t.status;function i(n,r){var i=r||{};i["ajaxDiagnosticsMessage"]=Co(t);if(n){i["exception"]=ga.dump(n)}Io(e,Fr.FailedMonitorAjaxDur,"Failed to calculate the duration of the ajax call, monitoring data for this ajax call won't be sent.",i)}k("xmlhttprequest",n,(function(){try{var a=n.CreateTrackItem("Ajax",l,(function(){var e={statusText:t.statusText,headerMap:null,correlationContext:T(t),type:t.responseType,responseText:N(t),response:t.response};if(g){var n=t.getAllResponseHeaders();if(n){var r=Ar.strTrim(n).split(/[\r\n]+/);var i={};bo(r,(function(e){var t=e.split(": ");var n=t.shift();var r=t.join(": ");i[n]=r}));e.headerMap=i}}return e}));if(a){e[r](a)}else{i(null,{requestSentTime:n.requestSentTime,responseFinishedTime:n.responseFinishedTime})}}finally{try{t[mo]=null}catch(e){}}}),(function(e){i(e,null)}))}function T(t){try{var n=t.getAllResponseHeaders();if(n!==null){var r=Ao(n.toLowerCase(),da.requestContextHeaderLowerCase);if(r!==-1){var i=t.getResponseHeader(da.requestContextHeader);return ba.getCorrelationContext(i)}}}catch(n){Io(e,Fr.FailedMonitorAjaxGetCorrelationHeader,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{ajaxDiagnosticsMessage:Co(t),exception:ga.dump(n)})}}function E(e,t){if(t.requestUrl&&h&&m){var n=Zn();if(n&&Ar.isFunction(n.mark)){wo++;var r=h+e+"#"+wo;n.mark(r);var i=n.getEntriesByName(r);if(i&&i.length===1){t.perfMark=i[0]}}}}function k(e,t,n,r){var i=t.perfMark;var a=Zn();var s=u.maxAjaxPerfLookupAttempts;var o=u.ajaxPerfLookupDelay;var l=t.requestUrl;var c=0;(function u(){try{if(a&&i){c++;var d=null;var f=a.getEntries();for(var p=f.length-1;p>=0;p--){var h=f[p];if(h){if(h.entryType==="resource"){if(h.initiatorType===e&&(Ao(h.name,l)!==-1||Ao(l,h.name)!==-1)){d=h}}else if(h.entryType==="mark"&&h.name===i.name){t.perfTiming=d;break}if(h.startTime<i.startTime-1e3){break}}}}if(!i||t.perfTiming||c>=s||t.async===false){if(i&&Ar.isFunction(a.clearMarks)){a.clearMarks(i.name)}t.perfAttempts=c;n()}else{setTimeout(u,o)}}catch(e){r(e)}})()}function F(t,n){var r=d&&d.telemetryTrace&&d.telemetryTrace.traceID||ga.generateW3CId();var i=ga.generateW3CId().substr(0,16);var a=new co(r,i,e[ho]());a.requestSentTime=xa.Now();if(t instanceof Request){a.requestUrl=t?t.url:""}else{a.requestUrl=t}var s="GET";if(n&&n.method){s=n.method}else if(t&&t instanceof Request){s=t.method}a.method=s;var o={};if(l){var u=new Headers((n?n.headers:0)||(t instanceof Request?t.headers||{}:{}));u.forEach((function(e,t){o[t]=e}))}a.requestHeaders=o;E("fetch",a);return a}function D(t){var n="";try{if(!yo(t)){if(typeof t==="string"){n+="(url: '"+t+"')"}else{n+="(url: '"+t.url+"')"}}}catch(t){_o(e,Fr.FailedMonitorAjaxOpen,"Failed to grab failed fetch diagnostics message",{exception:ga.dump(t)})}return n}function P(t,n,i,a,s,o){if(!a){return}function u(t,n,r){var a=r||{};a["fetchDiagnosticsMessage"]=D(i);if(n){a["exception"]=ga.dump(n)}Io(e,t,"Failed to calculate the duration of the fetch call, monitoring data for this fetch call won't be sent.",a)}a.responseFinishedTime=xa.Now();a.status=n;k("fetch",a,(function(){var t=a.CreateTrackItem("Fetch",l,s);if(t){e[r](t)}else{u(Fr.FailedMonitorAjaxDur,null,{requestSentTime:a.requestSentTime,responseFinishedTime:a.responseFinishedTime})}}),(function(e){u(Fr.FailedMonitorAjaxGetCorrelationHeader,e,null)}))}function L(t){if(t&&t.headers){try{var n=t.headers.get(da.requestContextHeader);return ba.getCorrelationContext(n)}catch(n){Io(e,Fr.FailedMonitorAjaxGetCorrelationHeader,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{fetchDiagnosticsMessage:D(t),exception:ga.dump(n)})}}}}));return n}t.getDefaultConfig=function(){var e={maxAjaxCallsPerView:500,disableAjaxTracking:false,disableFetchTracking:true,disableCorrelationHeaders:false,distributedTracingMode:ca.AI,correlationHeaderExcludedDomains:["*.blob.core.windows.net","*.blob.core.chinacloudapi.cn","*.blob.core.cloudapi.de","*.blob.core.usgovcloudapi.net"],correlationHeaderDomains:undefined,appId:undefined,enableCorsCorrelation:false,enableRequestHeaderTracking:false,enableResponseHeaderTracking:false,enableAjaxErrorStatusText:false,enableAjaxPerfTracking:false,maxAjaxPerfLookupAttempts:3,ajaxPerfLookupDelay:25};return e};t.getEmptyConfig=function(){var e=this.getDefaultConfig();Nr(e,(function(t){e[t]=undefined}));return e};t.prototype.processTelemetry=function(e,t){this.processNext(e,t)};t.identifier="AjaxDependencyPlugin";return t}(Fi);
66
- /*!
67
- * Application Insights JavaScript SDK - Web, 2.5.10
68
- * Copyright (c) Microsoft and contributors. All rights reserved.
69
- */var Eo;var ko=function(){function e(e){var t=this;t._snippetVersion=""+(e.sv||e.version||"");e.queue=e.queue||[];e.version=e.version||2;var n=e.config||{};if(n.connectionString){var r=Aa.parse(n.connectionString);var i=r.ingestionendpoint;n.endpointUrl=i?i+"/v2/track":n.endpointUrl;n.instrumentationKey=r.instrumentationkey||n.instrumentationKey}t.appInsights=new bs;t.properties=new to;t.dependencies=new To;t.core=new Ji;t.snippet=e;t.config=n;t.getSKUDefaults()}e.prototype.trackEvent=function(e,t){this.appInsights.trackEvent(e,t)};e.prototype.trackPageView=function(e){var t=e||{};this.appInsights.trackPageView(t)};e.prototype.trackPageViewPerformance=function(e){var t=e||{};this.appInsights.trackPageViewPerformance(t)};e.prototype.trackException=function(e){if(!e.exception&&e.error){e.exception=e.error}this.appInsights.trackException(e)};e.prototype._onerror=function(e){this.appInsights._onerror(e)};e.prototype.trackTrace=function(e,t){this.appInsights.trackTrace(e,t)};e.prototype.trackMetric=function(e,t){this.appInsights.trackMetric(e,t)};e.prototype.startTrackPage=function(e){this.appInsights.startTrackPage(e)};e.prototype.stopTrackPage=function(e,t,n,r){this.appInsights.stopTrackPage(e,t,n,r)};e.prototype.startTrackEvent=function(e){this.appInsights.startTrackEvent(e)};e.prototype.stopTrackEvent=function(e,t,n){this.appInsights.stopTrackEvent(e,t,n)};e.prototype.addTelemetryInitializer=function(e){return this.appInsights.addTelemetryInitializer(e)};e.prototype.setAuthenticatedUserContext=function(e,t,n){if(n===void 0){n=false}this.properties.context.user.setAuthenticatedUserContext(e,t,n)};e.prototype.clearAuthenticatedUserContext=function(){this.properties.context.user.clearAuthenticatedUserContext()};e.prototype.trackDependencyData=function(e){this.dependencies.trackDependencyData(e)};e.prototype.flush=function(e){var t=this;if(e===void 0){e=true}xi(this.core,(function(){return"AISKU.flush"}),(function(){Ar.arrForEach(t.core.getTransmissionControls(),(function(t){Ar.arrForEach(t,(function(t){t.flush(e)}))}))}),null,e)};e.prototype.onunloadFlush=function(e){if(e===void 0){e=true}Ar.arrForEach(this.core.getTransmissionControls(),(function(t){Ar.arrForEach(t,(function(t){if(t.onunloadFlush){t.onunloadFlush()}else{t.flush(e)}}))}))};e.prototype.loadAppInsights=function(e,t,n){var r=this;if(e===void 0){e=false}var i=this;function a(t){if(t){var n="";if(!Ar.isNullOrUndefined(i._snippetVersion)){n+=i._snippetVersion}if(e){n+=".lg"}if(i.context&&i.context.internal){i.context.internal.snippetVer=n||"-"}Nr(i,(function(e,n){if(Ar.isString(e)&&!Ar.isFunction(n)&&e.substring(0,1)!=="_"){t[e]=n}}))}}if(e&&i.config.extensions&&i.config.extensions.length>0){throw new Error("Extensions not allowed in legacy mode")}xi(i.core,(function(){return"AISKU.loadAppInsights"}),(function(){var e=[];var s=new zs;e.push(s);e.push(i.properties);e.push(i.dependencies);e.push(i.appInsights);i.core.initialize(i.config,e,t,n);i.context=i.properties.context;if(Eo&&i.context){i.context.internal.sdkSrc=Eo}a(i.snippet);i.emptyQueue();i.pollInternalLogs();i.addHousekeepingBeforeUnload(r)}));return i};e.prototype.updateSnippetDefinitions=function(e){Nr(this,(function(t,n){if(Ar.isString(t)){e[t]=n}}))};e.prototype.emptyQueue=function(){var e=this;try{if(ga.isArray(e.snippet.queue)){var t=e.snippet.queue.length;for(var n=0;n<t;n++){var r=e.snippet.queue[n];r()}e.snippet.queue=undefined;delete e.snippet.queue}}catch(e){var i={};if(e&&Ar.isFunction(e.toString)){i.exception=e.toString()}}};e.prototype.pollInternalLogs=function(){this.core.pollInternalLogs()};e.prototype.addHousekeepingBeforeUnload=function(e){if(qn()||zn()){var t=function(){e.onunloadFlush(false);var t=e.appInsights.core["_extensions"][cs];if(t&&t.context&&t.context._sessionManager){t.context._sessionManager.backup()}};if(!e.appInsights.config.disableFlushOnBeforeUnload){var n=Ar.addEventHandler("beforeunload",t);n=Ar.addEventHandler("pagehide",t)||n;if(!n&&!rr()){e.appInsights.core.logger.throwInternal(kr.CRITICAL,Fr.FailedToAddHandlerForOnBeforeUnload,"Could not add handler for beforeunload and pagehide")}}if(!e.appInsights.config.disableFlushOnUnload){Ar.addEventHandler("pagehide",t)}}};e.prototype.getSKUDefaults=function(){var e=this;e.config.diagnosticLogInterval=e.config.diagnosticLogInterval&&e.config.diagnosticLogInterval>0?e.config.diagnosticLogInterval:1e4};return e}();(function(){var e=null;var t=["://js.monitor.azure.com/","://az416426.vo.msecnd.net/"];try{var n=(document||{}).currentScript;if(n){e=n.src}}catch(e){}if(e){try{var r=e.toLowerCase();if(r){var i="";for(var a=0;a<t.length;a++){if(r.indexOf(t[a])!==-1){i="cdn"+(a+1);if(r.indexOf("/scripts/")===-1){if(r.indexOf("/next/")!==-1){i+="-next"}else if(r.indexOf("/beta/")!==-1){i+="-beta"}}Eo=i+"";break}}}}catch(e){}}})();var Fo=undefined&&undefined.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")a=Reflect.decorate(e,t,n,r);else for(var o=e.length-1;o>=0;o--)if(s=e[o])a=(i<3?s(a):i>3?s(t,n,a):s(t,n))||a;return i>3&&a&&Object.defineProperty(t,n,a),a};var Do;(function(e){e[e["Unauthorized"]=0]="Unauthorized";e[e["Authenticated"]=1]="Authenticated";e[e["Error"]=2]="Error"})(Do||(Do={}));var Po=function(){function e(){}return e}();function Lo(){return{authenticationState:Do.Unauthorized,jwt:N,reactNativeInterop:N,iframeInterop:N,appConfiguration:N,ignoreExistingSelection:false}}var Mo=function(e){__extends(t,e);function t(){return e.call(this,Lo())||this}return t}(_);Mo=Fo([C({name:"sss-session",resettable:true})],Mo);var Oo=new Mo;var Ro=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;n.store=t;n.appConfiguration$=n.select((function(e){return e.appConfiguration}));return n}Object.defineProperty(t.prototype,"configuration",{get:function(){var e=this.getValue().appConfiguration;if(U(e)){throw Error("App configuration is not yet loaded")}return e.value},enumerable:false,configurable:true});return t}(I);var Uo=new Ro(Oo);var Bo=function(){function e(){this.appInsights=new me((function(){return new ko({config:{instrumentationKey:Uo.configuration.AppInsightsKey,enableAutoRouteTracking:true,autoTrackPageVisitTime:true,maxBatchInterval:1e3,enableUnhandledPromiseRejectionTracking:true}})}))}e.prototype.init=function(){var e=this;this.appInsights.value.loadAppInsights();u((function(t){return e.appInsightsErrorHandler(t)}))};e.prototype.getAppInsights=function(){return this.appInsights.value};e.prototype.addCustomProperties=function(e){this.appInsights.value.addTelemetryInitializer((function(t){t.data=t.data?t.data:{};for(var n=0,r=Object.entries(e);n<r.length;n++){var i=r[n],a=i[0],s=i[1];t.data[a]=s}}))};e.prototype.trackErrorTrace=function(e){this.appInsights.value.trackTrace({message:e,severityLevel:as.Error})};e.prototype.appInsightsErrorHandler=function(e){this.appInsights.value.trackException({error:e,severityLevel:as.Error});var t=function(e){return console.error(e)};t(e)};return e}();var Vo=new Bo;var jo=function(){function e(){}e.prototype.submitChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,O().url("super-choice/promoted-fund").post(e).badRequest((function(){throw new Error("Failed to process Promoted Fund choice request")})).text()]}))}))};e.prototype.submitDefaultChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,O().url("super-choice/promoted-fund/default").post(e).badRequest((function(){throw new Error("Failed to process Promoted Default Fund choice request")})).text()]}))}))};e.prototype.submitDefaultChoiceWithJoinAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,O().url("super-choice/promoted-fund/default-with-join").post(e).badRequest((function(){throw new Error("Failed to process Promoted Default Fund With Join choice request")})).text()]}))}))};return e}();var qo=new jo;var Ho=function(){function e(){}e.prototype.submitSlateChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,O().url("super-choice/slate").post(e).badRequest((function(){throw new Error("Failed to process Slate join request")})).text()]}))}))};return e}();var zo=new Ho;var Wo={clean:function(e){return e.replace(/ /g,"")}};var Go=3e4;var Ko=function(){function e(e,t){var n=this;this.handle=function(e){return __awaiter(n,void 0,void 0,(function(){var t,n;return __generator(this,(function(r){switch(r.label){case 0:if(!(e.detail.sender==="super-campaign"||e.detail.sender==="featured-funds"))return[3,6];t=e.detail.fundJoinInfo;n=t.fundType;switch(n){case"Promoted":return[3,1];case"DefinedBenefits":return[3,2];case"PromotedDefault":return[3,4];case"PromotedDefaultWithJoin":return[3,5]}return[3,6];case 1:this.handlePromotedFundJoined(t);return[3,6];case 2:return[4,this.handleDefinedBenefitsJoined(t)];case 3:r.sent();return[3,6];case 4:this.handlePromotedDefaultFundJoined(t);return[3,6];case 5:this.handlePromotedDefaultFundWithJoinWasJoined(t);return[3,6];case 6:return[2,Promise.resolve()]}}))}))};this.stringIsNullOrEmtpty=function(e){return!(typeof e==="string"&&e.trim().length>0)};this.handlePromotedFundJoined=function(e){if(n.stringIsNullOrEmtpty(e.memberNumber)||n.stringIsNullOrEmtpty(e.usi)){Vo.trackErrorTrace("Super Campaign did not return (Promoted) memberNumber and/or usi");return}var t=Wo.clean(e.usi);var r=M.toUndefined(E.defaultFundUsi);k.navigateInternallyToStandardChoice({history:n.history,fundName:e.fundName,promotedFundId:e.fundId,fundDetails:{type:"promoted",fundName:e.fundName,fundUsi:t,memberNumber:e.memberNumber,promotedFundId:e.fundId},handleSubmitFn:function(i){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:if(!(e.fundId===z.fundId))return[3,2];return[4,zo.submitSlateChoiceAsync(Object.assign({memberNumber:e.memberNumber,memberFirstName:e.memberFirstName,memberFamilyName:e.memberFamilyName,standardChoiceFormSignature:i,defaultFundUsiSet:r,placementId:this.placementId},this.PromotedFundsConfig))];case 1:n.sent();return[3,4];case 2:return[4,qo.submitChoiceAsync(Object.assign({fundId:e.fundId,memberNumber:e.memberNumber,memberFirstName:e.memberFirstName,memberFamilyName:e.memberFamilyName,usi:t,standardChoiceFormSignature:i,defaultFundUsiSet:r,placementId:this.placementId},this.PromotedFundsConfig))];case 3:n.sent();n.label=4;case 4:return[2]}}))}))}})};this.handlePromotedDefaultFundJoined=function(e){if(n.stringIsNullOrEmtpty(e.usi)){Vo.trackErrorTrace("Super Campaign did not return (PromotedDefault) usi");return}var t=Wo.clean(e.usi);k.navigateInternallyToStandardChoice({history:n.history,fundName:e.fundName,promotedFundId:e.fundId,fundDetails:{type:"promotedDefault",fundName:e.fundName,fundUsi:t,promotedFundId:e.fundId},handleSubmitFn:function(r){return qo.submitDefaultChoiceAsync(Object.assign({fundId:e.fundId,usi:t,standardChoiceFormSignature:r,defaultFundUsiSet:M.toUndefined(E.defaultFundUsi),placementId:n.placementId},n.PromotedFundsConfig))}})};this.handlePromotedDefaultFundWithJoinWasJoined=function(e){if(n.stringIsNullOrEmtpty(e.memberNumber)||n.stringIsNullOrEmtpty(e.usi)){Vo.trackErrorTrace("Super Campaign did not return (PromotedDefaultWithJoin) memberNumber and/or usi");return}var t=Wo.clean(e.usi);k.navigateInternallyToStandardChoice({history:n.history,fundName:e.fundName,promotedFundId:e.fundId,fundDetails:{type:"promotedDefaultWithJoin",fundName:e.fundName,fundUsi:t,memberNumber:e.memberNumber,promotedFundId:e.fundId},handleSubmitFn:function(r){return qo.submitDefaultChoiceWithJoinAsync(Object.assign({fundId:e.fundId,memberNumber:e.memberNumber,memberFirstName:e.memberFirstName,memberFamilyName:e.memberFamilyName,usi:t,standardChoiceFormSignature:r,defaultFundUsiSet:M.toUndefined(E.defaultFundUsi),placementId:n.placementId},n.PromotedFundsConfig))}})};this.handleDefinedBenefitsJoined=function(e){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(this.stringIsNullOrEmtpty(e.memberNumber)||this.stringIsNullOrEmtpty(e.usi)){Vo.trackErrorTrace("Super Campaign did not return (DefinedBenefits) memberNumber and/or usi");return[2]}return[4,R.submitDefinedBenefitsChoiceAsync(Object.assign({fundUsi:Wo.clean(e.usi),fundId:e.fundId,memberNumber:e.memberNumber,memberElectContributionRatePreTax:e.memberElectContributionRatePreTax,memberElectContributionRatePostTax:e.memberElectContributionRatePostTax},this.PromotedFundsConfig))];case 1:t.sent();E.markSuperSelectionAsSubmitted();return[2]}}))}))};this.history=t;this.placementId=e}Object.defineProperty(e.prototype,"PromotedFundsConfig",{get:function(){return E.promotedFundsConfig},enumerable:false,configurable:true});return e}();var Xo=e("sss_super_campaign_featured_funds",function(){function e(e){var t=this;n(this,e);this.currentView="featured-funds";this.subscribeToEvents=function(){for(var e in t.eventHandlers){document.addEventListener(e,t.eventHandlers[e])}};this.unsubscribeFromEvents=function(){for(var e in t.eventHandlers){document.removeEventListener(e,t.eventHandlers[e])}};this.backClicked=function(){k.navigateInternally(t.history,F.ChoicePage);return Promise.resolve()};this.cancelClicked=function(){t.currentView="featured-funds";return Promise.resolve()};this.continueClicked=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:this.currentView="fund-join";return[4,fn({sender:e.detail.sender,placementId:"byof",fundId:e.detail.fundId,fundUsi:e.detail.fundUsi,fundName:e.detail.fundName,fundType:e.detail.fundType})];case 1:t.sent();return[2]}}))}))};this.fundPanelShown=function(e){return __awaiter(t,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:if(!(e.detail.sender==="featured-funds"))return[3,2];t=e.detail.shownFunds.map((function(e){return e.fundId}));return[4,E.viewSuperFundPanelAsync("byof",t)];case 1:n.sent();n.label=2;case 2:return[2]}}))}))};this.eventHandlers={"back-clicked":this.backClicked.bind(this),"continue-clicked":this.continueClicked.bind(this),"cancel-clicked":this.cancelClicked.bind(this),"featured-fund-panel-shown":this.fundPanelShown.bind(this),"promoted-fund-joined":new Ko("byof",this.history).handle}}e.prototype.componentWillLoad=function(){if(E.isFeaturedFundsEnabled&&E.isUsingSuperCampaign&&M.isSome(E.backendUrl)&&M.isSome(E.state.jwt)){this.backendUrl=E.backendUrl.value;this.accessToken=E.state.jwt.value;this.unsubscribeFromEvents();this.subscribeToEvents();E.hideFooterSection=true}else{k.navigateInternally(this.history,F.MyOwnFund)}};e.prototype.disconnectedCallback=function(){this.unsubscribeFromEvents();E.hideFooterSection=false};e.prototype.render=function(){return r(s,null,this.currentView==="featured-funds"&&r("sss-header-section",null),r("div",{class:{"flex flex-col w-full justify-center items-center mt-11 mx-auto":this.currentView==="featured-funds","-mt-20":this.currentView==="fund-join"}},this.currentView==="featured-funds"&&r("sss-custom-fund",null),r("apollo-super-campaign-featured-funds",{"backend-url":this.backendUrl,"access-token":this.accessToken})))};return e}());D(Xo);var Jo=function(){function e(){}Object.defineProperty(e,"Instance",{get:function(){return this.instance||(this.instance=new this)},enumerable:false,configurable:true});e.prototype.PostError=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){O().url("super-campaign/errors").post(e);return[2]}))}))};return e}();var Yo={create:function(e){var t="Not set";if(M.isSome(E.isDefinedBenefitsEligible)){t=E.isDefinedBenefitsEligible.value?"True":"False"}return{isDefinedBenefitsEligible:t,superCampaignEnabled:e}}};var $o=e("sss_super_campaign_host",function(){function e(e){var t=this;n(this,e);this.scriptImported=false;this.getEnvironmentTag=function(){var e=window.location.hostname.toLowerCase().split(".")[0];switch(e){case"autodev-partner":return"autodev";case"test-partner":return"test";case"partner":return"prod";case"sandbox-partner":return"sandbox";default:return"autodev"}};this.subscribeToSuperCampaignEvents=function(){for(var e in t.superCampaignEventHandlers){document.addEventListener(e,t.superCampaignEventHandlers[e])}};this.unSubscribeFromSuperCampaignEvents=function(){for(var e in t.superCampaignEventHandlers){document.removeEventListener(e,t.superCampaignEventHandlers[e])}};this.superCampaignLoaded=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(e.detail.sender==="super-campaign"))return[3,2];E.superCampaignComponentStatus=W.Loaded;clearTimeout(this.loadingTimeoutRef);return[4,lt.Instance.TrackSuperCampaignActivationSucceededAsync({})];case 1:t.sent();t.label=2;case 2:return[2,Promise.resolve()]}}))}))};this.superCampaignLoadFailed=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(e.detail.sender==="super-campaign"))return[3,2];return[4,this.activateFallbackMechanism({type:"SuperCampaignActivationFailed",reason:e.detail.reason||"Unknown"})];case 1:t.sent();t.label=2;case 2:return[2]}}))}))};this.superCampaignFailed=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(e.detail.sender==="super-campaign"))return[3,2];return[4,this.activateFallbackMechanism({type:"SuperCampaignOperationFailed",reason:e.detail.reason||"Unknown"})];case 1:t.sent();t.label=2;case 2:return[2]}}))}))};this.chooseAnotherFundRequested=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(e.detail.sender==="super-campaign"))return[3,2];return[4,k.navigateInternally(this.history,F.MyOwnFund)];case 1:t.sent();t.label=2;case 2:return[2]}}))}))};this.fundPanelShown=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(e.detail.sender==="super-campaign"))return[3,2];E.setSuperCampaignPromotedFundsShown(e.detail.shownFunds);return[4,E.viewSuperFundPanelAsync("panel")];case 1:t.sent();t.label=2;case 2:return[2]}}))}))};this.fundTileClicked=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,fn({sender:e.detail.sender,placementId:"panel",fundId:e.detail.fundId,fundUsi:e.detail.fundUsi,fundName:e.detail.fundName,fundType:e.detail.fundType})];case 1:t.sent();return[2]}}))}))};this.fundPdsViewed=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(e.detail.sender==="super-campaign"))return[3,2];return[4,lt.Instance.TrackSuperFundPdsViewedAsync({fundName:e.detail.fundName,fundUsi:e.detail.fundUsi,pageName:e.detail.pageName,superCampaignEnabled:true})];case 1:t.sent();t.label=2;case 2:return[2]}}))}))};this.disclaimerViewed=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(e.detail.sender==="super-campaign"))return[3,2];return[4,lt.Instance.TrackSuperFundDisclaimerViewedAsync(Yo.create(true))];case 1:t.sent();t.label=2;case 2:return[2]}}))}))};this.disclaimerAccepted=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(e.detail.sender==="super-campaign"))return[3,2];return[4,lt.Instance.TrackSuperFundDisclaimerAcceptedAsync({superCampaignEnabled:true})];case 1:t.sent();t.label=2;case 2:return[2]}}))}))};this.superCampaignEventHandlers={"choose-another-fund-requested":this.chooseAnotherFundRequested.bind(this),"fund-panel-shown":this.fundPanelShown.bind(this),"fund-tile-clicked":this.fundTileClicked.bind(this),"fund-pds-viewed":this.fundPdsViewed.bind(this),"disclaimer-viewed":this.disclaimerViewed.bind(this),"disclaimer-accepted":this.disclaimerAccepted.bind(this),"promoted-fund-joined":new Ko("panel",this.history).handle,"super-campaign-loaded":this.superCampaignLoaded.bind(this),"super-campaign-load-failed":this.superCampaignLoadFailed.bind(this),"super-campaign-failed":this.superCampaignFailed.bind(this)}}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,n;return __generator(this,(function(r){switch(r.label){case 0:if(E.state.superCampaignComponentStatus===W.NotWorking){k.navigateInternally(this.history,F.MyOwnFund);return[2]}e=undefined;r.label=1;case 1:r.trys.push([1,6,,7]);if(!(M.isSome(E.backendUrl)&&M.isSome(E.state.jwt)))return[3,4];this.backendUrl=E.backendUrl.value;this.accessToken=E.state.jwt.value;this.unSubscribeFromSuperCampaignEvents();if(!(E.state.superCampaignComponentStatus===W.NotLoaded))return[3,3];e=this.createApolloSuperCampaignScriptUrl(this.getEnvironmentTag());return[4,t.import(e)];case 2:r.sent();this.loadingTimeoutRef=setTimeout(this.superCampaignLoadingTimeoutTriggered.bind(this),Go);r.label=3;case 3:this.subscribeToSuperCampaignEvents();this.scriptImported=true;E.hideFooterSection=true;return[3,5];case 4:throw Error("SuperCampaignHost pre-requisites not met.");case 5:return[3,7];case 6:n=r.sent();this.activateFallbackMechanism({type:"SuperCampaignActivationFailed",reason:"Problem in loading SuperCampaing script from:"+e+" Error: "+n});return[3,7];case 7:return[2]}}))}))};e.prototype.disconnectedCallback=function(){clearTimeout(this.loadingTimeoutRef);this.unSubscribeFromSuperCampaignEvents();E.hideFooterSection=false};e.prototype.render=function(){return r("div",null,this.scriptImported?r("apollo-super-campaign",{"backend-url":this.backendUrl,"access-token":this.accessToken}):null)};e.prototype.activateFallbackMechanism=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(E.superCampaignComponentStatus!==W.NotWorking))return[3,3];E.superCampaignComponentStatus=W.NotWorking;return[4,Jo.Instance.PostError(e)];case 1:t.sent();return[4,k.navigateInternally(this.history,F.MyOwnFund)];case 2:t.sent();t.label=3;case 3:return[2]}}))}))};e.prototype.superCampaignLoadingTimeoutTriggered=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(E.superCampaignComponentStatus!==W.Loaded){this.activateFallbackMechanism({type:"SuperCampaignActivationFailed",reason:"Activation timeout was triggered after:"+Go/1e3+" seconds"})}return[2]}))}))};e.prototype.createApolloSuperCampaignScriptUrl=function(e){return"https://npm-cdn.flarehr.com/@flarehr/apollo-super-campaign@"+e+"/dist/apollo-super-campaign.js"};return e}());D($o);var Zo=3e4;var Qo;(function(e){e[e["NotLoaded"]=1]="NotLoaded";e[e["Loaded"]=2]="Loaded"})(Qo||(Qo={}));var eu=Qo.NotLoaded;var tu=e("sss_super_smsf_host",function(){function e(e){var t=this;n(this,e);this.subscribeToSuperSmsfEvents=function(){for(var e in t.smsfEventHandlers){document.addEventListener(e,t.smsfEventHandlers[e])}};this.unSubscribeFromSuperSmsfEvents=function(){for(var e in t.smsfEventHandlers){document.removeEventListener(e,t.smsfEventHandlers[e])}};this.smsfLoaded=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){if(e.detail.sender==="super-smsf"){eu=Qo.Loaded;clearTimeout(this.loadingTimeoutRef)}return[2,Promise.resolve()]}))}))};this.smsfCompleted=function(e){return __awaiter(t,void 0,void 0,(function(){var t=this;return __generator(this,(function(n){if(e.detail.sender==="super-smsf"){k.navigateInternallyToStandardChoice({history:this.history,fundName:"Self-managed super fund",fundDetails:{type:"smsf",fundName:e.detail.fundName,fundEsa:e.detail.fundEsa},handleSubmitFn:function(n){return __awaiter(t,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:t=Object.assign({smsfChoice:{abn:e.detail.fundAbn,fundName:e.detail.fundName,fundAddress:{addressLine1:e.detail.fundAddressLine1,addressLine2:e.detail.fundAddressLine2,city:e.detail.fundCity,state:e.detail.fundState,postcode:e.detail.fundPostcode},bsb:e.detail.bankBsb,bankAccountName:e.detail.bankAccountName,bankAccountNumber:e.detail.bankAccountNumber,electronicServiceAddress:e.detail.fundEsa,memberFirstName:e.detail.memberFirstName,memberFamilyName:e.detail.memberLastName},standardChoiceFormSignature:n},E.promotedFundsConfig);return[4,R.submitSelfManagedFundChoiceAsync(t)];case 1:r.sent();return[2]}}))}))}})}return[2]}))}))};this.smsfCancelled=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(e.detail.sender==="super-smsf"))return[3,2];return[4,k.navigateInternally(this.history,F.ChoicePage)];case 1:t.sent();t.label=2;case 2:return[2]}}))}))};this.smsfEventHandlers={"smsf-loaded":this.smsfLoaded.bind(this),"smsf-completed":this.smsfCompleted.bind(this),"smsf-cancelled":this.smsfCancelled.bind(this)}}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(M.isSome(E.backendUrl)&&M.isSome(E.state.jwt)){this.backendUrl=E.backendUrl.value;this.accessToken=E.state.jwt.value;if(eu===Qo.NotLoaded){this.loadingTimeoutRef=setTimeout(this.smsfLoadingTimeoutTriggered.bind(this),Zo)}this.subscribeToSuperSmsfEvents()}else{throw Error("SuperSmsfHost pre-requisites not met.")}return[2]}))}))};e.prototype.disconnectedCallback=function(){clearTimeout(this.loadingTimeoutRef);this.unSubscribeFromSuperSmsfEvents()};e.prototype.render=function(){return r(s,null,r("sss-header-section",null),r("div",{class:"flex justify-center mt-11"},r("sss-custom-fund",null,r("div",null,r("apollo-super-smsf",{"backend-url":this.backendUrl,"access-token":this.accessToken})))))};e.prototype.smsfLoadingTimeoutTriggered=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(eu!==Qo.Loaded){throw Error("SMSF component failed to load.")}return[2]}))}))};return e}());D(tu);var nu="stencil-route.inactive{display:none}";var ru=e("stencil_route",function(){function e(e){n(this,e);this.group=null;this.match=null;this.componentProps={};this.exact=false;this.scrollOnNextRender=false;this.previousMatch=null}e.prototype.computeMatch=function(e){var t=this.group!=null||this.el.parentElement!=null&&this.el.parentElement.tagName.toLowerCase()==="stencil-route-switch";if(!e||t){return}this.previousMatch=this.match;return this.match=Xe(e.pathname,{path:this.url,exact:this.exact,strict:true})};e.prototype.loadCompleted=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){e={};if(this.history&&this.history.location.hash){e={scrollToId:this.history.location.hash.substr(1)}}else if(this.scrollTopOffset){e={scrollTopOffset:this.scrollTopOffset}}if(typeof this.componentUpdated==="function"){this.componentUpdated(e)}else if(this.match&&!Je(this.match,this.previousMatch)&&this.routeViewsUpdated){this.routeViewsUpdated(e)}return[2]}))}))};e.prototype.componentDidUpdate=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.loadCompleted()];case 1:e.sent();return[2]}}))}))};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.loadCompleted()];case 1:e.sent();return[2]}}))}))};e.prototype.render=function(){if(!this.match||!this.history){return null}var e=Object.assign({},this.componentProps,{history:this.history,match:this.match});if(this.routeRender){return this.routeRender(Object.assign({},e,{component:this.component}))}if(this.component){var t=this.component;return r(t,Object.assign({},e))}};Object.defineProperty(e.prototype,"el",{get:function(){return l(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{location:["computeMatch"]}},enumerable:false,configurable:true});return e}());Y.injectProps(ru,["location","history","historyType","routeViewsUpdated"]);ru.style=nu;var iu=function(e,t,n){return n(e.confirm(t))};var au=function(e){return e.metaKey||e.altKey||e.ctrlKey||e.shiftKey};var su=function(e){var t=e.navigator.userAgent;if((t.indexOf("Android 2.")!==-1||t.indexOf("Android 4.0")!==-1)&&t.indexOf("Mobile Safari")!==-1&&t.indexOf("Chrome")===-1&&t.indexOf("Windows Phone")===-1){return false}return e.history&&"pushState"in e.history};var ou=function(e){return e.userAgent.indexOf("Trident")===-1};var uu=function(e){return e.userAgent.indexOf("Firefox")===-1};var lu=function(e,t){return t.state===undefined&&e.userAgent.indexOf("CriOS")===-1};var cu=function(e,t){var n=e[t];var r="__storage_test__";try{n.setItem(r,r);n.removeItem(r);return true}catch(e){return e instanceof DOMException&&(e.code===22||e.code===1014||e.name==="QuotaExceededError"||e.name==="NS_ERROR_DOM_QUOTA_REACHED")&&n.length!==0}};var du=function(e,t){if(e.charAt(0)=="/"&&t.charAt(t.length-1)=="/"){return t.slice(0,t.length-1)+e}return t+e};var fu=e("stencil_route_link",function(){function e(e){n(this,e);this.unsubscribe=function(){return};this.activeClass="link-active";this.exact=false;this.strict=true;this.custom="a";this.match=null}e.prototype.componentWillLoad=function(){this.computeMatch()};e.prototype.computeMatch=function(){if(this.location){this.match=Xe(this.location.pathname,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict})}};e.prototype.handleClick=function(e){if(au(e)||!this.history||!this.url||!this.root){return}e.preventDefault();return this.history.push(du(this.url,this.root))};e.prototype.render=function(){var e;var t={class:(e={},e[this.activeClass]=this.match!==null,e),onClick:this.handleClick.bind(this)};if(this.anchorClass){t.class[this.anchorClass]=true}if(this.custom==="a"){t=Object.assign({},t,{href:this.url,title:this.anchorTitle,role:this.anchorRole,tabindex:this.anchorTabIndex,"aria-haspopup":this.ariaHaspopup,id:this.anchorId,"aria-posinset":this.ariaPosinset,"aria-setsize":this.ariaSetsize,"aria-label":this.ariaLabel})}return r(this.custom,Object.assign({},t),r("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return l(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{location:["computeMatch"]}},enumerable:false,configurable:true});return e}());Y.injectProps(fu,["history","location","root"]);var pu=function(){return((Math.random()*1e17).toString().match(/.{4}/g)||[]).join("-")};var hu=function(e,t,n){return Xe(e,{path:t,exact:n,strict:true})};var mu=function(e){return e.tagName==="STENCIL-ROUTE"};var vu=e("stencil_route_switch",function(){function e(e){n(this,e);this.group=pu();this.subscribers=[];this.queue=c(this,"queue")}e.prototype.componentWillLoad=function(){if(this.location!=null){this.regenerateSubscribers(this.location)}};e.prototype.regenerateSubscribers=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n;var r=this;return __generator(this,(function(i){if(e==null){return[2]}t=-1;this.subscribers=Array.prototype.slice.call(this.el.children).filter(mu).map((function(n,r){var i=hu(e.pathname,n.url,n.exact);if(i&&t===-1){t=r}return{el:n,match:i}}));if(t===-1){return[2]}if(this.activeIndex===t){this.subscribers[t].el.match=this.subscribers[t].match;return[2]}this.activeIndex=t;n=this.subscribers[this.activeIndex];if(this.scrollTopOffset){n.el.scrollTopOffset=this.scrollTopOffset}n.el.group=this.group;n.el.match=n.match;n.el.componentUpdated=function(e){r.queue.write((function(){r.subscribers.forEach((function(e,t){e.el.componentUpdated=undefined;if(t===r.activeIndex){return e.el.style.display=""}if(r.scrollTopOffset){e.el.scrollTopOffset=r.scrollTopOffset}e.el.group=r.group;e.el.match=null;e.el.style.display="none"}))}));if(r.routeViewsUpdated){r.routeViewsUpdated(Object.assign({scrollTopOffset:r.scrollTopOffset},e))}};return[2]}))}))};e.prototype.render=function(){return r("slot",null)};Object.defineProperty(e.prototype,"el",{get:function(){return l(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{location:["regenerateSubscribers"]}},enumerable:false,configurable:true});return e}());Y.injectProps(vu,["location","routeViewsUpdated"]);var gu=function(e){var t=[];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}if(!e){console.warn.apply(console,t)}};var yu=function(){var e;var t=[];var n=function(t){gu(e==null,"A history supports only one prompt at a time");e=t;return function(){if(e===t){e=null}}};var r=function(t,n,r,i){if(e!=null){var a=typeof e==="function"?e(t,n):e;if(typeof a==="string"){if(typeof r==="function"){r(a,i)}else{gu(false,"A history needs a getUserConfirmation function in order to use a prompt message");i(true)}}else{i(a!==false)}}else{i(true)}};var i=function(e){var n=true;var r=function(){var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}if(n){e.apply(void 0,t)}};t.push(r);return function(){n=false;t=t.filter((function(e){return e!==r}))}};var a=function(){var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}t.forEach((function(t){return t.apply(void 0,e)}))};return{setPrompt:n,confirmTransitionTo:r,appendListener:i,notifyListeners:a}};var bu=function(e,t){if(t===void 0){t="scrollPositions"}var n=new Map;var r=function(t,r){n.set(t,r);if(cu(e,"sessionStorage")){var i=[];n.forEach((function(e,t){i.push([t,e])}));e.sessionStorage.setItem("scrollPositions",JSON.stringify(i))}};var i=function(e){return n.get(e)};var a=function(e){return n.has(e)};var s=function(t){r(t,[e.scrollX,e.scrollY])};if(cu(e,"sessionStorage")){var o=e.sessionStorage.getItem(t);n=o?new Map(JSON.parse(o)):n}if("scrollRestoration"in e.history){history.scrollRestoration="manual"}return{set:r,get:i,has:a,capture:s}};var wu="popstate";var xu="hashchange";var Su=function(e,t){if(t===void 0){t={}}var n=false;var r=e.history;var i=e.location;var a=e.navigator;var s=su(e);var o=!ou(a);var u=bu(e);var l=t.forceRefresh!=null?t.forceRefresh:false;var c=t.getUserConfirmation!=null?t.getUserConfirmation:iu;var d=t.keyLength!=null?t.keyLength:6;var f=t.basename?Fe(De(t.basename)):"";var p=function(){try{return e.history.state||{}}catch(e){return{}}};var h=function(e){e=e||{};var t=e.key,n=e.state;var r=i.pathname,a=i.search,s=i.hash;var o=r+a+s;gu(!f||Ee(o,f),"You are attempting to use a basename on a page whose URL path does not begin "+'with the basename. Expected path "'+o+'" to begin with "'+f+'".');if(f){o=ke(o,f)}return He(o,n,t||Ue(d))};var m=yu();var v=function(e){u.capture(L.location.key);Object.assign(L,e);L.location.scrollPosition=u.get(L.location.key);L.length=r.length;m.notifyListeners(L.location,L.action)};var g=function(e){if(!lu(a,e)){b(h(e.state))}};var y=function(){b(h(p()))};var b=function(e){if(n){n=false;v()}else{var t="POP";m.confirmTransitionTo(e,t,c,(function(n){if(n){v({action:t,location:e})}else{w(e)}}))}};var w=function(e){var t=L.location;var r=S.indexOf(t.key);var i=S.indexOf(e.key);if(r===-1){r=0}if(i===-1){i=0}var a=r-i;if(a){n=true;T(a)}};var x=h(p());var S=[x.key];var C=0;var _=false;var I=function(e){return f+Me(e)};var N=function(e,t){gu(!(typeof e==="object"&&e.state!==undefined&&t!==undefined),"You should avoid providing a 2nd state argument to push when the 1st "+"argument is a location-like object that already has state; it is ignored");var n="PUSH";var a=He(e,t,Ue(d),L.location);m.confirmTransitionTo(a,n,c,(function(e){if(!e){return}var t=I(a);var o=a.key,u=a.state;if(s){r.pushState({key:o,state:u},"",t);if(l){i.href=t}else{var c=S.indexOf(L.location.key);var d=S.slice(0,c===-1?0:c+1);d.push(a.key);S=d;v({action:n,location:a})}}else{gu(u===undefined,"Browser history cannot push state in browsers that do not support HTML5 history");i.href=t}}))};var A=function(e,t){gu(!(typeof e==="object"&&e.state!==undefined&&t!==undefined),"You should avoid providing a 2nd state argument to replace when the 1st "+"argument is a location-like object that already has state; it is ignored");var n="REPLACE";var a=He(e,t,Ue(d),L.location);m.confirmTransitionTo(a,n,c,(function(e){if(!e){return}var t=I(a);var o=a.key,u=a.state;if(s){r.replaceState({key:o,state:u},"",t);if(l){i.replace(t)}else{var c=S.indexOf(L.location.key);if(c!==-1){S[c]=a.key}v({action:n,location:a})}}else{gu(u===undefined,"Browser history cannot replace state in browsers that do not support HTML5 history");i.replace(t)}}))};var T=function(e){r.go(e)};var E=function(){return T(-1)};var k=function(){return T(1)};var F=function(t){C+=t;if(C===1){e.addEventListener(wu,g);if(o){e.addEventListener(xu,y)}}else if(C===0){e.removeEventListener(wu,g);if(o){e.removeEventListener(xu,y)}}};var D=function(e){if(e===void 0){e=""}var t=m.setPrompt(e);if(!_){F(1);_=true}return function(){if(_){_=false;F(-1)}return t()}};var P=function(e){var t=m.appendListener(e);F(1);return function(){F(-1);t()}};var L={length:r.length,action:"POP",location:x,createHref:I,push:N,replace:A,go:T,goBack:E,goForward:k,block:D,listen:P,win:e};return L};var Cu="hashchange";var _u={hashbang:{encodePath:function(e){return e.charAt(0)==="!"?e:"!/"+Pe(e)},decodePath:function(e){return e.charAt(0)==="!"?e.substr(1):e}},noslash:{encodePath:Pe,decodePath:De},slash:{encodePath:De,decodePath:De}};var Iu=function(e,t){if(t===void 0){t={}}var n=false;var r=null;var i=0;var a=false;var s=e.location;var o=e.history;var u=uu(e.navigator);var l=t.keyLength!=null?t.keyLength:6;var c=t.getUserConfirmation,d=c===void 0?iu:c,f=t.hashType,p=f===void 0?"slash":f;var h=t.basename?Fe(De(t.basename)):"";var m=_u[p],v=m.encodePath,g=m.decodePath;var y=function(){var e=s.href;var t=e.indexOf("#");return t===-1?"":e.substring(t+1)};var b=function(e){return s.hash=e};var w=function(e){var t=s.href.indexOf("#");s.replace(s.href.slice(0,t>=0?t:0)+"#"+e)};var x=function(){var e=g(y());gu(!h||Ee(e,h),"You are attempting to use a basename on a page whose URL path does not begin "+'with the basename. Expected path "'+e+'" to begin with "'+h+'".');if(h){e=ke(e,h)}return He(e,undefined,Ue(l))};var S=yu();var C=function(e){Object.assign(V,e);V.length=o.length;S.notifyListeners(V.location,V.action)};var _=function(){var e=y();var t=v(e);if(e!==t){w(t)}else{var i=x();var a=V.location;if(!n&&qe(a,i)){return}if(r===Me(i)){return}r=null;I(i)}};var I=function(e){if(n){n=false;C()}else{var t="POP";S.confirmTransitionTo(e,t,d,(function(n){if(n){C({action:t,location:e})}else{N(e)}}))}};var N=function(e){var t=V.location;var r=k.lastIndexOf(Me(t));var i=k.lastIndexOf(Me(e));if(r===-1){r=0}if(i===-1){i=0}var a=r-i;if(a){n=true;L(a)}};var A=y();var T=v(A);if(A!==T){w(T)}var E=x();var k=[Me(E)];var F=function(e){return"#"+v(h+Me(e))};var D=function(e,t){gu(t===undefined,"Hash history cannot push state; it is ignored");var n="PUSH";var i=He(e,undefined,Ue(l),V.location);S.confirmTransitionTo(i,n,d,(function(e){if(!e){return}var t=Me(i);var a=v(h+t);var s=y()!==a;if(s){r=t;b(a);var o=k.lastIndexOf(Me(V.location));var u=k.slice(0,o===-1?0:o+1);u.push(t);k=u;C({action:n,location:i})}else{gu(false,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack");C()}}))};var P=function(e,t){gu(t===undefined,"Hash history cannot replace state; it is ignored");var n="REPLACE";var i=He(e,undefined,Ue(l),V.location);S.confirmTransitionTo(i,n,d,(function(e){if(!e){return}var t=Me(i);var a=v(h+t);var s=y()!==a;if(s){r=t;w(a)}var o=k.indexOf(Me(V.location));if(o!==-1){k[o]=t}C({action:n,location:i})}))};var L=function(e){gu(u,"Hash history go(n) causes a full page reload in this browser");o.go(e)};var M=function(){return L(-1)};var O=function(){return L(1)};var R=function(e,t){i+=t;if(i===1){e.addEventListener(Cu,_)}else if(i===0){e.removeEventListener(Cu,_)}};var U=function(t){if(t===void 0){t=""}var n=S.setPrompt(t);if(!a){R(e,1);a=true}return function(){if(a){a=false;R(e,-1)}return n()}};var B=function(t){var n=S.appendListener(t);R(e,1);return function(){R(e,-1);n()}};var V={length:o.length,action:"POP",location:E,createHref:F,push:D,replace:P,go:L,goBack:M,goForward:O,block:U,listen:B,win:e};return V};var Nu=function(e,t){var n=e.pathname.indexOf(t)==0?"/"+e.pathname.slice(t.length):e.pathname;return Object.assign({},e,{pathname:n})};var Au={browser:Su,hash:Iu};var Tu=e("stencil_router",function(){function e(e){var t=this;n(this,e);this.root="/";this.historyType="browser";this.titleSuffix="";this.routeViewsUpdated=function(e){if(e===void 0){e={}}if(t.history&&e.scrollToId&&t.historyType==="browser"){var n=t.history.win.document.getElementById(e.scrollToId);if(n){return n.scrollIntoView()}}t.scrollTo(e.scrollTopOffset||t.scrollTopOffset)};this.isServer=c(this,"isServer");this.queue=c(this,"queue")}e.prototype.componentWillLoad=function(){var e=this;this.history=Au[this.historyType](this.el.ownerDocument.defaultView);this.history.listen((function(t){t=Nu(t,e.root);e.location=t}));this.location=Nu(this.history.location,this.root)};e.prototype.scrollTo=function(e){var t=this.history;if(e==null||this.isServer||!t){return}if(t.action==="POP"&&Array.isArray(t.location.scrollPosition)){return this.queue.write((function(){if(t&&t.location&&Array.isArray(t.location.scrollPosition)){t.win.scrollTo(t.location.scrollPosition[0],t.location.scrollPosition[1])}}))}return this.queue.write((function(){t.win.scrollTo(0,e)}))};e.prototype.render=function(){if(!this.location||!this.history){return}var e={historyType:this.historyType,location:this.location,titleSuffix:this.titleSuffix,root:this.root,history:this.history,routeViewsUpdated:this.routeViewsUpdated};return r(Y.Provider,{state:e},r("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return l(this)},enumerable:false,configurable:true});return e}());var Eu="html{scroll-behavior:smooth}stencil-route{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-pack:center;justify-content:center}stencil-route:empty{display:none}input+.invalid-feedback{display:none}select+.invalid-feedback{display:none}.was-validated input:invalid+.invalid-feedback{display:block}.was-validated select:invalid+.invalid-feedback{display:block}";var ku=e("super_selection_app",function(){function e(e){n(this,e);this.stepSubmitSuccess=o(this,"step-completion",7);this.successPageAcknowledged=o(this,"successPageAcknowledged",5);this.initialised=o(this,"initialised",7);this.isSelfHosted=false;this.isAppInitialised=false}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n;var r=this;return __generator(this,(function(i){e=M.fromNullable(this.accessToken);if(M.isNone(e)){throw Error("jwt property is missing.")}E.state.jwt=e;t=M.fromNullable(this.backendUrl);if(M.isNone(t)){throw Error("apiBaseUrl property is missing.")}E.state.apiBaseUrl=M.some(t.value.replace(/\/$/,"")+"/");n=M.fromNullable(this.appBaseUrl);if(M.isNone(n)){throw Error("appBaseUrl property is missing.")}E.state.appBaseUrl=M.some(n.value.replace(/\/$/,""));E.onChange("hasSuccessPageBeenAcknowledged",(function(e){return r.successPageAcknowledged.emit()}));E.onChange("hasSuperSelectionBeenSubmitted",(function(e){if(!e)return;r.stepSubmitSuccess.emit();E.state.hasSuperSelectionBeenSubmitted=false;if(r.isSelfHosted){k.navigateInternally(r.history,F.Success)}}));return[2]}))}))};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,r;return __generator(this,(function(i){switch(i.label){case 0:return[4,E.loadAppStateAsync()];case 1:i.sent();return[4,mt.GetExistingFundAsync()];case 2:e=i.sent();this.isAppInitialised=true;this.initialised.emit({accountIdOrDefault:E.accountIdOrDefault,partnerIdOrDefault:E.partnerIdOrDefault,profileId:E.profileId});G.appReady();t=M.fromNullable(this.ignoreExistingSelection);n=M.isSome(e)&&e.value.type=="Defined Benefits Fund"&&(M.isNone(E.isDefinedBenefitsEligible)||!E.isDefinedBenefitsEligible.value);r=M.isSome(t)&&t.value||n;if(M.isSome(E.state.superChoicePrefill)){k.navigateInternally(this.history,F.Prefill)}else if(M.isSome(e)&&e.value.valid!=="Inactive"&&!r){k.navigateInternally(this.history,F.ExistingChoicePage)}else{k.navigateInternally(this.history,F.ChoicePage)}return[2]}}))}))};e.prototype.authTokenChanged=function(e){E.state.jwt=M.fromNullable(e)};e.prototype.onRouteChange=function(){window===null||window===void 0?void 0:window.scroll(0,0)};e.prototype.render=function(){return r(s,null,r("link",{rel:"stylesheet",href:a("apollo-super-selection.css"),media:"all"}),this.renderAppContent())};e.prototype.routerBaseUrl=function(){var e;return((e=this.appBaseUrl)===null||e===void 0?void 0:e.replace(/\/$/,""))+"/"};e.prototype.renderAppContent=function(){return r("stencil-router",{root:this.routerBaseUrl(),class:"font-inter"},r("stencil-route-switch",{scrollTopOffset:0},this.isAppInitialised?r("div",{class:"pt-28 -mt-12 pb-6"},K,r("sss-footer-section",null)):r("div",{class:"flex justify-center py-20"},r("sss-loading-indicator",null))))};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{accessToken:["authTokenChanged"],location:["onRouteChange"]}},enumerable:false,configurable:true});return e}());D(ku);ku.style=Eu;var Fu=[];var Du=function(){return Fu.some((function(e){return e.activeTargets.length>0}))};var Pu=function(){return Fu.some((function(e){return e.skippedTargets.length>0}))};var Lu="ResizeObserver loop completed with undelivered notifications.";var Mu=function(){var e;if(typeof ErrorEvent==="function"){e=new ErrorEvent("error",{message:Lu})}else{e=document.createEvent("Event");e.initEvent("error",false,false);e.message=Lu}window.dispatchEvent(e)};var Ou;(function(e){e["BORDER_BOX"]="border-box";e["CONTENT_BOX"]="content-box";e["DEVICE_PIXEL_CONTENT_BOX"]="device-pixel-content-box"})(Ou||(Ou={}));var Ru=function(e){return Object.freeze(e)};var Uu=function(){function e(e,t){this.inlineSize=e;this.blockSize=t;Ru(this)}return e}();var Bu=function(){function e(e,t,n,r){this.x=e;this.y=t;this.width=n;this.height=r;this.top=this.y;this.left=this.x;this.bottom=this.top+this.height;this.right=this.left+this.width;return Ru(this)}e.prototype.toJSON=function(){var e=this,t=e.x,n=e.y,r=e.top,i=e.right,a=e.bottom,s=e.left,o=e.width,u=e.height;return{x:t,y:n,top:r,right:i,bottom:a,left:s,width:o,height:u}};e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)};return e}();var Vu=function(e){return e instanceof SVGElement&&"getBBox"in e};var ju=function(e){if(Vu(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,s=i.offsetHeight;return!(a||s||e.getClientRects().length)};var qu=function(e){var t,n;var r=(n=(t=e)===null||t===void 0?void 0:t.ownerDocument)===null||n===void 0?void 0:n.defaultView;return!!(r&&e instanceof r.Element)};var Hu=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image"){break}case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return true}return false};var zu=typeof window!=="undefined"?window:{};var Wu=new WeakMap;var Gu=/auto|scroll/;var Ku=/^tb|vertical/;var Xu=/msie|trident/i.test(zu.navigator&&zu.navigator.userAgent);var Ju=function(e){return parseFloat(e||"0")};var Yu=function(e,t,n){if(e===void 0){e=0}if(t===void 0){t=0}if(n===void 0){n=false}return new Uu((n?t:e)||0,(n?e:t)||0)};var $u=Ru({devicePixelContentBoxSize:Yu(),borderBoxSize:Yu(),contentBoxSize:Yu(),contentRect:new Bu(0,0,0,0)});var Zu=function(e,t){if(t===void 0){t=false}if(Wu.has(e)&&!t){return Wu.get(e)}if(ju(e)){Wu.set(e,$u);return $u}var n=getComputedStyle(e);var r=Vu(e)&&e.ownerSVGElement&&e.getBBox();var i=!Xu&&n.boxSizing==="border-box";var a=Ku.test(n.writingMode||"");var s=!r&&Gu.test(n.overflowY||"");var o=!r&&Gu.test(n.overflowX||"");var u=r?0:Ju(n.paddingTop);var l=r?0:Ju(n.paddingRight);var c=r?0:Ju(n.paddingBottom);var d=r?0:Ju(n.paddingLeft);var f=r?0:Ju(n.borderTopWidth);var p=r?0:Ju(n.borderRightWidth);var h=r?0:Ju(n.borderBottomWidth);var m=r?0:Ju(n.borderLeftWidth);var v=d+l;var g=u+c;var y=m+p;var b=f+h;var w=!o?0:e.offsetHeight-b-e.clientHeight;var x=!s?0:e.offsetWidth-y-e.clientWidth;var S=i?v+y:0;var C=i?g+b:0;var _=r?r.width:Ju(n.width)-S-x;var I=r?r.height:Ju(n.height)-C-w;var N=_+v+x+y;var A=I+g+w+b;var T=Ru({devicePixelContentBoxSize:Yu(Math.round(_*devicePixelRatio),Math.round(I*devicePixelRatio),a),borderBoxSize:Yu(N,A,a),contentBoxSize:Yu(_,I,a),contentRect:new Bu(d,u,_,I)});Wu.set(e,T);return T};var Qu=function(e,t,n){var r=Zu(e,n),i=r.borderBoxSize,a=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case Ou.DEVICE_PIXEL_CONTENT_BOX:return s;case Ou.BORDER_BOX:return i;default:return a}};var el=function(){function e(e){var t=Zu(e);this.target=e;this.contentRect=t.contentRect;this.borderBoxSize=Ru([t.borderBoxSize]);this.contentBoxSize=Ru([t.contentBoxSize]);this.devicePixelContentBoxSize=Ru([t.devicePixelContentBoxSize])}return e}();var tl=function(e){if(ju(e)){return Infinity}var t=0;var n=e.parentNode;while(n){t+=1;n=n.parentNode}return t};var nl=function(){var e=Infinity;var t=[];Fu.forEach((function n(r){if(r.activeTargets.length===0){return}var i=[];r.activeTargets.forEach((function t(n){var r=new el(n.target);var a=tl(n.target);i.push(r);n.lastReportedSize=Qu(n.target,n.observedBox);if(a<e){e=a}}));t.push((function e(){r.callback.call(r.observer,i,r.observer)}));r.activeTargets.splice(0,r.activeTargets.length)}));for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e};var rl=function(e){Fu.forEach((function t(n){n.activeTargets.splice(0,n.activeTargets.length);n.skippedTargets.splice(0,n.skippedTargets.length);n.observationTargets.forEach((function t(r){if(r.isActive()){if(tl(r.target)>e){n.activeTargets.push(r)}else{n.skippedTargets.push(r)}}}))}))};var il=function(){var e=0;rl(e);while(Du()){e=nl();rl(e)}if(Pu()){Mu()}return e>0};var al;var sl=[];var ol=function(){return sl.splice(0).forEach((function(e){return e()}))};var ul=function(e){if(!al){var t=0;var n=document.createTextNode("");var r={characterData:true};new MutationObserver((function(){return ol()})).observe(n,r);al=function(){n.textContent=""+(t?t--:t++)}}sl.push(e);al()};var ll=function(e){ul((function t(){requestAnimationFrame(e)}))};var cl=0;var dl=function(){return!!cl};var fl=250;var pl={attributes:true,characterData:true,childList:true,subtree:true};var hl=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"];var ml=function(e){if(e===void 0){e=0}return Date.now()+e};var vl=false;var gl=function(){function e(){var e=this;this.stopped=true;this.listener=function(){return e.schedule()}}e.prototype.run=function(e){var t=this;if(e===void 0){e=fl}if(vl){return}vl=true;var n=ml(e);ll((function(){var r=false;try{r=il()}finally{vl=false;e=n-ml();if(!dl()){return}if(r){t.run(1e3)}else if(e>0){t.run(e)}else{t.start()}}}))};e.prototype.schedule=function(){this.stop();this.run()};e.prototype.observe=function(){var e=this;var t=function(){return e.observer&&e.observer.observe(document.body,pl)};document.body?t():zu.addEventListener("DOMContentLoaded",t)};e.prototype.start=function(){var e=this;if(this.stopped){this.stopped=false;this.observer=new MutationObserver(this.listener);this.observe();hl.forEach((function(t){return zu.addEventListener(t,e.listener,true)}))}};e.prototype.stop=function(){var e=this;if(!this.stopped){this.observer&&this.observer.disconnect();hl.forEach((function(t){return zu.removeEventListener(t,e.listener,true)}));this.stopped=true}};return e}();var yl=new gl;var bl=function(e){!cl&&e>0&&yl.start();cl+=e;!cl&&yl.stop()};var wl=function(e){return!Vu(e)&&!Hu(e)&&getComputedStyle(e).display==="inline"};var xl=function(){function e(e,t){this.target=e;this.observedBox=t||Ou.CONTENT_BOX;this.lastReportedSize={inlineSize:0,blockSize:0}}e.prototype.isActive=function(){var e=Qu(this.target,this.observedBox,true);if(wl(this.target)){this.lastReportedSize=e}if(this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize){return true}return false};return e}();var Sl=function(){function e(e,t){this.activeTargets=[];this.skippedTargets=[];this.observationTargets=[];this.observer=e;this.callback=t}return e}();var Cl=new WeakMap;var _l=function(e,t){for(var n=0;n<e.length;n+=1){if(e[n].target===t){return n}}return-1};var Il=function(){function e(){}e.connect=function(e,t){var n=new Sl(e,t);Cl.set(e,n)};e.observe=function(e,t,n){var r=Cl.get(e);var i=r.observationTargets.length===0;if(_l(r.observationTargets,t)<0){i&&Fu.push(r);r.observationTargets.push(new xl(t,n&&n.box));bl(1);yl.schedule()}};e.unobserve=function(e,t){var n=Cl.get(e);var r=_l(n.observationTargets,t);var i=n.observationTargets.length===1;if(r>=0){i&&Fu.splice(Fu.indexOf(n),1);n.observationTargets.splice(r,1);bl(-1)}};e.disconnect=function(e){var t=this;var n=Cl.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)}));n.activeTargets.splice(0,n.activeTargets.length)};return e}();var Nl=function(){function e(e){if(arguments.length===0){throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.")}if(typeof e!=="function"){throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.")}Il.connect(this,e)}e.prototype.observe=function(e,t){if(arguments.length===0){throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.")}if(!qu(e)){throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element")}Il.observe(this,e,t)};e.prototype.unobserve=function(e){if(arguments.length===0){throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.")}if(!qu(e)){throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element")}Il.unobserve(this,e)};e.prototype.disconnect=function(){Il.disconnect(this)};e.toString=function(){return"function ResizeObserver () { [polyfill code] }"};return e}();var Al=function(){function e(){var e=this;this._appRootUrl=new me((function(){return e.resolveRootUrl()}));this.getAppRootUrl=function(){return e._appRootUrl.value};this.getAppHostUrl=function(){return(""+window.location.origin+e.getAppRootUrl()).replace(/\/$/,"")}}e.prototype.loadConfigurationAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,X(this.getAppRootUrl()+"config.json").get().json()];case 1:e=t.sent();Oo.update({appConfiguration:M.fromNullable(e)});return[2]}}))}))};e.prototype.resolveRootUrl=function(){var e=M.fromNullable(window.location.pathname.match(/^\/super-selection\/embed\/v1.0\/app/));if(M.isNone(e)){throw Error("Unsupported host URL")}return e.value[0]+"/"};return e}();var Tl=new Al;var El=function(){function e(){this.ignoreExistingSelectionQueryParameter="ignoreExistingSelection"}e.prototype.init=function(e){var t=new URLSearchParams(e);var n=M.fromNullable(t.get(this.ignoreExistingSelectionQueryParameter));var r=M.fold((function(){return false}),(function(e){return e==="true"}))(n);Oo.update({ignoreExistingSelection:r})};return e}();var kl=new El;var Fl=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;n.store=t;n.sessionState$=n.select((function(e){return e.authenticationState}));n.jwt$=n.select((function(e){return e.jwt}));return n}Object.defineProperty(t.prototype,"sessionState",{get:function(){return this.getValue().authenticationState},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isUnauthorized",{get:function(){return this.getValue().authenticationState===Do.Unauthorized||this.getValue().authenticationState===Do.Error},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isAuthorized",{get:function(){return this.getValue().authenticationState===Do.Authenticated},enumerable:false,configurable:true});return t}(I);var Dl=new Fl(Oo);function Pl(e,t){if(window["gtag"]){window["gtag"]("event",e,t)}}var Ll=function(){function e(){this.authCodeQueryParameter="code"}e.prototype.authorizationCodeIsPresent=function(e){var t=this.getAuthorizationCodeFromRoute(e);return M.isSome(t)};e.prototype.initFromRoute=function(e){var t=this.getAuthorizationCodeFromRoute(e);if(M.isNone(t)){Oo.update({authenticationState:Do.Error});throw Error('"'+this.authCodeQueryParameter+'" URL query parameter missing')}this.authCodeExchangeAsync(t.value)};e.prototype.authCodeExchangeAsync=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n;return __generator(this,(function(r){switch(r.label){case 0:t=new URLSearchParams([["grant_type","authorization_code"],["client_id","apollo-super-selection-app"],["code",e],["redirect_uri",""+Tl.getAppHostUrl()]]);return[4,X(Uo.configuration.OidcAuthority+"/connect/token").headers({"Content-Type":"application/x-www-form-urlencoded"}).post(t.toString()).badRequest((function(){Oo.update({authenticationState:Do.Error});throw new Error("Failed to authenticate.")})).json()];case 1:n=r.sent();Oo.update({jwt:M.fromNullable(n.access_token),authenticationState:Do.Authenticated});Pl("oidc_sign_in",{});window.history.replaceState(null,"",Tl.getAppRootUrl());return[2]}}))}))};e.prototype.getAuthorizationCodeFromRoute=function(e){var t=new URLSearchParams(e);return M.fromNullable(t.get(this.authCodeQueryParameter))};return e}();var Ml=new Ll;var Ol=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;n.store=t;return n}t.prototype.isReactNativeInteropEnabled=function(){return A(this.getValue().reactNativeInterop)};t.prototype.isIframeInteropEnabled=function(){return A(this.getValue().iframeInterop)};t.prototype.getIframeInteropMode=function(){var e=this.getValue().iframeInterop;if(U(e)){throw Error("Failed to get iframe interop information: no data in store")}if(!this.isIframeInteropEnabled()){throw Error("Failed to get iframe interop information: iframe mode is disabled")}return e.value};return t}(I);var Rl=new Ol(Oo);var Ul=function(){function e(){}e.completeSuperSelectionStep=function(){var e=Rl.getIframeInteropMode().successRedirectionUrl;if(M.isSome(e)){window.top.location.href=e.value}else{G.complete()}};e.initFromRoute=function(e){var t="success-redirection-url";var n=new URLSearchParams(e);var r=M.fromNullable(n.get(t));var i={successRedirectionUrl:M.none};if(M.isSome(r)){try{var a=new URL(r.value);i.successRedirectionUrl=M.some(a.toString())}catch(e){throw Error('"'+r.value+'" is not a valid URL')}}return i};return e}();var Bl=function(){function e(){}e.init=function(){var e=window["ReactNativeWebView"]!==undefined;if(!e){throw Error("React Native WebView messaging is not enabled. Please, refer to https://github.com/react-native-webview/react-native-webview/blob/master/docs/Guide.md#the-windowreactnativewebviewpostmessage-method-and-onmessage-prop")}return new Po};e.completeSuperSelectionStep=function(){this.postRNMessage()};e.postRNMessage=function(){var t={stepStatus:"completed"};e.getRnInterop().postMessage(JSON.stringify(t))};return e}();Bl.getRnInterop=function(){return window["ReactNativeWebView"]};var Vl=function(){function e(){this.interopModeQueryParameter="interop-mode"}e.prototype.completeSuperSelectionStep=function(){if(Rl.isIframeInteropEnabled()){Ul.completeSuperSelectionStep()}else if(Rl.isReactNativeInteropEnabled()){Bl.completeSuperSelectionStep()}else{throw Error("Unknown interop mode")}};e.prototype.init=function(e){var t=new URLSearchParams(e);var n=J(t.get(this.interopModeQueryParameter));if(A(n)&&n.value==="react-native"){Oo.update({reactNativeInterop:T(Bl.init())});return}Oo.update({iframeInterop:T(Ul.initFromRoute(e))})};return e}();var jl=new Vl;function ql(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:kl.init(window.location.search);return[4,Tl.loadConfigurationAsync()];case 1:t.sent();Vo.init();ve();e=Dl.isUnauthorized||Ml.authorizationCodeIsPresent(window.location.search);if(!e){return[2]}jl.init(window.location.search);Ml.initFromRoute(window.location.search);return[2]}}))}))}var Hl=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;n.store=t;n.ignoreExistingSelection$=n.select((function(e){return e.ignoreExistingSelection}));return n}Object.defineProperty(t.prototype,"ignoreExistingSelection",{get:function(){return this.getValue().ignoreExistingSelection},enumerable:false,configurable:true});return t}(I);var zl=new Hl(Oo);var Wl="html{scroll-behavior:smooth}.sss-app-container{--fl-color-primary:#2E66F7;--fl-color-primary-light:#EAF0FE;--fl-color-primary-dark:#031495;--fl-color-primary-disabled:#88ABFA;--fl-color-primary-hover:#5786F8;--fl-color-primary-focus:#1033C6;--fl-color-primary-text:#3d3d3d;--fl-color-secondary:#e5e5e5;--fl-color-secondary-hover:#b3b3b3;--fl-color-secondary-focus:#b3b3b3}@media screen and (-webkit-min-device-pixel-ratio: 0){select,textarea,input{font-size:16px}}";var Gl=e("super_selection_app_host",function(){function e(e){n(this,e)}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){switch(t.label){case 0:return[4,ql()];case 1:t.sent();Dl.sessionState$.subscribe((function(t){return e.sessionState=t}));Dl.jwt$.subscribe((function(t){return e.jwt=t}));Uo.appConfiguration$.subscribe((function(t){return e.appConfiguration=t}));zl.ignoreExistingSelection$.subscribe((function(t){return e.ignoreExistingSelection=t}));return[2]}}))}))};e.prototype.render=function(){var e=this;return r(s,null,r("link",{rel:"stylesheet",href:a("apollo-super-selection.css"),media:"all"}),r("div",{ref:function(t){return e.observeContentResize(t)}},M.isNone(this.appConfiguration)?r("sss-loading-page",{class:"font-inter"}):this.renderAppContent()))};e.prototype.renderAppContent=function(){var e=this;return r("stencil-router",{root:Tl.getAppRootUrl(),class:"sss-app-container"},r("stencil-route-switch",{scrollTopOffset:0},r("stencil-route",{url:"/",routeRender:this.renderProtectedRoute((function(t){return r("super-selection-app",Object.assign({accessToken:M.toUndefined(e.jwt),ignoreExistingSelection:e.ignoreExistingSelection,backendUrl:Uo.configuration.ApiBaseUrl,appBaseUrl:e.getAppBaseUrl(),onSuccessPageAcknowledged:e.handleSuccessPageAcknowledged,"onStep-completion":e.handleStepSubmitSuccess,onInitialised:e.handleAppInitialised,isSelfHosted:true},t))}))})))};e.prototype.getAppBaseUrl=function(){var e=window.location.pathname.split("app");return e[0]+"app/"};e.prototype.handleSuccessPageAcknowledged=function(){jl.completeSuperSelectionStep()};e.prototype.handleStepSubmitSuccess=function(){G.submitSuccess()};e.prototype.handleAppInitialised=function(e){Vo.addCustomProperties({"X-ACCOUNT-ID":e.detail.accountIdOrDefault,"X-PARTNER-ID":e.detail.partnerIdOrDefault,"X-PROFILE-ID":e.detail.profileId});Vo.getAppInsights().trackPageView();var t=document.getElementById("sss-external-loading-page-container");if(t){document.body.removeChild(t)}};e.prototype.observeContentResize=function(e){var t=window.ResizeObserver||Nl;new t((function(){G.resize(e.offsetHeight,-1)})).observe(e)};e.prototype.renderProtectedRoute=function(e){switch(this.sessionState){case Do.Authenticated:return e;case Do.Unauthorized:return function(){return r("sss-loading-page",null)};case Do.Error:return function(){return r("h1",null,"Authentication Error")};default:return function(){return r("h1",null,"Authentication Error")}}};return e}());Gl.style=Wl}}}));