@flarehr/bank-details-app 3.14.0 → 3.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see bank-details-web-component.js.LICENSE.txt */
2
- (()=>{var e={725:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(354),o=n.n(r),i=n(314),a=n.n(i),s=n(417),c=n.n(s),u=new URL(n(973),n.b),l=new URL(n(764),n.b),f=new URL(n(945),n.b),d=new URL(n(608),n.b),A=a()(o()),m=c()(u),p=c()(l),$=c()(f),h=c()(d);A.push([e.id,`*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],input:where(:not([type])),select,textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem;--tw-shadow:0 0 #0000}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,input:where(:not([type])):focus,select:focus,textarea:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{background-image:url(${m});background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1rem;--tw-shadow:0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url(${p})}@media (forced-colors:active) {[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url(${$})}@media (forced-colors:active) {[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url(${h});background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}@media (forced-colors:active) {[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}.container{width:100%}@media (min-width:850px){.container{max-width:850px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-y-0{bottom:0;top:0}.left-0{left:0}.top-full{top:100%}.z-10{z-index:10}.-mx-1\\.5{margin-left:-.375rem;margin-right:-.375rem}.-my-1\\.5{margin-bottom:-.375rem;margin-top:-.375rem}.mx-0\\.5{margin-left:.125rem;margin-right:.125rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0\\.5{margin-bottom:.125rem;margin-top:.125rem}.my-4{margin-bottom:1rem;margin-top:1rem}.-ml-1{margin-left:-.25rem}.-mt-0\\.5{margin-top:-.125rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-1\\.5{margin-right:.375rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.h-2\\.5{height:.625rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-full{height:100%}.min-h-full{min-height:100%}.w-2\\.5{width:.625rem}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-4{width:1rem}.w-full{width:100%}.min-w-full{min-width:100%}.max-w-5xl{max-width:64rem}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.space-y-10>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2.5rem*var(--tw-space-y-reverse));margin-top:calc(2.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(229 231 235/var(--tw-divide-opacity,1))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(209 213 219/var(--tw-divide-opacity,1))}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.border-primary-focus{border-color:var(--fl-color-primary-focus)}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity,1))}.border-transparent{border-color:transparent}.bg-black\\/50{background-color:rgba(0,0,0,.5)}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity,1))}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.p-1\\.5{padding:.375rem}.p-4{padding:1rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3\\.5{padding-bottom:.875rem;padding-top:.875rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.pb-2\\.5{padding-bottom:.625rem}.pb-4{padding-bottom:1rem}.pl-12{padding-left:3rem}.pl-2\\.5{padding-left:.625rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pl-7{padding-left:1.75rem}.pr-1\\.5{padding-right:.375rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.font-inter{font-family:Inter,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-6{line-height:1.5rem}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}.text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity,1))}.text-primary-base{color:var(--fl-color-primary)}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}.text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.placeholder-red-300::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(252 165 165/var(--tw-placeholder-opacity,1))}.placeholder-red-300::placeholder{--tw-placeholder-opacity:1;color:rgb(252 165 165/var(--tw-placeholder-opacity,1))}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-sm,.shadow-xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color)}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity,1))}.ring-opacity-5{--tw-ring-opacity:0.05}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.placeholder\\:text-gray-500::-moz-placeholder{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.placeholder\\:text-gray-500::placeholder{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.hover\\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.hover\\:bg-green-100:hover{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity,1))}.hover\\:bg-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.hover\\:bg-red-100:hover{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}.focus\\:border-primary-focus:focus{border-color:var(--fl-color-primary-focus)}.focus\\:border-red-500:focus{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-green-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity,1))}.focus\\:ring-primary-focus:focus{--tw-ring-color:var(--fl-color-primary-focus)}.focus\\:ring-red-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(239 68 68/var(--tw-ring-opacity,1))}.focus\\:ring-red-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(220 38 38/var(--tw-ring-opacity,1))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus\\:ring-offset-green-50:focus{--tw-ring-offset-color:#f0fdf4}.focus\\:ring-offset-red-50:focus{--tw-ring-offset-color:#fef2f2}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-gray-50:disabled{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.disabled\\:opacity-40:disabled{opacity:.4}@media (min-width:850px){.md\\:my-8{margin-bottom:2rem;margin-top:2rem}.md\\:mt-0{margin-top:0}.md\\:block{display:block}.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:w-20{width:5rem}.md\\:w-32{width:8rem}.md\\:w-\\[132px\\]{width:132px}.md\\:w-\\[150px\\]{width:150px}.md\\:w-\\[152px\\]{width:152px}.md\\:w-\\[170px\\]{width:170px}.md\\:w-full{width:100%}.md\\:min-w-\\[132px\\]{min-width:132px}.md\\:min-w-\\[152px\\]{min-width:152px}.md\\:max-w-\\[80\\%\\]{max-width:80%}.md\\:flex-1{flex:1 1 0%}.md\\:flex-none{flex:none}.md\\:flex-col{flex-direction:column}.md\\:items-center{align-items:center}.md\\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.md\\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(0px*var(--tw-space-y-reverse));margin-top:calc(0px*(1 - var(--tw-space-y-reverse)))}.md\\:space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.md\\:p-0{padding:0}.md\\:p-6{padding:1.5rem}.md\\:pl-6{padding-left:1.5rem}.md\\:text-sm{font-size:.875rem;line-height:1.25rem}}`,"",{version:3,sources:["webpack://./tailwind-source.css"],names:[],mappings:"AAAA,iBAAA,uBAAc,CAAd,uBAAc,CAAd,kBAAc,CAAd,kBAAc,CAAd,aAAc,CAAd,aAAc,CAAd,aAAc,CAAd,cAAc,CAAd,cAAc,CAAd,YAAc,CAAd,YAAc,CAAd,iBAAc,CAAd,qCAAc,CAAd,6BAAc,CAAd,4BAAc,CAAd,2BAAc,CAAd,cAAc,CAAd,mBAAc,CAAd,qBAAc,CAAd,sBAAc,CAAd,uBAAc,CAAd,iBAAc,CAAd,0BAAc,CAAd,2BAAc,CAAd,mCAAc,CAAd,iCAAc,CAAd,0BAAc,CAAd,qBAAc,CAAd,6BAAc,CAAd,WAAc,CAAd,iBAAc,CAAd,eAAc,CAAd,gBAAc,CAAd,iBAAc,CAAd,aAAc,CAAd,eAAc,CAAd,YAAc,CAAd,kBAAc,CAAd,oBAAc,CAAd,0BAAc,CAAd,wBAAc,CAAd,yBAAc,CAAd,0BAAc,CAAd,sBAAc,CAAd,uBAAc,CAAd,wBAAc,CAAd,qBAAc,CAAd,mBAAc,CAAd,qBAAc,CAAd,oBAAc,CAAd,oBAAc,CAAd,WAAA,uBAAc,CAAd,uBAAc,CAAd,kBAAc,CAAd,kBAAc,CAAd,aAAc,CAAd,aAAc,CAAd,aAAc,CAAd,cAAc,CAAd,cAAc,CAAd,YAAc,CAAd,YAAc,CAAd,iBAAc,CAAd,qCAAc,CAAd,6BAAc,CAAd,4BAAc,CAAd,2BAAc,CAAd,cAAc,CAAd,mBAAc,CAAd,qBAAc,CAAd,sBAAc,CAAd,uBAAc,CAAd,iBAAc,CAAd,0BAAc,CAAd,2BAAc,CAAd,mCAAc,CAAd,iCAAc,CAAd,0BAAc,CAAd,qBAAc,CAAd,6BAAc,CAAd,WAAc,CAAd,iBAAc,CAAd,eAAc,CAAd,gBAAc,CAAd,iBAAc,CAAd,aAAc,CAAd,eAAc,CAAd,YAAc,CAAd,kBAAc,CAAd,oBAAc,CAAd,0BAAc,CAAd,wBAAc,CAAd,yBAAc,CAAd,0BAAc,CAAd,sBAAc,CAAd,uBAAc,CAAd,wBAAc,CAAd,qBAAc,CAAd,mBAAc,CAAd,qBAAc,CAAd,oBAAc,CAAd,oBAAc,CAAd,gEAAc,CAAd,iBAAA,sBAAc,CAAd,qBAAc,CAAd,eAAA,eAAc,CAAd,WAAA,eAAc,CAAd,6BAAc,CAAd,gHAAc,CAAd,4BAAc,CAAd,8BAAc,CAAd,eAAc,CAAd,aAAc,CAAd,UAAc,CAAd,uCAAc,CAAd,KAAA,mBAAc,CAAd,QAAc,CAAd,GAAA,oBAAc,CAAd,aAAc,CAAd,QAAc,CAAd,oBAAA,wCAAc,CAAd,gCAAc,CAAd,kBAAA,iBAAc,CAAd,mBAAc,CAAd,EAAA,aAAc,CAAd,uBAAc,CAAd,SAAA,kBAAc,CAAd,kBAAA,mGAAc,CAAd,4BAAc,CAAd,aAAc,CAAd,8BAAc,CAAd,MAAA,aAAc,CAAd,QAAA,aAAc,CAAd,aAAc,CAAd,iBAAc,CAAd,uBAAc,CAAd,IAAA,aAAc,CAAd,IAAA,SAAc,CAAd,MAAA,wBAAc,CAAd,oBAAc,CAAd,aAAc,CAAd,sCAAA,aAAc,CAAd,mBAAc,CAAd,6BAAc,CAAd,cAAc,CAAd,+BAAc,CAAd,mBAAc,CAAd,sBAAc,CAAd,mBAAc,CAAd,QAAc,CAAd,SAAc,CAAd,cAAA,mBAAc,CAAd,uFAAA,yBAAc,CAAd,4BAAc,CAAd,qBAAc,CAAd,gBAAA,YAAc,CAAd,iBAAA,eAAc,CAAd,SAAA,uBAAc,CAAd,wDAAA,WAAc,CAAd,cAAA,4BAAc,CAAd,mBAAc,CAAd,4BAAA,uBAAc,CAAd,6BAAA,yBAAc,CAAd,YAAc,CAAd,QAAA,iBAAc,CAAd,mDAAA,QAAc,CAAd,SAAA,QAAc,CAAd,gBAAA,SAAc,CAAd,WAAA,eAAc,CAAd,QAAc,CAAd,SAAc,CAAd,OAAA,SAAc,CAAd,SAAA,eAAc,CAAd,mDAAA,aAAc,CAAd,SAAc,CAAd,yCAAA,aAAc,CAAd,SAAc,CAAd,qBAAA,cAAc,CAAd,UAAA,cAAc,CAAd,+CAAA,aAAc,CAAd,qBAAc,CAAd,UAAA,WAAc,CAAd,cAAc,CAAd,2CAAA,YAAc,CAAd,uNAAA,uBAAc,CAAd,oBAAc,CAAd,eAAc,CAAd,qBAAc,CAAd,oBAAc,CAAd,eAAc,CAAd,gBAAc,CAAd,cAAc,CAAd,kBAAc,CAAd,oBAAc,CAAd,qBAAc,CAAd,uTAAA,6BAAc,CAAd,kBAAc,CAAd,2CAAc,CAAd,0BAAc,CAAd,2BAAc,CAAd,uBAAc,CAAd,0GAAc,CAAd,wGAAc,CAAd,oBAAc,CAAd,8EAAc,CAAd,mDAAA,aAAc,CAAd,SAAc,CAAd,yCAAA,aAAc,CAAd,SAAc,CAAd,uCAAA,SAAc,CAAd,8BAAA,gBAAc,CAAd,kBAAc,CAAd,wBAAA,mBAAc,CAAd,+TAAA,gBAAc,CAAd,aAAc,CAAd,OAAA,wDAAc,CAAd,sCAAc,CAAd,2BAAc,CAAd,2BAAc,CAAd,oBAAc,CAAd,gCAAc,CAAd,wBAAc,CAAd,gDAAA,qBAAc,CAAd,uBAAc,CAAd,uBAAc,CAAd,uBAAc,CAAd,oBAAc,CAAd,gCAAc,CAAd,wBAAc,CAAd,6BAAA,uBAAc,CAAd,oBAAc,CAAd,eAAc,CAAd,qBAAc,CAAd,4BAAc,CAAd,oBAAc,CAAd,gBAAc,CAAd,aAAc,CAAd,oBAAc,CAAd,aAAc,CAAd,WAAc,CAAd,SAAc,CAAd,gCAAc,CAAd,wBAAc,CAAd,wBAAc,CAAd,qBAAc,CAAd,gBAAc,CAAd,qBAAc,CAAd,UAAc,CAAd,qBAAc,CAAd,gBAAA,eAAc,CAAd,aAAA,kBAAc,CAAd,yCAAA,6BAAc,CAAd,kBAAc,CAAd,2CAAc,CAAd,0BAAc,CAAd,2BAAc,CAAd,uBAAc,CAAd,0GAAc,CAAd,wGAAc,CAAd,8EAAc,CAAd,6CAAA,6BAAc,CAAd,uBAAc,CAAd,2BAAc,CAAd,yBAAc,CAAd,wBAAc,CAAd,wBAAA,wDAAc,CAAd,+BAAA,wBAAA,uBAAc,CAAd,oBAAc,CAAd,eAAc,CAAA,CAAd,qBAAA,wDAAc,CAAd,+BAAA,qBAAA,uBAAc,CAAd,oBAAc,CAAd,eAAc,CAAA,CAAd,kHAAA,6BAAc,CAAd,wBAAc,CAAd,8BAAA,6BAAc,CAAd,wDAAc,CAAd,uBAAc,CAAd,2BAAc,CAAd,yBAAc,CAAd,wBAAc,CAAd,+BAAA,8BAAA,uBAAc,CAAd,oBAAc,CAAd,eAAc,CAAA,CAAd,wEAAA,6BAAc,CAAd,wBAAc,CAAd,YAAA,gBAAc,CAAd,oBAAc,CAAd,eAAc,CAAd,cAAc,CAAd,eAAc,CAAd,mBAAc,CAAd,SAAc,CAAd,kBAAA,4BAAc,CAAd,yCAAc,CACd,WAAA,UAAoB,CAApB,yBAAA,WAAA,eAAoB,CAAA,CACpB,OAAA,cAAmB,CAAnB,UAAA,iBAAmB,CAAnB,UAAA,iBAAmB,CAAnB,SAAA,OAAmB,CAAnB,WAAA,QAAmB,CAAnB,KAAmB,CAAnB,QAAA,MAAmB,CAAnB,UAAA,QAAmB,CAAnB,MAAA,UAAmB,CAAnB,UAAA,oBAAmB,CAAnB,qBAAmB,CAAnB,UAAA,sBAAmB,CAAnB,mBAAmB,CAAnB,SAAA,mBAAmB,CAAnB,oBAAmB,CAAnB,SAAA,gBAAmB,CAAnB,iBAAmB,CAAnB,SAAA,qBAAmB,CAAnB,kBAAmB,CAAnB,MAAA,kBAAmB,CAAnB,eAAmB,CAAnB,OAAA,mBAAmB,CAAnB,UAAA,mBAAmB,CAAnB,MAAA,mBAAmB,CAAnB,MAAA,kBAAmB,CAAnB,MAAA,oBAAmB,CAAnB,MAAA,kBAAmB,CAAnB,MAAA,iBAAmB,CAAnB,SAAA,gBAAmB,CAAnB,SAAA,oBAAmB,CAAnB,MAAA,kBAAmB,CAAnB,MAAA,iBAAmB,CAAnB,OAAA,iBAAmB,CAAnB,MAAA,gBAAmB,CAAnB,MAAA,iBAAmB,CAAnB,MAAA,eAAmB,CAAnB,MAAA,kBAAmB,CAAnB,OAAA,aAAmB,CAAnB,MAAA,YAAmB,CAAnB,aAAA,mBAAmB,CAAnB,OAAA,aAAmB,CAAnB,QAAA,YAAmB,CAAnB,QAAA,cAAmB,CAAnB,KAAA,aAAmB,CAAnB,QAAA,cAAmB,CAAnB,KAAA,WAAmB,CAAnB,QAAA,WAAmB,CAAnB,YAAA,eAAmB,CAAnB,QAAA,aAAmB,CAAnB,KAAA,YAAmB,CAAnB,QAAA,aAAmB,CAAnB,KAAA,UAAmB,CAAnB,QAAA,UAAmB,CAAnB,YAAA,cAAmB,CAAnB,WAAA,eAAmB,CAAnB,WAAA,6LAAmB,CAAnB,gBAAA,GAAA,uBAAmB,CAAA,CAAnB,cAAA,iCAAmB,CAAnB,gBAAA,cAAmB,CAAnB,WAAA,oBAAmB,CAAnB,cAAA,kBAAmB,CAAnB,aAAA,wBAAmB,CAAnB,gBAAA,sBAAmB,CAAnB,iBAAA,6BAAmB,CAAnB,yCAAA,sBAAmB,CAAnB,wDAAmB,CAAnB,mDAAmB,CAAnB,yCAAA,sBAAmB,CAAnB,sDAAmB,CAAnB,iDAAmB,CAAnB,0CAAA,sBAAmB,CAAnB,oDAAmB,CAAnB,uDAAmB,CAAnB,yCAAA,sBAAmB,CAAnB,oDAAmB,CAAnB,uDAAmB,CAAnB,wCAAA,uBAAmB,CAAnB,wDAAmB,CAAnB,2DAAmB,CAAnB,+CAAA,qBAAmB,CAAnB,wDAAmB,CAAnB,+CAAA,qBAAmB,CAAnB,wDAAmB,CAAnB,iBAAA,eAAmB,CAAnB,iBAAA,eAAmB,CAAnB,mBAAA,kBAAmB,CAAnB,gBAAA,eAAmB,CAAnB,YAAA,mBAAmB,CAAnB,YAAA,qBAAmB,CAAnB,QAAA,gBAAmB,CAAnB,UAAA,gBAAmB,CAAnB,iBAAA,qBAAmB,CAAnB,wDAAmB,CAAnB,sBAAA,0CAAmB,CAAnB,gBAAA,qBAAmB,CAAnB,wDAAmB,CAAnB,oBAAA,wBAAmB,CAAnB,cAAA,+BAAmB,CAAnB,YAAA,iBAAmB,CAAnB,wDAAmB,CAAnB,aAAA,iBAAmB,CAAnB,wDAAmB,CAAnB,iBAAA,wCAAmB,CAAnB,WAAA,iBAAmB,CAAnB,wDAAmB,CAAnB,UAAA,iBAAmB,CAAnB,wDAAmB,CAAnB,QAAA,eAAmB,CAAnB,KAAA,YAAmB,CAAnB,MAAA,mBAAmB,CAAnB,oBAAmB,CAAnB,MAAA,iBAAmB,CAAnB,kBAAmB,CAAnB,MAAA,qBAAmB,CAAnB,kBAAmB,CAAnB,MAAA,oBAAmB,CAAnB,iBAAmB,CAAnB,SAAA,sBAAmB,CAAnB,mBAAmB,CAAnB,MAAA,mBAAmB,CAAnB,gBAAmB,CAAnB,MAAA,sBAAmB,CAAnB,mBAAmB,CAAnB,SAAA,sBAAmB,CAAnB,MAAA,mBAAmB,CAAnB,OAAA,iBAAmB,CAAnB,SAAA,oBAAmB,CAAnB,MAAA,mBAAmB,CAAnB,MAAA,iBAAmB,CAAnB,MAAA,oBAAmB,CAAnB,SAAA,qBAAmB,CAAnB,MAAA,mBAAmB,CAAnB,MAAA,oBAAmB,CAAnB,MAAA,mBAAmB,CAAnB,WAAA,eAAmB,CAAnB,aAAA,iBAAmB,CAAnB,YAAA,4BAAmB,CAAnB,UAAA,gBAAmB,CAAnB,gBAAmB,CAAnB,SAAA,kBAAmB,CAAnB,mBAAmB,CAAnB,SAAA,iBAAmB,CAAnB,mBAAmB,CAAnB,SAAA,gBAAmB,CAAnB,gBAAmB,CAAnB,aAAA,eAAmB,CAAnB,eAAA,eAAmB,CAAnB,WAAA,kBAAmB,CAAnB,eAAA,mBAAmB,CAAnB,+CAAmB,CAAnB,eAAA,mBAAmB,CAAnB,4CAAmB,CAAnB,eAAA,mBAAmB,CAAnB,4CAAmB,CAAnB,gBAAA,mBAAmB,CAAnB,6CAAmB,CAAnB,gBAAA,mBAAmB,CAAnB,6CAAmB,CAAnB,mBAAA,6BAAmB,CAAnB,cAAA,mBAAmB,CAAnB,6CAAmB,CAAnB,cAAA,mBAAmB,CAAnB,6CAAmB,CAAnB,cAAA,mBAAmB,CAAnB,6CAAmB,CAAnB,cAAA,mBAAmB,CAAnB,6CAAmB,CAAnB,YAAA,mBAAmB,CAAnB,+CAAmB,CAAnB,uCAAA,0BAAmB,CAAnB,sDAAmB,CAAnB,kCAAA,0BAAmB,CAAnB,sDAAmB,CAAnB,QAAA,oEAAmB,CAAnB,4FAAmB,CAAnB,mBAAA,kGAAmB,CAAnB,WAAA,yEAAmB,CAAnB,iGAAmB,CAAnB,WAAA,uCAAmB,CAAnB,sDAAmB,CAAnB,sBAAA,kGAAmB,CAAnB,WAAA,0EAAmB,CAAnB,kGAAmB,CAAnB,QAAA,0GAAmB,CAAnB,wGAAmB,CAAnB,wFAAmB,CAAnB,YAAA,mBAAmB,CAAnB,mDAAmB,CAAnB,gBAAA,sBAAmB,CAAnB,QAAA,gLAAmB,CAFnB,8CAAA,mBAGA,CAHA,+CAGA,CAHA,yCAAA,mBAGA,CAHA,+CAGA,CAHA,yBAAA,iBAGA,CAHA,wDAGA,CAHA,2BAAA,iBAGA,CAHA,wDAGA,CAHA,+BAAA,8CAGA,CAHA,yBAAA,iBAGA,CAHA,wDAGA,CAHA,mCAAA,0CAGA,CAHA,6BAAA,qBAGA,CAHA,sDAGA,CAHA,2BAAA,6BAGA,CAHA,kBAGA,CAHA,qBAAA,0GAGA,CAHA,wGAGA,CAHA,wFAGA,CAHA,6BAAA,mBAGA,CAHA,uDAGA,CAHA,iCAAA,6CAGA,CAHA,2BAAA,mBAGA,CAHA,uDAGA,CAHA,2BAAA,mBAGA,CAHA,uDAGA,CAHA,4BAAA,0BAGA,CAHA,mCAAA,8BAGA,CAHA,iCAAA,8BAGA,CAHA,uCAAA,kBAGA,CAHA,+BAAA,iBAGA,CAHA,wDAGA,CAHA,+BAAA,UAGA,CAHA,yBAAA,UAAA,kBAGA,CAHA,eAGA,CAHA,UAAA,YAGA,CAHA,WAAA,aAGA,CAHA,UAAA,YAGA,CAHA,YAAA,YAGA,CAHA,UAAA,UAGA,CAHA,UAAA,UAGA,CAHA,iBAAA,WAGA,CAHA,iBAAA,WAGA,CAHA,iBAAA,WAGA,CAHA,iBAAA,WAGA,CAHA,YAAA,UAGA,CAHA,qBAAA,eAGA,CAHA,qBAAA,eAGA,CAHA,oBAAA,aAGA,CAHA,YAAA,WAGA,CAHA,eAAA,SAGA,CAHA,cAAA,qBAGA,CAHA,kBAAA,kBAGA,CAHA,6CAAA,sBAGA,CAHA,uDAGA,CAHA,kDAGA,CAHA,6CAAA,sBAGA,CAHA,iDAGA,CAHA,oDAGA,CAHA,6CAAA,sBAGA,CAHA,oDAGA,CAHA,uDAGA,CAHA,SAAA,SAGA,CAHA,SAAA,cAGA,CAHA,UAAA,mBAGA,CAHA,aAAA,iBAGA,CAHA,mBAGA,CAAA",sourceRoot:""}]);const g=A},314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(a[c]=!0)}for(var u=0;u<e.length;u++){var l=[].concat(e[u]);r&&a[l[0]]||(void 0!==i&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),t.push(l))}},t}},417:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},354:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),i="/*# ".concat(o," */");return[t].concat([i]).join("\n")}return[t].join("\n")}},402:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Children:()=>w,Component:()=>r.uA,Fragment:()=>r.FK,PureComponent:()=>A,StrictMode:()=>ae,Suspense:()=>_,SuspenseList:()=>k,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>K,cloneElement:()=>te,createContext:()=>r.q6,createElement:()=>r.n,createFactory:()=>X,createPortal:()=>P,createRef:()=>r._3,default:()=>ce,findDOMNode:()=>re,flushSync:()=>ie,forwardRef:()=>h,hydrate:()=>F,isElement:()=>se,isFragment:()=>Z,isMemo:()=>ee,isValidElement:()=>Q,lazy:()=>B,memo:()=>m,render:()=>j,startTransition:()=>u,unmountComponentAtNode:()=>ne,unstable_batchedUpdates:()=>oe,useCallback:()=>o.hb,useContext:()=>o.NT,useDebugValue:()=>o.MN,useDeferredValue:()=>l,useEffect:()=>o.vJ,useErrorBoundary:()=>o.Md,useId:()=>o.Bi,useImperativeHandle:()=>o.Yn,useInsertionEffect:()=>d,useLayoutEffect:()=>o.Nf,useMemo:()=>o.Kr,useReducer:()=>o.WO,useRef:()=>o.li,useState:()=>o.J0,useSyncExternalStore:()=>s,useTransition:()=>f,version:()=>J});var r=n(172),o=n(994);function i(e,t){for(var n in t)e[n]=t[n];return e}function a(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function s(e,t){var n=t(),r=(0,o.J0)({t:{__:n,u:t}}),i=r[0].t,a=r[1];return(0,o.Nf)((function(){i.__=n,i.u=t,c(i)&&a({t:i})}),[e,n,t]),(0,o.vJ)((function(){return c(i)&&a({t:i}),e((function(){c(i)&&a({t:i})}))}),[e]),n}function c(e){var t,n,r=e.u,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}function u(e){e()}function l(e){return e}function f(){return[!1,u]}var d=o.Nf;function A(e,t){this.props=e,this.context=t}function m(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:a(this.props,e)}function o(t){return this.shouldComponentUpdate=n,(0,r.n)(e,t)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(A.prototype=new r.uA).isPureReactComponent=!0,A.prototype.shouldComponentUpdate=function(e,t){return a(this.props,e)||a(this.state,t)};var p=r.fF.__b;r.fF.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),p&&p(e)};var $="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function h(e){function t(t){var n=i({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=$,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var g=function(e,t){return null==e?null:(0,r.v2)((0,r.v2)(e).map(t))},w={map:g,forEach:g,count:function(e){return e?(0,r.v2)(e).length:0},only:function(e){var t=(0,r.v2)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:r.v2},y=r.fF.__e;r.fF.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);y(e,t,n,r)};var b=r.fF.unmount;function v(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=i({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return v(e,t,n)}))),e}function C(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return C(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function _(){this.__u=0,this.o=null,this.__b=null}function x(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function B(e){var t,n,o;function i(i){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){o=e})),o)throw o;if(!n)throw t;return(0,r.n)(n,i)}return i.displayName="Lazy",i.__f=!0,i}function k(){this.i=null,this.l=null}r.fF.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),b&&b(e)},(_.prototype=new r.uA).__c=function(e,t){var n=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(n);var o=x(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=C(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},_.prototype.componentWillUnmount=function(){this.o=[]},_.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=v(this.__b,n,o.__O=o.__P)}this.__b=null}var i=t.__a&&(0,r.n)(r.FK,null,e.fallback);return i&&(i.__u&=-33),[(0,r.n)(r.FK,null,t.__a?null:e.children),i]};var S=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function E(e){return this.getChildContext=function(){return e.context},e.children}function N(e){var t=this,n=e.h;t.componentWillUnmount=function(){(0,r.XX)(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.h.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.h.insertBefore(e,n)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}),(0,r.XX)((0,r.n)(E,{context:t.context},e.__v),t.v)}function P(e,t){var n=(0,r.n)(N,{__v:e,h:t});return n.containerInfo=t,n}(k.prototype=new r.uA).__a=function(e){var t=this,n=x(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),S(t,e,r)):o()};n?n(i):i()}},k.prototype.render=function(e){this.i=null,this.l=new Map;var t=(0,r.v2)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},k.prototype.componentDidUpdate=k.prototype.componentDidMount=function(){var e=this;this.l.forEach((function(t,n){S(e,n,t)}))};var I="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,M=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,O=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,T=/[A-Z0-9]/g,D="undefined"!=typeof document,R=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function j(e,t,n){return null==t.__k&&(t.textContent=""),(0,r.XX)(e,t),"function"==typeof n&&n(),e?e.__c:null}function F(e,t,n){return(0,r.Qv)(e,t),"function"==typeof n&&n(),e?e.__c:null}r.uA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(r.uA.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var G=r.fF.event;function H(){}function L(){return this.cancelBubble}function U(){return this.defaultPrevented}r.fF.event=function(e){return G&&(e=G(e)),e.persist=H,e.isPropagationStopped=L,e.isDefaultPrevented=U,e.nativeEvent=e};var z,q={enumerable:!1,configurable:!0,get:function(){return this.class}},W=r.fF.vnode;r.fF.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,o={},i=-1===n.indexOf("-");for(var a in t){var s=t[a];if(!("value"===a&&"defaultValue"in t&&null==s||D&&"children"===a&&"noscript"===n||"class"===a||"className"===a)){var c=a.toLowerCase();"defaultValue"===a&&"value"in t&&null==t.value?a="value":"download"===a&&!0===s?s="":"translate"===c&&"no"===s?s=!1:"o"===c[0]&&"n"===c[1]?"ondoubleclick"===c?a="ondblclick":"onchange"!==c||"input"!==n&&"textarea"!==n||R(t.type)?"onfocus"===c?a="onfocusin":"onblur"===c?a="onfocusout":O.test(a)&&(a=c):c=a="oninput":i&&M.test(a)?a=a.replace(T,"-$&").toLowerCase():null===s&&(s=void 0),"oninput"===c&&o[a=c]&&(a="oninputCapture"),o[a]=s}}"select"==n&&o.multiple&&Array.isArray(o.value)&&(o.value=(0,r.v2)(t.children).forEach((function(e){e.props.selected=-1!=o.value.indexOf(e.props.value)}))),"select"==n&&null!=o.defaultValue&&(o.value=(0,r.v2)(t.children).forEach((function(e){e.props.selected=o.multiple?-1!=o.defaultValue.indexOf(e.props.value):o.defaultValue==e.props.value}))),t.class&&!t.className?(o.class=t.class,Object.defineProperty(o,"className",q)):(t.className&&!t.class||t.class&&t.className)&&(o.class=o.className=t.className),e.props=o}(e),e.$$typeof=I,W&&W(e)};var Y=r.fF.__r;r.fF.__r=function(e){Y&&Y(e),z=e.__c};var V=r.fF.diffed;r.fF.diffed=function(e){V&&V(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),z=null};var K={ReactCurrentDispatcher:{current:{readContext:function(e){return z.__n[e.__c].props.value},useCallback:o.hb,useContext:o.NT,useDebugValue:o.MN,useDeferredValue:l,useEffect:o.vJ,useId:o.Bi,useImperativeHandle:o.Yn,useInsertionEffect:d,useLayoutEffect:o.Nf,useMemo:o.Kr,useReducer:o.WO,useRef:o.li,useState:o.J0,useSyncExternalStore:s,useTransition:f}}},J="18.3.1";function X(e){return r.n.bind(null,e)}function Q(e){return!!e&&e.$$typeof===I}function Z(e){return Q(e)&&e.type===r.FK}function ee(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function te(e){return Q(e)?r.Ob.apply(null,arguments):e}function ne(e){return!!e.__k&&((0,r.XX)(null,e),!0)}function re(e){return e&&(e.base||1===e.nodeType&&e)||null}var oe=function(e,t){return e(t)},ie=function(e,t){return e(t)},ae=r.FK,se=Q,ce={useState:o.J0,useId:o.Bi,useReducer:o.WO,useEffect:o.vJ,useLayoutEffect:o.Nf,useInsertionEffect:d,useTransition:f,useDeferredValue:l,useSyncExternalStore:s,startTransition:u,useRef:o.li,useImperativeHandle:o.Yn,useMemo:o.Kr,useCallback:o.hb,useContext:o.NT,useDebugValue:o.MN,version:"18.3.1",Children:w,render:j,hydrate:F,unmountComponentAtNode:ne,createPortal:P,createElement:r.n,createContext:r.q6,createFactory:X,cloneElement:te,createRef:r._3,Fragment:r.FK,isValidElement:Q,isElement:se,isFragment:Z,isMemo:ee,findDOMNode:re,Component:r.uA,PureComponent:A,memo:m,forwardRef:h,flushSync:ie,unstable_batchedUpdates:oe,StrictMode:ae,Suspense:_,SuspenseList:k,lazy:B,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:K}},172:(e,t,n)=>{"use strict";n.d(t,{FK:()=>_,Ob:()=>W,Qv:()=>q,XX:()=>z,_3:()=>C,fF:()=>o,h:()=>b,n:()=>b,q6:()=>Y,uA:()=>x,v2:()=>M});var r,o,i,a,s,c,u,l,f,d,A,m,p={},$=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,g=Array.isArray;function w(e,t){for(var n in t)e[n]=t[n];return e}function y(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function b(e,t,n){var o,i,a,s={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return v(e,s,o,i,null)}function v(e,t,n,r,a){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==a?++i:a,__i:-1,__u:0};return null==a&&null!=o.vnode&&o.vnode(s),s}function C(){return{current:null}}function _(e){return e.children}function x(e,t){this.props=e,this.context=t}function B(e,t){if(null==t)return e.__?B(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?B(e):null}function k(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return k(e)}}function S(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!E.__r++||s!==o.debounceRendering)&&((s=o.debounceRendering)||c)(E)}function E(){var e,t,n,r,i,s,c,l;for(a.sort(u);e=a.shift();)e.__d&&(t=a.length,r=void 0,s=(i=(n=e).__v).__e,c=[],l=[],n.__P&&((r=w({},i)).__v=i.__v+1,o.vnode&&o.vnode(r),j(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[s]:null,c,null==s?B(i):s,!!(32&i.__u),l),r.__v=i.__v,r.__.__k[r.__i]=r,F(c,r,l),r.__e!=s&&k(r)),a.length>t&&a.sort(u));E.__r=0}function N(e,t,n,r,o,i,a,s,c,u,l){var f,d,A,m,h,g,w=r&&r.__k||$,y=t.length;for(c=P(n,t,w,c,y),f=0;f<y;f++)null!=(A=n.__k[f])&&(d=-1===A.__i?p:w[A.__i]||p,A.__i=f,g=j(e,A,d,o,i,a,s,c,u,l),m=A.__e,A.ref&&d.ref!=A.ref&&(d.ref&&H(d.ref,null,A),l.push(A.ref,A.__c||m,A)),null==h&&null!=m&&(h=m),4&A.__u||d.__k===A.__k?c=I(A,c,e):"function"==typeof A.type&&void 0!==g?c=g:m&&(c=m.nextSibling),A.__u&=-7);return n.__e=h,c}function P(e,t,n,r,o){var i,a,s,c,u,l=n.length,f=l,d=0;for(e.__k=new Array(o),i=0;i<o;i++)null!=(a=t[i])&&"boolean"!=typeof a&&"function"!=typeof a?(c=i+d,(a=e.__k[i]="string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?v(null,a,null,null,null):g(a)?v(_,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?v(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,-1!==(u=a.__i=O(a,n,c,f))&&(f--,(s=n[u])&&(s.__u|=2)),null==s||null===s.__v?(-1==u&&d--,"function"!=typeof a.type&&(a.__u|=4)):u!=c&&(u==c-1?d--:u==c+1?d++:(u>c?d--:d++,a.__u|=4))):e.__k[i]=null;if(f)for(i=0;i<l;i++)null!=(s=n[i])&&!(2&s.__u)&&(s.__e==r&&(r=B(s)),L(s,s));return r}function I(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=I(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=B(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function M(e,t){return t=t||[],null==e||"boolean"==typeof e||(g(e)?e.some((function(e){M(e,t)})):t.push(e)),t}function O(e,t,n,r){var o,i,a=e.key,s=e.type,c=t[n];if(null===c||c&&a==c.key&&s===c.type&&!(2&c.__u))return n;if(r>(null==c||2&c.__u?0:1))for(o=n-1,i=n+1;o>=0||i<t.length;){if(o>=0){if((c=t[o])&&!(2&c.__u)&&a==c.key&&s===c.type)return o;o--}if(i<t.length){if((c=t[i])&&!(2&c.__u)&&a==c.key&&s===c.type)return i;i++}}return-1}function T(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||h.test(t)?n:n+"px"}function D(e,t,n,r,o){var i;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||T(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||T(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])i=t!=(t=t.replace(l,"$1")),t=t.toLowerCase()in e||"onFocusOut"==t||"onFocusIn"==t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=f,e.addEventListener(t,i?A:d,i)):e.removeEventListener(t,i?A:d,i);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function R(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=f++;else if(t.t<n.u)return;return n(o.event?o.event(t):t)}}}function j(e,t,n,r,i,a,s,c,u,l){var f,d,A,m,p,$,h,b,v,C,B,k,S,E,P,I,M,O=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(u=!!(32&n.__u),a=[c=t.__e=n.__e]),(f=o.__b)&&f(t);e:if("function"==typeof O)try{if(b=t.props,v="prototype"in O&&O.prototype.render,C=(f=O.contextType)&&r[f.__c],B=f?C?C.props.value:f.__:r,n.__c?h=(d=t.__c=n.__c).__=d.__E:(v?t.__c=d=new O(b,B):(t.__c=d=new x(b,B),d.constructor=O,d.render=U),C&&C.sub(d),d.props=b,d.state||(d.state={}),d.context=B,d.__n=r,A=d.__d=!0,d.__h=[],d._sb=[]),v&&null==d.__s&&(d.__s=d.state),v&&null!=O.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=w({},d.__s)),w(d.__s,O.getDerivedStateFromProps(b,d.__s))),m=d.props,p=d.state,d.__v=t,A)v&&null==O.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),v&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(v&&null==O.getDerivedStateFromProps&&b!==m&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(b,B),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(b,d.__s,B)||t.__v==n.__v)){for(t.__v!=n.__v&&(d.props=b,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some((function(e){e&&(e.__=t)})),k=0;k<d._sb.length;k++)d.__h.push(d._sb[k]);d._sb=[],d.__h.length&&s.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(b,d.__s,B),v&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(m,p,$)}))}if(d.context=B,d.props=b,d.__P=e,d.__e=!1,S=o.__r,E=0,v){for(d.state=d.__s,d.__d=!1,S&&S(t),f=d.render(d.props,d.state,d.context),P=0;P<d._sb.length;P++)d.__h.push(d._sb[P]);d._sb=[]}else do{d.__d=!1,S&&S(t),f=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++E<25);d.state=d.__s,null!=d.getChildContext&&(r=w(w({},r),d.getChildContext())),v&&!A&&null!=d.getSnapshotBeforeUpdate&&($=d.getSnapshotBeforeUpdate(m,p)),c=N(e,g(I=null!=f&&f.type===_&&null==f.key?f.props.children:f)?I:[I],t,n,r,i,a,s,c,u,l),d.base=t.__e,t.__u&=-161,d.__h.length&&s.push(d),h&&(d.__E=d.__=null)}catch(e){if(t.__v=null,u||null!=a)if(e.then){for(t.__u|=u?160:128;c&&8==c.nodeType&&c.nextSibling;)c=c.nextSibling;a[a.indexOf(c)]=null,t.__e=c}else for(M=a.length;M--;)y(a[M]);else t.__e=n.__e,t.__k=n.__k;o.__e(e,t,n)}else null==a&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):c=t.__e=G(n.__e,t,n,r,i,a,s,u,l);return(f=o.diffed)&&f(t),128&t.__u?void 0:c}function F(e,t,n){for(var r=0;r<n.length;r++)H(n[r],n[++r],n[++r]);o.__c&&o.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){o.__e(e,t.__v)}}))}function G(e,t,n,i,a,s,c,u,l){var f,d,A,m,$,h,w,b=n.props,v=t.props,C=t.type;if("svg"==C?a="http://www.w3.org/2000/svg":"math"==C?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=s)for(f=0;f<s.length;f++)if(($=s[f])&&"setAttribute"in $==!!C&&(C?$.localName==C:3==$.nodeType)){e=$,s[f]=null;break}if(null==e){if(null==C)return document.createTextNode(v);e=document.createElementNS(a,C,v.is&&v),u&&(o.__m&&o.__m(t,s),u=!1),s=null}if(null===C)b===v||u&&e.data===v||(e.data=v);else{if(s=s&&r.call(e.childNodes),b=n.props||p,!u&&null!=s)for(b={},f=0;f<e.attributes.length;f++)b[($=e.attributes[f]).name]=$.value;for(f in b)if($=b[f],"children"==f);else if("dangerouslySetInnerHTML"==f)A=$;else if(!(f in v)){if("value"==f&&"defaultValue"in v||"checked"==f&&"defaultChecked"in v)continue;D(e,f,null,$,a)}for(f in v)$=v[f],"children"==f?m=$:"dangerouslySetInnerHTML"==f?d=$:"value"==f?h=$:"checked"==f?w=$:u&&"function"!=typeof $||b[f]===$||D(e,f,$,b[f],a);if(d)u||A&&(d.__html===A.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(A&&(e.innerHTML=""),N(e,g(m)?m:[m],t,n,i,"foreignObject"==C?"http://www.w3.org/1999/xhtml":a,s,c,s?s[0]:n.__k&&B(n,0),u,l),null!=s)for(f=s.length;f--;)y(s[f]);u||(f="value","progress"==C&&null==h?e.removeAttribute("value"):void 0!==h&&(h!==e[f]||"progress"==C&&!h||"option"==C&&h!==b[f])&&D(e,f,h,b[f],a),f="checked",void 0!==w&&w!==e[f]&&D(e,f,w,b[f],a))}return e}function H(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(e){o.__e(e,n)}}function L(e,t,n){var r,i;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||H(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){o.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&L(r[i],t,n||"function"!=typeof e.type);n||y(e.__e),e.__c=e.__=e.__e=void 0}function U(e,t,n){return this.constructor(e,n)}function z(e,t,n){var i,a,s,c;t==document&&(t=document.documentElement),o.__&&o.__(e,t),a=(i="function"==typeof n)?null:n&&n.__k||t.__k,s=[],c=[],j(t,e=(!i&&n||t).__k=b(_,null,[e]),a||p,p,t.namespaceURI,!i&&n?[n]:a?null:t.firstChild?r.call(t.childNodes):null,s,!i&&n?n:a?a.__e:t.firstChild,i,c),F(s,e,c)}function q(e,t){z(e,t,q)}function W(e,t,n){var o,i,a,s,c=w({},e.props);for(a in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)"key"==a?o=t[a]:"ref"==a?i=t[a]:c[a]=void 0===t[a]&&void 0!==s?s[a]:t[a];return arguments.length>2&&(c.children=arguments.length>3?r.call(arguments,2):n),v(e.type,c,o||e.key,i||e.ref,null)}function Y(e,t){var n={__c:t="__cC"+m++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.forEach((function(e){e.__e=!0,S(e)}))},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=$.slice,o={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},i=0,x.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=w({},this.state),"function"==typeof e&&(e=e(w({},n),this.props)),e&&w(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),S(this))},x.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),S(this))},x.prototype.render=_,a=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u=function(e,t){return e.__v.__b-t.__v.__b},E.__r=0,l=/(PointerCapture)$|Capture$/i,f=0,d=R(!1),A=R(!0),m=0},994:(e,t,n)=>{"use strict";n.d(t,{Bi:()=>E,J0:()=>g,Kr:()=>_,MN:()=>k,Md:()=>S,NT:()=>B,Nf:()=>b,WO:()=>w,Yn:()=>C,hb:()=>x,li:()=>v,vJ:()=>y});var r,o,i,a,s=n(172),c=0,u=[],l=s.fF,f=l.__b,d=l.__r,A=l.diffed,m=l.__c,p=l.unmount,$=l.__;function h(e,t){l.__h&&l.__h(o,e,c||t),c=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function g(e){return c=1,w(D,e)}function w(e,t,n){var i=h(r++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):D(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=o,!o.u)){var a=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(e){return!!e.__c}));if(r.every((function(e){return!e.__N})))return!s||s.call(this,e,t,n);var o=i.__c.props!==e;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}})),s&&s.call(this,e,t,n)||o};o.u=!0;var s=o.shouldComponentUpdate,c=o.componentWillUpdate;o.componentWillUpdate=function(e,t,n){if(this.__e){var r=s;s=void 0,a(e,t,n),s=r}c&&c.call(this,e,t,n)},o.shouldComponentUpdate=a}return i.__N||i.__}function y(e,t){var n=h(r++,3);!l.__s&&T(n.__H,t)&&(n.__=e,n.i=t,o.__H.__h.push(n))}function b(e,t){var n=h(r++,4);!l.__s&&T(n.__H,t)&&(n.__=e,n.i=t,o.__h.push(n))}function v(e){return c=5,_((function(){return{current:e}}),[])}function C(e,t,n){c=6,b((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function _(e,t){var n=h(r++,7);return T(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function x(e,t){return c=8,_((function(){return e}),t)}function B(e){var t=o.context[e.__c],n=h(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__}function k(e,t){l.useDebugValue&&l.useDebugValue(t?t(e):e)}function S(e){var t=h(r++,10),n=g();return t.__=e,o.componentDidCatch||(o.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function E(){var e=h(r++,11);if(!e.__){for(var t=o.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function N(){for(var e;e=u.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(M),e.__H.__h.forEach(O),e.__H.__h=[]}catch(t){e.__H.__h=[],l.__e(t,e.__v)}}l.__b=function(e){o=null,f&&f(e)},l.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),$&&$(e,t)},l.__r=function(e){d&&d(e),r=0;var t=(o=e.__c).__H;t&&(i===o?(t.__h=[],o.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(M),t.__h.forEach(O),t.__h=[],r=0)),i=o},l.diffed=function(e){A&&A(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==u.push(t)&&a===l.requestAnimationFrame||((a=l.requestAnimationFrame)||I)(N)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),i=o=null},l.__c=function(e,t){t.some((function(e){try{e.__h.forEach(M),e.__h=e.__h.filter((function(e){return!e.__||O(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],l.__e(n,e.__v)}})),m&&m(e,t)},l.unmount=function(e){p&&p(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{M(e)}catch(e){t=e}})),n.__H=void 0,t&&l.__e(t,n.__v))};var P="function"==typeof requestAnimationFrame;function I(e){var t,n=function(){clearTimeout(r),P&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);P&&(t=requestAnimationFrame(n))}function M(e){var t=o,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),o=t}function O(e){var t=o;e.__c=e.__(),o=t}function T(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function D(e,t){return"function"==typeof t?t(e):t}},694:(e,t,n)=>{"use strict";var r=n(925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},556:(e,t,n)=>{e.exports=n(694)()},925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},493:(e,t,n)=>{"use strict";var r=n(402),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,c=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,l=r[1];return s((function(){o.value=n,o.getSnapshot=t,u(o)&&l({inst:o})}),[e,n,t]),a((function(){return u(o)&&l({inst:o}),e((function(){u(o)&&l({inst:o})}))}),[e]),c(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},888:(e,t,n)=>{"use strict";e.exports=n(493)},357:(e,t,n)=>{"use strict";var r=n(402);function o(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function i(e){return null!=e&&"function"==typeof e.Dispose}function a(e){i(e)&&e.Dispose()}function s(e,t){return Object.getPrototypeOf(e)?.constructor===Object.getPrototypeOf(t)?.constructor}Symbol.iterator;class c{constructor(e){this.iter=e,this.current=null}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this.iter.next();return this.current=e.value,!e.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function u(e){return function(e){return null!=e&&"function"==typeof e.GetEnumerator}(e)?e.GetEnumerator():new c(e[Symbol.iterator]())}function l(e){return{next(){const t=e["System.Collections.IEnumerator.MoveNext"]();return{done:!t,value:t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0}}}}class f{constructor(e){this.factory=e,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function d(e,t){return e.toString(10).padStart(t,"0")}function A(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function m(e,t){return(e=e<0&&null!=t&&10!==t?65535+e+1:e).toString(t)}function p(e,t){return(e=e<0&&null!=t&&10!==t?4294967295+e+1:e).toString(t)}class ${static id(e){return $.idMap.has(e)||$.idMap.set(e,++$.count),$.idMap.get(e)}}function h(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function g(e){return 2654435761*e|0}function w(e){let t=0;const n=e.length;for(let r=0;r<n;r++)t=(t<<5)+t^e[r];return t}function y(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=b(e[r]);return w(n)}function b(e){if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return g(e);case"bigint":return function(e){return h(e.toString(32))}(e);case"string":return h(e);default:return function(e){return null!=e&&"function"==typeof e.GetHashCode}(e)?e.GetHashCode():o(e)?y(e):e instanceof Date?function(e){return e.getTime()}(e):Object.getPrototypeOf(e)?.constructor===Object?w(Object.values(e).map((e=>b(e)))):g($.id(e))}}function v(e,t,n){if(null==e)return null==t;if(null==t)return!1;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function C(e,t){return v(e,t,_)}function _(e,t){return e===t||(null==e?null==t:null!=t&&(function(e){return null!=e&&"function"==typeof e.Equals}(e)?e.Equals(t):o(e)?o(t)&&C(e,t):"object"==typeof e&&(e instanceof Date?t instanceof Date&&0===x(e,t):Object.getPrototypeOf(e)?.constructor===Object&&function(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let o=0;o<n.length;o++)if(n[o]!==r[o]||!_(e[n[o]],t[r[o]]))return!1;return!0}(e,t))))}function x(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+A(e),r=t.getTime()+A(t)),n===r?0:n<r?-1:1}function B(e,t){return e===t?0:e<t?-1:1}function k(e,t){return function(e,t,n){if(null==e)return null==t?0:1;if(null==t)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,o=0;r<e.length;r++)if(o=n(e[r],t[r]),0!==o)return o;return 0}(e,t,S)}function S(e,t){return e===t?0:null==e?null==t?0:-1:null==t?1:function(e){return null!=e&&"function"==typeof e.CompareTo}(e)?e.CompareTo(t):o(e)?o(t)?k(e,t):-1:"object"!=typeof e?e<t?-1:1:e instanceof Date?t instanceof Date?x(e,t):-1:Object.getPrototypeOf(e)?.constructor===Object?function(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let o=0,i=0;o<n.length;o++){const a=n[o];if(a!==r[o])return a<r[o]?-1:1;if(i=S(e[a],t[a]),0!==i)return i}return 0}(e,t):-1}function E(e){const t={};for(const n of e)t[n[0]]=n[1];return t}$.idMap=new WeakMap,$.count=0;const N=new WeakMap;function P(e){if(null==e)return null;const t=(t,n)=>e(t)(n);return N.set(t,e),t}function I(e){return N.get(e)??(t=>n=>e(t,n))}function M(e){if(null==e)return null;const t=(t,n,r)=>e(t)(n)(r);return N.set(t,e),t}function O(e){return N.get(e)??(t=>n=>r=>e(t,n,r))}function T(e,t=0){if(null!=e&&"object"==typeof e){if("function"==typeof e.toString)return e.toString();if(Symbol.iterator in e)return function(e){let t=0,n="[";for(const r of e){if(0===t)n+=T(r);else{if(100===t){n+="; ...";break}n+="; "+T(r)}t++}return n+"]"}(e);{const n=Object.getPrototypeOf(e)?.constructor;return n===Object&&t<10?"{ "+Object.entries(e).map((([e,n])=>e+" = "+T(n,t+1))).join("\n ")+" }":n?.name??""}}return String(e)}class D{get name(){return this.cases()[this.tag]}toJSON(){return 0===this.fields.length?this.name:[this.name].concat(this.fields)}toString(){return function(e,t){if(0===t.length)return e;{let n,r=!0;return 1===t.length?(n=T(t[0]),r=n.indexOf(" ")>=0):n=t.map((e=>T(e))).join(", "),e+(r?" (":" ")+n+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>b(e)));return e.splice(0,0,g(this.tag)),w(e)}Equals(e){return this===e||!!s(this,e)&&this.tag===e.tag&&C(this.fields,e.fields)}CompareTo(e){return this===e?0:s(this,e)?this.tag===e.tag?k(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class R{toJSON(){return function(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}(this)}toString(){return function(e){return"{ "+Object.entries(e).map((([e,t])=>e+" = "+T(t))).join("\n ")+" }"}(this)}GetHashCode(){return function(e){return w(Object.values(e).map((e=>b(e))))}(this)}Equals(e){return function(e,t){if(e===t)return!0;if(s(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!_(e[n[r]],t[n[r]]))return!1;return!0}return!1}(this,e)}CompareTo(e){return function(e,t){if(e===t)return 0;if(s(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=S(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}class j{get contents(){return this.getter()}set contents(e){this.setter(e)}constructor(e,t){"function"==typeof t?(this.getter=e,this.setter=t):(this.getter=()=>e,this.setter=t=>{e=t})}}class F{constructor(e){this.message=e}}function G(e){return function(e){return e instanceof F||e instanceof Error}(e)||function(e){return e instanceof Promise}(e)?e:new Error(String(e))}class H extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved"]}}class L extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Started","Finished"]}}class U extends R{constructor(e){super(),this.AccessToken=e}}class z extends R{constructor(e){super(),this.Auth=e}}function q(e){return new W(1,[e])}class W extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Ok","Error"]}}function Y(e,t){return 0===t.tag?(n=e(t.fields[0]),new W(0,[n])):q(t.fields[0]);var n}const V=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],K=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],J=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],X=["January","February","March","April","May","June","July","August","September","October","November","December"];function Q(e,t,n){let r=0,o=t;for(;o<e.length&&e[o]===n;)o++,r++;return r}function Z(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function ee(e,t){let n=t;const r=e[t];let o="",i=!1;for(;t<e.length;){const n=e[++t];if(n===r){i=!0;break}if("\\"===n){if(!(t<e.length))throw new Error("Invalid string format");o+=e[++t]}else o+=n}if(!i)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[o,t-n+1]}function te(e,t,n){let r=0,o=0,i="";const a=n?ae(e.getTime(),1):e;for(;r<t.length;){const e=t[r];switch(e){case"d":switch(o=Q(t,r,"d"),r+=o,o){case 1:i+=le(a);break;case 2:i+=d(le(a),2);break;case 3:i+=V[$e(a)];break;case 4:i+=K[$e(a)]}break;case"f":if(o=Q(t,r,"f"),r+=o,o<=3){const e=10**(3-o);i+=d(Math.floor(de(a)/e),o)}else o<=7&&(i+=(""+de(a)).padEnd(o,"0"));break;case"F":if(o=Q(t,r,"F"),r+=o,o<=3){const e=10**(3-o),t=Math.floor(de(a)/e);0!=t&&(i+=d(t,o))}else if(o<=7){const e=de(a);0!=e&&(i+=d(e,3))}break;case"g":o=Q(t,r,"g"),r+=o,o<=2&&(i+="A.D.");break;case"h":switch(o=Q(t,r,"h"),r+=o,o){case 1:i+=fe(a)%12;break;case 2:i+=d(fe(a)%12,2)}break;case"H":switch(o=Q(t,r,"H"),r+=o,o){case 1:i+=fe(a);break;case 2:i+=d(fe(a),2)}break;case"K":if(o=Q(t,r,"K"),r+=o,1===o)switch(ne(a)){case 1:i+="Z";break;case 2:i+=re(-6e4*a.getTimezoneOffset())}break;case"m":switch(o=Q(t,r,"m"),r+=o,o){case 1:i+=Ae(a);break;case 2:i+=d(Ae(a),2)}break;case"M":switch(o=Q(t,r,"M"),r+=o,o){case 1:i+=me(a);break;case 2:i+=d(me(a),2);break;case 3:i+=J[me(a)-1];break;case 4:i+=X[me(a)-1]}break;case"s":switch(o=Q(t,r,"s"),r+=o,o){case 1:i+=pe(a);break;case 2:i+=d(pe(a),2)}break;case"t":switch(o=Q(t,r,"t"),r+=o,o){case 1:i+=a.getHours()<12?"A":"P";break;case 2:i+=a.getHours()<12?"AM":"PM"}break;case"y":switch(o=Q(t,r,"y"),r+=o,o){case 1:i+=a.getFullYear()%100;break;case 2:i+=d(a.getFullYear()%100,2);break;case 3:i+=d(a.getFullYear(),3);break;case 4:i+=d(a.getFullYear(),4);break;case 5:i+=d(a.getFullYear(),5)}break;case"z":o=Q(t,r,"z"),r+=o;let s="";switch(ne(a)){case 1:s="+00:00";break;case 2:s=re(-6e4*a.getTimezoneOffset());break;case 0:s=re(-6e4*ue(a).getTimezoneOffset())}const c="-"===s[0]?"-":"+",u=parseInt(s.substring(1,3),10),l=parseInt(s.substring(4,6),10);switch(o){case 1:i+=`${c}${u}`;break;case 2:i+=`${c}${d(u,2)}`;break;default:i+=`${c}${d(u,2)}:${d(l,2)}`}break;case":":i+=":",r++;break;case"/":i+="/",r++;break;case"'":case'"':const[f,A]=ee(t,r);i+=f,r+=A;break;case"%":const m=Z(t,r);if(!(m>=0&&m!=="%".charCodeAt(0)))throw new Error("Invalid format string");r+=2,i+=te(a,String.fromCharCode(m),n);break;case"\\":const p=Z(t,r);if(!(p>=0))throw new Error("Invalid format string");r+=2,i+=String.fromCharCode(p);break;default:r++,i+=e}}return i}function ne(e){return e.kind||0}function re(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+d(~~(e/36e5),2)+":"+d(n,2)}function oe(e,t){const n=e.toISOString();return"first"===t?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function ie(e,t,n){return null!=e.offset?function(e,t){const n=new Date(e.getTime()+(e.offset??0));if("string"!=typeof t)return n.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+re(e.offset??0);if(1!==t.length)return te(n,t,!0);switch(t){case"D":case"d":return oe(n,"first");case"T":case"t":return oe(n,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+re(t)}(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}}(e,t):function(e,t){const n=1===e.kind;if("string"!=typeof t)return n?e.toUTCString():e.toLocaleString();if(1!==t.length)return te(e,t,n);switch(t){case"D":case"d":return n?oe(e,"first"):e.toLocaleDateString();case"T":case"t":return n?oe(e,"second"):e.toLocaleTimeString();case"O":case"o":return function(e,t){if(t)return e.toISOString();{const t=null==e.kind||2===e.kind;return d(e.getFullYear(),4)+"-"+d(e.getMonth()+1,2)+"-"+d(e.getDate(),2)+"T"+d(e.getHours(),2)+":"+d(e.getMinutes(),2)+":"+d(e.getSeconds(),2)+"."+d(e.getMilliseconds(),3)+(t?re(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}(e,t)}function ae(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function se(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}null!=e&&""!==e.trim()||t(),10===e.length&&"-"===e[4]&&"-"===e[7]&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(null!=o){let e,t=0;if(null!=o[2]){const e=o[2].split(":"),n=parseInt(e[0],10);t=3600*n+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=o[3]&&"PM"===o[3].toUpperCase()&&n<12&&(t+=720)}if(null!=o[4]){if(null!=o[1])e=new Date(o[1]+" UTC");else{const t=new Date;e=new Date(t.getUTCFullYear()+"/"+(t.getUTCMonth()+1)+"/"+t.getUTCDate())}if("Z"===o[4])r="Z";else{let e=60*parseInt(o[5],10)+parseInt(o[6]||"0",10);"-"===o[4][0]&&(e*=-1),r=e,t-=60*e}}else if(null!=o[1])e=new Date(o[1]);else{const t=new Date;e=new Date(t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate())}n=new Date(e.getTime()+1e3*t),n=new Date(n.getTime()+6e4*(n.getTimezoneOffset()-e.getTimezoneOffset()))}else t();isNaN(n.getTime())&&t()}return[n,r]}function ce(e,t){try{return t.contents=function(e,t=!1){const[n,r]=se(e),o=null!=r?t&&"Z"===r?1:2:0;return ae(n.getTime(),o)}(e),!0}catch(e){return!1}}function ue(e){return 2===e.kind?e:ae(e.getTime(),2)}function le(e){return 1===e.kind?e.getUTCDate():e.getDate()}function fe(e){return 1===e.kind?e.getUTCHours():e.getHours()}function de(e){return 1===e.kind?e.getUTCMilliseconds():e.getMilliseconds()}function Ae(e){return 1===e.kind?e.getUTCMinutes():e.getMinutes()}function me(e){return(1===e.kind?e.getUTCMonth():e.getMonth())+1}function pe(e){return 1===e.kind?e.getUTCSeconds():e.getSeconds()}function $e(e){return 1===e.kind?e.getUTCDay():e.getDay()}const he=Symbol("numeric");function ge(e){return"number"==typeof e||"bigint"==typeof e||e?.[he]}function we(e,t){return"number"==typeof e?e*t:"bigint"==typeof e?e*BigInt(t):e[he]().multiply(t)}function ye(e,t){return"number"==typeof e?e.toFixed(t):"bigint"==typeof e?e:e[he]().toFixed(t)}function be(e,t){return"number"==typeof e?e.toPrecision(t):"bigint"==typeof e?e:e[he]().toPrecision(t)}function ve(e,t){return"number"==typeof e?e.toExponential(t):"bigint"==typeof e?e:e[he]().toExponential(t)}function Ce(e){return"number"==typeof e?(Number(e)>>>0).toString(16):"bigint"==typeof e?BigInt.asUintN(64,e).toString(16):e[he]().toHex()}function _e(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function xe(e,t,n=0){if(null==t)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let o,i=-1;for(;null!=(o=e.exec(t));)o.index===i?e.lastIndex++:(i=o.index,r.push(o));return r}const Be=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,ke=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Se(e,t){return function(e,t){return"number"==typeof e||"bigint"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function Ee(e){return{input:e,cont:(t=e,e=>{Be.lastIndex=0;const n=[],r=[];let o=0,i=Be.exec(t);for(;i;){const e=i.index+(i[1]||"").length;n.push(t.substring(o,e).replace(/%%/g,"%")),r.push(i),o=Be.lastIndex,Be.lastIndex-=1,i=Be.exec(t)}return 0===n.length?e(t.replace(/%%/g,"%")):(n.push(t.substring(o).replace(/%%/g,"%")),Oe(e,n,r))})};var t}function Ne(e,t){return"string"==typeof t?e(t):t.cont(e)}function Pe(e){return Ne((e=>e),e)}function Ie(e){return Ne((e=>{throw new Error(e)}),e)}function Me(e,t,n,r,o){let i="";if(t=t||"",o=o||"",ge(e))switch("x"!==o.toLowerCase()&&(Se(e,0)?(e=we(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=ye(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?be(e,r):be(e);break;case"e":case"E":e=null!=r?ve(e,r):ve(e);break;case"x":e=Ce(e);break;case"X":e=Ce(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?ie(e):T(e);if(n="number"==typeof n?n:parseInt(n,10),isNaN(n))e=i+e;else{const r=t.indexOf("0")>=0,o=t.indexOf("-")>=0,a=o||!r?" ":"0";e="0"===a?i+(e=Re(e,n-i.length,a,o)):Re(i+e,n,a,o)}return e}function Oe(e,t,n,r="",o=-1){return(...i)=>{let a=r;const s=t.slice(),c=n.slice();for(const e of i){const[,,t,n,r,i]=c[0];let u=n;if(o>=0)u=o,o=-1;else if("*"===u){if(e<0)throw new Error("Non-negative number required");o=e;continue}a+=s[0],a+=Me(e,t,u,r,i),s.splice(0,1),c.splice(0,1)}return 0===c.length?(a+=s[0],e(a)):Oe(e,s,c,a,o)}}function Te(e,...t){let n;return"object"==typeof e?(n=String(t[0]),t.shift()):n=e,n.replace(ke,((e,n,r,o,i,a)=>{if(n<0||n>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let s=t[n];if(ge(s))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":s=ye(s,i=null!=i?i:2);break;case"g":case"G":s=null!=i?be(s,i):be(s);break;case"e":case"E":s=null!=i?ve(s,i):ve(s);break;case"p":case"P":i=null!=i?i:2,s=ye(we(s,100),i)+" %";break;case"d":case"D":s=null!=i?je(String(s),i,"0"):String(s);break;case"x":case"X":s=null!=i?je(Ce(s),i,"0"):Ce(s),"X"===o&&(s=s.toUpperCase());break;default:if(a){let e="";s=a.replace(/([0#,]+)(\.[0#]+)?/,((t,n,r)=>{Se(s,0)&&(s=we(s,-1),e="-"),r=null==r?"":r.substring(1),s=ye(s,Math.max(r.length,0));let[o,i]=s.split(".");i||(i=""),o=je(o,n.replace(/,/g,"").replace(/^#+/,"").length,"0");const a=r.replace(/#+$/,"").length;if(a>i.length?i=function(e,t){return Re(e,t,"0",!0)}(i,a):a<i.length&&(i=i.substring(0,a)+i.substring(a).replace(/0+$/,"")),n.indexOf(",")>0){const e=o.length%3,t=Math.floor(o.length/3);let n=e>0?o.substr(0,e)+(t>0?",":""):"";for(let r=0;r<t;r++)n+=o.substr(e+3*r,3)+(r<t-1?",":"");o=n}return i.length>0?o+"."+i:o})),s=e+s}}else s=s instanceof Date?ie(s,a||o):T(s);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(s=Re(String(s),Math.abs(r)," ",r<0)),s}))}function De(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Re(e,t,n,r){n=n||" ",t-=e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function je(e,t,n){return Re(e,t,n)}function Fe(e,t,n,r){if(r="number"==typeof r?r:0,(n="number"==typeof n?n:void 0)&&n<0)throw new Error("Count cannot be less than zero");if(0===n)return[];const o=!(1&~r),i=!(2&~r);t=(t=t||[]).filter((e=>e)).map(_e),t=t.length>0?t:["\\s"];const a=[],s=new RegExp(t.join("|"),"g");let c=!0,u=0;do{const t=s.exec(e);if(null===t){const t=i?e.substring(u).trim():e.substring(u);(!o||t.length>0)&&a.push(t),c=!1}else{const r=i?e.substring(u,t.index).trim():e.substring(u,t.index);(!o||r.length>0)&&(null!=n&&a.length+1===n?(a.push(i?e.substring(u).trim():e.substring(u)),c=!1):a.push(r)),u=s.lastIndex}}while(c);return a}function Ge(e,t){return t.split("").filter((t=>e(t))).join("")}class He{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return b(this.value)}Equals(e){return null!=e&&_(this.value,e instanceof He?e.value:e)}CompareTo(e){return null==e?1:S(this.value,e instanceof He?e.value:e)}}function Le(e){if(null==e)throw new Error("Option has no value");return e instanceof He?e.value:e}function Ue(e){return null==e||e instanceof He?new He(e):e}function ze(e){return null==e?void 0:e}function qe(e){return null==e?[]:[Le(e)]}function We(e,t){return null!=e?Le(e):t}function Ye(e,t){return null!=t?Ue(e(Le(t))):void 0}const Ve="Collection was empty.";function Ke(e,t){return"function"==typeof e?new e(t):new Array(t)}function Je(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function Xe(e,t,n){const r=0|t.length,o=Ke(n,r);for(let n=0;n<=r-1;n++)tt(o,n,e(et(n,t)));return o}function Qe(e,t,n){return function(e,t,n,r,o){const i=0|We(n,0),a=0|We(Ye((e=>i+e),r),e.length);return 0|(n=>{for(;;){const r=n;if(r>=a)return-1;if(o.Equals(t,et(r,e)))return 0|r;n=r+1}})(i)}(t,e,void 0,void 0,n)>=0}function Ze(e,t,n){const r=e;return n.reduce(r,t)}function et(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function tt(e,t,n){if(t<0||t>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[t]=n}function nt(e,t,n){return t.reduceRight(((t,n)=>e(n,t)),n)}class rt extends R{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+De("; ",this)+"]"}Equals(e){return this===e||((e,t)=>{e:for(;;){const n=e,r=t,o=n.tail,i=r.tail;if(null!=o){if(null!=i){const a=Le(o),s=Le(i);if(_(n.head,r.head)){e=a,t=s;continue e}return!1}return!1}return null==i}})(this,e)}GetHashCode(){return 0|((e,t,n)=>{for(;;){const r=e,o=t,i=n,a=i.tail;if(null==a)return 0|o;{const s=Le(a);if(r>18)return 0|o;e=r+1,t=(o<<1)+b(i.head)+631*r,n=s}}})(0,0,this)}toJSON(){return Array.from(this)}CompareTo(e){return 0|((e,t)=>{e:for(;;){const n=e,r=t,o=n.tail,i=r.tail;if(null!=o){if(null!=i){const a=Le(o),s=Le(i),c=0|S(n.head,r.head);if(0===c){e=a,t=s;continue e}return 0|c}return 1}return null!=i?-1:0}})(this,e)}GetEnumerator(){return new ot(this)}[Symbol.iterator](){return l(u(this))}"System.Collections.IEnumerable.GetEnumerator"(){return u(this)}}class ot{constructor(e){this.xs=e,this.it=this.xs,this.current=null}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this,t=e.it.tail;if(null!=t){const n=Le(t);return e.current=e.it.head,e.it=n,!0}return!1}"System.Collections.IEnumerator.Reset"(){const e=this;e.it=e.xs,e.current=null}Dispose(){}}function it(){return new rt(null,void 0)}function at(e,t){return new rt(e,t)}function st(e){return null==e.tail}function ct(e){return 0|((e,t)=>{for(;;){const n=e,r=t.tail;if(null==r)return 0|n;e=n+1,t=Le(r)}})(0,e)}function ut(e){if(null!=e.tail)return e.head;throw new Error(Ve+"\\nParameter name: list")}function lt(e){const t=e.tail;if(null!=t)return Le(t);throw new Error(Ve+"\\nParameter name: list")}function ft(){return it()}function dt(e,t){return at(e,t)}function At(e){return at(e,it())}function mt(e){return st(e)}function pt(e){return ct(e)}function $t(e){return ut(e)}function ht(e){return lt(e)}function gt(e){const t=0|ct(e),n=Je(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(st(o))break;tt(n,r,ut(o)),e=r+1,t=lt(o)}})(0,e),n}function wt(e,t,n){let r=t,o=n;for(;!st(o);)r=e(r,$t(o)),o=lt(o);return r}function yt(e){return wt(((e,t)=>at(t,e)),it(),e)}function bt(e,t){wt(((t,n)=>{e(n)}),void 0,t)}function vt(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=at(et(t,e),n);return n}function Ct(e){return vt(e,it())}function _t(e,t){return wt(((e,t)=>at(t,e)),t,yt(e))}function xt(e,t){const n=it(),r=wt(((t,n)=>{const r=new rt(e(n),void 0);return t.tail=r,r}),n,t),o=it();return r.tail=o,lt(n)}function Bt(e,t){return(t=>{e:for(;;){const n=t;if(st(n))return;{const r=e(ut(n));if(null==r){t=lt(n);continue e}return r}}})(t)}function kt(e,t){return Bt((t=>e(t)?Ue(t):void 0),t)}function St(e,t){return((t,n)=>{for(;;){const r=t,o=n;if(st(o))return;if(r===e)return Ue(ut(o));t=r+1,n=lt(o)}})(0,t)}function Et(e,t){const n=it(),r=wt(((t,n)=>{if(e(n)){const e=new rt(n,void 0);return t.tail=e,e}return t}),n,t),o=it();return r.tail=o,lt(n)}function Nt(e,t){const n=it(),r=wt(((t,n)=>{const r=e(n);if(null==r)return t;{const e=new rt(Le(r),void 0);return t.tail=e,e}}),n,t),o=it();return r.tail=o,lt(n)}const Pt="The input sequence has an insufficient number of elements.";function It(){throw new Error("Enumeration has not started. Call MoveNext.")}function Mt(){throw new Error("Enumeration already finished.")}class Ot{constructor(e){this.f=e}toString(){let e=0,t="seq [";const n=u(this);try{for(;e<4&&n["System.Collections.IEnumerator.MoveNext"]();)e>0&&(t+="; "),t+=T(n["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(t+="; ..."),t+"]"}finally{a(n)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return l(u(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class Tt{constructor(e,t,n){this.current=e,this.next=t,this.dispose=n}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){!function(){throw new Error("Reset is not supported on this enumerator.")}()}Dispose(){this.dispose()}}function Dt(e,t,n){return new Tt(e,t,n)}function Rt(e,t,n){let r,o=!1,i=Ue(e());const a=()=>{if(null!=i){const e=Le(i);try{n(e)}finally{i=void 0}}},s=()=>{try{a()}finally{r=void 0}};return Dt((()=>(o||It(),null!=r?Le(r):Mt())),(()=>{if(o||(o=!0),null!=i){const e=Le(i);let n;try{n=t(e)}catch(e){throw s(),e}return null!=n?(r=n,!0):(s(),!1)}return!1}),a)}function jt(e){return function(e){return new Ot(e)}(e)}function Ft(e){return t="source",null==e&&function(e){throw new Error(e)}(t),u(e);var t}function Gt(e){return jt((()=>u(e())))}function Ht(e){return jt((()=>function(e){let t,n,r,o=!1,i=!1;const s=()=>{if(i=!0,null!=n){const e=Le(n);try{a(e)}finally{n=void 0}}if(null!=t){const e=Le(t);try{a(e)}finally{t=void 0}}};return Dt((()=>(o?i&&Mt():It(),null!=r?Le(r):Mt())),(()=>{let c;if(o||(o=!0),i)return!1;{let o;for(;null==o;){const i=t;if(null!=i)if(null!=n){const e=Le(n);if(e["System.Collections.IEnumerator.MoveNext"]())r=Ue(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),o=!0;else try{a(e)}finally{n=void 0}}else{const e=Le(i);e["System.Collections.IEnumerator.MoveNext"]()?(c=e["System.Collections.Generic.IEnumerator`1.get_Current"](),n=u(c)):(s(),o=!1)}else t=u(e)}return Le(o)}}),(()=>{i||s()}))}(e)))}function Lt(){return Gt((()=>new Array(0)))}function Ut(e){return Gt((()=>function(e){const t=Ke(void 0,1);return tt(t,0,e),t}(e)))}function zt(e){return e instanceof rt?gt(e):Array.from(e)}function qt(e){return o(e)?Ct(e):e instanceof rt?e:function(e){let t,n;if(o(e))return Ct(e);if(e instanceof rt)return e;{const r=it();let o=r;const i=u(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const e=i["System.Collections.Generic.IEnumerator`1.get_Current"]();t=o,n=new rt(e,void 0),t.tail=n,o=n}}finally{a(i)}const s=o,c=it();return s.tail=c,lt(r)}}(e)}function Wt(e,t,n){return jt((()=>Rt(e,t,n)))}function Yt(e,t,n){return jt((()=>{let r=-1;return Rt(e,(e=>(r=r+1|0,t(r,e))),n)}))}function Vt(e,t){return Ht([e,t])}function Kt(e,t,n){const r=Ft(t);try{let t=!1;for(;!t&&r["System.Collections.IEnumerator.MoveNext"]();)t=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return t}finally{a(r)}}function Jt(e,t,n){const r=Ft(n);try{let n=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)n=e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}finally{a(r)}}function Xt(e,t){Jt(((t,n)=>{e(n)}),void 0,t)}function Qt(e,t){return Wt((()=>Ft(t)),(t=>t["System.Collections.IEnumerator.MoveNext"]()?Ue(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{a(e)}))}function Zt(e){return Gt((()=>function(e){return e.slice().reverse()}(zt(e))))}function en(e,t){return jt((()=>{const n=Ft(t);try{for(let t=1;t<=e;t++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Pt+"\\nParameter name: source");return function(e,t){return Dt((()=>t["System.Collections.Generic.IEnumerator`1.get_Current"]()),(()=>t["System.Collections.IEnumerator.MoveNext"]()),(()=>{try{a(t)}finally{e()}}))}((()=>{}),n)}catch(e){throw a(n),e}}))}function tn(e,t){return Gt((()=>Ht(Qt(e,t))))}Symbol.iterator;class nn{constructor(e){this.k=e}}function rn(e){return new nn(e)}function on(e){return e.k}class an extends nn{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=0|r}}function sn(e,t,n,r){return new an(e,t,n,r)}function cn(e){return e.left}function un(e){return e.right}function ln(e){return e.h}function fn(e,t){e:for(;;){const n=t;if(null!=e){const r=Le(e);if(r instanceof an){const o=r;e=cn(o),t=fn(un(o),n+1);continue e}return n+1|0}return 0|n}}function dn(e){return fn(e,0)}function An(e,t,n){let r,o,i,a;if(null!=e){const t=Le(e);i=t instanceof an?(r=t,ln(r)):1}else i=0;if(null!=n){const e=Le(n);a=e instanceof an?(o=e,ln(o)):1}else a=0;const s=0|(i<a?a:i);return 0===s?rn(t):sn(t,e,n,s+1)}function mn(e,t,n){let r,o,i,a,s,c,u,l,f,d;if(null!=e){const t=Le(e);f=t instanceof an?(r=t,ln(r)):1}else f=0;if(null!=n){const e=Le(n);d=e instanceof an?(o=e,ln(o)):1}else d=0;if(d>f+2){const r=Le(n);if(r instanceof an){const n=r;if(i=cn(n),(null!=i?(a=Le(i),a instanceof an?(s=a,ln(s)):1):0)>f+1){const r=Le(cn(n));if(r instanceof an){const o=r;return An(An(e,t,cn(o)),on(o),An(un(o),on(n),un(n)))}throw new Error("internal error: Set.rebalance")}return An(An(e,t,cn(n)),on(n),un(n))}throw new Error("internal error: Set.rebalance")}if(f>d+2){const r=Le(e);if(r instanceof an){const e=r;if(c=un(e),(null!=c?(u=Le(c),u instanceof an?(l=u,ln(l)):1):0)>d+1){const r=Le(un(e));if(r instanceof an){const o=r;return An(An(cn(e),on(e),cn(o)),on(o),An(un(o),t,n))}throw new Error("internal error: Set.rebalance")}return An(cn(e),on(e),An(un(e),t,n))}throw new Error("internal error: Set.rebalance")}return An(e,t,n)}function pn(e,t,n){if(null!=n){const r=Le(n),o=0|e.Compare(t,on(r));if(r instanceof an){const i=r;return o<0?mn(pn(e,t,cn(i)),on(i),un(i)):0===o?n:mn(cn(i),on(i),pn(e,t,un(i)))}{const o=0|e.Compare(t,on(r));return o<0?sn(t,void 0,n,2):0===o?n:sn(t,n,void 0,2)}}return rn(t)}function $n(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=Le(n),a=0|r.Compare(o,on(i));if(i instanceof an){const s=i;if(a<0){e=r,t=o,n=cn(s);continue e}if(0===a)return!0;e=r,t=o,n=un(s);continue e}return 0===a}return!1}}function hn(e,t){e:for(;;){const n=e;if(null!=t){const r=Le(t);if(r instanceof an){const o=r;hn(n,cn(o)),n(on(o)),e=n,t=un(o);continue e}n(on(r))}break}}class gn extends R{constructor(e,t){super(),this.stack=e,this.started=t}}function wn(e){e:for(;;){const t=e;if(mt(t))return ft();{const n=$t(t),r=ht(t);if(null!=n){const o=Le(n);if(o instanceof an){const t=o;e=vt([cn(t),rn(on(t)),un(t)],r);continue e}return t}e=r;continue e}}}function yn(e){return new gn(wn(At(e)),!1)}function bn(e){if(e.started){const t=e.stack;if(mt(t))return function(){throw new Error("Enumeration already started")}();if(null!=$t(t))return on(Le($t(t)));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function vn(e){let t=yn(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>bn(t),"System.Collections.IEnumerator.get_Current":()=>bn(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(mt(t))return!1;if(null!=$t(t)){if(Le($t(t))instanceof an)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=wn(ht(t)),!mt(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!mt(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=yn(e)},Dispose(){}}}function Cn(e,t,n){return null==t?null==n?0:-1:null==n?1:0|function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(mt(o))return mt(i)?0:-1;if(mt(i))return 1;if(null!=$t(i))if(null!=$t(o)){const a=Le($t(o)),s=Le($t(i));if(a instanceof an){const c=a;if(null==cn(c)){if(!(s instanceof an)){const a=0|r.Compare(on(c),on(s));if(0!==a)return 0|a;e=r,t=dt(un(c),ht(o)),n=dt(void 0,ht(i));continue e}{const a=s;if(null==cn(a)){const s=0|r.Compare(on(c),on(a));if(0!==s)return 0|s;e=r,t=dt(un(c),ht(o)),n=dt(un(a),ht(i));continue e}{let a,s,c,u,l;switch(mt(o)?mt(i)?a=2:null!=$t(i)?(a=1,u=ht(i),l=Le($t(i))):a=2:null!=$t(o)?(a=0,s=ht(o),c=Le($t(o))):mt(i)?a=2:null!=$t(i)?(a=1,u=ht(i),l=Le($t(i))):a=2,a){case 0:if(c instanceof an){const o=c;e=r,t=vt([cn(o),sn(on(o),void 0,un(o),0)],s),n=i;continue e}e=r,t=vt([void 0,rn(on(c))],s),n=i;continue e;case 1:if(l instanceof an){const i=l;e=r,t=o,n=vt([cn(i),sn(on(i),void 0,un(i),0)],u);continue e}e=r,t=o,n=vt([void 0,rn(on(l))],u);continue e;default:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{let a,s,c,u,l;switch(mt(o)?mt(i)?a=2:null!=$t(i)?(a=1,u=ht(i),l=Le($t(i))):a=2:null!=$t(o)?(a=0,s=ht(o),c=Le($t(o))):mt(i)?a=2:null!=$t(i)?(a=1,u=ht(i),l=Le($t(i))):a=2,a){case 0:if(c instanceof an){const o=c;e=r,t=vt([cn(o),sn(on(o),void 0,un(o),0)],s),n=i;continue e}e=r,t=vt([void 0,rn(on(c))],s),n=i;continue e;case 1:if(l instanceof an){const i=l;e=r,t=o,n=vt([cn(i),sn(on(i),void 0,un(i),0)],u);continue e}e=r,t=o,n=vt([void 0,rn(on(l))],u);continue e;default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{if(!(s instanceof an)){const c=0|r.Compare(on(a),on(s));if(0!==c)return 0|c;e=r,t=ht(o),n=ht(i);continue e}{const c=s;if(null==cn(c)){const s=0|r.Compare(on(a),on(c));if(0!==s)return 0|s;e=r,t=dt(void 0,ht(o)),n=dt(un(c),ht(i));continue e}{let a,s,c,u,l;switch(mt(o)?mt(i)?a=2:null!=$t(i)?(a=1,u=ht(i),l=Le($t(i))):a=2:null!=$t(o)?(a=0,s=ht(o),c=Le($t(o))):mt(i)?a=2:null!=$t(i)?(a=1,u=ht(i),l=Le($t(i))):a=2,a){case 0:if(c instanceof an){const o=c;e=r,t=vt([cn(o),sn(on(o),void 0,un(o),0)],s),n=i;continue e}e=r,t=vt([void 0,rn(on(c))],s),n=i;continue e;case 1:if(l instanceof an){const i=l;e=r,t=o,n=vt([cn(i),sn(on(i),void 0,un(i),0)],u);continue e}e=r,t=o,n=vt([void 0,rn(on(l))],u);continue e;default:throw new Error("unexpected state in SetTree.compareStacks")}}}}}else{let a,s,c,u,l;switch(Le($t(i)),mt(o)?mt(i)?a=2:null!=$t(i)?(a=1,u=ht(i),l=Le($t(i))):a=2:null!=$t(o)?(a=0,s=ht(o),c=Le($t(o))):mt(i)?a=2:null!=$t(i)?(a=1,u=ht(i),l=Le($t(i))):a=2,a){case 0:if(c instanceof an){const o=c;e=r,t=vt([cn(o),sn(on(o),void 0,un(o),0)],s),n=i;continue e}e=r,t=vt([void 0,rn(on(c))],s),n=i;continue e;case 1:if(l instanceof an){const i=l;e=r,t=o,n=vt([cn(i),sn(on(i),void 0,un(i),0)],u);continue e}e=r,t=o,n=vt([void 0,rn(on(l))],u);continue e;default:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==$t(o)){e=r,t=ht(o),n=ht(i);continue e}{let a,s,c,u,l;switch(Le($t(o)),mt(o)?mt(i)?a=2:null!=$t(i)?(a=1,u=ht(i),l=Le($t(i))):a=2:null!=$t(o)?(a=0,s=ht(o),c=Le($t(o))):mt(i)?a=2:null!=$t(i)?(a=1,u=ht(i),l=Le($t(i))):a=2,a){case 0:if(c instanceof an){const o=c;e=r,t=vt([cn(o),sn(on(o),void 0,un(o),0)],s),n=i;continue e}e=r,t=vt([void 0,rn(on(c))],s),n=i;continue e;case 1:if(l instanceof an){const i=l;e=r,t=o,n=vt([cn(i),sn(on(i),void 0,un(i),0)],u);continue e}e=r,t=o,n=vt([void 0,rn(on(l))],u);continue e;default:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,At(t),At(n))}function _n(e,t,n){let r=n;hn((e=>{tt(t,r,e),r=r+1|0}),e)}function xn(e,t){if(o(t))return function(e,t){return Ze(((t,n)=>pn(e,n,t)),void 0,t)}(e,t);if(t instanceof rt)return function(e,t){return wt(((t,n)=>pn(e,n,t)),void 0,t)}(e,t);{const n=u(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;e=r,t=pn(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{a(n)}}}class Bn{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t=0;const n=u(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();)t=(t<<1)+b(n["System.Collections.Generic.IEnumerator`1.get_Current"]())+631|0}finally{a(n)}return 0|Math.abs(t)}(this)}Equals(e){let t;return e instanceof Bn&&(t=e,0===Cn(Sn(this),En(this),En(t)))}toString(){return"set ["+De("; ",Qt((e=>T(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){return Array.from(this)}CompareTo(e){return 0|Cn(Sn(this),En(this),En(e))}"System.Collections.Generic.ICollection`1.Add2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return $n(Sn(this),e,En(this))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(e,t){_n(En(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Pn(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Pn(this)}GetEnumerator(){return vn(En(this))}[Symbol.iterator](){return l(u(this))}"System.Collections.IEnumerable.GetEnumerator"(){return vn(En(this))}get size(){return 0|Pn(this)}add(e){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(e){throw new Error("Set cannot be mutated")}has(e){return In(this,e)}keys(){return Qt((e=>e),this)}values(){return Qt((e=>e),this)}entries(){return Qt((e=>[e,e]),this)}forEach(e,t){const n=this;Xt((t=>{e(t,t,n)}),n)}}function kn(e,t){return new Bn(e,t)}function Sn(e){return e.comparer}function En(e){return e.tree}function Nn(e){return kn(e,void 0)}function Pn(e){return dn(En(e))}function In(e,t){return $n(Sn(e),t,En(e))}function Mn(e,t){return In(t,e)}function On(e,t){return function(e,t){return kn(Sn(e),pn(Sn(e),t,En(e)))}(t,e)}function Tn(e){return De("/",e)}function Dn(e,t,n){try{a(n)}catch(n){e(["Error stopping subscription: "+Tn(t),n])}}function Rn(e,t){bt((t=>{Dn(e,t[0],t[1])}),t)}function jn(e,t,n,r,o,i){return bt((t=>{!function(e,t){const n=new Error("Duplicate SubId");e(["Duplicate SubId: "+Tn(t),n])}(e,t)}),n),bt((t=>{Dn(e,t[0],t[1])}),r),_t(o,Nt((n=>function(e,t,n,r){try{return[n,r(t)]}catch(t){return void e(["Error starting subscription: "+Tn(n),t])}}(e,t,n[0],n[1])),i))}function Fn(e){return t=(e,t)=>{return n=e[0],r=e[1],o=t[0],i=t[1],a=t[2],Mn(n,i)?[dt(n,o),i,a]:[o,On(n,i),dt([n,r],a)];var n,r,o,i,a},n=e,r=[ft(),(o={Compare:S},Nn(o)),ft()],nt(t,gt(n),r);var t,n,r,o}const Gn=ft();function Hn(e,t){const n=kn(r={Compare:S},xn(r,xt((e=>e[0]),e)));var r;const o=Fn(t),i=o[1],a=o[0];if(n.Equals(i))return[a,ft(),e,ft()];{const t=function(e,t){const n=it(),r=it(),o=n,a=wt(((e,t)=>{let n,r;const o=e[0],a=e[1];return(e=>Mn(e[0],i))(t)?[(n=new rt(t,void 0),o.tail=n,n),a]:[o,(r=new rt(t,void 0),a.tail=r,r)]}),[o,r],t),s=it();a[0].tail=s;const c=it();return a[1].tail=c,[lt(o),lt(r)]}(0,e);return[a,t[1],t[0],Et((e=>!Mn(e[0],n)),o[2])]}}class Ln{constructor(){this.delegates=[]}_add(e){this.delegates.push(e)}_remove(e){const t=this.delegates.indexOf(e);t>-1&&this.delegates.splice(t,1)}get Publish(){return e=e=>{this._add(e)},t=e=>{this._remove(e)},{AddHandler(t){e(t)},RemoveHandler(e){t(e)},Subscribe(n){const r=(e,t)=>n.OnNext(t);return e(r),{Dispose(){t(r)}}}};var e,t}Trigger(e,t){let n=null;const r=void 0===t?e:(n=e,t);this.delegates.forEach((e=>{e(n,r)}))}}class Un extends Ln{}const zn=class{constructor(e){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=e&&e>0?e:100,this.AutoReset=!0,this._elapsed=new Un}Elapsed(){return this._elapsed.Publish}get Enabled(){return this._enabled}set Enabled(e){this._isDisposed||this._enabled===e||(this._enabled=e,this._enabled?this.AutoReset?this._intervalId=setInterval((()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)}),this.Interval):this._timeoutId=setTimeout((()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)}),this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}};class qn{constructor(e,t,n){this.OnNext=e,this.OnError=t||(e=>{}),this.OnCompleted=n||(()=>{})}}class Wn{constructor(e=!1){this._id=0,this._cancelled=e,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,e]of this._listeners)e()}}addListener(e){const t=this._id;return this._listeners.set(this._id++,e),t}removeListener(e){return this._listeners.delete(e)}register(e,t){const n=this,r=this.addListener(null==t?e:()=>e(t));return{Dispose(){n.removeListener(r)}}}Dispose(){}}class Yn extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Yn.prototype)}}class Vn{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Vn.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function Kn(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Yn);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack((()=>{try{e(t)}catch(e){t.onError(G(e))}}));else try{e(t)}catch(e){t.onError(G(e))}}}const Jn=new class{Bind(e,t){return function(e,t){return Kn((n=>{e({onSuccess:e=>{try{t(e)(n)}catch(e){n.onError(G(e))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})}))}(e,t)}Combine(e,t){return this.Bind(e,(()=>t))}Delay(e){return Kn((t=>e()(t)))}For(e,t){const n=e[Symbol.iterator]();let r=n.next();return this.While((()=>!r.done),this.Delay((()=>{const e=t(r.value);return r=n.next(),e})))}Return(e){return function(e){return Kn((t=>t.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,t){return Kn((n=>{e({onSuccess:e=>{t(),n.onSuccess(e)},onError:e=>{t(),n.onError(e)},onCancel:e=>{t(),n.onCancel(e)},cancelToken:n.cancelToken,trampoline:n.trampoline})}))}TryWith(e,t){return Kn((n=>{e({onSuccess:n.onSuccess,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline,onError:e=>{try{t(e)(n)}catch(e){n.onError(G(e))}}})}))}Using(e,t){return this.TryFinally(t(e),(()=>e.Dispose()))}While(e,t){return e()?this.Bind(t,(()=>this.While(e,t))):this.Return(void 0)}Zero(){return Kn((e=>e.onSuccess(void 0)))}};class Xn extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Choice1Of2","Choice2Of2"]}}function Qn(e){}const Zn=new Wn;function er(e){return Kn((t=>{let n;const r=setTimeout((()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)}),e);n=t.cancelToken.addListener((()=>{clearTimeout(r),t.onCancel(new Yn)}))}))}function tr(e,t){return function(e,t){return function(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new Vn;e({onSuccess:t||Qn,onError:n||Qn,onCancel:r||Qn,cancelToken:o||Zn,trampoline:i})}(e,t)}(e,t)}function nr(e,t,n){bt((n=>{try{n(t)}catch(t){e(t)}}),n)}function rr(){return ft()}function or(e){return function(e){const t=it();let n=t;const r=e=>{n=wt(((e,t)=>{const n=new rt(t,void 0);return e.tail=n,n}),n,e)};if(o(e))e.forEach(r);else if(e instanceof rt)bt(r,e);else{const t=u(e);try{for(;t["System.Collections.IEnumerator.MoveNext"]();)r(t["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{a(t)}}const i=n,s=it();return i.tail=s,lt(t)}(e)}function ir(e,t,n,r,o){return At((i=>{e(Jn.Delay((()=>{return Jn.Bind((e=t(n),Kn((t=>{e({onSuccess:e=>t.onSuccess(function(e){return new Xn(0,[e])}(e)),onError:e=>t.onSuccess(function(e){return new Xn(1,[e])}(e)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})}))),(e=>{const t=e;return i(1===t.tag?o(t.fields[0]):r(t.fields[0])),Jn.Zero()}));var e})))}))}function ar(e){!function(e,t){let n,r=new zn(e);r.AutoReset=!1,n=r,function(e,t){t.Subscribe(new qn(e))}(t,n.Elapsed()),n.Enabled=!0,n.Start()}(1,(t=>{tr(e)}))}function sr(e,t){return e>t?e:t}function cr(e,t,n,r,o){const i=function(e,t,n,r){const o=0|S(e,n);if(0===o)throw new Error("The step of a range cannot be zero");const i=o>0;return n=>{const o=0|S(n,t);return i&&o<=0||!i&&o>=0?[n,r(n,e)]:void 0}}(t,n,r,o);return Gt((()=>{return t=i,n=e,jt((()=>function(e,t){let n,r=t;return Dt((()=>{if(null!=n){const e=Le(n)[0];return Le(n)[1],e}return It()}),(()=>{if(n=e(r),null!=n){Le(n)[0];const e=Le(n)[1];return r=e,!0}return!1}),(()=>{}))}(t,n)));var t,n}))}class ur extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class lr{constructor(e){this.state=new ur(0,[Je(new Array(sr(e,10)),0,sr(e,10),null),0])}}function fr(e){const t=e.state;if(1===t.tag){const n=0|t.fields[1],r=0|t.fields[2],o=t.fields[0],i=(r+1)%o.length|0;return e.state=i===n?new ur(0,[o,n]):new ur(1,[o,n,i]),Ue(et(r,o))}}class dr extends R{constructor(e,t,n,r,o,i,a){super(),this.init=e,this.update=t,this.subscribe=n,this.view=r,this.setState=o,this.onError=i,this.termination=a}}function Ar(e,t,n){let r;const o=n.init(t),i=o[0],s=n.subscribe(i),c=n.termination,u=new lr(10);let l=!1,f=i,d=Gn,A=!1;const m=I(e)((e=>{A||(function(e,t){const n=e.state;if(1===n.tag){const i=0|n.fields[1],s=0|n.fields[2],c=n.fields[0];tt(c,i,t);const u=(i+1)%c.length|0;e.state=new ur(1,u===s?[(r=s,o=c,Array.from(Gt((()=>Vt(en(r,o),Gt((()=>{return Vt((e=r,t=o,Yt((()=>Ft(t)),((t,n)=>{if(t<e){if(n["System.Collections.IEnumerator.MoveNext"]())return Ue(n["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Pt+"\\nParameter name: source")}}),(e=>{a(e)}))),Gt((()=>tn((e=>Ut(null)),cr(0,1,o.length,0,((e,t)=>e+t))))));var e,t}))))))),c.length,0]:[c,u,s])}else{const r=0|n.fields[1],o=n.fields[0];tt(o,r,t);const i=(r+1)%o.length|0;e.state=new ur(1,[o,i,r])}var r,o}(u,e),l||(l=!0,p(),l=!1))})),p=()=>{let e,t=fr(u);for(;!A&&null!=t;){const r=Le(t);if(c[0](r))Rn(n.onError,d),c[1](f),A=!0;else{const o=n.update(r,f),i=o[0],a=n.subscribe(i);n.setState(i,m),nr((e=>{n.onError([Pe(Ee("Error handling the message: %A"))(r),e])}),m,o[1]),f=i,e=Hn(d,a),d=jn(n.onError,m,e[0],e[1],e[2],e[3]),t=fr(u)}}};l=!0,n.setState(i,m),nr((e=>{n.onError([Pe(Ee("Error intitializing:")),e])}),m,o[1]),r=Hn(d,s),d=jn(n.onError,m,r[0],r[1],r[2],r[3]),p(),l=!1}var mr=n(888);class pr{constructor(e,t,n){this.arg=t,this.dependencies=n;const r=e(),o=[];let s;this.finalDispatch=void 0;const c=function(e){return e.init}(r)(this.arg);let u=c[0],l=c[1];s=[[u,e=>{const t=this.finalDispatch;null==t?o.push(e):t(e)},!1,o],l],this.state=s[0],this.cmd=s[1],this.subscribe=e=>{let t=!1;const n=i(this.state[0]);return function(e,t){Ar(P((e=>e)),e,t)}(this.arg,function(e,t){return new dr(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}(((t,n)=>{const r=this.state;this.finalDispatch=n,this.state=[t,r[1],!0,o],t!==r[0]&&e()}),function(e,r,o,s,c,u,l){const f=I(e)(l.init),d=O(r)(I(l.update)),A=O(o)(I(l.view)),m=O(s)(I(l.setState));return new dr(f,P(d),I(c)(l.subscribe),P(A),P(m),l.onError,(p=l.termination,[e=>!!p[0](e)||n&&t,e=>{const t=e;i(t)?a(t):p[1](e)}]));var p}(((e,t)=>{const n=this.cmd;return this.cmd=rr(),[this.state[0],n]}),((e,t,n)=>e(t)(this.state[0])),M((e=>e)),M((e=>e)),P((e=>e)),0,r))),()=>{t=!0}}}}function $r(e,t,n){return new pr(e,t,n)}const hr=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,gr=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,wr=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function yr(e,t){try{return t.contents=function(e){function t(e){return e.replace(gr,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(hr.test(n))return function(e,...t){if(0===t.length)return e.trim();const n="["+_e(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}(n,"{","}","(",")");if(gr.test(n))return t(n);if(wr.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}(e),!0}catch{return!1}}function br(){let e="";for(let t=0;t++<36;)e+=51*t&52?(15^t?8^Math.random()*(20^t?16:4):4).toString(16):"-";return e}class vr extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Pristine","Valid","Invalid"]}}function Cr(e){return e.tag,e.fields[0]}function _r(e){return 2===e.tag?e.fields[1]:""}class xr extends D{constructor(e){super(),this.tag=0,this.fields=[e]}cases(){return["AccountId"]}}function Br(){let e;return new xr((e=br(),e))}class kr extends R{constructor(e,t,n,r){super(),this.Bsb=e,this.Bank=t,this.Branch=n,this.Address=r}}class Sr extends R{constructor(e,t,n,r,o){super(),this.AccountNickname=e,this.AccountName=t,this.Bsb=n,this.AccountNumber=r,this.BsbLookup=o}}class Er extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Amount","Percentage"]}}function Nr(e){return 1===e.tag?"%":"$"}class Pr extends R{constructor(e,t,n,r,o,i,a){super(),this.Id=e,this.AccountNickname=t,this.AccountName=n,this.Bsb=r,this.AccountNumber=o,this.Amount=i,this.BsbLookup=a}}class Ir extends R{constructor(e,t){super(),this.Input=e,this.Type=t}}class Mr extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["DeleteConfirmation","ChangeConfirmation","ResetConfirmation"]}}class Or extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Success","Failure"]}}class Tr extends R{constructor(e,t,n,r,o,i,a,s){super(),this.PrimaryAccount=e,this.NonPrimaryAccounts=t,this.PreExistingAccounts=n,this.CurrentModal=r,this.CurrentAlert=o,this.Saved=i,this.MaximumAccounts=0|a,this.AllowPercentageSplit=s}}class Dr extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["SetAccountNickname","SetAccountName","SetBsb","SetAccountNumber","SetAmount","ChangeApportionmentType"]}}class Rr extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["GetExistingAccountsAndConfig","GetPrimaryBsbLookup","GetNonPrimaryBsbLookup","Reset","Save","SetPrimaryAccount","AddNewNonPrimaryAccount","SetNonPrimaryAccount","DeleteNonPrimaryAccount","SetPrimaryForNonPrimaryAccount","ShowModal","HideModal","ShowAlert","HideAlert","AppReady"]}}const jr=function(){const e=[..."#C$&$&$$$$$$%-%&%=$$$$$$=$$$$D$$'$$$$$$$$$$$$%$$%$$$$&$:$*;$+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$&%$$$%$&%'$%$&&%$%$$$$$%$$%$$%$&$$$%%$$&'$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$%$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*%$%%$$'$$$$$$$$h$>5'/1(*$$$4“$$$$$$$$%$&$$'%$$&$$$%$4$,F$%&&$$$$$$$$$$$$$$$$$$$$$$$($$$$$%%VS$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$(%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$I%$)L$$%%$$P$$$%$%$$+>''%.)&%$%%.$$$%C$-8-'%$†$$*$$)%%$'%-&%$1$$$$A>%|.$1-D,%$&$%$%9'$,$&$(%2$<&%$$.X8$5.2$C$Y$$$$&+'$%$*-%%-$$2$%$+%%%9$*$$&'%$$&'%%%%$$+$'%$&%%-%%)$$$$$%%$$)'%%9$*$%$%$%%$$&%'%%&&$*'$$*-%&$$-%$$,$&$9$*$%$(%$$&($%$$%$%$2%%%-$$*$)$$%$+%%%9$*$%$(%$$$$$'%%%%$*%$'%$&%%-$$)-$$$)&&$'&%$$$%&%&&&/'%$%&&$&$%$)$1-&)$$($&$+$&$:$3&$&'$&$'*%$&(%%%-*$*$$$%$+$&$:$-$(%$$$$($$%$%%*%*$$%%%-$%0%%,$&$L%$&'$&$&$$$'&$*&%%-,$)$$%$5&;$,$$%*&$'&&$$$+)-%%$/S$%*'$)$+$-%H%$$$($;$$$-$%,$%($$$)%-%'C$&2$$&%)--$$$$$$$$$$%+$G'1$($%(.$G$+$)$%('%HN%'$)$%%%$-))%%'&$&%*&'0$%%)$$$-&$%I$$($%N$$&Ŭ$'%*$$$'%L$'%D$'%*$$$'%2$\\$'%f%&,7&3-)y%)%$ʏ$$4$=$$&n&&+*0$'&.5&%,5%/0$&$%/W%$*+$%.&$&$$$%-)-))$'&$$-)F$X*(%E$$(i-B$&'%&'%$)&'$&%-A%(.O'=)-$&E:%%$%%X$$$*$$$$%+)-%$-)-)*$)%1$%b'$R$$($$($%*'-*-,,&%$A$'%%$&%-O$$%&$$&%+'G++%%&(-&&-A)%,*N%&++&$0$*'$)$%$%$(Ob0$EH]$($$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,+)%)%++++)%)%+$$$$$$$$++1%++++++($%'$$$&&$%'$&'%%'$&+(&%&$%'$%$.()%$$$%$$$+$$($,$$'%&$$$.$$$-$($-$$%)&$$$-&$$$0&C30'$&/2%$'$%$&%&$$$%$()$$$$$$'$$'$'$%%%($'$$%$$3F$$'$%'((%'$%$%$*$B%%$$$Bį+$$$$7%*$$t$A<K)h<.8_q9Ú$,$Y+’$ě$$$$$$$$$$$$$$AO($$B$$$$$$$$$$3ģ¦$$$$$$$$$$$$$$$$$$$$$$b$$$$C$$ĥS8%)J%C$ŒR$R$$$&%$$$$$$'$$%$)%&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%)$$$$&$$('$%I$$($%[*$$1$:,*$*$*$*$*$*$*$*$C%$$$$&$$$$$,$%$$$$%$$$$$$$$$$($-%'$$$0%$P=$|/ù=/'$&$$$$$$$$$$$$$$%$$$$$$$$$$%$,'%$(%&$$$%$y%%%%$$}$&$(N$$%'-CG/3B$-A+$2C-J2ţ᧣c删&8$Қ&Z,K)%į$&3-%7$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$&$-$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%%i-%)+:,%$$$$$$$$$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$+$$$$%$$$$$$$$$$%$$$$$$$$&$$$$$$$$$$$$$$$$$$$$($($$$$$$$$$$$%$$'$$$M$$$%$*$&$'$:%%$'$&)%$$)W'+%U3%+%-)5)&$$%$-?+%:.%.$@&&$R$%'%%&0$$-'%($$,-($L)%%%%,&$+$$%-%'3$)&$$$$U$$&%%(%$$$;%$%.$%%%$%$$-)%)%),*$*$N$',$%'sF%$%$%$$$%-)⯇/:'T'ࠣᤣƑ%I*/(($$-$0$($$$%$%$34Ǝ$$3c%YK/$$%3*$$$)3$%%$$$$$$$$$$$$$$$$%$$'&&$'$$$$$$$&$$&$$$%'($ª%$$&$&$$$$$$%-%&%=$$$$$$=$$$$$$$$$%-$P%B&)%)%)%&&%$$$%$$'%-&%%/$=$6$%$2%1Ež(&'P&,X'4%&$0&$RP$¥@&T2$>'C',7$+$(I((A$$G'+$(MKKq%-)G'G'K+W.$³Ś,9-+»)%$$O$%&$%:$$+:%*B+,S6$%((9)&$=($c['%%3%Q$&$%(''$&$@%&'$,*,*@%$@&C+$?%'(*,Y&*9%+6(+5*'/*slZV0V*)G'+-ʼnB$M$%$%%q@-$+9.'(y8*7:,$$$X2*'7-2&$P&'%%%$'.$%<*-)&G($+$-'$%$+F$%$,%$S&,%'''$$$-$$$&$7.5$<&&%$$%)$d*$$$'$2$-$)R$&+(-)%%$+%%%9$*$%$($%$%$'%%%&%$)$((%%*&(®X&+%&$$'(-%$$$&AS&)$$'%$%%$$+-ÉR&'%'%$%:'%ES&+%$$%&$.-)06N$$$%)$$$*-Y>%&%'$('-%&$ãO&,$%$‡CC-,/+%$%+$%$;)$%%%$$$$$$$&,-i+%J&'%%'$$$$$>$-K)$$'+$+$)%&Q0$%&$(@\\Ī,$H$*$)$$$(--6&%A%9$$*$%$%l*$%$I)&$$%$*$$+-))$%$C($%$%$$$$*-ř6%%%Ú$28+'40$ν‰’$(.ç૟ђ$,࿪ɪ⇜ɜ*B$-'%ƒA%($-S*(''$$--$*$8(6˓CC:'ˆn'$$Z*'0c%$$$.%1᠛+ӹM,⌚łT&4'+ƯधŽ(0&,*-%$%$'፿ę-J%_%&&)++%*A'^:e&$½7/z,<ª===*$5==$$%%$%%%'$+'$$$*$.==%$'%+$*$=%$'$($$&*$============?%<$<$)<$<$)<$<$)<$<$)<$<$)$$%UȣZ'U+$1$%(2($2ճ*$4%*$%$(øP&**%-'$$ƓO'-($ԣè%,*LEE*$'-'%̴^$&$'oP$2å'$>$%$$%$$-$'$$$$)$'$$$$$$&$%$$%$$$$$$$$$$%$$%'$*$'$'$$$-$4(&$($4W%ıO'‡/2%2$2$H-0Ä[@0O',*%1)½Ğ(˻+0&0&—/|*/7/'[+-)K+A%%qœ$u$ª/1%(&&(*,<**,&0*L¶$ZH-Щ꜁Eၘ.ā%ᚥ1ᵔూɁ؅፮򮳙$Aƒ£ē︳𐀡%𐀡"].map((e=>(e.codePointAt(0)??0)-35)),t=[..."1.;=;78;<;6;+;<;#7;8>5>$7<8<1.;=?;>?'9<2?>?<->$;>-':-;#<#$<$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'#$'#%$#%$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'$&>&>&>&>&>(#$#$&>#$@&$;#@>#;#@#@#$#@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$<#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?(*#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@&;$;6@?=@(6(;(;(;(@'@';@2<;=;?(;2@;'&'(+;'(';'(2?(&(?('+'?';@2'('(@'('@+'(&?;&@(='(&(&(&(@;@'(@;@'@'@'@(2()'()(')()()'('(;+;&'()@'@'@'@'@'@'@(')(@)@)('@)@'@'(@+'=-?=';(@()@'@'@'@'@'@'@'@(@)(@(@(@(@'@'@+('(;@()@'@'@'@'@'@'@(')(@()@)(@'@'(@+;=@'(@()@'@'@'@'@'@'@(')()(@)@)(@()@'@'(@+?'-@('@'@'@'@'@'@'@'@'@'@)()@)@)(@'@)@+-?=?@()('@'@'@'@'()@(@(@(@'@'(@+@;-?'();'@'@'@'@'@(')()@()@)(@)@'@'(@+@'@()'@'@'(')(@)@)('?@')-'(@+-?'@()@'@'@'@'@'@(@)(@(@)@+@);@'('(@='&(;+;@'@'@'@'@'@'('('@'@&@(@+@'@'?;?;?(?+-?(?(?(7878)'@'@()(;('(@(@?(?@?;?;@')()()()('+;')('(')')'('()()(')+)(?#@#@#@$;&$'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@(;-@'?@#@$@6'?;'.'78@';,'@'@'(@'(;@'(@'@'@(@'()()()(;&;='(@+@-@;6;(2@+@'&'@'('('@'@'@()()@)()(@?@;+'@'@'@'@+-@?'()(@;')()(@()()()(@(+@+@;&;@(*(@()'()()()()'@+;?(?@()')()()('+'()()()()@;')()(@;+@'+'&;$@#@#;@(;()('('(')('@$&$&$&(@(#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@$#$#$@#@$@#@#@#@#$#$@$%$%$%$@$#%>$>$@$#%>$@$#@>$#>@$@$#%>@.26;9:79:79;/02.;9:;5;<78;<;5;.2@2-&@-<78&-<78@&@=@(*(*(@?#?#?$#$#$?#?<#?#?#?#?#?$#$'$?$#<#$?<?$?-,#$,-?@<?<?<?<?<?<?<?<?<?<?7878?<?78?<?<?<?@?@-?-?<?<?<?<?78787878787878-?<78<7878787878<?<7878787878787878787878<7878<78<?<?<?@?@?#@$@#$#$#$#$#$#$#$#$&#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?#$#$(#$@;-;$@$@$@'@&;@('@'@'@'@'@'@'@'@'@(;9:9:;9:;9:;6;6;9:;9:78787878;&;6;6;7;?;@?@?@?@?@.;?&',7878787878?78787878678?,()6&?,&';?@'@(>&'6';&'@'@'@?-?'?@'?@-?-?-?-?-?'?'@'&'@?@'&;'&;'+'@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'(*;(;&#$#$#$#$#$#$#$#$#$#$#$#$#$#$&(',(;@>&>#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$&$#$#$#$#$#$#$#$&>#$#$'#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#$#$#$@#$'&$'('('(')()?(@-?=?@';@)')(@;+@(';';'(+'(;'()@;'@()'()()();@&+@;'(&'+'@'()()(@'('()@+@;'&'?')()'('('('('('@'&;')();'&)(@'@'@'@'@'@$>&$&>@$')()();)(@+@'@'@'@34'@'@$@$@'('<'@'@'@'@'@'>@'87@'@'@'=?@(;78;@(;657878787878787878;78;5;@;6787878;<6<@;=;@'@'@2@;=;78;<;6;+;<;#7;8>5>$7<8<78;78;'&'&'@'@'@'@'@=<>?=@?<?@2?@'@'@'@'@'@'@'@;@-@?,-?-?@?@?@?(@'@'@(-@'-@',',@'(@'@;'@';,@#$'@+@#@$@'@'@;@'@'@'@'@'@'@'@'@'@;-'?-'@-@'@'@-'-@;'@;@'@-'-@-'(@(@('@'@'@(@(-@;@'-;'-@'?'(@-;@'@;'@-'@-'@;@-@'@#@$@-'(@+@-@'@(6@'@'-'@'(-;@'-@'@)()'(;@-+@()')()(;2;@2@'@+@('()(@+;')'@'(;'@()')()';(;)(+';';@-@'@')()()(;(@'@'@'@'@';@'()(@+@()@'@'@'@'@'@'@(')()@)@)@'@)@')@(@(@')()()(';+;@;('@')()()()(';'@+@')(@)()(;'(@')()()(;'@+@;@'()()()('@+@'@()()(@+-;?@')()(;@#$+-@'@'@'@'@')@)@()(')')(;@+@'@')(@()(';')@'('()'(;(@'()('()(;';@'@'@')(@()(';@+-@;'@(@)()()(@'@'@'(@(@(@('(@+@'@'@')@(@)()('@+@'();@'@-?=?@;'@,@;@'@'@2@'@'@'@+@;@'@(;@'(;?&;?@+@-@'@'@#$-;@'@(')@(&@&;&(@)@'@'@'@'@'@'@'@'@'@'@'@?(;2@?@?@?)(?)2(?(?(?@?(?@-@?@-@#$#$@$#$#@#@#@#@#@#$@$@$@$#$#@#@#@#@$#@#@#@#@#@$#$#$#$#$#$#$@#<$<$#<$<$#<$<$#<$<$#<$<$#$@+?(?(?(?(?;@(@(@(@(@(@(@(@'@(&@+@'?@'(+@=@'@-(@#$(&@+@;@-?-=-@-?-@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@<@?@?@?@?@?@?@-?@?@?@?@?@?@?>?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@+@'@'@'@'@'@'@'@2@2@(@4@4@"].map((e=>(e.codePointAt(0)??0)-35)),n=new Uint32Array(e),r=new Uint8Array(t);for(let e=1;e<n.length;++e)n[e]+=n[e-1];return e=>{let t=n.length,o=0;for(;t-o>1;){const r=Math.floor((t+o)/2),i=n[r];if(e<i)t=r;else{if(e===i){t=o=r;break}i<e&&(o=r)}}return r[o]}}();function Fr(e,t){if(t>=0&&t<e.length)return e.charCodeAt(t);throw new Error("Index out of range.")}const Gr=e=>function(e){return!!(256&1<<Lr(e,0))}(e),Hr=e=>function(e){if(14336&1<<Lr(e,0))return!0;const t=Fr(e,0);return 9<=t&&t<=13||133===t||160===t}(e);function Lr(e,t){const n=Fr(e,t);return jr(n)}const Ur=ze(document.querySelector("#bank-details-app"));var zr;function qr(e,t){switch(t){case 8:return e?[0,255]:[-128,127];case 16:return e?[0,65535]:[-32768,32767];case 32:return e?[0,4294967295]:[-2147483648,2147483647];default:throw new Error("Invalid bit size.")}}function Wr(e,t,n,r,o){try{return o.contents=function(e,t,n,r){const o=function(e,t,n){const r=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(null!=r){const[,,e,o]=r;n=n||function(e,t){if(t&zr.AllowHexSpecifier)return 16;switch(e){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}(e,t);const i=function(e){switch(e){case 2:return/[^0-1]/;case 8:return/[^0-7]/;case 10:return/[^0-9]/;case 16:return/[^0-9a-fA-F]/;default:throw new Error("Invalid Base.")}}(n);if(!i.test(o))return function(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}(r,n)}return null}(e,t,void 0);if(null!=o){let e=Number.parseInt(o.sign+o.digits,o.radix);if(!Number.isNaN(e)){const[t,i]=qr(!0,r);!n&&10!==o.radix&&e>=t&&e<=i&&(e=e<<32-r>>32-r);const[a,s]=qr(n,r);if(e>=a&&e<=s)return e}}throw new Error(`The input string ${e} was not in a correct format.`)}(e,t,n,r),!0}catch{return!1}}Ye((e=>e.getAttribute("data-identity-url")),Ur),Ye((e=>e.getAttribute("data-backend-url")),Ur),function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(zr||(zr={}));var Yr={},Vr=1e6,Kr="[big.js] ",Jr=Kr+"Invalid ",Xr=Jr+"decimal places",Qr=Jr+"rounding mode",Zr=Kr+"Division by zero",eo=void 0,to=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function no(e,t){var n,r,o;if(!to.test(t))throw Error(Jr+"number");for(e.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),o=t.length,r=0;r<n&&r<o&&"0"==t.charAt(r);)++r;if(r==o)e.c=[e.e=0];else for(e.e=n-r-1,e.c=[],n=0;r<o;)e.c[n++]=+t.charAt(r++);return ro(e,io.DP+1,io.RM)}function ro(e,t,n,r){var o=e.c;if(n===eo&&(n=io.RM),0!==n&&1!==n&&2!==n&&3!==n)throw Error(Qr);if(t<1)r=3===n&&(r||!!o[0])||0===t&&(1===n&&o[0]>=5||2===n&&(o[0]>5||5===o[0]&&(r||o[1]!==eo))),o.length=1,r?(e.e=e.e-t+1,o[0]=1):o[0]=e.e=0;else if(t<o.length){const i=o.findIndex(((e,n)=>n>=t&&e>0))<0;if(r=1===n&&o[t]>=5||2===n&&(o[t]>5||5===o[t]&&(r||o[t+1]!==eo||1&o[t-1]))||3===n&&(r||!i),o.length=t--,r)for(;++o[t]>9;)o[t]=0,t--||(++e.e,o.unshift(1));for(t=o.length;!o[--t];)o.pop()}return e}function oo(e,t,n){var r=e.e,o=e.c.join(""),i=o.length;if(t)o=o.charAt(0)+(i>1?"."+o.slice(1):"")+(r<0?"e":"e+")+r;else if(r<0){for(;++r;)o="0"+o;o="0."+o}else if(r>0)if(++r>i)for(r-=i;r--;)o+="0";else r<i&&(o=o.slice(0,r)+"."+o.slice(r));else i>1&&(o=o.charAt(0)+"."+o.slice(1));return e.s<0&&n?"-"+o:o}Yr.abs=function(){var e=new this.constructor(this);return e.s=1,e},Yr.cmp=function(e){var t,n=this.constructor,r=new n(this),o=(e=new n(e),r.c),i=e.c,a=r.s,s=e.s,c=r.e,u=e.e;if(!o[0]||!i[0])return o[0]?a:i[0]?-s:0;if(a!=s)return a;if(t=a<0,c!=u)return c>u^t?1:-1;for(s=Math.max(o.length,i.length),a=0;a<s;a++)if((c=a<o.length?o[a]:0)!=(u=a<i.length?i[a]:0))return c>u^t?1:-1;return 0},Yr.div=function(e){var t=this.constructor,n=new t(this),r=(e=new t(e),n.c),o=e.c,i=n.s==e.s?1:-1,a=t.DP;if(a!==~~a||a<0||a>Vr)throw Error(Xr);if(!o[0])throw Error(Zr);if(!r[0])return e.s=i,e.c=[e.e=0],e;var s,c,u,l,f,d=o.slice(),A=s=o.length,m=r.length,p=r.slice(0,s),$=p.length,h=e,g=h.c=[],w=0,y=a+(h.e=n.e-e.e)+1;for(h.s=i,i=y<0?0:y,d.unshift(0);$++<s;)p.push(0);do{for(u=0;u<10;u++){if(s!=($=p.length))l=s>$?1:-1;else for(f=-1,l=0;++f<s;)if(o[f]!=p[f]){l=o[f]>p[f]?1:-1;break}if(!(l<0))break;for(c=$==s?o:d;$;){if(p[--$]<c[$]){for(f=$;f&&!p[--f];)p[f]=9;--p[f],p[$]+=10}p[$]-=c[$]}for(;!p[0];)p.shift()}g[w++]=l?u:++u,p[0]&&l?p[$]=r[A]||0:p=[r[A]]}while((A++<m||p[0]!==eo)&&i--);return g[0]||1==w||(g.shift(),h.e--,y--),w>y&&ro(h,y,t.RM,p[0]!==eo),h},Yr.eq=function(e){return 0===this.cmp(e)},Yr.gt=function(e){return this.cmp(e)>0},Yr.gte=function(e){return this.cmp(e)>-1},Yr.lt=function(e){return this.cmp(e)<0},Yr.lte=function(e){return this.cmp(e)<1},Yr.minus=Yr.sub=function(e){var t,n,r,o,i=this.constructor,a=new i(this),s=(e=new i(e),a.s),c=e.s;if(s!=c)return e.s=-c,a.plus(e);var u=a.c.slice(),l=a.e,f=e.c,d=e.e;if(!u[0]||!f[0])return f[0]?e.s=-c:u[0]?e=new i(a):e.s=1,e;if(s=l-d){for((o=s<0)?(s=-s,r=u):(d=l,r=f),r.reverse(),c=s;c--;)r.push(0);r.reverse()}else for(n=((o=u.length<f.length)?u:f).length,s=c=0;c<n;c++)if(u[c]!=f[c]){o=u[c]<f[c];break}if(o&&(r=u,u=f,f=r,e.s=-e.s),(c=(n=f.length)-(t=u.length))>0)for(;c--;)u[t++]=0;for(c=t;n>s;){if(u[--n]<f[n]){for(t=n;t&&!u[--t];)u[t]=9;--u[t],u[n]+=10}u[n]-=f[n]}for(;0===u[--c];)u.pop();for(;0===u[0];)u.shift(),--d;return u[0]||(e.s=1,u=[d=0]),e.c=u,e.e=d,e},Yr.mod=function(e){var t,n=this.constructor,r=new n(this),o=(e=new n(e),r.s),i=e.s;if(!e.c[0])throw Error(Zr);return r.s=e.s=1,t=1==e.cmp(r),r.s=o,e.s=i,t?new n(r):(o=n.DP,i=n.RM,n.DP=n.RM=0,r=r.div(e),n.DP=o,n.RM=i,this.minus(r.times(e)))},Yr.plus=Yr.add=function(e){var t,n,r,o=this.constructor,i=new o(this);if(e=new o(e),i.s!=e.s)return e.s=-e.s,i.minus(e);var a=i.e,s=i.c,c=e.e,u=e.c;if(!s[0]||!u[0])return u[0]||(s[0]?e=new o(i):e.s=i.s),e;if(s=s.slice(),t=a-c){for(t>0?(c=a,r=u):(t=-t,r=s),r.reverse();t--;)r.push(0);r.reverse()}for(s.length-u.length<0&&(r=u,u=s,s=r),t=u.length,n=0;t;s[t]%=10)n=(s[--t]=s[t]+u[t]+n)/10|0;for(n&&(s.unshift(n),++c),t=s.length;0===s[--t];)s.pop();return e.c=s,e.e=c,e},Yr.pow=function(e){var t=this.constructor,n=new t(this),r=new t("1"),o=new t("1"),i=e<0;if(e!==~~e||e<-1e6||e>1e6)throw Error(Jr+"exponent");for(i&&(e=-e);1&e&&(r=r.times(n)),e>>=1;)n=n.times(n);return i?o.div(r):r},Yr.prec=function(e,t){if(e!==~~e||e<1||e>Vr)throw Error(Jr+"precision");return ro(new this.constructor(this),e,t)},Yr.round=function(e,t){if(e===eo)e=0;else if(e!==~~e||e<-Vr||e>Vr)throw Error(Xr);return ro(new this.constructor(this),e+this.e+1,t)},Yr.sqrt=function(){var e,t,n,r=this.constructor,o=new r(this),i=o.s,a=o.e,s=new r("0.5");if(!o.c[0])return new r(o);if(i<0)throw Error(Kr+"No square root");0===(i=Math.sqrt(o+""))||i===1/0?((t=o.c.join("")).length+a&1||(t+="0"),a=((a+1)/2|0)-(a<0||1&a),e=new r(((i=Math.sqrt(t))==1/0?"5e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+a)):e=new r(i+""),a=e.e+(r.DP+=4);do{n=e,e=s.times(n.plus(o.div(n)))}while(n.c.slice(0,a).join("")!==e.c.slice(0,a).join(""));return ro(e,(r.DP-=4)+e.e+1,r.RM)},Yr.times=Yr.mul=function(e){var t,n=this.constructor,r=new n(this),o=(e=new n(e),r.c),i=e.c,a=o.length,s=i.length,c=r.e,u=e.e;if(e.s=r.s==e.s?1:-1,!o[0]||!i[0])return e.c=[e.e=0],e;for(e.e=c+u,a<s&&(t=o,o=i,i=t,u=a,a=s,s=u),t=new Array(u=a+s);u--;)t[u]=0;for(c=s;c--;){for(s=0,u=a+c;u>c;)s=t[u]+i[c]*o[u-c-1]+s,t[u--]=s%10,s=s/10|0;t[u]=s}for(s?++e.e:t.shift(),c=t.length;!t[--c];)t.pop();return e.c=t,e},Yr.toExponential=function(e,t){var n=this,r=n.c[0];if(e!==eo){if(e!==~~e||e<0||e>Vr)throw Error(Xr);for(n=ro(new n.constructor(n),++e,t);n.c.length<e;)n.c.push(0)}return oo(n,!0,!!r)},Yr.toFixed=function(e,t){var n=this,r=n.c[0];if(e!==eo){if(e!==~~e||e<0||e>Vr)throw Error(Xr);for(e=e+(n=ro(new n.constructor(n),e+n.e+1,t)).e+1;n.c.length<e;)n.c.push(0)}return oo(n,!1,!!r)},Yr.toJSON=Yr.toString=function(){var e=this,t=e.constructor;return oo(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])},Yr.toNumber=function(){var e=Number(oo(this,!0,!0));if(!0===this.constructor.strict&&!this.eq(e.toString()))throw Error(Kr+"Imprecise conversion");return e},Yr.toPrecision=function(e,t){var n=this,r=n.constructor,o=n.c[0];if(e!==eo){if(e!==~~e||e<1||e>Vr)throw Error(Jr+"precision");for(n=ro(new r(n),e,t);n.c.length<e;)n.c.push(0)}return oo(n,e<=n.e||n.e<=r.NE||n.e>=r.PE,!!o)},Yr.valueOf=function(){var e=this,t=e.constructor;if(!0===t.strict)throw Error(Kr+"valueOf disallowed");return oo(e,e.e<=t.NE||e.e>=t.PE,!0)};var io=function e(){function t(n){var r=this;if(!(r instanceof t))return n===eo?e():new t(n);if(n instanceof t)r.s=n.s,r.e=n.e,r.c=n.c.slice(),function(e){if(e.c.length>1&&!e.c[0]){let t=e.c.findIndex((e=>e));e.c=e.c.slice(t),e.e=e.e-t}}(r);else{if("string"!=typeof n){if(!0===t.strict)throw TypeError(Jr+"number");n=0===n&&1/n<0?"-0":String(n)}no(r,n)}r.constructor=t}return t.prototype=Yr,t.DP=28,t.RM=1,t.NE=-29,t.PE=29,t.strict=!1,t}();const ao=io;ao.prototype.GetHashCode=function(){return w([this.s,this.e].concat(this.c))},ao.prototype.Equals=function(e){return!this.cmp(e)},ao.prototype.CompareTo=function(e){return this.cmp(e)},ao.prototype[he]=function(){const e=this;return{multiply:t=>e.mul(t),toPrecision:t=>e.toPrecision(t),toExponential:t=>e.toExponential(t),toFixed:t=>e.toFixed(t),toHex:()=>(Number(e)>>>0).toString(16)}};const so=ao;function co(e,t){return e.cmp(t)}function uo(e,t){return e.add(t)}function lo(e){return e.toString()}function fo(e,t){try{return t.contents=new ao(e.trim()),!0}catch{return!1}}function Ao(e,t,n){for(let r=0;r<8;r++)e[n+r]=t>>4*r&15}function mo(e,t,n,r,o){const i=new Uint8Array(24);Ao(i,e,0),Ao(i,t,8),Ao(i,n,16);const a=function(e){const t=new Uint8Array(29);let n=1;for(let r=e.length-1;r>=0;r--){let o=e[r];for(let e=0;e<n;e++){const n=16*t[e]+o|0;t[e]=n%10|0,o=n/10|0}for(;o>0;)t[n++]=o%10|0,o=o/10|0}return t.slice(0,n)}(i);o&=127;const s=new ao(0);return s.c=Array.from(a.reverse()),s.e=a.length-o-1,s.s=r?-1:1,new ao(s)}new ao(0),new ao(1),new ao(-1),new ao("79228162514264337593543950335"),new ao("-79228162514264337593543950335");class po extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Web","ReactNative","WebComponent"]}}function $o(){const e=Fe(document.URL,["/"],void 0,0),t=Qe("web",e,{Equals:(e,t)=>e===t,GetHashCode:h}),n=Qe("react-native",e,{Equals:(e,t)=>e===t,GetHashCode:h}),r=ze(document.querySelector("bank-component"));let o,i;switch(null==Ur?null!=r?(o=2,i=r):o=4:o=t?n?4:0:n?1:document.URL.indexOf("localhost")>=0?3:4,o){case 0:case 3:return new W(0,[new po(0,[])]);case 1:return new W(0,[new po(1,[])]);case 2:return new W(0,[new po(2,[i])]);default:return new W(1,["Could not determine the embed mode"])}}function ho(e){let t,n=0;return t=[Wr(e,511,!1,32,new j((()=>n),(e=>{n=0|e}))),n],t[0]?t[1]:void 0}function go(e){return function(e,t,n=0){return e.lastIndex=n,e.test(t)}(/^(0|[1-9]\d*)(\.|$)(\d{1,2})?$/gu,e)?new so(e):void 0}function wo(e,t){return e.replace(/[a-z]?[A-Z]/g,(e=>1===e.length?e.toLowerCase():e.charAt(0)+t+e.charAt(1).toLowerCase()))}function yo(e,t=0){const n={},r=t;function o(e){throw new Error("Cannot infer key and value of "+String(e))}function i(e,t,r){e=function(e,t){switch(t){case 1:return e.charAt(0).toLowerCase()+e.slice(1);case 2:return wo(e,"_");case 3:return wo(e,"_").toUpperCase();case 4:return wo(e,"-");default:return e}}(e,t),n[e]=r}for(let t of e){let e=0;if(null==t&&o(t),t instanceof D){const n=t.cases()[t.tag];t=0===t.fields.length?n:[n].concat(t.fields),e=r}if(Array.isArray(t))switch(t.length){case 0:o(t);break;case 1:i(t[0],e,!0);break;case 2:const n=t[1];i(t[0],e,n);break;default:i(t[0],e,t.slice(1))}else"string"==typeof t?i(t,e,!0):o(t)}return n}function bo(e,t,n){return!!e.has(t)&&(n.contents=e.get(t),!0)}function vo(e,t,n){if(e.has(t))throw new Error("An item with the same key has already been added. Key: "+t);e.set(t,n)}function Co(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class _o{constructor(e,t){const n=new j(null);this.comparer=t,n.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const r=u(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();Po(n.contents,e[0],e[1])}}finally{a(r)}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(){return Array.from(this)}"System.Collections.IEnumerable.GetEnumerator"(){return u(this)}GetEnumerator(){return u(Ht(this.hashMap.values()))}[Symbol.iterator](){return l(u(this))}"System.Collections.Generic.ICollection`1.Add2B595"(e){Po(this,e[0],e[1])}"System.Collections.Generic.ICollection`1.Clear"(){ko(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(e){const t=Bo(this,e[0]);let n,r;return null!=t&&_(Le(t)[1],e[1])?(n=0,r=Le(t)):n=1,0===n}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(e,t){var n;n=(n,r)=>{tt(e,t+n,r)},Jt(((e,t)=>(n(e,t),e+1|0)),0,this)}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|So(this)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(e){const t=Bo(this,e[0]);return null!=t&&(_(Le(t)[1],e[1])&&Mo(this,e[0]),!0)}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(e,t){Po(this,e,t)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(e){return Io(this,e)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(e){return Eo(this,e)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(e,t){No(this,e,t)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const e=this;return zt(Gt((()=>Qt((e=>e[0]),e))))}"System.Collections.Generic.IDictionary`2.Remove2B595"(e){return Mo(this,e)}"System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(e,t){const n=Bo(this,e);if(null!=n){const e=Le(n);return t.contents=e[1],!0}return!1}"System.Collections.Generic.IDictionary`2.get_Values"(){const e=this;return zt(Gt((()=>Qt((e=>e[1]),e))))}get size(){return 0|So(this)}clear(){ko(this)}delete(e){return Mo(this,e)}entries(){return Qt((e=>[e[0],e[1]]),this)}get(e){return Eo(this,e)}has(e){return Io(this,e)}keys(){return Qt((e=>e[0]),this)}set(e,t){return No(this,e,t),this}values(){return Qt((e=>e[1]),this)}forEach(e,t){const n=this;Xt((t=>{e(t[1],t[0],n)}),n)}}function xo(e,t){const n=0|e.comparer.GetHashCode(t);let r,o=null;return r=[bo(e.hashMap,n,new j((()=>o),(e=>{o=e}))),o],r[0]?[!0,n,r[1].findIndex((n=>e.comparer.Equals(t,n[0])))]:[!1,n,-1]}function Bo(e,t){const n=xo(e,t);let r;if(r=n[0]&&n[2]>-1?0:1,0===r)return Co(e.hashMap,n[1])[n[2]]}function ko(e){e.hashMap.clear()}function So(e){let t=0,n=u(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();)t=t+n["System.Collections.Generic.IEnumerator`1.get_Current"]().length|0}finally{a(n)}return 0|t}function Eo(e,t){const n=Bo(e,t);if(null!=n)return Le(n)[1];throw new Error("The item was not found in collection")}function No(e,t,n){const r=xo(e,t);r[0]?r[2]>-1?Co(e.hashMap,r[1])[r[2]]=[t,n]:Co(e.hashMap,r[1]).push([t,n]):e.hashMap.set(r[1],[[t,n]])}function Po(e,t,n){const r=xo(e,t);if(r[0]){if(r[2]>-1)throw new Error(Te("An item with the same key has already been added. Key: {0}",t));Co(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}function Io(e,t){const n=xo(e,t);let r;return r=n[0]&&n[2]>-1?0:1,0===r}function Mo(e,t){const n=xo(e,t);let r;return r=n[0]&&n[2]>-1?0:1,0===r&&(Co(e.hashMap,n[1]).splice(n[2],1),!0)}const Oo=Pe(Ee("Please only use %i characters"));function To(e){return De("",(t=Hr,n=e.split(""),Gt((()=>{let e=!0;return function(e,t){return function(e,t){return Wt((()=>Ft(t)),(t=>{let n;for(;null==n&&t["System.Collections.IEnumerator.MoveNext"]();)n=e(t["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}),(e=>{a(e)}))}((t=>e(t)?Ue(t):void 0),t)}((n=>(e&&(e=t(n)),!e)),n)}))));var t,n}function Do(e){const t=To(e);return t.length>18?new vr(2,[t,Oo(18)]):new vr(1,[t])}function Ro(e){const t=To(e);return t.length>50?new vr(2,[t,Oo(50)]):t.length>0?new vr(1,[t]):new vr(2,[t,"Enter the account name"])}function jo(e,t,n){const r=Ge(Gr,e);if(6===r.length){const e=r;let t,o,i;if(2===n.tag&&0===n.fields[0].tag?(t=0,o=n.fields[0].fields[0]):(t=1,i=n),0===t){let t,n;return null==o?t=1:o.Bsb===e?(t=0,n=o):t=1,0===t?new vr(1,[e]):new vr(2,[e,"Enter a valid BSB"])}return new vr(1,[e])}return r.length>6?t:new vr(2,[r,"Enter a valid BSB"])}function Fo(e,t){let n,r;const o=Ge(Gr,e);return n=o,n.length>=5&&n.length<=9?new vr(1,[o]):(r=o,10===r.length&&r.startsWith("0")?new vr(1,[o]):o.length>10?t:new vr(2,[o,"Enter a valid account number"]))}function Go(e,t,n){if(1===n.tag){const n=go(e);return null==n?""===e?new vr(2,[e,"Enter a valid amount"]):t:co(n,mo(100,0,0,!1,0))>0?new vr(1,["100.00"]):co(n,mo(0,0,0,!1,0))>0?new vr(1,[e]):new vr(2,[e,"Enter a valid amount"])}{const n=Ge(Gr,e),r=ho(e);let o,i;switch(null!=r&&r>0?(o=0,i=r):o=""===n?1:2,o){case 0:return new vr(1,[p(i)]);case 1:return new vr(2,[n,"Enter a valid amount"]);default:return t}}}function Ho(e){let t,n,r;const o=new xr("temp-primary-account-id"),i=function(e,t){let n,r;const o=it();let i=o,a=t;for(;!st(a);){let e=ut(a)[1];for(;!st(e);)n=i,r=new rt(ut(e),void 0),n.tail=r,i=r,e=lt(e);a=lt(a)}const s=i,c=it();return s.tail=c,lt(o)}(0,Et((e=>""!==e[0][0]&&pt(e[1])>1),(s=e=>[e[1],e[2]],t=xt((e=>[e.Id,Cr(e.Bsb),Cr(e.AccountNumber)]),e.NonPrimaryAccounts),qt(Qt((e=>[e[0],qt(e[1])]),function(e,t,n){return Gt((()=>{const r=new _o([],n),o=[],i=u(t);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const t=i["System.Collections.Generic.IEnumerator`1.get_Current"](),n=e(t);let a,s=null;a=[bo(r,n,new j((()=>s),(e=>{s=e}))),s],a[0]?a[1].push(t):(vo(r,n,[t]),o.push(n))}}finally{a(i)}return Qt((e=>[e,Co(r,e)]),o)}))}(s,_t(At([o,Cr(e.PrimaryAccount.Bsb),Cr(e.PrimaryAccount.AccountNumber)]),t),{Equals:C,GetHashCode:y}))))));var s;const c=kt((e=>_(e[0],o)),i),l=new Tr(null==c?(n=e.PrimaryAccount,new Sr(n.AccountNickname,n.AccountName,n.Bsb,Fo(Cr(e.PrimaryAccount.AccountNumber),e.PrimaryAccount.AccountNumber),n.BsbLookup)):(r=e.PrimaryAccount,new Sr(r.AccountNickname,r.AccountName,r.Bsb,new vr(2,[Cr(e.PrimaryAccount.AccountNumber),"Enter a unique account number"]),r.BsbLookup)),e.NonPrimaryAccounts,e.PreExistingAccounts,e.CurrentModal,e.CurrentAlert,e.Saved,e.MaximumAccounts,e.AllowPercentageSplit);return new Tr(l.PrimaryAccount,function(e,t){return((e,t,n)=>{for(;;){const r=e,o=t,i=n,a=St(r,i);if(null==a)return o;{const s=a[0];a[2],a[1],e=r+1,t=xt((e=>_(e.Id,s)?new Pr(e.Id,e.AccountNickname,e.AccountName,e.Bsb,new vr(2,[Cr(e.AccountNumber),"Enter a unique account number"]),e.Amount,e.BsbLookup):e),o),n=i}}})(0,xt((e=>new Pr(e.Id,e.AccountNickname,e.AccountName,e.Bsb,Fo(Cr(e.AccountNumber),e.AccountNumber),e.Amount,e.BsbLookup)),e),t)}(e.NonPrimaryAccounts,i),l.PreExistingAccounts,l.CurrentModal,l.CurrentAlert,l.Saved,l.MaximumAccounts,l.AllowPercentageSplit)}function Lo(e){const t=(n=e.NonPrimaryAccounts,wt(((e,t)=>r.Add(e,(e=>1===e.Amount.Type.tag?We(go(Cr(e.Amount.Input)),mo(0,0,0,!1,0)):mo(0,0,0,!1,0))(t))),(r={GetZero:()=>new so("0"),Add:uo}).GetZero(),n));var n,r;return new Tr(e.PrimaryAccount,xt((e=>new Pr(e.Id,e.AccountNickname,e.AccountName,e.Bsb,e.AccountNumber,1===e.Amount.Type.tag?new Ir(co(t,mo(100,0,0,!1,0))>0?new vr(2,[Cr(e.Amount.Input),"Total percentage exceeds 100%"]):Go(Cr(e.Amount.Input),e.Amount.Input,e.Amount.Type),e.Amount.Type):e.Amount,e.BsbLookup)),e.NonPrimaryAccounts),e.PreExistingAccounts,e.CurrentModal,e.CurrentAlert,e.Saved,e.MaximumAccounts,e.AllowPercentageSplit)}function Uo(e,t){switch(e.tag){case 1:return Ro(e.fields[0]);case 2:return jo(e.fields[0],t,new H(0,[]));case 3:return Fo(e.fields[0],t);case 4:return Go(e.fields[0],t,e.fields[1]);case 5:return new vr(2,["","Enter a valid amount"]);default:return Do(e.fields[0])}}function zo(e){return new Pr(e.Id,Do(Cr(e.AccountNickname)),Ro(Cr(e.AccountName)),jo(Cr(e.Bsb),e.Bsb,e.BsbLookup),Fo(Cr(e.AccountNumber),e.AccountNumber),new Ir(Go(Cr(e.Amount.Input),e.Amount.Input,e.Amount.Type),e.Amount.Type),e.BsbLookup)}function qo(e){return 1===e.tag}class Wo extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Yo extends D{constructor(e,t){super(),this.tag=0,this.fields=[e,t]}cases(){return["Header"]}}class Vo extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class Ko extends R{constructor(e,t,n,r,o,i,a,s){super(),this.url=e,this.method=t,this.headers=n,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=a,this.content=s}}class Jo extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Xo extends R{constructor(e,t,n,r,o,i){super(),this.statusCode=0|e,this.responseText=t,this.responseType=n,this.responseUrl=r,this.responseHeaders=o,this.content=i}}class Qo{constructor(e,t){this.k=e,this.v=t}}function Zo(e,t){return new Qo(e,t)}function ei(e){return e.k}function ti(e){return e.v}class ni extends Qo{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=0|o}}function ri(e,t,n,r,o){return new ni(e,t,n,r,o)}function oi(e){return e.left}function ii(e){return e.right}function ai(e){return e.h}function si(e,t){e:for(;;){const n=e;if(null!=t){const r=Le(t);if(r instanceof ni){const o=r;e=si(n+1,oi(o)),t=ii(o);continue e}return n+1|0}return 0|n}}function ci(e){return si(0,e)}function ui(e,t,n,r){let o,i,a,s;if(null!=e){const t=Le(e);a=t instanceof ni?(o=t,ai(o)):1}else a=0;if(null!=r){const e=Le(r);s=e instanceof ni?(i=e,ai(i)):1}else s=0;const c=0|(a<s?s:a);return 0===c?Zo(t,n):ri(t,n,e,r,c+1)}function li(e,t,n,r){let o,i,a,s,c,u,l,f,d,A;if(null!=e){const t=Le(e);d=t instanceof ni?(o=t,ai(o)):1}else d=0;if(null!=r){const e=Le(r);A=e instanceof ni?(i=e,ai(i)):1}else A=0;if(A>d+2){const o=Le(r);if(o instanceof ni){const r=o;if(a=oi(r),(null!=a?(s=Le(a),s instanceof ni?(c=s,ai(c)):1):0)>d+1){const o=Le(oi(r));if(o instanceof ni){const i=o;return ui(ui(e,t,n,oi(i)),ei(i),ti(i),ui(ii(i),ei(r),ti(r),ii(r)))}throw new Error("internal error: Map.rebalance")}return ui(ui(e,t,n,oi(r)),ei(r),ti(r),ii(r))}throw new Error("internal error: Map.rebalance")}if(d>A+2){const o=Le(e);if(o instanceof ni){const e=o;if(u=ii(e),(null!=u?(l=Le(u),l instanceof ni?(f=l,ai(f)):1):0)>A+1){const o=Le(ii(e));if(o instanceof ni){const i=o;return ui(ui(oi(e),ei(e),ti(e),oi(i)),ei(i),ti(i),ui(ii(i),t,n,r))}throw new Error("internal error: Map.rebalance")}return ui(oi(e),ei(e),ti(e),ui(ii(e),t,n,r))}throw new Error("internal error: Map.rebalance")}return ui(e,t,n,r)}function fi(e,t,n,r){if(null!=r){const o=Le(r),i=0|e.Compare(t,ei(o));if(o instanceof ni){const r=o;return i<0?li(fi(e,t,n,oi(r)),ei(r),ti(r),ii(r)):0===i?ri(t,n,oi(r),ii(r),ai(r)):li(oi(r),ei(r),ti(r),fi(e,t,n,ii(r)))}return i<0?ri(t,n,void 0,r,2):0===i?Zo(t,n):ri(t,n,r,void 0,2)}return Zo(t,n)}function di(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=Le(n),a=0|r.Compare(o,ei(i));if(0===a)return Ue(ti(i));if(i instanceof ni){const s=i;e=r,t=o,n=a<0?oi(s):ii(s);continue e}return}return}}function Ai(e,t){e:for(;;){const n=e;if(null!=t){const r=Le(t);if(r instanceof ni){const o=r;Ai(n,oi(o)),n(ei(o),ti(o)),e=n,t=ii(o);continue e}n(ei(r),ti(r))}break}}function mi(e,t){Ai(e,t)}function pi(e,t){if(null!=t){const n=Le(t);if(n instanceof ni){const t=n,r=pi(e,oi(t)),o=e(ei(t),ti(t)),i=pi(e,ii(t));return ri(ei(t),o,r,i,ai(t))}return Zo(ei(n),e(ei(n),ti(n)))}}function $i(e,t){return pi(e,t)}function hi(e,t){if(o(t))return function(e,t){let n;for(let r=0;r<=t.length-1;r++){const o=et(r,t);n=fi(e,o[0],o[1],n)}return n}(e,t);if(t instanceof rt)return function(e,t){return wt(((t,n)=>fi(e,n[0],n[1],t)),void 0,t)}(e,t);{const n=u(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const a=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=fi(r,a[0],a[1],o),n=i}}}(e,void 0,n)}finally{a(n)}}}class gi extends R{constructor(e,t){super(),this.stack=e,this.started=t}}function wi(e){e:for(;;){const t=e;if(mt(t))return ft();{const n=ht(t),r=$t(t);if(null!=r){const o=Le(r);if(o instanceof ni){const t=o;e=vt([oi(t),Zo(ei(t),ti(t)),ii(t)],n);continue e}return t}e=n;continue e}}}function yi(e){return new gi(wi(At(e)),!1)}function bi(e){if(e.started){const t=e.stack;if(mt(t))return function(){throw new Error("enumeration already finished")}();if(null!=$t(t)){const e=Le($t(t));if(e instanceof ni)throw new Error("Please report error: Map iterator, unexpected stack for current");return[ei(e),ti(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function vi(e){let t=yi(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>bi(t),"System.Collections.IEnumerator.get_Current":()=>bi(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(mt(t))return!1;if(null!=$t(t)){if(Le($t(t))instanceof ni)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=wi(ht(t)),!mt(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!mt(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=yi(e)},Dispose(){}}}class Ci{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){const t=(e,t)=>(e<<1)+t+631;let n=0;const r=u(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=0|t(n,b(e[0])),n=0|t(n,b(e[1]))}}finally{a(r)}return 0|n}(this)}Equals(e){if(!(e instanceof Ci))return!1;{const t=e,n=u(this);try{const e=u(t);try{const t=()=>{const r=n["System.Collections.IEnumerator.MoveNext"]();if(r===e["System.Collections.IEnumerator.MoveNext"]()){if(r){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"](),o=e["System.Collections.Generic.IEnumerator`1.get_Current"]();return!(!_(r[0],o[0])||!_(r[1],o[1]))&&t()}return!0}return!1};return t()}finally{a(e)}}finally{a(n)}}}toString(){return"map ["+De("; ",Qt((e=>Te("({0}, {1})",e[0],e[1])),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){return Array.from(this)}GetEnumerator(){return vi(this.tree)}[Symbol.iterator](){return l(u(this))}"System.Collections.IEnumerable.GetEnumerator"(){return vi(this.tree)}CompareTo(e){const t=this;if(e instanceof Ci)return 0|function(e,t,n){const r=Ft(t);try{const t=Ft(n);try{let n=0,o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]();for(;0===n&&o&&i;)n=0|e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),t["System.Collections.Generic.IEnumerator`1.get_Current"]()),0===n&&(o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]());return 0|(0!==n?n:o?1:i?-1:0)}finally{a(t)}}finally{a(r)}}(((e,n)=>{const r=0|t.comparer.Compare(e[0],n[0]);return 0|(0!==r?r:S(e[1],n[1]))}),t,e);throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return ki(this,e[0])&&_(xi(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(e,t){!function(e,t,n){let r=n;mi(((e,n)=>{tt(t,r,[e,n]),r=r+1|0}),e)}(this.tree,e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Bi(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Bi(this)}get size(){return 0|Bi(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return Qt((e=>[e[0],e[1]]),this)}get(e){return xi(this,e)}has(e){return ki(this,e)}keys(){return Qt((e=>e[0]),this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return Qt((e=>e[1]),this)}forEach(e,t){const n=this;Xt((t=>{e(t[1],t[0],n)}),n)}}function _i(e,t){return new Ci(e,t)}function xi(e,t){return function(e,t,n){const r=di(e,t,n);if(null==r)throw new Error;return Le(r)}(e.comparer,t,e.tree)}function Bi(e){return ci(e.tree)}function ki(e,t){return function(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=Le(n),a=0|r.Compare(o,ei(i));if(i instanceof ni){const s=i;if(a<0){e=r,t=o,n=oi(s);continue e}if(0===a)return!0;e=r,t=o,n=ii(s);continue e}return 0===a}return!1}}(e.comparer,t,e.tree)}function Si(e,t,n){return function(e,t,n){return _i(e.comparer,fi(e.comparer,t,n,e.tree))}(n,e,t)}function Ei(e,t){return function(e,t){return di(e.comparer,t,e.tree)}(t,e)}function Ni(e,t){return r=e,_i((n=t).comparer,$i(r,n.tree));var n,r}function Pi(e){return function(e){return _i(e,void 0)}(e)}const Ii=new Ko("",new Wo(0,[]),ft(),!1,void 0,void 0,void 0,new Vo(0,[]));function Mi(e,t){return"string"!=typeof(n=t)||0===n.length?new Array(0):Fe(t,[e],void 0,0);var n}function Oi(e){return new Ko(e,Ii.method,Ii.headers,Ii.withCredentials,Ii.overridenMimeType,Ii.overridenResponseType,Ii.timeout,Ii.content)}function Ti(e,t){return new Ko(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Di(e,t){return new Ko(t.url,t.method,_t(t.headers,At(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Ri(e){return t=t=>{const n=new XMLHttpRequest;n.open(function(e){switch(e.tag){case 1:return"POST";case 3:return"PATCH";case 2:return"PUT";case 4:return"DELETE";case 6:return"OPTIONS";case 5:return"HEAD";default:return"GET"}}(e.method),e.url),n.onreadystatechange=()=>{let e,r,o,i,a,s,c;var u,l;4===n.readyState&&t[0]((r=n.responseType,e=""===r||"text"===r?n.responseText:"",o=0|n.status,i=n.responseType,s=n.responseType,a=""===s||"text"===s?new Jo(0,[n.responseText]):new Jo("arraybuffer"===s?2:"blob"===s?1:3,[n.response]),u=function(e,t,n){const r=[];for(let n=0;n<=t.length-1;n++){const o=e(et(n,t));if(null!=o){const e=Le(o);r.push(e)}}return _(n,null)?r:Xe((e=>e),r,n)}((e=>{const t=Ct(Mi(":",e));return mt(t)?void 0:[$t(t).toLocaleLowerCase(),De(":",ht(t)).trim()]}),Mi("\r\n",n.getAllResponseHeaders())),c=_i(l={Compare:B},hi(l,u)),new Xo(o,e,i,n.responseURL,c,a)))};const r=u(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(e.fields[0],e.fields[1])}}finally{a(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(null==o);else{const e=o;n.overrideMimeType(e)}const i=e.overridenResponseType;if(null==i);else switch(i.tag){case 1:n.responseType="blob";break;case 2:n.responseType="arraybuffer";break;default:n.responseType="text"}const s=e.timeout;if(null==s);else{const e=0|s;n.timeout=0|e}const c=e.content;switch(c.tag){case 1:case 3:case 2:n.send(Ue(c.fields[0]));break;default:n.send()}},Kn((e=>t([e.onSuccess,e.onError,e.onCancel])));var t}new Xo(0,"","","",Pi({Compare:B}),new Jo(0,[""]));class ji extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Fi extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class Gi extends R{constructor(e,t){super(),this.Hash=e,this.Coders=t}}class Hi{constructor(){this.cache=new Map([])}}function Li(){return new Hi}function Ui(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function zi(e,t){switch(e.tag){case 2:return function(e,t,n,r,o=0){if("string"==typeof e){const n=e;e=function(e,t=0){if(-284&t)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=1&t?"i":"",n+=2&t?"m":"",n+=16&t?"s":"",new RegExp(e,n)}(t,r??0),t=n,r=void 0}if("function"==typeof n)return r=null==r?-1:r,t.substring(0,o)+t.substring(o).replace(e,(function(){let e=arguments[0];if(r){r--;const t=[],o=arguments.length,i="string"!=typeof arguments[o-1];let a=i?o-3:o-2;for(let e=0;e<a;e++)t.push(arguments[e]);t.index=arguments[a++],t.input=arguments[a++],i&&(t.groups=arguments[a]),e=n(t)}return e}));if(n=n.replace(/\$0/g,(e=>"$&")).replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const a=t.substring(o),s=xe(e,a),c=xe.length>r?(i=s[r-1],a.substring(0,i.index+i[0].length)):a;return t.substring(0,o)+c.replace(e,n)+t.substring(o+c.length)}return t.replace(e,n)}(Ui(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Ui(t)}}function qi(e,t){!function(e){if(null!=e&&0!==e){if(e%6e4!=0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}(t);const n=new Date(e);return n.offset=null!=t?t:-6e4*(new Date).getTimezoneOffset(),n}function Wi(e,t){try{return t.contents=function(e){const[t,n]=se(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n?0:6e4*n;return qi(t.getTime(),r)}(e),!0}catch(e){return!1}}function Yi(e){return e<0?Math.ceil(e):Math.floor(e)}function Vi(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Number(BigInt(arguments[0])/10000n);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0}return 864e5*e+36e5*t+6e4*n+1e3*r+o}function Ki(e,t){try{return t.contents=function(e){const t=e.search("\\."),n=e.search("\\:");if(-1===t&&-1===n){const t=parseInt(e,0);if(isNaN(t))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return Vi(t,0,0,0,0)}if(n>0){const t=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(null!=t&&null!=t[4]&&null!=t[5]){let n=0,r=0,o=0;const i=null!=t[1]&&"-"===t[1]?-1:1,a=+t[4],s=+t[5];if(null!=t[3]&&(n=+t[3]),null!=t[7]&&(o=+t[7]),null!=t[8])switch(t[8].length){case 1:r=100*+t[8];break;case 2:r=10*+t[8];break;case 3:r=+t[8];break;case 4:r=+t[8]/10;break;case 5:r=+t[8]/100;break;case 6:r=+t[8]/1e3;break;case 7:r=+t[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return i*Vi(n,a,s,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch{return!1}}Li(),Li();class Ji{constructor(e,t,n,r,o,i,a){this.fullname=e,this.generics=t,this.construct=n,this.parent=r,this.fields=o,this.cases=i,this.enumCases=a}toString(){return sa(this)}GetHashCode(){return Qi(this)}Equals(e){return Zi(this,e)}}function Xi(e){return null!=e.generics?e.generics:[]}function Qi(e){return w([h(e.fullname),...Xi(e).map(Qi)])}function Zi(e,t){return""===e.fullname?""===t.fullname&&v(ha(e),ha(t),(([e,t],[n,r])=>e===n&&Zi(t,r))):e.fullname===t.fullname&&v(Xi(e),Xi(t),Zi)}function ea(e,t,n,r){return new Ji(e,t,n,void 0,r)}const ta=new Ji("System.Object"),na=(new Ji("Microsoft.FSharp.Core.Unit"),new Ji("System.Char"),new Ji("System.String")),ra=new Ji("System.Boolean"),oa=(new Ji("System.SByte"),new Ji("System.Byte"),new Ji("System.Int16"),new Ji("System.UInt16"),new Ji("System.Int32")),ia=(new Ji("System.UInt32"),new Ji("System.Int64"),new Ji("System.UInt64"),new Ji("System.Int128"),new Ji("System.UInt128"),new Ji("System.IntPtr"),new Ji("System.UIntPtr"),new Ji("System.Half"),new Ji("System.Single"),new Ji("System.Double"),new Ji("System.Decimal"));function aa(e){if(Array.isArray(e))return e[0];if(e instanceof Ji){const t=ua(e);if(null!=t)return aa(t)+"[]";{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}return e.name}function sa(e){const t=ua(e);return null!=t?sa(t)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>sa(e))).join(",")+"]"}function ca(e){return null!=ua(e)}function ua(e){return"[]"===e.fullname&&1===e.generics?.length?e.generics[0]:void 0}function la(e){return null!=e.generics&&e.generics.length>0}function fa(e){return null!=e.enumCases&&e.enumCases.length>0}function da(e){return null==e.generics?e:new Ji(e.fullname,e.generics.map((()=>ta)))}function Aa(e){return e.generics?.[0]}function ma(e){if(fa(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function pa(e,t){const n=parseInt(t,10);return function(e,t){if(null!=e.enumCases){if("string"==typeof t){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}throw new Error(`${e.fullname} is not an enum type`)}(e,isNaN(n)?t:n)[1]}function $a(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function ha(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function ga(e){if(ba(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function wa(e){return e instanceof Ji?null!=e.cases:e instanceof D}function ya(e){return e instanceof Ji?null!=e.fields:e instanceof R}function ba(e){return e.fullname.startsWith("System.Tuple")}function va(e){return null==e.fields?[]:e.fields}function Ca(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?"\n":" ")+JSON.stringify(t,null,4)}catch(t){return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?"\n":" ")}}function _a(e,t){const n=2===t.tag?Ca(t.fields[0],t.fields[1],!0):1===t.tag?Ca(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?Ca(t.fields[0],t.fields[1],!0):4===t.tag?Ca(t.fields[0],t.fields[1],!0)+"\nNode `"+t.fields[2]+"` is unkown.":5===t.tag?"Expecting "+t.fields[0]+".\n"+JSON.stringify(t.fields[1],null,4):7===t.tag?"The following errors were found:\n\n"+De("\n\n",t.fields[0]):6===t.tag?"The following `failure` occurred with the decoder: "+t.fields[0]:Ca(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}function xa(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new W(1,[_a(e[0],e[1])])}return new W(0,[r.fields[0]])}function Ba(e,t){try{return xa("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new W(1,["Given an invalid JSON: "+e.message]);throw e}}function ka(e,t){return"string"==typeof t?new W(0,[t]):new W(1,[[e,new ji(0,["a string",t])]])}new Ji("System.Numerics.BigInteger");const Sa=e=>t=>{const n=e,r=t;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?-128<=e&&e<=127?new W(0,[(e+128&255)-128]):new W(1,[[n,new ji(1,["a sbyte",e,"Value was either too large or too small for a sbyte"])]]):new W(1,[[n,new ji(1,["a sbyte",e,"Value is not an integral value"])]])}if("string"==typeof r){let e,t=0;return e=[Wr(r,511,!1,8,new j((()=>t),(e=>{t=0|e}))),t],e[0]?new W(0,[e[1]]):new W(1,[[n,new ji(0,["a sbyte",r])]])}return new W(1,[[n,new ji(0,["a sbyte",r])]])},Ea=e=>t=>{const n=e,r=t;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=255?new W(0,[255&e]):new W(1,[[n,new ji(1,["a byte",e,"Value was either too large or too small for a byte"])]]):new W(1,[[n,new ji(1,["a byte",e,"Value is not an integral value"])]])}if("string"==typeof r){let e,t=0;return e=[Wr(r,511,!0,8,new j((()=>t),(e=>{t=e}))),t],e[0]?new W(0,[e[1]]):new W(1,[[n,new ji(0,["a byte",r])]])}return new W(1,[[n,new ji(0,["a byte",r])]])},Na=e=>t=>{const n=e,r=t;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?-32768<=e&&e<=32767?new W(0,[(e+32768&65535)-32768]):new W(1,[[n,new ji(1,["an int16",e,"Value was either too large or too small for an int16"])]]):new W(1,[[n,new ji(1,["an int16",e,"Value is not an integral value"])]])}if("string"==typeof r){let e,t=0;return e=[Wr(r,511,!1,16,new j((()=>t),(e=>{t=0|e}))),t],e[0]?new W(0,[e[1]]):new W(1,[[n,new ji(0,["an int16",r])]])}return new W(1,[[n,new ji(0,["an int16",r])]])},Pa=e=>t=>{const n=e,r=t;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=65535?new W(0,[65535&e]):new W(1,[[n,new ji(1,["an uint16",e,"Value was either too large or too small for an uint16"])]]):new W(1,[[n,new ji(1,["an uint16",e,"Value is not an integral value"])]])}if("string"==typeof r){let e,t=0;return e=[Wr(r,511,!0,16,new j((()=>t),(e=>{t=e}))),t],e[0]?new W(0,[e[1]]):new W(1,[[n,new ji(0,["an uint16",r])]])}return new W(1,[[n,new ji(0,["an uint16",r])]])},Ia=e=>t=>{const n=e,r=t;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?-2147483648<=e&&e<=2147483647?new W(0,[~~e]):new W(1,[[n,new ji(1,["an int",e,"Value was either too large or too small for an int"])]]):new W(1,[[n,new ji(1,["an int",e,"Value is not an integral value"])]])}if("string"==typeof r){let e,t=0;return e=[Wr(r,511,!1,32,new j((()=>t),(e=>{t=0|e}))),t],e[0]?new W(0,[e[1]]):new W(1,[[n,new ji(0,["an int",r])]])}return new W(1,[[n,new ji(0,["an int",r])]])},Ma=e=>t=>{const n=e,r=t;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=4294967295?new W(0,[e>>>0]):new W(1,[[n,new ji(1,["an uint32",e,"Value was either too large or too small for an uint32"])]]):new W(1,[[n,new ji(1,["an uint32",e,"Value is not an integral value"])]])}if("string"==typeof r){let e,t=0;return e=[Wr(r,511,!0,32,new j((()=>t),(e=>{t=e}))),t],e[0]?new W(0,[e[1]]):new W(1,[[n,new ji(0,["an uint32",r])]])}return new W(1,[[n,new ji(0,["an uint32",r])]])};function Oa(e,t,n,r){let o;const i=n+".["+p(e)+"]";if(Array.isArray(r)){const n=r;return e<n.length?t(i,et(e,n)):new W(1,[[i,new ji(5,["a longer array. Need index `"+p(e)+"` but there are only `"+(o=n.length,p(o)+"` entries"),r])]])}return new W(1,[[i,new ji(0,["an array",r])]])}function Ta(e,t,n){if(Array.isArray(n)){let r=-1;return Y(yt,Ze(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+p(r)+"]",o);return 0===i.tag?new W(0,[dt(i.fields[0],n.fields[0])]):new W(1,[i.fields[0]])}return n}),new W(0,[ft()]),n))}return new W(1,[[t,new ji(0,["a list",n])]])}function Da(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return Ze(((n,o)=>{if(r=r+1|0,0===n.tag){const i=n.fields[0],a=e(t+".["+p(r)+"]",o);return 0===a.tag?(tt(i,r,a.fields[0]),new W(0,[i])):new W(1,[a.fields[0]])}return n}),new W(0,[Je(new Array(o.length),0,o.length,null)]),o)}return new W(1,[[t,new ji(0,["an array",n])]])}function Ra(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new W(1,[o.fields[0]])}function ja(e,t){let n;const r=e;return n=e=>t=>Oa(0,r,e,t),e=>r=>Ra(M((e=>{let n;const r=t;return n=e=>t=>Oa(1,r,e,t),t=>r=>Ra(((t,n,r)=>new W(0,[[e,t]])),P(n),t,r)})),P(n),e,r)}function Fa(e){return _i(t={Compare:S},hi(t,e));var t}function Ga(e,t,n,r){let o;const i=t.length+e|0;if(i!==r.length)return new W(1,[[n,new ji(6,[(o=0|r.length,Pe(Ee("Expected array of length %i but got %i"))(i)(o))])]]);{let o=new W(0,[ft()]);for(let i=e;i<=r.length-1;i++)if(0===o.tag){const a=o.fields[0],s=Pe(Ee("%s[%i]"))(n)(i),c=et(i-e,t),u=et(i,r);o=Y((e=>dt(e,a)),c(s)(u))}return Y(yt,o)}}function Ha(e,t,n,r,o,i){const a=function(e,t){return t.find((e=>aa(e)===r))}(0,$a(n));if(null!=a){const n=a,r=Xe((n=>Ua(e,t,!1,n[1])),va(n));return Y((e=>function(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);const r=e.declaringType.construct;return null==r?{}:e.declaringType.cases&&1==e.declaringType.cases().length?new r(...t):new r(e.tag,t)}(n,gt(e))),0===r.length&&i.length<=1?new W(0,[ft()]):Ga(1,r,o,i))}return new W(1,[[o,new ji(6,["Cannot find case "+r+" in "+sa(n)])]])}function La(e,t,n,r){let o;const i=new j(null);let a;const s=sa(r);let c;if(a=""===s?e:Si(s,i,e),ya(r)){const e=Xe((e=>[zi(t,aa(e)),Ua(a,t,!1,e[1])]),ha(r));c=t=>n=>Y((e=>function(e,t){const n=ha(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return null!=e.construct?new e.construct(...t):n.reduce(((e,[n,r],o)=>(e[n]=t[o],e)),{})}(r,gt(e))),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new W(1,[[t,new ji(0,["an object",n])]]):nt(((e,r)=>{const o=e[0];return 0===r.tag?Y((e=>dt(e,r.fields[0])),e[1](t+"."+o)(n[o])):r}),e,new W(0,[ft()]))}(e,t,n))}else if(wa(r))c=e=>n=>{if("string"==typeof n)return Ha(a,t,r,n,e,[]);if(Array.isArray(n)){const s=n;return o=n=>Ha(a,t,r,n,e,s),0===(i=ka(e+"[0]",et(0,s))).tag?o(i.fields[0]):q(i.fields[0])}return new W(1,[[e,new ji(0,["a string or array",n])]]);var o,i};else{if(!n)throw new Error((o=sa(r),Pe(Ee("Cannot generate auto decoder for %s. Please pass an extra decoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders"))(o)));c=e=>t=>new W(1,[[e,new ji(2,["an extra coder for "+sa(r),t])]])}return i.contents=c,c}function Ua(e,t,n,r){let o,i,a,s;const c=sa(r),u=Ei(c,e);if(null!=u){const e=u;return t=>n=>e.contents(t)(n)}if(ca(r)){const n=Ua(e,t,!1,ua(r));return e=>t=>Da(P(n),e,t)}if(fa(r))switch(sa(Aa(r))){case"System.SByte":return e=>t=>{const n=r,o=e,i=t,a=Sa(o)(i);if(1===a.tag)return new W(1,[a.fields[0]]);{const e=0|a.fields[0];return Kt(e,ma(n),{Equals:(e,t)=>e===t,GetHashCode:g})?new W(0,[pa(n,e.toString())]):new W(1,[[o,new ji(1,[sa(n),i,"Unkown value provided for the enum"])]])}};case"System.Byte":return e=>t=>{const n=r,o=e,i=t,a=Ea(o)(i);if(1===a.tag)return new W(1,[a.fields[0]]);{const e=a.fields[0];return Kt(e,ma(n),{Equals:(e,t)=>e===t,GetHashCode:g})?new W(0,[pa(n,e.toString())]):new W(1,[[o,new ji(1,[sa(n),i,"Unkown value provided for the enum"])]])}};case"System.Int16":return e=>t=>{const n=r,o=e,i=t,a=Na(o)(i);if(1===a.tag)return new W(1,[a.fields[0]]);{const e=0|a.fields[0];return Kt(e,ma(n),{Equals:(e,t)=>e===t,GetHashCode:g})?new W(0,[pa(n,m(e))]):new W(1,[[o,new ji(1,[sa(n),i,"Unkown value provided for the enum"])]])}};case"System.UInt16":return e=>t=>{const n=r,o=e,i=t,a=Pa(o)(i);if(1===a.tag)return new W(1,[a.fields[0]]);{const e=a.fields[0];return Kt(e,ma(n),{Equals:(e,t)=>e===t,GetHashCode:g})?new W(0,[pa(n,e.toString())]):new W(1,[[o,new ji(1,[sa(n),i,"Unkown value provided for the enum"])]])}};case"System.Int32":return e=>t=>{const n=r,o=e,i=t,a=Ia(o)(i);if(1===a.tag)return new W(1,[a.fields[0]]);{const e=0|a.fields[0];return Kt(e,ma(n),{Equals:(e,t)=>e===t,GetHashCode:g})?new W(0,[pa(n,p(e))]):new W(1,[[o,new ji(1,[sa(n),i,"Unkown value provided for the enum"])]])}};case"System.UInt32":return e=>t=>{const n=r,o=e,i=t,a=Ma(o)(i);if(1===a.tag)return new W(1,[a.fields[0]]);{const e=a.fields[0];return Kt(e,ma(n),{Equals:(e,t)=>e===t,GetHashCode:g})?new W(0,[pa(n,e.toString())]):new W(1,[[o,new ji(1,[sa(n),i,"Unkown value provided for the enum"])]])}};default:{const e=sa(r),t=Ie(Ee("Cannot generate auto decoder for %s.\nThoth.Json.Net only support the following enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra decoder.\n "))(e);return e=>t(e)}}else if(la(r)){if(ba(r)){const n=Xe((n=>Ua(e,t,!1,n)),ga(r));return e=>t=>Array.isArray(t)?Y((e=>gt(e)),Ga(0,n,e,t)):new W(1,[[e,new ji(0,["an array",t])]])}switch(sa(da(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=Ua(e,t,!0,et(0,Xi(r))),e=>t=>{return n=P(o),r=e,null==(i=t)?new W(0,[void 0]):Y(Ue,n(r,i));var n,r,i};case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return i=Ua(e,t,!1,et(0,Xi(r))),e=>t=>Ta(P(i),e,t);case"System.Collections.Generic.IEnumerable`1[System.Object]":return a=Ua(e,t,!1,et(0,Xi(r))),e=>t=>function(e,t,n){if(Array.isArray(n)){let r=-1;return Y(Zt,Ze(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+p(r)+"]",o);return 0===i.tag?new W(0,[Vt([i.fields[0]],n.fields[0])]):new W(1,[i.fields[0]])}return n}),new W(0,[[]]),n))}return new W(1,[[t,new ji(0,["a seq",n])]])}(P(a),e,t);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const n=Ua(e,t,!1,et(0,Xi(r))),o=Ua(e,t,!1,et(1,Xi(r)));let i;const a=Ct([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new W(1,[[n,new ji(0,["an object",r])]]):Jt(((o,i)=>{if(0===o.tag){const a=e(n,i);if(0===a.tag){const e=t(n+"."+i,r[i]);return 0===e.tag?new W(0,[dt([a.fields[0],e.fields[0]],o.fields[0])]):new W(1,[e.fields[0]])}return new W(1,[a.fields[0]])}return o}),new W(0,[ft()]),Object.keys(r))}(P(n),P(o),e,t),(s=ja(P(n),P(o)),e=>t=>Ta(P(s),e,t))]);return i=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(mt(o))return new W(1,[[n,new ji(7,[i])]]);{const a=xa(n,P($t(o)),r);if(1===a.tag){e=ht(o),t=_t(i,At(a.fields[0]));continue e}return new W(0,[a.fields[0]])}}})(a,ft());var n,r},e=>t=>function(e,t,n,r){const o=t(n,r);return 1===o.tag?new W(1,[o.fields[0]]):new W(0,[e(o.fields[0])])}(Fa,P(i),e,t)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const n=Ua(e,t,!1,et(0,Xi(r)));return e=>t=>{const r=Da(P(n),e,t);return 0===r.tag?new W(0,[(o=r.fields[0],kn(i={Compare:S},xn(i,o)))]):new W(1,[r.fields[0]]);var o,i}}default:return La(e,t,n,r)}}else switch(c){case"System.Boolean":return e=>t=>{return n=e,"boolean"==typeof(r=t)?new W(0,[r]):new W(1,[[n,new ji(0,["a boolean",r])]]);var n,r};case"Microsoft.FSharp.Core.Unit":return e=>t=>{return n=e,null==(r=t)?new W(0,[void 0]):new W(1,[[n,new ji(0,["null",r])]]);var n,r};case"System.String":return e=>t=>ka(e,t);case"System.Char":return e=>t=>function(e,t){if("string"==typeof t){const n=t;return 1===n.length?new W(0,[n[0]]):new W(1,[[e,new ji(0,["a single character string",t])]])}return new W(1,[[e,new ji(0,["a char",t])]])}(e,t);case"System.SByte":return Sa;case"System.Byte":return Ea;case"System.Int16":return Na;case"System.UInt16":return Pa;case"System.Int32":return Ia;case"System.UInt32":return Ma;case"System.Double":return e=>t=>{return n=e,"number"==typeof(r=t)?new W(0,[r]):new W(1,[[n,new ji(0,["a float",r])]]);var n,r};case"System.Single":return e=>t=>{return n=e,"number"==typeof(r=t)?new W(0,[r]):new W(1,[[n,new ji(0,["a float32",r])]]);var n,r};case"System.DateTime":return e=>t=>function(e,t){if("string"==typeof t){let r,o=ae(-621355968e5,1);return r=[ce(t,new j((()=>o),(e=>{o=e}))),o],r[0]?new W(0,[(n=r[1],1===n.kind?n:ae(n.getTime(),1))]):new W(1,[[e,new ji(0,["a datetime",t])]])}var n;return new W(1,[[e,new ji(0,["a datetime",t])]])}(e,t);case"System.DateTimeOffset":return e=>t=>function(e,t){if("string"==typeof t){let n,r=qi(-621355968e5,0);return n=[Wi(t,new j((()=>r),(e=>{r=e}))),r],n[0]?new W(0,[n[1]]):new W(1,[[e,new ji(0,["a datetimeoffset",t])]])}return new W(1,[[e,new ji(0,["a datetime",t])]])}(e,t);case"System.TimeSpan":return e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[Ki(t,new j((()=>r),(e=>{r=e}))),r],n[0]?new W(0,[n[1]]):new W(1,[[e,new ji(0,["a timespan",t])]])}return new W(1,[[e,new ji(0,["a timespan",t])]])}(e,t);case"System.Guid":return e=>t=>function(e,t){if("string"==typeof t){let n,r="00000000-0000-0000-0000-000000000000";return n=[yr(t,new j((()=>r),(e=>{r=e}))),r],n[0]?new W(0,[n[1]]):new W(1,[[e,new ji(0,["a guid",t])]])}return new W(1,[[e,new ji(0,["a guid",t])]])}(e,t);case"System.Object":return e=>e=>new W(0,[e]);default:return La(e,t,n,r)}}function za(e,t,n){const r=We(t,new Fi(0,[]));return Ua(function(e){return null!=e?Ni(((e,t)=>new j(t[1])),e.Coders):Pi({Compare:B})}(n),r,!1,e)}class qa extends R{constructor(e,t,n){super(),this.Accounts=e,this.MaxAccounts=0|t,this.AllowPercentageSplit=n}}class Wa extends R{constructor(e,t){super(),this.PrimaryAccount=e,this.ActiveAccounts=t}}function Ya(){return ea("BankDetails.Shared.BackendApiModels.Accounts",[],Wa,(()=>{return[["PrimaryAccount",ea("BankDetails.Shared.BackendApiModels.PrimaryBankAccount",[],Va,(()=>[["AccountHolder",na],["AccountNumber",na],["Bsb",na],["Description",na]]))],["ActiveAccounts",(e=ea("BankDetails.Shared.BackendApiModels.ApportionedBankAccount",[],Ka,(()=>[["AccountHolder",na],["AccountNumber",na],["Bsb",na],["Description",na],["Apportionment",ea("BankDetails.Shared.BackendApiModels.Apportionment",[],Ja,(()=>[["Amount",ia],["Type",na]]))]])),new Ji("Microsoft.FSharp.Collections.FSharpList`1",[e]))]];var e}))}class Va extends R{constructor(e,t,n,r){super(),this.AccountHolder=e,this.AccountNumber=t,this.Bsb=n,this.Description=r}}class Ka extends R{constructor(e,t,n,r,o){super(),this.AccountHolder=e,this.AccountNumber=t,this.Bsb=n,this.Description=r,this.Apportionment=o}}class Ja extends R{constructor(e,t){super(),this.Amount=e,this.Type=t}}function Xa(e){return e}function Qa(e){return Array.from(e)}function Za(e){return ie(e,"O")}function es(e){return function(e,t="c"){if(-1===["c","g","G"].indexOf(t))throw new Error("Custom formats are not supported");const n=Math.abs(function(e){return Yi(e/864e5)}(e)),r=Math.abs(function(e){return Yi(e%864e5/36e5)}(e)),o=Math.abs(function(e){return Yi(e%36e5/6e4)}(e)),i=Math.abs(function(e){return Yi(e%6e4/1e3)}(e)),a=Math.abs(function(e){return Yi(e%1e3)}(e));return`${e<0?"-":""}${0!==n||"c"!==t&&"g"!==t?"c"===t?n+".":n+":":""}${"g"===t?r:d(r,2)}:${d(o,2)}:${d(i,2)}${0!==a||"c"!==t&&"g"!==t?"g"===t?"."+d(a,3):"."+function(e){return e.toString(10).padStart(3,"0").padEnd(7,"0")}(a):""}`}(e)}function ts(){return null}function ns(e){return ie(e,"O")}function rs(e,t,n,r){let o;const i=new j(null);let a;const s=sa(r);let c;if(a=""===s?e:Si(s,i,e),ya(r)){const e=Xe((e=>{const r=zi(t,aa(e)),o=os(a,t,n,e[1]);return t=>i=>{const a=t[e[0]];return(!n||n&&null!=a)&&(i[r]=o(a)),i}}),ha(r));c=t=>Jt(((e,n)=>n(t)(e)),{},e)}else{if(!wa(r))throw new Error((o=sa(r),Pe(Ee("Cannot generate auto encoder for %s. Please pass an extra encoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders"))(o)));c=e=>{const o=function(e,t){const n=$a(t)[e.tag];if(null==n)throw new Error(`Cannot find case ${e.name} in union type`);return[n,e.fields]}(e,r),i=o[0],s=o[1],c=0|s.length;if(0===c)return aa(i);{const e=0|c,r=va(i),o=Je(new Array(e+1),0,e+1,null);tt(o,0,aa(i));for(let i=1;i<=e;i++)tt(o,i,os(a,t,n,et(i-1,r)[1])(et(i-1,s)));return o}}}return i.contents=c,c}function os(e,t,n,r){const o=sa(r),i=Ei(o,e);if(null!=i){const e=i;return t=>e.contents(t)}if(ca(r)){const o=os(e,t,n,ua(r));return e=>Qa(Qt(o,e))}if(fa(r))switch(sa(Aa(r))){case"System.SByte":return e=>e;case"System.Byte":return e=>e;case"System.Int16":return e=>e;case"System.UInt16":return e=>e;case"System.Int32":return e=>e;case"System.UInt32":return e=>e;default:{const e=sa(r);return Ie(Ee("Cannot generate auto encoder for %s.\nThoth.Json.Net only support the following enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\n\nIf you can't use one of these types, please pass an extra encoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders\n "))(e)}}else{if(la(r)){if(ba(r)){const o=Xe((r=>os(e,t,n,r)),ga(r));return e=>{return Qa((t=(e,t)=>et(e,o)(t),n=e,Yt((()=>Ft(n)),((e,n)=>n["System.Collections.IEnumerator.MoveNext"]()?Ue(t(e,n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{a(e)}))));var t,n}}{const o=sa(da(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new f((()=>{return o=os(e,t,n,et(0,Xi(r))),e=>{return null!=(t=Ye(o,e))?Le(t):null;var t};var o}));return e=>null==e?null:o.Value(e)}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===o||"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===o||"System.Collections.Generic.IEnumerable`1[System.Object]"===o){const o=os(e,t,n,et(0,Xi(r)));return e=>Qa(Qt(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=et(0,Xi(r)),i=os(e,t,n,et(1,Xi(r)));if("System.String"===sa(o)||"System.Guid"===sa(o))return e=>Jt(((e,t)=>{const n=t;return e[n[0]]=i(n[1]),e}),{},e);{let r;const a=os(e,t,n,o);return r=a,e=>Qa(Qt((e=>{const t=e;return[r(t[0]),i(t[1])]}),e))}}return rs(e,t,n,r)}}switch(o){case"System.Boolean":return e=>e;case"Microsoft.FSharp.Core.Unit":return ts;case"System.String":return e=>e;case"System.Char":return e=>e;case"System.SByte":return e=>e;case"System.Byte":return e=>e;case"System.Int16":return e=>e;case"System.UInt16":return e=>e;case"System.Int32":return e=>e;case"System.UInt32":return e=>e;case"System.Double":return e=>e;case"System.Single":return e=>e;case"System.DateTime":return ns;case"System.DateTimeOffset":return Za;case"System.TimeSpan":return es;case"System.Guid":return Xa;case"System.Object":return e=>e;default:return rs(e,t,n,r)}}}function is(e,t,n,r){const o=We(t,new Fi(0,[])),i=We(r,!0);return os(function(e){return null!=e?Ni(((e,t)=>new j(t[0])),e.Coders):Pi({Compare:B})}(n),o,i,e)}const as=new Gi("",Pi({Compare:B})),ss=new Gi(br(),Si("System.Decimal",[function(e){return lo(e)},e=>t=>function(e,t){if("number"==typeof t)return new W(0,[new so(t)]);if("string"==typeof t){let n,r=new so("0");return n=[fo(t,new j((()=>r),(e=>{r=e}))),r],n[0]?new W(0,[n[1]]):new W(1,[[e,new ji(0,["a decimal",t])]])}return new W(1,[[e,new ji(0,["a decimal",t])]])}(e,t)],as.Coders));class cs extends R{constructor(e){super(),this.Message=e}}function us(e,t){return[new Sr(new vr(0,[t.PrimaryAccount.Description]),new vr(0,[t.PrimaryAccount.AccountHolder]),new vr(0,[t.PrimaryAccount.Bsb]),new vr(0,[t.PrimaryAccount.AccountNumber]),new H(0,[])),Nt((t=>function(e,t){let n,r;const o=t.Apportionment.Type;return r="Percentage"===o?e?new Er(1,[]):void 0:"Amount"===o?new Er(0,[]):void 0,null==r?void 0:(n=r,new Pr(Br(),new vr(0,[t.Description]),new vr(0,[t.AccountHolder]),new vr(0,[t.Bsb]),new vr(0,[t.AccountNumber]),new Ir(new vr(0,[lo(t.Apportionment.Amount)]),n),new H(0,[])))}(e,t)),t.ActiveAccounts)]}function ls(e){let t;const n=Cr(e.Amount.Input);if(1===e.Amount.Type.tag){const e=go(n);t=null==e?new W(1,["Invalid decimal string"]):new W(0,[e])}else{const e=ho(n);t=null==e?new W(1,["Unexpected error parsing amount"]):new W(0,[new so(e)])}return 1===t.tag?new W(1,[t.fields[0]]):new W(0,[new Ka(Cr(e.AccountName),Cr(e.AccountNumber),Cr(e.Bsb),Cr(e.AccountNickname),new Ja(t.fields[0],(r=e.Amount.Type,1===r.tag?"Percentage":"Amount")))]);var r}function fs(e,t){const n=(r=e=>e,o=xt(ls,t),function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(mt(i)){const e=r;return 1===e.tag?new W(1,[e.fields[0]]):new W(0,[yt(e.fields[0])])}{let a;const s=o($t(i));if(1===s.tag)a=new W(1,[s.fields[0]]);else{const e=r;a=1===e.tag?new W(1,[e.fields[0]]):new W(0,[dt(s.fields[0],e.fields[0])])}if(1===a.tag)return a;e=a,t=o,n=ht(i);continue e}}}(new W(0,[ft()]),r,o));var r,o;return 1===n.tag?new W(1,[n.fields[0]]):new W(0,[new Wa(new Va(Cr(e.AccountName),Cr(e.AccountNumber),Cr(e.Bsb),Cr(e.AccountNickname)),n.fields[0])])}function ds(e){let t;return[(t=e.Accounts,null==t?void 0:us(e.AllowPercentageSplit,t)),e.MaxAccounts,e.AllowPercentageSplit]}class As extends R{constructor(e,t,n,r){super(),this.Bsb=e,this.Bank=t,this.Branch=n,this.Address=r}}function ms(e){return Pe(Ee("%s/bank-details/backend"))(e)}function ps(e,t){return Jn.Delay((()=>{let n;const r=function(e){const t=e.Auth;let n,r;return 2===t.tag&&0===t.fields[0].tag?(n=0,r=t.fields[0].fields[0]):n=1,0===n?new W(0,[r.AccessToken]):new W(1,["Unexpected unauthenticated user"])}(e);return n=Jn.Return(r),Jn.Bind(n,(e=>{const n=e;if(1===n.tag)return Jn.Return(new W(1,[n.fields[0]]));{const e=Di((r=Pe(Ee("Bearer %s"))(n.fields[0]),new Yo("Authorization",r)),t);let o;const i=Ri(e);return o=Jn.Bind(i,(e=>Jn.Return(new W(0,[e])))),Jn.Bind(o,(t=>{const n=t;if(1===n.tag)return Jn.Return(new W(1,[n.fields[0]]));{const t=n.fields[0];if(t.statusCode>=500){const t=Ri(e);return Jn.Bind(t,(e=>Jn.Return(new W(0,[e]))))}return Jn.Return(new W(0,[t]))}}))}var r}))}))}function $s(e,t,n){return Jn.Delay((()=>{let r;const o=fs(n.PrimaryAccount,n.NonPrimaryAccounts);return r=Jn.Return(o),Jn.Bind(r,(n=>{let r;const o=n;if(1===o.tag)return Jn.Return(new W(1,[o.fields[0]]));{const n=ps(e,(i=new Vo(1,[(s=0,c=is(Ya(),new Fi(1,[]),ss,void 0)(o.fields[0]),JSON.stringify(c,void 0,Ue(s)))]),a=Ti(new Wo(1,[]),Oi(ms(t))),r=new Ko(a.url,a.method,a.headers,a.withCredentials,a.overridenMimeType,a.overridenResponseType,a.timeout,i),Di(new Yo("Content-Type","application/json"),r)));return Jn.Bind(n,(e=>{const t=e;if(1===t.tag)return Jn.Return(new W(1,[t.fields[0]]));{const e=t.fields[0];switch(0|e.statusCode){case 200:return Jn.Return(new W(0,[void 0]));case 400:{let t,n;const r=Ba(P(za(ea("Home.Services.Dto.Error",[],cs,(()=>[["Message",na]])),new Fi(1,[]),ss)),e.responseText);return n=1===r.tag?new W(1,["There was an error saving your bank account details. Please try saving again."]):new W(0,[r.fields[0]]),t=Jn.Return(n),Jn.Bind(t,(e=>{const t=e;return 1===t.tag?Jn.Return(new W(1,[t.fields[0]])):Jn.Return(new W(1,[t.fields[0].Message]))}))}default:return Jn.Return(new W(1,["There was an error saving your bank account details. Please try saving again."]))}}}))}var i,a,s,c}))}))}function hs(e,t,n){return Jn.Delay((()=>{let r;const o=ps(t,Ti(new Wo(0,[]),Oi((r=ms(n),Pe(Ee("%s/bsb-lookup/%s"))(r)(e)))));return Jn.Bind(o,(e=>{const t=e;if(1===t.tag)return Jn.Return(new W(1,[t.fields[0]]));{const e=t.fields[0];switch(0|e.statusCode){case 200:{let t;const r=Ba(P(za(ea("Home.Services.Dto.BsbLookup",[],As,(()=>[["Bsb",na],["Bank",na],["Branch",na],["Address",na]])),new Fi(1,[]),ss)),e.responseText);return t=1===r.tag?new W(1,[r.fields[0]]):new W(0,[(n=r.fields[0],new kr(n.Bsb,n.Bank,n.Branch,n.Address))]),Jn.Return(t)}case 404:return Jn.Return(new W(0,[void 0]));default:return Jn.Return(new W(1,["Unexpected result from backend"]))}}var n}))}))}function gs(){return new Tr(new Sr(new vr(0,[""]),new vr(0,[""]),new vr(0,[""]),new vr(0,[""]),new H(0,[])),ft(),new H(0,[]),void 0,void 0,new H(0,[]),3,!1)}function ws(){return[gs(),At((e=>{e(new Rr(0,[new L(0,[])]))}))]}function ys(e,t){return Cr(e)!==Cr(t)}function bs(e,t,n,r){let o,i,a,s,c,u,l,f,d,A,m,p,$,h;switch(n.tag){case 1:return 1===n.fields[1].tag?[Cr(r.PrimaryAccount.Bsb)===n.fields[0]?new Tr((o=r.PrimaryAccount,new Sr(o.AccountNickname,o.AccountName,jo(n.fields[0],r.PrimaryAccount.Bsb,new H(2,[n.fields[1].fields[0]])),o.AccountNumber,new H(2,[n.fields[1].fields[0]]))),r.NonPrimaryAccounts,r.PreExistingAccounts,r.CurrentModal,r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit):r,rr()]:[new Tr((i=r.PrimaryAccount,new Sr(i.AccountNickname,i.AccountName,i.Bsb,i.AccountNumber,new H(1,[]))),r.NonPrimaryAccounts,r.PreExistingAccounts,r.CurrentModal,r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit),ir((e=>{ar(e)}),(t=>hs(n.fields[0],e,t)),t,(e=>new Rr(1,[n.fields[0],new L(1,[e])])),(e=>new Rr(1,[n.fields[0],new L(1,[new W(1,[e.message])])])))];case 2:if(1===n.fields[2].tag)return[new Tr(r.PrimaryAccount,xt((e=>_(e.Id,n.fields[0])&&Cr(e.Bsb)===n.fields[1]?new Pr(e.Id,e.AccountNickname,e.AccountName,jo(n.fields[1],e.Bsb,new H(2,[n.fields[2].fields[0]])),e.AccountNumber,e.Amount,new H(2,[n.fields[2].fields[0]])):e),r.NonPrimaryAccounts),r.PreExistingAccounts,r.CurrentModal,r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit),rr()];{const o=ir((e=>{ar(e)}),(t=>hs(n.fields[1],e,t)),t,(e=>new Rr(2,[n.fields[0],n.fields[1],new L(1,[e])])),(e=>new Rr(2,[n.fields[0],n.fields[1],new L(1,[new W(1,[e.message])])])));return[new Tr(r.PrimaryAccount,xt((e=>_(e.Id,n.fields[0])?new Pr(e.Id,e.AccountNickname,e.AccountName,e.Bsb,e.AccountNumber,e.Amount,new H(1,[])):e),r.NonPrimaryAccounts),r.PreExistingAccounts,r.CurrentModal,r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit),o]}case 5:{const e=e=>Uo(n.fields[0],e);let t;switch(n.fields[0].tag){case 1:t=new Tr((a=r.PrimaryAccount,new Sr(a.AccountNickname,e(r.PrimaryAccount.AccountName),a.Bsb,a.AccountNumber,a.BsbLookup)),r.NonPrimaryAccounts,r.PreExistingAccounts,r.CurrentModal,r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit);break;case 2:{const e=jo(n.fields[0].fields[0],r.PrimaryAccount.Bsb,r.PrimaryAccount.BsbLookup);t=Ho(new Tr((s=r.PrimaryAccount,new Sr(s.AccountNickname,s.AccountName,e,s.AccountNumber,(c=Cr(e),c.length<6||ys(r.PrimaryAccount.Bsb,e)?new H(0,[]):r.PrimaryAccount.BsbLookup))),r.NonPrimaryAccounts,r.PreExistingAccounts,r.CurrentModal,r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit));break}case 3:t=Ho(new Tr((u=r.PrimaryAccount,new Sr(u.AccountNickname,u.AccountName,u.Bsb,e(r.PrimaryAccount.AccountNumber),u.BsbLookup)),r.NonPrimaryAccounts,r.PreExistingAccounts,r.CurrentModal,r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit));break;case 4:case 5:t=r;break;default:t=new Tr((l=r.PrimaryAccount,new Sr(e(r.PrimaryAccount.AccountNickname),l.AccountName,l.Bsb,l.AccountNumber,l.BsbLookup)),r.NonPrimaryAccounts,r.PreExistingAccounts,r.CurrentModal,r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit)}return[t,6===(f=Cr(t.PrimaryAccount.Bsb),f.length)&&ys(r.PrimaryAccount.Bsb,t.PrimaryAccount.Bsb)?(d=new Rr(1,[Cr(t.PrimaryAccount.Bsb),new L(0,[])]),At((e=>{e(d)}))):rr()]}case 6:return pt(r.NonPrimaryAccounts)<10?[new Tr(r.PrimaryAccount,_t(r.NonPrimaryAccounts,At(new Pr(Br(),new vr(0,[""]),new vr(0,[""]),new vr(0,[""]),new vr(0,[""]),new Ir(new vr(0,[""]),new Er(0,[])),new H(0,[])))),r.PreExistingAccounts,r.CurrentModal,r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit),rr()]:[r,rr()];case 7:{const e=e=>Uo(n.fields[1],e),t=e=>new Tr(r.PrimaryAccount,xt((t=>_(t.Id,n.fields[0])?e(t):t),r.NonPrimaryAccounts),r.PreExistingAccounts,r.CurrentModal,r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit),o=1===n.fields[1].tag?t((t=>new Pr(t.Id,t.AccountNickname,e(t.AccountName),t.Bsb,t.AccountNumber,t.Amount,t.BsbLookup))):2===n.fields[1].tag?Ho(t((e=>{let t;const r=jo(n.fields[1].fields[0],e.Bsb,e.BsbLookup);return new Pr(e.Id,e.AccountNickname,e.AccountName,r,e.AccountNumber,e.Amount,(t=Cr(r),t.length<6||ys(e.Bsb,r)?new H(0,[]):e.BsbLookup))}))):3===n.fields[1].tag?Ho(t((t=>new Pr(t.Id,t.AccountNickname,t.AccountName,t.Bsb,e(t.AccountNumber),t.Amount,t.BsbLookup)))):4===n.fields[1].tag?Lo(t((t=>new Pr(t.Id,t.AccountNickname,t.AccountName,t.Bsb,t.AccountNumber,new Ir(e(t.Amount.Input),t.Amount.Type),t.BsbLookup)))):5===n.fields[1].tag?Lo(t((t=>{const n=1===t.Amount.Type.tag?new Er(0,[]):new Er(1,[]);return new Pr(t.Id,t.AccountNickname,t.AccountName,t.Bsb,t.AccountNumber,new Ir(e(t.Amount.Input),n),t.BsbLookup)}))):t((t=>new Pr(t.Id,e(t.AccountNickname),t.AccountName,t.Bsb,t.AccountNumber,t.Amount,t.BsbLookup)));return[o,or(Qt((e=>{let t;const o=We(Bt((t=>_(t.Id,e.Id)?t.Bsb:void 0),r.NonPrimaryAccounts),new vr(0,[""]));if(6===(t=Cr(e.Bsb),t.length)&&ys(o,e.Bsb)){const t=new Rr(2,[n.fields[0],Cr(e.Bsb),new L(0,[])]);return At((e=>{e(t)}))}return rr()}),o.NonPrimaryAccounts))]}case 8:return[new Tr(r.PrimaryAccount,Et((e=>!_(e.Id,n.fields[0])),r.NonPrimaryAccounts),r.PreExistingAccounts,r.CurrentModal,r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit),rr()];case 9:{const e=kt((e=>_(e.Id,n.fields[0])),r.NonPrimaryAccounts);return[null==e?r:(A=e,new Tr(new Sr(A.AccountNickname,A.AccountName,A.Bsb,A.AccountNumber,A.BsbLookup),xt((e=>_(e.Id,n.fields[0])?new Pr(e.Id,r.PrimaryAccount.AccountNickname,r.PrimaryAccount.AccountName,r.PrimaryAccount.Bsb,r.PrimaryAccount.AccountNumber,e.Amount,r.PrimaryAccount.BsbLookup):e),r.NonPrimaryAccounts),r.PreExistingAccounts,r.CurrentModal,r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit)),rr()]}case 10:return[new Tr(r.PrimaryAccount,r.NonPrimaryAccounts,r.PreExistingAccounts,n.fields[0],r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit),rr()];case 11:return[new Tr(r.PrimaryAccount,r.NonPrimaryAccounts,r.PreExistingAccounts,void 0,r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit),rr()];case 12:return[new Tr(r.PrimaryAccount,r.NonPrimaryAccounts,r.PreExistingAccounts,r.CurrentModal,n.fields[0],r.Saved,r.MaximumAccounts,r.AllowPercentageSplit),rr()];case 13:return[We(Ye((e=>e===n.fields[0]?new Tr(r.PrimaryAccount,r.NonPrimaryAccounts,r.PreExistingAccounts,r.CurrentModal,void 0,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit):r),r.CurrentAlert),r),rr()];case 3:{const e=r.PreExistingAccounts;let t,n,o;return 2===e.tag&&0===e.fields[0].tag&&null!=e.fields[0].fields[0]?(t=0,n=e.fields[0].fields[0][1],o=e.fields[0].fields[0][0]):t=1,0===t?[(m=gs(),new Tr(o,n,r.PreExistingAccounts,m.CurrentModal,m.CurrentAlert,m.Saved,r.MaximumAccounts,r.AllowPercentageSplit)),rr()]:[(p=gs(),new Tr(p.PrimaryAccount,p.NonPrimaryAccounts,r.PreExistingAccounts,p.CurrentModal,p.CurrentAlert,p.Saved,r.MaximumAccounts,r.AllowPercentageSplit)),rr()]}case 4:if(1===n.fields[0].tag)return 1===n.fields[0].fields[0].tag?[new Tr(r.PrimaryAccount,r.NonPrimaryAccounts,r.PreExistingAccounts,r.CurrentModal,r.CurrentAlert,new H(2,[n.fields[0].fields[0]]),r.MaximumAccounts,r.AllowPercentageSplit),At((e=>{e(new Rr(12,[new Or(1,[n.fields[0].fields[0].fields[0]])]))}))]:(tr(Jn.Delay((()=>Jn.Bind(er(400),(()=>(function(){let e;const t=$o();if(0===t.tag)switch(t.fields[0].tag){case 0:Xt((e=>{window.parent.location.href=e}),qe(function(){const e=sessionStorage.getItem("success-redirection-url");return null==e?void 0:e}()));break;case 1:if(null!=window.ReactNativeWebView){let e;const t={stepStatus:"completed"};e=JSON.stringify(t),window.ReactNativeWebView.postMessage(e)}break;default:e=new CustomEvent("step-completion",{detail:"bank",bubbles:!0}),t.fields[0].fields[0].dispatchEvent(e)}}(),Jn.Zero())))))),[new Tr(r.PrimaryAccount,r.NonPrimaryAccounts,new H(2,[new W(0,[[r.PrimaryAccount,r.NonPrimaryAccounts]])]),r.CurrentModal,r.CurrentAlert,new H(2,[n.fields[0].fields[0]]),r.MaximumAccounts,r.AllowPercentageSplit),At((e=>{e(new Rr(12,[new Or(0,["Your bank account details have been saved."])]))}))]);{const n=function(e){return Lo(Ho(new Tr((t=e.PrimaryAccount,new Sr(Do(Cr(t.AccountNickname)),Ro(Cr(t.AccountName)),jo(Cr(t.Bsb),t.Bsb,t.BsbLookup),Fo(Cr(t.AccountNumber),t.AccountNumber),t.BsbLookup)),xt(zo,e.NonPrimaryAccounts),e.PreExistingAccounts,e.CurrentModal,e.CurrentAlert,e.Saved,e.MaximumAccounts,e.AllowPercentageSplit)));var t}(r);return function(e){return!!(qo(e.PrimaryAccount.AccountNickname)&&qo(e.PrimaryAccount.AccountName)&&qo(e.PrimaryAccount.Bsb)&&qo(e.PrimaryAccount.AccountNumber))&&0===pt(Et((e=>!(qo(e.AccountNickname)&&qo(e.AccountName)&&qo(e.Bsb)&&qo(e.AccountNumber)&&qo(e.Amount.Input))),e.NonPrimaryAccounts))}(n)?[new Tr(n.PrimaryAccount,n.NonPrimaryAccounts,n.PreExistingAccounts,void 0,void 0,new H(1,[]),n.MaximumAccounts,n.AllowPercentageSplit),ir((e=>{ar(e)}),(n=>$s(e,t,n)),n,(e=>new Rr(4,[new L(1,[e])])),(e=>new Rr(4,[new L(1,[new W(1,[e.message])])])))]:[n,At((e=>{e(new Rr(12,[new Or(1,["Please provide valid values for the required fields."])]))}))]}case 14:return function(){const e=$o();let t;if(0===e.tag)switch(e.fields[0].tag){case 0:case 1:t=0;break;default:t=1}else t=1;0===t&&window.parent.postMessage({sender:"flare",type:"appReady"},"*",Ue(ft()))}(),[r,rr()];default:if(1===n.fields[0].tag){if(function(){let e,t;const n=$o();let r;if(0===n.tag)switch(n.fields[0].tag){case 0:case 1:r=0;break;default:r=1}else r=1;switch(r){case 0:{const n=ze(document.getElementById("external-loading-page-container"));Xt((t=document.body,e=e=>t.removeChild(e),t=>{e(t)}),qe(n));break}}}(),1===n.fields[0].fields[0].tag)return[new Tr(r.PrimaryAccount,r.NonPrimaryAccounts,new H(2,[new W(1,["Failed to load accounts"])]),r.CurrentModal,r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit),At((e=>{e(new Rr(12,[new Or(1,["There was an error loading your bank account details. Please try refreshing this page."])]))}))];if(null==n.fields[0].fields[0].fields[0][0])return[new Tr(r.PrimaryAccount,r.NonPrimaryAccounts,new H(2,[new W(0,[void 0])]),r.CurrentModal,r.CurrentAlert,r.Saved,n.fields[0].fields[0].fields[0][1],n.fields[0].fields[0].fields[0][2]),At((e=>{e(new Rr(14,[]))}))];{const e=n.fields[0].fields[0].fields[0][0][0],t=n.fields[0].fields[0].fields[0][0][1];return[new Tr(e,t,new H(2,[new W(0,[[e,t]])]),r.CurrentModal,r.CurrentAlert,r.Saved,n.fields[0].fields[0].fields[0][1],n.fields[0].fields[0].fields[0][2]),or(Vt([At((e=>{e(new Rr(14,[]))}))],($=Qt((e=>{const t=new Rr(2,[e.Id,Cr(e.Bsb),new L(0,[])]);return At((e=>{e(t)}))}),t),Vt([(h=new Rr(1,[Cr(e.Bsb),new L(0,[])]),At((e=>{e(h)})))],$))))]}}return[new Tr(r.PrimaryAccount,r.NonPrimaryAccounts,new H(1,[]),r.CurrentModal,r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit),ir((e=>{ar(e)}),(t=>function(e,t){return Jn.Delay((()=>{const n=ps(e,Ti(new Wo(0,[]),Oi(ms(t))));return Jn.Bind(n,(e=>{const t=e;if(1===t.tag)return Jn.Return(new W(1,[t.fields[0]]));{const e=t.fields[0];if(200===e.statusCode){let t;const n=Ba(P(za(ea("BankDetails.Shared.BackendApiModels.BankDetails",[],qa,(()=>{return[["Accounts",(e=Ya(),new Ji("Microsoft.FSharp.Core.FSharpOption`1",[e]))],["MaxAccounts",oa],["AllowPercentageSplit",ra]];var e})),new Fi(1,[]),ss)),e.responseText);return t=1===n.tag?new W(1,[n.fields[0]]):new W(0,[ds(n.fields[0])]),Jn.Return(t)}return Jn.Return(new W(1,["Unexpected result from backend"]))}}))}))}(e,t)),t,(e=>new Rr(0,[new L(1,[e])])),(e=>new Rr(0,[new L(1,[new W(1,[e.message])])])))]}}const vs=T(n(725).A),Cs="whitespace-nowrap inline-flex items-center px-4 py-2 border shadow-sm text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus disabled:opacity-40 disabled:cursor-not-allowed",_s=`${Cs} border-transparent text-white bg-primary-base hover:bg-primary-hover`,xs=`${Cs} border-gray-300 text-gray-700 bg-white hover:bg-gray-50`,Bs=r.default;function ks(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ss(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ks(Object(n),!0).forEach((function(t){Ps(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ks(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Es(e){return Es="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Es(e)}function Ns(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ps(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Is(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||Os(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ms(e){return function(e){if(Array.isArray(e))return Ts(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Os(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Os(e,t){if(e){if("string"==typeof e)return Ts(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ts(e,t):void 0}}function Ts(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ds=function(){},Rs={},js={},Fs=null,Gs={mark:Ds,measure:Ds};try{"undefined"!=typeof window&&(Rs=window),"undefined"!=typeof document&&(js=document),"undefined"!=typeof MutationObserver&&(Fs=MutationObserver),"undefined"!=typeof performance&&(Gs=performance)}catch(ff){}var Hs,Ls,Us,zs,qs,Ws=(Rs.navigator||{}).userAgent,Ys=void 0===Ws?"":Ws,Vs=Rs,Ks=js,Js=Fs,Xs=Gs,Qs=(Vs.document,!!Ks.documentElement&&!!Ks.head&&"function"==typeof Ks.addEventListener&&"function"==typeof Ks.createElement),Zs=~Ys.indexOf("MSIE")||~Ys.indexOf("Trident/"),ec="___FONT_AWESOME___",tc="svg-inline--fa",nc="data-fa-i2svg",rc="data-fa-pseudo-element",oc="data-prefix",ic="data-icon",ac="fontawesome-i2svg",sc=["HTML","HEAD","STYLE","SCRIPT"],cc=function(){try{return!0}catch(e){return!1}}(),uc="classic",lc="sharp",fc=[uc,lc];function dc(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e[uc]}})}var Ac=dc((Ps(Hs={},uc,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),Ps(Hs,lc,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light"}),Hs)),mc=dc((Ps(Ls={},uc,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),Ps(Ls,lc,{solid:"fass",regular:"fasr",light:"fasl"}),Ls)),pc=dc((Ps(Us={},uc,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),Ps(Us,lc,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light"}),Us)),$c=dc((Ps(zs={},uc,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),Ps(zs,lc,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl"}),zs)),hc=/fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/,gc="fa-layers-text",wc=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,yc=dc((Ps(qs={},uc,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),Ps(qs,lc,{900:"fass",400:"fasr",300:"fasl"}),qs)),bc=[1,2,3,4,5,6,7,8,9,10],vc=bc.concat([11,12,13,14,15,16,17,18,19,20]),Cc=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],_c="duotone-group",xc="primary",Bc="secondary",kc=new Set;Object.keys(mc[uc]).map(kc.add.bind(kc)),Object.keys(mc[lc]).map(kc.add.bind(kc));var Sc=[].concat(fc,Ms(kc),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",_c,"swap-opacity",xc,Bc]).concat(bc.map((function(e){return"".concat(e,"x")}))).concat(vc.map((function(e){return"w-".concat(e)}))),Ec=Vs.FontAwesomeConfig||{};Ks&&"function"==typeof Ks.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((function(e){var t=Is(e,2),n=t[0],r=t[1],o=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=Ks.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=o&&(Ec[r]=o)}));var Nc={styleDefault:"solid",familyDefault:"classic",cssPrefix:"fa",replacementClass:tc,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Ec.familyPrefix&&(Ec.cssPrefix=Ec.familyPrefix);var Pc=Ss(Ss({},Nc),Ec);Pc.autoReplaceSvg||(Pc.observeMutations=!1);var Ic={};Object.keys(Nc).forEach((function(e){Object.defineProperty(Ic,e,{enumerable:!0,set:function(t){Pc[e]=t,Mc.forEach((function(e){return e(Ic)}))},get:function(){return Pc[e]}})})),Object.defineProperty(Ic,"familyPrefix",{enumerable:!0,set:function(e){Pc.cssPrefix=e,Mc.forEach((function(e){return e(Ic)}))},get:function(){return Pc.cssPrefix}}),Vs.FontAwesomeConfig=Ic;var Mc=[],Oc=16,Tc={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Dc(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function Rc(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function jc(e){return e.classList?Rc(e.classList):(e.getAttribute("class")||"").split(" ").filter((function(e){return e}))}function Fc(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Gc(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")}),"")}function Hc(e){return e.size!==Tc.size||e.x!==Tc.x||e.y!==Tc.y||e.rotate!==Tc.rotate||e.flipX||e.flipY}function Lc(){var e="fa",t=tc,n=Ic.cssPrefix,r=Ic.replacementClass,o=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return o}var Uc=!1;function zc(){Ic.autoAddCss&&!Uc&&(function(e){if(e&&Qs){var t=Ks.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Ks.head.childNodes,r=null,o=n.length-1;o>-1;o--){var i=n[o],a=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=i)}Ks.head.insertBefore(t,r)}}(Lc()),Uc=!0)}var qc={mixout:function(){return{dom:{css:Lc,insertCss:zc}}},hooks:function(){return{beforeDOMElementCreation:function(){zc()},beforeI2svg:function(){zc()}}}},Wc=Vs||{};Wc[ec]||(Wc[ec]={}),Wc[ec].styles||(Wc[ec].styles={}),Wc[ec].hooks||(Wc[ec].hooks={}),Wc[ec].shims||(Wc[ec].shims=[]);var Yc=Wc[ec],Vc=[],Kc=!1;function Jc(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,o=e.children,i=void 0===o?[]:o;return"string"==typeof e?Fc(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(Fc(e[n]),'" ')}),"").trim()}(r),">").concat(i.map(Jc).join(""),"</").concat(t,">")}function Xc(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}Qs&&((Kc=(Ks.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ks.readyState))||Ks.addEventListener("DOMContentLoaded",(function e(){Ks.removeEventListener("DOMContentLoaded",e),Kc=1,Vc.map((function(e){return e()}))})));var Qc=function(e,t,n,r){var o,i,a,s=Object.keys(e),c=s.length,u=void 0!==r?function(e,t){return function(n,r,o,i){return e.call(t,n,r,o,i)}}(t,r):t;for(void 0===n?(o=1,a=e[s[0]]):(o=0,a=n);o<c;o++)a=u(a,e[i=s[o]],i,e);return a};function Zc(e){var t=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&o)<<10)+(1023&i)+65536):(t.push(o),n--)}else t.push(o)}return t}(e);return 1===t.length?t[0].toString(16):null}function eu(e){return Object.keys(e).reduce((function(t,n){var r=e[n];return r.icon?t[r.iconName]=r.icon:t[n]=r,t}),{})}function tu(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,r=void 0!==n&&n,o=eu(t);"function"!=typeof Yc.hooks.addPack||r?Yc.styles[e]=Ss(Ss({},Yc.styles[e]||{}),o):Yc.hooks.addPack(e,eu(t)),"fas"===e&&tu("fa",t)}var nu,ru,ou,iu=Yc.styles,au=Yc.shims,su=(Ps(nu={},uc,Object.values(pc[uc])),Ps(nu,lc,Object.values(pc[lc])),nu),cu=null,uu={},lu={},fu={},du={},Au={},mu=(Ps(ru={},uc,Object.keys(Ac[uc])),Ps(ru,lc,Object.keys(Ac[lc])),ru);var pu,$u=function(){var e=function(e){return Qc(iu,(function(t,n,r){return t[r]=Qc(n,e,{}),t}),{})};uu=e((function(e,t,n){if(t[3]&&(e[t[3]]=n),t[2]){var r=t[2].filter((function(e){return"number"==typeof e}));r.forEach((function(t){e[t.toString(16)]=n}))}return e})),lu=e((function(e,t,n){if(e[n]=n,t[2]){var r=t[2].filter((function(e){return"string"==typeof e}));r.forEach((function(t){e[t]=n}))}return e})),Au=e((function(e,t,n){var r=t[2];return e[n]=n,r.forEach((function(t){e[t]=n})),e}));var t="far"in iu||Ic.autoFetchSvg,n=Qc(au,(function(e,n){var r=n[0],o=n[1],i=n[2];return"far"!==o||t||(o="fas"),"string"==typeof r&&(e.names[r]={prefix:o,iconName:i}),"number"==typeof r&&(e.unicodes[r.toString(16)]={prefix:o,iconName:i}),e}),{names:{},unicodes:{}});fu=n.names,du=n.unicodes,cu=bu(Ic.styleDefault,{family:Ic.familyDefault})};function hu(e,t){return(uu[e]||{})[t]}function gu(e,t){return(Au[e]||{})[t]}function wu(e){return fu[e]||{prefix:null,iconName:null}}function yu(){return cu}function bu(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,n=void 0===t?uc:t,r=Ac[n][e],o=mc[n][e]||mc[n][r],i=e in Yc.styles?e:null;return o||i||null}pu=function(e){cu=bu(e.styleDefault,{family:Ic.familyDefault})},Mc.push(pu),$u();var vu=(Ps(ou={},uc,Object.keys(pc[uc])),Ps(ou,lc,Object.keys(pc[lc])),ou);function Cu(e){var t,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,r=void 0!==n&&n,o=(Ps(t={},uc,"".concat(Ic.cssPrefix,"-").concat(uc)),Ps(t,lc,"".concat(Ic.cssPrefix,"-").concat(lc)),t),i=null,a=uc;(e.includes(o[uc])||e.some((function(e){return vu[uc].includes(e)})))&&(a=uc),(e.includes(o[lc])||e.some((function(e){return vu[lc].includes(e)})))&&(a=lc);var s=e.reduce((function(e,t){var n=function(e,t){var n,r=t.split("-"),o=r[0],i=r.slice(1).join("-");return o!==e||""===i||(n=i,~Sc.indexOf(n))?null:i}(Ic.cssPrefix,t);if(iu[t]?(t=su[a].includes(t)?$c[a][t]:t,i=t,e.prefix=t):mu[a].indexOf(t)>-1?(i=t,e.prefix=bu(t,{family:a})):n?e.iconName=n:t!==Ic.replacementClass&&t!==o[uc]&&t!==o[lc]&&e.rest.push(t),!r&&e.prefix&&e.iconName){var s="fa"===i?wu(e.iconName):{},c=gu(e.prefix,e.iconName);s.prefix&&(i=null),e.iconName=s.iconName||c||e.iconName,e.prefix=s.prefix||e.prefix,"far"!==e.prefix||iu.far||!iu.fas||Ic.autoFetchSvg||(e.prefix="fas")}return e}),{prefix:null,iconName:null,rest:[]});return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),s.prefix||a!==lc||!iu.fass&&!Ic.autoFetchSvg||(s.prefix="fass",s.iconName=gu(s.prefix,s.iconName)||s.iconName),"fa"!==s.prefix&&"fa"!==i||(s.prefix=yu()||"fas"),s}var _u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,n;return t=e,n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.reduce(this._pullDefinitions,{});Object.keys(o).forEach((function(t){e.definitions[t]=Ss(Ss({},e.definitions[t]||{}),o[t]),tu(t,o[t]);var n=pc[uc][t];n&&tu(n,o[t]),$u()}))}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((function(t){var r=n[t],o=r.prefix,i=r.iconName,a=r.icon,s=a[2];e[o]||(e[o]={}),s.length>0&&s.forEach((function(t){"string"==typeof t&&(e[o][t]=a)})),e[o][i]=a})),e}}],n&&Ns(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),xu=[],Bu={},ku={},Su=Object.keys(ku);function Eu(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return(Bu[e]||[]).forEach((function(e){t=e.apply(null,[t].concat(r))})),t}function Nu(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Bu[e]||[]).forEach((function(e){e.apply(null,n)}))}function Pu(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return ku[e]?ku[e].apply(null,t):void 0}function Iu(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,n=e.prefix||yu();if(t)return t=gu(n,t)||t,Xc(Mu.definitions,n,t)||Xc(Yc.styles,n,t)}var Mu=new _u,Ou={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Qs?(Nu("beforeI2svg",e),Pu("pseudoElements2svg",e),Pu("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.autoReplaceSvgRoot;!1===Ic.autoReplaceSvg&&(Ic.autoReplaceSvg=!0),Ic.observeMutations=!0,e=function(){Du({autoReplaceSvgRoot:n}),Nu("watch",t)},Qs&&(Kc?setTimeout(e,0):Vc.push(e))}},Tu={noAuto:function(){Ic.autoReplaceSvg=!1,Ic.observeMutations=!1,Nu("noAuto")},config:Ic,dom:Ou,parse:{icon:function(e){if(null===e)return null;if("object"===Es(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:gu(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=bu(e[0]);return{prefix:n,iconName:gu(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(Ic.cssPrefix,"-"))>-1||e.match(hc))){var r=Cu(e.split(" "),{skipLookups:!0});return{prefix:r.prefix||yu(),iconName:gu(r.prefix,r.iconName)||r.iconName}}if("string"==typeof e){var o=yu();return{prefix:o,iconName:gu(o,e)||e}}}},library:Mu,findIconDefinition:Iu,toHtml:Jc},Du=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,t=void 0===e?Ks:e;(Object.keys(Yc.styles).length>0||Ic.autoFetchSvg)&&Qs&&Ic.autoReplaceSvg&&Tu.dom.i2svg({node:t})};function Ru(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return Jc(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(Qs){var t=Ks.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function ju(e){var t=e.icons,n=t.main,r=t.mask,o=e.prefix,i=e.iconName,a=e.transform,s=e.symbol,c=e.title,u=e.maskId,l=e.titleId,f=e.extra,d=e.watchable,A=void 0!==d&&d,m=r.found?r:n,p=m.width,$=m.height,h="fak"===o,g=[Ic.replacementClass,i?"".concat(Ic.cssPrefix,"-").concat(i):""].filter((function(e){return-1===f.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(f.classes).join(" "),w={children:[],attributes:Ss(Ss({},f.attributes),{},{"data-prefix":o,"data-icon":i,class:g,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(p," ").concat($)})},y=h&&!~f.classes.indexOf("fa-fw")?{width:"".concat(p/$*16*.0625,"em")}:{};A&&(w.attributes[nc]=""),c&&(w.children.push({tag:"title",attributes:{id:w.attributes["aria-labelledby"]||"title-".concat(l||Dc())},children:[c]}),delete w.attributes.title);var b=Ss(Ss({},w),{},{prefix:o,iconName:i,main:n,mask:r,maskId:u,transform:a,symbol:s,styles:Ss(Ss({},y),f.styles)}),v=r.found&&n.found?Pu("generateAbstractMask",b)||{children:[],attributes:{}}:Pu("generateAbstractIcon",b)||{children:[],attributes:{}},C=v.children,_=v.attributes;return b.children=C,b.attributes=_,s?function(e){var t=e.prefix,n=e.iconName,r=e.children,o=e.attributes,i=e.symbol,a=!0===i?"".concat(t,"-").concat(Ic.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Ss(Ss({},o),{},{id:a}),children:r}]}]}(b):function(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,i=e.styles,a=e.transform;if(Hc(a)&&n.found&&!r.found){var s={x:n.width/n.height/2,y:.5};o.style=Gc(Ss(Ss({},i),{},{"transform-origin":"".concat(s.x+a.x/16,"em ").concat(s.y+a.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(b)}function Fu(e){var t=e.content,n=e.width,r=e.height,o=e.transform,i=e.title,a=e.extra,s=e.watchable,c=void 0!==s&&s,u=Ss(Ss(Ss({},a.attributes),i?{title:i}:{}),{},{class:a.classes.join(" ")});c&&(u[nc]="");var l=Ss({},a.styles);Hc(o)&&(l.transform=function(e){var t=e.transform,n=e.width,r=void 0===n?16:n,o=e.height,i=void 0===o?16:o,a=e.startCentered,s=void 0!==a&&a,c="";return c+=s&&Zs?"translate(".concat(t.x/Oc-r/2,"em, ").concat(t.y/Oc-i/2,"em) "):s?"translate(calc(-50% + ".concat(t.x/Oc,"em), calc(-50% + ").concat(t.y/Oc,"em)) "):"translate(".concat(t.x/Oc,"em, ").concat(t.y/Oc,"em) "),(c+="scale(".concat(t.size/Oc*(t.flipX?-1:1),", ").concat(t.size/Oc*(t.flipY?-1:1),") "))+"rotate(".concat(t.rotate,"deg) ")}({transform:o,startCentered:!0,width:n,height:r}),l["-webkit-transform"]=l.transform);var f=Gc(l);f.length>0&&(u.style=f);var d=[];return d.push({tag:"span",attributes:u,children:[t]}),i&&d.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),d}var Gu=Yc.styles;function Hu(e){var t=e[0],n=e[1],r=Is(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(Ic.cssPrefix,"-").concat(_c)},children:[{tag:"path",attributes:{class:"".concat(Ic.cssPrefix,"-").concat(Bc),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(Ic.cssPrefix,"-").concat(xc),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var Lu={found:!1,width:512,height:512};function Uu(e,t){var n=t;return"fa"===t&&null!==Ic.styleDefault&&(t=yu()),new Promise((function(r,o){if(Pu("missingIconAbstract"),"fa"===n){var i=wu(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&Gu[t]&&Gu[t][e])return r(Hu(Gu[t][e]));!function(e,t){cc||Ic.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(Ss(Ss({},Lu),{},{icon:Ic.showMissingIcons&&e&&Pu("missingIconAbstract")||{}}))}))}var zu=function(){},qu=Ic.measurePerformance&&Xs&&Xs.mark&&Xs.measure?Xs:{mark:zu,measure:zu},Wu='FA "6.4.2"',Yu=function(e){return qu.mark("".concat(Wu," ").concat(e," begins")),function(){return function(e){qu.mark("".concat(Wu," ").concat(e," ends")),qu.measure("".concat(Wu," ").concat(e),"".concat(Wu," ").concat(e," begins"),"".concat(Wu," ").concat(e," ends"))}(e)}},Vu=function(){};function Ku(e){return"string"==typeof(e.getAttribute?e.getAttribute(nc):null)}function Ju(e){return Ks.createElementNS("http://www.w3.org/2000/svg",e)}function Xu(e){return Ks.createElement(e)}function Qu(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,n=void 0===t?"svg"===e.tag?Ju:Xu:t;if("string"==typeof e)return Ks.createTextNode(e);var r=n(e.tag);return Object.keys(e.attributes||[]).forEach((function(t){r.setAttribute(t,e.attributes[t])})),(e.children||[]).forEach((function(e){r.appendChild(Qu(e,{ceFn:n}))})),r}var Zu={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach((function(e){t.parentNode.insertBefore(Qu(e),t)})),null===t.getAttribute(nc)&&Ic.keepOriginalSource){var n=Ks.createComment(function(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~jc(t).indexOf(Ic.replacementClass))return Zu.replace(e);var r=new RegExp("".concat(Ic.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var o=n[0].attributes.class.split(" ").reduce((function(e,t){return t===Ic.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e}),{toNode:[],toSvg:[]});n[0].attributes.class=o.toSvg.join(" "),0===o.toNode.length?t.removeAttribute("class"):t.setAttribute("class",o.toNode.join(" "))}var i=n.map((function(e){return Jc(e)})).join("\n");t.setAttribute(nc,""),t.innerHTML=i}};function el(e){e()}function tl(e,t){var n="function"==typeof t?t:Vu;if(0===e.length)n();else{var r=el;"async"===Ic.mutateApproach&&(r=Vs.requestAnimationFrame||el),r((function(){var t=!0===Ic.autoReplaceSvg?Zu.replace:Zu[Ic.autoReplaceSvg]||Zu.replace,r=Yu("mutate");e.map(t),r(),n()}))}}var nl=!1;function rl(){nl=!0}function ol(){nl=!1}var il=null;function al(e){if(Js&&Ic.observeMutations){var t=e.treeCallback,n=void 0===t?Vu:t,r=e.nodeCallback,o=void 0===r?Vu:r,i=e.pseudoElementsCallback,a=void 0===i?Vu:i,s=e.observeMutationsRoot,c=void 0===s?Ks:s;il=new Js((function(e){if(!nl){var t=yu();Rc(e).forEach((function(e){if("childList"===e.type&&e.addedNodes.length>0&&!Ku(e.addedNodes[0])&&(Ic.searchPseudoElements&&a(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&Ic.searchPseudoElements&&a(e.target.parentNode),"attributes"===e.type&&Ku(e.target)&&~Cc.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(oc):null,n=e.getAttribute?e.getAttribute(ic):null;return t&&n}(e.target)){var r=Cu(jc(e.target)),i=r.prefix,s=r.iconName;e.target.setAttribute(oc,i||t),s&&e.target.setAttribute(ic,s)}else(c=e.target)&&c.classList&&c.classList.contains&&c.classList.contains(Ic.replacementClass)&&o(e.target);var c}))}})),Qs&&il.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function sl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=function(e){var t,n,r=e.getAttribute("data-prefix"),o=e.getAttribute("data-icon"),i=void 0!==e.innerText?e.innerText.trim():"",a=Cu(jc(e));return a.prefix||(a.prefix=yu()),r&&o&&(a.prefix=r,a.iconName=o),a.iconName&&a.prefix||(a.prefix&&i.length>0&&(a.iconName=(t=a.prefix,n=e.innerText,(lu[t]||{})[n]||hu(a.prefix,Zc(e.innerText)))),!a.iconName&&Ic.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=e.firstChild.data)),a}(e),r=n.iconName,o=n.prefix,i=n.rest,a=function(e){var t=Rc(e.attributes).reduce((function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e}),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return Ic.autoA11y&&(n?t["aria-labelledby"]="".concat(Ic.replacementClass,"-title-").concat(r||Dc()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),s=Eu("parseNodeAttributes",{},e),c=t.styleParser?function(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce((function(e,t){var n=t.split(":"),r=n[0],o=n.slice(1);return r&&o.length>0&&(e[r]=o.join(":").trim()),e}),{})),n}(e):[];return Ss({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:o,transform:Tc,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:c,attributes:a}},s)}var cl=Yc.styles;function ul(e){var t="nest"===Ic.autoReplaceSvg?sl(e,{styleParser:!1}):sl(e);return~t.extra.classes.indexOf(gc)?Pu("generateLayersText",e,t):Pu("generateSvgReplacementMutation",e,t)}var ll=new Set;function fl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Qs)return Promise.resolve();var n=Ks.documentElement.classList,r=function(e){return n.add("".concat(ac,"-").concat(e))},o=function(e){return n.remove("".concat(ac,"-").concat(e))},i=Ic.autoFetchSvg?ll:fc.map((function(e){return"fa-".concat(e)})).concat(Object.keys(cl));i.includes("fa")||i.push("fa");var a=[".".concat(gc,":not([").concat(nc,"])")].concat(i.map((function(e){return".".concat(e,":not([").concat(nc,"])")}))).join(", ");if(0===a.length)return Promise.resolve();var s=[];try{s=Rc(e.querySelectorAll(a))}catch(e){}if(!(s.length>0))return Promise.resolve();r("pending"),o("complete");var c=Yu("onTree"),u=s.reduce((function(e,t){try{var n=ul(t);n&&e.push(n)}catch(e){cc||"MissingIcon"===e.name&&console.error(e)}return e}),[]);return new Promise((function(e,n){Promise.all(u).then((function(n){tl(n,(function(){r("active"),r("complete"),o("pending"),"function"==typeof t&&t(),c(),e()}))})).catch((function(e){c(),n(e)}))}))}function dl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;ul(e).then((function(e){e&&tl([e],t)}))}fc.map((function(e){ll.add("fa-".concat(e))})),Object.keys(Ac[uc]).map(ll.add.bind(ll)),Object.keys(Ac[lc]).map(ll.add.bind(ll)),ll=Ms(ll);var Al=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?Tc:n,o=t.symbol,i=void 0!==o&&o,a=t.mask,s=void 0===a?null:a,c=t.maskId,u=void 0===c?null:c,l=t.title,f=void 0===l?null:l,d=t.titleId,A=void 0===d?null:d,m=t.classes,p=void 0===m?[]:m,$=t.attributes,h=void 0===$?{}:$,g=t.styles,w=void 0===g?{}:g;if(e){var y=e.prefix,b=e.iconName,v=e.icon;return Ru(Ss({type:"icon"},e),(function(){return Nu("beforeDOMElementCreation",{iconDefinition:e,params:t}),Ic.autoA11y&&(f?h["aria-labelledby"]="".concat(Ic.replacementClass,"-title-").concat(A||Dc()):(h["aria-hidden"]="true",h.focusable="false")),ju({icons:{main:Hu(v),mask:s?Hu(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:y,iconName:b,transform:Ss(Ss({},Tc),r),symbol:i,title:f,maskId:u,titleId:A,extra:{attributes:h,styles:w,classes:p}})}))}},ml={mixout:function(){return{icon:(e=Al,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(t||{}).icon?t:Iu(t||{}),o=n.mask;return o&&(o=(o||{}).icon?o:Iu(o||{})),e(r,Ss(Ss({},n),{},{mask:o}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=fl,e.nodeCallback=dl,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=void 0===t?Ks:t,r=e.callback;return fl(n,void 0===r?function(){}:r)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,r=t.title,o=t.titleId,i=t.prefix,a=t.transform,s=t.symbol,c=t.mask,u=t.maskId,l=t.extra;return new Promise((function(t,f){Promise.all([Uu(n,i),c.iconName?Uu(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((function(c){var f=Is(c,2),d=f[0],A=f[1];t([e,ju({icons:{main:d,mask:A},prefix:i,iconName:n,transform:a,symbol:s,maskId:u,title:r,titleId:o,extra:l,watchable:!0})])})).catch(f)}))},e.generateAbstractIcon=function(e){var t,n=e.children,r=e.attributes,o=e.main,i=e.transform,a=Gc(e.styles);return a.length>0&&(r.style=a),Hc(i)&&(t=Pu("generateAbstractTransformGrouping",{main:o,transform:i,containerWidth:o.width,iconWidth:o.width})),n.push(t||o.icon),{children:n,attributes:r}}}},pl={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.classes,r=void 0===n?[]:n;return Ru({type:"layer"},(function(){Nu("beforeDOMElementCreation",{assembler:e,params:t});var n=[];return e((function(e){Array.isArray(e)?e.map((function(e){n=n.concat(e.abstract)})):n=n.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(Ic.cssPrefix,"-layers")].concat(Ms(r)).join(" ")},children:n}]}))}}}},$l={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.title,r=void 0===n?null:n,o=t.classes,i=void 0===o?[]:o,a=t.attributes,s=void 0===a?{}:a,c=t.styles,u=void 0===c?{}:c;return Ru({type:"counter",content:e},(function(){return Nu("beforeDOMElementCreation",{content:e,params:t}),function(e){var t=e.content,n=e.title,r=e.extra,o=Ss(Ss(Ss({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=Gc(r.styles);i.length>0&&(o.style=i);var a=[];return a.push({tag:"span",attributes:o,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}({content:e.toString(),title:r,extra:{attributes:s,styles:u,classes:["".concat(Ic.cssPrefix,"-layers-counter")].concat(Ms(i))}})}))}}}},hl={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?Tc:n,o=t.title,i=void 0===o?null:o,a=t.classes,s=void 0===a?[]:a,c=t.attributes,u=void 0===c?{}:c,l=t.styles,f=void 0===l?{}:l;return Ru({type:"text",content:e},(function(){return Nu("beforeDOMElementCreation",{content:e,params:t}),Fu({content:e,transform:Ss(Ss({},Tc),r),title:i,extra:{attributes:u,styles:f,classes:["".concat(Ic.cssPrefix,"-layers-text")].concat(Ms(s))}})}))}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.title,r=t.transform,o=t.extra,i=null,a=null;if(Zs){var s=parseInt(getComputedStyle(e).fontSize,10),c=e.getBoundingClientRect();i=c.width/s,a=c.height/s}return Ic.autoA11y&&!n&&(o.attributes["aria-hidden"]="true"),Promise.resolve([e,Fu({content:e.innerHTML,width:i,height:a,transform:r,title:n,extra:o,watchable:!0})])}}},gl=new RegExp('"',"ug"),wl=[1105920,1112319];function yl(e,t){var n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise((function(r,o){if(null!==e.getAttribute(n))return r();var i,a,s,c=Rc(e.children).filter((function(e){return e.getAttribute(rc)===t}))[0],u=Vs.getComputedStyle(e,t),l=u.getPropertyValue("font-family").match(wc),f=u.getPropertyValue("font-weight"),d=u.getPropertyValue("content");if(c&&!l)return e.removeChild(c),r();if(l&&"none"!==d&&""!==d){var A=u.getPropertyValue("content"),m=~["Sharp"].indexOf(l[2])?lc:uc,p=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?mc[m][l[2].toLowerCase()]:yc[m][f],$=function(e){var t=e.replace(gl,""),n=function(e){var t,n=e.length,r=e.charCodeAt(0);return r>=55296&&r<=56319&&n>1&&(t=e.charCodeAt(1))>=56320&&t<=57343?1024*(r-55296)+t-56320+65536:r}(t),r=n>=wl[0]&&n<=wl[1],o=2===t.length&&t[0]===t[1];return{value:Zc(o?t[0]:t),isSecondary:r||o}}(A),h=$.value,g=$.isSecondary,w=l[0].startsWith("FontAwesome"),y=hu(p,h),b=y;if(w){var v=(a=du[i=h],s=hu("fas",i),a||(s?{prefix:"fas",iconName:s}:null)||{prefix:null,iconName:null});v.iconName&&v.prefix&&(y=v.iconName,p=v.prefix)}if(!y||g||c&&c.getAttribute(oc)===p&&c.getAttribute(ic)===b)r();else{e.setAttribute(n,b),c&&e.removeChild(c);var C={iconName:null,title:null,titleId:null,prefix:null,transform:Tc,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},_=C.extra;_.attributes[rc]=t,Uu(y,p).then((function(o){var i=ju(Ss(Ss({},C),{},{icons:{main:o,mask:{prefix:null,iconName:null,rest:[]}},prefix:p,iconName:b,extra:_,watchable:!0})),a=Ks.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(a,e.firstChild):e.appendChild(a),a.outerHTML=i.map((function(e){return Jc(e)})).join("\n"),e.removeAttribute(n),r()})).catch(o)}}else r()}))}function bl(e){return Promise.all([yl(e,"::before"),yl(e,"::after")])}function vl(e){return!(e.parentNode===document.head||~sc.indexOf(e.tagName.toUpperCase())||e.getAttribute(rc)||e.parentNode&&"svg"===e.parentNode.tagName)}function Cl(e){if(Qs)return new Promise((function(t,n){var r=Rc(e.querySelectorAll("*")).filter(vl).map(bl),o=Yu("searchPseudoElements");rl(),Promise.all(r).then((function(){o(),ol(),t()})).catch((function(){o(),ol(),n()}))}))}var _l=!1,xl=function(e){return e.toLowerCase().split(" ").reduce((function(e,t){var n=t.toLowerCase().split("-"),r=n[0],o=n.slice(1).join("-");if(r&&"h"===o)return e.flipX=!0,e;if(r&&"v"===o)return e.flipY=!0,e;if(o=parseFloat(o),isNaN(o))return e;switch(r){case"grow":e.size=e.size+o;break;case"shrink":e.size=e.size-o;break;case"left":e.x=e.x-o;break;case"right":e.x=e.x+o;break;case"up":e.y=e.y-o;break;case"down":e.y=e.y+o;break;case"rotate":e.rotate=e.rotate+o}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Bl={mixout:function(){return{parse:{transform:function(e){return xl(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=xl(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.containerWidth,o=e.iconWidth,i={transform:"translate(".concat(r/2," 256)")},a="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),c="rotate(".concat(n.rotate," 0 0)"),u={outer:i,inner:{transform:"".concat(a," ").concat(s," ").concat(c)},path:{transform:"translate(".concat(o/2*-1," -256)")}};return{tag:"g",attributes:Ss({},u.outer),children:[{tag:"g",attributes:Ss({},u.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:Ss(Ss({},t.icon.attributes),u.path)}]}]}}}},kl={x:0,y:0,width:"100%",height:"100%"};function Sl(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var El,Nl={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),r=n?Cu(n.split(" ").map((function(e){return e.trim()}))):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=yu()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,n=e.children,r=e.attributes,o=e.main,i=e.mask,a=e.maskId,s=e.transform,c=o.width,u=o.icon,l=i.width,f=i.icon,d=function(e){var t=e.transform,n=e.iconWidth,r={transform:"translate(".concat(e.containerWidth/2," 256)")},o="translate(".concat(32*t.x,", ").concat(32*t.y,") "),i="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)");return{outer:r,inner:{transform:"".concat(o," ").concat(i," ").concat(a)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}({transform:s,containerWidth:l,iconWidth:c}),A={tag:"rect",attributes:Ss(Ss({},kl),{},{fill:"white"})},m=u.children?{children:u.children.map(Sl)}:{},p={tag:"g",attributes:Ss({},d.inner),children:[Sl(Ss({tag:u.tag,attributes:Ss(Ss({},u.attributes),d.path)},m))]},$={tag:"g",attributes:Ss({},d.outer),children:[p]},h="mask-".concat(a||Dc()),g="clip-".concat(a||Dc()),w={tag:"mask",attributes:Ss(Ss({},kl),{},{id:h,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[A,$]},y={tag:"defs",children:[{tag:"clipPath",attributes:{id:g},children:(t=f,"g"===t.tag?t.children:[t])},w]};return n.push(y,{tag:"rect",attributes:Ss({fill:"currentColor","clip-path":"url(#".concat(g,")"),mask:"url(#".concat(h,")")},kl)}),{children:n,attributes:r}}}},Pl={provides:function(e){var t=!1;Vs.matchMedia&&(t=Vs.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:Ss(Ss({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=Ss(Ss({},r),{},{attributeName:"opacity"}),i={tag:"circle",attributes:Ss(Ss({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||i.children.push({tag:"animate",attributes:Ss(Ss({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Ss(Ss({},o),{},{values:"1;0;1;1;0;1;"})}),e.push(i),e.push({tag:"path",attributes:Ss(Ss({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:Ss(Ss({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:Ss(Ss({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Ss(Ss({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}},Il=[qc,ml,pl,$l,hl,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=Cl,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=void 0===t?Ks:t;Ic.searchPseudoElements&&Cl(n)}}},{mixout:function(){return{dom:{unwatch:function(){rl(),_l=!0}}}},hooks:function(){return{bootstrap:function(){al(Eu("mutationObserverCallbacks",{}))},noAuto:function(){il&&il.disconnect()},watch:function(e){var t=e.observeMutationsRoot;_l?ol():al(Eu("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},Bl,Nl,Pl,{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-symbol"),r=null!==n&&(""===n||n);return e.symbol=r,e}}}}];El={mixoutsTo:Tu}.mixoutsTo,xu=Il,Bu={},Object.keys(ku).forEach((function(e){-1===Su.indexOf(e)&&delete ku[e]})),xu.forEach((function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((function(e){"function"==typeof t[e]&&(El[e]=t[e]),"object"===Es(t[e])&&Object.keys(t[e]).forEach((function(n){El[e]||(El[e]={}),El[e][n]=t[e][n]}))})),e.hooks){var n=e.hooks();Object.keys(n).forEach((function(e){Bu[e]||(Bu[e]=[]),Bu[e].push(n[e])}))}e.provides&&e.provides(ku)}));var Ml=Tu.parse,Ol=Tu.icon,Tl=n(556),Dl=n.n(Tl);function Rl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rl(Object(n),!0).forEach((function(t){Gl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fl(e){return Fl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fl(e)}function Gl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hl(e){return function(e){if(Array.isArray(e))return Ll(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ll(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ll(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ll(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ul(e){return t=e,(t-=0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var zl=["style"],ql=!1;try{ql=!0}catch(ff){}function Wl(e){return e&&"object"===Fl(e)&&e.prefix&&e.iconName&&e.icon?e:Ml.icon?Ml.icon(e):null===e?null:e&&"object"===Fl(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function Yl(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Gl({},e,t):{}}var Vl=r.default.forwardRef((function(e,t){var n=e.icon,r=e.mask,o=e.symbol,i=e.className,a=e.title,s=e.titleId,c=e.maskId,u=Wl(n),l=Yl("classes",[].concat(Hl(function(e){var t,n=e.beat,r=e.fade,o=e.beatFade,i=e.bounce,a=e.shake,s=e.flash,c=e.spin,u=e.spinPulse,l=e.spinReverse,f=e.pulse,d=e.fixedWidth,A=e.inverse,m=e.border,p=e.listItem,$=e.flip,h=e.size,g=e.rotation,w=e.pull,y=(Gl(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":o,"fa-bounce":i,"fa-shake":a,"fa-flash":s,"fa-spin":c,"fa-spin-reverse":l,"fa-spin-pulse":u,"fa-pulse":f,"fa-fw":d,"fa-inverse":A,"fa-border":m,"fa-li":p,"fa-flip":!0===$,"fa-flip-horizontal":"horizontal"===$||"both"===$,"fa-flip-vertical":"vertical"===$||"both"===$},"fa-".concat(h),null!=h),Gl(t,"fa-rotate-".concat(g),null!=g&&0!==g),Gl(t,"fa-pull-".concat(w),null!=w),Gl(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(y).map((function(e){return y[e]?e:null})).filter((function(e){return e}))}(e)),Hl(i.split(" ")))),f=Yl("transform","string"==typeof e.transform?Ml.transform(e.transform):e.transform),d=Yl("mask",Wl(r)),A=Ol(u,jl(jl(jl(jl({},l),f),d),{},{symbol:o,title:a,titleId:s,maskId:c}));if(!A)return function(){var e;!ql&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",u),null;var m=A.abstract,p={ref:t};return Object.keys(e).forEach((function(t){Vl.defaultProps.hasOwnProperty(t)||(p[t]=e[t])})),Kl(m[0],p)}));Vl.displayName="FontAwesomeIcon",Vl.propTypes={beat:Dl().bool,border:Dl().bool,beatFade:Dl().bool,bounce:Dl().bool,className:Dl().string,fade:Dl().bool,flash:Dl().bool,mask:Dl().oneOfType([Dl().object,Dl().array,Dl().string]),maskId:Dl().string,fixedWidth:Dl().bool,inverse:Dl().bool,flip:Dl().oneOf([!0,!1,"horizontal","vertical","both"]),icon:Dl().oneOfType([Dl().object,Dl().array,Dl().string]),listItem:Dl().bool,pull:Dl().oneOf(["right","left"]),pulse:Dl().bool,rotation:Dl().oneOf([0,90,180,270]),shake:Dl().bool,size:Dl().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Dl().bool,spinPulse:Dl().bool,spinReverse:Dl().bool,symbol:Dl().oneOfType([Dl().bool,Dl().string]),title:Dl().string,titleId:Dl().string,transform:Dl().oneOfType([Dl().string,Dl().object]),swapOpacity:Dl().bool},Vl.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var Kl=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var o=(n.children||[]).map((function(n){return e(t,n)})),i=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=r.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),o=Ul(t.slice(0,r)),i=t.slice(r+1).trim();return o.startsWith("webkit")?e[(n=o,n.charAt(0).toUpperCase()+n.slice(1))]=i:e[o]=i,e}),{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[Ul(t)]=r}return e}),{attrs:{}}),a=r.style,s=void 0===a?{}:a,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(r,zl);return i.attrs.style=jl(jl({},i.attrs.style),s),t.apply(void 0,[n.tag,jl(jl({},i.attrs),c)].concat(Hl(o)))}.bind(null,r.default.createElement);function Jl(e){return r.createElement(Vl,e)}const Xl=Jl({icon:{prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]}}),Ql=Jl({color:"crimson",icon:{prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z"]}}),Zl=Jl({icon:{prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]}}),ef=(Jl({icon:{prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M222.7 32.1c5 16.9-4.6 34.8-21.5 39.8C121.8 95.6 64 169.1 64 256c0 106 86 192 192 192s192-86 192-192c0-86.9-57.8-160.4-137.1-184.1c-16.9-5-26.6-22.9-21.5-39.8s22.9-26.6 39.8-21.5C434.9 42.1 512 140 512 256c0 141.4-114.6 256-256 256S0 397.4 0 256C0 140 77.1 42.1 182.9 10.6c16.9-5 34.8 4.6 39.8 21.5z"]}}),Jl({icon:{prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]}})),tf=Jl({icon:{prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]}});function nf(e){return 0===e.tag?"text-green-700":"text-red-700"}function rf(e){return 0===e.tag?"bg-green-50":"bg-red-50"}function of(e){return e.tag,e.fields[0]}function af(e){return 0===e.tag?"alert-success":"alert-failure"}function sf(e){let t,n,o,i,a;const s=e.hideAlert,c=e.alert,u=function(){const e=new Wn(!1);return e}();return function(){const e=Bs.useRef(!1);Bs.useEffect((()=>{e.current||(e.current=!0,function(e,t){tr(Jn.Delay((()=>Jn.Bind(er(5e3),(()=>(e(),Jn.Zero()))))),t)}(s,u))}),[])}(),(0,r.createElement)("div",E(Ct([["className",De(" ",["rounded-md","p-4","my-4",rf(c)])],["data-testid",af(c)],(t=[(0,r.createElement)("div",E(Ct([["className",De(" ",["flex"])],(n=[(0,r.createElement)("p",{className:De(" ",["text-sm","pr-2",nf(c)]),children:of(c)}),(0,r.createElement)("div",E(Ct([["className",De(" ",["ml-auto"])],(o=[(0,r.createElement)("div",E(Ct([["className",De(" ",["-mx-1.5","-my-1.5"])],(i=[(0,r.createElement)("button",E(Ct([["type","button"],["className",De(" ",qt(Gt((()=>Vt(Ut("inline-flex"),Gt((()=>Vt(Ut("rounded-md"),Gt((()=>Vt(Ut("p-1.5"),Gt((()=>Vt(Ut("pb-2.5"),Gt((()=>Vt(Ut("focus:outline-none"),Gt((()=>Vt(Ut("focus:ring-2"),Gt((()=>Vt(Ut("focus:ring-offset-2"),Gt((()=>function(e){return 0===e.tag?Ct(["bg-green-50","text-green-500","hover:bg-green-100","focus:ring-offset-green-50","focus:ring-green-600"]):Ct(["bg-red-50","text-red-500","hover:bg-red-100","focus:ring-offset-red-50","focus:ring-red-600"])}(c))))))))))))))))))))))))))],(a=[(0,r.createElement)("span",{className:"h-3 w-3",children:Zl})],["children",Bs.Children.toArray(Array.from(a))]),["onClick",e=>{u.cancel(),s()}]])))],["children",Bs.Children.toArray(Array.from(i))])])))],["children",Bs.Children.toArray(Array.from(o))])])))],["children",Bs.Children.toArray(Array.from(n))])])))],["children",Bs.Children.toArray(Array.from(t))])])))}class cf extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Primary","NonPrimary"]}}function uf(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,uf),r}function lf(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var ff,df=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(df||{}),Af=((ff=Af||{})[ff.Unmount=0]="Unmount",ff[ff.Hidden=1]="Hidden",ff);function mf({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a}){let s=$f(t,e);if(i)return pf(s,n,r,a);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=s;if(e)return pf(t,n,r,a)}if(1&c){let{unmount:e=!0,...t}=s;return uf(e?0:1,{0:()=>null,1:()=>pf({...t,hidden:!0,style:{display:"none"}},n,r,a)})}return pf(s,n,r,a)}function pf(e,t={},n,o){let{as:i=n,children:a,refName:s="ref",...c}=wf(e,["unmount","static"]),u=void 0!==e.ref?{[s]:e.ref}:{},l="function"==typeof a?a(t):a;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t));let f={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r);e&&(f["data-headlessui-state"]=n.join(" "))}if(i===r.Fragment&&Object.keys(gf(c)).length>0){if(!(0,r.isValidElement)(l)||Array.isArray(l)&&l.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(c).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));let e=l.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>lf(null==e?void 0:e.className(...t),c.className):lf(null==e?void 0:e.className,c.className),n=t?{className:t}:{};return(0,r.cloneElement)(l,Object.assign({},$f(l.props,gf(wf(c,["ref"]))),f,u,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}}(l.ref,u.ref),n))}return(0,r.createElement)(i,Object.assign({},wf(c,["ref"]),i!==r.Fragment&&u,i!==r.Fragment&&f),l)}function $f(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t,...r){let o=n[e];for(let e of o){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function hf(e){var t;return Object.assign((0,r.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function gf(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function wf(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function yf(){let e=[],t={addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),t.add((()=>e.removeEventListener(n,r,o)))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(n)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let n=setTimeout(...e);return t.add((()=>clearTimeout(n)))},microTask(...e){let n={current:!0};return function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}((()=>{n.current&&e[0]()})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=yf();return e(t),this.add((()=>t.dispose()))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function bf(){let[e]=(0,r.useState)(yf);return(0,r.useEffect)((()=>()=>e.dispose()),[e]),e}var vf=Object.defineProperty,Cf=(e,t,n)=>(((e,t,n)=>{t in e?vf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let _f=new class{constructor(){Cf(this,"current",this.detect()),Cf(this,"handoffState","pending"),Cf(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},xf=(e,t)=>{_f.isServer?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)};function Bf(e){let t=(0,r.useRef)(e);return xf((()=>{t.current=e}),[e]),t}let kf=function(e){let t=Bf(e);return r.default.useCallback(((...e)=>t.current(...e)),[t])},Sf=Symbol();function Ef(...e){let t=(0,r.useRef)(e);(0,r.useEffect)((()=>{t.current=e}),[e]);let n=kf((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[Sf])))?void 0:n}var Nf;let Pf=null!=(Nf=r.default.useId)?Nf:function(){let e=function(){let e=function(){let e="undefined"==typeof document;return r.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=r.useState(_f.isHandoffComplete);return t&&!1===_f.isHandoffComplete&&n(!1),r.useEffect((()=>{!0!==t&&n(!0)}),[t]),r.useEffect((()=>_f.handoff()),[]),!e&&t}(),[t,n]=r.default.useState(e?()=>_f.nextId():null);return xf((()=>{null===t&&n(_f.nextId())}),[t]),null!=t?""+t:void 0};var If=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(If||{}),Mf=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Mf||{});function Of(e){return _f.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Tf=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var Df,Rf=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Rf||{}),jf=((Df=jf||{})[Df.Error=0]="Error",Df[Df.Overflow=1]="Overflow",Df[Df.Success=2]="Success",Df[Df.Underflow=3]="Underflow",Df),Ff=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Ff||{});function Gf(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(Tf)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}var Hf=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Hf||{});function Lf(e,t=0){var n;return e!==(null==(n=Of(e))?void 0:n.body)&&uf(t,{0:()=>e.matches(Tf),1(){let t=e;for(;null!==t;){if(t.matches(Tf))return!0;t=t.parentElement}return!1}})}function Uf(e){let t=Of(e);yf().nextFrame((()=>{t&&!Lf(t.activeElement,0)&&function(e){null==e||e.focus({preventScroll:!0})}(e)}))}var zf=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(zf||{});"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let qf=["textarea","input"].join(",");function Wf(e,t=e=>e){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function Yf(e,t){return function(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?Wf(e):e:Gf(e);o.length>0&&a.length>1&&(a=a.filter((e=>!o.includes(e)))),r=null!=r?r:i.activeElement;let s,c=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=32&t?{preventScroll:!0}:{},f=0,d=a.length;do{if(f>=d||f+d<=0)return 0;let e=u+f;if(16&t)e=(e+d)%d;else{if(e<0)return 3;if(e>=d)return 1}s=a[e],null==s||s.focus(l),f+=c}while(s!==i.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,qf))&&n}(s)&&s.select(),2}(Gf(),t,{relativeTo:e})}function Vf(e,t,n){let o=Bf(t);(0,r.useEffect)((()=>{function t(e){o.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}function Kf(e,t,n=!0){let o=(0,r.useRef)(!1);function i(n,r){if(!o.current||n.defaultPrevented)return;let i=r(n);if(null===i||!i.getRootNode().contains(i)||!i.isConnected)return;let a=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e);for(let e of a){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(i)||n.composed&&n.composedPath().includes(t))return}return!Lf(i,Hf.Loose)&&-1!==i.tabIndex&&n.preventDefault(),t(n,i)}(0,r.useEffect)((()=>{requestAnimationFrame((()=>{o.current=n}))}),[n]);let a=(0,r.useRef)(null);Vf("pointerdown",(e=>{var t,n;o.current&&(a.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),Vf("mousedown",(e=>{var t,n;o.current&&(a.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),Vf("click",(e=>{a.current&&(i(e,(()=>a.current)),a.current=null)}),!0),Vf("touchend",(e=>i(e,(()=>e.target instanceof HTMLElement?e.target:null))),!0),function(e,t,n){let o=Bf((e=>i(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))));(0,r.useEffect)((()=>{function t(e){o.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}("blur",0,!0)}let Jf=(0,r.createContext)(null);Jf.displayName="OpenClosedContext";var Xf=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Xf||{});function Qf({value:e,children:t}){return r.default.createElement(Jf.Provider,{value:e},t)}function Zf(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function ed(e,t){let[n,o]=(0,r.useState)((()=>Zf(e)));return xf((()=>{o(Zf(e))}),[e.type,e.as]),xf((()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&o("button")}),[n,t]),n}function td(e){return[e.screenX,e.screenY]}function nd(){let e=(0,r.useRef)([-1,-1]);return{wasMoved(t){let n=td(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=td(t)}}}let rd=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function od(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let i=!1;for(let e of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),i=!0;let a=i?null!=(n=o.innerText)?n:"":r;return rd.test(a)&&(a=a.replace(rd,"")),a}var id=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(id||{}),ad=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(ad||{}),sd=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e))(sd||{});function cd(e,t=e=>e){let n=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,r=Wf(t(e.items.slice()),(e=>e.dataRef.current.domRef.current)),o=n?r.indexOf(n):null;return-1===o&&(o=null),{items:r,activeItemIndex:o}}let ud={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,__demoMode:!1,menuState:0},2:(e,t)=>{var n;let r=cd(e),o=function(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1,i=(()=>{switch(e.focus){case 0:return n.findIndex((e=>!t.resolveDisabled(e)));case 1:{let e=n.slice().reverse().findIndex(((e,n,r)=>!(-1!==o&&r.length-n-1>=o||t.resolveDisabled(e))));return-1===e?e:n.length-1-e}case 2:return n.findIndex(((e,n)=>!(n<=o||t.resolveDisabled(e))));case 3:{let e=n.slice().reverse().findIndex((e=>!t.resolveDisabled(e)));return-1===e?e:n.length-1-e}case 4:return n.findIndex((n=>t.resolveId(n)===e.id));case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===i?r:i}(t,{resolveItems:()=>r.items,resolveActiveIndex:()=>r.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeItemIndex:o,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find((e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))&&!e.dataRef.current.disabled})),i=o?e.items.indexOf(o):-1;return-1===i||i===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:i,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let n=cd(e,(e=>[...e,{id:t.id,dataRef:t.dataRef}]));return{...e,...n}},6:(e,t)=>{let n=cd(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}}},ld=(0,r.createContext)(null);function fd(e){let t=(0,r.useContext)(ld);if(null===t){let t=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,fd),t}return t}function dd(e,t){return uf(t.type,ud,e,t)}ld.displayName="MenuContext";let Ad=r.Fragment,md=df.RenderStrategy|df.Static,pd=r.Fragment,$d=hf((function(e,t){let{__demoMode:n=!1,...o}=e,i=(0,r.useReducer)(dd,{__demoMode:n,menuState:n?0:1,buttonRef:(0,r.createRef)(),itemsRef:(0,r.createRef)(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:a,itemsRef:s,buttonRef:c},u]=i,l=Ef(t);Kf([c,s],((e,t)=>{var n;u({type:1}),Lf(t,Hf.Loose)||(e.preventDefault(),null==(n=c.current)||n.focus())}),0===a);let f=kf((()=>{u({type:1})})),d=(0,r.useMemo)((()=>({open:0===a,close:f})),[a,f]),A={ref:l};return r.default.createElement(ld.Provider,{value:i},r.default.createElement(Qf,{value:uf(a,{0:Xf.Open,1:Xf.Closed})},mf({ourProps:A,theirProps:o,slot:d,defaultTag:Ad,name:"Menu"})))})),hd=hf((function(e,t){var n;let o=Pf(),{id:i=`headlessui-menu-button-${o}`,...a}=e,[s,c]=fd("Menu.Button"),u=Ef(s.buttonRef,t),l=bf(),f=kf((e=>{switch(e.key){case If.Space:case If.Enter:case If.ArrowDown:e.preventDefault(),e.stopPropagation(),c({type:0}),l.nextFrame((()=>c({type:2,focus:Mf.First})));break;case If.ArrowUp:e.preventDefault(),e.stopPropagation(),c({type:0}),l.nextFrame((()=>c({type:2,focus:Mf.Last})))}})),d=kf((e=>{e.key===If.Space&&e.preventDefault()})),A=kf((t=>{if(function(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}(t.currentTarget))return t.preventDefault();e.disabled||(0===s.menuState?(c({type:1}),l.nextFrame((()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(t.preventDefault(),c({type:0})))})),m=(0,r.useMemo)((()=>({open:0===s.menuState})),[s]);return mf({ourProps:{ref:u,id:i,type:ed(e,s.buttonRef),"aria-haspopup":"menu","aria-controls":null==(n=s.itemsRef.current)?void 0:n.id,"aria-expanded":0===s.menuState,onKeyDown:f,onKeyUp:d,onClick:A},theirProps:a,slot:m,defaultTag:"button",name:"Menu.Button"})})),gd=hf((function(e,t){var n,o;let i=Pf(),{id:a=`headlessui-menu-items-${i}`,...s}=e,[c,u]=fd("Menu.Items"),l=Ef(c.itemsRef,t),f=function(...e){return(0,r.useMemo)((()=>Of(...e)),[...e])}(c.itemsRef),d=bf(),A=(0,r.useContext)(Jf),m=null!==A?(A&Xf.Open)===Xf.Open:0===c.menuState;(0,r.useEffect)((()=>{let e=c.itemsRef.current;e&&0===c.menuState&&e!==(null==f?void 0:f.activeElement)&&e.focus({preventScroll:!0})}),[c.menuState,c.itemsRef,f]),function({container:e,accept:t,walk:n,enabled:o=!0}){let i=(0,r.useRef)(t),a=(0,r.useRef)(n);(0,r.useEffect)((()=>{i.current=t,a.current=n}),[t,n]),xf((()=>{if(!e||!o)return;let t=Of(e);if(!t)return;let n=i.current,r=a.current,s=Object.assign((e=>n(e)),{acceptNode:n}),c=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,s,!1);for(;c.nextNode();)r(c.currentNode)}),[e,o,i,a])}({container:c.itemsRef.current,enabled:0===c.menuState,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let p=kf((e=>{var t,n;switch(d.dispose(),e.key){case If.Space:if(""!==c.searchQuery)return e.preventDefault(),e.stopPropagation(),u({type:3,value:e.key});case If.Enter:if(e.preventDefault(),e.stopPropagation(),u({type:1}),null!==c.activeItemIndex){let{dataRef:e}=c.items[c.activeItemIndex];null==(n=null==(t=e.current)?void 0:t.domRef.current)||n.click()}Uf(c.buttonRef.current);break;case If.ArrowDown:return e.preventDefault(),e.stopPropagation(),u({type:2,focus:Mf.Next});case If.ArrowUp:return e.preventDefault(),e.stopPropagation(),u({type:2,focus:Mf.Previous});case If.Home:case If.PageUp:return e.preventDefault(),e.stopPropagation(),u({type:2,focus:Mf.First});case If.End:case If.PageDown:return e.preventDefault(),e.stopPropagation(),u({type:2,focus:Mf.Last});case If.Escape:e.preventDefault(),e.stopPropagation(),u({type:1}),yf().nextFrame((()=>{var e;return null==(e=c.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));break;case If.Tab:e.preventDefault(),e.stopPropagation(),u({type:1}),yf().nextFrame((()=>{Yf(c.buttonRef.current,e.shiftKey?Rf.Previous:Rf.Next)}));break;default:1===e.key.length&&(u({type:3,value:e.key}),d.setTimeout((()=>u({type:4})),350))}})),$=kf((e=>{e.key===If.Space&&e.preventDefault()})),h=(0,r.useMemo)((()=>({open:0===c.menuState})),[c]);return mf({ourProps:{"aria-activedescendant":null===c.activeItemIndex||null==(n=c.items[c.activeItemIndex])?void 0:n.id,"aria-labelledby":null==(o=c.buttonRef.current)?void 0:o.id,id:a,onKeyDown:p,onKeyUp:$,role:"menu",tabIndex:0,ref:l},theirProps:s,slot:h,defaultTag:"div",features:md,visible:m,name:"Menu.Items"})})),wd=hf((function(e,t){let n=Pf(),{id:o=`headlessui-menu-item-${n}`,disabled:i=!1,...a}=e,[s,c]=fd("Menu.Item"),u=null!==s.activeItemIndex&&s.items[s.activeItemIndex].id===o,l=(0,r.useRef)(null),f=Ef(t,l);xf((()=>{if(s.__demoMode||0!==s.menuState||!u||0===s.activationTrigger)return;let e=yf();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=l.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[s.__demoMode,l,u,s.menuState,s.activationTrigger,s.activeItemIndex]);let d=function(e){let t=(0,r.useRef)(""),n=(0,r.useRef)("");return kf((()=>{let r=e.current;if(!r)return"";let o=r.innerText;if(t.current===o)return n.current;let i=function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map((e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():od(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return od(e).trim()}(r).trim().toLowerCase();return t.current=o,n.current=i,i}))}(l),A=(0,r.useRef)({disabled:i,domRef:l,get textValue(){return d()}});xf((()=>{A.current.disabled=i}),[A,i]),xf((()=>(c({type:5,id:o,dataRef:A}),()=>c({type:6,id:o}))),[A,o]);let m=kf((()=>{c({type:1})})),p=kf((e=>{if(i)return e.preventDefault();c({type:1}),Uf(s.buttonRef.current)})),$=kf((()=>{if(i)return c({type:2,focus:Mf.Nothing});c({type:2,focus:Mf.Specific,id:o})})),h=nd(),g=kf((e=>h.update(e))),w=kf((e=>{h.wasMoved(e)&&(i||u||c({type:2,focus:Mf.Specific,id:o,trigger:0}))})),y=kf((e=>{h.wasMoved(e)&&(i||u&&c({type:2,focus:Mf.Nothing}))})),b=(0,r.useMemo)((()=>({active:u,disabled:i,close:m})),[u,i,m]);return mf({ourProps:{id:o,ref:f,role:"menuitem",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,disabled:void 0,onClick:p,onFocus:$,onPointerEnter:g,onMouseEnter:g,onPointerMove:w,onMouseMove:w,onPointerLeave:y,onMouseLeave:y},theirProps:a,slot:b,defaultTag:pd,name:"Menu.Item"})})),yd=Object.assign($d,{Button:hd,Items:gd,Item:wd});class bd extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["As","ClassName","Children"]}}class vd extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["As","Key","ClassName","Disabled","Children"]}}class Cd extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Key","ClassName","Children"]}}function _d(e){return r.createElement(yd.Items,yo(e,1))}class xd extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["As","Key","ClassName","Children"]}}function Bd(e){return 2===e.tag?"border-red-300 text-red-900 placeholder-red-300 focus:outline-none focus:ring-red-500 focus:border-red-500":""}function kd(e){return 1===e.tag&&0!==e.fields[1]}function Sd(e,t,n){const o=qt(Gt((()=>Vt(Ut((0,r.createElement)("label",{className:De(" ",qt(Gt((()=>Vt(Ut("text-sm font-medium text-gray-700 whitespace-nowrap"),Gt((()=>kd(n)?Ut("md:hidden"):Lt()))))))),children:e})),Gt((()=>t))))));return(0,r.createElement)("div",{children:Bs.Children.toArray(Array.from(o))})}function Ed(e,t,n,o,i){return Ct([(0,r.createElement)("input",E(qt(Gt((()=>Vt(Ut(["type","text"]),Gt((()=>Vt(Ut(["placeholder",e]),Gt((()=>Vt(Ut(["className",De(" ",["mt-1 shadow-sm focus:ring-primary-focus focus:border-primary-focus block w-full md:text-sm border-gray-300 rounded-md",Bd(t)])]),Gt((()=>Vt(Ut(["data-testid",o]),Gt((()=>{let e;return Vt(Ut((e=Cr(t),["ref",t=>{null==t||_(t.value,e)||(t.value=e)}])),Gt((()=>Vt(Ut(["onChange",e=>{n(e.target.value)}]),Gt((()=>Vt(Ut(["onBlur",e=>{n(Cr(t))}]),Gt((()=>i)))))))))}))))))))))))))))),(0,r.createElement)("div",{className:"mt-2 text-xs text-red-600",children:_r(t)})])}function Nd(e,t,n,r,o,i,a){return Sd(e,Ed(t,n,r,i,a),o)}function Pd(e,t,n,o,i,a,s){let c;const u=2===s.tag&&0===s.fields[0].tag&&null!=s.fields[0].fields[0]?(c=s.fields[0].fields[0],[!0,`${c.Bank} - ${c.Branch} - ${c.Address}`]):[!1,""],l=At((0,r.createElement)("div",{className:De(" ",qt(Gt((()=>Vt(Ut("mt-1 text-xs text-gray-500"),Gt((()=>u[0]?Lt():Ut("hidden")))))))),children:u[1]}));return Sd(e,_t(Ed(t,n,o,a,[["inputMode","numeric"]]),l),i)}function Id(e,t,n){return o=Ct([new xd(0,["div"]),new xd(3,[o=>{let i;return[(0,r.createElement)("div",E(Ct([["className",De(" ",qt(Gt((()=>Vt(Ut("px-3 py-2 flex justify-between items-center"),Gt((()=>_(t,e)?Ut("font-semibold"):Lt())))))))],["onClick",r=>{_(t,e)||n()}],(i=qt(Gt((()=>Vt(1===e.tag?Ut(`Percentage (${Nr(e)})`):Ut(`Dollars (${Nr(e)})`),Gt((()=>_(t,e)?Ut((0,r.createElement)("span",{className:"text-primary-base h-3.5 w-3.5",children:Bs.Children.toArray([ef])})):Lt())))))),["children",Bs.Children.toArray(Array.from(i))])])))]}])]),r.createElement(yd.Item,yo(o,1));var o}function Md(e,t,n){return function(e){return r.createElement(yd,yo(e,1))}(At(new bd(2,[[(o=Ct([new vd(2,["absolute inset-y-0 left-0"]),new vd(3,[!e]),new vd(4,[n=>{let o;return[(0,r.createElement)("div",E(Ct([["className",De(" ",qt(Gt((()=>Vt(Ut("pr-1.5 h-full flex items-center text-gray-500 text-sm"),Gt((()=>n.open?Ut("rounded-md border-2 border-primary-focus pl-2.5"):Ut("pl-3"))))))))],(o=qt(Gt((()=>Vt(Ut((0,r.createElement)("span",{children:[1===t.tag?"%":"$"]})),Gt((()=>e?Ut((0,r.createElement)("span",{className:"ml-1 h-2.5 w-2.5",children:Bs.Children.toArray([tf])})):Lt())))))),["children",Bs.Children.toArray(Array.from(o))])])))]}])]),r.createElement(yd.Button,yo(o,1))),_d(Ct([new Cd(1,["absolute left-0 top-full mt-1 py-1 w-full rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none text-gray-900 text-sm cursor-pointer"]),new Cd(2,[[Id(new Er(0,[]),t,n),Id(new Er(1,[]),t,n)]])]))]])));var o}function Od(e,t,n,o,i,a,s){let c,u;const l=e.Input,f=e.Type;return Sd("Amount*",[(0,r.createElement)("div",E(Ct([["className","mt-1 relative rounded-md shadow-sm"],["style",{zIndex:10-a}],(c=[Md(t,f,o),(0,r.createElement)("input",E(Ct([["type","text"],["className",De(" ",qt(Gt((()=>Vt(Ut("focus:ring-primary-focus focus:border-primary-focus block w-full pr-2 md:text-sm border-gray-300 rounded-md placeholder:text-gray-500"),Gt((()=>Vt(Ut(t?"pl-12":"pl-7"),Gt((()=>Ut(Bd(l))))))))))))],["data-testid",s],(u=Cr(l),["ref",e=>{null==e||_(e.value,u)||(e.value=u)}]),["onChange",e=>{n([e.target.value,f])}],["onBlur",e=>{n([Cr(l),f])}],["inputMode","numeric"],["placeholder",1===f.tag?"0.00":"0"]])))],["children",Bs.Children.toArray(Array.from(c))])]))),(0,r.createElement)("div",{className:"mt-2 text-xs text-red-600",children:_r(l)})],i)}function Td(e,t,n){let o;const i=Ct([(0,r.createElement)("div",{className:De(" ",qt(Gt((()=>Vt(Ut("whitespace-pre hidden md:block"),Gt((()=>kd(e)?Ut("md:hidden"):Lt()))))))),children:" "}),(0,r.createElement)("button",E(Ct([["type","button"],["data-testid",t],["onClick",n],["className",De(" ",[xs,"mt-1"])],(o=[(0,r.createElement)("div",{className:"h-4 w-4 my-0.5 mx-0.5",children:Bs.Children.toArray([Ql])})],["children",Bs.Children.toArray(Array.from(o))])])))]);return(0,r.createElement)("div",{children:Bs.Children.toArray(Array.from(i))})}function Dd(e,t,n){let o;return(0,r.createElement)("div",E(Ct([["className","md:flex-1 ml-2"],(o=[(0,r.createElement)("div",{className:De(" ",qt(Gt((()=>Vt(Ut("whitespace-pre hidden md:block"),Gt((()=>kd(e)?Ut("md:hidden"):Lt()))))))),children:" "}),(0,r.createElement)("button",{type:"button","data-testid":t,onClick:n,className:De(" ",[xs,"mt-1 md:w-full md:flex md:flex-col md:items-center"]),children:"Set primary"})],["children",Bs.Children.toArray(Array.from(o))])])))}function Rd(e,t){const n=1===e.tag?["secondary",`-${e.fields[1]}`]:["primary",""];return`${n[0]}-${t}${n[1]}`}const jd=Pe(Ee("%s*"));function Fd(e,t){const n=!mt(e.NonPrimaryAccounts),o=qt(Gt((()=>Vt(Ut((0,r.createElement)("p",{className:"font-semibold mb-4",children:"Primary Account"})),Gt((()=>Vt(Ut(function(e,t,n){let o,i,a,s,c,u;const l=new cf(0,[]);return(0,r.createElement)("div",E(Ct([["className","space-y-3 md:space-y-0 md:flex md:space-x-2"],(o=[(0,r.createElement)("div",E(Ct([["className","md:flex-1 md:min-w-[132px]"],(i=[Nd("Account nickname","Ex: Salary",e.AccountNickname,(e=>{n(new Rr(5,[new Dr(0,[e])]))}),l,Rd(l,"account-description-field"),[])],["children",Bs.Children.toArray(Array.from(i))])]))),(0,r.createElement)("div",E(Ct([["className","md:flex-1 md:min-w-[152px]"],(a=[Nd(jd("Account holder name"),"",e.AccountName,(e=>{n(new Rr(5,[new Dr(1,[e])]))}),l,Rd(l,"account-name-field"),[["autoComplete","name"]])],["children",Bs.Children.toArray(Array.from(a))])]))),(0,r.createElement)("div",E(Ct([["className","md:flex-none md:w-20"],(s=[Pd(jd("BSB"),"123456",e.Bsb,(e=>{n(new Rr(5,[new Dr(2,[e])]))}),l,Rd(l,"bsb-field"),e.BsbLookup)],["children",Bs.Children.toArray(Array.from(s))])]))),(0,r.createElement)("div",E(Ct([["className","md:flex-none md:w-32"],(c=[Nd(jd("Account number"),"1234567890",e.AccountNumber,(e=>{n(new Rr(5,[new Dr(3,[e])]))}),l,Rd(l,"account-number-field"),[["inputMode","numeric"]])],["children",Bs.Children.toArray(Array.from(c))])]))),(0,r.createElement)("div",E(Ct([["className","md:flex-none md:w-[152px]"],(u=qt(Gt((()=>t?Ut(function(e){return Sd("Amount",[(0,r.createElement)("input",{className:De(" ",["mt-1 shadow-sm focus:ring-primary-focus focus:border-primary-focus block w-full md:text-sm border-gray-300 rounded-md","disabled:bg-gray-50"]),placeholder:"Remaining balance",disabled:!0})],e)}(l)):Lt()))),["children",Bs.Children.toArray(Array.from(u))])]))),(0,r.createElement)("div",{className:"hidden md:block md:flex-none md:w-[150px]",children:Bs.Children.toArray([])})],["children",Bs.Children.toArray(Array.from(o))])])))}(e.PrimaryAccount,n,t)),Gt((()=>e.MaximumAccounts>1||n?Vt(Ut((0,r.createElement)("p",{className:"mt-10 mb-6 font-semibold",children:"Additional Bank Accounts"})),Gt((()=>{let n;return Vt(Ut((0,r.createElement)("div",E(Ct([["className","space-y-10 md:space-y-1"],(n=qt(Gt((()=>tn((n=>Ut(function(e,t,n,o){let i,a,s,c,u,l,f;const d=new cf(1,[e,o]);return(0,r.createElement)("div",E(Ct([["className","md:flex md:space-x-2"],(i=[(0,r.createElement)("div",E(Ct([["className","md:flex-1 md:min-w-[132px]"],(a=[Nd("Account nickname","Ex: Home loan",e.AccountNickname,(t=>{n(new Rr(7,[e.Id,new Dr(0,[t])]))}),d,Rd(d,"account-description-field"),[])],["children",Bs.Children.toArray(Array.from(a))])]))),(0,r.createElement)("div",E(Ct([["className","md:flex-1 md:min-w-[152px]"],(s=[Nd(jd("Account holder name"),"",e.AccountName,(t=>{n(new Rr(7,[e.Id,new Dr(1,[t])]))}),d,Rd(d,"account-name-field"),[["autoComplete","name"]])],["children",Bs.Children.toArray(Array.from(s))])]))),(0,r.createElement)("div",E(Ct([["className","md:flex-none md:w-20"],(c=[Pd(jd("BSB"),"123456",e.Bsb,(t=>{n(new Rr(7,[e.Id,new Dr(2,[t])]))}),d,Rd(d,"bsb-field"),e.BsbLookup)],["children",Bs.Children.toArray(Array.from(c))])]))),(0,r.createElement)("div",E(Ct([["className","md:flex-none md:w-32"],(u=[Nd(jd("Account number"),"1234567890",e.AccountNumber,(t=>{n(new Rr(7,[e.Id,new Dr(3,[t])]))}),d,Rd(d,"account-number-field"),[["inputMode","numeric"]])],["children",Bs.Children.toArray(Array.from(u))])]))),(0,r.createElement)("div",E(Ct([["className","md:flex-none md:w-[132px]"],(l=[Od(e.Amount,t,(t=>{n(new Rr(7,[e.Id,new Dr(4,[t[0],t[1]])]))}),(()=>{n(new Rr(7,[e.Id,new Dr(5,[])]))}),d,o,Rd(d,"amount-field"))],["children",Bs.Children.toArray(Array.from(l))])]))),(0,r.createElement)("div",E(Ct([["className","md:flex-none md:w-[170px] flex justify-end"],(f=[Td(d,Rd(d,"delete-button"),(t=>{n(new Rr(8,[e.Id]))})),Dd(d,Rd(d,"set-primary-button"),(t=>{n(new Rr(9,[e.Id]))}))],["children",Bs.Children.toArray(Array.from(f))])])))],["children",Bs.Children.toArray(Array.from(i))])])))}(n[1],e.AllowPercentageSplit,t,n[0]))),function(e,t){const n=it(),r=function(e,t,n){return((t,n,r)=>{for(;;){const o=t,i=n,a=r;if(st(a))return i;t=o+1,n=e(o,i,ut(a)),r=lt(a)}})(0,t,n)}(((t,n,r)=>{const o=new rt(e(t,r),void 0);return n.tail=o,o}),n,t),o=it();return r.tail=o,lt(n)}(((e,t)=>[e,t]),e.NonPrimaryAccounts))))),["children",Bs.Children.toArray(Array.from(n))])])))),Gt((()=>{let n;return Ut((0,r.createElement)("button",E(Ct([["type","button"],["data-testid","add-secondary-account"],["className",De(" ",[xs,"mt-2"])],["disabled",pt(e.NonPrimaryAccounts)>=e.MaximumAccounts-1],["onClick",e=>{t(new Rr(6,[]))}],(n=[(0,r.createElement)("span",{className:"-ml-1 mr-2 -mt-0.5 h-4 w-4",children:Bs.Children.toArray([Xl])}),(0,r.createElement)("span",{children:["Add a bank account"]})],["children",Bs.Children.toArray(Array.from(n))])]))))})))}))):Lt())))))))));return(0,r.createElement)("div",{children:Bs.Children.toArray(Array.from(o))})}function Gd(e,t){return(0,r.createElement)("button",{type:"button","data-testid":"modal-confirm-button",className:_s,onClick:t,children:e})}function Hd(e,t){return(0,r.createElement)("button",{type:"button",className:xs,onClick:t,children:e})}function Ld(e,t){let n;const o=[(0,r.createElement)("style",{children:[vs]}),(0,r.createElement)("div",E(Ct([["className","font-inter max-w-5xl py-5 mx-auto"],(n=qt(Gt((()=>{let n;if(2===e.PreExistingAccounts.tag){const o=_(e.Saved,new H(1,[]));return Ut((n=qt(Gt((()=>{let n,i;return Vt((n=e.CurrentAlert,null==n?Ut(null):(i=n,Ut((0,r.createElement)(sf,{alert:i,hideAlert:()=>{t(new Rr(13,[i]))}})))),Gt((()=>Vt(Ut((0,r.createElement)("h3",{className:"text-2xl mb-6 font-medium",children:"Add your bank details"})),Gt((()=>Vt(Ut((0,r.createElement)("p",{className:"mb-6 text-sm",children:"Customise where your pay goes by adding a primary bank account"+(e.MaximumAccounts>1?" and any additional bank accounts":"")})),Gt((()=>Vt(Ut(Fd(e,t)),Gt((()=>{let n,i;return Vt(Ut((0,r.createElement)("div",E(Ct([["className","flex justify-end space-x-4 mt-10 md:mt-0"],(n=[(0,r.createElement)("button",{type:"button",className:xs,onClick:e=>{t(new Rr(10,[new Mr(2,[])]))},children:"Reset"}),(0,r.createElement)("button",E(Ct([["type","button"],["data-testid","save-button"],["className",_s],["disabled",o],["onClick",e=>{t(new Rr(4,[new L(0,[])]))}],(i=[(0,r.createElement)("span",{className:De(" ",qt(Gt((()=>Vt(Ut("h-3 w-3 mr-1.5 animate-spin"),Gt((()=>o?Lt():Ut("hidden"))))))))}),(0,r.createElement)("span",{children:["Save and continue"]})],["children",Bs.Children.toArray(Array.from(i))])])))],["children",Bs.Children.toArray(Array.from(n))])])))),Gt((()=>Ut(function(e,t){return function(e,t,n,o,i){let a;return e?function(e){let t,n,o;return(0,r.createElement)("div",E(Ct([["className","fixed z-10 inset-0 overflow-y-auto bg-black/50"],(t=[(0,r.createElement)("div",E(Ct([["className","flex items-end md:items-center justify-center min-h-full p-4 text-center md:p-0"],(n=[(0,r.createElement)("div",E(Ct([(o="relative bg-white rounded-lg px-4 pt-5 pb-4 text-left shadow-xl md:my-8 md:max-w-[80%] lg:max-w-4xl w-full md:p-6",["className","relative bg-white rounded-lg px-4 pt-5 pb-4 text-left shadow-xl md:my-8 md:max-w-[80%] lg:max-w-4xl w-full md:p-6"]),["children",Bs.Children.toArray(Array.from(e))]])))],["children",Bs.Children.toArray(Array.from(n))])])))],["children",Bs.Children.toArray(Array.from(t))])])))}([(c=t,(0,r.createElement)("div",{className:"text-lg leading-6 font-medium",children:c})),(s=n,(0,r.createElement)("div",{className:"mt-4 text-sm text-gray-500",children:Bs.Children.toArray(Array.from(s))})),(0,r.createElement)("div",E(Ct([["className","flex mt-5 space-x-3 justify-end"],(a=[Hd("Cancel",o),Gd("Confirm",i)],["children",Bs.Children.toArray(Array.from(a))])])))]):null;var s,c}(function(e){return null!=e&&2===e.tag}(e),"Reset to last saved version",[(0,r.createElement)("span",{children:["Are you sure you want to discard unsaved changes?"]})],(e=>{t(new Rr(11,[]))}),(e=>{t(new Rr(3,[]))}))}(e.CurrentModal,t)))))}))))))))))))}))),(0,r.createElement)("div",{children:Bs.Children.toArray(Array.from(n))})))}return Ut((0,r.createElement)("div",{children:"Please wait..."}))}))),["children",Bs.Children.toArray(Array.from(n))])])))];return r.createElement(r.Fragment,{},...o)}var Ud=n(172);function zd(){return(zd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var qd=["context","children"];function Wd(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,qd);return(0,Ud.Ob)(t,n)}function Yd(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=(0,Ud.h)(Wd,zd({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],o={},i=0,a=t.attributes,s=t.childNodes;for(i=a.length;i--;)"slot"!==a[i].name&&(o[a[i].name]=a[i].value,o[Vd(a[i].name)]=a[i].value);for(i=s.length;i--;){var c=e(s[i],null),u=s[i].slot;u?o[u]=(0,Ud.h)(Xd,{name:u},c):r[i]=c}var l=n?(0,Ud.h)(Xd,null,r):r;return(0,Ud.h)(n||t.nodeName.toLowerCase(),o,l)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Ud.Qv:Ud.XX)(this._vdom,this._root)}function Vd(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function Kd(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[Vd(e)]=n,this._vdom=(0,Ud.Ob)(this._vdom,r),(0,Ud.XX)(this._vdom,this._root)}}function Jd(){(0,Ud.XX)(this._vdom=null,this._root)}function Xd(e,t){var n=this;return(0,Ud.h)("slot",zd({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function Qd(e){const t=new z(new H(2,[new W(0,[new U(e.accessToken)])])),n=function(e,t,n){const i=(0,r.useState)((()=>$r(e,t,n))),s=i[0];(function(e,t,n){return!_(e.arg,t)||!_(e.dependencies,n)})(s,t,n)&&i[1]($r(e,t,n));const c=(0,mr.useSyncExternalStore)(function(e){return e.subscribe}(s),(()=>function(e){return e.state}(s))),l=c[2],f=c[3],d=c[1];return(0,r.useEffect)((()=>{if(l&&f.length>0){let t=u(f);try{for(;t["System.Collections.IEnumerator.MoveNext"]();){const e=t["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout((()=>{d(e)}))}}finally{a(t)}o(e=f)?e.splice(0):e.clear()}var e}),[l,f]),[c[0],d]}((()=>function(e,t,n){return new dr(e,t,(e=>ft()),n,P((e=>{const t=I(n)(e);return e=>{t(e)}})),(e=>{var t,n;t=e[0],n=e[1],console.error(Ue(t),n)}),[e=>!1,e=>{}])}(ws,((n,r)=>bs(t,e.backendUrl,n,r)),((e,t)=>{}))),void 0,[]);return Ld(n[0],n[1])}!function(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:r.mode||"open"}):t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=Yd,o.prototype.attributeChangedCallback=Kd,o.prototype.disconnectedCallback=Jd,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define("bank-component",o)}((e=>(0,r.createElement)(Qd,e)),0,void 0,{shadow:!0})},945:e=>{"use strict";e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27%23fff%27 viewBox=%270 0 16 16%27%3E%3Ccircle cx=%278%27 cy=%278%27 r=%273%27/%3E%3C/svg%3E"},764:e=>{"use strict";e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27%23fff%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0%27/%3E%3C/svg%3E"},608:e=>{"use strict";e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 16 16%27%3E%3Cpath stroke=%27%23fff%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27M4 8h8%27/%3E%3C/svg%3E"},973:e=>{"use strict";e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 20 20%27%3E%3Cpath stroke=%27%236b7280%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%271.5%27 d=%27m6 8 4 4 4-4%27/%3E%3C/svg%3E"}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,exports:{}};return e[r](i,i.exports,n),i.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.b=document.baseURI||self.location.href,n(357),n(725)})();
2
+ (()=>{var e={725:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(354),o=n.n(r),i=n(314),a=n.n(i),s=n(417),c=n.n(s),u=new URL(n(973),n.b),l=new URL(n(764),n.b),f=new URL(n(945),n.b),d=new URL(n(608),n.b),A=a()(o()),m=c()(u),p=c()(l),$=c()(f),h=c()(d);A.push([e.id,`*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],input:where(:not([type])),select,textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem;--tw-shadow:0 0 #0000}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,input:where(:not([type])):focus,select:focus,textarea:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{background-image:url(${m});background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1rem;--tw-shadow:0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url(${p})}@media (forced-colors:active) {[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url(${$})}@media (forced-colors:active) {[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url(${h});background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}@media (forced-colors:active) {[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}.container{width:100%}@media (min-width:850px){.container{max-width:850px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-y-0{bottom:0;top:0}.left-0{left:0}.top-full{top:100%}.z-10{z-index:10}.-mx-1\\.5{margin-left:-.375rem;margin-right:-.375rem}.-my-1\\.5{margin-bottom:-.375rem;margin-top:-.375rem}.mx-0\\.5{margin-left:.125rem;margin-right:.125rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0\\.5{margin-bottom:.125rem;margin-top:.125rem}.my-4{margin-bottom:1rem;margin-top:1rem}.-ml-1{margin-left:-.25rem}.-mt-0\\.5{margin-top:-.125rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-1\\.5{margin-right:.375rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.h-2\\.5{height:.625rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-full{height:100%}.min-h-full{min-height:100%}.w-2\\.5{width:.625rem}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-4{width:1rem}.w-full{width:100%}.min-w-full{min-width:100%}.max-w-5xl{max-width:64rem}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.space-y-10>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2.5rem*var(--tw-space-y-reverse));margin-top:calc(2.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(229 231 235/var(--tw-divide-opacity,1))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(209 213 219/var(--tw-divide-opacity,1))}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.border-primary-focus{border-color:var(--fl-color-primary-focus)}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity,1))}.border-transparent{border-color:transparent}.bg-black\\/50{background-color:rgba(0,0,0,.5)}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity,1))}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.p-1\\.5{padding:.375rem}.p-4{padding:1rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3\\.5{padding-bottom:.875rem;padding-top:.875rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.pb-2\\.5{padding-bottom:.625rem}.pb-4{padding-bottom:1rem}.pl-12{padding-left:3rem}.pl-2\\.5{padding-left:.625rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pl-7{padding-left:1.75rem}.pr-1\\.5{padding-right:.375rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.font-inter{font-family:Inter,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-6{line-height:1.5rem}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}.text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity,1))}.text-primary-base{color:var(--fl-color-primary)}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}.text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.placeholder-red-300::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(252 165 165/var(--tw-placeholder-opacity,1))}.placeholder-red-300::placeholder{--tw-placeholder-opacity:1;color:rgb(252 165 165/var(--tw-placeholder-opacity,1))}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-sm,.shadow-xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color)}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity,1))}.ring-opacity-5{--tw-ring-opacity:0.05}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.placeholder\\:text-gray-500::-moz-placeholder{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.placeholder\\:text-gray-500::placeholder{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.hover\\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.hover\\:bg-green-100:hover{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity,1))}.hover\\:bg-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.hover\\:bg-red-100:hover{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}.focus\\:border-primary-focus:focus{border-color:var(--fl-color-primary-focus)}.focus\\:border-red-500:focus{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-green-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity,1))}.focus\\:ring-primary-focus:focus{--tw-ring-color:var(--fl-color-primary-focus)}.focus\\:ring-red-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(239 68 68/var(--tw-ring-opacity,1))}.focus\\:ring-red-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(220 38 38/var(--tw-ring-opacity,1))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus\\:ring-offset-green-50:focus{--tw-ring-offset-color:#f0fdf4}.focus\\:ring-offset-red-50:focus{--tw-ring-offset-color:#fef2f2}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-gray-50:disabled{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.disabled\\:opacity-40:disabled{opacity:.4}@media (min-width:850px){.md\\:my-8{margin-bottom:2rem;margin-top:2rem}.md\\:mt-0{margin-top:0}.md\\:block{display:block}.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:w-20{width:5rem}.md\\:w-32{width:8rem}.md\\:w-\\[132px\\]{width:132px}.md\\:w-\\[150px\\]{width:150px}.md\\:w-\\[152px\\]{width:152px}.md\\:w-\\[170px\\]{width:170px}.md\\:w-full{width:100%}.md\\:min-w-\\[132px\\]{min-width:132px}.md\\:min-w-\\[152px\\]{min-width:152px}.md\\:max-w-\\[80\\%\\]{max-width:80%}.md\\:flex-1{flex:1 1 0%}.md\\:flex-none{flex:none}.md\\:flex-col{flex-direction:column}.md\\:items-center{align-items:center}.md\\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.md\\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(0px*var(--tw-space-y-reverse));margin-top:calc(0px*(1 - var(--tw-space-y-reverse)))}.md\\:space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.md\\:p-0{padding:0}.md\\:p-6{padding:1.5rem}.md\\:pl-6{padding-left:1.5rem}.md\\:text-sm{font-size:.875rem;line-height:1.25rem}}`,"",{version:3,sources:["webpack://./tailwind-source.css"],names:[],mappings:"AAAA,iBAAA,uBAAc,CAAd,uBAAc,CAAd,kBAAc,CAAd,kBAAc,CAAd,aAAc,CAAd,aAAc,CAAd,aAAc,CAAd,cAAc,CAAd,cAAc,CAAd,YAAc,CAAd,YAAc,CAAd,iBAAc,CAAd,qCAAc,CAAd,6BAAc,CAAd,4BAAc,CAAd,2BAAc,CAAd,cAAc,CAAd,mBAAc,CAAd,qBAAc,CAAd,sBAAc,CAAd,uBAAc,CAAd,iBAAc,CAAd,0BAAc,CAAd,2BAAc,CAAd,mCAAc,CAAd,iCAAc,CAAd,0BAAc,CAAd,qBAAc,CAAd,6BAAc,CAAd,WAAc,CAAd,iBAAc,CAAd,eAAc,CAAd,gBAAc,CAAd,iBAAc,CAAd,aAAc,CAAd,eAAc,CAAd,YAAc,CAAd,kBAAc,CAAd,oBAAc,CAAd,0BAAc,CAAd,wBAAc,CAAd,yBAAc,CAAd,0BAAc,CAAd,sBAAc,CAAd,uBAAc,CAAd,wBAAc,CAAd,qBAAc,CAAd,mBAAc,CAAd,qBAAc,CAAd,oBAAc,CAAd,oBAAc,CAAd,WAAA,uBAAc,CAAd,uBAAc,CAAd,kBAAc,CAAd,kBAAc,CAAd,aAAc,CAAd,aAAc,CAAd,aAAc,CAAd,cAAc,CAAd,cAAc,CAAd,YAAc,CAAd,YAAc,CAAd,iBAAc,CAAd,qCAAc,CAAd,6BAAc,CAAd,4BAAc,CAAd,2BAAc,CAAd,cAAc,CAAd,mBAAc,CAAd,qBAAc,CAAd,sBAAc,CAAd,uBAAc,CAAd,iBAAc,CAAd,0BAAc,CAAd,2BAAc,CAAd,mCAAc,CAAd,iCAAc,CAAd,0BAAc,CAAd,qBAAc,CAAd,6BAAc,CAAd,WAAc,CAAd,iBAAc,CAAd,eAAc,CAAd,gBAAc,CAAd,iBAAc,CAAd,aAAc,CAAd,eAAc,CAAd,YAAc,CAAd,kBAAc,CAAd,oBAAc,CAAd,0BAAc,CAAd,wBAAc,CAAd,yBAAc,CAAd,0BAAc,CAAd,sBAAc,CAAd,uBAAc,CAAd,wBAAc,CAAd,qBAAc,CAAd,mBAAc,CAAd,qBAAc,CAAd,oBAAc,CAAd,oBAAc,CAAd,gEAAc,CAAd,iBAAA,sBAAc,CAAd,qBAAc,CAAd,eAAA,eAAc,CAAd,WAAA,eAAc,CAAd,6BAAc,CAAd,gHAAc,CAAd,4BAAc,CAAd,8BAAc,CAAd,eAAc,CAAd,aAAc,CAAd,UAAc,CAAd,uCAAc,CAAd,KAAA,mBAAc,CAAd,QAAc,CAAd,GAAA,oBAAc,CAAd,aAAc,CAAd,QAAc,CAAd,oBAAA,wCAAc,CAAd,gCAAc,CAAd,kBAAA,iBAAc,CAAd,mBAAc,CAAd,EAAA,aAAc,CAAd,uBAAc,CAAd,SAAA,kBAAc,CAAd,kBAAA,mGAAc,CAAd,4BAAc,CAAd,aAAc,CAAd,8BAAc,CAAd,MAAA,aAAc,CAAd,QAAA,aAAc,CAAd,aAAc,CAAd,iBAAc,CAAd,uBAAc,CAAd,IAAA,aAAc,CAAd,IAAA,SAAc,CAAd,MAAA,wBAAc,CAAd,oBAAc,CAAd,aAAc,CAAd,sCAAA,aAAc,CAAd,mBAAc,CAAd,6BAAc,CAAd,cAAc,CAAd,+BAAc,CAAd,mBAAc,CAAd,sBAAc,CAAd,mBAAc,CAAd,QAAc,CAAd,SAAc,CAAd,cAAA,mBAAc,CAAd,uFAAA,yBAAc,CAAd,4BAAc,CAAd,qBAAc,CAAd,gBAAA,YAAc,CAAd,iBAAA,eAAc,CAAd,SAAA,uBAAc,CAAd,wDAAA,WAAc,CAAd,cAAA,4BAAc,CAAd,mBAAc,CAAd,4BAAA,uBAAc,CAAd,6BAAA,yBAAc,CAAd,YAAc,CAAd,QAAA,iBAAc,CAAd,mDAAA,QAAc,CAAd,SAAA,QAAc,CAAd,gBAAA,SAAc,CAAd,WAAA,eAAc,CAAd,QAAc,CAAd,SAAc,CAAd,OAAA,SAAc,CAAd,SAAA,eAAc,CAAd,mDAAA,aAAc,CAAd,SAAc,CAAd,yCAAA,aAAc,CAAd,SAAc,CAAd,qBAAA,cAAc,CAAd,UAAA,cAAc,CAAd,+CAAA,aAAc,CAAd,qBAAc,CAAd,UAAA,WAAc,CAAd,cAAc,CAAd,2CAAA,YAAc,CAAd,uNAAA,uBAAc,CAAd,oBAAc,CAAd,eAAc,CAAd,qBAAc,CAAd,oBAAc,CAAd,eAAc,CAAd,gBAAc,CAAd,cAAc,CAAd,kBAAc,CAAd,oBAAc,CAAd,qBAAc,CAAd,uTAAA,6BAAc,CAAd,kBAAc,CAAd,2CAAc,CAAd,0BAAc,CAAd,2BAAc,CAAd,uBAAc,CAAd,0GAAc,CAAd,wGAAc,CAAd,oBAAc,CAAd,8EAAc,CAAd,mDAAA,aAAc,CAAd,SAAc,CAAd,yCAAA,aAAc,CAAd,SAAc,CAAd,uCAAA,SAAc,CAAd,8BAAA,gBAAc,CAAd,kBAAc,CAAd,wBAAA,mBAAc,CAAd,+TAAA,gBAAc,CAAd,aAAc,CAAd,OAAA,wDAAc,CAAd,sCAAc,CAAd,2BAAc,CAAd,2BAAc,CAAd,oBAAc,CAAd,gCAAc,CAAd,wBAAc,CAAd,gDAAA,qBAAc,CAAd,uBAAc,CAAd,uBAAc,CAAd,uBAAc,CAAd,oBAAc,CAAd,gCAAc,CAAd,wBAAc,CAAd,6BAAA,uBAAc,CAAd,oBAAc,CAAd,eAAc,CAAd,qBAAc,CAAd,4BAAc,CAAd,oBAAc,CAAd,gBAAc,CAAd,aAAc,CAAd,oBAAc,CAAd,aAAc,CAAd,WAAc,CAAd,SAAc,CAAd,gCAAc,CAAd,wBAAc,CAAd,wBAAc,CAAd,qBAAc,CAAd,gBAAc,CAAd,qBAAc,CAAd,UAAc,CAAd,qBAAc,CAAd,gBAAA,eAAc,CAAd,aAAA,kBAAc,CAAd,yCAAA,6BAAc,CAAd,kBAAc,CAAd,2CAAc,CAAd,0BAAc,CAAd,2BAAc,CAAd,uBAAc,CAAd,0GAAc,CAAd,wGAAc,CAAd,8EAAc,CAAd,6CAAA,6BAAc,CAAd,uBAAc,CAAd,2BAAc,CAAd,yBAAc,CAAd,wBAAc,CAAd,wBAAA,wDAAc,CAAd,+BAAA,wBAAA,uBAAc,CAAd,oBAAc,CAAd,eAAc,CAAA,CAAd,qBAAA,wDAAc,CAAd,+BAAA,qBAAA,uBAAc,CAAd,oBAAc,CAAd,eAAc,CAAA,CAAd,kHAAA,6BAAc,CAAd,wBAAc,CAAd,8BAAA,6BAAc,CAAd,wDAAc,CAAd,uBAAc,CAAd,2BAAc,CAAd,yBAAc,CAAd,wBAAc,CAAd,+BAAA,8BAAA,uBAAc,CAAd,oBAAc,CAAd,eAAc,CAAA,CAAd,wEAAA,6BAAc,CAAd,wBAAc,CAAd,YAAA,gBAAc,CAAd,oBAAc,CAAd,eAAc,CAAd,cAAc,CAAd,eAAc,CAAd,mBAAc,CAAd,SAAc,CAAd,kBAAA,4BAAc,CAAd,yCAAc,CACd,WAAA,UAAoB,CAApB,yBAAA,WAAA,eAAoB,CAAA,CACpB,OAAA,cAAmB,CAAnB,UAAA,iBAAmB,CAAnB,UAAA,iBAAmB,CAAnB,SAAA,OAAmB,CAAnB,WAAA,QAAmB,CAAnB,KAAmB,CAAnB,QAAA,MAAmB,CAAnB,UAAA,QAAmB,CAAnB,MAAA,UAAmB,CAAnB,UAAA,oBAAmB,CAAnB,qBAAmB,CAAnB,UAAA,sBAAmB,CAAnB,mBAAmB,CAAnB,SAAA,mBAAmB,CAAnB,oBAAmB,CAAnB,SAAA,gBAAmB,CAAnB,iBAAmB,CAAnB,SAAA,qBAAmB,CAAnB,kBAAmB,CAAnB,MAAA,kBAAmB,CAAnB,eAAmB,CAAnB,OAAA,mBAAmB,CAAnB,UAAA,mBAAmB,CAAnB,MAAA,mBAAmB,CAAnB,MAAA,kBAAmB,CAAnB,MAAA,oBAAmB,CAAnB,MAAA,kBAAmB,CAAnB,MAAA,iBAAmB,CAAnB,SAAA,gBAAmB,CAAnB,SAAA,oBAAmB,CAAnB,MAAA,kBAAmB,CAAnB,MAAA,iBAAmB,CAAnB,OAAA,iBAAmB,CAAnB,MAAA,gBAAmB,CAAnB,MAAA,iBAAmB,CAAnB,MAAA,eAAmB,CAAnB,MAAA,kBAAmB,CAAnB,OAAA,aAAmB,CAAnB,MAAA,YAAmB,CAAnB,aAAA,mBAAmB,CAAnB,OAAA,aAAmB,CAAnB,QAAA,YAAmB,CAAnB,QAAA,cAAmB,CAAnB,KAAA,aAAmB,CAAnB,QAAA,cAAmB,CAAnB,KAAA,WAAmB,CAAnB,QAAA,WAAmB,CAAnB,YAAA,eAAmB,CAAnB,QAAA,aAAmB,CAAnB,KAAA,YAAmB,CAAnB,QAAA,aAAmB,CAAnB,KAAA,UAAmB,CAAnB,QAAA,UAAmB,CAAnB,YAAA,cAAmB,CAAnB,WAAA,eAAmB,CAAnB,WAAA,6LAAmB,CAAnB,gBAAA,GAAA,uBAAmB,CAAA,CAAnB,cAAA,iCAAmB,CAAnB,gBAAA,cAAmB,CAAnB,WAAA,oBAAmB,CAAnB,cAAA,kBAAmB,CAAnB,aAAA,wBAAmB,CAAnB,gBAAA,sBAAmB,CAAnB,iBAAA,6BAAmB,CAAnB,yCAAA,sBAAmB,CAAnB,wDAAmB,CAAnB,mDAAmB,CAAnB,yCAAA,sBAAmB,CAAnB,sDAAmB,CAAnB,iDAAmB,CAAnB,0CAAA,sBAAmB,CAAnB,oDAAmB,CAAnB,uDAAmB,CAAnB,yCAAA,sBAAmB,CAAnB,oDAAmB,CAAnB,uDAAmB,CAAnB,wCAAA,uBAAmB,CAAnB,wDAAmB,CAAnB,2DAAmB,CAAnB,+CAAA,qBAAmB,CAAnB,wDAAmB,CAAnB,+CAAA,qBAAmB,CAAnB,wDAAmB,CAAnB,iBAAA,eAAmB,CAAnB,iBAAA,eAAmB,CAAnB,mBAAA,kBAAmB,CAAnB,gBAAA,eAAmB,CAAnB,YAAA,mBAAmB,CAAnB,YAAA,qBAAmB,CAAnB,QAAA,gBAAmB,CAAnB,UAAA,gBAAmB,CAAnB,iBAAA,qBAAmB,CAAnB,wDAAmB,CAAnB,sBAAA,0CAAmB,CAAnB,gBAAA,qBAAmB,CAAnB,wDAAmB,CAAnB,oBAAA,wBAAmB,CAAnB,cAAA,+BAAmB,CAAnB,YAAA,iBAAmB,CAAnB,wDAAmB,CAAnB,aAAA,iBAAmB,CAAnB,wDAAmB,CAAnB,iBAAA,wCAAmB,CAAnB,WAAA,iBAAmB,CAAnB,wDAAmB,CAAnB,UAAA,iBAAmB,CAAnB,wDAAmB,CAAnB,QAAA,eAAmB,CAAnB,KAAA,YAAmB,CAAnB,MAAA,mBAAmB,CAAnB,oBAAmB,CAAnB,MAAA,iBAAmB,CAAnB,kBAAmB,CAAnB,MAAA,qBAAmB,CAAnB,kBAAmB,CAAnB,MAAA,oBAAmB,CAAnB,iBAAmB,CAAnB,SAAA,sBAAmB,CAAnB,mBAAmB,CAAnB,MAAA,mBAAmB,CAAnB,gBAAmB,CAAnB,MAAA,sBAAmB,CAAnB,mBAAmB,CAAnB,SAAA,sBAAmB,CAAnB,MAAA,mBAAmB,CAAnB,OAAA,iBAAmB,CAAnB,SAAA,oBAAmB,CAAnB,MAAA,mBAAmB,CAAnB,MAAA,iBAAmB,CAAnB,MAAA,oBAAmB,CAAnB,SAAA,qBAAmB,CAAnB,MAAA,mBAAmB,CAAnB,MAAA,oBAAmB,CAAnB,MAAA,mBAAmB,CAAnB,WAAA,eAAmB,CAAnB,aAAA,iBAAmB,CAAnB,YAAA,4BAAmB,CAAnB,UAAA,gBAAmB,CAAnB,gBAAmB,CAAnB,SAAA,kBAAmB,CAAnB,mBAAmB,CAAnB,SAAA,iBAAmB,CAAnB,mBAAmB,CAAnB,SAAA,gBAAmB,CAAnB,gBAAmB,CAAnB,aAAA,eAAmB,CAAnB,eAAA,eAAmB,CAAnB,WAAA,kBAAmB,CAAnB,eAAA,mBAAmB,CAAnB,+CAAmB,CAAnB,eAAA,mBAAmB,CAAnB,4CAAmB,CAAnB,eAAA,mBAAmB,CAAnB,4CAAmB,CAAnB,gBAAA,mBAAmB,CAAnB,6CAAmB,CAAnB,gBAAA,mBAAmB,CAAnB,6CAAmB,CAAnB,mBAAA,6BAAmB,CAAnB,cAAA,mBAAmB,CAAnB,6CAAmB,CAAnB,cAAA,mBAAmB,CAAnB,6CAAmB,CAAnB,cAAA,mBAAmB,CAAnB,6CAAmB,CAAnB,cAAA,mBAAmB,CAAnB,6CAAmB,CAAnB,YAAA,mBAAmB,CAAnB,+CAAmB,CAAnB,uCAAA,0BAAmB,CAAnB,sDAAmB,CAAnB,kCAAA,0BAAmB,CAAnB,sDAAmB,CAAnB,QAAA,oEAAmB,CAAnB,4FAAmB,CAAnB,mBAAA,kGAAmB,CAAnB,WAAA,yEAAmB,CAAnB,iGAAmB,CAAnB,WAAA,uCAAmB,CAAnB,sDAAmB,CAAnB,sBAAA,kGAAmB,CAAnB,WAAA,0EAAmB,CAAnB,kGAAmB,CAAnB,QAAA,0GAAmB,CAAnB,wGAAmB,CAAnB,wFAAmB,CAAnB,YAAA,mBAAmB,CAAnB,mDAAmB,CAAnB,gBAAA,sBAAmB,CAAnB,QAAA,gLAAmB,CAFnB,8CAAA,mBAGA,CAHA,+CAGA,CAHA,yCAAA,mBAGA,CAHA,+CAGA,CAHA,yBAAA,iBAGA,CAHA,wDAGA,CAHA,2BAAA,iBAGA,CAHA,wDAGA,CAHA,+BAAA,8CAGA,CAHA,yBAAA,iBAGA,CAHA,wDAGA,CAHA,mCAAA,0CAGA,CAHA,6BAAA,qBAGA,CAHA,sDAGA,CAHA,2BAAA,6BAGA,CAHA,kBAGA,CAHA,qBAAA,0GAGA,CAHA,wGAGA,CAHA,wFAGA,CAHA,6BAAA,mBAGA,CAHA,uDAGA,CAHA,iCAAA,6CAGA,CAHA,2BAAA,mBAGA,CAHA,uDAGA,CAHA,2BAAA,mBAGA,CAHA,uDAGA,CAHA,4BAAA,0BAGA,CAHA,mCAAA,8BAGA,CAHA,iCAAA,8BAGA,CAHA,uCAAA,kBAGA,CAHA,+BAAA,iBAGA,CAHA,wDAGA,CAHA,+BAAA,UAGA,CAHA,yBAAA,UAAA,kBAGA,CAHA,eAGA,CAHA,UAAA,YAGA,CAHA,WAAA,aAGA,CAHA,UAAA,YAGA,CAHA,YAAA,YAGA,CAHA,UAAA,UAGA,CAHA,UAAA,UAGA,CAHA,iBAAA,WAGA,CAHA,iBAAA,WAGA,CAHA,iBAAA,WAGA,CAHA,iBAAA,WAGA,CAHA,YAAA,UAGA,CAHA,qBAAA,eAGA,CAHA,qBAAA,eAGA,CAHA,oBAAA,aAGA,CAHA,YAAA,WAGA,CAHA,eAAA,SAGA,CAHA,cAAA,qBAGA,CAHA,kBAAA,kBAGA,CAHA,6CAAA,sBAGA,CAHA,uDAGA,CAHA,kDAGA,CAHA,6CAAA,sBAGA,CAHA,iDAGA,CAHA,oDAGA,CAHA,6CAAA,sBAGA,CAHA,oDAGA,CAHA,uDAGA,CAHA,SAAA,SAGA,CAHA,SAAA,cAGA,CAHA,UAAA,mBAGA,CAHA,aAAA,iBAGA,CAHA,mBAGA,CAAA",sourceRoot:""}]);const g=A},314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(a[c]=!0)}for(var u=0;u<e.length;u++){var l=[].concat(e[u]);r&&a[l[0]]||(void 0!==i&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),t.push(l))}},t}},417:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},354:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),i="/*# ".concat(o," */");return[t].concat([i]).join("\n")}return[t].join("\n")}},402:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Children:()=>w,Component:()=>r.uA,Fragment:()=>r.FK,PureComponent:()=>A,StrictMode:()=>ae,Suspense:()=>_,SuspenseList:()=>k,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>K,cloneElement:()=>te,createContext:()=>r.q6,createElement:()=>r.n,createFactory:()=>J,createPortal:()=>P,createRef:()=>r._3,default:()=>ce,findDOMNode:()=>re,flushSync:()=>ie,forwardRef:()=>h,hydrate:()=>F,isElement:()=>se,isFragment:()=>Z,isMemo:()=>ee,isValidElement:()=>Q,lazy:()=>B,memo:()=>m,render:()=>R,startTransition:()=>u,unmountComponentAtNode:()=>ne,unstable_batchedUpdates:()=>oe,useCallback:()=>o.hb,useContext:()=>o.NT,useDebugValue:()=>o.MN,useDeferredValue:()=>l,useEffect:()=>o.vJ,useErrorBoundary:()=>o.Md,useId:()=>o.Bi,useImperativeHandle:()=>o.Yn,useInsertionEffect:()=>d,useLayoutEffect:()=>o.Nf,useMemo:()=>o.Kr,useReducer:()=>o.WO,useRef:()=>o.li,useState:()=>o.J0,useSyncExternalStore:()=>s,useTransition:()=>f,version:()=>X});var r=n(172),o=n(994);function i(e,t){for(var n in t)e[n]=t[n];return e}function a(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function s(e,t){var n=t(),r=(0,o.J0)({t:{__:n,u:t}}),i=r[0].t,a=r[1];return(0,o.Nf)((function(){i.__=n,i.u=t,c(i)&&a({t:i})}),[e,n,t]),(0,o.vJ)((function(){return c(i)&&a({t:i}),e((function(){c(i)&&a({t:i})}))}),[e]),n}function c(e){var t,n,r=e.u,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}function u(e){e()}function l(e){return e}function f(){return[!1,u]}var d=o.Nf;function A(e,t){this.props=e,this.context=t}function m(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:a(this.props,e)}function o(t){return this.shouldComponentUpdate=n,(0,r.n)(e,t)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(A.prototype=new r.uA).isPureReactComponent=!0,A.prototype.shouldComponentUpdate=function(e,t){return a(this.props,e)||a(this.state,t)};var p=r.fF.__b;r.fF.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),p&&p(e)};var $="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function h(e){function t(t){var n=i({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=$,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var g=function(e,t){return null==e?null:(0,r.v2)((0,r.v2)(e).map(t))},w={map:g,forEach:g,count:function(e){return e?(0,r.v2)(e).length:0},only:function(e){var t=(0,r.v2)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:r.v2},y=r.fF.__e;r.fF.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);y(e,t,n,r)};var b=r.fF.unmount;function v(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=i({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return v(e,t,n)}))),e}function C(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return C(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function _(){this.__u=0,this.o=null,this.__b=null}function x(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function B(e){var t,n,o;function i(i){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){o=e})),o)throw o;if(!n)throw t;return(0,r.n)(n,i)}return i.displayName="Lazy",i.__f=!0,i}function k(){this.i=null,this.l=null}r.fF.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),b&&b(e)},(_.prototype=new r.uA).__c=function(e,t){var n=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(n);var o=x(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=C(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},_.prototype.componentWillUnmount=function(){this.o=[]},_.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=v(this.__b,n,o.__O=o.__P)}this.__b=null}var i=t.__a&&(0,r.n)(r.FK,null,e.fallback);return i&&(i.__u&=-33),[(0,r.n)(r.FK,null,t.__a?null:e.children),i]};var S=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function E(e){return this.getChildContext=function(){return e.context},e.children}function N(e){var t=this,n=e.h;t.componentWillUnmount=function(){(0,r.XX)(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.h.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.h.insertBefore(e,n)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}),(0,r.XX)((0,r.n)(E,{context:t.context},e.__v),t.v)}function P(e,t){var n=(0,r.n)(N,{__v:e,h:t});return n.containerInfo=t,n}(k.prototype=new r.uA).__a=function(e){var t=this,n=x(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),S(t,e,r)):o()};n?n(i):i()}},k.prototype.render=function(e){this.i=null,this.l=new Map;var t=(0,r.v2)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},k.prototype.componentDidUpdate=k.prototype.componentDidMount=function(){var e=this;this.l.forEach((function(t,n){S(e,n,t)}))};var I="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,M=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,O=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,T=/[A-Z0-9]/g,D="undefined"!=typeof document,j=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function R(e,t,n){return null==t.__k&&(t.textContent=""),(0,r.XX)(e,t),"function"==typeof n&&n(),e?e.__c:null}function F(e,t,n){return(0,r.Qv)(e,t),"function"==typeof n&&n(),e?e.__c:null}r.uA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(r.uA.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var G=r.fF.event;function H(){}function L(){return this.cancelBubble}function U(){return this.defaultPrevented}r.fF.event=function(e){return G&&(e=G(e)),e.persist=H,e.isPropagationStopped=L,e.isDefaultPrevented=U,e.nativeEvent=e};var z,q={enumerable:!1,configurable:!0,get:function(){return this.class}},W=r.fF.vnode;r.fF.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,o={},i=-1===n.indexOf("-");for(var a in t){var s=t[a];if(!("value"===a&&"defaultValue"in t&&null==s||D&&"children"===a&&"noscript"===n||"class"===a||"className"===a)){var c=a.toLowerCase();"defaultValue"===a&&"value"in t&&null==t.value?a="value":"download"===a&&!0===s?s="":"translate"===c&&"no"===s?s=!1:"o"===c[0]&&"n"===c[1]?"ondoubleclick"===c?a="ondblclick":"onchange"!==c||"input"!==n&&"textarea"!==n||j(t.type)?"onfocus"===c?a="onfocusin":"onblur"===c?a="onfocusout":O.test(a)&&(a=c):c=a="oninput":i&&M.test(a)?a=a.replace(T,"-$&").toLowerCase():null===s&&(s=void 0),"oninput"===c&&o[a=c]&&(a="oninputCapture"),o[a]=s}}"select"==n&&o.multiple&&Array.isArray(o.value)&&(o.value=(0,r.v2)(t.children).forEach((function(e){e.props.selected=-1!=o.value.indexOf(e.props.value)}))),"select"==n&&null!=o.defaultValue&&(o.value=(0,r.v2)(t.children).forEach((function(e){e.props.selected=o.multiple?-1!=o.defaultValue.indexOf(e.props.value):o.defaultValue==e.props.value}))),t.class&&!t.className?(o.class=t.class,Object.defineProperty(o,"className",q)):(t.className&&!t.class||t.class&&t.className)&&(o.class=o.className=t.className),e.props=o}(e),e.$$typeof=I,W&&W(e)};var Y=r.fF.__r;r.fF.__r=function(e){Y&&Y(e),z=e.__c};var V=r.fF.diffed;r.fF.diffed=function(e){V&&V(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),z=null};var K={ReactCurrentDispatcher:{current:{readContext:function(e){return z.__n[e.__c].props.value},useCallback:o.hb,useContext:o.NT,useDebugValue:o.MN,useDeferredValue:l,useEffect:o.vJ,useId:o.Bi,useImperativeHandle:o.Yn,useInsertionEffect:d,useLayoutEffect:o.Nf,useMemo:o.Kr,useReducer:o.WO,useRef:o.li,useState:o.J0,useSyncExternalStore:s,useTransition:f}}},X="18.3.1";function J(e){return r.n.bind(null,e)}function Q(e){return!!e&&e.$$typeof===I}function Z(e){return Q(e)&&e.type===r.FK}function ee(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function te(e){return Q(e)?r.Ob.apply(null,arguments):e}function ne(e){return!!e.__k&&((0,r.XX)(null,e),!0)}function re(e){return e&&(e.base||1===e.nodeType&&e)||null}var oe=function(e,t){return e(t)},ie=function(e,t){return e(t)},ae=r.FK,se=Q,ce={useState:o.J0,useId:o.Bi,useReducer:o.WO,useEffect:o.vJ,useLayoutEffect:o.Nf,useInsertionEffect:d,useTransition:f,useDeferredValue:l,useSyncExternalStore:s,startTransition:u,useRef:o.li,useImperativeHandle:o.Yn,useMemo:o.Kr,useCallback:o.hb,useContext:o.NT,useDebugValue:o.MN,version:"18.3.1",Children:w,render:R,hydrate:F,unmountComponentAtNode:ne,createPortal:P,createElement:r.n,createContext:r.q6,createFactory:J,cloneElement:te,createRef:r._3,Fragment:r.FK,isValidElement:Q,isElement:se,isFragment:Z,isMemo:ee,findDOMNode:re,Component:r.uA,PureComponent:A,memo:m,forwardRef:h,flushSync:ie,unstable_batchedUpdates:oe,StrictMode:ae,Suspense:_,SuspenseList:k,lazy:B,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:K}},172:(e,t,n)=>{"use strict";n.d(t,{FK:()=>_,Ob:()=>W,Qv:()=>q,XX:()=>z,_3:()=>C,fF:()=>o,h:()=>b,n:()=>b,q6:()=>Y,uA:()=>x,v2:()=>M});var r,o,i,a,s,c,u,l,f,d,A,m,p={},$=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,g=Array.isArray;function w(e,t){for(var n in t)e[n]=t[n];return e}function y(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function b(e,t,n){var o,i,a,s={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return v(e,s,o,i,null)}function v(e,t,n,r,a){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==a?++i:a,__i:-1,__u:0};return null==a&&null!=o.vnode&&o.vnode(s),s}function C(){return{current:null}}function _(e){return e.children}function x(e,t){this.props=e,this.context=t}function B(e,t){if(null==t)return e.__?B(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?B(e):null}function k(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return k(e)}}function S(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!E.__r++||s!==o.debounceRendering)&&((s=o.debounceRendering)||c)(E)}function E(){var e,t,n,r,i,s,c,l;for(a.sort(u);e=a.shift();)e.__d&&(t=a.length,r=void 0,s=(i=(n=e).__v).__e,c=[],l=[],n.__P&&((r=w({},i)).__v=i.__v+1,o.vnode&&o.vnode(r),R(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[s]:null,c,null==s?B(i):s,!!(32&i.__u),l),r.__v=i.__v,r.__.__k[r.__i]=r,F(c,r,l),r.__e!=s&&k(r)),a.length>t&&a.sort(u));E.__r=0}function N(e,t,n,r,o,i,a,s,c,u,l){var f,d,A,m,h,g,w=r&&r.__k||$,y=t.length;for(c=P(n,t,w,c,y),f=0;f<y;f++)null!=(A=n.__k[f])&&(d=-1===A.__i?p:w[A.__i]||p,A.__i=f,g=R(e,A,d,o,i,a,s,c,u,l),m=A.__e,A.ref&&d.ref!=A.ref&&(d.ref&&H(d.ref,null,A),l.push(A.ref,A.__c||m,A)),null==h&&null!=m&&(h=m),4&A.__u||d.__k===A.__k?c=I(A,c,e):"function"==typeof A.type&&void 0!==g?c=g:m&&(c=m.nextSibling),A.__u&=-7);return n.__e=h,c}function P(e,t,n,r,o){var i,a,s,c,u,l=n.length,f=l,d=0;for(e.__k=new Array(o),i=0;i<o;i++)null!=(a=t[i])&&"boolean"!=typeof a&&"function"!=typeof a?(c=i+d,(a=e.__k[i]="string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?v(null,a,null,null,null):g(a)?v(_,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?v(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,-1!==(u=a.__i=O(a,n,c,f))&&(f--,(s=n[u])&&(s.__u|=2)),null==s||null===s.__v?(-1==u&&d--,"function"!=typeof a.type&&(a.__u|=4)):u!=c&&(u==c-1?d--:u==c+1?d++:(u>c?d--:d++,a.__u|=4))):e.__k[i]=null;if(f)for(i=0;i<l;i++)null!=(s=n[i])&&!(2&s.__u)&&(s.__e==r&&(r=B(s)),L(s,s));return r}function I(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=I(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=B(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function M(e,t){return t=t||[],null==e||"boolean"==typeof e||(g(e)?e.some((function(e){M(e,t)})):t.push(e)),t}function O(e,t,n,r){var o,i,a=e.key,s=e.type,c=t[n];if(null===c||c&&a==c.key&&s===c.type&&!(2&c.__u))return n;if(r>(null==c||2&c.__u?0:1))for(o=n-1,i=n+1;o>=0||i<t.length;){if(o>=0){if((c=t[o])&&!(2&c.__u)&&a==c.key&&s===c.type)return o;o--}if(i<t.length){if((c=t[i])&&!(2&c.__u)&&a==c.key&&s===c.type)return i;i++}}return-1}function T(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||h.test(t)?n:n+"px"}function D(e,t,n,r,o){var i;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||T(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||T(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])i=t!=(t=t.replace(l,"$1")),t=t.toLowerCase()in e||"onFocusOut"==t||"onFocusIn"==t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=f,e.addEventListener(t,i?A:d,i)):e.removeEventListener(t,i?A:d,i);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function j(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=f++;else if(t.t<n.u)return;return n(o.event?o.event(t):t)}}}function R(e,t,n,r,i,a,s,c,u,l){var f,d,A,m,p,$,h,b,v,C,B,k,S,E,P,I,M,O=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(u=!!(32&n.__u),a=[c=t.__e=n.__e]),(f=o.__b)&&f(t);e:if("function"==typeof O)try{if(b=t.props,v="prototype"in O&&O.prototype.render,C=(f=O.contextType)&&r[f.__c],B=f?C?C.props.value:f.__:r,n.__c?h=(d=t.__c=n.__c).__=d.__E:(v?t.__c=d=new O(b,B):(t.__c=d=new x(b,B),d.constructor=O,d.render=U),C&&C.sub(d),d.props=b,d.state||(d.state={}),d.context=B,d.__n=r,A=d.__d=!0,d.__h=[],d._sb=[]),v&&null==d.__s&&(d.__s=d.state),v&&null!=O.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=w({},d.__s)),w(d.__s,O.getDerivedStateFromProps(b,d.__s))),m=d.props,p=d.state,d.__v=t,A)v&&null==O.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),v&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(v&&null==O.getDerivedStateFromProps&&b!==m&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(b,B),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(b,d.__s,B)||t.__v==n.__v)){for(t.__v!=n.__v&&(d.props=b,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some((function(e){e&&(e.__=t)})),k=0;k<d._sb.length;k++)d.__h.push(d._sb[k]);d._sb=[],d.__h.length&&s.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(b,d.__s,B),v&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(m,p,$)}))}if(d.context=B,d.props=b,d.__P=e,d.__e=!1,S=o.__r,E=0,v){for(d.state=d.__s,d.__d=!1,S&&S(t),f=d.render(d.props,d.state,d.context),P=0;P<d._sb.length;P++)d.__h.push(d._sb[P]);d._sb=[]}else do{d.__d=!1,S&&S(t),f=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++E<25);d.state=d.__s,null!=d.getChildContext&&(r=w(w({},r),d.getChildContext())),v&&!A&&null!=d.getSnapshotBeforeUpdate&&($=d.getSnapshotBeforeUpdate(m,p)),c=N(e,g(I=null!=f&&f.type===_&&null==f.key?f.props.children:f)?I:[I],t,n,r,i,a,s,c,u,l),d.base=t.__e,t.__u&=-161,d.__h.length&&s.push(d),h&&(d.__E=d.__=null)}catch(e){if(t.__v=null,u||null!=a)if(e.then){for(t.__u|=u?160:128;c&&8==c.nodeType&&c.nextSibling;)c=c.nextSibling;a[a.indexOf(c)]=null,t.__e=c}else for(M=a.length;M--;)y(a[M]);else t.__e=n.__e,t.__k=n.__k;o.__e(e,t,n)}else null==a&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):c=t.__e=G(n.__e,t,n,r,i,a,s,u,l);return(f=o.diffed)&&f(t),128&t.__u?void 0:c}function F(e,t,n){for(var r=0;r<n.length;r++)H(n[r],n[++r],n[++r]);o.__c&&o.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){o.__e(e,t.__v)}}))}function G(e,t,n,i,a,s,c,u,l){var f,d,A,m,$,h,w,b=n.props,v=t.props,C=t.type;if("svg"==C?a="http://www.w3.org/2000/svg":"math"==C?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=s)for(f=0;f<s.length;f++)if(($=s[f])&&"setAttribute"in $==!!C&&(C?$.localName==C:3==$.nodeType)){e=$,s[f]=null;break}if(null==e){if(null==C)return document.createTextNode(v);e=document.createElementNS(a,C,v.is&&v),u&&(o.__m&&o.__m(t,s),u=!1),s=null}if(null===C)b===v||u&&e.data===v||(e.data=v);else{if(s=s&&r.call(e.childNodes),b=n.props||p,!u&&null!=s)for(b={},f=0;f<e.attributes.length;f++)b[($=e.attributes[f]).name]=$.value;for(f in b)if($=b[f],"children"==f);else if("dangerouslySetInnerHTML"==f)A=$;else if(!(f in v)){if("value"==f&&"defaultValue"in v||"checked"==f&&"defaultChecked"in v)continue;D(e,f,null,$,a)}for(f in v)$=v[f],"children"==f?m=$:"dangerouslySetInnerHTML"==f?d=$:"value"==f?h=$:"checked"==f?w=$:u&&"function"!=typeof $||b[f]===$||D(e,f,$,b[f],a);if(d)u||A&&(d.__html===A.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(A&&(e.innerHTML=""),N(e,g(m)?m:[m],t,n,i,"foreignObject"==C?"http://www.w3.org/1999/xhtml":a,s,c,s?s[0]:n.__k&&B(n,0),u,l),null!=s)for(f=s.length;f--;)y(s[f]);u||(f="value","progress"==C&&null==h?e.removeAttribute("value"):void 0!==h&&(h!==e[f]||"progress"==C&&!h||"option"==C&&h!==b[f])&&D(e,f,h,b[f],a),f="checked",void 0!==w&&w!==e[f]&&D(e,f,w,b[f],a))}return e}function H(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(e){o.__e(e,n)}}function L(e,t,n){var r,i;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||H(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){o.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&L(r[i],t,n||"function"!=typeof e.type);n||y(e.__e),e.__c=e.__=e.__e=void 0}function U(e,t,n){return this.constructor(e,n)}function z(e,t,n){var i,a,s,c;t==document&&(t=document.documentElement),o.__&&o.__(e,t),a=(i="function"==typeof n)?null:n&&n.__k||t.__k,s=[],c=[],R(t,e=(!i&&n||t).__k=b(_,null,[e]),a||p,p,t.namespaceURI,!i&&n?[n]:a?null:t.firstChild?r.call(t.childNodes):null,s,!i&&n?n:a?a.__e:t.firstChild,i,c),F(s,e,c)}function q(e,t){z(e,t,q)}function W(e,t,n){var o,i,a,s,c=w({},e.props);for(a in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)"key"==a?o=t[a]:"ref"==a?i=t[a]:c[a]=void 0===t[a]&&void 0!==s?s[a]:t[a];return arguments.length>2&&(c.children=arguments.length>3?r.call(arguments,2):n),v(e.type,c,o||e.key,i||e.ref,null)}function Y(e,t){var n={__c:t="__cC"+m++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.forEach((function(e){e.__e=!0,S(e)}))},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=$.slice,o={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},i=0,x.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=w({},this.state),"function"==typeof e&&(e=e(w({},n),this.props)),e&&w(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),S(this))},x.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),S(this))},x.prototype.render=_,a=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u=function(e,t){return e.__v.__b-t.__v.__b},E.__r=0,l=/(PointerCapture)$|Capture$/i,f=0,d=j(!1),A=j(!0),m=0},994:(e,t,n)=>{"use strict";n.d(t,{Bi:()=>E,J0:()=>g,Kr:()=>_,MN:()=>k,Md:()=>S,NT:()=>B,Nf:()=>b,WO:()=>w,Yn:()=>C,hb:()=>x,li:()=>v,vJ:()=>y});var r,o,i,a,s=n(172),c=0,u=[],l=s.fF,f=l.__b,d=l.__r,A=l.diffed,m=l.__c,p=l.unmount,$=l.__;function h(e,t){l.__h&&l.__h(o,e,c||t),c=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function g(e){return c=1,w(D,e)}function w(e,t,n){var i=h(r++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):D(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=o,!o.u)){var a=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(e){return!!e.__c}));if(r.every((function(e){return!e.__N})))return!s||s.call(this,e,t,n);var o=i.__c.props!==e;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}})),s&&s.call(this,e,t,n)||o};o.u=!0;var s=o.shouldComponentUpdate,c=o.componentWillUpdate;o.componentWillUpdate=function(e,t,n){if(this.__e){var r=s;s=void 0,a(e,t,n),s=r}c&&c.call(this,e,t,n)},o.shouldComponentUpdate=a}return i.__N||i.__}function y(e,t){var n=h(r++,3);!l.__s&&T(n.__H,t)&&(n.__=e,n.i=t,o.__H.__h.push(n))}function b(e,t){var n=h(r++,4);!l.__s&&T(n.__H,t)&&(n.__=e,n.i=t,o.__h.push(n))}function v(e){return c=5,_((function(){return{current:e}}),[])}function C(e,t,n){c=6,b((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function _(e,t){var n=h(r++,7);return T(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function x(e,t){return c=8,_((function(){return e}),t)}function B(e){var t=o.context[e.__c],n=h(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__}function k(e,t){l.useDebugValue&&l.useDebugValue(t?t(e):e)}function S(e){var t=h(r++,10),n=g();return t.__=e,o.componentDidCatch||(o.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function E(){var e=h(r++,11);if(!e.__){for(var t=o.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function N(){for(var e;e=u.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(M),e.__H.__h.forEach(O),e.__H.__h=[]}catch(t){e.__H.__h=[],l.__e(t,e.__v)}}l.__b=function(e){o=null,f&&f(e)},l.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),$&&$(e,t)},l.__r=function(e){d&&d(e),r=0;var t=(o=e.__c).__H;t&&(i===o?(t.__h=[],o.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(M),t.__h.forEach(O),t.__h=[],r=0)),i=o},l.diffed=function(e){A&&A(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==u.push(t)&&a===l.requestAnimationFrame||((a=l.requestAnimationFrame)||I)(N)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),i=o=null},l.__c=function(e,t){t.some((function(e){try{e.__h.forEach(M),e.__h=e.__h.filter((function(e){return!e.__||O(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],l.__e(n,e.__v)}})),m&&m(e,t)},l.unmount=function(e){p&&p(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{M(e)}catch(e){t=e}})),n.__H=void 0,t&&l.__e(t,n.__v))};var P="function"==typeof requestAnimationFrame;function I(e){var t,n=function(){clearTimeout(r),P&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);P&&(t=requestAnimationFrame(n))}function M(e){var t=o,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),o=t}function O(e){var t=o;e.__c=e.__(),o=t}function T(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function D(e,t){return"function"==typeof t?t(e):t}},694:(e,t,n)=>{"use strict";var r=n(925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},556:(e,t,n)=>{e.exports=n(694)()},925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},493:(e,t,n)=>{"use strict";var r=n(402),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,c=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,l=r[1];return s((function(){o.value=n,o.getSnapshot=t,u(o)&&l({inst:o})}),[e,n,t]),a((function(){return u(o)&&l({inst:o}),e((function(){u(o)&&l({inst:o})}))}),[e]),c(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},888:(e,t,n)=>{"use strict";e.exports=n(493)},666:(e,t,n)=>{"use strict";var r=n(402);function o(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function i(e){return null!=e&&"function"==typeof e.Dispose}function a(e){i(e)&&e.Dispose()}function s(e,t){return Object.getPrototypeOf(e)?.constructor===Object.getPrototypeOf(t)?.constructor}Symbol.iterator;class c{constructor(e){this.iter=e,this.current=null}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this.iter.next();return this.current=e.value,!e.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function u(e){return function(e){return null!=e&&"function"==typeof e.GetEnumerator}(e)?e.GetEnumerator():new c(e[Symbol.iterator]())}function l(e){return{next(){const t=e["System.Collections.IEnumerator.MoveNext"]();return{done:!t,value:t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0}}}}class f{constructor(e){this.factory=e,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function d(e,t){return e.toString(10).padStart(t,"0")}function A(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function m(e,t){return(e=e<0&&null!=t&&10!==t?65535+e+1:e).toString(t)}function p(e,t){return(e=e<0&&null!=t&&10!==t?4294967295+e+1:e).toString(t)}class ${static id(e){return $.idMap.has(e)||$.idMap.set(e,++$.count),$.idMap.get(e)}}function h(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function g(e){return 2654435761*e|0}function w(e){let t=0;const n=e.length;for(let r=0;r<n;r++)t=(t<<5)+t^e[r];return t}function y(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=b(e[r]);return w(n)}function b(e){if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return g(e);case"bigint":return function(e){return h(e.toString(32))}(e);case"string":return h(e);default:return function(e){return null!=e&&"function"==typeof e.GetHashCode}(e)?e.GetHashCode():o(e)?y(e):e instanceof Date?function(e){return e.getTime()}(e):Object.getPrototypeOf(e)?.constructor===Object?w(Object.values(e).map((e=>b(e)))):g($.id(e))}}function v(e,t,n){if(null==e)return null==t;if(null==t)return!1;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function C(e,t){return v(e,t,_)}function _(e,t){return e===t||(null==e?null==t:null!=t&&(function(e){return null!=e&&"function"==typeof e.Equals}(e)?e.Equals(t):o(e)?o(t)&&C(e,t):"object"==typeof e&&(e instanceof Date?t instanceof Date&&0===x(e,t):Object.getPrototypeOf(e)?.constructor===Object&&function(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let o=0;o<n.length;o++)if(n[o]!==r[o]||!_(e[n[o]],t[r[o]]))return!1;return!0}(e,t))))}function x(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+A(e),r=t.getTime()+A(t)),n===r?0:n<r?-1:1}function B(e,t){return e===t?0:e<t?-1:1}function k(e,t){return function(e,t,n){if(null==e)return null==t?0:1;if(null==t)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,o=0;r<e.length;r++)if(o=n(e[r],t[r]),0!==o)return o;return 0}(e,t,S)}function S(e,t){return e===t?0:null==e?null==t?0:-1:null==t?1:function(e){return null!=e&&"function"==typeof e.CompareTo}(e)?e.CompareTo(t):o(e)?o(t)?k(e,t):-1:"object"!=typeof e?e<t?-1:1:e instanceof Date?t instanceof Date?x(e,t):-1:Object.getPrototypeOf(e)?.constructor===Object?function(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let o=0,i=0;o<n.length;o++){const a=n[o];if(a!==r[o])return a<r[o]?-1:1;if(i=S(e[a],t[a]),0!==i)return i}return 0}(e,t):-1}function E(e){const t={};for(const n of e)t[n[0]]=n[1];return t}$.idMap=new WeakMap,$.count=0;const N=new WeakMap;function P(e){if(null==e)return null;const t=(t,n)=>e(t)(n);return N.set(t,e),t}function I(e){return N.get(e)??(t=>n=>e(t,n))}function M(e){if(null==e)return null;const t=(t,n,r)=>e(t)(n)(r);return N.set(t,e),t}function O(e){return N.get(e)??(t=>n=>r=>e(t,n,r))}function T(e,t=0){if(null!=e&&"object"==typeof e){if("function"==typeof e.toString)return e.toString();if(Symbol.iterator in e)return function(e){let t=0,n="[";for(const r of e){if(0===t)n+=T(r);else{if(100===t){n+="; ...";break}n+="; "+T(r)}t++}return n+"]"}(e);{const n=Object.getPrototypeOf(e)?.constructor;return n===Object&&t<10?"{ "+Object.entries(e).map((([e,n])=>e+" = "+T(n,t+1))).join("\n ")+" }":n?.name??""}}return String(e)}class D{get name(){return this.cases()[this.tag]}toJSON(){return 0===this.fields.length?this.name:[this.name].concat(this.fields)}toString(){return function(e,t){if(0===t.length)return e;{let n,r=!0;return 1===t.length?(n=T(t[0]),r=n.indexOf(" ")>=0):n=t.map((e=>T(e))).join(", "),e+(r?" (":" ")+n+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>b(e)));return e.splice(0,0,g(this.tag)),w(e)}Equals(e){return this===e||!!s(this,e)&&this.tag===e.tag&&C(this.fields,e.fields)}CompareTo(e){return this===e?0:s(this,e)?this.tag===e.tag?k(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class j{toJSON(){return function(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}(this)}toString(){return function(e){return"{ "+Object.entries(e).map((([e,t])=>e+" = "+T(t))).join("\n ")+" }"}(this)}GetHashCode(){return function(e){return w(Object.values(e).map((e=>b(e))))}(this)}Equals(e){return function(e,t){if(e===t)return!0;if(s(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!_(e[n[r]],t[n[r]]))return!1;return!0}return!1}(this,e)}CompareTo(e){return function(e,t){if(e===t)return 0;if(s(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=S(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}class R{get contents(){return this.getter()}set contents(e){this.setter(e)}constructor(e,t){"function"==typeof t?(this.getter=e,this.setter=t):(this.getter=()=>e,this.setter=t=>{e=t})}}class F{constructor(e){this.message=e}}function G(e){return function(e){return e instanceof F||e instanceof Error}(e)||function(e){return e instanceof Promise}(e)?e:new Error(String(e))}class H extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved"]}}class L extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Started","Finished"]}}class U{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return b(this.value)}Equals(e){return null!=e&&_(this.value,e instanceof U?e.value:e)}CompareTo(e){return null==e?1:S(this.value,e instanceof U?e.value:e)}}function z(e){if(null==e)throw new Error("Option has no value");return e instanceof U?e.value:e}function q(e){return null==e||e instanceof U?new U(e):e}function W(e){return null==e?void 0:e}function Y(e){return null==e?[]:[z(e)]}function V(e,t){return null!=e?z(e):t}function K(e,t){return null!=t?q(e(z(t))):void 0}const X=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],J=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Q=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Z=["January","February","March","April","May","June","July","August","September","October","November","December"];function ee(e,t,n){let r=0,o=t;for(;o<e.length&&e[o]===n;)o++,r++;return r}function te(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function ne(e,t){let n=t;const r=e[t];let o="",i=!1;for(;t<e.length;){const n=e[++t];if(n===r){i=!0;break}if("\\"===n){if(!(t<e.length))throw new Error("Invalid string format");o+=e[++t]}else o+=n}if(!i)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[o,t-n+1]}function re(e,t,n){let r=0,o=0,i="";const a=n?ce(e.getTime(),1):e;for(;r<t.length;){const e=t[r];switch(e){case"d":switch(o=ee(t,r,"d"),r+=o,o){case 1:i+=de(a);break;case 2:i+=d(de(a),2);break;case 3:i+=X[ge(a)];break;case 4:i+=J[ge(a)]}break;case"f":if(o=ee(t,r,"f"),r+=o,o<=3){const e=10**(3-o);i+=d(Math.floor(me(a)/e),o)}else o<=7&&(i+=(""+me(a)).padEnd(o,"0"));break;case"F":if(o=ee(t,r,"F"),r+=o,o<=3){const e=10**(3-o),t=Math.floor(me(a)/e);0!=t&&(i+=d(t,o))}else if(o<=7){const e=me(a);0!=e&&(i+=d(e,3))}break;case"g":o=ee(t,r,"g"),r+=o,o<=2&&(i+="A.D.");break;case"h":switch(o=ee(t,r,"h"),r+=o,o){case 1:i+=Ae(a)%12;break;case 2:i+=d(Ae(a)%12,2)}break;case"H":switch(o=ee(t,r,"H"),r+=o,o){case 1:i+=Ae(a);break;case 2:i+=d(Ae(a),2)}break;case"K":if(o=ee(t,r,"K"),r+=o,1===o)switch(oe(a)){case 1:i+="Z";break;case 2:i+=ie(-6e4*a.getTimezoneOffset())}break;case"m":switch(o=ee(t,r,"m"),r+=o,o){case 1:i+=pe(a);break;case 2:i+=d(pe(a),2)}break;case"M":switch(o=ee(t,r,"M"),r+=o,o){case 1:i+=$e(a);break;case 2:i+=d($e(a),2);break;case 3:i+=Q[$e(a)-1];break;case 4:i+=Z[$e(a)-1]}break;case"s":switch(o=ee(t,r,"s"),r+=o,o){case 1:i+=he(a);break;case 2:i+=d(he(a),2)}break;case"t":switch(o=ee(t,r,"t"),r+=o,o){case 1:i+=a.getHours()<12?"A":"P";break;case 2:i+=a.getHours()<12?"AM":"PM"}break;case"y":switch(o=ee(t,r,"y"),r+=o,o){case 1:i+=a.getFullYear()%100;break;case 2:i+=d(a.getFullYear()%100,2);break;case 3:i+=d(a.getFullYear(),3);break;case 4:i+=d(a.getFullYear(),4);break;case 5:i+=d(a.getFullYear(),5)}break;case"z":o=ee(t,r,"z"),r+=o;let s="";switch(oe(a)){case 1:s="+00:00";break;case 2:s=ie(-6e4*a.getTimezoneOffset());break;case 0:s=ie(-6e4*fe(a).getTimezoneOffset())}const c="-"===s[0]?"-":"+",u=parseInt(s.substring(1,3),10),l=parseInt(s.substring(4,6),10);switch(o){case 1:i+=`${c}${u}`;break;case 2:i+=`${c}${d(u,2)}`;break;default:i+=`${c}${d(u,2)}:${d(l,2)}`}break;case":":i+=":",r++;break;case"/":i+="/",r++;break;case"'":case'"':const[f,A]=ne(t,r);i+=f,r+=A;break;case"%":const m=te(t,r);if(!(m>=0&&m!=="%".charCodeAt(0)))throw new Error("Invalid format string");r+=2,i+=re(a,String.fromCharCode(m),n);break;case"\\":const p=te(t,r);if(!(p>=0))throw new Error("Invalid format string");r+=2,i+=String.fromCharCode(p);break;default:r++,i+=e}}return i}function oe(e){return e.kind||0}function ie(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+d(~~(e/36e5),2)+":"+d(n,2)}function ae(e,t){const n=e.toISOString();return"first"===t?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function se(e,t,n){return null!=e.offset?function(e,t){const n=new Date(e.getTime()+(e.offset??0));if("string"!=typeof t)return n.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+ie(e.offset??0);if(1!==t.length)return re(n,t,!0);switch(t){case"D":case"d":return ae(n,"first");case"T":case"t":return ae(n,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+ie(t)}(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}}(e,t):function(e,t){const n=1===e.kind;if("string"!=typeof t)return n?e.toUTCString():e.toLocaleString();if(1!==t.length)return re(e,t,n);switch(t){case"D":case"d":return n?ae(e,"first"):e.toLocaleDateString();case"T":case"t":return n?ae(e,"second"):e.toLocaleTimeString();case"O":case"o":return function(e,t){if(t)return e.toISOString();{const t=null==e.kind||2===e.kind;return d(e.getFullYear(),4)+"-"+d(e.getMonth()+1,2)+"-"+d(e.getDate(),2)+"T"+d(e.getHours(),2)+":"+d(e.getMinutes(),2)+":"+d(e.getSeconds(),2)+"."+d(e.getMilliseconds(),3)+(t?ie(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}(e,t)}function ce(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function ue(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}null!=e&&""!==e.trim()||t(),10===e.length&&"-"===e[4]&&"-"===e[7]&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(null!=o){let e,t=0;if(null!=o[2]){const e=o[2].split(":"),n=parseInt(e[0],10);t=3600*n+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=o[3]&&"PM"===o[3].toUpperCase()&&n<12&&(t+=720)}if(null!=o[4]){if(null!=o[1])e=new Date(o[1]+" UTC");else{const t=new Date;e=new Date(t.getUTCFullYear()+"/"+(t.getUTCMonth()+1)+"/"+t.getUTCDate())}if("Z"===o[4])r="Z";else{let e=60*parseInt(o[5],10)+parseInt(o[6]||"0",10);"-"===o[4][0]&&(e*=-1),r=e,t-=60*e}}else if(null!=o[1])e=new Date(o[1]);else{const t=new Date;e=new Date(t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate())}n=new Date(e.getTime()+1e3*t),n=new Date(n.getTime()+6e4*(n.getTimezoneOffset()-e.getTimezoneOffset()))}else t();isNaN(n.getTime())&&t()}return[n,r]}function le(e,t){try{return t.contents=function(e,t=!1){const[n,r]=ue(e),o=null!=r?t&&"Z"===r?1:2:0;return ce(n.getTime(),o)}(e),!0}catch(e){return!1}}function fe(e){return 2===e.kind?e:ce(e.getTime(),2)}function de(e){return 1===e.kind?e.getUTCDate():e.getDate()}function Ae(e){return 1===e.kind?e.getUTCHours():e.getHours()}function me(e){return 1===e.kind?e.getUTCMilliseconds():e.getMilliseconds()}function pe(e){return 1===e.kind?e.getUTCMinutes():e.getMinutes()}function $e(e){return(1===e.kind?e.getUTCMonth():e.getMonth())+1}function he(e){return 1===e.kind?e.getUTCSeconds():e.getSeconds()}function ge(e){return 1===e.kind?e.getUTCDay():e.getDay()}const we=Symbol("numeric");function ye(e){return"number"==typeof e||"bigint"==typeof e||e?.[we]}function be(e,t){return"number"==typeof e?e*t:"bigint"==typeof e?e*BigInt(t):e[we]().multiply(t)}function ve(e,t){return"number"==typeof e?e.toFixed(t):"bigint"==typeof e?e:e[we]().toFixed(t)}function Ce(e,t){return"number"==typeof e?e.toPrecision(t):"bigint"==typeof e?e:e[we]().toPrecision(t)}function _e(e,t){return"number"==typeof e?e.toExponential(t):"bigint"==typeof e?e:e[we]().toExponential(t)}function xe(e){return"number"==typeof e?(Number(e)>>>0).toString(16):"bigint"==typeof e?BigInt.asUintN(64,e).toString(16):e[we]().toHex()}function Be(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function ke(e,t,n=0){if(null==t)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let o,i=-1;for(;null!=(o=e.exec(t));)o.index===i?e.lastIndex++:(i=o.index,r.push(o));return r}const Se=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Ee=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Ne(e,t){return function(e,t){return"number"==typeof e||"bigint"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function Pe(e){return{input:e,cont:(t=e,e=>{Se.lastIndex=0;const n=[],r=[];let o=0,i=Se.exec(t);for(;i;){const e=i.index+(i[1]||"").length;n.push(t.substring(o,e).replace(/%%/g,"%")),r.push(i),o=Se.lastIndex,Se.lastIndex-=1,i=Se.exec(t)}return 0===n.length?e(t.replace(/%%/g,"%")):(n.push(t.substring(o).replace(/%%/g,"%")),De(e,n,r))})};var t}function Ie(e,t){return"string"==typeof t?e(t):t.cont(e)}function Me(e){return Ie((e=>e),e)}function Oe(e){return Ie((e=>{throw new Error(e)}),e)}function Te(e,t,n,r,o){let i="";if(t=t||"",o=o||"",ye(e))switch("x"!==o.toLowerCase()&&(Ne(e,0)?(e=be(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=ve(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?Ce(e,r):Ce(e);break;case"e":case"E":e=null!=r?_e(e,r):_e(e);break;case"x":e=xe(e);break;case"X":e=xe(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?se(e):T(e);if(n="number"==typeof n?n:parseInt(n,10),isNaN(n))e=i+e;else{const r=t.indexOf("0")>=0,o=t.indexOf("-")>=0,a=o||!r?" ":"0";e="0"===a?i+(e=Fe(e,n-i.length,a,o)):Fe(i+e,n,a,o)}return e}function De(e,t,n,r="",o=-1){return(...i)=>{let a=r;const s=t.slice(),c=n.slice();for(const e of i){const[,,t,n,r,i]=c[0];let u=n;if(o>=0)u=o,o=-1;else if("*"===u){if(e<0)throw new Error("Non-negative number required");o=e;continue}a+=s[0],a+=Te(e,t,u,r,i),s.splice(0,1),c.splice(0,1)}return 0===c.length?(a+=s[0],e(a)):De(e,s,c,a,o)}}function je(e,...t){let n;return"object"==typeof e?(n=String(t[0]),t.shift()):n=e,n.replace(Ee,((e,n,r,o,i,a)=>{if(n<0||n>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let s=t[n];if(ye(s))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":s=ve(s,i=null!=i?i:2);break;case"g":case"G":s=null!=i?Ce(s,i):Ce(s);break;case"e":case"E":s=null!=i?_e(s,i):_e(s);break;case"p":case"P":i=null!=i?i:2,s=ve(be(s,100),i)+" %";break;case"d":case"D":s=null!=i?Ge(String(s),i,"0"):String(s);break;case"x":case"X":s=null!=i?Ge(xe(s),i,"0"):xe(s),"X"===o&&(s=s.toUpperCase());break;default:if(a){let e="";s=a.replace(/([0#,]+)(\.[0#]+)?/,((t,n,r)=>{Ne(s,0)&&(s=be(s,-1),e="-"),r=null==r?"":r.substring(1),s=ve(s,Math.max(r.length,0));let[o,i]=s.split(".");i||(i=""),o=Ge(o,n.replace(/,/g,"").replace(/^#+/,"").length,"0");const a=r.replace(/#+$/,"").length;if(a>i.length?i=function(e,t){return Fe(e,t,"0",!0)}(i,a):a<i.length&&(i=i.substring(0,a)+i.substring(a).replace(/0+$/,"")),n.indexOf(",")>0){const e=o.length%3,t=Math.floor(o.length/3);let n=e>0?o.substr(0,e)+(t>0?",":""):"";for(let r=0;r<t;r++)n+=o.substr(e+3*r,3)+(r<t-1?",":"");o=n}return i.length>0?o+"."+i:o})),s=e+s}}else s=s instanceof Date?se(s,a||o):T(s);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(s=Fe(String(s),Math.abs(r)," ",r<0)),s}))}function Re(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Fe(e,t,n,r){n=n||" ",t-=e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function Ge(e,t,n){return Fe(e,t,n)}function He(e,t){return t.split("").filter((t=>e(t))).join("")}const Le=W(document.querySelector("#bank-details-app"));K((e=>e.getAttribute("data-identity-url")),Le),K((e=>e.getAttribute("data-backend-url")),Le),function(e,...t){0===t.length?e.trimEnd():e.replace(new RegExp("["+Be(t.join(""))+"]+$"),"")}(`${window.location.protocol}//${window.location.host}${window.location.pathname}`,"/");class Ue{constructor(e=!1){this._id=0,this._cancelled=e,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,e]of this._listeners)e()}}addListener(e){const t=this._id;return this._listeners.set(this._id++,e),t}removeListener(e){return this._listeners.delete(e)}register(e,t){const n=this,r=this.addListener(null==t?e:()=>e(t));return{Dispose(){n.removeListener(r)}}}Dispose(){}}class ze extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,ze.prototype)}}class qe{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>qe.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function We(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new ze);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack((()=>{try{e(t)}catch(e){t.onError(G(e))}}));else try{e(t)}catch(e){t.onError(G(e))}}}const Ye=new class{Bind(e,t){return function(e,t){return We((n=>{e({onSuccess:e=>{try{t(e)(n)}catch(e){n.onError(G(e))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})}))}(e,t)}Combine(e,t){return this.Bind(e,(()=>t))}Delay(e){return We((t=>e()(t)))}For(e,t){const n=e[Symbol.iterator]();let r=n.next();return this.While((()=>!r.done),this.Delay((()=>{const e=t(r.value);return r=n.next(),e})))}Return(e){return function(e){return We((t=>t.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,t){return We((n=>{e({onSuccess:e=>{t(),n.onSuccess(e)},onError:e=>{t(),n.onError(e)},onCancel:e=>{t(),n.onCancel(e)},cancelToken:n.cancelToken,trampoline:n.trampoline})}))}TryWith(e,t){return We((n=>{e({onSuccess:n.onSuccess,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline,onError:e=>{try{t(e)(n)}catch(e){n.onError(G(e))}}})}))}Using(e,t){return this.TryFinally(t(e),(()=>e.Dispose()))}While(e,t){return e()?this.Bind(t,(()=>this.While(e,t))):this.Return(void 0)}Zero(){return We((e=>e.onSuccess(void 0)))}};class Ve extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Choice1Of2","Choice2Of2"]}}function Ke(e){}const Xe=new Ue;function Je(e){return We((t=>{let n;const r=setTimeout((()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)}),e);n=t.cancelToken.addListener((()=>{clearTimeout(r),t.onCancel(new ze)}))}))}function Qe(e,t){return function(e,t){return function(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new qe;e({onSuccess:t||Ke,onError:n||Ke,onCancel:r||Ke,cancelToken:o||Xe,trampoline:i})}(e,t)}(e,t)}class Ze extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class et extends D{constructor(e,t){super(),this.tag=0,this.fields=[e,t]}cases(){return["Header"]}}class tt extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class nt extends j{constructor(e,t,n,r,o,i,a,s){super(),this.url=e,this.method=t,this.headers=n,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=a,this.content=s}}class rt extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class ot extends j{constructor(e,t,n,r,o,i){super(),this.statusCode=0|e,this.responseText=t,this.responseType=n,this.responseUrl=r,this.responseHeaders=o,this.content=i}}const it="Collection was empty.";function at(e,t){return"function"==typeof e?new e(t):new Array(t)}function st(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function ct(e,t,n){const r=0|t.length,o=at(n,r);for(let n=0;n<=r-1;n++)ft(o,n,e(lt(n,t)));return o}function ut(e,t,n){const r=e;return n.reduce(r,t)}function lt(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function ft(e,t,n){if(t<0||t>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[t]=n}function dt(e,t,n){return t.reduceRight(((t,n)=>e(n,t)),n)}class At extends j{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+Re("; ",this)+"]"}Equals(e){return this===e||((e,t)=>{e:for(;;){const n=e,r=t,o=n.tail,i=r.tail;if(null!=o){if(null!=i){const a=z(o),s=z(i);if(_(n.head,r.head)){e=a,t=s;continue e}return!1}return!1}return null==i}})(this,e)}GetHashCode(){return 0|((e,t,n)=>{for(;;){const r=e,o=t,i=n,a=i.tail;if(null==a)return 0|o;{const s=z(a);if(r>18)return 0|o;e=r+1,t=(o<<1)+b(i.head)+631*r,n=s}}})(0,0,this)}toJSON(){return Array.from(this)}CompareTo(e){return 0|((e,t)=>{e:for(;;){const n=e,r=t,o=n.tail,i=r.tail;if(null!=o){if(null!=i){const a=z(o),s=z(i),c=0|S(n.head,r.head);if(0===c){e=a,t=s;continue e}return 0|c}return 1}return null!=i?-1:0}})(this,e)}GetEnumerator(){return new mt(this)}[Symbol.iterator](){return l(u(this))}"System.Collections.IEnumerable.GetEnumerator"(){return u(this)}}class mt{constructor(e){this.xs=e,this.it=this.xs,this.current=null}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this,t=e.it.tail;if(null!=t){const n=z(t);return e.current=e.it.head,e.it=n,!0}return!1}"System.Collections.IEnumerator.Reset"(){const e=this;e.it=e.xs,e.current=null}Dispose(){}}function pt(){return new At(null,void 0)}function $t(e,t){return new At(e,t)}function ht(e){return null==e.tail}function gt(e){return 0|((e,t)=>{for(;;){const n=e,r=t.tail;if(null==r)return 0|n;e=n+1,t=z(r)}})(0,e)}function wt(e){if(null!=e.tail)return e.head;throw new Error(it+"\\nParameter name: list")}function yt(e){const t=e.tail;if(null!=t)return z(t);throw new Error(it+"\\nParameter name: list")}function bt(){return pt()}function vt(e,t){return $t(e,t)}function Ct(e){return $t(e,pt())}function _t(e){return ht(e)}function xt(e){return gt(e)}function Bt(e){return wt(e)}function kt(e){return yt(e)}function St(e){const t=0|gt(e),n=st(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(ht(o))break;ft(n,r,wt(o)),e=r+1,t=yt(o)}})(0,e),n}function Et(e,t,n){let r=t,o=n;for(;!ht(o);)r=e(r,Bt(o)),o=yt(o);return r}function Nt(e){return Et(((e,t)=>$t(t,e)),pt(),e)}function Pt(e,t){Et(((t,n)=>{e(n)}),void 0,t)}function It(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=$t(lt(t,e),n);return n}function Mt(e){return It(e,pt())}function Ot(e,t){return Et(((e,t)=>$t(t,e)),t,Nt(e))}function Tt(e,t){const n=pt(),r=Et(((t,n)=>{const r=new At(e(n),void 0);return t.tail=r,r}),n,t),o=pt();return r.tail=o,yt(n)}function Dt(e,t){return(t=>{e:for(;;){const n=t;if(ht(n))return;{const r=e(wt(n));if(null==r){t=yt(n);continue e}return r}}})(t)}function jt(e,t){return Dt((t=>e(t)?q(t):void 0),t)}function Rt(e,t){return((t,n)=>{for(;;){const r=t,o=n;if(ht(o))return;if(r===e)return q(wt(o));t=r+1,n=yt(o)}})(0,t)}function Ft(e,t){const n=pt(),r=Et(((t,n)=>{if(e(n)){const e=new At(n,void 0);return t.tail=e,e}return t}),n,t),o=pt();return r.tail=o,yt(n)}function Gt(e,t){const n=pt(),r=Et(((t,n)=>{const r=e(n);if(null==r)return t;{const e=new At(z(r),void 0);return t.tail=e,e}}),n,t),o=pt();return r.tail=o,yt(n)}const Ht="The input sequence has an insufficient number of elements.";function Lt(){throw new Error("Enumeration has not started. Call MoveNext.")}function Ut(){throw new Error("Enumeration already finished.")}class zt{constructor(e){this.f=e}toString(){let e=0,t="seq [";const n=u(this);try{for(;e<4&&n["System.Collections.IEnumerator.MoveNext"]();)e>0&&(t+="; "),t+=T(n["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(t+="; ..."),t+"]"}finally{a(n)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return l(u(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class qt{constructor(e,t,n){this.current=e,this.next=t,this.dispose=n}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){!function(){throw new Error("Reset is not supported on this enumerator.")}()}Dispose(){this.dispose()}}function Wt(e,t,n){return new qt(e,t,n)}function Yt(e,t,n){let r,o=!1,i=q(e());const a=()=>{if(null!=i){const e=z(i);try{n(e)}finally{i=void 0}}},s=()=>{try{a()}finally{r=void 0}};return Wt((()=>(o||Lt(),null!=r?z(r):Ut())),(()=>{if(o||(o=!0),null!=i){const e=z(i);let n;try{n=t(e)}catch(e){throw s(),e}return null!=n?(r=n,!0):(s(),!1)}return!1}),a)}function Vt(e){return function(e){return new zt(e)}(e)}function Kt(e){return t="source",null==e&&function(e){throw new Error(e)}(t),u(e);var t}function Xt(e){return Vt((()=>u(e())))}function Jt(e){return Vt((()=>function(e){let t,n,r,o=!1,i=!1;const s=()=>{if(i=!0,null!=n){const e=z(n);try{a(e)}finally{n=void 0}}if(null!=t){const e=z(t);try{a(e)}finally{t=void 0}}};return Wt((()=>(o?i&&Ut():Lt(),null!=r?z(r):Ut())),(()=>{let c;if(o||(o=!0),i)return!1;{let o;for(;null==o;){const i=t;if(null!=i)if(null!=n){const e=z(n);if(e["System.Collections.IEnumerator.MoveNext"]())r=q(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),o=!0;else try{a(e)}finally{n=void 0}}else{const e=z(i);e["System.Collections.IEnumerator.MoveNext"]()?(c=e["System.Collections.Generic.IEnumerator`1.get_Current"](),n=u(c)):(s(),o=!1)}else t=u(e)}return z(o)}}),(()=>{i||s()}))}(e)))}function Qt(){return Xt((()=>new Array(0)))}function Zt(e){return Xt((()=>function(e){const t=at(void 0,1);return ft(t,0,e),t}(e)))}function en(e){return e instanceof At?St(e):Array.from(e)}function tn(e){return o(e)?Mt(e):e instanceof At?e:function(e){let t,n;if(o(e))return Mt(e);if(e instanceof At)return e;{const r=pt();let o=r;const i=u(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const e=i["System.Collections.Generic.IEnumerator`1.get_Current"]();t=o,n=new At(e,void 0),t.tail=n,o=n}}finally{a(i)}const s=o,c=pt();return s.tail=c,yt(r)}}(e)}function nn(e,t,n){return Vt((()=>Yt(e,t,n)))}function rn(e,t,n){return Vt((()=>{let r=-1;return Yt(e,(e=>(r=r+1|0,t(r,e))),n)}))}function on(e,t){return Jt([e,t])}function an(e,t,n){const r=Kt(t);try{let t=!1;for(;!t&&r["System.Collections.IEnumerator.MoveNext"]();)t=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return t}finally{a(r)}}function sn(e,t,n){const r=Kt(n);try{let n=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)n=e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}finally{a(r)}}function cn(e,t){sn(((t,n)=>{e(n)}),void 0,t)}function un(e,t){return nn((()=>Kt(t)),(t=>t["System.Collections.IEnumerator.MoveNext"]()?q(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{a(e)}))}function ln(e){return Xt((()=>function(e){return e.slice().reverse()}(en(e))))}function fn(e,t){return Vt((()=>{const n=Kt(t);try{for(let t=1;t<=e;t++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Ht+"\\nParameter name: source");return function(e,t){return Wt((()=>t["System.Collections.Generic.IEnumerator`1.get_Current"]()),(()=>t["System.Collections.IEnumerator.MoveNext"]()),(()=>{try{a(t)}finally{e()}}))}((()=>{}),n)}catch(e){throw a(n),e}}))}function dn(e,t){return Xt((()=>Jt(un(e,t))))}Symbol.iterator;class An{constructor(e,t){this.k=e,this.v=t}}function mn(e,t){return new An(e,t)}function pn(e){return e.k}function $n(e){return e.v}class hn extends An{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=0|o}}function gn(e,t,n,r,o){return new hn(e,t,n,r,o)}function wn(e){return e.left}function yn(e){return e.right}function bn(e){return e.h}function vn(e,t){e:for(;;){const n=e;if(null!=t){const r=z(t);if(r instanceof hn){const o=r;e=vn(n+1,wn(o)),t=yn(o);continue e}return n+1|0}return 0|n}}function Cn(e){return vn(0,e)}function _n(e,t,n,r){let o,i,a,s;if(null!=e){const t=z(e);a=t instanceof hn?(o=t,bn(o)):1}else a=0;if(null!=r){const e=z(r);s=e instanceof hn?(i=e,bn(i)):1}else s=0;const c=0|(a<s?s:a);return 0===c?mn(t,n):gn(t,n,e,r,c+1)}function xn(e,t,n,r){let o,i,a,s,c,u,l,f,d,A;if(null!=e){const t=z(e);d=t instanceof hn?(o=t,bn(o)):1}else d=0;if(null!=r){const e=z(r);A=e instanceof hn?(i=e,bn(i)):1}else A=0;if(A>d+2){const o=z(r);if(o instanceof hn){const r=o;if(a=wn(r),(null!=a?(s=z(a),s instanceof hn?(c=s,bn(c)):1):0)>d+1){const o=z(wn(r));if(o instanceof hn){const i=o;return _n(_n(e,t,n,wn(i)),pn(i),$n(i),_n(yn(i),pn(r),$n(r),yn(r)))}throw new Error("internal error: Map.rebalance")}return _n(_n(e,t,n,wn(r)),pn(r),$n(r),yn(r))}throw new Error("internal error: Map.rebalance")}if(d>A+2){const o=z(e);if(o instanceof hn){const e=o;if(u=yn(e),(null!=u?(l=z(u),l instanceof hn?(f=l,bn(f)):1):0)>A+1){const o=z(yn(e));if(o instanceof hn){const i=o;return _n(_n(wn(e),pn(e),$n(e),wn(i)),pn(i),$n(i),_n(yn(i),t,n,r))}throw new Error("internal error: Map.rebalance")}return _n(wn(e),pn(e),$n(e),_n(yn(e),t,n,r))}throw new Error("internal error: Map.rebalance")}return _n(e,t,n,r)}function Bn(e,t,n,r){if(null!=r){const o=z(r),i=0|e.Compare(t,pn(o));if(o instanceof hn){const r=o;return i<0?xn(Bn(e,t,n,wn(r)),pn(r),$n(r),yn(r)):0===i?gn(t,n,wn(r),yn(r),bn(r)):xn(wn(r),pn(r),$n(r),Bn(e,t,n,yn(r)))}return i<0?gn(t,n,void 0,r,2):0===i?mn(t,n):gn(t,n,r,void 0,2)}return mn(t,n)}function kn(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=z(n),a=0|r.Compare(o,pn(i));if(0===a)return q($n(i));if(i instanceof hn){const s=i;e=r,t=o,n=a<0?wn(s):yn(s);continue e}return}return}}function Sn(e,t){e:for(;;){const n=e;if(null!=t){const r=z(t);if(r instanceof hn){const o=r;Sn(n,wn(o)),n(pn(o),$n(o)),e=n,t=yn(o);continue e}n(pn(r),$n(r))}break}}function En(e,t){Sn(e,t)}function Nn(e,t){if(null!=t){const n=z(t);if(n instanceof hn){const t=n,r=Nn(e,wn(t)),o=e(pn(t),$n(t)),i=Nn(e,yn(t));return gn(pn(t),o,r,i,bn(t))}return mn(pn(n),e(pn(n),$n(n)))}}function Pn(e,t){return Nn(e,t)}function In(e,t){if(o(t))return function(e,t){let n;for(let r=0;r<=t.length-1;r++){const o=lt(r,t);n=Bn(e,o[0],o[1],n)}return n}(e,t);if(t instanceof At)return function(e,t){return Et(((t,n)=>Bn(e,n[0],n[1],t)),void 0,t)}(e,t);{const n=u(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const a=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=Bn(r,a[0],a[1],o),n=i}}}(e,void 0,n)}finally{a(n)}}}class Mn extends j{constructor(e,t){super(),this.stack=e,this.started=t}}function On(e){e:for(;;){const t=e;if(_t(t))return bt();{const n=kt(t),r=Bt(t);if(null!=r){const o=z(r);if(o instanceof hn){const t=o;e=It([wn(t),mn(pn(t),$n(t)),yn(t)],n);continue e}return t}e=n;continue e}}}function Tn(e){return new Mn(On(Ct(e)),!1)}function Dn(e){if(e.started){const t=e.stack;if(_t(t))return function(){throw new Error("enumeration already finished")}();if(null!=Bt(t)){const e=z(Bt(t));if(e instanceof hn)throw new Error("Please report error: Map iterator, unexpected stack for current");return[pn(e),$n(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function jn(e){let t=Tn(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Dn(t),"System.Collections.IEnumerator.get_Current":()=>Dn(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(_t(t))return!1;if(null!=Bt(t)){if(z(Bt(t))instanceof hn)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=On(kt(t)),!_t(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!_t(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Tn(e)},Dispose(){}}}class Rn{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){const t=(e,t)=>(e<<1)+t+631;let n=0;const r=u(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=0|t(n,b(e[0])),n=0|t(n,b(e[1]))}}finally{a(r)}return 0|n}(this)}Equals(e){if(!(e instanceof Rn))return!1;{const t=e,n=u(this);try{const e=u(t);try{const t=()=>{const r=n["System.Collections.IEnumerator.MoveNext"]();if(r===e["System.Collections.IEnumerator.MoveNext"]()){if(r){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"](),o=e["System.Collections.Generic.IEnumerator`1.get_Current"]();return!(!_(r[0],o[0])||!_(r[1],o[1]))&&t()}return!0}return!1};return t()}finally{a(e)}}finally{a(n)}}}toString(){return"map ["+Re("; ",un((e=>je("({0}, {1})",e[0],e[1])),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){return Array.from(this)}GetEnumerator(){return jn(this.tree)}[Symbol.iterator](){return l(u(this))}"System.Collections.IEnumerable.GetEnumerator"(){return jn(this.tree)}CompareTo(e){const t=this;if(e instanceof Rn)return 0|function(e,t,n){const r=Kt(t);try{const t=Kt(n);try{let n=0,o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]();for(;0===n&&o&&i;)n=0|e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),t["System.Collections.Generic.IEnumerator`1.get_Current"]()),0===n&&(o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]());return 0|(0!==n?n:o?1:i?-1:0)}finally{a(t)}}finally{a(r)}}(((e,n)=>{const r=0|t.comparer.Compare(e[0],n[0]);return 0|(0!==r?r:S(e[1],n[1]))}),t,e);throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Ln(this,e[0])&&_(Gn(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(e,t){!function(e,t,n){let r=n;En(((e,n)=>{ft(t,r,[e,n]),r=r+1|0}),e)}(this.tree,e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Hn(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Hn(this)}get size(){return 0|Hn(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return un((e=>[e[0],e[1]]),this)}get(e){return Gn(this,e)}has(e){return Ln(this,e)}keys(){return un((e=>e[0]),this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return un((e=>e[1]),this)}forEach(e,t){const n=this;cn((t=>{e(t[1],t[0],n)}),n)}}function Fn(e,t){return new Rn(e,t)}function Gn(e,t){return function(e,t,n){const r=kn(e,t,n);if(null==r)throw new Error;return z(r)}(e.comparer,t,e.tree)}function Hn(e){return Cn(e.tree)}function Ln(e,t){return function(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=z(n),a=0|r.Compare(o,pn(i));if(i instanceof hn){const s=i;if(a<0){e=r,t=o,n=wn(s);continue e}if(0===a)return!0;e=r,t=o,n=yn(s);continue e}return 0===a}return!1}}(e.comparer,t,e.tree)}function Un(e,t,n){return function(e,t,n){return Fn(e.comparer,Bn(e.comparer,t,n,e.tree))}(n,e,t)}function zn(e,t){return function(e,t){return kn(e.comparer,t,e.tree)}(t,e)}function qn(e,t){return r=e,Fn((n=t).comparer,Pn(r,n.tree));var n,r}function Wn(e){return function(e){return Fn(e,void 0)}(e)}const Yn=new nt("",new Ze(0,[]),bt(),!1,void 0,void 0,void 0,new tt(0,[]));function Vn(e,t){return"string"!=typeof(n=t)||0===n.length?new Array(0):function(e,t,n,r){if(r="number"==typeof r?r:0,(n="number"==typeof n?n:void 0)&&n<0)throw new Error("Count cannot be less than zero");if(0===n)return[];const o=!(1&~r),i=!(2&~r);t=(t=t||[]).filter((e=>e)).map(Be),t=t.length>0?t:["\\s"];const a=[],s=new RegExp(t.join("|"),"g");let c=!0,u=0;do{const t=s.exec(e);if(null===t){const t=i?e.substring(u).trim():e.substring(u);(!o||t.length>0)&&a.push(t),c=!1}else{const r=i?e.substring(u,t.index).trim():e.substring(u,t.index);(!o||r.length>0)&&(null!=n&&a.length+1===n?(a.push(i?e.substring(u).trim():e.substring(u)),c=!1):a.push(r)),u=s.lastIndex}}while(c);return a}(t,[e],void 0,0);var n}function Kn(e){return new nt(e,Yn.method,Yn.headers,Yn.withCredentials,Yn.overridenMimeType,Yn.overridenResponseType,Yn.timeout,Yn.content)}function Xn(e,t){return new nt(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Jn(e,t){return new nt(t.url,t.method,Ot(t.headers,Ct(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Qn(e){return t=t=>{const n=new XMLHttpRequest;n.open(function(e){switch(e.tag){case 1:return"POST";case 3:return"PATCH";case 2:return"PUT";case 4:return"DELETE";case 6:return"OPTIONS";case 5:return"HEAD";default:return"GET"}}(e.method),e.url),n.onreadystatechange=()=>{let e,r,o,i,a,s,c;var u,l;4===n.readyState&&t[0]((r=n.responseType,e=""===r||"text"===r?n.responseText:"",o=0|n.status,i=n.responseType,s=n.responseType,a=""===s||"text"===s?new rt(0,[n.responseText]):new rt("arraybuffer"===s?2:"blob"===s?1:3,[n.response]),u=function(e,t,n){const r=[];for(let n=0;n<=t.length-1;n++){const o=e(lt(n,t));if(null!=o){const e=z(o);r.push(e)}}return _(n,null)?r:ct((e=>e),r,n)}((e=>{const t=Mt(Vn(":",e));return _t(t)?void 0:[Bt(t).toLocaleLowerCase(),Re(":",kt(t)).trim()]}),Vn("\r\n",n.getAllResponseHeaders())),c=Fn(l={Compare:B},In(l,u)),new ot(o,e,i,n.responseURL,c,a)))};const r=u(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(e.fields[0],e.fields[1])}}finally{a(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(null==o);else{const e=o;n.overrideMimeType(e)}const i=e.overridenResponseType;if(null==i);else switch(i.tag){case 1:n.responseType="blob";break;case 2:n.responseType="arraybuffer";break;default:n.responseType="text"}const s=e.timeout;if(null==s);else{const e=0|s;n.timeout=0|e}const c=e.content;switch(c.tag){case 1:case 3:case 2:n.send(q(c.fields[0]));break;default:n.send()}},We((e=>t([e.onSuccess,e.onError,e.onCancel])));var t}function Zn(e){return new er(1,[e])}new ot(0,"","","",Wn({Compare:B}),new rt(0,[""]));class er extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Ok","Error"]}}function tr(e,t){return 0===t.tag?(n=e(t.fields[0]),new er(0,[n])):Zn(t.fields[0]);var n}class nr extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class rr extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class or extends j{constructor(e,t){super(),this.Hash=e,this.Coders=t}}class ir{constructor(){this.cache=new Map([])}}function ar(){return new ir}function sr(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function cr(e,t){switch(e.tag){case 2:return function(e,t,n,r,o=0){if("string"==typeof e){const n=e;e=function(e,t=0){if(-284&t)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=1&t?"i":"",n+=2&t?"m":"",n+=16&t?"s":"",new RegExp(e,n)}(t,r??0),t=n,r=void 0}if("function"==typeof n)return r=null==r?-1:r,t.substring(0,o)+t.substring(o).replace(e,(function(){let e=arguments[0];if(r){r--;const t=[],o=arguments.length,i="string"!=typeof arguments[o-1];let a=i?o-3:o-2;for(let e=0;e<a;e++)t.push(arguments[e]);t.index=arguments[a++],t.input=arguments[a++],i&&(t.groups=arguments[a]),e=n(t)}return e}));if(n=n.replace(/\$0/g,(e=>"$&")).replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const a=t.substring(o),s=ke(e,a),c=ke.length>r?(i=s[r-1],a.substring(0,i.index+i[0].length)):a;return t.substring(0,o)+c.replace(e,n)+t.substring(o+c.length)}return t.replace(e,n)}(sr(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return sr(t)}}ar(),ar();const ur=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,lr=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,fr=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function dr(e,t){try{return t.contents=function(e){function t(e){return e.replace(lr,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(ur.test(n))return function(e,...t){if(0===t.length)return e.trim();const n="["+Be(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}(n,"{","}","(",")");if(lr.test(n))return t(n);if(fr.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}(e),!0}catch{return!1}}function Ar(){let e="";for(let t=0;t++<36;)e+=51*t&52?(15^t?8^Math.random()*(20^t?16:4):4).toString(16):"-";return e}var mr;function pr(e,t){switch(t){case 8:return e?[0,255]:[-128,127];case 16:return e?[0,65535]:[-32768,32767];case 32:return e?[0,4294967295]:[-2147483648,2147483647];default:throw new Error("Invalid bit size.")}}function $r(e,t,n,r,o){try{return o.contents=function(e,t,n,r){const o=function(e,t,n){const r=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(null!=r){const[,,e,o]=r;n=n||function(e,t){if(t&mr.AllowHexSpecifier)return 16;switch(e){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}(e,t);const i=function(e){switch(e){case 2:return/[^0-1]/;case 8:return/[^0-7]/;case 10:return/[^0-9]/;case 16:return/[^0-9a-fA-F]/;default:throw new Error("Invalid Base.")}}(n);if(!i.test(o))return function(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}(r,n)}return null}(e,t,void 0);if(null!=o){let e=Number.parseInt(o.sign+o.digits,o.radix);if(!Number.isNaN(e)){const[t,i]=pr(!0,r);!n&&10!==o.radix&&e>=t&&e<=i&&(e=e<<32-r>>32-r);const[a,s]=pr(n,r);if(e>=a&&e<=s)return e}}throw new Error(`The input string ${e} was not in a correct format.`)}(e,t,n,r),!0}catch{return!1}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(mr||(mr={}));var hr={},gr=1e6,wr="[big.js] ",yr=wr+"Invalid ",br=yr+"decimal places",vr=yr+"rounding mode",Cr=wr+"Division by zero",_r=void 0,xr=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function Br(e,t){var n,r,o;if(!xr.test(t))throw Error(yr+"number");for(e.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),o=t.length,r=0;r<n&&r<o&&"0"==t.charAt(r);)++r;if(r==o)e.c=[e.e=0];else for(e.e=n-r-1,e.c=[],n=0;r<o;)e.c[n++]=+t.charAt(r++);return kr(e,Er.DP+1,Er.RM)}function kr(e,t,n,r){var o=e.c;if(n===_r&&(n=Er.RM),0!==n&&1!==n&&2!==n&&3!==n)throw Error(vr);if(t<1)r=3===n&&(r||!!o[0])||0===t&&(1===n&&o[0]>=5||2===n&&(o[0]>5||5===o[0]&&(r||o[1]!==_r))),o.length=1,r?(e.e=e.e-t+1,o[0]=1):o[0]=e.e=0;else if(t<o.length){const i=o.findIndex(((e,n)=>n>=t&&e>0))<0;if(r=1===n&&o[t]>=5||2===n&&(o[t]>5||5===o[t]&&(r||o[t+1]!==_r||1&o[t-1]))||3===n&&(r||!i),o.length=t--,r)for(;++o[t]>9;)o[t]=0,t--||(++e.e,o.unshift(1));for(t=o.length;!o[--t];)o.pop()}return e}function Sr(e,t,n){var r=e.e,o=e.c.join(""),i=o.length;if(t)o=o.charAt(0)+(i>1?"."+o.slice(1):"")+(r<0?"e":"e+")+r;else if(r<0){for(;++r;)o="0"+o;o="0."+o}else if(r>0)if(++r>i)for(r-=i;r--;)o+="0";else r<i&&(o=o.slice(0,r)+"."+o.slice(r));else i>1&&(o=o.charAt(0)+"."+o.slice(1));return e.s<0&&n?"-"+o:o}hr.abs=function(){var e=new this.constructor(this);return e.s=1,e},hr.cmp=function(e){var t,n=this.constructor,r=new n(this),o=(e=new n(e),r.c),i=e.c,a=r.s,s=e.s,c=r.e,u=e.e;if(!o[0]||!i[0])return o[0]?a:i[0]?-s:0;if(a!=s)return a;if(t=a<0,c!=u)return c>u^t?1:-1;for(s=Math.max(o.length,i.length),a=0;a<s;a++)if((c=a<o.length?o[a]:0)!=(u=a<i.length?i[a]:0))return c>u^t?1:-1;return 0},hr.div=function(e){var t=this.constructor,n=new t(this),r=(e=new t(e),n.c),o=e.c,i=n.s==e.s?1:-1,a=t.DP;if(a!==~~a||a<0||a>gr)throw Error(br);if(!o[0])throw Error(Cr);if(!r[0])return e.s=i,e.c=[e.e=0],e;var s,c,u,l,f,d=o.slice(),A=s=o.length,m=r.length,p=r.slice(0,s),$=p.length,h=e,g=h.c=[],w=0,y=a+(h.e=n.e-e.e)+1;for(h.s=i,i=y<0?0:y,d.unshift(0);$++<s;)p.push(0);do{for(u=0;u<10;u++){if(s!=($=p.length))l=s>$?1:-1;else for(f=-1,l=0;++f<s;)if(o[f]!=p[f]){l=o[f]>p[f]?1:-1;break}if(!(l<0))break;for(c=$==s?o:d;$;){if(p[--$]<c[$]){for(f=$;f&&!p[--f];)p[f]=9;--p[f],p[$]+=10}p[$]-=c[$]}for(;!p[0];)p.shift()}g[w++]=l?u:++u,p[0]&&l?p[$]=r[A]||0:p=[r[A]]}while((A++<m||p[0]!==_r)&&i--);return g[0]||1==w||(g.shift(),h.e--,y--),w>y&&kr(h,y,t.RM,p[0]!==_r),h},hr.eq=function(e){return 0===this.cmp(e)},hr.gt=function(e){return this.cmp(e)>0},hr.gte=function(e){return this.cmp(e)>-1},hr.lt=function(e){return this.cmp(e)<0},hr.lte=function(e){return this.cmp(e)<1},hr.minus=hr.sub=function(e){var t,n,r,o,i=this.constructor,a=new i(this),s=(e=new i(e),a.s),c=e.s;if(s!=c)return e.s=-c,a.plus(e);var u=a.c.slice(),l=a.e,f=e.c,d=e.e;if(!u[0]||!f[0])return f[0]?e.s=-c:u[0]?e=new i(a):e.s=1,e;if(s=l-d){for((o=s<0)?(s=-s,r=u):(d=l,r=f),r.reverse(),c=s;c--;)r.push(0);r.reverse()}else for(n=((o=u.length<f.length)?u:f).length,s=c=0;c<n;c++)if(u[c]!=f[c]){o=u[c]<f[c];break}if(o&&(r=u,u=f,f=r,e.s=-e.s),(c=(n=f.length)-(t=u.length))>0)for(;c--;)u[t++]=0;for(c=t;n>s;){if(u[--n]<f[n]){for(t=n;t&&!u[--t];)u[t]=9;--u[t],u[n]+=10}u[n]-=f[n]}for(;0===u[--c];)u.pop();for(;0===u[0];)u.shift(),--d;return u[0]||(e.s=1,u=[d=0]),e.c=u,e.e=d,e},hr.mod=function(e){var t,n=this.constructor,r=new n(this),o=(e=new n(e),r.s),i=e.s;if(!e.c[0])throw Error(Cr);return r.s=e.s=1,t=1==e.cmp(r),r.s=o,e.s=i,t?new n(r):(o=n.DP,i=n.RM,n.DP=n.RM=0,r=r.div(e),n.DP=o,n.RM=i,this.minus(r.times(e)))},hr.plus=hr.add=function(e){var t,n,r,o=this.constructor,i=new o(this);if(e=new o(e),i.s!=e.s)return e.s=-e.s,i.minus(e);var a=i.e,s=i.c,c=e.e,u=e.c;if(!s[0]||!u[0])return u[0]||(s[0]?e=new o(i):e.s=i.s),e;if(s=s.slice(),t=a-c){for(t>0?(c=a,r=u):(t=-t,r=s),r.reverse();t--;)r.push(0);r.reverse()}for(s.length-u.length<0&&(r=u,u=s,s=r),t=u.length,n=0;t;s[t]%=10)n=(s[--t]=s[t]+u[t]+n)/10|0;for(n&&(s.unshift(n),++c),t=s.length;0===s[--t];)s.pop();return e.c=s,e.e=c,e},hr.pow=function(e){var t=this.constructor,n=new t(this),r=new t("1"),o=new t("1"),i=e<0;if(e!==~~e||e<-1e6||e>1e6)throw Error(yr+"exponent");for(i&&(e=-e);1&e&&(r=r.times(n)),e>>=1;)n=n.times(n);return i?o.div(r):r},hr.prec=function(e,t){if(e!==~~e||e<1||e>gr)throw Error(yr+"precision");return kr(new this.constructor(this),e,t)},hr.round=function(e,t){if(e===_r)e=0;else if(e!==~~e||e<-gr||e>gr)throw Error(br);return kr(new this.constructor(this),e+this.e+1,t)},hr.sqrt=function(){var e,t,n,r=this.constructor,o=new r(this),i=o.s,a=o.e,s=new r("0.5");if(!o.c[0])return new r(o);if(i<0)throw Error(wr+"No square root");0===(i=Math.sqrt(o+""))||i===1/0?((t=o.c.join("")).length+a&1||(t+="0"),a=((a+1)/2|0)-(a<0||1&a),e=new r(((i=Math.sqrt(t))==1/0?"5e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+a)):e=new r(i+""),a=e.e+(r.DP+=4);do{n=e,e=s.times(n.plus(o.div(n)))}while(n.c.slice(0,a).join("")!==e.c.slice(0,a).join(""));return kr(e,(r.DP-=4)+e.e+1,r.RM)},hr.times=hr.mul=function(e){var t,n=this.constructor,r=new n(this),o=(e=new n(e),r.c),i=e.c,a=o.length,s=i.length,c=r.e,u=e.e;if(e.s=r.s==e.s?1:-1,!o[0]||!i[0])return e.c=[e.e=0],e;for(e.e=c+u,a<s&&(t=o,o=i,i=t,u=a,a=s,s=u),t=new Array(u=a+s);u--;)t[u]=0;for(c=s;c--;){for(s=0,u=a+c;u>c;)s=t[u]+i[c]*o[u-c-1]+s,t[u--]=s%10,s=s/10|0;t[u]=s}for(s?++e.e:t.shift(),c=t.length;!t[--c];)t.pop();return e.c=t,e},hr.toExponential=function(e,t){var n=this,r=n.c[0];if(e!==_r){if(e!==~~e||e<0||e>gr)throw Error(br);for(n=kr(new n.constructor(n),++e,t);n.c.length<e;)n.c.push(0)}return Sr(n,!0,!!r)},hr.toFixed=function(e,t){var n=this,r=n.c[0];if(e!==_r){if(e!==~~e||e<0||e>gr)throw Error(br);for(e=e+(n=kr(new n.constructor(n),e+n.e+1,t)).e+1;n.c.length<e;)n.c.push(0)}return Sr(n,!1,!!r)},hr.toJSON=hr.toString=function(){var e=this,t=e.constructor;return Sr(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])},hr.toNumber=function(){var e=Number(Sr(this,!0,!0));if(!0===this.constructor.strict&&!this.eq(e.toString()))throw Error(wr+"Imprecise conversion");return e},hr.toPrecision=function(e,t){var n=this,r=n.constructor,o=n.c[0];if(e!==_r){if(e!==~~e||e<1||e>gr)throw Error(yr+"precision");for(n=kr(new r(n),e,t);n.c.length<e;)n.c.push(0)}return Sr(n,e<=n.e||n.e<=r.NE||n.e>=r.PE,!!o)},hr.valueOf=function(){var e=this,t=e.constructor;if(!0===t.strict)throw Error(wr+"valueOf disallowed");return Sr(e,e.e<=t.NE||e.e>=t.PE,!0)};var Er=function e(){function t(n){var r=this;if(!(r instanceof t))return n===_r?e():new t(n);if(n instanceof t)r.s=n.s,r.e=n.e,r.c=n.c.slice(),function(e){if(e.c.length>1&&!e.c[0]){let t=e.c.findIndex((e=>e));e.c=e.c.slice(t),e.e=e.e-t}}(r);else{if("string"!=typeof n){if(!0===t.strict)throw TypeError(yr+"number");n=0===n&&1/n<0?"-0":String(n)}Br(r,n)}r.constructor=t}return t.prototype=hr,t.DP=28,t.RM=1,t.NE=-29,t.PE=29,t.strict=!1,t}();const Nr=Er;Nr.prototype.GetHashCode=function(){return w([this.s,this.e].concat(this.c))},Nr.prototype.Equals=function(e){return!this.cmp(e)},Nr.prototype.CompareTo=function(e){return this.cmp(e)},Nr.prototype[we]=function(){const e=this;return{multiply:t=>e.mul(t),toPrecision:t=>e.toPrecision(t),toExponential:t=>e.toExponential(t),toFixed:t=>e.toFixed(t),toHex:()=>(Number(e)>>>0).toString(16)}};const Pr=Nr;function Ir(e,t){return e.cmp(t)}function Mr(e,t){return e.add(t)}function Or(e){return e.toString()}function Tr(e,t){try{return t.contents=new Nr(e.trim()),!0}catch{return!1}}function Dr(e,t,n){for(let r=0;r<8;r++)e[n+r]=t>>4*r&15}function jr(e,t,n,r,o){const i=new Uint8Array(24);Dr(i,e,0),Dr(i,t,8),Dr(i,n,16);const a=function(e){const t=new Uint8Array(29);let n=1;for(let r=e.length-1;r>=0;r--){let o=e[r];for(let e=0;e<n;e++){const n=16*t[e]+o|0;t[e]=n%10|0,o=n/10|0}for(;o>0;)t[n++]=o%10|0,o=o/10|0}return t.slice(0,n)}(i);o&=127;const s=new Nr(0);return s.c=Array.from(a.reverse()),s.e=a.length-o-1,s.s=r?-1:1,new Nr(s)}function Rr(e,t){!function(e){if(null!=e&&0!==e){if(e%6e4!=0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}(t);const n=new Date(e);return n.offset=null!=t?t:-6e4*(new Date).getTimezoneOffset(),n}function Fr(e,t){try{return t.contents=function(e){const[t,n]=ue(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n?0:6e4*n;return Rr(t.getTime(),r)}(e),!0}catch(e){return!1}}function Gr(e){return e<0?Math.ceil(e):Math.floor(e)}function Hr(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Number(BigInt(arguments[0])/10000n);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0}return 864e5*e+36e5*t+6e4*n+1e3*r+o}function Lr(e,t){try{return t.contents=function(e){const t=e.search("\\."),n=e.search("\\:");if(-1===t&&-1===n){const t=parseInt(e,0);if(isNaN(t))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return Hr(t,0,0,0,0)}if(n>0){const t=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(null!=t&&null!=t[4]&&null!=t[5]){let n=0,r=0,o=0;const i=null!=t[1]&&"-"===t[1]?-1:1,a=+t[4],s=+t[5];if(null!=t[3]&&(n=+t[3]),null!=t[7]&&(o=+t[7]),null!=t[8])switch(t[8].length){case 1:r=100*+t[8];break;case 2:r=10*+t[8];break;case 3:r=+t[8];break;case 4:r=+t[8]/10;break;case 5:r=+t[8]/100;break;case 6:r=+t[8]/1e3;break;case 7:r=+t[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return i*Hr(n,a,s,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch{return!1}}new Nr(0),new Nr(1),new Nr(-1),new Nr("79228162514264337593543950335"),new Nr("-79228162514264337593543950335");class Ur{constructor(e,t,n,r,o,i,a){this.fullname=e,this.generics=t,this.construct=n,this.parent=r,this.fields=o,this.cases=i,this.enumCases=a}toString(){return eo(this)}GetHashCode(){return qr(this)}Equals(e){return Wr(this,e)}}function zr(e){return null!=e.generics?e.generics:[]}function qr(e){return w([h(e.fullname),...zr(e).map(qr)])}function Wr(e,t){return""===e.fullname?""===t.fullname&&v(lo(e),lo(t),(([e,t],[n,r])=>e===n&&Wr(t,r))):e.fullname===t.fullname&&v(zr(e),zr(t),Wr)}function Yr(e,t,n,r){return new Ur(e,t,n,void 0,r)}const Vr=new Ur("System.Object"),Kr=(new Ur("Microsoft.FSharp.Core.Unit"),new Ur("System.Char"),new Ur("System.String")),Xr=new Ur("System.Boolean"),Jr=(new Ur("System.SByte"),new Ur("System.Byte"),new Ur("System.Int16"),new Ur("System.UInt16"),new Ur("System.Int32")),Qr=(new Ur("System.UInt32"),new Ur("System.Int64"),new Ur("System.UInt64"),new Ur("System.Int128"),new Ur("System.UInt128"),new Ur("System.IntPtr"),new Ur("System.UIntPtr"),new Ur("System.Half"),new Ur("System.Single"),new Ur("System.Double"),new Ur("System.Decimal"));function Zr(e){if(Array.isArray(e))return e[0];if(e instanceof Ur){const t=no(e);if(null!=t)return Zr(t)+"[]";{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}return e.name}function eo(e){const t=no(e);return null!=t?eo(t)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>eo(e))).join(",")+"]"}function to(e){return null!=no(e)}function no(e){return"[]"===e.fullname&&1===e.generics?.length?e.generics[0]:void 0}function ro(e){return null!=e.generics&&e.generics.length>0}function oo(e){return null!=e.enumCases&&e.enumCases.length>0}function io(e){return null==e.generics?e:new Ur(e.fullname,e.generics.map((()=>Vr)))}function ao(e){return e.generics?.[0]}function so(e){if(oo(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function co(e,t){const n=parseInt(t,10);return function(e,t){if(null!=e.enumCases){if("string"==typeof t){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}throw new Error(`${e.fullname} is not an enum type`)}(e,isNaN(n)?t:n)[1]}function uo(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function lo(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function fo(e){if(po(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Ao(e){return e instanceof Ur?null!=e.cases:e instanceof D}function mo(e){return e instanceof Ur?null!=e.fields:e instanceof j}function po(e){return e.fullname.startsWith("System.Tuple")}function $o(e){return null==e.fields?[]:e.fields}new Ur("System.Numerics.BigInteger");class ho{constructor(e){this.k=e}}function go(e){return new ho(e)}function wo(e){return e.k}class yo extends ho{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=0|r}}function bo(e,t,n,r){return new yo(e,t,n,r)}function vo(e){return e.left}function Co(e){return e.right}function _o(e){return e.h}function xo(e,t){e:for(;;){const n=t;if(null!=e){const r=z(e);if(r instanceof yo){const o=r;e=vo(o),t=xo(Co(o),n+1);continue e}return n+1|0}return 0|n}}function Bo(e){return xo(e,0)}function ko(e,t,n){let r,o,i,a;if(null!=e){const t=z(e);i=t instanceof yo?(r=t,_o(r)):1}else i=0;if(null!=n){const e=z(n);a=e instanceof yo?(o=e,_o(o)):1}else a=0;const s=0|(i<a?a:i);return 0===s?go(t):bo(t,e,n,s+1)}function So(e,t,n){let r,o,i,a,s,c,u,l,f,d;if(null!=e){const t=z(e);f=t instanceof yo?(r=t,_o(r)):1}else f=0;if(null!=n){const e=z(n);d=e instanceof yo?(o=e,_o(o)):1}else d=0;if(d>f+2){const r=z(n);if(r instanceof yo){const n=r;if(i=vo(n),(null!=i?(a=z(i),a instanceof yo?(s=a,_o(s)):1):0)>f+1){const r=z(vo(n));if(r instanceof yo){const o=r;return ko(ko(e,t,vo(o)),wo(o),ko(Co(o),wo(n),Co(n)))}throw new Error("internal error: Set.rebalance")}return ko(ko(e,t,vo(n)),wo(n),Co(n))}throw new Error("internal error: Set.rebalance")}if(f>d+2){const r=z(e);if(r instanceof yo){const e=r;if(c=Co(e),(null!=c?(u=z(c),u instanceof yo?(l=u,_o(l)):1):0)>d+1){const r=z(Co(e));if(r instanceof yo){const o=r;return ko(ko(vo(e),wo(e),vo(o)),wo(o),ko(Co(o),t,n))}throw new Error("internal error: Set.rebalance")}return ko(vo(e),wo(e),ko(Co(e),t,n))}throw new Error("internal error: Set.rebalance")}return ko(e,t,n)}function Eo(e,t,n){if(null!=n){const r=z(n),o=0|e.Compare(t,wo(r));if(r instanceof yo){const i=r;return o<0?So(Eo(e,t,vo(i)),wo(i),Co(i)):0===o?n:So(vo(i),wo(i),Eo(e,t,Co(i)))}{const o=0|e.Compare(t,wo(r));return o<0?bo(t,void 0,n,2):0===o?n:bo(t,n,void 0,2)}}return go(t)}function No(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=z(n),a=0|r.Compare(o,wo(i));if(i instanceof yo){const s=i;if(a<0){e=r,t=o,n=vo(s);continue e}if(0===a)return!0;e=r,t=o,n=Co(s);continue e}return 0===a}return!1}}function Po(e,t){e:for(;;){const n=e;if(null!=t){const r=z(t);if(r instanceof yo){const o=r;Po(n,vo(o)),n(wo(o)),e=n,t=Co(o);continue e}n(wo(r))}break}}class Io extends j{constructor(e,t){super(),this.stack=e,this.started=t}}function Mo(e){e:for(;;){const t=e;if(_t(t))return bt();{const n=Bt(t),r=kt(t);if(null!=n){const o=z(n);if(o instanceof yo){const t=o;e=It([vo(t),go(wo(t)),Co(t)],r);continue e}return t}e=r;continue e}}}function Oo(e){return new Io(Mo(Ct(e)),!1)}function To(e){if(e.started){const t=e.stack;if(_t(t))return function(){throw new Error("Enumeration already started")}();if(null!=Bt(t))return wo(z(Bt(t)));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function Do(e){let t=Oo(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>To(t),"System.Collections.IEnumerator.get_Current":()=>To(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(_t(t))return!1;if(null!=Bt(t)){if(z(Bt(t))instanceof yo)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Mo(kt(t)),!_t(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!_t(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Oo(e)},Dispose(){}}}function jo(e,t,n){return null==t?null==n?0:-1:null==n?1:0|function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(_t(o))return _t(i)?0:-1;if(_t(i))return 1;if(null!=Bt(i))if(null!=Bt(o)){const a=z(Bt(o)),s=z(Bt(i));if(a instanceof yo){const c=a;if(null==vo(c)){if(!(s instanceof yo)){const a=0|r.Compare(wo(c),wo(s));if(0!==a)return 0|a;e=r,t=vt(Co(c),kt(o)),n=vt(void 0,kt(i));continue e}{const a=s;if(null==vo(a)){const s=0|r.Compare(wo(c),wo(a));if(0!==s)return 0|s;e=r,t=vt(Co(c),kt(o)),n=vt(Co(a),kt(i));continue e}{let a,s,c,u,l;switch(_t(o)?_t(i)?a=2:null!=Bt(i)?(a=1,u=kt(i),l=z(Bt(i))):a=2:null!=Bt(o)?(a=0,s=kt(o),c=z(Bt(o))):_t(i)?a=2:null!=Bt(i)?(a=1,u=kt(i),l=z(Bt(i))):a=2,a){case 0:if(c instanceof yo){const o=c;e=r,t=It([vo(o),bo(wo(o),void 0,Co(o),0)],s),n=i;continue e}e=r,t=It([void 0,go(wo(c))],s),n=i;continue e;case 1:if(l instanceof yo){const i=l;e=r,t=o,n=It([vo(i),bo(wo(i),void 0,Co(i),0)],u);continue e}e=r,t=o,n=It([void 0,go(wo(l))],u);continue e;default:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{let a,s,c,u,l;switch(_t(o)?_t(i)?a=2:null!=Bt(i)?(a=1,u=kt(i),l=z(Bt(i))):a=2:null!=Bt(o)?(a=0,s=kt(o),c=z(Bt(o))):_t(i)?a=2:null!=Bt(i)?(a=1,u=kt(i),l=z(Bt(i))):a=2,a){case 0:if(c instanceof yo){const o=c;e=r,t=It([vo(o),bo(wo(o),void 0,Co(o),0)],s),n=i;continue e}e=r,t=It([void 0,go(wo(c))],s),n=i;continue e;case 1:if(l instanceof yo){const i=l;e=r,t=o,n=It([vo(i),bo(wo(i),void 0,Co(i),0)],u);continue e}e=r,t=o,n=It([void 0,go(wo(l))],u);continue e;default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{if(!(s instanceof yo)){const c=0|r.Compare(wo(a),wo(s));if(0!==c)return 0|c;e=r,t=kt(o),n=kt(i);continue e}{const c=s;if(null==vo(c)){const s=0|r.Compare(wo(a),wo(c));if(0!==s)return 0|s;e=r,t=vt(void 0,kt(o)),n=vt(Co(c),kt(i));continue e}{let a,s,c,u,l;switch(_t(o)?_t(i)?a=2:null!=Bt(i)?(a=1,u=kt(i),l=z(Bt(i))):a=2:null!=Bt(o)?(a=0,s=kt(o),c=z(Bt(o))):_t(i)?a=2:null!=Bt(i)?(a=1,u=kt(i),l=z(Bt(i))):a=2,a){case 0:if(c instanceof yo){const o=c;e=r,t=It([vo(o),bo(wo(o),void 0,Co(o),0)],s),n=i;continue e}e=r,t=It([void 0,go(wo(c))],s),n=i;continue e;case 1:if(l instanceof yo){const i=l;e=r,t=o,n=It([vo(i),bo(wo(i),void 0,Co(i),0)],u);continue e}e=r,t=o,n=It([void 0,go(wo(l))],u);continue e;default:throw new Error("unexpected state in SetTree.compareStacks")}}}}}else{let a,s,c,u,l;switch(z(Bt(i)),_t(o)?_t(i)?a=2:null!=Bt(i)?(a=1,u=kt(i),l=z(Bt(i))):a=2:null!=Bt(o)?(a=0,s=kt(o),c=z(Bt(o))):_t(i)?a=2:null!=Bt(i)?(a=1,u=kt(i),l=z(Bt(i))):a=2,a){case 0:if(c instanceof yo){const o=c;e=r,t=It([vo(o),bo(wo(o),void 0,Co(o),0)],s),n=i;continue e}e=r,t=It([void 0,go(wo(c))],s),n=i;continue e;case 1:if(l instanceof yo){const i=l;e=r,t=o,n=It([vo(i),bo(wo(i),void 0,Co(i),0)],u);continue e}e=r,t=o,n=It([void 0,go(wo(l))],u);continue e;default:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==Bt(o)){e=r,t=kt(o),n=kt(i);continue e}{let a,s,c,u,l;switch(z(Bt(o)),_t(o)?_t(i)?a=2:null!=Bt(i)?(a=1,u=kt(i),l=z(Bt(i))):a=2:null!=Bt(o)?(a=0,s=kt(o),c=z(Bt(o))):_t(i)?a=2:null!=Bt(i)?(a=1,u=kt(i),l=z(Bt(i))):a=2,a){case 0:if(c instanceof yo){const o=c;e=r,t=It([vo(o),bo(wo(o),void 0,Co(o),0)],s),n=i;continue e}e=r,t=It([void 0,go(wo(c))],s),n=i;continue e;case 1:if(l instanceof yo){const i=l;e=r,t=o,n=It([vo(i),bo(wo(i),void 0,Co(i),0)],u);continue e}e=r,t=o,n=It([void 0,go(wo(l))],u);continue e;default:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,Ct(t),Ct(n))}function Ro(e,t,n){let r=n;Po((e=>{ft(t,r,e),r=r+1|0}),e)}function Fo(e,t){if(o(t))return function(e,t){return ut(((t,n)=>Eo(e,n,t)),void 0,t)}(e,t);if(t instanceof At)return function(e,t){return Et(((t,n)=>Eo(e,n,t)),void 0,t)}(e,t);{const n=u(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;e=r,t=Eo(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{a(n)}}}class Go{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t=0;const n=u(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();)t=(t<<1)+b(n["System.Collections.Generic.IEnumerator`1.get_Current"]())+631|0}finally{a(n)}return 0|Math.abs(t)}(this)}Equals(e){let t;return e instanceof Go&&(t=e,0===jo(Lo(this),Uo(this),Uo(t)))}toString(){return"set ["+Re("; ",un((e=>T(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){return Array.from(this)}CompareTo(e){return 0|jo(Lo(this),Uo(this),Uo(e))}"System.Collections.Generic.ICollection`1.Add2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return No(Lo(this),e,Uo(this))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(e,t){Ro(Uo(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|qo(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|qo(this)}GetEnumerator(){return Do(Uo(this))}[Symbol.iterator](){return l(u(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Do(Uo(this))}get size(){return 0|qo(this)}add(e){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(e){throw new Error("Set cannot be mutated")}has(e){return Wo(this,e)}keys(){return un((e=>e),this)}values(){return un((e=>e),this)}entries(){return un((e=>[e,e]),this)}forEach(e,t){const n=this;cn((t=>{e(t,t,n)}),n)}}function Ho(e,t){return new Go(e,t)}function Lo(e){return e.comparer}function Uo(e){return e.tree}function zo(e){return Ho(e,void 0)}function qo(e){return Bo(Uo(e))}function Wo(e,t){return No(Lo(e),t,Uo(e))}function Yo(e,t){return Wo(t,e)}function Vo(e,t){return function(e,t){return Ho(Lo(e),Eo(Lo(e),t,Uo(e)))}(t,e)}function Ko(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?"\n":" ")+JSON.stringify(t,null,4)}catch(t){return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?"\n":" ")}}function Xo(e,t){const n=2===t.tag?Ko(t.fields[0],t.fields[1],!0):1===t.tag?Ko(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?Ko(t.fields[0],t.fields[1],!0):4===t.tag?Ko(t.fields[0],t.fields[1],!0)+"\nNode `"+t.fields[2]+"` is unkown.":5===t.tag?"Expecting "+t.fields[0]+".\n"+JSON.stringify(t.fields[1],null,4):7===t.tag?"The following errors were found:\n\n"+Re("\n\n",t.fields[0]):6===t.tag?"The following `failure` occurred with the decoder: "+t.fields[0]:Ko(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}function Jo(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new er(1,[Xo(e[0],e[1])])}return new er(0,[r.fields[0]])}function Qo(e,t){try{return Jo("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new er(1,["Given an invalid JSON: "+e.message]);throw e}}function Zo(e,t){return"string"==typeof t?new er(0,[t]):new er(1,[[e,new nr(0,["a string",t])]])}const ei=e=>t=>{const n=e,r=t;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?-128<=e&&e<=127?new er(0,[(e+128&255)-128]):new er(1,[[n,new nr(1,["a sbyte",e,"Value was either too large or too small for a sbyte"])]]):new er(1,[[n,new nr(1,["a sbyte",e,"Value is not an integral value"])]])}if("string"==typeof r){let e,t=0;return e=[$r(r,511,!1,8,new R((()=>t),(e=>{t=0|e}))),t],e[0]?new er(0,[e[1]]):new er(1,[[n,new nr(0,["a sbyte",r])]])}return new er(1,[[n,new nr(0,["a sbyte",r])]])},ti=e=>t=>{const n=e,r=t;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=255?new er(0,[255&e]):new er(1,[[n,new nr(1,["a byte",e,"Value was either too large or too small for a byte"])]]):new er(1,[[n,new nr(1,["a byte",e,"Value is not an integral value"])]])}if("string"==typeof r){let e,t=0;return e=[$r(r,511,!0,8,new R((()=>t),(e=>{t=e}))),t],e[0]?new er(0,[e[1]]):new er(1,[[n,new nr(0,["a byte",r])]])}return new er(1,[[n,new nr(0,["a byte",r])]])},ni=e=>t=>{const n=e,r=t;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?-32768<=e&&e<=32767?new er(0,[(e+32768&65535)-32768]):new er(1,[[n,new nr(1,["an int16",e,"Value was either too large or too small for an int16"])]]):new er(1,[[n,new nr(1,["an int16",e,"Value is not an integral value"])]])}if("string"==typeof r){let e,t=0;return e=[$r(r,511,!1,16,new R((()=>t),(e=>{t=0|e}))),t],e[0]?new er(0,[e[1]]):new er(1,[[n,new nr(0,["an int16",r])]])}return new er(1,[[n,new nr(0,["an int16",r])]])},ri=e=>t=>{const n=e,r=t;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=65535?new er(0,[65535&e]):new er(1,[[n,new nr(1,["an uint16",e,"Value was either too large or too small for an uint16"])]]):new er(1,[[n,new nr(1,["an uint16",e,"Value is not an integral value"])]])}if("string"==typeof r){let e,t=0;return e=[$r(r,511,!0,16,new R((()=>t),(e=>{t=e}))),t],e[0]?new er(0,[e[1]]):new er(1,[[n,new nr(0,["an uint16",r])]])}return new er(1,[[n,new nr(0,["an uint16",r])]])},oi=e=>t=>{const n=e,r=t;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?-2147483648<=e&&e<=2147483647?new er(0,[~~e]):new er(1,[[n,new nr(1,["an int",e,"Value was either too large or too small for an int"])]]):new er(1,[[n,new nr(1,["an int",e,"Value is not an integral value"])]])}if("string"==typeof r){let e,t=0;return e=[$r(r,511,!1,32,new R((()=>t),(e=>{t=0|e}))),t],e[0]?new er(0,[e[1]]):new er(1,[[n,new nr(0,["an int",r])]])}return new er(1,[[n,new nr(0,["an int",r])]])},ii=e=>t=>{const n=e,r=t;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=4294967295?new er(0,[e>>>0]):new er(1,[[n,new nr(1,["an uint32",e,"Value was either too large or too small for an uint32"])]]):new er(1,[[n,new nr(1,["an uint32",e,"Value is not an integral value"])]])}if("string"==typeof r){let e,t=0;return e=[$r(r,511,!0,32,new R((()=>t),(e=>{t=e}))),t],e[0]?new er(0,[e[1]]):new er(1,[[n,new nr(0,["an uint32",r])]])}return new er(1,[[n,new nr(0,["an uint32",r])]])};function ai(e,t,n,r){let o;const i=n+".["+p(e)+"]";if(Array.isArray(r)){const n=r;return e<n.length?t(i,lt(e,n)):new er(1,[[i,new nr(5,["a longer array. Need index `"+p(e)+"` but there are only `"+(o=n.length,p(o)+"` entries"),r])]])}return new er(1,[[i,new nr(0,["an array",r])]])}function si(e,t,n){if(Array.isArray(n)){let r=-1;return tr(Nt,ut(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+p(r)+"]",o);return 0===i.tag?new er(0,[vt(i.fields[0],n.fields[0])]):new er(1,[i.fields[0]])}return n}),new er(0,[bt()]),n))}return new er(1,[[t,new nr(0,["a list",n])]])}function ci(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return ut(((n,o)=>{if(r=r+1|0,0===n.tag){const i=n.fields[0],a=e(t+".["+p(r)+"]",o);return 0===a.tag?(ft(i,r,a.fields[0]),new er(0,[i])):new er(1,[a.fields[0]])}return n}),new er(0,[st(new Array(o.length),0,o.length,null)]),o)}return new er(1,[[t,new nr(0,["an array",n])]])}function ui(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new er(1,[o.fields[0]])}function li(e,t){let n;const r=e;return n=e=>t=>ai(0,r,e,t),e=>r=>ui(M((e=>{let n;const r=t;return n=e=>t=>ai(1,r,e,t),t=>r=>ui(((t,n,r)=>new er(0,[[e,t]])),P(n),t,r)})),P(n),e,r)}function fi(e){return Fn(t={Compare:S},In(t,e));var t}function di(e,t,n,r){let o;const i=t.length+e|0;if(i!==r.length)return new er(1,[[n,new nr(6,[(o=0|r.length,Me(Pe("Expected array of length %i but got %i"))(i)(o))])]]);{let o=new er(0,[bt()]);for(let i=e;i<=r.length-1;i++)if(0===o.tag){const a=o.fields[0],s=Me(Pe("%s[%i]"))(n)(i),c=lt(i-e,t),u=lt(i,r);o=tr((e=>vt(e,a)),c(s)(u))}return tr(Nt,o)}}function Ai(e,t,n,r,o,i){const a=function(e,t){return t.find((e=>Zr(e)===r))}(0,uo(n));if(null!=a){const n=a,r=ct((n=>pi(e,t,!1,n[1])),$o(n));return tr((e=>function(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);const r=e.declaringType.construct;return null==r?{}:e.declaringType.cases&&1==e.declaringType.cases().length?new r(...t):new r(e.tag,t)}(n,St(e))),0===r.length&&i.length<=1?new er(0,[bt()]):di(1,r,o,i))}return new er(1,[[o,new nr(6,["Cannot find case "+r+" in "+eo(n)])]])}function mi(e,t,n,r){let o;const i=new R(null);let a;const s=eo(r);let c;if(a=""===s?e:Un(s,i,e),mo(r)){const e=ct((e=>[cr(t,Zr(e)),pi(a,t,!1,e[1])]),lo(r));c=t=>n=>tr((e=>function(e,t){const n=lo(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return null!=e.construct?new e.construct(...t):n.reduce(((e,[n,r],o)=>(e[n]=t[o],e)),{})}(r,St(e))),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new er(1,[[t,new nr(0,["an object",n])]]):dt(((e,r)=>{const o=e[0];return 0===r.tag?tr((e=>vt(e,r.fields[0])),e[1](t+"."+o)(n[o])):r}),e,new er(0,[bt()]))}(e,t,n))}else if(Ao(r))c=e=>n=>{if("string"==typeof n)return Ai(a,t,r,n,e,[]);if(Array.isArray(n)){const s=n;return o=n=>Ai(a,t,r,n,e,s),0===(i=Zo(e+"[0]",lt(0,s))).tag?o(i.fields[0]):Zn(i.fields[0])}return new er(1,[[e,new nr(0,["a string or array",n])]]);var o,i};else{if(!n)throw new Error((o=eo(r),Me(Pe("Cannot generate auto decoder for %s. Please pass an extra decoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders"))(o)));c=e=>t=>new er(1,[[e,new nr(2,["an extra coder for "+eo(r),t])]])}return i.contents=c,c}function pi(e,t,n,r){let o,i,a,s;const c=eo(r),u=zn(c,e);if(null!=u){const e=u;return t=>n=>e.contents(t)(n)}if(to(r)){const n=pi(e,t,!1,no(r));return e=>t=>ci(P(n),e,t)}if(oo(r))switch(eo(ao(r))){case"System.SByte":return e=>t=>{const n=r,o=e,i=t,a=ei(o)(i);if(1===a.tag)return new er(1,[a.fields[0]]);{const e=0|a.fields[0];return an(e,so(n),{Equals:(e,t)=>e===t,GetHashCode:g})?new er(0,[co(n,e.toString())]):new er(1,[[o,new nr(1,[eo(n),i,"Unkown value provided for the enum"])]])}};case"System.Byte":return e=>t=>{const n=r,o=e,i=t,a=ti(o)(i);if(1===a.tag)return new er(1,[a.fields[0]]);{const e=a.fields[0];return an(e,so(n),{Equals:(e,t)=>e===t,GetHashCode:g})?new er(0,[co(n,e.toString())]):new er(1,[[o,new nr(1,[eo(n),i,"Unkown value provided for the enum"])]])}};case"System.Int16":return e=>t=>{const n=r,o=e,i=t,a=ni(o)(i);if(1===a.tag)return new er(1,[a.fields[0]]);{const e=0|a.fields[0];return an(e,so(n),{Equals:(e,t)=>e===t,GetHashCode:g})?new er(0,[co(n,m(e))]):new er(1,[[o,new nr(1,[eo(n),i,"Unkown value provided for the enum"])]])}};case"System.UInt16":return e=>t=>{const n=r,o=e,i=t,a=ri(o)(i);if(1===a.tag)return new er(1,[a.fields[0]]);{const e=a.fields[0];return an(e,so(n),{Equals:(e,t)=>e===t,GetHashCode:g})?new er(0,[co(n,e.toString())]):new er(1,[[o,new nr(1,[eo(n),i,"Unkown value provided for the enum"])]])}};case"System.Int32":return e=>t=>{const n=r,o=e,i=t,a=oi(o)(i);if(1===a.tag)return new er(1,[a.fields[0]]);{const e=0|a.fields[0];return an(e,so(n),{Equals:(e,t)=>e===t,GetHashCode:g})?new er(0,[co(n,p(e))]):new er(1,[[o,new nr(1,[eo(n),i,"Unkown value provided for the enum"])]])}};case"System.UInt32":return e=>t=>{const n=r,o=e,i=t,a=ii(o)(i);if(1===a.tag)return new er(1,[a.fields[0]]);{const e=a.fields[0];return an(e,so(n),{Equals:(e,t)=>e===t,GetHashCode:g})?new er(0,[co(n,e.toString())]):new er(1,[[o,new nr(1,[eo(n),i,"Unkown value provided for the enum"])]])}};default:{const e=eo(r),t=Oe(Pe("Cannot generate auto decoder for %s.\nThoth.Json.Net only support the following enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra decoder.\n "))(e);return e=>t(e)}}else if(ro(r)){if(po(r)){const n=ct((n=>pi(e,t,!1,n)),fo(r));return e=>t=>Array.isArray(t)?tr((e=>St(e)),di(0,n,e,t)):new er(1,[[e,new nr(0,["an array",t])]])}switch(eo(io(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=pi(e,t,!0,lt(0,zr(r))),e=>t=>{return n=P(o),r=e,null==(i=t)?new er(0,[void 0]):tr(q,n(r,i));var n,r,i};case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return i=pi(e,t,!1,lt(0,zr(r))),e=>t=>si(P(i),e,t);case"System.Collections.Generic.IEnumerable`1[System.Object]":return a=pi(e,t,!1,lt(0,zr(r))),e=>t=>function(e,t,n){if(Array.isArray(n)){let r=-1;return tr(ln,ut(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+p(r)+"]",o);return 0===i.tag?new er(0,[on([i.fields[0]],n.fields[0])]):new er(1,[i.fields[0]])}return n}),new er(0,[[]]),n))}return new er(1,[[t,new nr(0,["a seq",n])]])}(P(a),e,t);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const n=pi(e,t,!1,lt(0,zr(r))),o=pi(e,t,!1,lt(1,zr(r)));let i;const a=Mt([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new er(1,[[n,new nr(0,["an object",r])]]):sn(((o,i)=>{if(0===o.tag){const a=e(n,i);if(0===a.tag){const e=t(n+"."+i,r[i]);return 0===e.tag?new er(0,[vt([a.fields[0],e.fields[0]],o.fields[0])]):new er(1,[e.fields[0]])}return new er(1,[a.fields[0]])}return o}),new er(0,[bt()]),Object.keys(r))}(P(n),P(o),e,t),(s=li(P(n),P(o)),e=>t=>si(P(s),e,t))]);return i=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(_t(o))return new er(1,[[n,new nr(7,[i])]]);{const a=Jo(n,P(Bt(o)),r);if(1===a.tag){e=kt(o),t=Ot(i,Ct(a.fields[0]));continue e}return new er(0,[a.fields[0]])}}})(a,bt());var n,r},e=>t=>function(e,t,n,r){const o=t(n,r);return 1===o.tag?new er(1,[o.fields[0]]):new er(0,[e(o.fields[0])])}(fi,P(i),e,t)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const n=pi(e,t,!1,lt(0,zr(r)));return e=>t=>{const r=ci(P(n),e,t);return 0===r.tag?new er(0,[(o=r.fields[0],Ho(i={Compare:S},Fo(i,o)))]):new er(1,[r.fields[0]]);var o,i}}default:return mi(e,t,n,r)}}else switch(c){case"System.Boolean":return e=>t=>{return n=e,"boolean"==typeof(r=t)?new er(0,[r]):new er(1,[[n,new nr(0,["a boolean",r])]]);var n,r};case"Microsoft.FSharp.Core.Unit":return e=>t=>{return n=e,null==(r=t)?new er(0,[void 0]):new er(1,[[n,new nr(0,["null",r])]]);var n,r};case"System.String":return e=>t=>Zo(e,t);case"System.Char":return e=>t=>function(e,t){if("string"==typeof t){const n=t;return 1===n.length?new er(0,[n[0]]):new er(1,[[e,new nr(0,["a single character string",t])]])}return new er(1,[[e,new nr(0,["a char",t])]])}(e,t);case"System.SByte":return ei;case"System.Byte":return ti;case"System.Int16":return ni;case"System.UInt16":return ri;case"System.Int32":return oi;case"System.UInt32":return ii;case"System.Double":return e=>t=>{return n=e,"number"==typeof(r=t)?new er(0,[r]):new er(1,[[n,new nr(0,["a float",r])]]);var n,r};case"System.Single":return e=>t=>{return n=e,"number"==typeof(r=t)?new er(0,[r]):new er(1,[[n,new nr(0,["a float32",r])]]);var n,r};case"System.DateTime":return e=>t=>function(e,t){if("string"==typeof t){let r,o=ce(-621355968e5,1);return r=[le(t,new R((()=>o),(e=>{o=e}))),o],r[0]?new er(0,[(n=r[1],1===n.kind?n:ce(n.getTime(),1))]):new er(1,[[e,new nr(0,["a datetime",t])]])}var n;return new er(1,[[e,new nr(0,["a datetime",t])]])}(e,t);case"System.DateTimeOffset":return e=>t=>function(e,t){if("string"==typeof t){let n,r=Rr(-621355968e5,0);return n=[Fr(t,new R((()=>r),(e=>{r=e}))),r],n[0]?new er(0,[n[1]]):new er(1,[[e,new nr(0,["a datetimeoffset",t])]])}return new er(1,[[e,new nr(0,["a datetime",t])]])}(e,t);case"System.TimeSpan":return e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[Lr(t,new R((()=>r),(e=>{r=e}))),r],n[0]?new er(0,[n[1]]):new er(1,[[e,new nr(0,["a timespan",t])]])}return new er(1,[[e,new nr(0,["a timespan",t])]])}(e,t);case"System.Guid":return e=>t=>function(e,t){if("string"==typeof t){let n,r="00000000-0000-0000-0000-000000000000";return n=[dr(t,new R((()=>r),(e=>{r=e}))),r],n[0]?new er(0,[n[1]]):new er(1,[[e,new nr(0,["a guid",t])]])}return new er(1,[[e,new nr(0,["a guid",t])]])}(e,t);case"System.Object":return e=>e=>new er(0,[e]);default:return mi(e,t,n,r)}}function $i(e,t,n){const r=V(t,new rr(0,[]));return pi(function(e){return null!=e?qn(((e,t)=>new R(t[1])),e.Coders):Wn({Compare:B})}(n),r,!1,e)}class hi extends j{constructor(e){super(),this.AccessToken=e}}class gi extends j{constructor(e){super(),this.Auth=e}}function wi(e){return Re("/",e)}function yi(e,t,n){try{a(n)}catch(n){e(["Error stopping subscription: "+wi(t),n])}}function bi(e,t){Pt((t=>{yi(e,t[0],t[1])}),t)}function vi(e,t,n,r,o,i){return Pt((t=>{!function(e,t){const n=new Error("Duplicate SubId");e(["Duplicate SubId: "+wi(t),n])}(e,t)}),n),Pt((t=>{yi(e,t[0],t[1])}),r),Ot(o,Gt((n=>function(e,t,n,r){try{return[n,r(t)]}catch(t){return void e(["Error starting subscription: "+wi(n),t])}}(e,t,n[0],n[1])),i))}function Ci(e){return t=(e,t)=>{return n=e[0],r=e[1],o=t[0],i=t[1],a=t[2],Yo(n,i)?[vt(n,o),i,a]:[o,Vo(n,i),vt([n,r],a)];var n,r,o,i,a},n=e,r=[bt(),(o={Compare:S},zo(o)),bt()],dt(t,St(n),r);var t,n,r,o}const _i=bt();function xi(e,t){const n=Ho(r={Compare:S},Fo(r,Tt((e=>e[0]),e)));var r;const o=Ci(t),i=o[1],a=o[0];if(n.Equals(i))return[a,bt(),e,bt()];{const t=function(e,t){const n=pt(),r=pt(),o=n,a=Et(((e,t)=>{let n,r;const o=e[0],a=e[1];return(e=>Yo(e[0],i))(t)?[(n=new At(t,void 0),o.tail=n,n),a]:[o,(r=new At(t,void 0),a.tail=r,r)]}),[o,r],t),s=pt();a[0].tail=s;const c=pt();return a[1].tail=c,[yt(o),yt(r)]}(0,e);return[a,t[1],t[0],Ft((e=>!Yo(e[0],n)),o[2])]}}class Bi{constructor(){this.delegates=[]}_add(e){this.delegates.push(e)}_remove(e){const t=this.delegates.indexOf(e);t>-1&&this.delegates.splice(t,1)}get Publish(){return e=e=>{this._add(e)},t=e=>{this._remove(e)},{AddHandler(t){e(t)},RemoveHandler(e){t(e)},Subscribe(n){const r=(e,t)=>n.OnNext(t);return e(r),{Dispose(){t(r)}}}};var e,t}Trigger(e,t){let n=null;const r=void 0===t?e:(n=e,t);this.delegates.forEach((e=>{e(n,r)}))}}class ki extends Bi{}const Si=class{constructor(e){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=e&&e>0?e:100,this.AutoReset=!0,this._elapsed=new ki}Elapsed(){return this._elapsed.Publish}get Enabled(){return this._enabled}set Enabled(e){this._isDisposed||this._enabled===e||(this._enabled=e,this._enabled?this.AutoReset?this._intervalId=setInterval((()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)}),this.Interval):this._timeoutId=setTimeout((()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)}),this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}};class Ei{constructor(e,t,n){this.OnNext=e,this.OnError=t||(e=>{}),this.OnCompleted=n||(()=>{})}}function Ni(e,t,n){Pt((n=>{try{n(t)}catch(t){e(t)}}),n)}function Pi(){return bt()}function Ii(e){return function(e){const t=pt();let n=t;const r=e=>{n=Et(((e,t)=>{const n=new At(t,void 0);return e.tail=n,n}),n,e)};if(o(e))e.forEach(r);else if(e instanceof At)Pt(r,e);else{const t=u(e);try{for(;t["System.Collections.IEnumerator.MoveNext"]();)r(t["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{a(t)}}const i=n,s=pt();return i.tail=s,yt(t)}(e)}function Mi(e,t,n,r,o){return Ct((i=>{e(Ye.Delay((()=>{return Ye.Bind((e=t(n),We((t=>{e({onSuccess:e=>t.onSuccess(function(e){return new Ve(0,[e])}(e)),onError:e=>t.onSuccess(function(e){return new Ve(1,[e])}(e)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})}))),(e=>{const t=e;return i(1===t.tag?o(t.fields[0]):r(t.fields[0])),Ye.Zero()}));var e})))}))}function Oi(e){!function(e,t){let n,r=new Si(e);r.AutoReset=!1,n=r,function(e,t){t.Subscribe(new Ei(e))}(t,n.Elapsed()),n.Enabled=!0,n.Start()}(1,(t=>{Qe(e)}))}function Ti(e,t){return e>t?e:t}function Di(e,t,n,r,o){const i=function(e,t,n,r){const o=0|S(e,n);if(0===o)throw new Error("The step of a range cannot be zero");const i=o>0;return n=>{const o=0|S(n,t);return i&&o<=0||!i&&o>=0?[n,r(n,e)]:void 0}}(t,n,r,o);return Xt((()=>{return t=i,n=e,Vt((()=>function(e,t){let n,r=t;return Wt((()=>{if(null!=n){const e=z(n)[0];return z(n)[1],e}return Lt()}),(()=>{if(n=e(r),null!=n){z(n)[0];const e=z(n)[1];return r=e,!0}return!1}),(()=>{}))}(t,n)));var t,n}))}class ji extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class Ri{constructor(e){this.state=new ji(0,[st(new Array(Ti(e,10)),0,Ti(e,10),null),0])}}function Fi(e){const t=e.state;if(1===t.tag){const n=0|t.fields[1],r=0|t.fields[2],o=t.fields[0],i=(r+1)%o.length|0;return e.state=i===n?new ji(0,[o,n]):new ji(1,[o,n,i]),q(lt(r,o))}}class Gi extends j{constructor(e,t,n,r,o,i,a){super(),this.init=e,this.update=t,this.subscribe=n,this.view=r,this.setState=o,this.onError=i,this.termination=a}}function Hi(e,t,n){let r;const o=n.init(t),i=o[0],s=n.subscribe(i),c=n.termination,u=new Ri(10);let l=!1,f=i,d=_i,A=!1;const m=I(e)((e=>{A||(function(e,t){const n=e.state;if(1===n.tag){const i=0|n.fields[1],s=0|n.fields[2],c=n.fields[0];ft(c,i,t);const u=(i+1)%c.length|0;e.state=new ji(1,u===s?[(r=s,o=c,Array.from(Xt((()=>on(fn(r,o),Xt((()=>{return on((e=r,t=o,rn((()=>Kt(t)),((t,n)=>{if(t<e){if(n["System.Collections.IEnumerator.MoveNext"]())return q(n["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Ht+"\\nParameter name: source")}}),(e=>{a(e)}))),Xt((()=>dn((e=>Zt(null)),Di(0,1,o.length,0,((e,t)=>e+t))))));var e,t}))))))),c.length,0]:[c,u,s])}else{const r=0|n.fields[1],o=n.fields[0];ft(o,r,t);const i=(r+1)%o.length|0;e.state=new ji(1,[o,i,r])}var r,o}(u,e),l||(l=!0,p(),l=!1))})),p=()=>{let e,t=Fi(u);for(;!A&&null!=t;){const r=z(t);if(c[0](r))bi(n.onError,d),c[1](f),A=!0;else{const o=n.update(r,f),i=o[0],a=n.subscribe(i);n.setState(i,m),Ni((e=>{n.onError([Me(Pe("Error handling the message: %A"))(r),e])}),m,o[1]),f=i,e=xi(d,a),d=vi(n.onError,m,e[0],e[1],e[2],e[3]),t=Fi(u)}}};l=!0,n.setState(i,m),Ni((e=>{n.onError([Me(Pe("Error intitializing:")),e])}),m,o[1]),r=xi(d,s),d=vi(n.onError,m,r[0],r[1],r[2],r[3]),p(),l=!1}var Li=n(888);class Ui{constructor(e,t,n){this.arg=t,this.dependencies=n;const r=e(),o=[];let s;this.finalDispatch=void 0;const c=function(e){return e.init}(r)(this.arg);let u=c[0],l=c[1];s=[[u,e=>{const t=this.finalDispatch;null==t?o.push(e):t(e)},!1,o],l],this.state=s[0],this.cmd=s[1],this.subscribe=e=>{let t=!1;const n=i(this.state[0]);return function(e,t){Hi(P((e=>e)),e,t)}(this.arg,function(e,t){return new Gi(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}(((t,n)=>{const r=this.state;this.finalDispatch=n,this.state=[t,r[1],!0,o],t!==r[0]&&e()}),function(e,r,o,s,c,u,l){const f=I(e)(l.init),d=O(r)(I(l.update)),A=O(o)(I(l.view)),m=O(s)(I(l.setState));return new Gi(f,P(d),I(c)(l.subscribe),P(A),P(m),l.onError,(p=l.termination,[e=>!!p[0](e)||n&&t,e=>{const t=e;i(t)?a(t):p[1](e)}]));var p}(((e,t)=>{const n=this.cmd;return this.cmd=Pi(),[this.state[0],n]}),((e,t,n)=>e(t)(this.state[0])),M((e=>e)),M((e=>e)),P((e=>e)),0,r))),()=>{t=!0}}}}function zi(e,t,n){return new Ui(e,t,n)}class qi extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Pristine","Valid","Invalid"]}}function Wi(e){return e.tag,e.fields[0]}function Yi(e){return 2===e.tag?e.fields[1]:""}class Vi extends D{constructor(e){super(),this.tag=0,this.fields=[e]}cases(){return["AccountId"]}}function Ki(){let e;return new Vi((e=Ar(),e))}class Xi extends j{constructor(e,t,n,r){super(),this.Bsb=e,this.Bank=t,this.Branch=n,this.Address=r}}class Ji extends j{constructor(e,t,n,r,o){super(),this.AccountNickname=e,this.AccountName=t,this.Bsb=n,this.AccountNumber=r,this.BsbLookup=o}}class Qi extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Amount","Percentage"]}}function Zi(e){return 1===e.tag?"%":"$"}class ea extends j{constructor(e,t,n,r,o,i,a){super(),this.Id=e,this.AccountNickname=t,this.AccountName=n,this.Bsb=r,this.AccountNumber=o,this.Amount=i,this.BsbLookup=a}}class ta extends j{constructor(e,t){super(),this.Input=e,this.Type=t}}class na extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["DeleteConfirmation","ChangeConfirmation","ResetConfirmation"]}}class ra extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Success","Failure"]}}class oa extends j{constructor(e,t,n,r,o,i,a,s){super(),this.PrimaryAccount=e,this.NonPrimaryAccounts=t,this.PreExistingAccounts=n,this.CurrentModal=r,this.CurrentAlert=o,this.Saved=i,this.MaximumAccounts=0|a,this.AllowPercentageSplit=s}}class ia extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["SetAccountNickname","SetAccountName","SetBsb","SetAccountNumber","SetAmount","ChangeApportionmentType"]}}class aa extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["GetExistingAccountsAndConfig","GetPrimaryBsbLookup","GetNonPrimaryBsbLookup","Reset","Save","SetPrimaryAccount","AddNewNonPrimaryAccount","SetNonPrimaryAccount","DeleteNonPrimaryAccount","SetPrimaryForNonPrimaryAccount","ShowModal","HideModal","ShowAlert","HideAlert","AppReady"]}}const sa=function(){const e=[..."#C$&$&$$$$$$%-%&%=$$$$$$=$$$$D$$'$$$$$$$$$$$$%$$%$$$$&$:$*;$+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$&%$$$%$&%'$%$&&%$%$$$$$%$$%$$%$&$$$%%$$&'$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$%$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*%$%%$$'$$$$$$$$h$>5'/1(*$$$4“$$$$$$$$%$&$$'%$$&$$$%$4$,F$%&&$$$$$$$$$$$$$$$$$$$$$$$($$$$$%%VS$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$(%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$I%$)L$$%%$$P$$$%$%$$+>''%.)&%$%%.$$$%C$-8-'%$†$$*$$)%%$'%-&%$1$$$$A>%|.$1-D,%$&$%$%9'$,$&$(%2$<&%$$.X8$5.2$C$Y$$$$&+'$%$*-%%-$$2$%$+%%%9$*$$&'%$$&'%%%%$$+$'%$&%%-%%)$$$$$%%$$)'%%9$*$%$%$%%$$&%'%%&&$*'$$*-%&$$-%$$,$&$9$*$%$(%$$&($%$$%$%$2%%%-$$*$)$$%$+%%%9$*$%$(%$$$$$'%%%%$*%$'%$&%%-$$)-$$$)&&$'&%$$$%&%&&&/'%$%&&$&$%$)$1-&)$$($&$+$&$:$3&$&'$&$'*%$&(%%%-*$*$$$%$+$&$:$-$(%$$$$($$%$%%*%*$$%%%-$%0%%,$&$L%$&'$&$&$$$'&$*&%%-,$)$$%$5&;$,$$%*&$'&&$$$+)-%%$/S$%*'$)$+$-%H%$$$($;$$$-$%,$%($$$)%-%'C$&2$$&%)--$$$$$$$$$$%+$G'1$($%(.$G$+$)$%('%HN%'$)$%%%$-))%%'&$&%*&'0$%%)$$$-&$%I$$($%N$$&Ŭ$'%*$$$'%L$'%D$'%*$$$'%2$\\$'%f%&,7&3-)y%)%$ʏ$$4$=$$&n&&+*0$'&.5&%,5%/0$&$%/W%$*+$%.&$&$$$%-)-))$'&$$-)F$X*(%E$$(i-B$&'%&'%$)&'$&%-A%(.O'=)-$&E:%%$%%X$$$*$$$$%+)-%$-)-)*$)%1$%b'$R$$($$($%*'-*-,,&%$A$'%%$&%-O$$%&$$&%+'G++%%&(-&&-A)%,*N%&++&$0$*'$)$%$%$(Ob0$EH]$($$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,+)%)%++++)%)%+$$$$$$$$++1%++++++($%'$$$&&$%'$&'%%'$&+(&%&$%'$%$.()%$$$%$$$+$$($,$$'%&$$$.$$$-$($-$$%)&$$$-&$$$0&C30'$&/2%$'$%$&%&$$$%$()$$$$$$'$$'$'$%%%($'$$%$$3F$$'$%'((%'$%$%$*$B%%$$$Bį+$$$$7%*$$t$A<K)h<.8_q9Ú$,$Y+’$ě$$$$$$$$$$$$$$AO($$B$$$$$$$$$$3ģ¦$$$$$$$$$$$$$$$$$$$$$$b$$$$C$$ĥS8%)J%C$ŒR$R$$$&%$$$$$$'$$%$)%&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%)$$$$&$$('$%I$$($%[*$$1$:,*$*$*$*$*$*$*$*$C%$$$$&$$$$$,$%$$$$%$$$$$$$$$$($-%'$$$0%$P=$|/ù=/'$&$$$$$$$$$$$$$$%$$$$$$$$$$%$,'%$(%&$$$%$y%%%%$$}$&$(N$$%'-CG/3B$-A+$2C-J2ţ᧣c删&8$Қ&Z,K)%į$&3-%7$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$&$-$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%%i-%)+:,%$$$$$$$$$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$+$$$$%$$$$$$$$$$%$$$$$$$$&$$$$$$$$$$$$$$$$$$$$($($$$$$$$$$$$%$$'$$$M$$$%$*$&$'$:%%$'$&)%$$)W'+%U3%+%-)5)&$$%$-?+%:.%.$@&&$R$%'%%&0$$-'%($$,-($L)%%%%,&$+$$%-%'3$)&$$$$U$$&%%(%$$$;%$%.$%%%$%$$-)%)%),*$*$N$',$%'sF%$%$%$$$%-)⯇/:'T'ࠣᤣƑ%I*/(($$-$0$($$$%$%$34Ǝ$$3c%YK/$$%3*$$$)3$%%$$$$$$$$$$$$$$$$%$$'&&$'$$$$$$$&$$&$$$%'($ª%$$&$&$$$$$$%-%&%=$$$$$$=$$$$$$$$$%-$P%B&)%)%)%&&%$$$%$$'%-&%%/$=$6$%$2%1Ež(&'P&,X'4%&$0&$RP$¥@&T2$>'C',7$+$(I((A$$G'+$(MKKq%-)G'G'K+W.$³Ś,9-+»)%$$O$%&$%:$$+:%*B+,S6$%((9)&$=($c['%%3%Q$&$%(''$&$@%&'$,*,*@%$@&C+$?%'(*,Y&*9%+6(+5*'/*slZV0V*)G'+-ʼnB$M$%$%%q@-$+9.'(y8*7:,$$$X2*'7-2&$P&'%%%$'.$%<*-)&G($+$-'$%$+F$%$,%$S&,%'''$$$-$$$&$7.5$<&&%$$%)$d*$$$'$2$-$)R$&+(-)%%$+%%%9$*$%$($%$%$'%%%&%$)$((%%*&(®X&+%&$$'(-%$$$&AS&)$$'%$%%$$+-ÉR&'%'%$%:'%ES&+%$$%&$.-)06N$$$%)$$$*-Y>%&%'$('-%&$ãO&,$%$‡CC-,/+%$%+$%$;)$%%%$$$$$$$&,-i+%J&'%%'$$$$$>$-K)$$'+$+$)%&Q0$%&$(@\\Ī,$H$*$)$$$(--6&%A%9$$*$%$%l*$%$I)&$$%$*$$+-))$%$C($%$%$$$$*-ř6%%%Ú$28+'40$ν‰’$(.ç૟ђ$,࿪ɪ⇜ɜ*B$-'%ƒA%($-S*(''$$--$*$8(6˓CC:'ˆn'$$Z*'0c%$$$.%1᠛+ӹM,⌚łT&4'+ƯधŽ(0&,*-%$%$'፿ę-J%_%&&)++%*A'^:e&$½7/z,<ª===*$5==$$%%$%%%'$+'$$$*$.==%$'%+$*$=%$'$($$&*$============?%<$<$)<$<$)<$<$)<$<$)<$<$)$$%UȣZ'U+$1$%(2($2ճ*$4%*$%$(øP&**%-'$$ƓO'-($ԣè%,*LEE*$'-'%̴^$&$'oP$2å'$>$%$$%$$-$'$$$$)$'$$$$$$&$%$$%$$$$$$$$$$%$$%'$*$'$'$$$-$4(&$($4W%ıO'‡/2%2$2$H-0Ä[@0O',*%1)½Ğ(˻+0&0&—/|*/7/'[+-)K+A%%qœ$u$ª/1%(&&(*,<**,&0*L¶$ZH-Щ꜁Eၘ.ā%ᚥ1ᵔూɁ؅፮򮳙$Aƒ£ē︳𐀡%𐀡"].map((e=>(e.codePointAt(0)??0)-35)),t=[..."1.;=;78;<;6;+;<;#7;8>5>$7<8<1.;=?;>?'9<2?>?<->$;>-':-;#<#$<$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'#$'#%$#%$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'$&>&>&>&>&>(#$#$&>#$@&$;#@>#;#@#@#$#@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$<#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?(*#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@&;$;6@?=@(6(;(;(;(@'@';@2<;=;?(;2@;'&'(+;'(';'(2?(&(?('+'?';@2'('(@'('@+'(&?;&@(='(&(&(&(@;@'(@;@'@'@'@(2()'()(')()()'('(;+;&'()@'@'@'@'@'@'@(')(@)@)('@)@'@'(@+'=-?=';(@()@'@'@'@'@'@'@'@(@)(@(@(@(@'@'@+('(;@()@'@'@'@'@'@'@(')(@()@)(@'@'(@+;=@'(@()@'@'@'@'@'@'@(')()(@)@)(@()@'@'(@+?'-@('@'@'@'@'@'@'@'@'@'@)()@)@)(@'@)@+-?=?@()('@'@'@'@'()@(@(@(@'@'(@+@;-?'();'@'@'@'@'@(')()@()@)(@)@'@'(@+@'@()'@'@'(')(@)@)('?@')-'(@+-?'@()@'@'@'@'@'@(@)(@(@)@+@);@'('(@='&(;+;@'@'@'@'@'@'('('@'@&@(@+@'@'?;?;?(?+-?(?(?(7878)'@'@()(;('(@(@?(?@?;?;@')()()()('+;')('(')')'('()()(')+)(?#@#@#@$;&$'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@(;-@'?@#@$@6'?;'.'78@';,'@'@'(@'(;@'(@'@'@(@'()()()(;&;='(@+@-@;6;(2@+@'&'@'('('@'@'@()()@)()(@?@;+'@'@'@'@+-@?'()(@;')()(@()()()(@(+@+@;&;@(*(@()'()()()()'@+;?(?@()')()()('+'()()()()@;')()(@;+@'+'&;$@#@#;@(;()('('(')('@$&$&$&(@(#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@$#$#$@#@$@#@#@#@#$#$@$%$%$%$@$#%>$>$@$#%>$@$#@>$#>@$@$#%>@.26;9:79:79;/02.;9:;5;<78;<;5;.2@2-&@-<78&-<78@&@=@(*(*(@?#?#?$#$#$?#?<#?#?#?#?#?$#$'$?$#<#$?<?$?-,#$,-?@<?<?<?<?<?<?<?<?<?<?7878?<?78?<?<?<?@?@-?-?<?<?<?<?78787878787878-?<78<7878787878<?<7878787878787878787878<7878<78<?<?<?@?@?#@$@#$#$#$#$#$#$#$#$&#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?#$#$(#$@;-;$@$@$@'@&;@('@'@'@'@'@'@'@'@'@(;9:9:;9:;9:;6;6;9:;9:78787878;&;6;6;7;?;@?@?@?@?@.;?&',7878787878?78787878678?,()6&?,&';?@'@(>&'6';&'@'@'@?-?'?@'?@-?-?-?-?-?'?'@'&'@?@'&;'&;'+'@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'(*;(;&#$#$#$#$#$#$#$#$#$#$#$#$#$#$&(',(;@>&>#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$&$#$#$#$#$#$#$#$&>#$#$'#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#$#$#$@#$'&$'('('(')()?(@-?=?@';@)')(@;+@(';';'(+'(;'()@;'@()'()()();@&+@;'(&'+'@'()()(@'('()@+@;'&'?')()'('('('('('@'&;')();'&)(@'@'@'@'@'@$>&$&>@$')()();)(@+@'@'@'@34'@'@$@$@'('<'@'@'@'@'@'>@'87@'@'@'=?@(;78;@(;657878787878787878;78;5;@;6787878;<6<@;=;@'@'@2@;=;78;<;6;+;<;#7;8>5>$7<8<78;78;'&'&'@'@'@'@'@=<>?=@?<?@2?@'@'@'@'@'@'@'@;@-@?,-?-?@?@?@?(@'@'@(-@'-@',',@'(@'@;'@';,@#$'@+@#@$@'@'@;@'@'@'@'@'@'@'@'@'@;-'?-'@-@'@'@-'-@;'@;@'@-'-@-'(@(@('@'@'@(@(-@;@'-;'-@'?'(@-;@'@;'@-'@-'@;@-@'@#@$@-'(@+@-@'@(6@'@'-'@'(-;@'-@'@)()'(;@-+@()')()(;2;@2@'@+@('()(@+;')'@'(;'@()')()';(;)(+';';@-@'@')()()(;(@'@'@'@'@';@'()(@+@()@'@'@'@'@'@'@(')()@)@)@'@)@')@(@(@')()()(';+;@;('@')()()()(';'@+@')(@)()(;'(@')()()(;'@+@;@'()()()('@+@'@()()(@+-;?@')()(;@#$+-@'@'@'@'@')@)@()(')')(;@+@'@')(@()(';')@'('()'(;(@'()('()(;';@'@'@')(@()(';@+-@;'@(@)()()(@'@'@'(@(@(@('(@+@'@'@')@(@)()('@+@'();@'@-?=?@;'@,@;@'@'@2@'@'@'@+@;@'@(;@'(;?&;?@+@-@'@'@#$-;@'@(')@(&@&;&(@)@'@'@'@'@'@'@'@'@'@'@'@?(;2@?@?@?)(?)2(?(?(?@?(?@-@?@-@#$#$@$#$#@#@#@#@#@#$@$@$@$#$#@#@#@#@$#@#@#@#@#@$#$#$#$#$#$#$@#<$<$#<$<$#<$<$#<$<$#<$<$#$@+?(?(?(?(?;@(@(@(@(@(@(@(@'@(&@+@'?@'(+@=@'@-(@#$(&@+@;@-?-=-@-?-@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@<@?@?@?@?@?@?@-?@?@?@?@?@?@?>?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@+@'@'@'@'@'@'@'@2@2@(@4@4@"].map((e=>(e.codePointAt(0)??0)-35)),n=new Uint32Array(e),r=new Uint8Array(t);for(let e=1;e<n.length;++e)n[e]+=n[e-1];return e=>{let t=n.length,o=0;for(;t-o>1;){const r=Math.floor((t+o)/2),i=n[r];if(e<i)t=r;else{if(e===i){t=o=r;break}i<e&&(o=r)}}return r[o]}}();function ca(e,t){if(t>=0&&t<e.length)return e.charCodeAt(t);throw new Error("Index out of range.")}const ua=e=>function(e){return!!(256&1<<fa(e,0))}(e),la=e=>function(e){if(14336&1<<fa(e,0))return!0;const t=ca(e,0);return 9<=t&&t<=13||133===t||160===t}(e);function fa(e,t){const n=ca(e,t);return sa(n)}class da extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Web","WebComponent"]}}function Aa(){const e=W(document.querySelector("bank-component"));return null==Le?null!=e?new er(0,[new da(1,[e])]):new er(1,["Could not determine the embed mode"]):new er(0,[new da(0,[])])}function ma(e){let t,n=0;return t=[$r(e,511,!1,32,new R((()=>n),(e=>{n=0|e}))),n],t[0]?t[1]:void 0}function pa(e){return function(e,t,n=0){return e.lastIndex=n,e.test(t)}(/^(0|[1-9]\d*)(\.|$)(\d{1,2})?$/gu,e)?new Pr(e):void 0}function $a(e,t){return e.replace(/[a-z]?[A-Z]/g,(e=>1===e.length?e.toLowerCase():e.charAt(0)+t+e.charAt(1).toLowerCase()))}function ha(e,t=0){const n={},r=t;function o(e){throw new Error("Cannot infer key and value of "+String(e))}function i(e,t,r){e=function(e,t){switch(t){case 1:return e.charAt(0).toLowerCase()+e.slice(1);case 2:return $a(e,"_");case 3:return $a(e,"_").toUpperCase();case 4:return $a(e,"-");default:return e}}(e,t),n[e]=r}for(let t of e){let e=0;if(null==t&&o(t),t instanceof D){const n=t.cases()[t.tag];t=0===t.fields.length?n:[n].concat(t.fields),e=r}if(Array.isArray(t))switch(t.length){case 0:o(t);break;case 1:i(t[0],e,!0);break;case 2:const n=t[1];i(t[0],e,n);break;default:i(t[0],e,t.slice(1))}else"string"==typeof t?i(t,e,!0):o(t)}return n}function ga(e,t,n){return!!e.has(t)&&(n.contents=e.get(t),!0)}function wa(e,t,n){if(e.has(t))throw new Error("An item with the same key has already been added. Key: "+t);e.set(t,n)}function ya(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class ba{constructor(e,t){const n=new R(null);this.comparer=t,n.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const r=u(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();Sa(n.contents,e[0],e[1])}}finally{a(r)}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(){return Array.from(this)}"System.Collections.IEnumerable.GetEnumerator"(){return u(this)}GetEnumerator(){return u(Jt(this.hashMap.values()))}[Symbol.iterator](){return l(u(this))}"System.Collections.Generic.ICollection`1.Add2B595"(e){Sa(this,e[0],e[1])}"System.Collections.Generic.ICollection`1.Clear"(){_a(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(e){const t=Ca(this,e[0]);let n,r;return null!=t&&_(z(t)[1],e[1])?(n=0,r=z(t)):n=1,0===n}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(e,t){var n;n=(n,r)=>{ft(e,t+n,r)},sn(((e,t)=>(n(e,t),e+1|0)),0,this)}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|xa(this)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(e){const t=Ca(this,e[0]);return null!=t&&(_(z(t)[1],e[1])&&Na(this,e[0]),!0)}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(e,t){Sa(this,e,t)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(e){return Ea(this,e)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(e){return Ba(this,e)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(e,t){ka(this,e,t)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const e=this;return en(Xt((()=>un((e=>e[0]),e))))}"System.Collections.Generic.IDictionary`2.Remove2B595"(e){return Na(this,e)}"System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(e,t){const n=Ca(this,e);if(null!=n){const e=z(n);return t.contents=e[1],!0}return!1}"System.Collections.Generic.IDictionary`2.get_Values"(){const e=this;return en(Xt((()=>un((e=>e[1]),e))))}get size(){return 0|xa(this)}clear(){_a(this)}delete(e){return Na(this,e)}entries(){return un((e=>[e[0],e[1]]),this)}get(e){return Ba(this,e)}has(e){return Ea(this,e)}keys(){return un((e=>e[0]),this)}set(e,t){return ka(this,e,t),this}values(){return un((e=>e[1]),this)}forEach(e,t){const n=this;cn((t=>{e(t[1],t[0],n)}),n)}}function va(e,t){const n=0|e.comparer.GetHashCode(t);let r,o=null;return r=[ga(e.hashMap,n,new R((()=>o),(e=>{o=e}))),o],r[0]?[!0,n,r[1].findIndex((n=>e.comparer.Equals(t,n[0])))]:[!1,n,-1]}function Ca(e,t){const n=va(e,t);let r;if(r=n[0]&&n[2]>-1?0:1,0===r)return ya(e.hashMap,n[1])[n[2]]}function _a(e){e.hashMap.clear()}function xa(e){let t=0,n=u(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();)t=t+n["System.Collections.Generic.IEnumerator`1.get_Current"]().length|0}finally{a(n)}return 0|t}function Ba(e,t){const n=Ca(e,t);if(null!=n)return z(n)[1];throw new Error("The item was not found in collection")}function ka(e,t,n){const r=va(e,t);r[0]?r[2]>-1?ya(e.hashMap,r[1])[r[2]]=[t,n]:ya(e.hashMap,r[1]).push([t,n]):e.hashMap.set(r[1],[[t,n]])}function Sa(e,t,n){const r=va(e,t);if(r[0]){if(r[2]>-1)throw new Error(je("An item with the same key has already been added. Key: {0}",t));ya(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}function Ea(e,t){const n=va(e,t);let r;return r=n[0]&&n[2]>-1?0:1,0===r}function Na(e,t){const n=va(e,t);let r;return r=n[0]&&n[2]>-1?0:1,0===r&&(ya(e.hashMap,n[1]).splice(n[2],1),!0)}const Pa=Me(Pe("Please only use %i characters"));function Ia(e){return Re("",(t=la,n=e.split(""),Xt((()=>{let e=!0;return function(e,t){return function(e,t){return nn((()=>Kt(t)),(t=>{let n;for(;null==n&&t["System.Collections.IEnumerator.MoveNext"]();)n=e(t["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}),(e=>{a(e)}))}((t=>e(t)?q(t):void 0),t)}((n=>(e&&(e=t(n)),!e)),n)}))));var t,n}function Ma(e){const t=Ia(e);return t.length>18?new qi(2,[t,Pa(18)]):new qi(1,[t])}function Oa(e){const t=Ia(e);return t.length>50?new qi(2,[t,Pa(50)]):t.length>0?new qi(1,[t]):new qi(2,[t,"Enter the account name"])}function Ta(e,t,n){const r=He(ua,e);if(6===r.length){const e=r;let t,o,i;if(2===n.tag&&0===n.fields[0].tag?(t=0,o=n.fields[0].fields[0]):(t=1,i=n),0===t){let t,n;return null==o?t=1:o.Bsb===e?(t=0,n=o):t=1,0===t?new qi(1,[e]):new qi(2,[e,"Enter a valid BSB"])}return new qi(1,[e])}return r.length>6?t:new qi(2,[r,"Enter a valid BSB"])}function Da(e,t){let n,r;const o=He(ua,e);return n=o,n.length>=5&&n.length<=9?new qi(1,[o]):(r=o,10===r.length&&r.startsWith("0")?new qi(1,[o]):o.length>10?t:new qi(2,[o,"Enter a valid account number"]))}function ja(e,t,n){if(1===n.tag){const n=pa(e);return null==n?""===e?new qi(2,[e,"Enter a valid amount"]):t:Ir(n,jr(100,0,0,!1,0))>0?new qi(1,["100.00"]):Ir(n,jr(0,0,0,!1,0))>0?new qi(1,[e]):new qi(2,[e,"Enter a valid amount"])}{const n=He(ua,e),r=ma(e);let o,i;switch(null!=r&&r>0?(o=0,i=r):o=""===n?1:2,o){case 0:return new qi(1,[p(i)]);case 1:return new qi(2,[n,"Enter a valid amount"]);default:return t}}}function Ra(e){let t,n,r;const o=new Vi("temp-primary-account-id"),i=function(e,t){let n,r;const o=pt();let i=o,a=t;for(;!ht(a);){let e=wt(a)[1];for(;!ht(e);)n=i,r=new At(wt(e),void 0),n.tail=r,i=r,e=yt(e);a=yt(a)}const s=i,c=pt();return s.tail=c,yt(o)}(0,Ft((e=>""!==e[0][0]&&xt(e[1])>1),(s=e=>[e[1],e[2]],t=Tt((e=>[e.Id,Wi(e.Bsb),Wi(e.AccountNumber)]),e.NonPrimaryAccounts),tn(un((e=>[e[0],tn(e[1])]),function(e,t,n){return Xt((()=>{const r=new ba([],n),o=[],i=u(t);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const t=i["System.Collections.Generic.IEnumerator`1.get_Current"](),n=e(t);let a,s=null;a=[ga(r,n,new R((()=>s),(e=>{s=e}))),s],a[0]?a[1].push(t):(wa(r,n,[t]),o.push(n))}}finally{a(i)}return un((e=>[e,ya(r,e)]),o)}))}(s,Ot(Ct([o,Wi(e.PrimaryAccount.Bsb),Wi(e.PrimaryAccount.AccountNumber)]),t),{Equals:C,GetHashCode:y}))))));var s;const c=jt((e=>_(e[0],o)),i),l=new oa(null==c?(n=e.PrimaryAccount,new Ji(n.AccountNickname,n.AccountName,n.Bsb,Da(Wi(e.PrimaryAccount.AccountNumber),e.PrimaryAccount.AccountNumber),n.BsbLookup)):(r=e.PrimaryAccount,new Ji(r.AccountNickname,r.AccountName,r.Bsb,new qi(2,[Wi(e.PrimaryAccount.AccountNumber),"Enter a unique account number"]),r.BsbLookup)),e.NonPrimaryAccounts,e.PreExistingAccounts,e.CurrentModal,e.CurrentAlert,e.Saved,e.MaximumAccounts,e.AllowPercentageSplit);return new oa(l.PrimaryAccount,function(e,t){return((e,t,n)=>{for(;;){const r=e,o=t,i=n,a=Rt(r,i);if(null==a)return o;{const s=a[0];a[2],a[1],e=r+1,t=Tt((e=>_(e.Id,s)?new ea(e.Id,e.AccountNickname,e.AccountName,e.Bsb,new qi(2,[Wi(e.AccountNumber),"Enter a unique account number"]),e.Amount,e.BsbLookup):e),o),n=i}}})(0,Tt((e=>new ea(e.Id,e.AccountNickname,e.AccountName,e.Bsb,Da(Wi(e.AccountNumber),e.AccountNumber),e.Amount,e.BsbLookup)),e),t)}(e.NonPrimaryAccounts,i),l.PreExistingAccounts,l.CurrentModal,l.CurrentAlert,l.Saved,l.MaximumAccounts,l.AllowPercentageSplit)}function Fa(e){const t=(n=e.NonPrimaryAccounts,Et(((e,t)=>r.Add(e,(e=>1===e.Amount.Type.tag?V(pa(Wi(e.Amount.Input)),jr(0,0,0,!1,0)):jr(0,0,0,!1,0))(t))),(r={GetZero:()=>new Pr("0"),Add:Mr}).GetZero(),n));var n,r;return new oa(e.PrimaryAccount,Tt((e=>new ea(e.Id,e.AccountNickname,e.AccountName,e.Bsb,e.AccountNumber,1===e.Amount.Type.tag?new ta(Ir(t,jr(100,0,0,!1,0))>0?new qi(2,[Wi(e.Amount.Input),"Total percentage exceeds 100%"]):ja(Wi(e.Amount.Input),e.Amount.Input,e.Amount.Type),e.Amount.Type):e.Amount,e.BsbLookup)),e.NonPrimaryAccounts),e.PreExistingAccounts,e.CurrentModal,e.CurrentAlert,e.Saved,e.MaximumAccounts,e.AllowPercentageSplit)}function Ga(e,t){switch(e.tag){case 1:return Oa(e.fields[0]);case 2:return Ta(e.fields[0],t,new H(0,[]));case 3:return Da(e.fields[0],t);case 4:return ja(e.fields[0],t,e.fields[1]);case 5:return new qi(2,["","Enter a valid amount"]);default:return Ma(e.fields[0])}}function Ha(e){return new ea(e.Id,Ma(Wi(e.AccountNickname)),Oa(Wi(e.AccountName)),Ta(Wi(e.Bsb),e.Bsb,e.BsbLookup),Da(Wi(e.AccountNumber),e.AccountNumber),new ta(ja(Wi(e.Amount.Input),e.Amount.Input,e.Amount.Type),e.Amount.Type),e.BsbLookup)}function La(e){return 1===e.tag}class Ua extends j{constructor(e,t,n){super(),this.Accounts=e,this.MaxAccounts=0|t,this.AllowPercentageSplit=n}}class za extends j{constructor(e,t){super(),this.PrimaryAccount=e,this.ActiveAccounts=t}}function qa(){return Yr("BankDetails.Shared.BackendApiModels.Accounts",[],za,(()=>{return[["PrimaryAccount",Yr("BankDetails.Shared.BackendApiModels.PrimaryBankAccount",[],Wa,(()=>[["AccountHolder",Kr],["AccountNumber",Kr],["Bsb",Kr],["Description",Kr]]))],["ActiveAccounts",(e=Yr("BankDetails.Shared.BackendApiModels.ApportionedBankAccount",[],Ya,(()=>[["AccountHolder",Kr],["AccountNumber",Kr],["Bsb",Kr],["Description",Kr],["Apportionment",Yr("BankDetails.Shared.BackendApiModels.Apportionment",[],Va,(()=>[["Amount",Qr],["Type",Kr]]))]])),new Ur("Microsoft.FSharp.Collections.FSharpList`1",[e]))]];var e}))}class Wa extends j{constructor(e,t,n,r){super(),this.AccountHolder=e,this.AccountNumber=t,this.Bsb=n,this.Description=r}}class Ya extends j{constructor(e,t,n,r,o){super(),this.AccountHolder=e,this.AccountNumber=t,this.Bsb=n,this.Description=r,this.Apportionment=o}}class Va extends j{constructor(e,t){super(),this.Amount=e,this.Type=t}}function Ka(e){return e}function Xa(e){return Array.from(e)}function Ja(e){return se(e,"O")}function Qa(e){return function(e,t="c"){if(-1===["c","g","G"].indexOf(t))throw new Error("Custom formats are not supported");const n=Math.abs(function(e){return Gr(e/864e5)}(e)),r=Math.abs(function(e){return Gr(e%864e5/36e5)}(e)),o=Math.abs(function(e){return Gr(e%36e5/6e4)}(e)),i=Math.abs(function(e){return Gr(e%6e4/1e3)}(e)),a=Math.abs(function(e){return Gr(e%1e3)}(e));return`${e<0?"-":""}${0!==n||"c"!==t&&"g"!==t?"c"===t?n+".":n+":":""}${"g"===t?r:d(r,2)}:${d(o,2)}:${d(i,2)}${0!==a||"c"!==t&&"g"!==t?"g"===t?"."+d(a,3):"."+function(e){return e.toString(10).padStart(3,"0").padEnd(7,"0")}(a):""}`}(e)}function Za(){return null}function es(e){return se(e,"O")}function ts(e,t,n,r){let o;const i=new R(null);let a;const s=eo(r);let c;if(a=""===s?e:Un(s,i,e),mo(r)){const e=ct((e=>{const r=cr(t,Zr(e)),o=ns(a,t,n,e[1]);return t=>i=>{const a=t[e[0]];return(!n||n&&null!=a)&&(i[r]=o(a)),i}}),lo(r));c=t=>sn(((e,n)=>n(t)(e)),{},e)}else{if(!Ao(r))throw new Error((o=eo(r),Me(Pe("Cannot generate auto encoder for %s. Please pass an extra encoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders"))(o)));c=e=>{const o=function(e,t){const n=uo(t)[e.tag];if(null==n)throw new Error(`Cannot find case ${e.name} in union type`);return[n,e.fields]}(e,r),i=o[0],s=o[1],c=0|s.length;if(0===c)return Zr(i);{const e=0|c,r=$o(i),o=st(new Array(e+1),0,e+1,null);ft(o,0,Zr(i));for(let i=1;i<=e;i++)ft(o,i,ns(a,t,n,lt(i-1,r)[1])(lt(i-1,s)));return o}}}return i.contents=c,c}function ns(e,t,n,r){const o=eo(r),i=zn(o,e);if(null!=i){const e=i;return t=>e.contents(t)}if(to(r)){const o=ns(e,t,n,no(r));return e=>Xa(un(o,e))}if(oo(r))switch(eo(ao(r))){case"System.SByte":return e=>e;case"System.Byte":return e=>e;case"System.Int16":return e=>e;case"System.UInt16":return e=>e;case"System.Int32":return e=>e;case"System.UInt32":return e=>e;default:{const e=eo(r);return Oe(Pe("Cannot generate auto encoder for %s.\nThoth.Json.Net only support the following enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\n\nIf you can't use one of these types, please pass an extra encoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders\n "))(e)}}else{if(ro(r)){if(po(r)){const o=ct((r=>ns(e,t,n,r)),fo(r));return e=>{return Xa((t=(e,t)=>lt(e,o)(t),n=e,rn((()=>Kt(n)),((e,n)=>n["System.Collections.IEnumerator.MoveNext"]()?q(t(e,n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{a(e)}))));var t,n}}{const o=eo(io(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new f((()=>{return o=ns(e,t,n,lt(0,zr(r))),e=>{return null!=(t=K(o,e))?z(t):null;var t};var o}));return e=>null==e?null:o.Value(e)}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===o||"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===o||"System.Collections.Generic.IEnumerable`1[System.Object]"===o){const o=ns(e,t,n,lt(0,zr(r)));return e=>Xa(un(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=lt(0,zr(r)),i=ns(e,t,n,lt(1,zr(r)));if("System.String"===eo(o)||"System.Guid"===eo(o))return e=>sn(((e,t)=>{const n=t;return e[n[0]]=i(n[1]),e}),{},e);{let r;const a=ns(e,t,n,o);return r=a,e=>Xa(un((e=>{const t=e;return[r(t[0]),i(t[1])]}),e))}}return ts(e,t,n,r)}}switch(o){case"System.Boolean":return e=>e;case"Microsoft.FSharp.Core.Unit":return Za;case"System.String":return e=>e;case"System.Char":return e=>e;case"System.SByte":return e=>e;case"System.Byte":return e=>e;case"System.Int16":return e=>e;case"System.UInt16":return e=>e;case"System.Int32":return e=>e;case"System.UInt32":return e=>e;case"System.Double":return e=>e;case"System.Single":return e=>e;case"System.DateTime":return es;case"System.DateTimeOffset":return Ja;case"System.TimeSpan":return Qa;case"System.Guid":return Ka;case"System.Object":return e=>e;default:return ts(e,t,n,r)}}}function rs(e,t,n,r){const o=V(t,new rr(0,[])),i=V(r,!0);return ns(function(e){return null!=e?qn(((e,t)=>new R(t[0])),e.Coders):Wn({Compare:B})}(n),o,i,e)}const os=new or("",Wn({Compare:B})),is=new or(Ar(),Un("System.Decimal",[function(e){return Or(e)},e=>t=>function(e,t){if("number"==typeof t)return new er(0,[new Pr(t)]);if("string"==typeof t){let n,r=new Pr("0");return n=[Tr(t,new R((()=>r),(e=>{r=e}))),r],n[0]?new er(0,[n[1]]):new er(1,[[e,new nr(0,["a decimal",t])]])}return new er(1,[[e,new nr(0,["a decimal",t])]])}(e,t)],os.Coders));class as extends j{constructor(e){super(),this.Message=e}}function ss(e,t){return[new Ji(new qi(0,[t.PrimaryAccount.Description]),new qi(0,[t.PrimaryAccount.AccountHolder]),new qi(0,[t.PrimaryAccount.Bsb]),new qi(0,[t.PrimaryAccount.AccountNumber]),new H(0,[])),Gt((t=>function(e,t){let n,r;const o=t.Apportionment.Type;return r="Percentage"===o?e?new Qi(1,[]):void 0:"Amount"===o?new Qi(0,[]):void 0,null==r?void 0:(n=r,new ea(Ki(),new qi(0,[t.Description]),new qi(0,[t.AccountHolder]),new qi(0,[t.Bsb]),new qi(0,[t.AccountNumber]),new ta(new qi(0,[Or(t.Apportionment.Amount)]),n),new H(0,[])))}(e,t)),t.ActiveAccounts)]}function cs(e){let t;const n=Wi(e.Amount.Input);if(1===e.Amount.Type.tag){const e=pa(n);t=null==e?new er(1,["Invalid decimal string"]):new er(0,[e])}else{const e=ma(n);t=null==e?new er(1,["Unexpected error parsing amount"]):new er(0,[new Pr(e)])}return 1===t.tag?new er(1,[t.fields[0]]):new er(0,[new Ya(Wi(e.AccountName),Wi(e.AccountNumber),Wi(e.Bsb),Wi(e.AccountNickname),new Va(t.fields[0],(r=e.Amount.Type,1===r.tag?"Percentage":"Amount")))]);var r}function us(e,t){const n=(r=e=>e,o=Tt(cs,t),function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(_t(i)){const e=r;return 1===e.tag?new er(1,[e.fields[0]]):new er(0,[Nt(e.fields[0])])}{let a;const s=o(Bt(i));if(1===s.tag)a=new er(1,[s.fields[0]]);else{const e=r;a=1===e.tag?new er(1,[e.fields[0]]):new er(0,[vt(s.fields[0],e.fields[0])])}if(1===a.tag)return a;e=a,t=o,n=kt(i);continue e}}}(new er(0,[bt()]),r,o));var r,o;return 1===n.tag?new er(1,[n.fields[0]]):new er(0,[new za(new Wa(Wi(e.AccountName),Wi(e.AccountNumber),Wi(e.Bsb),Wi(e.AccountNickname)),n.fields[0])])}function ls(e){let t;return[(t=e.Accounts,null==t?void 0:ss(e.AllowPercentageSplit,t)),e.MaxAccounts,e.AllowPercentageSplit]}class fs extends j{constructor(e,t,n,r){super(),this.Bsb=e,this.Bank=t,this.Branch=n,this.Address=r}}function ds(e){return Me(Pe("%s/bank-details/backend"))(e)}function As(e,t){return Ye.Delay((()=>{let n;const r=function(e){const t=e.Auth;let n,r;return 2===t.tag&&0===t.fields[0].tag?(n=0,r=t.fields[0].fields[0]):n=1,0===n?new er(0,[r.AccessToken]):new er(1,["Unexpected unauthenticated user"])}(e);return n=Ye.Return(r),Ye.Bind(n,(e=>{const n=e;if(1===n.tag)return Ye.Return(new er(1,[n.fields[0]]));{const e=Jn((r=Me(Pe("Bearer %s"))(n.fields[0]),new et("Authorization",r)),t);let o;const i=Qn(e);return o=Ye.Bind(i,(e=>Ye.Return(new er(0,[e])))),Ye.Bind(o,(t=>{const n=t;if(1===n.tag)return Ye.Return(new er(1,[n.fields[0]]));{const t=n.fields[0];if(t.statusCode>=500){const t=Qn(e);return Ye.Bind(t,(e=>Ye.Return(new er(0,[e]))))}return Ye.Return(new er(0,[t]))}}))}var r}))}))}function ms(e,t,n){return Ye.Delay((()=>{let r;const o=us(n.PrimaryAccount,n.NonPrimaryAccounts);return r=Ye.Return(o),Ye.Bind(r,(n=>{let r;const o=n;if(1===o.tag)return Ye.Return(new er(1,[o.fields[0]]));{const n=As(e,(i=new tt(1,[(s=0,c=rs(qa(),new rr(1,[]),is,void 0)(o.fields[0]),JSON.stringify(c,void 0,q(s)))]),a=Xn(new Ze(1,[]),Kn(ds(t))),r=new nt(a.url,a.method,a.headers,a.withCredentials,a.overridenMimeType,a.overridenResponseType,a.timeout,i),Jn(new et("Content-Type","application/json"),r)));return Ye.Bind(n,(e=>{const t=e;if(1===t.tag)return Ye.Return(new er(1,[t.fields[0]]));{const e=t.fields[0];switch(0|e.statusCode){case 200:return Ye.Return(new er(0,[void 0]));case 400:{let t,n;const r=Qo(P($i(Yr("Home.Services.Dto.Error",[],as,(()=>[["Message",Kr]])),new rr(1,[]),is)),e.responseText);return n=1===r.tag?new er(1,["There was an error saving your bank account details. Please try saving again."]):new er(0,[r.fields[0]]),t=Ye.Return(n),Ye.Bind(t,(e=>{const t=e;return 1===t.tag?Ye.Return(new er(1,[t.fields[0]])):Ye.Return(new er(1,[t.fields[0].Message]))}))}default:return Ye.Return(new er(1,["There was an error saving your bank account details. Please try saving again."]))}}}))}var i,a,s,c}))}))}function ps(e,t,n){return Ye.Delay((()=>{let r;const o=As(t,Xn(new Ze(0,[]),Kn((r=ds(n),Me(Pe("%s/bsb-lookup/%s"))(r)(e)))));return Ye.Bind(o,(e=>{const t=e;if(1===t.tag)return Ye.Return(new er(1,[t.fields[0]]));{const e=t.fields[0];switch(0|e.statusCode){case 200:{let t;const r=Qo(P($i(Yr("Home.Services.Dto.BsbLookup",[],fs,(()=>[["Bsb",Kr],["Bank",Kr],["Branch",Kr],["Address",Kr]])),new rr(1,[]),is)),e.responseText);return t=1===r.tag?new er(1,[r.fields[0]]):new er(0,[(n=r.fields[0],new Xi(n.Bsb,n.Bank,n.Branch,n.Address))]),Ye.Return(t)}case 404:return Ye.Return(new er(0,[void 0]));default:return Ye.Return(new er(1,["Unexpected result from backend"]))}}var n}))}))}function $s(){return new oa(new Ji(new qi(0,[""]),new qi(0,[""]),new qi(0,[""]),new qi(0,[""]),new H(0,[])),bt(),new H(0,[]),void 0,void 0,new H(0,[]),3,!1)}function hs(){return[$s(),Ct((e=>{e(new aa(0,[new L(0,[])]))}))]}function gs(e,t){return Wi(e)!==Wi(t)}function ws(e,t,n,r){let o,i,a,s,c,u,l,f,d,A,m,p,$,h;switch(n.tag){case 1:return 1===n.fields[1].tag?[Wi(r.PrimaryAccount.Bsb)===n.fields[0]?new oa((o=r.PrimaryAccount,new Ji(o.AccountNickname,o.AccountName,Ta(n.fields[0],r.PrimaryAccount.Bsb,new H(2,[n.fields[1].fields[0]])),o.AccountNumber,new H(2,[n.fields[1].fields[0]]))),r.NonPrimaryAccounts,r.PreExistingAccounts,r.CurrentModal,r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit):r,Pi()]:[new oa((i=r.PrimaryAccount,new Ji(i.AccountNickname,i.AccountName,i.Bsb,i.AccountNumber,new H(1,[]))),r.NonPrimaryAccounts,r.PreExistingAccounts,r.CurrentModal,r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit),Mi((e=>{Oi(e)}),(t=>ps(n.fields[0],e,t)),t,(e=>new aa(1,[n.fields[0],new L(1,[e])])),(e=>new aa(1,[n.fields[0],new L(1,[new er(1,[e.message])])])))];case 2:if(1===n.fields[2].tag)return[new oa(r.PrimaryAccount,Tt((e=>_(e.Id,n.fields[0])&&Wi(e.Bsb)===n.fields[1]?new ea(e.Id,e.AccountNickname,e.AccountName,Ta(n.fields[1],e.Bsb,new H(2,[n.fields[2].fields[0]])),e.AccountNumber,e.Amount,new H(2,[n.fields[2].fields[0]])):e),r.NonPrimaryAccounts),r.PreExistingAccounts,r.CurrentModal,r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit),Pi()];{const o=Mi((e=>{Oi(e)}),(t=>ps(n.fields[1],e,t)),t,(e=>new aa(2,[n.fields[0],n.fields[1],new L(1,[e])])),(e=>new aa(2,[n.fields[0],n.fields[1],new L(1,[new er(1,[e.message])])])));return[new oa(r.PrimaryAccount,Tt((e=>_(e.Id,n.fields[0])?new ea(e.Id,e.AccountNickname,e.AccountName,e.Bsb,e.AccountNumber,e.Amount,new H(1,[])):e),r.NonPrimaryAccounts),r.PreExistingAccounts,r.CurrentModal,r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit),o]}case 5:{const e=e=>Ga(n.fields[0],e);let t;switch(n.fields[0].tag){case 1:t=new oa((a=r.PrimaryAccount,new Ji(a.AccountNickname,e(r.PrimaryAccount.AccountName),a.Bsb,a.AccountNumber,a.BsbLookup)),r.NonPrimaryAccounts,r.PreExistingAccounts,r.CurrentModal,r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit);break;case 2:{const e=Ta(n.fields[0].fields[0],r.PrimaryAccount.Bsb,r.PrimaryAccount.BsbLookup);t=Ra(new oa((s=r.PrimaryAccount,new Ji(s.AccountNickname,s.AccountName,e,s.AccountNumber,(c=Wi(e),c.length<6||gs(r.PrimaryAccount.Bsb,e)?new H(0,[]):r.PrimaryAccount.BsbLookup))),r.NonPrimaryAccounts,r.PreExistingAccounts,r.CurrentModal,r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit));break}case 3:t=Ra(new oa((u=r.PrimaryAccount,new Ji(u.AccountNickname,u.AccountName,u.Bsb,e(r.PrimaryAccount.AccountNumber),u.BsbLookup)),r.NonPrimaryAccounts,r.PreExistingAccounts,r.CurrentModal,r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit));break;case 4:case 5:t=r;break;default:t=new oa((l=r.PrimaryAccount,new Ji(e(r.PrimaryAccount.AccountNickname),l.AccountName,l.Bsb,l.AccountNumber,l.BsbLookup)),r.NonPrimaryAccounts,r.PreExistingAccounts,r.CurrentModal,r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit)}return[t,6===(f=Wi(t.PrimaryAccount.Bsb),f.length)&&gs(r.PrimaryAccount.Bsb,t.PrimaryAccount.Bsb)?(d=new aa(1,[Wi(t.PrimaryAccount.Bsb),new L(0,[])]),Ct((e=>{e(d)}))):Pi()]}case 6:return xt(r.NonPrimaryAccounts)<10?[new oa(r.PrimaryAccount,Ot(r.NonPrimaryAccounts,Ct(new ea(Ki(),new qi(0,[""]),new qi(0,[""]),new qi(0,[""]),new qi(0,[""]),new ta(new qi(0,[""]),new Qi(0,[])),new H(0,[])))),r.PreExistingAccounts,r.CurrentModal,r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit),Pi()]:[r,Pi()];case 7:{const e=e=>Ga(n.fields[1],e),t=e=>new oa(r.PrimaryAccount,Tt((t=>_(t.Id,n.fields[0])?e(t):t),r.NonPrimaryAccounts),r.PreExistingAccounts,r.CurrentModal,r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit),o=1===n.fields[1].tag?t((t=>new ea(t.Id,t.AccountNickname,e(t.AccountName),t.Bsb,t.AccountNumber,t.Amount,t.BsbLookup))):2===n.fields[1].tag?Ra(t((e=>{let t;const r=Ta(n.fields[1].fields[0],e.Bsb,e.BsbLookup);return new ea(e.Id,e.AccountNickname,e.AccountName,r,e.AccountNumber,e.Amount,(t=Wi(r),t.length<6||gs(e.Bsb,r)?new H(0,[]):e.BsbLookup))}))):3===n.fields[1].tag?Ra(t((t=>new ea(t.Id,t.AccountNickname,t.AccountName,t.Bsb,e(t.AccountNumber),t.Amount,t.BsbLookup)))):4===n.fields[1].tag?Fa(t((t=>new ea(t.Id,t.AccountNickname,t.AccountName,t.Bsb,t.AccountNumber,new ta(e(t.Amount.Input),t.Amount.Type),t.BsbLookup)))):5===n.fields[1].tag?Fa(t((t=>{const n=1===t.Amount.Type.tag?new Qi(0,[]):new Qi(1,[]);return new ea(t.Id,t.AccountNickname,t.AccountName,t.Bsb,t.AccountNumber,new ta(e(t.Amount.Input),n),t.BsbLookup)}))):t((t=>new ea(t.Id,e(t.AccountNickname),t.AccountName,t.Bsb,t.AccountNumber,t.Amount,t.BsbLookup)));return[o,Ii(un((e=>{let t;const o=V(Dt((t=>_(t.Id,e.Id)?t.Bsb:void 0),r.NonPrimaryAccounts),new qi(0,[""]));if(6===(t=Wi(e.Bsb),t.length)&&gs(o,e.Bsb)){const t=new aa(2,[n.fields[0],Wi(e.Bsb),new L(0,[])]);return Ct((e=>{e(t)}))}return Pi()}),o.NonPrimaryAccounts))]}case 8:return[new oa(r.PrimaryAccount,Ft((e=>!_(e.Id,n.fields[0])),r.NonPrimaryAccounts),r.PreExistingAccounts,r.CurrentModal,r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit),Pi()];case 9:{const e=jt((e=>_(e.Id,n.fields[0])),r.NonPrimaryAccounts);return[null==e?r:(A=e,new oa(new Ji(A.AccountNickname,A.AccountName,A.Bsb,A.AccountNumber,A.BsbLookup),Tt((e=>_(e.Id,n.fields[0])?new ea(e.Id,r.PrimaryAccount.AccountNickname,r.PrimaryAccount.AccountName,r.PrimaryAccount.Bsb,r.PrimaryAccount.AccountNumber,e.Amount,r.PrimaryAccount.BsbLookup):e),r.NonPrimaryAccounts),r.PreExistingAccounts,r.CurrentModal,r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit)),Pi()]}case 10:return[new oa(r.PrimaryAccount,r.NonPrimaryAccounts,r.PreExistingAccounts,n.fields[0],r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit),Pi()];case 11:return[new oa(r.PrimaryAccount,r.NonPrimaryAccounts,r.PreExistingAccounts,void 0,r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit),Pi()];case 12:return[new oa(r.PrimaryAccount,r.NonPrimaryAccounts,r.PreExistingAccounts,r.CurrentModal,n.fields[0],r.Saved,r.MaximumAccounts,r.AllowPercentageSplit),Pi()];case 13:return[V(K((e=>e===n.fields[0]?new oa(r.PrimaryAccount,r.NonPrimaryAccounts,r.PreExistingAccounts,r.CurrentModal,void 0,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit):r),r.CurrentAlert),r),Pi()];case 3:{const e=r.PreExistingAccounts;let t,n,o;return 2===e.tag&&0===e.fields[0].tag&&null!=e.fields[0].fields[0]?(t=0,n=e.fields[0].fields[0][1],o=e.fields[0].fields[0][0]):t=1,0===t?[(m=$s(),new oa(o,n,r.PreExistingAccounts,m.CurrentModal,m.CurrentAlert,m.Saved,r.MaximumAccounts,r.AllowPercentageSplit)),Pi()]:[(p=$s(),new oa(p.PrimaryAccount,p.NonPrimaryAccounts,r.PreExistingAccounts,p.CurrentModal,p.CurrentAlert,p.Saved,r.MaximumAccounts,r.AllowPercentageSplit)),Pi()]}case 4:if(1===n.fields[0].tag)return 1===n.fields[0].fields[0].tag?[new oa(r.PrimaryAccount,r.NonPrimaryAccounts,r.PreExistingAccounts,r.CurrentModal,r.CurrentAlert,new H(2,[n.fields[0].fields[0]]),r.MaximumAccounts,r.AllowPercentageSplit),Ct((e=>{e(new aa(12,[new ra(1,[n.fields[0].fields[0].fields[0]])]))}))]:(Qe(Ye.Delay((()=>Ye.Bind(Je(400),(()=>(function(){let e;const t=Aa();0===t.tag&&(0===t.fields[0].tag?cn((e=>{window.parent.location.href=e}),Y(function(){const e=sessionStorage.getItem("success-redirection-url");return null==e?void 0:e}())):(e=new CustomEvent("step-completion",{detail:"bank",bubbles:!0}),t.fields[0].fields[0].dispatchEvent(e)))}(),Ye.Zero())))))),[new oa(r.PrimaryAccount,r.NonPrimaryAccounts,new H(2,[new er(0,[[r.PrimaryAccount,r.NonPrimaryAccounts]])]),r.CurrentModal,r.CurrentAlert,new H(2,[n.fields[0].fields[0]]),r.MaximumAccounts,r.AllowPercentageSplit),Ct((e=>{e(new aa(12,[new ra(0,["Your bank account details have been saved."])]))}))]);{const n=function(e){return Fa(Ra(new oa((t=e.PrimaryAccount,new Ji(Ma(Wi(t.AccountNickname)),Oa(Wi(t.AccountName)),Ta(Wi(t.Bsb),t.Bsb,t.BsbLookup),Da(Wi(t.AccountNumber),t.AccountNumber),t.BsbLookup)),Tt(Ha,e.NonPrimaryAccounts),e.PreExistingAccounts,e.CurrentModal,e.CurrentAlert,e.Saved,e.MaximumAccounts,e.AllowPercentageSplit)));var t}(r);return function(e){return!!(La(e.PrimaryAccount.AccountNickname)&&La(e.PrimaryAccount.AccountName)&&La(e.PrimaryAccount.Bsb)&&La(e.PrimaryAccount.AccountNumber))&&0===xt(Ft((e=>!(La(e.AccountNickname)&&La(e.AccountName)&&La(e.Bsb)&&La(e.AccountNumber)&&La(e.Amount.Input))),e.NonPrimaryAccounts))}(n)?[new oa(n.PrimaryAccount,n.NonPrimaryAccounts,n.PreExistingAccounts,void 0,void 0,new H(1,[]),n.MaximumAccounts,n.AllowPercentageSplit),Mi((e=>{Oi(e)}),(n=>ms(e,t,n)),n,(e=>new aa(4,[new L(1,[e])])),(e=>new aa(4,[new L(1,[new er(1,[e.message])])])))]:[n,Ct((e=>{e(new aa(12,[new ra(1,["Please provide valid values for the required fields."])]))}))]}case 14:return function(){const e=Aa();let t;t=0===e.tag&&0===e.fields[0].tag?0:1,0===t&&window.parent.postMessage({sender:"flare",type:"appReady"},"*",q(bt()))}(),[r,Pi()];default:if(1===n.fields[0].tag){if(function(){let e,t;const n=Aa();let r;switch(r=1===n.tag||1===n.fields[0].tag?1:0,r){case 0:{const n=W(document.getElementById("external-loading-page-container"));cn((t=document.body,e=e=>t.removeChild(e),t=>{e(t)}),Y(n));break}}}(),1===n.fields[0].fields[0].tag)return[new oa(r.PrimaryAccount,r.NonPrimaryAccounts,new H(2,[new er(1,["Failed to load accounts"])]),r.CurrentModal,r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit),Ct((e=>{e(new aa(12,[new ra(1,["There was an error loading your bank account details. Please try refreshing this page."])]))}))];if(null==n.fields[0].fields[0].fields[0][0])return[new oa(r.PrimaryAccount,r.NonPrimaryAccounts,new H(2,[new er(0,[void 0])]),r.CurrentModal,r.CurrentAlert,r.Saved,n.fields[0].fields[0].fields[0][1],n.fields[0].fields[0].fields[0][2]),Ct((e=>{e(new aa(14,[]))}))];{const e=n.fields[0].fields[0].fields[0][0][0],t=n.fields[0].fields[0].fields[0][0][1];return[new oa(e,t,new H(2,[new er(0,[[e,t]])]),r.CurrentModal,r.CurrentAlert,r.Saved,n.fields[0].fields[0].fields[0][1],n.fields[0].fields[0].fields[0][2]),Ii(on([Ct((e=>{e(new aa(14,[]))}))],($=un((e=>{const t=new aa(2,[e.Id,Wi(e.Bsb),new L(0,[])]);return Ct((e=>{e(t)}))}),t),on([(h=new aa(1,[Wi(e.Bsb),new L(0,[])]),Ct((e=>{e(h)})))],$))))]}}return[new oa(r.PrimaryAccount,r.NonPrimaryAccounts,new H(1,[]),r.CurrentModal,r.CurrentAlert,r.Saved,r.MaximumAccounts,r.AllowPercentageSplit),Mi((e=>{Oi(e)}),(t=>function(e,t){return Ye.Delay((()=>{const n=As(e,Xn(new Ze(0,[]),Kn(ds(t))));return Ye.Bind(n,(e=>{const t=e;if(1===t.tag)return Ye.Return(new er(1,[t.fields[0]]));{const e=t.fields[0];if(200===e.statusCode){let t;const n=Qo(P($i(Yr("BankDetails.Shared.BackendApiModels.BankDetails",[],Ua,(()=>{return[["Accounts",(e=qa(),new Ur("Microsoft.FSharp.Core.FSharpOption`1",[e]))],["MaxAccounts",Jr],["AllowPercentageSplit",Xr]];var e})),new rr(1,[]),is)),e.responseText);return t=1===n.tag?new er(1,[n.fields[0]]):new er(0,[ls(n.fields[0])]),Ye.Return(t)}return Ye.Return(new er(1,["Unexpected result from backend"]))}}))}))}(e,t)),t,(e=>new aa(0,[new L(1,[e])])),(e=>new aa(0,[new L(1,[new er(1,[e.message])])])))]}}const ys=T(n(725).A),bs="whitespace-nowrap inline-flex items-center px-4 py-2 border shadow-sm text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus disabled:opacity-40 disabled:cursor-not-allowed",vs=`${bs} border-transparent text-white bg-primary-base hover:bg-primary-hover`,Cs=`${bs} border-gray-300 text-gray-700 bg-white hover:bg-gray-50`,_s=r.default;function xs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xs(Object(n),!0).forEach((function(t){Es(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ks(e){return ks="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ks(e)}function Ss(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Es(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ns(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||Is(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ps(e){return function(e){if(Array.isArray(e))return Ms(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Is(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Is(e,t){if(e){if("string"==typeof e)return Ms(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ms(e,t):void 0}}function Ms(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Os=function(){},Ts={},Ds={},js=null,Rs={mark:Os,measure:Os};try{"undefined"!=typeof window&&(Ts=window),"undefined"!=typeof document&&(Ds=document),"undefined"!=typeof MutationObserver&&(js=MutationObserver),"undefined"!=typeof performance&&(Rs=performance)}catch(uf){}var Fs,Gs,Hs,Ls,Us,zs=(Ts.navigator||{}).userAgent,qs=void 0===zs?"":zs,Ws=Ts,Ys=Ds,Vs=js,Ks=Rs,Xs=(Ws.document,!!Ys.documentElement&&!!Ys.head&&"function"==typeof Ys.addEventListener&&"function"==typeof Ys.createElement),Js=~qs.indexOf("MSIE")||~qs.indexOf("Trident/"),Qs="___FONT_AWESOME___",Zs="svg-inline--fa",ec="data-fa-i2svg",tc="data-fa-pseudo-element",nc="data-prefix",rc="data-icon",oc="fontawesome-i2svg",ic=["HTML","HEAD","STYLE","SCRIPT"],ac=function(){try{return!0}catch(e){return!1}}(),sc="classic",cc="sharp",uc=[sc,cc];function lc(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e[sc]}})}var fc=lc((Es(Fs={},sc,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),Es(Fs,cc,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light"}),Fs)),dc=lc((Es(Gs={},sc,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),Es(Gs,cc,{solid:"fass",regular:"fasr",light:"fasl"}),Gs)),Ac=lc((Es(Hs={},sc,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),Es(Hs,cc,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light"}),Hs)),mc=lc((Es(Ls={},sc,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),Es(Ls,cc,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl"}),Ls)),pc=/fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/,$c="fa-layers-text",hc=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,gc=lc((Es(Us={},sc,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),Es(Us,cc,{900:"fass",400:"fasr",300:"fasl"}),Us)),wc=[1,2,3,4,5,6,7,8,9,10],yc=wc.concat([11,12,13,14,15,16,17,18,19,20]),bc=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],vc="duotone-group",Cc="primary",_c="secondary",xc=new Set;Object.keys(dc[sc]).map(xc.add.bind(xc)),Object.keys(dc[cc]).map(xc.add.bind(xc));var Bc=[].concat(uc,Ps(xc),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",vc,"swap-opacity",Cc,_c]).concat(wc.map((function(e){return"".concat(e,"x")}))).concat(yc.map((function(e){return"w-".concat(e)}))),kc=Ws.FontAwesomeConfig||{};Ys&&"function"==typeof Ys.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((function(e){var t=Ns(e,2),n=t[0],r=t[1],o=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=Ys.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=o&&(kc[r]=o)}));var Sc={styleDefault:"solid",familyDefault:"classic",cssPrefix:"fa",replacementClass:Zs,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};kc.familyPrefix&&(kc.cssPrefix=kc.familyPrefix);var Ec=Bs(Bs({},Sc),kc);Ec.autoReplaceSvg||(Ec.observeMutations=!1);var Nc={};Object.keys(Sc).forEach((function(e){Object.defineProperty(Nc,e,{enumerable:!0,set:function(t){Ec[e]=t,Pc.forEach((function(e){return e(Nc)}))},get:function(){return Ec[e]}})})),Object.defineProperty(Nc,"familyPrefix",{enumerable:!0,set:function(e){Ec.cssPrefix=e,Pc.forEach((function(e){return e(Nc)}))},get:function(){return Ec.cssPrefix}}),Ws.FontAwesomeConfig=Nc;var Pc=[],Ic=16,Mc={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Oc(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function Tc(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Dc(e){return e.classList?Tc(e.classList):(e.getAttribute("class")||"").split(" ").filter((function(e){return e}))}function jc(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Rc(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")}),"")}function Fc(e){return e.size!==Mc.size||e.x!==Mc.x||e.y!==Mc.y||e.rotate!==Mc.rotate||e.flipX||e.flipY}function Gc(){var e="fa",t=Zs,n=Nc.cssPrefix,r=Nc.replacementClass,o=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return o}var Hc=!1;function Lc(){Nc.autoAddCss&&!Hc&&(function(e){if(e&&Xs){var t=Ys.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Ys.head.childNodes,r=null,o=n.length-1;o>-1;o--){var i=n[o],a=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=i)}Ys.head.insertBefore(t,r)}}(Gc()),Hc=!0)}var Uc={mixout:function(){return{dom:{css:Gc,insertCss:Lc}}},hooks:function(){return{beforeDOMElementCreation:function(){Lc()},beforeI2svg:function(){Lc()}}}},zc=Ws||{};zc[Qs]||(zc[Qs]={}),zc[Qs].styles||(zc[Qs].styles={}),zc[Qs].hooks||(zc[Qs].hooks={}),zc[Qs].shims||(zc[Qs].shims=[]);var qc=zc[Qs],Wc=[],Yc=!1;function Vc(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,o=e.children,i=void 0===o?[]:o;return"string"==typeof e?jc(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(jc(e[n]),'" ')}),"").trim()}(r),">").concat(i.map(Vc).join(""),"</").concat(t,">")}function Kc(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}Xs&&((Yc=(Ys.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ys.readyState))||Ys.addEventListener("DOMContentLoaded",(function e(){Ys.removeEventListener("DOMContentLoaded",e),Yc=1,Wc.map((function(e){return e()}))})));var Xc=function(e,t,n,r){var o,i,a,s=Object.keys(e),c=s.length,u=void 0!==r?function(e,t){return function(n,r,o,i){return e.call(t,n,r,o,i)}}(t,r):t;for(void 0===n?(o=1,a=e[s[0]]):(o=0,a=n);o<c;o++)a=u(a,e[i=s[o]],i,e);return a};function Jc(e){var t=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&o)<<10)+(1023&i)+65536):(t.push(o),n--)}else t.push(o)}return t}(e);return 1===t.length?t[0].toString(16):null}function Qc(e){return Object.keys(e).reduce((function(t,n){var r=e[n];return r.icon?t[r.iconName]=r.icon:t[n]=r,t}),{})}function Zc(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,r=void 0!==n&&n,o=Qc(t);"function"!=typeof qc.hooks.addPack||r?qc.styles[e]=Bs(Bs({},qc.styles[e]||{}),o):qc.hooks.addPack(e,Qc(t)),"fas"===e&&Zc("fa",t)}var eu,tu,nu,ru=qc.styles,ou=qc.shims,iu=(Es(eu={},sc,Object.values(Ac[sc])),Es(eu,cc,Object.values(Ac[cc])),eu),au=null,su={},cu={},uu={},lu={},fu={},du=(Es(tu={},sc,Object.keys(fc[sc])),Es(tu,cc,Object.keys(fc[cc])),tu);var Au,mu=function(){var e=function(e){return Xc(ru,(function(t,n,r){return t[r]=Xc(n,e,{}),t}),{})};su=e((function(e,t,n){if(t[3]&&(e[t[3]]=n),t[2]){var r=t[2].filter((function(e){return"number"==typeof e}));r.forEach((function(t){e[t.toString(16)]=n}))}return e})),cu=e((function(e,t,n){if(e[n]=n,t[2]){var r=t[2].filter((function(e){return"string"==typeof e}));r.forEach((function(t){e[t]=n}))}return e})),fu=e((function(e,t,n){var r=t[2];return e[n]=n,r.forEach((function(t){e[t]=n})),e}));var t="far"in ru||Nc.autoFetchSvg,n=Xc(ou,(function(e,n){var r=n[0],o=n[1],i=n[2];return"far"!==o||t||(o="fas"),"string"==typeof r&&(e.names[r]={prefix:o,iconName:i}),"number"==typeof r&&(e.unicodes[r.toString(16)]={prefix:o,iconName:i}),e}),{names:{},unicodes:{}});uu=n.names,lu=n.unicodes,au=wu(Nc.styleDefault,{family:Nc.familyDefault})};function pu(e,t){return(su[e]||{})[t]}function $u(e,t){return(fu[e]||{})[t]}function hu(e){return uu[e]||{prefix:null,iconName:null}}function gu(){return au}function wu(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,n=void 0===t?sc:t,r=fc[n][e],o=dc[n][e]||dc[n][r],i=e in qc.styles?e:null;return o||i||null}Au=function(e){au=wu(e.styleDefault,{family:Nc.familyDefault})},Pc.push(Au),mu();var yu=(Es(nu={},sc,Object.keys(Ac[sc])),Es(nu,cc,Object.keys(Ac[cc])),nu);function bu(e){var t,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,r=void 0!==n&&n,o=(Es(t={},sc,"".concat(Nc.cssPrefix,"-").concat(sc)),Es(t,cc,"".concat(Nc.cssPrefix,"-").concat(cc)),t),i=null,a=sc;(e.includes(o[sc])||e.some((function(e){return yu[sc].includes(e)})))&&(a=sc),(e.includes(o[cc])||e.some((function(e){return yu[cc].includes(e)})))&&(a=cc);var s=e.reduce((function(e,t){var n=function(e,t){var n,r=t.split("-"),o=r[0],i=r.slice(1).join("-");return o!==e||""===i||(n=i,~Bc.indexOf(n))?null:i}(Nc.cssPrefix,t);if(ru[t]?(t=iu[a].includes(t)?mc[a][t]:t,i=t,e.prefix=t):du[a].indexOf(t)>-1?(i=t,e.prefix=wu(t,{family:a})):n?e.iconName=n:t!==Nc.replacementClass&&t!==o[sc]&&t!==o[cc]&&e.rest.push(t),!r&&e.prefix&&e.iconName){var s="fa"===i?hu(e.iconName):{},c=$u(e.prefix,e.iconName);s.prefix&&(i=null),e.iconName=s.iconName||c||e.iconName,e.prefix=s.prefix||e.prefix,"far"!==e.prefix||ru.far||!ru.fas||Nc.autoFetchSvg||(e.prefix="fas")}return e}),{prefix:null,iconName:null,rest:[]});return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),s.prefix||a!==cc||!ru.fass&&!Nc.autoFetchSvg||(s.prefix="fass",s.iconName=$u(s.prefix,s.iconName)||s.iconName),"fa"!==s.prefix&&"fa"!==i||(s.prefix=gu()||"fas"),s}var vu=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,n;return t=e,n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.reduce(this._pullDefinitions,{});Object.keys(o).forEach((function(t){e.definitions[t]=Bs(Bs({},e.definitions[t]||{}),o[t]),Zc(t,o[t]);var n=Ac[sc][t];n&&Zc(n,o[t]),mu()}))}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((function(t){var r=n[t],o=r.prefix,i=r.iconName,a=r.icon,s=a[2];e[o]||(e[o]={}),s.length>0&&s.forEach((function(t){"string"==typeof t&&(e[o][t]=a)})),e[o][i]=a})),e}}],n&&Ss(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Cu=[],_u={},xu={},Bu=Object.keys(xu);function ku(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return(_u[e]||[]).forEach((function(e){t=e.apply(null,[t].concat(r))})),t}function Su(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(_u[e]||[]).forEach((function(e){e.apply(null,n)}))}function Eu(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return xu[e]?xu[e].apply(null,t):void 0}function Nu(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,n=e.prefix||gu();if(t)return t=$u(n,t)||t,Kc(Pu.definitions,n,t)||Kc(qc.styles,n,t)}var Pu=new vu,Iu={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Xs?(Su("beforeI2svg",e),Eu("pseudoElements2svg",e),Eu("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.autoReplaceSvgRoot;!1===Nc.autoReplaceSvg&&(Nc.autoReplaceSvg=!0),Nc.observeMutations=!0,e=function(){Ou({autoReplaceSvgRoot:n}),Su("watch",t)},Xs&&(Yc?setTimeout(e,0):Wc.push(e))}},Mu={noAuto:function(){Nc.autoReplaceSvg=!1,Nc.observeMutations=!1,Su("noAuto")},config:Nc,dom:Iu,parse:{icon:function(e){if(null===e)return null;if("object"===ks(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:$u(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=wu(e[0]);return{prefix:n,iconName:$u(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(Nc.cssPrefix,"-"))>-1||e.match(pc))){var r=bu(e.split(" "),{skipLookups:!0});return{prefix:r.prefix||gu(),iconName:$u(r.prefix,r.iconName)||r.iconName}}if("string"==typeof e){var o=gu();return{prefix:o,iconName:$u(o,e)||e}}}},library:Pu,findIconDefinition:Nu,toHtml:Vc},Ou=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,t=void 0===e?Ys:e;(Object.keys(qc.styles).length>0||Nc.autoFetchSvg)&&Xs&&Nc.autoReplaceSvg&&Mu.dom.i2svg({node:t})};function Tu(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return Vc(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(Xs){var t=Ys.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function Du(e){var t=e.icons,n=t.main,r=t.mask,o=e.prefix,i=e.iconName,a=e.transform,s=e.symbol,c=e.title,u=e.maskId,l=e.titleId,f=e.extra,d=e.watchable,A=void 0!==d&&d,m=r.found?r:n,p=m.width,$=m.height,h="fak"===o,g=[Nc.replacementClass,i?"".concat(Nc.cssPrefix,"-").concat(i):""].filter((function(e){return-1===f.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(f.classes).join(" "),w={children:[],attributes:Bs(Bs({},f.attributes),{},{"data-prefix":o,"data-icon":i,class:g,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(p," ").concat($)})},y=h&&!~f.classes.indexOf("fa-fw")?{width:"".concat(p/$*16*.0625,"em")}:{};A&&(w.attributes[ec]=""),c&&(w.children.push({tag:"title",attributes:{id:w.attributes["aria-labelledby"]||"title-".concat(l||Oc())},children:[c]}),delete w.attributes.title);var b=Bs(Bs({},w),{},{prefix:o,iconName:i,main:n,mask:r,maskId:u,transform:a,symbol:s,styles:Bs(Bs({},y),f.styles)}),v=r.found&&n.found?Eu("generateAbstractMask",b)||{children:[],attributes:{}}:Eu("generateAbstractIcon",b)||{children:[],attributes:{}},C=v.children,_=v.attributes;return b.children=C,b.attributes=_,s?function(e){var t=e.prefix,n=e.iconName,r=e.children,o=e.attributes,i=e.symbol,a=!0===i?"".concat(t,"-").concat(Nc.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Bs(Bs({},o),{},{id:a}),children:r}]}]}(b):function(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,i=e.styles,a=e.transform;if(Fc(a)&&n.found&&!r.found){var s={x:n.width/n.height/2,y:.5};o.style=Rc(Bs(Bs({},i),{},{"transform-origin":"".concat(s.x+a.x/16,"em ").concat(s.y+a.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(b)}function ju(e){var t=e.content,n=e.width,r=e.height,o=e.transform,i=e.title,a=e.extra,s=e.watchable,c=void 0!==s&&s,u=Bs(Bs(Bs({},a.attributes),i?{title:i}:{}),{},{class:a.classes.join(" ")});c&&(u[ec]="");var l=Bs({},a.styles);Fc(o)&&(l.transform=function(e){var t=e.transform,n=e.width,r=void 0===n?16:n,o=e.height,i=void 0===o?16:o,a=e.startCentered,s=void 0!==a&&a,c="";return c+=s&&Js?"translate(".concat(t.x/Ic-r/2,"em, ").concat(t.y/Ic-i/2,"em) "):s?"translate(calc(-50% + ".concat(t.x/Ic,"em), calc(-50% + ").concat(t.y/Ic,"em)) "):"translate(".concat(t.x/Ic,"em, ").concat(t.y/Ic,"em) "),(c+="scale(".concat(t.size/Ic*(t.flipX?-1:1),", ").concat(t.size/Ic*(t.flipY?-1:1),") "))+"rotate(".concat(t.rotate,"deg) ")}({transform:o,startCentered:!0,width:n,height:r}),l["-webkit-transform"]=l.transform);var f=Rc(l);f.length>0&&(u.style=f);var d=[];return d.push({tag:"span",attributes:u,children:[t]}),i&&d.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),d}var Ru=qc.styles;function Fu(e){var t=e[0],n=e[1],r=Ns(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(Nc.cssPrefix,"-").concat(vc)},children:[{tag:"path",attributes:{class:"".concat(Nc.cssPrefix,"-").concat(_c),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(Nc.cssPrefix,"-").concat(Cc),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var Gu={found:!1,width:512,height:512};function Hu(e,t){var n=t;return"fa"===t&&null!==Nc.styleDefault&&(t=gu()),new Promise((function(r,o){if(Eu("missingIconAbstract"),"fa"===n){var i=hu(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&Ru[t]&&Ru[t][e])return r(Fu(Ru[t][e]));!function(e,t){ac||Nc.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(Bs(Bs({},Gu),{},{icon:Nc.showMissingIcons&&e&&Eu("missingIconAbstract")||{}}))}))}var Lu=function(){},Uu=Nc.measurePerformance&&Ks&&Ks.mark&&Ks.measure?Ks:{mark:Lu,measure:Lu},zu='FA "6.4.2"',qu=function(e){return Uu.mark("".concat(zu," ").concat(e," begins")),function(){return function(e){Uu.mark("".concat(zu," ").concat(e," ends")),Uu.measure("".concat(zu," ").concat(e),"".concat(zu," ").concat(e," begins"),"".concat(zu," ").concat(e," ends"))}(e)}},Wu=function(){};function Yu(e){return"string"==typeof(e.getAttribute?e.getAttribute(ec):null)}function Vu(e){return Ys.createElementNS("http://www.w3.org/2000/svg",e)}function Ku(e){return Ys.createElement(e)}function Xu(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,n=void 0===t?"svg"===e.tag?Vu:Ku:t;if("string"==typeof e)return Ys.createTextNode(e);var r=n(e.tag);return Object.keys(e.attributes||[]).forEach((function(t){r.setAttribute(t,e.attributes[t])})),(e.children||[]).forEach((function(e){r.appendChild(Xu(e,{ceFn:n}))})),r}var Ju={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach((function(e){t.parentNode.insertBefore(Xu(e),t)})),null===t.getAttribute(ec)&&Nc.keepOriginalSource){var n=Ys.createComment(function(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~Dc(t).indexOf(Nc.replacementClass))return Ju.replace(e);var r=new RegExp("".concat(Nc.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var o=n[0].attributes.class.split(" ").reduce((function(e,t){return t===Nc.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e}),{toNode:[],toSvg:[]});n[0].attributes.class=o.toSvg.join(" "),0===o.toNode.length?t.removeAttribute("class"):t.setAttribute("class",o.toNode.join(" "))}var i=n.map((function(e){return Vc(e)})).join("\n");t.setAttribute(ec,""),t.innerHTML=i}};function Qu(e){e()}function Zu(e,t){var n="function"==typeof t?t:Wu;if(0===e.length)n();else{var r=Qu;"async"===Nc.mutateApproach&&(r=Ws.requestAnimationFrame||Qu),r((function(){var t=!0===Nc.autoReplaceSvg?Ju.replace:Ju[Nc.autoReplaceSvg]||Ju.replace,r=qu("mutate");e.map(t),r(),n()}))}}var el=!1;function tl(){el=!0}function nl(){el=!1}var rl=null;function ol(e){if(Vs&&Nc.observeMutations){var t=e.treeCallback,n=void 0===t?Wu:t,r=e.nodeCallback,o=void 0===r?Wu:r,i=e.pseudoElementsCallback,a=void 0===i?Wu:i,s=e.observeMutationsRoot,c=void 0===s?Ys:s;rl=new Vs((function(e){if(!el){var t=gu();Tc(e).forEach((function(e){if("childList"===e.type&&e.addedNodes.length>0&&!Yu(e.addedNodes[0])&&(Nc.searchPseudoElements&&a(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&Nc.searchPseudoElements&&a(e.target.parentNode),"attributes"===e.type&&Yu(e.target)&&~bc.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(nc):null,n=e.getAttribute?e.getAttribute(rc):null;return t&&n}(e.target)){var r=bu(Dc(e.target)),i=r.prefix,s=r.iconName;e.target.setAttribute(nc,i||t),s&&e.target.setAttribute(rc,s)}else(c=e.target)&&c.classList&&c.classList.contains&&c.classList.contains(Nc.replacementClass)&&o(e.target);var c}))}})),Xs&&rl.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function il(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=function(e){var t,n,r=e.getAttribute("data-prefix"),o=e.getAttribute("data-icon"),i=void 0!==e.innerText?e.innerText.trim():"",a=bu(Dc(e));return a.prefix||(a.prefix=gu()),r&&o&&(a.prefix=r,a.iconName=o),a.iconName&&a.prefix||(a.prefix&&i.length>0&&(a.iconName=(t=a.prefix,n=e.innerText,(cu[t]||{})[n]||pu(a.prefix,Jc(e.innerText)))),!a.iconName&&Nc.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=e.firstChild.data)),a}(e),r=n.iconName,o=n.prefix,i=n.rest,a=function(e){var t=Tc(e.attributes).reduce((function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e}),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return Nc.autoA11y&&(n?t["aria-labelledby"]="".concat(Nc.replacementClass,"-title-").concat(r||Oc()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),s=ku("parseNodeAttributes",{},e),c=t.styleParser?function(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce((function(e,t){var n=t.split(":"),r=n[0],o=n.slice(1);return r&&o.length>0&&(e[r]=o.join(":").trim()),e}),{})),n}(e):[];return Bs({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:o,transform:Mc,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:c,attributes:a}},s)}var al=qc.styles;function sl(e){var t="nest"===Nc.autoReplaceSvg?il(e,{styleParser:!1}):il(e);return~t.extra.classes.indexOf($c)?Eu("generateLayersText",e,t):Eu("generateSvgReplacementMutation",e,t)}var cl=new Set;function ul(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Xs)return Promise.resolve();var n=Ys.documentElement.classList,r=function(e){return n.add("".concat(oc,"-").concat(e))},o=function(e){return n.remove("".concat(oc,"-").concat(e))},i=Nc.autoFetchSvg?cl:uc.map((function(e){return"fa-".concat(e)})).concat(Object.keys(al));i.includes("fa")||i.push("fa");var a=[".".concat($c,":not([").concat(ec,"])")].concat(i.map((function(e){return".".concat(e,":not([").concat(ec,"])")}))).join(", ");if(0===a.length)return Promise.resolve();var s=[];try{s=Tc(e.querySelectorAll(a))}catch(e){}if(!(s.length>0))return Promise.resolve();r("pending"),o("complete");var c=qu("onTree"),u=s.reduce((function(e,t){try{var n=sl(t);n&&e.push(n)}catch(e){ac||"MissingIcon"===e.name&&console.error(e)}return e}),[]);return new Promise((function(e,n){Promise.all(u).then((function(n){Zu(n,(function(){r("active"),r("complete"),o("pending"),"function"==typeof t&&t(),c(),e()}))})).catch((function(e){c(),n(e)}))}))}function ll(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;sl(e).then((function(e){e&&Zu([e],t)}))}uc.map((function(e){cl.add("fa-".concat(e))})),Object.keys(fc[sc]).map(cl.add.bind(cl)),Object.keys(fc[cc]).map(cl.add.bind(cl)),cl=Ps(cl);var fl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?Mc:n,o=t.symbol,i=void 0!==o&&o,a=t.mask,s=void 0===a?null:a,c=t.maskId,u=void 0===c?null:c,l=t.title,f=void 0===l?null:l,d=t.titleId,A=void 0===d?null:d,m=t.classes,p=void 0===m?[]:m,$=t.attributes,h=void 0===$?{}:$,g=t.styles,w=void 0===g?{}:g;if(e){var y=e.prefix,b=e.iconName,v=e.icon;return Tu(Bs({type:"icon"},e),(function(){return Su("beforeDOMElementCreation",{iconDefinition:e,params:t}),Nc.autoA11y&&(f?h["aria-labelledby"]="".concat(Nc.replacementClass,"-title-").concat(A||Oc()):(h["aria-hidden"]="true",h.focusable="false")),Du({icons:{main:Fu(v),mask:s?Fu(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:y,iconName:b,transform:Bs(Bs({},Mc),r),symbol:i,title:f,maskId:u,titleId:A,extra:{attributes:h,styles:w,classes:p}})}))}},dl={mixout:function(){return{icon:(e=fl,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(t||{}).icon?t:Nu(t||{}),o=n.mask;return o&&(o=(o||{}).icon?o:Nu(o||{})),e(r,Bs(Bs({},n),{},{mask:o}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=ul,e.nodeCallback=ll,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=void 0===t?Ys:t,r=e.callback;return ul(n,void 0===r?function(){}:r)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,r=t.title,o=t.titleId,i=t.prefix,a=t.transform,s=t.symbol,c=t.mask,u=t.maskId,l=t.extra;return new Promise((function(t,f){Promise.all([Hu(n,i),c.iconName?Hu(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((function(c){var f=Ns(c,2),d=f[0],A=f[1];t([e,Du({icons:{main:d,mask:A},prefix:i,iconName:n,transform:a,symbol:s,maskId:u,title:r,titleId:o,extra:l,watchable:!0})])})).catch(f)}))},e.generateAbstractIcon=function(e){var t,n=e.children,r=e.attributes,o=e.main,i=e.transform,a=Rc(e.styles);return a.length>0&&(r.style=a),Fc(i)&&(t=Eu("generateAbstractTransformGrouping",{main:o,transform:i,containerWidth:o.width,iconWidth:o.width})),n.push(t||o.icon),{children:n,attributes:r}}}},Al={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.classes,r=void 0===n?[]:n;return Tu({type:"layer"},(function(){Su("beforeDOMElementCreation",{assembler:e,params:t});var n=[];return e((function(e){Array.isArray(e)?e.map((function(e){n=n.concat(e.abstract)})):n=n.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(Nc.cssPrefix,"-layers")].concat(Ps(r)).join(" ")},children:n}]}))}}}},ml={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.title,r=void 0===n?null:n,o=t.classes,i=void 0===o?[]:o,a=t.attributes,s=void 0===a?{}:a,c=t.styles,u=void 0===c?{}:c;return Tu({type:"counter",content:e},(function(){return Su("beforeDOMElementCreation",{content:e,params:t}),function(e){var t=e.content,n=e.title,r=e.extra,o=Bs(Bs(Bs({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=Rc(r.styles);i.length>0&&(o.style=i);var a=[];return a.push({tag:"span",attributes:o,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}({content:e.toString(),title:r,extra:{attributes:s,styles:u,classes:["".concat(Nc.cssPrefix,"-layers-counter")].concat(Ps(i))}})}))}}}},pl={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?Mc:n,o=t.title,i=void 0===o?null:o,a=t.classes,s=void 0===a?[]:a,c=t.attributes,u=void 0===c?{}:c,l=t.styles,f=void 0===l?{}:l;return Tu({type:"text",content:e},(function(){return Su("beforeDOMElementCreation",{content:e,params:t}),ju({content:e,transform:Bs(Bs({},Mc),r),title:i,extra:{attributes:u,styles:f,classes:["".concat(Nc.cssPrefix,"-layers-text")].concat(Ps(s))}})}))}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.title,r=t.transform,o=t.extra,i=null,a=null;if(Js){var s=parseInt(getComputedStyle(e).fontSize,10),c=e.getBoundingClientRect();i=c.width/s,a=c.height/s}return Nc.autoA11y&&!n&&(o.attributes["aria-hidden"]="true"),Promise.resolve([e,ju({content:e.innerHTML,width:i,height:a,transform:r,title:n,extra:o,watchable:!0})])}}},$l=new RegExp('"',"ug"),hl=[1105920,1112319];function gl(e,t){var n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise((function(r,o){if(null!==e.getAttribute(n))return r();var i,a,s,c=Tc(e.children).filter((function(e){return e.getAttribute(tc)===t}))[0],u=Ws.getComputedStyle(e,t),l=u.getPropertyValue("font-family").match(hc),f=u.getPropertyValue("font-weight"),d=u.getPropertyValue("content");if(c&&!l)return e.removeChild(c),r();if(l&&"none"!==d&&""!==d){var A=u.getPropertyValue("content"),m=~["Sharp"].indexOf(l[2])?cc:sc,p=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?dc[m][l[2].toLowerCase()]:gc[m][f],$=function(e){var t=e.replace($l,""),n=function(e){var t,n=e.length,r=e.charCodeAt(0);return r>=55296&&r<=56319&&n>1&&(t=e.charCodeAt(1))>=56320&&t<=57343?1024*(r-55296)+t-56320+65536:r}(t),r=n>=hl[0]&&n<=hl[1],o=2===t.length&&t[0]===t[1];return{value:Jc(o?t[0]:t),isSecondary:r||o}}(A),h=$.value,g=$.isSecondary,w=l[0].startsWith("FontAwesome"),y=pu(p,h),b=y;if(w){var v=(a=lu[i=h],s=pu("fas",i),a||(s?{prefix:"fas",iconName:s}:null)||{prefix:null,iconName:null});v.iconName&&v.prefix&&(y=v.iconName,p=v.prefix)}if(!y||g||c&&c.getAttribute(nc)===p&&c.getAttribute(rc)===b)r();else{e.setAttribute(n,b),c&&e.removeChild(c);var C={iconName:null,title:null,titleId:null,prefix:null,transform:Mc,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},_=C.extra;_.attributes[tc]=t,Hu(y,p).then((function(o){var i=Du(Bs(Bs({},C),{},{icons:{main:o,mask:{prefix:null,iconName:null,rest:[]}},prefix:p,iconName:b,extra:_,watchable:!0})),a=Ys.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(a,e.firstChild):e.appendChild(a),a.outerHTML=i.map((function(e){return Vc(e)})).join("\n"),e.removeAttribute(n),r()})).catch(o)}}else r()}))}function wl(e){return Promise.all([gl(e,"::before"),gl(e,"::after")])}function yl(e){return!(e.parentNode===document.head||~ic.indexOf(e.tagName.toUpperCase())||e.getAttribute(tc)||e.parentNode&&"svg"===e.parentNode.tagName)}function bl(e){if(Xs)return new Promise((function(t,n){var r=Tc(e.querySelectorAll("*")).filter(yl).map(wl),o=qu("searchPseudoElements");tl(),Promise.all(r).then((function(){o(),nl(),t()})).catch((function(){o(),nl(),n()}))}))}var vl=!1,Cl=function(e){return e.toLowerCase().split(" ").reduce((function(e,t){var n=t.toLowerCase().split("-"),r=n[0],o=n.slice(1).join("-");if(r&&"h"===o)return e.flipX=!0,e;if(r&&"v"===o)return e.flipY=!0,e;if(o=parseFloat(o),isNaN(o))return e;switch(r){case"grow":e.size=e.size+o;break;case"shrink":e.size=e.size-o;break;case"left":e.x=e.x-o;break;case"right":e.x=e.x+o;break;case"up":e.y=e.y-o;break;case"down":e.y=e.y+o;break;case"rotate":e.rotate=e.rotate+o}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},_l={mixout:function(){return{parse:{transform:function(e){return Cl(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=Cl(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.containerWidth,o=e.iconWidth,i={transform:"translate(".concat(r/2," 256)")},a="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),c="rotate(".concat(n.rotate," 0 0)"),u={outer:i,inner:{transform:"".concat(a," ").concat(s," ").concat(c)},path:{transform:"translate(".concat(o/2*-1," -256)")}};return{tag:"g",attributes:Bs({},u.outer),children:[{tag:"g",attributes:Bs({},u.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:Bs(Bs({},t.icon.attributes),u.path)}]}]}}}},xl={x:0,y:0,width:"100%",height:"100%"};function Bl(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var kl,Sl={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),r=n?bu(n.split(" ").map((function(e){return e.trim()}))):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=gu()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,n=e.children,r=e.attributes,o=e.main,i=e.mask,a=e.maskId,s=e.transform,c=o.width,u=o.icon,l=i.width,f=i.icon,d=function(e){var t=e.transform,n=e.iconWidth,r={transform:"translate(".concat(e.containerWidth/2," 256)")},o="translate(".concat(32*t.x,", ").concat(32*t.y,") "),i="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)");return{outer:r,inner:{transform:"".concat(o," ").concat(i," ").concat(a)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}({transform:s,containerWidth:l,iconWidth:c}),A={tag:"rect",attributes:Bs(Bs({},xl),{},{fill:"white"})},m=u.children?{children:u.children.map(Bl)}:{},p={tag:"g",attributes:Bs({},d.inner),children:[Bl(Bs({tag:u.tag,attributes:Bs(Bs({},u.attributes),d.path)},m))]},$={tag:"g",attributes:Bs({},d.outer),children:[p]},h="mask-".concat(a||Oc()),g="clip-".concat(a||Oc()),w={tag:"mask",attributes:Bs(Bs({},xl),{},{id:h,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[A,$]},y={tag:"defs",children:[{tag:"clipPath",attributes:{id:g},children:(t=f,"g"===t.tag?t.children:[t])},w]};return n.push(y,{tag:"rect",attributes:Bs({fill:"currentColor","clip-path":"url(#".concat(g,")"),mask:"url(#".concat(h,")")},xl)}),{children:n,attributes:r}}}},El={provides:function(e){var t=!1;Ws.matchMedia&&(t=Ws.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:Bs(Bs({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=Bs(Bs({},r),{},{attributeName:"opacity"}),i={tag:"circle",attributes:Bs(Bs({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||i.children.push({tag:"animate",attributes:Bs(Bs({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Bs(Bs({},o),{},{values:"1;0;1;1;0;1;"})}),e.push(i),e.push({tag:"path",attributes:Bs(Bs({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:Bs(Bs({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:Bs(Bs({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Bs(Bs({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}},Nl=[Uc,dl,Al,ml,pl,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=bl,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=void 0===t?Ys:t;Nc.searchPseudoElements&&bl(n)}}},{mixout:function(){return{dom:{unwatch:function(){tl(),vl=!0}}}},hooks:function(){return{bootstrap:function(){ol(ku("mutationObserverCallbacks",{}))},noAuto:function(){rl&&rl.disconnect()},watch:function(e){var t=e.observeMutationsRoot;vl?nl():ol(ku("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},_l,Sl,El,{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-symbol"),r=null!==n&&(""===n||n);return e.symbol=r,e}}}}];kl={mixoutsTo:Mu}.mixoutsTo,Cu=Nl,_u={},Object.keys(xu).forEach((function(e){-1===Bu.indexOf(e)&&delete xu[e]})),Cu.forEach((function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((function(e){"function"==typeof t[e]&&(kl[e]=t[e]),"object"===ks(t[e])&&Object.keys(t[e]).forEach((function(n){kl[e]||(kl[e]={}),kl[e][n]=t[e][n]}))})),e.hooks){var n=e.hooks();Object.keys(n).forEach((function(e){_u[e]||(_u[e]=[]),_u[e].push(n[e])}))}e.provides&&e.provides(xu)}));var Pl=Mu.parse,Il=Mu.icon,Ml=n(556),Ol=n.n(Ml);function Tl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tl(Object(n),!0).forEach((function(t){Rl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jl(e){return jl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jl(e)}function Rl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fl(e){return function(e){if(Array.isArray(e))return Gl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Gl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gl(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hl(e){return t=e,(t-=0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var Ll=["style"],Ul=!1;try{Ul=!0}catch(uf){}function zl(e){return e&&"object"===jl(e)&&e.prefix&&e.iconName&&e.icon?e:Pl.icon?Pl.icon(e):null===e?null:e&&"object"===jl(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function ql(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Rl({},e,t):{}}var Wl=r.default.forwardRef((function(e,t){var n=e.icon,r=e.mask,o=e.symbol,i=e.className,a=e.title,s=e.titleId,c=e.maskId,u=zl(n),l=ql("classes",[].concat(Fl(function(e){var t,n=e.beat,r=e.fade,o=e.beatFade,i=e.bounce,a=e.shake,s=e.flash,c=e.spin,u=e.spinPulse,l=e.spinReverse,f=e.pulse,d=e.fixedWidth,A=e.inverse,m=e.border,p=e.listItem,$=e.flip,h=e.size,g=e.rotation,w=e.pull,y=(Rl(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":o,"fa-bounce":i,"fa-shake":a,"fa-flash":s,"fa-spin":c,"fa-spin-reverse":l,"fa-spin-pulse":u,"fa-pulse":f,"fa-fw":d,"fa-inverse":A,"fa-border":m,"fa-li":p,"fa-flip":!0===$,"fa-flip-horizontal":"horizontal"===$||"both"===$,"fa-flip-vertical":"vertical"===$||"both"===$},"fa-".concat(h),null!=h),Rl(t,"fa-rotate-".concat(g),null!=g&&0!==g),Rl(t,"fa-pull-".concat(w),null!=w),Rl(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(y).map((function(e){return y[e]?e:null})).filter((function(e){return e}))}(e)),Fl(i.split(" ")))),f=ql("transform","string"==typeof e.transform?Pl.transform(e.transform):e.transform),d=ql("mask",zl(r)),A=Il(u,Dl(Dl(Dl(Dl({},l),f),d),{},{symbol:o,title:a,titleId:s,maskId:c}));if(!A)return function(){var e;!Ul&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",u),null;var m=A.abstract,p={ref:t};return Object.keys(e).forEach((function(t){Wl.defaultProps.hasOwnProperty(t)||(p[t]=e[t])})),Yl(m[0],p)}));Wl.displayName="FontAwesomeIcon",Wl.propTypes={beat:Ol().bool,border:Ol().bool,beatFade:Ol().bool,bounce:Ol().bool,className:Ol().string,fade:Ol().bool,flash:Ol().bool,mask:Ol().oneOfType([Ol().object,Ol().array,Ol().string]),maskId:Ol().string,fixedWidth:Ol().bool,inverse:Ol().bool,flip:Ol().oneOf([!0,!1,"horizontal","vertical","both"]),icon:Ol().oneOfType([Ol().object,Ol().array,Ol().string]),listItem:Ol().bool,pull:Ol().oneOf(["right","left"]),pulse:Ol().bool,rotation:Ol().oneOf([0,90,180,270]),shake:Ol().bool,size:Ol().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Ol().bool,spinPulse:Ol().bool,spinReverse:Ol().bool,symbol:Ol().oneOfType([Ol().bool,Ol().string]),title:Ol().string,titleId:Ol().string,transform:Ol().oneOfType([Ol().string,Ol().object]),swapOpacity:Ol().bool},Wl.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var Yl=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var o=(n.children||[]).map((function(n){return e(t,n)})),i=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=r.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),o=Hl(t.slice(0,r)),i=t.slice(r+1).trim();return o.startsWith("webkit")?e[(n=o,n.charAt(0).toUpperCase()+n.slice(1))]=i:e[o]=i,e}),{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[Hl(t)]=r}return e}),{attrs:{}}),a=r.style,s=void 0===a?{}:a,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(r,Ll);return i.attrs.style=Dl(Dl({},i.attrs.style),s),t.apply(void 0,[n.tag,Dl(Dl({},i.attrs),c)].concat(Fl(o)))}.bind(null,r.default.createElement);function Vl(e){return r.createElement(Wl,e)}const Kl=Vl({icon:{prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]}}),Xl=Vl({color:"crimson",icon:{prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z"]}}),Jl=Vl({icon:{prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]}}),Ql=(Vl({icon:{prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M222.7 32.1c5 16.9-4.6 34.8-21.5 39.8C121.8 95.6 64 169.1 64 256c0 106 86 192 192 192s192-86 192-192c0-86.9-57.8-160.4-137.1-184.1c-16.9-5-26.6-22.9-21.5-39.8s22.9-26.6 39.8-21.5C434.9 42.1 512 140 512 256c0 141.4-114.6 256-256 256S0 397.4 0 256C0 140 77.1 42.1 182.9 10.6c16.9-5 34.8 4.6 39.8 21.5z"]}}),Vl({icon:{prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]}})),Zl=Vl({icon:{prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]}});function ef(e){return 0===e.tag?"text-green-700":"text-red-700"}function tf(e){return 0===e.tag?"bg-green-50":"bg-red-50"}function nf(e){return e.tag,e.fields[0]}function rf(e){return 0===e.tag?"alert-success":"alert-failure"}function of(e){let t,n,o,i,a;const s=e.hideAlert,c=e.alert,u=function(){const e=new Ue(!1);return e}();return function(){const e=_s.useRef(!1);_s.useEffect((()=>{e.current||(e.current=!0,function(e,t){Qe(Ye.Delay((()=>Ye.Bind(Je(5e3),(()=>(e(),Ye.Zero()))))),t)}(s,u))}),[])}(),(0,r.createElement)("div",E(Mt([["className",Re(" ",["rounded-md","p-4","my-4",tf(c)])],["data-testid",rf(c)],(t=[(0,r.createElement)("div",E(Mt([["className",Re(" ",["flex"])],(n=[(0,r.createElement)("p",{className:Re(" ",["text-sm","pr-2",ef(c)]),children:nf(c)}),(0,r.createElement)("div",E(Mt([["className",Re(" ",["ml-auto"])],(o=[(0,r.createElement)("div",E(Mt([["className",Re(" ",["-mx-1.5","-my-1.5"])],(i=[(0,r.createElement)("button",E(Mt([["type","button"],["className",Re(" ",tn(Xt((()=>on(Zt("inline-flex"),Xt((()=>on(Zt("rounded-md"),Xt((()=>on(Zt("p-1.5"),Xt((()=>on(Zt("pb-2.5"),Xt((()=>on(Zt("focus:outline-none"),Xt((()=>on(Zt("focus:ring-2"),Xt((()=>on(Zt("focus:ring-offset-2"),Xt((()=>function(e){return 0===e.tag?Mt(["bg-green-50","text-green-500","hover:bg-green-100","focus:ring-offset-green-50","focus:ring-green-600"]):Mt(["bg-red-50","text-red-500","hover:bg-red-100","focus:ring-offset-red-50","focus:ring-red-600"])}(c))))))))))))))))))))))))))],(a=[(0,r.createElement)("span",{className:"h-3 w-3",children:Jl})],["children",_s.Children.toArray(Array.from(a))]),["onClick",e=>{u.cancel(),s()}]])))],["children",_s.Children.toArray(Array.from(i))])])))],["children",_s.Children.toArray(Array.from(o))])])))],["children",_s.Children.toArray(Array.from(n))])])))],["children",_s.Children.toArray(Array.from(t))])])))}class af extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Primary","NonPrimary"]}}function sf(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,sf),r}function cf(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var uf,lf=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(lf||{}),ff=((uf=ff||{})[uf.Unmount=0]="Unmount",uf[uf.Hidden=1]="Hidden",uf);function df({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a}){let s=mf(t,e);if(i)return Af(s,n,r,a);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=s;if(e)return Af(t,n,r,a)}if(1&c){let{unmount:e=!0,...t}=s;return sf(e?0:1,{0:()=>null,1:()=>Af({...t,hidden:!0,style:{display:"none"}},n,r,a)})}return Af(s,n,r,a)}function Af(e,t={},n,o){let{as:i=n,children:a,refName:s="ref",...c}=hf(e,["unmount","static"]),u=void 0!==e.ref?{[s]:e.ref}:{},l="function"==typeof a?a(t):a;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t));let f={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r);e&&(f["data-headlessui-state"]=n.join(" "))}if(i===r.Fragment&&Object.keys($f(c)).length>0){if(!(0,r.isValidElement)(l)||Array.isArray(l)&&l.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(c).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));let e=l.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>cf(null==e?void 0:e.className(...t),c.className):cf(null==e?void 0:e.className,c.className),n=t?{className:t}:{};return(0,r.cloneElement)(l,Object.assign({},mf(l.props,$f(hf(c,["ref"]))),f,u,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}}(l.ref,u.ref),n))}return(0,r.createElement)(i,Object.assign({},hf(c,["ref"]),i!==r.Fragment&&u,i!==r.Fragment&&f),l)}function mf(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t,...r){let o=n[e];for(let e of o){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function pf(e){var t;return Object.assign((0,r.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function $f(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function hf(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function gf(){let e=[],t={addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),t.add((()=>e.removeEventListener(n,r,o)))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(n)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let n=setTimeout(...e);return t.add((()=>clearTimeout(n)))},microTask(...e){let n={current:!0};return function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}((()=>{n.current&&e[0]()})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=gf();return e(t),this.add((()=>t.dispose()))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function wf(){let[e]=(0,r.useState)(gf);return(0,r.useEffect)((()=>()=>e.dispose()),[e]),e}var yf=Object.defineProperty,bf=(e,t,n)=>(((e,t,n)=>{t in e?yf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let vf=new class{constructor(){bf(this,"current",this.detect()),bf(this,"handoffState","pending"),bf(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},Cf=(e,t)=>{vf.isServer?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)};function _f(e){let t=(0,r.useRef)(e);return Cf((()=>{t.current=e}),[e]),t}let xf=function(e){let t=_f(e);return r.default.useCallback(((...e)=>t.current(...e)),[t])},Bf=Symbol();function kf(...e){let t=(0,r.useRef)(e);(0,r.useEffect)((()=>{t.current=e}),[e]);let n=xf((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[Bf])))?void 0:n}var Sf;let Ef=null!=(Sf=r.default.useId)?Sf:function(){let e=function(){let e=function(){let e="undefined"==typeof document;return r.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=r.useState(vf.isHandoffComplete);return t&&!1===vf.isHandoffComplete&&n(!1),r.useEffect((()=>{!0!==t&&n(!0)}),[t]),r.useEffect((()=>vf.handoff()),[]),!e&&t}(),[t,n]=r.default.useState(e?()=>vf.nextId():null);return Cf((()=>{null===t&&n(vf.nextId())}),[t]),null!=t?""+t:void 0};var Nf=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Nf||{}),Pf=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Pf||{});function If(e){return vf.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Mf=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var Of,Tf=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Tf||{}),Df=((Of=Df||{})[Of.Error=0]="Error",Of[Of.Overflow=1]="Overflow",Of[Of.Success=2]="Success",Of[Of.Underflow=3]="Underflow",Of),jf=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(jf||{});function Rf(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(Mf)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}var Ff=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Ff||{});function Gf(e,t=0){var n;return e!==(null==(n=If(e))?void 0:n.body)&&sf(t,{0:()=>e.matches(Mf),1(){let t=e;for(;null!==t;){if(t.matches(Mf))return!0;t=t.parentElement}return!1}})}function Hf(e){let t=If(e);gf().nextFrame((()=>{t&&!Gf(t.activeElement,0)&&function(e){null==e||e.focus({preventScroll:!0})}(e)}))}var Lf=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Lf||{});"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let Uf=["textarea","input"].join(",");function zf(e,t=e=>e){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function qf(e,t){return function(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?zf(e):e:Rf(e);o.length>0&&a.length>1&&(a=a.filter((e=>!o.includes(e)))),r=null!=r?r:i.activeElement;let s,c=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=32&t?{preventScroll:!0}:{},f=0,d=a.length;do{if(f>=d||f+d<=0)return 0;let e=u+f;if(16&t)e=(e+d)%d;else{if(e<0)return 3;if(e>=d)return 1}s=a[e],null==s||s.focus(l),f+=c}while(s!==i.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,Uf))&&n}(s)&&s.select(),2}(Rf(),t,{relativeTo:e})}function Wf(e,t,n){let o=_f(t);(0,r.useEffect)((()=>{function t(e){o.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}function Yf(e,t,n=!0){let o=(0,r.useRef)(!1);function i(n,r){if(!o.current||n.defaultPrevented)return;let i=r(n);if(null===i||!i.getRootNode().contains(i)||!i.isConnected)return;let a=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e);for(let e of a){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(i)||n.composed&&n.composedPath().includes(t))return}return!Gf(i,Ff.Loose)&&-1!==i.tabIndex&&n.preventDefault(),t(n,i)}(0,r.useEffect)((()=>{requestAnimationFrame((()=>{o.current=n}))}),[n]);let a=(0,r.useRef)(null);Wf("pointerdown",(e=>{var t,n;o.current&&(a.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),Wf("mousedown",(e=>{var t,n;o.current&&(a.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),Wf("click",(e=>{a.current&&(i(e,(()=>a.current)),a.current=null)}),!0),Wf("touchend",(e=>i(e,(()=>e.target instanceof HTMLElement?e.target:null))),!0),function(e,t,n){let o=_f((e=>i(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))));(0,r.useEffect)((()=>{function t(e){o.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}("blur",0,!0)}let Vf=(0,r.createContext)(null);Vf.displayName="OpenClosedContext";var Kf=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Kf||{});function Xf({value:e,children:t}){return r.default.createElement(Vf.Provider,{value:e},t)}function Jf(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function Qf(e,t){let[n,o]=(0,r.useState)((()=>Jf(e)));return Cf((()=>{o(Jf(e))}),[e.type,e.as]),Cf((()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&o("button")}),[n,t]),n}function Zf(e){return[e.screenX,e.screenY]}function ed(){let e=(0,r.useRef)([-1,-1]);return{wasMoved(t){let n=Zf(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=Zf(t)}}}let td=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function nd(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let i=!1;for(let e of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),i=!0;let a=i?null!=(n=o.innerText)?n:"":r;return td.test(a)&&(a=a.replace(td,"")),a}var rd=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(rd||{}),od=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(od||{}),id=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e))(id||{});function ad(e,t=e=>e){let n=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,r=zf(t(e.items.slice()),(e=>e.dataRef.current.domRef.current)),o=n?r.indexOf(n):null;return-1===o&&(o=null),{items:r,activeItemIndex:o}}let sd={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,__demoMode:!1,menuState:0},2:(e,t)=>{var n;let r=ad(e),o=function(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1,i=(()=>{switch(e.focus){case 0:return n.findIndex((e=>!t.resolveDisabled(e)));case 1:{let e=n.slice().reverse().findIndex(((e,n,r)=>!(-1!==o&&r.length-n-1>=o||t.resolveDisabled(e))));return-1===e?e:n.length-1-e}case 2:return n.findIndex(((e,n)=>!(n<=o||t.resolveDisabled(e))));case 3:{let e=n.slice().reverse().findIndex((e=>!t.resolveDisabled(e)));return-1===e?e:n.length-1-e}case 4:return n.findIndex((n=>t.resolveId(n)===e.id));case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===i?r:i}(t,{resolveItems:()=>r.items,resolveActiveIndex:()=>r.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeItemIndex:o,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find((e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))&&!e.dataRef.current.disabled})),i=o?e.items.indexOf(o):-1;return-1===i||i===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:i,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let n=ad(e,(e=>[...e,{id:t.id,dataRef:t.dataRef}]));return{...e,...n}},6:(e,t)=>{let n=ad(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}}},cd=(0,r.createContext)(null);function ud(e){let t=(0,r.useContext)(cd);if(null===t){let t=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ud),t}return t}function ld(e,t){return sf(t.type,sd,e,t)}cd.displayName="MenuContext";let fd=r.Fragment,dd=lf.RenderStrategy|lf.Static,Ad=r.Fragment,md=pf((function(e,t){let{__demoMode:n=!1,...o}=e,i=(0,r.useReducer)(ld,{__demoMode:n,menuState:n?0:1,buttonRef:(0,r.createRef)(),itemsRef:(0,r.createRef)(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:a,itemsRef:s,buttonRef:c},u]=i,l=kf(t);Yf([c,s],((e,t)=>{var n;u({type:1}),Gf(t,Ff.Loose)||(e.preventDefault(),null==(n=c.current)||n.focus())}),0===a);let f=xf((()=>{u({type:1})})),d=(0,r.useMemo)((()=>({open:0===a,close:f})),[a,f]),A={ref:l};return r.default.createElement(cd.Provider,{value:i},r.default.createElement(Xf,{value:sf(a,{0:Kf.Open,1:Kf.Closed})},df({ourProps:A,theirProps:o,slot:d,defaultTag:fd,name:"Menu"})))})),pd=pf((function(e,t){var n;let o=Ef(),{id:i=`headlessui-menu-button-${o}`,...a}=e,[s,c]=ud("Menu.Button"),u=kf(s.buttonRef,t),l=wf(),f=xf((e=>{switch(e.key){case Nf.Space:case Nf.Enter:case Nf.ArrowDown:e.preventDefault(),e.stopPropagation(),c({type:0}),l.nextFrame((()=>c({type:2,focus:Pf.First})));break;case Nf.ArrowUp:e.preventDefault(),e.stopPropagation(),c({type:0}),l.nextFrame((()=>c({type:2,focus:Pf.Last})))}})),d=xf((e=>{e.key===Nf.Space&&e.preventDefault()})),A=xf((t=>{if(function(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}(t.currentTarget))return t.preventDefault();e.disabled||(0===s.menuState?(c({type:1}),l.nextFrame((()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(t.preventDefault(),c({type:0})))})),m=(0,r.useMemo)((()=>({open:0===s.menuState})),[s]);return df({ourProps:{ref:u,id:i,type:Qf(e,s.buttonRef),"aria-haspopup":"menu","aria-controls":null==(n=s.itemsRef.current)?void 0:n.id,"aria-expanded":0===s.menuState,onKeyDown:f,onKeyUp:d,onClick:A},theirProps:a,slot:m,defaultTag:"button",name:"Menu.Button"})})),$d=pf((function(e,t){var n,o;let i=Ef(),{id:a=`headlessui-menu-items-${i}`,...s}=e,[c,u]=ud("Menu.Items"),l=kf(c.itemsRef,t),f=function(...e){return(0,r.useMemo)((()=>If(...e)),[...e])}(c.itemsRef),d=wf(),A=(0,r.useContext)(Vf),m=null!==A?(A&Kf.Open)===Kf.Open:0===c.menuState;(0,r.useEffect)((()=>{let e=c.itemsRef.current;e&&0===c.menuState&&e!==(null==f?void 0:f.activeElement)&&e.focus({preventScroll:!0})}),[c.menuState,c.itemsRef,f]),function({container:e,accept:t,walk:n,enabled:o=!0}){let i=(0,r.useRef)(t),a=(0,r.useRef)(n);(0,r.useEffect)((()=>{i.current=t,a.current=n}),[t,n]),Cf((()=>{if(!e||!o)return;let t=If(e);if(!t)return;let n=i.current,r=a.current,s=Object.assign((e=>n(e)),{acceptNode:n}),c=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,s,!1);for(;c.nextNode();)r(c.currentNode)}),[e,o,i,a])}({container:c.itemsRef.current,enabled:0===c.menuState,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let p=xf((e=>{var t,n;switch(d.dispose(),e.key){case Nf.Space:if(""!==c.searchQuery)return e.preventDefault(),e.stopPropagation(),u({type:3,value:e.key});case Nf.Enter:if(e.preventDefault(),e.stopPropagation(),u({type:1}),null!==c.activeItemIndex){let{dataRef:e}=c.items[c.activeItemIndex];null==(n=null==(t=e.current)?void 0:t.domRef.current)||n.click()}Hf(c.buttonRef.current);break;case Nf.ArrowDown:return e.preventDefault(),e.stopPropagation(),u({type:2,focus:Pf.Next});case Nf.ArrowUp:return e.preventDefault(),e.stopPropagation(),u({type:2,focus:Pf.Previous});case Nf.Home:case Nf.PageUp:return e.preventDefault(),e.stopPropagation(),u({type:2,focus:Pf.First});case Nf.End:case Nf.PageDown:return e.preventDefault(),e.stopPropagation(),u({type:2,focus:Pf.Last});case Nf.Escape:e.preventDefault(),e.stopPropagation(),u({type:1}),gf().nextFrame((()=>{var e;return null==(e=c.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));break;case Nf.Tab:e.preventDefault(),e.stopPropagation(),u({type:1}),gf().nextFrame((()=>{qf(c.buttonRef.current,e.shiftKey?Tf.Previous:Tf.Next)}));break;default:1===e.key.length&&(u({type:3,value:e.key}),d.setTimeout((()=>u({type:4})),350))}})),$=xf((e=>{e.key===Nf.Space&&e.preventDefault()})),h=(0,r.useMemo)((()=>({open:0===c.menuState})),[c]);return df({ourProps:{"aria-activedescendant":null===c.activeItemIndex||null==(n=c.items[c.activeItemIndex])?void 0:n.id,"aria-labelledby":null==(o=c.buttonRef.current)?void 0:o.id,id:a,onKeyDown:p,onKeyUp:$,role:"menu",tabIndex:0,ref:l},theirProps:s,slot:h,defaultTag:"div",features:dd,visible:m,name:"Menu.Items"})})),hd=pf((function(e,t){let n=Ef(),{id:o=`headlessui-menu-item-${n}`,disabled:i=!1,...a}=e,[s,c]=ud("Menu.Item"),u=null!==s.activeItemIndex&&s.items[s.activeItemIndex].id===o,l=(0,r.useRef)(null),f=kf(t,l);Cf((()=>{if(s.__demoMode||0!==s.menuState||!u||0===s.activationTrigger)return;let e=gf();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=l.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[s.__demoMode,l,u,s.menuState,s.activationTrigger,s.activeItemIndex]);let d=function(e){let t=(0,r.useRef)(""),n=(0,r.useRef)("");return xf((()=>{let r=e.current;if(!r)return"";let o=r.innerText;if(t.current===o)return n.current;let i=function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map((e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():nd(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return nd(e).trim()}(r).trim().toLowerCase();return t.current=o,n.current=i,i}))}(l),A=(0,r.useRef)({disabled:i,domRef:l,get textValue(){return d()}});Cf((()=>{A.current.disabled=i}),[A,i]),Cf((()=>(c({type:5,id:o,dataRef:A}),()=>c({type:6,id:o}))),[A,o]);let m=xf((()=>{c({type:1})})),p=xf((e=>{if(i)return e.preventDefault();c({type:1}),Hf(s.buttonRef.current)})),$=xf((()=>{if(i)return c({type:2,focus:Pf.Nothing});c({type:2,focus:Pf.Specific,id:o})})),h=ed(),g=xf((e=>h.update(e))),w=xf((e=>{h.wasMoved(e)&&(i||u||c({type:2,focus:Pf.Specific,id:o,trigger:0}))})),y=xf((e=>{h.wasMoved(e)&&(i||u&&c({type:2,focus:Pf.Nothing}))})),b=(0,r.useMemo)((()=>({active:u,disabled:i,close:m})),[u,i,m]);return df({ourProps:{id:o,ref:f,role:"menuitem",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,disabled:void 0,onClick:p,onFocus:$,onPointerEnter:g,onMouseEnter:g,onPointerMove:w,onMouseMove:w,onPointerLeave:y,onMouseLeave:y},theirProps:a,slot:b,defaultTag:Ad,name:"Menu.Item"})})),gd=Object.assign(md,{Button:pd,Items:$d,Item:hd});class wd extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["As","ClassName","Children"]}}class yd extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["As","Key","ClassName","Disabled","Children"]}}class bd extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Key","ClassName","Children"]}}function vd(e){return r.createElement(gd.Items,ha(e,1))}class Cd extends D{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["As","Key","ClassName","Children"]}}function _d(e){return 2===e.tag?"border-red-300 text-red-900 placeholder-red-300 focus:outline-none focus:ring-red-500 focus:border-red-500":""}function xd(e){return 1===e.tag&&0!==e.fields[1]}function Bd(e,t,n){const o=tn(Xt((()=>on(Zt((0,r.createElement)("label",{className:Re(" ",tn(Xt((()=>on(Zt("text-sm font-medium text-gray-700 whitespace-nowrap"),Xt((()=>xd(n)?Zt("md:hidden"):Qt()))))))),children:e})),Xt((()=>t))))));return(0,r.createElement)("div",{children:_s.Children.toArray(Array.from(o))})}function kd(e,t,n,o,i){return Mt([(0,r.createElement)("input",E(tn(Xt((()=>on(Zt(["type","text"]),Xt((()=>on(Zt(["placeholder",e]),Xt((()=>on(Zt(["className",Re(" ",["mt-1 shadow-sm focus:ring-primary-focus focus:border-primary-focus block w-full md:text-sm border-gray-300 rounded-md",_d(t)])]),Xt((()=>on(Zt(["data-testid",o]),Xt((()=>{let e;return on(Zt((e=Wi(t),["ref",t=>{null==t||_(t.value,e)||(t.value=e)}])),Xt((()=>on(Zt(["onChange",e=>{n(e.target.value)}]),Xt((()=>on(Zt(["onBlur",e=>{n(Wi(t))}]),Xt((()=>i)))))))))}))))))))))))))))),(0,r.createElement)("div",{className:"mt-2 text-xs text-red-600",children:Yi(t)})])}function Sd(e,t,n,r,o,i,a){return Bd(e,kd(t,n,r,i,a),o)}function Ed(e,t,n,o,i,a,s){let c;const u=2===s.tag&&0===s.fields[0].tag&&null!=s.fields[0].fields[0]?(c=s.fields[0].fields[0],[!0,`${c.Bank} - ${c.Branch} - ${c.Address}`]):[!1,""],l=Ct((0,r.createElement)("div",{className:Re(" ",tn(Xt((()=>on(Zt("mt-1 text-xs text-gray-500"),Xt((()=>u[0]?Qt():Zt("hidden")))))))),children:u[1]}));return Bd(e,Ot(kd(t,n,o,a,[["inputMode","numeric"]]),l),i)}function Nd(e,t,n){return o=Mt([new Cd(0,["div"]),new Cd(3,[o=>{let i;return[(0,r.createElement)("div",E(Mt([["className",Re(" ",tn(Xt((()=>on(Zt("px-3 py-2 flex justify-between items-center"),Xt((()=>_(t,e)?Zt("font-semibold"):Qt())))))))],["onClick",r=>{_(t,e)||n()}],(i=tn(Xt((()=>on(1===e.tag?Zt(`Percentage (${Zi(e)})`):Zt(`Dollars (${Zi(e)})`),Xt((()=>_(t,e)?Zt((0,r.createElement)("span",{className:"text-primary-base h-3.5 w-3.5",children:_s.Children.toArray([Ql])})):Qt())))))),["children",_s.Children.toArray(Array.from(i))])])))]}])]),r.createElement(gd.Item,ha(o,1));var o}function Pd(e,t,n){return function(e){return r.createElement(gd,ha(e,1))}(Ct(new wd(2,[[(o=Mt([new yd(2,["absolute inset-y-0 left-0"]),new yd(3,[!e]),new yd(4,[n=>{let o;return[(0,r.createElement)("div",E(Mt([["className",Re(" ",tn(Xt((()=>on(Zt("pr-1.5 h-full flex items-center text-gray-500 text-sm"),Xt((()=>n.open?Zt("rounded-md border-2 border-primary-focus pl-2.5"):Zt("pl-3"))))))))],(o=tn(Xt((()=>on(Zt((0,r.createElement)("span",{children:[1===t.tag?"%":"$"]})),Xt((()=>e?Zt((0,r.createElement)("span",{className:"ml-1 h-2.5 w-2.5",children:_s.Children.toArray([Zl])})):Qt())))))),["children",_s.Children.toArray(Array.from(o))])])))]}])]),r.createElement(gd.Button,ha(o,1))),vd(Mt([new bd(1,["absolute left-0 top-full mt-1 py-1 w-full rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none text-gray-900 text-sm cursor-pointer"]),new bd(2,[[Nd(new Qi(0,[]),t,n),Nd(new Qi(1,[]),t,n)]])]))]])));var o}function Id(e,t,n,o,i,a,s){let c,u;const l=e.Input,f=e.Type;return Bd("Amount*",[(0,r.createElement)("div",E(Mt([["className","mt-1 relative rounded-md shadow-sm"],["style",{zIndex:10-a}],(c=[Pd(t,f,o),(0,r.createElement)("input",E(Mt([["type","text"],["className",Re(" ",tn(Xt((()=>on(Zt("focus:ring-primary-focus focus:border-primary-focus block w-full pr-2 md:text-sm border-gray-300 rounded-md placeholder:text-gray-500"),Xt((()=>on(Zt(t?"pl-12":"pl-7"),Xt((()=>Zt(_d(l))))))))))))],["data-testid",s],(u=Wi(l),["ref",e=>{null==e||_(e.value,u)||(e.value=u)}]),["onChange",e=>{n([e.target.value,f])}],["onBlur",e=>{n([Wi(l),f])}],["inputMode","numeric"],["placeholder",1===f.tag?"0.00":"0"]])))],["children",_s.Children.toArray(Array.from(c))])]))),(0,r.createElement)("div",{className:"mt-2 text-xs text-red-600",children:Yi(l)})],i)}function Md(e,t,n){let o;const i=Mt([(0,r.createElement)("div",{className:Re(" ",tn(Xt((()=>on(Zt("whitespace-pre hidden md:block"),Xt((()=>xd(e)?Zt("md:hidden"):Qt()))))))),children:" "}),(0,r.createElement)("button",E(Mt([["type","button"],["data-testid",t],["onClick",n],["className",Re(" ",[Cs,"mt-1"])],(o=[(0,r.createElement)("div",{className:"h-4 w-4 my-0.5 mx-0.5",children:_s.Children.toArray([Xl])})],["children",_s.Children.toArray(Array.from(o))])])))]);return(0,r.createElement)("div",{children:_s.Children.toArray(Array.from(i))})}function Od(e,t,n){let o;return(0,r.createElement)("div",E(Mt([["className","md:flex-1 ml-2"],(o=[(0,r.createElement)("div",{className:Re(" ",tn(Xt((()=>on(Zt("whitespace-pre hidden md:block"),Xt((()=>xd(e)?Zt("md:hidden"):Qt()))))))),children:" "}),(0,r.createElement)("button",{type:"button","data-testid":t,onClick:n,className:Re(" ",[Cs,"mt-1 md:w-full md:flex md:flex-col md:items-center"]),children:"Set primary"})],["children",_s.Children.toArray(Array.from(o))])])))}function Td(e,t){const n=1===e.tag?["secondary",`-${e.fields[1]}`]:["primary",""];return`${n[0]}-${t}${n[1]}`}const Dd=Me(Pe("%s*"));function jd(e,t){const n=!_t(e.NonPrimaryAccounts),o=tn(Xt((()=>on(Zt((0,r.createElement)("p",{className:"font-semibold mb-4",children:"Primary Account"})),Xt((()=>on(Zt(function(e,t,n){let o,i,a,s,c,u;const l=new af(0,[]);return(0,r.createElement)("div",E(Mt([["className","space-y-3 md:space-y-0 md:flex md:space-x-2"],(o=[(0,r.createElement)("div",E(Mt([["className","md:flex-1 md:min-w-[132px]"],(i=[Sd("Account nickname","Ex: Salary",e.AccountNickname,(e=>{n(new aa(5,[new ia(0,[e])]))}),l,Td(l,"account-description-field"),[])],["children",_s.Children.toArray(Array.from(i))])]))),(0,r.createElement)("div",E(Mt([["className","md:flex-1 md:min-w-[152px]"],(a=[Sd(Dd("Account holder name"),"",e.AccountName,(e=>{n(new aa(5,[new ia(1,[e])]))}),l,Td(l,"account-name-field"),[["autoComplete","name"]])],["children",_s.Children.toArray(Array.from(a))])]))),(0,r.createElement)("div",E(Mt([["className","md:flex-none md:w-20"],(s=[Ed(Dd("BSB"),"123456",e.Bsb,(e=>{n(new aa(5,[new ia(2,[e])]))}),l,Td(l,"bsb-field"),e.BsbLookup)],["children",_s.Children.toArray(Array.from(s))])]))),(0,r.createElement)("div",E(Mt([["className","md:flex-none md:w-32"],(c=[Sd(Dd("Account number"),"1234567890",e.AccountNumber,(e=>{n(new aa(5,[new ia(3,[e])]))}),l,Td(l,"account-number-field"),[["inputMode","numeric"]])],["children",_s.Children.toArray(Array.from(c))])]))),(0,r.createElement)("div",E(Mt([["className","md:flex-none md:w-[152px]"],(u=tn(Xt((()=>t?Zt(function(e){return Bd("Amount",[(0,r.createElement)("input",{className:Re(" ",["mt-1 shadow-sm focus:ring-primary-focus focus:border-primary-focus block w-full md:text-sm border-gray-300 rounded-md","disabled:bg-gray-50"]),placeholder:"Remaining balance",disabled:!0})],e)}(l)):Qt()))),["children",_s.Children.toArray(Array.from(u))])]))),(0,r.createElement)("div",{className:"hidden md:block md:flex-none md:w-[150px]",children:_s.Children.toArray([])})],["children",_s.Children.toArray(Array.from(o))])])))}(e.PrimaryAccount,n,t)),Xt((()=>e.MaximumAccounts>1||n?on(Zt((0,r.createElement)("p",{className:"mt-10 mb-6 font-semibold",children:"Additional Bank Accounts"})),Xt((()=>{let n;return on(Zt((0,r.createElement)("div",E(Mt([["className","space-y-10 md:space-y-1"],(n=tn(Xt((()=>dn((n=>Zt(function(e,t,n,o){let i,a,s,c,u,l,f;const d=new af(1,[e,o]);return(0,r.createElement)("div",E(Mt([["className","md:flex md:space-x-2"],(i=[(0,r.createElement)("div",E(Mt([["className","md:flex-1 md:min-w-[132px]"],(a=[Sd("Account nickname","Ex: Home loan",e.AccountNickname,(t=>{n(new aa(7,[e.Id,new ia(0,[t])]))}),d,Td(d,"account-description-field"),[])],["children",_s.Children.toArray(Array.from(a))])]))),(0,r.createElement)("div",E(Mt([["className","md:flex-1 md:min-w-[152px]"],(s=[Sd(Dd("Account holder name"),"",e.AccountName,(t=>{n(new aa(7,[e.Id,new ia(1,[t])]))}),d,Td(d,"account-name-field"),[["autoComplete","name"]])],["children",_s.Children.toArray(Array.from(s))])]))),(0,r.createElement)("div",E(Mt([["className","md:flex-none md:w-20"],(c=[Ed(Dd("BSB"),"123456",e.Bsb,(t=>{n(new aa(7,[e.Id,new ia(2,[t])]))}),d,Td(d,"bsb-field"),e.BsbLookup)],["children",_s.Children.toArray(Array.from(c))])]))),(0,r.createElement)("div",E(Mt([["className","md:flex-none md:w-32"],(u=[Sd(Dd("Account number"),"1234567890",e.AccountNumber,(t=>{n(new aa(7,[e.Id,new ia(3,[t])]))}),d,Td(d,"account-number-field"),[["inputMode","numeric"]])],["children",_s.Children.toArray(Array.from(u))])]))),(0,r.createElement)("div",E(Mt([["className","md:flex-none md:w-[132px]"],(l=[Id(e.Amount,t,(t=>{n(new aa(7,[e.Id,new ia(4,[t[0],t[1]])]))}),(()=>{n(new aa(7,[e.Id,new ia(5,[])]))}),d,o,Td(d,"amount-field"))],["children",_s.Children.toArray(Array.from(l))])]))),(0,r.createElement)("div",E(Mt([["className","md:flex-none md:w-[170px] flex justify-end"],(f=[Md(d,Td(d,"delete-button"),(t=>{n(new aa(8,[e.Id]))})),Od(d,Td(d,"set-primary-button"),(t=>{n(new aa(9,[e.Id]))}))],["children",_s.Children.toArray(Array.from(f))])])))],["children",_s.Children.toArray(Array.from(i))])])))}(n[1],e.AllowPercentageSplit,t,n[0]))),function(e,t){const n=pt(),r=function(e,t,n){return((t,n,r)=>{for(;;){const o=t,i=n,a=r;if(ht(a))return i;t=o+1,n=e(o,i,wt(a)),r=yt(a)}})(0,t,n)}(((t,n,r)=>{const o=new At(e(t,r),void 0);return n.tail=o,o}),n,t),o=pt();return r.tail=o,yt(n)}(((e,t)=>[e,t]),e.NonPrimaryAccounts))))),["children",_s.Children.toArray(Array.from(n))])])))),Xt((()=>{let n;return Zt((0,r.createElement)("button",E(Mt([["type","button"],["data-testid","add-secondary-account"],["className",Re(" ",[Cs,"mt-2"])],["disabled",xt(e.NonPrimaryAccounts)>=e.MaximumAccounts-1],["onClick",e=>{t(new aa(6,[]))}],(n=[(0,r.createElement)("span",{className:"-ml-1 mr-2 -mt-0.5 h-4 w-4",children:_s.Children.toArray([Kl])}),(0,r.createElement)("span",{children:["Add a bank account"]})],["children",_s.Children.toArray(Array.from(n))])]))))})))}))):Qt())))))))));return(0,r.createElement)("div",{children:_s.Children.toArray(Array.from(o))})}function Rd(e,t){return(0,r.createElement)("button",{type:"button","data-testid":"modal-confirm-button",className:vs,onClick:t,children:e})}function Fd(e,t){return(0,r.createElement)("button",{type:"button",className:Cs,onClick:t,children:e})}function Gd(e,t){let n;const o=[(0,r.createElement)("style",{children:[ys]}),(0,r.createElement)("div",E(Mt([["className","font-inter max-w-5xl py-5 mx-auto"],(n=tn(Xt((()=>{let n;if(2===e.PreExistingAccounts.tag){const o=_(e.Saved,new H(1,[]));return Zt((n=tn(Xt((()=>{let n,i;return on((n=e.CurrentAlert,null==n?Zt(null):(i=n,Zt((0,r.createElement)(of,{alert:i,hideAlert:()=>{t(new aa(13,[i]))}})))),Xt((()=>on(Zt((0,r.createElement)("h3",{className:"text-2xl mb-6 font-medium",children:"Add your bank details"})),Xt((()=>on(Zt((0,r.createElement)("p",{className:"mb-6 text-sm",children:"Customise where your pay goes by adding a primary bank account"+(e.MaximumAccounts>1?" and any additional bank accounts":"")})),Xt((()=>on(Zt(jd(e,t)),Xt((()=>{let n,i;return on(Zt((0,r.createElement)("div",E(Mt([["className","flex justify-end space-x-4 mt-10 md:mt-0"],(n=[(0,r.createElement)("button",{type:"button",className:Cs,onClick:e=>{t(new aa(10,[new na(2,[])]))},children:"Reset"}),(0,r.createElement)("button",E(Mt([["type","button"],["data-testid","save-button"],["className",vs],["disabled",o],["onClick",e=>{t(new aa(4,[new L(0,[])]))}],(i=[(0,r.createElement)("span",{className:Re(" ",tn(Xt((()=>on(Zt("h-3 w-3 mr-1.5 animate-spin"),Xt((()=>o?Qt():Zt("hidden"))))))))}),(0,r.createElement)("span",{children:["Save and continue"]})],["children",_s.Children.toArray(Array.from(i))])])))],["children",_s.Children.toArray(Array.from(n))])])))),Xt((()=>Zt(function(e,t){return function(e,t,n,o,i){let a;return e?function(e){let t,n,o;return(0,r.createElement)("div",E(Mt([["className","fixed z-10 inset-0 overflow-y-auto bg-black/50"],(t=[(0,r.createElement)("div",E(Mt([["className","flex items-end md:items-center justify-center min-h-full p-4 text-center md:p-0"],(n=[(0,r.createElement)("div",E(Mt([(o="relative bg-white rounded-lg px-4 pt-5 pb-4 text-left shadow-xl md:my-8 md:max-w-[80%] lg:max-w-4xl w-full md:p-6",["className","relative bg-white rounded-lg px-4 pt-5 pb-4 text-left shadow-xl md:my-8 md:max-w-[80%] lg:max-w-4xl w-full md:p-6"]),["children",_s.Children.toArray(Array.from(e))]])))],["children",_s.Children.toArray(Array.from(n))])])))],["children",_s.Children.toArray(Array.from(t))])])))}([(c=t,(0,r.createElement)("div",{className:"text-lg leading-6 font-medium",children:c})),(s=n,(0,r.createElement)("div",{className:"mt-4 text-sm text-gray-500",children:_s.Children.toArray(Array.from(s))})),(0,r.createElement)("div",E(Mt([["className","flex mt-5 space-x-3 justify-end"],(a=[Fd("Cancel",o),Rd("Confirm",i)],["children",_s.Children.toArray(Array.from(a))])])))]):null;var s,c}(function(e){return null!=e&&2===e.tag}(e),"Reset to last saved version",[(0,r.createElement)("span",{children:["Are you sure you want to discard unsaved changes?"]})],(e=>{t(new aa(11,[]))}),(e=>{t(new aa(3,[]))}))}(e.CurrentModal,t)))))}))))))))))))}))),(0,r.createElement)("div",{children:_s.Children.toArray(Array.from(n))})))}return Zt((0,r.createElement)("div",{children:"Please wait..."}))}))),["children",_s.Children.toArray(Array.from(n))])])))];return r.createElement(r.Fragment,{},...o)}var Hd=n(172);function Ld(){return(Ld=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ud=["context","children"];function zd(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,Ud);return(0,Hd.Ob)(t,n)}function qd(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=(0,Hd.h)(zd,Ld({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],o={},i=0,a=t.attributes,s=t.childNodes;for(i=a.length;i--;)"slot"!==a[i].name&&(o[a[i].name]=a[i].value,o[Wd(a[i].name)]=a[i].value);for(i=s.length;i--;){var c=e(s[i],null),u=s[i].slot;u?o[u]=(0,Hd.h)(Kd,{name:u},c):r[i]=c}var l=n?(0,Hd.h)(Kd,null,r):r;return(0,Hd.h)(n||t.nodeName.toLowerCase(),o,l)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Hd.Qv:Hd.XX)(this._vdom,this._root)}function Wd(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function Yd(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[Wd(e)]=n,this._vdom=(0,Hd.Ob)(this._vdom,r),(0,Hd.XX)(this._vdom,this._root)}}function Vd(){(0,Hd.XX)(this._vdom=null,this._root)}function Kd(e,t){var n=this;return(0,Hd.h)("slot",Ld({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function Xd(e){const t=new gi(new H(2,[new er(0,[new hi(e.accessToken)])])),n=function(e,t,n){const i=(0,r.useState)((()=>zi(e,t,n))),s=i[0];(function(e,t,n){return!_(e.arg,t)||!_(e.dependencies,n)})(s,t,n)&&i[1](zi(e,t,n));const c=(0,Li.useSyncExternalStore)(function(e){return e.subscribe}(s),(()=>function(e){return e.state}(s))),l=c[2],f=c[3],d=c[1];return(0,r.useEffect)((()=>{if(l&&f.length>0){let t=u(f);try{for(;t["System.Collections.IEnumerator.MoveNext"]();){const e=t["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout((()=>{d(e)}))}}finally{a(t)}o(e=f)?e.splice(0):e.clear()}var e}),[l,f]),[c[0],d]}((()=>function(e,t,n){return new Gi(e,t,(e=>bt()),n,P((e=>{const t=I(n)(e);return e=>{t(e)}})),(e=>{var t,n;t=e[0],n=e[1],console.error(q(t),n)}),[e=>!1,e=>{}])}(hs,((n,r)=>ws(t,e.backendUrl,n,r)),((e,t)=>{}))),void 0,[]);return Gd(n[0],n[1])}!function(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:r.mode||"open"}):t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=qd,o.prototype.attributeChangedCallback=Yd,o.prototype.disconnectedCallback=Vd,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define("bank-component",o)}((e=>(0,r.createElement)(Xd,e)),0,void 0,{shadow:!0})},945:e=>{"use strict";e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27%23fff%27 viewBox=%270 0 16 16%27%3E%3Ccircle cx=%278%27 cy=%278%27 r=%273%27/%3E%3C/svg%3E"},764:e=>{"use strict";e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27%23fff%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0%27/%3E%3C/svg%3E"},608:e=>{"use strict";e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 16 16%27%3E%3Cpath stroke=%27%23fff%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27M4 8h8%27/%3E%3C/svg%3E"},973:e=>{"use strict";e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 20 20%27%3E%3Cpath stroke=%27%236b7280%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%271.5%27 d=%27m6 8 4 4 4-4%27/%3E%3C/svg%3E"}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,exports:{}};return e[r](i,i.exports,n),i.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.b=document.baseURI||self.location.href,n(666),n(725)})();
3
3
  //# sourceMappingURL=bank-details-web-component.js.map