@flarehr/superhero-benefits-onboarding 2.12.16 → 2.13.18
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 +1 @@
|
|
|
1
|
-
(()=>{var e={608:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L6.832 19.82a4.5 4.5 0 01-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 011.13-1.897L16.863 4.487zm0 0L19.5 7.125"}))}));e.exports=o},783:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"}))}));e.exports=o},383:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});var r=n(81),o=n.n(r),i=n(645),a=n.n(i),s=n(667),c=n.n(s),l=new URL(n(578),n.b),u=new URL(n(254),n.b),f=new URL(n(184),n.b),d=new URL(n(421),n.b),p=a()(o()),h=c()(l),b=c()(u),m=c()(f),g=c()(d);p.push([e.id,'/*! tailwindcss v3.1.8 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}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-size:1em}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-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-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}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%}[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],select,textarea{--tw-shadow:0 0 #0000;-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}[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,select:focus,textarea:focus{--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);outline:2px solid transparent;outline-offset:2px}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}::-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{color-adjust:exact;background-image:url('+h+");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]{color-adjust:unset;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]{color-adjust:exact;--tw-shadow:0 0 #0000;-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}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--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);outline:2px solid transparent;outline-offset:2px}[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("+b+")}[type=radio]:checked{background-image:url("+m+")}[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("+g+");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[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}*,: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-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: }::-webkit-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-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: }::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-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: }.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.\\!visible{visibility:visible!important}.invisible{visibility:hidden}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{bottom:0;left:0;right:0;top:0}.top-0{top:0}.right-0{right:0}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.my-auto{margin-bottom:auto;margin-top:auto}.my-5{margin-bottom:1.25rem;margin-top:1.25rem}.my-10{margin-bottom:2.5rem;margin-top:2.5rem}.mt-3{margin-top:.75rem}.mt-2{margin-top:.5rem}.mt-5{margin-top:1.25rem}.ml-3{margin-left:.75rem}.-mb-px{margin-bottom:-1px}.ml-\\[3\\.5rem\\]{margin-left:3.5rem}.ml-\\[3rem\\]{margin-left:3rem}.mt-\\[2rem\\]{margin-top:2rem}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-5{height:1.25rem}.h-12{height:3rem}.h-6{height:1.5rem}.h-10{height:2.5rem}.h-\\[1\\.5rem\\]{height:1.5rem}.h-\\[1\\.25rem\\]{height:1.25rem}.h-full{height:100%}.h-\\[3rem\\]{height:3rem}.min-h-full{min-height:100%}.min-h-\\[300px\\]{min-height:300px}.w-5{width:1.25rem}.w-full{width:100%}.w-12{width:3rem}.w-6{width:1.5rem}.w-10{width:2.5rem}.w-\\[2\\.75rem\\]{width:2.75rem}.w-\\[1\\.25rem\\]{width:1.25rem}.w-1\\/2{width:50%}.max-w-7xl{max-width:80rem}.max-w-lg{max-width:32rem}.flex-shrink-0,.shrink-0{flex-shrink:0}.basis-1\\/2{flex-basis:50%}.basis-3\\/4{flex-basis:75%}.translate-x-\\[1\\.25rem\\]{--tw-translate-x:1.25rem}.translate-x-0,.translate-x-\\[1\\.25rem\\]{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))}.translate-x-0{--tw-translate-x:0px}.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))}@-webkit-keyframes spin{to{transform:rotate(1turn)}}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.gap-7{gap:1.75rem}.gap-1{gap:.25rem}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(2rem*var(--tw-space-x-reverse))}.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))}.space-x-10>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(2.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(2.5rem*var(--tw-space-x-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded-md{border-radius:.375rem}.rounded-lg{border-radius:.5rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-indigo-500{--tw-border-opacity:1;border-color:rgb(99 102 241/var(--tw-border-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity:0.75}.fill-white{fill:#fff}.fill-gray-200{fill:#e5e7eb}.fill-teal-500{fill:#14b8a6}.p-4{padding:1rem}.p-2{padding:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-4{padding-bottom:1rem;padding-top:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.pt-5{padding-top:1.25rem}.pb-4{padding-bottom:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-base{font-size:1rem;line-height:1.5rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-6{line-height:1.5rem}.leading-5{line-height:1.25rem}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity:1;color:rgb(79 70 229/var(--tw-text-opacity))}.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-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.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-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);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.ring-0{--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(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)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,fill,stroke,-webkit-text-decoration-color;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,-webkit-text-decoration-color;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\\:border-gray-300:hover{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.hover\\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.hover\\:bg-red-700:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.hover\\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgb(67 56 202/var(--tw-bg-opacity))}.hover\\:text-gray-500:hover{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.focus\\:border-indigo-500:focus{--tw-border-opacity:1;border-color:rgb(99 102 241/var(--tw-border-opacity))}.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-inset:focus{--tw-ring-inset:inset}.focus\\:ring-indigo-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity))}.focus\\:ring-red-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(239 68 68/var(--tw-ring-opacity))}.focus\\:ring-gray-300:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity))}.focus\\:ring-red-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(220 38 38/var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:ring-2:focus-visible{--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-visible\\:ring-white:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(255 255 255/var(--tw-ring-opacity))}.focus-visible\\:ring-opacity-75:focus-visible{--tw-ring-opacity:0.75}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-gray-300:disabled{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.disabled\\:opacity-50:disabled{opacity:.5}@media (min-width:640px){.sm\\:my-8{margin-bottom:2rem;margin-top:2rem}.sm\\:mx-0{margin-left:0;margin-right:0}.sm\\:mt-0{margin-top:0}.sm\\:ml-4{margin-left:1rem}.sm\\:mt-4{margin-top:1rem}.sm\\:ml-3{margin-left:.75rem}.sm\\:flex{display:flex}.sm\\:h-10{height:2.5rem}.sm\\:w-full{width:100%}.sm\\:w-10{width:2.5rem}.sm\\:w-auto{width:auto}.sm\\:max-w-xs{max-width:20rem}.sm\\:max-w-lg{max-width:32rem}.sm\\:flex-row-reverse{flex-direction:row-reverse}.sm\\:items-start{align-items:flex-start}.sm\\:items-center{align-items:center}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:text-left{text-align:left}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width:768px){.md\\:px-8{padding-left:2rem;padding-right:2rem}}",""]);const w=p},645: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 l=0;l<e.length;l++){var u=[].concat(e[l]);r&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},667: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}},81:e=>{"use strict";e.exports=function(e){return e[1]}},63:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},661:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Children:()=>p,Component:()=>o.wA,Fragment:()=>o.HY,PureComponent:()=>s,StrictMode:()=>W,Suspense:()=>m,SuspenseList:()=>v,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>L,cloneElement:()=>H,createContext:()=>o.kr,createElement:()=>o.az,createFactory:()=>F,createPortal:()=>k,createRef:()=>o.Vf,default:()=>Q,findDOMNode:()=>q,flushSync:()=>J,forwardRef:()=>f,hydrate:()=>T,isValidElement:()=>z,lazy:()=>w,memo:()=>c,render:()=>R,startTransition:()=>$,unmountComponentAtNode:()=>Y,unstable_batchedUpdates:()=>V,useCallback:()=>r.I4,useContext:()=>r.qp,useDebugValue:()=>r.Qb,useDeferredValue:()=>G,useEffect:()=>r.d4,useErrorBoundary:()=>r.cO,useImperativeHandle:()=>r.aP,useInsertionEffect:()=>X,useLayoutEffect:()=>r.bt,useMemo:()=>r.Ye,useReducer:()=>r._Y,useRef:()=>r.sO,useState:()=>r.eJ,useSyncExternalStore:()=>Z,useTransition:()=>K,version:()=>M});var r=n(396),o=n(400);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){this.props=e}function c(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 r(t){return this.shouldComponentUpdate=n,(0,o.az)(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(s.prototype=new o.wA).isPureReactComponent=!0,s.prototype.shouldComponentUpdate=function(e,t){return a(this.props,e)||a(this.state,t)};var l=o.YM.__b;o.YM.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),l&&l(e)};var u="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function f(e){function t(t){var n=i({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=u,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var d=function(e,t){return null==e?null:(0,o.bR)((0,o.bR)(e).map(t))},p={map:d,forEach:d,count:function(e){return e?(0,o.bR)(e).length:0},only:function(e){var t=(0,o.bR)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:o.bR},h=o.YM.__e;o.YM.__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);h(e,t,n,r)};var b=o.YM.unmount;function m(){this.__u=0,this.t=null,this.__b=null}function g(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function w(e){var t,n,r;function i(i){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return(0,o.az)(n,i)}return i.displayName="Lazy",i.__f=!0,i}function v(){this.u=null,this.o=null}o.YM.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),b&&b(e)},(m.prototype=new o.wA).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=g(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]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},m.prototype.componentWillUnmount=function(){this.t=[]},m.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=i({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var a=t.__a&&(0,o.az)(o.HY,null,e.fallback);return a&&(a.__h=null),[(0,o.az)(o.HY,null,t.__a?null:e.children),a]};var y=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function _(e){return this.getChildContext=function(){return e.context},e.children}function x(e){var t=this,n=e.i;t.componentWillUnmount=function(){(0,o.sY)(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),(0,o.sY)((0,o.az)(_,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function k(e,t){var n=(0,o.az)(x,{__v:e,i:t});return n.containerInfo=t,n}(v.prototype=new o.wA).__a=function(e){var t=this,n=g(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),y(t,e,r)):o()};n?n(i):i()}},v.prototype.render=function(e){this.u=null,this.o=new Map;var t=(0,o.bR)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},v.prototype.componentDidUpdate=v.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){y(e,n,t)}))};var E="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,C=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|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="undefined"!=typeof document,S=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};function R(e,t,n){return null==t.__k&&(t.textContent=""),(0,o.sY)(e,t),"function"==typeof n&&n(),e?e.__c:null}function T(e,t,n){return(0,o.ZB)(e,t),"function"==typeof n&&n(),e?e.__c:null}o.wA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(o.wA.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var j=o.YM.event;function P(){}function A(){return this.cancelBubble}function N(){return this.defaultPrevented}o.YM.event=function(e){return j&&(e=j(e)),e.persist=P,e.isPropagationStopped=A,e.isDefaultPrevented=N,e.nativeEvent=e};var D,I={configurable:!0,get:function(){return this.class}},U=o.YM.vnode;o.YM.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var i=-1===t.indexOf("-");for(var a in r={},n){var s=n[a];O&&"children"===a&&"noscript"===t||"value"===a&&"defaultValue"in n&&null==s||("defaultValue"===a&&"value"in n&&null==n.value?a="value":"download"===a&&!0===s?s="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+t)&&!S(n.type)?a="oninput":/^onfocus$/i.test(a)?a="onfocusin":/^onblur$/i.test(a)?a="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(a)?a=a.toLowerCase():i&&C.test(a)?a=a.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===s&&(s=void 0),/^oninput$/i.test(a)&&(a=a.toLowerCase(),r[a]&&(a="oninputCapture")),r[a]=s)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=(0,o.bR)(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=(0,o.bR)(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,n.class!=n.className&&(I.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",I))}e.$$typeof=E,U&&U(e)};var B=o.YM.__r;o.YM.__r=function(e){B&&B(e),D=e.__c};var L={ReactCurrentDispatcher:{current:{readContext:function(e){return D.__n[e.__c].props.value}}}},M="17.0.2";function F(e){return o.az.bind(null,e)}function z(e){return!!e&&e.$$typeof===E}function H(e){return z(e)?o.Tm.apply(null,arguments):e}function Y(e){return!!e.__k&&((0,o.sY)(null,e),!0)}function q(e){return e&&(e.base||1===e.nodeType&&e)||null}var V=function(e,t){return e(t)},J=function(e,t){return e(t)},W=o.HY;function $(e){e()}function G(e){return e}function K(){return[!1,$]}var X=r.bt;function Z(e,t){var n=(0,r.eJ)(t),o=n[0],i=n[1];return(0,r.d4)((function(){return e((function(){i((function(){return t()}))}))}),[e,t]),o}const Q={useState:r.eJ,useReducer:r._Y,useEffect:r.d4,useLayoutEffect:r.bt,useInsertionEffect:r.bt,useTransition:K,useDeferredValue:G,useSyncExternalStore:Z,startTransition:$,useRef:r.sO,useImperativeHandle:r.aP,useMemo:r.Ye,useCallback:r.I4,useContext:r.qp,useDebugValue:r.Qb,version:"17.0.2",Children:p,render:R,hydrate:T,unmountComponentAtNode:Y,createPortal:k,createElement:o.az,createContext:o.kr,createFactory:F,cloneElement:H,createRef:o.Vf,Fragment:o.HY,isValidElement:z,findDOMNode:q,Component:o.wA,PureComponent:s,memo:c,forwardRef:f,flushSync:J,unstable_batchedUpdates:V,StrictMode:o.HY,Suspense:m,SuspenseList:v,lazy:w,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:L}},400:(e,t,n)=>{"use strict";n.d(t,{HY:()=>g,Tm:()=>M,Vf:()=>m,YM:()=>o,ZB:()=>L,az:()=>h,bR:()=>C,h:()=>h,kr:()=>F,sY:()=>B,wA:()=>w});var r,o,i,a,s,c,l={},u=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(e,t){for(var n in t)e[n]=t[n];return e}function p(e){var t=e.parentNode;t&&t.removeChild(e)}function h(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 b(e,s,o,i,null)}function b(e,t,n,r,a){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++i:a};return null==a&&null!=o.vnode&&o.vnode(s),s}function m(){return{current:null}}function g(e){return e.children}function w(e,t){this.props=e,this.context=t}function v(e,t){if(null==t)return e.__?v(e.__,e.__.__k.indexOf(e)+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?v(e):null}function y(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 y(e)}}function _(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!x.__r++||s!==o.debounceRendering)&&((s=o.debounceRendering)||setTimeout)(x)}function x(){for(var e;x.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=d({},o)).__v=o.__v+1,P(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?v(o):i,o.__h),A(n,o),o.__e!=i&&y(o)))}))}function k(e,t,n,r,o,i,a,s,c,f){var d,p,h,m,w,y,_,x=r&&r.__k||u,k=x.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(m=n.__k[d]=null==(m=t[d])||"boolean"==typeof m?null:"string"==typeof m||"number"==typeof m||"bigint"==typeof m?b(null,m,null,null,m):Array.isArray(m)?b(g,{children:m},null,null,null):m.__b>0?b(m.type,m.props,m.key,null,m.__v):m)){if(m.__=n,m.__b=n.__b+1,null===(h=x[d])||h&&m.key==h.key&&m.type===h.type)x[d]=void 0;else for(p=0;p<k;p++){if((h=x[p])&&m.key==h.key&&m.type===h.type){x[p]=void 0;break}h=null}P(e,m,h=h||l,o,i,a,s,c,f),w=m.__e,(p=m.ref)&&h.ref!=p&&(_||(_=[]),h.ref&&_.push(h.ref,null,m),_.push(p,m.__c||w,m)),null!=w?(null==y&&(y=w),"function"==typeof m.type&&m.__k===h.__k?m.__d=c=E(m,c,e):c=O(e,m,h,x,w,c),"function"==typeof n.type&&(n.__d=c)):c&&h.__e==c&&c.parentNode!=e&&(c=v(h))}for(n.__e=y,d=k;d--;)null!=x[d]&&("function"==typeof n.type&&null!=x[d].__e&&x[d].__e==n.__d&&(n.__d=v(r,d+1)),I(x[d],x[d]));if(_)for(d=0;d<_.length;d++)D(_[d],_[++d],_[++d])}function E(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?E(r,t,n):O(n,r,r,o,r.__e,t));return t}function C(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){C(e,t)})):t.push(e)),t}function O(e,t,n,r,o,i){var a,s,c;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(s=i,c=0;(s=s.nextSibling)&&c<r.length;c+=2)if(s==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function S(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||f.test(t)?n:n+"px"}function R(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||S(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||S(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?j:T,i):e.removeEventListener(t,i?j:T,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function T(e){this.l[e.type+!1](o.event?o.event(e):e)}function j(e){this.l[e.type+!0](o.event?o.event(e):e)}function P(e,t,n,r,i,a,s,c,l){var u,f,p,h,b,m,v,y,_,x,E,C,O,S=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,c=t.__e=n.__e,t.__h=null,a=[c]),(u=o.__b)&&u(t);try{e:if("function"==typeof S){if(y=t.props,_=(u=S.contextType)&&r[u.__c],x=u?_?_.props.value:u.__:r,n.__c?v=(f=t.__c=n.__c).__=f.__E:("prototype"in S&&S.prototype.render?t.__c=f=new S(y,x):(t.__c=f=new w(y,x),f.constructor=S,f.render=U),_&&_.sub(f),f.props=y,f.state||(f.state={}),f.context=x,f.__n=r,p=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=S.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=d({},f.__s)),d(f.__s,S.getDerivedStateFromProps(y,f.__s))),h=f.props,b=f.state,p)null==S.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==S.getDerivedStateFromProps&&y!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(y,x),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(y,f.__s,x)||t.__v===n.__v){f.props=y,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),f.__h.length&&s.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(y,f.__s,x),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,b,m)}))}if(f.context=x,f.props=y,f.__v=t,f.__P=e,E=o.__r,C=0,"prototype"in S&&S.prototype.render)f.state=f.__s,f.__d=!1,E&&E(t),u=f.render(f.props,f.state,f.context);else do{f.__d=!1,E&&E(t),u=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++C<25);f.state=f.__s,null!=f.getChildContext&&(r=d(d({},r),f.getChildContext())),p||null==f.getSnapshotBeforeUpdate||(m=f.getSnapshotBeforeUpdate(h,b)),O=null!=u&&u.type===g&&null==u.key?u.props.children:u,k(e,Array.isArray(O)?O:[O],t,n,r,i,a,s,c,l),f.base=t.__e,t.__h=null,f.__h.length&&s.push(f),v&&(f.__E=f.__=null),f.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=N(n.__e,t,n,r,i,a,s,l);(u=o.diffed)&&u(t)}catch(e){t.__v=null,(l||null!=a)&&(t.__e=c,t.__h=!!l,a[a.indexOf(c)]=null),o.__e(e,t,n)}}function A(e,t){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 N(e,t,n,o,i,a,s,c){var u,f,d,h=n.props,b=t.props,m=t.type,g=0;if("svg"===m&&(i=!0),null!=a)for(;g<a.length;g++)if((u=a[g])&&"setAttribute"in u==!!m&&(m?u.localName===m:3===u.nodeType)){e=u,a[g]=null;break}if(null==e){if(null===m)return document.createTextNode(b);e=i?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,b.is&&b),a=null,c=!1}if(null===m)h===b||c&&e.data===b||(e.data=b);else{if(a=a&&r.call(e.childNodes),f=(h=n.props||l).dangerouslySetInnerHTML,d=b.dangerouslySetInnerHTML,!c){if(null!=a)for(h={},g=0;g<e.attributes.length;g++)h[e.attributes[g].name]=e.attributes[g].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||R(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||R(e,i,t[i],n[i],r)}(e,b,h,i,c),d)t.__k=[];else if(g=t.props.children,k(e,Array.isArray(g)?g:[g],t,n,o,i&&"foreignObject"!==m,a,s,a?a[0]:n.__k&&v(n,0),c),null!=a)for(g=a.length;g--;)null!=a[g]&&p(a[g]);c||("value"in b&&void 0!==(g=b.value)&&(g!==e.value||"progress"===m&&!g||"option"===m&&g!==h.value)&&R(e,"value",g,h.value,!1),"checked"in b&&void 0!==(g=b.checked)&&g!==e.checked&&R(e,"checked",g,h.checked,!1))}return e}function D(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){o.__e(e,n)}}function I(e,t,n){var r,i;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||D(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]&&I(r[i],t,"function"!=typeof e.type);n||null==e.__e||p(e.__e),e.__e=e.__d=void 0}function U(e,t,n){return this.constructor(e,n)}function B(e,t,n){var i,a,s;o.__&&o.__(e,t),a=(i="function"==typeof n)?null:n&&n.__k||t.__k,s=[],P(t,e=(!i&&n||t).__k=h(g,null,[e]),a||l,l,void 0!==t.ownerSVGElement,!i&&n?[n]:a?null:t.firstChild?r.call(t.childNodes):null,s,!i&&n?n:a?a.__e:t.firstChild,i),A(s,e)}function L(e,t){B(e,t,L)}function M(e,t,n){var o,i,a,s=d({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:s[a]=t[a];return arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),b(e.type,s,o||e.key,i||e.ref,null)}function F(e,t){var n={__c:t="__cC"+c++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(_)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=u.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,w.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof e&&(e=e(d({},n),this.props)),e&&d(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),_(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),_(this))},w.prototype.render=g,a=[],x.__r=0,c=0},396:(e,t,n)=>{"use strict";n.d(t,{I4:()=>E,Qb:()=>O,Ye:()=>k,_Y:()=>w,aP:()=>x,bt:()=>y,cO:()=>S,d4:()=>v,eJ:()=>g,qp:()=>C,sO:()=>_});var r,o,i,a,s=n(400),c=0,l=[],u=[],f=s.YM.__b,d=s.YM.__r,p=s.YM.diffed,h=s.YM.__c,b=s.YM.unmount;function m(e,t){s.YM.__h&&s.YM.__h(o,e,c||t),c=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:u}),n.__[e]}function g(e){return c=1,w(N,e)}function w(e,t,n){var i=m(r++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):N(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,!i.__c.u)){i.__c.__H.u=!0;var a=i.__c.shouldComponentUpdate;i.__c.shouldComponentUpdate=function(e,t,n){var r=i.__c.__H.__.filter((function(e){return e.__c}));return(r.every((function(e){return!e.__N}))||!r.every((function(e){if(!e.__N)return!0;var t=e.__[0];return e.__=e.__N,e.__N=void 0,t===e.__[0]})))&&(!a||a(e,t,n))}}return i.__N||i.__}function v(e,t){var n=m(r++,3);!s.YM.__s&&A(n.__H,t)&&(n.__=e,n.o=t,o.__H.__h.push(n))}function y(e,t){var n=m(r++,4);!s.YM.__s&&A(n.__H,t)&&(n.__=e,n.o=t,o.__h.push(n))}function _(e){return c=5,k((function(){return{current:e}}),[])}function x(e,t,n){c=6,y((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 k(e,t){var n=m(r++,7);return A(n.__H,t)?(n.__V=e(),n.o=t,n.__h=e,n.__V):n.__}function E(e,t){return c=8,k((function(){return e}),t)}function C(e){var t=o.context[e.__c],n=m(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__}function O(e,t){s.YM.useDebugValue&&s.YM.useDebugValue(t?t(e):e)}function S(e){var t=m(r++,10),n=g();return t.__=e,o.componentDidCatch||(o.componentDidCatch=function(e){t.__&&t.__(e),n[1](e)}),[n[0],function(){n[1](void 0)}]}function R(){for(var e;e=l.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(j),e.__H.__h.forEach(P),e.__H.__h=[]}catch(t){e.__H.__h=[],s.YM.__e(t,e.__v)}}s.YM.__b=function(e){o=null,f&&f(e)},s.YM.__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.__V=u,e.__N=e.o=void 0}))):(t.__h.forEach(j),t.__h.forEach(P),t.__h=[])),i=o},s.YM.diffed=function(e){p&&p(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==l.push(t)&&a===s.YM.requestAnimationFrame||((a=s.YM.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),T&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);T&&(t=requestAnimationFrame(n))})(R)),t.__H.__.forEach((function(e){e.o&&(e.__H=e.o),e.__V!==u&&(e.__=e.__V),e.o=void 0,e.__V=u}))),i=o=null},s.YM.__c=function(e,t){t.some((function(e){try{e.__h.forEach(j),e.__h=e.__h.filter((function(e){return!e.__||P(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],s.YM.__e(n,e.__v)}})),h&&h(e,t)},s.YM.unmount=function(e){b&&b(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{j(e)}catch(e){t=e}})),t&&s.YM.__e(t,n.__v))};var T="function"==typeof requestAnimationFrame;function j(e){var t=o,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),o=t}function P(e){var t=o;e.__c=e.__(),o=t}function A(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function N(e,t){return"function"==typeof t?t(e):t}},184:e=>{"use strict";e.exports="data:image/svg+xml;charset=utf-8,%3Csvg viewBox=%270 0 16 16%27 fill=%27%23fff%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Ccircle cx=%278%27 cy=%278%27 r=%273%27/%3E%3C/svg%3E"},254:e=>{"use strict";e.exports="data:image/svg+xml;charset=utf-8,%3Csvg viewBox=%270 0 16 16%27 fill=%27%23fff%27 xmlns=%27http://www.w3.org/2000/svg%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 0z%27/%3E%3C/svg%3E"},421: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"},578: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,(()=>{"use strict";var e={};n.r(e),n.d(e,{hasBrowserEnv:()=>st,hasStandardBrowserEnv:()=>lt,hasStandardBrowserWebWorkerEnv:()=>ut,navigator:()=>ct,origin:()=>ft});var t=n(400),r=0;function o(e,n,o,i,a){var s,c,l={};for(c in n)"ref"==c?s=n[c]:l[c]=n[c];var u={type:e,props:l,key:o,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--r,__source:a,__self:i};if("function"==typeof e&&(s=e.defaultProps))for(c in s)void 0===l[c]&&(l[c]=s[c]);return t.YM.vnode&&t.YM.vnode(u),u}var i=n(383),a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};function s(e){return function(n){return o(t.HY,{children:[o("style",{children:i.Z.toString()}),o(e,a({},n))]})}}const c=s((function(e){return o(t.HY,{children:o("div",{children:o("p",{children:"Hello, Superhero."})})})}));var l=n(396),u=n(661);function f(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,f),r}var d,p=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(p||{}),h=((d=h||{})[d.Unmount=0]="Unmount",d[d.Hidden=1]="Hidden",d);function b({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a}){let s=g(t,e);if(i)return m(s,n,r,a);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=s;if(e)return m(t,n,r,a)}if(1&c){let{unmount:e=!0,...t}=s;return f(e?0:1,{0:()=>null,1:()=>m({...t,hidden:!0,style:{display:"none"}},n,r,a)})}return m(s,n,r,a)}function m(e,t={},n,r){let{as:o=n,children:i,refName:a="ref",...s}=y(e,["unmount","static"]),c=void 0!==e.ref?{[a]:e.ref}:{},l="function"==typeof i?i(t):i;s.className&&"function"==typeof s.className&&(s.className=s.className(t));let f={};if(o===u.Fragment&&Object.keys(v(s)).length>0){if(!(0,u.isValidElement)(l)||Array.isArray(l)&&l.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(s).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"));return(0,u.cloneElement)(l,Object.assign({},g(l.props,v(y(s,["ref"]))),f,c))}return(0,u.createElement)(o,Object.assign({},y(s,["ref"]),o!==u.Fragment&&c,o!==u.Fragment&&f),l)}function g(...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.defaultPrevented)return;e(t,...r)}}});return t}function w(e){var t;return Object.assign((0,u.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function v(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function y(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}let _="undefined"!=typeof window?u.useLayoutEffect:u.useEffect,x={serverHandoffComplete:!1};var k;let E=0;function C(){return++E}let O=null!=(k=u.default.useId)?k:function(){let e=function(){let[e,t]=(0,u.useState)(x.serverHandoffComplete);return(0,u.useEffect)((()=>{!0!==e&&t(!0)}),[e]),(0,u.useEffect)((()=>{!1===x.serverHandoffComplete&&(x.serverHandoffComplete=!0)}),[]),e}(),[t,n]=u.default.useState(e?C:null);return _((()=>{null===t&&n(C())}),[t]),null!=t?""+t:void 0};var S=(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))(S||{});let R=function(e){let t=function(e){let t=(0,u.useRef)(e);return _((()=>{t.current=e}),[e]),t}(e);return u.default.useCallback(((...e)=>t.current(...e)),[t])},T=Symbol();function j(...e){let t=(0,u.useRef)(e);(0,u.useEffect)((()=>{t.current=e}),[e]);let n=R((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[T])))?void 0:n}let P=(0,u.createContext)(null);function A(){let e=(0,u.useContext)(P);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,A),e}return e}let N=w((function(e,t){let{passive:n=!1,...r}=e,o=A(),i=`headlessui-label-${O()}`,a=j(t);_((()=>o.register(i)),[i,o.register]);let s={ref:a,...o.props,id:i};return n&&("onClick"in s&&delete s.onClick,"onClick"in r&&delete r.onClick),b({ourProps:s,theirProps:r,slot:o.slot||{},defaultTag:"label",name:o.name||"Label"})})),D=(0,u.createContext)(null);function I(){let e=(0,u.useContext)(D);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,I),e}return e}function U(){let[e,t]=(0,u.useState)([]);return[e.length>0?e.join(" "):void 0,(0,u.useMemo)((()=>function(e){let n=R((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),r=(0,u.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return u.default.createElement(D.Provider,{value:r},e.children)}),[t])]}let B=w((function(e,t){let n=I(),r=`headlessui-description-${O()}`,o=j(t);_((()=>n.register(r)),[r,n.register]);let i=e;return b({ourProps:{ref:o,...n.props,id:r},theirProps:i,slot:n.slot||{},defaultTag:"p",name:n.name||"Description"})}));function L(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 M(e,t){let[n,r]=(0,u.useState)((()=>L(e)));return _((()=>{r(L(e))}),[e.type,e.as]),_((()=>{n||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[n,t]),n}var F=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(F||{});let z=w((function(e,t){let{features:n=1,...r}=e;return b({ourProps:{ref:t,"aria-hidden":2==(2&n)||void 0,style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&n)&&2!=(2&n)&&{display:"none"}}},theirProps:r,slot:{},defaultTag:"div",name:"Hidden"})})),H=(0,u.createContext)(null);H.displayName="GroupContext";let Y=u.Fragment,q=w((function(e,t){let{checked:n,onChange:r,name:o,value:i,...a}=e,s=`headlessui-switch-${O()}`,c=(0,u.useContext)(H),l=(0,u.useRef)(null),f=j(l,t,null===c?null:c.setSwitch),d=R((()=>r(!n))),p=R((e=>{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}(e.currentTarget))return e.preventDefault();e.preventDefault(),d()})),h=R((e=>{e.key===S.Space?(e.preventDefault(),d()):e.key===S.Enter&&function(e){var t;let n=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(n)for(let e of n.elements)if("INPUT"===e.tagName&&"submit"===e.type||"BUTTON"===e.tagName&&"submit"===e.type||"INPUT"===e.nodeName&&"image"===e.type)return void e.click()}(e.currentTarget)})),m=R((e=>e.preventDefault())),g=(0,u.useMemo)((()=>({checked:n})),[n]),w={id:s,ref:f,role:"switch",type:M(e,l),tabIndex:0,"aria-checked":n,"aria-labelledby":null==c?void 0:c.labelledby,"aria-describedby":null==c?void 0:c.describedby,onClick:p,onKeyUp:h,onKeyPress:m};return u.default.createElement(u.default.Fragment,null,null!=o&&n&&u.default.createElement(z,{features:F.Hidden,...v({as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:n,name:o,value:i})}),b({ourProps:w,theirProps:a,slot:g,defaultTag:"button",name:"Switch"}))})),V=Object.assign(q,{Group:function(e){let[t,n]=(0,u.useState)(null),[r,o]=function(){let[e,t]=(0,u.useState)([]);return[e.length>0?e.join(" "):void 0,(0,u.useMemo)((()=>function(e){let n=R((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),r=(0,u.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return u.default.createElement(P.Provider,{value:r},e.children)}),[t])]}(),[i,a]=U(),s=(0,u.useMemo)((()=>({switch:t,setSwitch:n,labelledby:r,describedby:i})),[t,n,r,i]),c=e;return u.default.createElement(a,{name:"Switch.Description"},u.default.createElement(o,{name:"Switch.Label",props:{onClick(){!t||(t.click(),t.focus({preventScroll:!0}))}}},u.default.createElement(H.Provider,{value:s},b({ourProps:{},theirProps:c,defaultTag:Y,name:"Switch.Group"}))))},Label:N,Description:B});var J=function(){return J=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},J.apply(this,arguments)};const W=function(e){var t=e.className,n=e.value,r=e.disabled,i=e.label,a=e.onChange;return o(V.Group,{children:o("div",J({class:"flex ".concat(t," ").concat(r?"pointer-events-none":"")},{children:[o(V,J({disabled:r,checked:n,onChange:a,class:"".concat(n?"bg-gray-900":"bg-gray-300","\n inline-flex h-[1.5rem] w-[2.75rem] shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75 my-auto")},{children:o("span",{class:"".concat(n?"translate-x-[1.25rem]":"translate-x-0","\n pointer-events-none inline-block h-[1.25rem] w-[1.25rem] transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out")})})),o(V.Label,{children:o("div",J({class:"flex items-center h-full text-sm leading-5 text-gray-900 cursor-pointer ml-3"},{children:i}))})]}))})};var $,G,K,X=function(){return X=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},X.apply(this,arguments)};!function(e){e.Default="Default",e.Ineligible="Ineligible employee base",e.Ineligible_Account_Constraints="Ineligible due to account constraints",e.Existing_Provider="Has existing benefit provider",e.Not_Offer="Does not offer benefit",e.Not_Offer_Flare="Does not offer any Flare benefits"}($||($={})),function(e){e.Off="Off",e.Injected="Injected",e.Discrete="Discrete"}(G||(G={})),function(e){e.Partner="Partner",e.Default="Default",e.Account="Account"}(K||(K={}));var Z=Object.entries($).map((function(e){return{name:e[0],value:e[1]}})),Q={ownership:"Default",wellbeing:{isEnabled:!0},flareApp:{isEnabled:!0},salaryPackagingCars:{isEnabled:!0},allowance:{isEnabled:!1,disabledReason:$.Default}},ee={ownership:"Default",products:[]};function te(e,t){return function(){return e.apply(t,arguments)}}const{toString:ne}=Object.prototype,{getPrototypeOf:re}=Object,oe=(ie=Object.create(null),e=>{const t=ne.call(e);return ie[t]||(ie[t]=t.slice(8,-1).toLowerCase())});var ie;const ae=e=>(e=e.toLowerCase(),t=>oe(t)===e),se=e=>t=>typeof t===e,{isArray:ce}=Array,le=se("undefined"),ue=ae("ArrayBuffer"),fe=se("string"),de=se("function"),pe=se("number"),he=e=>null!==e&&"object"==typeof e,be=e=>{if("object"!==oe(e))return!1;const t=re(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},me=ae("Date"),ge=ae("File"),we=ae("Blob"),ve=ae("FileList"),ye=ae("URLSearchParams"),[_e,xe,ke,Ee]=["ReadableStream","Request","Response","Headers"].map(ae);function Ce(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),ce(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Oe(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Se="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Re=e=>!le(e)&&e!==Se,Te=(je="undefined"!=typeof Uint8Array&&re(Uint8Array),e=>je&&e instanceof je);var je;const Pe=ae("HTMLFormElement"),Ae=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ne=ae("RegExp"),De=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ce(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},Ie=ae("AsyncFunction"),Ue=(Be="function"==typeof setImmediate,Le=de(Se.postMessage),Be?setImmediate:Le?(Me=`axios@${Math.random()}`,Fe=[],Se.addEventListener("message",(({source:e,data:t})=>{e===Se&&t===Me&&Fe.length&&Fe.shift()()}),!1),e=>{Fe.push(e),Se.postMessage(Me,"*")}):e=>setTimeout(e));var Be,Le,Me,Fe;const ze="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Se):"undefined"!=typeof process&&process.nextTick||Ue,He={isArray:ce,isArrayBuffer:ue,isBuffer:function(e){return null!==e&&!le(e)&&null!==e.constructor&&!le(e.constructor)&&de(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||de(e.append)&&("formdata"===(t=oe(e))||"object"===t&&de(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ue(e.buffer),t},isString:fe,isNumber:pe,isBoolean:e=>!0===e||!1===e,isObject:he,isPlainObject:be,isReadableStream:_e,isRequest:xe,isResponse:ke,isHeaders:Ee,isUndefined:le,isDate:me,isFile:ge,isBlob:we,isRegExp:Ne,isFunction:de,isStream:e=>he(e)&&de(e.pipe),isURLSearchParams:ye,isTypedArray:Te,isFileList:ve,forEach:Ce,merge:function e(){const{caseless:t}=Re(this)&&this||{},n={},r=(r,o)=>{const i=t&&Oe(n,o)||o;be(n[i])&&be(r)?n[i]=e(n[i],r):be(r)?n[i]=e({},r):ce(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Ce(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(Ce(t,((t,r)=>{n&&de(t)?e[r]=te(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&re(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:oe,kindOfTest:ae,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(ce(e))return e;let t=e.length;if(!pe(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Pe,hasOwnProperty:Ae,hasOwnProp:Ae,reduceDescriptors:De,freezeMethods:e=>{De(e,((t,n)=>{if(de(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];de(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return ce(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Oe,global:Se,isContextDefined:Re,isSpecCompliantForm:function(e){return!!(e&&de(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(he(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=ce(e)?[]:{};return Ce(e,((e,t)=>{const i=n(e,r+1);!le(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Ie,isThenable:e=>e&&(he(e)||de(e))&&de(e.then)&&de(e.catch),setImmediate:Ue,asap:ze};function Ye(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}He.inherits(Ye,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:He.toJSONObject(this.config),code:this.code,status:this.status}}});const qe=Ye.prototype,Ve={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Ve[e]={value:e}})),Object.defineProperties(Ye,Ve),Object.defineProperty(qe,"isAxiosError",{value:!0}),Ye.from=(e,t,n,r,o,i)=>{const a=Object.create(qe);return He.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Ye.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const Je=Ye;function We(e){return He.isPlainObject(e)||He.isArray(e)}function $e(e){return He.endsWith(e,"[]")?e.slice(0,-2):e}function Ge(e,t,n){return e?e.concat(t).map((function(e,t){return e=$e(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Ke=He.toFlatObject(He,{},null,(function(e){return/^is[A-Z]/.test(e)})),Xe=function(e,t,n){if(!He.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=He.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!He.isUndefined(t[e])}))).metaTokens,o=n.visitor||l,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&He.isSpecCompliantForm(t);if(!He.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(He.isDate(e))return e.toISOString();if(!s&&He.isBlob(e))throw new Je("Blob is not supported. Use a Buffer instead.");return He.isArrayBuffer(e)||He.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(He.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(He.isArray(e)&&function(e){return He.isArray(e)&&!e.some(We)}(e)||(He.isFileList(e)||He.endsWith(n,"[]"))&&(s=He.toArray(e)))return n=$e(n),s.forEach((function(e,r){!He.isUndefined(e)&&null!==e&&t.append(!0===a?Ge([n],r,i):null===a?n:n+"[]",c(e))})),!1;return!!We(e)||(t.append(Ge(o,n,i),c(e)),!1)}const u=[],f=Object.assign(Ke,{defaultVisitor:l,convertValue:c,isVisitable:We});if(!He.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!He.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),He.forEach(n,(function(n,i){!0===(!(He.isUndefined(n)||null===n)&&o.call(t,n,He.isString(i)?i.trim():i,r,f))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t};function Ze(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Qe(e,t){this._pairs=[],e&&Xe(e,this,t)}const et=Qe.prototype;et.append=function(e,t){this._pairs.push([e,t])},et.toString=function(e){const t=e?function(t){return e.call(this,t,Ze)}:Ze;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const tt=Qe;function nt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rt(e,t,n){if(!t)return e;const r=n&&n.encode||nt;He.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):He.isURLSearchParams(t)?t.toString():new tt(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const ot=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){He.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},it={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},at={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:tt,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},st="undefined"!=typeof window&&"undefined"!=typeof document,ct="object"==typeof navigator&&navigator||void 0,lt=st&&(!ct||["ReactNative","NativeScript","NS"].indexOf(ct.product)<0),ut="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ft=st&&window.location.href||"http://localhost",dt={...e,...at},pt=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&He.isArray(r)?r.length:i,s?(He.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&He.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&He.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a)}if(He.isFormData(e)&&He.isFunction(e.entries)){const n={};return He.forEachEntry(e,((e,r)=>{t(function(e){return He.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},ht={transitional:it,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=He.isObject(e);if(o&&He.isHTMLForm(e)&&(e=new FormData(e)),He.isFormData(e))return r?JSON.stringify(pt(e)):e;if(He.isArrayBuffer(e)||He.isBuffer(e)||He.isStream(e)||He.isFile(e)||He.isBlob(e)||He.isReadableStream(e))return e;if(He.isArrayBufferView(e))return e.buffer;if(He.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Xe(e,new dt.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return dt.isNode&&He.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=He.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Xe(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(He.isString(e))try{return(0,JSON.parse)(e),He.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ht.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(He.isResponse(e)||He.isReadableStream(e))return e;if(e&&He.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Je.from(e,Je.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dt.classes.FormData,Blob:dt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};He.forEach(["delete","get","head","post","put","patch"],(e=>{ht.headers[e]={}}));const bt=ht,mt=He.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),gt=Symbol("internals");function wt(e){return e&&String(e).trim().toLowerCase()}function vt(e){return!1===e||null==e?e:He.isArray(e)?e.map(vt):String(e)}function yt(e,t,n,r,o){return He.isFunction(r)?r.call(this,t,n):(o&&(t=n),He.isString(t)?He.isString(r)?-1!==t.indexOf(r):He.isRegExp(r)?r.test(t):void 0:void 0)}class _t{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=wt(t);if(!o)throw new Error("header name must be a non-empty string");const i=He.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=vt(e))}const i=(e,t)=>He.forEach(e,((e,n)=>o(e,n,t)));if(He.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(He.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&mt[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(He.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=wt(e)){const n=He.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(He.isFunction(t))return t.call(this,e,n);if(He.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=wt(e)){const n=He.findKey(this,e);return!(!n||void 0===this[n]||t&&!yt(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=wt(e)){const o=He.findKey(n,e);!o||t&&!yt(0,n[o],o,t)||(delete n[o],r=!0)}}return He.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!yt(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return He.forEach(this,((r,o)=>{const i=He.findKey(n,o);if(i)return t[i]=vt(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=vt(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return He.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&He.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[gt]=this[gt]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=wt(e);t[r]||(function(e,t){const n=He.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return He.isArray(e)?e.forEach(r):r(e),this}}_t.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),He.reduceDescriptors(_t.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),He.freezeMethods(_t);const xt=_t;function kt(e,t){const n=this||bt,r=t||n,o=xt.from(r.headers);let i=r.data;return He.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Et(e){return!(!e||!e.__CANCEL__)}function Ct(e,t,n){Je.call(this,null==e?"canceled":e,Je.ERR_CANCELED,t,n),this.name="CanceledError"}He.inherits(Ct,Je,{__CANCEL__:!0});const Ot=Ct;function St(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Je("Request failed with status code "+n.status,[Je.ERR_BAD_REQUEST,Je.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Rt=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),l=r[a];o||(o=c),n[i]=s,r[i]=c;let u=a,f=0;for(;u!==i;)f+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;const d=l&&c-l;return d?Math.round(1e3*f/d):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},()=>n&&a(n)]}((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,c=o(s);r=i,e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},Tt=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},jt=e=>(...t)=>He.asap((()=>e(...t))),Pt=dt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,dt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(dt.origin),dt.navigator&&/(msie|trident)/i.test(dt.navigator.userAgent)):()=>!0,At=dt.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];He.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),He.isString(r)&&a.push("path="+r),He.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Nt(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&r||0==n?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Dt=e=>e instanceof xt?{...e}:e;function It(e,t){t=t||{};const n={};function r(e,t,n,r){return He.isPlainObject(e)&&He.isPlainObject(t)?He.merge.call({caseless:r},e,t):He.isPlainObject(t)?He.merge({},t):He.isArray(t)?t.slice():t}function o(e,t,n,o){return He.isUndefined(t)?He.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!He.isUndefined(t))return r(void 0,t)}function a(e,t){return He.isUndefined(t)?He.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(Dt(e),Dt(t),0,!0)};return He.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=c[r]||o,a=i(e[r],t[r],r);He.isUndefined(a)&&i!==s||(n[r]=a)})),n}const Ut=e=>{const t=It({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:c}=t;if(t.headers=s=xt.from(s),t.url=rt(Nt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),He.isFormData(r))if(dt.hasStandardBrowserEnv||dt.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(dt.hasStandardBrowserEnv&&(o&&He.isFunction(o)&&(o=o(t)),o||!1!==o&&Pt(t.url))){const e=i&&a&&At.read(a);e&&s.set(i,e)}return t},Bt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Ut(e);let o=r.data;const i=xt.from(r.headers).normalize();let a,s,c,l,u,{responseType:f,onUploadProgress:d,onDownloadProgress:p}=r;function h(){l&&l(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let b=new XMLHttpRequest;function m(){if(!b)return;const r=xt.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());St((function(e){t(e),h()}),(function(e){n(e),h()}),{data:f&&"text"!==f&&"json"!==f?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b}),b=null}b.open(r.method.toUpperCase(),r.url,!0),b.timeout=r.timeout,"onloadend"in b?b.onloadend=m:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(m)},b.onabort=function(){b&&(n(new Je("Request aborted",Je.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new Je("Network Error",Je.ERR_NETWORK,e,b)),b=null},b.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||it;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Je(t,o.clarifyTimeoutError?Je.ETIMEDOUT:Je.ECONNABORTED,e,b)),b=null},void 0===o&&i.setContentType(null),"setRequestHeader"in b&&He.forEach(i.toJSON(),(function(e,t){b.setRequestHeader(t,e)})),He.isUndefined(r.withCredentials)||(b.withCredentials=!!r.withCredentials),f&&"json"!==f&&(b.responseType=r.responseType),p&&([c,u]=Rt(p,!0),b.addEventListener("progress",c)),d&&b.upload&&([s,l]=Rt(d),b.upload.addEventListener("progress",s),b.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(a=t=>{b&&(n(!t||t.type?new Ot(null,e,b):t),b.abort(),b=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const g=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);g&&-1===dt.protocols.indexOf(g)?n(new Je("Unsupported protocol "+g+":",Je.ERR_BAD_REQUEST,e)):b.send(o||null)}))},Lt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Je?t:new Ot(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new Je(`timeout ${t} of ms exceeded`,Je.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=()=>He.asap(a),s}},Mt=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Ft=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*Mt(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},zt="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Ht=zt&&"function"==typeof ReadableStream,Yt=zt&&("function"==typeof TextEncoder?(qt=new TextEncoder,e=>qt.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var qt;const Vt=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Jt=Ht&&Vt((()=>{let e=!1;const t=new Request(dt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Wt=Ht&&Vt((()=>He.isReadableStream(new Response("").body))),$t={stream:Wt&&(e=>e.body)};var Gt;zt&&(Gt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!$t[e]&&($t[e]=He.isFunction(Gt[e])?t=>t[e]():(t,n)=>{throw new Je(`Response type '${e}' is not supported`,Je.ERR_NOT_SUPPORT,n)})})));const Kt=zt&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:l,headers:u,withCredentials:f="same-origin",fetchOptions:d}=Ut(e);l=l?(l+"").toLowerCase():"text";let p,h=Lt([o,i&&i.toAbortSignal()],a);const b=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let m;try{if(c&&Jt&&"get"!==n&&"head"!==n&&0!==(m=await(async(e,t)=>{const n=He.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(He.isBlob(e))return e.size;if(He.isSpecCompliantForm(e)){const t=new Request(dt.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return He.isArrayBufferView(e)||He.isArrayBuffer(e)?e.byteLength:(He.isURLSearchParams(e)&&(e+=""),He.isString(e)?(await Yt(e)).byteLength:void 0)})(t):n})(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(He.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=Tt(m,Rt(jt(c)));r=Ft(n.body,65536,e,t)}}He.isString(f)||(f=f?"include":"omit");const o="credentials"in Request.prototype;p=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:o?f:void 0});let i=await fetch(p);const a=Wt&&("stream"===l||"response"===l);if(Wt&&(s||a&&b)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=He.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&Tt(t,Rt(jt(s),!0))||[];i=new Response(Ft(i.body,65536,n,(()=>{r&&r(),b&&b()})),e)}l=l||"text";let g=await $t[He.findKey($t,l)||"text"](i,e);return!a&&b&&b(),await new Promise(((t,n)=>{St(t,n,{data:g,headers:xt.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:p})}))}catch(t){if(b&&b(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new Je("Network Error",Je.ERR_NETWORK,e,p),{cause:t.cause||t});throw Je.from(t,t&&t.code,e,p)}}),Xt={http:null,xhr:Bt,fetch:Kt};He.forEach(Xt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Zt=e=>`- ${e}`,Qt=e=>He.isFunction(e)||null===e||!1===e,en=e=>{e=He.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!Qt(n)&&(r=Xt[(t=String(n)).toLowerCase()],void 0===r))throw new Je(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(Zt).join("\n"):" "+Zt(e[0]):"as no adapter specified";throw new Je("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function tn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ot(null,e)}function nn(e){return tn(e),e.headers=xt.from(e.headers),e.data=kt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),en(e.adapter||bt.adapter)(e).then((function(t){return tn(e),t.data=kt.call(e,e.transformResponse,t),t.headers=xt.from(t.headers),t}),(function(t){return Et(t)||(tn(e),t&&t.response&&(t.response.data=kt.call(e,e.transformResponse,t.response),t.response.headers=xt.from(t.response.headers))),Promise.reject(t)}))}const rn={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{rn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const on={};rn.transitional=function(e,t,n){function r(e,t){return"[Axios v1.8.3] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Je(r(o," has been removed"+(t?" in "+t:"")),Je.ERR_DEPRECATED);return t&&!on[o]&&(on[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},rn.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const an={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Je("options must be an object",Je.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Je("option "+i+" must be "+n,Je.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Je("Unknown option "+i,Je.ERR_BAD_OPTION)}},validators:rn},sn=an.validators;class cn{constructor(e){this.defaults=e,this.interceptors={request:new ot,response:new ot}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=It(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&an.assertOptions(n,{silentJSONParsing:sn.transitional(sn.boolean),forcedJSONParsing:sn.transitional(sn.boolean),clarifyTimeoutError:sn.transitional(sn.boolean)},!1),null!=r&&(He.isFunction(r)?t.paramsSerializer={serialize:r}:an.assertOptions(r,{encode:sn.function,serialize:sn.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),an.assertOptions(t,{baseUrl:sn.spelling("baseURL"),withXsrfToken:sn.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&He.merge(o.common,o[t.method]);o&&He.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=xt.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,f=0;if(!s){const e=[nn.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),u=e.length,l=Promise.resolve(t);f<u;)l=l.then(e[f++],e[f++]);return l}u=a.length;let d=t;for(f=0;f<u;){const e=a[f++],t=a[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=nn.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,u=c.length;f<u;)l=l.then(c[f++],c[f++]);return l}getUri(e){return rt(Nt((e=It(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}He.forEach(["delete","get","head","options"],(function(e){cn.prototype[e]=function(t,n){return this.request(It(n||{},{method:e,url:t,data:(n||{}).data}))}})),He.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(It(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}cn.prototype[e]=t(),cn.prototype[e+"Form"]=t(!0)}));const ln=cn;class un{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Ot(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new un((function(t){e=t}));return{token:t,cancel:e}}}const fn=un,dn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(dn).forEach((([e,t])=>{dn[t]=e}));const pn=dn,hn=function e(t){const n=new ln(t),r=te(ln.prototype.request,n);return He.extend(r,ln.prototype,n,{allOwnKeys:!0}),He.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(It(t,n))},r}(bt);hn.Axios=ln,hn.CanceledError=Ot,hn.CancelToken=fn,hn.isCancel=Et,hn.VERSION="1.8.3",hn.toFormData=Xe,hn.AxiosError=Je,hn.Cancel=hn.CanceledError,hn.all=function(e){return Promise.all(e)},hn.spread=function(e){return function(t){return e.apply(null,t)}},hn.isAxiosError=function(e){return He.isObject(e)&&!0===e.isAxiosError},hn.mergeConfig=It,hn.AxiosHeaders=xt,hn.formToJSON=e=>pt(He.isHTMLForm(e)?new FormData(e):e),hn.getAdapter=en,hn.HttpStatusCode=pn,hn.default=hn;const bn=hn;var mn,gn=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},wn=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},vn=function(){function e(){}return e.initClient=function(e,t){this.axiosInstance=bn.create({baseURL:"".concat(e,"/admin"),headers:{Authorization:"Bearer ".concat(t)},allowAbsoluteUrls:!1})},e.getConfigUrl=function(e,t){return t?"/partners/".concat(e,"/accounts/").concat(t,"/config"):"/partners/".concat(e,"/config")},e.getConfig=function(e,t){return gn(this,void 0,void 0,(function(){return wn(this,(function(n){switch(n.label){case 0:return[4,this.axiosInstance.get(this.getConfigUrl(e,t),{})];case 1:return[2,n.sent().data]}}))}))},e.upsertImplementationStyle=function(e,t){return gn(this,void 0,void 0,(function(){return wn(this,(function(n){switch(n.label){case 0:return[4,this.axiosInstance.put("".concat(this.getConfigUrl(e),"/style"),{implementationStyle:t})];case 1:return n.sent(),[2]}}))}))},e.upsertOffers=function(e,t,n){return gn(this,void 0,void 0,(function(){return wn(this,(function(r){switch(r.label){case 0:return[4,this.axiosInstance.put("".concat(this.getConfigUrl(e,n),"/offers"),{offerEnablements:t})];case 1:return r.sent(),[2]}}))}))},e.deleteOffers=function(e,t){return gn(this,void 0,void 0,(function(){return wn(this,(function(n){switch(n.label){case 0:return[4,this.axiosInstance.delete("".concat(this.getConfigUrl(e,t),"/offers"))];case 1:return n.sent(),[2]}}))}))},e.getInjectedStyle=function(e){return gn(this,void 0,void 0,(function(){return wn(this,(function(t){switch(t.label){case 0:return[4,this.axiosInstance.get("".concat(this.getConfigUrl(e),"/injected"))];case 1:return[2,t.sent().data]}}))}))},e.upsertInjectedStyle=function(e,t,n){return gn(this,void 0,void 0,(function(){return wn(this,(function(r){switch(r.label){case 0:return[4,this.axiosInstance.put("".concat(this.getConfigUrl(e,n),"/injected"),t)];case 1:return r.sent(),[2]}}))}))},e.deleteInjectedStyle=function(e,t){return gn(this,void 0,void 0,(function(){return wn(this,(function(n){switch(n.label){case 0:return[4,this.axiosInstance.delete("".concat(this.getConfigUrl(e,t),"/injected"))];case 1:return n.sent(),[2]}}))}))},e.upsertBenefitsAllowance=function(e,t,n){return gn(this,void 0,void 0,(function(){return wn(this,(function(r){switch(r.label){case 0:return[4,this.axiosInstance.put("".concat(this.getConfigUrl(e,n),"/benefits-allowance"),t)];case 1:return r.sent(),[2]}}))}))},e.deleteBenefitsAllowance=function(e,t){return gn(this,void 0,void 0,(function(){return wn(this,(function(n){switch(n.label){case 0:return[4,this.axiosInstance.delete("".concat(this.getConfigUrl(e,t),"/benefits-allowance"))];case 1:return n.sent(),[2]}}))}))},e}();!function(e){e.Default="Default",e.Ineligible="Ineligible employee base",e.Ineligible_Account_Constraints="Ineligible due to account constraints",e.Existing_Provider="Has existing benefit provider",e.Not_Offer="Does not offer benefit",e.Not_Offer_Flare="Does not offer any Flare benefits",e.DEPRECATED_Existing_Provider="Existing novated lease provider",e.DEPRECATED_Not_Offer="Does not offer a novated lease benefit",e.DEPRECATED_Not_Offer_Flare="Does not wish to offer any Flare premium benefits"}(mn||(mn={}));var yn=function(e){switch(e){case $.Ineligible:return mn.Ineligible;case $.Ineligible_Account_Constraints:return mn.Ineligible_Account_Constraints;case $.Existing_Provider:return mn.Existing_Provider;case $.Not_Offer:return mn.Not_Offer;case $.Not_Offer_Flare:return mn.Not_Offer_Flare;case $.Default:default:return mn.Default}},_n=function(e){switch(e){case mn.Ineligible:return $.Ineligible;case mn.Ineligible_Account_Constraints:return $.Ineligible_Account_Constraints;case mn.Existing_Provider:case mn.DEPRECATED_Existing_Provider:return $.Existing_Provider;case mn.Not_Offer:case mn.DEPRECATED_Not_Offer:return $.Not_Offer;case mn.Not_Offer_Flare:case mn.DEPRECATED_Not_Offer_Flare:return $.Not_Offer_Flare;case mn.Default:default:return $.Default}},xn=function(e){return{ownership:e.ownership,wellbeing:e.wellbeing.isEnabled?{isEnabled:!0}:{isEnabled:!1,disabledReason:yn(e.wellbeing.disabledReason)},flareApp:e.flareApp.isEnabled?{isEnabled:!0}:{isEnabled:!1,disabledReason:yn(e.flareApp.disabledReason)},salaryPackagingCars:e.salaryPackagingCars.isEnabled?{isEnabled:!0}:{isEnabled:!1,disabledReason:yn(e.salaryPackagingCars.disabledReason)},allowance:e.allowance.isEnabled?{isEnabled:!0}:{isEnabled:!1,disabledReason:yn(e.allowance.disabledReason)}}},kn=function(e){return{ownership:e.ownership,wellbeing:e.wellbeing.isEnabled?{isEnabled:!0}:{isEnabled:!1,disabledReason:_n(e.wellbeing.disabledReason)},flareApp:e.flareApp.isEnabled?{isEnabled:!0}:{isEnabled:!1,disabledReason:_n(e.flareApp.disabledReason)},salaryPackagingCars:e.salaryPackagingCars.isEnabled?{isEnabled:!0}:{isEnabled:!1,disabledReason:_n(e.salaryPackagingCars.disabledReason)},allowance:e.allowance.isEnabled?{isEnabled:!0}:{isEnabled:!1,disabledReason:_n(e.allowance.disabledReason)}}},En=function(e){return{ownership:e.ownership,products:e.products.map((function(e){return e.isEnabled?{tag:e.name,isEnabled:!0}:{tag:e.name,isEnabled:!1,disabledReason:yn(e.disabledReason)}}))}},Cn=function(e){return{ownership:e.ownership,products:e.products.map((function(e){return e.isEnabled?{name:e.tag,isEnabled:!0}:{name:e.tag,isEnabled:!1,disabledReason:_n(e.disabledReason)}}))}},On={canView:!1,canEdit:!1,canDelete:!1},Sn={partnerId:"",accountId:void 0,access:{partnerStyle:On,benefitsOnboarding:On,webBenefits:On,benefitsPlan:On},error:void 0,openError:function(e){}},Rn=(0,t.kr)(Sn),Tn=function(){return Tn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Tn.apply(this,arguments)},jn=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},Pn=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},An=function(e,t){var n=(0,l.eJ)(!0),r=n[0],o=n[1],i=(0,l.qp)(Rn).openError,a=(0,l.eJ)(),s=a[0],c=a[1],u=(0,l.I4)((function(e){var t;throw i((null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)?e.response.data:"We have encountered an unexpected error. Please try again later."),"Unexpected API error. Error code: ".concat(e.code,"; Error message: ").concat(e.message)}),[i]),f=(0,l.I4)((function(){return jn(void 0,void 0,void 0,(function(){return Pn(this,(function(n){switch(n.label){case 0:return o(!0),[4,vn.getConfig(e,t).then(In).then(c).catch((function(){return i("Oops, there was an error. Please refresh this page")})).finally((function(){return o(!1)}))];case 1:return n.sent(),[2]}}))}))}),[e,t,i]),d=(0,l.I4)((function(t){return jn(void 0,void 0,void 0,(function(){return Pn(this,(function(n){switch(n.label){case 0:return[4,vn.upsertImplementationStyle(e,G[t]).then(f).catch(u)];case 1:return n.sent(),[2]}}))}))}),[e,f,u]),p=(0,l.I4)((function(n){return jn(void 0,void 0,void 0,(function(){return Pn(this,(function(r){switch(r.label){case 0:return[4,vn.upsertOffers(e,n.map(Dn),t).then(f).catch(u)];case 1:return r.sent(),[2]}}))}))}),[e,t,f,u]),h=(0,l.I4)((function(n){return jn(void 0,void 0,void 0,(function(){return Pn(this,(function(r){switch(r.label){case 0:return[4,vn.upsertInjectedStyle(e,n,t).then(f).catch(u)];case 1:return r.sent(),[2]}}))}))}),[e,t,f,u]),b=(0,l.I4)((function(n){return jn(void 0,void 0,void 0,(function(){return Pn(this,(function(r){switch(r.label){case 0:return[4,vn.upsertBenefitsAllowance(e,n,t).then(f).catch(u)];case 1:return r.sent(),[2]}}))}))}),[e,t,f,u]),m=(0,l.I4)((function(){return jn(void 0,void 0,void 0,(function(){return Pn(this,(function(n){switch(n.label){case 0:return[4,vn.deleteOffers(e,t).then(f).catch(u)];case 1:return n.sent(),[2]}}))}))}),[t,f,u,e]),g=(0,l.I4)((function(){return jn(void 0,void 0,void 0,(function(){return Pn(this,(function(n){switch(n.label){case 0:return[4,vn.deleteInjectedStyle(e,t).then(f).catch(u)];case 1:return n.sent(),[2]}}))}))}),[t,f,u,e]),w=(0,l.I4)((function(){return jn(void 0,void 0,void 0,(function(){return Pn(this,(function(n){switch(n.label){case 0:return[4,vn.deleteBenefitsAllowance(e,t).then(f).catch(u)];case 1:return n.sent(),[2]}}))}))}),[t,f,u,e]);return{isLoading:r,config:s,fetchConfig:f,upsertImplementationStyle:d,upsertOffers:p,deleteOffers:m,upsertInjectedStyle:h,deleteInjectedStyle:g,upsertBenefitsAllowance:b,deleteBenefitsAllowance:w}},Nn=function(e){return Tn(Tn({},e),{disabledReason:e.disabledReason?_n(e.disabledReason):$.Default})},Dn=function(e){return Tn(Tn({},e),{disabledReason:e.disabledReason?yn(e.disabledReason):mn.Default})},In=function(e){return{implementationStyle:{value:(t=e.implementationStyle.value,G[t]),ownership:K[e.implementationStyle.ownership]},injectedStyleEnablement:{value:e.injectedStyleEnablement.value,ownership:K[e.injectedStyleEnablement.ownership]},benefitsAllowanceEnablement:{value:e.benefitsAllowanceEnablement.value,ownership:K[e.benefitsAllowanceEnablement.ownership]},offerEnablements:{ownership:K[e.offerEnablements.ownership],value:e.offerEnablements.value.map(Nn)}};var t},Un=function(){return Un=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Un.apply(this,arguments)};const Bn=function(e){return o("svg",Un({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"lg"===e.size?"h-10 w-10":"h-5 w-5"},{children:[o("path",{d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM1.99743 8C1.99743 11.3151 4.68487 14.0026 8 14.0026C11.3151 14.0026 14.0026 11.3151 14.0026 8C14.0026 4.68487 11.3151 1.99743 8 1.99743C4.68487 1.99743 1.99743 4.68487 1.99743 8Z",class:"light"===e.theme?"fill-white":"fill-gray-200","fill-opacity":"light"===e.theme?"0.3":"1"}),o("path",{d:"M8 1C8 0.447715 8.44943 -0.00643769 8.99741 0.0624193C9.70527 0.151368 10.3996 0.334798 11.0615 0.608964C12.0321 1.011 12.914 1.60028 13.6569 2.34315C14.3997 3.08602 14.989 3.96793 15.391 4.93853C15.6652 5.60043 15.8486 6.29473 15.9376 7.0026C16.0064 7.55057 15.5523 8 15 8C14.4477 8 14.0085 7.54925 13.9169 7.00462C13.842 6.55939 13.7169 6.12298 13.5433 5.7039C13.2417 4.97595 12.7998 4.31451 12.2426 3.75736C11.6855 3.20021 11.0241 2.75825 10.2961 2.45672C9.87702 2.28313 9.44061 2.15804 8.99538 2.08314C8.45075 1.99152 8 1.55228 8 1Z",class:"light"===e.theme?"fill-white":"fill-teal-500"})]}))},Ln=u.forwardRef((function({title:e,titleId:t,...n},r){return u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"}))}));var Mn,Fn=n(608),zn=n.n(Fn),Hn=n(783),Yn=n.n(Hn),qn=function(){return qn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qn.apply(this,arguments)};!function(e){e[e.Pencil=0]="Pencil",e[e.Trash=1]="Trash",e[e.ExclamationTriangle=2]="ExclamationTriangle"}(Mn||(Mn={}));var Vn=function(e){switch(e.iconType){case Mn.Pencil:return o(zn(),qn({},e));case Mn.Trash:return o(Yn(),qn({},e));case Mn.ExclamationTriangle:return o(Ln,qn({},e))}},Jn=function(){return Jn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Jn.apply(this,arguments)},Wn=function(e){var t=(0,l.eJ)(!1),n=t[0],r=t[1],i=e.class,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["class"]);return o("div",Jn({class:"".concat(e.hidden?"hidden":"")},{children:o("button",Jn({type:"button"},a,{class:"".concat(i," disabled:bg-gray-300 disabled:cursor-not-allowed disabled:opacity-50"),onClick:e.onClickPromise?function(){return t=void 0,o=void 0,a=function(){return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,(function(t){switch(t.label){case 0:if(!e.onClickPromise||n)return[3,6];r(!0),t.label=1;case 1:return t.trys.push([1,4,,5]),e.onClickPromise?[4,e.onClickPromise()]:[3,3];case 2:t.sent(),t.label=3;case 3:return[3,5];case 4:return t.sent(),[3,5];case 5:r(!1),t.label=6;case 6:return[2]}}))},new((i=void 0)||(i=Promise))((function(e,n){function r(e){try{c(a.next(e))}catch(e){n(e)}}function s(e){try{c(a.throw(e))}catch(e){n(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(r,s)}c((a=a.apply(t,o||[])).next())}));var t,o,i,a}:e.onClick},{children:[o("div",Jn({class:"relative ".concat(n?"invisible":"")},{children:e.children})),n&&o("div",Jn({class:"absolute animate-spin"},{children:o(Bn,{theme:"light"})}))]}))}))},$n=function(e){return o(Wn,Jn({},e,{children:[null!=e.iconType&&o(Vn,{iconType:e.iconType,class:"h-5 w-5"}),e.children]}))};const Gn=Wn;var Kn=function(){return Kn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Kn.apply(this,arguments)},Xn="inline-flex justify-center rounded-md border border-transparent py-2 px-4 shadow-sm focus:outline-none focus:ring-indigo-500 focus:ring-2 focus:ring-offset-2 text-sm font-medium text-white";const Zn=function(e){var n=e.canEdit,r=e.onEdit,i=e.onSave,a=e.onCancel,s=e.canDelete,c=e.onDelete,u=e.isEditMode,f=(0,l.eJ)(null!=u&&u),d=f[0],p=f[1];return(0,l.d4)((function(){p(!!u)}),[u]),o("div",Kn({class:"flex flex-row space-x-2"},{children:[d&&o(t.HY,{children:[o(Gn,Kn({class:"".concat(Xn," bg-indigo-600 hover:bg-indigo-700"),onClickPromise:i},{children:"Save"})),o(Gn,Kn({className:"".concat(Xn," border-gray-300 bg-white text-gray-700 hover:bg-gray-50 focus:ring-gray-300"),onClick:function(){p(!1),a()}},{children:"Cancel"}))]}),!d&&o(t.HY,{children:[n&&o($n,{class:"".concat(Xn," bg-indigo-600 hover:bg-indigo-700"),iconType:Mn.Pencil,onClick:function(){p(!0),r()}}),s&&o($n,{class:"".concat(Xn," bg-red-600 hover:bg-red-700 focus:ring-red-600"),onClick:c,iconType:Mn.Trash})]})]}))};var Qn=function(){return Qn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Qn.apply(this,arguments)},er=function(e){var t,n,r=e.children,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children"]),a=u.default.Children.toArray(r).find((function(e){return e.type===tr}));return o("div",Qn({class:"relative z-10","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true"},{children:[o("div",{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"}),o("div",Qn({class:"fixed inset-0 z-10 overflow-y-auto"},{children:o("div",Qn({class:"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"},{children:o("div",Qn({class:"relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6"},{children:[o("div",Qn({class:"sm:flex sm:items-start"},{children:[o("div",Qn({class:"mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10"},{children:o(Vn,{iconType:Mn.ExclamationTriangle,className:"h-6 w-6 text-red-600"})})),o("div",Qn({class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},{children:[o("h3",Qn({class:"text-lg font-medium leading-6 text-gray-900",id:"modal-title"},{children:i.headingText})),o("div",Qn({class:"mt-2"},{children:[o("p",Qn({class:"text-sm text-gray-500"},{children:i.bodyTest})),a&&a]}))]}))]})),o("div",Qn({class:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"},{children:[o(Gn,Qn({class:"inline-flex w-full justify-center rounded-md border border-transparent bg-red-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm",disabled:i.confirm.disabled,onClickPromise:i.confirm.handler},{children:null!==(t=i.confirm.text)&&void 0!==t?t:"Confirm"})),o(Gn,Qn({class:"mt-3 inline-flex w-full justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-base font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 sm:mt-0 sm:w-auto sm:text-sm",disabled:i.cancel.disabled,onClick:i.cancel.handler},{children:null!==(n=i.cancel.text)&&void 0!==n?n:"Cancel"}))]}))]}))}))}))]}))},tr=function(e){var n=e.children;return o(t.HY,{children:n})};er.Content=tr;const nr=er;var rr,or=n(63),ir=n.n(or),ar=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},sr=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};!function(e){e[e.View=0]="View",e[e.Edit=1]="Edit"}(rr||(rr={}));var cr=function(e,t,n,r){var o=(0,l.qp)(Rn).accountId,i=(0,l.eJ)(t.value),a=i[0],s=i[1],c=(0,l.eJ)(rr.View),u=c[0],f=c[1],d=(0,l.eJ)(!1),p=d[0],h=d[1],b=(0,l.Ye)((function(){return u===rr.Edit?"(*)":t.ownership===K.Default?"(Default)":o&&t.ownership===K.Partner?"(Inherited)":""}),[o,t.ownership,u]),m=(0,l.Ye)((function(){return o?t.ownership===K.Account:t.ownership===K.Partner}),[o,t.ownership]),g=(0,l.Ye)((function(){return e.canEdit}),[e.canEdit]),w=(0,l.Ye)((function(){return e.canDelete&&m}),[e.canDelete,m]),v=(0,l.I4)((function(){return ar(void 0,void 0,void 0,(function(){return sr(this,(function(e){return f(rr.View),s(t.value),h(!1),[2]}))}))}),[t,s]),y=(0,l.I4)((function(e){s(e)}),[s]),_=(0,l.I4)((function(){return ar(void 0,void 0,void 0,(function(){return sr(this,(function(e){switch(e.label){case 0:return!m||m&&!ir()(t.value,a)?[4,n(a)]:[3,2];case 1:e.sent(),e.label=2;case 2:return f(rr.View),[2]}}))}))}),[t,m,n,a]),x=(0,l.I4)((function(){return ar(void 0,void 0,void 0,(function(){return sr(this,(function(e){switch(e.label){case 0:return f(rr.View),[4,null==r?void 0:r()];case 1:return e.sent(),[2]}}))}))}),[r]);return{titleSuffix:b,mode:u,confirmingDelete:p,canView:e.canView,canEdit:g,canDelete:w,config:a,handleEditButtonClick:function(){f(rr.Edit)},handleCancelButtonClick:v,handleDeleteButtonClick:function(){h(!0)},handleChange:y,handleSaveButtonClick:_,handleDeleteConfirmButtonClick:x}},lr=function(){return lr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},lr.apply(this,arguments)};const ur=function(e){var t=e.value,n=e.disabled,r=e.options,i=e.onChange;return o("select",lr({readOnly:n,disabled:n,autocomplete:"off",value:r.findIndex((function(e){return e.value===t})),className:"max-w-lg focus:ring-indigo-500 focus:border-indigo-500 w-full shadow-sm sm:max-w-xs border-gray-300 rounded-md",onChange:function(e){var t;i(null===(t=r.find((function(t,n){return n.toString()===e.currentTarget.value})))||void 0===t?void 0:t.value)}},{children:[r.map((function(e,t){return o("option",lr({value:t.toString()},{children:e.label}),e.label)})),";"]}))};var fr=function(){return fr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},fr.apply(this,arguments)};const dr=function(e){var n=(0,l.eJ)(e.open),r=n[0],i=n[1],a=(0,l.eJ)(!1),s=a[0],c=a[1];(0,l.d4)((function(){i(e.open)}),[e.open]);var u=(0,l.eJ)(""),f=u[0],d=u[1],p=(0,l.Ye)((function(){return!e.input.match(f)}),[f,e]);return r?o(nr,fr({headingText:e.header,confirm:{text:e.primaryButton.text,disabled:p,handler:function(){return t=void 0,n=void 0,o=function(){return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,(function(t){switch(t.label){case 0:return c(!0),[4,e.onStatusChange("confirmed").finally((function(){c(!1)}))];case 1:return t.sent(),i(!1),e.onChange(!1),[2]}}))},new((r=void 0)||(r=Promise))((function(e,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function s(e){try{c(o.throw(e))}catch(e){i(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,s)}c((o=o.apply(t,n||[])).next())}));var t,n,r,o}},cancel:{text:e.secondaryButton.text,disabled:s,handler:function(){e.onStatusChange("canceled"),i(!1),e.onChange(!1)}}},{children:o(nr.Content,{children:o("div",{children:[o(e.content,{}),o("label",fr({className:"text-sm font-semibold"},{children:e.input.label})),o("input",{type:"text",placeholder:e.input.placeholder,className:"max-w-lg focus:ring-indigo-500 focus:border-indigo-500 w-full shadow-sm sm:max-w-xs border-gray-300 rounded-md",onChange:function(e){d(e.currentTarget.value)}})]})})})):o(t.HY,{})};var pr=function(){return pr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},pr.apply(this,arguments)},hr=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},br=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},mr=Object.values(G).map((function(e){return{label:e,value:e}})),gr=(0,t.kr)({}),wr=function(e){var n,r=(0,l.qp)(Rn),i=r.partnerId,a=r.openError,s=r.access.partnerStyle,c=(0,l.qp)(gr),u=c.partnerStyle,f=c.update,d=cr(s,e.config,e.onUpsert),p=d.titleSuffix,h=d.mode,b=d.canEdit,m=d.config,g=d.handleEditButtonClick,w=d.handleCancelButtonClick,v=d.handleChange,y=d.handleSaveButtonClick;(0,l.d4)((function(){var t={mode:h,value:m,ownership:e.config.ownership};ir()(u,t)||f({partnerStyle:t})}),[m,h,u,e,f]);var _=(0,l.eJ)(),x=_[0],k=_[1],E=yr(e.config.value,m,null==x?void 0:x.partnerName,null==x?void 0:x.numberOfAccounts,y),C=(0,l.I4)((function(){return hr(void 0,void 0,void 0,(function(){var t,n;return br(this,(function(r){switch(r.label){case 0:return t=e.config.value,(n=t===m||t!==G.Injected||"confirmed"===E.statusRef.current)?[3,2]:[4,vn.getInjectedStyle(i).then((function(e){k(e),e.numberOfAccounts>0?E.setOpen(!0):n=!0})).catch((function(){a("Unexpected error. Please try again later.")}))];case 1:r.sent(),r.label=2;case 2:return n?[4,y()]:[3,4];case 3:r.sent(),r.label=4;case 4:return[2]}}))}))}),[m,E,a,i,e.config.value,y]);return o(t.HY,{children:[o("div",{children:[o("div",pr({class:"flex"},{children:[o("div",pr({class:"basis-1/2"},{children:o("h3",pr({class:"text-lg font-semibold text-gray-900"},{children:"Network Partner Implementation Style"}))})),o("div",pr({class:"basis-3/4"},{children:o(Zn,{canEdit:b,onEdit:g,onSave:C,onCancel:w,isEditMode:h==rr.Edit})}))]})),o("div",pr({class:"flex flex-col"},{children:[o("label",pr({className:"text-sm font-semibold"},{children:["Benefits in onboarding ",p]})),o(ur,{disabled:h===rr.View,value:m,options:mr,onChange:v})]}))]}),o(dr,{open:E.open,header:"Warning",content:E.content,input:{label:"Partner name",placeholder:null!==(n=null==x?void 0:x.partnerName)&&void 0!==n?n:"",match:E.inputMatch},primaryButton:{text:"Confirm"},secondaryButton:{text:"Cancel"},onStatusChange:E.onStatusChange,onChange:E.setOpen})]})},vr=function(e){var t=(0,l.qp)(Rn).access.benefitsOnboarding,n=(0,l.qp)(gr).partnerStyle,r=cr(t,e.config,e.onUpsert,e.onDelete),i=r.titleSuffix,a=r.mode,s=r.confirmingDelete,c=r.canEdit,u=r.canDelete,f=r.config,d=r.handleEditButtonClick,p=r.handleCancelButtonClick,h=r.handleDeleteButtonClick,b=r.handleChange,m=r.handleSaveButtonClick,g=r.handleDeleteConfirmButtonClick,w=(0,l.Ye)((function(){return(null==n?void 0:n.value)!==G.Injected}),[null==n?void 0:n.value]),v=(0,l.Ye)((function(){return c&&(null==n?void 0:n.ownership)===K.Partner&&(null==n?void 0:n.mode)===rr.View}),[c,null==n?void 0:n.mode,null==n?void 0:n.ownership]);return o("div",pr({className:w?"hidden":""},{children:[s&&o(nr,{bodyTest:"Are you sure you want to reset the current injected workflow settings? This action cannot be undone.",headingText:"Reset Injected Workflow Settings",cancel:{handler:p},confirm:{text:"Reset",handler:g}}),o("div",pr({class:"flex"},{children:[o("div",pr({class:"basis-1/2"},{children:o("h3",pr({class:"ml-[3rem] text-lg font-semibold text-gray-900"},{children:"Injected Workflow Settings ".concat(i)}))})),o("div",pr({class:"basis-3/4"},{children:o(Zn,{canEdit:v,onEdit:d,canDelete:u,onSave:m,onCancel:p,onDelete:h,isEditMode:a==rr.Edit})}))]})),o("div",pr({class:"flex flex-col"},{children:o(W,{className:"ml-[3rem] flex items-center h-[3rem]",label:"Benefits step in onboarding",disabled:a===rr.View,value:f.isEnabled,onChange:function(e){return b({isEnabled:e})}})}))]}))},yr=function(e,t,n,r,i){var a=(0,l.eJ)(!1),s=a[0],c=a[1],u=(0,l.sO)("idle"),f=(0,l.I4)((function(e){return hr(void 0,void 0,void 0,(function(){return br(this,(function(t){switch(t.label){case 0:return u.current=e,"confirmed"!==e?[3,2]:[4,i()];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))}),[i]);return{open:s,setOpen:c,statusRef:u,onStatusChange:f,content:function(){return o("div",pr({className:"my-5 flex flex-col gap-1 text-sm"},{children:[o("p",{children:["You are switching the partner implementation style from"," ",o("span",pr({className:"font-semibold"},{children:e}))," to"," ",o("span",pr({className:"font-semibold"},{children:t})),"."]}),o("p",{children:["This action will delete account override configurations for"," ",o("span",pr({className:"font-semibold"},{children:r}))," accounts."]}),r&&r>100&&o("p",{children:"This process could take a significant amount of time (> 1 min) please do not close the window."}),o("p",pr({className:"mt-5"},{children:["Confirm the partner name ",o("span",pr({className:"font-semibold"},{children:["(",n,")"]}))," to delete."]}))]}))},inputMatch:function(e){return e.length>0&&e.toLowerCase()===(null==n?void 0:n.toLowerCase())}}};const _r=function(){var e=(0,l.qp)(Rn),t=e.partnerId,n=e.accountId,r=(0,l.eJ)(),i=r[0],a=r[1],s=An(t,n),c=s.isLoading,u=s.config,f=s.fetchConfig,d=s.upsertImplementationStyle,p=s.upsertInjectedStyle,h=s.deleteInjectedStyle;return(0,l.d4)((function(){f()}),[f]),c?o("div",pr({class:"flex justify-center items-center min-h-[300px]"},{children:o("span",pr({class:"animate-spin"},{children:o(Bn,{size:"lg"})}))})):o(gr.Provider,pr({value:pr(pr({},i),{update:a})},{children:u&&o("div",pr({className:"flex flex-col gap-7"},{children:[o(wr,{config:u.implementationStyle,onUpsert:d}),o(vr,{config:u.injectedStyleEnablement,onUpsert:p,onDelete:h})]}))}))};var xr=function(){return xr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xr.apply(this,arguments)};const kr=function(e){var t=e.className,n=e.editable,r=e.item,i=e.onChange;return o("div",xr({class:"flex flex-row items-center justify-start space-x-10 ".concat(t)},{children:[o(W,{label:r.name,disabled:!n,value:r.isEnabled,onChange:function(e){return i(e?{isEnabled:!0}:{isEnabled:!1,disabledReason:$.Default})}}),!r.isEnabled&&o("div",xr({class:"flex flex-row items-center space-x-2 w-1/2 text-sm"},{children:[o("label",xr({for:"reason"},{children:"Reason"})),o("select",xr({readOnly:!n,disabled:!n,autocomplete:"off",value:r.disabledReason,class:"max-w-lg focus:ring-indigo-500 focus:border-indigo-500 w-full shadow-sm sm:max-w-xs border-gray-300 rounded-md",onChange:function(e){i({isEnabled:!1,disabledReason:e.currentTarget.value})}},{children:[Z.map((function(e){return o("option",{children:e.value},e.name)})),";"]}))]}))]}))};var Er=function(){return Er=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Er.apply(this,arguments)},Cr=function(e){return e.reduce((function(e,t){var n;return Er(Er({},e),((n={})[t.offerName]={isEnabled:t.isEnabled,disabledReason:t.disabledReason},n))}),{})};const Or=function(e){var t=(0,l.qp)(Rn).access.benefitsOnboarding,n=(0,l.I4)((function(t){return e.onUpsert(function(e){return Object.entries(e).map((function(e){var t=e[0],n=e[1];return{isEnabled:n.isEnabled,disabledReason:n.disabledReason,offerName:t}}))}(t))}),[e]),r=cr(t,{value:Cr(e.config.value),ownership:e.config.ownership},n,e.onDelete),i=r.titleSuffix,a=r.mode,s=r.confirmingDelete,c=r.canEdit,u=r.canDelete,f=r.config,d=r.handleEditButtonClick,p=r.handleCancelButtonClick,h=r.handleDeleteButtonClick,b=r.handleChange,m=r.handleSaveButtonClick,g=r.handleDeleteConfirmButtonClick;return o("div",{children:[s&&o(nr,{bodyTest:"Are you sure you want to reset the current benefits plan in onboarding settings? This action cannot be undone.",headingText:"Reset Benefits Plan in Onboarding Settings",cancel:{handler:p},confirm:{text:"Reset",handler:g}}),o("div",Er({class:"flex"},{children:[o("div",Er({class:"basis-1/2"},{children:o("h3",Er({class:"text-lg font-semibold text-gray-900"},{children:"Benefits Plan in Onboarding Settings ".concat(i)}))})),o("div",Er({class:"basis-3/4"},{children:o(Zn,{canEdit:c,onEdit:d,canDelete:u,onSave:m,onCancel:p,onDelete:h,isEditMode:a==rr.Edit})}))]})),o("div",Er({class:"flex flex-col"},{children:Object.entries(f).map((function(e){var t=e[0],n=e[1];return o(kr,{className:"flex items-center h-[3rem]",editable:a===rr.Edit,item:Er(Er({},n),{name:"".concat(t," Screen")}),onChange:function(e){var n;b(Er(Er({},f),((n={})[t]=e,n)))}},t)}))}))]})};var Sr=function(){return Sr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Sr.apply(this,arguments)};const Rr=function(e){var t=(0,l.qp)(Rn).access.benefitsOnboarding,n=cr(t,e.config,e.onUpsert,e.onDelete),r=n.titleSuffix,i=n.mode,a=n.confirmingDelete,s=n.canEdit,c=n.canDelete,u=n.config,f=n.handleEditButtonClick,d=n.handleCancelButtonClick,p=n.handleDeleteButtonClick,h=n.handleChange,b=n.handleSaveButtonClick,m=n.handleDeleteConfirmButtonClick;return o("div",{children:[a&&o(nr,{bodyTest:"Are you sure you want to reset the current benefits allowance in onboarding settings? This action cannot be undone.",headingText:"Reset Benefits Allowance in Onboarding Settings",cancel:{handler:d},confirm:{text:"Reset",handler:m}}),o("div",Sr({class:"flex"},{children:[o("div",Sr({class:"basis-1/2"},{children:o("h3",Sr({class:"text-lg font-semibold text-gray-900"},{children:"Benefits Allowance in Onboarding Settings ".concat(r)}))})),o("div",Sr({class:"basis-3/4"},{children:o(Zn,{canEdit:s,onEdit:f,canDelete:c,onSave:b,onCancel:d,onDelete:p,isEditMode:i==rr.Edit})}))]})),o("div",Sr({class:"flex flex-col"},{children:o(kr,{className:"mt-[2rem]",editable:i===rr.Edit,item:Sr(Sr({},u),{name:"Benefits Allowance"}),onChange:h})}))]})};var Tr=function(){return Tr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Tr.apply(this,arguments)};const jr=function(){var e=(0,l.qp)(Rn),n=e.partnerId,r=e.accountId,i=An(n,r),a=i.isLoading,s=i.config,c=i.fetchConfig,u=i.upsertOffers,f=i.deleteOffers,d=i.upsertBenefitsAllowance,p=i.deleteBenefitsAllowance;return(0,l.d4)((function(){c()}),[c]),a?o("div",Tr({class:"flex justify-center items-center min-h-[300px]"},{children:o("span",Tr({class:"animate-spin"},{children:o(Bn,{size:"lg"})}))})):o(t.HY,{children:s&&o(t.HY,{children:[o("div",Tr({className:"flex flex-col gap-7"},{children:o(Or,{config:s.offerEnablements,onUpsert:u,onDelete:f})})),o("hr",{className:"my-10"}),o("div",Tr({className:"flex flex-col gap-7"},{children:o(Rr,{config:s.benefitsAllowanceEnablement,onUpsert:d,onDelete:p})}))]})})};var Pr,Ar=function(){return Ar=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ar.apply(this,arguments)},Nr=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},Dr=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},Ir=function(){if(Pr)return Pr;throw"Axios client has not been initialized yet."},Ur=function(e,t){return Nr(void 0,void 0,void 0,(function(){var n;return Dr(this,(function(r){switch(r.label){case 0:return n="/config?partnerId=".concat(e),t&&(n+="&accountId=".concat(t)),[4,Ir().get(n)];case 1:return[2,r.sent().data]}}))}))},Br=function(e,t,n){return Nr(void 0,void 0,void 0,(function(){return Dr(this,(function(r){switch(r.label){case 0:return[4,Ir().put("config",Ar(Ar({},t),{partnerId:e,accountId:n||""}))];case 1:return r.sent(),[2]}}))}))},Lr=function(e,t){return Nr(void 0,void 0,void 0,(function(){var n;return Dr(this,(function(r){switch(r.label){case 0:return n="/config?partnerId=".concat(e),t&&(n+="&accountId=".concat(t)),[4,Ir().delete(n)];case 1:return r.sent(),[2]}}))}))},Mr=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},Fr=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},zr=function(){return zr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},zr.apply(this,arguments)},Hr=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},Yr=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};const qr=function(e){var n=e.partnerId,r=e.accountId,i=(0,l.eJ)(!1),a=i[0],s=i[1],c=(0,l.eJ)(!1),u=c[0],f=c[1],d=(0,l.qp)(Rn).access.webBenefits,p=function(e,t){var n=(0,l.eJ)(!0),r=n[0],o=n[1],i=(0,l.eJ)(""),a=i[0],s=i[1],c=(0,l.eJ)(Q),u=c[0],f=c[1],d=(0,l.I4)((function(){return Mr(void 0,void 0,void 0,(function(){return Fr(this,(function(n){switch(n.label){case 0:return o(!0),s(""),[4,Ur(e,t).then(kn).then(f).catch((function(){return s("Oops, there was an error. Please refresh this page")})).finally((function(){return o(!1)}))];case 1:return n.sent(),[2]}}))}))}),[e,t]),p=(0,l.I4)((function(n){return Mr(void 0,void 0,void 0,(function(){return Fr(this,(function(r){switch(r.label){case 0:return s(""),[4,Br(e,xn(n),t).then(d).catch((function(){return s("Unable to save config")}))];case 1:return r.sent(),[2]}}))}))}),[e,t,d]),h=(0,l.I4)((function(){return Mr(void 0,void 0,void 0,(function(){return Fr(this,(function(n){switch(n.label){case 0:return s(""),[4,Lr(e,t).then(d).catch((function(){return s("Unable to delete config")}))];case 1:return n.sent(),[2]}}))}))}),[t,d,e]);return{isLoading:r,error:a,config:u,fetchConfig:d,updateConfig:p,deleteConfig:h}}(n,r),h=p.isLoading,b=p.error,m=p.config,g=p.fetchConfig,w=p.updateConfig,v=p.deleteConfig,y=(0,l.eJ)(m),_=y[0],x=y[1];(0,l.d4)((function(){x(m)}),[m]);var k=(0,l.I4)((function(){return Hr(void 0,void 0,void 0,(function(){return Yr(this,(function(e){switch(e.label){case 0:return[4,w(_)];case 1:return e.sent(),s(!1),[2]}}))}))}),[_,w]),E=(0,l.I4)((function(){s(!1),x(m)}),[m]),C=(0,l.I4)((function(){return Hr(void 0,void 0,void 0,(function(){return Yr(this,(function(e){switch(e.label){case 0:return[4,v()];case 1:return e.sent(),f(!1),[2]}}))}))}),[v]);return(0,l.d4)((function(){g()}),[g]),h?o("div",zr({class:"flex justify-center items-center min-h-[300px]"},{children:o("span",zr({class:"animate-spin"},{children:o(Bn,{size:"lg"})}))})):b?o("h1",zr({class:"text-red-500"},{children:b})):o(t.HY,{children:[u&&o(nr,{bodyTest:"Are you sure you want to reset the current benefits configuration? This action cannot be undone.",headingText:"Reset Benefits Configuration",cancel:{handler:function(){return f(!1)}},confirm:{text:"Reset",handler:C}}),o("div",zr({class:"flex"},{children:[o("div",zr({class:"basis-1/2"},{children:o("h3",zr({class:"text-lg font-semibold text-gray-900"},{children:"Flare Benefits Settings".concat(a?" (*)":"Specific"==m.ownership?"":" (".concat(m.ownership,")"))}))})),o("div",zr({class:"basis-3/4"},{children:o(Zn,{canEdit:d.canEdit,onEdit:function(){return s(!0)},canDelete:d.canDelete&&"Specific"===m.ownership,onSave:k,onCancel:E,onDelete:function(){return f(!0)}})}))]})),o("div",{children:[o(kr,{className:"h-[3rem]",editable:a,item:zr(zr({},_.wellbeing),{name:"Wellbeing Hub"}),onChange:function(e){return x(zr(zr({},_),{wellbeing:e}))}}),o(kr,{className:"h-[3rem]",editable:a,item:zr(zr({},_.flareApp),{name:"Flare App"}),onChange:function(e){return x(zr(zr({},_),{flareApp:e}))}}),o(kr,{className:"h-[3rem]",editable:a,item:zr(zr({},_.allowance),{name:"Allowance"}),onChange:function(e){return x(zr(zr({},_),{allowance:e}))}})]})]})};var Vr,Jr=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},Wr=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},$r=function(){if(Vr)return Vr;throw"Axios client has not been initialized yet."},Gr=function(e,t){return Jr(void 0,void 0,void 0,(function(){var n;return Wr(this,(function(r){switch(r.label){case 0:return n="/partners/".concat(e,"/config"),t&&(n="/partners/".concat(e,"/accounts/").concat(t,"/config")),[4,$r().get(n)];case 1:return[2,r.sent().data]}}))}))},Kr=function(e,t,n){return Jr(void 0,void 0,void 0,(function(){var r;return Wr(this,(function(o){switch(o.label){case 0:return r="/partners/".concat(e,"/config"),n&&(r="/partners/".concat(e,"/accounts/").concat(n,"/config")),[4,$r().put(r,t)];case 1:return o.sent(),[2]}}))}))},Xr=function(e,t){return Jr(void 0,void 0,void 0,(function(){var n;return Wr(this,(function(r){switch(r.label){case 0:return n="/partners/".concat(e,"/config"),t&&(n="/partners/".concat(e,"/accounts/").concat(t,"/config")),[4,$r().delete(n)];case 1:return r.sent(),[2]}}))}))},Zr=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},Qr=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},eo=function(){return eo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},eo.apply(this,arguments)},to=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},no=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};const ro=function(e){var n=e.partnerId,r=e.accountId,i=(0,l.eJ)(!1),a=i[0],s=i[1],c=(0,l.eJ)(!1),u=c[0],f=c[1],d=(0,l.qp)(Rn).access.benefitsPlan,p=function(e,t){var n=(0,l.eJ)(!0),r=n[0],o=n[1],i=(0,l.eJ)(""),a=i[0],s=i[1],c=(0,l.eJ)(ee),u=c[0],f=c[1],d=(0,l.I4)((function(){return Zr(void 0,void 0,void 0,(function(){return Qr(this,(function(n){switch(n.label){case 0:return o(!0),s(""),[4,Gr(e,t).then(Cn).then(f).catch((function(){return s("Oops, there was an error. Please refresh this page")})).finally((function(){return o(!1)}))];case 1:return n.sent(),[2]}}))}))}),[e,t]),p=(0,l.I4)((function(n){return Zr(void 0,void 0,void 0,(function(){return Qr(this,(function(r){switch(r.label){case 0:return s(""),[4,Kr(e,En(n),t).then(d).catch((function(){return s("Unable to save config")}))];case 1:return r.sent(),[2]}}))}))}),[e,t,d]),h=(0,l.I4)((function(){return Zr(void 0,void 0,void 0,(function(){return Qr(this,(function(n){switch(n.label){case 0:return s(""),[4,Xr(e,t).then(d).catch((function(){return s("Unable to delete config")}))];case 1:return n.sent(),[2]}}))}))}),[t,d,e]);return{isLoading:r,error:a,config:u,fetchConfig:d,updateConfig:p,deleteConfig:h}}(n,r),h=p.isLoading,b=p.error,m=p.config,g=p.fetchConfig,w=p.updateConfig,v=p.deleteConfig,y=(0,l.eJ)(m),_=y[0],x=y[1];(0,l.d4)((function(){g()}),[g]),(0,l.d4)((function(){x(m)}),[m]);var k=(0,l.I4)((function(){return to(void 0,void 0,void 0,(function(){return no(this,(function(e){switch(e.label){case 0:return[4,w(_)];case 1:return e.sent(),s(!1),[2]}}))}))}),[_,w]),E=(0,l.I4)((function(){s(!1),x(m)}),[m]),C=(0,l.I4)((function(){return to(void 0,void 0,void 0,(function(){return no(this,(function(e){switch(e.label){case 0:return[4,v()];case 1:return e.sent(),f(!1),[2]}}))}))}),[v]),O=(0,l.I4)((function(e){if(e.isEnabled){var t=function(e,t){var n=e.products.map((function(e){return e.name===t?{name:t,isEnabled:!0}:e}));return X(X({},e),{products:n})}(_,e.name);x(t)}else t=function(e,t,n){var r=e.products.map((function(e){return e.name===t?{name:t,isEnabled:!1,disabledReason:n}:e}));return X(X({},e),{products:r})}(_,e.name,e.disabledReason),x(t)}),[_]);return h?o("div",eo({class:"flex justify-center items-center min-h-[300px]"},{children:o("span",eo({class:"animate-spin"},{children:o(Bn,{size:"lg"})}))})):b?o("h1",eo({class:"text-red-500"},{children:b})):o(t.HY,{children:[u&&o(nr,{bodyTest:"Are you sure you want to reset the current benefits plan configuration? This action cannot be undone.",headingText:"Reset Benefits Plan Configuration",cancel:{handler:function(){return f(!1)}},confirm:{text:"Reset",handler:C}}),o("div",eo({class:"flex"},{children:[o("div",eo({class:"basis-1/2"},{children:o("h3",eo({class:"text-lg font-semibold text-gray-900"},{children:"Benefits Plan Settings".concat(a?" (*)":"Specific"==m.ownership?"":" (".concat(m.ownership,")"))}))})),o("div",eo({class:"basis-3/4"},{children:o(Zn,{canEdit:d.canEdit,onEdit:function(){return s(!0)},canDelete:d.canDelete&&"Specific"==m.ownership,onSave:k,onCancel:E,onDelete:function(){return f(!0)}})}))]})),o("div",eo({class:"flex flex-col"},{children:_.products.map((function(e){return o(kr,{className:"flex items-center h-[3rem] ml-[3.5rem]",editable:a,item:eo(eo({},e),{name:(t=e.name,t.replace(/([a-z])([A-Z])/g,"$1 $2"))}),onChange:function(t){return O(eo(eo({},t),{name:e.name}))}},e.name);var t}))}))]})};var oo=function(){return oo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oo.apply(this,arguments)};const io=function(e){var t=e.tabTitles,n=e.currentTab,r=e.onChange,i=(0,l.eJ)(n),a=i[0],s=i[1],c=(0,l.I4)((function(e){s(e),r(e)}),[r]);return o("div",oo({class:"border-b border-gray-200"},{children:o("nav",oo({"aria-label":"Tabs",class:"-mb-px flex space-x-8"},{children:t.map((function(e){return o("a",oo({class:"cursor-pointer border-transparent text-gray-500 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm ".concat(a===e?"border-b-2 border-indigo-500 text-indigo-600":"hover:text-gray-700 hover:border-gray-300 "),onClick:function(){return c(e)}},{children:e}),e)}))}))}))};var ao=function(){return ao=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ao.apply(this,arguments)};const so=function(e){var t=e.visible,n=e.children,r=(0,l.sO)(t);return t&&!r.current&&(r.current=!0),r.current?o("div",ao({hidden:!t},{children:n})):null};function co(e){this.message=e}co.prototype=new Error,co.prototype.name="InvalidCharacterError";var lo="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new co("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,o=0,i=0,a="";r=t.charAt(i++);~r&&(n=o%4?64*n+r:r,o++%4)?a+=String.fromCharCode(255&n>>(-2*o&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function uo(e){this.message=e}uo.prototype=new Error,uo.prototype.name="InvalidTokenError";var fo=function(){function e(e){this.roles=e}return e.create=function(t){if("string"==typeof t)return new e(function(e,t){if("string"!=typeof e)throw new uo("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(lo(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return lo(t)}}(e.split(".")[n]))}catch(e){throw new uo("Invalid token specified: "+e.message)}}(t).roles||[]);throw new Error("Failed to identify the user")},e.prototype.hasRole=function(e){return this.roles.includes(e)},e}(),po=function(){return po=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},po.apply(this,arguments)},ho=function(e,t,n){var r=fo.create(e),o=r.hasRole(t),i={canEdit:o,canView:o||r.hasRole(n),canDelete:o};return{user:r,access:i}},bo=function(){return bo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bo.apply(this,arguments)};const mo=function(e){var n=(0,l.eJ)(e.open),r=n[0],i=n[1];return(0,l.d4)((function(){i(e.open)}),[e.open]),r?o("div",bo({class:"relative z-10","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true"},{children:[o("div",{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"}),o("div",bo({class:"fixed inset-0 z-10 overflow-y-auto"},{children:o("div",bo({class:"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"},{children:o("div",bo({class:"relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6"},{children:[o("div",bo({class:"sm:flex sm:items-start"},{children:[o("div",bo({class:"mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10"},{children:o(Vn,{iconType:Mn.ExclamationTriangle,className:"h-6 w-6 text-red-600"})})),o("div",bo({class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},{children:[o("h3",bo({class:"text-lg font-medium leading-6 text-red-500",id:"modal-title"},{children:"Error"})),o("div",bo({class:"mt-2"},{children:o("p",bo({class:"text-sm"},{children:e.error}))}))]}))]})),o("button",bo({type:"button",onClick:function(){var t;i(!1),null===(t=e.onChange)||void 0===t||t.call(e,!1)},class:"absolute top-0 right-0 bg-white rounded-full p-2 inline-flex items-center justify-center text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500"},{children:[o("span",bo({class:"sr-only"},{children:"Close"})),o("svg",bo({class:"h-6 w-6",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},{children:o("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})}))]}))]}))}))}))]})):o(t.HY,{})};var go,wo=function(){return wo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wo.apply(this,arguments)};!function(e){e.Style="Style",e.BenefitsOnboarding="Benefits Onboarding",e.WebBenefits="Web Benefits",e.BenefitsPlan="Benefits Plan"}(go||(go={}));const vo=s((function(e){var t=e.backendUrl,n=e.accessToken,r=e.partnerId,i=e.accountId,a=function(e,t){var n=ho(e,"BenefitsOnboarding.EditConfig","BenefitsOnboarding.Access"),r=n.user,o=n.access,i=ho(e,"BenefitsOnboarding.EditPartnerStyle","BenefitsOnboarding.Access").access,a=ho(e,"BenefitsPlan.EditConfig","BenefitsPlan.Access").access;return{user:r,access:{partnerStyle:po(po({},i),{canEdit:i.canEdit&&!t}),benefitsOnboarding:o,webBenefits:o,benefitsPlan:a}}}(n,i).access,s=(0,l.eJ)(go.Style),c=s[0],u=s[1],f=(0,l.eJ)(),d=f[0],p=f[1],h=(0,l.I4)((function(e){return p(e)}),[]),b=(0,l.I4)((function(e){e||p(void 0)}),[]),m=(0,l.I4)((function(e){return e===c}),[c]);return function(e,t){!function(e,t){Pr=bn.create({baseURL:"".concat(e,"/_admin/v2.0"),headers:{Authorization:"Bearer ".concat(t)},allowAbsoluteUrls:!1})}("".concat(e,"/benefits"),t),vn.initClient("".concat(e,"/benefits-onboarding"),t),function(e,t){Vr=bn.create({baseURL:"".concat(e,"/_admin/v1.0/configuration"),headers:{Authorization:"Bearer ".concat(t)},allowAbsoluteUrls:!1})}("".concat(e,"/benefits-plan"),t)}(t,n),o(Rn.Provider,wo({value:{partnerId:r,accountId:i,access:a,error:d,openError:h}},{children:[o(io,{tabTitles:Object.entries(go).map((function(e){return e[1]})),currentTab:c,onChange:u}),o("div",wo({class:"mt-5"},{children:[a.partnerStyle.canView&&o(so,wo({visible:m(go.Style)},{children:o(_r,{})})),a.benefitsOnboarding.canView&&o(so,wo({visible:m(go.BenefitsOnboarding)},{children:o(jr,{})})),a.webBenefits.canView&&o(so,wo({visible:m(go.WebBenefits)},{children:o(qr,{accessToken:n,partnerId:r,accountId:i})})),a.benefitsPlan.canView&&o(so,wo({visible:m(go.BenefitsPlan)},{children:o(ro,{accessToken:n,partnerId:r,accountId:i})}))]})),o(mo,{open:!!d,error:null!=d?d:"",onChange:b})]}))}));function yo(){return(yo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _o(e){this.getChildContext=function(){return e.context};var n=e.children,r=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,["context","children"]);return(0,t.Tm)(n,r)}function xo(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=(0,t.h)(_o,yo({},this._props,{context:e.detail.context}),function e(n,r){if(3===n.nodeType)return n.data;if(1!==n.nodeType)return null;var o=[],i={},a=0,s=n.attributes,c=n.childNodes;for(a=s.length;a--;)"slot"!==s[a].name&&(i[s[a].name]=s[a].value,i[ko(s[a].name)]=s[a].value);for(a=c.length;a--;){var l=e(c[a],null),u=c[a].slot;u?i[u]=(0,t.h)(Oo,{name:u},l):o[a]=l}var f=r?(0,t.h)(Oo,null,o):o;return(0,t.h)(r||n.nodeName.toLowerCase(),i,f)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?t.ZB:t.sY)(this._vdom,this._root)}function ko(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function Eo(e,n,r){if(this._vdom){var o={};o[e]=r=null==r?void 0:r,o[ko(e)]=r,this._vdom=(0,t.Tm)(this._vdom,o),(0,t.sY)(this._vdom,this._root)}}function Co(){(0,t.sY)(this._vdom=null,this._root)}function Oo(e,n){var r=this;return(0,t.h)("slot",yo({},e,{ref:function(e){e?(r.ref=e,r._listener||(r._listener=function(e){e.stopPropagation(),e.detail.context=n},e.addEventListener("_preact",r._listener))):r.ref.removeEventListener("_preact",r._listener)}}))}function So(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:"open"}):t,t}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=xo,o.prototype.attributeChangedCallback=Eo,o.prototype.disconnectedCallback=Co,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(t||e.tagName||e.displayName||e.name,o)}So(c,"superhero-benefits-onboarding",[],{shadow:!0}),So(vo,"superhero-benefits-onboarding-configuration",[],{shadow:!0})})()})();
|
|
1
|
+
(()=>{var e={17:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!==o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},144:(e,t,n)=>{const r=n(402),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"}))});e.exports=o},172:(e,t,n)=>{"use strict";n.d(t,{FK:()=>m,Ob:()=>I,Qv:()=>L,XX:()=>B,_3:()=>g,fF:()=>o,h:()=>h,n:()=>h,q6:()=>M,uA:()=>v,v2:()=>O});var r,o,i,a,s,c,l={},u=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(e,t){for(var n in t)e[n]=t[n];return e}function p(e){var t=e.parentNode;t&&t.removeChild(e)}function h(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 b(e,s,o,i,null)}function b(e,t,n,r,a){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++i:a};return null==a&&null!=o.vnode&&o.vnode(s),s}function g(){return{current:null}}function m(e){return e.children}function v(e,t){this.props=e,this.context=t}function w(e,t){if(null==t)return e.__?w(e.__,e.__.__k.indexOf(e)+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?w(e):null}function y(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 y(e)}}function _(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!x.__r++||s!==o.debounceRendering)&&((s=o.debounceRendering)||setTimeout)(x)}function x(){for(var e;x.__r=a.length;)e=a.sort(function(e,t){return e.__v.__b-t.__v.__b}),a=[],e.some(function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=d({},o)).__v=o.__v+1,P(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?w(o):i,o.__h),A(n,o),o.__e!=i&&y(o)))})}function E(e,t,n,r,o,i,a,s,c,f){var d,p,h,g,v,y,_,x=r&&r.__k||u,E=x.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(g=n.__k[d]=null==(g=t[d])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?b(null,g,null,null,g):Array.isArray(g)?b(m,{children:g},null,null,null):g.__b>0?b(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(h=x[d])||h&&g.key==h.key&&g.type===h.type)x[d]=void 0;else for(p=0;p<E;p++){if((h=x[p])&&g.key==h.key&&g.type===h.type){x[p]=void 0;break}h=null}P(e,g,h=h||l,o,i,a,s,c,f),v=g.__e,(p=g.ref)&&h.ref!=p&&(_||(_=[]),h.ref&&_.push(h.ref,null,g),_.push(p,g.__c||v,g)),null!=v?(null==y&&(y=v),"function"==typeof g.type&&g.__k===h.__k?g.__d=c=k(g,c,e):c=C(e,g,h,x,v,c),"function"==typeof n.type&&(n.__d=c)):c&&h.__e==c&&c.parentNode!=e&&(c=w(h))}for(n.__e=y,d=E;d--;)null!=x[d]&&("function"==typeof n.type&&null!=x[d].__e&&x[d].__e==n.__d&&(n.__d=w(r,d+1)),F(x[d],x[d]));if(_)for(d=0;d<_.length;d++)D(_[d],_[++d],_[++d])}function k(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?k(r,t,n):C(n,r,r,o,r.__e,t));return t}function O(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some(function(e){O(e,t)}):t.push(e)),t}function C(e,t,n,r,o,i){var a,s,c;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(s=i,c=0;(s=s.nextSibling)&&c<r.length;c+=2)if(s==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function S(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||f.test(t)?n:n+"px"}function R(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||S(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||S(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?j:T,i):e.removeEventListener(t,i?j:T,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function T(e){this.l[e.type+!1](o.event?o.event(e):e)}function j(e){this.l[e.type+!0](o.event?o.event(e):e)}function P(e,t,n,r,i,a,s,c,l){var u,f,p,h,b,g,w,y,_,x,k,O,C,S=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,c=t.__e=n.__e,t.__h=null,a=[c]),(u=o.__b)&&u(t);try{e:if("function"==typeof S){if(y=t.props,_=(u=S.contextType)&&r[u.__c],x=u?_?_.props.value:u.__:r,n.__c?w=(f=t.__c=n.__c).__=f.__E:("prototype"in S&&S.prototype.render?t.__c=f=new S(y,x):(t.__c=f=new v(y,x),f.constructor=S,f.render=U),_&&_.sub(f),f.props=y,f.state||(f.state={}),f.context=x,f.__n=r,p=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=S.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=d({},f.__s)),d(f.__s,S.getDerivedStateFromProps(y,f.__s))),h=f.props,b=f.state,p)null==S.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==S.getDerivedStateFromProps&&y!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(y,x),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(y,f.__s,x)||t.__v===n.__v){f.props=y,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),f.__h.length&&s.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(y,f.__s,x),null!=f.componentDidUpdate&&f.__h.push(function(){f.componentDidUpdate(h,b,g)})}if(f.context=x,f.props=y,f.__v=t,f.__P=e,k=o.__r,O=0,"prototype"in S&&S.prototype.render)f.state=f.__s,f.__d=!1,k&&k(t),u=f.render(f.props,f.state,f.context);else do{f.__d=!1,k&&k(t),u=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++O<25);f.state=f.__s,null!=f.getChildContext&&(r=d(d({},r),f.getChildContext())),p||null==f.getSnapshotBeforeUpdate||(g=f.getSnapshotBeforeUpdate(h,b)),C=null!=u&&u.type===m&&null==u.key?u.props.children:u,E(e,Array.isArray(C)?C:[C],t,n,r,i,a,s,c,l),f.base=t.__e,t.__h=null,f.__h.length&&s.push(f),w&&(f.__E=f.__=null),f.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=N(n.__e,t,n,r,i,a,s,l);(u=o.diffed)&&u(t)}catch(e){t.__v=null,(l||null!=a)&&(t.__e=c,t.__h=!!l,a[a.indexOf(c)]=null),o.__e(e,t,n)}}function A(e,t){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 N(e,t,n,o,i,a,s,c){var u,f,d,h=n.props,b=t.props,g=t.type,m=0;if("svg"===g&&(i=!0),null!=a)for(;m<a.length;m++)if((u=a[m])&&"setAttribute"in u==!!g&&(g?u.localName===g:3===u.nodeType)){e=u,a[m]=null;break}if(null==e){if(null===g)return document.createTextNode(b);e=i?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,b.is&&b),a=null,c=!1}if(null===g)h===b||c&&e.data===b||(e.data=b);else{if(a=a&&r.call(e.childNodes),f=(h=n.props||l).dangerouslySetInnerHTML,d=b.dangerouslySetInnerHTML,!c){if(null!=a)for(h={},m=0;m<e.attributes.length;m++)h[e.attributes[m].name]=e.attributes[m].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||R(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||R(e,i,t[i],n[i],r)}(e,b,h,i,c),d)t.__k=[];else if(m=t.props.children,E(e,Array.isArray(m)?m:[m],t,n,o,i&&"foreignObject"!==g,a,s,a?a[0]:n.__k&&w(n,0),c),null!=a)for(m=a.length;m--;)null!=a[m]&&p(a[m]);c||("value"in b&&void 0!==(m=b.value)&&(m!==e.value||"progress"===g&&!m||"option"===g&&m!==h.value)&&R(e,"value",m,h.value,!1),"checked"in b&&void 0!==(m=b.checked)&&m!==e.checked&&R(e,"checked",m,h.checked,!1))}return e}function D(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){o.__e(e,n)}}function F(e,t,n){var r,i;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||D(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]&&F(r[i],t,"function"!=typeof e.type);n||null==e.__e||p(e.__e),e.__e=e.__d=void 0}function U(e,t,n){return this.constructor(e,n)}function B(e,t,n){var i,a,s;o.__&&o.__(e,t),a=(i="function"==typeof n)?null:n&&n.__k||t.__k,s=[],P(t,e=(!i&&n||t).__k=h(m,null,[e]),a||l,l,void 0!==t.ownerSVGElement,!i&&n?[n]:a?null:t.firstChild?r.call(t.childNodes):null,s,!i&&n?n:a?a.__e:t.firstChild,i),A(s,e)}function L(e,t){B(e,t,L)}function I(e,t,n){var o,i,a,s=d({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:s[a]=t[a];return arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),b(e.type,s,o||e.key,i||e.ref,null)}function M(e,t){var n={__c:t="__cC"+c++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(_)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=u.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,v.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof e&&(e=e(d({},n),this.props)),e&&d(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),_(this))},v.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),_(this))},v.prototype.render=m,a=[],x.__r=0,c=0},266:e=>{"use strict";e.exports="data:image/svg+xml;charset=utf-8,%3Csvg viewBox=%270 0 16 16%27 fill=%27%23fff%27 xmlns=%27http://www.w3.org/2000/svg%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 0z%27/%3E%3C/svg%3E"},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 l=0;l<e.length;l++){var u=[].concat(e[l]);r&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},354: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"},402:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Children:()=>p,Component:()=>o.uA,Fragment:()=>o.FK,PureComponent:()=>s,StrictMode:()=>K,Suspense:()=>g,SuspenseList:()=>w,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>L,cloneElement:()=>H,createContext:()=>o.q6,createElement:()=>o.n,createFactory:()=>M,createPortal:()=>E,createRef:()=>o._3,default:()=>Q,findDOMNode:()=>V,flushSync:()=>q,forwardRef:()=>f,hydrate:()=>T,isValidElement:()=>z,lazy:()=>v,memo:()=>c,render:()=>R,startTransition:()=>$,unmountComponentAtNode:()=>J,unstable_batchedUpdates:()=>W,useCallback:()=>r.hb,useContext:()=>r.NT,useDebugValue:()=>r.MN,useDeferredValue:()=>X,useEffect:()=>r.vJ,useErrorBoundary:()=>r.Md,useImperativeHandle:()=>r.Yn,useInsertionEffect:()=>Y,useLayoutEffect:()=>r.Nf,useMemo:()=>r.Kr,useReducer:()=>r.WO,useRef:()=>r.li,useState:()=>r.J0,useSyncExternalStore:()=>Z,useTransition:()=>G,version:()=>I});var r=n(994),o=n(172);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){this.props=e}function c(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 r(t){return this.shouldComponentUpdate=n,(0,o.n)(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(s.prototype=new o.uA).isPureReactComponent=!0,s.prototype.shouldComponentUpdate=function(e,t){return a(this.props,e)||a(this.state,t)};var l=o.fF.__b;o.fF.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),l&&l(e)};var u="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function f(e){function t(t){var n=i({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=u,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var d=function(e,t){return null==e?null:(0,o.v2)((0,o.v2)(e).map(t))},p={map:d,forEach:d,count:function(e){return e?(0,o.v2)(e).length:0},only:function(e){var t=(0,o.v2)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:o.v2},h=o.fF.__e;o.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);h(e,t,n,r)};var b=o.fF.unmount;function g(){this.__u=0,this.t=null,this.__b=null}function m(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function v(e){var t,n,r;function i(i){if(t||(t=e()).then(function(e){n=e.default||e},function(e){r=e}),r)throw r;if(!n)throw t;return(0,o.n)(n,i)}return i.displayName="Lazy",i.__f=!0,i}function w(){this.u=null,this.o=null}o.fF.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),b&&b(e)},(g.prototype=new o.uA).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=m(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]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return e(t,n,r)}),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},g.prototype.componentWillUnmount=function(){this.t=[]},g.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),t.__c.__H=null),null!=(t=i({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return e(t,n,r)})),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var a=t.__a&&(0,o.n)(o.FK,null,e.fallback);return a&&(a.__h=null),[(0,o.n)(o.FK,null,t.__a?null:e.children),a]};var y=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function _(e){return this.getChildContext=function(){return e.context},e.children}function x(e){var t=this,n=e.i;t.componentWillUnmount=function(){(0,o.XX)(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),(0,o.XX)((0,o.n)(_,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function E(e,t){var n=(0,o.n)(x,{__v:e,i:t});return n.containerInfo=t,n}(w.prototype=new o.uA).__a=function(e){var t=this,n=m(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),y(t,e,r)):o()};n?n(i):i()}},w.prototype.render=function(e){this.u=null,this.o=new Map;var t=(0,o.v2)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},w.prototype.componentDidUpdate=w.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){y(e,n,t)})};var k="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,O=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|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]/,C="undefined"!=typeof document,S=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};function R(e,t,n){return null==t.__k&&(t.textContent=""),(0,o.XX)(e,t),"function"==typeof n&&n(),e?e.__c:null}function T(e,t,n){return(0,o.Qv)(e,t),"function"==typeof n&&n(),e?e.__c:null}o.uA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(o.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 j=o.fF.event;function P(){}function A(){return this.cancelBubble}function N(){return this.defaultPrevented}o.fF.event=function(e){return j&&(e=j(e)),e.persist=P,e.isPropagationStopped=A,e.isDefaultPrevented=N,e.nativeEvent=e};var D,F={configurable:!0,get:function(){return this.class}},U=o.fF.vnode;o.fF.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var i=-1===t.indexOf("-");for(var a in r={},n){var s=n[a];C&&"children"===a&&"noscript"===t||"value"===a&&"defaultValue"in n&&null==s||("defaultValue"===a&&"value"in n&&null==n.value?a="value":"download"===a&&!0===s?s="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+t)&&!S(n.type)?a="oninput":/^onfocus$/i.test(a)?a="onfocusin":/^onblur$/i.test(a)?a="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(a)?a=a.toLowerCase():i&&O.test(a)?a=a.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===s&&(s=void 0),/^oninput$/i.test(a)&&(a=a.toLowerCase(),r[a]&&(a="oninputCapture")),r[a]=s)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=(0,o.v2)(n.children).forEach(function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)})),"select"==t&&null!=r.defaultValue&&(r.value=(0,o.v2)(n.children).forEach(function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value})),e.props=r,n.class!=n.className&&(F.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",F))}e.$$typeof=k,U&&U(e)};var B=o.fF.__r;o.fF.__r=function(e){B&&B(e),D=e.__c};var L={ReactCurrentDispatcher:{current:{readContext:function(e){return D.__n[e.__c].props.value}}}},I="17.0.2";function M(e){return o.n.bind(null,e)}function z(e){return!!e&&e.$$typeof===k}function H(e){return z(e)?o.Ob.apply(null,arguments):e}function J(e){return!!e.__k&&((0,o.XX)(null,e),!0)}function V(e){return e&&(e.base||1===e.nodeType&&e)||null}var W=function(e,t){return e(t)},q=function(e,t){return e(t)},K=o.FK;function $(e){e()}function X(e){return e}function G(){return[!1,$]}var Y=r.Nf;function Z(e,t){var n=(0,r.J0)(t),o=n[0],i=n[1];return(0,r.vJ)(function(){return e(function(){i(function(){return t()})})},[e,t]),o}const Q={useState:r.J0,useReducer:r.WO,useEffect:r.vJ,useLayoutEffect:r.Nf,useInsertionEffect:r.Nf,useTransition:G,useDeferredValue:X,useSyncExternalStore:Z,startTransition:$,useRef:r.li,useImperativeHandle:r.Yn,useMemo:r.Kr,useCallback:r.hb,useContext:r.NT,useDebugValue:r.MN,version:"17.0.2",Children:p,render:R,hydrate:T,unmountComponentAtNode:J,createPortal:E,createElement:o.n,createContext:o.q6,createFactory:M,cloneElement:H,createRef:o._3,Fragment:o.FK,isValidElement:z,findDOMNode:V,Component:o.uA,PureComponent:s,memo:c,forwardRef:f,flushSync:q,unstable_batchedUpdates:W,StrictMode:o.FK,Suspense:g,SuspenseList:w,lazy:v,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:L}},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}},601:e=>{"use strict";e.exports=function(e){return e[1]}},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"},715:e=>{"use strict";e.exports="data:image/svg+xml;charset=utf-8,%3Csvg viewBox=%270 0 16 16%27 fill=%27%23fff%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Ccircle cx=%278%27 cy=%278%27 r=%273%27/%3E%3C/svg%3E"},827:(e,t,n)=>{const r=n(402),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L6.832 19.82a4.5 4.5 0 01-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 011.13-1.897L16.863 4.487zm0 0L19.5 7.125"}))});e.exports=o},972:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(601),o=n.n(r),i=n(314),a=n.n(i),s=n(417),c=n.n(s),l=new URL(n(354),n.b),u=new URL(n(266),n.b),f=new URL(n(715),n.b),d=new URL(n(608),n.b),p=a()(o()),h=c()(l),b=c()(u),g=c()(f),m=c()(d);p.push([e.id,'/*! tailwindcss v3.1.8 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}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-size:1em}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-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-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}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%}[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],select,textarea{--tw-shadow:0 0 #0000;-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}[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,select:focus,textarea:focus{--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);outline:2px solid transparent;outline-offset:2px}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}::-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('+h+");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]{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]{--tw-shadow:0 0 #0000;-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}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--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);outline:2px solid transparent;outline-offset:2px}[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("+b+")}[type=radio]:checked{background-image:url("+g+")}[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("+m+");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[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}*,: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-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: }::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-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: }.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.\\!visible{visibility:visible!important}.invisible{visibility:hidden}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{bottom:0;left:0;right:0;top:0}.top-0{top:0}.right-0{right:0}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.my-auto{margin-bottom:auto;margin-top:auto}.my-5{margin-bottom:1.25rem;margin-top:1.25rem}.my-10{margin-bottom:2.5rem;margin-top:2.5rem}.mt-3{margin-top:.75rem}.mt-2{margin-top:.5rem}.mt-5{margin-top:1.25rem}.ml-3{margin-left:.75rem}.-mb-px{margin-bottom:-1px}.ml-\\[3\\.5rem\\]{margin-left:3.5rem}.ml-\\[3rem\\]{margin-left:3rem}.mt-\\[2rem\\]{margin-top:2rem}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-5{height:1.25rem}.h-12{height:3rem}.h-6{height:1.5rem}.h-10{height:2.5rem}.h-\\[1\\.5rem\\]{height:1.5rem}.h-\\[1\\.25rem\\]{height:1.25rem}.h-full{height:100%}.h-\\[3rem\\]{height:3rem}.min-h-full{min-height:100%}.min-h-\\[300px\\]{min-height:300px}.w-5{width:1.25rem}.w-full{width:100%}.w-12{width:3rem}.w-6{width:1.5rem}.w-10{width:2.5rem}.w-\\[2\\.75rem\\]{width:2.75rem}.w-\\[1\\.25rem\\]{width:1.25rem}.w-1\\/2{width:50%}.max-w-7xl{max-width:80rem}.max-w-lg{max-width:32rem}.flex-shrink-0,.shrink-0{flex-shrink:0}.basis-1\\/2{flex-basis:50%}.basis-3\\/4{flex-basis:75%}.translate-x-\\[1\\.25rem\\]{--tw-translate-x:1.25rem}.translate-x-0,.translate-x-\\[1\\.25rem\\]{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))}.translate-x-0{--tw-translate-x:0px}.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}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.gap-7{gap:1.75rem}.gap-1{gap:.25rem}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(2rem*var(--tw-space-x-reverse))}.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))}.space-x-10>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(2.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(2.5rem*var(--tw-space-x-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded-md{border-radius:.375rem}.rounded-lg{border-radius:.5rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-indigo-500{--tw-border-opacity:1;border-color:rgb(99 102 241/var(--tw-border-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity:0.75}.fill-white{fill:#fff}.fill-gray-200{fill:#e5e7eb}.fill-teal-500{fill:#14b8a6}.p-4{padding:1rem}.p-2{padding:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-4{padding-bottom:1rem;padding-top:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.pt-5{padding-top:1.25rem}.pb-4{padding-bottom:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-base{font-size:1rem;line-height:1.5rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-6{line-height:1.5rem}.leading-5{line-height:1.25rem}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity:1;color:rgb(79 70 229/var(--tw-text-opacity))}.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-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.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-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);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.ring-0{--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(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)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,fill,stroke,-webkit-text-decoration-color;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,-webkit-text-decoration-color;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\\:border-gray-300:hover{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.hover\\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.hover\\:bg-red-700:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.hover\\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgb(67 56 202/var(--tw-bg-opacity))}.hover\\:text-gray-500:hover{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.focus\\:border-indigo-500:focus{--tw-border-opacity:1;border-color:rgb(99 102 241/var(--tw-border-opacity))}.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-inset:focus{--tw-ring-inset:inset}.focus\\:ring-indigo-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity))}.focus\\:ring-red-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(239 68 68/var(--tw-ring-opacity))}.focus\\:ring-gray-300:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity))}.focus\\:ring-red-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(220 38 38/var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:ring-2:focus-visible{--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-visible\\:ring-white:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(255 255 255/var(--tw-ring-opacity))}.focus-visible\\:ring-opacity-75:focus-visible{--tw-ring-opacity:0.75}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-gray-300:disabled{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.disabled\\:opacity-50:disabled{opacity:.5}@media (min-width:640px){.sm\\:my-8{margin-bottom:2rem;margin-top:2rem}.sm\\:mx-0{margin-left:0;margin-right:0}.sm\\:mt-0{margin-top:0}.sm\\:ml-4{margin-left:1rem}.sm\\:mt-4{margin-top:1rem}.sm\\:ml-3{margin-left:.75rem}.sm\\:flex{display:flex}.sm\\:h-10{height:2.5rem}.sm\\:w-full{width:100%}.sm\\:w-10{width:2.5rem}.sm\\:w-auto{width:auto}.sm\\:max-w-xs{max-width:20rem}.sm\\:max-w-lg{max-width:32rem}.sm\\:flex-row-reverse{flex-direction:row-reverse}.sm\\:items-start{align-items:flex-start}.sm\\:items-center{align-items:center}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:text-left{text-align:left}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width:768px){.md\\:px-8{padding-left:2rem;padding-right:2rem}}",""]);const v=p},994:(e,t,n)=>{"use strict";n.d(t,{J0:()=>m,Kr:()=>E,MN:()=>C,Md:()=>S,NT:()=>O,Nf:()=>y,WO:()=>v,Yn:()=>x,hb:()=>k,li:()=>_,vJ:()=>w});var r,o,i,a,s=n(172),c=0,l=[],u=[],f=s.fF.__b,d=s.fF.__r,p=s.fF.diffed,h=s.fF.__c,b=s.fF.unmount;function g(e,t){s.fF.__h&&s.fF.__h(o,e,c||t),c=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:u}),n.__[e]}function m(e){return c=1,v(N,e)}function v(e,t,n){var i=g(r++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):N(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,!i.__c.u)){i.__c.__H.u=!0;var a=i.__c.shouldComponentUpdate;i.__c.shouldComponentUpdate=function(e,t,n){var r=i.__c.__H.__.filter(function(e){return e.__c});return(r.every(function(e){return!e.__N})||!r.every(function(e){if(!e.__N)return!0;var t=e.__[0];return e.__=e.__N,e.__N=void 0,t===e.__[0]}))&&(!a||a(e,t,n))}}return i.__N||i.__}function w(e,t){var n=g(r++,3);!s.fF.__s&&A(n.__H,t)&&(n.__=e,n.o=t,o.__H.__h.push(n))}function y(e,t){var n=g(r++,4);!s.fF.__s&&A(n.__H,t)&&(n.__=e,n.o=t,o.__h.push(n))}function _(e){return c=5,E(function(){return{current:e}},[])}function x(e,t,n){c=6,y(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(e,t){var n=g(r++,7);return A(n.__H,t)?(n.__V=e(),n.o=t,n.__h=e,n.__V):n.__}function k(e,t){return c=8,E(function(){return e},t)}function O(e){var t=o.context[e.__c],n=g(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__}function C(e,t){s.fF.useDebugValue&&s.fF.useDebugValue(t?t(e):e)}function S(e){var t=g(r++,10),n=m();return t.__=e,o.componentDidCatch||(o.componentDidCatch=function(e){t.__&&t.__(e),n[1](e)}),[n[0],function(){n[1](void 0)}]}function R(){for(var e;e=l.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(j),e.__H.__h.forEach(P),e.__H.__h=[]}catch(t){e.__H.__h=[],s.fF.__e(t,e.__v)}}s.fF.__b=function(e){o=null,f&&f(e)},s.fF.__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.__V=u,e.__N=e.o=void 0})):(t.__h.forEach(j),t.__h.forEach(P),t.__h=[])),i=o},s.fF.diffed=function(e){p&&p(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==l.push(t)&&a===s.fF.requestAnimationFrame||((a=s.fF.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),T&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);T&&(t=requestAnimationFrame(n))})(R)),t.__H.__.forEach(function(e){e.o&&(e.__H=e.o),e.__V!==u&&(e.__=e.__V),e.o=void 0,e.__V=u})),i=o=null},s.fF.__c=function(e,t){t.some(function(e){try{e.__h.forEach(j),e.__h=e.__h.filter(function(e){return!e.__||P(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],s.fF.__e(n,e.__v)}}),h&&h(e,t)},s.fF.unmount=function(e){b&&b(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{j(e)}catch(e){t=e}}),t&&s.fF.__e(t,n.__v))};var T="function"==typeof requestAnimationFrame;function j(e){var t=o,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),o=t}function P(e){var t=o;e.__c=e.__(),o=t}function A(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function N(e,t){return"function"==typeof t?t(e):t}}},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,(()=>{"use strict";var e={};n.r(e),n.d(e,{hasBrowserEnv:()=>ut,hasStandardBrowserEnv:()=>dt,hasStandardBrowserWebWorkerEnv:()=>pt,navigator:()=>ft,origin:()=>ht});var t=n(172),r=0;function o(e,n,o,i,a){var s,c,l={};for(c in n)"ref"==c?s=n[c]:l[c]=n[c];var u={type:e,props:l,key:o,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--r,__source:a,__self:i};if("function"==typeof e&&(s=e.defaultProps))for(c in s)void 0===l[c]&&(l[c]=s[c]);return t.fF.vnode&&t.fF.vnode(u),u}var i=n(972),a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};function s(e){return function(n){return o(t.FK,{children:[o("style",{children:i.A.toString()}),o(e,a({},n))]})}}const c=s(function(e){return o(t.FK,{children:o("div",{children:o("p",{children:"Hello, Superhero."})})})});var l=n(994),u=n(402);function f(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,f),r}var d,p=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(p||{}),h=((d=h||{})[d.Unmount=0]="Unmount",d[d.Hidden=1]="Hidden",d);function b({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a}){let s=m(t,e);if(i)return g(s,n,r,a);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=s;if(e)return g(t,n,r,a)}if(1&c){let{unmount:e=!0,...t}=s;return f(e?0:1,{0:()=>null,1:()=>g({...t,hidden:!0,style:{display:"none"}},n,r,a)})}return g(s,n,r,a)}function g(e,t={},n,r){let{as:o=n,children:i,refName:a="ref",...s}=y(e,["unmount","static"]),c=void 0!==e.ref?{[a]:e.ref}:{},l="function"==typeof i?i(t):i;s.className&&"function"==typeof s.className&&(s.className=s.className(t));let f={};if(o===u.Fragment&&Object.keys(w(s)).length>0){if(!(0,u.isValidElement)(l)||Array.isArray(l)&&l.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(s).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"));return(0,u.cloneElement)(l,Object.assign({},m(l.props,w(y(s,["ref"]))),f,c))}return(0,u.createElement)(o,Object.assign({},y(s,["ref"]),o!==u.Fragment&&c,o!==u.Fragment&&f),l)}function m(...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.defaultPrevented)return;e(t,...r)}}});return t}function v(e){var t;return Object.assign((0,u.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function w(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function y(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}let _="undefined"!=typeof window?u.useLayoutEffect:u.useEffect,x={serverHandoffComplete:!1};var E;let k=0;function O(){return++k}let C=null!=(E=u.default.useId)?E:function(){let e=function(){let[e,t]=(0,u.useState)(x.serverHandoffComplete);return(0,u.useEffect)(()=>{!0!==e&&t(!0)},[e]),(0,u.useEffect)(()=>{!1===x.serverHandoffComplete&&(x.serverHandoffComplete=!0)},[]),e}(),[t,n]=u.default.useState(e?O:null);return _(()=>{null===t&&n(O())},[t]),null!=t?""+t:void 0};var S=(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))(S||{});let R=function(e){let t=function(e){let t=(0,u.useRef)(e);return _(()=>{t.current=e},[e]),t}(e);return u.default.useCallback((...e)=>t.current(...e),[t])},T=Symbol();function j(...e){let t=(0,u.useRef)(e);(0,u.useEffect)(()=>{t.current=e},[e]);let n=R(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[T]))?void 0:n}let P=(0,u.createContext)(null);function A(){let e=(0,u.useContext)(P);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,A),e}return e}let N=v(function(e,t){let{passive:n=!1,...r}=e,o=A(),i=`headlessui-label-${C()}`,a=j(t);_(()=>o.register(i),[i,o.register]);let s={ref:a,...o.props,id:i};return n&&("onClick"in s&&delete s.onClick,"onClick"in r&&delete r.onClick),b({ourProps:s,theirProps:r,slot:o.slot||{},defaultTag:"label",name:o.name||"Label"})}),D=(0,u.createContext)(null);function F(){let e=(0,u.useContext)(D);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,F),e}return e}function U(){let[e,t]=(0,u.useState)([]);return[e.length>0?e.join(" "):void 0,(0,u.useMemo)(()=>function(e){let n=R(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))),r=(0,u.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props}),[n,e.slot,e.name,e.props]);return u.default.createElement(D.Provider,{value:r},e.children)},[t])]}let B=v(function(e,t){let n=F(),r=`headlessui-description-${C()}`,o=j(t);_(()=>n.register(r),[r,n.register]);let i=e;return b({ourProps:{ref:o,...n.props,id:r},theirProps:i,slot:n.slot||{},defaultTag:"p",name:n.name||"Description"})});function L(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 I(e,t){let[n,r]=(0,u.useState)(()=>L(e));return _(()=>{r(L(e))},[e.type,e.as]),_(()=>{n||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}var M=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(M||{});let z=v(function(e,t){let{features:n=1,...r}=e;return b({ourProps:{ref:t,"aria-hidden":!(2&~n)||void 0,style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...!(4&~n)&&!!(2&~n)&&{display:"none"}}},theirProps:r,slot:{},defaultTag:"div",name:"Hidden"})}),H=(0,u.createContext)(null);H.displayName="GroupContext";let J=u.Fragment,V=v(function(e,t){let{checked:n,onChange:r,name:o,value:i,...a}=e,s=`headlessui-switch-${C()}`,c=(0,u.useContext)(H),l=(0,u.useRef)(null),f=j(l,t,null===c?null:c.setSwitch),d=R(()=>r(!n)),p=R(e=>{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}(e.currentTarget))return e.preventDefault();e.preventDefault(),d()}),h=R(e=>{e.key===S.Space?(e.preventDefault(),d()):e.key===S.Enter&&function(e){var t;let n=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(n)for(let e of n.elements)if("INPUT"===e.tagName&&"submit"===e.type||"BUTTON"===e.tagName&&"submit"===e.type||"INPUT"===e.nodeName&&"image"===e.type)return void e.click()}(e.currentTarget)}),g=R(e=>e.preventDefault()),m=(0,u.useMemo)(()=>({checked:n}),[n]),v={id:s,ref:f,role:"switch",type:I(e,l),tabIndex:0,"aria-checked":n,"aria-labelledby":null==c?void 0:c.labelledby,"aria-describedby":null==c?void 0:c.describedby,onClick:p,onKeyUp:h,onKeyPress:g};return u.default.createElement(u.default.Fragment,null,null!=o&&n&&u.default.createElement(z,{features:M.Hidden,...w({as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:n,name:o,value:i})}),b({ourProps:v,theirProps:a,slot:m,defaultTag:"button",name:"Switch"}))}),W=Object.assign(V,{Group:function(e){let[t,n]=(0,u.useState)(null),[r,o]=function(){let[e,t]=(0,u.useState)([]);return[e.length>0?e.join(" "):void 0,(0,u.useMemo)(()=>function(e){let n=R(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))),r=(0,u.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props}),[n,e.slot,e.name,e.props]);return u.default.createElement(P.Provider,{value:r},e.children)},[t])]}(),[i,a]=U(),s=(0,u.useMemo)(()=>({switch:t,setSwitch:n,labelledby:r,describedby:i}),[t,n,r,i]),c=e;return u.default.createElement(a,{name:"Switch.Description"},u.default.createElement(o,{name:"Switch.Label",props:{onClick(){!t||(t.click(),t.focus({preventScroll:!0}))}}},u.default.createElement(H.Provider,{value:s},b({ourProps:{},theirProps:c,defaultTag:J,name:"Switch.Group"}))))},Label:N,Description:B});var q=function(){return q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},q.apply(this,arguments)};const K=function(e){var t=e.className,n=e.value,r=e.disabled,i=e.label,a=e.onChange;return o(W.Group,{children:o("div",q({class:"flex ".concat(t," ").concat(r?"pointer-events-none":"")},{children:[o(W,q({disabled:r,checked:n,onChange:a,class:"".concat(n?"bg-gray-900":"bg-gray-300","\n inline-flex h-[1.5rem] w-[2.75rem] shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75 my-auto")},{children:o("span",{class:"".concat(n?"translate-x-[1.25rem]":"translate-x-0","\n pointer-events-none inline-block h-[1.25rem] w-[1.25rem] transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out")})})),o(W.Label,{children:o("div",q({class:"flex items-center h-full text-sm leading-5 text-gray-900 cursor-pointer ml-3"},{children:i}))})]}))})};var $,X,G,Y=function(){return Y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Y.apply(this,arguments)};!function(e){e.Default="Default",e.Ineligible="Ineligible employee base",e.Ineligible_Account_Constraints="Ineligible due to account constraints",e.Existing_Provider="Has existing benefit provider",e.Not_Offer="Does not offer benefit",e.Not_Offer_Flare="Does not offer any Flare benefits"}($||($={})),function(e){e.Off="Off",e.Injected="Injected",e.Discrete="Discrete"}(X||(X={})),function(e){e.Partner="Partner",e.Default="Default",e.Account="Account"}(G||(G={}));var Z=Object.entries($).map(function(e){return{name:e[0],value:e[1]}}),Q={ownership:"Default",wellbeing:{isEnabled:!0},flareApp:{isEnabled:!0},salaryPackagingCars:{isEnabled:!0},allowance:{isEnabled:!1,disabledReason:$.Default}},ee={ownership:"Default",products:[]};function te(e,t){return function(){return e.apply(t,arguments)}}const{toString:ne}=Object.prototype,{getPrototypeOf:re}=Object,{iterator:oe,toStringTag:ie}=Symbol,ae=(se=Object.create(null),e=>{const t=ne.call(e);return se[t]||(se[t]=t.slice(8,-1).toLowerCase())});var se;const ce=e=>(e=e.toLowerCase(),t=>ae(t)===e),le=e=>t=>typeof t===e,{isArray:ue}=Array,fe=le("undefined");function de(e){return null!==e&&!fe(e)&&null!==e.constructor&&!fe(e.constructor)&&be(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const pe=ce("ArrayBuffer"),he=le("string"),be=le("function"),ge=le("number"),me=e=>null!==e&&"object"==typeof e,ve=e=>{if("object"!==ae(e))return!1;const t=re(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||ie in e||oe in e)},we=ce("Date"),ye=ce("File"),_e=ce("Blob"),xe=ce("FileList"),Ee=ce("URLSearchParams"),[ke,Oe,Ce,Se]=["ReadableStream","Request","Response","Headers"].map(ce);function Re(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),ue(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(de(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Te(e,t){if(de(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const je="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Pe=e=>!fe(e)&&e!==je,Ae=(Ne="undefined"!=typeof Uint8Array&&re(Uint8Array),e=>Ne&&e instanceof Ne);var Ne;const De=ce("HTMLFormElement"),Fe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ue=ce("RegExp"),Be=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Re(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)},Le=ce("AsyncFunction"),Ie=(Me="function"==typeof setImmediate,ze=be(je.postMessage),Me?setImmediate:ze?(He=`axios@${Math.random()}`,Je=[],je.addEventListener("message",({source:e,data:t})=>{e===je&&t===He&&Je.length&&Je.shift()()},!1),e=>{Je.push(e),je.postMessage(He,"*")}):e=>setTimeout(e));var Me,ze,He,Je;const Ve="undefined"!=typeof queueMicrotask?queueMicrotask.bind(je):"undefined"!=typeof process&&process.nextTick||Ie,We={isArray:ue,isArrayBuffer:pe,isBuffer:de,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||be(e.append)&&("formdata"===(t=ae(e))||"object"===t&&be(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&pe(e.buffer),t},isString:he,isNumber:ge,isBoolean:e=>!0===e||!1===e,isObject:me,isPlainObject:ve,isEmptyObject:e=>{if(!me(e)||de(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:ke,isRequest:Oe,isResponse:Ce,isHeaders:Se,isUndefined:fe,isDate:we,isFile:ye,isBlob:_e,isRegExp:Ue,isFunction:be,isStream:e=>me(e)&&be(e.pipe),isURLSearchParams:Ee,isTypedArray:Ae,isFileList:xe,forEach:Re,merge:function e(){const{caseless:t,skipUndefined:n}=Pe(this)&&this||{},r={},o=(o,i)=>{const a=t&&Te(r,i)||i;ve(r[a])&&ve(o)?r[a]=e(r[a],o):ve(o)?r[a]=e({},o):ue(o)?r[a]=o.slice():n&&fe(o)||(r[a]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Re(arguments[e],o);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(Re(t,(t,r)=>{n&&be(t)?e[r]=te(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&re(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:ae,kindOfTest:ce,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(ue(e))return e;let t=e.length;if(!ge(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[oe]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:De,hasOwnProperty:Fe,hasOwnProp:Fe,reduceDescriptors:Be,freezeMethods:e=>{Be(e,(t,n)=>{if(be(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];be(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return ue(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Te,global:je,isContextDefined:Pe,isSpecCompliantForm:function(e){return!!(e&&be(e.append)&&"FormData"===e[ie]&&e[oe])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(me(e)){if(t.indexOf(e)>=0)return;if(de(e))return e;if(!("toJSON"in e)){t[r]=e;const o=ue(e)?[]:{};return Re(e,(e,t)=>{const i=n(e,r+1);!fe(i)&&(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Le,isThenable:e=>e&&(me(e)||be(e))&&be(e.then)&&be(e.catch),setImmediate:Ie,asap:Ve,isIterable:e=>null!=e&&be(e[oe])};function qe(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}We.inherits(qe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:We.toJSONObject(this.config),code:this.code,status:this.status}}});const Ke=qe.prototype,$e={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{$e[e]={value:e}}),Object.defineProperties(qe,$e),Object.defineProperty(Ke,"isAxiosError",{value:!0}),qe.from=(e,t,n,r,o,i)=>{const a=Object.create(Ke);We.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const s=e&&e.message?e.message:"Error",c=null==t&&e?e.code:t;return qe.call(a,s,c,n,r,o),e&&null==a.cause&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",i&&Object.assign(a,i),a};const Xe=qe;function Ge(e){return We.isPlainObject(e)||We.isArray(e)}function Ye(e){return We.endsWith(e,"[]")?e.slice(0,-2):e}function Ze(e,t,n){return e?e.concat(t).map(function(e,t){return e=Ye(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Qe=We.toFlatObject(We,{},null,function(e){return/^is[A-Z]/.test(e)}),et=function(e,t,n){if(!We.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=We.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!We.isUndefined(t[e])})).metaTokens,o=n.visitor||l,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&We.isSpecCompliantForm(t);if(!We.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(We.isDate(e))return e.toISOString();if(We.isBoolean(e))return e.toString();if(!s&&We.isBlob(e))throw new Xe("Blob is not supported. Use a Buffer instead.");return We.isArrayBuffer(e)||We.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(We.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(We.isArray(e)&&function(e){return We.isArray(e)&&!e.some(Ge)}(e)||(We.isFileList(e)||We.endsWith(n,"[]"))&&(s=We.toArray(e)))return n=Ye(n),s.forEach(function(e,r){!We.isUndefined(e)&&null!==e&&t.append(!0===a?Ze([n],r,i):null===a?n:n+"[]",c(e))}),!1;return!!Ge(e)||(t.append(Ze(o,n,i),c(e)),!1)}const u=[],f=Object.assign(Qe,{defaultVisitor:l,convertValue:c,isVisitable:Ge});if(!We.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!We.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),We.forEach(n,function(n,i){!0===(!(We.isUndefined(n)||null===n)&&o.call(t,n,We.isString(i)?i.trim():i,r,f))&&e(n,r?r.concat(i):[i])}),u.pop()}}(e),t};function tt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function nt(e,t){this._pairs=[],e&&et(e,this,t)}const rt=nt.prototype;rt.append=function(e,t){this._pairs.push([e,t])},rt.toString=function(e){const t=e?function(t){return e.call(this,t,tt)}:tt;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const ot=nt;function it(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function at(e,t,n){if(!t)return e;const r=n&&n.encode||it;We.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):We.isURLSearchParams(t)?t.toString():new ot(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const st=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){We.forEach(this.handlers,function(t){null!==t&&e(t)})}},ct={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ot,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ut="undefined"!=typeof window&&"undefined"!=typeof document,ft="object"==typeof navigator&&navigator||void 0,dt=ut&&(!ft||["ReactNative","NativeScript","NS"].indexOf(ft.product)<0),pt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ht=ut&&window.location.href||"http://localhost",bt={...e,...lt},gt=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&We.isArray(r)?r.length:i,s?(We.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&We.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&We.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a)}if(We.isFormData(e)&&We.isFunction(e.entries)){const n={};return We.forEachEntry(e,(e,r)=>{t(function(e){return We.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null},mt={transitional:ct,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=We.isObject(e);if(o&&We.isHTMLForm(e)&&(e=new FormData(e)),We.isFormData(e))return r?JSON.stringify(gt(e)):e;if(We.isArrayBuffer(e)||We.isBuffer(e)||We.isStream(e)||We.isFile(e)||We.isBlob(e)||We.isReadableStream(e))return e;if(We.isArrayBufferView(e))return e.buffer;if(We.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return et(e,new bt.classes.URLSearchParams,{visitor:function(e,t,n,r){return bt.isNode&&We.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=We.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return et(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e){if(We.isString(e))try{return(0,JSON.parse)(e),We.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||mt.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(We.isResponse(e)||We.isReadableStream(e))return e;if(e&&We.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw Xe.from(e,Xe.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:bt.classes.FormData,Blob:bt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};We.forEach(["delete","get","head","post","put","patch"],e=>{mt.headers[e]={}});const vt=mt,wt=We.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),yt=Symbol("internals");function _t(e){return e&&String(e).trim().toLowerCase()}function xt(e){return!1===e||null==e?e:We.isArray(e)?e.map(xt):String(e)}function Et(e,t,n,r,o){return We.isFunction(r)?r.call(this,t,n):(o&&(t=n),We.isString(t)?We.isString(r)?-1!==t.indexOf(r):We.isRegExp(r)?r.test(t):void 0:void 0)}class kt{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=_t(t);if(!o)throw new Error("header name must be a non-empty string");const i=We.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=xt(e))}const i=(e,t)=>We.forEach(e,(e,n)=>o(e,n,t));if(We.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(We.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&wt[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(We.isObject(e)&&We.isIterable(e)){let n,r,o={};for(const t of e){if(!We.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?We.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=_t(e)){const n=We.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(We.isFunction(t))return t.call(this,e,n);if(We.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=_t(e)){const n=We.findKey(this,e);return!(!n||void 0===this[n]||t&&!Et(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=_t(e)){const o=We.findKey(n,e);!o||t&&!Et(0,n[o],o,t)||(delete n[o],r=!0)}}return We.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Et(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return We.forEach(this,(r,o)=>{const i=We.findKey(n,o);if(i)return t[i]=xt(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete t[o],t[a]=xt(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return We.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&We.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[yt]=this[yt]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=_t(e);t[r]||(function(e,t){const n=We.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return We.isArray(e)?e.forEach(r):r(e),this}}kt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),We.reduceDescriptors(kt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),We.freezeMethods(kt);const Ot=kt;function Ct(e,t){const n=this||vt,r=t||n,o=Ot.from(r.headers);let i=r.data;return We.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function St(e){return!(!e||!e.__CANCEL__)}function Rt(e,t,n){Xe.call(this,null==e?"canceled":e,Xe.ERR_CANCELED,t,n),this.name="CanceledError"}We.inherits(Rt,Xe,{__CANCEL__:!0});const Tt=Rt;function jt(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Xe("Request failed with status code "+n.status,[Xe.ERR_BAD_REQUEST,Xe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Pt=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),l=r[a];o||(o=c),n[i]=s,r[i]=c;let u=a,f=0;for(;u!==i;)f+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;const d=l&&c-l;return d?Math.round(1e3*f/d):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},i-s)))},()=>n&&a(n)]}(n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,c=o(s);r=i,e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},At=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Nt=e=>(...t)=>We.asap(()=>e(...t)),Dt=bt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,bt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(bt.origin),bt.navigator&&/(msie|trident)/i.test(bt.navigator.userAgent)):()=>!0,Ft=bt.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];We.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),We.isString(r)&&a.push("path="+r),We.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Ut(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Bt=e=>e instanceof Ot?{...e}:e;function Lt(e,t){t=t||{};const n={};function r(e,t,n,r){return We.isPlainObject(e)&&We.isPlainObject(t)?We.merge.call({caseless:r},e,t):We.isPlainObject(t)?We.merge({},t):We.isArray(t)?t.slice():t}function o(e,t,n,o){return We.isUndefined(t)?We.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!We.isUndefined(t))return r(void 0,t)}function a(e,t){return We.isUndefined(t)?We.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(Bt(e),Bt(t),0,!0)};return We.forEach(Object.keys({...e,...t}),function(r){const i=c[r]||o,a=i(e[r],t[r],r);We.isUndefined(a)&&i!==s||(n[r]=a)}),n}const It=e=>{const t=Lt({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;if(t.headers=a=Ot.from(a),t.url=at(Ut(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),We.isFormData(n))if(bt.hasStandardBrowserEnv||bt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(We.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&a.set(e,n)})}if(bt.hasStandardBrowserEnv&&(r&&We.isFunction(r)&&(r=r(t)),r||!1!==r&&Dt(t.url))){const e=o&&i&&Ft.read(i);e&&a.set(o,e)}return t},Mt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=It(e);let o=r.data;const i=Ot.from(r.headers).normalize();let a,s,c,l,u,{responseType:f,onUploadProgress:d,onDownloadProgress:p}=r;function h(){l&&l(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let b=new XMLHttpRequest;function g(){if(!b)return;const r=Ot.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());jt(function(e){t(e),h()},function(e){n(e),h()},{data:f&&"text"!==f&&"json"!==f?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b}),b=null}b.open(r.method.toUpperCase(),r.url,!0),b.timeout=r.timeout,"onloadend"in b?b.onloadend=g:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(g)},b.onabort=function(){b&&(n(new Xe("Request aborted",Xe.ECONNABORTED,e,b)),b=null)},b.onerror=function(t){const r=t&&t.message?t.message:"Network Error",o=new Xe(r,Xe.ERR_NETWORK,e,b);o.event=t||null,n(o),b=null},b.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||ct;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Xe(t,o.clarifyTimeoutError?Xe.ETIMEDOUT:Xe.ECONNABORTED,e,b)),b=null},void 0===o&&i.setContentType(null),"setRequestHeader"in b&&We.forEach(i.toJSON(),function(e,t){b.setRequestHeader(t,e)}),We.isUndefined(r.withCredentials)||(b.withCredentials=!!r.withCredentials),f&&"json"!==f&&(b.responseType=r.responseType),p&&([c,u]=Pt(p,!0),b.addEventListener("progress",c)),d&&b.upload&&([s,l]=Pt(d),b.upload.addEventListener("progress",s),b.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(a=t=>{b&&(n(!t||t.type?new Tt(null,e,b):t),b.abort(),b=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const m=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);m&&-1===bt.protocols.indexOf(m)?n(new Xe("Unsupported protocol "+m+":",Xe.ERR_BAD_REQUEST,e)):b.send(o||null)})},zt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Xe?t:new Tt(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new Xe(`timeout ${t} of ms exceeded`,Xe.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>We.asap(a),s}},Ht=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Jt=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*Ht(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:Vt}=We,Wt=(({Request:e,Response:t})=>({Request:e,Response:t}))(We.global),{ReadableStream:qt,TextEncoder:Kt}=We.global,$t=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Xt=e=>{e=We.merge.call({skipUndefined:!0},Wt,e);const{fetch:t,Request:n,Response:r}=e,o=t?Vt(t):"function"==typeof fetch,i=Vt(n),a=Vt(r);if(!o)return!1;const s=o&&Vt(qt),c=o&&("function"==typeof Kt?(l=new Kt,e=>l.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var l;const u=i&&s&&$t(()=>{let e=!1;const t=new n(bt.origin,{body:new qt,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),f=a&&s&&$t(()=>We.isReadableStream(new r("").body)),d={stream:f&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new Xe(`Response type '${e}' is not supported`,Xe.ERR_NOT_SUPPORT,n)})});return async e=>{let{url:o,method:a,data:s,signal:l,cancelToken:p,timeout:h,onDownloadProgress:b,onUploadProgress:g,responseType:m,headers:v,withCredentials:w="same-origin",fetchOptions:y}=It(e),_=t||fetch;m=m?(m+"").toLowerCase():"text";let x=zt([l,p&&p.toAbortSignal()],h),E=null;const k=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let O;try{if(g&&u&&"get"!==a&&"head"!==a&&0!==(O=await(async(e,t)=>{const r=We.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(We.isBlob(e))return e.size;if(We.isSpecCompliantForm(e)){const t=new n(bt.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return We.isArrayBufferView(e)||We.isArrayBuffer(e)?e.byteLength:(We.isURLSearchParams(e)&&(e+=""),We.isString(e)?(await c(e)).byteLength:void 0)})(t):r})(v,s))){let e,t=new n(o,{method:"POST",body:s,duplex:"half"});if(We.isFormData(s)&&(e=t.headers.get("content-type"))&&v.setContentType(e),t.body){const[e,n]=At(O,Pt(Nt(g)));s=Jt(t.body,65536,e,n)}}We.isString(w)||(w=w?"include":"omit");const t=i&&"credentials"in n.prototype,l={...y,signal:x,method:a.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:"half",credentials:t?w:void 0};E=i&&new n(o,l);let p=await(i?_(E,y):_(o,l));const h=f&&("stream"===m||"response"===m);if(f&&(b||h&&k)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=p[t]});const t=We.toFiniteNumber(p.headers.get("content-length")),[n,o]=b&&At(t,Pt(Nt(b),!0))||[];p=new r(Jt(p.body,65536,n,()=>{o&&o(),k&&k()}),e)}m=m||"text";let C=await d[We.findKey(d,m)||"text"](p,e);return!h&&k&&k(),await new Promise((t,n)=>{jt(t,n,{data:C,headers:Ot.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:E})})}catch(t){if(k&&k(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Xe("Network Error",Xe.ERR_NETWORK,e,E),{cause:t.cause||t});throw Xe.from(t,t&&t.code,e,E)}}},Gt=new Map,Yt=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let a,s,c=i.length,l=Gt;for(;c--;)a=i[c],s=l.get(a),void 0===s&&l.set(a,s=c?new Map:Xt(t)),l=s;return s},Zt=(Yt(),{http:null,xhr:Mt,fetch:{get:Yt}});We.forEach(Zt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Qt=e=>`- ${e}`,en=e=>We.isFunction(e)||null===e||!1===e,tn=(e,t)=>{e=We.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let a=0;a<n;a++){let n;if(r=e[a],o=r,!en(r)&&(o=Zt[(n=String(r)).toLowerCase()],void 0===o))throw new Xe(`Unknown adapter '${n}'`);if(o&&(We.isFunction(o)||(o=o.get(t))))break;i[n||"#"+a]=o}if(!o){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(Qt).join("\n"):" "+Qt(e[0]):"as no adapter specified";throw new Xe("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o};function nn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Tt(null,e)}function rn(e){return nn(e),e.headers=Ot.from(e.headers),e.data=Ct.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tn(e.adapter||vt.adapter,e)(e).then(function(t){return nn(e),t.data=Ct.call(e,e.transformResponse,t),t.headers=Ot.from(t.headers),t},function(t){return St(t)||(nn(e),t&&t.response&&(t.response.data=Ct.call(e,e.transformResponse,t.response),t.response.headers=Ot.from(t.response.headers))),Promise.reject(t)})}const on="1.12.2",an={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{an[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const sn={};an.transitional=function(e,t,n){function r(e,t){return"[Axios v"+on+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Xe(r(o," has been removed"+(t?" in "+t:"")),Xe.ERR_DEPRECATED);return t&&!sn[o]&&(sn[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},an.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const cn={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Xe("options must be an object",Xe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Xe("option "+i+" must be "+n,Xe.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Xe("Unknown option "+i,Xe.ERR_BAD_OPTION)}},validators:an},ln=cn.validators;class un{constructor(e){this.defaults=e||{},this.interceptors={request:new st,response:new st}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Lt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&cn.assertOptions(n,{silentJSONParsing:ln.transitional(ln.boolean),forcedJSONParsing:ln.transitional(ln.boolean),clarifyTimeoutError:ln.transitional(ln.boolean)},!1),null!=r&&(We.isFunction(r)?t.paramsSerializer={serialize:r}:cn.assertOptions(r,{encode:ln.function,serialize:ln.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),cn.assertOptions(t,{baseUrl:ln.spelling("baseURL"),withXsrfToken:ln.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&We.merge(o.common,o[t.method]);o&&We.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=Ot.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});const c=[];let l;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let u,f=0;if(!s){const e=[rn.bind(this),void 0];for(e.unshift(...a),e.push(...c),u=e.length,l=Promise.resolve(t);f<u;)l=l.then(e[f++],e[f++]);return l}u=a.length;let d=t;for(;f<u;){const e=a[f++],t=a[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=rn.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,u=c.length;f<u;)l=l.then(c[f++],c[f++]);return l}getUri(e){return at(Ut((e=Lt(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}We.forEach(["delete","get","head","options"],function(e){un.prototype[e]=function(t,n){return this.request(Lt(n||{},{method:e,url:t,data:(n||{}).data}))}}),We.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(Lt(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}un.prototype[e]=t(),un.prototype[e+"Form"]=t(!0)});const fn=un;class dn{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new Tt(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new dn(function(t){e=t});return{token:t,cancel:e}}}const pn=dn,hn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(hn).forEach(([e,t])=>{hn[t]=e});const bn=hn,gn=function e(t){const n=new fn(t),r=te(fn.prototype.request,n);return We.extend(r,fn.prototype,n,{allOwnKeys:!0}),We.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Lt(t,n))},r}(vt);gn.Axios=fn,gn.CanceledError=Tt,gn.CancelToken=pn,gn.isCancel=St,gn.VERSION=on,gn.toFormData=et,gn.AxiosError=Xe,gn.Cancel=gn.CanceledError,gn.all=function(e){return Promise.all(e)},gn.spread=function(e){return function(t){return e.apply(null,t)}},gn.isAxiosError=function(e){return We.isObject(e)&&!0===e.isAxiosError},gn.mergeConfig=Lt,gn.AxiosHeaders=Ot,gn.formToJSON=e=>gt(We.isHTMLForm(e)?new FormData(e):e),gn.getAdapter=tn,gn.HttpStatusCode=bn,gn.default=gn;const mn=gn;var vn,wn=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((r=r.apply(e,t||[])).next())})},yn=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},_n=function(){function e(){}return e.initClient=function(e,t){this.axiosInstance=mn.create({baseURL:"".concat(e,"/admin"),headers:{Authorization:"Bearer ".concat(t)},allowAbsoluteUrls:!1})},e.getConfigUrl=function(e,t){return t?"/partners/".concat(e,"/accounts/").concat(t,"/config"):"/partners/".concat(e,"/config")},e.getConfig=function(e,t){return wn(this,void 0,void 0,function(){return yn(this,function(n){switch(n.label){case 0:return[4,this.axiosInstance.get(this.getConfigUrl(e,t),{})];case 1:return[2,n.sent().data]}})})},e.upsertImplementationStyle=function(e,t){return wn(this,void 0,void 0,function(){return yn(this,function(n){switch(n.label){case 0:return[4,this.axiosInstance.put("".concat(this.getConfigUrl(e),"/style"),{implementationStyle:t})];case 1:return n.sent(),[2]}})})},e.upsertOffers=function(e,t,n){return wn(this,void 0,void 0,function(){return yn(this,function(r){switch(r.label){case 0:return[4,this.axiosInstance.put("".concat(this.getConfigUrl(e,n),"/offers"),{offerEnablements:t})];case 1:return r.sent(),[2]}})})},e.deleteOffers=function(e,t){return wn(this,void 0,void 0,function(){return yn(this,function(n){switch(n.label){case 0:return[4,this.axiosInstance.delete("".concat(this.getConfigUrl(e,t),"/offers"))];case 1:return n.sent(),[2]}})})},e.getInjectedStyle=function(e){return wn(this,void 0,void 0,function(){return yn(this,function(t){switch(t.label){case 0:return[4,this.axiosInstance.get("".concat(this.getConfigUrl(e),"/injected"))];case 1:return[2,t.sent().data]}})})},e.upsertInjectedStyle=function(e,t,n){return wn(this,void 0,void 0,function(){return yn(this,function(r){switch(r.label){case 0:return[4,this.axiosInstance.put("".concat(this.getConfigUrl(e,n),"/injected"),t)];case 1:return r.sent(),[2]}})})},e.deleteInjectedStyle=function(e,t){return wn(this,void 0,void 0,function(){return yn(this,function(n){switch(n.label){case 0:return[4,this.axiosInstance.delete("".concat(this.getConfigUrl(e,t),"/injected"))];case 1:return n.sent(),[2]}})})},e.upsertBenefitsAllowance=function(e,t,n){return wn(this,void 0,void 0,function(){return yn(this,function(r){switch(r.label){case 0:return[4,this.axiosInstance.put("".concat(this.getConfigUrl(e,n),"/benefits-allowance"),t)];case 1:return r.sent(),[2]}})})},e.deleteBenefitsAllowance=function(e,t){return wn(this,void 0,void 0,function(){return yn(this,function(n){switch(n.label){case 0:return[4,this.axiosInstance.delete("".concat(this.getConfigUrl(e,t),"/benefits-allowance"))];case 1:return n.sent(),[2]}})})},e}();!function(e){e.Default="Default",e.Ineligible="Ineligible employee base",e.Ineligible_Account_Constraints="Ineligible due to account constraints",e.Existing_Provider="Has existing benefit provider",e.Not_Offer="Does not offer benefit",e.Not_Offer_Flare="Does not offer any Flare benefits",e.DEPRECATED_Existing_Provider="Existing novated lease provider",e.DEPRECATED_Not_Offer="Does not offer a novated lease benefit",e.DEPRECATED_Not_Offer_Flare="Does not wish to offer any Flare premium benefits"}(vn||(vn={}));var xn=function(e){switch(e){case $.Ineligible:return vn.Ineligible;case $.Ineligible_Account_Constraints:return vn.Ineligible_Account_Constraints;case $.Existing_Provider:return vn.Existing_Provider;case $.Not_Offer:return vn.Not_Offer;case $.Not_Offer_Flare:return vn.Not_Offer_Flare;case $.Default:default:return vn.Default}},En=function(e){switch(e){case vn.Ineligible:return $.Ineligible;case vn.Ineligible_Account_Constraints:return $.Ineligible_Account_Constraints;case vn.Existing_Provider:case vn.DEPRECATED_Existing_Provider:return $.Existing_Provider;case vn.Not_Offer:case vn.DEPRECATED_Not_Offer:return $.Not_Offer;case vn.Not_Offer_Flare:case vn.DEPRECATED_Not_Offer_Flare:return $.Not_Offer_Flare;case vn.Default:default:return $.Default}},kn=function(e){return{ownership:e.ownership,wellbeing:e.wellbeing.isEnabled?{isEnabled:!0}:{isEnabled:!1,disabledReason:xn(e.wellbeing.disabledReason)},flareApp:e.flareApp.isEnabled?{isEnabled:!0}:{isEnabled:!1,disabledReason:xn(e.flareApp.disabledReason)},salaryPackagingCars:e.salaryPackagingCars.isEnabled?{isEnabled:!0}:{isEnabled:!1,disabledReason:xn(e.salaryPackagingCars.disabledReason)},allowance:e.allowance.isEnabled?{isEnabled:!0}:{isEnabled:!1,disabledReason:xn(e.allowance.disabledReason)}}},On=function(e){return{ownership:e.ownership,wellbeing:e.wellbeing.isEnabled?{isEnabled:!0}:{isEnabled:!1,disabledReason:En(e.wellbeing.disabledReason)},flareApp:e.flareApp.isEnabled?{isEnabled:!0}:{isEnabled:!1,disabledReason:En(e.flareApp.disabledReason)},salaryPackagingCars:e.salaryPackagingCars.isEnabled?{isEnabled:!0}:{isEnabled:!1,disabledReason:En(e.salaryPackagingCars.disabledReason)},allowance:e.allowance.isEnabled?{isEnabled:!0}:{isEnabled:!1,disabledReason:En(e.allowance.disabledReason)}}},Cn=function(e){return{ownership:e.ownership,products:e.products.map(function(e){return e.isEnabled?{tag:e.name,isEnabled:!0}:{tag:e.name,isEnabled:!1,disabledReason:xn(e.disabledReason)}})}},Sn=function(e){return{ownership:e.ownership,products:e.products.map(function(e){return e.isEnabled?{name:e.tag,isEnabled:!0}:{name:e.tag,isEnabled:!1,disabledReason:En(e.disabledReason)}})}},Rn={canView:!1,canEdit:!1,canDelete:!1},Tn={partnerId:"",accountId:void 0,access:{partnerStyle:Rn,benefitsOnboarding:Rn,webBenefits:Rn,benefitsPlan:Rn},error:void 0,openError:function(e){}},jn=(0,t.q6)(Tn),Pn=function(){return Pn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Pn.apply(this,arguments)},An=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((r=r.apply(e,t||[])).next())})},Nn=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},Dn=function(e,t){var n=(0,l.J0)(!0),r=n[0],o=n[1],i=(0,l.NT)(jn).openError,a=(0,l.J0)(),s=a[0],c=a[1],u=(0,l.hb)(function(e){var t;throw i((null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)?e.response.data:"We have encountered an unexpected error. Please try again later."),"Unexpected API error. Error code: ".concat(e.code,"; Error message: ").concat(e.message)},[i]),f=(0,l.hb)(function(){return An(void 0,void 0,void 0,function(){return Nn(this,function(n){switch(n.label){case 0:return o(!0),[4,_n.getConfig(e,t).then(Bn).then(c).catch(function(){return i("Oops, there was an error. Please refresh this page")}).finally(function(){return o(!1)})];case 1:return n.sent(),[2]}})})},[e,t,i]),d=(0,l.hb)(function(t){return An(void 0,void 0,void 0,function(){return Nn(this,function(n){switch(n.label){case 0:return[4,_n.upsertImplementationStyle(e,X[t]).then(f).catch(u)];case 1:return n.sent(),[2]}})})},[e,f,u]),p=(0,l.hb)(function(n){return An(void 0,void 0,void 0,function(){return Nn(this,function(r){switch(r.label){case 0:return[4,_n.upsertOffers(e,n.map(Un),t).then(f).catch(u)];case 1:return r.sent(),[2]}})})},[e,t,f,u]),h=(0,l.hb)(function(n){return An(void 0,void 0,void 0,function(){return Nn(this,function(r){switch(r.label){case 0:return[4,_n.upsertInjectedStyle(e,n,t).then(f).catch(u)];case 1:return r.sent(),[2]}})})},[e,t,f,u]),b=(0,l.hb)(function(n){return An(void 0,void 0,void 0,function(){return Nn(this,function(r){switch(r.label){case 0:return[4,_n.upsertBenefitsAllowance(e,n,t).then(f).catch(u)];case 1:return r.sent(),[2]}})})},[e,t,f,u]),g=(0,l.hb)(function(){return An(void 0,void 0,void 0,function(){return Nn(this,function(n){switch(n.label){case 0:return[4,_n.deleteOffers(e,t).then(f).catch(u)];case 1:return n.sent(),[2]}})})},[t,f,u,e]),m=(0,l.hb)(function(){return An(void 0,void 0,void 0,function(){return Nn(this,function(n){switch(n.label){case 0:return[4,_n.deleteInjectedStyle(e,t).then(f).catch(u)];case 1:return n.sent(),[2]}})})},[t,f,u,e]),v=(0,l.hb)(function(){return An(void 0,void 0,void 0,function(){return Nn(this,function(n){switch(n.label){case 0:return[4,_n.deleteBenefitsAllowance(e,t).then(f).catch(u)];case 1:return n.sent(),[2]}})})},[t,f,u,e]);return{isLoading:r,config:s,fetchConfig:f,upsertImplementationStyle:d,upsertOffers:p,deleteOffers:g,upsertInjectedStyle:h,deleteInjectedStyle:m,upsertBenefitsAllowance:b,deleteBenefitsAllowance:v}},Fn=function(e){return Pn(Pn({},e),{disabledReason:e.disabledReason?En(e.disabledReason):$.Default})},Un=function(e){return Pn(Pn({},e),{disabledReason:e.disabledReason?xn(e.disabledReason):vn.Default})},Bn=function(e){return{implementationStyle:{value:(t=e.implementationStyle.value,X[t]),ownership:G[e.implementationStyle.ownership]},injectedStyleEnablement:{value:e.injectedStyleEnablement.value,ownership:G[e.injectedStyleEnablement.ownership]},benefitsAllowanceEnablement:{value:e.benefitsAllowanceEnablement.value,ownership:G[e.benefitsAllowanceEnablement.ownership]},offerEnablements:{ownership:G[e.offerEnablements.ownership],value:e.offerEnablements.value.map(Fn)}};var t},Ln=function(){return Ln=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ln.apply(this,arguments)};const In=function(e){return o("svg",Ln({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"lg"===e.size?"h-10 w-10":"h-5 w-5"},{children:[o("path",{d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM1.99743 8C1.99743 11.3151 4.68487 14.0026 8 14.0026C11.3151 14.0026 14.0026 11.3151 14.0026 8C14.0026 4.68487 11.3151 1.99743 8 1.99743C4.68487 1.99743 1.99743 4.68487 1.99743 8Z",class:"light"===e.theme?"fill-white":"fill-gray-200","fill-opacity":"light"===e.theme?"0.3":"1"}),o("path",{d:"M8 1C8 0.447715 8.44943 -0.00643769 8.99741 0.0624193C9.70527 0.151368 10.3996 0.334798 11.0615 0.608964C12.0321 1.011 12.914 1.60028 13.6569 2.34315C14.3997 3.08602 14.989 3.96793 15.391 4.93853C15.6652 5.60043 15.8486 6.29473 15.9376 7.0026C16.0064 7.55057 15.5523 8 15 8C14.4477 8 14.0085 7.54925 13.9169 7.00462C13.842 6.55939 13.7169 6.12298 13.5433 5.7039C13.2417 4.97595 12.7998 4.31451 12.2426 3.75736C11.6855 3.20021 11.0241 2.75825 10.2961 2.45672C9.87702 2.28313 9.44061 2.15804 8.99538 2.08314C8.45075 1.99152 8 1.55228 8 1Z",class:"light"===e.theme?"fill-white":"fill-teal-500"})]}))},Mn=u.forwardRef(function({title:e,titleId:t,...n},r){return u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"}))});var zn,Hn=n(827),Jn=n.n(Hn),Vn=n(144),Wn=n.n(Vn),qn=function(){return qn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qn.apply(this,arguments)};!function(e){e[e.Pencil=0]="Pencil",e[e.Trash=1]="Trash",e[e.ExclamationTriangle=2]="ExclamationTriangle"}(zn||(zn={}));var Kn=function(e){switch(e.iconType){case zn.Pencil:return o(Jn(),qn({},e));case zn.Trash:return o(Wn(),qn({},e));case zn.ExclamationTriangle:return o(Mn,qn({},e))}},$n=function(){return $n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$n.apply(this,arguments)},Xn=function(e){var t=(0,l.J0)(!1),n=t[0],r=t[1],i=e.class,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["class"]);return o("div",$n({class:"".concat(e.hidden?"hidden":"")},{children:o("button",$n({type:"button"},a,{class:"".concat(i," disabled:bg-gray-300 disabled:cursor-not-allowed disabled:opacity-50"),onClick:e.onClickPromise?function(){return t=void 0,o=void 0,a=function(){return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(t){switch(t.label){case 0:if(!e.onClickPromise||n)return[3,6];r(!0),t.label=1;case 1:return t.trys.push([1,4,,5]),e.onClickPromise?[4,e.onClickPromise()]:[3,3];case 2:t.sent(),t.label=3;case 3:return[3,5];case 4:return t.sent(),[3,5];case 5:r(!1),t.label=6;case 6:return[2]}})},new((i=void 0)||(i=Promise))(function(e,n){function r(e){try{c(a.next(e))}catch(e){n(e)}}function s(e){try{c(a.throw(e))}catch(e){n(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i(function(e){e(n)})).then(r,s)}c((a=a.apply(t,o||[])).next())});var t,o,i,a}:e.onClick},{children:[o("div",$n({class:"relative ".concat(n?"invisible":"")},{children:e.children})),n&&o("div",$n({class:"absolute animate-spin"},{children:o(In,{theme:"light"})}))]}))}))},Gn=function(e){return o(Xn,$n({},e,{children:[null!=e.iconType&&o(Kn,{iconType:e.iconType,class:"h-5 w-5"}),e.children]}))};const Yn=Xn;var Zn=function(){return Zn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Zn.apply(this,arguments)},Qn="inline-flex justify-center rounded-md border border-transparent py-2 px-4 shadow-sm focus:outline-none focus:ring-indigo-500 focus:ring-2 focus:ring-offset-2 text-sm font-medium text-white";const er=function(e){var n=e.canEdit,r=e.onEdit,i=e.onSave,a=e.onCancel,s=e.canDelete,c=e.onDelete,u=e.isEditMode,f=(0,l.J0)(null!=u&&u),d=f[0],p=f[1];return(0,l.vJ)(function(){p(!!u)},[u]),o("div",Zn({class:"flex flex-row space-x-2"},{children:[d&&o(t.FK,{children:[o(Yn,Zn({class:"".concat(Qn," bg-indigo-600 hover:bg-indigo-700"),onClickPromise:i},{children:"Save"})),o(Yn,Zn({className:"".concat(Qn," border-gray-300 bg-white text-gray-700 hover:bg-gray-50 focus:ring-gray-300"),onClick:function(){p(!1),a()}},{children:"Cancel"}))]}),!d&&o(t.FK,{children:[n&&o(Gn,{class:"".concat(Qn," bg-indigo-600 hover:bg-indigo-700"),iconType:zn.Pencil,onClick:function(){p(!0),r()}}),s&&o(Gn,{class:"".concat(Qn," bg-red-600 hover:bg-red-700 focus:ring-red-600"),onClick:c,iconType:zn.Trash})]})]}))};var tr=function(){return tr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},tr.apply(this,arguments)},nr=function(e){var t,n,r=e.children,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children"]),a=u.default.Children.toArray(r).find(function(e){return e.type===rr});return o("div",tr({class:"relative z-10","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true"},{children:[o("div",{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"}),o("div",tr({class:"fixed inset-0 z-10 overflow-y-auto"},{children:o("div",tr({class:"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"},{children:o("div",tr({class:"relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6"},{children:[o("div",tr({class:"sm:flex sm:items-start"},{children:[o("div",tr({class:"mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10"},{children:o(Kn,{iconType:zn.ExclamationTriangle,className:"h-6 w-6 text-red-600"})})),o("div",tr({class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},{children:[o("h3",tr({class:"text-lg font-medium leading-6 text-gray-900",id:"modal-title"},{children:i.headingText})),o("div",tr({class:"mt-2"},{children:[o("p",tr({class:"text-sm text-gray-500"},{children:i.bodyTest})),a&&a]}))]}))]})),o("div",tr({class:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"},{children:[o(Yn,tr({class:"inline-flex w-full justify-center rounded-md border border-transparent bg-red-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm",disabled:i.confirm.disabled,onClickPromise:i.confirm.handler},{children:null!==(t=i.confirm.text)&&void 0!==t?t:"Confirm"})),o(Yn,tr({class:"mt-3 inline-flex w-full justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-base font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 sm:mt-0 sm:w-auto sm:text-sm",disabled:i.cancel.disabled,onClick:i.cancel.handler},{children:null!==(n=i.cancel.text)&&void 0!==n?n:"Cancel"}))]}))]}))}))}))]}))},rr=function(e){var n=e.children;return o(t.FK,{children:n})};nr.Content=rr;const or=nr;var ir,ar=n(17),sr=n.n(ar),cr=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((r=r.apply(e,t||[])).next())})},lr=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};!function(e){e[e.View=0]="View",e[e.Edit=1]="Edit"}(ir||(ir={}));var ur=function(e,t,n,r){var o=(0,l.NT)(jn).accountId,i=(0,l.J0)(t.value),a=i[0],s=i[1],c=(0,l.J0)(ir.View),u=c[0],f=c[1],d=(0,l.J0)(!1),p=d[0],h=d[1],b=(0,l.Kr)(function(){return u===ir.Edit?"(*)":t.ownership===G.Default?"(Default)":o&&t.ownership===G.Partner?"(Inherited)":""},[o,t.ownership,u]),g=(0,l.Kr)(function(){return o?t.ownership===G.Account:t.ownership===G.Partner},[o,t.ownership]),m=(0,l.Kr)(function(){return e.canEdit},[e.canEdit]),v=(0,l.Kr)(function(){return e.canDelete&&g},[e.canDelete,g]),w=(0,l.hb)(function(){return cr(void 0,void 0,void 0,function(){return lr(this,function(e){return f(ir.View),s(t.value),h(!1),[2]})})},[t,s]),y=(0,l.hb)(function(e){s(e)},[s]),_=(0,l.hb)(function(){return cr(void 0,void 0,void 0,function(){return lr(this,function(e){switch(e.label){case 0:return!g||g&&!sr()(t.value,a)?[4,n(a)]:[3,2];case 1:e.sent(),e.label=2;case 2:return f(ir.View),[2]}})})},[t,g,n,a]),x=(0,l.hb)(function(){return cr(void 0,void 0,void 0,function(){return lr(this,function(e){switch(e.label){case 0:return f(ir.View),[4,null==r?void 0:r()];case 1:return e.sent(),[2]}})})},[r]);return{titleSuffix:b,mode:u,confirmingDelete:p,canView:e.canView,canEdit:m,canDelete:v,config:a,handleEditButtonClick:function(){f(ir.Edit)},handleCancelButtonClick:w,handleDeleteButtonClick:function(){h(!0)},handleChange:y,handleSaveButtonClick:_,handleDeleteConfirmButtonClick:x}},fr=function(){return fr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},fr.apply(this,arguments)};const dr=function(e){var t=e.value,n=e.disabled,r=e.options,i=e.onChange;return o("select",fr({readOnly:n,disabled:n,autocomplete:"off",value:r.findIndex(function(e){return e.value===t}),className:"max-w-lg focus:ring-indigo-500 focus:border-indigo-500 w-full shadow-sm sm:max-w-xs border-gray-300 rounded-md",onChange:function(e){var t;i(null===(t=r.find(function(t,n){return n.toString()===e.currentTarget.value}))||void 0===t?void 0:t.value)}},{children:[r.map(function(e,t){return o("option",fr({value:t.toString()},{children:e.label}),e.label)}),";"]}))};var pr=function(){return pr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},pr.apply(this,arguments)};const hr=function(e){var n=(0,l.J0)(e.open),r=n[0],i=n[1],a=(0,l.J0)(!1),s=a[0],c=a[1];(0,l.vJ)(function(){i(e.open)},[e.open]);var u=(0,l.J0)(""),f=u[0],d=u[1],p=(0,l.Kr)(function(){return!e.input.match(f)},[f,e]);return r?o(or,pr({headingText:e.header,confirm:{text:e.primaryButton.text,disabled:p,handler:function(){return t=void 0,n=void 0,o=function(){return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(t){switch(t.label){case 0:return c(!0),[4,e.onStatusChange("confirmed").finally(function(){c(!1)})];case 1:return t.sent(),i(!1),e.onChange(!1),[2]}})},new((r=void 0)||(r=Promise))(function(e,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function s(e){try{c(o.throw(e))}catch(e){i(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r(function(e){e(n)})).then(a,s)}c((o=o.apply(t,n||[])).next())});var t,n,r,o}},cancel:{text:e.secondaryButton.text,disabled:s,handler:function(){e.onStatusChange("canceled"),i(!1),e.onChange(!1)}}},{children:o(or.Content,{children:o("div",{children:[o(e.content,{}),o("label",pr({className:"text-sm font-semibold"},{children:e.input.label})),o("input",{type:"text",placeholder:e.input.placeholder,className:"max-w-lg focus:ring-indigo-500 focus:border-indigo-500 w-full shadow-sm sm:max-w-xs border-gray-300 rounded-md",onChange:function(e){d(e.currentTarget.value)}})]})})})):o(t.FK,{})};var br=function(){return br=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},br.apply(this,arguments)},gr=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((r=r.apply(e,t||[])).next())})},mr=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},vr=Object.values(X).map(function(e){return{label:e,value:e}}),wr=(0,t.q6)({}),yr=function(e){var n,r=(0,l.NT)(jn),i=r.partnerId,a=r.openError,s=r.access.partnerStyle,c=(0,l.NT)(wr),u=c.partnerStyle,f=c.update,d=ur(s,e.config,e.onUpsert),p=d.titleSuffix,h=d.mode,b=d.canEdit,g=d.config,m=d.handleEditButtonClick,v=d.handleCancelButtonClick,w=d.handleChange,y=d.handleSaveButtonClick;(0,l.vJ)(function(){var t={mode:h,value:g,ownership:e.config.ownership};sr()(u,t)||f({partnerStyle:t})},[g,h,u,e,f]);var _=(0,l.J0)(),x=_[0],E=_[1],k=xr(e.config.value,g,null==x?void 0:x.partnerName,null==x?void 0:x.numberOfAccounts,y),O=(0,l.hb)(function(){return gr(void 0,void 0,void 0,function(){var t,n;return mr(this,function(r){switch(r.label){case 0:return t=e.config.value,(n=t===g||t!==X.Injected||"confirmed"===k.statusRef.current)?[3,2]:[4,_n.getInjectedStyle(i).then(function(e){E(e),e.numberOfAccounts>0?k.setOpen(!0):n=!0}).catch(function(){a("Unexpected error. Please try again later.")})];case 1:r.sent(),r.label=2;case 2:return n?[4,y()]:[3,4];case 3:r.sent(),r.label=4;case 4:return[2]}})})},[g,k,a,i,e.config.value,y]);return o(t.FK,{children:[o("div",{children:[o("div",br({class:"flex"},{children:[o("div",br({class:"basis-1/2"},{children:o("h3",br({class:"text-lg font-semibold text-gray-900"},{children:"Network Partner Implementation Style"}))})),o("div",br({class:"basis-3/4"},{children:o(er,{canEdit:b,onEdit:m,onSave:O,onCancel:v,isEditMode:h==ir.Edit})}))]})),o("div",br({class:"flex flex-col"},{children:[o("label",br({className:"text-sm font-semibold"},{children:["Benefits in onboarding ",p]})),o(dr,{disabled:h===ir.View,value:g,options:vr,onChange:w})]}))]}),o(hr,{open:k.open,header:"Warning",content:k.content,input:{label:"Partner name",placeholder:null!==(n=null==x?void 0:x.partnerName)&&void 0!==n?n:"",match:k.inputMatch},primaryButton:{text:"Confirm"},secondaryButton:{text:"Cancel"},onStatusChange:k.onStatusChange,onChange:k.setOpen})]})},_r=function(e){var t=(0,l.NT)(jn).access.benefitsOnboarding,n=(0,l.NT)(wr).partnerStyle,r=ur(t,e.config,e.onUpsert,e.onDelete),i=r.titleSuffix,a=r.mode,s=r.confirmingDelete,c=r.canEdit,u=r.canDelete,f=r.config,d=r.handleEditButtonClick,p=r.handleCancelButtonClick,h=r.handleDeleteButtonClick,b=r.handleChange,g=r.handleSaveButtonClick,m=r.handleDeleteConfirmButtonClick,v=(0,l.Kr)(function(){return(null==n?void 0:n.value)!==X.Injected},[null==n?void 0:n.value]),w=(0,l.Kr)(function(){return c&&(null==n?void 0:n.ownership)===G.Partner&&(null==n?void 0:n.mode)===ir.View},[c,null==n?void 0:n.mode,null==n?void 0:n.ownership]);return o("div",br({className:v?"hidden":""},{children:[s&&o(or,{bodyTest:"Are you sure you want to reset the current injected workflow settings? This action cannot be undone.",headingText:"Reset Injected Workflow Settings",cancel:{handler:p},confirm:{text:"Reset",handler:m}}),o("div",br({class:"flex"},{children:[o("div",br({class:"basis-1/2"},{children:o("h3",br({class:"ml-[3rem] text-lg font-semibold text-gray-900"},{children:"Injected Workflow Settings ".concat(i)}))})),o("div",br({class:"basis-3/4"},{children:o(er,{canEdit:w,onEdit:d,canDelete:u,onSave:g,onCancel:p,onDelete:h,isEditMode:a==ir.Edit})}))]})),o("div",br({class:"flex flex-col"},{children:o(K,{className:"ml-[3rem] flex items-center h-[3rem]",label:"Benefits step in onboarding",disabled:a===ir.View,value:f.isEnabled,onChange:function(e){return b({isEnabled:e})}})}))]}))},xr=function(e,t,n,r,i){var a=(0,l.J0)(!1),s=a[0],c=a[1],u=(0,l.li)("idle"),f=(0,l.hb)(function(e){return gr(void 0,void 0,void 0,function(){return mr(this,function(t){switch(t.label){case 0:return u.current=e,"confirmed"!==e?[3,2]:[4,i()];case 1:t.sent(),t.label=2;case 2:return[2]}})})},[i]);return{open:s,setOpen:c,statusRef:u,onStatusChange:f,content:function(){return o("div",br({className:"my-5 flex flex-col gap-1 text-sm"},{children:[o("p",{children:["You are switching the partner implementation style from"," ",o("span",br({className:"font-semibold"},{children:e}))," to"," ",o("span",br({className:"font-semibold"},{children:t})),"."]}),o("p",{children:["This action will delete account override configurations for"," ",o("span",br({className:"font-semibold"},{children:r}))," accounts."]}),r&&r>100&&o("p",{children:"This process could take a significant amount of time (> 1 min) please do not close the window."}),o("p",br({className:"mt-5"},{children:["Confirm the partner name ",o("span",br({className:"font-semibold"},{children:["(",n,")"]}))," to delete."]}))]}))},inputMatch:function(e){return e.length>0&&e.toLowerCase()===(null==n?void 0:n.toLowerCase())}}};const Er=function(){var e=(0,l.NT)(jn),t=e.partnerId,n=e.accountId,r=(0,l.J0)(),i=r[0],a=r[1],s=Dn(t,n),c=s.isLoading,u=s.config,f=s.fetchConfig,d=s.upsertImplementationStyle,p=s.upsertInjectedStyle,h=s.deleteInjectedStyle;return(0,l.vJ)(function(){f()},[f]),c?o("div",br({class:"flex justify-center items-center min-h-[300px]"},{children:o("span",br({class:"animate-spin"},{children:o(In,{size:"lg"})}))})):o(wr.Provider,br({value:br(br({},i),{update:a})},{children:u&&o("div",br({className:"flex flex-col gap-7"},{children:[o(yr,{config:u.implementationStyle,onUpsert:d}),o(_r,{config:u.injectedStyleEnablement,onUpsert:p,onDelete:h})]}))}))};var kr=function(){return kr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},kr.apply(this,arguments)};const Or=function(e){var t=e.className,n=e.editable,r=e.item,i=e.onChange;return o("div",kr({class:"flex flex-row items-center justify-start space-x-10 ".concat(t)},{children:[o(K,{label:r.name,disabled:!n,value:r.isEnabled,onChange:function(e){return i(e?{isEnabled:!0}:{isEnabled:!1,disabledReason:$.Default})}}),!r.isEnabled&&o("div",kr({class:"flex flex-row items-center space-x-2 w-1/2 text-sm"},{children:[o("label",kr({for:"reason"},{children:"Reason"})),o("select",kr({readOnly:!n,disabled:!n,autocomplete:"off",value:r.disabledReason,class:"max-w-lg focus:ring-indigo-500 focus:border-indigo-500 w-full shadow-sm sm:max-w-xs border-gray-300 rounded-md",onChange:function(e){i({isEnabled:!1,disabledReason:e.currentTarget.value})}},{children:[Z.map(function(e){return o("option",{children:e.value},e.name)}),";"]}))]}))]}))};var Cr=function(){return Cr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Cr.apply(this,arguments)},Sr=function(e){return e.reduce(function(e,t){var n;return Cr(Cr({},e),((n={})[t.offerName]={isEnabled:t.isEnabled,disabledReason:t.disabledReason},n))},{})};const Rr=function(e){var t=(0,l.NT)(jn).access.benefitsOnboarding,n=(0,l.hb)(function(t){return e.onUpsert(function(e){return Object.entries(e).map(function(e){var t=e[0],n=e[1];return{isEnabled:n.isEnabled,disabledReason:n.disabledReason,offerName:t}})}(t))},[e]),r=ur(t,{value:Sr(e.config.value),ownership:e.config.ownership},n,e.onDelete),i=r.titleSuffix,a=r.mode,s=r.confirmingDelete,c=r.canEdit,u=r.canDelete,f=r.config,d=r.handleEditButtonClick,p=r.handleCancelButtonClick,h=r.handleDeleteButtonClick,b=r.handleChange,g=r.handleSaveButtonClick,m=r.handleDeleteConfirmButtonClick;return o("div",{children:[s&&o(or,{bodyTest:"Are you sure you want to reset the current benefits plan in onboarding settings? This action cannot be undone.",headingText:"Reset Benefits Plan in Onboarding Settings",cancel:{handler:p},confirm:{text:"Reset",handler:m}}),o("div",Cr({class:"flex"},{children:[o("div",Cr({class:"basis-1/2"},{children:o("h3",Cr({class:"text-lg font-semibold text-gray-900"},{children:"Benefits Plan in Onboarding Settings ".concat(i)}))})),o("div",Cr({class:"basis-3/4"},{children:o(er,{canEdit:c,onEdit:d,canDelete:u,onSave:g,onCancel:p,onDelete:h,isEditMode:a==ir.Edit})}))]})),o("div",Cr({class:"flex flex-col"},{children:Object.entries(f).map(function(e){var t=e[0],n=e[1];return o(Or,{className:"flex items-center h-[3rem]",editable:a===ir.Edit,item:Cr(Cr({},n),{name:"".concat(t," Screen")}),onChange:function(e){var n;b(Cr(Cr({},f),((n={})[t]=e,n)))}},t)})}))]})};var Tr=function(){return Tr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Tr.apply(this,arguments)};const jr=function(e){var t=(0,l.NT)(jn).access.benefitsOnboarding,n=ur(t,e.config,e.onUpsert,e.onDelete),r=n.titleSuffix,i=n.mode,a=n.confirmingDelete,s=n.canEdit,c=n.canDelete,u=n.config,f=n.handleEditButtonClick,d=n.handleCancelButtonClick,p=n.handleDeleteButtonClick,h=n.handleChange,b=n.handleSaveButtonClick,g=n.handleDeleteConfirmButtonClick;return o("div",{children:[a&&o(or,{bodyTest:"Are you sure you want to reset the current benefits allowance in onboarding settings? This action cannot be undone.",headingText:"Reset Benefits Allowance in Onboarding Settings",cancel:{handler:d},confirm:{text:"Reset",handler:g}}),o("div",Tr({class:"flex"},{children:[o("div",Tr({class:"basis-1/2"},{children:o("h3",Tr({class:"text-lg font-semibold text-gray-900"},{children:"Benefits Allowance in Onboarding Settings ".concat(r)}))})),o("div",Tr({class:"basis-3/4"},{children:o(er,{canEdit:s,onEdit:f,canDelete:c,onSave:b,onCancel:d,onDelete:p,isEditMode:i==ir.Edit})}))]})),o("div",Tr({class:"flex flex-col"},{children:o(Or,{className:"mt-[2rem]",editable:i===ir.Edit,item:Tr(Tr({},u),{name:"Benefits Allowance"}),onChange:h})}))]})};var Pr=function(){return Pr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Pr.apply(this,arguments)};const Ar=function(){var e=(0,l.NT)(jn),n=e.partnerId,r=e.accountId,i=Dn(n,r),a=i.isLoading,s=i.config,c=i.fetchConfig,u=i.upsertOffers,f=i.deleteOffers,d=i.upsertBenefitsAllowance,p=i.deleteBenefitsAllowance;return(0,l.vJ)(function(){c()},[c]),a?o("div",Pr({class:"flex justify-center items-center min-h-[300px]"},{children:o("span",Pr({class:"animate-spin"},{children:o(In,{size:"lg"})}))})):o(t.FK,{children:s&&o(t.FK,{children:[o("div",Pr({className:"flex flex-col gap-7"},{children:o(Rr,{config:s.offerEnablements,onUpsert:u,onDelete:f})})),o("hr",{className:"my-10"}),o("div",Pr({className:"flex flex-col gap-7"},{children:o(jr,{config:s.benefitsAllowanceEnablement,onUpsert:d,onDelete:p})}))]})})};var Nr,Dr=function(){return Dr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Dr.apply(this,arguments)},Fr=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((r=r.apply(e,t||[])).next())})},Ur=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},Br=function(){if(Nr)return Nr;throw"Axios client has not been initialized yet."},Lr=function(e,t){return Fr(void 0,void 0,void 0,function(){var n;return Ur(this,function(r){switch(r.label){case 0:return n="/config?partnerId=".concat(e),t&&(n+="&accountId=".concat(t)),[4,Br().get(n)];case 1:return[2,r.sent().data]}})})},Ir=function(e,t,n){return Fr(void 0,void 0,void 0,function(){return Ur(this,function(r){switch(r.label){case 0:return[4,Br().put("config",Dr(Dr({},t),{partnerId:e,accountId:n||""}))];case 1:return r.sent(),[2]}})})},Mr=function(e,t){return Fr(void 0,void 0,void 0,function(){var n;return Ur(this,function(r){switch(r.label){case 0:return n="/config?partnerId=".concat(e),t&&(n+="&accountId=".concat(t)),[4,Br().delete(n)];case 1:return r.sent(),[2]}})})},zr=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((r=r.apply(e,t||[])).next())})},Hr=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},Jr=function(){return Jr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Jr.apply(this,arguments)},Vr=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((r=r.apply(e,t||[])).next())})},Wr=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};const qr=function(e){var n=e.partnerId,r=e.accountId,i=(0,l.J0)(!1),a=i[0],s=i[1],c=(0,l.J0)(!1),u=c[0],f=c[1],d=(0,l.NT)(jn).access.webBenefits,p=function(e,t){var n=(0,l.J0)(!0),r=n[0],o=n[1],i=(0,l.J0)(""),a=i[0],s=i[1],c=(0,l.J0)(Q),u=c[0],f=c[1],d=(0,l.hb)(function(){return zr(void 0,void 0,void 0,function(){return Hr(this,function(n){switch(n.label){case 0:return o(!0),s(""),[4,Lr(e,t).then(On).then(f).catch(function(){return s("Oops, there was an error. Please refresh this page")}).finally(function(){return o(!1)})];case 1:return n.sent(),[2]}})})},[e,t]),p=(0,l.hb)(function(n){return zr(void 0,void 0,void 0,function(){return Hr(this,function(r){switch(r.label){case 0:return s(""),[4,Ir(e,kn(n),t).then(d).catch(function(){return s("Unable to save config")})];case 1:return r.sent(),[2]}})})},[e,t,d]),h=(0,l.hb)(function(){return zr(void 0,void 0,void 0,function(){return Hr(this,function(n){switch(n.label){case 0:return s(""),[4,Mr(e,t).then(d).catch(function(){return s("Unable to delete config")})];case 1:return n.sent(),[2]}})})},[t,d,e]);return{isLoading:r,error:a,config:u,fetchConfig:d,updateConfig:p,deleteConfig:h}}(n,r),h=p.isLoading,b=p.error,g=p.config,m=p.fetchConfig,v=p.updateConfig,w=p.deleteConfig,y=(0,l.J0)(g),_=y[0],x=y[1];(0,l.vJ)(function(){x(g)},[g]);var E=(0,l.hb)(function(){return Vr(void 0,void 0,void 0,function(){return Wr(this,function(e){switch(e.label){case 0:return[4,v(_)];case 1:return e.sent(),s(!1),[2]}})})},[_,v]),k=(0,l.hb)(function(){s(!1),x(g)},[g]),O=(0,l.hb)(function(){return Vr(void 0,void 0,void 0,function(){return Wr(this,function(e){switch(e.label){case 0:return[4,w()];case 1:return e.sent(),f(!1),[2]}})})},[w]);return(0,l.vJ)(function(){m()},[m]),h?o("div",Jr({class:"flex justify-center items-center min-h-[300px]"},{children:o("span",Jr({class:"animate-spin"},{children:o(In,{size:"lg"})}))})):b?o("h1",Jr({class:"text-red-500"},{children:b})):o(t.FK,{children:[u&&o(or,{bodyTest:"Are you sure you want to reset the current benefits configuration? This action cannot be undone.",headingText:"Reset Benefits Configuration",cancel:{handler:function(){return f(!1)}},confirm:{text:"Reset",handler:O}}),o("div",Jr({class:"flex"},{children:[o("div",Jr({class:"basis-1/2"},{children:o("h3",Jr({class:"text-lg font-semibold text-gray-900"},{children:"Flare Benefits Settings".concat(a?" (*)":"Specific"==g.ownership?"":" (".concat(g.ownership,")"))}))})),o("div",Jr({class:"basis-3/4"},{children:o(er,{canEdit:d.canEdit,onEdit:function(){return s(!0)},canDelete:d.canDelete&&"Specific"===g.ownership,onSave:E,onCancel:k,onDelete:function(){return f(!0)}})}))]})),o("div",{children:[o(Or,{className:"h-[3rem]",editable:a,item:Jr(Jr({},_.wellbeing),{name:"Wellbeing Hub"}),onChange:function(e){return x(Jr(Jr({},_),{wellbeing:e}))}}),o(Or,{className:"h-[3rem]",editable:a,item:Jr(Jr({},_.flareApp),{name:"Flare App"}),onChange:function(e){return x(Jr(Jr({},_),{flareApp:e}))}}),o(Or,{className:"h-[3rem]",editable:a,item:Jr(Jr({},_.allowance),{name:"Allowance"}),onChange:function(e){return x(Jr(Jr({},_),{allowance:e}))}})]})]})};var Kr,$r=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((r=r.apply(e,t||[])).next())})},Xr=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},Gr=function(){if(Kr)return Kr;throw"Axios client has not been initialized yet."},Yr=function(e,t){return $r(void 0,void 0,void 0,function(){var n;return Xr(this,function(r){switch(r.label){case 0:return n="/partners/".concat(e,"/config"),t&&(n="/partners/".concat(e,"/accounts/").concat(t,"/config")),[4,Gr().get(n)];case 1:return[2,r.sent().data]}})})},Zr=function(e,t,n){return $r(void 0,void 0,void 0,function(){var r;return Xr(this,function(o){switch(o.label){case 0:return r="/partners/".concat(e,"/config"),n&&(r="/partners/".concat(e,"/accounts/").concat(n,"/config")),[4,Gr().put(r,t)];case 1:return o.sent(),[2]}})})},Qr=function(e,t){return $r(void 0,void 0,void 0,function(){var n;return Xr(this,function(r){switch(r.label){case 0:return n="/partners/".concat(e,"/config"),t&&(n="/partners/".concat(e,"/accounts/").concat(t,"/config")),[4,Gr().delete(n)];case 1:return r.sent(),[2]}})})},eo=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((r=r.apply(e,t||[])).next())})},to=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},no=function(){return no=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},no.apply(this,arguments)},ro=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((r=r.apply(e,t||[])).next())})},oo=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};const io=function(e){var n=e.partnerId,r=e.accountId,i=(0,l.J0)(!1),a=i[0],s=i[1],c=(0,l.J0)(!1),u=c[0],f=c[1],d=(0,l.NT)(jn).access.benefitsPlan,p=function(e,t){var n=(0,l.J0)(!0),r=n[0],o=n[1],i=(0,l.J0)(""),a=i[0],s=i[1],c=(0,l.J0)(ee),u=c[0],f=c[1],d=(0,l.hb)(function(){return eo(void 0,void 0,void 0,function(){return to(this,function(n){switch(n.label){case 0:return o(!0),s(""),[4,Yr(e,t).then(Sn).then(f).catch(function(){return s("Oops, there was an error. Please refresh this page")}).finally(function(){return o(!1)})];case 1:return n.sent(),[2]}})})},[e,t]),p=(0,l.hb)(function(n){return eo(void 0,void 0,void 0,function(){return to(this,function(r){switch(r.label){case 0:return s(""),[4,Zr(e,Cn(n),t).then(d).catch(function(){return s("Unable to save config")})];case 1:return r.sent(),[2]}})})},[e,t,d]),h=(0,l.hb)(function(){return eo(void 0,void 0,void 0,function(){return to(this,function(n){switch(n.label){case 0:return s(""),[4,Qr(e,t).then(d).catch(function(){return s("Unable to delete config")})];case 1:return n.sent(),[2]}})})},[t,d,e]);return{isLoading:r,error:a,config:u,fetchConfig:d,updateConfig:p,deleteConfig:h}}(n,r),h=p.isLoading,b=p.error,g=p.config,m=p.fetchConfig,v=p.updateConfig,w=p.deleteConfig,y=(0,l.J0)(g),_=y[0],x=y[1];(0,l.vJ)(function(){m()},[m]),(0,l.vJ)(function(){x(g)},[g]);var E=(0,l.hb)(function(){return ro(void 0,void 0,void 0,function(){return oo(this,function(e){switch(e.label){case 0:return[4,v(_)];case 1:return e.sent(),s(!1),[2]}})})},[_,v]),k=(0,l.hb)(function(){s(!1),x(g)},[g]),O=(0,l.hb)(function(){return ro(void 0,void 0,void 0,function(){return oo(this,function(e){switch(e.label){case 0:return[4,w()];case 1:return e.sent(),f(!1),[2]}})})},[w]),C=(0,l.hb)(function(e){if(e.isEnabled){var t=function(e,t){var n=e.products.map(function(e){return e.name===t?{name:t,isEnabled:!0}:e});return Y(Y({},e),{products:n})}(_,e.name);x(t)}else t=function(e,t,n){var r=e.products.map(function(e){return e.name===t?{name:t,isEnabled:!1,disabledReason:n}:e});return Y(Y({},e),{products:r})}(_,e.name,e.disabledReason),x(t)},[_]);return h?o("div",no({class:"flex justify-center items-center min-h-[300px]"},{children:o("span",no({class:"animate-spin"},{children:o(In,{size:"lg"})}))})):b?o("h1",no({class:"text-red-500"},{children:b})):o(t.FK,{children:[u&&o(or,{bodyTest:"Are you sure you want to reset the current benefits plan configuration? This action cannot be undone.",headingText:"Reset Benefits Plan Configuration",cancel:{handler:function(){return f(!1)}},confirm:{text:"Reset",handler:O}}),o("div",no({class:"flex"},{children:[o("div",no({class:"basis-1/2"},{children:o("h3",no({class:"text-lg font-semibold text-gray-900"},{children:"Benefits Plan Settings".concat(a?" (*)":"Specific"==g.ownership?"":" (".concat(g.ownership,")"))}))})),o("div",no({class:"basis-3/4"},{children:o(er,{canEdit:d.canEdit,onEdit:function(){return s(!0)},canDelete:d.canDelete&&"Specific"==g.ownership,onSave:E,onCancel:k,onDelete:function(){return f(!0)}})}))]})),o("div",no({class:"flex flex-col"},{children:_.products.map(function(e){return o(Or,{className:"flex items-center h-[3rem] ml-[3.5rem]",editable:a,item:no(no({},e),{name:(t=e.name,t.replace(/([a-z])([A-Z])/g,"$1 $2"))}),onChange:function(t){return C(no(no({},t),{name:e.name}))}},e.name);var t})}))]})};var ao=function(){return ao=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ao.apply(this,arguments)};const so=function(e){var t=e.tabTitles,n=e.currentTab,r=e.onChange,i=(0,l.J0)(n),a=i[0],s=i[1],c=(0,l.hb)(function(e){s(e),r(e)},[r]);return o("div",ao({class:"border-b border-gray-200"},{children:o("nav",ao({"aria-label":"Tabs",class:"-mb-px flex space-x-8"},{children:t.map(function(e){return o("a",ao({class:"cursor-pointer border-transparent text-gray-500 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm ".concat(a===e?"border-b-2 border-indigo-500 text-indigo-600":"hover:text-gray-700 hover:border-gray-300 "),onClick:function(){return c(e)}},{children:e}),e)})}))}))};var co=function(){return co=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},co.apply(this,arguments)};const lo=function(e){var t=e.visible,n=e.children,r=(0,l.li)(t);return t&&!r.current&&(r.current=!0),r.current?o("div",co({hidden:!t},{children:n})):null};function uo(e){this.message=e}uo.prototype=new Error,uo.prototype.name="InvalidCharacterError";var fo="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new uo("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,o=0,i=0,a="";r=t.charAt(i++);~r&&(n=o%4?64*n+r:r,o++%4)?a+=String.fromCharCode(255&n>>(-2*o&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function po(e){this.message=e}po.prototype=new Error,po.prototype.name="InvalidTokenError";var ho=function(){function e(e){this.roles=e}return e.create=function(t){if("string"==typeof t)return new e(function(e,t){if("string"!=typeof e)throw new po("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(fo(e).replace(/(.)/g,function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}(t)}catch(e){return fo(t)}}(e.split(".")[n]))}catch(e){throw new po("Invalid token specified: "+e.message)}}(t).roles||[]);throw new Error("Failed to identify the user")},e.prototype.hasRole=function(e){return this.roles.includes(e)},e}(),bo=function(){return bo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bo.apply(this,arguments)},go=function(e,t,n){var r=ho.create(e),o=r.hasRole(t),i={canEdit:o,canView:o||r.hasRole(n),canDelete:o};return{user:r,access:i}},mo=function(){return mo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},mo.apply(this,arguments)};const vo=function(e){var n=(0,l.J0)(e.open),r=n[0],i=n[1];return(0,l.vJ)(function(){i(e.open)},[e.open]),r?o("div",mo({class:"relative z-10","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true"},{children:[o("div",{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"}),o("div",mo({class:"fixed inset-0 z-10 overflow-y-auto"},{children:o("div",mo({class:"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"},{children:o("div",mo({class:"relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6"},{children:[o("div",mo({class:"sm:flex sm:items-start"},{children:[o("div",mo({class:"mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10"},{children:o(Kn,{iconType:zn.ExclamationTriangle,className:"h-6 w-6 text-red-600"})})),o("div",mo({class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},{children:[o("h3",mo({class:"text-lg font-medium leading-6 text-red-500",id:"modal-title"},{children:"Error"})),o("div",mo({class:"mt-2"},{children:o("p",mo({class:"text-sm"},{children:e.error}))}))]}))]})),o("button",mo({type:"button",onClick:function(){var t;i(!1),null===(t=e.onChange)||void 0===t||t.call(e,!1)},class:"absolute top-0 right-0 bg-white rounded-full p-2 inline-flex items-center justify-center text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500"},{children:[o("span",mo({class:"sr-only"},{children:"Close"})),o("svg",mo({class:"h-6 w-6",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},{children:o("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})}))]}))]}))}))}))]})):o(t.FK,{})};var wo,yo=function(){return yo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},yo.apply(this,arguments)};!function(e){e.Style="Style",e.BenefitsOnboarding="Benefits Onboarding",e.WebBenefits="Web Benefits",e.BenefitsPlan="Benefits Plan"}(wo||(wo={}));const _o=s(function(e){var t=e.backendUrl,n=e.accessToken,r=e.partnerId,i=e.accountId,a=function(e,t){var n=go(e,"BenefitsOnboarding.EditConfig","BenefitsOnboarding.Access"),r=n.user,o=n.access,i=go(e,"BenefitsOnboarding.EditPartnerStyle","BenefitsOnboarding.Access").access,a=go(e,"BenefitsPlan.EditConfig","BenefitsPlan.Access").access;return{user:r,access:{partnerStyle:bo(bo({},i),{canEdit:i.canEdit&&!t}),benefitsOnboarding:o,webBenefits:o,benefitsPlan:a}}}(n,i).access,s=(0,l.J0)(wo.Style),c=s[0],u=s[1],f=(0,l.J0)(),d=f[0],p=f[1],h=(0,l.hb)(function(e){return p(e)},[]),b=(0,l.hb)(function(e){e||p(void 0)},[]),g=(0,l.hb)(function(e){return e===c},[c]);return function(e,t){!function(e,t){Nr=mn.create({baseURL:"".concat(e,"/_admin/v2.0"),headers:{Authorization:"Bearer ".concat(t)},allowAbsoluteUrls:!1})}("".concat(e,"/benefits"),t),_n.initClient("".concat(e,"/benefits-onboarding"),t),function(e,t){Kr=mn.create({baseURL:"".concat(e,"/_admin/v1.0/configuration"),headers:{Authorization:"Bearer ".concat(t)},allowAbsoluteUrls:!1})}("".concat(e,"/benefits-plan"),t)}(t,n),o(jn.Provider,yo({value:{partnerId:r,accountId:i,access:a,error:d,openError:h}},{children:[o(so,{tabTitles:Object.entries(wo).map(function(e){return e[1]}),currentTab:c,onChange:u}),o("div",yo({class:"mt-5"},{children:[a.partnerStyle.canView&&o(lo,yo({visible:g(wo.Style)},{children:o(Er,{})})),a.benefitsOnboarding.canView&&o(lo,yo({visible:g(wo.BenefitsOnboarding)},{children:o(Ar,{})})),a.webBenefits.canView&&o(lo,yo({visible:g(wo.WebBenefits)},{children:o(qr,{accessToken:n,partnerId:r,accountId:i})})),a.benefitsPlan.canView&&o(lo,yo({visible:g(wo.BenefitsPlan)},{children:o(io,{accessToken:n,partnerId:r,accountId:i})}))]})),o(vo,{open:!!d,error:null!=d?d:"",onChange:b})]}))});function xo(){return(xo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Eo(e){this.getChildContext=function(){return e.context};var n=e.children,r=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,["context","children"]);return(0,t.Ob)(n,r)}function ko(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=(0,t.h)(Eo,xo({},this._props,{context:e.detail.context}),function e(n,r){if(3===n.nodeType)return n.data;if(1!==n.nodeType)return null;var o=[],i={},a=0,s=n.attributes,c=n.childNodes;for(a=s.length;a--;)"slot"!==s[a].name&&(i[s[a].name]=s[a].value,i[Oo(s[a].name)]=s[a].value);for(a=c.length;a--;){var l=e(c[a],null),u=c[a].slot;u?i[u]=(0,t.h)(Ro,{name:u},l):o[a]=l}var f=r?(0,t.h)(Ro,null,o):o;return(0,t.h)(r||n.nodeName.toLowerCase(),i,f)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?t.Qv:t.XX)(this._vdom,this._root)}function Oo(e){return e.replace(/-(\w)/g,function(e,t){return t?t.toUpperCase():""})}function Co(e,n,r){if(this._vdom){var o={};o[e]=r=null==r?void 0:r,o[Oo(e)]=r,this._vdom=(0,t.Ob)(this._vdom,o),(0,t.XX)(this._vdom,this._root)}}function So(){(0,t.XX)(this._vdom=null,this._root)}function Ro(e,n){var r=this;return(0,t.h)("slot",xo({},e,{ref:function(e){e?(r.ref=e,r._listener||(r._listener=function(e){e.stopPropagation(),e.detail.context=n},e.addEventListener("_preact",r._listener))):r.ref.removeEventListener("_preact",r._listener)}}))}function To(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:"open"}):t,t}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=ko,o.prototype.attributeChangedCallback=Co,o.prototype.disconnectedCallback=So,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(t||e.tagName||e.displayName||e.name,o)}To(c,"superhero-benefits-onboarding",[],{shadow:!0}),To(_o,"superhero-benefits-onboarding-configuration",[],{shadow:!0})})()})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flarehr/superhero-benefits-onboarding",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.13.18",
|
|
4
4
|
"description": "Flare Superhero Benefits Onboarding Component",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@headlessui/react": "^1.6.6",
|
|
18
18
|
"@heroicons/react": "^2.0.10",
|
|
19
|
-
"axios": "^1.
|
|
19
|
+
"axios": "^1.12.2",
|
|
20
20
|
"fast-deep-equal": "^3.1.3",
|
|
21
21
|
"jwt-decode": "^3.1.2",
|
|
22
22
|
"preact": "^10.10.1",
|